/[pcre]/code/branches/pcre16/configure.ac
ViewVC logotype

Diff of /code/branches/pcre16/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 286 by ph10, Mon Dec 17 14:46:11 2007 UTC revision 287 by ph10, Tue Dec 18 20:11:28 2007 UTC
# Line 166  AC_ARG_ENABLE(pcregrep-libbz2, Line 166  AC_ARG_ENABLE(pcregrep-libbz2,
166                               [link pcregrep with libbz2 to handle .bz2 files]),                               [link pcregrep with libbz2 to handle .bz2 files]),
167                , enable_pcregrep_libbz2=no)                , enable_pcregrep_libbz2=no)
168    
169    # Handle --enable-pcretest-libreadline
170    AC_ARG_ENABLE(pcretest-libreadline,
171                  AS_HELP_STRING([--enable-pcretest-libreadline],
172                                 [link pcretest with libreadline]),
173                  , enable_pcretest_libreadline=no)
174    
175  # Handle --with-posix-malloc-threshold=NBYTES  # Handle --with-posix-malloc-threshold=NBYTES
176  AC_ARG_WITH(posix-malloc-threshold,  AC_ARG_WITH(posix-malloc-threshold,
177              AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES],              AS_HELP_STRING([--with-posix-malloc-threshold=NBYTES],
# Line 318  AC_CHECK_LIB([z], [gzopen], [HAVE_LIBZ=1 Line 324  AC_CHECK_LIB([z], [gzopen], [HAVE_LIBZ=1
324  AC_CHECK_HEADERS([bzlib.h], [HAVE_BZLIB_H=1])  AC_CHECK_HEADERS([bzlib.h], [HAVE_BZLIB_H=1])
325  AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])  AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
326    
327    # Check for the availabiity of libreadline
328    
329    AC_CHECK_HEADERS([readline/readline.h], [HAVE_READLINE_H=1])
330    AC_CHECK_HEADERS([readline/history.h], [HAVE_HISTORY_H=1])
331    AC_CHECK_LIB([readline], [readline], [HAVE_LIB_READLINE=1])
332    
333  # This facilitates -ansi builds under Linux  # This facilitates -ansi builds under Linux
334  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])  dnl AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions in glibc])
335    
# Line 363  if test "$enable_pcregrep_libbz2" = "yes Line 375  if test "$enable_pcregrep_libbz2" = "yes
375      able to handle .bz2 files.])      able to handle .bz2 files.])
376  fi  fi
377    
378    if test "$enable_pcretest_libreadline" = "yes"; then
379      AC_DEFINE([SUPPORT_LIBREADLINE], [], [
380        Define to allow pcretest to be linked with libreadline.])
381    fi
382    
383  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [  AC_DEFINE_UNQUOTED([NEWLINE], [$ac_pcre_newline_value], [
384    The value of NEWLINE determines the newline character sequence. On    The value of NEWLINE determines the newline character sequence. On
385    systems that support it, "configure" can be used to override the    systems that support it, "configure" can be used to override the
# Line 505  if test "$enable_pcregrep_libbz2" = "yes Line 522  if test "$enable_pcregrep_libbz2" = "yes
522    if test "$LIBS" = ""; then LIBS=-lbz2; else LIBS="$LIBS -lbz2"; fi    if test "$LIBS" = ""; then LIBS=-lbz2; else LIBS="$LIBS -lbz2"; fi
523  fi  fi
524    
525    # Similarly for --enable-pcretest-readline
526    
527    if test "$enable_pcretest_libreadline" = "yes"; then
528      if test "$HAVE_READLINE_H" != "1"; then
529        echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
530        exit 1
531      fi
532      if test "$HAVE_HISTORY_H" != "1"; then
533        echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
534        exit 1
535      fi
536      if test "$LIBS" = ""; then LIBS=-lreadline; else LIBS="$LIBS -lreadline"; fi
537    fi
538    
539  # Produce these files, in addition to config.h.  # Produce these files, in addition to config.h.
540  AC_CONFIG_FILES(  AC_CONFIG_FILES(
541          Makefile          Makefile
# Line 532  cat < Line 563  cat <
563    
564  $PACKAGE-$VERSION configuration summary:  $PACKAGE-$VERSION configuration summary:
565    
566      Install prefix ............. : ${prefix}      Install prefix .................. : ${prefix}
567      C preprocessor ............. : ${CPP}      C preprocessor .................. : ${CPP}
568      C compiler ................. : ${CC}      C compiler ...................... : ${CC}
569      C++ preprocessor ........... : ${CXXCPP}      C++ preprocessor ................ : ${CXXCPP}
570      C++ compiler ............... : ${CXX}      C++ compiler .................... : ${CXX}
571      Linker ..................... : ${LD}      Linker .......................... : ${LD}
572      C preprocessor flags ....... : ${CPPFLAGS}      C preprocessor flags ............ : ${CPPFLAGS}
573      C compiler flags ........... : ${CFLAGS}      C compiler flags ................ : ${CFLAGS}
574      C++ compiler flags ......... : ${CXXFLAGS}      C++ compiler flags .............. : ${CXXFLAGS}
575      Linker flags ............... : ${LDFLAGS}      Linker flags .................... : ${LDFLAGS}
576      Extra libraries ............ : ${LIBS}      Extra libraries ................. : ${LIBS}
577    
578      Build C++ library .......... : ${enable_cpp}      Build C++ library ............... : ${enable_cpp}
579      Enable UTF-8 support ....... : ${enable_utf8}      Enable UTF-8 support ............ : ${enable_utf8}
580      Unicode properties ......... : ${enable_unicode_properties}      Unicode properties .............. : ${enable_unicode_properties}
581      Newline char/sequence ...... : ${enable_newline}      Newline char/sequence ........... : ${enable_newline}
582      \R matches only ANYCRLF .... : ${enable_bsr_anycrlf}      \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
583      EBCDIC coding .............. : ${enable_ebcdic}      EBCDIC coding ................... : ${enable_ebcdic}
584      Rebuild char tables ........ : ${enable_rebuild_chartables}      Rebuild char tables ............. : ${enable_rebuild_chartables}
585      Use stack recursion ........ : ${enable_stack_for_recursion}      Use stack recursion ............. : ${enable_stack_for_recursion}
586      POSIX mem threshold ........ : ${with_posix_malloc_threshold}      POSIX mem threshold ............. : ${with_posix_malloc_threshold}
587      Internal link size ......... : ${with_link_size}      Internal link size .............. : ${with_link_size}
588      Match limit ................ : ${with_match_limit}      Match limit ..................... : ${with_match_limit}
589      Match limit recursion ...... : ${with_match_limit_recursion}      Match limit recursion ........... : ${with_match_limit_recursion}
590      Build shared libs .......... : ${enable_shared}      Build shared libs ............... : ${enable_shared}
591      Build static libs .......... : ${enable_static}      Build static libs ............... : ${enable_static}
592      Link pcregrep with libz .... : ${enable_pcregrep_libz}      Link pcregrep with libz ......... : ${enable_pcregrep_libz}
593      Link pcregrep with libbz2 .. : ${enable_pcregrep_libbz2}      Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
594        Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
595    
596  EOF  EOF
597    

Legend:
Removed from v.286  
changed lines
  Added in v.287

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12