configure.ad: Fixed configure to support new autoconf
authorPekka Riikonen <priikone@silcnet.org>
Mon, 25 May 2009 17:44:07 +0000 (20:44 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 25 May 2009 17:44:07 +0000 (20:44 +0300)
configure.ad

index 21d47d37ce03b1db78dbdecb3cd8a7a75b39f446..186628e310a304a1ecd5528fcb9f9882d411b75f 100644 (file)
@@ -1015,7 +1015,7 @@ if test x$has_iconv = xtrue; then
   # (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
   #     obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
   #
-  AC_CACHE_CHECK([whether this iconv is good enough], ac_iconv_good,
+  AC_CACHE_CHECK([whether this iconv is good enough], ac_cv_iconv_good,
     AC_TRY_RUN(
       [
         #include <iconv.h>
@@ -1034,17 +1034,17 @@ if test x$has_iconv = xtrue; then
         }
       ],
       [
-        ac_iconv_good=yes
+        ac_cv_iconv_good=yes
       ],
       [
-        ac_iconv_good=no
+        ac_cv_iconv_good=no
       ],
       [
-        ac_iconv_good=yes
+        ac_cv_iconv_good=yes
       ])
     )
 
-  if test x$ac_iconv_good = xno; then
+  if test x$ac_cv_iconv_good = xno; then
     AC_MSG_RESULT(Try using libiconv instead.)
   fi
 fi