|
Re: getting started: msg#00113sysutils.autoconf.general
Rob Benton <rob.benton@xxxxxxxxxxxxxx> writes: > configure.ac: > ------------- > AC_SUBST([LDFLAGS], [AC_TEST_ME([CXX])]) > > aclocal.m4: > ----------- > AC_DEFUN([AC_TEST_ME], > [ifelse($1, [g++], [-shared], > $1, [xlC_r], [-G])] > ) > > But only the literal "CXX" gets passed in to my macro and I don't know > how to extract its value if that's possible. So am I going about this > the right way? You have to distinguish between shell variables and m4 strings. CXX is the former, so you can get its value at configure-time by writing $CXX. You can't get its value at autoconf-time because you don't know it yet. So you'd have to use a shell "if" rather than an m4 "ifelse". |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | AUTOMAKE_OPTIONS= -Werror: 00113, Harlan Stenn |
|---|---|
| Next by Date: | Autoconf, TONS of piks hes and veedeos waiting 4 u: 00113, dcd |
| Previous by Thread: | getting startedi: 00113, Rob Benton |
| Next by Thread: | AUTOMAKE_OPTIONS= -Werror: 00113, Harlan Stenn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |