[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CHECK_LIB broken with variable reference
From: |
Tim Van Holder |
Subject: |
Re: AC_CHECK_LIB broken with variable reference |
Date: |
Fri, 15 Jun 2001 17:50:31 +0200 |
> AC_CHECK_LIB($foo, main) generates this line:
>
> ac_ac_Lib=`echo "ac_cv_lib_$foo_main" | $ac_tr_sh`
>
> This causes ac_ac_Lib to always be "ac_cv_lib_", since $foo_main is empty.
>
> Note that this is a supported feature explicitly mentioned in the autoconf
> docs (*Note (autoconf)Changed Results::).
>
Then I guess we should mention this in the docs and say that for such
situations, you need to use
AC_CHECK_LIB(${foo}, main)
instead.