Changeset 7620


Ignore:
Timestamp:
Jul 1, 2004, 5:21:18 PM (15 years ago)
Author:
wbb4
Message:

Bug:
Submitted by: wbb4@
Reviewed by: wbb4@
Approved by:
Obtained from: wbb4-versionfoobage-1 branch, pguyot@, wbb4@

This is the merge of the Port Images branch (wbb4-versionfoobage-1) into HEAD.

Location:
trunk/base
Files:
9 added
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r4091 r7620  
    2020        rm -rf autom4te.cache
    2121        rm -f Makefile Mk/dports.autoconf.mk
     22
     23test::
  • trunk/base/Mk/dports.autoconf.mk.in

    r6267 r7620  
    55
    66CC                      = @CC@
    7 CFLAGS                  = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS)
     7CFLAGS                  = $(CFLAGS_QUICHEEATERS) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS)
    88CPPFLAGS                = @CPPFLAGS@ @DEFS@ @INCLUDES@ @TCL_INCLUDES@
    99TCL_DEFS                = @TCL_DEFS@
     
    1111CFLAGS_DEBUG            = @CFLAGS_DEBUG@
    1212CFLAGS_OPTIMIZE         = @CFLAGS_OPTIMIZE@
     13CFLAGS_QUICHEEATERS     = @CFLAGS_QUICHEEATERS@
    1314
    1415TCL_CC                  = @TCL_CC@
  • trunk/base/Mk/dports.subdir.mk

    r2770 r7620  
    1515        done
    1616
     17test::
     18        @for subdir in $(SUBDIR); do\
     19                echo ===\> making $@ in ${DIRPRFX}$$subdir; \
     20                ( cd $$subdir && $(MAKE) DIRPRFX=${DIRPRFX}$$subdir/ $@) || exit 1; \
     21        done
     22
    1723install::
    1824        @for subdir in $(SUBDIR); do\
  • trunk/base/Mk/dports.tea.mk

    r6026 r7620  
    1212distclean:: clean
    1313
    14 install:: all
     14install:: all test
    1515        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${INSTALLDIR}
    1616        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ${SHLIB_NAME} ${INSTALLDIR}
  • trunk/base/configure

    r7296 r7620  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59 for OpenDarwin DarwinPorts 1.0.
     3# Generated by GNU Autoconf 2.57 for OpenDarwin DarwinPorts 1.0.
    44#
    55# Report bugs to <darwinports@opendarwin.org>.
    66#
    7 # Copyright (C) 2003 Free Software Foundation, Inc.
     7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
     8# Free Software Foundation, Inc.
    89# This configure script is free software; the Free Software Foundation
    910# gives unlimited permission to copy, distribute and modify it.
     
    2223  set -o posix
    2324fi
    24 DUALCASE=1; export DUALCASE # for MKS sh
    2525
    2626# Support unset when possible.
    27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    2828  as_unset=unset
    2929else
     
    4444  LC_TELEPHONE LC_TIME
    4545do
    46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     46  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    4747    eval $as_var=C; export $as_var
    4848  else
     
    221221  as_mkdir_p=:
    222222else
    223   test -d ./-p && rmdir ./-p
    224223  as_mkdir_p=false
    225224fi
     
    228227
    229228# Sed expression to map a string onto a valid CPP name.
    230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    231230
    232231# Sed expression to map a string onto a valid variable name.
    233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    234233
    235234
     
    314313#endif"
    315314
    316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE LN_S MTREE subdirs REPLACEMENT_PROGS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP CPP EGREP MD5_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDES TCLSH TCL_PACKAGE_DIR INCLUDES CFLAGS_DEBUG CFLAGS_OPTIMIZE TCL_DEFS STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS SHLIB_SUFFIX TCL_CC prefix_expanded PORTCONFIGDIR_EXPANDED localstatedir_expanded LIBOBJS LTLIBOBJS'
     315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE LN_S CFLAGS_QUICHEEATERS MTREE subdirs REPLACEMENT_PROGS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP CPP EGREP MD5_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDES TCLSH TCL_PACKAGE_DIR INCLUDES CFLAGS_DEBUG CFLAGS_OPTIMIZE TCL_DEFS STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS SHLIB_SUFFIX TCL_CC prefix_expanded PORTCONFIGDIR_EXPANDED localstatedir_expanded LIBOBJS LTLIBOBJS'
    317316ac_subst_files=''
    318317
     
    673672# Be sure to have absolute paths.
    674673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    675               localstatedir libdir includedir oldincludedir infodir mandir
     674              localstatedir libdir includedir oldincludedir infodir mandir
    676675do
    677676  eval ac_val=$`echo $ac_var`
     
    713712  ac_confdir=`(dirname "$0") 2>/dev/null ||
    714713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    715         X"$0" : 'X\(//\)[^/]' \| \
    716         X"$0" : 'X\(//\)$' \| \
    717         X"$0" : 'X\(/\)' \| \
    718         .     : '\(.\)' 2>/dev/null ||
     714        X"$0" : 'X\(//\)[^/]' \| \
     715        X"$0" : 'X\(//\)$' \| \
     716        X"$0" : 'X\(/\)' \| \
     717        .     : '\(.\)' 2>/dev/null ||
    719718echo X"$0" |
    720719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    808807Installation directories:
    809808  --prefix=PREFIX         install architecture-independent files in PREFIX
    810                           [$ac_default_prefix]
     809                          [$ac_default_prefix]
    811810  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    812                           [PREFIX]
     811                          [PREFIX]
    813812
    814813By default, \`make install' will install all the files in
     
    917916    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    918917esac
    919 
    920 # Do not use `cd foo && pwd` to compute absolute paths, because
    921 # the directories may not exist.
    922 case `pwd` in
    923 .) ac_abs_builddir="$ac_dir";;
    924 *)
    925   case "$ac_dir" in
    926   .) ac_abs_builddir=`pwd`;;
    927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    929   esac;;
    930 esac
    931 case $ac_abs_builddir in
    932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    933 *)
    934   case ${ac_top_builddir}. in
    935   .) ac_abs_top_builddir=$ac_abs_builddir;;
    936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    938   esac;;
    939 esac
    940 case $ac_abs_builddir in
    941 .) ac_abs_srcdir=$ac_srcdir;;
    942 *)
    943   case $ac_srcdir in
    944   .) ac_abs_srcdir=$ac_abs_builddir;;
    945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    947   esac;;
    948 esac
    949 case $ac_abs_builddir in
    950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    951 *)
    952   case $ac_top_srcdir in
    953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    956   esac;;
    957 esac
     918# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     919# absolute.
     920ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     921ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     922ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     923ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    958924
    959925    cd $ac_dir
     
    966932      $SHELL $ac_srcdir/configure  --help=recursive
    967933    elif test -f $ac_srcdir/configure.ac ||
    968            test -f $ac_srcdir/configure.in; then
     934           test -f $ac_srcdir/configure.in; then
    969935      echo
    970936      $ac_configure --help
     
    972938      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    973939    fi
    974     cd "$ac_popdir"
     940    cd $ac_popdir
    975941  done
    976942fi
     
    980946  cat <<\_ACEOF
    981947OpenDarwin DarwinPorts configure 1.0
    982 generated by GNU Autoconf 2.59
    983 
    984 Copyright (C) 2003 Free Software Foundation, Inc.
     948generated by GNU Autoconf 2.57
     949
     950Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
     951Free Software Foundation, Inc.
    985952This configure script is free software; the Free Software Foundation
    986953gives unlimited permission to copy, distribute and modify it.
     
    994961
    995962It was created by OpenDarwin DarwinPorts $as_me 1.0, which was
    996 generated by GNU Autoconf 2.59.  Invocation command line was
     963generated by GNU Autoconf 2.57.  Invocation command line was
    997964
    998965  $ $0 $@
     
    10711038      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    10721039      if test $ac_must_keep_next = true; then
    1073         ac_must_keep_next=false # Got value, back to normal.
     1040        ac_must_keep_next=false # Got value, back to normal.
    10741041      else
    1075         case $ac_arg in
    1076           *=* | --config-cache | -C | -disable-* | --disable-* \
    1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
    1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
    1079           | -with-* | --with-* | -without-* | --without-* | --x)
    1080             case "$ac_configure_args0 " in
    1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
    1082             esac
    1083             ;;
    1084           -* ) ac_must_keep_next=true ;;
    1085         esac
     1042        case $ac_arg in
     1043          *=* | --config-cache | -C | -disable-* | --disable-* \
     1044          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1045          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1046          | -with-* | --with-* | -without-* | --without-* | --x)
     1047            case "$ac_configure_args0 " in
     1048              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1049            esac
     1050            ;;
     1051          -* ) ac_must_keep_next=true ;;
     1052        esac
    10861053      fi
    10871054      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     
    11171084    *ac_space=\ *)
    11181085      sed -n \
    1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1086        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1087          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    11211088      ;;
    11221089    *)
    11231090      sed -n \
    1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1091        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    11251092      ;;
    11261093    esac;
     
    11511118      do
    11521119        eval ac_val=$`echo $ac_var`
    1153         echo "$ac_var='"'"'$ac_val'"'"'"
     1120        echo "$ac_var='"'"'$ac_val'"'"'"
    11541121      done | sort
    11551122      echo
     
    11701137    echo "$as_me: exit $exit_status"
    11711138  } >&5
    1172   rm -f core *.core &&
     1139  rm -f core core.* *.core &&
    11731140  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    11741141    exit $exit_status
     
    12501217ac_cache_corrupted=false
    12511218for ac_var in `(set) 2>&1 |
    1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1219               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    12531220  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    12541221  eval ac_new_set=\$ac_env_${ac_var}_set
     
    12671234    *)
    12681235      if test "x$ac_old_val" != "x$ac_new_val"; then
    1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1236        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    12701237echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1238        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    12721239echo "$as_me:   former value:  $ac_old_val" >&2;}
    1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1240        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    12741241echo "$as_me:   current value: $ac_new_val" >&2;}
    1275         ac_cache_corrupted=:
     1242        ac_cache_corrupted=:
    12761243      fi;;
    12771244  esac
     
    17771744
    17781745cat >conftest.$ac_ext <<_ACEOF
     1746#line $LINENO "configure"
    17791747/* confdefs.h.  */
    17801748_ACEOF
     
    17961764# It will help us diagnose broken compilers, and finding out an intuition
    17971765# of exeext.
    1798 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    1799 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1766echo "$as_me:$LINENO: checking for C compiler default output" >&5
     1767echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    18001768ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    18011769if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    18171785  case $ac_file in
    18181786    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    1819         ;;
     1787        ;;
    18201788    conftest.$ac_ext )
    1821         # This is the source file.
    1822         ;;
     1789        # This is the source file.
     1790        ;;
    18231791    [ab].out )
    1824         # We found the default executable, but exeext='' is most
    1825         # certainly right.
    1826         break;;
     1792        # We found the default executable, but exeext='' is most
     1793        # certainly right.
     1794        break;;
    18271795    *.* )
    1828         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1829         # FIXME: I believe we export ac_cv_exeext for Libtool,
    1830         # but it would be cool to find out if it's true.  Does anybody
    1831         # maintain Libtool? --akim.
    1832         export ac_cv_exeext
    1833         break;;
     1796        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1797        # FIXME: I believe we export ac_cv_exeext for Libtool,
     1798        # but it would be cool to find out if it's true.  Does anybody
     1799        # maintain Libtool? --akim.
     1800        export ac_cv_exeext
     1801        break;;
    18341802    * )
    1835         break;;
     1803        break;;
    18361804  esac
    18371805done
     
    19071875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    19081876    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    1909           export ac_cv_exeext
    1910           break;;
     1877          export ac_cv_exeext
     1878          break;;
    19111879    * ) break;;
    19121880  esac
     
    19331901else
    19341902  cat >conftest.$ac_ext <<_ACEOF
     1903#line $LINENO "configure"
    19351904/* confdefs.h.  */
    19361905_ACEOF
     
    19831952else
    19841953  cat >conftest.$ac_ext <<_ACEOF
     1954#line $LINENO "configure"
    19851955/* confdefs.h.  */
    19861956_ACEOF
     
    20021972rm -f conftest.$ac_objext
    20031973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2004   (eval $ac_compile) 2>conftest.er1
    2005   ac_status=$?
    2006   grep -v '^ *+' conftest.er1 >conftest.err
    2007   rm -f conftest.er1
    2008   cat conftest.err >&5
     1974  (eval $ac_compile) 2>&5
     1975  ac_status=$?
    20091976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20101977  (exit $ac_status); } &&
    2011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     1978         { ac_try='test -s conftest.$ac_objext'
    20121979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20131980  (eval $ac_try) 2>&5
    20141981  ac_status=$?
    20151982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2016   (exit $ac_status); }; } &&
    2017          { ac_try='test -s conftest.$ac_objext'
    2018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2019   (eval $ac_try) 2>&5
    2020   ac_status=$?
    2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20221983  (exit $ac_status); }; }; then
    20231984  ac_compiler_gnu=yes
     
    20281989ac_compiler_gnu=no
    20291990fi
    2030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1991rm -f conftest.$ac_objext conftest.$ac_ext
    20311992ac_cv_c_compiler_gnu=$ac_compiler_gnu
    20321993
     
    20442005else
    20452006  cat >conftest.$ac_ext <<_ACEOF
     2007#line $LINENO "configure"
    20462008/* confdefs.h.  */
    20472009_ACEOF
     
    20602022rm -f conftest.$ac_objext
    20612023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2062   (eval $ac_compile) 2>conftest.er1
    2063   ac_status=$?
    2064   grep -v '^ *+' conftest.er1 >conftest.err
    2065   rm -f conftest.er1
    2066   cat conftest.err >&5
     2024  (eval $ac_compile) 2>&5
     2025  ac_status=$?
    20672026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20682027  (exit $ac_status); } &&
    2069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2028         { ac_try='test -s conftest.$ac_objext'
    20702029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    20712030  (eval $ac_try) 2>&5
    20722031  ac_status=$?
    20732032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2074   (exit $ac_status); }; } &&
    2075          { ac_try='test -s conftest.$ac_objext'
    2076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2077   (eval $ac_try) 2>&5
    2078   ac_status=$?
    2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    20802033  (exit $ac_status); }; }; then
    20812034  ac_cv_prog_cc_g=yes
     
    20862039ac_cv_prog_cc_g=no
    20872040fi
    2088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2041rm -f conftest.$ac_objext conftest.$ac_ext
    20892042fi
    20902043echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     
    21132066ac_save_CC=$CC
    21142067cat >conftest.$ac_ext <<_ACEOF
     2068#line $LINENO "configure"
    21152069/* confdefs.h.  */
    21162070_ACEOF
     
    21402094  return s;
    21412095}
    2142 
    2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2144    function prototypes and stuff, but not '\xHH' hex character constants.
    2145    These don't provoke an error unfortunately, instead are silently treated
    2146    as 'x'.  The following induces an error, until -std1 is added to get
    2147    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2148    array size at least.  It's necessary to write '\x00'==0 to get something
    2149    that's true only with -std1.  */
    2150 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2151 
    21522096int test (int i, double x);
    21532097struct s1 {int (*f) (int a);};
     
    21762120  rm -f conftest.$ac_objext
    21772121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2178   (eval $ac_compile) 2>conftest.er1
    2179   ac_status=$?
    2180   grep -v '^ *+' conftest.er1 >conftest.err
    2181   rm -f conftest.er1
    2182   cat conftest.err >&5
     2122  (eval $ac_compile) 2>&5
     2123  ac_status=$?
    21832124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    21842125  (exit $ac_status); } &&
    2185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
    2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2187   (eval $ac_try) 2>&5
    2188   ac_status=$?
    2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2190   (exit $ac_status); }; } &&
    2191          { ac_try='test -s conftest.$ac_objext'
     2126         { ac_try='test -s conftest.$ac_objext'
    21922127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    21932128  (eval $ac_try) 2>&5
     
    22022137
    22032138fi
    2204 rm -f conftest.err conftest.$ac_objext
     2139rm -f conftest.$ac_objext
    22052140done
    22062141rm -f conftest.$ac_ext conftest.$ac_objext
     
    22302165rm -f conftest.$ac_objext
    22312166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2232   (eval $ac_compile) 2>conftest.er1
    2233   ac_status=$?
    2234   grep -v '^ *+' conftest.er1 >conftest.err
    2235   rm -f conftest.er1
    2236   cat conftest.err >&5
     2167  (eval $ac_compile) 2>&5
     2168  ac_status=$?
    22372169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22382170  (exit $ac_status); } &&
    2239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2171         { ac_try='test -s conftest.$ac_objext'
    22402172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22412173  (eval $ac_try) 2>&5
    22422174  ac_status=$?
    22432175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2244   (exit $ac_status); }; } &&
    2245          { ac_try='test -s conftest.$ac_objext'
    2246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2247   (eval $ac_try) 2>&5
    2248   ac_status=$?
    2249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22502176  (exit $ac_status); }; }; then
    22512177  for ac_declaration in \
    2252    '' \
     2178   ''\
     2179   '#include <stdlib.h>' \
    22532180   'extern "C" void std::exit (int) throw (); using std::exit;' \
    22542181   'extern "C" void std::exit (int); using std::exit;' \
     
    22582185do
    22592186  cat >conftest.$ac_ext <<_ACEOF
     2187#line $LINENO "configure"
    22602188/* confdefs.h.  */
    22612189_ACEOF
     
    22632191cat >>conftest.$ac_ext <<_ACEOF
    22642192/* end confdefs.h.  */
     2193#include <stdlib.h>
    22652194$ac_declaration
    2266 #include <stdlib.h>
    22672195int
    22682196main ()
     
    22752203rm -f conftest.$ac_objext
    22762204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2277   (eval $ac_compile) 2>conftest.er1
    2278   ac_status=$?
    2279   grep -v '^ *+' conftest.er1 >conftest.err
    2280   rm -f conftest.er1
    2281   cat conftest.err >&5
     2205  (eval $ac_compile) 2>&5
     2206  ac_status=$?
    22822207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22832208  (exit $ac_status); } &&
    2284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2209         { ac_try='test -s conftest.$ac_objext'
    22852210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    22862211  (eval $ac_try) 2>&5
    22872212  ac_status=$?
    22882213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2289   (exit $ac_status); }; } &&
    2290          { ac_try='test -s conftest.$ac_objext'
    2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2292   (eval $ac_try) 2>&5
    2293   ac_status=$?
    2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    22952214  (exit $ac_status); }; }; then
    22962215  :
     
    23012220continue
    23022221fi
    2303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2222rm -f conftest.$ac_objext conftest.$ac_ext
    23042223  cat >conftest.$ac_ext <<_ACEOF
     2224#line $LINENO "configure"
    23052225/* confdefs.h.  */
    23062226_ACEOF
     
    23192239rm -f conftest.$ac_objext
    23202240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2321   (eval $ac_compile) 2>conftest.er1
    2322   ac_status=$?
    2323   grep -v '^ *+' conftest.er1 >conftest.err
    2324   rm -f conftest.er1
    2325   cat conftest.err >&5
     2241  (eval $ac_compile) 2>&5
     2242  ac_status=$?
    23262243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23272244  (exit $ac_status); } &&
    2328          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2245         { ac_try='test -s conftest.$ac_objext'
    23292246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    23302247  (eval $ac_try) 2>&5
    23312248  ac_status=$?
    23322249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2333   (exit $ac_status); }; } &&
    2334          { ac_try='test -s conftest.$ac_objext'
    2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2336   (eval $ac_try) 2>&5
    2337   ac_status=$?
    2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23392250  (exit $ac_status); }; }; then
    23402251  break
     
    23442255
    23452256fi
    2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2257rm -f conftest.$ac_objext conftest.$ac_ext
    23472258done
    23482259rm -f conftest*
     
    23582269
    23592270fi
    2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2271rm -f conftest.$ac_objext conftest.$ac_ext
    23612272ac_ext=c
    23622273ac_cpp='$CPP $CPPFLAGS'
     
    23762287# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    23772288# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2378 # OS/2's system install, which has a completely different semantic
    23792289# ./install, which can be erroneously created by make from ./install.sh.
    23802290echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     
    23932303  ./ | .// | /cC/* | \
    23942304  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2395   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    23962305  /usr/ucb/* ) ;;
    23972306  *)
     
    24012310    for ac_prog in ginstall scoinst install; do
    24022311      for ac_exec_ext in '' $ac_executable_extensions; do
    2403         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2404           if test $ac_prog = install &&
    2405             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2406             # AIX install.  It has an incompatible calling convention.
    2407             :
    2408           elif test $ac_prog = install &&
    2409             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2410             # program-specific install script used by HP pwplus--don't use.
    2411             :
    2412           else
    2413             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2414             break 3
    2415           fi
    2416         fi
     2312        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2313          if test $ac_prog = install &&
     2314            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2315            # AIX install.  It has an incompatible calling convention.
     2316            :
     2317          elif test $ac_prog = install &&
     2318            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2319            # program-specific install script used by HP pwplus--don't use.
     2320            :
     2321          else
     2322            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2323            break 3
     2324          fi
     2325        fi
    24172326      done
    24182327    done
     
    24462355echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    24472356echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2448 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2357set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    24492358if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    24502359  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    24822391  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    24832392echo "${ECHO_T}no, using $LN_S" >&6
     2393fi
     2394
     2395
     2396# Quiche eaters options.
     2397if test x$GCC = xyes; then
     2398        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
    24842399fi
    24852400
     
    26942609  # not just through cpp. "Syntax error" is here to catch this case.
    26952610  cat >conftest.$ac_ext <<_ACEOF
     2611#line $LINENO "configure"
    26962612/* confdefs.h.  */
    26972613_ACEOF
     
    27042620# include <assert.h>
    27052621#endif
    2706                      Syntax error
     2622                     Syntax error
    27072623_ACEOF
    27082624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     
    27162632  if test -s conftest.err; then
    27172633    ac_cpp_err=$ac_c_preproc_warn_flag
    2718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    27192634  else
    27202635    ac_cpp_err=
     
    27372652  # can be detected and how.
    27382653  cat >conftest.$ac_ext <<_ACEOF
     2654#line $LINENO "configure"
    27392655/* confdefs.h.  */
    27402656_ACEOF
     
    27542670  if test -s conftest.err; then
    27552671    ac_cpp_err=$ac_c_preproc_warn_flag
    2756     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    27572672  else
    27582673    ac_cpp_err=
     
    28012716  # not just through cpp. "Syntax error" is here to catch this case.
    28022717  cat >conftest.$ac_ext <<_ACEOF
     2718#line $LINENO "configure"
    28032719/* confdefs.h.  */
    28042720_ACEOF
     
    28112727# include <assert.h>
    28122728#endif
    2813                      Syntax error
     2729                     Syntax error
    28142730_ACEOF
    28152731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     
    28232739  if test -s conftest.err; then
    28242740    ac_cpp_err=$ac_c_preproc_warn_flag
    2825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    28262741  else
    28272742    ac_cpp_err=
     
    28442759  # can be detected and how.
    28452760  cat >conftest.$ac_ext <<_ACEOF
     2761#line $LINENO "configure"
    28462762/* confdefs.h.  */
    28472763_ACEOF
     
    28612777  if test -s conftest.err; then
    28622778    ac_cpp_err=$ac_c_preproc_warn_flag
    2863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    28642779  else
    28652780    ac_cpp_err=
     
    29222837else
    29232838  cat >conftest.$ac_ext <<_ACEOF
     2839#line $LINENO "configure"
    29242840/* confdefs.h.  */
    29252841_ACEOF
     
    29422858rm -f conftest.$ac_objext
    29432859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2944   (eval $ac_compile) 2>conftest.er1
    2945   ac_status=$?
    2946   grep -v '^ *+' conftest.er1 >conftest.err
    2947   rm -f conftest.er1
    2948   cat conftest.err >&5
     2860  (eval $ac_compile) 2>&5
     2861  ac_status=$?
    29492862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29502863  (exit $ac_status); } &&
    2951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     2864         { ac_try='test -s conftest.$ac_objext'
    29522865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    29532866  (eval $ac_try) 2>&5
    29542867  ac_status=$?
    29552868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2956   (exit $ac_status); }; } &&
    2957          { ac_try='test -s conftest.$ac_objext'
    2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2959   (eval $ac_try) 2>&5
    2960   ac_status=$?
    2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    29622869  (exit $ac_status); }; }; then
    29632870  ac_cv_header_stdc=yes
     
    29682875ac_cv_header_stdc=no
    29692876fi
    2970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2877rm -f conftest.$ac_objext conftest.$ac_ext
    29712878
    29722879if test $ac_cv_header_stdc = yes; then
    29732880  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    29742881  cat >conftest.$ac_ext <<_ACEOF
     2882#line $LINENO "configure"
    29752883/* confdefs.h.  */
    29762884_ACEOF
     
    29942902  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    29952903  cat >conftest.$ac_ext <<_ACEOF
     2904#line $LINENO "configure"
    29962905/* confdefs.h.  */
    29972906_ACEOF
     
    30182927else
    30192928  cat >conftest.$ac_ext <<_ACEOF
     2929#line $LINENO "configure"
    30202930/* confdefs.h.  */
    30212931_ACEOF
     
    30292939#else
    30302940# define ISLOWER(c) \
    3031                    (('a' <= (c) && (c) <= 'i') \
    3032                      || ('j' <= (c) && (c) <= 'r') \
    3033                      || ('s' <= (c) && (c) <= 'z'))
     2941                   (('a' <= (c) && (c) <= 'i') \
     2942                     || ('j' <= (c) && (c) <= 'r') \
     2943                     || ('s' <= (c) && (c) <= 'z'))
    30342944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    30352945#endif
     
    30422952  for (i = 0; i < 256; i++)
    30432953    if (XOR (islower (i), ISLOWER (i))
    3044         || toupper (i) != TOUPPER (i))
     2954        || toupper (i) != TOUPPER (i))
    30452955      exit(2);
    30462956  exit (0);
     
    30672977ac_cv_header_stdc=no
    30682978fi
    3069 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     2979rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    30702980fi
    30712981fi
     
    30953005else
    30963006  cat >conftest.$ac_ext <<_ACEOF
     3007#line $LINENO "configure"
    30973008/* confdefs.h.  */
    30983009_ACEOF
     
    31143025rm -f conftest.$ac_objext
    31153026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3116   (eval $ac_compile) 2>conftest.er1
    3117   ac_status=$?
    3118   grep -v '^ *+' conftest.er1 >conftest.err
    3119   rm -f conftest.er1
    3120   cat conftest.err >&5
     3027  (eval $ac_compile) 2>&5
     3028  ac_status=$?
    31213029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31223030  (exit $ac_status); } &&
    3123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3031         { ac_try='test -s conftest.$ac_objext'
    31243032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    31253033  (eval $ac_try) 2>&5
    31263034  ac_status=$?
    31273035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3128   (exit $ac_status); }; } &&
    3129          { ac_try='test -s conftest.$ac_objext'
    3130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3131   (eval $ac_try) 2>&5
    3132   ac_status=$?
    3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31343036  (exit $ac_status); }; }; then
    31353037  eval "$as_ac_Header=yes"
     
    31403042eval "$as_ac_Header=no"
    31413043fi
    3142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3044rm -f conftest.$ac_objext conftest.$ac_ext
    31433045fi
    31443046echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    31633065ac_cv_search_opendir=no
    31643066cat >conftest.$ac_ext <<_ACEOF
     3067#line $LINENO "configure"
    31653068/* confdefs.h.  */
    31663069_ACEOF
     
    31863089rm -f conftest.$ac_objext conftest$ac_exeext
    31873090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3188   (eval $ac_link) 2>conftest.er1
    3189   ac_status=$?
    3190   grep -v '^ *+' conftest.er1 >conftest.err
    3191   rm -f conftest.er1
    3192   cat conftest.err >&5
     3091  (eval $ac_link) 2>&5
     3092  ac_status=$?
    31933093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    31943094  (exit $ac_status); } &&
    3195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3095         { ac_try='test -s conftest$ac_exeext'
    31963096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    31973097  (eval $ac_try) 2>&5
    31983098  ac_status=$?
    31993099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3200   (exit $ac_status); }; } &&
    3201          { ac_try='test -s conftest$ac_exeext'
    3202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3203   (eval $ac_try) 2>&5
    3204   ac_status=$?
    3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32063100  (exit $ac_status); }; }; then
    32073101  ac_cv_search_opendir="none required"
     
    32113105
    32123106fi
    3213 rm -f conftest.err conftest.$ac_objext \
    3214       conftest$ac_exeext conftest.$ac_ext
     3107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    32153108if test "$ac_cv_search_opendir" = no; then
    32163109  for ac_lib in dir; do
    32173110    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    32183111    cat >conftest.$ac_ext <<_ACEOF
     3112#line $LINENO "configure"
    32193113/* confdefs.h.  */
    32203114_ACEOF
     
    32403134rm -f conftest.$ac_objext conftest$ac_exeext
    32413135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3242   (eval $ac_link) 2>conftest.er1
    3243   ac_status=$?
    3244   grep -v '^ *+' conftest.er1 >conftest.err
    3245   rm -f conftest.er1
    3246   cat conftest.err >&5
     3136  (eval $ac_link) 2>&5
     3137  ac_status=$?
    32473138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    32483139  (exit $ac_status); } &&
    3249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
    3250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3251   (eval $ac_try) 2>&5
    3252   ac_status=$?
    3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3254   (exit $ac_status); }; } &&
    3255          { ac_try='test -s conftest$ac_exeext'
     3140         { ac_try='test -s conftest$ac_exeext'
    32563141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    32573142  (eval $ac_try) 2>&5
     
    32663151
    32673152fi
    3268 rm -f conftest.err conftest.$ac_objext \
    3269       conftest$ac_exeext conftest.$ac_ext
     3153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    32703154  done
    32713155fi
     
    32883172ac_cv_search_opendir=no
    32893173cat >conftest.$ac_ext <<_ACEOF
     3174#line $LINENO "configure"
    32903175/* confdefs.h.  */
    32913176_ACEOF
     
    33113196rm -f conftest.$ac_objext conftest$ac_exeext
    33123197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3313   (eval $ac_link) 2>conftest.er1
    3314   ac_status=$?
    3315   grep -v '^ *+' conftest.er1 >conftest.err
    3316   rm -f conftest.er1
    3317   cat conftest.err >&5
     3198  (eval $ac_link) 2>&5
     3199  ac_status=$?
    33183200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33193201  (exit $ac_status); } &&
    3320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3202         { ac_try='test -s conftest$ac_exeext'
    33213203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    33223204  (eval $ac_try) 2>&5
    33233205  ac_status=$?
    33243206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3325   (exit $ac_status); }; } &&
    3326          { ac_try='test -s conftest$ac_exeext'
    3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3328   (eval $ac_try) 2>&5
    3329   ac_status=$?
    3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33313207  (exit $ac_status); }; }; then
    33323208  ac_cv_search_opendir="none required"
     
    33363212
    33373213fi
    3338 rm -f conftest.err conftest.$ac_objext \
    3339       conftest$ac_exeext conftest.$ac_ext
     3214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    33403215if test "$ac_cv_search_opendir" = no; then
    33413216  for ac_lib in x; do
    33423217    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
    33433218    cat >conftest.$ac_ext <<_ACEOF
     3219#line $LINENO "configure"
    33443220/* confdefs.h.  */
    33453221_ACEOF
     
    33653241rm -f conftest.$ac_objext conftest$ac_exeext
    33663242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3367   (eval $ac_link) 2>conftest.er1
    3368   ac_status=$?
    3369   grep -v '^ *+' conftest.er1 >conftest.err
    3370   rm -f conftest.er1
    3371   cat conftest.err >&5
     3243  (eval $ac_link) 2>&5
     3244  ac_status=$?
    33723245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    33733246  (exit $ac_status); } &&
    3374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
    3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3376   (eval $ac_try) 2>&5
    3377   ac_status=$?
    3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3379   (exit $ac_status); }; } &&
    3380          { ac_try='test -s conftest$ac_exeext'
     3247         { ac_try='test -s conftest$ac_exeext'
    33813248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    33823249  (eval $ac_try) 2>&5
     
    33913258
    33923259fi
    3393 rm -f conftest.err conftest.$ac_objext \
    3394       conftest$ac_exeext conftest.$ac_ext
     3260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    33953261  done
    33963262fi
     
    34123278else
    34133279  cat >conftest.$ac_ext <<_ACEOF
     3280#line $LINENO "configure"
    34143281/* confdefs.h.  */
    34153282_ACEOF
     
    34383305rm -f conftest.$ac_objext
    34393306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3440   (eval $ac_compile) 2>conftest.er1
    3441   ac_status=$?
    3442   grep -v '^ *+' conftest.er1 >conftest.err
    3443   rm -f conftest.er1
    3444   cat conftest.err >&5
     3307  (eval $ac_compile) 2>&5
     3308  ac_status=$?
    34453309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34463310  (exit $ac_status); } &&
    3447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3311         { ac_try='test -s conftest.$ac_objext'
    34483312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    34493313  (eval $ac_try) 2>&5
    34503314  ac_status=$?
    34513315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3452   (exit $ac_status); }; } &&
    3453          { ac_try='test -s conftest.$ac_objext'
    3454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3455   (eval $ac_try) 2>&5
    3456   ac_status=$?
    3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    34583316  (exit $ac_status); }; }; then
    34593317  ac_cv_header_sys_wait_h=yes
     
    34643322ac_cv_header_sys_wait_h=no
    34653323fi
    3466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3324rm -f conftest.$ac_objext conftest.$ac_ext
    34673325fi
    34683326echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
     
    34823340else
    34833341  cat >conftest.$ac_ext <<_ACEOF
     3342#line $LINENO "configure"
    34843343/* confdefs.h.  */
    34853344_ACEOF
     
    35453404
    35463405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    3547                   inttypes.h stdint.h unistd.h
     3406                  inttypes.h stdint.h unistd.h
    35483407do
    35493408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    35543413else
    35553414  cat >conftest.$ac_ext <<_ACEOF
     3415#line $LINENO "configure"
    35563416/* confdefs.h.  */
    35573417_ACEOF
     
    35653425rm -f conftest.$ac_objext
    35663426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3567   (eval $ac_compile) 2>conftest.er1
    3568   ac_status=$?
    3569   grep -v '^ *+' conftest.er1 >conftest.err
    3570   rm -f conftest.er1
    3571   cat conftest.err >&5
     3427  (eval $ac_compile) 2>&5
     3428  ac_status=$?
    35723429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35733430  (exit $ac_status); } &&
    3574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3431         { ac_try='test -s conftest.$ac_objext'
    35753432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    35763433  (eval $ac_try) 2>&5
    35773434  ac_status=$?
    35783435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3579   (exit $ac_status); }; } &&
    3580          { ac_try='test -s conftest.$ac_objext'
    3581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3582   (eval $ac_try) 2>&5
    3583   ac_status=$?
    3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    35853436  (exit $ac_status); }; }; then
    35863437  eval "$as_ac_Header=yes"
     
    35913442eval "$as_ac_Header=no"
    35923443fi
    3593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3444rm -f conftest.$ac_objext conftest.$ac_ext
    35943445fi
    35953446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    36293480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    36303481cat >conftest.$ac_ext <<_ACEOF
     3482#line $LINENO "configure"
    36313483/* confdefs.h.  */
    36323484_ACEOF
     
    36393491rm -f conftest.$ac_objext
    36403492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3641   (eval $ac_compile) 2>conftest.er1
    3642   ac_status=$?
    3643   grep -v '^ *+' conftest.er1 >conftest.err
    3644   rm -f conftest.er1
    3645   cat conftest.err >&5
     3493  (eval $ac_compile) 2>&5
     3494  ac_status=$?
    36463495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36473496  (exit $ac_status); } &&
    3648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3497         { ac_try='test -s conftest.$ac_objext'
    36493498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    36503499  (eval $ac_try) 2>&5
    36513500  ac_status=$?
    36523501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3653   (exit $ac_status); }; } &&
    3654          { ac_try='test -s conftest.$ac_objext'
    3655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3656   (eval $ac_try) 2>&5
    3657   ac_status=$?
    3658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    36593502  (exit $ac_status); }; }; then
    36603503  ac_header_compiler=yes
     
    36653508ac_header_compiler=no
    36663509fi
    3667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3510rm -f conftest.$ac_objext conftest.$ac_ext
    36683511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    36693512echo "${ECHO_T}$ac_header_compiler" >&6
     
    36733516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    36743517cat >conftest.$ac_ext <<_ACEOF
     3518#line $LINENO "configure"
    36753519/* confdefs.h.  */
    36763520_ACEOF
     
    36903534  if test -s conftest.err; then
    36913535    ac_cpp_err=$ac_c_preproc_warn_flag
    3692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    36933536  else
    36943537    ac_cpp_err=
     
    37103553
    37113554# So?  What about this header?
    3712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3713   yes:no: )
     3555case $ac_header_compiler:$ac_header_preproc in
     3556  yes:no )
    37143557    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    37153558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    3717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    3718     ac_header_preproc=yes
     3559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     3560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     3561    (
     3562      cat <<\_ASBOX
     3563## ------------------------------------ ##
     3564## Report this to bug-autoconf@gnu.org. ##
     3565## ------------------------------------ ##
     3566_ASBOX
     3567    ) |
     3568      sed "s/^/$as_me: WARNING:     /" >&2
    37193569    ;;
    3720   no:yes:* )
     3570  no:yes )
    37213571    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    37223572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    3723     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    3724 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    3725     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    3726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    3727     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    3728 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     3573    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     3574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    37293575    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    37303576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    3731     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    3732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    37333577    (
    37343578      cat <<\_ASBOX
    3735 ## ----------------------------------------- ##
    3736 ## Report this to darwinports@opendarwin.org ##
    3737 ## ----------------------------------------- ##
     3579## ------------------------------------ ##
     3580## Report this to bug-autoconf@gnu.org. ##
     3581## ------------------------------------ ##
    37383582_ASBOX
    37393583    ) |
     
    37463590  echo $ECHO_N "(cached) $ECHO_C" >&6
    37473591else
    3748   eval "$as_ac_Header=\$ac_header_preproc"
     3592  eval "$as_ac_Header=$ac_header_preproc"
    37493593fi
    37503594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    37743618else
    37753619  cat >conftest.$ac_ext <<_ACEOF
     3620#line $LINENO "configure"
    37763621/* confdefs.h.  */
    37773622_ACEOF
     
    38133658ac_cv_func_closedir_void=yes
    38143659fi
    3815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3660rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    38163661fi
    38173662fi
     
    38323677else
    38333678  cat >conftest.$ac_ext <<_ACEOF
     3679#line $LINENO "configure"
    38343680/* confdefs.h.  */
    38353681_ACEOF
     
    38513697rm -f conftest.$ac_objext
    38523698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3853   (eval $ac_compile) 2>conftest.er1
    3854   ac_status=$?
    3855   grep -v '^ *+' conftest.er1 >conftest.err
    3856   rm -f conftest.er1
    3857   cat conftest.err >&5
     3699  (eval $ac_compile) 2>&5
     3700  ac_status=$?
    38583701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38593702  (exit $ac_status); } &&
    3860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3703         { ac_try='test -s conftest.$ac_objext'
    38613704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    38623705  (eval $ac_try) 2>&5
    38633706  ac_status=$?
    38643707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3865   (exit $ac_status); }; } &&
    3866          { ac_try='test -s conftest.$ac_objext'
    3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3868   (eval $ac_try) 2>&5
    3869   ac_status=$?
    3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    38713708  (exit $ac_status); }; }; then
    38723709  ac_cv_type_pid_t=yes
     
    38773714ac_cv_type_pid_t=no
    38783715fi
    3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3716rm -f conftest.$ac_objext conftest.$ac_ext
    38803717fi
    38813718echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
     
    39093746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    39103747cat >conftest.$ac_ext <<_ACEOF
     3748#line $LINENO "configure"
    39113749/* confdefs.h.  */
    39123750_ACEOF
     
    39193757rm -f conftest.$ac_objext
    39203758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3921   (eval $ac_compile) 2>conftest.er1
    3922   ac_status=$?
    3923   grep -v '^ *+' conftest.er1 >conftest.err
    3924   rm -f conftest.er1
    3925   cat conftest.err >&5
     3759  (eval $ac_compile) 2>&5
     3760  ac_status=$?
    39263761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39273762  (exit $ac_status); } &&
    3928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3763         { ac_try='test -s conftest.$ac_objext'
    39293764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    39303765  (eval $ac_try) 2>&5
    39313766  ac_status=$?
    39323767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3933   (exit $ac_status); }; } &&
    3934          { ac_try='test -s conftest.$ac_objext'
    3935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3936   (eval $ac_try) 2>&5
    3937   ac_status=$?
    3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    39393768  (exit $ac_status); }; }; then
    39403769  ac_header_compiler=yes
     
    39453774ac_header_compiler=no
    39463775fi
    3947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3776rm -f conftest.$ac_objext conftest.$ac_ext
    39483777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    39493778echo "${ECHO_T}$ac_header_compiler" >&6
     
    39533782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    39543783cat >conftest.$ac_ext <<_ACEOF
     3784#line $LINENO "configure"
    39553785/* confdefs.h.  */
    39563786_ACEOF
     
    39703800  if test -s conftest.err; then
    39713801    ac_cpp_err=$ac_c_preproc_warn_flag
    3972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    39733802  else
    39743803    ac_cpp_err=
     
    39903819
    39913820# So?  What about this header?
    3992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    3993   yes:no: )
     3821case $ac_header_compiler:$ac_header_preproc in
     3822  yes:no )
    39943823    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    39953824echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    3996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    3997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    3998     ac_header_preproc=yes
     3825    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     3826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     3827    (
     3828      cat <<\_ASBOX
     3829## ------------------------------------ ##
     3830## Report this to bug-autoconf@gnu.org. ##
     3831## ------------------------------------ ##
     3832_ASBOX
     3833    ) |
     3834      sed "s/^/$as_me: WARNING:     /" >&2
    39993835    ;;
    4000   no:yes:* )
     3836  no:yes )
    40013837    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    40023838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     3839    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     3840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    40093841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    40103842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    40133843    (
    40143844      cat <<\_ASBOX
    4015 ## ----------------------------------------- ##
    4016 ## Report this to darwinports@opendarwin.org ##
    4017 ## ----------------------------------------- ##
     3845## ------------------------------------ ##
     3846## Report this to bug-autoconf@gnu.org. ##
     3847## ------------------------------------ ##
    40183848_ASBOX
    40193849    ) |
     
    40263856  echo $ECHO_N "(cached) $ECHO_C" >&6
    40273857else
    4028   eval "$as_ac_Header=\$ac_header_preproc"
     3858  eval "$as_ac_Header=$ac_header_preproc"
    40293859fi
    40303860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    40523882else
    40533883  cat >conftest.$ac_ext <<_ACEOF
     3884#line $LINENO "configure"
    40543885/* confdefs.h.  */
    40553886_ACEOF
     
    40573888cat >>conftest.$ac_ext <<_ACEOF
    40583889/* end confdefs.h.  */
    4059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    4060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    4061 #define $ac_func innocuous_$ac_func
    4062 
    40633890/* System header to define __stub macros and hopefully few prototypes,
    40643891    which can conflict with char $ac_func (); below.
    40653892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    40663893    <limits.h> exists even on freestanding compilers.  */
    4067 
    40683894#ifdef __STDC__
    40693895# include <limits.h>
     
    40713897# include <assert.h>
    40723898#endif
    4073 
    4074 #undef $ac_func
    4075 
    40763899/* Override any gcc2 internal prototype to avoid an error.  */
    40773900#ifdef __cplusplus
     
    41043927rm -f conftest.$ac_objext conftest$ac_exeext
    41053928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4106   (eval $ac_link) 2>conftest.er1
    4107   ac_status=$?
    4108   grep -v '^ *+' conftest.er1 >conftest.err
    4109   rm -f conftest.er1
    4110   cat conftest.err >&5
     3929  (eval $ac_link) 2>&5
     3930  ac_status=$?
    41113931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41123932  (exit $ac_status); } &&
    4113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     3933         { ac_try='test -s conftest$ac_exeext'
    41143934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    41153935  (eval $ac_try) 2>&5
    41163936  ac_status=$?
    41173937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4118   (exit $ac_status); }; } &&
    4119          { ac_try='test -s conftest$ac_exeext'
    4120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4121   (eval $ac_try) 2>&5
    4122   ac_status=$?
    4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    41243938  (exit $ac_status); }; }; then
    41253939  eval "$as_ac_var=yes"
     
    41303944eval "$as_ac_var=no"
    41313945fi
    4132 rm -f conftest.err conftest.$ac_objext \
    4133       conftest$ac_exeext conftest.$ac_ext
     3946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    41343947fi
    41353948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     
    41613974      int main ()
    41623975      {
    4163         if (fork() < 0)
    4164           exit (1);
    4165         exit (0);
     3976        if (fork() < 0)
     3977          exit (1);
     3978        exit (0);
    41663979      }
    41673980_ACEOF
     
    41863999ac_cv_func_fork_works=no
    41874000fi
    4188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4001rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    41894002fi
    41904003fi
     
    42194032else
    42204033  cat >conftest.$ac_ext <<_ACEOF
     4034#line $LINENO "configure"
    42214035/* confdefs.h.  */
    42224036_ACEOF
     
    43404154ac_cv_func_vfork_works=no
    43414155fi
    4342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4156rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    43434157fi
    43444158fi
     
    43484162fi;
    43494163if test "x$ac_cv_func_fork_works" = xcross; then
    4350   ac_cv_func_vfork_works=$ac_cv_func_vfork
     4164  ac_cv_func_vfork_works=ac_cv_func_vfork
    43514165  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
    43524166echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
     
    43804194else
    43814195  cat >conftest.$ac_ext <<_ACEOF
     4196#line $LINENO "configure"
    43824197/* confdefs.h.  */
    43834198_ACEOF
     
    43994214rm -f conftest.$ac_objext
    44004215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4401   (eval $ac_compile) 2>conftest.er1
    4402   ac_status=$?
    4403   grep -v '^ *+' conftest.er1 >conftest.err
    4404   rm -f conftest.er1
    4405   cat conftest.err >&5
     4216  (eval $ac_compile) 2>&5
     4217  ac_status=$?
    44064218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44074219  (exit $ac_status); } &&
    4408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4220         { ac_try='test -s conftest.$ac_objext'
    44094221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    44104222  (eval $ac_try) 2>&5
    44114223  ac_status=$?
    44124224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4413   (exit $ac_status); }; } &&
    4414          { ac_try='test -s conftest.$ac_objext'
    4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4416   (eval $ac_try) 2>&5
    4417   ac_status=$?
    4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    44194225  (exit $ac_status); }; }; then
    44204226  ac_cv_have_decl_strerror_r=yes
     
    44254231ac_cv_have_decl_strerror_r=no
    44264232fi
    4427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4233rm -f conftest.$ac_objext conftest.$ac_ext
    44284234fi
    44294235echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
     
    44554261else
    44564262  cat >conftest.$ac_ext <<_ACEOF
     4263#line $LINENO "configure"
    44574264/* confdefs.h.  */
    44584265_ACEOF
     
    44604267cat >>conftest.$ac_ext <<_ACEOF
    44614268/* end confdefs.h.  */
    4462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    4463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    4464 #define $ac_func innocuous_$ac_func
    4465 
    44664269/* System header to define __stub macros and hopefully few prototypes,
    44674270    which can conflict with char $ac_func (); below.
    44684271    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    44694272    <limits.h> exists even on freestanding compilers.  */
    4470 
    44714273#ifdef __STDC__
    44724274# include <limits.h>
     
    44744276# include <assert.h>
    44754277#endif
    4476 
    4477 #undef $ac_func
    4478 
    44794278/* Override any gcc2 internal prototype to avoid an error.  */
    44804279#ifdef __cplusplus
     
    45074306rm -f conftest.$ac_objext conftest$ac_exeext
    45084307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4509   (eval $ac_link) 2>conftest.er1
    4510   ac_status=$?
    4511   grep -v '^ *+' conftest.er1 >conftest.err
    4512   rm -f conftest.er1
    4513   cat conftest.err >&5
     4308  (eval $ac_link) 2>&5
     4309  ac_status=$?
    45144310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45154311  (exit $ac_status); } &&
    4516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4312         { ac_try='test -s conftest$ac_exeext'
    45174313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    45184314  (eval $ac_try) 2>&5
    45194315  ac_status=$?
    45204316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4521   (exit $ac_status); }; } &&
    4522          { ac_try='test -s conftest$ac_exeext'
    4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4524   (eval $ac_try) 2>&5
    4525   ac_status=$?
    4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45274317  (exit $ac_status); }; }; then
    45284318  eval "$as_ac_var=yes"
     
    45334323eval "$as_ac_var=no"
    45344324fi
    4535 rm -f conftest.err conftest.$ac_objext \
    4536       conftest$ac_exeext conftest.$ac_ext
     4325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    45374326fi
    45384327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     
    45554344    if test $ac_cv_have_decl_strerror_r = yes; then
    45564345      cat >conftest.$ac_ext <<_ACEOF
     4346#line $LINENO "configure"
    45574347/* confdefs.h.  */
    45584348_ACEOF
     
    45754365rm -f conftest.$ac_objext
    45764366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4577   (eval $ac_compile) 2>conftest.er1
    4578   ac_status=$?
    4579   grep -v '^ *+' conftest.er1 >conftest.err
    4580   rm -f conftest.er1
    4581   cat conftest.err >&5
     4367  (eval $ac_compile) 2>&5
     4368  ac_status=$?
    45824369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45834370  (exit $ac_status); } &&
    4584          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4371         { ac_try='test -s conftest.$ac_objext'
    45854372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    45864373  (eval $ac_try) 2>&5
    45874374  ac_status=$?
    45884375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4589   (exit $ac_status); }; } &&
    4590          { ac_try='test -s conftest.$ac_objext'
    4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4592   (eval $ac_try) 2>&5
    4593   ac_status=$?
    4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45954376  (exit $ac_status); }; }; then
    45964377  ac_cv_func_strerror_r_char_p=yes
     
    46004381
    46014382fi
    4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4383rm -f conftest.$ac_objext conftest.$ac_ext
    46034384    else
    46044385      # strerror_r is not declared.  Choose between
     
    46124393else
    46134394  cat >conftest.$ac_ext <<_ACEOF
     4395#line $LINENO "configure"
    46144396/* confdefs.h.  */
    46154397_ACEOF
     
    46474429
    46484430fi
    4649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4431rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    46504432fi
    46514433    fi
     
    46734455
    46744456
    4675 for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode
     4457
     4458
     4459for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp
    46764460do
    46774461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
     
    46824466else
    46834467  cat >conftest.$ac_ext <<_ACEOF
     4468#line $LINENO "configure"
    46844469/* confdefs.h.  */
    46854470_ACEOF
     
    46874472cat >>conftest.$ac_ext <<_ACEOF
    46884473/* end confdefs.h.  */
    4689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
    4690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    4691 #define $ac_func innocuous_$ac_func
    4692 
    46934474/* System header to define __stub macros and hopefully few prototypes,
    46944475    which can conflict with char $ac_func (); below.
    46954476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    46964477    <limits.h> exists even on freestanding compilers.  */
    4697 
    46984478#ifdef __STDC__
    46994479# include <limits.h>
     
    47014481# include <assert.h>
    47024482#endif
    4703 
    4704 #undef $ac_func
    4705 
    47064483/* Override any gcc2 internal prototype to avoid an error.  */
    47074484#ifdef __cplusplus
     
    47344511rm -f conftest.$ac_objext conftest$ac_exeext
    47354512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4736   (eval $ac_link) 2>conftest.er1
    4737   ac_status=$?
    4738   grep -v '^ *+' conftest.er1 >conftest.err
    4739   rm -f conftest.er1
    4740   cat conftest.err >&5
     4513  (eval $ac_link) 2>&5
     4514  ac_status=$?
    47414515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    47424516  (exit $ac_status); } &&
    4743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4517         { ac_try='test -s conftest$ac_exeext'
    47444518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    47454519  (eval $ac_try) 2>&5
    47464520  ac_status=$?
    47474521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4748   (exit $ac_status); }; } &&
    4749          { ac_try='test -s conftest$ac_exeext'
    4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4751   (eval $ac_try) 2>&5
    4752   ac_status=$?
    4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    47544522  (exit $ac_status); }; }; then
    47554523  eval "$as_ac_var=yes"
     
    47604528eval "$as_ac_var=no"
    47614529fi
    4762 rm -f conftest.err conftest.$ac_objext \
    4763       conftest$ac_exeext conftest.$ac_ext
     4530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    47644531fi
    47654532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
     
    47864553LIBS="-lmd  $LIBS"
    47874554cat >conftest.$ac_ext <<_ACEOF
     4555#line $LINENO "configure"
    47884556/* confdefs.h.  */
    47894557_ACEOF
     
    48094577rm -f conftest.$ac_objext conftest$ac_exeext
    48104578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4811   (eval $ac_link) 2>conftest.er1
    4812   ac_status=$?
    4813   grep -v '^ *+' conftest.er1 >conftest.err
    4814   rm -f conftest.er1
    4815   cat conftest.err >&5
     4579  (eval $ac_link) 2>&5
     4580  ac_status=$?
    48164581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48174582  (exit $ac_status); } &&
    4818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4583         { ac_try='test -s conftest$ac_exeext'
    48194584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    48204585  (eval $ac_try) 2>&5
    48214586  ac_status=$?
    48224587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4823   (exit $ac_status); }; } &&
    4824          { ac_try='test -s conftest$ac_exeext'
    4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4826   (eval $ac_try) 2>&5
    4827   ac_status=$?
    4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48294588  (exit $ac_status); }; }; then
    48304589  ac_cv_lib_md_MD5Update=yes
     
    48354594ac_cv_lib_md_MD5Update=no
    48364595fi
    4837 rm -f conftest.err conftest.$ac_objext \
    4838       conftest$ac_exeext conftest.$ac_ext
     4596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    48394597LIBS=$ac_check_lib_save_LIBS
    48404598fi
     
    48604618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    48614619cat >conftest.$ac_ext <<_ACEOF
     4620#line $LINENO "configure"
    48624621/* confdefs.h.  */
    48634622_ACEOF
     
    48704629rm -f conftest.$ac_objext
    48714630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4872   (eval $ac_compile) 2>conftest.er1
    4873   ac_status=$?
    4874   grep -v '^ *+' conftest.er1 >conftest.err
    4875   rm -f conftest.er1
    4876   cat conftest.err >&5
     4631  (eval $ac_compile) 2>&5
     4632  ac_status=$?
    48774633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48784634  (exit $ac_status); } &&
    4879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4635         { ac_try='test -s conftest.$ac_objext'
    48804636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    48814637  (eval $ac_try) 2>&5
    48824638  ac_status=$?
    48834639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4884   (exit $ac_status); }; } &&
    4885          { ac_try='test -s conftest.$ac_objext'
    4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4887   (eval $ac_try) 2>&5
    4888   ac_status=$?
    4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    48904640  (exit $ac_status); }; }; then
    48914641  ac_header_compiler=yes
     
    48964646ac_header_compiler=no
    48974647fi
    4898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4648rm -f conftest.$ac_objext conftest.$ac_ext
    48994649echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    49004650echo "${ECHO_T}$ac_header_compiler" >&6
     
    49044654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    49054655cat >conftest.$ac_ext <<_ACEOF
     4656#line $LINENO "configure"
    49064657/* confdefs.h.  */
    49074658_ACEOF
     
    49214672  if test -s conftest.err; then
    49224673    ac_cpp_err=$ac_c_preproc_warn_flag
    4923     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    49244674  else
    49254675    ac_cpp_err=
     
    49414691
    49424692# So?  What about this header?
    4943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4944   yes:no: )
     4693case $ac_header_compiler:$ac_header_preproc in
     4694  yes:no )
    49454695    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    49464696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    4949     ac_header_preproc=yes
     4697    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4698echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4699    (
     4700      cat <<\_ASBOX
     4701## ------------------------------------ ##
     4702## Report this to bug-autoconf@gnu.org. ##
     4703## ------------------------------------ ##
     4704_ASBOX
     4705    ) |
     4706      sed "s/^/$as_me: WARNING:     /" >&2
    49504707    ;;
    4951   no:yes:* )
     4708  no:yes )
    49524709    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    49534710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4954     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4955 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4956     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4958     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4959 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4711    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     4712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    49604713    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    49614714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4962     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    49644715    (
    49654716      cat <<\_ASBOX
    4966 ## ----------------------------------------- ##
    4967 ## Report this to darwinports@opendarwin.org ##
    4968 ## ----------------------------------------- ##
     4717## ------------------------------------ ##
     4718## Report this to bug-autoconf@gnu.org. ##
     4719## ------------------------------------ ##
    49694720_ASBOX
    49704721    ) |
     
    49774728  echo $ECHO_N "(cached) $ECHO_C" >&6
    49784729else
    4979   eval "$as_ac_Header=\$ac_header_preproc"
     4730  eval "$as_ac_Header=$ac_header_preproc"
    49804731fi
    49814732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    50274778LIBS="-lcrypto  $LIBS"
    50284779cat >conftest.$ac_ext <<_ACEOF
     4780#line $LINENO "configure"
    50294781/* confdefs.h.  */
    50304782_ACEOF
     
    50504802rm -f conftest.$ac_objext conftest$ac_exeext
    50514803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5052   (eval $ac_link) 2>conftest.er1
    5053   ac_status=$?
    5054   grep -v '^ *+' conftest.er1 >conftest.err
    5055   rm -f conftest.er1
    5056   cat conftest.err >&5
     4804  (eval $ac_link) 2>&5
     4805  ac_status=$?
    50574806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50584807  (exit $ac_status); } &&
    5059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4808         { ac_try='test -s conftest$ac_exeext'
    50604809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    50614810  (eval $ac_try) 2>&5
    50624811  ac_status=$?
    50634812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5064   (exit $ac_status); }; } &&
    5065          { ac_try='test -s conftest$ac_exeext'
    5066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5067   (eval $ac_try) 2>&5
    5068   ac_status=$?
    5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    50704813  (exit $ac_status); }; }; then
    50714814  ac_cv_lib_crypto_MD5_Update=yes
     
    50764819ac_cv_lib_crypto_MD5_Update=no
    50774820fi
    5078 rm -f conftest.err conftest.$ac_objext \
    5079       conftest$ac_exeext conftest.$ac_ext
     4821rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    50804822LIBS=$ac_check_lib_save_LIBS
    50814823fi
     
    51014843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    51024844cat >conftest.$ac_ext <<_ACEOF
     4845#line $LINENO "configure"
    51034846/* confdefs.h.  */
    51044847_ACEOF
     
    51114854rm -f conftest.$ac_objext
    51124855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5113   (eval $ac_compile) 2>conftest.er1
    5114   ac_status=$?
    5115   grep -v '^ *+' conftest.er1 >conftest.err
    5116   rm -f conftest.er1
    5117   cat conftest.err >&5
     4856  (eval $ac_compile) 2>&5
     4857  ac_status=$?
    51184858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    51194859  (exit $ac_status); } &&
    5120          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     4860         { ac_try='test -s conftest.$ac_objext'
    51214861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    51224862  (eval $ac_try) 2>&5
    51234863  ac_status=$?
    51244864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5125   (exit $ac_status); }; } &&
    5126          { ac_try='test -s conftest.$ac_objext'
    5127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5128   (eval $ac_try) 2>&5
    5129   ac_status=$?
    5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    51314865  (exit $ac_status); }; }; then
    51324866  ac_header_compiler=yes
     
    51374871ac_header_compiler=no
    51384872fi
    5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4873rm -f conftest.$ac_objext conftest.$ac_ext
    51404874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    51414875echo "${ECHO_T}$ac_header_compiler" >&6
     
    51454879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    51464880cat >conftest.$ac_ext <<_ACEOF
     4881#line $LINENO "configure"
    51474882/* confdefs.h.  */
    51484883_ACEOF
     
    51624897  if test -s conftest.err; then
    51634898    ac_cpp_err=$ac_c_preproc_warn_flag
    5164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    51654899  else
    51664900    ac_cpp_err=
     
    51824916
    51834917# So?  What about this header?
    5184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    5185   yes:no: )
     4918case $ac_header_compiler:$ac_header_preproc in
     4919  yes:no )
    51864920    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    51874921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    5188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    5189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    5190     ac_header_preproc=yes
     4922    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4924    (
     4925      cat <<\_ASBOX
     4926## ------------------------------------ ##
     4927## Report this to bug-autoconf@gnu.org. ##
     4928## ------------------------------------ ##
     4929_ASBOX
     4930    ) |
     4931      sed "s/^/$as_me: WARNING:     /" >&2
    51914932    ;;
    5192   no:yes:* )
     4933  no:yes )
    51934934    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    51944935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    5195     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    5196 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    5197     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    5198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    5199     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    5200 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4936    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     4937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
    52014938    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    52024939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    5203     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    5204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    52054940    (
    52064941      cat <<\_ASBOX
    5207 ## ----------------------------------------- ##
    5208 ## Report this to darwinports@opendarwin.org ##
    5209 ## ----------------------------------------- ##
     4942## ------------------------------------ ##
     4943## Report this to bug-autoconf@gnu.org. ##
     4944## ------------------------------------ ##
    52104945_ASBOX
    52114946    ) |
     
    52184953  echo $ECHO_N "(cached) $ECHO_C" >&6
    52194954else
    5220   eval "$as_ac_Header=\$ac_header_preproc"
     4955  eval "$as_ac_Header=$ac_header_preproc"
    52214956fi
    52224957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     
    52735008
    52745009# Check for X11 and paraphernalia
    5275 
    5276 
    5277 
    5278 if test "x$ac_path_x_has_been_run" != xyes; then
    5279   echo "$as_me:$LINENO: checking for X" >&5
     5010echo "$as_me:$LINENO: checking for X" >&5
    52805011echo $ECHO_N "checking for X... $ECHO_C" >&6
    52815012
    5282 ac_path_x_has_been_run=yes
    52835013
    52845014# Check whether --with-x or --without-x was given.
     
    53155045    for ac_extension in a so sl; do
    53165046      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
    5317         test -f $ac_im_libdir/libX11.$ac_extension; then
    5318         ac_im_usrlibdir=$ac_im_libdir; break
     5047        test -f $ac_im_libdir/libX11.$ac_extension; then
     5048        ac_im_usrlibdir=$ac_im_libdir; break
    53195049      fi
    53205050    done
     
    53735103
    53745104if test "$ac_x_includes" = no; then
    5375   # Guess where to find include files, by looking for a specified header file.
     5105  # Guess where to find include files, by looking for Intrinsic.h.
    53765106  # First, try using that file with no special directory specified.
    53775107  cat >conftest.$ac_ext <<_ACEOF
     5108#line $LINENO "configure"
    53785109/* confdefs.h.  */
    53795110_ACEOF
     
    53935124  if test -s conftest.err; then
    53945125    ac_cpp_err=$ac_c_preproc_warn_flag
    5395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    53965126  else
    53975127    ac_cpp_err=
     
    54245154  LIBS="-lXt $LIBS"
    54255155  cat >conftest.$ac_ext <<_ACEOF
     5156#line $LINENO "configure"
    54265157/* confdefs.h.  */
    54275158_ACEOF
     
    54405171rm -f conftest.$ac_objext conftest$ac_exeext
    54415172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5442   (eval $ac_link) 2>conftest.er1
    5443   ac_status=$?
    5444   grep -v '^ *+' conftest.er1 >conftest.err
    5445   rm -f conftest.er1
    5446   cat conftest.err >&5
     5173  (eval $ac_link) 2>&5
     5174  ac_status=$?
    54475175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    54485176  (exit $ac_status); } &&
    5449          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
    5450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5451   (eval $ac_try) 2>&5
    5452   ac_status=$?
    5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5454   (exit $ac_status); }; } &&
    5455          { ac_try='test -s conftest$ac_exeext'
     5177         { ac_try='test -s conftest$ac_exeext'
    54565178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    54575179  (eval $ac_try) 2>&5
     
    54785200done
    54795201fi
    5480 rm -f conftest.err conftest.$ac_objext \
    5481       conftest$ac_exeext conftest.$ac_ext
     5202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    54825203fi # $ac_x_libraries = no
    54835204
     
    54885209  # Record where we found X for the cache.
    54895210  ac_cv_have_x="have_x=yes \
    5490                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
     5211                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
    54915212fi
    54925213fi
     
    55075228  ac_cv_have_x="have_x=yes \
    55085229                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
    5509   # It might be that x_includes is empty (headers are found in the
    5510   # standard search path. Then output the corresponding message
    5511   ac_out_x_includes=$x_includes
    5512   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
    5513   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
    5514 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
    5515 fi
    5516 
    5517 fi
    5518 if test "$no_x" = yes; then
     5230  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
     5231echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
     5232fi
     5233
     5234
     5235
     5236        if test "$no_x" = yes; then
    55195237  # Not all programs may use this symbol, but it does not hurt to define it.
    55205238
     
    55405258      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
    55415259      cat >conftest.$ac_ext <<_ACEOF
     5260#line $LINENO "configure"
    55425261/* confdefs.h.  */
    55435262_ACEOF
     
    55565275rm -f conftest.$ac_objext conftest$ac_exeext
    55575276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5558   (eval $ac_link) 2>conftest.er1
    5559   ac_status=$?
    5560   grep -v '^ *+' conftest.er1 >conftest.err
    5561   rm -f conftest.er1
    5562   cat conftest.err >&5
     5277  (eval $ac_link) 2>&5
     5278  ac_status=$?
    55635279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    55645280  (exit $ac_status); } &&
    5565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5281         { ac_try='test -s conftest$ac_exeext'
    55665282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    55675283  (eval $ac_try) 2>&5
    55685284  ac_status=$?
    55695285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5570   (exit $ac_status); }; } &&
    5571          { ac_try='test -s conftest$ac_exeext'
    5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5573   (eval $ac_try) 2>&5
    5574   ac_status=$?
    5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    55765286  (exit $ac_status); }; }; then
    55775287  ac_R_nospace=yes
     
    55825292ac_R_nospace=no
    55835293fi
    5584 rm -f conftest.err conftest.$ac_objext \
    5585       conftest$ac_exeext conftest.$ac_ext
     5294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    55865295      if test $ac_R_nospace = yes; then
    55875296        echo "$as_me:$LINENO: result: no" >&5
     
    55915300        LIBS="$ac_xsave_LIBS -R $x_libraries"
    55925301        cat >conftest.$ac_ext <<_ACEOF
     5302#line $LINENO "configure"
    55935303/* confdefs.h.  */
    55945304_ACEOF
     
    56075317rm -f conftest.$ac_objext conftest$ac_exeext
    56085318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5609   (eval $ac_link) 2>conftest.er1
    5610   ac_status=$?
    5611   grep -v '^ *+' conftest.er1 >conftest.err
    5612   rm -f conftest.er1
    5613   cat conftest.err >&5
     5319  (eval $ac_link) 2>&5
     5320  ac_status=$?
    56145321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    56155322  (exit $ac_status); } &&
    5616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5323         { ac_try='test -s conftest$ac_exeext'
    56175324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    56185325  (eval $ac_try) 2>&5
    56195326  ac_status=$?
    56205327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5621   (exit $ac_status); }; } &&
    5622          { ac_try='test -s conftest$ac_exeext'
    5623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5624   (eval $ac_try) 2>&5
    5625   ac_status=$?
    5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    56275328  (exit $ac_status); }; }; then
    56285329  ac_R_space=yes
     
    56335334ac_R_space=no
    56345335fi
    5635 rm -f conftest.err conftest.$ac_objext \
    5636       conftest$ac_exeext conftest.$ac_ext
     5336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    56375337        if test $ac_R_space = yes; then
    56385338          echo "$as_me:$LINENO: result: yes" >&5
     
    56605360    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
    56615361    cat >conftest.$ac_ext <<_ACEOF
     5362#line $LINENO "configure"
    56625363/* confdefs.h.  */
    56635364_ACEOF
     
    56835384rm -f conftest.$ac_objext conftest$ac_exeext
    56845385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5685   (eval $ac_link) 2>conftest.er1
    5686   ac_status=$?
    5687   grep -v '^ *+' conftest.er1 >conftest.err
    5688   rm -f conftest.er1
    5689   cat conftest.err >&5
     5386  (eval $ac_link) 2>&5
     5387  ac_status=$?
    56905388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    56915389  (exit $ac_status); } &&
    5692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
    5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5694   (eval $ac_try) 2>&5
    5695   ac_status=$?
    5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5697   (exit $ac_status); }; } &&
    5698          { ac_try='test -s conftest$ac_exeext'
     5390         { ac_try='test -s conftest$ac_exeext'
    56995391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    57005392  (eval $ac_try) 2>&5
     
    57155407LIBS="-ldnet  $LIBS"
    57165408cat >conftest.$ac_ext <<_ACEOF
     5409#line $LINENO "configure"
    57175410/* confdefs.h.  */
    57185411_ACEOF
     
    57385431rm -f conftest.$ac_objext conftest$ac_exeext
    57395432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5740   (eval $ac_link) 2>conftest.er1
    5741   ac_status=$?
    5742   grep -v '^ *+' conftest.er1 >conftest.err
    5743   rm -f conftest.er1
    5744   cat conftest.err >&5
     5433  (eval $ac_link) 2>&5
     5434  ac_status=$?
    57455435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57465436  (exit $ac_status); } &&
    5747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5437         { ac_try='test -s conftest$ac_exeext'
    57485438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    57495439  (eval $ac_try) 2>&5
    57505440  ac_status=$?
    57515441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5752   (exit $ac_status); }; } &&
    5753          { ac_try='test -s conftest$ac_exeext'
    5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5755   (eval $ac_try) 2>&5
    5756   ac_status=$?
    5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57585442  (exit $ac_status); }; }; then
    57595443  ac_cv_lib_dnet_dnet_ntoa=yes
     
    57645448ac_cv_lib_dnet_dnet_ntoa=no
    57655449fi
    5766 rm -f conftest.err conftest.$ac_objext \
    5767       conftest$ac_exeext conftest.$ac_ext
     5450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    57685451LIBS=$ac_check_lib_save_LIBS
    57695452fi
     
    57835466LIBS="-ldnet_stub  $LIBS"
    57845467cat >conftest.$ac_ext <<_ACEOF
     5468#line $LINENO "configure"
    57855469/* confdefs.h.  */
    57865470_ACEOF
     
    58065490rm -f conftest.$ac_objext conftest$ac_exeext
    58075491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5808   (eval $ac_link) 2>conftest.er1
    5809   ac_status=$?
    5810   grep -v '^ *+' conftest.er1 >conftest.err
    5811   rm -f conftest.er1
    5812   cat conftest.err >&5
     5492  (eval $ac_link) 2>&5
     5493  ac_status=$?
    58135494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    58145495  (exit $ac_status); } &&
    5815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5496         { ac_try='test -s conftest$ac_exeext'
    58165497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    58175498  (eval $ac_try) 2>&5
    58185499  ac_status=$?
    58195500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5820   (exit $ac_status); }; } &&
    5821          { ac_try='test -s conftest$ac_exeext'
    5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5823   (eval $ac_try) 2>&5
    5824   ac_status=$?
    5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    58265501  (exit $ac_status); }; }; then
    58275502  ac_cv_lib_dnet_stub_dnet_ntoa=yes
     
    58325507ac_cv_lib_dnet_stub_dnet_ntoa=no
    58335508fi
    5834 rm -f conftest.err conftest.$ac_objext \
    5835       conftest$ac_exeext conftest.$ac_ext
     5509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    58365510LIBS=$ac_check_lib_save_LIBS
    58375511fi
     
    58445518    fi
    58455519fi
    5846 rm -f conftest.err conftest.$ac_objext \
    5847       conftest$ac_exeext conftest.$ac_ext
     5520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    58485521    LIBS="$ac_xsave_LIBS"
    58495522
     
    58625535else
    58635536  cat >conftest.$ac_ext <<_ACEOF
     5537#line $LINENO "configure"
    58645538/* confdefs.h.  */
    58655539_ACEOF
     
    58675541cat >>conftest.$ac_ext <<_ACEOF
    58685542/* end confdefs.h.  */
    5869 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
    5870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    5871 #define gethostbyname innocuous_gethostbyname
    5872 
    58735543/* System header to define __stub macros and hopefully few prototypes,
    58745544    which can conflict with char gethostbyname (); below.
    58755545    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    58765546    <limits.h> exists even on freestanding compilers.  */
    5877 
    58785547#ifdef __STDC__
    58795548# include <limits.h>
     
    58815550# include <assert.h>
    58825551#endif
    5883 
    5884 #undef gethostbyname
    5885 
    58865552/* Override any gcc2 internal prototype to avoid an error.  */
    58875553#ifdef __cplusplus
     
    59145580rm -f conftest.$ac_objext conftest$ac_exeext
    59155581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5916   (eval $ac_link) 2>conftest.er1
    5917   ac_status=$?
    5918   grep -v '^ *+' conftest.er1 >conftest.err
    5919   rm -f conftest.er1
    5920   cat conftest.err >&5
     5582  (eval $ac_link) 2>&5
     5583  ac_status=$?
    59215584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    59225585  (exit $ac_status); } &&
    5923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5586         { ac_try='test -s conftest$ac_exeext'
    59245587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    59255588  (eval $ac_try) 2>&5
    59265589  ac_status=$?
    59275590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5928   (exit $ac_status); }; } &&
    5929          { ac_try='test -s conftest$ac_exeext'
    5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5931   (eval $ac_try) 2>&5
    5932   ac_status=$?
    5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    59345591  (exit $ac_status); }; }; then
    59355592  ac_cv_func_gethostbyname=yes
     
    59405597ac_cv_func_gethostbyname=no
    59415598fi
    5942 rm -f conftest.err conftest.$ac_objext \
    5943       conftest$ac_exeext conftest.$ac_ext
     5599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    59445600fi
    59455601echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
     
    59555611LIBS="-lnsl  $LIBS"
    59565612cat >conftest.$ac_ext <<_ACEOF
     5613#line $LINENO "configure"
    59575614/* confdefs.h.  */
    59585615_ACEOF
     
    59785635rm -f conftest.$ac_objext conftest$ac_exeext
    59795636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    5980   (eval $ac_link) 2>conftest.er1
    5981   ac_status=$?
    5982   grep -v '^ *+' conftest.er1 >conftest.err
    5983   rm -f conftest.er1
    5984   cat conftest.err >&5
     5637  (eval $ac_link) 2>&5
     5638  ac_status=$?
    59855639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    59865640  (exit $ac_status); } &&
    5987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5641         { ac_try='test -s conftest$ac_exeext'
    59885642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    59895643  (eval $ac_try) 2>&5
    59905644  ac_status=$?
    59915645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5992   (exit $ac_status); }; } &&
    5993          { ac_try='test -s conftest$ac_exeext'
    5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5995   (eval $ac_try) 2>&5
    5996   ac_status=$?
    5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    59985646  (exit $ac_status); }; }; then
    59995647  ac_cv_lib_nsl_gethostbyname=yes
     
    60045652ac_cv_lib_nsl_gethostbyname=no
    60055653fi
    6006 rm -f conftest.err conftest.$ac_objext \
    6007       conftest$ac_exeext conftest.$ac_ext
     5654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    60085655LIBS=$ac_check_lib_save_LIBS
    60095656fi
     
    60155662
    60165663      if test $ac_cv_lib_nsl_gethostbyname = no; then
    6017         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
     5664        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
    60185665echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
    60195666if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
     
    60235670LIBS="-lbsd  $LIBS"
    60245671cat >conftest.$ac_ext <<_ACEOF
     5672#line $LINENO "configure"
    60255673/* confdefs.h.  */
    60265674_ACEOF
     
    60465694rm -f conftest.$ac_objext conftest$ac_exeext
    60475695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6048   (eval $ac_link) 2>conftest.er1
    6049   ac_status=$?
    6050   grep -v '^ *+' conftest.er1 >conftest.err
    6051   rm -f conftest.er1
    6052   cat conftest.err >&5
     5696  (eval $ac_link) 2>&5
     5697  ac_status=$?
    60535698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    60545699  (exit $ac_status); } &&
    6055          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5700         { ac_try='test -s conftest$ac_exeext'
    60565701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    60575702  (eval $ac_try) 2>&5
    60585703  ac_status=$?
    60595704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6060   (exit $ac_status); }; } &&
    6061          { ac_try='test -s conftest$ac_exeext'
    6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6063   (eval $ac_try) 2>&5
    6064   ac_status=$?
    6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    60665705  (exit $ac_status); }; }; then
    60675706  ac_cv_lib_bsd_gethostbyname=yes
     
    60725711ac_cv_lib_bsd_gethostbyname=no
    60735712fi
    6074 rm -f conftest.err conftest.$ac_objext \
    6075       conftest$ac_exeext conftest.$ac_ext
     5713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    60765714LIBS=$ac_check_lib_save_LIBS
    60775715fi
     
    60985736else
    60995737  cat >conftest.$ac_ext <<_ACEOF
     5738#line $LINENO "configure"
    61005739/* confdefs.h.  */
    61015740_ACEOF
     
    61035742cat >>conftest.$ac_ext <<_ACEOF
    61045743/* end confdefs.h.  */
    6105 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
    6106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6107 #define connect innocuous_connect
    6108 
    61095744/* System header to define __stub macros and hopefully few prototypes,
    61105745    which can conflict with char connect (); below.
    61115746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    61125747    <limits.h> exists even on freestanding compilers.  */
    6113 
    61145748#ifdef __STDC__
    61155749# include <limits.h>
     
    61175751# include <assert.h>
    61185752#endif
    6119 
    6120 #undef connect
    6121 
    61225753/* Override any gcc2 internal prototype to avoid an error.  */
    61235754#ifdef __cplusplus
     
    61505781rm -f conftest.$ac_objext conftest$ac_exeext
    61515782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6152   (eval $ac_link) 2>conftest.er1
    6153   ac_status=$?
    6154   grep -v '^ *+' conftest.er1 >conftest.err
    6155   rm -f conftest.er1
    6156   cat conftest.err >&5
     5783  (eval $ac_link) 2>&5
     5784  ac_status=$?
    61575785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    61585786  (exit $ac_status); } &&
    6159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5787         { ac_try='test -s conftest$ac_exeext'
    61605788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    61615789  (eval $ac_try) 2>&5
    61625790  ac_status=$?
    61635791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6164   (exit $ac_status); }; } &&
    6165          { ac_try='test -s conftest$ac_exeext'
    6166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6167   (eval $ac_try) 2>&5
    6168   ac_status=$?
    6169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    61705792  (exit $ac_status); }; }; then
    61715793  ac_cv_func_connect=yes
     
    61765798ac_cv_func_connect=no
    61775799fi
    6178 rm -f conftest.err conftest.$ac_objext \
    6179       conftest$ac_exeext conftest.$ac_ext
     5800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    61805801fi
    61815802echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
     
    61915812LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
    61925813cat >conftest.$ac_ext <<_ACEOF
     5814#line $LINENO "configure"
    61935815/* confdefs.h.  */
    61945816_ACEOF
     
    62145836rm -f conftest.$ac_objext conftest$ac_exeext
    62155837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6216   (eval $ac_link) 2>conftest.er1
    6217   ac_status=$?
    6218   grep -v '^ *+' conftest.er1 >conftest.err
    6219   rm -f conftest.er1
    6220   cat conftest.err >&5
     5838  (eval $ac_link) 2>&5
     5839  ac_status=$?
    62215840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    62225841  (exit $ac_status); } &&
    6223          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5842         { ac_try='test -s conftest$ac_exeext'
    62245843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    62255844  (eval $ac_try) 2>&5
    62265845  ac_status=$?
    62275846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6228   (exit $ac_status); }; } &&
    6229          { ac_try='test -s conftest$ac_exeext'
    6230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6231   (eval $ac_try) 2>&5
    6232   ac_status=$?
    6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    62345847  (exit $ac_status); }; }; then
    62355848  ac_cv_lib_socket_connect=yes
     
    62405853ac_cv_lib_socket_connect=no
    62415854fi
    6242 rm -f conftest.err conftest.$ac_objext \
    6243       conftest$ac_exeext conftest.$ac_ext
     5855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    62445856LIBS=$ac_check_lib_save_LIBS
    62455857fi
     
    62595871else
    62605872  cat >conftest.$ac_ext <<_ACEOF
     5873#line $LINENO "configure"
    62615874/* confdefs.h.  */
    62625875_ACEOF
     
    62645877cat >>conftest.$ac_ext <<_ACEOF
    62655878/* end confdefs.h.  */
    6266 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
    6267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6268 #define remove innocuous_remove
    6269 
    62705879/* System header to define __stub macros and hopefully few prototypes,
    62715880    which can conflict with char remove (); below.
    62725881    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    62735882    <limits.h> exists even on freestanding compilers.  */
    6274 
    62755883#ifdef __STDC__
    62765884# include <limits.h>
     
    62785886# include <assert.h>
    62795887#endif
    6280 
    6281 #undef remove
    6282 
    62835888/* Override any gcc2 internal prototype to avoid an error.  */
    62845889#ifdef __cplusplus
     
    63115916rm -f conftest.$ac_objext conftest$ac_exeext
    63125917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6313   (eval $ac_link) 2>conftest.er1
    6314   ac_status=$?
    6315   grep -v '^ *+' conftest.er1 >conftest.err
    6316   rm -f conftest.er1
    6317   cat conftest.err >&5
     5918  (eval $ac_link) 2>&5
     5919  ac_status=$?
    63185920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    63195921  (exit $ac_status); } &&
    6320          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5922         { ac_try='test -s conftest$ac_exeext'
    63215923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    63225924  (eval $ac_try) 2>&5
    63235925  ac_status=$?
    63245926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6325   (exit $ac_status); }; } &&
    6326          { ac_try='test -s conftest$ac_exeext'
    6327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6328   (eval $ac_try) 2>&5
    6329   ac_status=$?
    6330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    63315927  (exit $ac_status); }; }; then
    63325928  ac_cv_func_remove=yes
     
    63375933ac_cv_func_remove=no
    63385934fi
    6339 rm -f conftest.err conftest.$ac_objext \
    6340       conftest$ac_exeext conftest.$ac_ext
     5935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    63415936fi
    63425937echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
     
    63525947LIBS="-lposix  $LIBS"
    63535948cat >conftest.$ac_ext <<_ACEOF
     5949#line $LINENO "configure"
    63545950/* confdefs.h.  */
    63555951_ACEOF
     
    63755971rm -f conftest.$ac_objext conftest$ac_exeext
    63765972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6377   (eval $ac_link) 2>conftest.er1
    6378   ac_status=$?
    6379   grep -v '^ *+' conftest.er1 >conftest.err
    6380   rm -f conftest.er1
    6381   cat conftest.err >&5
     5973  (eval $ac_link) 2>&5
     5974  ac_status=$?
    63825975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    63835976  (exit $ac_status); } &&
    6384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     5977         { ac_try='test -s conftest$ac_exeext'
    63855978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    63865979  (eval $ac_try) 2>&5
    63875980  ac_status=$?
    63885981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6389   (exit $ac_status); }; } &&
    6390          { ac_try='test -s conftest$ac_exeext'
    6391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6392   (eval $ac_try) 2>&5
    6393   ac_status=$?
    6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    63955982  (exit $ac_status); }; }; then
    63965983  ac_cv_lib_posix_remove=yes
     
    64015988ac_cv_lib_posix_remove=no
    64025989fi
    6403 rm -f conftest.err conftest.$ac_objext \
    6404       conftest$ac_exeext conftest.$ac_ext
     5990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    64055991LIBS=$ac_check_lib_save_LIBS
    64065992fi
     
    64206006else
    64216007  cat >conftest.$ac_ext <<_ACEOF
     6008#line $LINENO "configure"
    64226009/* confdefs.h.  */
    64236010_ACEOF
     
    64256012cat >>conftest.$ac_ext <<_ACEOF
    64266013/* end confdefs.h.  */
    6427 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
    6428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    6429 #define shmat innocuous_shmat
    6430 
    64316014/* System header to define __stub macros and hopefully few prototypes,
    64326015    which can conflict with char shmat (); below.
    64336016    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    64346017    <limits.h> exists even on freestanding compilers.  */
    6435 
    64366018#ifdef __STDC__
    64376019# include <limits.h>
     
    64396021# include <assert.h>
    64406022#endif
    6441 
    6442 #undef shmat
    6443 
    64446023/* Override any gcc2 internal prototype to avoid an error.  */
    64456024#ifdef __cplusplus
     
    64726051rm -f conftest.$ac_objext conftest$ac_exeext
    64736052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6474   (eval $ac_link) 2>conftest.er1
    6475   ac_status=$?
    6476   grep -v '^ *+' conftest.er1 >conftest.err
    6477   rm -f conftest.er1
    6478   cat conftest.err >&5
     6053  (eval $ac_link) 2>&5
     6054  ac_status=$?
    64796055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    64806056  (exit $ac_status); } &&
    6481          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     6057         { ac_try='test -s conftest$ac_exeext'
    64826058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    64836059  (eval $ac_try) 2>&5
    64846060  ac_status=$?
    64856061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6486   (exit $ac_status); }; } &&
    6487          { ac_try='test -s conftest$ac_exeext'
    6488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6489   (eval $ac_try) 2>&5
    6490   ac_status=$?
    6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    64926062  (exit $ac_status); }; }; then
    64936063  ac_cv_func_shmat=yes
     
    64986068ac_cv_func_shmat=no
    64996069fi
    6500 rm -f conftest.err conftest.$ac_objext \
    6501       conftest$ac_exeext conftest.$ac_ext
     6070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    65026071fi
    65036072echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
     
    65136082LIBS="-lipc  $LIBS"
    65146083cat >conftest.$ac_ext <<_ACEOF
     6084#line $LINENO "configure"
    65156085/* confdefs.h.  */
    65166086_ACEOF
     
    65366106rm -f conftest.$ac_objext conftest$ac_exeext
    65376107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6538   (eval $ac_link) 2>conftest.er1
    6539   ac_status=$?
    6540   grep -v '^ *+' conftest.er1 >conftest.err
    6541   rm -f conftest.er1
    6542   cat conftest.err >&5
     6108  (eval $ac_link) 2>&5
     6109  ac_status=$?
    65436110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    65446111  (exit $ac_status); } &&
    6545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     6112         { ac_try='test -s conftest$ac_exeext'
    65466113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    65476114  (eval $ac_try) 2>&5
    65486115  ac_status=$?
    65496116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6550   (exit $ac_status); }; } &&
    6551          { ac_try='test -s conftest$ac_exeext'
    6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6553   (eval $ac_try) 2>&5
    6554   ac_status=$?
    6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    65566117  (exit $ac_status); }; }; then
    65576118  ac_cv_lib_ipc_shmat=yes
     
    65626123ac_cv_lib_ipc_shmat=no
    65636124fi
    6564 rm -f conftest.err conftest.$ac_objext \
    6565       conftest$ac_exeext conftest.$ac_ext
     6125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    65666126LIBS=$ac_check_lib_save_LIBS
    65676127fi
     
    65926152LIBS="-lICE $X_EXTRA_LIBS $LIBS"
    65936153cat >conftest.$ac_ext <<_ACEOF
     6154#line $LINENO "configure"
    65946155/* confdefs.h.  */
    65956156_ACEOF
     
    66156176rm -f conftest.$ac_objext conftest$ac_exeext
    66166177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6617   (eval $ac_link) 2>conftest.er1
    6618   ac_status=$?
    6619   grep -v '^ *+' conftest.er1 >conftest.err
    6620   rm -f conftest.er1
    6621   cat conftest.err >&5
     6178  (eval $ac_link) 2>&5
     6179  ac_status=$?
    66226180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    66236181  (exit $ac_status); } &&
    6624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     6182         { ac_try='test -s conftest$ac_exeext'
    66256183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    66266184  (eval $ac_try) 2>&5
    66276185  ac_status=$?
    66286186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6629   (exit $ac_status); }; } &&
    6630          { ac_try='test -s conftest$ac_exeext'
    6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    6632   (eval $ac_try) 2>&5
    6633   ac_status=$?
    6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    66356187  (exit $ac_status); }; }; then
    66366188  ac_cv_lib_ICE_IceConnectionNumber=yes
     
    66416193ac_cv_lib_ICE_IceConnectionNumber=no
    66426194fi
    6643 rm -f conftest.err conftest.$ac_objext \
    6644       conftest$ac_exeext conftest.$ac_ext
     6195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    66456196LIBS=$ac_check_lib_save_LIBS
    66466197fi
     
    66656216LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"
    66666217cat >conftest.$ac_ext <<_ACEOF
     6218#line $LINENO "configure"
    66676219/* confdefs.h.  */
    66686220_ACEOF
     
    66886240rm -f conftest.$ac_objext conftest$ac_exeext
    66896241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    6690   (eval $ac_link) 2>conftest.er1
     6242  (eval $ac_link) 2>&5
     6243  ac_status=$?
     6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6245  (exit $ac_status); } &&
     6246         { ac_try='test -s conftest$ac_exeext'
     6247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6248  (eval $ac_try) 2>&5
     6249  ac_status=$?
     6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6251  (exit $ac_status); }; }; then
     6252  ac_cv_lib_X11_XOpenDisplay=yes
     6253else
     6254  echo "$as_me: failed program was:" >&5
     6255sed 's/^/| /' conftest.$ac_ext >&5
     6256
     6257ac_cv_lib_X11_XOpenDisplay=no
     6258fi
     6259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     6260LIBS=$ac_check_lib_save_LIBS
     6261fi
     6262echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
     6263echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
     6264if test $ac_cv_lib_X11_XOpenDisplay = yes; then
     6265
     6266                has_x_runtime=yes
     6267
     6268else
     6269   has_x_runtime=no
     6270fi
     6271
     6272
     6273#       echo "------done---------"
     6274#       echo "x_includes=${x_includes}"
     6275#       echo "x_libraries=${x_libraries}"
     6276#       echo "no_x=${no_x}"
     6277#       echo "X_CFLAGS=${X_CFLAGS}"
     6278#       echo "X_LIBS=${X_LIBS}"
     6279#       echo "X_DISPLAY_MISSING=${X_DISPLAY_MISSING}"
     6280#       echo "has_x_runtime=${has_x_runtime}"
     6281#       echo "host_os=${host_os}"
     6282#       echo "------done---------"
     6283
     6284        state=
     6285
     6286        case "__${has_x_runtime}__${no_x}__" in
     6287                "__no__yes__")
     6288                # either the user said --without-x, or it was not found
     6289                # at all (runtime or headers)
     6290                        { echo "$as_me:$LINENO: WARNING: X11 not available. You will not be able to use dports that use X11" >&5
     6291echo "$as_me: WARNING: X11 not available. You will not be able to use dports that use X11" >&2;}
     6292                        state=0
     6293                        ;;
     6294                "__yes__yes__")
     6295                        state=1
     6296                        ;;
     6297                "__yes____")
     6298                        state=2
     6299                        ;;
     6300                *)
     6301                        state=3
     6302                        ;;
     6303        esac
     6304
     6305        case $host_os in
     6306                darwin*)
     6307                        case $state in
     6308                                1)
     6309                                        cat <<EOF;
     6310Please install the X11 SDK packages from the
     6311Xcode Developer Tools CD
     6312EOF
     6313                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
     6314echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
     6315   { (exit 1); exit 1; }; }
     6316
     6317                                        ;;
     6318                                3)
     6319                                        cat <<EOF;
     6320Unknown configuration problem. Please install the X11 runtime
     6321and/or X11 SDK  packages from the Xcode Developer Tools CD
     6322EOF
     6323                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
     6324echo "$as_me: error: Broken X11 install" >&2;}
     6325   { (exit 1); exit 1; }; }
     6326                                        ;;
     6327                        esac
     6328                        ;;
     6329                *)
     6330                        case $state in
     6331                                1)
     6332                                        cat <<EOF;
     6333Please install the X11 developer headers for your platform
     6334EOF
     6335                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
     6336echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
     6337   { (exit 1); exit 1; }; }
     6338
     6339                                        ;;
     6340                                3)
     6341                                        cat <<EOF;
     6342Unknown configuration problem. Please install the X11
     6343implementation for your platform
     6344EOF
     6345                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
     6346echo "$as_me: error: Broken X11 install" >&2;}
     6347   { (exit 1); exit 1; }; }
     6348                                        ;;
     6349                        esac
     6350                        ;;
     6351        esac
     6352
     6353
     6354
     6355# Check for md5 implementation
     6356
     6357
     6358        # Check for libmd, which is prefered
     6359        echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&5
     6360echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
     6361if test "${ac_cv_lib_md_MD5Update+set}" = set; then
     6362  echo $ECHO_N "(cached) $ECHO_C" >&6
     6363else
     6364  ac_check_lib_save_LIBS=$LIBS
     6365LIBS="-lmd  $LIBS"
     6366cat >conftest.$ac_ext <<_ACEOF
     6367#line $LINENO "configure"
     6368/* confdefs.h.  */
     6369_ACEOF
     6370cat confdefs.h >>conftest.$ac_ext
     6371cat >>conftest.$ac_ext <<_ACEOF
     6372/* end confdefs.h.  */
     6373
     6374/* Override any gcc2 internal prototype to avoid an error.  */
     6375#ifdef __cplusplus
     6376extern "C"
     6377#endif
     6378/* We use char because int might match the return type of a gcc2
     6379   builtin and then its argument prototype would still apply.  */
     6380char MD5Update ();
     6381int
     6382main ()
     6383{
     6384MD5Update ();
     6385  ;
     6386  return 0;
     6387}
     6388_ACEOF
     6389rm -f conftest.$ac_objext conftest$ac_exeext
     6390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6391  (eval $ac_link) 2>&5
     6392  ac_status=$?
     6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6394  (exit $ac_status); } &&
     6395         { ac_try='test -s conftest$ac_exeext'
     6396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6397  (eval $ac_try) 2>&5
     6398  ac_status=$?
     6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6400  (exit $ac_status); }; }; then
     6401  ac_cv_lib_md_MD5Update=yes
     6402else
     6403  echo "$as_me: failed program was:" >&5
     6404sed 's/^/| /' conftest.$ac_ext >&5
     6405
     6406ac_cv_lib_md_MD5Update=no
     6407fi
     6408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     6409LIBS=$ac_check_lib_save_LIBS
     6410fi
     6411echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&5
     6412echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
     6413if test $ac_cv_lib_md_MD5Update = yes; then
     6414
     6415
     6416for ac_header in md5.h
     6417do
     6418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6419if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6420  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6422if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6423  echo $ECHO_N "(cached) $ECHO_C" >&6
     6424fi
     6425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6427else
     6428  # Is the header compilable?
     6429echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6431cat >conftest.$ac_ext <<_ACEOF
     6432#line $LINENO "configure"
     6433/* confdefs.h.  */
     6434_ACEOF
     6435cat confdefs.h >>conftest.$ac_ext
     6436cat >>conftest.$ac_ext <<_ACEOF
     6437/* end confdefs.h.  */
     6438$ac_includes_default
     6439#include <$ac_header>
     6440_ACEOF
     6441rm -f conftest.$ac_objext
     6442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6443  (eval $ac_compile) 2>&5
     6444  ac_status=$?
     6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6446  (exit $ac_status); } &&
     6447         { ac_try='test -s conftest.$ac_objext'
     6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6449  (eval $ac_try) 2>&5
     6450  ac_status=$?
     6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6452  (exit $ac_status); }; }; then
     6453  ac_header_compiler=yes
     6454else
     6455  echo "$as_me: failed program was:" >&5
     6456sed 's/^/| /' conftest.$ac_ext >&5
     6457
     6458ac_header_compiler=no
     6459fi
     6460rm -f conftest.$ac_objext conftest.$ac_ext
     6461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6462echo "${ECHO_T}$ac_header_compiler" >&6
     6463
     6464# Is the header present?
     6465echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6467cat >conftest.$ac_ext <<_ACEOF
     6468#line $LINENO "configure"
     6469/* confdefs.h.  */
     6470_ACEOF
     6471cat confdefs.h >>conftest.$ac_ext
     6472cat >>conftest.$ac_ext <<_ACEOF
     6473/* end confdefs.h.  */
     6474#include <$ac_header>
     6475_ACEOF
     6476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    66916478  ac_status=$?
    66926479  grep -v '^ *+' conftest.er1 >conftest.err
     
    66946481  cat conftest.err >&5
    66956482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6483  (exit $ac_status); } >/dev/null; then
     6484  if test -s conftest.err; then
     6485    ac_cpp_err=$ac_c_preproc_warn_flag
     6486  else
     6487    ac_cpp_err=
     6488  fi
     6489else
     6490  ac_cpp_err=yes
     6491fi
     6492if test -z "$ac_cpp_err"; then
     6493  ac_header_preproc=yes
     6494else
     6495  echo "$as_me: failed program was:" >&5
     6496sed 's/^/| /' conftest.$ac_ext >&5
     6497
     6498  ac_header_preproc=no
     6499fi
     6500rm -f conftest.err conftest.$ac_ext
     6501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6502echo "${ECHO_T}$ac_header_preproc" >&6
     6503
     6504# So?  What about this header?
     6505case $ac_header_compiler:$ac_header_preproc in
     6506  yes:no )
     6507    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6511    (
     6512      cat <<\_ASBOX
     6513## ------------------------------------ ##
     6514## Report this to bug-autoconf@gnu.org. ##
     6515## ------------------------------------ ##
     6516_ASBOX
     6517    ) |
     6518      sed "s/^/$as_me: WARNING:     /" >&2
     6519    ;;
     6520  no:yes )
     6521    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6523    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     6524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
     6525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6527    (
     6528      cat <<\_ASBOX
     6529## ------------------------------------ ##
     6530## Report this to bug-autoconf@gnu.org. ##
     6531## ------------------------------------ ##
     6532_ASBOX
     6533    ) |
     6534      sed "s/^/$as_me: WARNING:     /" >&2
     6535    ;;
     6536esac
     6537echo "$as_me:$LINENO: checking for $ac_header" >&5
     6538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6539if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6540  echo $ECHO_N "(cached) $ECHO_C" >&6
     6541else
     6542  eval "$as_ac_Header=$ac_header_preproc"
     6543fi
     6544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6546
     6547fi
     6548if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6549  cat >>confdefs.h <<_ACEOF
     6550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6551_ACEOF
     6552
     6553else
     6554
     6555                        case $host_os in
     6556                                darwin*)
     6557                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
     6558echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
     6559                                        ;;
     6560                                *)
     6561                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
     6562echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
     6563                                        ;;
     6564                        esac
     6565                        { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&5
     6566echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
     6567   { (exit 1); exit 1; }; }
     6568
     6569fi
     6570
     6571done
     6572
     6573
     6574cat >>confdefs.h <<\_ACEOF
     6575#define HAVE_LIBMD
     6576_ACEOF
     6577
     6578                MD5_LIBS="-lmd"
     6579
     6580fi
     6581
     6582        if test "x$MD5_LIBS" = "x" ; then
     6583                # If libmd is not found, check for libcrypto from OpenSSL
     6584                echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&5
     6585echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
     6586if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
     6587  echo $ECHO_N "(cached) $ECHO_C" >&6
     6588else
     6589  ac_check_lib_save_LIBS=$LIBS
     6590LIBS="-lcrypto  $LIBS"
     6591cat >conftest.$ac_ext <<_ACEOF
     6592#line $LINENO "configure"
     6593/* confdefs.h.  */
     6594_ACEOF
     6595cat confdefs.h >>conftest.$ac_ext
     6596cat >>conftest.$ac_ext <<_ACEOF
     6597/* end confdefs.h.  */
     6598
     6599/* Override any gcc2 internal prototype to avoid an error.  */
     6600#ifdef __cplusplus
     6601extern "C"
     6602#endif
     6603/* We use char because int might match the return type of a gcc2
     6604   builtin and then its argument prototype would still apply.  */
     6605char MD5_Update ();
     6606int
     6607main ()
     6608{
     6609MD5_Update ();
     6610  ;
     6611  return 0;
     6612}
     6613_ACEOF
     6614rm -f conftest.$ac_objext conftest$ac_exeext
     6615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6616  (eval $ac_link) 2>&5
     6617  ac_status=$?
     6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    66966619  (exit $ac_status); } &&
    6697          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
     6620         { ac_try='test -s conftest$ac_exeext'
    66986621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    66996622  (eval $ac_try) 2>&5
    67006623  ac_status=$?
    67016624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    6702   (exit $ac_status); }; } &&
    6703          { ac_try='test -s conftest$ac_exeext'
     6625  (exit $ac_status); }; }; then
     6626  ac_cv_lib_crypto_MD5_Update=yes
     6627else
     6628  echo "$as_me: failed program was:" >&5
     6629sed 's/^/| /' conftest.$ac_ext >&5
     6630
     6631ac_cv_lib_crypto_MD5_Update=no
     6632fi
     6633rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     6634LIBS=$ac_check_lib_save_LIBS
     6635fi
     6636echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&5
     6637echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
     6638if test $ac_cv_lib_crypto_MD5_Update = yes; then
     6639
     6640
     6641for ac_header in openssl/md5.h
     6642do
     6643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     6644if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6645  echo "$as_me:$LINENO: checking for $ac_header" >&5
     6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6647if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6648  echo $ECHO_N "(cached) $ECHO_C" >&6
     6649fi
     6650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6652else
     6653  # Is the header compilable?
     6654echo "$as_me:$LINENO: checking $ac_header usability" >&5
     6655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     6656cat >conftest.$ac_ext <<_ACEOF
     6657#line $LINENO "configure"
     6658/* confdefs.h.  */
     6659_ACEOF
     6660cat confdefs.h >>conftest.$ac_ext
     6661cat >>conftest.$ac_ext <<_ACEOF
     6662/* end confdefs.h.  */
     6663$ac_includes_default
     6664#include <$ac_header>
     6665_ACEOF
     6666rm -f conftest.$ac_objext
     6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6668  (eval $ac_compile) 2>&5
     6669  ac_status=$?
     6670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6671  (exit $ac_status); } &&
     6672         { ac_try='test -s conftest.$ac_objext'
    67046673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    67056674  (eval $ac_try) 2>&5
     
    67076676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    67086677  (exit $ac_status); }; }; then
    6709   ac_cv_lib_X11_XOpenDisplay=yes
     6678  ac_header_compiler=yes
    67106679else
    67116680  echo "$as_me: failed program was:" >&5
    67126681sed 's/^/| /' conftest.$ac_ext >&5
    67136682
     6683ac_header_compiler=no
     6684fi
     6685rm -f conftest.$ac_objext conftest.$ac_ext
     6686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     6687echo "${ECHO_T}$ac_header_compiler" >&6
     6688
     6689# Is the header present?
     6690echo "$as_me:$LINENO: checking $ac_header presence" >&5
     6691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     6692cat >conftest.$ac_ext <<_ACEOF
     6693#line $LINENO "configure"
     6694/* confdefs.h.  */
     6695_ACEOF
     6696cat confdefs.h >>conftest.$ac_ext
     6697cat >>conftest.$ac_ext <<_ACEOF
     6698/* end confdefs.h.  */
     6699#include <$ac_header>
     6700_ACEOF
     6701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     6702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     6703  ac_status=$?
     6704  grep -v '^ *+' conftest.er1 >conftest.err
     6705  rm -f conftest.er1
     6706  cat conftest.err >&5
     6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6708  (exit $ac_status); } >/dev/null; then
     6709  if test -s conftest.err; then
     6710    ac_cpp_err=$ac_c_preproc_warn_flag
     6711  else
     6712    ac_cpp_err=
     6713  fi
     6714else
     6715  ac_cpp_err=yes
     6716fi
     6717if test -z "$ac_cpp_err"; then
     6718  ac_header_preproc=yes
     6719else
     6720  echo "$as_me: failed program was:" >&5
     6721sed 's/^/| /' conftest.$ac_ext >&5
     6722
     6723  ac_header_preproc=no
     6724fi
     6725rm -f conftest.err conftest.$ac_ext
     6726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     6727echo "${ECHO_T}$ac_header_preproc" >&6
     6728
     6729# So?  What about this header?
     6730case $ac_header_compiler:$ac_header_preproc in
     6731  yes:no )
     6732    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     6733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     6734    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6736    (
     6737      cat <<\_ASBOX
     6738## ------------------------------------ ##
     6739## Report this to bug-autoconf@gnu.org. ##
     6740## ------------------------------------ ##
     6741_ASBOX
     6742    ) |
     6743      sed "s/^/$as_me: WARNING:     /" >&2
     6744    ;;
     6745  no:yes )
     6746    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     6747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     6748    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     6749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
     6750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     6751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     6752    (
     6753      cat <<\_ASBOX
     6754## ------------------------------------ ##
     6755## Report this to bug-autoconf@gnu.org. ##
     6756## ------------------------------------ ##
     6757_ASBOX
     6758    ) |
     6759      sed "s/^/$as_me: WARNING:     /" >&2
     6760    ;;
     6761esac
     6762echo "$as_me:$LINENO: checking for $ac_header" >&5
     6763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     6764if eval "test \"\${$as_ac_Header+set}\" = set"; then
     6765  echo $ECHO_N "(cached) $ECHO_C" >&6
     6766else
     6767  eval "$as_ac_Header=$ac_header_preproc"
     6768fi
     6769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     6770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     6771
     6772fi
     6773if test `eval echo '${'$as_ac_Header'}'` = yes; then
     6774  cat >>confdefs.h <<_ACEOF
     6775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     6776_ACEOF
     6777
     6778else
     6779
     6780                                case $host_os in
     6781                                        darwin*)
     6782                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
     6783echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
     6784                                                ;;
     6785                                        *)
     6786                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
     6787echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
     6788                                                ;;
     6789                                esac
     6790                                { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
     6791echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
     6792   { (exit 1); exit 1; }; }
     6793
     6794fi
     6795
     6796done
     6797
     6798
     6799cat >>confdefs.h <<\_ACEOF
     6800#define HAVE_LIBCRYPTO
     6801_ACEOF
     6802
     6803                        MD5_LIBS="-lcrypto"
     6804
     6805else
     6806
     6807                        { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
     6808echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
     6809   { (exit 1); exit 1; }; }
     6810
     6811fi
     6812
     6813        fi
     6814        if test "x$MD5_LIBS" = "x"; then
     6815                { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
     6816echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
     6817   { (exit 1); exit 1; }; }
     6818        fi
     6819
     6820
     6821# Check for X11 and paraphernalia
     6822
     6823
     6824        if test "$no_x" = yes; then
     6825  # Not all programs may use this symbol, but it does not hurt to define it.
     6826
     6827cat >>confdefs.h <<\_ACEOF
     6828#define X_DISPLAY_MISSING 1
     6829_ACEOF
     6830
     6831  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
     6832else
     6833  if test -n "$x_includes"; then
     6834    X_CFLAGS="$X_CFLAGS -I$x_includes"
     6835  fi
     6836
     6837  # It would also be nice to do this for all -L options, not just this one.
     6838  if test -n "$x_libraries"; then
     6839    X_LIBS="$X_LIBS -L$x_libraries"
     6840    # For Solaris; some versions of Sun CC require a space after -R and
     6841    # others require no space.  Words are not sufficient . . . .
     6842    case `(uname -sr) 2>/dev/null` in
     6843    "SunOS 5"*)
     6844      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
     6845echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
     6846      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
     6847      cat >conftest.$ac_ext <<_ACEOF
     6848#line $LINENO "configure"
     6849/* confdefs.h.  */
     6850_ACEOF
     6851cat confdefs.h >>conftest.$ac_ext
     6852cat >>conftest.$ac_ext <<_ACEOF
     6853/* end confdefs.h.  */
     6854
     6855int
     6856main ()
     6857{
     6858
     6859  ;
     6860  return 0;
     6861}
     6862_ACEOF
     6863rm -f conftest.$ac_objext conftest$ac_exeext
     6864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6865  (eval $ac_link) 2>&5
     6866  ac_status=$?
     6867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6868  (exit $ac_status); } &&
     6869         { ac_try='test -s conftest$ac_exeext'
     6870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6871  (eval $ac_try) 2>&5
     6872  ac_status=$?
     6873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6874  (exit $ac_status); }; }; then
     6875  ac_R_nospace=yes
     6876else
     6877  echo "$as_me: failed program was:" >&5
     6878sed 's/^/| /' conftest.$ac_ext >&5
     6879
     6880ac_R_nospace=no
     6881fi
     6882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     6883      if test $ac_R_nospace = yes; then
     6884        echo "$as_me:$LINENO: result: no" >&5
     6885echo "${ECHO_T}no" >&6
     6886        X_LIBS="$X_LIBS -R$x_libraries"
     6887      else
     6888        LIBS="$ac_xsave_LIBS -R $x_libraries"
     6889        cat >conftest.$ac_ext <<_ACEOF
     6890#line $LINENO "configure"
     6891/* confdefs.h.  */
     6892_ACEOF
     6893cat confdefs.h >>conftest.$ac_ext
     6894cat >>conftest.$ac_ext <<_ACEOF
     6895/* end confdefs.h.  */
     6896
     6897int
     6898main ()
     6899{
     6900
     6901  ;
     6902  return 0;
     6903}
     6904_ACEOF
     6905rm -f conftest.$ac_objext conftest$ac_exeext
     6906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6907  (eval $ac_link) 2>&5
     6908  ac_status=$?
     6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6910  (exit $ac_status); } &&
     6911         { ac_try='test -s conftest$ac_exeext'
     6912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6913  (eval $ac_try) 2>&5
     6914  ac_status=$?
     6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6916  (exit $ac_status); }; }; then
     6917  ac_R_space=yes
     6918else
     6919  echo "$as_me: failed program was:" >&5
     6920sed 's/^/| /' conftest.$ac_ext >&5
     6921
     6922ac_R_space=no
     6923fi
     6924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     6925        if test $ac_R_space = yes; then
     6926          echo "$as_me:$LINENO: result: yes" >&5
     6927echo "${ECHO_T}yes" >&6
     6928          X_LIBS="$X_LIBS -R $x_libraries"
     6929        else
     6930          echo "$as_me:$LINENO: result: neither works" >&5
     6931echo "${ECHO_T}neither works" >&6
     6932        fi
     6933      fi
     6934      LIBS=$ac_xsave_LIBS
     6935    esac
     6936  fi
     6937
     6938  # Check for system-dependent libraries X programs must link with.
     6939  # Do this before checking for the system-independent R6 libraries
     6940  # (-lICE), since we may need -lsocket or whatever for X linking.
     6941
     6942  if test "$ISC" = yes; then
     6943    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
     6944  else
     6945    # Martyn Johnson says this is needed for Ultrix, if the X
     6946    # libraries were built with DECnet support.  And Karl Berry says
     6947    # the Alpha needs dnet_stub (dnet does not exist).
     6948    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
     6949    cat >conftest.$ac_ext <<_ACEOF
     6950#line $LINENO "configure"
     6951/* confdefs.h.  */
     6952_ACEOF
     6953cat confdefs.h >>conftest.$ac_ext
     6954cat >>conftest.$ac_ext <<_ACEOF
     6955/* end confdefs.h.  */
     6956
     6957/* Override any gcc2 internal prototype to avoid an error.  */
     6958#ifdef __cplusplus
     6959extern "C"
     6960#endif
     6961/* We use char because int might match the return type of a gcc2
     6962   builtin and then its argument prototype would still apply.  */
     6963char XOpenDisplay ();
     6964int
     6965main ()
     6966{
     6967XOpenDisplay ();
     6968  ;
     6969  return 0;
     6970}
     6971_ACEOF
     6972rm -f conftest.$ac_objext conftest$ac_exeext
     6973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6974  (eval $ac_link) 2>&5
     6975  ac_status=$?
     6976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6977  (exit $ac_status); } &&
     6978         { ac_try='test -s conftest$ac_exeext'
     6979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6980  (eval $ac_try) 2>&5
     6981  ac_status=$?
     6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6983  (exit $ac_status); }; }; then
     6984  :
     6985else
     6986  echo "$as_me: failed program was:" >&5
     6987sed 's/^/| /' conftest.$ac_ext >&5
     6988
     6989echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
     6990echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
     6991if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
     6992  echo $ECHO_N "(cached) $ECHO_C" >&6
     6993else
     6994  ac_check_lib_save_LIBS=$LIBS
     6995LIBS="-ldnet  $LIBS"
     6996cat >conftest.$ac_ext <<_ACEOF
     6997#line $LINENO "configure"
     6998/* confdefs.h.  */
     6999_ACEOF
     7000cat confdefs.h >>conftest.$ac_ext
     7001cat >>conftest.$ac_ext <<_ACEOF
     7002/* end confdefs.h.  */
     7003
     7004/* Override any gcc2 internal prototype to avoid an error.  */
     7005#ifdef __cplusplus
     7006extern "C"
     7007#endif
     7008/* We use char because int might match the return type of a gcc2
     7009   builtin and then its argument prototype would still apply.  */
     7010char dnet_ntoa ();
     7011int
     7012main ()
     7013{
     7014dnet_ntoa ();
     7015  ;
     7016  return 0;
     7017}
     7018_ACEOF
     7019rm -f conftest.$ac_objext conftest$ac_exeext
     7020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7021  (eval $ac_link) 2>&5
     7022  ac_status=$?
     7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7024  (exit $ac_status); } &&
     7025         { ac_try='test -s conftest$ac_exeext'
     7026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7027  (eval $ac_try) 2>&5
     7028  ac_status=$?
     7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7030  (exit $ac_status); }; }; then
     7031  ac_cv_lib_dnet_dnet_ntoa=yes
     7032else
     7033  echo "$as_me: failed program was:" >&5
     7034sed 's/^/| /' conftest.$ac_ext >&5
     7035
     7036ac_cv_lib_dnet_dnet_ntoa=no
     7037fi
     7038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7039LIBS=$ac_check_lib_save_LIBS
     7040fi
     7041echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
     7042echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
     7043if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
     7044  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
     7045fi
     7046
     7047    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
     7048      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
     7049echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
     7050if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
     7051  echo $ECHO_N "(cached) $ECHO_C" >&6
     7052else
     7053  ac_check_lib_save_LIBS=$LIBS
     7054LIBS="-ldnet_stub  $LIBS"
     7055cat >conftest.$ac_ext <<_ACEOF
     7056#line $LINENO "configure"
     7057/* confdefs.h.  */
     7058_ACEOF
     7059cat confdefs.h >>conftest.$ac_ext
     7060cat >>conftest.$ac_ext <<_ACEOF
     7061/* end confdefs.h.  */
     7062
     7063/* Override any gcc2 internal prototype to avoid an error.  */
     7064#ifdef __cplusplus
     7065extern "C"
     7066#endif
     7067/* We use char because int might match the return type of a gcc2
     7068   builtin and then its argument prototype would still apply.  */
     7069char dnet_ntoa ();
     7070int
     7071main ()
     7072{
     7073dnet_ntoa ();
     7074  ;
     7075  return 0;
     7076}
     7077_ACEOF
     7078rm -f conftest.$ac_objext conftest$ac_exeext
     7079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7080  (eval $ac_link) 2>&5
     7081  ac_status=$?
     7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7083  (exit $ac_status); } &&
     7084         { ac_try='test -s conftest$ac_exeext'
     7085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7086  (eval $ac_try) 2>&5
     7087  ac_status=$?
     7088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7089  (exit $ac_status); }; }; then
     7090  ac_cv_lib_dnet_stub_dnet_ntoa=yes
     7091else
     7092  echo "$as_me: failed program was:" >&5
     7093sed 's/^/| /' conftest.$ac_ext >&5
     7094
     7095ac_cv_lib_dnet_stub_dnet_ntoa=no
     7096fi
     7097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7098LIBS=$ac_check_lib_save_LIBS
     7099fi
     7100echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
     7101echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
     7102if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
     7103  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
     7104fi
     7105
     7106    fi
     7107fi
     7108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7109    LIBS="$ac_xsave_LIBS"
     7110
     7111    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
     7112    # to get the SysV transport functions.
     7113    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
     7114    # needs -lnsl.
     7115    # The nsl library prevents programs from opening the X display
     7116    # on Irix 5.2, according to T.E. Dickey.
     7117    # The functions gethostbyname, getservbyname, and inet_addr are
     7118    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
     7119    echo "$as_me:$LINENO: checking for gethostbyname" >&5
     7120echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
     7121if test "${ac_cv_func_gethostbyname+set}" = set; then
     7122  echo $ECHO_N "(cached) $ECHO_C" >&6
     7123else
     7124  cat >conftest.$ac_ext <<_ACEOF
     7125#line $LINENO "configure"
     7126/* confdefs.h.  */
     7127_ACEOF
     7128cat confdefs.h >>conftest.$ac_ext
     7129cat >>conftest.$ac_ext <<_ACEOF
     7130/* end confdefs.h.  */
     7131/* System header to define __stub macros and hopefully few prototypes,
     7132    which can conflict with char gethostbyname (); below.
     7133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7134    <limits.h> exists even on freestanding compilers.  */
     7135#ifdef __STDC__
     7136# include <limits.h>
     7137#else
     7138# include <assert.h>
     7139#endif
     7140/* Override any gcc2 internal prototype to avoid an error.  */
     7141#ifdef __cplusplus
     7142extern "C"
     7143{
     7144#endif
     7145/* We use char because int might match the return type of a gcc2
     7146   builtin and then its argument prototype would still apply.  */
     7147char gethostbyname ();
     7148/* The GNU C library defines this for functions which it implements
     7149    to always fail with ENOSYS.  Some functions are actually named
     7150    something starting with __ and the normal name is an alias.  */
     7151#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
     7152choke me
     7153#else
     7154char (*f) () = gethostbyname;
     7155#endif
     7156#ifdef __cplusplus
     7157}
     7158#endif
     7159
     7160int
     7161main ()
     7162{
     7163return f != gethostbyname;
     7164  ;
     7165  return 0;
     7166}
     7167_ACEOF
     7168rm -f conftest.$ac_objext conftest$ac_exeext
     7169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7170  (eval $ac_link) 2>&5
     7171  ac_status=$?
     7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7173  (exit $ac_status); } &&
     7174         { ac_try='test -s conftest$ac_exeext'
     7175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7176  (eval $ac_try) 2>&5
     7177  ac_status=$?
     7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7179  (exit $ac_status); }; }; then
     7180  ac_cv_func_gethostbyname=yes
     7181else
     7182  echo "$as_me: failed program was:" >&5
     7183sed 's/^/| /' conftest.$ac_ext >&5
     7184
     7185ac_cv_func_gethostbyname=no
     7186fi
     7187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7188fi
     7189echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
     7190echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
     7191
     7192    if test $ac_cv_func_gethostbyname = no; then
     7193      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
     7194echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
     7195if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
     7196  echo $ECHO_N "(cached) $ECHO_C" >&6
     7197else
     7198  ac_check_lib_save_LIBS=$LIBS
     7199LIBS="-lnsl  $LIBS"
     7200cat >conftest.$ac_ext <<_ACEOF
     7201#line $LINENO "configure"
     7202/* confdefs.h.  */
     7203_ACEOF
     7204cat confdefs.h >>conftest.$ac_ext
     7205cat >>conftest.$ac_ext <<_ACEOF
     7206/* end confdefs.h.  */
     7207
     7208/* Override any gcc2 internal prototype to avoid an error.  */
     7209#ifdef __cplusplus
     7210extern "C"
     7211#endif
     7212/* We use char because int might match the return type of a gcc2
     7213   builtin and then its argument prototype would still apply.  */
     7214char gethostbyname ();
     7215int
     7216main ()
     7217{
     7218gethostbyname ();
     7219  ;
     7220  return 0;
     7221}
     7222_ACEOF
     7223rm -f conftest.$ac_objext conftest$ac_exeext
     7224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7225  (eval $ac_link) 2>&5
     7226  ac_status=$?
     7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7228  (exit $ac_status); } &&
     7229         { ac_try='test -s conftest$ac_exeext'
     7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7231  (eval $ac_try) 2>&5
     7232  ac_status=$?
     7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7234  (exit $ac_status); }; }; then
     7235  ac_cv_lib_nsl_gethostbyname=yes
     7236else
     7237  echo "$as_me: failed program was:" >&5
     7238sed 's/^/| /' conftest.$ac_ext >&5
     7239
     7240ac_cv_lib_nsl_gethostbyname=no
     7241fi
     7242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7243LIBS=$ac_check_lib_save_LIBS
     7244fi
     7245echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
     7246echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
     7247if test $ac_cv_lib_nsl_gethostbyname = yes; then
     7248  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
     7249fi
     7250
     7251      if test $ac_cv_lib_nsl_gethostbyname = no; then
     7252        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
     7253echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
     7254if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
     7255  echo $ECHO_N "(cached) $ECHO_C" >&6
     7256else
     7257  ac_check_lib_save_LIBS=$LIBS
     7258LIBS="-lbsd  $LIBS"
     7259cat >conftest.$ac_ext <<_ACEOF
     7260#line $LINENO "configure"
     7261/* confdefs.h.  */
     7262_ACEOF
     7263cat confdefs.h >>conftest.$ac_ext
     7264cat >>conftest.$ac_ext <<_ACEOF
     7265/* end confdefs.h.  */
     7266
     7267/* Override any gcc2 internal prototype to avoid an error.  */
     7268#ifdef __cplusplus
     7269extern "C"
     7270#endif
     7271/* We use char because int might match the return type of a gcc2
     7272   builtin and then its argument prototype would still apply.  */
     7273char gethostbyname ();
     7274int
     7275main ()
     7276{
     7277gethostbyname ();
     7278  ;
     7279  return 0;
     7280}
     7281_ACEOF
     7282rm -f conftest.$ac_objext conftest$ac_exeext
     7283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7284  (eval $ac_link) 2>&5
     7285  ac_status=$?
     7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7287  (exit $ac_status); } &&
     7288         { ac_try='test -s conftest$ac_exeext'
     7289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7290  (eval $ac_try) 2>&5
     7291  ac_status=$?
     7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7293  (exit $ac_status); }; }; then
     7294  ac_cv_lib_bsd_gethostbyname=yes
     7295else
     7296  echo "$as_me: failed program was:" >&5
     7297sed 's/^/| /' conftest.$ac_ext >&5
     7298
     7299ac_cv_lib_bsd_gethostbyname=no
     7300fi
     7301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7302LIBS=$ac_check_lib_save_LIBS
     7303fi
     7304echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
     7305echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
     7306if test $ac_cv_lib_bsd_gethostbyname = yes; then
     7307  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
     7308fi
     7309
     7310      fi
     7311    fi
     7312
     7313    # lieder@skyler.mavd.honeywell.com says without -lsocket,
     7314    # socket/setsockopt and other routines are undefined under SCO ODT
     7315    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
     7316    # on later versions), says Simon Leinen: it contains gethostby*
     7317    # variants that don't use the name server (or something).  -lsocket
     7318    # must be given before -lnsl if both are needed.  We assume that
     7319    # if connect needs -lnsl, so does gethostbyname.
     7320    echo "$as_me:$LINENO: checking for connect" >&5
     7321echo $ECHO_N "checking for connect... $ECHO_C" >&6
     7322if test "${ac_cv_func_connect+set}" = set; then
     7323  echo $ECHO_N "(cached) $ECHO_C" >&6
     7324else
     7325  cat >conftest.$ac_ext <<_ACEOF
     7326#line $LINENO "configure"
     7327/* confdefs.h.  */
     7328_ACEOF
     7329cat confdefs.h >>conftest.$ac_ext
     7330cat >>conftest.$ac_ext <<_ACEOF
     7331/* end confdefs.h.  */
     7332/* System header to define __stub macros and hopefully few prototypes,
     7333    which can conflict with char connect (); below.
     7334    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7335    <limits.h> exists even on freestanding compilers.  */
     7336#ifdef __STDC__
     7337# include <limits.h>
     7338#else
     7339# include <assert.h>
     7340#endif
     7341/* Override any gcc2 internal prototype to avoid an error.  */
     7342#ifdef __cplusplus
     7343extern "C"
     7344{
     7345#endif
     7346/* We use char because int might match the return type of a gcc2
     7347   builtin and then its argument prototype would still apply.  */
     7348char connect ();
     7349/* The GNU C library defines this for functions which it implements
     7350    to always fail with ENOSYS.  Some functions are actually named
     7351    something starting with __ and the normal name is an alias.  */
     7352#if defined (__stub_connect) || defined (__stub___connect)
     7353choke me
     7354#else
     7355char (*f) () = connect;
     7356#endif
     7357#ifdef __cplusplus
     7358}
     7359#endif
     7360
     7361int
     7362main ()
     7363{
     7364return f != connect;
     7365  ;
     7366  return 0;
     7367}
     7368_ACEOF
     7369rm -f conftest.$ac_objext conftest$ac_exeext
     7370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7371  (eval $ac_link) 2>&5
     7372  ac_status=$?
     7373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7374  (exit $ac_status); } &&
     7375         { ac_try='test -s conftest$ac_exeext'
     7376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7377  (eval $ac_try) 2>&5
     7378  ac_status=$?
     7379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7380  (exit $ac_status); }; }; then
     7381  ac_cv_func_connect=yes
     7382else
     7383  echo "$as_me: failed program was:" >&5
     7384sed 's/^/| /' conftest.$ac_ext >&5
     7385
     7386ac_cv_func_connect=no
     7387fi
     7388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7389fi
     7390echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
     7391echo "${ECHO_T}$ac_cv_func_connect" >&6
     7392
     7393    if test $ac_cv_func_connect = no; then
     7394      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
     7395echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
     7396if test "${ac_cv_lib_socket_connect+set}" = set; then
     7397  echo $ECHO_N "(cached) $ECHO_C" >&6
     7398else
     7399  ac_check_lib_save_LIBS=$LIBS
     7400LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
     7401cat >conftest.$ac_ext <<_ACEOF
     7402#line $LINENO "configure"
     7403/* confdefs.h.  */
     7404_ACEOF
     7405cat confdefs.h >>conftest.$ac_ext
     7406cat >>conftest.$ac_ext <<_ACEOF
     7407/* end confdefs.h.  */
     7408
     7409/* Override any gcc2 internal prototype to avoid an error.  */
     7410#ifdef __cplusplus
     7411extern "C"
     7412#endif
     7413/* We use char because int might match the return type of a gcc2
     7414   builtin and then its argument prototype would still apply.  */
     7415char connect ();
     7416int
     7417main ()
     7418{
     7419connect ();
     7420  ;
     7421  return 0;
     7422}
     7423_ACEOF
     7424rm -f conftest.$ac_objext conftest$ac_exeext
     7425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7426  (eval $ac_link) 2>&5
     7427  ac_status=$?
     7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7429  (exit $ac_status); } &&
     7430         { ac_try='test -s conftest$ac_exeext'
     7431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7432  (eval $ac_try) 2>&5
     7433  ac_status=$?
     7434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7435  (exit $ac_status); }; }; then
     7436  ac_cv_lib_socket_connect=yes
     7437else
     7438  echo "$as_me: failed program was:" >&5
     7439sed 's/^/| /' conftest.$ac_ext >&5
     7440
     7441ac_cv_lib_socket_connect=no
     7442fi
     7443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7444LIBS=$ac_check_lib_save_LIBS
     7445fi
     7446echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
     7447echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
     7448if test $ac_cv_lib_socket_connect = yes; then
     7449  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
     7450fi
     7451
     7452    fi
     7453
     7454    # Guillermo Gomez says -lposix is necessary on A/UX.
     7455    echo "$as_me:$LINENO: checking for remove" >&5
     7456echo $ECHO_N "checking for remove... $ECHO_C" >&6
     7457if test "${ac_cv_func_remove+set}" = set; then
     7458  echo $ECHO_N "(cached) $ECHO_C" >&6
     7459else
     7460  cat >conftest.$ac_ext <<_ACEOF
     7461#line $LINENO "configure"
     7462/* confdefs.h.  */
     7463_ACEOF
     7464cat confdefs.h >>conftest.$ac_ext
     7465cat >>conftest.$ac_ext <<_ACEOF
     7466/* end confdefs.h.  */
     7467/* System header to define __stub macros and hopefully few prototypes,
     7468    which can conflict with char remove (); below.
     7469    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7470    <limits.h> exists even on freestanding compilers.  */
     7471#ifdef __STDC__
     7472# include <limits.h>
     7473#else
     7474# include <assert.h>
     7475#endif
     7476/* Override any gcc2 internal prototype to avoid an error.  */
     7477#ifdef __cplusplus
     7478extern "C"
     7479{
     7480#endif
     7481/* We use char because int might match the return type of a gcc2
     7482   builtin and then its argument prototype would still apply.  */
     7483char remove ();
     7484/* The GNU C library defines this for functions which it implements
     7485    to always fail with ENOSYS.  Some functions are actually named
     7486    something starting with __ and the normal name is an alias.  */
     7487#if defined (__stub_remove) || defined (__stub___remove)
     7488choke me
     7489#else
     7490char (*f) () = remove;
     7491#endif
     7492#ifdef __cplusplus
     7493}
     7494#endif
     7495
     7496int
     7497main ()
     7498{
     7499return f != remove;
     7500  ;
     7501  return 0;
     7502}
     7503_ACEOF
     7504rm -f conftest.$ac_objext conftest$ac_exeext
     7505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7506  (eval $ac_link) 2>&5
     7507  ac_status=$?
     7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7509  (exit $ac_status); } &&
     7510         { ac_try='test -s conftest$ac_exeext'
     7511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7512  (eval $ac_try) 2>&5
     7513  ac_status=$?
     7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7515  (exit $ac_status); }; }; then
     7516  ac_cv_func_remove=yes
     7517else
     7518  echo "$as_me: failed program was:" >&5
     7519sed 's/^/| /' conftest.$ac_ext >&5
     7520
     7521ac_cv_func_remove=no
     7522fi
     7523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7524fi
     7525echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
     7526echo "${ECHO_T}$ac_cv_func_remove" >&6
     7527
     7528    if test $ac_cv_func_remove = no; then
     7529      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
     7530echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
     7531if test "${ac_cv_lib_posix_remove+set}" = set; then
     7532  echo $ECHO_N "(cached) $ECHO_C" >&6
     7533else
     7534  ac_check_lib_save_LIBS=$LIBS
     7535LIBS="-lposix  $LIBS"
     7536cat >conftest.$ac_ext <<_ACEOF
     7537#line $LINENO "configure"
     7538/* confdefs.h.  */
     7539_ACEOF
     7540cat confdefs.h >>conftest.$ac_ext
     7541cat >>conftest.$ac_ext <<_ACEOF
     7542/* end confdefs.h.  */
     7543
     7544/* Override any gcc2 internal prototype to avoid an error.  */
     7545#ifdef __cplusplus
     7546extern "C"
     7547#endif
     7548/* We use char because int might match the return type of a gcc2
     7549   builtin and then its argument prototype would still apply.  */
     7550char remove ();
     7551int
     7552main ()
     7553{
     7554remove ();
     7555  ;
     7556  return 0;
     7557}
     7558_ACEOF
     7559rm -f conftest.$ac_objext conftest$ac_exeext
     7560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7561  (eval $ac_link) 2>&5
     7562  ac_status=$?
     7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7564  (exit $ac_status); } &&
     7565         { ac_try='test -s conftest$ac_exeext'
     7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7567  (eval $ac_try) 2>&5
     7568  ac_status=$?
     7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7570  (exit $ac_status); }; }; then
     7571  ac_cv_lib_posix_remove=yes
     7572else
     7573  echo "$as_me: failed program was:" >&5
     7574sed 's/^/| /' conftest.$ac_ext >&5
     7575
     7576ac_cv_lib_posix_remove=no
     7577fi
     7578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7579LIBS=$ac_check_lib_save_LIBS
     7580fi
     7581echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
     7582echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
     7583if test $ac_cv_lib_posix_remove = yes; then
     7584  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
     7585fi
     7586
     7587    fi
     7588
     7589    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
     7590    echo "$as_me:$LINENO: checking for shmat" >&5
     7591echo $ECHO_N "checking for shmat... $ECHO_C" >&6
     7592if test "${ac_cv_func_shmat+set}" = set; then
     7593  echo $ECHO_N "(cached) $ECHO_C" >&6
     7594else
     7595  cat >conftest.$ac_ext <<_ACEOF
     7596#line $LINENO "configure"
     7597/* confdefs.h.  */
     7598_ACEOF
     7599cat confdefs.h >>conftest.$ac_ext
     7600cat >>conftest.$ac_ext <<_ACEOF
     7601/* end confdefs.h.  */
     7602/* System header to define __stub macros and hopefully few prototypes,
     7603    which can conflict with char shmat (); below.
     7604    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     7605    <limits.h> exists even on freestanding compilers.  */
     7606#ifdef __STDC__
     7607# include <limits.h>
     7608#else
     7609# include <assert.h>
     7610#endif
     7611/* Override any gcc2 internal prototype to avoid an error.  */
     7612#ifdef __cplusplus
     7613extern "C"
     7614{
     7615#endif
     7616/* We use char because int might match the return type of a gcc2
     7617   builtin and then its argument prototype would still apply.  */
     7618char shmat ();
     7619/* The GNU C library defines this for functions which it implements
     7620    to always fail with ENOSYS.  Some functions are actually named
     7621    something starting with __ and the normal name is an alias.  */
     7622#if defined (__stub_shmat) || defined (__stub___shmat)
     7623choke me
     7624#else
     7625char (*f) () = shmat;
     7626#endif
     7627#ifdef __cplusplus
     7628}
     7629#endif
     7630
     7631int
     7632main ()
     7633{
     7634return f != shmat;
     7635  ;
     7636  return 0;
     7637}
     7638_ACEOF
     7639rm -f conftest.$ac_objext conftest$ac_exeext
     7640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7641  (eval $ac_link) 2>&5
     7642  ac_status=$?
     7643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7644  (exit $ac_status); } &&
     7645         { ac_try='test -s conftest$ac_exeext'
     7646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7647  (eval $ac_try) 2>&5
     7648  ac_status=$?
     7649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7650  (exit $ac_status); }; }; then
     7651  ac_cv_func_shmat=yes
     7652else
     7653  echo "$as_me: failed program was:" >&5
     7654sed 's/^/| /' conftest.$ac_ext >&5
     7655
     7656ac_cv_func_shmat=no
     7657fi
     7658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7659fi
     7660echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
     7661echo "${ECHO_T}$ac_cv_func_shmat" >&6
     7662
     7663    if test $ac_cv_func_shmat = no; then
     7664      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
     7665echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
     7666if test "${ac_cv_lib_ipc_shmat+set}" = set; then
     7667  echo $ECHO_N "(cached) $ECHO_C" >&6
     7668else
     7669  ac_check_lib_save_LIBS=$LIBS
     7670LIBS="-lipc  $LIBS"
     7671cat >conftest.$ac_ext <<_ACEOF
     7672#line $LINENO "configure"
     7673/* confdefs.h.  */
     7674_ACEOF
     7675cat confdefs.h >>conftest.$ac_ext
     7676cat >>conftest.$ac_ext <<_ACEOF
     7677/* end confdefs.h.  */
     7678
     7679/* Override any gcc2 internal prototype to avoid an error.  */
     7680#ifdef __cplusplus
     7681extern "C"
     7682#endif
     7683/* We use char because int might match the return type of a gcc2
     7684   builtin and then its argument prototype would still apply.  */
     7685char shmat ();
     7686int
     7687main ()
     7688{
     7689shmat ();
     7690  ;
     7691  return 0;
     7692}
     7693_ACEOF
     7694rm -f conftest.$ac_objext conftest$ac_exeext
     7695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7696  (eval $ac_link) 2>&5
     7697  ac_status=$?
     7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7699  (exit $ac_status); } &&
     7700         { ac_try='test -s conftest$ac_exeext'
     7701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7702  (eval $ac_try) 2>&5
     7703  ac_status=$?
     7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7705  (exit $ac_status); }; }; then
     7706  ac_cv_lib_ipc_shmat=yes
     7707else
     7708  echo "$as_me: failed program was:" >&5
     7709sed 's/^/| /' conftest.$ac_ext >&5
     7710
     7711ac_cv_lib_ipc_shmat=no
     7712fi
     7713rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7714LIBS=$ac_check_lib_save_LIBS
     7715fi
     7716echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
     7717echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
     7718if test $ac_cv_lib_ipc_shmat = yes; then
     7719  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
     7720fi
     7721
     7722    fi
     7723  fi
     7724
     7725  # Check for libraries that X11R6 Xt/Xaw programs need.
     7726  ac_save_LDFLAGS=$LDFLAGS
     7727  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
     7728  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
     7729  # check for ICE first), but we must link in the order -lSM -lICE or
     7730  # we get undefined symbols.  So assume we have SM if we have ICE.
     7731  # These have to be linked with before -lX11, unlike the other
     7732  # libraries we check for below, so use a different variable.
     7733  # John Interrante, Karl Berry
     7734  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
     7735echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
     7736if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
     7737  echo $ECHO_N "(cached) $ECHO_C" >&6
     7738else
     7739  ac_check_lib_save_LIBS=$LIBS
     7740LIBS="-lICE $X_EXTRA_LIBS $LIBS"
     7741cat >conftest.$ac_ext <<_ACEOF
     7742#line $LINENO "configure"
     7743/* confdefs.h.  */
     7744_ACEOF
     7745cat confdefs.h >>conftest.$ac_ext
     7746cat >>conftest.$ac_ext <<_ACEOF
     7747/* end confdefs.h.  */
     7748
     7749/* Override any gcc2 internal prototype to avoid an error.  */
     7750#ifdef __cplusplus
     7751extern "C"
     7752#endif
     7753/* We use char because int might match the return type of a gcc2
     7754   builtin and then its argument prototype would still apply.  */
     7755char IceConnectionNumber ();
     7756int
     7757main ()
     7758{
     7759IceConnectionNumber ();
     7760  ;
     7761  return 0;
     7762}
     7763_ACEOF
     7764rm -f conftest.$ac_objext conftest$ac_exeext
     7765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7766  (eval $ac_link) 2>&5
     7767  ac_status=$?
     7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7769  (exit $ac_status); } &&
     7770         { ac_try='test -s conftest$ac_exeext'
     7771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7772  (eval $ac_try) 2>&5
     7773  ac_status=$?
     7774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7775  (exit $ac_status); }; }; then
     7776  ac_cv_lib_ICE_IceConnectionNumber=yes
     7777else
     7778  echo "$as_me: failed program was:" >&5
     7779sed 's/^/| /' conftest.$ac_ext >&5
     7780
     7781ac_cv_lib_ICE_IceConnectionNumber=no
     7782fi
     7783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     7784LIBS=$ac_check_lib_save_LIBS
     7785fi
     7786echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
     7787echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
     7788if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
     7789  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
     7790fi
     7791
     7792  LDFLAGS=$ac_save_LDFLAGS
     7793
     7794fi
     7795
     7796
     7797        # Check for libX11
     7798        echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
     7799echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
     7800if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
     7801  echo $ECHO_N "(cached) $ECHO_C" >&6
     7802else
     7803  ac_check_lib_save_LIBS=$LIBS
     7804LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"
     7805cat >conftest.$ac_ext <<_ACEOF
     7806#line $LINENO "configure"
     7807/* confdefs.h.  */
     7808_ACEOF
     7809cat confdefs.h >>conftest.$ac_ext
     7810cat >>conftest.$ac_ext <<_ACEOF
     7811/* end confdefs.h.  */
     7812
     7813/* Override any gcc2 internal prototype to avoid an error.  */
     7814#ifdef __cplusplus
     7815extern "C"
     7816#endif
     7817/* We use char because int might match the return type of a gcc2
     7818   builtin and then its argument prototype would still apply.  */
     7819char XOpenDisplay ();
     7820int
     7821main ()
     7822{
     7823XOpenDisplay ();
     7824  ;
     7825  return 0;
     7826}
     7827_ACEOF
     7828rm -f conftest.$ac_objext conftest$ac_exeext
     7829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7830  (eval $ac_link) 2>&5
     7831  ac_status=$?
     7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7833  (exit $ac_status); } &&
     7834         { ac_try='test -s conftest$ac_exeext'
     7835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7836  (eval $ac_try) 2>&5
     7837  ac_status=$?
     7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7839  (exit $ac_status); }; }; then
     7840  ac_cv_lib_X11_XOpenDisplay=yes
     7841else
     7842  echo "$as_me: failed program was:" >&5
     7843sed 's/^/| /' conftest.$ac_ext >&5
     7844
    67147845ac_cv_lib_X11_XOpenDisplay=no
    67157846fi
    6716 rm -f conftest.err conftest.$ac_objext \
    6717       conftest$ac_exeext conftest.$ac_ext
     7847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    67187848LIBS=$ac_check_lib_save_LIBS
    67197849fi
     
    73158445      # substitution turns \\\\ into \\, and sed turns \\ into \).
    73168446      sed -n \
    7317         "s/'/'\\\\''/g;
    7318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     8447        "s/'/'\\\\''/g;
     8448          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    73198449      ;;
    73208450    *)
    73218451      # `set' quotes correctly as required by POSIX, so do not add quotes.
    73228452      sed -n \
    7323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     8453        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    73248454      ;;
    73258455    esac;
     
    73518481# (actually we leave an empty line to preserve line numbers).
    73528482if test "x$srcdir" = x.; then
    7353   ac_vpsub='/^[  ]*VPATH[        ]*=/{
     8483  ac_vpsub='/^[         ]*VPATH[        ]*=/{
    73548484s/:*\$(srcdir):*/:/;
    73558485s/:*\${srcdir}:*/:/;
    73568486s/:*@srcdir@:*/:/;
    7357 s/^\([^=]*=[     ]*\):*/\1/;
     8487s/^\([^=]*=[    ]*\):*/\1/;
    73588488s/:*$//;
    7359 s/^[^=]*=[       ]*$//;
     8489s/^[^=]*=[      ]*$//;
    73608490}'
    73618491fi
     
    73688498  # 1. Remove the extension, and $U if already installed.
    73698499  ac_i=`echo "$ac_i" |
    7370         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     8500        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    73718501  # 2. Add them.
    73728502  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     
    74128542  set -o posix
    74138543fi
    7414 DUALCASE=1; export DUALCASE # for MKS sh
    74158544
    74168545# Support unset when possible.
    7417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     8546if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    74188547  as_unset=unset
    74198548else
     
    74348563  LC_TELEPHONE LC_TIME
    74358564do
    7436   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     8565  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    74378566    eval $as_var=C; export $as_var
    74388567  else
     
    76138742  as_mkdir_p=:
    76148743else
    7615   test -d ./-p && rmdir ./-p
    76168744  as_mkdir_p=false
    76178745fi
     
    76208748
    76218749# Sed expression to map a string onto a valid CPP name.
    7622 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     8750as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    76238751
    76248752# Sed expression to map a string onto a valid variable name.
    7625 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     8753as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    76268754
    76278755
     
    76508778
    76518779This file was extended by OpenDarwin DarwinPorts $as_me 1.0, which was
    7652 generated by GNU Autoconf 2.59.  Invocation command line was
     8780generated by GNU Autoconf 2.57.  Invocation command line was
    76538781
    76548782  CONFIG_FILES    = $CONFIG_FILES
     
    76948822      --recheck    update $as_me by reconfiguring in the same conditions
    76958823  --file=FILE[:TEMPLATE]
    7696                    instantiate the configuration file FILE
     8824                   instantiate the configuration file FILE
    76978825  --header=FILE[:TEMPLATE]
    7698                    instantiate the configuration header FILE
     8826                   instantiate the configuration header FILE
    76998827
    77008828Configuration files:
     
    77108838ac_cs_version="\\
    77118839OpenDarwin DarwinPorts config.status 1.0
    7712 configured by $0, generated by GNU Autoconf 2.59,
     8840configured by $0, generated by GNU Autoconf 2.57,
    77138841  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    77148842
    7715 Copyright (C) 2003 Free Software Foundation, Inc.
     8843Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     8844Free Software Foundation, Inc.
    77168845This config.status script is free software; the Free Software Foundation
    77178846gives unlimited permission to copy, distribute and modify it."
     
    79279056s,@SET_MAKE@,$SET_MAKE,;t t
    79289057s,@LN_S@,$LN_S,;t t
     9058s,@CFLAGS_QUICHEEATERS@,$CFLAGS_QUICHEEATERS,;t t
    79299059s,@MTREE@,$MTREE,;t t
    79309060s,@subdirs@,$subdirs,;t t
     
    79979127  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    79989128      if test -z "$ac_sed_cmds"; then
    7999         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     9129        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    80009130      else
    8001         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     9131        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    80029132      fi
    80039133      ac_sed_frag=`expr $ac_sed_frag + 1`
     
    80179147  case $ac_file in
    80189148  - | *:- | *:-:* ) # input from stdin
    8019         cat >$tmp/stdin
    8020         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8021         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9149        cat >$tmp/stdin
     9150        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     9151        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    80229152  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8023         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9153        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    80249154  * )   ac_file_in=$ac_file.in ;;
    80259155  esac
     
    80289158  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    80299159$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8030         X"$ac_file" : 'X\(//\)[^/]' \| \
    8031         X"$ac_file" : 'X\(//\)$' \| \
    8032         X"$ac_file" : 'X\(/\)' \| \
    8033         .     : '\(.\)' 2>/dev/null ||
     9160        X"$ac_file" : 'X\(//\)[^/]' \| \
     9161        X"$ac_file" : 'X\(//\)$' \| \
     9162        X"$ac_file" : 'X\(/\)' \| \
     9163        .     : '\(.\)' 2>/dev/null ||
    80349164echo X"$ac_file" |
    80359165    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    80479177      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    80489178$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8049         X"$as_dir" : 'X\(//\)[^/]' \| \
    8050         X"$as_dir" : 'X\(//\)$' \| \
    8051         X"$as_dir" : 'X\(/\)' \| \
    8052         .     : '\(.\)' 2>/dev/null ||
     9179        X"$as_dir" : 'X\(//\)[^/]' \| \
     9180        X"$as_dir" : 'X\(//\)$' \| \
     9181        X"$as_dir" : 'X\(/\)' \| \
     9182        .     : '\(.\)' 2>/dev/null ||
    80539183echo X"$as_dir" |
    80549184    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    80889218    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    80899219esac
    8090 
    8091 # Do not use `cd foo && pwd` to compute absolute paths, because
    8092 # the directories may not exist.
    8093 case `pwd` in
    8094 .) ac_abs_builddir="$ac_dir";;
    8095 *)
    8096   case "$ac_dir" in
    8097   .) ac_abs_builddir=`pwd`;;
    8098   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8099   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8100   esac;;
    8101 esac
    8102 case $ac_abs_builddir in
    8103 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8104 *)
    8105   case ${ac_top_builddir}. in
    8106   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8107   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8108   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8109   esac;;
    8110 esac
    8111 case $ac_abs_builddir in
    8112 .) ac_abs_srcdir=$ac_srcdir;;
    8113 *)
    8114   case $ac_srcdir in
    8115   .) ac_abs_srcdir=$ac_abs_builddir;;
    8116   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8117   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8118   esac;;
    8119 esac
    8120 case $ac_abs_builddir in
    8121 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8122 *)
    8123   case $ac_top_srcdir in
    8124   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8125   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8126   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8127   esac;;
    8128 esac
     9220# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     9221# absolute.
     9222ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     9223ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     9224ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     9225ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    81299226
    81309227
     
    81349231  esac
    81359232
     9233  if test x"$ac_file" != x-; then
     9234    { echo "$as_me:$LINENO: creating $ac_file" >&5
     9235echo "$as_me: creating $ac_file" >&6;}
     9236    rm -f "$ac_file"
     9237  fi
    81369238  # Let's still pretend it is `configure' which instantiates (i.e., don't
    81379239  # use $as_me), people would be surprised to read:
     
    81439245  fi
    81449246  configure_input=$configure_input"Generated from `echo $ac_file_in |
    8145                                      sed 's,.*/,,'` by configure."
     9247                                     sed 's,.*/,,'` by configure."
    81469248
    81479249  # First look for the input files in the build tree, otherwise in the
     
    81529254      -) echo $tmp/stdin ;;
    81539255      [\\/$]*)
    8154         # Absolute (can't be DOS-style, as IFS=:)
    8155         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9256        # Absolute (can't be DOS-style, as IFS=:)
     9257        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    81569258echo "$as_me: error: cannot find input file: $f" >&2;}
    81579259   { (exit 1); exit 1; }; }
    8158          echo "$f";;
     9260         echo $f;;
    81599261      *) # Relative
    8160         if test -f "$f"; then
    8161            # Build tree
    8162            echo "$f"
    8163         elif test -f "$srcdir/$f"; then
    8164            # Source tree
    8165            echo "$srcdir/$f"
    8166         else
    8167            # /dev/null tree
    8168            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9262        if test -f "$f"; then
     9263           # Build tree
     9264           echo $f
     9265        elif test -f "$srcdir/$f"; then
     9266           # Source tree
     9267           echo $srcdir/$f
     9268        else
     9269           # /dev/null tree
     9270           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    81699271echo "$as_me: error: cannot find input file: $f" >&2;}
    81709272   { (exit 1); exit 1; }; }
    8171         fi;;
     9273        fi;;
    81729274      esac
    81739275    done` || { (exit 1); exit 1; }
    8174 
    8175   if test x"$ac_file" != x-; then
    8176     { echo "$as_me:$LINENO: creating $ac_file" >&5
    8177 echo "$as_me: creating $ac_file" >&6;}
    8178     rm -f "$ac_file"
    8179   fi
    81809276_ACEOF
    81819277cat >>$CONFIG_STATUS <<_ACEOF
     
    82179313#
    82189314# ac_d sets the value in "#define NAME VALUE" lines.
    8219 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
    8220 ac_dB='[         ].*$,\1#\2'
     9315ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
     9316ac_dB='[        ].*$,\1#\2'
    82219317ac_dC=' '
    82229318ac_dD=',;t'
    82239319# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    8224 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     9320ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    82259321ac_uB='$,\1#\2define\3'
    82269322ac_uC=' '
     
    82319327  case $ac_file in
    82329328  - | *:- | *:-:* ) # input from stdin
    8233         cat >$tmp/stdin
    8234         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8235         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9329        cat >$tmp/stdin
     9330        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     9331        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    82369332  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    8237         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9333        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    82389334  * )   ac_file_in=$ac_file.in ;;
    82399335  esac
     
    82499345      -) echo $tmp/stdin ;;
    82509346      [\\/$]*)
    8251         # Absolute (can't be DOS-style, as IFS=:)
    8252         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9347        # Absolute (can't be DOS-style, as IFS=:)
     9348        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    82539349echo "$as_me: error: cannot find input file: $f" >&2;}
    82549350   { (exit 1); exit 1; }; }
    8255          # Do quote $f, to prevent DOS paths from being IFS'd.
    8256          echo "$f";;
     9351         echo $f;;
    82579352      *) # Relative
    8258         if test -f "$f"; then
    8259            # Build tree
    8260            echo "$f"
    8261         elif test -f "$srcdir/$f"; then
    8262            # Source tree
    8263            echo "$srcdir/$f"
    8264         else
    8265            # /dev/null tree
    8266            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9353        if test -f "$f"; then
     9354           # Build tree
     9355           echo $f
     9356        elif test -f "$srcdir/$f"; then
     9357           # Source tree
     9358           echo $srcdir/$f
     9359        else
     9360           # /dev/null tree
     9361           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    82679362echo "$as_me: error: cannot find input file: $f" >&2;}
    82689363   { (exit 1); exit 1; }; }
    8269         fi;;
     9364        fi;;
    82709365      esac
    82719366    done` || { (exit 1); exit 1; }
    82729367  # Remove the trailing spaces.
    8273   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     9368  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
    82749369
    82759370_ACEOF
     
    82949389t clear
    82959390: clear
    8296 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     9391s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    82979392t end
    8298 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     9393s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    82999394: end
    83009395_ACEOF
     
    83109405# on some systems where configure will not decide to define it.
    83119406cat >>conftest.undefs <<\_ACEOF
    8312 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     9407s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    83139408_ACEOF
    83149409
     
    83169411# of here documents, and old seds have small limits too (100 cmds).
    83179412echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    8318 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     9413echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    83199414echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    83209415echo '  :' >>$CONFIG_STATUS
     
    83259420  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    83269421  # Speed up: don't consider the non `#define' lines.
    8327   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     9422  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    83289423  # Work around the forget-to-reset-the-flag bug.
    83299424  echo 't clr' >>$CONFIG_STATUS
     
    83529447  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    83539448  # Speed up: don't consider the non `#undef'
    8354   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     9449  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    83559450  # Work around the forget-to-reset-the-flag bug.
    83569451  echo 't clr' >>$CONFIG_STATUS
     
    83869481      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    83879482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8388         X"$ac_file" : 'X\(//\)[^/]' \| \
    8389         X"$ac_file" : 'X\(//\)$' \| \
    8390         X"$ac_file" : 'X\(/\)' \| \
    8391         .     : '\(.\)' 2>/dev/null ||
     9483        X"$ac_file" : 'X\(//\)[^/]' \| \
     9484        X"$ac_file" : 'X\(//\)$' \| \
     9485        X"$ac_file" : 'X\(/\)' \| \
     9486        .     : '\(.\)' 2>/dev/null ||
    83929487echo X"$ac_file" |
    83939488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    84059500      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    84069501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8407         X"$as_dir" : 'X\(//\)[^/]' \| \
    8408         X"$as_dir" : 'X\(//\)$' \| \
    8409         X"$as_dir" : 'X\(/\)' \| \
    8410         .     : '\(.\)' 2>/dev/null ||
     9502        X"$as_dir" : 'X\(//\)[^/]' \| \
     9503        X"$as_dir" : 'X\(//\)$' \| \
     9504        X"$as_dir" : 'X\(/\)' \| \
     9505        .     : '\(.\)' 2>/dev/null ||
    84119506echo X"$as_dir" |
    84129507    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    85179612      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    85189613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    8519         X"$as_dir" : 'X\(//\)[^/]' \| \
    8520         X"$as_dir" : 'X\(//\)$' \| \
    8521         X"$as_dir" : 'X\(/\)' \| \
    8522         .     : '\(.\)' 2>/dev/null ||
     9614        X"$as_dir" : 'X\(//\)[^/]' \| \
     9615        X"$as_dir" : 'X\(//\)$' \| \
     9616        X"$as_dir" : 'X\(/\)' \| \
     9617        .     : '\(.\)' 2>/dev/null ||
    85239618echo X"$as_dir" |
    85249619    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    85589653    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    85599654esac
    8560 
    8561 # Do not use `cd foo && pwd` to compute absolute paths, because
    8562 # the directories may not exist.
    8563 case `pwd` in
    8564 .) ac_abs_builddir="$ac_dir";;
    8565 *)
    8566   case "$ac_dir" in
    8567   .) ac_abs_builddir=`pwd`;;
    8568   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    8569   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    8570   esac;;
    8571 esac
    8572 case $ac_abs_builddir in
    8573 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    8574 *)
    8575   case ${ac_top_builddir}. in
    8576   .) ac_abs_top_builddir=$ac_abs_builddir;;
    8577   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    8578   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    8579   esac;;
    8580 esac
    8581 case $ac_abs_builddir in
    8582 .) ac_abs_srcdir=$ac_srcdir;;
    8583 *)
    8584   case $ac_srcdir in
    8585   .) ac_abs_srcdir=$ac_abs_builddir;;
    8586   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    8587   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    8588   esac;;
    8589 esac
    8590 case $ac_abs_builddir in
    8591 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    8592 *)
    8593   case $ac_top_srcdir in
    8594   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    8595   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    8596   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    8597   esac;;
    8598 esac
     9655# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     9656# absolute.
     9657ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     9658ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     9659ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     9660ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    85999661
    86009662
     
    86209682      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    86219683      *) # Relative path.
    8622         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
     9684        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
    86239685      esac
    86249686
     
    86279689      # The eval makes quoting arguments work.
    86289690      eval $ac_sub_configure $ac_sub_configure_args \
    8629            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
    8630         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
     9691           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
     9692        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
    86319693echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
    86329694   { (exit 1); exit 1; }; }
    86339695    fi
    86349696
    8635     cd "$ac_popdir"
     9697    cd $ac_popdir
    86369698  done
    86379699fi
  • trunk/base/configure.ac

    r5637 r7620  
    1111AC_PROG_MAKE_SET
    1212AC_PROG_LN_S
     13
     14# Quiche eaters options.
     15if test x$GCC = xyes; then
     16        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
     17fi
     18AC_SUBST(CFLAGS_QUICHEEATERS)
    1319
    1420OD_PROG_MTREE
     
    4147AC_FUNC_FORK
    4248AC_FUNC_STRERROR_R
    43 AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode])
     49AC_CHECK_FUNCS([bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp])
     50
     51# Check for md5 implementation
     52OD_LIB_MD5
     53# Check for X11 and paraphernalia
     54OD_CHECK_X11
    4455
    4556# Check for md5 implementation
  • trunk/base/doc/Makefile

    r5705 r7620  
    88
    99clean:
     10
     11test:
    1012
    1113distclean: clean
  • trunk/base/doc/ports.conf.in

    r5546 r7620  
    88prefix                  @prefix_expanded@
    99
     10# Type of storage to use for the port registry information, "flat" or "sqlite"
     11# NOTE: sqlite not yet supported.
     12portdbformat            flat
     13
     14# Type of installation to do for ports, "direct" or "image".  See documentation.
     15portinstalltype         image
     16
    1017# Directory containing the X11 installation.
    1118x11prefix               /usr/X11R6
  • trunk/base/src/Makefile

    r6356 r7620  
    1 TCLPKG=         darwinports1.0 port1.0 package1.0 pextlib1.0
     1TCLPKG=         darwinports1.0 port1.0 package1.0 pextlib1.0 registry1.0
    22SUBDIR=         ${TCLPKG} port programs
    33
     
    77        rm -f config.h
    88
     9test::
     10
    911include ../Mk/dports.subdir.mk
  • trunk/base/src/config.h.in

    r6374 r7620  
    8181#undef HAVE_STDLIB_H
    8282
     83/* Define to 1 if you have the `strcasecmp' function. */
     84#undef HAVE_STRCASECMP
     85
    8386/* Define to 1 if you have the `strdup' function. */
    8487#undef HAVE_STRDUP
     
    9598/* Define to 1 if you have the <string.h> header file. */
    9699#undef HAVE_STRING_H
     100
     101/* Define to 1 if you have the `strncasecmp' function. */
     102#undef HAVE_STRNCASECMP
    97103
    98104/* Define to 1 if you have the `strtol' function. */
  • trunk/base/src/darwinports1.0/Makefile

    r6834 r7620  
    1313
    1414clean::
     15
     16test::
    1517
    1618distclean:: clean
  • trunk/base/src/darwinports1.0/darwinports.tcl

    r7272 r7620  
    22#
    33# Copyright (c) 2002 Apple Computer, Inc.
     4# Copyright (c) 2004 Paul Guyot, Darwinports Team.
    45# All rights reserved.
    56#
     
    3435namespace eval darwinports {
    3536    namespace export bootstrap_options portinterp_options open_dports
    36     variable bootstrap_options "portdbpath libpath binpath master_site_local auto_path sources_conf prefix"
    37     variable portinterp_options "portdbpath portpath auto_path prefix portsharepath registry.path"
     37    variable bootstrap_options "portdbpath libpath auto_path sources_conf prefix portdbformat portinstalltype"
     38    variable portinterp_options "portdbpath portpath auto_path prefix portsharepath registry.path registry.format registry.installtype"
    3839       
    3940    variable open_dports {}
     
    6667
    6768proc dportinit {args} {
    68     global auto_path env darwinports::portdbpath darwinports::bootstrap_options darwinports::portinterp_options darwinports::portconf darwinports::sources darwinports::sources_conf darwinports::portsharepath darwinports::registry.path darwinports::autoconf::dports_conf_path
     69    global auto_path env darwinports::portdbpath darwinports::bootstrap_options darwinports::portinterp_options darwinports::portconf darwinports::sources darwinports::sources_conf darwinports::portsharepath darwinports::registry.path darwinports::autoconf::dports_conf_path darwinports::registry.format darwinports::registry.installtype
    6970
    7071    # first look at PORTSRC for testing/debugging
     
    143144    }
    144145
    145     set registry.path [file join $portdbpath receipts]
     146    set registry.path $portdbpath
    146147    if {![file isdirectory ${registry.path}]} {
    147148        if {![file exists ${registry.path}]} {
     
    155156    }
    156157
     158        # Format for receipts, can currently be either "flat" or "sqlite"
     159        if {[info exists portdbformat]} {
     160                if { $portdbformat == "sqlite" } {
     161                        return -code error "SQLite is not yet supported for registry storage."
     162                }
     163                set registry.format receipt_${portdbformat}
     164        } else {
     165                set registry.format receipt_flat
     166        }
     167
     168        # Installation type, whether to use port "images" or install "direct"
     169        if {[info exists portinstalltype]} {
     170                set registry.installtype $portinstalltype
     171        } else {
     172                set registry.installtype image
     173        }
     174   
    157175    set portsharepath ${prefix}/share/darwinports
    158176    if {![file isdirectory $portsharepath]} {
     
    185203                # should ship with darwinports1.0 API?
    186204                package require Pextlib 1.0
     205                package require registry 1.0
    187206    } else {
    188207                return -code error "Library directory '$libpath' must exist"
     
    191210
    192211proc darwinports::worker_init {workername portpath options variations} {
    193     global darwinports::portinterp_options auto_path
     212    global darwinports::portinterp_options auto_path registry.installtype
     213
     214        # Tell the sub interpreter about all the Tcl packages we already
     215        # know about so it won't glob for packages.
     216        foreach pkgName [package names] {
     217                foreach pkgVers [package versions $pkgName] {
     218                        set pkgLoadScript [package ifneeded $pkgName $pkgVers]
     219                        $workername eval "package ifneeded $pkgName $pkgVers {$pkgLoadScript}"
     220                }
     221        }
    194222
    195223    # Create package require abstraction procedure
     
    204232    $workername alias ui_event darwinports::ui_event $workername
    205233
    206         # xxx: find a better home for this registry cruft--like six feet under.
    207         $workername alias registry_new dportregistry::new $workername
    208         $workername alias registry_store dportregistry::store
    209         $workername alias registry_delete dportregistry::delete
    210         $workername alias registry_exists dportregistry::exists
    211         $workername alias registry_close dportregistry::close
    212         $workername alias fileinfo_for_index dportregistry::fileinfo_for_index
    213         $workername alias fileinfo_for_file dportregistry::fileinfo_for_file
    214         $workername alias fileinfo_for_entry dportregistry::fileinfo_for_entry
     234        # New Registry/Receipts stuff
     235        $workername alias registry_new registry::new_entry
     236        $workername alias registry_open registry::open_entry
     237        $workername alias registry_write registry::write_entry
     238        $workername alias registry_prop_store registry::property_store
     239        $workername alias registry_prop_retr registry::property_retrieve
     240        $workername alias registry_delete registry::delete_entry
     241        $workername alias registry_exists registry::entry_exists
     242        $workername alias registry_activate portimage::activate
     243        $workername alias registry_deactivate portimage::deactivate
     244        $workername alias registry_register_deps registry::register_dependencies
     245        $workername alias registry_fileinfo_for_index registry::fileinfo_for_index
     246        $workername alias registry_bulk_register_files registry::register_bulk_files
    215247
    216248    foreach opt $portinterp_options {
     
    231263    foreach {var val} $variations {
    232264        $workername eval set variations($var) $val
     265    }
     266
     267    if { [info exists registry.installtype] } {
     268            $workername eval set installtype ${registry.installtype}
    233269    }
    234270}
     
    256292        return -code error "Can't decipher portdir from $fetchfile"
    257293    }
    258 
    259294    return [file join $fetchdir $portdir]
    260295}
     
    342377}
    343378
     379# Traverse a directory with ports, calling a function on the path of ports
     380# (at the second depth).
     381# I.e. the structure of dir shall be:
     382# category/port/
     383# with a Portfile file in category/port/
     384#
     385# func:         function to call on every port directory (it is passed
     386#                       category/port/ as its parameter)
     387# root:         the directory with all the categories directories.
     388proc dporttraverse {func {root .}} {
     389        # Save the current directory
     390        set pwd [pwd]
     391       
     392        # Join the root.
     393        set pathToRoot [file join $pwd $root]
     394
     395        # Go to root because some callers expects us to be there.
     396        cd $pathToRoot
     397
     398    foreach category [readdir $root] {
     399        set pathToCategory [file join $root $category]
     400        if {[file isdirectory $pathToCategory]} {
     401                # Iterate on port directories.
     402                        foreach port [readdir $pathToCategory] {
     403                                set pathToPort [file join $pathToCategory $port]
     404                                if {[file isdirectory $pathToPort] &&
     405                                        [file exists [file join $pathToPort "Portfile"]]} {
     406                                        # Call the function.
     407                                        $func [file join $category $port]
     408                                       
     409                                        # Restore the current directory because some
     410                                        # functions changes it.
     411                                        cd $pathToRoot
     412                                }
     413                        }
     414        }
     415        }
     416       
     417        # Restore the current directory.
     418        cd $pwd
     419}
     420
    344421### _dportsearchpath is private; subject to change without notice
    345422
     
    364441        }
    365442    }
    366 
    367443    return $found
    368444}
     
    455531        set workername [ditem_key $dport workername]
    456532        set res [$workername eval registry_exists \${portname} \${portversion}]
    457         if {$res != ""} {
    458                 ui_debug "Found Dependency: receipt: $res"
     533        if {$res != 0} {
     534                ui_debug "[ditem_key $dport provides] is installed"
    459535                return 1
    460536        } else {
     
    474550        set workername [ditem_key $dport workername]
    475551        set res [$workername eval registry_exists \${portname} \${portversion}]
    476         if {$res != ""} {
    477                 ui_debug "Found Dependency: receipt: $res"
     552        if {$res != 0} {
     553                ui_debug "Found Dependency: receipt exists for [ditem_key $dport provides]"
    478554                return 1
    479555        } else {
     
    510586
    511587proc dportexec {dport target} {
    512     global darwinports::portinterp_options
     588    global darwinports::portinterp_options darwinports::registry.installtype
    513589
    514590        set workername [ditem_key $dport workername]
     
    542618
    543619                # install them
    544                 set result [dlist_eval $dlist _dportinstalled [list _dportexec "install"]]
     620                # xxx: as with below, this is ugly.  and deps need to be fixed to
     621                # understand Port Images before this can get prettier
     622                if { [string equal ${darwinports::registry.installtype} "image"] && [string equal $target "install"] } {
     623                        set result [dlist_eval $dlist _dportinstalled [list _dportexec "activate"]]
     624                } else {
     625                        set result [dlist_eval $dlist _dportinstalled [list _dportexec "install"]]
     626                }
    545627               
    546628                if {$result != {}} {
     
    552634                        return 1
    553635                }
    554                
    555                 # Close the dependencies, we're done installing them
    556                 foreach ditem $dlist {
    557                     dportclose $ditem
    558                 }
     636               
     637                # Close the dependencies, we're done installing them.
     638                foreach ditem $dlist {
     639                        dportclose $ditem
     640                }
     641        }
     642
     643        # If we're doing image installs, then we should activate after install
     644        # xxx: This isn't pretty
     645        if { [string equal ${darwinports::registry.installtype} "image"] && [string equal $target "install"] } {
     646                set target activate
    559647        }
    560648       
     
    595683                        exec curl -L -s -S -o $indexfile $source/PortIndex
    596684                }
    597     }
     685        }
    598686}
    599687
     
    608696                        eval lappend matches $res
    609697                } else {
    610         if {[catch {set fd [open [darwinports::getindex $source] r]} result]} {
    611             return -code error "Can't open index file for source $source. Have you synced your source indexes?"
    612         }
    613         while {[gets $fd line] >= 0} {
    614             set name [lindex $line 0]
    615             if {[regexp -- $regexp $name] == 1} {
    616                 gets $fd line
    617                 array set portinfo $line
    618                 if {[info exists portinfo(portarchive)]} {
    619                     lappend line porturl ${source}/$portinfo(portarchive)
    620                 } elseif {[info exists portinfo(portdir)]} {
    621                     lappend line porturl ${source}/$portinfo(portdir)
    622                 }
    623                 lappend matches $name
    624                 lappend matches $line
    625             } else {
    626                 set len [lindex $line 1]
    627                 seek $fd $len current
    628             }
    629         }
    630         close $fd
    631         }
     698                if {[catch {set fd [open [darwinports::getindex $source] r]} result]} {
     699                    return -code error "Can't open index file for source $source. Have you synced your source indexes?"
     700                        }
     701                while {[gets $fd line] >= 0} {
     702                    set name [lindex $line 0]
     703                    if {[regexp -- $regexp $name] == 1} {
     704                        gets $fd line
     705                        array set portinfo $line
     706                        if {[info exists portinfo(portarchive)]} {
     707                            lappend line porturl ${source}/$portinfo(portarchive)
     708                        } elseif {[info exists portinfo(portdir)]} {
     709                            lappend line porturl ${source}/$portinfo(portdir)
     710                        }
     711                        lappend matches $name
     712                        lappend matches $line
     713                    } else {
     714                        set len [lindex $line 1]
     715                        seek $fd $len current
     716                    }
     717                }
     718                close $fd
     719                }
    632720    }
    633721
     
    740828        return 0
    741829}
    742 
    743 # Snarfed from portregistry.tcl
    744 # For now, just write stuff to a file for debugging.
    745 
    746 namespace eval dportregistry {}
    747 
    748 proc dportregistry::new {workername portname {portversion 1.0}} {
    749     global _registry_name darwinports::registry.path
    750 
    751     file mkdir ${darwinports::registry.path}
    752     set _registry_name [file join ${darwinports::registry.path} $portname-$portversion]
    753     system "rm -f ${_registry_name}.tmp"
    754     set rhandle [open ${_registry_name}.tmp w 0644]
    755     puts $rhandle "\# Format: var value ... {contents {filename uid gid mode size {md5}} ... }"
    756         #interp share {} $rhandle $workername
    757     return $rhandle
    758 }
    759 
    760 proc dportregistry::exists {portname {portversion 0}} {
    761     global darwinports::registry.path
    762 
    763     # regex match case
    764     if {$portversion == 0} {
    765         set x [glob -nocomplain [file join ${darwinports::registry.path} ${portname}-*]]
    766         if {[string length $x]} {
    767             set matchfile [lindex $x 0]
    768         } else {
    769             set matchfile ""
    770         }
    771     } else {
    772         set matchfile [file join ${darwinports::registry.path} ${portname}-${portversion}]
    773     }
    774 
    775     # Might as well bail out early if no file to match
    776     if {![string length $matchfile]} {
    777         return ""
    778     }
    779 
    780     if {[file exists $matchfile]} {
    781         return $matchfile
    782     }
    783     if {[file exists ${matchfile}.bz2]} {
    784         return ${matchfile}.bz2
    785     }
    786     return ""
    787 }
    788 
    789 proc dportregistry::store {rhandle data} {
    790     puts $rhandle $data
    791 }
    792 
    793 proc dportregistry::fetch {rhandle} {
    794     return -1
    795 }
    796 
    797 proc dportregistry::traverse {func} {
    798     return -1
    799 }
    800 
    801 proc dportregistry::close {rhandle} {
    802     global _registry_name
    803     global registry.nobzip
    804 
    805     ::close $rhandle
    806     system "mv ${_registry_name}.tmp ${_registry_name}"
    807     if {[file exists ${_registry_name}] && [file exists /usr/bin/bzip2] && ![info exists registry.nobzip]} {
    808         system "/usr/bin/bzip2 -f ${_registry_name}"
    809     }
    810 }
    811 
    812 proc dportregistry::delete {portname {portversion 0}} {
    813     global darwinports::registry.path
    814 
    815     # regex match case, as in exists
    816     if {$portversion == 0} {
    817                 set x [glob -nocomplain [file join ${darwinports::registry.path} ${portname}-*]]
    818                 if {[string length $x]} {
    819                     exec rm -f [lindex $x 0]
    820                 }
    821         } else {
    822                 # Remove the file (with or without .bz2 suffix)
    823                 set filename [file join ${darwinports::registry.path} ${portname}-${portversion}]
    824                 if { [file exists $filename] } {
    825                         exec rm -rf $filename
    826                 } elseif { [file exists ${filename}.bz2] } {
    827                         exec rm -rf ${filename}.bz2
    828                 }
    829         }
    830 }
    831 
    832 proc dportregistry::fileinfo_for_file {fname} {
    833     if {![catch {file stat $fname statvar}]} {
    834         if {[file isfile $fname]} {
    835             if {[catch {md5 file $fname} md5sum] == 0} {
    836                 # Create a line that matches md5(1)'s output
    837                 # for backwards compatibility
    838                 set line "MD5 ($fname) = $md5sum"
    839                 return [list $fname $statvar(uid) $statvar(gid) $statvar(mode) $statvar(size) $line]
    840             }
    841         } else {
    842             return  [list $fname $statvar(uid) $statvar(gid) $statvar(mode) $statvar(size) "MD5 ($fname) NONE"]
    843         }
    844     }
    845     return {}
    846 }
    847 
    848 proc dportregistry::fileinfo_for_entry {rval dir entry} {
    849     upvar $rval myrval
    850     set path [file join $dir $entry]
    851     lappend myrval [dportregistry::fileinfo_for_file $path]
    852     return $myrval
    853 }
    854 
    855 proc dportregistry::fileinfo_for_index {flist} {
    856     global prefix
    857 
    858     set rval {}
    859     foreach file $flist {
    860         if {[string match /* $file]} {
    861             set fname $file
    862             set dir /
    863         } else {
    864             set fname [file join $prefix $file]
    865             set dir $prefix
    866         }
    867         dportregistry::fileinfo_for_entry rval $dir $file
    868     }
    869     return $rval
    870 }
    871 
    872 proc dportregistry::listinstalled {args} {
    873     global darwinports::registry.path
    874 
    875     set receiptglob [glob -nocomplain ${darwinports::registry.path}/*]
    876 
    877     if {$receiptglob == ""} {
    878         puts "No ports installed."
    879     } else {
    880         puts "The following ports are installed:"
    881         foreach receipt $receiptglob {
    882             if {[file extension $receipt] == ".bz2"} {
    883                 puts "\t[file rootname [file tail $receipt]]"
    884             } else {
    885                 puts "\t[file tail $receipt]"
    886             }
    887         }
    888     }
    889 }
    890 
  • trunk/base/src/package1.0/Makefile

    r6716 r7620  
    1212distclean::
    1313
     14test::
     15
    1416install::
    1517        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${DESTDIR}${datadir}/darwinports
  • trunk/base/src/pextlib1.0/Makefile

    r7212 r7620  
    11OBJS=           Pextlib.o strsed.o fgetln.o md5cmd.o setmode.o xinstall.o \
    2                 find.o vercomp.o
     2                find.o strcasecmp.o vercomp.o filemap.o
    33SHLIB_NAME=     Pextlib${SHLIB_SUFFIX}
    44INSTALLDIR= ${DESTDIR}${datadir}/darwinports/Tcl/pextlib1.0
     
    77include ../../Mk/dports.tea.mk
    88
     9.PHONY: test
     10
     11test:: ${SHLIB_NAME}
     12        ${TCLSH} tests/filemap.tcl ${SHLIB_NAME}
  • trunk/base/src/pextlib1.0/Pextlib.c

    r7212 r7620  
    11/*
    22 * Pextlib.c
     3 * $Id: Pextlib.c,v 1.65 2004/07/01 17:21:12 wbb4 Exp $
    34 *
    45 * Copyright (c) 2002 - 2003 Apple Computer, Inc.
     6 * Copyright (c) 2004 Paul Guyot, Darwinports Team.
    57 * All rights reserved.
    68 *
     
    9496#include "md5cmd.h"
    9597#include "find.h"
     98#include "filemap.h"
    9699#include "xinstall.h"
    97100#include "vercomp.h"
     
    188191int SystemCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    189192{
     193#pragma unused (clientData)
    190194        char *buf;
    191195        struct linebuf circbuf[CBUFSIZ];
     
    350354int FlockCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    351355{
     356#pragma unused (clientData)
    352357        static const char errorstr[] = "use one of \"-shared\", \"-exclusive\", or \"-unlock\", and optionally \"-noblock\"";
    353358        int operation = 0, fd, i, ret;
     
    485490}
    486491
     492/**
     493 *
     494 * Return the list of elements in a directory.
     495 * Since 1.60.4.2, the list doesn't include . and ..
     496 *
     497 * Synopsis: readdir directory
     498 */
    487499int ReaddirCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    488500{
     501#pragma unused (clientData)
    489502        DIR *dirp;
    490503        struct dirent *dp;
     
    505518        tcl_result = Tcl_NewListObj(0, NULL);
    506519        while ((dp = readdir(dirp))) {
    507                 Tcl_ListObjAppendElement(interp, tcl_result, Tcl_NewStringObj(dp->d_name, -1));
     520                /* Skip . and .. */
     521                if ((dp->d_name[0] != '.') ||
     522                        ((dp->d_name[1] != 0)   /* "." */
     523                                &&
     524                        ((dp->d_name[1] != '.') || (dp->d_name[2] != 0)))) /* ".." */ {
     525                        Tcl_ListObjAppendElement(interp, tcl_result, Tcl_NewStringObj(dp->d_name, -1));
     526                }
    508527        }
    509528        closedir(dirp);
     
    515534int StrsedCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    516535{
     536#pragma unused (clientData)
    517537        char *pattern, *string, *res;
    518538        int range[2];
     
    540560int MktempCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    541561{
     562#pragma unused (clientData)
    542563        char *template, *sp;
    543564        Tcl_Obj *tcl_result;
     
    561582        Tcl_SetObjResult(interp, tcl_result);
    562583        free(sp);
     584        free(template);
    563585        return TCL_OK;
    564586}
     
    566588int MkstempCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    567589{
     590#pragma unused (clientData)
    568591        Tcl_Channel channel;
    569592        char *template, *channelname;
     
    595618int ExistsuserCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    596619{
     620#pragma unused (clientData)
    597621        Tcl_Obj *tcl_result;
    598622        struct passwd *pwent;
     
    622646int ExistsgroupCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    623647{
     648#pragma unused (clientData)
    624649        Tcl_Obj *tcl_result;
    625650        struct group *grent;
     
    649674int NextuidCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    650675{
     676#pragma unused (clientData, objc, objv)
    651677        Tcl_Obj *tcl_result;
    652678        struct passwd *pwent;
     
    666692int NextgidCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    667693{
     694#pragma unused (clientData, objc, objv)
    668695        Tcl_Obj *tcl_result;
    669696        struct group *grent;
     
    698725        Tcl_CreateObjCommand(interp, "xinstall", InstallCmd, NULL, NULL);
    699726        Tcl_CreateObjCommand(interp, "find", FindCmd, NULL, NULL);
     727        Tcl_CreateObjCommand(interp, "filemap", FilemapCmd, NULL, NULL);
    700728        Tcl_CreateObjCommand(interp, "rpm-vercomp", RPMVercompCmd, NULL, NULL);
    701729        if(Tcl_PkgProvide(interp, "Pextlib", "1.0") != TCL_OK)
  • trunk/base/src/pextlib1.0/find.c

    r7254 r7620  
    3939#include <stdio.h>
    4040#include <stdlib.h>
     41#include <string.h>
    4142
    4243#if HAVE_SYS_TYPES_H
     
    6364FindCmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    6465{
     66#pragma unused (clientData)
    6567        char *startdir;
    6668        char *match, *action;
  • trunk/base/src/pextlib1.0/md5cmd.c

    r3294 r7620  
    117117int MD5Cmd(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
    118118{
     119#pragma unused (clientData)
    119120        char *file, *action;
    120121        char buf[33];
  • trunk/base/src/pextlib1.0/strsed.c

    r4094 r7620  
    212212#endif
    213213
     214/* ------------------------------------------------------------------------- **