-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephane Bortzmeyer wrote: > I have a configure.ac which calls: > > AC_CHECK_SIZEOF(int) > > This fails on a machine (a FreeBSD 6.1-RELEASE / Itanium) with: > > checking size of int... configure: error: cannot compute sizeof (int) > > And config.log contains: > > configure:22234: cc -o conftest -g -O2 -I/house/bortz/include -L/house/bortz/lib conftest.c -lpopt -lm >&5 > configure:22237: $? = 0 > configure:22243: ./conftest > /libexec/ld-elf.so.1: Shared object "libpopt.so.0" not found, required by "conftest" > > [libpopt.so.0 is in /house/bortz/lib] > > Indeed, I need popt so I passed --with-popt=$HOME to configure. The > code compiled through libtool seems fine with it but autoconf's tests > like SIZEOF does not go through libtool and are not executable unless > I manually set LD_LIBRARY_PATH, which is inconvenient. > > Any idea? > > > _______________________________________________ > Autoconf mailing list > Autoconf@xxxxxxx > http://lists.gnu.org/mailman/listinfo/autoconf Hi again, two more things: * maybe a faster solution (and check), is run AC_CHECK_SIZEOF(int) before setting anything related with libpopt? * if this doesn't work, maybe you could add -rpath in your LIBS so as to have a default lib path for popt cc -o conftest -g -O2 -I/house/bortz/include conftest.c - -L/house/bortz/lib -Wl,-rpath,/house/bortz/lib -lpopt -lm Regards, PS sorry for the other top-posting. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGFJkBwMPeuqUCg9wRApROAJ9CLk/FNddvvYKVDtbbbB0GytJnCACfbC5o 1q+aLHTrIba1g965kdDEiP8= =wpwa -----END PGP SIGNATURE----- _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf