source: trunk/base/configure @ 16589

Last change on this file since 16589 was 16351, checked in by landonf (Landon Fuller), 14 years ago

Avoid using the non-portable -E sed flag

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 289.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for OpenDarwin DarwinPorts 1.0.
4#
5# Report bugs to <darwinports@opendarwin.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='OpenDarwin DarwinPorts'
271PACKAGE_TARNAME='darwinports'
272PACKAGE_VERSION='1.0'
273PACKAGE_STRING='OpenDarwin DarwinPorts 1.0'
274PACKAGE_BUGREPORT='darwinports@opendarwin.org'
275
276ac_unique_file="src/pextlib1.0/Pextlib.c"
277ac_subdirs_all="$ac_subdirs_all src/programs/mtree"
278ac_default_prefix=/opt/local
279# Factoring default headers for most tests.
280ac_includes_default="\
281#include <stdio.h>
282#if HAVE_SYS_TYPES_H
283# include <sys/types.h>
284#endif
285#if HAVE_SYS_STAT_H
286# include <sys/stat.h>
287#endif
288#if STDC_HEADERS
289# include <stdlib.h>
290# include <stddef.h>
291#else
292# if HAVE_STDLIB_H
293#  include <stdlib.h>
294# endif
295#endif
296#if HAVE_STRING_H
297# if !STDC_HEADERS && HAVE_MEMORY_H
298#  include <memory.h>
299# endif
300# include <string.h>
301#endif
302#if HAVE_STRINGS_H
303# include <strings.h>
304#endif
305#if HAVE_INTTYPES_H
306# include <inttypes.h>
307#else
308# if HAVE_STDINT_H
309#  include <stdint.h>
310# endif
311#endif
312#if HAVE_UNISTD_H
313# include <unistd.h>
314#endif"
315
316ac_subdirs_all="$ac_subdirs_all src/thread2.6"
317ac_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 CVS HAVE_LAUNCHD LAUNCHCTL XCODEBUILD TAR GNUTAR TAR_CMD CFLAGS_QUICHEEATERS MTREE subdirs ENABLE_LAUNCHD_SUPPORT HAVE_FRAMEWORK_COREFOUNDATION HAVE_FRAMEWORK_SYSTEMCONFIGURATION HAVE_FRAMEWORK_IOKIT HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER REPLACEMENT_PROGS EXTRA_PROGS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP DSTMODE 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 CURL_CONFIG CFLAGS_LIBCURL LDFLAGS_LIBCURL OUR_INCLUDED_PACKAGES 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'
318ac_subst_files=''
319
320# Initialize some variables set by options.
321ac_init_help=
322ac_init_version=false
323# The variables have the same names as the options, with
324# dashes changed to underlines.
325cache_file=/dev/null
326exec_prefix=NONE
327no_create=
328no_recursion=
329prefix=NONE
330program_prefix=NONE
331program_suffix=NONE
332program_transform_name=s,x,x,
333silent=
334site=
335srcdir=
336verbose=
337x_includes=NONE
338x_libraries=NONE
339
340# Installation directory options.
341# These are left unexpanded so users can "make install exec_prefix=/foo"
342# and all the variables that are supposed to be based on exec_prefix
343# by default will actually change.
344# Use braces instead of parens because sh, perl, etc. also accept them.
345bindir='${exec_prefix}/bin'
346sbindir='${exec_prefix}/sbin'
347libexecdir='${exec_prefix}/libexec'
348datadir='${prefix}/share'
349sysconfdir='${prefix}/etc'
350sharedstatedir='${prefix}/com'
351localstatedir='${prefix}/var'
352libdir='${exec_prefix}/lib'
353includedir='${prefix}/include'
354oldincludedir='/usr/include'
355infodir='${prefix}/info'
356mandir='${prefix}/man'
357
358ac_prev=
359for ac_option
360do
361  # If the previous option needs an argument, assign it.
362  if test -n "$ac_prev"; then
363    eval "$ac_prev=\$ac_option"
364    ac_prev=
365    continue
366  fi
367
368  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370  # Accept the important Cygnus configure options, so we can diagnose typos.
371
372  case $ac_option in
373
374  -bindir | --bindir | --bindi | --bind | --bin | --bi)
375    ac_prev=bindir ;;
376  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377    bindir=$ac_optarg ;;
378
379  -build | --build | --buil | --bui | --bu)
380    ac_prev=build_alias ;;
381  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382    build_alias=$ac_optarg ;;
383
384  -cache-file | --cache-file | --cache-fil | --cache-fi \
385  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386    ac_prev=cache_file ;;
387  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389    cache_file=$ac_optarg ;;
390
391  --config-cache | -C)
392    cache_file=config.cache ;;
393
394  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395    ac_prev=datadir ;;
396  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397  | --da=*)
398    datadir=$ac_optarg ;;
399
400  -disable-* | --disable-*)
401    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402    # Reject names that are not valid shell variable names.
403    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405   { (exit 1); exit 1; }; }
406    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407    eval "enable_$ac_feature=no" ;;
408
409  -enable-* | --enable-*)
410    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411    # Reject names that are not valid shell variable names.
412    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414   { (exit 1); exit 1; }; }
415    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416    case $ac_option in
417      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418      *) ac_optarg=yes ;;
419    esac
420    eval "enable_$ac_feature='$ac_optarg'" ;;
421
422  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424  | --exec | --exe | --ex)
425    ac_prev=exec_prefix ;;
426  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428  | --exec=* | --exe=* | --ex=*)
429    exec_prefix=$ac_optarg ;;
430
431  -gas | --gas | --ga | --g)
432    # Obsolete; use --with-gas.
433    with_gas=yes ;;
434
435  -help | --help | --hel | --he | -h)
436    ac_init_help=long ;;
437  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438    ac_init_help=recursive ;;
439  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440    ac_init_help=short ;;
441
442  -host | --host | --hos | --ho)
443    ac_prev=host_alias ;;
444  -host=* | --host=* | --hos=* | --ho=*)
445    host_alias=$ac_optarg ;;
446
447  -includedir | --includedir | --includedi | --included | --include \
448  | --includ | --inclu | --incl | --inc)
449    ac_prev=includedir ;;
450  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451  | --includ=* | --inclu=* | --incl=* | --inc=*)
452    includedir=$ac_optarg ;;
453
454  -infodir | --infodir | --infodi | --infod | --info | --inf)
455    ac_prev=infodir ;;
456  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457    infodir=$ac_optarg ;;
458
459  -libdir | --libdir | --libdi | --libd)
460    ac_prev=libdir ;;
461  -libdir=* | --libdir=* | --libdi=* | --libd=*)
462    libdir=$ac_optarg ;;
463
464  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465  | --libexe | --libex | --libe)
466    ac_prev=libexecdir ;;
467  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468  | --libexe=* | --libex=* | --libe=*)
469    libexecdir=$ac_optarg ;;
470
471  -localstatedir | --localstatedir | --localstatedi | --localstated \
472  | --localstate | --localstat | --localsta | --localst \
473  | --locals | --local | --loca | --loc | --lo)
474    ac_prev=localstatedir ;;
475  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478    localstatedir=$ac_optarg ;;
479
480  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481    ac_prev=mandir ;;
482  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483    mandir=$ac_optarg ;;
484
485  -nfp | --nfp | --nf)
486    # Obsolete; use --without-fp.
487    with_fp=no ;;
488
489  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490  | --no-cr | --no-c | -n)
491    no_create=yes ;;
492
493  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495    no_recursion=yes ;;
496
497  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499  | --oldin | --oldi | --old | --ol | --o)
500    ac_prev=oldincludedir ;;
501  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504    oldincludedir=$ac_optarg ;;
505
506  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507    ac_prev=prefix ;;
508  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509    prefix=$ac_optarg ;;
510
511  -program-prefix | --program-prefix | --program-prefi | --program-pref \
512  | --program-pre | --program-pr | --program-p)
513    ac_prev=program_prefix ;;
514  -program-prefix=* | --program-prefix=* | --program-prefi=* \
515  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516    program_prefix=$ac_optarg ;;
517
518  -program-suffix | --program-suffix | --program-suffi | --program-suff \
519  | --program-suf | --program-su | --program-s)
520    ac_prev=program_suffix ;;
521  -program-suffix=* | --program-suffix=* | --program-suffi=* \
522  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523    program_suffix=$ac_optarg ;;
524
525  -program-transform-name | --program-transform-name \
526  | --program-transform-nam | --program-transform-na \
527  | --program-transform-n | --program-transform- \
528  | --program-transform | --program-transfor \
529  | --program-transfo | --program-transf \
530  | --program-trans | --program-tran \
531  | --progr-tra | --program-tr | --program-t)
532    ac_prev=program_transform_name ;;
533  -program-transform-name=* | --program-transform-name=* \
534  | --program-transform-nam=* | --program-transform-na=* \
535  | --program-transform-n=* | --program-transform-=* \
536  | --program-transform=* | --program-transfor=* \
537  | --program-transfo=* | --program-transf=* \
538  | --program-trans=* | --program-tran=* \
539  | --progr-tra=* | --program-tr=* | --program-t=*)
540    program_transform_name=$ac_optarg ;;
541
542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543  | -silent | --silent | --silen | --sile | --sil)
544    silent=yes ;;
545
546  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547    ac_prev=sbindir ;;
548  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549  | --sbi=* | --sb=*)
550    sbindir=$ac_optarg ;;
551
552  -sharedstatedir | --sharedstatedir | --sharedstatedi \
553  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554  | --sharedst | --shareds | --shared | --share | --shar \
555  | --sha | --sh)
556    ac_prev=sharedstatedir ;;
557  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560  | --sha=* | --sh=*)
561    sharedstatedir=$ac_optarg ;;
562
563  -site | --site | --sit)
564    ac_prev=site ;;
565  -site=* | --site=* | --sit=*)
566    site=$ac_optarg ;;
567
568  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569    ac_prev=srcdir ;;
570  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571    srcdir=$ac_optarg ;;
572
573  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574  | --syscon | --sysco | --sysc | --sys | --sy)
575    ac_prev=sysconfdir ;;
576  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578    sysconfdir=$ac_optarg ;;
579
580  -target | --target | --targe | --targ | --tar | --ta | --t)
581    ac_prev=target_alias ;;
582  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583    target_alias=$ac_optarg ;;
584
585  -v | -verbose | --verbose | --verbos | --verbo | --verb)
586    verbose=yes ;;
587
588  -version | --version | --versio | --versi | --vers | -V)
589    ac_init_version=: ;;
590
591  -with-* | --with-*)
592    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593    # Reject names that are not valid shell variable names.
594    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595      { echo "$as_me: error: invalid package name: $ac_package" >&2
596   { (exit 1); exit 1; }; }
597    ac_package=`echo $ac_package| sed 's/-/_/g'`
598    case $ac_option in
599      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600      *) ac_optarg=yes ;;
601    esac
602    eval "with_$ac_package='$ac_optarg'" ;;
603
604  -without-* | --without-*)
605    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606    # Reject names that are not valid shell variable names.
607    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608      { echo "$as_me: error: invalid package name: $ac_package" >&2
609   { (exit 1); exit 1; }; }
610    ac_package=`echo $ac_package | sed 's/-/_/g'`
611    eval "with_$ac_package=no" ;;
612
613  --x)
614    # Obsolete; use --with-x.
615    with_x=yes ;;
616
617  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618  | --x-incl | --x-inc | --x-in | --x-i)
619    ac_prev=x_includes ;;
620  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622    x_includes=$ac_optarg ;;
623
624  -x-libraries | --x-libraries | --x-librarie | --x-librari \
625  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626    ac_prev=x_libraries ;;
627  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629    x_libraries=$ac_optarg ;;
630
631  -*) { echo "$as_me: error: unrecognized option: $ac_option
632Try \`$0 --help' for more information." >&2
633   { (exit 1); exit 1; }; }
634    ;;
635
636  *=*)
637    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638    # Reject names that are not valid shell variable names.
639    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641   { (exit 1); exit 1; }; }
642    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643    eval "$ac_envvar='$ac_optarg'"
644    export $ac_envvar ;;
645
646  *)
647    # FIXME: should be removed in autoconf 3.0.
648    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652    ;;
653
654  esac
655done
656
657if test -n "$ac_prev"; then
658  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659  { echo "$as_me: error: missing argument to $ac_option" >&2
660   { (exit 1); exit 1; }; }
661fi
662
663# Be sure to have absolute paths.
664for ac_var in exec_prefix prefix
665do
666  eval ac_val=$`echo $ac_var`
667  case $ac_val in
668    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670   { (exit 1); exit 1; }; };;
671  esac
672done
673
674# Be sure to have absolute paths.
675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676              localstatedir libdir includedir oldincludedir infodir mandir
677do
678  eval ac_val=$`echo $ac_var`
679  case $ac_val in
680    [\\/$]* | ?:[\\/]* ) ;;
681    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682   { (exit 1); exit 1; }; };;
683  esac
684done
685
686# There might be people who depend on the old broken behavior: `$host'
687# used to hold the argument of --host etc.
688# FIXME: To remove some day.
689build=$build_alias
690host=$host_alias
691target=$target_alias
692
693# FIXME: To remove some day.
694if test "x$host_alias" != x; then
695  if test "x$build_alias" = x; then
696    cross_compiling=maybe
697    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698    If a cross compiler is detected then cross compile mode will be used." >&2
699  elif test "x$build_alias" != "x$host_alias"; then
700    cross_compiling=yes
701  fi
702fi
703
704ac_tool_prefix=
705test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707test "$silent" = yes && exec 6>/dev/null
708
709
710# Find the source files, if location was not specified.
711if test -z "$srcdir"; then
712  ac_srcdir_defaulted=yes
713  # Try the directory containing this script, then its parent.
714  ac_confdir=`(dirname "$0") 2>/dev/null ||
715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716         X"$0" : 'X\(//\)[^/]' \| \
717         X"$0" : 'X\(//\)$' \| \
718         X"$0" : 'X\(/\)' \| \
719         .     : '\(.\)' 2>/dev/null ||
720echo X"$0" |
721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723          /^X\(\/\/\)$/{ s//\1/; q; }
724          /^X\(\/\).*/{ s//\1/; q; }
725          s/.*/./; q'`
726  srcdir=$ac_confdir
727  if test ! -r $srcdir/$ac_unique_file; then
728    srcdir=..
729  fi
730else
731  ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734  if test "$ac_srcdir_defaulted" = yes; then
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736   { (exit 1); exit 1; }; }
737  else
738    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739   { (exit 1); exit 1; }; }
740  fi
741fi
742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744   { (exit 1); exit 1; }; }
745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746ac_env_build_alias_set=${build_alias+set}
747ac_env_build_alias_value=$build_alias
748ac_cv_env_build_alias_set=${build_alias+set}
749ac_cv_env_build_alias_value=$build_alias
750ac_env_host_alias_set=${host_alias+set}
751ac_env_host_alias_value=$host_alias
752ac_cv_env_host_alias_set=${host_alias+set}
753ac_cv_env_host_alias_value=$host_alias
754ac_env_target_alias_set=${target_alias+set}
755ac_env_target_alias_value=$target_alias
756ac_cv_env_target_alias_set=${target_alias+set}
757ac_cv_env_target_alias_value=$target_alias
758ac_env_CC_set=${CC+set}
759ac_env_CC_value=$CC
760ac_cv_env_CC_set=${CC+set}
761ac_cv_env_CC_value=$CC
762ac_env_CFLAGS_set=${CFLAGS+set}
763ac_env_CFLAGS_value=$CFLAGS
764ac_cv_env_CFLAGS_set=${CFLAGS+set}
765ac_cv_env_CFLAGS_value=$CFLAGS
766ac_env_LDFLAGS_set=${LDFLAGS+set}
767ac_env_LDFLAGS_value=$LDFLAGS
768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769ac_cv_env_LDFLAGS_value=$LDFLAGS
770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_env_CPPFLAGS_value=$CPPFLAGS
772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774ac_env_CPP_set=${CPP+set}
775ac_env_CPP_value=$CPP
776ac_cv_env_CPP_set=${CPP+set}
777ac_cv_env_CPP_value=$CPP
778
779#
780# Report the --help message.
781#
782if test "$ac_init_help" = "long"; then
783  # Omit some internal or obsolete options to make the list less imposing.
784  # This message is too long to be a string in the A/UX 3.1 sh.
785  cat <<_ACEOF
786\`configure' configures OpenDarwin DarwinPorts 1.0 to adapt to many kinds of systems.
787
788Usage: $0 [OPTION]... [VAR=VALUE]...
789
790To assign environment variables (e.g., CC, CFLAGS...), specify them as
791VAR=VALUE.  See below for descriptions of some of the useful variables.
792
793Defaults for the options are specified in brackets.
794
795Configuration:
796  -h, --help              display this help and exit
797      --help=short        display options specific to this package
798      --help=recursive    display the short help of all the included packages
799  -V, --version           display version information and exit
800  -q, --quiet, --silent   do not print \`checking...' messages
801      --cache-file=FILE   cache test results in FILE [disabled]
802  -C, --config-cache      alias for \`--cache-file=config.cache'
803  -n, --no-create         do not create output files
804      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
805
806_ACEOF
807
808  cat <<_ACEOF
809Installation directories:
810  --prefix=PREFIX         install architecture-independent files in PREFIX
811                          [$ac_default_prefix]
812  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
813                          [PREFIX]
814
815By default, \`make install' will install all the files in
816\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
817an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818for instance \`--prefix=\$HOME'.
819
820For better control, use the options below.
821
822Fine tuning of the installation directories:
823  --bindir=DIR           user executables [EPREFIX/bin]
824  --sbindir=DIR          system admin executables [EPREFIX/sbin]
825  --libexecdir=DIR       program executables [EPREFIX/libexec]
826  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
827  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
828  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
829  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
830  --libdir=DIR           object code libraries [EPREFIX/lib]
831  --includedir=DIR       C header files [PREFIX/include]
832  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
833  --infodir=DIR          info documentation [PREFIX/info]
834  --mandir=DIR           man documentation [PREFIX/man]
835_ACEOF
836
837  cat <<\_ACEOF
838
839X features:
840  --x-includes=DIR    X include files are in DIR
841  --x-libraries=DIR   X library files are in DIR
842
843System types:
844  --build=BUILD     configure for building on BUILD [guessed]
845  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
846  --target=TARGET   configure for building compilers for TARGET [HOST]
847_ACEOF
848fi
849
850if test -n "$ac_init_help"; then
851  case $ac_init_help in
852     short | recursive ) echo "Configuration of OpenDarwin DarwinPorts 1.0:";;
853   esac
854  cat <<\_ACEOF
855
856Optional Features:
857  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859  --disable-launchd-support
860                          disable support for launchd startupitems
861  --enable-shared         build and link with shared libraries --enable-shared
862
863Optional Packages:
864  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866  --with-dports-dir=DIR   Specify alternate dports directory
867  --with-install-user=USER
868                          Specify user ownership of installed files
869  --with-install-group=GROUP
870                          Specify group ownership of installed files
871  --with-directory-mode=MODE
872                          Specify directory mode of installed directories
873  --with-x                use the X Window System
874  --with-tcl              directory containing tcl configuration (tclConfig.sh)
875  --with-tclinclude       directory containing the public Tcl header files.
876  --with-tclpackage       Tcl package installation directory.
877  --with-curlprefix       base directory for the cURL install '/usr', '/usr/local',...
878  --with-included-tclthread install included Thread package.
879
880Some influential environment variables:
881  CC          C compiler command
882  CFLAGS      C compiler flags
883  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884              nonstandard directory <lib dir>
885  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886              headers in a nonstandard directory <include dir>
887  CPP         C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892Report bugs to <darwinports@opendarwin.org>.
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897  # If there are subdirs, report their specific --help.
898  ac_popdir=`pwd`
899  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900    test -d $ac_dir || continue
901    ac_builddir=.
902
903if test "$ac_dir" != .; then
904  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905  # A "../" for each directory in $ac_dir_suffix.
906  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908  ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912  .)  # No --srcdir option.  We are building in place.
913    ac_srcdir=.
914    if test -z "$ac_top_builddir"; then
915       ac_top_srcdir=.
916    else
917       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918    fi ;;
919  [\\/]* | ?:[\\/]* )  # Absolute path.
920    ac_srcdir=$srcdir$ac_dir_suffix;
921    ac_top_srcdir=$srcdir ;;
922  *) # Relative path.
923    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924    ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932  case "$ac_dir" in
933  .) ac_abs_builddir=`pwd`;;
934  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935  *) ac_abs_builddir=`pwd`/"$ac_dir";;
936  esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941  case ${ac_top_builddir}. in
942  .) ac_abs_top_builddir=$ac_abs_builddir;;
943  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945  esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950  case $ac_srcdir in
951  .) ac_abs_srcdir=$ac_abs_builddir;;
952  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954  esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959  case $ac_top_srcdir in
960  .) ac_abs_top_srcdir=$ac_abs_builddir;;
961  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963  esac;;
964esac
965
966    cd $ac_dir
967    # Check for guested configure; otherwise get Cygnus style configure.
968    if test -f $ac_srcdir/configure.gnu; then
969      echo
970      $SHELL $ac_srcdir/configure.gnu  --help=recursive
971    elif test -f $ac_srcdir/configure; then
972      echo
973      $SHELL $ac_srcdir/configure  --help=recursive
974    elif test -f $ac_srcdir/configure.ac ||
975           test -f $ac_srcdir/configure.in; then
976      echo
977      $ac_configure --help
978    else
979      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980    fi
981    cd "$ac_popdir"
982  done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987  cat <<\_ACEOF
988OpenDarwin DarwinPorts configure 1.0
989generated by GNU Autoconf 2.59
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995  exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by OpenDarwin DarwinPorts $as_me 1.0, which was
1003generated by GNU Autoconf 2.59.  Invocation command line was
1004
1005  $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1022
1023/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1024/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1027/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1028/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1029/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036  IFS=$as_save_IFS
1037  test -z "$as_dir" && as_dir=.
1038  echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065  for ac_arg
1066  do
1067    case $ac_arg in
1068    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070    | -silent | --silent | --silen | --sile | --sil)
1071      continue ;;
1072    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074    esac
1075    case $ac_pass in
1076    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077    2)
1078      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079      if test $ac_must_keep_next = true; then
1080        ac_must_keep_next=false # Got value, back to normal.
1081      else
1082        case $ac_arg in
1083          *=* | --config-cache | -C | -disable-* | --disable-* \
1084          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086          | -with-* | --with-* | -without-* | --without-* | --x)
1087            case "$ac_configure_args0 " in
1088              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089            esac
1090            ;;
1091          -* ) ac_must_keep_next=true ;;
1092        esac
1093      fi
1094      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095      # Get rid of the leading space.
1096      ac_sep=" "
1097      ;;
1098    esac
1099  done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log.  We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110  # Save into config.log some information that might help in debugging.
1111  {
1112    echo
1113
1114    cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119    echo
1120    # The following way of writing the cache mishandles newlines in values,
1121{
1122  (set) 2>&1 |
1123    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124    *ac_space=\ *)
1125      sed -n \
1126        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128      ;;
1129    *)
1130      sed -n \
1131        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132      ;;
1133    esac;
1134}
1135    echo
1136
1137    cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142    echo
1143    for ac_var in $ac_subst_vars
1144    do
1145      eval ac_val=$`echo $ac_var`
1146      echo "$ac_var='"'"'$ac_val'"'"'"
1147    done | sort
1148    echo
1149
1150    if test -n "$ac_subst_files"; then
1151      cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156      echo
1157      for ac_var in $ac_subst_files
1158      do
1159        eval ac_val=$`echo $ac_var`
1160        echo "$ac_var='"'"'$ac_val'"'"'"
1161      done | sort
1162      echo
1163    fi
1164
1165    if test -s confdefs.h; then
1166      cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171      echo
1172      sed "/^$/d" confdefs.h | sort
1173      echo
1174    fi
1175    test "$ac_signal" != 0 &&
1176      echo "$as_me: caught signal $ac_signal"
1177    echo "$as_me: exit $exit_status"
1178  } >&5
1179  rm -f core *.core &&
1180  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181    exit $exit_status
1182     ' 0
1183for ac_signal in 1 2 13 15; do
1184  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223  if test "x$prefix" != xNONE; then
1224    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225  else
1226    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227  fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230  if test -r "$ac_site_file"; then
1231    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233    sed 's/^/| /' "$ac_site_file" >&5
1234    . "$ac_site_file"
1235  fi
1236done
1237
1238if test -r "$cache_file"; then
1239  # Some versions of bash will fail to source /dev/null (special
1240  # files actually), so we avoid doing that.
1241  if test -f "$cache_file"; then
1242    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244    case $cache_file in
1245      [\\/]* | ?:[\\/]* ) . $cache_file;;
1246      *)                      . ./$cache_file;;
1247    esac
1248  fi
1249else
1250  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252  >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261  eval ac_new_set=\$ac_env_${ac_var}_set
1262  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263  eval ac_new_val="\$ac_env_${ac_var}_value"
1264  case $ac_old_set,$ac_new_set in
1265    set,)
1266      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268      ac_cache_corrupted=: ;;
1269    ,set)
1270      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272      ac_cache_corrupted=: ;;
1273    ,);;
1274    *)
1275      if test "x$ac_old_val" != "x$ac_new_val"; then
1276        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1279echo "$as_me:   former value:  $ac_old_val" >&2;}
1280        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1281echo "$as_me:   current value: $ac_new_val" >&2;}
1282        ac_cache_corrupted=:
1283      fi;;
1284  esac
1285  # Pass precious variables to config.status.
1286  if test "$ac_new_set" = set; then
1287    case $ac_new_val in
1288    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290    *) ac_arg=$ac_var=$ac_new_val ;;
1291    esac
1292    case " $ac_configure_args " in
1293      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1294      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295    esac
1296  fi
1297done
1298if $ac_cache_corrupted; then
1299  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303   { (exit 1); exit 1; }; }
1304fi
1305
1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339          ac_config_headers="$ac_config_headers src/config.h"
1340
1341ac_aux_dir=
1342for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1343  if test -f $ac_dir/install-sh; then
1344    ac_aux_dir=$ac_dir
1345    ac_install_sh="$ac_aux_dir/install-sh -c"
1346    break
1347  elif test -f $ac_dir/install.sh; then
1348    ac_aux_dir=$ac_dir
1349    ac_install_sh="$ac_aux_dir/install.sh -c"
1350    break
1351  elif test -f $ac_dir/shtool; then
1352    ac_aux_dir=$ac_dir
1353    ac_install_sh="$ac_aux_dir/shtool install -c"
1354    break
1355  fi
1356done
1357if test -z "$ac_aux_dir"; then
1358  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1359echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1360   { (exit 1); exit 1; }; }
1361fi
1362ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366# Make sure we can run config.sub.
1367$ac_config_sub sun4 >/dev/null 2>&1 ||
1368  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1369echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1370   { (exit 1); exit 1; }; }
1371
1372echo "$as_me:$LINENO: checking build system type" >&5
1373echo $ECHO_N "checking build system type... $ECHO_C" >&6
1374if test "${ac_cv_build+set}" = set; then
1375  echo $ECHO_N "(cached) $ECHO_C" >&6
1376else
1377  ac_cv_build_alias=$build_alias
1378test -z "$ac_cv_build_alias" &&
1379  ac_cv_build_alias=`$ac_config_guess`
1380test -z "$ac_cv_build_alias" &&
1381  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1382echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1383   { (exit 1); exit 1; }; }
1384ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1385  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1386echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1387   { (exit 1); exit 1; }; }
1388
1389fi
1390echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1391echo "${ECHO_T}$ac_cv_build" >&6
1392build=$ac_cv_build
1393build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396
1397
1398echo "$as_me:$LINENO: checking host system type" >&5
1399echo $ECHO_N "checking host system type... $ECHO_C" >&6
1400if test "${ac_cv_host+set}" = set; then
1401  echo $ECHO_N "(cached) $ECHO_C" >&6
1402else
1403  ac_cv_host_alias=$host_alias
1404test -z "$ac_cv_host_alias" &&
1405  ac_cv_host_alias=$ac_cv_build_alias
1406ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1407  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1408echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1409   { (exit 1); exit 1; }; }
1410
1411fi
1412echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1413echo "${ECHO_T}$ac_cv_host" >&6
1414host=$ac_cv_host
1415host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420echo "$as_me:$LINENO: checking target system type" >&5
1421echo $ECHO_N "checking target system type... $ECHO_C" >&6
1422if test "${ac_cv_target+set}" = set; then
1423  echo $ECHO_N "(cached) $ECHO_C" >&6
1424else
1425  ac_cv_target_alias=$target_alias
1426test "x$ac_cv_target_alias" = "x" &&
1427  ac_cv_target_alias=$ac_cv_host_alias
1428ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1429  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1430echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1431   { (exit 1); exit 1; }; }
1432
1433fi
1434echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1435echo "${ECHO_T}$ac_cv_target" >&6
1436target=$ac_cv_target
1437target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1440
1441
1442# The aliases save the names the user supplied, while $host etc.
1443# will get canonicalized.
1444test -n "$target_alias" &&
1445  test "$program_prefix$program_suffix$program_transform_name" = \
1446    NONENONEs,x,x, &&
1447  program_prefix=${target_alias}-
1448
1449# Check user PATH for DP paths, and remove as necessary.
1450
1451        oldprefix=$prefix
1452        if test "x$prefix" = "xNONE" ; then
1453                prefix=$ac_default_prefix
1454        fi
1455        oldPATH=$PATH
1456        newPATH=
1457        as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458        for as_dir in $oldPATH
1459        do
1460                IFS=$as_save_IFS
1461                if test "x$as_dir" != "x$prefix/bin" &&
1462                        test "x$as_dir" != "x$prefix/sbin"; then
1463                        if test -z "$newPATH"; then
1464                                newPATH=$as_dir
1465                        else
1466                                newPATH=$newPATH$PATH_SEPARATOR$as_dir
1467                        fi
1468                fi
1469        done
1470        PATH=$newPATH; export PATH
1471        prefix=$oldprefix
1472
1473
1474# Checks for programs.
1475ac_ext=c
1476ac_cpp='$CPP $CPPFLAGS'
1477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479ac_compiler_gnu=$ac_cv_c_compiler_gnu
1480if test -n "$ac_tool_prefix"; then
1481  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1482set dummy ${ac_tool_prefix}gcc; ac_word=$2
1483echo "$as_me:$LINENO: checking for $ac_word" >&5
1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485if test "${ac_cv_prog_CC+set}" = set; then
1486  echo $ECHO_N "(cached) $ECHO_C" >&6
1487else
1488  if test -n "$CC"; then
1489  ac_cv_prog_CC="$CC" # Let the user override the test.
1490else
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494  IFS=$as_save_IFS
1495  test -z "$as_dir" && as_dir=.
1496  for ac_exec_ext in '' $ac_executable_extensions; do
1497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500    break 2
1501  fi
1502done
1503done
1504
1505fi
1506fi
1507CC=$ac_cv_prog_CC
1508if test -n "$CC"; then
1509  echo "$as_me:$LINENO: result: $CC" >&5
1510echo "${ECHO_T}$CC" >&6
1511else
1512  echo "$as_me:$LINENO: result: no" >&5
1513echo "${ECHO_T}no" >&6
1514fi
1515
1516fi
1517if test -z "$ac_cv_prog_CC"; then
1518  ac_ct_CC=$CC
1519  # Extract the first word of "gcc", so it can be a program name with args.
1520set dummy gcc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524  echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526  if test -n "$ac_ct_CC"; then
1527  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532  IFS=$as_save_IFS
1533  test -z "$as_dir" && as_dir=.
1534  for ac_exec_ext in '' $ac_executable_extensions; do
1535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536    ac_cv_prog_ac_ct_CC="gcc"
1537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538    break 2
1539  fi
1540done
1541done
1542
1543fi
1544fi
1545ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546if test -n "$ac_ct_CC"; then
1547  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548echo "${ECHO_T}$ac_ct_CC" >&6
1549else
1550  echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554  CC=$ac_ct_CC
1555else
1556  CC="$ac_cv_prog_CC"
1557fi
1558
1559if test -z "$CC"; then
1560  if test -n "$ac_tool_prefix"; then
1561  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1562set dummy ${ac_tool_prefix}cc; ac_word=$2
1563echo "$as_me:$LINENO: checking for $ac_word" >&5
1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565if test "${ac_cv_prog_CC+set}" = set; then
1566  echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568  if test -n "$CC"; then
1569  ac_cv_prog_CC="$CC" # Let the user override the test.
1570else
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574  IFS=$as_save_IFS
1575  test -z "$as_dir" && as_dir=.
1576  for ac_exec_ext in '' $ac_executable_extensions; do
1577  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578    ac_cv_prog_CC="${ac_tool_prefix}cc"
1579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580    break 2
1581  fi
1582done
1583done
1584
1585fi
1586fi
1587CC=$ac_cv_prog_CC
1588if test -n "$CC"; then
1589  echo "$as_me:$LINENO: result: $CC" >&5
1590echo "${ECHO_T}$CC" >&6
1591else
1592  echo "$as_me:$LINENO: result: no" >&5
1593echo "${ECHO_T}no" >&6
1594fi
1595
1596fi
1597if test -z "$ac_cv_prog_CC"; then
1598  ac_ct_CC=$CC
1599  # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604  echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606  if test -n "$ac_ct_CC"; then
1607  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612  IFS=$as_save_IFS
1613  test -z "$as_dir" && as_dir=.
1614  for ac_exec_ext in '' $ac_executable_extensions; do
1615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616    ac_cv_prog_ac_ct_CC="cc"
1617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618    break 2
1619  fi
1620done
1621done
1622
1623fi
1624fi
1625ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626if test -n "$ac_ct_CC"; then
1627  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628echo "${ECHO_T}$ac_ct_CC" >&6
1629else
1630  echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634  CC=$ac_ct_CC
1635else
1636  CC="$ac_cv_prog_CC"
1637fi
1638
1639fi
1640if test -z "$CC"; then
1641  # Extract the first word of "cc", so it can be a program name with args.
1642set dummy cc; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$CC"; then
1649  ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
1651  ac_prog_rejected=no
1652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653for as_dir in $PATH
1654do
1655  IFS=$as_save_IFS
1656  test -z "$as_dir" && as_dir=.
1657  for ac_exec_ext in '' $ac_executable_extensions; do
1658  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1660       ac_prog_rejected=yes
1661       continue
1662     fi
1663    ac_cv_prog_CC="cc"
1664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665    break 2
1666  fi
1667done
1668done
1669
1670if test $ac_prog_rejected = yes; then
1671  # We found a bogon in the path, so make sure we never use it.
1672  set dummy $ac_cv_prog_CC
1673  shift
1674  if test $# != 0; then
1675    # We chose a different compiler from the bogus one.
1676    # However, it has the same basename, so the bogon will be chosen
1677    # first if we set CC to just the basename; use the full file name.
1678    shift
1679    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1680  fi
1681fi
1682fi
1683fi
1684CC=$ac_cv_prog_CC
1685if test -n "$CC"; then
1686  echo "$as_me:$LINENO: result: $CC" >&5
1687echo "${ECHO_T}$CC" >&6
1688else
1689  echo "$as_me:$LINENO: result: no" >&5
1690echo "${ECHO_T}no" >&6
1691fi
1692
1693fi
1694if test -z "$CC"; then
1695  if test -n "$ac_tool_prefix"; then
1696  for ac_prog in cl
1697  do
1698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_CC+set}" = set; then
1703  echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705  if test -n "$CC"; then
1706  ac_cv_prog_CC="$CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711  IFS=$as_save_IFS
1712  test -z "$as_dir" && as_dir=.
1713  for ac_exec_ext in '' $ac_executable_extensions; do
1714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717    break 2
1718  fi
1719done
1720done
1721
1722fi
1723fi
1724CC=$ac_cv_prog_CC
1725if test -n "$CC"; then
1726  echo "$as_me:$LINENO: result: $CC" >&5
1727echo "${ECHO_T}$CC" >&6
1728else
1729  echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733    test -n "$CC" && break
1734  done
1735fi
1736if test -z "$CC"; then
1737  ac_ct_CC=$CC
1738  for ac_prog in cl
1739do
1740  # Extract the first word of "$ac_prog", so it can be a program name with args.
1741set dummy $ac_prog; ac_word=$2
1742echo "$as_me:$LINENO: checking for $ac_word" >&5
1743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745  echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747  if test -n "$ac_ct_CC"; then
1748  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749else
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753  IFS=$as_save_IFS
1754  test -z "$as_dir" && as_dir=.
1755  for ac_exec_ext in '' $ac_executable_extensions; do
1756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757    ac_cv_prog_ac_ct_CC="$ac_prog"
1758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759    break 2
1760  fi
1761done
1762done
1763
1764fi
1765fi
1766ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767if test -n "$ac_ct_CC"; then
1768  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769echo "${ECHO_T}$ac_ct_CC" >&6
1770else
1771  echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
1773fi
1774
1775  test -n "$ac_ct_CC" && break
1776done
1777
1778  CC=$ac_ct_CC
1779fi
1780
1781fi
1782
1783
1784test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1785See \`config.log' for more details." >&5
1786echo "$as_me: error: no acceptable C compiler found in \$PATH
1787See \`config.log' for more details." >&2;}
1788   { (exit 1); exit 1; }; }
1789
1790# Provide some information about the compiler.
1791echo "$as_me:$LINENO:" \
1792     "checking for C compiler version" >&5
1793ac_compiler=`set X $ac_compile; echo $2`
1794{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1795  (eval $ac_compiler --version </dev/null >&5) 2>&5
1796  ac_status=$?
1797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798  (exit $ac_status); }
1799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1800  (eval $ac_compiler -v </dev/null >&5) 2>&5
1801  ac_status=$?
1802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803  (exit $ac_status); }
1804{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1805  (eval $ac_compiler -V </dev/null >&5) 2>&5
1806  ac_status=$?
1807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808  (exit $ac_status); }
1809
1810cat >conftest.$ac_ext <<_ACEOF
1811/* confdefs.h.  */
1812_ACEOF
1813cat confdefs.h >>conftest.$ac_ext
1814cat >>conftest.$ac_ext <<_ACEOF
1815/* end confdefs.h.  */
1816
1817int
1818main ()
1819{
1820
1821  ;
1822  return 0;
1823}
1824_ACEOF
1825ac_clean_files_save=$ac_clean_files
1826ac_clean_files="$ac_clean_files a.out a.exe b.out"
1827# Try to create an executable without -o first, disregard a.out.
1828# It will help us diagnose broken compilers, and finding out an intuition
1829# of exeext.
1830echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1831echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1832ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1833if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1834  (eval $ac_link_default) 2>&5
1835  ac_status=$?
1836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837  (exit $ac_status); }; then
1838  # Find the output, starting from the most likely.  This scheme is
1839# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840# resort.
1841
1842# Be careful to initialize this variable, since it used to be cached.
1843# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1844ac_cv_exeext=
1845# b.out is created by i960 compilers.
1846for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1847do
1848  test -f "$ac_file" || continue
1849  case $ac_file in
1850    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851        ;;
1852    conftest.$ac_ext )
1853        # This is the source file.
1854        ;;
1855    [ab].out )
1856        # We found the default executable, but exeext='' is most
1857        # certainly right.
1858        break;;
1859    *.* )
1860        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861        # FIXME: I believe we export ac_cv_exeext for Libtool,
1862        # but it would be cool to find out if it's true.  Does anybody
1863        # maintain Libtool? --akim.
1864        export ac_cv_exeext
1865        break;;
1866    * )
1867        break;;
1868  esac
1869done
1870else
1871  echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: C compiler cannot create executables
1877See \`config.log' for more details." >&2;}
1878   { (exit 77); exit 77; }; }
1879fi
1880
1881ac_exeext=$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_file" >&5
1883echo "${ECHO_T}$ac_file" >&6
1884
1885# Check the compiler produces executables we can run.  If not, either
1886# the compiler is broken, or we cross compile.
1887echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1888echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1889# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1890# If not cross compiling, check that we can run a simple program.
1891if test "$cross_compiling" != yes; then
1892  if { ac_try='./$ac_file'
1893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894  (eval $ac_try) 2>&5
1895  ac_status=$?
1896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897  (exit $ac_status); }; }; then
1898    cross_compiling=no
1899  else
1900    if test "$cross_compiling" = maybe; then
1901        cross_compiling=yes
1902    else
1903        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1904If you meant to cross compile, use \`--host'.
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot run C compiled programs.
1907If you meant to cross compile, use \`--host'.
1908See \`config.log' for more details." >&2;}
1909   { (exit 1); exit 1; }; }
1910    fi
1911  fi
1912fi
1913echo "$as_me:$LINENO: result: yes" >&5
1914echo "${ECHO_T}yes" >&6
1915
1916rm -f a.out a.exe conftest$ac_cv_exeext b.out
1917ac_clean_files=$ac_clean_files_save
1918# Check the compiler produces executables we can run.  If not, either
1919# the compiler is broken, or we cross compile.
1920echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1921echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1922echo "$as_me:$LINENO: result: $cross_compiling" >&5
1923echo "${ECHO_T}$cross_compiling" >&6
1924
1925echo "$as_me:$LINENO: checking for suffix of executables" >&5
1926echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1928  (eval $ac_link) 2>&5
1929  ac_status=$?
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); }; then
1932  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1933# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1934# work properly (i.e., refer to `conftest.exe'), while it won't with
1935# `rm'.
1936for ac_file in conftest.exe conftest conftest.*; do
1937  test -f "$ac_file" || continue
1938  case $ac_file in
1939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1940    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1941          export ac_cv_exeext
1942          break;;
1943    * ) break;;
1944  esac
1945done
1946else
1947  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1948See \`config.log' for more details." >&5
1949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1950See \`config.log' for more details." >&2;}
1951   { (exit 1); exit 1; }; }
1952fi
1953
1954rm -f conftest$ac_cv_exeext
1955echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1956echo "${ECHO_T}$ac_cv_exeext" >&6
1957
1958rm -f conftest.$ac_ext
1959EXEEXT=$ac_cv_exeext
1960ac_exeext=$EXEEXT
1961echo "$as_me:$LINENO: checking for suffix of object files" >&5
1962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1963if test "${ac_cv_objext+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  cat >conftest.$ac_ext <<_ACEOF
1967/* confdefs.h.  */
1968_ACEOF
1969cat confdefs.h >>conftest.$ac_ext
1970cat >>conftest.$ac_ext <<_ACEOF
1971/* end confdefs.h.  */
1972
1973int
1974main ()
1975{
1976
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981rm -f conftest.o conftest.obj
1982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1983  (eval $ac_compile) 2>&5
1984  ac_status=$?
1985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986  (exit $ac_status); }; then
1987  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1988  case $ac_file in
1989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1990    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1991       break;;
1992  esac
1993done
1994else
1995  echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: cannot compute suffix of object files: cannot compile
2001See \`config.log' for more details." >&2;}
2002   { (exit 1); exit 1; }; }
2003fi
2004
2005rm -f conftest.$ac_cv_objext conftest.$ac_ext
2006fi
2007echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2008echo "${ECHO_T}$ac_cv_objext" >&6
2009OBJEXT=$ac_cv_objext
2010ac_objext=$OBJEXT
2011echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2012echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2013if test "${ac_cv_c_compiler_gnu+set}" = set; then
2014  echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016  cat >conftest.$ac_ext <<_ACEOF
2017/* confdefs.h.  */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h.  */
2022
2023int
2024main ()
2025{
2026#ifndef __GNUC__
2027       choke me
2028#endif
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034rm -f conftest.$ac_objext
2035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036  (eval $ac_compile) 2>conftest.er1
2037  ac_status=$?
2038  grep -v '^ *+' conftest.er1 >conftest.err
2039  rm -f conftest.er1
2040  cat conftest.err >&5
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); } &&
2043         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045  (eval $ac_try) 2>&5
2046  ac_status=$?
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); }; } &&
2049         { ac_try='test -s conftest.$ac_objext'
2050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051  (eval $ac_try) 2>&5
2052  ac_status=$?
2053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  (exit $ac_status); }; }; then
2055  ac_compiler_gnu=yes
2056else
2057  echo "$as_me: failed program was:" >&5
2058sed 's/^/| /' conftest.$ac_ext >&5
2059
2060ac_compiler_gnu=no
2061fi
2062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2063ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064
2065fi
2066echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2067echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068GCC=`test $ac_compiler_gnu = yes && echo yes`
2069ac_test_CFLAGS=${CFLAGS+set}
2070ac_save_CFLAGS=$CFLAGS
2071CFLAGS="-g"
2072echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074if test "${ac_cv_prog_cc_g+set}" = set; then
2075  echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077  cat >conftest.$ac_ext <<_ACEOF
2078/* confdefs.h.  */
2079_ACEOF
2080cat confdefs.h >>conftest.$ac_ext
2081cat >>conftest.$ac_ext <<_ACEOF
2082/* end confdefs.h.  */
2083
2084int
2085main ()
2086{
2087
2088  ;
2089  return 0;
2090}
2091_ACEOF
2092rm -f conftest.$ac_objext
2093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094  (eval $ac_compile) 2>conftest.er1
2095  ac_status=$?
2096  grep -v '^ *+' conftest.er1 >conftest.err
2097  rm -f conftest.er1
2098  cat conftest.err >&5
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); } &&
2101         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103  (eval $ac_try) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; } &&
2107         { ac_try='test -s conftest.$ac_objext'
2108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109  (eval $ac_try) 2>&5
2110  ac_status=$?
2111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112  (exit $ac_status); }; }; then
2113  ac_cv_prog_cc_g=yes
2114else
2115  echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118ac_cv_prog_cc_g=no
2119fi
2120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2123echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2124if test "$ac_test_CFLAGS" = set; then
2125  CFLAGS=$ac_save_CFLAGS
2126elif test $ac_cv_prog_cc_g = yes; then
2127  if test "$GCC" = yes; then
2128    CFLAGS="-g -O2"
2129  else
2130    CFLAGS="-g"
2131  fi
2132else
2133  if test "$GCC" = yes; then
2134    CFLAGS="-O2"
2135  else
2136    CFLAGS=
2137  fi
2138fi
2139echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2140echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2141if test "${ac_cv_prog_cc_stdc+set}" = set; then
2142  echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144  ac_cv_prog_cc_stdc=no
2145ac_save_CC=$CC
2146cat >conftest.$ac_ext <<_ACEOF
2147/* confdefs.h.  */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h.  */
2152#include <stdarg.h>
2153#include <stdio.h>
2154#include <sys/types.h>
2155#include <sys/stat.h>
2156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2157struct buf { int x; };
2158FILE * (*rcsopen) (struct buf *, struct stat *, int);
2159static char *e (p, i)
2160     char **p;
2161     int i;
2162{
2163  return p[i];
2164}
2165static char *f (char * (*g) (char **, int), char **p, ...)
2166{
2167  char *s;
2168  va_list v;
2169  va_start (v,p);
2170  s = g (p, va_arg (v,int));
2171  va_end (v);
2172  return s;
2173}
2174
2175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2176   function prototypes and stuff, but not '\xHH' hex character constants.
2177   These don't provoke an error unfortunately, instead are silently treated
2178   as 'x'.  The following induces an error, until -std1 is added to get
2179   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2180   array size at least.  It's necessary to write '\x00'==0 to get something
2181   that's true only with -std1.  */
2182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2183
2184int test (int i, double x);
2185struct s1 {int (*f) (int a);};
2186struct s2 {int (*f) (double a);};
2187int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2188int argc;
2189char **argv;
2190int
2191main ()
2192{
2193return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198# Don't try gcc -ansi; that turns off useful extensions and
2199# breaks some systems' header files.
2200# AIX                   -qlanglvl=ansi
2201# Ultrix and OSF/1      -std1
2202# HP-UX 10.20 and later -Ae
2203# HP-UX older versions  -Aa -D_HPUX_SOURCE
2204# SVR4                  -Xc -D__EXTENSIONS__
2205for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2206do
2207  CC="$ac_save_CC $ac_arg"
2208  rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210  (eval $ac_compile) 2>conftest.er1
2211  ac_status=$?
2212  grep -v '^ *+' conftest.er1 >conftest.err
2213  rm -f conftest.er1
2214  cat conftest.err >&5
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); } &&
2217         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219  (eval $ac_try) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }; } &&
2223         { ac_try='test -s conftest.$ac_objext'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; }; then
2229  ac_cv_prog_cc_stdc=$ac_arg
2230break
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235fi
2236rm -f conftest.err conftest.$ac_objext
2237done
2238rm -f conftest.$ac_ext conftest.$ac_objext
2239CC=$ac_save_CC
2240
2241fi
2242
2243case "x$ac_cv_prog_cc_stdc" in
2244  x|xno)
2245    echo "$as_me:$LINENO: result: none needed" >&5
2246echo "${ECHO_T}none needed" >&6 ;;
2247  *)
2248    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2249echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2250    CC="$CC $ac_cv_prog_cc_stdc" ;;
2251esac
2252
2253# Some people use a C++ compiler to compile C.  Since we use `exit',
2254# in C++ we need to declare it.  In case someone uses the same compiler
2255# for both compiling C and C++ we need to have the C++ compiler decide
2256# the declaration of exit, since it's the most demanding environment.
2257cat >conftest.$ac_ext <<_ACEOF
2258#ifndef __cplusplus
2259  choke me
2260#endif
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264  (eval $ac_compile) 2>conftest.er1
2265  ac_status=$?
2266  grep -v '^ *+' conftest.er1 >conftest.err
2267  rm -f conftest.er1
2268  cat conftest.err >&5
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); } &&
2271         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273  (eval $ac_try) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; } &&
2277         { ac_try='test -s conftest.$ac_objext'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283  for ac_declaration in \
2284   '' \
2285   'extern "C" void std::exit (int) throw (); using std::exit;' \
2286   'extern "C" void std::exit (int); using std::exit;' \
2287   'extern "C" void exit (int) throw ();' \
2288   'extern "C" void exit (int);' \
2289   'void exit (int);'
2290do
2291  cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297$ac_declaration
2298#include <stdlib.h>
2299int
2300main ()
2301{
2302exit (42);
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309  (eval $ac_compile) 2>conftest.er1
2310  ac_status=$?
2311  grep -v '^ *+' conftest.er1 >conftest.err
2312  rm -f conftest.er1
2313  cat conftest.err >&5
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); } &&
2316         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318  (eval $ac_try) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; } &&
2322         { ac_try='test -s conftest.$ac_objext'
2323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324  (eval $ac_try) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }; }; then
2328  :
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333continue
2334fi
2335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336  cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h.  */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h.  */
2342$ac_declaration
2343int
2344main ()
2345{
2346exit (42);
2347  ;
2348  return 0;
2349}
2350_ACEOF
2351rm -f conftest.$ac_objext
2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353  (eval $ac_compile) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } &&
2360         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362  (eval $ac_try) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); }; } &&
2366         { ac_try='test -s conftest.$ac_objext'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; }; then
2372  break
2373else
2374  echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377fi
2378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379done
2380rm -f conftest*
2381if test -n "$ac_declaration"; then
2382  echo '#ifdef __cplusplus' >>confdefs.h
2383  echo $ac_declaration      >>confdefs.h
2384  echo '#endif'             >>confdefs.h
2385fi
2386
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391fi
2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393ac_ext=c
2394ac_cpp='$CPP $CPPFLAGS'
2395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399# Find a good install program.  We prefer a C program (faster),
2400# so one script is as good as another.  But avoid the broken or
2401# incompatible versions:
2402# SysV /etc/install, /usr/sbin/install
2403# SunOS /usr/etc/install
2404# IRIX /sbin/install
2405# AIX /bin/install
2406# AmigaOS /C/install, which installs bootblocks on floppy discs
2407# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410# OS/2's system install, which has a completely different semantic
2411# ./install, which can be erroneously created by make from ./install.sh.
2412echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2413echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2414if test -z "$INSTALL"; then
2415if test "${ac_cv_path_install+set}" = set; then
2416  echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421  IFS=$as_save_IFS
2422  test -z "$as_dir" && as_dir=.
2423  # Account for people who put trailing slashes in PATH elements.
2424case $as_dir/ in
2425  ./ | .// | /cC/* | \
2426  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2427  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2428  /usr/ucb/* ) ;;
2429  *)
2430    # OSF1 and SCO ODT 3.0 have their own names for install.
2431    # Don't use installbsd from OSF since it installs stuff as root
2432    # by default.
2433    for ac_prog in ginstall scoinst install; do
2434      for ac_exec_ext in '' $ac_executable_extensions; do
2435        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2436          if test $ac_prog = install &&
2437            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2438            # AIX install.  It has an incompatible calling convention.
2439            :
2440          elif test $ac_prog = install &&
2441            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2442            # program-specific install script used by HP pwplus--don't use.
2443            :
2444          else
2445            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446            break 3
2447          fi
2448        fi
2449      done
2450    done
2451    ;;
2452esac
2453done
2454
2455
2456fi
2457  if test "${ac_cv_path_install+set}" = set; then
2458    INSTALL=$ac_cv_path_install
2459  else
2460    # As a last resort, use the slow shell script.  We don't cache a
2461    # path for INSTALL within a source directory, because that will
2462    # break other packages using the cache if that directory is
2463    # removed, or if the path is relative.
2464    INSTALL=$ac_install_sh
2465  fi
2466fi
2467echo "$as_me:$LINENO: result: $INSTALL" >&5
2468echo "${ECHO_T}$INSTALL" >&6
2469
2470# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2471# It thinks the first close brace ends the variable substitution.
2472test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473
2474test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475
2476test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477
2478echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2479echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2480set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2481if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2482  echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484  cat >conftest.make <<\_ACEOF
2485all:
2486        @echo 'ac_maketemp="$(MAKE)"'
2487_ACEOF
2488# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2489eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2490if test -n "$ac_maketemp"; then
2491  eval ac_cv_prog_make_${ac_make}_set=yes
2492else
2493  eval ac_cv_prog_make_${ac_make}_set=no
2494fi
2495rm -f conftest.make
2496fi
2497if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2498  echo "$as_me:$LINENO: result: yes" >&5
2499echo "${ECHO_T}yes" >&6
2500  SET_MAKE=
2501else
2502  echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504  SET_MAKE="MAKE=${MAKE-make}"
2505fi
2506
2507echo "$as_me:$LINENO: checking whether ln -s works" >&5
2508echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2509LN_S=$as_ln_s
2510if test "$LN_S" = "ln -s"; then
2511  echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6
2513else
2514  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2515echo "${ECHO_T}no, using $LN_S" >&6
2516fi
2517
2518# Extract the first word of "cvs", so it can be a program name with args.
2519set dummy cvs; ac_word=$2
2520echo "$as_me:$LINENO: checking for $ac_word" >&5
2521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2522if test "${ac_cv_path_CVS+set}" = set; then
2523  echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
2525  case $CVS in
2526  [\\/]* | ?:[\\/]*)
2527  ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
2528  ;;
2529  *)
2530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535  for ac_exec_ext in '' $ac_executable_extensions; do
2536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537    ac_cv_path_CVS="$as_dir/$ac_word$ac_exec_ext"
2538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539    break 2
2540  fi
2541done
2542done
2543
2544  ;;
2545esac
2546fi
2547CVS=$ac_cv_path_CVS
2548
2549if test -n "$CVS"; then
2550  echo "$as_me:$LINENO: result: $CVS" >&5
2551echo "${ECHO_T}$CVS" >&6
2552else
2553  echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555fi
2556
2557# Extract the first word of "launchd", so it can be a program name with args.
2558set dummy launchd; ac_word=$2
2559echo "$as_me:$LINENO: checking for $ac_word" >&5
2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2561if test "${ac_cv_prog_HAVE_LAUNCHD+set}" = set; then
2562  echo $ECHO_N "(cached) $ECHO_C" >&6
2563else
2564  if test -n "$HAVE_LAUNCHD"; then
2565  ac_cv_prog_HAVE_LAUNCHD="$HAVE_LAUNCHD" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572  for ac_exec_ext in '' $ac_executable_extensions; do
2573  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574    ac_cv_prog_HAVE_LAUNCHD="yes"
2575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579done
2580
2581fi
2582fi
2583HAVE_LAUNCHD=$ac_cv_prog_HAVE_LAUNCHD
2584if test -n "$HAVE_LAUNCHD"; then
2585  echo "$as_me:$LINENO: result: $HAVE_LAUNCHD" >&5
2586echo "${ECHO_T}$HAVE_LAUNCHD" >&6
2587else
2588  echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6
2590fi
2591
2592# Extract the first word of "launchctl", so it can be a program name with args.
2593set dummy launchctl; ac_word=$2
2594echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596if test "${ac_cv_path_LAUNCHCTL+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  case $LAUNCHCTL in
2600  [\\/]* | ?:[\\/]*)
2601  ac_cv_path_LAUNCHCTL="$LAUNCHCTL" # Let the user override the test with a path.
2602  ;;
2603  *)
2604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_path_LAUNCHCTL="$as_dir/$ac_word$ac_exec_ext"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618  ;;
2619esac
2620fi
2621LAUNCHCTL=$ac_cv_path_LAUNCHCTL
2622
2623if test -n "$LAUNCHCTL"; then
2624  echo "$as_me:$LINENO: result: $LAUNCHCTL" >&5
2625echo "${ECHO_T}$LAUNCHCTL" >&6
2626else
2627  echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6
2629fi
2630
2631# Extract the first word of "xcodebuild", so it can be a program name with args.
2632set dummy xcodebuild; ac_word=$2
2633echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635if test "${ac_cv_path_XCODEBUILD+set}" = set; then
2636  echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638  case $XCODEBUILD in
2639  [\\/]* | ?:[\\/]*)
2640  ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
2641  ;;
2642  *)
2643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  test -z "$as_dir" && as_dir=.
2648  for ac_exec_ext in '' $ac_executable_extensions; do
2649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650    ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
2651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652    break 2
2653  fi
2654done
2655done
2656
2657  ;;
2658esac
2659fi
2660XCODEBUILD=$ac_cv_path_XCODEBUILD
2661
2662if test -n "$XCODEBUILD"; then
2663  echo "$as_me:$LINENO: result: $XCODEBUILD" >&5
2664echo "${ECHO_T}$XCODEBUILD" >&6
2665else
2666  echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
2668fi
2669
2670
2671
2672        # Extract the first word of "tar", so it can be a program name with args.
2673set dummy tar; ac_word=$2
2674echo "$as_me:$LINENO: checking for $ac_word" >&5
2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676if test "${ac_cv_path_TAR+set}" = set; then
2677  echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679  case $TAR in
2680  [\\/]* | ?:[\\/]*)
2681  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2682  ;;
2683  *)
2684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689  for ac_exec_ext in '' $ac_executable_extensions; do
2690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696done
2697
2698  ;;
2699esac
2700fi
2701TAR=$ac_cv_path_TAR
2702
2703if test -n "$TAR"; then
2704  echo "$as_me:$LINENO: result: $TAR" >&5
2705echo "${ECHO_T}$TAR" >&6
2706else
2707  echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6
2709fi
2710
2711        # Extract the first word of "gnutar", so it can be a program name with args.
2712set dummy gnutar; ac_word=$2
2713echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715if test "${ac_cv_path_GNUTAR+set}" = set; then
2716  echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718  case $GNUTAR in
2719  [\\/]* | ?:[\\/]*)
2720  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
2721  ;;
2722  *)
2723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728  for ac_exec_ext in '' $ac_executable_extensions; do
2729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
2731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735done
2736
2737  ;;
2738esac
2739fi
2740GNUTAR=$ac_cv_path_GNUTAR
2741
2742if test -n "$GNUTAR"; then
2743  echo "$as_me:$LINENO: result: $GNUTAR" >&5
2744echo "${ECHO_T}$GNUTAR" >&6
2745else
2746  echo "$as_me:$LINENO: result: no" >&5
2747echo "${ECHO_T}no" >&6
2748fi
2749
2750
2751        echo "$as_me:$LINENO: checking for which tar variant to use" >&5
2752echo $ECHO_N "checking for which tar variant to use... $ECHO_C" >&6
2753        if test -n "$GNUTAR"; then
2754  TAR_CMD=$GNUTAR
2755else
2756  TAR_CMD=$TAR
2757fi
2758
2759        echo "$as_me:$LINENO: result: $TAR_CMD" >&5
2760echo "${ECHO_T}$TAR_CMD" >&6
2761
2762
2763        echo "$as_me:$LINENO: checking for $TAR_CMD --no-same-owner support" >&5
2764echo $ECHO_N "checking for $TAR_CMD --no-same-owner support... $ECHO_C" >&6
2765        no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`
2766        if test -z "$no_same_owner_support" ; then
2767                echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6
2769        else
2770                echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
2772                TAR_CMD="$TAR_CMD --no-same-owner"
2773        fi
2774
2775
2776# Quiche eaters options.
2777if test x$GCC = xyes; then
2778        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
2779fi
2780
2781
2782
2783
2784        echo "$as_me:$LINENO: checking how to mark unused variables" >&5
2785echo $ECHO_N "checking how to mark unused variables... $ECHO_C" >&6
2786        cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h.  */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h.  */
2792int a __attribute__ ((unused));
2793_ACEOF
2794rm -f conftest.$ac_objext
2795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796  (eval $ac_compile) 2>conftest.er1
2797  ac_status=$?
2798  grep -v '^ *+' conftest.er1 >conftest.err
2799  rm -f conftest.er1
2800  cat conftest.err >&5
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); } &&
2803         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805  (eval $ac_try) 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }; } &&
2809         { ac_try='test -s conftest.$ac_objext'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; }; then
2815
2816cat >>confdefs.h <<\_ACEOF
2817#define UNUSED __attribute__((unused))
2818_ACEOF
2819
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824cat >>confdefs.h <<\_ACEOF
2825#define UNUSED
2826_ACEOF
2827
2828fi
2829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830
2831        echo "$as_me:$LINENO: result: " >&5
2832echo "${ECHO_T}" >&6
2833
2834
2835
2836
2837
2838        # Extract the first word of "mtree", so it can be a program name with args.
2839set dummy mtree; ac_word=$2
2840echo "$as_me:$LINENO: checking for $ac_word" >&5
2841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842if test "${ac_cv_path_MTREE+set}" = set; then
2843  echo $ECHO_N "(cached) $ECHO_C" >&6
2844else
2845  case $MTREE in
2846  [\\/]* | ?:[\\/]*)
2847  ac_cv_path_MTREE="$MTREE" # Let the user override the test with a path.
2848  ;;
2849  *)
2850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851as_dummy="/usr/bin:/usr/sbin:/bin:/sbin"
2852for as_dir in $as_dummy
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856  for ac_exec_ext in '' $ac_executable_extensions; do
2857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858    ac_cv_path_MTREE="$as_dir/$ac_word$ac_exec_ext"
2859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863done
2864
2865  ;;
2866esac
2867fi
2868MTREE=$ac_cv_path_MTREE
2869
2870if test -n "$MTREE"; then
2871  echo "$as_me:$LINENO: result: $MTREE" >&5
2872echo "${ECHO_T}$MTREE" >&6
2873else
2874  echo "$as_me:$LINENO: result: no" >&5
2875echo "${ECHO_T}no" >&6
2876fi
2877
2878
2879        if test "x$MTREE" = "x" ; then
2880
2881
2882subdirs="$subdirs src/programs/mtree"
2883
2884                MTREE='$(TOPSRCDIR)/src/programs/mtree/mtree'
2885#               MTREE='${prefix}/bin/mtree'
2886                REPLACEMENT_PROGS="$REPLACEMENT_PROGS mtree"
2887        fi
2888
2889
2890
2891# Check whether --enable-launchd-support or --disable-launchd-support was given.
2892if test "${enable_launchd_support+set}" = set; then
2893  enableval="$enable_launchd_support"
2894
2895else
2896  enable_launchd_support=yes
2897fi;
2898ENABLE_LAUNCHD_SUPPORT=$enable_launchd_support
2899
2900if test x"${enable_launchd_support}" == "xyes"; then
2901
2902        FRAMEWORK_LIBS="-framework CoreFoundation"
2903
2904        echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
2905echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6
2906
2907        if test "${od_cv_have_framework_corefoundation+set}" = set; then
2908  echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910
2911                ac_save_LIBS="$LIBS"
2912                LIBS="$FRAMEWORK_LIBS $LIBS"
2913
2914                cat >conftest.$ac_ext <<_ACEOF
2915
2916                        /* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921
2922                                        #include <CoreFoundation/CoreFoundation.h>
2923
2924int
2925main ()
2926{
2927
2928                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
2929                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
2930
2931  ;
2932  return 0;
2933}
2934
2935_ACEOF
2936rm -f conftest.$ac_objext conftest$ac_exeext
2937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938  (eval $ac_link) 2>conftest.er1
2939  ac_status=$?
2940  grep -v '^ *+' conftest.er1 >conftest.err
2941  rm -f conftest.er1
2942  cat conftest.err >&5
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); } &&
2945         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; } &&
2951         { ac_try='test -s conftest$ac_exeext'
2952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953  (eval $ac_try) 2>&5
2954  ac_status=$?
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); }; }; then
2957
2958                                od_cv_have_framework_corefoundation="yes"
2959
2960else
2961  echo "$as_me: failed program was:" >&5
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964
2965                                od_cv_have_framework_corefoundation="no"
2966
2967
2968fi
2969rm -f conftest.err conftest.$ac_objext \
2970      conftest$ac_exeext conftest.$ac_ext
2971
2972                LIBS="$ac_save_LIBS"
2973
2974fi
2975
2976
2977        echo "$as_me:$LINENO: result: ${od_cv_have_framework_corefoundation}" >&5
2978echo "${ECHO_T}${od_cv_have_framework_corefoundation}" >&6
2979
2980        if test x"${od_cv_have_framework_corefoundation}" = "xyes"; then
2981
2982cat >>confdefs.h <<\_ACEOF
2983#define HAVE_FRAMEWORK_COREFOUNDATION
2984_ACEOF
2985
2986        fi
2987
2988
2989
2990
2991        FRAMEWORK_LIBS="-framework SystemConfiguration"
2992
2993        echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
2994echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6
2995
2996        if test "${od_cv_have_framework_systemconfiguration+set}" = set; then
2997  echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999
3000                ac_save_LIBS="$LIBS"
3001                LIBS="$FRAMEWORK_LIBS $LIBS"
3002
3003                cat >conftest.$ac_ext <<_ACEOF
3004
3005                        /* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011                                        #include <SystemConfiguration/SystemConfiguration.h>
3012
3013int
3014main ()
3015{
3016
3017                                        int err = SCError();
3018                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
3019
3020  ;
3021  return 0;
3022}
3023
3024_ACEOF
3025rm -f conftest.$ac_objext conftest$ac_exeext
3026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3027  (eval $ac_link) 2>conftest.er1
3028  ac_status=$?
3029  grep -v '^ *+' conftest.er1 >conftest.err
3030  rm -f conftest.er1
3031  cat conftest.err >&5
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); } &&
3034         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; } &&
3040         { ac_try='test -s conftest$ac_exeext'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046
3047                                od_cv_have_framework_systemconfiguration="yes"
3048
3049else
3050  echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053
3054                                od_cv_have_framework_systemconfiguration="no"
3055
3056
3057fi
3058rm -f conftest.err conftest.$ac_objext \
3059      conftest$ac_exeext conftest.$ac_ext
3060
3061                LIBS="$ac_save_LIBS"
3062
3063fi
3064
3065
3066        echo "$as_me:$LINENO: result: ${od_cv_have_framework_systemconfiguration}" >&5
3067echo "${ECHO_T}${od_cv_have_framework_systemconfiguration}" >&6
3068
3069        if test x"${od_cv_have_framework_systemconfiguration}" = "xyes"; then
3070
3071cat >>confdefs.h <<\_ACEOF
3072#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
3073_ACEOF
3074
3075        fi
3076
3077
3078
3079
3080        FRAMEWORK_LIBS="-framework IOKit"
3081
3082        echo "$as_me:$LINENO: checking for IOKit framework" >&5
3083echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6
3084
3085        if test "${od_cv_have_framework_iokit+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088
3089                ac_save_LIBS="$LIBS"
3090                LIBS="$FRAMEWORK_LIBS $LIBS"
3091
3092                cat >conftest.$ac_ext <<_ACEOF
3093
3094                        /* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099
3100                                        #include <IOKit/IOKitLib.h>
3101
3102int
3103main ()
3104{
3105
3106                                        IOCreateReceivePort(0, NULL);
3107                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
3108
3109  ;
3110  return 0;
3111}
3112
3113_ACEOF
3114rm -f conftest.$ac_objext conftest$ac_exeext
3115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3116  (eval $ac_link) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125  (eval $ac_try) 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; } &&
3129         { ac_try='test -s conftest$ac_exeext'
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
3134  (exit $ac_status); }; }; then
3135
3136                                od_cv_have_framework_iokit="yes"
3137
3138else
3139  echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142
3143                                od_cv_have_framework_iokit="no"
3144
3145
3146fi
3147rm -f conftest.err conftest.$ac_objext \
3148      conftest$ac_exeext conftest.$ac_ext
3149
3150                LIBS="$ac_save_LIBS"
3151
3152fi
3153
3154
3155        echo "$as_me:$LINENO: result: ${od_cv_have_framework_iokit}" >&5
3156echo "${ECHO_T}${od_cv_have_framework_iokit}" >&6
3157
3158        if test x"${od_cv_have_framework_iokit}" = "xyes"; then
3159
3160cat >>confdefs.h <<\_ACEOF
3161#define HAVE_FRAMEWORK_IOKIT
3162_ACEOF
3163
3164        fi
3165
3166
3167
3168
3169        FRAMEWORK_LIBS="-framework CoreFoundation"
3170
3171        echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
3172echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6
3173
3174        if test "${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177
3178                ac_save_LIBS="$LIBS"
3179                LIBS="$FRAMEWORK_LIBS $LIBS"
3180
3181                cat >conftest.$ac_ext <<_ACEOF
3182
3183                        /* confdefs.h.  */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h.  */
3188
3189                                        #include <CoreFoundation/CoreFoundation.h>
3190
3191int
3192main ()
3193{
3194
3195                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
3196
3197  ;
3198  return 0;
3199}
3200
3201_ACEOF
3202rm -f conftest.$ac_objext conftest$ac_exeext
3203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3204  (eval $ac_link) 2>conftest.er1
3205  ac_status=$?
3206  grep -v '^ *+' conftest.er1 >conftest.err
3207  rm -f conftest.er1
3208  cat conftest.err >&5
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); } &&
3211         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213  (eval $ac_try) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; } &&
3217         { ac_try='test -s conftest$ac_exeext'
3218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219  (eval $ac_try) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }; }; then
3223
3224                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
3225
3226else
3227  echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
3231                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
3232
3233
3234fi
3235rm -f conftest.err conftest.$ac_objext \
3236      conftest$ac_exeext conftest.$ac_ext
3237
3238                LIBS="$ac_save_LIBS"
3239
3240fi
3241
3242
3243        echo "$as_me:$LINENO: result: ${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
3244echo "${ECHO_T}${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6
3245
3246        if test x"${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
3247
3248cat >>confdefs.h <<\_ACEOF
3249#define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
3250_ACEOF
3251
3252        fi
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262    echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
3263echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6
3264    result=no
3265        case $host_os in
3266        darwin*)
3267                if test "x$od_cv_have_framework_corefoundation" == "xyes" &&
3268                   test "x$od_cv_have_framework_systemconfiguration" == "xyes" &&
3269                   test "x$od_cv_have_framework_iokit" == "xyes" &&
3270                   test "x$od_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
3271                        result=yes
3272                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
3273                                  ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
3274
3275                fi
3276                ;;
3277        *)
3278        esac
3279        echo "$as_me:$LINENO: result: ${result}" >&5
3280echo "${ECHO_T}${result}" >&6
3281
3282fi
3283
3284
3285
3286
3287
3288# set default dports-directory
3289DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"`
3290
3291# Check for paths
3292
3293
3294
3295
3296
3297# Check whether --with-dports-dir or --without-dports-dir was given.
3298if test "${with_dports_dir+set}" = set; then
3299  withval="$with_dports_dir"
3300   dportsdir="$withval"
3301fi;
3302
3303
3304        echo "$as_me:$LINENO: checking for dports tree" >&5
3305echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
3306        if test "x$dportsdir" != "x" ; then
3307          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
3308                :
3309          else
3310                { { echo "$as_me:$LINENO: error: $dportsdir not a valid dports tree" >&5
3311echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
3312   { (exit 1); exit 1; }; }
3313          fi
3314        else
3315                                if test "x$DPORTS_DIR_DEFAULT" != "x" ; then
3316                  if test -d "$DPORTS_DIR_DEFAULT" -a -e "$DPORTS_DIR_DEFAULT/PortIndex" ; then
3317                        dportsdir=$DPORTS_DIR_DEFAULT
3318                  fi
3319                fi
3320        fi
3321
3322        if test "x$dportsdir" != "x" ; then
3323                echo "$as_me:$LINENO: result: $dportsdir" >&5
3324echo "${ECHO_T}$dportsdir" >&6
3325                DPORTSDIR="$dportsdir"
3326
3327        else
3328                { echo "$as_me:$LINENO: WARNING: No dports tree found" >&5
3329echo "$as_me: WARNING: No dports tree found" >&2;}
3330        fi
3331
3332
3333
3334
3335        echo "$as_me:$LINENO: checking for ports config directory" >&5
3336echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
3337
3338        portconfigdir='${sysconfdir}/ports'
3339
3340        echo "$as_me:$LINENO: result: $portconfigdir" >&5
3341echo "${ECHO_T}$portconfigdir" >&6
3342        PORTCONFIGDIR="$portconfigdir"
3343
3344
3345
3346
3347# Check for install ownership
3348
3349
3350
3351
3352# Check whether --with-install-user or --without-install-user was given.
3353if test "${with_install_user+set}" = set; then
3354  withval="$with_install_user"
3355   DSTUSR=$withval
3356fi;
3357
3358        echo "$as_me:$LINENO: checking for install user" >&5
3359echo $ECHO_N "checking for install user... $ECHO_C" >&6
3360        if test "x$DSTUSR" = "x" ; then
3361           DSTUSR=root
3362        fi
3363
3364        echo "$as_me:$LINENO: result: $DSTUSR" >&5
3365echo "${ECHO_T}$DSTUSR" >&6
3366
3367
3368
3369
3370
3371
3372# Check whether --with-install-group or --without-install-group was given.
3373if test "${with_install_group+set}" = set; then
3374  withval="$with_install_group"
3375   DSTGRP=$withval
3376fi;
3377
3378        echo "$as_me:$LINENO: checking for install group" >&5
3379echo $ECHO_N "checking for install group... $ECHO_C" >&6
3380        if test "x$DSTGRP" = "x" ; then
3381
3382           case $host_os in
3383           darwin*)
3384                DSTGRP="admin"
3385                ;;
3386           *)
3387                DSTGRP="wheel"
3388                ;;
3389           esac
3390        fi
3391
3392        echo "$as_me:$LINENO: result: $DSTGRP" >&5
3393echo "${ECHO_T}$DSTGRP" >&6
3394
3395
3396
3397
3398
3399
3400# Check whether --with-directory-mode or --without-directory-mode was given.
3401if test "${with_directory_mode+set}" = set; then
3402  withval="$with_directory_mode"
3403   DSTMODE=$withval
3404fi;
3405
3406        echo "$as_me:$LINENO: checking what permissions to use for installation directories" >&5
3407echo $ECHO_N "checking what permissions to use for installation directories... $ECHO_C" >&6
3408        if test "x$DSTMODE" = "x" ; then
3409           DSTMODE=0775
3410        fi
3411
3412        echo "$as_me:$LINENO: result: $DSTMODE" >&5
3413echo "${ECHO_T}$DSTMODE" >&6
3414
3415
3416
3417# Check for standard header files.
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3425# On Suns, sometimes $CPP names a directory.
3426if test -n "$CPP" && test -d "$CPP"; then
3427  CPP=
3428fi
3429if test -z "$CPP"; then
3430  if test "${ac_cv_prog_CPP+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433      # Double quotes because CPP needs to be expanded
3434    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3435    do
3436      ac_preproc_ok=false
3437for ac_c_preproc_warn_flag in '' yes
3438do
3439  # Use a header file that comes with gcc, so configuring glibc
3440  # with a fresh cross-compiler works.
3441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3442  # <limits.h> exists even on freestanding compilers.
3443  # On the NeXT, cc -E runs the code through the compiler's parser,
3444  # not just through cpp. "Syntax error" is here to catch this case.
3445  cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451#ifdef __STDC__
3452# include <limits.h>
3453#else
3454# include <assert.h>
3455#endif
3456                     Syntax error
3457_ACEOF
3458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } >/dev/null; then
3466  if test -s conftest.err; then
3467    ac_cpp_err=$ac_c_preproc_warn_flag
3468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469  else
3470    ac_cpp_err=
3471  fi
3472else
3473  ac_cpp_err=yes
3474fi
3475if test -z "$ac_cpp_err"; then
3476  :
3477else
3478  echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481  # Broken: fails on valid input.
3482continue
3483fi
3484rm -f conftest.err conftest.$ac_ext
3485
3486  # OK, works on sane cases.  Now check whether non-existent headers
3487  # can be detected and how.
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494#include <ac_nonexistent.h>
3495_ACEOF
3496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3498  ac_status=$?
3499  grep -v '^ *+' conftest.er1 >conftest.err
3500  rm -f conftest.er1
3501  cat conftest.err >&5
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); } >/dev/null; then
3504  if test -s conftest.err; then
3505    ac_cpp_err=$ac_c_preproc_warn_flag
3506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507  else
3508    ac_cpp_err=
3509  fi
3510else
3511  ac_cpp_err=yes
3512fi
3513if test -z "$ac_cpp_err"; then
3514  # Broken: success on invalid input.
3515continue
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520  # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524rm -f conftest.err conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then
3530  break
3531fi
3532
3533    done
3534    ac_cv_prog_CPP=$CPP
3535
3536fi
3537  CPP=$ac_cv_prog_CPP
3538else
3539  ac_cv_prog_CPP=$CPP
3540fi
3541echo "$as_me:$LINENO: result: $CPP" >&5
3542echo "${ECHO_T}$CPP" >&6
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563                     Syntax error
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } >/dev/null; then
3573  if test -s conftest.err; then
3574    ac_cpp_err=$ac_c_preproc_warn_flag
3575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576  else
3577    ac_cpp_err=
3578  fi
3579else
3580  ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583  :
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether non-existent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null; then
3611  if test -s conftest.err; then
3612    ac_cpp_err=$ac_c_preproc_warn_flag
3613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614  else
3615    ac_cpp_err=
3616  fi
3617else
3618  ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621  # Broken: success on invalid input.
3622continue
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Passes both tests.
3628ac_preproc_ok=:
3629break
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637  :
3638else
3639  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&5
3641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3642See \`config.log' for more details." >&2;}
3643   { (exit 1); exit 1; }; }
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653echo "$as_me:$LINENO: checking for egrep" >&5
3654echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3655if test "${ac_cv_prog_egrep+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3659    then ac_cv_prog_egrep='grep -E'
3660    else ac_cv_prog_egrep='egrep'
3661    fi
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3664echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3665 EGREP=$ac_cv_prog_egrep
3666
3667
3668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3670if test "${ac_cv_header_stdc+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679#include <stdlib.h>
3680#include <stdarg.h>
3681#include <string.h>
3682#include <float.h>
3683
3684int
3685main ()
3686{
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694  (eval $ac_compile) 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } &&
3701         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; } &&
3707         { ac_try='test -s conftest.$ac_objext'
3708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709  (eval $ac_try) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; }; then
3713  ac_cv_header_stdc=yes
3714else
3715  echo "$as_me: failed program was:" >&5
3716sed 's/^/| /' conftest.$ac_ext >&5
3717
3718ac_cv_header_stdc=no
3719fi
3720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721
3722if test $ac_cv_header_stdc = yes; then
3723  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3724  cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730#include <string.h>
3731
3732_ACEOF
3733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3734  $EGREP "memchr" >/dev/null 2>&1; then
3735  :
3736else
3737  ac_cv_header_stdc=no
3738fi
3739rm -f conftest*
3740
3741fi
3742
3743if test $ac_cv_header_stdc = yes; then
3744  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3745  cat >conftest.$ac_ext <<_ACEOF
3746/* confdefs.h.  */
3747_ACEOF
3748cat confdefs.h >>conftest.$ac_ext
3749cat >>conftest.$ac_ext <<_ACEOF
3750/* end confdefs.h.  */
3751#include <stdlib.h>
3752
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755  $EGREP "free" >/dev/null 2>&1; then
3756  :
3757else
3758  ac_cv_header_stdc=no
3759fi
3760rm -f conftest*
3761
3762fi
3763
3764if test $ac_cv_header_stdc = yes; then
3765  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3766  if test "$cross_compiling" = yes; then
3767  :
3768else
3769  cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h.  */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
3774/* end confdefs.h.  */
3775#include <ctype.h>
3776#if ((' ' & 0x0FF) == 0x020)
3777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3779#else
3780# define ISLOWER(c) \
3781                   (('a' <= (c) && (c) <= 'i') \
3782                     || ('j' <= (c) && (c) <= 'r') \
3783                     || ('s' <= (c) && (c) <= 'z'))
3784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3785#endif
3786
3787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3788int
3789main ()
3790{
3791  int i;
3792  for (i = 0; i < 256; i++)
3793    if (XOR (islower (i), ISLOWER (i))
3794        || toupper (i) != TOUPPER (i))
3795      exit(2);
3796  exit (0);
3797}
3798_ACEOF
3799rm -f conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  :
3811else
3812  echo "$as_me: program exited with status $ac_status" >&5
3813echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816( exit $ac_status )
3817ac_cv_header_stdc=no
3818fi
3819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3820fi
3821fi
3822fi
3823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3824echo "${ECHO_T}$ac_cv_header_stdc" >&6
3825if test $ac_cv_header_stdc = yes; then
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define STDC_HEADERS 1
3829_ACEOF
3830
3831fi
3832
3833
3834
3835
3836
3837
3838ac_header_dirent=no
3839for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3840  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3841echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3842echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3843if eval "test \"\${$as_ac_Header+set}\" = set"; then
3844  echo $ECHO_N "(cached) $ECHO_C" >&6
3845else
3846  cat >conftest.$ac_ext <<_ACEOF
3847/* confdefs.h.  */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h.  */
3852#include <sys/types.h>
3853#include <$ac_hdr>
3854
3855int
3856main ()
3857{
3858if ((DIR *) 0)
3859return 0;
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext
3865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866  (eval $ac_compile) 2>conftest.er1
3867  ac_status=$?
3868  grep -v '^ *+' conftest.er1 >conftest.err
3869  rm -f conftest.er1
3870  cat conftest.err >&5
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); } &&
3873         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; } &&
3879         { ac_try='test -s conftest.$ac_objext'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; }; then
3885  eval "$as_ac_Header=yes"
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890eval "$as_ac_Header=no"
3891fi
3892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893fi
3894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3896if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897  cat >>confdefs.h <<_ACEOF
3898#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3899_ACEOF
3900
3901ac_header_dirent=$ac_hdr; break
3902fi
3903
3904done
3905# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3906if test $ac_header_dirent = dirent.h; then
3907  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3908echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3909if test "${ac_cv_search_opendir+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  ac_func_search_save_LIBS=$LIBS
3913ac_cv_search_opendir=no
3914cat >conftest.$ac_ext <<_ACEOF
3915/* confdefs.h.  */
3916_ACEOF
3917cat confdefs.h >>conftest.$ac_ext
3918cat >>conftest.$ac_ext <<_ACEOF
3919/* end confdefs.h.  */
3920
3921/* Override any gcc2 internal prototype to avoid an error.  */
3922#ifdef __cplusplus
3923extern "C"
3924#endif
3925/* We use char because int might match the return type of a gcc2
3926   builtin and then its argument prototype would still apply.  */
3927char opendir ();
3928int
3929main ()
3930{
3931opendir ();
3932  ;
3933  return 0;
3934}
3935_ACEOF
3936rm -f conftest.$ac_objext conftest$ac_exeext
3937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938  (eval $ac_link) 2>conftest.er1
3939  ac_status=$?
3940  grep -v '^ *+' conftest.er1 >conftest.err
3941  rm -f conftest.er1
3942  cat conftest.err >&5
3943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944  (exit $ac_status); } &&
3945         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947  (eval $ac_try) 2>&5
3948  ac_status=$?
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); }; } &&
3951         { ac_try='test -s conftest$ac_exeext'
3952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953  (eval $ac_try) 2>&5
3954  ac_status=$?
3955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956  (exit $ac_status); }; }; then
3957  ac_cv_search_opendir="none required"
3958else
3959  echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962fi
3963rm -f conftest.err conftest.$ac_objext \
3964      conftest$ac_exeext conftest.$ac_ext
3965if test "$ac_cv_search_opendir" = no; then
3966  for ac_lib in dir; do
3967    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3968    cat >conftest.$ac_ext <<_ACEOF
3969/* confdefs.h.  */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h.  */
3974
3975/* Override any gcc2 internal prototype to avoid an error.  */
3976#ifdef __cplusplus
3977extern "C"
3978#endif
3979/* We use char because int might match the return type of a gcc2
3980   builtin and then its argument prototype would still apply.  */
3981char opendir ();
3982int
3983main ()
3984{
3985opendir ();
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992  (eval $ac_link) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001  (eval $ac_try) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; } &&
4005         { ac_try='test -s conftest$ac_exeext'
4006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007  (eval $ac_try) 2>&5
4008  ac_status=$?
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); }; }; then
4011  ac_cv_search_opendir="-l$ac_lib"
4012break
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017fi
4018rm -f conftest.err conftest.$ac_objext \
4019      conftest$ac_exeext conftest.$ac_ext
4020  done
4021fi
4022LIBS=$ac_func_search_save_LIBS
4023fi
4024echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4025echo "${ECHO_T}$ac_cv_search_opendir" >&6
4026if test "$ac_cv_search_opendir" != no; then
4027  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4028
4029fi
4030
4031else
4032  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4033echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4034if test "${ac_cv_search_opendir+set}" = set; then
4035  echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037  ac_func_search_save_LIBS=$LIBS
4038ac_cv_search_opendir=no
4039cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h.  */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h.  */
4045
4046/* Override any gcc2 internal prototype to avoid an error.  */
4047#ifdef __cplusplus
4048extern "C"
4049#endif
4050/* We use char because int might match the return type of a gcc2
4051   builtin and then its argument prototype would still apply.  */
4052char opendir ();
4053int
4054main ()
4055{
4056opendir ();
4057  ;
4058  return 0;
4059}
4060_ACEOF
4061rm -f conftest.$ac_objext conftest$ac_exeext
4062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4063  (eval $ac_link) 2>conftest.er1
4064  ac_status=$?
4065  grep -v '^ *+' conftest.er1 >conftest.err
4066  rm -f conftest.er1
4067  cat conftest.err >&5
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); } &&
4070         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072  (eval $ac_try) 2>&5
4073  ac_status=$?
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); }; } &&
4076         { ac_try='test -s conftest$ac_exeext'
4077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078  (eval $ac_try) 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }; }; then
4082  ac_cv_search_opendir="none required"
4083else
4084  echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
4087fi
4088rm -f conftest.err conftest.$ac_objext \
4089      conftest$ac_exeext conftest.$ac_ext
4090if test "$ac_cv_search_opendir" = no; then
4091  for ac_lib in x; do
4092    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4093    cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h.  */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h.  */
4099
4100/* Override any gcc2 internal prototype to avoid an error.  */
4101#ifdef __cplusplus
4102extern "C"
4103#endif
4104/* We use char because int might match the return type of a gcc2
4105   builtin and then its argument prototype would still apply.  */
4106char opendir ();
4107int
4108main ()
4109{
4110opendir ();
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext conftest$ac_exeext
4116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117  (eval $ac_link) 2>conftest.er1
4118  ac_status=$?
4119  grep -v '^ *+' conftest.er1 >conftest.err
4120  rm -f conftest.er1
4121  cat conftest.err >&5
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); } &&
4124         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126  (eval $ac_try) 2>&5
4127  ac_status=$?
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); }; } &&
4130         { ac_try='test -s conftest$ac_exeext'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; }; then
4136  ac_cv_search_opendir="-l$ac_lib"
4137break
4138else
4139  echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142fi
4143rm -f conftest.err conftest.$ac_objext \
4144      conftest$ac_exeext conftest.$ac_ext
4145  done
4146fi
4147LIBS=$ac_func_search_save_LIBS
4148fi
4149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4150echo "${ECHO_T}$ac_cv_search_opendir" >&6
4151if test "$ac_cv_search_opendir" != no; then
4152  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4153
4154fi
4155
4156fi
4157
4158echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4159echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4160if test "${ac_cv_header_sys_wait_h+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h.  */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h.  */
4169#include <sys/types.h>
4170#include <sys/wait.h>
4171#ifndef WEXITSTATUS
4172# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4173#endif
4174#ifndef WIFEXITED
4175# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4176#endif
4177
4178int
4179main ()
4180{
4181  int s;
4182  wait (&s);
4183  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4184  ;
4185  return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4190  (eval $ac_compile) 2>conftest.er1
4191  ac_status=$?
4192  grep -v '^ *+' conftest.er1 >conftest.err
4193  rm -f conftest.er1
4194  cat conftest.err >&5
4195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196  (exit $ac_status); } &&
4197         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199  (eval $ac_try) 2>&5
4200  ac_status=$?
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); }; } &&
4203         { ac_try='test -s conftest.$ac_objext'
4204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205  (eval $ac_try) 2>&5
4206  ac_status=$?
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); }; }; then
4209  ac_cv_header_sys_wait_h=yes
4210else
4211  echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214ac_cv_header_sys_wait_h=no
4215fi
4216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217fi
4218echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4219echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4220if test $ac_cv_header_sys_wait_h = yes; then
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define HAVE_SYS_WAIT_H 1
4224_ACEOF
4225
4226fi
4227
4228echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4229echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4230if test "${ac_cv_header_stat_broken+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h.  */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h.  */
4239#include <sys/types.h>
4240#include <sys/stat.h>
4241
4242#if defined(S_ISBLK) && defined(S_IFDIR)
4243# if S_ISBLK (S_IFDIR)
4244You lose.
4245# endif
4246#endif
4247
4248#if defined(S_ISBLK) && defined(S_IFCHR)
4249# if S_ISBLK (S_IFCHR)
4250You lose.
4251# endif
4252#endif
4253
4254#if defined(S_ISLNK) && defined(S_IFREG)
4255# if S_ISLNK (S_IFREG)
4256You lose.
4257# endif
4258#endif
4259
4260#if defined(S_ISSOCK) && defined(S_IFREG)
4261# if S_ISSOCK (S_IFREG)
4262You lose.
4263# endif
4264#endif
4265
4266_ACEOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268  $EGREP "You lose" >/dev/null 2>&1; then
4269  ac_cv_header_stat_broken=yes
4270else
4271  ac_cv_header_stat_broken=no
4272fi
4273rm -f conftest*
4274
4275fi
4276echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4277echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4278if test $ac_cv_header_stat_broken = yes; then
4279
4280cat >>confdefs.h <<\_ACEOF
4281#define STAT_MACROS_BROKEN 1
4282_ACEOF
4283
4284fi
4285
4286# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297                  inttypes.h stdint.h unistd.h
4298do
4299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300echo "$as_me:$LINENO: checking for $ac_header" >&5
4301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303  echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
4305  cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h.  */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h.  */
4311$ac_includes_default
4312
4313#include <$ac_header>
4314_ACEOF
4315rm -f conftest.$ac_objext
4316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317  (eval $ac_compile) 2>conftest.er1
4318  ac_status=$?
4319  grep -v '^ *+' conftest.er1 >conftest.err
4320  rm -f conftest.er1
4321  cat conftest.err >&5
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); } &&
4324         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326  (eval $ac_try) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }; } &&
4330         { ac_try='test -s conftest.$ac_objext'
4331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332  (eval $ac_try) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }; }; then
4336  eval "$as_ac_Header=yes"
4337else
4338  echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341eval "$as_ac_Header=no"
4342fi
4343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344fi
4345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4347if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348  cat >>confdefs.h <<_ACEOF
4349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350_ACEOF
4351
4352fi
4353
4354done
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369for ac_header in limits.h paths.h sys/file.h crt_externs.h fcntl.h sys/fcntl.h sys/cdefs.h err.h libgen.h sys/socket.h \
4370        readline/readline.h readline/history.h
4371do
4372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374  echo "$as_me:$LINENO: checking for $ac_header" >&5
4375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378fi
4379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381else
4382  # Is the header compilable?
4383echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385cat >conftest.$ac_ext <<_ACEOF
4386/* confdefs.h.  */
4387_ACEOF
4388cat confdefs.h >>conftest.$ac_ext
4389cat >>conftest.$ac_ext <<_ACEOF
4390/* end confdefs.h.  */
4391$ac_includes_default
4392#include <$ac_header>
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396  (eval $ac_compile) 2>conftest.er1
4397  ac_status=$?
4398  grep -v '^ *+' conftest.er1 >conftest.err
4399  rm -f conftest.er1
4400  cat conftest.err >&5
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } &&
4403         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405  (eval $ac_try) 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; } &&
4409         { ac_try='test -s conftest.$ac_objext'
4410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411  (eval $ac_try) 2>&5
4412  ac_status=$?
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); }; }; then
4415  ac_header_compiler=yes
4416else
4417  echo "$as_me: failed program was:" >&5
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
4420ac_header_compiler=no
4421fi
4422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4424echo "${ECHO_T}$ac_header_compiler" >&6
4425
4426# Is the header present?
4427echo "$as_me:$LINENO: checking $ac_header presence" >&5
4428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4429cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h.  */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h.  */
4435#include <$ac_header>
4436_ACEOF
4437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4438  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439  ac_status=$?
4440  grep -v '^ *+' conftest.er1 >conftest.err
4441  rm -f conftest.er1
4442  cat conftest.err >&5
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); } >/dev/null; then
4445  if test -s conftest.err; then
4446    ac_cpp_err=$ac_c_preproc_warn_flag
4447    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4448  else
4449    ac_cpp_err=
4450  fi
4451else
4452  ac_cpp_err=yes
4453fi
4454if test -z "$ac_cpp_err"; then
4455  ac_header_preproc=yes
4456else
4457  echo "$as_me: failed program was:" >&5
4458sed 's/^/| /' conftest.$ac_ext >&5
4459
4460  ac_header_preproc=no
4461fi
4462rm -f conftest.err conftest.$ac_ext
4463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4464echo "${ECHO_T}$ac_header_preproc" >&6
4465
4466# So?  What about this header?
4467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4468  yes:no: )
4469    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4471    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4473    ac_header_preproc=yes
4474    ;;
4475  no:yes:* )
4476    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4479echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4480    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4482    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4483echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4486    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4488    (
4489      cat <<\_ASBOX
4490## ----------------------------------------- ##
4491## Report this to darwinports@opendarwin.org ##
4492## ----------------------------------------- ##
4493_ASBOX
4494    ) |
4495      sed "s/^/$as_me: WARNING:     /" >&2
4496    ;;
4497esac
4498echo "$as_me:$LINENO: checking for $ac_header" >&5
4499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4500if eval "test \"\${$as_ac_Header+set}\" = set"; then
4501  echo $ECHO_N "(cached) $ECHO_C" >&6
4502else
4503  eval "$as_ac_Header=\$ac_header_preproc"
4504fi
4505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4507
4508fi
4509if test `eval echo '${'$as_ac_Header'}'` = yes; then
4510  cat >>confdefs.h <<_ACEOF
4511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512_ACEOF
4513
4514fi
4515
4516done
4517
4518
4519INCLUDES="-I.. -I. $INCLUDES"
4520
4521# Checks for library functions.
4522echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4523echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4524if test "${ac_cv_func_closedir_void+set}" = set; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527  if test "$cross_compiling" = yes; then
4528  ac_cv_func_closedir_void=yes
4529else
4530  cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h.  */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h.  */
4536$ac_includes_default
4537#include <$ac_header_dirent>
4538#ifndef __cplusplus
4539int closedir ();
4540#endif
4541
4542int
4543main ()
4544{
4545exit (closedir (opendir (".")) != 0);
4546  ;
4547  return 0;
4548}
4549_ACEOF
4550rm -f conftest$ac_exeext
4551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4552  (eval $ac_link) 2>&5
4553  ac_status=$?
4554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  ac_cv_func_closedir_void=no
4562else
4563  echo "$as_me: program exited with status $ac_status" >&5
4564echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567( exit $ac_status )
4568ac_cv_func_closedir_void=yes
4569fi
4570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571fi
4572fi
4573echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4574echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
4575if test $ac_cv_func_closedir_void = yes; then
4576
4577cat >>confdefs.h <<\_ACEOF
4578#define CLOSEDIR_VOID 1
4579_ACEOF
4580
4581fi
4582
4583echo "$as_me:$LINENO: checking for pid_t" >&5
4584echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4585if test "${ac_cv_type_pid_t+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h.  */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h.  */
4594$ac_includes_default
4595int
4596main ()
4597{
4598if ((pid_t *) 0)
4599  return 0;
4600if (sizeof (pid_t))
4601  return 0;
4602  ;
4603  return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext
4607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608  (eval $ac_compile) 2>conftest.er1
4609  ac_status=$?
4610  grep -v '^ *+' conftest.er1 >conftest.err
4611  rm -f conftest.er1
4612  cat conftest.err >&5
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); } &&
4615         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; } &&
4621         { ac_try='test -s conftest.$ac_objext'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; }; then
4627  ac_cv_type_pid_t=yes
4628else
4629  echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632ac_cv_type_pid_t=no
4633fi
4634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635fi
4636echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4637echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4638if test $ac_cv_type_pid_t = yes; then
4639  :
4640else
4641
4642cat >>confdefs.h <<_ACEOF
4643#define pid_t int
4644_ACEOF
4645
4646fi
4647
4648
4649
4650for ac_header in unistd.h vfork.h
4651do
4652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4653if eval "test \"\${$as_ac_Header+set}\" = set"; then
4654  echo "$as_me:$LINENO: checking for $ac_header" >&5
4655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4656if eval "test \"\${$as_ac_Header+set}\" = set"; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658fi
4659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661else
4662  # Is the header compilable?
4663echo "$as_me:$LINENO: checking $ac_header usability" >&5
4664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h.  */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h.  */
4671$ac_includes_default
4672#include <$ac_header>
4673_ACEOF
4674rm -f conftest.$ac_objext
4675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676  (eval $ac_compile) 2>conftest.er1
4677  ac_status=$?
4678  grep -v '^ *+' conftest.er1 >conftest.err
4679  rm -f conftest.er1
4680  cat conftest.err >&5
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); } &&
4683         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; } &&
4689         { ac_try='test -s conftest.$ac_objext'
4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691  (eval $ac_try) 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); }; }; then
4695  ac_header_compiler=yes
4696else
4697  echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700ac_header_compiler=no
4701fi
4702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4704echo "${ECHO_T}$ac_header_compiler" >&6
4705
4706# Is the header present?
4707echo "$as_me:$LINENO: checking $ac_header presence" >&5
4708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4709cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h.  */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h.  */
4715#include <$ac_header>
4716_ACEOF
4717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } >/dev/null; then
4725  if test -s conftest.err; then
4726    ac_cpp_err=$ac_c_preproc_warn_flag
4727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4728  else
4729    ac_cpp_err=
4730  fi
4731else
4732  ac_cpp_err=yes
4733fi
4734if test -z "$ac_cpp_err"; then
4735  ac_header_preproc=yes
4736else
4737  echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740  ac_header_preproc=no
4741fi
4742rm -f conftest.err conftest.$ac_ext
4743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4744echo "${ECHO_T}$ac_header_preproc" >&6
4745
4746# So?  What about this header?
4747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4748  yes:no: )
4749    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4753    ac_header_preproc=yes
4754    ;;
4755  no:yes:* )
4756    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4758    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4759echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4760    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4762    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4763echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4764    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4766    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4768    (
4769      cat <<\_ASBOX
4770## ----------------------------------------- ##
4771## Report this to darwinports@opendarwin.org ##
4772## ----------------------------------------- ##
4773_ASBOX
4774    ) |
4775      sed "s/^/$as_me: WARNING:     /" >&2
4776    ;;
4777esac
4778echo "$as_me:$LINENO: checking for $ac_header" >&5
4779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4780if eval "test \"\${$as_ac_Header+set}\" = set"; then
4781  echo $ECHO_N "(cached) $ECHO_C" >&6
4782else
4783  eval "$as_ac_Header=\$ac_header_preproc"
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787
4788fi
4789if test `eval echo '${'$as_ac_Header'}'` = yes; then
4790  cat >>confdefs.h <<_ACEOF
4791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792_ACEOF
4793
4794fi
4795
4796done
4797
4798
4799
4800for ac_func in fork vfork
4801do
4802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803echo "$as_me:$LINENO: checking for $ac_func" >&5
4804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4805if eval "test \"\${$as_ac_var+set}\" = set"; then
4806  echo $ECHO_N "(cached) $ECHO_C" >&6
4807else
4808  cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h.  */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
4813/* end confdefs.h.  */
4814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4816#define $ac_func innocuous_$ac_func
4817
4818/* System header to define __stub macros and hopefully few prototypes,
4819    which can conflict with char $ac_func (); below.
4820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821    <limits.h> exists even on freestanding compilers.  */
4822
4823#ifdef __STDC__
4824# include <limits.h>
4825#else
4826# include <assert.h>
4827#endif
4828
4829#undef $ac_func
4830
4831/* Override any gcc2 internal prototype to avoid an error.  */
4832#ifdef __cplusplus
4833extern "C"
4834{
4835#endif
4836/* We use char because int might match the return type of a gcc2
4837   builtin and then its argument prototype would still apply.  */
4838char $ac_func ();
4839/* The GNU C library defines this for functions which it implements
4840    to always fail with ENOSYS.  Some functions are actually named
4841    something starting with __ and the normal name is an alias.  */
4842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4843choke me
4844#else
4845char (*f) () = $ac_func;
4846#endif
4847#ifdef __cplusplus
4848}
4849#endif
4850
4851int
4852main ()
4853{
4854return f != $ac_func;
4855  ;
4856  return 0;
4857}
4858_ACEOF
4859rm -f conftest.$ac_objext conftest$ac_exeext
4860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861  (eval $ac_link) 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } &&
4868         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870  (eval $ac_try) 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; } &&
4874         { ac_try='test -s conftest$ac_exeext'
4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876  (eval $ac_try) 2>&5
4877  ac_status=$?
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); }; }; then
4880  eval "$as_ac_var=yes"
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885eval "$as_ac_var=no"
4886fi
4887rm -f conftest.err conftest.$ac_objext \
4888      conftest$ac_exeext conftest.$ac_ext
4889fi
4890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4892if test `eval echo '${'$as_ac_var'}'` = yes; then
4893  cat >>confdefs.h <<_ACEOF
4894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4895_ACEOF
4896
4897fi
4898done
4899
4900if test "x$ac_cv_func_fork" = xyes; then
4901  echo "$as_me:$LINENO: checking for working fork" >&5
4902echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4903if test "${ac_cv_func_fork_works+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906  if test "$cross_compiling" = yes; then
4907  ac_cv_func_fork_works=cross
4908else
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* By Ruediger Kuhlmann. */
4911      #include <sys/types.h>
4912      #if HAVE_UNISTD_H
4913      # include <unistd.h>
4914      #endif
4915      /* Some systems only have a dummy stub for fork() */
4916      int main ()
4917      {
4918        if (fork() < 0)
4919          exit (1);
4920        exit (0);
4921      }
4922_ACEOF
4923rm -f conftest$ac_exeext
4924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925  (eval $ac_link) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930  (eval $ac_try) 2>&5
4931  ac_status=$?
4932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933  (exit $ac_status); }; }; then
4934  ac_cv_func_fork_works=yes
4935else
4936  echo "$as_me: program exited with status $ac_status" >&5
4937echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940( exit $ac_status )
4941ac_cv_func_fork_works=no
4942fi
4943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4944fi
4945fi
4946echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4947echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4948
4949else
4950  ac_cv_func_fork_works=$ac_cv_func_fork
4951fi
4952if test "x$ac_cv_func_fork_works" = xcross; then
4953  case $host in
4954    *-*-amigaos* | *-*-msdosdjgpp*)
4955      # Override, as these systems have only a dummy fork() stub
4956      ac_cv_func_fork_works=no
4957      ;;
4958    *)
4959      ac_cv_func_fork_works=yes
4960      ;;
4961  esac
4962  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4963echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4964fi
4965ac_cv_func_vfork_works=$ac_cv_func_vfork
4966if test "x$ac_cv_func_vfork" = xyes; then
4967  echo "$as_me:$LINENO: checking for working vfork" >&5
4968echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4969if test "${ac_cv_func_vfork_works+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  if test "$cross_compiling" = yes; then
4973  ac_cv_func_vfork_works=cross
4974else
4975  cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981/* Thanks to Paul Eggert for this test.  */
4982#include <stdio.h>
4983#include <stdlib.h>
4984#include <sys/types.h>
4985#include <sys/stat.h>
4986#include <sys/wait.h>
4987#if HAVE_UNISTD_H
4988# include <unistd.h>
4989#endif
4990#if HAVE_VFORK_H
4991# include <vfork.h>
4992#endif
4993/* On some sparc systems, changes by the child to local and incoming
4994   argument registers are propagated back to the parent.  The compiler
4995   is told about this with #include <vfork.h>, but some compilers
4996   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4997   static variable whose address is put into a register that is
4998   clobbered by the vfork.  */
4999static void
5000#ifdef __cplusplus
5001sparc_address_test (int arg)
5002# else
5003sparc_address_test (arg) int arg;
5004#endif
5005{
5006  static pid_t child;
5007  if (!child) {
5008    child = vfork ();
5009    if (child < 0) {
5010      perror ("vfork");
5011      _exit(2);
5012    }
5013    if (!child) {
5014      arg = getpid();
5015      write(-1, "", 0);
5016      _exit (arg);
5017    }
5018  }
5019}
5020
5021int
5022main ()
5023{
5024  pid_t parent = getpid ();
5025  pid_t child;
5026
5027  sparc_address_test (0);
5028
5029  child = vfork ();
5030
5031  if (child == 0) {
5032    /* Here is another test for sparc vfork register problems.  This
5033       test uses lots of local variables, at least as many local
5034       variables as main has allocated so far including compiler
5035       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5036       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5037       reuse the register of parent for one of the local variables,
5038       since it will think that parent can't possibly be used any more
5039       in this routine.  Assigning to the local variable will thus
5040       munge parent in the parent process.  */
5041    pid_t
5042      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5043      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5044    /* Convince the compiler that p..p7 are live; otherwise, it might
5045       use the same hardware register for all 8 local variables.  */
5046    if (p != p1 || p != p2 || p != p3 || p != p4
5047        || p != p5 || p != p6 || p != p7)
5048      _exit(1);
5049
5050    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5051       from child file descriptors.  If the child closes a descriptor
5052       before it execs or exits, this munges the parent's descriptor
5053       as well.  Test for this by closing stdout in the child.  */
5054    _exit(close(fileno(stdout)) != 0);
5055  } else {
5056    int status;
5057    struct stat st;
5058
5059    while (wait(&status) != child)
5060      ;
5061    exit(
5062         /* Was there some problem with vforking?  */
5063         child < 0
5064
5065         /* Did the child fail?  (This shouldn't happen.)  */
5066         || status
5067
5068         /* Did the vfork/compiler bug occur?  */
5069         || parent != getpid()
5070
5071         /* Did the file descriptor bug occur?  */
5072         || fstat(fileno(stdout), &st) != 0
5073         );
5074  }
5075}
5076_ACEOF
5077rm -f conftest$ac_exeext
5078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079  (eval $ac_link) 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084  (eval $ac_try) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; }; then
5088  ac_cv_func_vfork_works=yes
5089else
5090  echo "$as_me: program exited with status $ac_status" >&5
5091echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094( exit $ac_status )
5095ac_cv_func_vfork_works=no
5096fi
5097rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5098fi
5099fi
5100echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5101echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5102
5103fi;
5104if test "x$ac_cv_func_fork_works" = xcross; then
5105  ac_cv_func_vfork_works=$ac_cv_func_vfork
5106  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5107echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5108fi
5109
5110if test "x$ac_cv_func_vfork_works" = xyes; then
5111
5112cat >>confdefs.h <<\_ACEOF
5113#define HAVE_WORKING_VFORK 1
5114_ACEOF
5115
5116else
5117
5118cat >>confdefs.h <<\_ACEOF
5119#define vfork fork
5120_ACEOF
5121
5122fi
5123if test "x$ac_cv_func_fork_works" = xyes; then
5124
5125cat >>confdefs.h <<\_ACEOF
5126#define HAVE_WORKING_FORK 1
5127_ACEOF
5128
5129fi
5130
5131echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5132echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5133if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h.  */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h.  */
5142$ac_includes_default
5143int
5144main ()
5145{
5146#ifndef strerror_r
5147  char *p = (char *) strerror_r;
5148#endif
5149
5150  ;
5151  return 0;
5152}
5153_ACEOF
5154rm -f conftest.$ac_objext
5155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156  (eval $ac_compile) 2>conftest.er1
5157  ac_status=$?
5158  grep -v '^ *+' conftest.er1 >conftest.err
5159  rm -f conftest.er1
5160  cat conftest.err >&5
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); } &&
5163         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165  (eval $ac_try) 2>&5
5166  ac_status=$?
5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168  (exit $ac_status); }; } &&
5169         { ac_try='test -s conftest.$ac_objext'
5170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171  (eval $ac_try) 2>&5
5172  ac_status=$?
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); }; }; then
5175  ac_cv_have_decl_strerror_r=yes
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180ac_cv_have_decl_strerror_r=no
5181fi
5182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183fi
5184echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5185echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5186if test $ac_cv_have_decl_strerror_r = yes; then
5187
5188cat >>confdefs.h <<_ACEOF
5189#define HAVE_DECL_STRERROR_R 1
5190_ACEOF
5191
5192
5193else
5194  cat >>confdefs.h <<_ACEOF
5195#define HAVE_DECL_STRERROR_R 0
5196_ACEOF
5197
5198
5199fi
5200
5201
5202
5203for ac_func in strerror_r
5204do
5205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5206echo "$as_me:$LINENO: checking for $ac_func" >&5
5207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5208if eval "test \"\${$as_ac_var+set}\" = set"; then
5209  echo $ECHO_N "(cached) $ECHO_C" >&6
5210else
5211  cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5219#define $ac_func innocuous_$ac_func
5220
5221/* System header to define __stub macros and hopefully few prototypes,
5222    which can conflict with char $ac_func (); below.
5223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224    <limits.h> exists even on freestanding compilers.  */
5225
5226#ifdef __STDC__
5227# include <limits.h>
5228#else
5229# include <assert.h>
5230#endif
5231
5232#undef $ac_func
5233
5234/* Override any gcc2 internal prototype to avoid an error.  */
5235#ifdef __cplusplus
5236extern "C"
5237{
5238#endif
5239/* We use char because int might match the return type of a gcc2
5240   builtin and then its argument prototype would still apply.  */
5241char $ac_func ();
5242/* The GNU C library defines this for functions which it implements
5243    to always fail with ENOSYS.  Some functions are actually named
5244    something starting with __ and the normal name is an alias.  */
5245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5246choke me
5247#else
5248char (*f) () = $ac_func;
5249#endif
5250#ifdef __cplusplus
5251}
5252#endif
5253
5254int
5255main ()
5256{
5257return f != $ac_func;
5258  ;
5259  return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext conftest$ac_exeext
5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264  (eval $ac_link) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } &&
5271         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273  (eval $ac_try) 2>&5
5274  ac_status=$?
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); }; } &&
5277         { ac_try='test -s conftest$ac_exeext'
5278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279  (eval $ac_try) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); }; }; then
5283  eval "$as_ac_var=yes"
5284else
5285  echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288eval "$as_ac_var=no"
5289fi
5290rm -f conftest.err conftest.$ac_objext \
5291      conftest$ac_exeext conftest.$ac_ext
5292fi
5293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5295if test `eval echo '${'$as_ac_var'}'` = yes; then
5296  cat >>confdefs.h <<_ACEOF
5297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5298_ACEOF
5299
5300fi
5301done
5302
5303echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5304echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
5305if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308
5309    ac_cv_func_strerror_r_char_p=no
5310    if test $ac_cv_have_decl_strerror_r = yes; then
5311      cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317$ac_includes_default
5318int
5319main ()
5320{
5321
5322          char buf[100];
5323          char x = *strerror_r (0, buf, sizeof buf);
5324          char *p = strerror_r (0, buf, sizeof buf);
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330rm -f conftest.$ac_objext
5331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332  (eval $ac_compile) 2>conftest.er1
5333  ac_status=$?
5334  grep -v '^ *+' conftest.er1 >conftest.err
5335  rm -f conftest.er1
5336  cat conftest.err >&5
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } &&
5339         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341  (eval $ac_try) 2>&5
5342  ac_status=$?
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); }; } &&
5345         { ac_try='test -s conftest.$ac_objext'
5346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347  (eval $ac_try) 2>&5
5348  ac_status=$?
5349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350  (exit $ac_status); }; }; then
5351  ac_cv_func_strerror_r_char_p=yes
5352else
5353  echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356fi
5357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358    else
5359      # strerror_r is not declared.  Choose between
5360      # systems that have relatively inaccessible declarations for the
5361      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5362      # former has a strerror_r that returns char*, while the latter
5363      # has a strerror_r that returns `int'.
5364      # This test should segfault on the DEC system.
5365      if test "$cross_compiling" = yes; then
5366  :
5367else
5368  cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374$ac_includes_default
5375        extern char *strerror_r ();
5376int
5377main ()
5378{
5379char buf[100];
5380          char x = *strerror_r (0, buf, sizeof buf);
5381          exit (!isalpha (x));
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386rm -f conftest$ac_exeext
5387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388  (eval $ac_link) 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393  (eval $ac_try) 2>&5
5394  ac_status=$?
5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396  (exit $ac_status); }; }; then
5397  ac_cv_func_strerror_r_char_p=yes
5398else
5399  echo "$as_me: program exited with status $ac_status" >&5
5400echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403fi
5404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5405fi
5406    fi
5407
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5410echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
5411if test $ac_cv_func_strerror_r_char_p = yes; then
5412
5413cat >>confdefs.h <<\_ACEOF
5414#define STRERROR_R_CHAR_P 1
5415_ACEOF
5416
5417fi
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp copyfile
5434do
5435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5436echo "$as_me:$LINENO: checking for $ac_func" >&5
5437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5438if eval "test \"\${$as_ac_var+set}\" = set"; then
5439  echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441  cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5448   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5449#define $ac_func innocuous_$ac_func
5450
5451/* System header to define __stub macros and hopefully few prototypes,
5452    which can conflict with char $ac_func (); below.
5453    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454    <limits.h> exists even on freestanding compilers.  */
5455
5456#ifdef __STDC__
5457# include <limits.h>
5458#else
5459# include <assert.h>
5460#endif
5461
5462#undef $ac_func
5463
5464/* Override any gcc2 internal prototype to avoid an error.  */
5465#ifdef __cplusplus
5466extern "C"
5467{
5468#endif
5469/* We use char because int might match the return type of a gcc2
5470   builtin and then its argument prototype would still apply.  */
5471char $ac_func ();
5472/* The GNU C library defines this for functions which it implements
5473    to always fail with ENOSYS.  Some functions are actually named
5474    something starting with __ and the normal name is an alias.  */
5475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5476choke me
5477#else
5478char (*f) () = $ac_func;
5479#endif
5480#ifdef __cplusplus
5481}
5482#endif
5483
5484int
5485main ()
5486{
5487return f != $ac_func;
5488  ;
5489  return 0;
5490}
5491_ACEOF
5492rm -f conftest.$ac_objext conftest$ac_exeext
5493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494  (eval $ac_link) 2>conftest.er1
5495  ac_status=$?
5496  grep -v '^ *+' conftest.er1 >conftest.err
5497  rm -f conftest.er1
5498  cat conftest.err >&5
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); } &&
5501         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503  (eval $ac_try) 2>&5
5504  ac_status=$?
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); }; } &&
5507         { ac_try='test -s conftest$ac_exeext'
5508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509  (eval $ac_try) 2>&5
5510  ac_status=$?
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }; }; then
5513  eval "$as_ac_var=yes"
5514else
5515  echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518eval "$as_ac_var=no"
5519fi
5520rm -f conftest.err conftest.$ac_objext \
5521      conftest$ac_exeext conftest.$ac_ext
5522fi
5523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5525if test `eval echo '${'$as_ac_var'}'` = yes; then
5526  cat >>confdefs.h <<_ACEOF
5527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5528_ACEOF
5529
5530fi
5531done
5532
5533
5534# Check for md5 implementation
5535
5536
5537        # Check for libmd, which is prefered
5538        echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&5
5539echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
5540if test "${ac_cv_lib_md_MD5Update+set}" = set; then
5541  echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543  ac_check_lib_save_LIBS=$LIBS
5544LIBS="-lmd  $LIBS"
5545cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h.  */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h.  */
5551
5552/* Override any gcc2 internal prototype to avoid an error.  */
5553#ifdef __cplusplus
5554extern "C"
5555#endif
5556/* We use char because int might match the return type of a gcc2
5557   builtin and then its argument prototype would still apply.  */
5558char MD5Update ();
5559int
5560main ()
5561{
5562MD5Update ();
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567rm -f conftest.$ac_objext conftest$ac_exeext
5568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569  (eval $ac_link) 2>conftest.er1
5570  ac_status=$?
5571  grep -v '^ *+' conftest.er1 >conftest.err
5572  rm -f conftest.er1
5573  cat conftest.err >&5
5574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); } &&
5576         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578  (eval $ac_try) 2>&5
5579  ac_status=$?
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); }; } &&
5582         { ac_try='test -s conftest$ac_exeext'
5583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584  (eval $ac_try) 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; }; then
5588  ac_cv_lib_md_MD5Update=yes
5589else
5590  echo "$as_me: failed program was:" >&5
5591sed 's/^/| /' conftest.$ac_ext >&5
5592
5593ac_cv_lib_md_MD5Update=no
5594fi
5595rm -f conftest.err conftest.$ac_objext \
5596      conftest$ac_exeext conftest.$ac_ext
5597LIBS=$ac_check_lib_save_LIBS
5598fi
5599echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&5
5600echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
5601if test $ac_cv_lib_md_MD5Update = yes; then
5602
5603
5604for ac_header in md5.h
5605do
5606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5607if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608  echo "$as_me:$LINENO: checking for $ac_header" >&5
5609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5610if eval "test \"\${$as_ac_Header+set}\" = set"; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612fi
5613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615else
5616  # Is the header compilable?
5617echo "$as_me:$LINENO: checking $ac_header usability" >&5
5618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5619cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625$ac_includes_default
5626#include <$ac_header>
5627_ACEOF
5628rm -f conftest.$ac_objext
5629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630  (eval $ac_compile) 2>conftest.er1
5631  ac_status=$?
5632  grep -v '^ *+' conftest.er1 >conftest.err
5633  rm -f conftest.er1
5634  cat conftest.err >&5
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } &&
5637         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639  (eval $ac_try) 2>&5
5640  ac_status=$?
5641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642  (exit $ac_status); }; } &&
5643         { ac_try='test -s conftest.$ac_objext'
5644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645  (eval $ac_try) 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; }; then
5649  ac_header_compiler=yes
5650else
5651  echo "$as_me: failed program was:" >&5
5652sed 's/^/| /' conftest.$ac_ext >&5
5653
5654ac_header_compiler=no
5655fi
5656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5658echo "${ECHO_T}$ac_header_compiler" >&6
5659
5660# Is the header present?
5661echo "$as_me:$LINENO: checking $ac_header presence" >&5
5662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5663cat >conftest.$ac_ext <<_ACEOF
5664/* confdefs.h.  */
5665_ACEOF
5666cat confdefs.h >>conftest.$ac_ext
5667cat >>conftest.$ac_ext <<_ACEOF
5668/* end confdefs.h.  */
5669#include <$ac_header>
5670_ACEOF
5671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5672  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5673  ac_status=$?
5674  grep -v '^ *+' conftest.er1 >conftest.err
5675  rm -f conftest.er1
5676  cat conftest.err >&5
5677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678  (exit $ac_status); } >/dev/null; then
5679  if test -s conftest.err; then
5680    ac_cpp_err=$ac_c_preproc_warn_flag
5681    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5682  else
5683    ac_cpp_err=
5684  fi
5685else
5686  ac_cpp_err=yes
5687fi
5688if test -z "$ac_cpp_err"; then
5689  ac_header_preproc=yes
5690else
5691  echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694  ac_header_preproc=no
5695fi
5696rm -f conftest.err conftest.$ac_ext
5697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5698echo "${ECHO_T}$ac_header_preproc" >&6
5699
5700# So?  What about this header?
5701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5702  yes:no: )
5703    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5705    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5707    ac_header_preproc=yes
5708    ;;
5709  no:yes:* )
5710    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5712    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5713echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5714    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5716    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5717echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5720    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5722    (
5723      cat <<\_ASBOX
5724## ----------------------------------------- ##
5725## Report this to darwinports@opendarwin.org ##
5726## ----------------------------------------- ##
5727_ASBOX
5728    ) |
5729      sed "s/^/$as_me: WARNING:     /" >&2
5730    ;;
5731esac
5732echo "$as_me:$LINENO: checking for $ac_header" >&5
5733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5734if eval "test \"\${$as_ac_Header+set}\" = set"; then
5735  echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737  eval "$as_ac_Header=\$ac_header_preproc"
5738fi
5739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5741
5742fi
5743if test `eval echo '${'$as_ac_Header'}'` = yes; then
5744  cat >>confdefs.h <<_ACEOF
5745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5746_ACEOF
5747
5748else
5749
5750                        case $host_os in
5751                                darwin*)
5752                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
5753echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
5754                                        ;;
5755                                *)
5756                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
5757echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
5758                                        ;;
5759                        esac
5760                        { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&5
5761echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
5762   { (exit 1); exit 1; }; }
5763
5764fi
5765
5766done
5767
5768
5769cat >>confdefs.h <<\_ACEOF
5770#define HAVE_LIBMD
5771_ACEOF
5772
5773                MD5_LIBS="-lmd"
5774
5775fi
5776
5777        if test "x$MD5_LIBS" = "x" ; then
5778                # If libmd is not found, check for libcrypto from OpenSSL
5779                echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&5
5780echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
5781if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
5782  echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784  ac_check_lib_save_LIBS=$LIBS
5785LIBS="-lcrypto  $LIBS"
5786cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h.  */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h.  */
5792
5793/* Override any gcc2 internal prototype to avoid an error.  */
5794#ifdef __cplusplus
5795extern "C"
5796#endif
5797/* We use char because int might match the return type of a gcc2
5798   builtin and then its argument prototype would still apply.  */
5799char MD5_Update ();
5800int
5801main ()
5802{
5803MD5_Update ();
5804  ;
5805  return 0;
5806}
5807_ACEOF
5808rm -f conftest.$ac_objext conftest$ac_exeext
5809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5810  (eval $ac_link) 2>conftest.er1
5811  ac_status=$?
5812  grep -v '^ *+' conftest.er1 >conftest.err
5813  rm -f conftest.er1
5814  cat conftest.err >&5
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); } &&
5817         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819  (eval $ac_try) 2>&5
5820  ac_status=$?
5821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); }; } &&
5823         { ac_try='test -s conftest$ac_exeext'
5824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825  (eval $ac_try) 2>&5
5826  ac_status=$?
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); }; }; then
5829  ac_cv_lib_crypto_MD5_Update=yes
5830else
5831  echo "$as_me: failed program was:" >&5
5832sed 's/^/| /' conftest.$ac_ext >&5
5833
5834ac_cv_lib_crypto_MD5_Update=no
5835fi
5836rm -f conftest.err conftest.$ac_objext \
5837      conftest$ac_exeext conftest.$ac_ext
5838LIBS=$ac_check_lib_save_LIBS
5839fi
5840echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&5
5841echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
5842if test $ac_cv_lib_crypto_MD5_Update = yes; then
5843
5844
5845for ac_header in openssl/md5.h
5846do
5847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848if eval "test \"\${$as_ac_Header+set}\" = set"; then
5849  echo "$as_me:$LINENO: checking for $ac_header" >&5
5850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5851if eval "test \"\${$as_ac_Header+set}\" = set"; then
5852  echo $ECHO_N "(cached) $ECHO_C" >&6
5853fi
5854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5856else
5857  # Is the header compilable?
5858echo "$as_me:$LINENO: checking $ac_header usability" >&5
5859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5860cat >conftest.$ac_ext <<_ACEOF
5861/* confdefs.h.  */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h.  */
5866$ac_includes_default
5867#include <$ac_header>
5868_ACEOF
5869rm -f conftest.$ac_objext
5870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871  (eval $ac_compile) 2>conftest.er1
5872  ac_status=$?
5873  grep -v '^ *+' conftest.er1 >conftest.err
5874  rm -f conftest.er1
5875  cat conftest.err >&5
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); } &&
5878         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880  (eval $ac_try) 2>&5
5881  ac_status=$?
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); }; } &&
5884         { ac_try='test -s conftest.$ac_objext'
5885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886  (eval $ac_try) 2>&5
5887  ac_status=$?
5888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889  (exit $ac_status); }; }; then
5890  ac_header_compiler=yes
5891else
5892  echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895ac_header_compiler=no
5896fi
5897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5899echo "${ECHO_T}$ac_header_compiler" >&6
5900
5901# Is the header present?
5902echo "$as_me:$LINENO: checking $ac_header presence" >&5
5903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5904cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h.  */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h.  */
5910#include <$ac_header>
5911_ACEOF
5912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5913  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5914  ac_status=$?
5915  grep -v '^ *+' conftest.er1 >conftest.err
5916  rm -f conftest.er1
5917  cat conftest.err >&5
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); } >/dev/null; then
5920  if test -s conftest.err; then
5921    ac_cpp_err=$ac_c_preproc_warn_flag
5922    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5923  else
5924    ac_cpp_err=
5925  fi
5926else
5927  ac_cpp_err=yes
5928fi
5929if test -z "$ac_cpp_err"; then
5930  ac_header_preproc=yes
5931else
5932  echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935  ac_header_preproc=no
5936fi
5937rm -f conftest.err conftest.$ac_ext
5938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5939echo "${ECHO_T}$ac_header_preproc" >&6
5940
5941# So?  What about this header?
5942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5943  yes:no: )
5944    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5948    ac_header_preproc=yes
5949    ;;
5950  no:yes:* )
5951    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5953    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5954echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5955    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5957    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5958echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5961    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5963    (
5964      cat <<\_ASBOX
5965## ----------------------------------------- ##
5966## Report this to darwinports@opendarwin.org ##
5967## ----------------------------------------- ##
5968_ASBOX
5969    ) |
5970      sed "s/^/$as_me: WARNING:     /" >&2
5971    ;;
5972esac
5973echo "$as_me:$LINENO: checking for $ac_header" >&5
5974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5975if eval "test \"\${$as_ac_Header+set}\" = set"; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978  eval "$as_ac_Header=\$ac_header_preproc"
5979fi
5980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5982
5983fi
5984if test `eval echo '${'$as_ac_Header'}'` = yes; then
5985  cat >>confdefs.h <<_ACEOF
5986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987_ACEOF
5988
5989else
5990
5991                                case $host_os in
5992                                        darwin*)
5993                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
5994echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
5995                                                ;;
5996                                        *)
5997                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
5998echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
5999                                                ;;
6000                                esac
6001                                { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
6002echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
6003   { (exit 1); exit 1; }; }
6004
6005fi
6006
6007done
6008
6009
6010cat >>confdefs.h <<\_ACEOF
6011#define HAVE_LIBCRYPTO
6012_ACEOF
6013
6014                        MD5_LIBS="-lcrypto"
6015
6016else
6017
6018                        { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6019echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6020   { (exit 1); exit 1; }; }
6021
6022fi
6023
6024        fi
6025        if test "x$MD5_LIBS" = "x"; then
6026                { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6027echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6028   { (exit 1); exit 1; }; }
6029        fi
6030
6031
6032# Check for X11 and paraphernalia
6033
6034
6035
6036if test "x$ac_path_x_has_been_run" != xyes; then
6037  echo "$as_me:$LINENO: checking for X" >&5
6038echo $ECHO_N "checking for X... $ECHO_C" >&6
6039
6040ac_path_x_has_been_run=yes
6041
6042# Check whether --with-x or --without-x was given.
6043if test "${with_x+set}" = set; then
6044  withval="$with_x"
6045
6046fi;
6047# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6048if test "x$with_x" = xno; then
6049  # The user explicitly disabled X.
6050  have_x=disabled
6051else
6052  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6053    # Both variables are already set.
6054    have_x=yes
6055  else
6056    if test "${ac_cv_have_x+set}" = set; then
6057  echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059  # One or both of the vars are not set, and there is no cached value.
6060ac_x_includes=no ac_x_libraries=no
6061rm -fr conftest.dir
6062if mkdir conftest.dir; then
6063  cd conftest.dir
6064  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6065  cat >Imakefile <<'_ACEOF'
6066acfindx:
6067        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6068_ACEOF
6069  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6070    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6071    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6072    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6073    for ac_extension in a so sl; do
6074      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6075         test -f $ac_im_libdir/libX11.$ac_extension; then
6076        ac_im_usrlibdir=$ac_im_libdir; break
6077      fi
6078    done
6079    # Screen out bogus values from the imake configuration.  They are
6080    # bogus both because they are the default anyway, and because
6081    # using them would break gcc on systems where it needs fixed includes.
6082    case $ac_im_incroot in
6083        /usr/include) ;;
6084        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6085    esac
6086    case $ac_im_usrlibdir in
6087        /usr/lib | /lib) ;;
6088        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6089    esac
6090  fi
6091  cd ..
6092  rm -fr conftest.dir
6093fi
6094
6095# Standard set of common directories for X headers.
6096# Check X11 before X11Rn because it is often a symlink to the current release.
6097ac_x_header_dirs='
6098/usr/X11/include
6099/usr/X11R6/include
6100/usr/X11R5/include
6101/usr/X11R4/include
6102
6103/usr/include/X11
6104/usr/include/X11R6
6105/usr/include/X11R5
6106/usr/include/X11R4
6107
6108/usr/local/X11/include
6109/usr/local/X11R6/include
6110/usr/local/X11R5/include
6111/usr/local/X11R4/include
6112
6113/usr/local/include/X11
6114/usr/local/include/X11R6
6115/usr/local/include/X11R5
6116/usr/local/include/X11R4
6117
6118/usr/X386/include
6119/usr/x386/include
6120/usr/XFree86/include/X11
6121
6122/usr/include
6123/usr/local/include
6124/usr/unsupported/include
6125/usr/athena/include
6126/usr/local/x11r5/include
6127/usr/lpp/Xamples/include
6128
6129/usr/openwin/include
6130/usr/openwin/share/include'
6131
6132if test "$ac_x_includes" = no; then
6133  # Guess where to find include files, by looking for a specified header file.
6134  # First, try using that file with no special directory specified.
6135  cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h.  */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h.  */
6141#include <X11/Intrinsic.h>
6142_ACEOF
6143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6145  ac_status=$?
6146  grep -v '^ *+' conftest.er1 >conftest.err
6147  rm -f conftest.er1
6148  cat conftest.err >&5
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); } >/dev/null; then
6151  if test -s conftest.err; then
6152    ac_cpp_err=$ac_c_preproc_warn_flag
6153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6154  else
6155    ac_cpp_err=
6156  fi
6157else
6158  ac_cpp_err=yes
6159fi
6160if test -z "$ac_cpp_err"; then
6161  # We can compile using X headers with no special include directory.
6162ac_x_includes=
6163else
6164  echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167  for ac_dir in $ac_x_header_dirs; do
6168  if test -r "$ac_dir/X11/Intrinsic.h"; then
6169    ac_x_includes=$ac_dir
6170    break
6171  fi
6172done
6173fi
6174rm -f conftest.err conftest.$ac_ext
6175fi # $ac_x_includes = no
6176
6177if test "$ac_x_libraries" = no; then
6178  # Check for the libraries.
6179  # See if we find them without any special options.
6180  # Don't add to $LIBS permanently.
6181  ac_save_LIBS=$LIBS
6182  LIBS="-lXt $LIBS"
6183  cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h.  */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h.  */
6189#include <X11/Intrinsic.h>
6190int
6191main ()
6192{
6193XtMalloc (0)
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198rm -f conftest.$ac_objext conftest$ac_exeext
6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200  (eval $ac_link) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } &&
6207         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209  (eval $ac_try) 2>&5
6210  ac_status=$?
6211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212  (exit $ac_status); }; } &&
6213         { ac_try='test -s conftest$ac_exeext'
6214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215  (eval $ac_try) 2>&5
6216  ac_status=$?
6217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218  (exit $ac_status); }; }; then
6219  LIBS=$ac_save_LIBS
6220# We can link X programs with no special library path.
6221ac_x_libraries=
6222else
6223  echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226LIBS=$ac_save_LIBS
6227for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6228do
6229  # Don't even attempt the hair of trying to link an X program!
6230  for ac_extension in a so sl; do
6231    if test -r $ac_dir/libXt.$ac_extension; then
6232      ac_x_libraries=$ac_dir
6233      break 2
6234    fi
6235  done
6236done
6237fi
6238rm -f conftest.err conftest.$ac_objext \
6239      conftest$ac_exeext conftest.$ac_ext
6240fi # $ac_x_libraries = no
6241
6242if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6243  # Didn't find X anywhere.  Cache the known absence of X.
6244  ac_cv_have_x="have_x=no"
6245else
6246  # Record where we found X for the cache.
6247  ac_cv_have_x="have_x=yes \
6248                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6249fi
6250fi
6251
6252  fi
6253  eval "$ac_cv_have_x"
6254fi # $with_x != no
6255
6256if test "$have_x" != yes; then
6257  echo "$as_me:$LINENO: result: $have_x" >&5
6258echo "${ECHO_T}$have_x" >&6
6259  no_x=yes
6260else
6261  # If each of the values was on the command line, it overrides each guess.
6262  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6263  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6264  # Update the cache value to reflect the command line values.
6265  ac_cv_have_x="have_x=yes \
6266                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6267  # It might be that x_includes is empty (headers are found in the
6268  # standard search path. Then output the corresponding message
6269  ac_out_x_includes=$x_includes
6270  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6271  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6272echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6273fi
6274
6275fi
6276if test "$no_x" = yes; then
6277  # Not all programs may use this symbol, but it does not hurt to define it.
6278
6279cat >>confdefs.h <<\_ACEOF
6280#define X_DISPLAY_MISSING 1
6281_ACEOF
6282
6283  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6284else
6285  if test -n "$x_includes"; then
6286    X_CFLAGS="$X_CFLAGS -I$x_includes"
6287  fi
6288
6289  # It would also be nice to do this for all -L options, not just this one.
6290  if test -n "$x_libraries"; then
6291    X_LIBS="$X_LIBS -L$x_libraries"
6292    # For Solaris; some versions of Sun CC require a space after -R and
6293    # others require no space.  Words are not sufficient . . . .
6294    case `(uname -sr) 2>/dev/null` in
6295    "SunOS 5"*)
6296      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6297echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6298      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6299      cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h.  */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h.  */
6305
6306int
6307main ()
6308{
6309
6310  ;
6311  return 0;
6312}
6313_ACEOF
6314rm -f conftest.$ac_objext conftest$ac_exeext
6315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316  (eval $ac_link) 2>conftest.er1
6317  ac_status=$?
6318  grep -v '^ *+' conftest.er1 >conftest.err
6319  rm -f conftest.er1
6320  cat conftest.err >&5
6321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322  (exit $ac_status); } &&
6323         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325  (eval $ac_try) 2>&5
6326  ac_status=$?
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); }; } &&
6329         { ac_try='test -s conftest$ac_exeext'
6330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331  (eval $ac_try) 2>&5
6332  ac_status=$?
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); }; }; then
6335  ac_R_nospace=yes
6336else
6337  echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340ac_R_nospace=no
6341fi
6342rm -f conftest.err conftest.$ac_objext \
6343      conftest$ac_exeext conftest.$ac_ext
6344      if test $ac_R_nospace = yes; then
6345        echo "$as_me:$LINENO: result: no" >&5
6346echo "${ECHO_T}no" >&6
6347        X_LIBS="$X_LIBS -R$x_libraries"
6348      else
6349        LIBS="$ac_xsave_LIBS -R $x_libraries"
6350        cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h.  */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h.  */
6356
6357int
6358main ()
6359{
6360
6361  ;
6362  return 0;
6363}
6364_ACEOF
6365rm -f conftest.$ac_objext conftest$ac_exeext
6366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367  (eval $ac_link) 2>conftest.er1
6368  ac_status=$?
6369  grep -v '^ *+' conftest.er1 >conftest.err
6370  rm -f conftest.er1
6371  cat conftest.err >&5
6372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373  (exit $ac_status); } &&
6374         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376  (eval $ac_try) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); }; } &&
6380         { ac_try='test -s conftest$ac_exeext'
6381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382  (eval $ac_try) 2>&5
6383  ac_status=$?
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); }; }; then
6386  ac_R_space=yes
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391ac_R_space=no
6392fi
6393rm -f conftest.err conftest.$ac_objext \
6394      conftest$ac_exeext conftest.$ac_ext
6395        if test $ac_R_space = yes; then
6396          echo "$as_me:$LINENO: result: yes" >&5
6397echo "${ECHO_T}yes" >&6
6398          X_LIBS="$X_LIBS -R $x_libraries"
6399        else
6400          echo "$as_me:$LINENO: result: neither works" >&5
6401echo "${ECHO_T}neither works" >&6
6402        fi
6403      fi
6404      LIBS=$ac_xsave_LIBS
6405    esac
6406  fi
6407
6408  # Check for system-dependent libraries X programs must link with.
6409  # Do this before checking for the system-independent R6 libraries
6410  # (-lICE), since we may need -lsocket or whatever for X linking.
6411
6412  if test "$ISC" = yes; then
6413    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6414  else
6415    # Martyn Johnson says this is needed for Ultrix, if the X
6416    # libraries were built with DECnet support.  And Karl Berry says
6417    # the Alpha needs dnet_stub (dnet does not exist).
6418    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6419    cat >conftest.$ac_ext <<_ACEOF
6420/* confdefs.h.  */
6421_ACEOF
6422cat confdefs.h >>conftest.$ac_ext
6423cat >>conftest.$ac_ext <<_ACEOF
6424/* end confdefs.h.  */
6425
6426/* Override any gcc2 internal prototype to avoid an error.  */
6427#ifdef __cplusplus
6428extern "C"
6429#endif
6430/* We use char because int might match the return type of a gcc2
6431   builtin and then its argument prototype would still apply.  */
6432char XOpenDisplay ();
6433int
6434main ()
6435{
6436XOpenDisplay ();
6437  ;
6438  return 0;
6439}
6440_ACEOF
6441rm -f conftest.$ac_objext conftest$ac_exeext
6442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6443  (eval $ac_link) 2>conftest.er1
6444  ac_status=$?
6445  grep -v '^ *+' conftest.er1 >conftest.err
6446  rm -f conftest.er1
6447  cat conftest.err >&5
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); } &&
6450         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; } &&
6456         { ac_try='test -s conftest$ac_exeext'
6457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458  (eval $ac_try) 2>&5
6459  ac_status=$?
6460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461  (exit $ac_status); }; }; then
6462  :
6463else
6464  echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
6466
6467echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6468echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6469if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  ac_check_lib_save_LIBS=$LIBS
6473LIBS="-ldnet  $LIBS"
6474cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480
6481/* Override any gcc2 internal prototype to avoid an error.  */
6482#ifdef __cplusplus
6483extern "C"
6484#endif
6485/* We use char because int might match the return type of a gcc2
6486   builtin and then its argument prototype would still apply.  */
6487char dnet_ntoa ();
6488int
6489main ()
6490{
6491dnet_ntoa ();
6492  ;
6493  return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
6497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498  (eval $ac_link) 2>conftest.er1
6499  ac_status=$?
6500  grep -v '^ *+' conftest.er1 >conftest.err
6501  rm -f conftest.er1
6502  cat conftest.err >&5
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); } &&
6505         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507  (eval $ac_try) 2>&5
6508  ac_status=$?
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; } &&
6511         { ac_try='test -s conftest$ac_exeext'
6512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513  (eval $ac_try) 2>&5
6514  ac_status=$?
6515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516  (exit $ac_status); }; }; then
6517  ac_cv_lib_dnet_dnet_ntoa=yes
6518else
6519  echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522ac_cv_lib_dnet_dnet_ntoa=no
6523fi
6524rm -f conftest.err conftest.$ac_objext \
6525      conftest$ac_exeext conftest.$ac_ext
6526LIBS=$ac_check_lib_save_LIBS
6527fi
6528echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6529echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6530if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6531  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6532fi
6533
6534    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6535      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6536echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6537if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540  ac_check_lib_save_LIBS=$LIBS
6541LIBS="-ldnet_stub  $LIBS"
6542cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h.  */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h.  */
6548
6549/* Override any gcc2 internal prototype to avoid an error.  */
6550#ifdef __cplusplus
6551extern "C"
6552#endif
6553/* We use char because int might match the return type of a gcc2
6554   builtin and then its argument prototype would still apply.  */
6555char dnet_ntoa ();
6556int
6557main ()
6558{
6559dnet_ntoa ();
6560  ;
6561  return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext conftest$ac_exeext
6565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566  (eval $ac_link) 2>conftest.er1
6567  ac_status=$?
6568  grep -v '^ *+' conftest.er1 >conftest.err
6569  rm -f conftest.er1
6570  cat conftest.err >&5
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); } &&
6573         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575  (eval $ac_try) 2>&5
6576  ac_status=$?
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); }; } &&
6579         { ac_try='test -s conftest$ac_exeext'
6580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581  (eval $ac_try) 2>&5
6582  ac_status=$?
6583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584  (exit $ac_status); }; }; then
6585  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6586else
6587  echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590ac_cv_lib_dnet_stub_dnet_ntoa=no
6591fi
6592rm -f conftest.err conftest.$ac_objext \
6593      conftest$ac_exeext conftest.$ac_ext
6594LIBS=$ac_check_lib_save_LIBS
6595fi
6596echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6597echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6598if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6599  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6600fi
6601
6602    fi
6603fi
6604rm -f conftest.err conftest.$ac_objext \
6605      conftest$ac_exeext conftest.$ac_ext
6606    LIBS="$ac_xsave_LIBS"
6607
6608    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6609    # to get the SysV transport functions.
6610    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6611    # needs -lnsl.
6612    # The nsl library prevents programs from opening the X display
6613    # on Irix 5.2, according to T.E. Dickey.
6614    # The functions gethostbyname, getservbyname, and inet_addr are
6615    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6616    echo "$as_me:$LINENO: checking for gethostbyname" >&5
6617echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6618if test "${ac_cv_func_gethostbyname+set}" = set; then
6619  echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621  cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h.  */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h.  */
6627/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6628   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6629#define gethostbyname innocuous_gethostbyname
6630
6631/* System header to define __stub macros and hopefully few prototypes,
6632    which can conflict with char gethostbyname (); below.
6633    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634    <limits.h> exists even on freestanding compilers.  */
6635
6636#ifdef __STDC__
6637# include <limits.h>
6638#else
6639# include <assert.h>
6640#endif
6641
6642#undef gethostbyname
6643
6644/* Override any gcc2 internal prototype to avoid an error.  */
6645#ifdef __cplusplus
6646extern "C"
6647{
6648#endif
6649/* We use char because int might match the return type of a gcc2
6650   builtin and then its argument prototype would still apply.  */
6651char gethostbyname ();
6652/* The GNU C library defines this for functions which it implements
6653    to always fail with ENOSYS.  Some functions are actually named
6654    something starting with __ and the normal name is an alias.  */
6655#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6656choke me
6657#else
6658char (*f) () = gethostbyname;
6659#endif
6660#ifdef __cplusplus
6661}
6662#endif
6663
6664int
6665main ()
6666{
6667return f != gethostbyname;
6668  ;
6669  return 0;
6670}
6671_ACEOF
6672rm -f conftest.$ac_objext conftest$ac_exeext
6673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674  (eval $ac_link) 2>conftest.er1
6675  ac_status=$?
6676  grep -v '^ *+' conftest.er1 >conftest.err
6677  rm -f conftest.er1
6678  cat conftest.err >&5
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; } &&
6687         { ac_try='test -s conftest$ac_exeext'
6688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689  (eval $ac_try) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; }; then
6693  ac_cv_func_gethostbyname=yes
6694else
6695  echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698ac_cv_func_gethostbyname=no
6699fi
6700rm -f conftest.err conftest.$ac_objext \
6701      conftest$ac_exeext conftest.$ac_ext
6702fi
6703echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6704echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6705
6706    if test $ac_cv_func_gethostbyname = no; then
6707      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6708echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6709if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6710  echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712  ac_check_lib_save_LIBS=$LIBS
6713LIBS="-lnsl  $LIBS"
6714cat >conftest.$ac_ext <<_ACEOF
6715/* confdefs.h.  */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h.  */
6720
6721/* Override any gcc2 internal prototype to avoid an error.  */
6722#ifdef __cplusplus
6723extern "C"
6724#endif
6725/* We use char because int might match the return type of a gcc2
6726   builtin and then its argument prototype would still apply.  */
6727char gethostbyname ();
6728int
6729main ()
6730{
6731gethostbyname ();
6732  ;
6733  return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext conftest$ac_exeext
6737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738  (eval $ac_link) 2>conftest.er1
6739  ac_status=$?
6740  grep -v '^ *+' conftest.er1 >conftest.err
6741  rm -f conftest.er1
6742  cat conftest.err >&5
6743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744  (exit $ac_status); } &&
6745         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747  (eval $ac_try) 2>&5
6748  ac_status=$?
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); }; } &&
6751         { ac_try='test -s conftest$ac_exeext'
6752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753  (eval $ac_try) 2>&5
6754  ac_status=$?
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); }; }; then
6757  ac_cv_lib_nsl_gethostbyname=yes
6758else
6759  echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762ac_cv_lib_nsl_gethostbyname=no
6763fi
6764rm -f conftest.err conftest.$ac_objext \
6765      conftest$ac_exeext conftest.$ac_ext
6766LIBS=$ac_check_lib_save_LIBS
6767fi
6768echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6769echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6770if test $ac_cv_lib_nsl_gethostbyname = yes; then
6771  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6772fi
6773
6774      if test $ac_cv_lib_nsl_gethostbyname = no; then
6775        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6776echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6777if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  ac_check_lib_save_LIBS=$LIBS
6781LIBS="-lbsd  $LIBS"
6782cat >conftest.$ac_ext <<_ACEOF
6783/* confdefs.h.  */
6784_ACEOF
6785cat confdefs.h >>conftest.$ac_ext
6786cat >>conftest.$ac_ext <<_ACEOF
6787/* end confdefs.h.  */
6788
6789/* Override any gcc2 internal prototype to avoid an error.  */
6790#ifdef __cplusplus
6791extern "C"
6792#endif
6793/* We use char because int might match the return type of a gcc2
6794   builtin and then its argument prototype would still apply.  */
6795char gethostbyname ();
6796int
6797main ()
6798{
6799gethostbyname ();
6800  ;
6801  return 0;
6802}
6803_ACEOF
6804rm -f conftest.$ac_objext conftest$ac_exeext
6805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806  (eval $ac_link) 2>conftest.er1
6807  ac_status=$?
6808  grep -v '^ *+' conftest.er1 >conftest.err
6809  rm -f conftest.er1
6810  cat conftest.err >&5
6811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812  (exit $ac_status); } &&
6813         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815  (eval $ac_try) 2>&5
6816  ac_status=$?
6817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818  (exit $ac_status); }; } &&
6819         { ac_try='test -s conftest$ac_exeext'
6820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821  (eval $ac_try) 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; }; then
6825  ac_cv_lib_bsd_gethostbyname=yes
6826else
6827  echo "$as_me: failed program was:" >&5
6828sed 's/^/| /' conftest.$ac_ext >&5
6829
6830ac_cv_lib_bsd_gethostbyname=no
6831fi
6832rm -f conftest.err conftest.$ac_objext \
6833      conftest$ac_exeext conftest.$ac_ext
6834LIBS=$ac_check_lib_save_LIBS
6835fi
6836echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6837echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6838if test $ac_cv_lib_bsd_gethostbyname = yes; then
6839  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6840fi
6841
6842      fi
6843    fi
6844
6845    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6846    # socket/setsockopt and other routines are undefined under SCO ODT
6847    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6848    # on later versions), says Simon Leinen: it contains gethostby*
6849    # variants that don't use the name server (or something).  -lsocket
6850    # must be given before -lnsl if both are needed.  We assume that
6851    # if connect needs -lnsl, so does gethostbyname.
6852    echo "$as_me:$LINENO: checking for connect" >&5
6853echo $ECHO_N "checking for connect... $ECHO_C" >&6
6854if test "${ac_cv_func_connect+set}" = set; then
6855  echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857  cat >conftest.$ac_ext <<_ACEOF
6858/* confdefs.h.  */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h.  */
6863/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6865#define connect innocuous_connect
6866
6867/* System header to define __stub macros and hopefully few prototypes,
6868    which can conflict with char connect (); below.
6869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6870    <limits.h> exists even on freestanding compilers.  */
6871
6872#ifdef __STDC__
6873# include <limits.h>
6874#else
6875# include <assert.h>
6876#endif
6877
6878#undef connect
6879
6880/* Override any gcc2 internal prototype to avoid an error.  */
6881#ifdef __cplusplus
6882extern "C"
6883{
6884#endif
6885/* We use char because int might match the return type of a gcc2
6886   builtin and then its argument prototype would still apply.  */
6887char connect ();
6888/* The GNU C library defines this for functions which it implements
6889    to always fail with ENOSYS.  Some functions are actually named
6890    something starting with __ and the normal name is an alias.  */
6891#if defined (__stub_connect) || defined (__stub___connect)
6892choke me
6893#else
6894char (*f) () = connect;
6895#endif
6896#ifdef __cplusplus
6897}
6898#endif
6899
6900int
6901main ()
6902{
6903return f != connect;
6904  ;
6905  return 0;
6906}
6907_ACEOF
6908rm -f conftest.$ac_objext conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910  (eval $ac_link) 2>conftest.er1
6911  ac_status=$?
6912  grep -v '^ *+' conftest.er1 >conftest.err
6913  rm -f conftest.er1
6914  cat conftest.err >&5
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); } &&
6917         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919  (eval $ac_try) 2>&5
6920  ac_status=$?
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); }; } &&
6923         { ac_try='test -s conftest$ac_exeext'
6924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925  (eval $ac_try) 2>&5
6926  ac_status=$?
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); }; }; then
6929  ac_cv_func_connect=yes
6930else
6931  echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934ac_cv_func_connect=no
6935fi
6936rm -f conftest.err conftest.$ac_objext \
6937      conftest$ac_exeext conftest.$ac_ext
6938fi
6939echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6940echo "${ECHO_T}$ac_cv_func_connect" >&6
6941
6942    if test $ac_cv_func_connect = no; then
6943      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6944echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6945if test "${ac_cv_lib_socket_connect+set}" = set; then
6946  echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948  ac_check_lib_save_LIBS=$LIBS
6949LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6950cat >conftest.$ac_ext <<_ACEOF
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 connect ();
6964int
6965main ()
6966{
6967connect ();
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>conftest.er1
6975  ac_status=$?
6976  grep -v '^ *+' conftest.er1 >conftest.err
6977  rm -f conftest.er1
6978  cat conftest.err >&5
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); } &&
6981         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983  (eval $ac_try) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); }; } &&
6987         { ac_try='test -s conftest$ac_exeext'
6988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989  (eval $ac_try) 2>&5
6990  ac_status=$?
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); }; }; then
6993  ac_cv_lib_socket_connect=yes
6994else
6995  echo "$as_me: failed program was:" >&5
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998ac_cv_lib_socket_connect=no
6999fi
7000rm -f conftest.err conftest.$ac_objext \
7001      conftest$ac_exeext conftest.$ac_ext
7002LIBS=$ac_check_lib_save_LIBS
7003fi
7004echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7005echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7006if test $ac_cv_lib_socket_connect = yes; then
7007  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7008fi
7009
7010    fi
7011
7012    # Guillermo Gomez says -lposix is necessary on A/UX.
7013    echo "$as_me:$LINENO: checking for remove" >&5
7014echo $ECHO_N "checking for remove... $ECHO_C" >&6
7015if test "${ac_cv_func_remove+set}" = set; then
7016  echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018  cat >conftest.$ac_ext <<_ACEOF
7019/* confdefs.h.  */
7020_ACEOF
7021cat confdefs.h >>conftest.$ac_ext
7022cat >>conftest.$ac_ext <<_ACEOF
7023/* end confdefs.h.  */
7024/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7026#define remove innocuous_remove
7027
7028/* System header to define __stub macros and hopefully few prototypes,
7029    which can conflict with char remove (); below.
7030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031    <limits.h> exists even on freestanding compilers.  */
7032
7033#ifdef __STDC__
7034# include <limits.h>
7035#else
7036# include <assert.h>
7037#endif
7038
7039#undef remove
7040
7041/* Override any gcc2 internal prototype to avoid an error.  */
7042#ifdef __cplusplus
7043extern "C"
7044{
7045#endif
7046/* We use char because int might match the return type of a gcc2
7047   builtin and then its argument prototype would still apply.  */
7048char remove ();
7049/* The GNU C library defines this for functions which it implements
7050    to always fail with ENOSYS.  Some functions are actually named
7051    something starting with __ and the normal name is an alias.  */
7052#if defined (__stub_remove) || defined (__stub___remove)
7053choke me
7054#else
7055char (*f) () = remove;
7056#endif
7057#ifdef __cplusplus
7058}
7059#endif
7060
7061int
7062main ()
7063{
7064return f != remove;
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext conftest$ac_exeext
7070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071  (eval $ac_link) 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } &&
7078         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080  (eval $ac_try) 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_func_remove=yes
7091else
7092  echo "$as_me: failed program was:" >&5
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095ac_cv_func_remove=no
7096fi
7097rm -f conftest.err conftest.$ac_objext \
7098      conftest$ac_exeext conftest.$ac_ext
7099fi
7100echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7101echo "${ECHO_T}$ac_cv_func_remove" >&6
7102
7103    if test $ac_cv_func_remove = no; then
7104      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7105echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7106if test "${ac_cv_lib_posix_remove+set}" = set; then
7107  echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109  ac_check_lib_save_LIBS=$LIBS
7110LIBS="-lposix  $LIBS"
7111cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h.  */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h.  */
7117
7118/* Override any gcc2 internal prototype to avoid an error.  */
7119#ifdef __cplusplus
7120extern "C"
7121#endif
7122/* We use char because int might match the return type of a gcc2
7123   builtin and then its argument prototype would still apply.  */
7124char remove ();
7125int
7126main ()
7127{
7128remove ();
7129  ;
7130  return 0;
7131}
7132_ACEOF
7133rm -f conftest.$ac_objext conftest$ac_exeext
7134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135  (eval $ac_link) 2>conftest.er1
7136  ac_status=$?
7137  grep -v '^ *+' conftest.er1 >conftest.err
7138  rm -f conftest.er1
7139  cat conftest.err >&5
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } &&
7142         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144  (eval $ac_try) 2>&5
7145  ac_status=$?
7146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147  (exit $ac_status); }; } &&
7148         { ac_try='test -s conftest$ac_exeext'
7149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150  (eval $ac_try) 2>&5
7151  ac_status=$?
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); }; }; then
7154  ac_cv_lib_posix_remove=yes
7155else
7156  echo "$as_me: failed program was:" >&5
7157sed 's/^/| /' conftest.$ac_ext >&5
7158
7159ac_cv_lib_posix_remove=no
7160fi
7161rm -f conftest.err conftest.$ac_objext \
7162      conftest$ac_exeext conftest.$ac_ext
7163LIBS=$ac_check_lib_save_LIBS
7164fi
7165echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7166echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7167if test $ac_cv_lib_posix_remove = yes; then
7168  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7169fi
7170
7171    fi
7172
7173    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7174    echo "$as_me:$LINENO: checking for shmat" >&5
7175echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7176if test "${ac_cv_func_shmat+set}" = set; then
7177  echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179  cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h.  */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h.  */
7185/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7186   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7187#define shmat innocuous_shmat
7188
7189/* System header to define __stub macros and hopefully few prototypes,
7190    which can conflict with char shmat (); below.
7191    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192    <limits.h> exists even on freestanding compilers.  */
7193
7194#ifdef __STDC__
7195# include <limits.h>
7196#else
7197# include <assert.h>
7198#endif
7199
7200#undef shmat
7201
7202/* Override any gcc2 internal prototype to avoid an error.  */
7203#ifdef __cplusplus
7204extern "C"
7205{
7206#endif
7207/* We use char because int might match the return type of a gcc2
7208   builtin and then its argument prototype would still apply.  */
7209char shmat ();
7210/* The GNU C library defines this for functions which it implements
7211    to always fail with ENOSYS.  Some functions are actually named
7212    something starting with __ and the normal name is an alias.  */
7213#if defined (__stub_shmat) || defined (__stub___shmat)
7214choke me
7215#else
7216char (*f) () = shmat;
7217#endif
7218#ifdef __cplusplus
7219}
7220#endif
7221
7222int
7223main ()
7224{
7225return f != shmat;
7226  ;
7227  return 0;
7228}
7229_ACEOF
7230rm -f conftest.$ac_objext conftest$ac_exeext
7231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232  (eval $ac_link) 2>conftest.er1
7233  ac_status=$?
7234  grep -v '^ *+' conftest.er1 >conftest.err
7235  rm -f conftest.er1
7236  cat conftest.err >&5
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); } &&
7239         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241  (eval $ac_try) 2>&5
7242  ac_status=$?
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); }; } &&
7245         { ac_try='test -s conftest$ac_exeext'
7246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247  (eval $ac_try) 2>&5
7248  ac_status=$?
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); }; }; then
7251  ac_cv_func_shmat=yes
7252else
7253  echo "$as_me: failed program was:" >&5
7254sed 's/^/| /' conftest.$ac_ext >&5
7255
7256ac_cv_func_shmat=no
7257fi
7258rm -f conftest.err conftest.$ac_objext \
7259      conftest$ac_exeext conftest.$ac_ext
7260fi
7261echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7262echo "${ECHO_T}$ac_cv_func_shmat" >&6
7263
7264    if test $ac_cv_func_shmat = no; then
7265      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7266echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7267if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7268  echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270  ac_check_lib_save_LIBS=$LIBS
7271LIBS="-lipc  $LIBS"
7272cat >conftest.$ac_ext <<_ACEOF
7273/* confdefs.h.  */
7274_ACEOF
7275cat confdefs.h >>conftest.$ac_ext
7276cat >>conftest.$ac_ext <<_ACEOF
7277/* end confdefs.h.  */
7278
7279/* Override any gcc2 internal prototype to avoid an error.  */
7280#ifdef __cplusplus
7281extern "C"
7282#endif
7283/* We use char because int might match the return type of a gcc2
7284   builtin and then its argument prototype would still apply.  */
7285char shmat ();
7286int
7287main ()
7288{
7289shmat ();
7290  ;
7291  return 0;
7292}
7293_ACEOF
7294rm -f conftest.$ac_objext conftest$ac_exeext
7295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296  (eval $ac_link) 2>conftest.er1
7297  ac_status=$?
7298  grep -v '^ *+' conftest.er1 >conftest.err
7299  rm -f conftest.er1
7300  cat conftest.err >&5
7301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302  (exit $ac_status); } &&
7303         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305  (eval $ac_try) 2>&5
7306  ac_status=$?
7307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308  (exit $ac_status); }; } &&
7309         { ac_try='test -s conftest$ac_exeext'
7310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311  (eval $ac_try) 2>&5
7312  ac_status=$?
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); }; }; then
7315  ac_cv_lib_ipc_shmat=yes
7316else
7317  echo "$as_me: failed program was:" >&5
7318sed 's/^/| /' conftest.$ac_ext >&5
7319
7320ac_cv_lib_ipc_shmat=no
7321fi
7322rm -f conftest.err conftest.$ac_objext \
7323      conftest$ac_exeext conftest.$ac_ext
7324LIBS=$ac_check_lib_save_LIBS
7325fi
7326echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7327echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7328if test $ac_cv_lib_ipc_shmat = yes; then
7329  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7330fi
7331
7332    fi
7333  fi
7334
7335  # Check for libraries that X11R6 Xt/Xaw programs need.
7336  ac_save_LDFLAGS=$LDFLAGS
7337  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7338  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7339  # check for ICE first), but we must link in the order -lSM -lICE or
7340  # we get undefined symbols.  So assume we have SM if we have ICE.
7341  # These have to be linked with before -lX11, unlike the other
7342  # libraries we check for below, so use a different variable.
7343  # John Interrante, Karl Berry
7344  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7345echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7346if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  ac_check_lib_save_LIBS=$LIBS
7350LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7351cat >conftest.$ac_ext <<_ACEOF
7352/* confdefs.h.  */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h.  */
7357
7358/* Override any gcc2 internal prototype to avoid an error.  */
7359#ifdef __cplusplus
7360extern "C"
7361#endif
7362/* We use char because int might match the return type of a gcc2
7363   builtin and then its argument prototype would still apply.  */
7364char IceConnectionNumber ();
7365int
7366main ()
7367{
7368IceConnectionNumber ();
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373rm -f conftest.$ac_objext conftest$ac_exeext
7374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375  (eval $ac_link) 2>conftest.er1
7376  ac_status=$?
7377  grep -v '^ *+' conftest.er1 >conftest.err
7378  rm -f conftest.er1
7379  cat conftest.err >&5
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } &&
7382         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384  (eval $ac_try) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; } &&
7388         { ac_try='test -s conftest$ac_exeext'
7389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390  (eval $ac_try) 2>&5
7391  ac_status=$?
7392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); }; }; then
7394  ac_cv_lib_ICE_IceConnectionNumber=yes
7395else
7396  echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399ac_cv_lib_ICE_IceConnectionNumber=no
7400fi
7401rm -f conftest.err conftest.$ac_objext \
7402      conftest$ac_exeext conftest.$ac_ext
7403LIBS=$ac_check_lib_save_LIBS
7404fi
7405echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7406echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7407if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7408  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7409fi
7410
7411  LDFLAGS=$ac_save_LDFLAGS
7412
7413fi
7414
7415
7416        # Check for libX11
7417        echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
7418echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
7419if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  ac_check_lib_save_LIBS=$LIBS
7423LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"
7424cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430
7431/* Override any gcc2 internal prototype to avoid an error.  */
7432#ifdef __cplusplus
7433extern "C"
7434#endif
7435/* We use char because int might match the return type of a gcc2
7436   builtin and then its argument prototype would still apply.  */
7437char XOpenDisplay ();
7438int
7439main ()
7440{
7441XOpenDisplay ();
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446rm -f conftest.$ac_objext conftest$ac_exeext
7447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448  (eval $ac_link) 2>conftest.er1
7449  ac_status=$?
7450  grep -v '^ *+' conftest.er1 >conftest.err
7451  rm -f conftest.er1
7452  cat conftest.err >&5
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); } &&
7455         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457  (eval $ac_try) 2>&5
7458  ac_status=$?
7459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460  (exit $ac_status); }; } &&
7461         { ac_try='test -s conftest$ac_exeext'
7462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463  (eval $ac_try) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; }; then
7467  ac_cv_lib_X11_XOpenDisplay=yes
7468else
7469  echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472ac_cv_lib_X11_XOpenDisplay=no
7473fi
7474rm -f conftest.err conftest.$ac_objext \
7475      conftest$ac_exeext conftest.$ac_ext
7476LIBS=$ac_check_lib_save_LIBS
7477fi
7478echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
7479echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
7480if test $ac_cv_lib_X11_XOpenDisplay = yes; then
7481
7482                has_x_runtime=yes
7483
7484else
7485   has_x_runtime=no
7486fi
7487
7488
7489#       echo "------done---------"
7490#       echo "x_includes=${x_includes}"
7491#       echo "x_libraries=${x_libraries}"
7492#       echo "no_x=${no_x}"
7493#       echo "X_CFLAGS=${X_CFLAGS}"
7494#       echo "X_LIBS=${X_LIBS}"
7495#       echo "X_DISPLAY_MISSING=${X_DISPLAY_MISSING}"
7496#       echo "has_x_runtime=${has_x_runtime}"
7497#       echo "host_os=${host_os}"
7498#       echo "------done---------"
7499
7500        state=
7501
7502        case "__${has_x_runtime}__${no_x}__" in
7503                "__no__yes__")
7504                # either the user said --without-x, or it was not found
7505                # at all (runtime or headers)
7506                        { echo "$as_me:$LINENO: WARNING: X11 not available. You will not be able to use dports that use X11" >&5
7507echo "$as_me: WARNING: X11 not available. You will not be able to use dports that use X11" >&2;}
7508                        state=0
7509                        ;;
7510                "__yes__yes__")
7511                        state=1
7512                        ;;
7513                "__yes____")
7514                        state=2
7515                        ;;
7516                *)
7517                        state=3
7518                        ;;
7519        esac
7520
7521        case $host_os in
7522                darwin*)
7523                        case $state in
7524                                1)
7525                                        cat <<EOF;
7526Please install the X11 SDK packages from the
7527Xcode Developer Tools CD
7528EOF
7529                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7530echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7531   { (exit 1); exit 1; }; }
7532
7533                                        ;;
7534                                3)
7535                                        cat <<EOF;
7536Unknown configuration problem. Please install the X11 runtime
7537and/or X11 SDK  packages from the Xcode Developer Tools CD
7538EOF
7539                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7540echo "$as_me: error: Broken X11 install" >&2;}
7541   { (exit 1); exit 1; }; }
7542                                        ;;
7543                        esac
7544                        ;;
7545                *)
7546                        case $state in
7547                                1)
7548                                        cat <<EOF;
7549Please install the X11 developer headers for your platform
7550EOF
7551                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7552echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7553   { (exit 1); exit 1; }; }
7554
7555                                        ;;
7556                                3)
7557                                        cat <<EOF;
7558Unknown configuration problem. Please install the X11
7559implementation for your platform
7560EOF
7561                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7562echo "$as_me: error: Broken X11 install" >&2;}
7563   { (exit 1); exit 1; }; }
7564                                        ;;
7565                        esac
7566                        ;;
7567        esac
7568
7569
7570
7571# Check for readline
7572
7573echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7574echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7575if test "${ac_cv_lib_readline_readline+set}" = set; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578  ac_check_lib_save_LIBS=$LIBS
7579LIBS="-lreadline  $LIBS"
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h.  */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h.  */
7586
7587/* Override any gcc2 internal prototype to avoid an error.  */
7588#ifdef __cplusplus
7589extern "C"
7590#endif
7591/* We use char because int might match the return type of a gcc2
7592   builtin and then its argument prototype would still apply.  */
7593char readline ();
7594int
7595main ()
7596{
7597readline ();
7598  ;
7599  return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
7603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604  (eval $ac_link) 2>conftest.er1
7605  ac_status=$?
7606  grep -v '^ *+' conftest.er1 >conftest.err
7607  rm -f conftest.er1
7608  cat conftest.err >&5
7609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610  (exit $ac_status); } &&
7611         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613  (eval $ac_try) 2>&5
7614  ac_status=$?
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); }; } &&
7617         { ac_try='test -s conftest$ac_exeext'
7618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619  (eval $ac_try) 2>&5
7620  ac_status=$?
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); }; }; then
7623  ac_cv_lib_readline_readline=yes
7624else
7625  echo "$as_me: failed program was:" >&5
7626sed 's/^/| /' conftest.$ac_ext >&5
7627
7628ac_cv_lib_readline_readline=no
7629fi
7630rm -f conftest.err conftest.$ac_objext \
7631      conftest$ac_exeext conftest.$ac_ext
7632LIBS=$ac_check_lib_save_LIBS
7633fi
7634echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
7635echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
7636if test $ac_cv_lib_readline_readline = yes; then
7637  cat >>confdefs.h <<_ACEOF
7638#define HAVE_LIBREADLINE 1
7639_ACEOF
7640
7641  LIBS="-lreadline $LIBS"
7642
7643fi
7644
7645echo "$as_me:$LINENO: checking whether rl_username_completion_function is declared" >&5
7646echo $ECHO_N "checking whether rl_username_completion_function is declared... $ECHO_C" >&6
7647if test "${ac_cv_have_decl_rl_username_completion_function+set}" = set; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650  cat >conftest.$ac_ext <<_ACEOF
7651/* confdefs.h.  */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h.  */
7656
7657#include <stdio.h>
7658#if HAVE_READLINE_READLINE_H
7659# include <readline/readline.h>
7660#endif
7661
7662
7663int
7664main ()
7665{
7666#ifndef rl_username_completion_function
7667  char *p = (char *) rl_username_completion_function;
7668#endif
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676  (eval $ac_compile) 2>conftest.er1
7677  ac_status=$?
7678  grep -v '^ *+' conftest.er1 >conftest.err
7679  rm -f conftest.er1
7680  cat conftest.err >&5
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); } &&
7683         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685  (eval $ac_try) 2>&5
7686  ac_status=$?
7687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688  (exit $ac_status); }; } &&
7689         { ac_try='test -s conftest.$ac_objext'
7690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691  (eval $ac_try) 2>&5
7692  ac_status=$?
7693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694  (exit $ac_status); }; }; then
7695  ac_cv_have_decl_rl_username_completion_function=yes
7696else
7697  echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700ac_cv_have_decl_rl_username_completion_function=no
7701fi
7702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703fi
7704echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_username_completion_function" >&5
7705echo "${ECHO_T}$ac_cv_have_decl_rl_username_completion_function" >&6
7706if test $ac_cv_have_decl_rl_username_completion_function = yes; then
7707
7708cat >>confdefs.h <<_ACEOF
7709#define HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION 1
7710_ACEOF
7711
7712
7713else
7714  cat >>confdefs.h <<_ACEOF
7715#define HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION 0
7716_ACEOF
7717
7718
7719fi
7720echo "$as_me:$LINENO: checking whether rl_filename_completion_function is declared" >&5
7721echo $ECHO_N "checking whether rl_filename_completion_function is declared... $ECHO_C" >&6
7722if test "${ac_cv_have_decl_rl_filename_completion_function+set}" = set; then
7723  echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725  cat >conftest.$ac_ext <<_ACEOF
7726/* confdefs.h.  */
7727_ACEOF
7728cat confdefs.h >>conftest.$ac_ext
7729cat >>conftest.$ac_ext <<_ACEOF
7730/* end confdefs.h.  */
7731
7732#include <stdio.h>
7733#if HAVE_READLINE_READLINE_H
7734# include <readline/readline.h>
7735#endif
7736
7737
7738int
7739main ()
7740{
7741#ifndef rl_filename_completion_function
7742  char *p = (char *) rl_filename_completion_function;
7743#endif
7744
7745  ;
7746  return 0;
7747}
7748_ACEOF
7749rm -f conftest.$ac_objext
7750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7751  (eval $ac_compile) 2>conftest.er1
7752  ac_status=$?
7753  grep -v '^ *+' conftest.er1 >conftest.err
7754  rm -f conftest.er1
7755  cat conftest.err >&5
7756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757  (exit $ac_status); } &&
7758         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760  (eval $ac_try) 2>&5
7761  ac_status=$?
7762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763  (exit $ac_status); }; } &&
7764         { ac_try='test -s conftest.$ac_objext'
7765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766  (eval $ac_try) 2>&5
7767  ac_status=$?
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); }; }; then
7770  ac_cv_have_decl_rl_filename_completion_function=yes
7771else
7772  echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775ac_cv_have_decl_rl_filename_completion_function=no
7776fi
7777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778fi
7779echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_filename_completion_function" >&5
7780echo "${ECHO_T}$ac_cv_have_decl_rl_filename_completion_function" >&6
7781if test $ac_cv_have_decl_rl_filename_completion_function = yes; then
7782
7783cat >>confdefs.h <<_ACEOF
7784#define HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION 1
7785_ACEOF
7786
7787
7788else
7789  cat >>confdefs.h <<_ACEOF
7790#define HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION 0
7791_ACEOF
7792
7793
7794fi
7795echo "$as_me:$LINENO: checking whether rl_completion_matches is declared" >&5
7796echo $ECHO_N "checking whether rl_completion_matches is declared... $ECHO_C" >&6
7797if test "${ac_cv_have_decl_rl_completion_matches+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  cat >conftest.$ac_ext <<_ACEOF
7801/* confdefs.h.  */
7802_ACEOF
7803cat confdefs.h >>conftest.$ac_ext
7804cat >>conftest.$ac_ext <<_ACEOF
7805/* end confdefs.h.  */
7806
7807#include <stdio.h>
7808#if HAVE_READLINE_READLINE_H
7809# include <readline/readline.h>
7810#endif
7811
7812
7813int
7814main ()
7815{
7816#ifndef rl_completion_matches
7817  char *p = (char *) rl_completion_matches;
7818#endif
7819
7820  ;
7821  return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext
7825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826  (eval $ac_compile) 2>conftest.er1
7827  ac_status=$?
7828  grep -v '^ *+' conftest.er1 >conftest.err
7829  rm -f conftest.er1
7830  cat conftest.err >&5
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); } &&
7833         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835  (eval $ac_try) 2>&5
7836  ac_status=$?
7837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838  (exit $ac_status); }; } &&
7839         { ac_try='test -s conftest.$ac_objext'
7840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841  (eval $ac_try) 2>&5
7842  ac_status=$?
7843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844  (exit $ac_status); }; }; then
7845  ac_cv_have_decl_rl_completion_matches=yes
7846else
7847  echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850ac_cv_have_decl_rl_completion_matches=no
7851fi
7852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7853fi
7854echo "$as_me:$LINENO: result: $ac_cv_have_decl_rl_completion_matches" >&5
7855echo "${ECHO_T}$ac_cv_have_decl_rl_completion_matches" >&6
7856if test $ac_cv_have_decl_rl_completion_matches = yes; then
7857
7858cat >>confdefs.h <<_ACEOF
7859#define HAVE_DECL_RL_COMPLETION_MATCHES 1
7860_ACEOF
7861
7862
7863else
7864  cat >>confdefs.h <<_ACEOF
7865#define HAVE_DECL_RL_COMPLETION_MATCHES 0
7866_ACEOF
7867
7868
7869fi
7870echo "$as_me:$LINENO: checking whether username_completion_function is declared" >&5
7871echo $ECHO_N "checking whether username_completion_function is declared... $ECHO_C" >&6
7872if test "${ac_cv_have_decl_username_completion_function+set}" = set; then
7873  echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875  cat >conftest.$ac_ext <<_ACEOF
7876/* confdefs.h.  */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
7880/* end confdefs.h.  */
7881
7882#include <stdio.h>
7883#if HAVE_READLINE_READLINE_H
7884# include <readline/readline.h>
7885#endif
7886
7887
7888int
7889main ()
7890{
7891#ifndef username_completion_function
7892  char *p = (char *) username_completion_function;
7893#endif
7894
7895  ;
7896  return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext
7900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901  (eval $ac_compile) 2>conftest.er1
7902  ac_status=$?
7903  grep -v '^ *+' conftest.er1 >conftest.err
7904  rm -f conftest.er1
7905  cat conftest.err >&5
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); } &&
7908         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910  (eval $ac_try) 2>&5
7911  ac_status=$?
7912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913  (exit $ac_status); }; } &&
7914         { ac_try='test -s conftest.$ac_objext'
7915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916  (eval $ac_try) 2>&5
7917  ac_status=$?
7918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919  (exit $ac_status); }; }; then
7920  ac_cv_have_decl_username_completion_function=yes
7921else
7922  echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925ac_cv_have_decl_username_completion_function=no
7926fi
7927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929echo "$as_me:$LINENO: result: $ac_cv_have_decl_username_completion_function" >&5
7930echo "${ECHO_T}$ac_cv_have_decl_username_completion_function" >&6
7931if test $ac_cv_have_decl_username_completion_function = yes; then
7932
7933cat >>confdefs.h <<_ACEOF
7934#define HAVE_DECL_USERNAME_COMPLETION_FUNCTION 1
7935_ACEOF
7936
7937
7938else
7939  cat >>confdefs.h <<_ACEOF
7940#define HAVE_DECL_USERNAME_COMPLETION_FUNCTION 0
7941_ACEOF
7942
7943
7944fi
7945echo "$as_me:$LINENO: checking whether filename_completion_function is declared" >&5
7946echo $ECHO_N "checking whether filename_completion_function is declared... $ECHO_C" >&6
7947if test "${ac_cv_have_decl_filename_completion_function+set}" = set; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950  cat >conftest.$ac_ext <<_ACEOF
7951/* confdefs.h.  */
7952_ACEOF
7953cat confdefs.h >>conftest.$ac_ext
7954cat >>conftest.$ac_ext <<_ACEOF
7955/* end confdefs.h.  */
7956
7957#include <stdio.h>
7958#if HAVE_READLINE_READLINE_H
7959# include <readline/readline.h>
7960#endif
7961
7962
7963int
7964main ()
7965{
7966#ifndef filename_completion_function
7967  char *p = (char *) filename_completion_function;
7968#endif
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7976  (eval $ac_compile) 2>conftest.er1
7977  ac_status=$?
7978  grep -v '^ *+' conftest.er1 >conftest.err
7979  rm -f conftest.er1
7980  cat conftest.err >&5
7981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982  (exit $ac_status); } &&
7983         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985  (eval $ac_try) 2>&5
7986  ac_status=$?
7987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988  (exit $ac_status); }; } &&
7989         { ac_try='test -s conftest.$ac_objext'
7990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991  (eval $ac_try) 2>&5
7992  ac_status=$?
7993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); }; }; then
7995  ac_cv_have_decl_filename_completion_function=yes
7996else
7997  echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000ac_cv_have_decl_filename_completion_function=no
8001fi
8002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8003fi
8004echo "$as_me:$LINENO: result: $ac_cv_have_decl_filename_completion_function" >&5
8005echo "${ECHO_T}$ac_cv_have_decl_filename_completion_function" >&6
8006if test $ac_cv_have_decl_filename_completion_function = yes; then
8007
8008cat >>confdefs.h <<_ACEOF
8009#define HAVE_DECL_FILENAME_COMPLETION_FUNCTION 1
8010_ACEOF
8011
8012
8013else
8014  cat >>confdefs.h <<_ACEOF
8015#define HAVE_DECL_FILENAME_COMPLETION_FUNCTION 0
8016_ACEOF
8017
8018
8019fi
8020echo "$as_me:$LINENO: checking whether completion_matches is declared" >&5
8021echo $ECHO_N "checking whether completion_matches is declared... $ECHO_C" >&6
8022if test "${ac_cv_have_decl_completion_matches+set}" = set; then
8023  echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025  cat >conftest.$ac_ext <<_ACEOF
8026/* confdefs.h.  */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h.  */
8031
8032#include <stdio.h>
8033#if HAVE_READLINE_READLINE_H
8034# include <readline/readline.h>
8035#endif
8036
8037
8038int
8039main ()
8040{
8041#ifndef completion_matches
8042  char *p = (char *) completion_matches;
8043#endif
8044
8045  ;
8046  return 0;
8047}
8048_ACEOF
8049rm -f conftest.$ac_objext
8050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051  (eval $ac_compile) 2>conftest.er1
8052  ac_status=$?
8053  grep -v '^ *+' conftest.er1 >conftest.err
8054  rm -f conftest.er1
8055  cat conftest.err >&5
8056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057  (exit $ac_status); } &&
8058         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060  (eval $ac_try) 2>&5
8061  ac_status=$?
8062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063  (exit $ac_status); }; } &&
8064         { ac_try='test -s conftest.$ac_objext'
8065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066  (eval $ac_try) 2>&5
8067  ac_status=$?
8068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069  (exit $ac_status); }; }; then
8070  ac_cv_have_decl_completion_matches=yes
8071else
8072  echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075ac_cv_have_decl_completion_matches=no
8076fi
8077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078fi
8079echo "$as_me:$LINENO: result: $ac_cv_have_decl_completion_matches" >&5
8080echo "${ECHO_T}$ac_cv_have_decl_completion_matches" >&6
8081if test $ac_cv_have_decl_completion_matches = yes; then
8082
8083cat >>confdefs.h <<_ACEOF
8084#define HAVE_DECL_COMPLETION_MATCHES 1
8085_ACEOF
8086
8087
8088else
8089  cat >>confdefs.h <<_ACEOF
8090#define HAVE_DECL_COMPLETION_MATCHES 0
8091_ACEOF
8092
8093
8094fi
8095
8096
8097
8098# Load tclConfig.sh
8099
8100    #
8101    # Ok, lets find the tcl configuration
8102    # First, look for one uninstalled.
8103    # the alternative search directory is invoked by --with-tcl
8104    #
8105
8106    if test x"${no_tcl}" = x ; then
8107        # we reset no_tcl in case something fails here
8108        no_tcl=true
8109
8110# Check whether --with-tcl or --without-tcl was given.
8111if test "${with_tcl+set}" = set; then
8112  withval="$with_tcl"
8113  with_tclconfig=${withval}
8114fi;
8115        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
8116echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
8117        if test "${ac_cv_c_tclconfig+set}" = set; then
8118  echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120
8121
8122            # First check to see if --with-tcl was specified.
8123            if test x"${with_tclconfig}" != x ; then
8124                if test -f "${with_tclconfig}/tclConfig.sh" ; then
8125                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
8126                else
8127                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
8128echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
8129   { (exit 1); exit 1; }; }
8130                fi
8131            fi
8132
8133            # then check for a private Tcl installation
8134            if test x"${ac_cv_c_tclconfig}" = x ; then
8135                for i in \
8136                        ../tcl \
8137                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
8138                        ../../tcl \
8139                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
8140                        ../../../tcl \
8141                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
8142                    if test -f "$i/unix/tclConfig.sh" ; then
8143                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8144                        break
8145                    fi
8146                done
8147            fi
8148
8149            # check in a few common install locations
8150            if test x"${ac_cv_c_tclconfig}" = x ; then
8151                for i in `ls -d ${libdir} 2>/dev/null` \
8152                        `ls -d /usr/local/lib 2>/dev/null` \
8153                        `ls -d /usr/contrib/lib 2>/dev/null` \
8154                        `ls -d /usr/lib 2>/dev/null` \
8155                        `ls -d /usr/pkg/lib 2>/dev/null` \
8156                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
8157                        `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \
8158                        `ls -d /usr/local/lib/tcl8.3 2>/dev/null` \
8159                        `ls -d /usr/lib/tcl8.4 2>/dev/null` \
8160                        `ls -d /usr/lib/tcl8.3 2>/dev/null` \
8161                        ; do
8162                    if test -f "$i/tclConfig.sh" ; then
8163                        ac_cv_c_tclconfig=`(cd $i; pwd)`
8164                        break
8165                    fi
8166                done
8167            fi
8168
8169            # check in a few other private locations
8170            if test x"${ac_cv_c_tclconfig}" = x ; then
8171                for i in \
8172                        ${srcdir}/../tcl \
8173                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
8174                    if test -f "$i/unix/tclConfig.sh" ; then
8175                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8176                    break
8177                fi
8178                done
8179            fi
8180
8181fi
8182
8183
8184        if test x"${ac_cv_c_tclconfig}" = x ; then
8185            TCL_BIN_DIR="# no Tcl configs found"
8186            { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
8187echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
8188   { (exit 1); exit 1; }; }
8189        else
8190            no_tcl=
8191            TCL_BIN_DIR=${ac_cv_c_tclconfig}
8192            echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
8193echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
8194        fi
8195    fi
8196
8197
8198    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
8199echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
8200
8201    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
8202        echo "$as_me:$LINENO: result: loading" >&5
8203echo "${ECHO_T}loading" >&6
8204        . $TCL_BIN_DIR/tclConfig.sh
8205    else
8206        echo "$as_me:$LINENO: result: file not found" >&5
8207echo "${ECHO_T}file not found" >&6
8208    fi
8209
8210    #
8211    # If the TCL_BIN_DIR is the build directory (not the install directory),
8212    # then set the common variable name to the value of the build variables.
8213    # For example, the variable TCL_LIB_SPEC will be set to the value
8214    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
8215    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
8216    # installed and uninstalled version of Tcl.
8217    #
8218
8219    if test -f $TCL_BIN_DIR/Makefile ; then
8220        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
8221        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
8222        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
8223    fi
8224
8225    #
8226    # eval is required to do the TCL_DBGX substitution
8227    #
8228
8229    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
8230    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
8231    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
8232
8233    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
8234    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
8235    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250# Check for Tcl public headers
8251CYGPATH=echo
8252
8253    echo "$as_me:$LINENO: checking for Tcl public headers" >&5
8254echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
8255
8256
8257# Check whether --with-tclinclude or --without-tclinclude was given.
8258if test "${with_tclinclude+set}" = set; then
8259  withval="$with_tclinclude"
8260  with_tclinclude=${withval}
8261fi;
8262
8263    if test x"${with_tclinclude}" != x ; then
8264        if test -f "${with_tclinclude}/tcl.h" ; then
8265            ac_cv_c_tclh=${with_tclinclude}
8266        else
8267            { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
8268echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
8269   { (exit 1); exit 1; }; }
8270        fi
8271    else
8272        if test "${ac_cv_c_tclh+set}" = set; then
8273  echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275
8276            # Use the value from --with-tclinclude, if it was given
8277
8278            if test x"${with_tclinclude}" != x ; then
8279                ac_cv_c_tclh=${with_tclinclude}
8280            else
8281                # Do NOT check in $includedir, we need to prevent automatic
8282                # location of Tcl headers in $prefix/include unless explicitly
8283                # specified with the --with-tclinclude option. But go ahead and
8284                # check some other possible local system locations.
8285
8286                for i in \
8287                        /usr/local/include /usr/include /usr/local/include/tcl${TCL_VERSION} /usr/include/tcl${TCL_VERSION}; do
8288                    if test -f "$i/tcl.h" ; then
8289                        ac_cv_c_tclh=$i
8290                        break
8291                    fi
8292                done
8293            fi
8294
8295fi
8296
8297    fi
8298
8299    # Print a message based on how we determined the include path
8300
8301    if test x"${ac_cv_c_tclh}" = x ; then
8302        { { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
8303echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
8304   { (exit 1); exit 1; }; }
8305    else
8306        echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
8307echo "${ECHO_T}${ac_cv_c_tclh}" >&6
8308    fi
8309
8310    # Convert to a native path and substitute into the output files.
8311
8312    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
8313
8314    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
8315
8316
8317
8318
8319# Check for tclsh binary
8320
8321
8322
8323        case $host_os in
8324                freebsd*)
8325                        # FreeBSD installs a dummy tclsh (annoying)
8326                        # Look for a real versioned tclsh first
8327                        # Extract the first word of "tclsh${TCL_VERSION} tclsh", so it can be a program name with args.
8328set dummy tclsh${TCL_VERSION} tclsh; ac_word=$2
8329echo "$as_me:$LINENO: checking for $ac_word" >&5
8330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331if test "${ac_cv_path_TCLSH+set}" = set; then
8332  echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334  case $TCLSH in
8335  [\\/]* | ?:[\\/]*)
8336  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8337  ;;
8338  *)
8339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342  IFS=$as_save_IFS
8343  test -z "$as_dir" && as_dir=.
8344  for ac_exec_ext in '' $ac_executable_extensions; do
8345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348    break 2
8349  fi
8350done
8351done
8352
8353  ;;
8354esac
8355fi
8356TCLSH=$ac_cv_path_TCLSH
8357
8358if test -n "$TCLSH"; then
8359  echo "$as_me:$LINENO: result: $TCLSH" >&5
8360echo "${ECHO_T}$TCLSH" >&6
8361else
8362  echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364fi
8365
8366                        ;;
8367                *)
8368                        # Otherwise, look for a non-versioned tclsh
8369                        # Extract the first word of "tclsh tclsh${TCL_VERSION}", so it can be a program name with args.
8370set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
8371echo "$as_me:$LINENO: checking for $ac_word" >&5
8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8373if test "${ac_cv_path_TCLSH+set}" = set; then
8374  echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376  case $TCLSH in
8377  [\\/]* | ?:[\\/]*)
8378  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8379  ;;
8380  *)
8381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384  IFS=$as_save_IFS
8385  test -z "$as_dir" && as_dir=.
8386  for ac_exec_ext in '' $ac_executable_extensions; do
8387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393done
8394
8395  ;;
8396esac
8397fi
8398TCLSH=$ac_cv_path_TCLSH
8399
8400if test -n "$TCLSH"; then
8401  echo "$as_me:$LINENO: result: $TCLSH" >&5
8402echo "${ECHO_T}$TCLSH" >&6
8403else
8404  echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406fi
8407
8408                        ;;
8409        esac
8410        if test "x$TCLSH" = "x" ; then
8411                { { echo "$as_me:$LINENO: error: Could not find tclsh" >&5
8412echo "$as_me: error: Could not find tclsh" >&2;}
8413   { (exit 1); exit 1; }; }
8414        fi
8415
8416
8417
8418
8419# Check for Tcl package path
8420
8421    echo "$as_me:$LINENO: checking for Tcl package directory" >&5
8422echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
8423
8424
8425# Check whether --with-tclpackage or --without-tclpackage was given.
8426if test "${with_tclpackage+set}" = set; then
8427  withval="$with_tclpackage"
8428  with_tclpackagedir=${withval}
8429fi;
8430
8431    if test x"${with_tclpackagedir}" != x ; then
8432        ac_cv_c_tclpkgd=${with_tclpackagedir}
8433    else
8434        if test "${ac_cv_c_tclpkgd+set}" = set; then
8435  echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437
8438            # Use the value from --with-tclpackage, if it was given
8439
8440            if test x"${with_tclpackagedir}" != x ; then
8441                echo "tclpackagedir"
8442                ac_cv_c_tclpkgd=${with_tclpackagedir}
8443            else
8444                # On darwin we can do some intelligent guessing
8445                case $host_os in
8446                    darwin*)
8447                        tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
8448                        for path in $tcl_autopath; do
8449                            if test "$path" = "/Library/Tcl"; then
8450                                ac_cv_c_tclpkgd="$path"
8451                                break
8452                            fi
8453                            if test "$path" = "/System/Library/Tcl"; then
8454                                if test -d "$path"; then
8455                                    ac_cv_c_tclpkgd="$path"
8456                                    break
8457                                fi
8458                            fi
8459                        done
8460                    ;;
8461                esac
8462                if test x"${ac_cv_c_tclpkgd}" = x ; then
8463                    # Fudge a path from the first entry in the auto_path
8464                    tcl_pkgpath=`echo 'puts -nonewline [lindex \$auto_path 0]' | $TCLSH`
8465                    if test -d "$tcl_pkgpath"; then
8466                        ac_cv_c_tclpkgd="$tcl_pkgpath"
8467                    fi
8468                    # If the first entry does not exist, do nothing
8469                fi
8470            fi
8471
8472fi
8473
8474    fi
8475
8476    if test x"${ac_cv_c_tclpkgd}" = x ; then
8477        { { echo "$as_me:$LINENO: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&5
8478echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&2;}
8479   { (exit 1); exit 1; }; }
8480    else
8481        echo "$as_me:$LINENO: result: ${ac_cv_c_tclpkgd}" >&5
8482echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
8483    fi
8484
8485    # Convert to a native path and substitute into the output files.
8486
8487    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
8488
8489    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
8490
8491
8492
8493
8494# Check if thread is enabled.
8495
8496        echo "$as_me:$LINENO: checking whether tclsh was compiled with threads" >&5
8497echo $ECHO_N "checking whether tclsh was compiled with threads... $ECHO_C" >&6
8498        tcl_threadenabled=`echo 'puts -nonewline [info exists tcl_platform(threaded)]' | $TCLSH`
8499        if test "$tcl_threadenabled" = "1" ; then
8500                echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502        else
8503                echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505                { { echo "$as_me:$LINENO: error: tcl wasn't compiled with threads enabled" >&5
8506echo "$as_me: error: tcl wasn't compiled with threads enabled" >&2;}
8507   { (exit 1); exit 1; }; }
8508        fi
8509
8510
8511## libcurl
8512
8513
8514# Check whether --with-curlprefix or --without-curlprefix was given.
8515if test "${with_curlprefix+set}" = set; then
8516  withval="$with_curlprefix"
8517    curlprefix=$withval
8518fi;
8519
8520        if test "x$curlprefix" = "x"; then
8521                # Extract the first word of "curl-config", so it can be a program name with args.
8522set dummy curl-config; ac_word=$2
8523echo "$as_me:$LINENO: checking for $ac_word" >&5
8524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8525if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8526  echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528  case $CURL_CONFIG in
8529  [\\/]* | ?:[\\/]*)
8530  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8531  ;;
8532  *)
8533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536  IFS=$as_save_IFS
8537  test -z "$as_dir" && as_dir=.
8538  for ac_exec_ext in '' $ac_executable_extensions; do
8539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8540    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542    break 2
8543  fi
8544done
8545done
8546
8547  ;;
8548esac
8549fi
8550CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8551
8552if test -n "$CURL_CONFIG"; then
8553  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8554echo "${ECHO_T}$CURL_CONFIG" >&6
8555else
8556  echo "$as_me:$LINENO: result: no" >&5
8557echo "${ECHO_T}no" >&6
8558fi
8559
8560        else
8561                # Extract the first word of "curl-config", so it can be a program name with args.
8562set dummy curl-config; ac_word=$2
8563echo "$as_me:$LINENO: checking for $ac_word" >&5
8564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8565if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568  case $CURL_CONFIG in
8569  [\\/]* | ?:[\\/]*)
8570  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8571  ;;
8572  *)
8573  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $curlprefix/bin
8575do
8576  IFS=$as_save_IFS
8577  test -z "$as_dir" && as_dir=.
8578  for ac_exec_ext in '' $ac_executable_extensions; do
8579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8582    break 2
8583  fi
8584done
8585done
8586
8587  ;;
8588esac
8589fi
8590CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8591
8592if test -n "$CURL_CONFIG"; then
8593  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8594echo "${ECHO_T}$CURL_CONFIG" >&6
8595else
8596  echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
8598fi
8599
8600        fi
8601
8602        if test "x$CURL_CONFIG" = "x"; then
8603                { { echo "$as_me:$LINENO: error: cannot find curl-config. Is libcurl installed?" >&5
8604echo "$as_me: error: cannot find curl-config. Is libcurl installed?" >&2;}
8605   { (exit 1); exit 1; }; }
8606        fi
8607
8608        CFLAGS_LIBCURL=$($CURL_CONFIG --cflags)
8609        # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
8610        # Get rid of them.
8611        LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | sed 's/-arch [A-Za-z0-9]* //g')
8612
8613
8614
8615
8616
8617# Do we have curl_easy_strerror?
8618
8619
8620echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
8621echo $ECHO_N "checking for curl_easy_strerror in -lcurl... $ECHO_C" >&6
8622if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
8623  echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625  ac_check_lib_save_LIBS=$LIBS
8626LIBS="-lcurl $LDFLAGS_LIBCURL $LIBS"
8627cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h.  */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h.  */
8633
8634/* Override any gcc2 internal prototype to avoid an error.  */
8635#ifdef __cplusplus
8636extern "C"
8637#endif
8638/* We use char because int might match the return type of a gcc2
8639   builtin and then its argument prototype would still apply.  */
8640char curl_easy_strerror ();
8641int
8642main ()
8643{
8644curl_easy_strerror ();
8645  ;
8646  return 0;
8647}
8648_ACEOF
8649rm -f conftest.$ac_objext conftest$ac_exeext
8650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651  (eval $ac_link) 2>conftest.er1
8652  ac_status=$?
8653  grep -v '^ *+' conftest.er1 >conftest.err
8654  rm -f conftest.er1
8655  cat conftest.err >&5
8656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657  (exit $ac_status); } &&
8658         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660  (eval $ac_try) 2>&5
8661  ac_status=$?
8662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663  (exit $ac_status); }; } &&
8664         { ac_try='test -s conftest$ac_exeext'
8665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666  (eval $ac_try) 2>&5
8667  ac_status=$?
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); }; }; then
8670  ac_cv_lib_curl_curl_easy_strerror=yes
8671else
8672  echo "$as_me: failed program was:" >&5
8673sed 's/^/| /' conftest.$ac_ext >&5
8674
8675ac_cv_lib_curl_curl_easy_strerror=no
8676fi
8677rm -f conftest.err conftest.$ac_objext \
8678      conftest$ac_exeext conftest.$ac_ext
8679LIBS=$ac_check_lib_save_LIBS
8680fi
8681echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
8682echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_strerror" >&6
8683if test $ac_cv_lib_curl_curl_easy_strerror = yes; then
8684  cat >>confdefs.h <<\_ACEOF
8685#define HAVE_CURL_EASY_STRERROR 1
8686_ACEOF
8687
8688fi
8689
8690
8691# Determine if we need to install some bundled packages
8692OUR_INCLUDED_PACKAGES=
8693
8694## Thread package.
8695
8696# Check whether --with-included-tclthread or --without-included-tclthread was given.
8697if test "${with_included_tclthread+set}" = set; then
8698  withval="$with_included_tclthread"
8699  with_included_tclthread=$withval
8700else
8701  with_included_tclthread="unspecified"
8702fi;
8703
8704# Check if thread package is already installed.
8705if test "x$with_included_tclthread" = "xunspecified" ; then
8706
8707        echo "$as_me:$LINENO: checking for Tcl Thread package" >&5
8708echo $ECHO_N "checking for Tcl Thread package... $ECHO_C" >&6
8709        package_present=`echo 'if {[catch {package require Thread}]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
8710        if test "$package_present" = "1"; then
8711  echo "$as_me:$LINENO: result: yes" >&5
8712echo "${ECHO_T}yes" >&6; with_included_tclthread=no
8713else
8714  echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6; with_included_tclthread=yes
8716fi
8717
8718
8719fi
8720
8721# If thread package isn't installed, configure and install thread package.
8722if test "$with_included_tclthread" = "yes"; then
8723        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES thread2.6"
8724
8725
8726subdirs="$subdirs src/thread2.6"
8727
8728        # Extract thread package
8729        (cd src/; gzip -d < thread2.6.tar.gz | tar xf -)
8730        # Patch thread package (so thread2.6 is the vanilla distribution directory)
8731        patch -p0 < src/thread2.6.diff
8732fi
8733
8734
8735
8736# Allows building of shared libraries
8737
8738    echo "$as_me:$LINENO: checking how to build libraries" >&5
8739echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
8740    # Check whether --enable-shared or --disable-shared was given.
8741if test "${enable_shared+set}" = set; then
8742  enableval="$enable_shared"
8743  tcl_ok=$enableval
8744else
8745  tcl_ok=yes
8746fi;
8747
8748    if test "${enable_shared+set}" = set; then
8749        enableval="$enable_shared"
8750        tcl_ok=$enableval
8751    else
8752        tcl_ok=yes
8753    fi
8754
8755    if test "$tcl_ok" = "yes" ; then
8756        echo "$as_me:$LINENO: result: shared" >&5
8757echo "${ECHO_T}shared" >&6
8758        SHARED_BUILD=1
8759    else
8760        echo "$as_me:$LINENO: result: static" >&5
8761echo "${ECHO_T}static" >&6
8762        SHARED_BUILD=0
8763
8764cat >>confdefs.h <<\_ACEOF
8765#define STATIC_BUILD 1
8766_ACEOF
8767
8768    fi
8769
8770
8771# Pull compiler / linker values from tclConfig.sh
8772CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
8773CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
8774LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
8775LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
8776SHLIB_LD=${TCL_SHLIB_LD}
8777STLIB_LD=${TCL_STLIB_LD}
8778SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
8779SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793#misc variables that need to be expanded for substitution into tcl
8794
8795oldprefix=$prefix
8796if test "x$prefix" = "xNONE" ; then
8797   prefix=$ac_default_prefix
8798fi
8799
8800eval "prefix_expanded=$prefix"
8801
8802# do this twice, since there is a nested variable of
8803# ${prefix} inside of ${sysconfdir}
8804eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
8805eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
8806
8807eval "localstatedir_expanded=$localstatedir"
8808
8809
8810prefix=$oldprefix
8811
8812
8813# Output
8814
8815                                                                                                    ac_config_files="$ac_config_files Makefile Mk/dports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/ports.conf src/Makefile src/darwinports1.0/darwinports_autoconf.tcl src/port1.0/port_autoconf.tcl src/programs/Makefile src/darwinports1.0/darwinports_fastload.tcl"
8816
8817
8818cat >confcache <<\_ACEOF
8819# This file is a shell script that caches the results of configure
8820# tests run on this system so they can be shared between configure
8821# scripts and configure runs, see configure's option --config-cache.
8822# It is not useful on other systems.  If it contains results you don't
8823# want to keep, you may remove or edit it.
8824#
8825# config.status only pays attention to the cache file if you give it
8826# the --recheck option to rerun configure.
8827#
8828# `ac_cv_env_foo' variables (set or unset) will be overridden when
8829# loading this file, other *unset* `ac_cv_foo' will be assigned the
8830# following values.
8831
8832_ACEOF
8833
8834# The following way of writing the cache mishandles newlines in values,
8835# but we know of no workaround that is simple, portable, and efficient.
8836# So, don't put newlines in cache variables' values.
8837# Ultrix sh set writes to stderr and can't be redirected directly,
8838# and sets the high bit in the cache file unless we assign to the vars.
8839{
8840  (set) 2>&1 |
8841    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8842    *ac_space=\ *)
8843      # `set' does not quote correctly, so add quotes (double-quote
8844      # substitution turns \\\\ into \\, and sed turns \\ into \).
8845      sed -n \
8846        "s/'/'\\\\''/g;
8847          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8848      ;;
8849    *)
8850      # `set' quotes correctly as required by POSIX, so do not add quotes.
8851      sed -n \
8852        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8853      ;;
8854    esac;
8855} |
8856  sed '
8857     t clear
8858     : clear
8859     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8860     t end
8861     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8862     : end' >>confcache
8863if diff $cache_file confcache >/dev/null 2>&1; then :; else
8864  if test -w $cache_file; then
8865    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8866    cat confcache >$cache_file
8867  else
8868    echo "not updating unwritable cache $cache_file"
8869  fi
8870fi
8871rm -f confcache
8872
8873test "x$prefix" = xNONE && prefix=$ac_default_prefix
8874# Let make expand exec_prefix.
8875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8876
8877# VPATH may cause trouble with some makes, so we remove $(srcdir),
8878# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8879# trailing colons and then remove the whole line if VPATH becomes empty
8880# (actually we leave an empty line to preserve line numbers).
8881if test "x$srcdir" = x.; then
8882  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8883s/:*\$(srcdir):*/:/;
8884s/:*\${srcdir}:*/:/;
8885s/:*@srcdir@:*/:/;
8886s/^\([^=]*=[     ]*\):*/\1/;
8887s/:*$//;
8888s/^[^=]*=[       ]*$//;
8889}'
8890fi
8891
8892DEFS=-DHAVE_CONFIG_H
8893
8894ac_libobjs=
8895ac_ltlibobjs=
8896for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8897  # 1. Remove the extension, and $U if already installed.
8898  ac_i=`echo "$ac_i" |
8899         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8900  # 2. Add them.
8901  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8902  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8903done
8904LIBOBJS=$ac_libobjs
8905
8906LTLIBOBJS=$ac_ltlibobjs
8907
8908
8909
8910: ${CONFIG_STATUS=./config.status}
8911ac_clean_files_save=$ac_clean_files
8912ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8913{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8914echo "$as_me: creating $CONFIG_STATUS" >&6;}
8915cat >$CONFIG_STATUS <<_ACEOF
8916#! $SHELL
8917# Generated by $as_me.
8918# Run this file to recreate the current configuration.
8919# Compiler output produced by configure, useful for debugging
8920# configure, is in config.log if it exists.
8921
8922debug=false
8923ac_cs_recheck=false
8924ac_cs_silent=false
8925SHELL=\${CONFIG_SHELL-$SHELL}
8926_ACEOF
8927
8928cat >>$CONFIG_STATUS <<\_ACEOF
8929## --------------------- ##
8930## M4sh Initialization.  ##
8931## --------------------- ##
8932
8933# Be Bourne compatible
8934if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8935  emulate sh
8936  NULLCMD=:
8937  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8938  # is contrary to our usage.  Disable this feature.
8939  alias -g '${1+"$@"}'='"$@"'
8940elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8941  set -o posix
8942fi
8943DUALCASE=1; export DUALCASE # for MKS sh
8944
8945# Support unset when possible.
8946if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8947  as_unset=unset
8948else
8949  as_unset=false
8950fi
8951
8952
8953# Work around bugs in pre-3.0 UWIN ksh.
8954$as_unset ENV MAIL MAILPATH
8955PS1='$ '
8956PS2='> '
8957PS4='+ '
8958
8959# NLS nuisances.
8960for as_var in \
8961  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8962  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8963  LC_TELEPHONE LC_TIME
8964do
8965  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8966    eval $as_var=C; export $as_var
8967  else
8968    $as_unset $as_var
8969  fi
8970done
8971
8972# Required to use basename.
8973if expr a : '\(a\)' >/dev/null 2>&1; then
8974  as_expr=expr
8975else
8976  as_expr=false
8977fi
8978
8979if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8980  as_basename=basename
8981else
8982  as_basename=false
8983fi
8984
8985
8986# Name of the executable.
8987as_me=`$as_basename "$0" ||
8988$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8989         X"$0" : 'X\(//\)$' \| \
8990         X"$0" : 'X\(/\)$' \| \
8991         .     : '\(.\)' 2>/dev/null ||
8992echo X/"$0" |
8993    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8994          /^X\/\(\/\/\)$/{ s//\1/; q; }
8995          /^X\/\(\/\).*/{ s//\1/; q; }
8996          s/.*/./; q'`
8997
8998
8999# PATH needs CR, and LINENO needs CR and PATH.
9000# Avoid depending upon Character Ranges.
9001as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9003as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9004as_cr_digits='0123456789'
9005as_cr_alnum=$as_cr_Letters$as_cr_digits
9006
9007# The user is always right.
9008if test "${PATH_SEPARATOR+set}" != set; then
9009  echo "#! /bin/sh" >conf$$.sh
9010  echo  "exit 0"   >>conf$$.sh
9011  chmod +x conf$$.sh
9012  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9013    PATH_SEPARATOR=';'
9014  else
9015    PATH_SEPARATOR=:
9016  fi
9017  rm -f conf$$.sh
9018fi
9019
9020
9021  as_lineno_1=$LINENO
9022  as_lineno_2=$LINENO
9023  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9024  test "x$as_lineno_1" != "x$as_lineno_2" &&
9025  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9026  # Find who we are.  Look in the path if we contain no path at all
9027  # relative or not.
9028  case $0 in
9029    *[\\/]* ) as_myself=$0 ;;
9030    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033  IFS=$as_save_IFS
9034  test -z "$as_dir" && as_dir=.
9035  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9036done
9037
9038       ;;
9039  esac
9040  # We did not find ourselves, most probably we were run as `sh COMMAND'
9041  # in which case we are not to be found in the path.
9042  if test "x$as_myself" = x; then
9043    as_myself=$0
9044  fi
9045  if test ! -f "$as_myself"; then
9046    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9047echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9048   { (exit 1); exit 1; }; }
9049  fi
9050  case $CONFIG_SHELL in
9051  '')
9052    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9054do
9055  IFS=$as_save_IFS
9056  test -z "$as_dir" && as_dir=.
9057  for as_base in sh bash ksh sh5; do
9058         case $as_dir in
9059         /*)
9060           if ("$as_dir/$as_base" -c '
9061  as_lineno_1=$LINENO
9062  as_lineno_2=$LINENO
9063  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9064  test "x$as_lineno_1" != "x$as_lineno_2" &&
9065  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9066             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9067             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9068             CONFIG_SHELL=$as_dir/$as_base
9069             export CONFIG_SHELL
9070             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9071           fi;;
9072         esac
9073       done
9074done
9075;;
9076  esac
9077
9078  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9079  # uniformly replaced by the line number.  The first 'sed' inserts a
9080  # line-number line before each line; the second 'sed' does the real
9081  # work.  The second script uses 'N' to pair each line-number line
9082  # with the numbered line, and appends trailing '-' during
9083  # substitution so that $LINENO is not a special case at line end.
9084  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9085  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9086  sed '=' <$as_myself |
9087    sed '
9088      N
9089      s,$,-,
9090      : loop
9091      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9092      t loop
9093      s,-$,,
9094      s,^['$as_cr_digits']*\n,,
9095    ' >$as_me.lineno &&
9096  chmod +x $as_me.lineno ||
9097    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9098echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9099   { (exit 1); exit 1; }; }
9100
9101  # Don't try to exec as it changes $[0], causing all sort of problems
9102  # (the dirname of $[0] is not the place where we might find the
9103  # original and so on.  Autoconf is especially sensible to this).
9104  . ./$as_me.lineno
9105  # Exit status is that of the last command.
9106  exit
9107}
9108
9109
9110case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9111  *c*,-n*) ECHO_N= ECHO_C='
9112' ECHO_T='      ' ;;
9113  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9114  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9115esac
9116
9117if expr a : '\(a\)' >/dev/null 2>&1; then
9118  as_expr=expr
9119else
9120  as_expr=false
9121fi
9122
9123rm -f conf$$ conf$$.exe conf$$.file
9124echo >conf$$.file
9125if ln -s conf$$.file conf$$ 2>/dev/null; then
9126  # We could just check for DJGPP; but this test a) works b) is more generic
9127  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9128  if test -f conf$$.exe; then
9129    # Don't use ln at all; we don't have any links
9130    as_ln_s='cp -p'
9131  else
9132    as_ln_s='ln -s'
9133  fi
9134elif ln conf$$.file conf$$ 2>/dev/null; then
9135  as_ln_s=ln
9136else
9137  as_ln_s='cp -p'
9138fi
9139rm -f conf$$ conf$$.exe conf$$.file
9140
9141if mkdir -p . 2>/dev/null; then
9142  as_mkdir_p=:
9143else
9144  test -d ./-p && rmdir ./-p
9145  as_mkdir_p=false
9146fi
9147
9148as_executable_p="test -f"
9149
9150# Sed expression to map a string onto a valid CPP name.
9151as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9152
9153# Sed expression to map a string onto a valid variable name.
9154as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9155
9156
9157# IFS
9158# We need space, tab and new line, in precisely that order.
9159as_nl='
9160'
9161IFS="   $as_nl"
9162
9163# CDPATH.
9164$as_unset CDPATH
9165
9166exec 6>&1
9167
9168# Open the log real soon, to keep \$[0] and so on meaningful, and to
9169# report actual input values of CONFIG_FILES etc. instead of their
9170# values after options handling.  Logging --version etc. is OK.
9171exec 5>>config.log
9172{
9173  echo
9174  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9175## Running $as_me. ##
9176_ASBOX
9177} >&5
9178cat >&5 <<_CSEOF
9179
9180This file was extended by OpenDarwin DarwinPorts $as_me 1.0, which was
9181generated by GNU Autoconf 2.59.  Invocation command line was
9182
9183  CONFIG_FILES    = $CONFIG_FILES
9184  CONFIG_HEADERS  = $CONFIG_HEADERS
9185  CONFIG_LINKS    = $CONFIG_LINKS
9186  CONFIG_COMMANDS = $CONFIG_COMMANDS
9187  $ $0 $@
9188
9189_CSEOF
9190echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9191echo >&5
9192_ACEOF
9193
9194# Files that config.status was made for.
9195if test -n "$ac_config_files"; then
9196  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9197fi
9198
9199if test -n "$ac_config_headers"; then
9200  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9201fi
9202
9203if test -n "$ac_config_links"; then
9204  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9205fi
9206
9207if test -n "$ac_config_commands"; then
9208  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9209fi
9210
9211cat >>$CONFIG_STATUS <<\_ACEOF
9212
9213ac_cs_usage="\
9214\`$as_me' instantiates files from templates according to the
9215current configuration.
9216
9217Usage: $0 [OPTIONS] [FILE]...
9218
9219  -h, --help       print this help, then exit
9220  -V, --version    print version number, then exit
9221  -q, --quiet      do not print progress messages
9222  -d, --debug      don't remove temporary files
9223      --recheck    update $as_me by reconfiguring in the same conditions
9224  --file=FILE[:TEMPLATE]
9225                   instantiate the configuration file FILE
9226  --header=FILE[:TEMPLATE]
9227                   instantiate the configuration header FILE
9228
9229Configuration files:
9230$config_files
9231
9232Configuration headers:
9233$config_headers
9234
9235Report bugs to <bug-autoconf@gnu.org>."
9236_ACEOF
9237
9238cat >>$CONFIG_STATUS <<_ACEOF
9239ac_cs_version="\\
9240OpenDarwin DarwinPorts config.status 1.0
9241configured by $0, generated by GNU Autoconf 2.59,
9242  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9243
9244Copyright (C) 2003 Free Software Foundation, Inc.
9245This config.status script is free software; the Free Software Foundation
9246gives unlimited permission to copy, distribute and modify it."
9247srcdir=$srcdir
9248INSTALL="$INSTALL"
9249_ACEOF
9250
9251cat >>$CONFIG_STATUS <<\_ACEOF
9252# If no file are specified by the user, then we need to provide default
9253# value.  By we need to know if files were specified by the user.
9254ac_need_defaults=:
9255while test $# != 0
9256do
9257  case $1 in
9258  --*=*)
9259    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9260    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9261    ac_shift=:
9262    ;;
9263  -*)
9264    ac_option=$1
9265    ac_optarg=$2
9266    ac_shift=shift
9267    ;;
9268  *) # This is not an option, so the user has probably given explicit
9269     # arguments.
9270     ac_option=$1
9271     ac_need_defaults=false;;
9272  esac
9273
9274  case $ac_option in
9275  # Handling of the options.
9276_ACEOF
9277cat >>$CONFIG_STATUS <<\_ACEOF
9278  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9279    ac_cs_recheck=: ;;
9280  --version | --vers* | -V )
9281    echo "$ac_cs_version"; exit 0 ;;
9282  --he | --h)
9283    # Conflict between --help and --header
9284    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9285Try \`$0 --help' for more information." >&5
9286echo "$as_me: error: ambiguous option: $1
9287Try \`$0 --help' for more information." >&2;}
9288   { (exit 1); exit 1; }; };;
9289  --help | --hel | -h )
9290    echo "$ac_cs_usage"; exit 0 ;;
9291  --debug | --d* | -d )
9292    debug=: ;;
9293  --file | --fil | --fi | --f )
9294    $ac_shift
9295    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9296    ac_need_defaults=false;;
9297  --header | --heade | --head | --hea )
9298    $ac_shift
9299    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9300    ac_need_defaults=false;;
9301  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9302  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9303    ac_cs_silent=: ;;
9304
9305  # This is an error.
9306  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9307Try \`$0 --help' for more information." >&5
9308echo "$as_me: error: unrecognized option: $1
9309Try \`$0 --help' for more information." >&2;}
9310   { (exit 1); exit 1; }; } ;;
9311
9312  *) ac_config_targets="$ac_config_targets $1" ;;
9313
9314  esac
9315  shift
9316done
9317
9318ac_configure_extra_args=
9319
9320if $ac_cs_silent; then
9321  exec 6>/dev/null
9322  ac_configure_extra_args="$ac_configure_extra_args --silent"
9323fi
9324
9325_ACEOF
9326cat >>$CONFIG_STATUS <<_ACEOF
9327if \$ac_cs_recheck; then
9328  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9329  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9330fi
9331
9332_ACEOF
9333
9334
9335
9336
9337
9338cat >>$CONFIG_STATUS <<\_ACEOF
9339for ac_config_target in $ac_config_targets
9340do
9341  case "$ac_config_target" in
9342  # Handling of arguments.
9343  "src/programs/daemondo/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/daemondo/Makefile" ;;
9344  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9345  "Mk/dports.autoconf.mk" ) CONFIG_FILES="$CONFIG_FILES Mk/dports.autoconf.mk" ;;
9346  "doc/prefix.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
9347  "doc/macosx.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
9348  "doc/ports.conf" ) CONFIG_FILES="$CONFIG_FILES doc/ports.conf" ;;
9349  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9350  "src/darwinports1.0/darwinports_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_autoconf.tcl" ;;
9351  "src/port1.0/port_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/port1.0/port_autoconf.tcl" ;;
9352  "src/programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
9353  "src/darwinports1.0/darwinports_fastload.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_fastload.tcl" ;;
9354  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9355  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9356echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9357   { (exit 1); exit 1; }; };;
9358  esac
9359done
9360
9361# If the user did not use the arguments to specify the items to instantiate,
9362# then the envvar interface is used.  Set only those that are not.
9363# We use the long form for the default assignment because of an extremely
9364# bizarre bug on SunOS 4.1.3.
9365if $ac_need_defaults; then
9366  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9367  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9368fi
9369
9370# Have a temporary directory for convenience.  Make it in the build tree
9371# simply because there is no reason to put it here, and in addition,
9372# creating and moving files from /tmp can sometimes cause problems.
9373# Create a temporary directory, and hook for its removal unless debugging.
9374$debug ||
9375{
9376  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9377  trap '{ (exit 1); exit 1; }' 1 2 13 15
9378}
9379
9380# Create a (secure) tmp directory for tmp files.
9381
9382{
9383  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9384  test -n "$tmp" && test -d "$tmp"
9385}  ||
9386{
9387  tmp=./confstat$$-$RANDOM
9388  (umask 077 && mkdir $tmp)
9389} ||
9390{
9391   echo "$me: cannot create a temporary directory in ." >&2
9392   { (exit 1); exit 1; }
9393}
9394
9395_ACEOF
9396
9397cat >>$CONFIG_STATUS <<_ACEOF
9398
9399#
9400# CONFIG_FILES section.
9401#
9402
9403# No need to generate the scripts if there are no CONFIG_FILES.
9404# This happens for instance when ./config.status config.h
9405if test -n "\$CONFIG_FILES"; then
9406  # Protect against being on the right side of a sed subst in config.status.
9407  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9408   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9409s,@SHELL@,$SHELL,;t t
9410s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9411s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9412s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9413s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9414s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9415s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9416s,@exec_prefix@,$exec_prefix,;t t
9417s,@prefix@,$prefix,;t t
9418s,@program_transform_name@,$program_transform_name,;t t
9419s,@bindir@,$bindir,;t t
9420s,@sbindir@,$sbindir,;t t
9421s,@libexecdir@,$libexecdir,;t t
9422s,@datadir@,$datadir,;t t
9423s,@sysconfdir@,$sysconfdir,;t t
9424s,@sharedstatedir@,$sharedstatedir,;t t
9425s,@localstatedir@,$localstatedir,;t t
9426s,@libdir@,$libdir,;t t
9427s,@includedir@,$includedir,;t t
9428s,@oldincludedir@,$oldincludedir,;t t
9429s,@infodir@,$infodir,;t t
9430s,@mandir@,$mandir,;t t
9431s,@build_alias@,$build_alias,;t t
9432s,@host_alias@,$host_alias,;t t
9433s,@target_alias@,$target_alias,;t t
9434s,@DEFS@,$DEFS,;t t
9435s,@ECHO_C@,$ECHO_C,;t t
9436s,@ECHO_N@,$ECHO_N,;t t
9437s,@ECHO_T@,$ECHO_T,;t t
9438s,@LIBS@,$LIBS,;t t
9439s,@build@,$build,;t t
9440s,@build_cpu@,$build_cpu,;t t
9441s,@build_vendor@,$build_vendor,;t t
9442s,@build_os@,$build_os,;t t
9443s,@host@,$host,;t t
9444s,@host_cpu@,$host_cpu,;t t
9445s,@host_vendor@,$host_vendor,;t t
9446s,@host_os@,$host_os,;t t
9447s,@target@,$target,;t t
9448s,@target_cpu@,$target_cpu,;t t
9449s,@target_vendor@,$target_vendor,;t t
9450s,@target_os@,$target_os,;t t
9451s,@CC@,$CC,;t t
9452s,@CFLAGS@,$CFLAGS,;t t
9453s,@LDFLAGS@,$LDFLAGS,;t t
9454s,@CPPFLAGS@,$CPPFLAGS,;t t
9455s,@ac_ct_CC@,$ac_ct_CC,;t t
9456s,@EXEEXT@,$EXEEXT,;t t
9457s,@OBJEXT@,$OBJEXT,;t t
9458s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9459s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9460s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9461s,@SET_MAKE@,$SET_MAKE,;t t
9462s,@LN_S@,$LN_S,;t t
9463s,@CVS@,$CVS,;t t
9464s,@HAVE_LAUNCHD@,$HAVE_LAUNCHD,;t t
9465s,@LAUNCHCTL@,$LAUNCHCTL,;t t
9466s,@XCODEBUILD@,$XCODEBUILD,;t t
9467s,@TAR@,$TAR,;t t
9468s,@GNUTAR@,$GNUTAR,;t t
9469s,@TAR_CMD@,$TAR_CMD,;t t
9470s,@CFLAGS_QUICHEEATERS@,$CFLAGS_QUICHEEATERS,;t t
9471s,@MTREE@,$MTREE,;t t
9472s,@subdirs@,$subdirs,;t t
9473s,@ENABLE_LAUNCHD_SUPPORT@,$ENABLE_LAUNCHD_SUPPORT,;t t
9474s,@HAVE_FRAMEWORK_COREFOUNDATION@,$HAVE_FRAMEWORK_COREFOUNDATION,;t t
9475s,@HAVE_FRAMEWORK_SYSTEMCONFIGURATION@,$HAVE_FRAMEWORK_SYSTEMCONFIGURATION,;t t
9476s,@HAVE_FRAMEWORK_IOKIT@,$HAVE_FRAMEWORK_IOKIT,;t t
9477s,@HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER@,$HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER,;t t
9478s,@REPLACEMENT_PROGS@,$REPLACEMENT_PROGS,;t t
9479s,@EXTRA_PROGS@,$EXTRA_PROGS,;t t
9480s,@DPORTSDIR@,$DPORTSDIR,;t t
9481s,@PORTCONFIGDIR@,$PORTCONFIGDIR,;t t
9482s,@DSTUSR@,$DSTUSR,;t t
9483s,@DSTGRP@,$DSTGRP,;t t
9484s,@DSTMODE@,$DSTMODE,;t t
9485s,@CPP@,$CPP,;t t
9486s,@EGREP@,$EGREP,;t t
9487s,@MD5_LIBS@,$MD5_LIBS,;t t
9488s,@X_CFLAGS@,$X_CFLAGS,;t t
9489s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9490s,@X_LIBS@,$X_LIBS,;t t
9491s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9492s,@TCL_VERSION@,$TCL_VERSION,;t t
9493s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
9494s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
9495s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
9496s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
9497s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
9498s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
9499s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
9500s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
9501s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
9502s,@TCLSH@,$TCLSH,;t t
9503s,@TCL_PACKAGE_DIR@,$TCL_PACKAGE_DIR,;t t
9504s,@CURL_CONFIG@,$CURL_CONFIG,;t t
9505s,@CFLAGS_LIBCURL@,$CFLAGS_LIBCURL,;t t
9506s,@LDFLAGS_LIBCURL@,$LDFLAGS_LIBCURL,;t t
9507s,@OUR_INCLUDED_PACKAGES@,$OUR_INCLUDED_PACKAGES,;t t
9508s,@INCLUDES@,$INCLUDES,;t t
9509s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
9510s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
9511s,@TCL_DEFS@,$TCL_DEFS,;t t
9512s,@STLIB_LD@,$STLIB_LD,;t t
9513s,@SHLIB_LD@,$SHLIB_LD,;t t
9514s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
9515s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
9516s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
9517s,@TCL_CC@,$TCL_CC,;t t
9518s,@prefix_expanded@,$prefix_expanded,;t t
9519s,@PORTCONFIGDIR_EXPANDED@,$PORTCONFIGDIR_EXPANDED,;t t
9520s,@localstatedir_expanded@,$localstatedir_expanded,;t t
9521s,@LIBOBJS@,$LIBOBJS,;t t
9522s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9523CEOF
9524
9525_ACEOF
9526
9527  cat >>$CONFIG_STATUS <<\_ACEOF
9528  # Split the substitutions into bite-sized pieces for seds with
9529  # small command number limits, like on Digital OSF/1 and HP-UX.
9530  ac_max_sed_lines=48
9531  ac_sed_frag=1 # Number of current file.
9532  ac_beg=1 # First line for current file.
9533  ac_end=$ac_max_sed_lines # Line after last line for current file.
9534  ac_more_lines=:
9535  ac_sed_cmds=
9536  while $ac_more_lines; do
9537    if test $ac_beg -gt 1; then
9538      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9539    else
9540      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9541    fi
9542    if test ! -s $tmp/subs.frag; then
9543      ac_more_lines=false
9544    else
9545      # The purpose of the label and of the branching condition is to
9546      # speed up the sed processing (if there are no `@' at all, there
9547      # is no need to browse any of the substitutions).
9548      # These are the two extra sed commands mentioned above.
9549      (echo ':t
9550  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9551      if test -z "$ac_sed_cmds"; then
9552        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9553      else
9554        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9555      fi
9556      ac_sed_frag=`expr $ac_sed_frag + 1`
9557      ac_beg=$ac_end
9558      ac_end=`expr $ac_end + $ac_max_sed_lines`
9559    fi
9560  done
9561  if test -z "$ac_sed_cmds"; then
9562    ac_sed_cmds=cat
9563  fi
9564fi # test -n "$CONFIG_FILES"
9565
9566_ACEOF
9567cat >>$CONFIG_STATUS <<\_ACEOF
9568for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9569  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9570  case $ac_file in
9571  - | *:- | *:-:* ) # input from stdin
9572        cat >$tmp/stdin
9573        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9574        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9575  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9576        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9577  * )   ac_file_in=$ac_file.in ;;
9578  esac
9579
9580  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9581  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9582$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9583         X"$ac_file" : 'X\(//\)[^/]' \| \
9584         X"$ac_file" : 'X\(//\)$' \| \
9585         X"$ac_file" : 'X\(/\)' \| \
9586         .     : '\(.\)' 2>/dev/null ||
9587echo X"$ac_file" |
9588    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9589          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9590          /^X\(\/\/\)$/{ s//\1/; q; }
9591          /^X\(\/\).*/{ s//\1/; q; }
9592          s/.*/./; q'`
9593  { if $as_mkdir_p; then
9594    mkdir -p "$ac_dir"
9595  else
9596    as_dir="$ac_dir"
9597    as_dirs=
9598    while test ! -d "$as_dir"; do
9599      as_dirs="$as_dir $as_dirs"
9600      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9602         X"$as_dir" : 'X\(//\)[^/]' \| \
9603         X"$as_dir" : 'X\(//\)$' \| \
9604         X"$as_dir" : 'X\(/\)' \| \
9605         .     : '\(.\)' 2>/dev/null ||
9606echo X"$as_dir" |
9607    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9608          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9609          /^X\(\/\/\)$/{ s//\1/; q; }
9610          /^X\(\/\).*/{ s//\1/; q; }
9611          s/.*/./; q'`
9612    done
9613    test ! -n "$as_dirs" || mkdir $as_dirs
9614  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9615echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9616   { (exit 1); exit 1; }; }; }
9617
9618  ac_builddir=.
9619
9620if test "$ac_dir" != .; then
9621  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9622  # A "../" for each directory in $ac_dir_suffix.
9623  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9624else
9625  ac_dir_suffix= ac_top_builddir=
9626fi
9627
9628case $srcdir in
9629  .)  # No --srcdir option.  We are building in place.
9630    ac_srcdir=.
9631    if test -z "$ac_top_builddir"; then
9632       ac_top_srcdir=.
9633    else
9634       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9635    fi ;;
9636  [\\/]* | ?:[\\/]* )  # Absolute path.
9637    ac_srcdir=$srcdir$ac_dir_suffix;
9638    ac_top_srcdir=$srcdir ;;
9639  *) # Relative path.
9640    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9641    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9642esac
9643
9644# Do not use `cd foo && pwd` to compute absolute paths, because
9645# the directories may not exist.
9646case `pwd` in
9647.) ac_abs_builddir="$ac_dir";;
9648*)
9649  case "$ac_dir" in
9650  .) ac_abs_builddir=`pwd`;;
9651  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9652  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9653  esac;;
9654esac
9655case $ac_abs_builddir in
9656.) ac_abs_top_builddir=${ac_top_builddir}.;;
9657*)
9658  case ${ac_top_builddir}. in
9659  .) ac_abs_top_builddir=$ac_abs_builddir;;
9660  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9661  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9662  esac;;
9663esac
9664case $ac_abs_builddir in
9665.) ac_abs_srcdir=$ac_srcdir;;
9666*)
9667  case $ac_srcdir in
9668  .) ac_abs_srcdir=$ac_abs_builddir;;
9669  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9670  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9671  esac;;
9672esac
9673case $ac_abs_builddir in
9674.) ac_abs_top_srcdir=$ac_top_srcdir;;
9675*)
9676  case $ac_top_srcdir in
9677  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9678  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9679  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9680  esac;;
9681esac
9682
9683
9684  case $INSTALL in
9685  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9686  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9687  esac
9688
9689  # Let's still pretend it is `configure' which instantiates (i.e., don't
9690  # use $as_me), people would be surprised to read:
9691  #    /* config.h.  Generated by config.status.  */
9692  if test x"$ac_file" = x-; then
9693    configure_input=
9694  else
9695    configure_input="$ac_file.  "
9696  fi
9697  configure_input=$configure_input"Generated from `echo $ac_file_in |
9698                                     sed 's,.*/,,'` by configure."
9699
9700  # First look for the input files in the build tree, otherwise in the
9701  # src tree.
9702  ac_file_inputs=`IFS=:
9703    for f in $ac_file_in; do
9704      case $f in
9705      -) echo $tmp/stdin ;;
9706      [\\/$]*)
9707         # Absolute (can't be DOS-style, as IFS=:)
9708         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9709echo "$as_me: error: cannot find input file: $f" >&2;}
9710   { (exit 1); exit 1; }; }
9711         echo "$f";;
9712      *) # Relative
9713         if test -f "$f"; then
9714           # Build tree
9715           echo "$f"
9716         elif test -f "$srcdir/$f"; then
9717           # Source tree
9718           echo "$srcdir/$f"
9719         else
9720           # /dev/null tree
9721           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9722echo "$as_me: error: cannot find input file: $f" >&2;}
9723   { (exit 1); exit 1; }; }
9724         fi;;
9725      esac
9726    done` || { (exit 1); exit 1; }
9727
9728  if test x"$ac_file" != x-; then
9729    { echo "$as_me:$LINENO: creating $ac_file" >&5
9730echo "$as_me: creating $ac_file" >&6;}
9731    rm -f "$ac_file"
9732  fi
9733_ACEOF
9734cat >>$CONFIG_STATUS <<_ACEOF
9735  sed "$ac_vpsub
9736$extrasub
9737_ACEOF
9738cat >>$CONFIG_STATUS <<\_ACEOF
9739:t
9740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9741s,@configure_input@,$configure_input,;t t
9742s,@srcdir@,$ac_srcdir,;t t
9743s,@abs_srcdir@,$ac_abs_srcdir,;t t
9744s,@top_srcdir@,$ac_top_srcdir,;t t
9745s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9746s,@builddir@,$ac_builddir,;t t
9747s,@abs_builddir@,$ac_abs_builddir,;t t
9748s,@top_builddir@,$ac_top_builddir,;t t
9749s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9750s,@INSTALL@,$ac_INSTALL,;t t
9751" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9752  rm -f $tmp/stdin
9753  if test x"$ac_file" != x-; then
9754    mv $tmp/out $ac_file
9755  else
9756    cat $tmp/out
9757    rm -f $tmp/out
9758  fi
9759
9760done
9761_ACEOF
9762cat >>$CONFIG_STATUS <<\_ACEOF
9763
9764#
9765# CONFIG_HEADER section.
9766#
9767
9768# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9769# NAME is the cpp macro being defined and VALUE is the value it is being given.
9770#
9771# ac_d sets the value in "#define NAME VALUE" lines.
9772ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9773ac_dB='[         ].*$,\1#\2'
9774ac_dC=' '
9775ac_dD=',;t'
9776# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9777ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9778ac_uB='$,\1#\2define\3'
9779ac_uC=' '
9780ac_uD=',;t'
9781
9782for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9783  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9784  case $ac_file in
9785  - | *:- | *:-:* ) # input from stdin
9786        cat >$tmp/stdin
9787        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9788        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9789  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9790        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9791  * )   ac_file_in=$ac_file.in ;;
9792  esac
9793
9794  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9795echo "$as_me: creating $ac_file" >&6;}
9796
9797  # First look for the input files in the build tree, otherwise in the
9798  # src tree.
9799  ac_file_inputs=`IFS=:
9800    for f in $ac_file_in; do
9801      case $f in
9802      -) echo $tmp/stdin ;;
9803      [\\/$]*)
9804         # Absolute (can't be DOS-style, as IFS=:)
9805         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9806echo "$as_me: error: cannot find input file: $f" >&2;}
9807   { (exit 1); exit 1; }; }
9808         # Do quote $f, to prevent DOS paths from being IFS'd.
9809         echo "$f";;
9810      *) # Relative
9811         if test -f "$f"; then
9812           # Build tree
9813           echo "$f"
9814         elif test -f "$srcdir/$f"; then
9815           # Source tree
9816           echo "$srcdir/$f"
9817         else
9818           # /dev/null tree
9819           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9820echo "$as_me: error: cannot find input file: $f" >&2;}
9821   { (exit 1); exit 1; }; }
9822         fi;;
9823      esac
9824    done` || { (exit 1); exit 1; }
9825  # Remove the trailing spaces.
9826  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9827
9828_ACEOF
9829
9830# Transform confdefs.h into two sed scripts, `conftest.defines' and
9831# `conftest.undefs', that substitutes the proper values into
9832# config.h.in to produce config.h.  The first handles `#define'
9833# templates, and the second `#undef' templates.
9834# And first: Protect against being on the right side of a sed subst in
9835# config.status.  Protect against being in an unquoted here document
9836# in config.status.
9837rm -f conftest.defines conftest.undefs
9838# Using a here document instead of a string reduces the quoting nightmare.
9839# Putting comments in sed scripts is not portable.
9840#
9841# `end' is used to avoid that the second main sed command (meant for
9842# 0-ary CPP macros) applies to n-ary macro definitions.
9843# See the Autoconf documentation for `clear'.
9844cat >confdef2sed.sed <<\_ACEOF
9845s/[\\&,]/\\&/g
9846s,[\\$`],\\&,g
9847t clear
9848: clear
9849s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9850t end
9851s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9852: end
9853_ACEOF
9854# If some macros were called several times there might be several times
9855# the same #defines, which is useless.  Nevertheless, we may not want to
9856# sort them, since we want the *last* AC-DEFINE to be honored.
9857uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9858sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9859rm -f confdef2sed.sed
9860
9861# This sed command replaces #undef with comments.  This is necessary, for
9862# example, in the case of _POSIX_SOURCE, which is predefined and required
9863# on some systems where configure will not decide to define it.
9864cat >>conftest.undefs <<\_ACEOF
9865s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9866_ACEOF
9867
9868# Break up conftest.defines because some shells have a limit on the size
9869# of here documents, and old seds have small limits too (100 cmds).
9870echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9871echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9872echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9873echo '  :' >>$CONFIG_STATUS
9874rm -f conftest.tail
9875while grep . conftest.defines >/dev/null
9876do
9877  # Write a limited-size here document to $tmp/defines.sed.
9878  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9879  # Speed up: don't consider the non `#define' lines.
9880  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9881  # Work around the forget-to-reset-the-flag bug.
9882  echo 't clr' >>$CONFIG_STATUS
9883  echo ': clr' >>$CONFIG_STATUS
9884  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9885  echo 'CEOF
9886  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9887  rm -f $tmp/in
9888  mv $tmp/out $tmp/in
9889' >>$CONFIG_STATUS
9890  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9891  rm -f conftest.defines
9892  mv conftest.tail conftest.defines
9893done
9894rm -f conftest.defines
9895echo '  fi # grep' >>$CONFIG_STATUS
9896echo >>$CONFIG_STATUS
9897
9898# Break up conftest.undefs because some shells have a limit on the size
9899# of here documents, and old seds have small limits too (100 cmds).
9900echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9901rm -f conftest.tail
9902while grep . conftest.undefs >/dev/null
9903do
9904  # Write a limited-size here document to $tmp/undefs.sed.
9905  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9906  # Speed up: don't consider the non `#undef'
9907  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9908  # Work around the forget-to-reset-the-flag bug.
9909  echo 't clr' >>$CONFIG_STATUS
9910  echo ': clr' >>$CONFIG_STATUS
9911  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9912  echo 'CEOF
9913  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9914  rm -f $tmp/in
9915  mv $tmp/out $tmp/in
9916' >>$CONFIG_STATUS
9917  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9918  rm -f conftest.undefs
9919  mv conftest.tail conftest.undefs
9920done
9921rm -f conftest.undefs
9922
9923cat >>$CONFIG_STATUS <<\_ACEOF
9924  # Let's still pretend it is `configure' which instantiates (i.e., don't
9925  # use $as_me), people would be surprised to read:
9926  #    /* config.h.  Generated by config.status.  */
9927  if test x"$ac_file" = x-; then
9928    echo "/* Generated by configure.  */" >$tmp/config.h
9929  else
9930    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9931  fi
9932  cat $tmp/in >>$tmp/config.h
9933  rm -f $tmp/in
9934  if test x"$ac_file" != x-; then
9935    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9936      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9937echo "$as_me: $ac_file is unchanged" >&6;}
9938    else
9939      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9941         X"$ac_file" : 'X\(//\)[^/]' \| \
9942         X"$ac_file" : 'X\(//\)$' \| \
9943         X"$ac_file" : 'X\(/\)' \| \
9944         .     : '\(.\)' 2>/dev/null ||
9945echo X"$ac_file" |
9946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9947          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9948          /^X\(\/\/\)$/{ s//\1/; q; }
9949          /^X\(\/\).*/{ s//\1/; q; }
9950          s/.*/./; q'`
9951      { if $as_mkdir_p; then
9952    mkdir -p "$ac_dir"
9953  else
9954    as_dir="$ac_dir"
9955    as_dirs=
9956    while test ! -d "$as_dir"; do
9957      as_dirs="$as_dir $as_dirs"
9958      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9959$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9960         X"$as_dir" : 'X\(//\)[^/]' \| \
9961         X"$as_dir" : 'X\(//\)$' \| \
9962         X"$as_dir" : 'X\(/\)' \| \
9963         .     : '\(.\)' 2>/dev/null ||
9964echo X"$as_dir" |
9965    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9966          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9967          /^X\(\/\/\)$/{ s//\1/; q; }
9968          /^X\(\/\).*/{ s//\1/; q; }
9969          s/.*/./; q'`
9970    done
9971    test ! -n "$as_dirs" || mkdir $as_dirs
9972  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9973echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9974   { (exit 1); exit 1; }; }; }
9975
9976      rm -f $ac_file
9977      mv $tmp/config.h $ac_file
9978    fi
9979  else
9980    cat $tmp/config.h
9981    rm -f $tmp/config.h
9982  fi
9983done
9984_ACEOF
9985
9986cat >>$CONFIG_STATUS <<\_ACEOF
9987
9988{ (exit 0); exit 0; }
9989_ACEOF
9990chmod +x $CONFIG_STATUS
9991ac_clean_files=$ac_clean_files_save
9992
9993
9994# configure is writing to config.log, and then calls config.status.
9995# config.status does its own redirection, appending to config.log.
9996# Unfortunately, on DOS this fails, as config.log is still kept open
9997# by configure, so config.status won't be able to write to it; its
9998# output is simply discarded.  So we exec the FD to /dev/null,
9999# effectively closing config.log, so it can be properly (re)opened and
10000# appended to by config.status.  When coming back to configure, we
10001# need to make the FD available again.
10002if test "$no_create" != yes; then
10003  ac_cs_success=:
10004  ac_config_status_args=
10005  test "$silent" = yes &&
10006    ac_config_status_args="$ac_config_status_args --quiet"
10007  exec 5>/dev/null
10008  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10009  exec 5>>config.log
10010  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10011  # would make configure fail if this is the last instruction.
10012  $ac_cs_success || { (exit 1); exit 1; }
10013fi
10014
10015#
10016# CONFIG_SUBDIRS section.
10017#
10018if test "$no_recursion" != yes; then
10019
10020  # Remove --cache-file and --srcdir arguments so they do not pile up.
10021  ac_sub_configure_args=
10022  ac_prev=
10023  for ac_arg in $ac_configure_args; do
10024    if test -n "$ac_prev"; then
10025      ac_prev=
10026      continue
10027    fi
10028    case $ac_arg in
10029    -cache-file | --cache-file | --cache-fil | --cache-fi \
10030    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10031      ac_prev=cache_file ;;
10032    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10033    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10034    | --c=*)
10035      ;;
10036    --config-cache | -C)
10037      ;;
10038    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10039      ac_prev=srcdir ;;
10040    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10041      ;;
10042    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10043      ac_prev=prefix ;;
10044    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10045      ;;
10046    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
10047    esac
10048  done
10049
10050  # Always prepend --prefix to ensure using the same prefix
10051  # in subdir configurations.
10052  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
10053
10054  ac_popdir=`pwd`
10055  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10056
10057    # Do not complain, so a configure script can configure whichever
10058    # parts of a large source tree are present.
10059    test -d $srcdir/$ac_dir || continue
10060
10061    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
10062echo "$as_me: configuring in $ac_dir" >&6;}
10063    { if $as_mkdir_p; then
10064    mkdir -p "$ac_dir"
10065  else
10066    as_dir="$ac_dir"
10067    as_dirs=
10068    while test ! -d "$as_dir"; do
10069      as_dirs="$as_dir $as_dirs"
10070      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10072         X"$as_dir" : 'X\(//\)[^/]' \| \
10073         X"$as_dir" : 'X\(//\)$' \| \
10074         X"$as_dir" : 'X\(/\)' \| \
10075         .     : '\(.\)' 2>/dev/null ||
10076echo X"$as_dir" |
10077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10078          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10079          /^X\(\/\/\)$/{ s//\1/; q; }
10080          /^X\(\/\).*/{ s//\1/; q; }
10081          s/.*/./; q'`
10082    done
10083    test ! -n "$as_dirs" || mkdir $as_dirs
10084  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10086   { (exit 1); exit 1; }; }; }
10087
10088    ac_builddir=.
10089
10090if test "$ac_dir" != .; then
10091  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10092  # A "../" for each directory in $ac_dir_suffix.
10093  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10094else
10095  ac_dir_suffix= ac_top_builddir=
10096fi
10097
10098case $srcdir in
10099  .)  # No --srcdir option.  We are building in place.
10100    ac_srcdir=.
10101    if test -z "$ac_top_builddir"; then
10102       ac_top_srcdir=.
10103    else
10104       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10105    fi ;;
10106  [\\/]* | ?:[\\/]* )  # Absolute path.
10107    ac_srcdir=$srcdir$ac_dir_suffix;
10108    ac_top_srcdir=$srcdir ;;
10109  *) # Relative path.
10110    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10111    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10112esac
10113
10114# Do not use `cd foo && pwd` to compute absolute paths, because
10115# the directories may not exist.
10116case `pwd` in
10117.) ac_abs_builddir="$ac_dir";;
10118*)
10119  case "$ac_dir" in
10120  .) ac_abs_builddir=`pwd`;;
10121  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10122  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10123  esac;;
10124esac
10125case $ac_abs_builddir in
10126.) ac_abs_top_builddir=${ac_top_builddir}.;;
10127*)
10128  case ${ac_top_builddir}. in
10129  .) ac_abs_top_builddir=$ac_abs_builddir;;
10130  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10131  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10132  esac;;
10133esac
10134case $ac_abs_builddir in
10135.) ac_abs_srcdir=$ac_srcdir;;
10136*)
10137  case $ac_srcdir in
10138  .) ac_abs_srcdir=$ac_abs_builddir;;
10139  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10140  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10141  esac;;
10142esac
10143case $ac_abs_builddir in
10144.) ac_abs_top_srcdir=$ac_top_srcdir;;
10145*)
10146  case $ac_top_srcdir in
10147  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10148  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10149  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10150  esac;;
10151esac
10152
10153
10154    cd $ac_dir
10155
10156    # Check for guested configure; otherwise get Cygnus style configure.
10157    if test -f $ac_srcdir/configure.gnu; then
10158      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
10159    elif test -f $ac_srcdir/configure; then
10160      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
10161    elif test -f $ac_srcdir/configure.in; then
10162      ac_sub_configure=$ac_configure
10163    else
10164      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10165echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10166      ac_sub_configure=
10167    fi
10168
10169    # The recursion is here.
10170    if test -n "$ac_sub_configure"; then
10171      # Make the cache file name correct relative to the subdirectory.
10172      case $cache_file in
10173      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10174      *) # Relative path.
10175        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
10176      esac
10177
10178      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10179echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10180      # The eval makes quoting arguments work.
10181      eval $ac_sub_configure $ac_sub_configure_args \
10182           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
10183        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10184echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10185   { (exit 1); exit 1; }; }
10186    fi
10187
10188    cd "$ac_popdir"
10189  done
10190fi
10191
Note: See TracBrowser for help on using the repository browser.