Set ICONV_PATH to path of iconv binary.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 1 Oct 2002 16:16:35 +0000 (16:16 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 1 Oct 2002 16:16:35 +0000 (16:16 +0000)
acinclude.m4

index a4799c9c1efe63c97ea55ef4e02de858f0500a84..99f0e9f7fef51c2ed91feae6b1893038409d39ab 100644 (file)
@@ -10,6 +10,12 @@ AC_DEFUN([AM_ICONV],
 
   AC_ARG_WITH([libiconv-prefix],
 [  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib], [
+    # Addition Peter Verthez
+    ICONV_PATH=`echo "$withval" | tr : '/dir'`
+    ICONV_PATH="$ICONV_PATH/dir"
+    AC_SUBST(ICONV_PATH)
+    # end of addition
+
     for dir in `echo "$withval" | tr : ' '`; do
       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi