* Ralf Wildenhues wrote on Thu, Nov 22, 2007 at 08:05:46AM CET: > > save_LDFLAGS=$LDFLAGS > found=no > for try in "" -L.../linux -L.../linux64; do
And there should be an LDFLAGS="$LDFLAGS $try" in here. Sorry about that. > AC_LINK_IFELSE([AC_LANG_PROGRAM([PROLOGUE...], [BODY...])], > [found=$try]) > if "X$found" != Xno; then break; fi > done > # do something with $found here, for example just keep it in LDFLAGS. > LDFLAGS=$save_LDFLAGS