Date: Fri, 5 Jan 2001 01:19:36 -0200 From: "Mario Sergio Fujikawa Ferreira" <lioux@uol.com.br> To: freebsd-ports@FreeBSD.org Cc: torstenb@FreeBSD.org Subject: FreeBSD port devel/autoconf doubt Message-ID: <20010105011936.A2840@Fedaykin.here>
next in thread | raw e-mail | index | archive | help
Hi, I was recently studying the intricate world of the GNU autoconf tool when I stumbled across an anomaly. The GNU ppl (i.e., Linux) are known to install everything on /usr/. Therefore, the autoconf tool checks there. To have it check elsewhere, e.g., /usr/local/ (our ${LOCALBASE}); we "trick" it by defining either/both CFLAGS and CXXFLAGS. For instance, CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib" \ CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib" The trick works usually wonderfully for AC_CHECK_LIB but does not do the voodoo for AC_CHECK_HEADERS. For example, the following: dnl Just something to keep autoconf from annoying me AC_INIT(something.in) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. AC_CHECK_LIB(guile, gh_procedure_p) dnl Checks for header files. AC_CHECK_HEADERS(libguile.h) AC_CHECK_HEADER(guile/gh.h) I have -rw-r--r-- 1 root wheel 781424 Jan 4 13:52 /usr/local/lib/libguile.a lrwxr-xr-x 1 root wheel 13 Jan 4 13:52 /usr/local/lib/libguile.so -> libguile.so.9 -rwxr-xr-x 1 root wheel 596400 Jan 4 13:52 /usr/local/lib/libguile.so.9 -r--r--r-- 1 root wheel 4598 Jan 4 13:52 /usr/local/include/libguile.h However, I get the following annoying output after autoconf(ing) it: creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc -O -pipe -I/usr/local/include -L/usr/local/lib ) works... yes checking whether the C compiler (cc -O -pipe -I/usr/local/include -L/usr/local/lib ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking for gh_procedure_p in -lguile... no checking how to run the C preprocessor... cc -E checking for libguile.h... no checking for guile/gh.h... no Ideas? Why is the LIB check failing on this one, I was confident it would work. As per the HEADER, I was already expecting the failure but how do I get it to work? This particular example is incidental to an update to the mail/icqmail port I am reviewing. All help appreciated. I am wondering why do I have the feeling I am gonna hate this. :) Regards, -- Mario S F Ferreira - UnB - Brazil - "I guess this is a signature." lioux at ( freebsd dot org | linf dot unb dot br ) flames to beloved devnull@someotherworldbeloworabove.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010105011936.A2840>