]> granicus.if.org Git - postgis/commitdiff
Added check for libiconv_open (for MingW) - patch provided by Mark Cave-Ayland
authorSandro Santilli <strk@keybit.net>
Tue, 18 Apr 2006 09:19:26 +0000 (09:19 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 18 Apr 2006 09:19:26 +0000 (09:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2329 b70326c6-7e19-0410-871a-916f4a2858ee

configure.in

index e93429844df6521d9eb4d255f43c462d791e0003..189f31ff4214dd43a277e58697acc268eef92520 100644 (file)
@@ -37,10 +37,15 @@ if test "$USE_ICONV" = 1; then
                USE_ICONV=1
                ICONV_LDFLAGS=-liconv
                ,
-               AC_CHECK_LIB(c, iconv_open,
+               AC_CHECK_LIB(iconv, libiconv_open,
                        USE_ICONV=1
+                       ICONV_LDFLAGS=-liconv
                        ,
-                       USE_ICONV=0
+                       AC_CHECK_LIB(c, iconv_open,
+                               USE_ICONV=1
+                               ,
+                               USE_ICONV=0
+                       )
                )
        )
 fi