X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=configure.in;fp=configure.in;h=072dd8967f4467a8ddd30ed9577d077fd9c49c2f;hb=f110a9eb416fe4d8824be87b46cf4c50ba927088;hp=5d077544fea54e211f41326d0eb77de12e39c0d2;hpb=94f6ef24d90516725581e38673bb871f8d19c289;p=gedcom-parse.git diff --git a/configure.in b/configure.in index 5d07754..072dd89 100644 --- a/configure.in +++ b/configure.in @@ -98,6 +98,18 @@ point to an existing installation of that library (see README) ]) fi +if test "${with_libiconv_prefix+set}" = set; then + withval="$with_libiconv_prefix" + + for dir in `echo "$withval" | tr : ' '`; do + if test -d $dir/lib; then ICONV_LIBPATH="$ICONV_LIBPATH -L$dir/lib"; fi + done + + ICONV_PATH=`echo "$withval" | tr : '/bin:'` + ICONV_PATH="$ICONV_PATH/bin" +fi +AC_SUBST(ICONV_PATH) + AC_MSG_CHECKING(for location of iconv) if test "$am_cv_lib_iconv" = yes; then AC_MSG_RESULT(libiconv) @@ -122,6 +134,11 @@ library (see README). ]) fi +case "$host_os" in + darwin*) # Hack to get correct locale_charset() function + LDFLAGS="$ICONV_LIBPATH -liconv $LDFLAGS";; +esac + AC_OUTPUT(GNUmakefile Makefile gedcom-config