Hello
when you use AC_CHECK_HEADER to test for Ecore.h or another header that is
located in a non standard location (through the use of --prefix) you must
include CPPFLAGS="-I/my/e17/location" and LDFLAGS="-L/my/e17/location" or use
this simple patch (example is for entrance):
Index: configure.in
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/configure.in,v
retrieving revision 1.41
diff -r1.41 configure.in
79a80,89
> AC_PATH_GENERIC(ecore, 1.0.0, [
> AC_SUBST(ecore_libs)
> AC_SUBST(ecore_cflags) ],
> AC_MSG_ERROR(Cannot find ecore: Is ecore-config in path?))
> ecore_libs=`ecore-config --libs`
> ecore_cflags=`ecore-config --cflags`
>
> AC_SUBST(ecore_libs)
> AC_SUBST(ecore_cflags)
>
80a91,93
>
> old_CPPFLAGS=$CPPFLAGS
> CPPFLAGS=$ecore_cflags
82a96,99
>
>
> old_LDFLAGS=$LDFLAGS
> LDFLAGS=$ecore_libs
86a104,114
> have_ecore_ipc=no
> AC_CHECK_HEADER(Ecore_Ipc.h,,
> AC_MSG_ERROR([Ecore_Ipc.h not found! Did you compile Ecore with IPC
support?]))
>
> AC_CHECK_LIB(ecore_ipc, ecore_ipc_init, [
> have_ecore_ipc=yes],
> AC_MSG_ERROR([Cannot find Ecore_Ipc!]))
>
> CPPFLAGS="$CPPFLAGS $evas_cflags"
> LDFLAGS="$LDFLAGS $evas_libs"
>
105,111c133,134
< have_ecore_ipc=no
< AC_CHECK_HEADER(Ecore_Ipc.h,,
< AC_MSG_ERROR([Ecore_Ipc.h not found! Did you compile Ecore with IPC
support?]))
<
< AC_CHECK_LIB(ecore_ipc, ecore_ipc_init, [
< have_ecore_ipc=yes],
< AC_MSG_ERROR([Cannot find Ecore_Ipc!]))
---
> CPPFLAGS=$old_CPPFLAGS
> LDFLAGS=$old_LDFLAGS
I hope this would help....
Reference readings:
- <https://trac.prelude-ids.org/file/trunk/libprelude/configure.in?rev=3950> for
example (at line below "Check for GnuTLS")
- autoconf manual says nowhere where to add an include path to AC_CHECK_HEADER,
whereas it recommends to use CPPFLAGS...
Best regards,
Michel
|