Help in AC_CHECK_LIB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I want to check for two libraries libIL.so  and libILU.so
so, i included the below lines in the configure.in script so as to get the flags -lILU and -lIL
-------------------------------------------------------------------------
#Find the DevIL library
AC_CHECK_LIB (IL, ilSaveImage, [], [
                echo -n"Error! DevIL Image Library IL not found"
                echo -n "Install DevIL-1.6.7"
                exit -1
                ])
AC_CHECK_LIB (IL, iluGetInteger, [], [
                echo -n "Error! DevIL Image Library ILU not found"
                echo -n "Install DevIL-1.6.7"
                exit -1
                ])
-------------------------------------------------------------------------
When i run the configure script i get the following warnings and errors

WARNINGS:
==========
Running autoconf...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level
Running autoheader...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level
Running automake-1.7...
configure.in:28: warning: AC_LANG_CALL: no function given
autoconf/lang.m4:242: AC_LANG_CALL is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
autoconf/libs.m4:134: AC_CHECK_LIB is expanded from...
configure.in:28: the top level
configure.in:33: warning: AC_LANG_CALL: no function given
configure.in:33: the top level

And at last i get an error 
checking for  in -l... no
./configure: line 19585: IL,: command not found
-nError! DevIL Image Library IL not found
Install DevIL-1.6.7checking for  in -l... (cached) no
./configure: line 19663: IL,: command not found
Error! DevIL Image Library ILU not foundInstall DevIL-1.6.7


Seems AC_CHECK_LIB wont accept any library name in CAPS. Is there a way to solve this, or can i use any other way to check for that library.

Thanks
Madhan Raj M


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux