pan-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-devel] patch for configure.in


From: K. Haley
Subject: [Pan-devel] patch for configure.in
Date: Tue, 19 Aug 2003 02:29:49 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

I just thought I would toss out this local patch in case anyone else wants it. This patch fixes one flaw where LDFLAGS was used instead of LIBS. The other change adds a section for mingw for -lregex & -mms-bitfields.
--- configure.in        Tue Aug 19 02:16:56 2003
+++ configure.my        Tue Aug 19 02:20:22 2003
@@ -121,8 +121,8 @@
 AM_ICONV()
 AC_MSG_CHECKING(preferred charset formats for system iconv)
 CFLAGS="$CFLAGS -I$srcdir"
-LDFLAGS_save="$LDFLAGS"
-LDFLAGS="$LDFLAGS $LIBICONV"
+LIBS_save="$LIBSS"
+LIBS="$LIBS $LIBICONV"
 AC_TRY_RUN([
 #define CONFIGURE_IN
 #include "iconv-detect.c"
@@ -139,7 +139,7 @@
        *** ftp://ftp.gnu.org/pub/gnu/libiconv
        ])
 ])
-LDFLAGS="$LDFLAGS_save"
+LIBS="$LIBS_save"
 
 AC_CACHE_CHECK([for timezone variable],
                [ac_cv_var_timezone],
@@ -174,6 +174,12 @@
 AC_CHECK_HEADERS(time.h)
 AC_CHECK_FUNCS(isblank mmap munmap msync)
 
+case $build_os in
+       *mingw32*) AC_CHECK_HEADER(regex.h)
+       LIBS="$LIBS -lregex"
+       CFLAGS="$CFLAGS -mms-bitfields"
+       ;;
+esac
 
 dnl ******************************
 dnl Makefiles

reply via email to

[Prev in Thread] Current Thread [Next in Thread]