summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3458287)
raw | patch | inline | side by side (parent: 3458287)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 22:03:33 +0000 (22:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 22:03:33 +0000 (22:03 +0000) |
program/acinclude.m4 | patch | blob | history | |
program/configure.ac | patch | blob | history |
diff --git a/program/acinclude.m4 b/program/acinclude.m4
index 6ada55c5efcd91e78f04c77a98245491163be52c..0143cb4082ff3b0eafd8148f93d9a5e81c2d6f47 100644 (file)
--- a/program/acinclude.m4
+++ b/program/acinclude.m4
ex_check_save_CPPFLAGS=${CPPFLAGS}
ex_check_save_LDFLAGS=${LDPFLAGS}
if test "x$7" != "x"; then
- CPPFLAGS="-I$7 $CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS -I$7"
fi
dnl try compiling naked first
AC_CHECK_LIB($1,$2, [
LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l $4`
dnl remove the cached value and test again
unset ac_cv_lib_$1_$2
- AC_CHECK_LIB($1,$2,[ AC_CHECK_HEADER($3,[EX_CHECK_STATE=YES],[])],[])
+ AC_CHECK_LIB($1,$2,[
+ unset ac_cv_header_`echo $3 | sed "s/[^a-z]/_/"`
+ AC_CHECK_HEADER($3,[EX_CHECK_STATE=YES],[])
+ ],[])
else
AC_MSG_WARN([
----------------------------------------------------------------------------
diff --git a/program/configure.ac b/program/configure.ac
index 912e68b719da9ee82c6c324d20bac30eaf16e0f6..fd6f52e740d54bd93a0c7a75bb93ec972453fb07 100644 (file)
--- a/program/configure.ac
+++ b/program/configure.ac
dnl Checks for libraries.
AC_CHECK_FUNC(acos, , AC_CHECK_LIB(m, acos))
+dnl Use libiconv if we have one but fall back to libc otherwhise
+AC_CHECK_LIB(iconv, iconv_open, , [
+ AC_CHECK_FUNC(iconv_open,,)
+ ])
dnl add pic flag in any case this makes sure all our code is relocatable
eval `./libtool --config | grep pic_flag`