--- parser3/configure 2012/06/15 20:56:45 1.152 +++ parser3/configure 2013/03/10 19:47:27 1.156 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for parser 3.4.2 RC. +# Generated by GNU Autoconf 2.68 for parser 3.4.2. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -571,8 +571,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='parser' PACKAGE_TARNAME='parser' -PACKAGE_VERSION='3.4.2 RC' -PACKAGE_STRING='parser 3.4.2 RC' +PACKAGE_VERSION='3.4.2' +PACKAGE_STRING='parser 3.4.2' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -776,7 +776,6 @@ enable_option_checking enable_dependency_tracking with_build_warnings with_assertions -with_pathlink with_sjlj_exceptions enable_safe_mode enable_execs @@ -784,9 +783,7 @@ enable_stringstream with_gc with_pcre with_xml -with_glib_config -with_shared_mailreceive -with_static_mailreceive +with_mailreceive with_sendmail with_apache with_pic @@ -1358,7 +1355,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures parser 3.4.2 RC to adapt to many kinds of systems. +\`configure' configures parser 3.4.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1428,7 +1425,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of parser 3.4.2 RC:";; + short | recursive ) echo "Configuration of parser 3.4.2:";; esac cat <<\_ACEOF @@ -1456,8 +1453,6 @@ Optional Packages: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-build-warnings to enable build-time compiler warnings if gcc is used --with-assertions to enable assertions - --with-pathlink=LKEY put dynamic libraries paths to binary - using linker key (-R, -rpath-link) --with-sjlj-exceptions enable simple 'throw' from dynamic library --with-gc=D D is the directory where Boehm garbage collecting library is installed @@ -1465,12 +1460,8 @@ Optional Packages: PCRE library is installed --with-xml=D D is the directory where Gnome XML libraries are installed - --with-glib-config=FILE FILE is glib library - configuration file (search for glib*-config) - --with-shared-mailreceive=D is the directory where - Gnome MIME library is installed (shared lib) - --with-static-mailreceive=D is the directory where - Gnome MIME library is installed (static lib) + --with-mailreceive=D is the directory where + Gnome MIME library is installed \"--with-sendmail=COMMAND\" forces this command to send mail. example: \"--with-sendmail=/usr/sbin/sendmail -t\" (makes parser ignore user-defined sendmail commands) @@ -1570,7 +1561,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -parser configure 3.4.2 RC +parser configure 3.4.2 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2066,6 +2057,59 @@ $as_echo "$ac_res" >&6; } } # ac_fn_c_check_type +# ac_fn_c_find_uintX_t LINENO BITS VAR +# ------------------------------------ +# Finds an unsigned integer type with width BITS, setting cache variable VAR +# accordingly. +ac_fn_c_find_uintX_t () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 +$as_echo_n "checking for uint$2_t... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + # Order is important - never check a type that is potentially smaller + # than half of the expected target width. + for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ + 'unsigned long long int' 'unsigned short int' 'unsigned char'; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +int +main () +{ +static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; +test_array [0] = 0 + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + case $ac_type in #( + uint$2_t) : + eval "$3=yes" ;; #( + *) : + eval "$3=\$ac_type" ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if eval test \"x\$"$3"\" = x"no"; then : + +else + break +fi + done +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_find_uintX_t + # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using @@ -2156,7 +2200,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by parser $as_me 3.4.2 RC, which was +It was created by parser $as_me 3.4.2, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2974,7 +3018,7 @@ fi # Define the identity of the package. PACKAGE='parser' - VERSION='3.4.2 RC' + VERSION='3.4.2' cat >>confdefs.h <<_ACEOF @@ -4620,14 +4664,6 @@ fi -# Check whether --with-pathlink was given. -if test "${with_pathlink+set}" = set; then : - withval=$with_pathlink; LD_PATHLINK=$withval - -fi - - - # Check whether --with-sjlj-exceptions was given. if test "${with_sjlj_exceptions+set}" = set; then : withval=$with_sjlj_exceptions; @@ -4897,85 +4933,73 @@ fi -# Check whether --with-glib-config was given. -if test "${with_glib_config+set}" = set; then : - withval=$with_glib_config; GLIB_CONFIG=$withval - -fi - - - -# Check whether --with-shared-mailreceive was given. -if test "${with_shared_mailreceive+set}" = set; then : - withval=$with_shared_mailreceive; - GNOME_MIME=$withval - MIMEBIN="$GNOME_MIME/bin" - MIMEINC="$GNOME_MIME/include" - MIMELIB="$GNOME_MIME/lib" - - if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then - as_fn_error $? "$GNOME_MIME does not seem to be valid Gnome installation directory" "$LINENO" 5 - fi - - -$as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h - - - LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'` - if test -z "$GLIB_CONFIG"; then - GLIB_CONFIG=$XMLBIN/glib-config - if test \! -x $GLIB_CONFIG; then - GLIB_CONFIG=$XMLBIN/glib2-config - if test \! -x $GLIB_CONFIG; then - GLIB_CONFIG=glib-config +# Check whether --with-mailreceive was given. +if test "${with_mailreceive+set}" = set; then : + withval=$with_mailreceive; + MIME=$withval + GLIB="glib-2.0" + GMIME="gmime-2.4" + + if test -z "$MIME" -o "$MIME" = "yes"; then + MIME="" + MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null` + MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null` + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5 +$as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;} + else + MIME_INCLUDES="-I$MIME/include/$GMIME" + MIME_LIBS="-l$GMIME" + if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then + MIME_LIBS="$MIME/lib/lib$GMIME.la" + if test -f $MIME/lib/lib$GLIB.la; then + MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include" + else + GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null` + MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES" fi + MIME_OK="yes" fi fi - GLIB_CFLAGS=`$GLIB_CONFIG --cflags` - GLIB_LIBS=`$GLIB_CONFIG --libs` - - MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime" - MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME" - if test \! -z "$LD_PATHLINK"; then - MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB" - fi - -fi + if test -z "$MIME_OK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mime" >&5 +$as_echo_n "checking for mime... " >&6; } + SAVE_LIBS=$LIBS + LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ + guint v=gmime_major_version; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } -# Check whether --with-static-mailreceive was given. -if test "${with_static_mailreceive+set}" = set; then : - withval=$with_static_mailreceive; - GNOME_MIME=$withval - MIMEBIN="$GNOME_MIME/bin" - MIMEINC="$GNOME_MIME/include" - MIMELIB="$GNOME_MIME/lib" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test -z "$MIME"; then + as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=D" "$LINENO" 5 + else + as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5 + fi - if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then - as_fn_error $? "$GNOME_MIME does not seem to be valid Gnome installation directory" "$LINENO" 5 +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS fi - $as_echo "#define WITH_MAILRECEIVE /**/" >>confdefs.h - if test -z "$GLIB_CONFIG"; then - GLIB_CONFIG=$XMLBIN/glib-config - if test \! -x $GLIB_CONFIG; then - GLIB_CONFIG=$XMLBIN/glib2-config - if test \! -x $GLIB_CONFIG; then - GLIB_CONFIG=glib-config - fi - fi - fi - GLIB_CFLAGS=`$GLIB_CONFIG --cflags` - - GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'` - GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'` - MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime" - MIME_LIBS="$MIMELIB/libgmime.la $GLIB_DIR/lib$GLIB_NAME.la" - fi @@ -4983,6 +5007,7 @@ fi + # Check whether --with-sendmail was given. if test "${with_sendmail+set}" = set; then : withval=$with_sendmail; @@ -17358,30 +17383,30 @@ _ACEOF fi - - -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes; then : +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" +if test "x$ac_cv_type_ssize_t" = xyes; then : else cat >>confdefs.h <<_ACEOF -#define off_t long +#define ssize_t int _ACEOF fi -ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = xyes; then : +ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" +case $ac_cv_c_uint32_t in #( + no|yes) ;; #( + *) + +$as_echo "#define _UINT32_T 1" >>confdefs.h -else cat >>confdefs.h <<_ACEOF -#define ssize_t int +#define uint32_t $ac_cv_c_uint32_t _ACEOF - -fi - +;; + esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 @@ -17465,8 +17490,6 @@ done - - case "$host" in *-freebsd4*) @@ -18080,16 +18103,6 @@ rm -f core conftest.err conftest.$ac_obj - - - - - - - - - - ac_config_headers="$ac_config_headers src/include/pa_config_auto.h" @@ -18663,7 +18676,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by parser $as_me 3.4.2 RC, which was +This file was extended by parser $as_me 3.4.2, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -18729,7 +18742,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -parser config.status 3.4.2 RC +parser config.status 3.4.2 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"