source: trunk/base/configure @ 15517

Last change on this file since 15517 was 14474, checked in by pguyot (Paul Guyot), 15 years ago

Regen on my own box with latest autoconf from DP.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 275.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"
2044                         || test ! -s conftest.err'
2045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046  (eval $ac_try) 2>&5
2047  ac_status=$?
2048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049  (exit $ac_status); }; } &&
2050         { ac_try='test -s conftest.$ac_objext'
2051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }; }; then
2056  ac_compiler_gnu=yes
2057else
2058  echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061ac_compiler_gnu=no
2062fi
2063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2064ac_cv_c_compiler_gnu=$ac_compiler_gnu
2065
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069GCC=`test $ac_compiler_gnu = yes && echo yes`
2070ac_test_CFLAGS=${CFLAGS+set}
2071ac_save_CFLAGS=$CFLAGS
2072CFLAGS="-g"
2073echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075if test "${ac_cv_prog_cc_g+set}" = set; then
2076  echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078  cat >conftest.$ac_ext <<_ACEOF
2079/* confdefs.h.  */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h.  */
2084
2085int
2086main ()
2087{
2088
2089  ;
2090  return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
2094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095  (eval $ac_compile) 2>conftest.er1
2096  ac_status=$?
2097  grep -v '^ *+' conftest.er1 >conftest.err
2098  rm -f conftest.er1
2099  cat conftest.err >&5
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); } &&
2102         { ac_try='test -z "$ac_c_werror_flag"
2103                         || test ! -s conftest.err'
2104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105  (eval $ac_try) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; } &&
2109         { ac_try='test -s conftest.$ac_objext'
2110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111  (eval $ac_try) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; }; then
2115  ac_cv_prog_cc_g=yes
2116else
2117  echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120ac_cv_prog_cc_g=no
2121fi
2122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2125echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2126if test "$ac_test_CFLAGS" = set; then
2127  CFLAGS=$ac_save_CFLAGS
2128elif test $ac_cv_prog_cc_g = yes; then
2129  if test "$GCC" = yes; then
2130    CFLAGS="-g -O2"
2131  else
2132    CFLAGS="-g"
2133  fi
2134else
2135  if test "$GCC" = yes; then
2136    CFLAGS="-O2"
2137  else
2138    CFLAGS=
2139  fi
2140fi
2141echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2142echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2143if test "${ac_cv_prog_cc_stdc+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  ac_cv_prog_cc_stdc=no
2147ac_save_CC=$CC
2148cat >conftest.$ac_ext <<_ACEOF
2149/* confdefs.h.  */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h.  */
2154#include <stdarg.h>
2155#include <stdio.h>
2156#include <sys/types.h>
2157#include <sys/stat.h>
2158/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2159struct buf { int x; };
2160FILE * (*rcsopen) (struct buf *, struct stat *, int);
2161static char *e (p, i)
2162     char **p;
2163     int i;
2164{
2165  return p[i];
2166}
2167static char *f (char * (*g) (char **, int), char **p, ...)
2168{
2169  char *s;
2170  va_list v;
2171  va_start (v,p);
2172  s = g (p, va_arg (v,int));
2173  va_end (v);
2174  return s;
2175}
2176
2177/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2178   function prototypes and stuff, but not '\xHH' hex character constants.
2179   These don't provoke an error unfortunately, instead are silently treated
2180   as 'x'.  The following induces an error, until -std1 is added to get
2181   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2182   array size at least.  It's necessary to write '\x00'==0 to get something
2183   that's true only with -std1.  */
2184int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2185
2186int test (int i, double x);
2187struct s1 {int (*f) (int a);};
2188struct s2 {int (*f) (double a);};
2189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2190int argc;
2191char **argv;
2192int
2193main ()
2194{
2195return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200# Don't try gcc -ansi; that turns off useful extensions and
2201# breaks some systems' header files.
2202# AIX                   -qlanglvl=ansi
2203# Ultrix and OSF/1      -std1
2204# HP-UX 10.20 and later -Ae
2205# HP-UX older versions  -Aa -D_HPUX_SOURCE
2206# SVR4                  -Xc -D__EXTENSIONS__
2207for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2208do
2209  CC="$ac_save_CC $ac_arg"
2210  rm -f conftest.$ac_objext
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212  (eval $ac_compile) 2>conftest.er1
2213  ac_status=$?
2214  grep -v '^ *+' conftest.er1 >conftest.err
2215  rm -f conftest.er1
2216  cat conftest.err >&5
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); } &&
2219         { ac_try='test -z "$ac_c_werror_flag"
2220                         || test ! -s conftest.err'
2221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222  (eval $ac_try) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; } &&
2226         { ac_try='test -s conftest.$ac_objext'
2227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228  (eval $ac_try) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; }; then
2232  ac_cv_prog_cc_stdc=$ac_arg
2233break
2234else
2235  echo "$as_me: failed program was:" >&5
2236sed 's/^/| /' conftest.$ac_ext >&5
2237
2238fi
2239rm -f conftest.err conftest.$ac_objext
2240done
2241rm -f conftest.$ac_ext conftest.$ac_objext
2242CC=$ac_save_CC
2243
2244fi
2245
2246case "x$ac_cv_prog_cc_stdc" in
2247  x|xno)
2248    echo "$as_me:$LINENO: result: none needed" >&5
2249echo "${ECHO_T}none needed" >&6 ;;
2250  *)
2251    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2252echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2253    CC="$CC $ac_cv_prog_cc_stdc" ;;
2254esac
2255
2256# Some people use a C++ compiler to compile C.  Since we use `exit',
2257# in C++ we need to declare it.  In case someone uses the same compiler
2258# for both compiling C and C++ we need to have the C++ compiler decide
2259# the declaration of exit, since it's the most demanding environment.
2260cat >conftest.$ac_ext <<_ACEOF
2261#ifndef __cplusplus
2262  choke me
2263#endif
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267  (eval $ac_compile) 2>conftest.er1
2268  ac_status=$?
2269  grep -v '^ *+' conftest.er1 >conftest.err
2270  rm -f conftest.er1
2271  cat conftest.err >&5
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); } &&
2274         { ac_try='test -z "$ac_c_werror_flag"
2275                         || test ! -s conftest.err'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; } &&
2281         { ac_try='test -s conftest.$ac_objext'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; }; then
2287  for ac_declaration in \
2288   '' \
2289   'extern "C" void std::exit (int) throw (); using std::exit;' \
2290   'extern "C" void std::exit (int); using std::exit;' \
2291   'extern "C" void exit (int) throw ();' \
2292   'extern "C" void exit (int);' \
2293   'void exit (int);'
2294do
2295  cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301$ac_declaration
2302#include <stdlib.h>
2303int
2304main ()
2305{
2306exit (42);
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>conftest.er1
2314  ac_status=$?
2315  grep -v '^ *+' conftest.er1 >conftest.err
2316  rm -f conftest.er1
2317  cat conftest.err >&5
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -z "$ac_c_werror_flag"
2321                         || test ! -s conftest.err'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; } &&
2327         { ac_try='test -s conftest.$ac_objext'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; }; then
2333  :
2334else
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338continue
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341  cat >conftest.$ac_ext <<_ACEOF
2342/* confdefs.h.  */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h.  */
2347$ac_declaration
2348int
2349main ()
2350{
2351exit (42);
2352  ;
2353  return 0;
2354}
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358  (eval $ac_compile) 2>conftest.er1
2359  ac_status=$?
2360  grep -v '^ *+' conftest.er1 >conftest.err
2361  rm -f conftest.er1
2362  cat conftest.err >&5
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); } &&
2365         { ac_try='test -z "$ac_c_werror_flag"
2366                         || test ! -s conftest.err'
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); }; } &&
2372         { ac_try='test -s conftest.$ac_objext'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; }; then
2378  break
2379else
2380  echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385done
2386rm -f conftest*
2387if test -n "$ac_declaration"; then
2388  echo '#ifdef __cplusplus' >>confdefs.h
2389  echo $ac_declaration      >>confdefs.h
2390  echo '#endif'             >>confdefs.h
2391fi
2392
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399ac_ext=c
2400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404
2405# Find a good install program.  We prefer a C program (faster),
2406# so one script is as good as another.  But avoid the broken or
2407# incompatible versions:
2408# SysV /etc/install, /usr/sbin/install
2409# SunOS /usr/etc/install
2410# IRIX /sbin/install
2411# AIX /bin/install
2412# AmigaOS /C/install, which installs bootblocks on floppy discs
2413# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2414# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2415# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2416# OS/2's system install, which has a completely different semantic
2417# ./install, which can be erroneously created by make from ./install.sh.
2418echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2419echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2420if test -z "$INSTALL"; then
2421if test "${ac_cv_path_install+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429  # Account for people who put trailing slashes in PATH elements.
2430case $as_dir/ in
2431  ./ | .// | /cC/* | \
2432  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2434  /usr/ucb/* ) ;;
2435  *)
2436    # OSF1 and SCO ODT 3.0 have their own names for install.
2437    # Don't use installbsd from OSF since it installs stuff as root
2438    # by default.
2439    for ac_prog in ginstall scoinst install; do
2440      for ac_exec_ext in '' $ac_executable_extensions; do
2441        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2442          if test $ac_prog = install &&
2443            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444            # AIX install.  It has an incompatible calling convention.
2445            :
2446          elif test $ac_prog = install &&
2447            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448            # program-specific install script used by HP pwplus--don't use.
2449            :
2450          else
2451            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452            break 3
2453          fi
2454        fi
2455      done
2456    done
2457    ;;
2458esac
2459done
2460
2461
2462fi
2463  if test "${ac_cv_path_install+set}" = set; then
2464    INSTALL=$ac_cv_path_install
2465  else
2466    # As a last resort, use the slow shell script.  We don't cache a
2467    # path for INSTALL within a source directory, because that will
2468    # break other packages using the cache if that directory is
2469    # removed, or if the path is relative.
2470    INSTALL=$ac_install_sh
2471  fi
2472fi
2473echo "$as_me:$LINENO: result: $INSTALL" >&5
2474echo "${ECHO_T}$INSTALL" >&6
2475
2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2477# It thinks the first close brace ends the variable substitution.
2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479
2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481
2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483
2484echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2485echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2486set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2487if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  cat >conftest.make <<\_ACEOF
2491all:
2492        @echo 'ac_maketemp="$(MAKE)"'
2493_ACEOF
2494# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2495eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2496if test -n "$ac_maketemp"; then
2497  eval ac_cv_prog_make_${ac_make}_set=yes
2498else
2499  eval ac_cv_prog_make_${ac_make}_set=no
2500fi
2501rm -f conftest.make
2502fi
2503if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2504  echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6
2506  SET_MAKE=
2507else
2508  echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510  SET_MAKE="MAKE=${MAKE-make}"
2511fi
2512
2513echo "$as_me:$LINENO: checking whether ln -s works" >&5
2514echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2515LN_S=$as_ln_s
2516if test "$LN_S" = "ln -s"; then
2517  echo "$as_me:$LINENO: result: yes" >&5
2518echo "${ECHO_T}yes" >&6
2519else
2520  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2521echo "${ECHO_T}no, using $LN_S" >&6
2522fi
2523
2524# Extract the first word of "cvs", so it can be a program name with args.
2525set dummy cvs; ac_word=$2
2526echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528if test "${ac_cv_path_CVS+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  case $CVS in
2532  [\\/]* | ?:[\\/]*)
2533  ac_cv_path_CVS="$CVS" # Let the user override the test with a path.
2534  ;;
2535  *)
2536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541  for ac_exec_ext in '' $ac_executable_extensions; do
2542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543    ac_cv_path_CVS="$as_dir/$ac_word$ac_exec_ext"
2544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548done
2549
2550  ;;
2551esac
2552fi
2553CVS=$ac_cv_path_CVS
2554
2555if test -n "$CVS"; then
2556  echo "$as_me:$LINENO: result: $CVS" >&5
2557echo "${ECHO_T}$CVS" >&6
2558else
2559  echo "$as_me:$LINENO: result: no" >&5
2560echo "${ECHO_T}no" >&6
2561fi
2562
2563# Extract the first word of "launchd", so it can be a program name with args.
2564set dummy launchd; ac_word=$2
2565echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567if test "${ac_cv_prog_HAVE_LAUNCHD+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  if test -n "$HAVE_LAUNCHD"; then
2571  ac_cv_prog_HAVE_LAUNCHD="$HAVE_LAUNCHD" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576  IFS=$as_save_IFS
2577  test -z "$as_dir" && as_dir=.
2578  for ac_exec_ext in '' $ac_executable_extensions; do
2579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580    ac_cv_prog_HAVE_LAUNCHD="yes"
2581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582    break 2
2583  fi
2584done
2585done
2586
2587fi
2588fi
2589HAVE_LAUNCHD=$ac_cv_prog_HAVE_LAUNCHD
2590if test -n "$HAVE_LAUNCHD"; then
2591  echo "$as_me:$LINENO: result: $HAVE_LAUNCHD" >&5
2592echo "${ECHO_T}$HAVE_LAUNCHD" >&6
2593else
2594  echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6
2596fi
2597
2598# Extract the first word of "launchctl", so it can be a program name with args.
2599set dummy launchctl; ac_word=$2
2600echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602if test "${ac_cv_path_LAUNCHCTL+set}" = set; then
2603  echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
2605  case $LAUNCHCTL in
2606  [\\/]* | ?:[\\/]*)
2607  ac_cv_path_LAUNCHCTL="$LAUNCHCTL" # Let the user override the test with a path.
2608  ;;
2609  *)
2610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615  for ac_exec_ext in '' $ac_executable_extensions; do
2616  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_path_LAUNCHCTL="$as_dir/$ac_word$ac_exec_ext"
2618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622done
2623
2624  ;;
2625esac
2626fi
2627LAUNCHCTL=$ac_cv_path_LAUNCHCTL
2628
2629if test -n "$LAUNCHCTL"; then
2630  echo "$as_me:$LINENO: result: $LAUNCHCTL" >&5
2631echo "${ECHO_T}$LAUNCHCTL" >&6
2632else
2633  echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6
2635fi
2636
2637# Extract the first word of "xcodebuild", so it can be a program name with args.
2638set dummy xcodebuild; ac_word=$2
2639echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641if test "${ac_cv_path_XCODEBUILD+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644  case $XCODEBUILD in
2645  [\\/]* | ?:[\\/]*)
2646  ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
2647  ;;
2648  *)
2649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652  IFS=$as_save_IFS
2653  test -z "$as_dir" && as_dir=.
2654  for ac_exec_ext in '' $ac_executable_extensions; do
2655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656    ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
2657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658    break 2
2659  fi
2660done
2661done
2662
2663  ;;
2664esac
2665fi
2666XCODEBUILD=$ac_cv_path_XCODEBUILD
2667
2668if test -n "$XCODEBUILD"; then
2669  echo "$as_me:$LINENO: result: $XCODEBUILD" >&5
2670echo "${ECHO_T}$XCODEBUILD" >&6
2671else
2672  echo "$as_me:$LINENO: result: no" >&5
2673echo "${ECHO_T}no" >&6
2674fi
2675
2676
2677
2678        # Extract the first word of "tar", so it can be a program name with args.
2679set dummy tar; ac_word=$2
2680echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682if test "${ac_cv_path_TAR+set}" = set; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  case $TAR in
2686  [\\/]* | ?:[\\/]*)
2687  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2688  ;;
2689  *)
2690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695  for ac_exec_ext in '' $ac_executable_extensions; do
2696  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2698    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702done
2703
2704  ;;
2705esac
2706fi
2707TAR=$ac_cv_path_TAR
2708
2709if test -n "$TAR"; then
2710  echo "$as_me:$LINENO: result: $TAR" >&5
2711echo "${ECHO_T}$TAR" >&6
2712else
2713  echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715fi
2716
2717        # Extract the first word of "gnutar", so it can be a program name with args.
2718set dummy gnutar; ac_word=$2
2719echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721if test "${ac_cv_path_GNUTAR+set}" = set; then
2722  echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724  case $GNUTAR in
2725  [\\/]* | ?:[\\/]*)
2726  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
2727  ;;
2728  *)
2729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  for ac_exec_ext in '' $ac_executable_extensions; do
2735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
2737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741done
2742
2743  ;;
2744esac
2745fi
2746GNUTAR=$ac_cv_path_GNUTAR
2747
2748if test -n "$GNUTAR"; then
2749  echo "$as_me:$LINENO: result: $GNUTAR" >&5
2750echo "${ECHO_T}$GNUTAR" >&6
2751else
2752  echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754fi
2755
2756
2757        echo "$as_me:$LINENO: checking for which tar variant to use" >&5
2758echo $ECHO_N "checking for which tar variant to use... $ECHO_C" >&6
2759        if test -n "$GNUTAR"; then
2760  TAR_CMD=$GNUTAR
2761else
2762  TAR_CMD=$TAR
2763fi
2764
2765        echo "$as_me:$LINENO: result: $TAR_CMD" >&5
2766echo "${ECHO_T}$TAR_CMD" >&6
2767
2768
2769        echo "$as_me:$LINENO: checking for $TAR_CMD --no-same-owner support" >&5
2770echo $ECHO_N "checking for $TAR_CMD --no-same-owner support... $ECHO_C" >&6
2771        no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`
2772        if test -z "$no_same_owner_support" ; then
2773                echo "$as_me:$LINENO: result: no" >&5
2774echo "${ECHO_T}no" >&6
2775        else
2776                echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778                TAR_CMD="$TAR_CMD --no-same-owner"
2779        fi
2780
2781
2782# Quiche eaters options.
2783if test x$GCC = xyes; then
2784        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
2785fi
2786
2787
2788
2789
2790        echo "$as_me:$LINENO: checking how to mark unused variables" >&5
2791echo $ECHO_N "checking how to mark unused variables... $ECHO_C" >&6
2792        cat >conftest.$ac_ext <<_ACEOF
2793/* confdefs.h.  */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h.  */
2798int a __attribute__ ((unused));
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802  (eval $ac_compile) 2>conftest.er1
2803  ac_status=$?
2804  grep -v '^ *+' conftest.er1 >conftest.err
2805  rm -f conftest.er1
2806  cat conftest.err >&5
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); } &&
2809         { ac_try='test -z "$ac_c_werror_flag"
2810                         || test ! -s conftest.err'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; } &&
2816         { ac_try='test -s conftest.$ac_objext'
2817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818  (eval $ac_try) 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); }; }; then
2822
2823cat >>confdefs.h <<\_ACEOF
2824#define UNUSED __attribute__((unused))
2825_ACEOF
2826
2827else
2828  echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831cat >>confdefs.h <<\_ACEOF
2832#define UNUSED
2833_ACEOF
2834
2835fi
2836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837
2838        echo "$as_me:$LINENO: result: " >&5
2839echo "${ECHO_T}" >&6
2840
2841
2842
2843
2844
2845        # Extract the first word of "mtree", so it can be a program name with args.
2846set dummy mtree; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_path_MTREE+set}" = set; then
2850  echo $ECHO_N "(cached) $ECHO_C" >&6
2851else
2852  case $MTREE in
2853  [\\/]* | ?:[\\/]*)
2854  ac_cv_path_MTREE="$MTREE" # Let the user override the test with a path.
2855  ;;
2856  *)
2857  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858as_dummy="/usr/bin:/usr/sbin:/bin:/sbin"
2859for as_dir in $as_dummy
2860do
2861  IFS=$as_save_IFS
2862  test -z "$as_dir" && as_dir=.
2863  for ac_exec_ext in '' $ac_executable_extensions; do
2864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865    ac_cv_path_MTREE="$as_dir/$ac_word$ac_exec_ext"
2866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870done
2871
2872  ;;
2873esac
2874fi
2875MTREE=$ac_cv_path_MTREE
2876
2877if test -n "$MTREE"; then
2878  echo "$as_me:$LINENO: result: $MTREE" >&5
2879echo "${ECHO_T}$MTREE" >&6
2880else
2881  echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885
2886        if test "x$MTREE" = "x" ; then
2887
2888
2889subdirs="$subdirs src/programs/mtree"
2890
2891                MTREE='$(TOPSRCDIR)/src/programs/mtree/mtree'
2892#               MTREE='${prefix}/bin/mtree'
2893                REPLACEMENT_PROGS="$REPLACEMENT_PROGS mtree"
2894        fi
2895
2896
2897
2898# Check whether --enable-launchd-support or --disable-launchd-support was given.
2899if test "${enable_launchd_support+set}" = set; then
2900  enableval="$enable_launchd_support"
2901
2902else
2903  enable_launchd_support=yes
2904fi;
2905ENABLE_LAUNCHD_SUPPORT=$enable_launchd_support
2906
2907if test x"${enable_launchd_support}" == "xyes"; then
2908
2909        FRAMEWORK_LIBS="-framework CoreFoundation"
2910
2911        echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
2912echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6
2913
2914        if test "${od_cv_have_framework_corefoundation+set}" = set; then
2915  echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917
2918                ac_save_LIBS="$LIBS"
2919                LIBS="$FRAMEWORK_LIBS $LIBS"
2920
2921                cat >conftest.$ac_ext <<_ACEOF
2922
2923                        /* confdefs.h.  */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h.  */
2928
2929                                        #include <CoreFoundation/CoreFoundation.h>
2930
2931int
2932main ()
2933{
2934
2935                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
2936                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
2937
2938  ;
2939  return 0;
2940}
2941
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965
2966                                od_cv_have_framework_corefoundation="yes"
2967
2968else
2969  echo "$as_me: failed program was:" >&5
2970sed 's/^/| /' conftest.$ac_ext >&5
2971
2972
2973                                od_cv_have_framework_corefoundation="no"
2974
2975
2976fi
2977rm -f conftest.err conftest.$ac_objext \
2978      conftest$ac_exeext conftest.$ac_ext
2979
2980                LIBS="$ac_save_LIBS"
2981
2982fi
2983
2984
2985        echo "$as_me:$LINENO: result: ${od_cv_have_framework_corefoundation}" >&5
2986echo "${ECHO_T}${od_cv_have_framework_corefoundation}" >&6
2987
2988        if test x"${od_cv_have_framework_corefoundation}" = "xyes"; then
2989
2990cat >>confdefs.h <<\_ACEOF
2991#define HAVE_FRAMEWORK_COREFOUNDATION
2992_ACEOF
2993
2994        fi
2995
2996
2997
2998
2999        FRAMEWORK_LIBS="-framework SystemConfiguration"
3000
3001        echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
3002echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6
3003
3004        if test "${od_cv_have_framework_systemconfiguration+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007
3008                ac_save_LIBS="$LIBS"
3009                LIBS="$FRAMEWORK_LIBS $LIBS"
3010
3011                cat >conftest.$ac_ext <<_ACEOF
3012
3013                        /* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018
3019                                        #include <SystemConfiguration/SystemConfiguration.h>
3020
3021int
3022main ()
3023{
3024
3025                                        int err = SCError();
3026                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
3027
3028  ;
3029  return 0;
3030}
3031
3032_ACEOF
3033rm -f conftest.$ac_objext conftest$ac_exeext
3034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3035  (eval $ac_link) 2>conftest.er1
3036  ac_status=$?
3037  grep -v '^ *+' conftest.er1 >conftest.err
3038  rm -f conftest.er1
3039  cat conftest.err >&5
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); } &&
3042         { ac_try='test -z "$ac_c_werror_flag"
3043                         || test ! -s conftest.err'
3044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045  (eval $ac_try) 2>&5
3046  ac_status=$?
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); }; } &&
3049         { ac_try='test -s conftest$ac_exeext'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; }; then
3055
3056                                od_cv_have_framework_systemconfiguration="yes"
3057
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062
3063                                od_cv_have_framework_systemconfiguration="no"
3064
3065
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069
3070                LIBS="$ac_save_LIBS"
3071
3072fi
3073
3074
3075        echo "$as_me:$LINENO: result: ${od_cv_have_framework_systemconfiguration}" >&5
3076echo "${ECHO_T}${od_cv_have_framework_systemconfiguration}" >&6
3077
3078        if test x"${od_cv_have_framework_systemconfiguration}" = "xyes"; then
3079
3080cat >>confdefs.h <<\_ACEOF
3081#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
3082_ACEOF
3083
3084        fi
3085
3086
3087
3088
3089        FRAMEWORK_LIBS="-framework IOKit"
3090
3091        echo "$as_me:$LINENO: checking for IOKit framework" >&5
3092echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6
3093
3094        if test "${od_cv_have_framework_iokit+set}" = set; then
3095  echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
3097
3098                ac_save_LIBS="$LIBS"
3099                LIBS="$FRAMEWORK_LIBS $LIBS"
3100
3101                cat >conftest.$ac_ext <<_ACEOF
3102
3103                        /* confdefs.h.  */
3104_ACEOF
3105cat confdefs.h >>conftest.$ac_ext
3106cat >>conftest.$ac_ext <<_ACEOF
3107/* end confdefs.h.  */
3108
3109                                        #include <IOKit/IOKitLib.h>
3110
3111int
3112main ()
3113{
3114
3115                                        IOCreateReceivePort(0, NULL);
3116                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
3117
3118  ;
3119  return 0;
3120}
3121
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
3124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125  (eval $ac_link) 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } &&
3132         { ac_try='test -z "$ac_c_werror_flag"
3133                         || test ! -s conftest.err'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; } &&
3139         { ac_try='test -s conftest$ac_exeext'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; }; then
3145
3146                                od_cv_have_framework_iokit="yes"
3147
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153                                od_cv_have_framework_iokit="no"
3154
3155
3156fi
3157rm -f conftest.err conftest.$ac_objext \
3158      conftest$ac_exeext conftest.$ac_ext
3159
3160                LIBS="$ac_save_LIBS"
3161
3162fi
3163
3164
3165        echo "$as_me:$LINENO: result: ${od_cv_have_framework_iokit}" >&5
3166echo "${ECHO_T}${od_cv_have_framework_iokit}" >&6
3167
3168        if test x"${od_cv_have_framework_iokit}" = "xyes"; then
3169
3170cat >>confdefs.h <<\_ACEOF
3171#define HAVE_FRAMEWORK_IOKIT
3172_ACEOF
3173
3174        fi
3175
3176
3177
3178
3179        FRAMEWORK_LIBS="-framework CoreFoundation"
3180
3181        echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
3182echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6
3183
3184        if test "${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187
3188                ac_save_LIBS="$LIBS"
3189                LIBS="$FRAMEWORK_LIBS $LIBS"
3190
3191                cat >conftest.$ac_ext <<_ACEOF
3192
3193                        /* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199                                        #include <CoreFoundation/CoreFoundation.h>
3200
3201int
3202main ()
3203{
3204
3205                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
3206
3207  ;
3208  return 0;
3209}
3210
3211_ACEOF
3212rm -f conftest.$ac_objext conftest$ac_exeext
3213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214  (eval $ac_link) 2>conftest.er1
3215  ac_status=$?
3216  grep -v '^ *+' conftest.er1 >conftest.err
3217  rm -f conftest.er1
3218  cat conftest.err >&5
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); } &&
3221         { ac_try='test -z "$ac_c_werror_flag"
3222                         || test ! -s conftest.err'
3223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224  (eval $ac_try) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; } &&
3228         { ac_try='test -s conftest$ac_exeext'
3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230  (eval $ac_try) 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234
3235                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
3236
3237else
3238  echo "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241
3242                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
3243
3244
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248
3249                LIBS="$ac_save_LIBS"
3250
3251fi
3252
3253
3254        echo "$as_me:$LINENO: result: ${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
3255echo "${ECHO_T}${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6
3256
3257        if test x"${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
3258
3259cat >>confdefs.h <<\_ACEOF
3260#define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
3261_ACEOF
3262
3263        fi
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273    echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
3274echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6
3275    result=no
3276        case $host_os in
3277        darwin*)
3278                if test "x$od_cv_have_framework_corefoundation" == "xyes" &&
3279                   test "x$od_cv_have_framework_systemconfiguration" == "xyes" &&
3280                   test "x$od_cv_have_framework_iokit" == "xyes" &&
3281                   test "x$od_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
3282                        result=yes
3283                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
3284                                  ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
3285
3286                fi
3287                ;;
3288        *)
3289        esac
3290        echo "$as_me:$LINENO: result: ${result}" >&5
3291echo "${ECHO_T}${result}" >&6
3292
3293fi
3294
3295
3296
3297
3298
3299# set default dports-directory
3300DPORTS_DIR_DEFAULT=`pwd | sed -e "s/base/dports/"`
3301
3302# Check for paths
3303
3304
3305
3306
3307
3308# Check whether --with-dports-dir or --without-dports-dir was given.
3309if test "${with_dports_dir+set}" = set; then
3310  withval="$with_dports_dir"
3311   dportsdir="$withval"
3312fi;
3313
3314
3315        echo "$as_me:$LINENO: checking for dports tree" >&5
3316echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
3317        if test "x$dportsdir" != "x" ; then
3318          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
3319                :
3320          else
3321                { { echo "$as_me:$LINENO: error: $dportsdir not a valid dports tree" >&5
3322echo "$as_me: error: $dportsdir not a valid dports tree" >&2;}
3323   { (exit 1); exit 1; }; }
3324          fi
3325        else
3326                                if test "x$DPORTS_DIR_DEFAULT" != "x" ; then
3327                  if test -d "$DPORTS_DIR_DEFAULT" -a -e "$DPORTS_DIR_DEFAULT/PortIndex" ; then
3328                        dportsdir=$DPORTS_DIR_DEFAULT
3329                  fi
3330                fi
3331        fi
3332
3333        if test "x$dportsdir" != "x" ; then
3334                echo "$as_me:$LINENO: result: $dportsdir" >&5
3335echo "${ECHO_T}$dportsdir" >&6
3336                DPORTSDIR="$dportsdir"
3337
3338        else
3339                { echo "$as_me:$LINENO: WARNING: No dports tree found" >&5
3340echo "$as_me: WARNING: No dports tree found" >&2;}
3341        fi
3342
3343
3344
3345
3346        echo "$as_me:$LINENO: checking for ports config directory" >&5
3347echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
3348
3349        portconfigdir='${sysconfdir}/ports'
3350
3351        echo "$as_me:$LINENO: result: $portconfigdir" >&5
3352echo "${ECHO_T}$portconfigdir" >&6
3353        PORTCONFIGDIR="$portconfigdir"
3354
3355
3356
3357
3358# Check for install ownership
3359
3360
3361
3362
3363# Check whether --with-install-user or --without-install-user was given.
3364if test "${with_install_user+set}" = set; then
3365  withval="$with_install_user"
3366   DSTUSR=$withval
3367fi;
3368
3369        echo "$as_me:$LINENO: checking for install user" >&5
3370echo $ECHO_N "checking for install user... $ECHO_C" >&6
3371        if test "x$DSTUSR" = "x" ; then
3372           DSTUSR=root
3373        fi
3374
3375        echo "$as_me:$LINENO: result: $DSTUSR" >&5
3376echo "${ECHO_T}$DSTUSR" >&6
3377
3378
3379
3380
3381
3382
3383# Check whether --with-install-group or --without-install-group was given.
3384if test "${with_install_group+set}" = set; then
3385  withval="$with_install_group"
3386   DSTGRP=$withval
3387fi;
3388
3389        echo "$as_me:$LINENO: checking for install group" >&5
3390echo $ECHO_N "checking for install group... $ECHO_C" >&6
3391        if test "x$DSTGRP" = "x" ; then
3392
3393           case $host_os in
3394           darwin*)
3395                DSTGRP="admin"
3396                ;;
3397           *)
3398                DSTGRP="wheel"
3399                ;;
3400           esac
3401        fi
3402
3403        echo "$as_me:$LINENO: result: $DSTGRP" >&5
3404echo "${ECHO_T}$DSTGRP" >&6
3405
3406
3407
3408
3409
3410
3411# Check whether --with-directory-mode or --without-directory-mode was given.
3412if test "${with_directory_mode+set}" = set; then
3413  withval="$with_directory_mode"
3414   DSTMODE=$withval
3415fi;
3416
3417        echo "$as_me:$LINENO: checking what permissions to use for installation directories" >&5
3418echo $ECHO_N "checking what permissions to use for installation directories... $ECHO_C" >&6
3419        if test "x$DSTMODE" = "x" ; then
3420           DSTMODE=0775
3421        fi
3422
3423        echo "$as_me:$LINENO: result: $DSTMODE" >&5
3424echo "${ECHO_T}$DSTMODE" >&6
3425
3426
3427
3428# Check for standard header files.
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3435echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3436# On Suns, sometimes $CPP names a directory.
3437if test -n "$CPP" && test -d "$CPP"; then
3438  CPP=
3439fi
3440if test -z "$CPP"; then
3441  if test "${ac_cv_prog_CPP+set}" = set; then
3442  echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444      # Double quotes because CPP needs to be expanded
3445    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446    do
3447      ac_preproc_ok=false
3448for ac_c_preproc_warn_flag in '' yes
3449do
3450  # Use a header file that comes with gcc, so configuring glibc
3451  # with a fresh cross-compiler works.
3452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453  # <limits.h> exists even on freestanding compilers.
3454  # On the NeXT, cc -E runs the code through the compiler's parser,
3455  # not just through cpp. "Syntax error" is here to catch this case.
3456  cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462#ifdef __STDC__
3463# include <limits.h>
3464#else
3465# include <assert.h>
3466#endif
3467                     Syntax error
3468_ACEOF
3469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3471  ac_status=$?
3472  grep -v '^ *+' conftest.er1 >conftest.err
3473  rm -f conftest.er1
3474  cat conftest.err >&5
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); } >/dev/null; then
3477  if test -s conftest.err; then
3478    ac_cpp_err=$ac_c_preproc_warn_flag
3479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480  else
3481    ac_cpp_err=
3482  fi
3483else
3484  ac_cpp_err=yes
3485fi
3486if test -z "$ac_cpp_err"; then
3487  :
3488else
3489  echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492  # Broken: fails on valid input.
3493continue
3494fi
3495rm -f conftest.err conftest.$ac_ext
3496
3497  # OK, works on sane cases.  Now check whether non-existent headers
3498  # can be detected and how.
3499  cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h.  */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h.  */
3505#include <ac_nonexistent.h>
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } >/dev/null; then
3515  if test -s conftest.err; then
3516    ac_cpp_err=$ac_c_preproc_warn_flag
3517    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518  else
3519    ac_cpp_err=
3520  fi
3521else
3522  ac_cpp_err=yes
3523fi
3524if test -z "$ac_cpp_err"; then
3525  # Broken: success on invalid input.
3526continue
3527else
3528  echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531  # Passes both tests.
3532ac_preproc_ok=:
3533break
3534fi
3535rm -f conftest.err conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then
3541  break
3542fi
3543
3544    done
3545    ac_cv_prog_CPP=$CPP
3546
3547fi
3548  CPP=$ac_cv_prog_CPP
3549else
3550  ac_cv_prog_CPP=$CPP
3551fi
3552echo "$as_me:$LINENO: result: $CPP" >&5
3553echo "${ECHO_T}$CPP" >&6
3554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557  # Use a header file that comes with gcc, so configuring glibc
3558  # with a fresh cross-compiler works.
3559  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560  # <limits.h> exists even on freestanding compilers.
3561  # On the NeXT, cc -E runs the code through the compiler's parser,
3562  # not just through cpp. "Syntax error" is here to catch this case.
3563  cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h.  */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h.  */
3569#ifdef __STDC__
3570# include <limits.h>
3571#else
3572# include <assert.h>
3573#endif
3574                     Syntax error
3575_ACEOF
3576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } >/dev/null; then
3584  if test -s conftest.err; then
3585    ac_cpp_err=$ac_c_preproc_warn_flag
3586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587  else
3588    ac_cpp_err=
3589  fi
3590else
3591  ac_cpp_err=yes
3592fi
3593if test -z "$ac_cpp_err"; then
3594  :
3595else
3596  echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599  # Broken: fails on valid input.
3600continue
3601fi
3602rm -f conftest.err conftest.$ac_ext
3603
3604  # OK, works on sane cases.  Now check whether non-existent headers
3605  # can be detected and how.
3606  cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h.  */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h.  */
3612#include <ac_nonexistent.h>
3613_ACEOF
3614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3615  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616  ac_status=$?
3617  grep -v '^ *+' conftest.er1 >conftest.err
3618  rm -f conftest.er1
3619  cat conftest.err >&5
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); } >/dev/null; then
3622  if test -s conftest.err; then
3623    ac_cpp_err=$ac_c_preproc_warn_flag
3624    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3625  else
3626    ac_cpp_err=
3627  fi
3628else
3629  ac_cpp_err=yes
3630fi
3631if test -z "$ac_cpp_err"; then
3632  # Broken: success on invalid input.
3633continue
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638  # Passes both tests.
3639ac_preproc_ok=:
3640break
3641fi
3642rm -f conftest.err conftest.$ac_ext
3643
3644done
3645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646rm -f conftest.err conftest.$ac_ext
3647if $ac_preproc_ok; then
3648  :
3649else
3650  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651See \`config.log' for more details." >&5
3652echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653See \`config.log' for more details." >&2;}
3654   { (exit 1); exit 1; }; }
3655fi
3656
3657ac_ext=c
3658ac_cpp='$CPP $CPPFLAGS'
3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662
3663
3664echo "$as_me:$LINENO: checking for egrep" >&5
3665echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3666if test "${ac_cv_prog_egrep+set}" = set; then
3667  echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
3669  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3670    then ac_cv_prog_egrep='grep -E'
3671    else ac_cv_prog_egrep='egrep'
3672    fi
3673fi
3674echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3675echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3676 EGREP=$ac_cv_prog_egrep
3677
3678
3679echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3681if test "${ac_cv_header_stdc+set}" = set; then
3682  echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684  cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690#include <stdlib.h>
3691#include <stdarg.h>
3692#include <string.h>
3693#include <float.h>
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705  (eval $ac_compile) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712         { ac_try='test -z "$ac_c_werror_flag"
3713                         || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719         { ac_try='test -s conftest.$ac_objext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  ac_cv_header_stdc=yes
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730ac_cv_header_stdc=no
3731fi
3732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3733
3734if test $ac_cv_header_stdc = yes; then
3735  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3736  cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h.  */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h.  */
3742#include <string.h>
3743
3744_ACEOF
3745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3746  $EGREP "memchr" >/dev/null 2>&1; then
3747  :
3748else
3749  ac_cv_header_stdc=no
3750fi
3751rm -f conftest*
3752
3753fi
3754
3755if test $ac_cv_header_stdc = yes; then
3756  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3757  cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763#include <stdlib.h>
3764
3765_ACEOF
3766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767  $EGREP "free" >/dev/null 2>&1; then
3768  :
3769else
3770  ac_cv_header_stdc=no
3771fi
3772rm -f conftest*
3773
3774fi
3775
3776if test $ac_cv_header_stdc = yes; then
3777  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778  if test "$cross_compiling" = yes; then
3779  :
3780else
3781  cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h.  */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h.  */
3787#include <ctype.h>
3788#if ((' ' & 0x0FF) == 0x020)
3789# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3790# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3791#else
3792# define ISLOWER(c) \
3793                   (('a' <= (c) && (c) <= 'i') \
3794                     || ('j' <= (c) && (c) <= 'r') \
3795                     || ('s' <= (c) && (c) <= 'z'))
3796# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3797#endif
3798
3799#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3800int
3801main ()
3802{
3803  int i;
3804  for (i = 0; i < 256; i++)
3805    if (XOR (islower (i), ISLOWER (i))
3806        || toupper (i) != TOUPPER (i))
3807      exit(2);
3808  exit (0);
3809}
3810_ACEOF
3811rm -f conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813  (eval $ac_link) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; }; then
3822  :
3823else
3824  echo "$as_me: program exited with status $ac_status" >&5
3825echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828( exit $ac_status )
3829ac_cv_header_stdc=no
3830fi
3831rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3832fi
3833fi
3834fi
3835echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3836echo "${ECHO_T}$ac_cv_header_stdc" >&6
3837if test $ac_cv_header_stdc = yes; then
3838
3839cat >>confdefs.h <<\_ACEOF
3840#define STDC_HEADERS 1
3841_ACEOF
3842
3843fi
3844
3845
3846
3847
3848
3849
3850ac_header_dirent=no
3851for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3852  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3853echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3854echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3855if eval "test \"\${$as_ac_Header+set}\" = set"; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  cat >conftest.$ac_ext <<_ACEOF
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864#include <sys/types.h>
3865#include <$ac_hdr>
3866
3867int
3868main ()
3869{
3870if ((DIR *) 0)
3871return 0;
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876rm -f conftest.$ac_objext
3877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878  (eval $ac_compile) 2>conftest.er1
3879  ac_status=$?
3880  grep -v '^ *+' conftest.er1 >conftest.err
3881  rm -f conftest.er1
3882  cat conftest.err >&5
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); } &&
3885         { ac_try='test -z "$ac_c_werror_flag"
3886                         || test ! -s conftest.err'
3887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888  (eval $ac_try) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; } &&
3892         { ac_try='test -s conftest.$ac_objext'
3893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894  (eval $ac_try) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); }; }; then
3898  eval "$as_ac_Header=yes"
3899else
3900  echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903eval "$as_ac_Header=no"
3904fi
3905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906fi
3907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3909if test `eval echo '${'$as_ac_Header'}'` = yes; then
3910  cat >>confdefs.h <<_ACEOF
3911#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3912_ACEOF
3913
3914ac_header_dirent=$ac_hdr; break
3915fi
3916
3917done
3918# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3919if test $ac_header_dirent = dirent.h; then
3920  echo "$as_me:$LINENO: checking for library containing opendir" >&5
3921echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3922if test "${ac_cv_search_opendir+set}" = set; then
3923  echo $ECHO_N "(cached) $ECHO_C" >&6
3924else
3925  ac_func_search_save_LIBS=$LIBS
3926ac_cv_search_opendir=no
3927cat >conftest.$ac_ext <<_ACEOF
3928/* confdefs.h.  */
3929_ACEOF
3930cat confdefs.h >>conftest.$ac_ext
3931cat >>conftest.$ac_ext <<_ACEOF
3932/* end confdefs.h.  */
3933
3934/* Override any gcc2 internal prototype to avoid an error.  */
3935#ifdef __cplusplus
3936extern "C"
3937#endif
3938/* We use char because int might match the return type of a gcc2
3939   builtin and then its argument prototype would still apply.  */
3940char opendir ();
3941int
3942main ()
3943{
3944opendir ();
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext conftest$ac_exeext
3950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951  (eval $ac_link) 2>conftest.er1
3952  ac_status=$?
3953  grep -v '^ *+' conftest.er1 >conftest.err
3954  rm -f conftest.er1
3955  cat conftest.err >&5
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } &&
3958         { ac_try='test -z "$ac_c_werror_flag"
3959                         || test ! -s conftest.err'
3960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961  (eval $ac_try) 2>&5
3962  ac_status=$?
3963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964  (exit $ac_status); }; } &&
3965         { ac_try='test -s conftest$ac_exeext'
3966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967  (eval $ac_try) 2>&5
3968  ac_status=$?
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); }; }; then
3971  ac_cv_search_opendir="none required"
3972else
3973  echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976fi
3977rm -f conftest.err conftest.$ac_objext \
3978      conftest$ac_exeext conftest.$ac_ext
3979if test "$ac_cv_search_opendir" = no; then
3980  for ac_lib in dir; do
3981    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3982    cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988
3989/* Override any gcc2 internal prototype to avoid an error.  */
3990#ifdef __cplusplus
3991extern "C"
3992#endif
3993/* We use char because int might match the return type of a gcc2
3994   builtin and then its argument prototype would still apply.  */
3995char opendir ();
3996int
3997main ()
3998{
3999opendir ();
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
4005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006  (eval $ac_link) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013         { ac_try='test -z "$ac_c_werror_flag"
4014                         || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020         { ac_try='test -s conftest$ac_exeext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  ac_cv_search_opendir="-l$ac_lib"
4027break
4028else
4029  echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032fi
4033rm -f conftest.err conftest.$ac_objext \
4034      conftest$ac_exeext conftest.$ac_ext
4035  done
4036fi
4037LIBS=$ac_func_search_save_LIBS
4038fi
4039echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4040echo "${ECHO_T}$ac_cv_search_opendir" >&6
4041if test "$ac_cv_search_opendir" != no; then
4042  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4043
4044fi
4045
4046else
4047  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4049if test "${ac_cv_search_opendir+set}" = set; then
4050  echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052  ac_func_search_save_LIBS=$LIBS
4053ac_cv_search_opendir=no
4054cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060
4061/* Override any gcc2 internal prototype to avoid an error.  */
4062#ifdef __cplusplus
4063extern "C"
4064#endif
4065/* We use char because int might match the return type of a gcc2
4066   builtin and then its argument prototype would still apply.  */
4067char opendir ();
4068int
4069main ()
4070{
4071opendir ();
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076rm -f conftest.$ac_objext conftest$ac_exeext
4077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078  (eval $ac_link) 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } &&
4085         { ac_try='test -z "$ac_c_werror_flag"
4086                         || test ! -s conftest.err'
4087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088  (eval $ac_try) 2>&5
4089  ac_status=$?
4090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091  (exit $ac_status); }; } &&
4092         { ac_try='test -s conftest$ac_exeext'
4093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094  (eval $ac_try) 2>&5
4095  ac_status=$?
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); }; }; then
4098  ac_cv_search_opendir="none required"
4099else
4100  echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103fi
4104rm -f conftest.err conftest.$ac_objext \
4105      conftest$ac_exeext conftest.$ac_ext
4106if test "$ac_cv_search_opendir" = no; then
4107  for ac_lib in x; do
4108    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4109    cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h.  */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h.  */
4115
4116/* Override any gcc2 internal prototype to avoid an error.  */
4117#ifdef __cplusplus
4118extern "C"
4119#endif
4120/* We use char because int might match the return type of a gcc2
4121   builtin and then its argument prototype would still apply.  */
4122char opendir ();
4123int
4124main ()
4125{
4126opendir ();
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext conftest$ac_exeext
4132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4133  (eval $ac_link) 2>conftest.er1
4134  ac_status=$?
4135  grep -v '^ *+' conftest.er1 >conftest.err
4136  rm -f conftest.er1
4137  cat conftest.err >&5
4138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139  (exit $ac_status); } &&
4140         { ac_try='test -z "$ac_c_werror_flag"
4141                         || test ! -s conftest.err'
4142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143  (eval $ac_try) 2>&5
4144  ac_status=$?
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); }; } &&
4147         { ac_try='test -s conftest$ac_exeext'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; }; then
4153  ac_cv_search_opendir="-l$ac_lib"
4154break
4155else
4156  echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159fi
4160rm -f conftest.err conftest.$ac_objext \
4161      conftest$ac_exeext conftest.$ac_ext
4162  done
4163fi
4164LIBS=$ac_func_search_save_LIBS
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4167echo "${ECHO_T}$ac_cv_search_opendir" >&6
4168if test "$ac_cv_search_opendir" != no; then
4169  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4170
4171fi
4172
4173fi
4174
4175echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4176echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4177if test "${ac_cv_header_sys_wait_h+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186#include <sys/types.h>
4187#include <sys/wait.h>
4188#ifndef WEXITSTATUS
4189# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4190#endif
4191#ifndef WIFEXITED
4192# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4193#endif
4194
4195int
4196main ()
4197{
4198  int s;
4199  wait (&s);
4200  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4201  ;
4202  return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207  (eval $ac_compile) 2>conftest.er1
4208  ac_status=$?
4209  grep -v '^ *+' conftest.er1 >conftest.err
4210  rm -f conftest.er1
4211  cat conftest.err >&5
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } &&
4214         { ac_try='test -z "$ac_c_werror_flag"
4215                         || test ! -s conftest.err'
4216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217  (eval $ac_try) 2>&5
4218  ac_status=$?
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); }; } &&
4221         { ac_try='test -s conftest.$ac_objext'
4222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223  (eval $ac_try) 2>&5
4224  ac_status=$?
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); }; }; then
4227  ac_cv_header_sys_wait_h=yes
4228else
4229  echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232ac_cv_header_sys_wait_h=no
4233fi
4234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235fi
4236echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4237echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4238if test $ac_cv_header_sys_wait_h = yes; then
4239
4240cat >>confdefs.h <<\_ACEOF
4241#define HAVE_SYS_WAIT_H 1
4242_ACEOF
4243
4244fi
4245
4246echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4247echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4248if test "${ac_cv_header_stat_broken+set}" = set; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251  cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h.  */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h.  */
4257#include <sys/types.h>
4258#include <sys/stat.h>
4259
4260#if defined(S_ISBLK) && defined(S_IFDIR)
4261# if S_ISBLK (S_IFDIR)
4262You lose.
4263# endif
4264#endif
4265
4266#if defined(S_ISBLK) && defined(S_IFCHR)
4267# if S_ISBLK (S_IFCHR)
4268You lose.
4269# endif
4270#endif
4271
4272#if defined(S_ISLNK) && defined(S_IFREG)
4273# if S_ISLNK (S_IFREG)
4274You lose.
4275# endif
4276#endif
4277
4278#if defined(S_ISSOCK) && defined(S_IFREG)
4279# if S_ISSOCK (S_IFREG)
4280You lose.
4281# endif
4282#endif
4283
4284_ACEOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286  $EGREP "You lose" >/dev/null 2>&1; then
4287  ac_cv_header_stat_broken=yes
4288else
4289  ac_cv_header_stat_broken=no
4290fi
4291rm -f conftest*
4292
4293fi
4294echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4295echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4296if test $ac_cv_header_stat_broken = yes; then
4297
4298cat >>confdefs.h <<\_ACEOF
4299#define STAT_MACROS_BROKEN 1
4300_ACEOF
4301
4302fi
4303
4304# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4315                  inttypes.h stdint.h unistd.h
4316do
4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318echo "$as_me:$LINENO: checking for $ac_header" >&5
4319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323  cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329$ac_includes_default
4330
4331#include <$ac_header>
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335  (eval $ac_compile) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342         { ac_try='test -z "$ac_c_werror_flag"
4343                         || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349         { ac_try='test -s conftest.$ac_objext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  eval "$as_ac_Header=yes"
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360eval "$as_ac_Header=no"
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366if test `eval echo '${'$as_ac_Header'}'` = yes; then
4367  cat >>confdefs.h <<_ACEOF
4368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369_ACEOF
4370
4371fi
4372
4373done
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386for 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
4387do
4388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390  echo "$as_me:$LINENO: checking for $ac_header" >&5
4391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393  echo $ECHO_N "(cached) $ECHO_C" >&6
4394fi
4395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397else
4398  # Is the header compilable?
4399echo "$as_me:$LINENO: checking $ac_header usability" >&5
4400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4401cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h.  */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h.  */
4407$ac_includes_default
4408#include <$ac_header>
4409_ACEOF
4410rm -f conftest.$ac_objext
4411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412  (eval $ac_compile) 2>conftest.er1
4413  ac_status=$?
4414  grep -v '^ *+' conftest.er1 >conftest.err
4415  rm -f conftest.er1
4416  cat conftest.err >&5
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); } &&
4419         { ac_try='test -z "$ac_c_werror_flag"
4420                         || test ! -s conftest.err'
4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); }; } &&
4426         { ac_try='test -s conftest.$ac_objext'
4427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428  (eval $ac_try) 2>&5
4429  ac_status=$?
4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431  (exit $ac_status); }; }; then
4432  ac_header_compiler=yes
4433else
4434  echo "$as_me: failed program was:" >&5
4435sed 's/^/| /' conftest.$ac_ext >&5
4436
4437ac_header_compiler=no
4438fi
4439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4441echo "${ECHO_T}$ac_header_compiler" >&6
4442
4443# Is the header present?
4444echo "$as_me:$LINENO: checking $ac_header presence" >&5
4445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4446cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452#include <$ac_header>
4453_ACEOF
4454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } >/dev/null; then
4462  if test -s conftest.err; then
4463    ac_cpp_err=$ac_c_preproc_warn_flag
4464    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465  else
4466    ac_cpp_err=
4467  fi
4468else
4469  ac_cpp_err=yes
4470fi
4471if test -z "$ac_cpp_err"; then
4472  ac_header_preproc=yes
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477  ac_header_preproc=no
4478fi
4479rm -f conftest.err conftest.$ac_ext
4480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481echo "${ECHO_T}$ac_header_preproc" >&6
4482
4483# So?  What about this header?
4484case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4485  yes:no: )
4486    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4490    ac_header_preproc=yes
4491    ;;
4492  no:yes:* )
4493    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4495    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4496echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4497    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4500echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4503    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4505    (
4506      cat <<\_ASBOX
4507## ----------------------------------------- ##
4508## Report this to darwinports@opendarwin.org ##
4509## ----------------------------------------- ##
4510_ASBOX
4511    ) |
4512      sed "s/^/$as_me: WARNING:     /" >&2
4513    ;;
4514esac
4515echo "$as_me:$LINENO: checking for $ac_header" >&5
4516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  eval "$as_ac_Header=\$ac_header_preproc"
4521fi
4522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4524
4525fi
4526if test `eval echo '${'$as_ac_Header'}'` = yes; then
4527  cat >>confdefs.h <<_ACEOF
4528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4529_ACEOF
4530
4531fi
4532
4533done
4534
4535
4536INCLUDES="-I.. -I. $INCLUDES"
4537
4538# Checks for library functions.
4539echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4540echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
4541if test "${ac_cv_func_closedir_void+set}" = set; then
4542  echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544  if test "$cross_compiling" = yes; then
4545  ac_cv_func_closedir_void=yes
4546else
4547  cat >conftest.$ac_ext <<_ACEOF
4548/* confdefs.h.  */
4549_ACEOF
4550cat confdefs.h >>conftest.$ac_ext
4551cat >>conftest.$ac_ext <<_ACEOF
4552/* end confdefs.h.  */
4553$ac_includes_default
4554#include <$ac_header_dirent>
4555#ifndef __cplusplus
4556int closedir ();
4557#endif
4558
4559int
4560main ()
4561{
4562exit (closedir (opendir (".")) != 0);
4563  ;
4564  return 0;
4565}
4566_ACEOF
4567rm -f conftest$ac_exeext
4568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569  (eval $ac_link) 2>&5
4570  ac_status=$?
4571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; }; then
4578  ac_cv_func_closedir_void=no
4579else
4580  echo "$as_me: program exited with status $ac_status" >&5
4581echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
4584( exit $ac_status )
4585ac_cv_func_closedir_void=yes
4586fi
4587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588fi
4589fi
4590echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4591echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
4592if test $ac_cv_func_closedir_void = yes; then
4593
4594cat >>confdefs.h <<\_ACEOF
4595#define CLOSEDIR_VOID 1
4596_ACEOF
4597
4598fi
4599
4600echo "$as_me:$LINENO: checking for pid_t" >&5
4601echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4602if test "${ac_cv_type_pid_t+set}" = set; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h.  */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h.  */
4611$ac_includes_default
4612int
4613main ()
4614{
4615if ((pid_t *) 0)
4616  return 0;
4617if (sizeof (pid_t))
4618  return 0;
4619  ;
4620  return 0;
4621}
4622_ACEOF
4623rm -f conftest.$ac_objext
4624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4625  (eval $ac_compile) 2>conftest.er1
4626  ac_status=$?
4627  grep -v '^ *+' conftest.er1 >conftest.err
4628  rm -f conftest.er1
4629  cat conftest.err >&5
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); } &&
4632         { ac_try='test -z "$ac_c_werror_flag"
4633                         || test ! -s conftest.err'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; } &&
4639         { ac_try='test -s conftest.$ac_objext'
4640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641  (eval $ac_try) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; }; then
4645  ac_cv_type_pid_t=yes
4646else
4647  echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650ac_cv_type_pid_t=no
4651fi
4652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4653fi
4654echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4655echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4656if test $ac_cv_type_pid_t = yes; then
4657  :
4658else
4659
4660cat >>confdefs.h <<_ACEOF
4661#define pid_t int
4662_ACEOF
4663
4664fi
4665
4666
4667
4668for ac_header in unistd.h vfork.h
4669do
4670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671if eval "test \"\${$as_ac_Header+set}\" = set"; then
4672  echo "$as_me:$LINENO: checking for $ac_header" >&5
4673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4674if eval "test \"\${$as_ac_Header+set}\" = set"; then
4675  echo $ECHO_N "(cached) $ECHO_C" >&6
4676fi
4677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4679else
4680  # Is the header compilable?
4681echo "$as_me:$LINENO: checking $ac_header usability" >&5
4682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4683cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h.  */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h.  */
4689$ac_includes_default
4690#include <$ac_header>
4691_ACEOF
4692rm -f conftest.$ac_objext
4693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694  (eval $ac_compile) 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } &&
4701         { ac_try='test -z "$ac_c_werror_flag"
4702                         || test ! -s conftest.err'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; } &&
4708         { ac_try='test -s conftest.$ac_objext'
4709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710  (eval $ac_try) 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; }; then
4714  ac_header_compiler=yes
4715else
4716  echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719ac_header_compiler=no
4720fi
4721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4723echo "${ECHO_T}$ac_header_compiler" >&6
4724
4725# Is the header present?
4726echo "$as_me:$LINENO: checking $ac_header presence" >&5
4727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4728cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h.  */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h.  */
4734#include <$ac_header>
4735_ACEOF
4736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738  ac_status=$?
4739  grep -v '^ *+' conftest.er1 >conftest.err
4740  rm -f conftest.er1
4741  cat conftest.err >&5
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); } >/dev/null; then
4744  if test -s conftest.err; then
4745    ac_cpp_err=$ac_c_preproc_warn_flag
4746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4747  else
4748    ac_cpp_err=
4749  fi
4750else
4751  ac_cpp_err=yes
4752fi
4753if test -z "$ac_cpp_err"; then
4754  ac_header_preproc=yes
4755else
4756  echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759  ac_header_preproc=no
4760fi
4761rm -f conftest.err conftest.$ac_ext
4762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4763echo "${ECHO_T}$ac_header_preproc" >&6
4764
4765# So?  What about this header?
4766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767  yes:no: )
4768    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4770    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4772    ac_header_preproc=yes
4773    ;;
4774  no:yes:* )
4775    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4777    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4778echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4779    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4781    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4782echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4783    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4787    (
4788      cat <<\_ASBOX
4789## ----------------------------------------- ##
4790## Report this to darwinports@opendarwin.org ##
4791## ----------------------------------------- ##
4792_ASBOX
4793    ) |
4794      sed "s/^/$as_me: WARNING:     /" >&2
4795    ;;
4796esac
4797echo "$as_me:$LINENO: checking for $ac_header" >&5
4798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4799if eval "test \"\${$as_ac_Header+set}\" = set"; then
4800  echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
4802  eval "$as_ac_Header=\$ac_header_preproc"
4803fi
4804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806
4807fi
4808if test `eval echo '${'$as_ac_Header'}'` = yes; then
4809  cat >>confdefs.h <<_ACEOF
4810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811_ACEOF
4812
4813fi
4814
4815done
4816
4817
4818
4819for ac_func in fork vfork
4820do
4821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4822echo "$as_me:$LINENO: checking for $ac_func" >&5
4823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4824if eval "test \"\${$as_ac_var+set}\" = set"; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h.  */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h.  */
4833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4835#define $ac_func innocuous_$ac_func
4836
4837/* System header to define __stub macros and hopefully few prototypes,
4838    which can conflict with char $ac_func (); below.
4839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840    <limits.h> exists even on freestanding compilers.  */
4841
4842#ifdef __STDC__
4843# include <limits.h>
4844#else
4845# include <assert.h>
4846#endif
4847
4848#undef $ac_func
4849
4850/* Override any gcc2 internal prototype to avoid an error.  */
4851#ifdef __cplusplus
4852extern "C"
4853{
4854#endif
4855/* We use char because int might match the return type of a gcc2
4856   builtin and then its argument prototype would still apply.  */
4857char $ac_func ();
4858/* The GNU C library defines this for functions which it implements
4859    to always fail with ENOSYS.  Some functions are actually named
4860    something starting with __ and the normal name is an alias.  */
4861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4862choke me
4863#else
4864char (*f) () = $ac_func;
4865#endif
4866#ifdef __cplusplus
4867}
4868#endif
4869
4870int
4871main ()
4872{
4873return f != $ac_func;
4874  ;
4875  return 0;
4876}
4877_ACEOF
4878rm -f conftest.$ac_objext conftest$ac_exeext
4879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880  (eval $ac_link) 2>conftest.er1
4881  ac_status=$?
4882  grep -v '^ *+' conftest.er1 >conftest.err
4883  rm -f conftest.er1
4884  cat conftest.err >&5
4885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886  (exit $ac_status); } &&
4887         { ac_try='test -z "$ac_c_werror_flag"
4888                         || test ! -s conftest.err'
4889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890  (eval $ac_try) 2>&5
4891  ac_status=$?
4892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893  (exit $ac_status); }; } &&
4894         { ac_try='test -s conftest$ac_exeext'
4895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896  (eval $ac_try) 2>&5
4897  ac_status=$?
4898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899  (exit $ac_status); }; }; then
4900  eval "$as_ac_var=yes"
4901else
4902  echo "$as_me: failed program was:" >&5
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
4905eval "$as_ac_var=no"
4906fi
4907rm -f conftest.err conftest.$ac_objext \
4908      conftest$ac_exeext conftest.$ac_ext
4909fi
4910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4911echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4912if test `eval echo '${'$as_ac_var'}'` = yes; then
4913  cat >>confdefs.h <<_ACEOF
4914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4915_ACEOF
4916
4917fi
4918done
4919
4920if test "x$ac_cv_func_fork" = xyes; then
4921  echo "$as_me:$LINENO: checking for working fork" >&5
4922echo $ECHO_N "checking for working fork... $ECHO_C" >&6
4923if test "${ac_cv_func_fork_works+set}" = set; then
4924  echo $ECHO_N "(cached) $ECHO_C" >&6
4925else
4926  if test "$cross_compiling" = yes; then
4927  ac_cv_func_fork_works=cross
4928else
4929  cat >conftest.$ac_ext <<_ACEOF
4930/* By Ruediger Kuhlmann. */
4931      #include <sys/types.h>
4932      #if HAVE_UNISTD_H
4933      # include <unistd.h>
4934      #endif
4935      /* Some systems only have a dummy stub for fork() */
4936      int main ()
4937      {
4938        if (fork() < 0)
4939          exit (1);
4940        exit (0);
4941      }
4942_ACEOF
4943rm -f conftest$ac_exeext
4944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945  (eval $ac_link) 2>&5
4946  ac_status=$?
4947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950  (eval $ac_try) 2>&5
4951  ac_status=$?
4952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); }; }; then
4954  ac_cv_func_fork_works=yes
4955else
4956  echo "$as_me: program exited with status $ac_status" >&5
4957echo "$as_me: failed program was:" >&5
4958sed 's/^/| /' conftest.$ac_ext >&5
4959
4960( exit $ac_status )
4961ac_cv_func_fork_works=no
4962fi
4963rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4964fi
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
4967echo "${ECHO_T}$ac_cv_func_fork_works" >&6
4968
4969else
4970  ac_cv_func_fork_works=$ac_cv_func_fork
4971fi
4972if test "x$ac_cv_func_fork_works" = xcross; then
4973  case $host in
4974    *-*-amigaos* | *-*-msdosdjgpp*)
4975      # Override, as these systems have only a dummy fork() stub
4976      ac_cv_func_fork_works=no
4977      ;;
4978    *)
4979      ac_cv_func_fork_works=yes
4980      ;;
4981  esac
4982  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4983echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4984fi
4985ac_cv_func_vfork_works=$ac_cv_func_vfork
4986if test "x$ac_cv_func_vfork" = xyes; then
4987  echo "$as_me:$LINENO: checking for working vfork" >&5
4988echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
4989if test "${ac_cv_func_vfork_works+set}" = set; then
4990  echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992  if test "$cross_compiling" = yes; then
4993  ac_cv_func_vfork_works=cross
4994else
4995  cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001/* Thanks to Paul Eggert for this test.  */
5002#include <stdio.h>
5003#include <stdlib.h>
5004#include <sys/types.h>
5005#include <sys/stat.h>
5006#include <sys/wait.h>
5007#if HAVE_UNISTD_H
5008# include <unistd.h>
5009#endif
5010#if HAVE_VFORK_H
5011# include <vfork.h>
5012#endif
5013/* On some sparc systems, changes by the child to local and incoming
5014   argument registers are propagated back to the parent.  The compiler
5015   is told about this with #include <vfork.h>, but some compilers
5016   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5017   static variable whose address is put into a register that is
5018   clobbered by the vfork.  */
5019static void
5020#ifdef __cplusplus
5021sparc_address_test (int arg)
5022# else
5023sparc_address_test (arg) int arg;
5024#endif
5025{
5026  static pid_t child;
5027  if (!child) {
5028    child = vfork ();
5029    if (child < 0) {
5030      perror ("vfork");
5031      _exit(2);
5032    }
5033    if (!child) {
5034      arg = getpid();
5035      write(-1, "", 0);
5036      _exit (arg);
5037    }
5038  }
5039}
5040
5041int
5042main ()
5043{
5044  pid_t parent = getpid ();
5045  pid_t child;
5046
5047  sparc_address_test (0);
5048
5049  child = vfork ();
5050
5051  if (child == 0) {
5052    /* Here is another test for sparc vfork register problems.  This
5053       test uses lots of local variables, at least as many local
5054       variables as main has allocated so far including compiler
5055       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5056       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5057       reuse the register of parent for one of the local variables,
5058       since it will think that parent can't possibly be used any more
5059       in this routine.  Assigning to the local variable will thus
5060       munge parent in the parent process.  */
5061    pid_t
5062      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5063      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5064    /* Convince the compiler that p..p7 are live; otherwise, it might
5065       use the same hardware register for all 8 local variables.  */
5066    if (p != p1 || p != p2 || p != p3 || p != p4
5067        || p != p5 || p != p6 || p != p7)
5068      _exit(1);
5069
5070    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5071       from child file descriptors.  If the child closes a descriptor
5072       before it execs or exits, this munges the parent's descriptor
5073       as well.  Test for this by closing stdout in the child.  */
5074    _exit(close(fileno(stdout)) != 0);
5075  } else {
5076    int status;
5077    struct stat st;
5078
5079    while (wait(&status) != child)
5080      ;
5081    exit(
5082         /* Was there some problem with vforking?  */
5083         child < 0
5084
5085         /* Did the child fail?  (This shouldn't happen.)  */
5086         || status
5087
5088         /* Did the vfork/compiler bug occur?  */
5089         || parent != getpid()
5090
5091         /* Did the file descriptor bug occur?  */
5092         || fstat(fileno(stdout), &st) != 0
5093         );
5094  }
5095}
5096_ACEOF
5097rm -f conftest$ac_exeext
5098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099  (eval $ac_link) 2>&5
5100  ac_status=$?
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104  (eval $ac_try) 2>&5
5105  ac_status=$?
5106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107  (exit $ac_status); }; }; then
5108  ac_cv_func_vfork_works=yes
5109else
5110  echo "$as_me: program exited with status $ac_status" >&5
5111echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114( exit $ac_status )
5115ac_cv_func_vfork_works=no
5116fi
5117rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118fi
5119fi
5120echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5121echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5122
5123fi;
5124if test "x$ac_cv_func_fork_works" = xcross; then
5125  ac_cv_func_vfork_works=$ac_cv_func_vfork
5126  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5127echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5128fi
5129
5130if test "x$ac_cv_func_vfork_works" = xyes; then
5131
5132cat >>confdefs.h <<\_ACEOF
5133#define HAVE_WORKING_VFORK 1
5134_ACEOF
5135
5136else
5137
5138cat >>confdefs.h <<\_ACEOF
5139#define vfork fork
5140_ACEOF
5141
5142fi
5143if test "x$ac_cv_func_fork_works" = xyes; then
5144
5145cat >>confdefs.h <<\_ACEOF
5146#define HAVE_WORKING_FORK 1
5147_ACEOF
5148
5149fi
5150
5151echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5152echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
5153if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5154  echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156  cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h.  */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h.  */
5162$ac_includes_default
5163int
5164main ()
5165{
5166#ifndef strerror_r
5167  char *p = (char *) strerror_r;
5168#endif
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176  (eval $ac_compile) 2>conftest.er1
5177  ac_status=$?
5178  grep -v '^ *+' conftest.er1 >conftest.err
5179  rm -f conftest.er1
5180  cat conftest.err >&5
5181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182  (exit $ac_status); } &&
5183         { ac_try='test -z "$ac_c_werror_flag"
5184                         || test ! -s conftest.err'
5185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186  (eval $ac_try) 2>&5
5187  ac_status=$?
5188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189  (exit $ac_status); }; } &&
5190         { ac_try='test -s conftest.$ac_objext'
5191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192  (eval $ac_try) 2>&5
5193  ac_status=$?
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); }; }; then
5196  ac_cv_have_decl_strerror_r=yes
5197else
5198  echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201ac_cv_have_decl_strerror_r=no
5202fi
5203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204fi
5205echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5206echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
5207if test $ac_cv_have_decl_strerror_r = yes; then
5208
5209cat >>confdefs.h <<_ACEOF
5210#define HAVE_DECL_STRERROR_R 1
5211_ACEOF
5212
5213
5214else
5215  cat >>confdefs.h <<_ACEOF
5216#define HAVE_DECL_STRERROR_R 0
5217_ACEOF
5218
5219
5220fi
5221
5222
5223
5224for ac_func in strerror_r
5225do
5226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5227echo "$as_me:$LINENO: checking for $ac_func" >&5
5228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5229if eval "test \"\${$as_ac_var+set}\" = set"; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232  cat >conftest.$ac_ext <<_ACEOF
5233/* confdefs.h.  */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h.  */
5238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5240#define $ac_func innocuous_$ac_func
5241
5242/* System header to define __stub macros and hopefully few prototypes,
5243    which can conflict with char $ac_func (); below.
5244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5245    <limits.h> exists even on freestanding compilers.  */
5246
5247#ifdef __STDC__
5248# include <limits.h>
5249#else
5250# include <assert.h>
5251#endif
5252
5253#undef $ac_func
5254
5255/* Override any gcc2 internal prototype to avoid an error.  */
5256#ifdef __cplusplus
5257extern "C"
5258{
5259#endif
5260/* We use char because int might match the return type of a gcc2
5261   builtin and then its argument prototype would still apply.  */
5262char $ac_func ();
5263/* The GNU C library defines this for functions which it implements
5264    to always fail with ENOSYS.  Some functions are actually named
5265    something starting with __ and the normal name is an alias.  */
5266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5267choke me
5268#else
5269char (*f) () = $ac_func;
5270#endif
5271#ifdef __cplusplus
5272}
5273#endif
5274
5275int
5276main ()
5277{
5278return f != $ac_func;
5279  ;
5280  return 0;
5281}
5282_ACEOF
5283rm -f conftest.$ac_objext conftest$ac_exeext
5284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285  (eval $ac_link) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } &&
5292         { ac_try='test -z "$ac_c_werror_flag"
5293                         || test ! -s conftest.err'
5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295  (eval $ac_try) 2>&5
5296  ac_status=$?
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); }; } &&
5299         { ac_try='test -s conftest$ac_exeext'
5300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301  (eval $ac_try) 2>&5
5302  ac_status=$?
5303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304  (exit $ac_status); }; }; then
5305  eval "$as_ac_var=yes"
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310eval "$as_ac_var=no"
5311fi
5312rm -f conftest.err conftest.$ac_objext \
5313      conftest$ac_exeext conftest.$ac_ext
5314fi
5315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5317if test `eval echo '${'$as_ac_var'}'` = yes; then
5318  cat >>confdefs.h <<_ACEOF
5319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5320_ACEOF
5321
5322fi
5323done
5324
5325echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5326echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
5327if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5328  echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330
5331    ac_cv_func_strerror_r_char_p=no
5332    if test $ac_cv_have_decl_strerror_r = yes; then
5333      cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h.  */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h.  */
5339$ac_includes_default
5340int
5341main ()
5342{
5343
5344          char buf[100];
5345          char x = *strerror_r (0, buf, sizeof buf);
5346          char *p = strerror_r (0, buf, sizeof buf);
5347
5348  ;
5349  return 0;
5350}
5351_ACEOF
5352rm -f conftest.$ac_objext
5353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354  (eval $ac_compile) 2>conftest.er1
5355  ac_status=$?
5356  grep -v '^ *+' conftest.er1 >conftest.err
5357  rm -f conftest.er1
5358  cat conftest.err >&5
5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360  (exit $ac_status); } &&
5361         { ac_try='test -z "$ac_c_werror_flag"
5362                         || test ! -s conftest.err'
5363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364  (eval $ac_try) 2>&5
5365  ac_status=$?
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); }; } &&
5368         { ac_try='test -s conftest.$ac_objext'
5369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370  (eval $ac_try) 2>&5
5371  ac_status=$?
5372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373  (exit $ac_status); }; }; then
5374  ac_cv_func_strerror_r_char_p=yes
5375else
5376  echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379fi
5380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5381    else
5382      # strerror_r is not declared.  Choose between
5383      # systems that have relatively inaccessible declarations for the
5384      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5385      # former has a strerror_r that returns char*, while the latter
5386      # has a strerror_r that returns `int'.
5387      # This test should segfault on the DEC system.
5388      if test "$cross_compiling" = yes; then
5389  :
5390else
5391  cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h.  */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h.  */
5397$ac_includes_default
5398        extern char *strerror_r ();
5399int
5400main ()
5401{
5402char buf[100];
5403          char x = *strerror_r (0, buf, sizeof buf);
5404          exit (!isalpha (x));
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409rm -f conftest$ac_exeext
5410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411  (eval $ac_link) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416  (eval $ac_try) 2>&5
5417  ac_status=$?
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); }; }; then
5420  ac_cv_func_strerror_r_char_p=yes
5421else
5422  echo "$as_me: program exited with status $ac_status" >&5
5423echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426fi
5427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5428fi
5429    fi
5430
5431fi
5432echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5433echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
5434if test $ac_cv_func_strerror_r_char_p = yes; then
5435
5436cat >>confdefs.h <<\_ACEOF
5437#define STRERROR_R_CHAR_P 1
5438_ACEOF
5439
5440fi
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456for ac_func in bzero memset dup2 regcomp strdup strerror strtol fgetln lockf flock setmode strcasecmp strncasecmp copyfile
5457do
5458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5459echo "$as_me:$LINENO: checking for $ac_func" >&5
5460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5461if eval "test \"\${$as_ac_var+set}\" = set"; then
5462  echo $ECHO_N "(cached) $ECHO_C" >&6
5463else
5464  cat >conftest.$ac_ext <<_ACEOF
5465/* confdefs.h.  */
5466_ACEOF
5467cat confdefs.h >>conftest.$ac_ext
5468cat >>conftest.$ac_ext <<_ACEOF
5469/* end confdefs.h.  */
5470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5472#define $ac_func innocuous_$ac_func
5473
5474/* System header to define __stub macros and hopefully few prototypes,
5475    which can conflict with char $ac_func (); below.
5476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5477    <limits.h> exists even on freestanding compilers.  */
5478
5479#ifdef __STDC__
5480# include <limits.h>
5481#else
5482# include <assert.h>
5483#endif
5484
5485#undef $ac_func
5486
5487/* Override any gcc2 internal prototype to avoid an error.  */
5488#ifdef __cplusplus
5489extern "C"
5490{
5491#endif
5492/* We use char because int might match the return type of a gcc2
5493   builtin and then its argument prototype would still apply.  */
5494char $ac_func ();
5495/* The GNU C library defines this for functions which it implements
5496    to always fail with ENOSYS.  Some functions are actually named
5497    something starting with __ and the normal name is an alias.  */
5498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5499choke me
5500#else
5501char (*f) () = $ac_func;
5502#endif
5503#ifdef __cplusplus
5504}
5505#endif
5506
5507int
5508main ()
5509{
5510return f != $ac_func;
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext conftest$ac_exeext
5516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517  (eval $ac_link) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } &&
5524         { ac_try='test -z "$ac_c_werror_flag"
5525                         || test ! -s conftest.err'
5526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527  (eval $ac_try) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; } &&
5531         { ac_try='test -s conftest$ac_exeext'
5532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533  (eval $ac_try) 2>&5
5534  ac_status=$?
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); }; }; then
5537  eval "$as_ac_var=yes"
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542eval "$as_ac_var=no"
5543fi
5544rm -f conftest.err conftest.$ac_objext \
5545      conftest$ac_exeext conftest.$ac_ext
5546fi
5547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5549if test `eval echo '${'$as_ac_var'}'` = yes; then
5550  cat >>confdefs.h <<_ACEOF
5551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5552_ACEOF
5553
5554fi
5555done
5556
5557
5558# Check for md5 implementation
5559
5560
5561        # Check for libmd, which is prefered
5562        echo "$as_me:$LINENO: checking for MD5Update in -lmd" >&5
5563echo $ECHO_N "checking for MD5Update in -lmd... $ECHO_C" >&6
5564if test "${ac_cv_lib_md_MD5Update+set}" = set; then
5565  echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567  ac_check_lib_save_LIBS=$LIBS
5568LIBS="-lmd  $LIBS"
5569cat >conftest.$ac_ext <<_ACEOF
5570/* confdefs.h.  */
5571_ACEOF
5572cat confdefs.h >>conftest.$ac_ext
5573cat >>conftest.$ac_ext <<_ACEOF
5574/* end confdefs.h.  */
5575
5576/* Override any gcc2 internal prototype to avoid an error.  */
5577#ifdef __cplusplus
5578extern "C"
5579#endif
5580/* We use char because int might match the return type of a gcc2
5581   builtin and then its argument prototype would still apply.  */
5582char MD5Update ();
5583int
5584main ()
5585{
5586MD5Update ();
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591rm -f conftest.$ac_objext conftest$ac_exeext
5592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593  (eval $ac_link) 2>conftest.er1
5594  ac_status=$?
5595  grep -v '^ *+' conftest.er1 >conftest.err
5596  rm -f conftest.er1
5597  cat conftest.err >&5
5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); } &&
5600         { ac_try='test -z "$ac_c_werror_flag"
5601                         || test ! -s conftest.err'
5602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603  (eval $ac_try) 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); }; } &&
5607         { ac_try='test -s conftest$ac_exeext'
5608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609  (eval $ac_try) 2>&5
5610  ac_status=$?
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); }; }; then
5613  ac_cv_lib_md_MD5Update=yes
5614else
5615  echo "$as_me: failed program was:" >&5
5616sed 's/^/| /' conftest.$ac_ext >&5
5617
5618ac_cv_lib_md_MD5Update=no
5619fi
5620rm -f conftest.err conftest.$ac_objext \
5621      conftest$ac_exeext conftest.$ac_ext
5622LIBS=$ac_check_lib_save_LIBS
5623fi
5624echo "$as_me:$LINENO: result: $ac_cv_lib_md_MD5Update" >&5
5625echo "${ECHO_T}$ac_cv_lib_md_MD5Update" >&6
5626if test $ac_cv_lib_md_MD5Update = yes; then
5627
5628
5629for ac_header in md5.h
5630do
5631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5632if eval "test \"\${$as_ac_Header+set}\" = set"; then
5633  echo "$as_me:$LINENO: checking for $ac_header" >&5
5634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5635if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636  echo $ECHO_N "(cached) $ECHO_C" >&6
5637fi
5638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5640else
5641  # Is the header compilable?
5642echo "$as_me:$LINENO: checking $ac_header usability" >&5
5643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5644cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h.  */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h.  */
5650$ac_includes_default
5651#include <$ac_header>
5652_ACEOF
5653rm -f conftest.$ac_objext
5654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655  (eval $ac_compile) 2>conftest.er1
5656  ac_status=$?
5657  grep -v '^ *+' conftest.er1 >conftest.err
5658  rm -f conftest.er1
5659  cat conftest.err >&5
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); } &&
5662         { ac_try='test -z "$ac_c_werror_flag"
5663                         || test ! -s conftest.err'
5664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665  (eval $ac_try) 2>&5
5666  ac_status=$?
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); }; } &&
5669         { ac_try='test -s conftest.$ac_objext'
5670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671  (eval $ac_try) 2>&5
5672  ac_status=$?
5673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674  (exit $ac_status); }; }; then
5675  ac_header_compiler=yes
5676else
5677  echo "$as_me: failed program was:" >&5
5678sed 's/^/| /' conftest.$ac_ext >&5
5679
5680ac_header_compiler=no
5681fi
5682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5684echo "${ECHO_T}$ac_header_compiler" >&6
5685
5686# Is the header present?
5687echo "$as_me:$LINENO: checking $ac_header presence" >&5
5688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5689cat >conftest.$ac_ext <<_ACEOF
5690/* confdefs.h.  */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h.  */
5695#include <$ac_header>
5696_ACEOF
5697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5699  ac_status=$?
5700  grep -v '^ *+' conftest.er1 >conftest.err
5701  rm -f conftest.er1
5702  cat conftest.err >&5
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); } >/dev/null; then
5705  if test -s conftest.err; then
5706    ac_cpp_err=$ac_c_preproc_warn_flag
5707    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5708  else
5709    ac_cpp_err=
5710  fi
5711else
5712  ac_cpp_err=yes
5713fi
5714if test -z "$ac_cpp_err"; then
5715  ac_header_preproc=yes
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720  ac_header_preproc=no
5721fi
5722rm -f conftest.err conftest.$ac_ext
5723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5724echo "${ECHO_T}$ac_header_preproc" >&6
5725
5726# So?  What about this header?
5727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5728  yes:no: )
5729    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5731    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5733    ac_header_preproc=yes
5734    ;;
5735  no:yes:* )
5736    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5738    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5739echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5740    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5742    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5743echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5744    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5746    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5748    (
5749      cat <<\_ASBOX
5750## ----------------------------------------- ##
5751## Report this to darwinports@opendarwin.org ##
5752## ----------------------------------------- ##
5753_ASBOX
5754    ) |
5755      sed "s/^/$as_me: WARNING:     /" >&2
5756    ;;
5757esac
5758echo "$as_me:$LINENO: checking for $ac_header" >&5
5759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5760if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761  echo $ECHO_N "(cached) $ECHO_C" >&6
5762else
5763  eval "$as_ac_Header=\$ac_header_preproc"
5764fi
5765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5767
5768fi
5769if test `eval echo '${'$as_ac_Header'}'` = yes; then
5770  cat >>confdefs.h <<_ACEOF
5771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5772_ACEOF
5773
5774else
5775
5776                        case $host_os in
5777                                darwin*)
5778                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
5779echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
5780                                        ;;
5781                                *)
5782                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
5783echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
5784                                        ;;
5785                        esac
5786                        { { echo "$as_me:$LINENO: error: libmd was found, but md5.h is missing." >&5
5787echo "$as_me: error: libmd was found, but md5.h is missing." >&2;}
5788   { (exit 1); exit 1; }; }
5789
5790fi
5791
5792done
5793
5794
5795cat >>confdefs.h <<\_ACEOF
5796#define HAVE_LIBMD
5797_ACEOF
5798
5799                MD5_LIBS="-lmd"
5800
5801fi
5802
5803        if test "x$MD5_LIBS" = "x" ; then
5804                # If libmd is not found, check for libcrypto from OpenSSL
5805                echo "$as_me:$LINENO: checking for MD5_Update in -lcrypto" >&5
5806echo $ECHO_N "checking for MD5_Update in -lcrypto... $ECHO_C" >&6
5807if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  ac_check_lib_save_LIBS=$LIBS
5811LIBS="-lcrypto  $LIBS"
5812cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h.  */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h.  */
5818
5819/* Override any gcc2 internal prototype to avoid an error.  */
5820#ifdef __cplusplus
5821extern "C"
5822#endif
5823/* We use char because int might match the return type of a gcc2
5824   builtin and then its argument prototype would still apply.  */
5825char MD5_Update ();
5826int
5827main ()
5828{
5829MD5_Update ();
5830  ;
5831  return 0;
5832}
5833_ACEOF
5834rm -f conftest.$ac_objext conftest$ac_exeext
5835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836  (eval $ac_link) 2>conftest.er1
5837  ac_status=$?
5838  grep -v '^ *+' conftest.er1 >conftest.err
5839  rm -f conftest.er1
5840  cat conftest.err >&5
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); } &&
5843         { ac_try='test -z "$ac_c_werror_flag"
5844                         || test ! -s conftest.err'
5845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846  (eval $ac_try) 2>&5
5847  ac_status=$?
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); }; } &&
5850         { ac_try='test -s conftest$ac_exeext'
5851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852  (eval $ac_try) 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; }; then
5856  ac_cv_lib_crypto_MD5_Update=yes
5857else
5858  echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861ac_cv_lib_crypto_MD5_Update=no
5862fi
5863rm -f conftest.err conftest.$ac_objext \
5864      conftest$ac_exeext conftest.$ac_ext
5865LIBS=$ac_check_lib_save_LIBS
5866fi
5867echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Update" >&5
5868echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Update" >&6
5869if test $ac_cv_lib_crypto_MD5_Update = yes; then
5870
5871
5872for ac_header in openssl/md5.h
5873do
5874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875if eval "test \"\${$as_ac_Header+set}\" = set"; then
5876  echo "$as_me:$LINENO: checking for $ac_header" >&5
5877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5878if eval "test \"\${$as_ac_Header+set}\" = set"; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880fi
5881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5883else
5884  # Is the header compilable?
5885echo "$as_me:$LINENO: checking $ac_header usability" >&5
5886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5887cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h.  */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h.  */
5893$ac_includes_default
5894#include <$ac_header>
5895_ACEOF
5896rm -f conftest.$ac_objext
5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898  (eval $ac_compile) 2>conftest.er1
5899  ac_status=$?
5900  grep -v '^ *+' conftest.er1 >conftest.err
5901  rm -f conftest.er1
5902  cat conftest.err >&5
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); } &&
5905         { ac_try='test -z "$ac_c_werror_flag"
5906                         || test ! -s conftest.err'
5907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908  (eval $ac_try) 2>&5
5909  ac_status=$?
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); }; } &&
5912         { ac_try='test -s conftest.$ac_objext'
5913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914  (eval $ac_try) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }; }; then
5918  ac_header_compiler=yes
5919else
5920  echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923ac_header_compiler=no
5924fi
5925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5927echo "${ECHO_T}$ac_header_compiler" >&6
5928
5929# Is the header present?
5930echo "$as_me:$LINENO: checking $ac_header presence" >&5
5931echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5932cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h.  */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h.  */
5938#include <$ac_header>
5939_ACEOF
5940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5941  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } >/dev/null; then
5948  if test -s conftest.err; then
5949    ac_cpp_err=$ac_c_preproc_warn_flag
5950    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5951  else
5952    ac_cpp_err=
5953  fi
5954else
5955  ac_cpp_err=yes
5956fi
5957if test -z "$ac_cpp_err"; then
5958  ac_header_preproc=yes
5959else
5960  echo "$as_me: failed program was:" >&5
5961sed 's/^/| /' conftest.$ac_ext >&5
5962
5963  ac_header_preproc=no
5964fi
5965rm -f conftest.err conftest.$ac_ext
5966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967echo "${ECHO_T}$ac_header_preproc" >&6
5968
5969# So?  What about this header?
5970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971  yes:no: )
5972    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976    ac_header_preproc=yes
5977    ;;
5978  no:yes:* )
5979    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5982echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5983    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5986echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5987    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5991    (
5992      cat <<\_ASBOX
5993## ----------------------------------------- ##
5994## Report this to darwinports@opendarwin.org ##
5995## ----------------------------------------- ##
5996_ASBOX
5997    ) |
5998      sed "s/^/$as_me: WARNING:     /" >&2
5999    ;;
6000esac
6001echo "$as_me:$LINENO: checking for $ac_header" >&5
6002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6003if eval "test \"\${$as_ac_Header+set}\" = set"; then
6004  echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
6006  eval "$as_ac_Header=\$ac_header_preproc"
6007fi
6008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6010
6011fi
6012if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013  cat >>confdefs.h <<_ACEOF
6014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015_ACEOF
6016
6017else
6018
6019                                case $host_os in
6020                                        darwin*)
6021                                        { echo "$as_me:$LINENO: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
6022echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
6023                                                ;;
6024                                        *)
6025                                        { echo "$as_me:$LINENO: Please install the libmd developer headers for your platform." >&5
6026echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
6027                                                ;;
6028                                esac
6029                                { { echo "$as_me:$LINENO: error: libcrypt was found, but header file openssl/md5.h is missing." >&5
6030echo "$as_me: error: libcrypt was found, but header file openssl/md5.h is missing." >&2;}
6031   { (exit 1); exit 1; }; }
6032
6033fi
6034
6035done
6036
6037
6038cat >>confdefs.h <<\_ACEOF
6039#define HAVE_LIBCRYPTO
6040_ACEOF
6041
6042                        MD5_LIBS="-lcrypto"
6043
6044else
6045
6046                        { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6047echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6048   { (exit 1); exit 1; }; }
6049
6050fi
6051
6052        fi
6053        if test "x$MD5_LIBS" = "x"; then
6054                { { echo "$as_me:$LINENO: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&5
6055echo "$as_me: error: Neither OpenSSL or libmd were found. A working md5 implementation is required." >&2;}
6056   { (exit 1); exit 1; }; }
6057        fi
6058
6059
6060# Check for X11 and paraphernalia
6061echo "$as_me:$LINENO: checking for X" >&5
6062echo $ECHO_N "checking for X... $ECHO_C" >&6
6063
6064
6065# Check whether --with-x or --without-x was given.
6066if test "${with_x+set}" = set; then
6067  withval="$with_x"
6068
6069fi;
6070# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6071if test "x$with_x" = xno; then
6072  # The user explicitly disabled X.
6073  have_x=disabled
6074else
6075  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6076    # Both variables are already set.
6077    have_x=yes
6078  else
6079    if test "${ac_cv_have_x+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  # One or both of the vars are not set, and there is no cached value.
6083ac_x_includes=no ac_x_libraries=no
6084rm -fr conftest.dir
6085if mkdir conftest.dir; then
6086  cd conftest.dir
6087  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6088  cat >Imakefile <<'_ACEOF'
6089acfindx:
6090        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6091_ACEOF
6092  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6093    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6094    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6095    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6096    for ac_extension in a so sl; do
6097      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6098         test -f $ac_im_libdir/libX11.$ac_extension; then
6099        ac_im_usrlibdir=$ac_im_libdir; break
6100      fi
6101    done
6102    # Screen out bogus values from the imake configuration.  They are
6103    # bogus both because they are the default anyway, and because
6104    # using them would break gcc on systems where it needs fixed includes.
6105    case $ac_im_incroot in
6106        /usr/include) ;;
6107        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6108    esac
6109    case $ac_im_usrlibdir in
6110        /usr/lib | /lib) ;;
6111        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6112    esac
6113  fi
6114  cd ..
6115  rm -fr conftest.dir
6116fi
6117
6118# Standard set of common directories for X headers.
6119# Check X11 before X11Rn because it is often a symlink to the current release.
6120ac_x_header_dirs='
6121/usr/X11/include
6122/usr/X11R6/include
6123/usr/X11R5/include
6124/usr/X11R4/include
6125
6126/usr/include/X11
6127/usr/include/X11R6
6128/usr/include/X11R5
6129/usr/include/X11R4
6130
6131/usr/local/X11/include
6132/usr/local/X11R6/include
6133/usr/local/X11R5/include
6134/usr/local/X11R4/include
6135
6136/usr/local/include/X11
6137/usr/local/include/X11R6
6138/usr/local/include/X11R5
6139/usr/local/include/X11R4
6140
6141/usr/X386/include
6142/usr/x386/include
6143/usr/XFree86/include/X11
6144
6145/usr/include
6146/usr/local/include
6147/usr/unsupported/include
6148/usr/athena/include
6149/usr/local/x11r5/include
6150/usr/lpp/Xamples/include
6151
6152/usr/openwin/include
6153/usr/openwin/share/include'
6154
6155if test "$ac_x_includes" = no; then
6156  # Guess where to find include files, by looking for Intrinsic.h.
6157  # First, try using that file with no special directory specified.
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#include <X11/Intrinsic.h>
6165_ACEOF
6166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6167  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } >/dev/null; then
6174  if test -s conftest.err; then
6175    ac_cpp_err=$ac_c_preproc_warn_flag
6176    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6177  else
6178    ac_cpp_err=
6179  fi
6180else
6181  ac_cpp_err=yes
6182fi
6183if test -z "$ac_cpp_err"; then
6184  # We can compile using X headers with no special include directory.
6185ac_x_includes=
6186else
6187  echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190  for ac_dir in $ac_x_header_dirs; do
6191  if test -r "$ac_dir/X11/Intrinsic.h"; then
6192    ac_x_includes=$ac_dir
6193    break
6194  fi
6195done
6196fi
6197rm -f conftest.err conftest.$ac_ext
6198fi # $ac_x_includes = no
6199
6200if test "$ac_x_libraries" = no; then
6201  # Check for the libraries.
6202  # See if we find them without any special options.
6203  # Don't add to $LIBS permanently.
6204  ac_save_LIBS=$LIBS
6205  LIBS="-lXt $LIBS"
6206  cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h.  */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h.  */
6212#include <X11/Intrinsic.h>
6213int
6214main ()
6215{
6216XtMalloc (0)
6217  ;
6218  return 0;
6219}
6220_ACEOF
6221rm -f conftest.$ac_objext conftest$ac_exeext
6222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223  (eval $ac_link) 2>conftest.er1
6224  ac_status=$?
6225  grep -v '^ *+' conftest.er1 >conftest.err
6226  rm -f conftest.er1
6227  cat conftest.err >&5
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); } &&
6230         { ac_try='test -z "$ac_c_werror_flag"
6231                         || test ! -s conftest.err'
6232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233  (eval $ac_try) 2>&5
6234  ac_status=$?
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); }; } &&
6237         { ac_try='test -s conftest$ac_exeext'
6238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239  (eval $ac_try) 2>&5
6240  ac_status=$?
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); }; }; then
6243  LIBS=$ac_save_LIBS
6244# We can link X programs with no special library path.
6245ac_x_libraries=
6246else
6247  echo "$as_me: failed program was:" >&5
6248sed 's/^/| /' conftest.$ac_ext >&5
6249
6250LIBS=$ac_save_LIBS
6251for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6252do
6253  # Don't even attempt the hair of trying to link an X program!
6254  for ac_extension in a so sl; do
6255    if test -r $ac_dir/libXt.$ac_extension; then
6256      ac_x_libraries=$ac_dir
6257      break 2
6258    fi
6259  done
6260done
6261fi
6262rm -f conftest.err conftest.$ac_objext \
6263      conftest$ac_exeext conftest.$ac_ext
6264fi # $ac_x_libraries = no
6265
6266if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6267  # Didn't find X anywhere.  Cache the known absence of X.
6268  ac_cv_have_x="have_x=no"
6269else
6270  # Record where we found X for the cache.
6271  ac_cv_have_x="have_x=yes \
6272                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6273fi
6274fi
6275
6276  fi
6277  eval "$ac_cv_have_x"
6278fi # $with_x != no
6279
6280if test "$have_x" != yes; then
6281  echo "$as_me:$LINENO: result: $have_x" >&5
6282echo "${ECHO_T}$have_x" >&6
6283  no_x=yes
6284else
6285  # If each of the values was on the command line, it overrides each guess.
6286  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6287  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6288  # Update the cache value to reflect the command line values.
6289  ac_cv_have_x="have_x=yes \
6290                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6291  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6292echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6293fi
6294
6295
6296
6297        if test "$no_x" = yes; then
6298  # Not all programs may use this symbol, but it does not hurt to define it.
6299
6300cat >>confdefs.h <<\_ACEOF
6301#define X_DISPLAY_MISSING 1
6302_ACEOF
6303
6304  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6305else
6306  if test -n "$x_includes"; then
6307    X_CFLAGS="$X_CFLAGS -I$x_includes"
6308  fi
6309
6310  # It would also be nice to do this for all -L options, not just this one.
6311  if test -n "$x_libraries"; then
6312    X_LIBS="$X_LIBS -L$x_libraries"
6313    # For Solaris; some versions of Sun CC require a space after -R and
6314    # others require no space.  Words are not sufficient . . . .
6315    case `(uname -sr) 2>/dev/null` in
6316    "SunOS 5"*)
6317      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6318echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6319      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6320      cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h.  */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h.  */
6326
6327int
6328main ()
6329{
6330
6331  ;
6332  return 0;
6333}
6334_ACEOF
6335rm -f conftest.$ac_objext conftest$ac_exeext
6336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6337  (eval $ac_link) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } &&
6344         { ac_try='test -z "$ac_c_werror_flag"
6345                         || test ! -s conftest.err'
6346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347  (eval $ac_try) 2>&5
6348  ac_status=$?
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); }; } &&
6351         { ac_try='test -s conftest$ac_exeext'
6352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353  (eval $ac_try) 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; }; then
6357  ac_R_nospace=yes
6358else
6359  echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362ac_R_nospace=no
6363fi
6364rm -f conftest.err conftest.$ac_objext \
6365      conftest$ac_exeext conftest.$ac_ext
6366      if test $ac_R_nospace = yes; then
6367        echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
6369        X_LIBS="$X_LIBS -R$x_libraries"
6370      else
6371        LIBS="$ac_xsave_LIBS -R $x_libraries"
6372        cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h.  */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h.  */
6378
6379int
6380main ()
6381{
6382
6383  ;
6384  return 0;
6385}
6386_ACEOF
6387rm -f conftest.$ac_objext conftest$ac_exeext
6388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389  (eval $ac_link) 2>conftest.er1
6390  ac_status=$?
6391  grep -v '^ *+' conftest.er1 >conftest.err
6392  rm -f conftest.er1
6393  cat conftest.err >&5
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); } &&
6396         { ac_try='test -z "$ac_c_werror_flag"
6397                         || test ! -s conftest.err'
6398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399  (eval $ac_try) 2>&5
6400  ac_status=$?
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); }; } &&
6403         { ac_try='test -s conftest$ac_exeext'
6404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405  (eval $ac_try) 2>&5
6406  ac_status=$?
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); }; }; then
6409  ac_R_space=yes
6410else
6411  echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414ac_R_space=no
6415fi
6416rm -f conftest.err conftest.$ac_objext \
6417      conftest$ac_exeext conftest.$ac_ext
6418        if test $ac_R_space = yes; then
6419          echo "$as_me:$LINENO: result: yes" >&5
6420echo "${ECHO_T}yes" >&6
6421          X_LIBS="$X_LIBS -R $x_libraries"
6422        else
6423          echo "$as_me:$LINENO: result: neither works" >&5
6424echo "${ECHO_T}neither works" >&6
6425        fi
6426      fi
6427      LIBS=$ac_xsave_LIBS
6428    esac
6429  fi
6430
6431  # Check for system-dependent libraries X programs must link with.
6432  # Do this before checking for the system-independent R6 libraries
6433  # (-lICE), since we may need -lsocket or whatever for X linking.
6434
6435  if test "$ISC" = yes; then
6436    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6437  else
6438    # Martyn Johnson says this is needed for Ultrix, if the X
6439    # libraries were built with DECnet support.  And Karl Berry says
6440    # the Alpha needs dnet_stub (dnet does not exist).
6441    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6442    cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h.  */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h.  */
6448
6449/* Override any gcc2 internal prototype to avoid an error.  */
6450#ifdef __cplusplus
6451extern "C"
6452#endif
6453/* We use char because int might match the return type of a gcc2
6454   builtin and then its argument prototype would still apply.  */
6455char XOpenDisplay ();
6456int
6457main ()
6458{
6459XOpenDisplay ();
6460  ;
6461  return 0;
6462}
6463_ACEOF
6464rm -f conftest.$ac_objext conftest$ac_exeext
6465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466  (eval $ac_link) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } &&
6473         { ac_try='test -z "$ac_c_werror_flag"
6474                         || test ! -s conftest.err'
6475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476  (eval $ac_try) 2>&5
6477  ac_status=$?
6478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479  (exit $ac_status); }; } &&
6480         { ac_try='test -s conftest$ac_exeext'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; }; then
6486  :
6487else
6488  echo "$as_me: failed program was:" >&5
6489sed 's/^/| /' conftest.$ac_ext >&5
6490
6491echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6492echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6493if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6494  echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496  ac_check_lib_save_LIBS=$LIBS
6497LIBS="-ldnet  $LIBS"
6498cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h.  */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h.  */
6504
6505/* Override any gcc2 internal prototype to avoid an error.  */
6506#ifdef __cplusplus
6507extern "C"
6508#endif
6509/* We use char because int might match the return type of a gcc2
6510   builtin and then its argument prototype would still apply.  */
6511char dnet_ntoa ();
6512int
6513main ()
6514{
6515dnet_ntoa ();
6516  ;
6517  return 0;
6518}
6519_ACEOF
6520rm -f conftest.$ac_objext conftest$ac_exeext
6521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522  (eval $ac_link) 2>conftest.er1
6523  ac_status=$?
6524  grep -v '^ *+' conftest.er1 >conftest.err
6525  rm -f conftest.er1
6526  cat conftest.err >&5
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); } &&
6529         { ac_try='test -z "$ac_c_werror_flag"
6530                         || test ! -s conftest.err'
6531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532  (eval $ac_try) 2>&5
6533  ac_status=$?
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); }; } &&
6536         { ac_try='test -s conftest$ac_exeext'
6537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538  (eval $ac_try) 2>&5
6539  ac_status=$?
6540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541  (exit $ac_status); }; }; then
6542  ac_cv_lib_dnet_dnet_ntoa=yes
6543else
6544  echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547ac_cv_lib_dnet_dnet_ntoa=no
6548fi
6549rm -f conftest.err conftest.$ac_objext \
6550      conftest$ac_exeext conftest.$ac_ext
6551LIBS=$ac_check_lib_save_LIBS
6552fi
6553echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6554echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6555if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6556  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6557fi
6558
6559    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6560      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6561echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6562if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  ac_check_lib_save_LIBS=$LIBS
6566LIBS="-ldnet_stub  $LIBS"
6567cat >conftest.$ac_ext <<_ACEOF
6568/* confdefs.h.  */
6569_ACEOF
6570cat confdefs.h >>conftest.$ac_ext
6571cat >>conftest.$ac_ext <<_ACEOF
6572/* end confdefs.h.  */
6573
6574/* Override any gcc2 internal prototype to avoid an error.  */
6575#ifdef __cplusplus
6576extern "C"
6577#endif
6578/* We use char because int might match the return type of a gcc2
6579   builtin and then its argument prototype would still apply.  */
6580char dnet_ntoa ();
6581int
6582main ()
6583{
6584dnet_ntoa ();
6585  ;
6586  return 0;
6587}
6588_ACEOF
6589rm -f conftest.$ac_objext conftest$ac_exeext
6590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591  (eval $ac_link) 2>conftest.er1
6592  ac_status=$?
6593  grep -v '^ *+' conftest.er1 >conftest.err
6594  rm -f conftest.er1
6595  cat conftest.err >&5
6596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597  (exit $ac_status); } &&
6598         { ac_try='test -z "$ac_c_werror_flag"
6599                         || test ! -s conftest.err'
6600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601  (eval $ac_try) 2>&5
6602  ac_status=$?
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); }; } &&
6605         { ac_try='test -s conftest$ac_exeext'
6606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607  (eval $ac_try) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); }; }; then
6611  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6612else
6613  echo "$as_me: failed program was:" >&5
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616ac_cv_lib_dnet_stub_dnet_ntoa=no
6617fi
6618rm -f conftest.err conftest.$ac_objext \
6619      conftest$ac_exeext conftest.$ac_ext
6620LIBS=$ac_check_lib_save_LIBS
6621fi
6622echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6623echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6624if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6625  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6626fi
6627
6628    fi
6629fi
6630rm -f conftest.err conftest.$ac_objext \
6631      conftest$ac_exeext conftest.$ac_ext
6632    LIBS="$ac_xsave_LIBS"
6633
6634    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6635    # to get the SysV transport functions.
6636    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6637    # needs -lnsl.
6638    # The nsl library prevents programs from opening the X display
6639    # on Irix 5.2, according to T.E. Dickey.
6640    # The functions gethostbyname, getservbyname, and inet_addr are
6641    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6642    echo "$as_me:$LINENO: checking for gethostbyname" >&5
6643echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6644if test "${ac_cv_func_gethostbyname+set}" = set; then
6645  echo $ECHO_N "(cached) $ECHO_C" >&6
6646else
6647  cat >conftest.$ac_ext <<_ACEOF
6648/* confdefs.h.  */
6649_ACEOF
6650cat confdefs.h >>conftest.$ac_ext
6651cat >>conftest.$ac_ext <<_ACEOF
6652/* end confdefs.h.  */
6653/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6655#define gethostbyname innocuous_gethostbyname
6656
6657/* System header to define __stub macros and hopefully few prototypes,
6658    which can conflict with char gethostbyname (); below.
6659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6660    <limits.h> exists even on freestanding compilers.  */
6661
6662#ifdef __STDC__
6663# include <limits.h>
6664#else
6665# include <assert.h>
6666#endif
6667
6668#undef gethostbyname
6669
6670/* Override any gcc2 internal prototype to avoid an error.  */
6671#ifdef __cplusplus
6672extern "C"
6673{
6674#endif
6675/* We use char because int might match the return type of a gcc2
6676   builtin and then its argument prototype would still apply.  */
6677char gethostbyname ();
6678/* The GNU C library defines this for functions which it implements
6679    to always fail with ENOSYS.  Some functions are actually named
6680    something starting with __ and the normal name is an alias.  */
6681#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6682choke me
6683#else
6684char (*f) () = gethostbyname;
6685#endif
6686#ifdef __cplusplus
6687}
6688#endif
6689
6690int
6691main ()
6692{
6693return f != gethostbyname;
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698rm -f conftest.$ac_objext conftest$ac_exeext
6699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700  (eval $ac_link) 2>conftest.er1
6701  ac_status=$?
6702  grep -v '^ *+' conftest.er1 >conftest.err
6703  rm -f conftest.er1
6704  cat conftest.err >&5
6705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706  (exit $ac_status); } &&
6707         { ac_try='test -z "$ac_c_werror_flag"
6708                         || test ! -s conftest.err'
6709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710  (eval $ac_try) 2>&5
6711  ac_status=$?
6712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713  (exit $ac_status); }; } &&
6714         { ac_try='test -s conftest$ac_exeext'
6715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716  (eval $ac_try) 2>&5
6717  ac_status=$?
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); }; }; then
6720  ac_cv_func_gethostbyname=yes
6721else
6722  echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
6725ac_cv_func_gethostbyname=no
6726fi
6727rm -f conftest.err conftest.$ac_objext \
6728      conftest$ac_exeext conftest.$ac_ext
6729fi
6730echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6731echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6732
6733    if test $ac_cv_func_gethostbyname = no; then
6734      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6735echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6736if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  ac_check_lib_save_LIBS=$LIBS
6740LIBS="-lnsl  $LIBS"
6741cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h.  */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h.  */
6747
6748/* Override any gcc2 internal prototype to avoid an error.  */
6749#ifdef __cplusplus
6750extern "C"
6751#endif
6752/* We use char because int might match the return type of a gcc2
6753   builtin and then its argument prototype would still apply.  */
6754char gethostbyname ();
6755int
6756main ()
6757{
6758gethostbyname ();
6759  ;
6760  return 0;
6761}
6762_ACEOF
6763rm -f conftest.$ac_objext conftest$ac_exeext
6764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6765  (eval $ac_link) 2>conftest.er1
6766  ac_status=$?
6767  grep -v '^ *+' conftest.er1 >conftest.err
6768  rm -f conftest.er1
6769  cat conftest.err >&5
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); } &&
6772         { ac_try='test -z "$ac_c_werror_flag"
6773                         || test ! -s conftest.err'
6774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775  (eval $ac_try) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); }; } &&
6779         { ac_try='test -s conftest$ac_exeext'
6780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781  (eval $ac_try) 2>&5
6782  ac_status=$?
6783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784  (exit $ac_status); }; }; then
6785  ac_cv_lib_nsl_gethostbyname=yes
6786else
6787  echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790ac_cv_lib_nsl_gethostbyname=no
6791fi
6792rm -f conftest.err conftest.$ac_objext \
6793      conftest$ac_exeext conftest.$ac_ext
6794LIBS=$ac_check_lib_save_LIBS
6795fi
6796echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6797echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6798if test $ac_cv_lib_nsl_gethostbyname = yes; then
6799  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6800fi
6801
6802      if test $ac_cv_lib_nsl_gethostbyname = no; then
6803        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6804echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6805if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6806  echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808  ac_check_lib_save_LIBS=$LIBS
6809LIBS="-lbsd  $LIBS"
6810cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h.  */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h.  */
6816
6817/* Override any gcc2 internal prototype to avoid an error.  */
6818#ifdef __cplusplus
6819extern "C"
6820#endif
6821/* We use char because int might match the return type of a gcc2
6822   builtin and then its argument prototype would still apply.  */
6823char gethostbyname ();
6824int
6825main ()
6826{
6827gethostbyname ();
6828  ;
6829  return 0;
6830}
6831_ACEOF
6832rm -f conftest.$ac_objext conftest$ac_exeext
6833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834  (eval $ac_link) 2>conftest.er1
6835  ac_status=$?
6836  grep -v '^ *+' conftest.er1 >conftest.err
6837  rm -f conftest.er1
6838  cat conftest.err >&5
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); } &&
6841         { ac_try='test -z "$ac_c_werror_flag"
6842                         || test ! -s conftest.err'
6843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844  (eval $ac_try) 2>&5
6845  ac_status=$?
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); }; } &&
6848         { ac_try='test -s conftest$ac_exeext'
6849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850  (eval $ac_try) 2>&5
6851  ac_status=$?
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); }; }; then
6854  ac_cv_lib_bsd_gethostbyname=yes
6855else
6856  echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859ac_cv_lib_bsd_gethostbyname=no
6860fi
6861rm -f conftest.err conftest.$ac_objext \
6862      conftest$ac_exeext conftest.$ac_ext
6863LIBS=$ac_check_lib_save_LIBS
6864fi
6865echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6866echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6867if test $ac_cv_lib_bsd_gethostbyname = yes; then
6868  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6869fi
6870
6871      fi
6872    fi
6873
6874    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6875    # socket/setsockopt and other routines are undefined under SCO ODT
6876    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6877    # on later versions), says Simon Leinen: it contains gethostby*
6878    # variants that don't use the name server (or something).  -lsocket
6879    # must be given before -lnsl if both are needed.  We assume that
6880    # if connect needs -lnsl, so does gethostbyname.
6881    echo "$as_me:$LINENO: checking for connect" >&5
6882echo $ECHO_N "checking for connect... $ECHO_C" >&6
6883if test "${ac_cv_func_connect+set}" = set; then
6884  echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886  cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h.  */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h.  */
6892/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6894#define connect innocuous_connect
6895
6896/* System header to define __stub macros and hopefully few prototypes,
6897    which can conflict with char connect (); below.
6898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6899    <limits.h> exists even on freestanding compilers.  */
6900
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906
6907#undef connect
6908
6909/* Override any gcc2 internal prototype to avoid an error.  */
6910#ifdef __cplusplus
6911extern "C"
6912{
6913#endif
6914/* We use char because int might match the return type of a gcc2
6915   builtin and then its argument prototype would still apply.  */
6916char connect ();
6917/* The GNU C library defines this for functions which it implements
6918    to always fail with ENOSYS.  Some functions are actually named
6919    something starting with __ and the normal name is an alias.  */
6920#if defined (__stub_connect) || defined (__stub___connect)
6921choke me
6922#else
6923char (*f) () = connect;
6924#endif
6925#ifdef __cplusplus
6926}
6927#endif
6928
6929int
6930main ()
6931{
6932return f != connect;
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937rm -f conftest.$ac_objext conftest$ac_exeext
6938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939  (eval $ac_link) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } &&
6946         { ac_try='test -z "$ac_c_werror_flag"
6947                         || test ! -s conftest.err'
6948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949  (eval $ac_try) 2>&5
6950  ac_status=$?
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); }; } &&
6953         { ac_try='test -s conftest$ac_exeext'
6954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955  (eval $ac_try) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); }; }; then
6959  ac_cv_func_connect=yes
6960else
6961  echo "$as_me: failed program was:" >&5
6962sed 's/^/| /' conftest.$ac_ext >&5
6963
6964ac_cv_func_connect=no
6965fi
6966rm -f conftest.err conftest.$ac_objext \
6967      conftest$ac_exeext conftest.$ac_ext
6968fi
6969echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6970echo "${ECHO_T}$ac_cv_func_connect" >&6
6971
6972    if test $ac_cv_func_connect = no; then
6973      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6974echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6975if test "${ac_cv_lib_socket_connect+set}" = set; then
6976  echo $ECHO_N "(cached) $ECHO_C" >&6
6977else
6978  ac_check_lib_save_LIBS=$LIBS
6979LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6980cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h.  */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h.  */
6986
6987/* Override any gcc2 internal prototype to avoid an error.  */
6988#ifdef __cplusplus
6989extern "C"
6990#endif
6991/* We use char because int might match the return type of a gcc2
6992   builtin and then its argument prototype would still apply.  */
6993char connect ();
6994int
6995main ()
6996{
6997connect ();
6998  ;
6999  return 0;
7000}
7001_ACEOF
7002rm -f conftest.$ac_objext conftest$ac_exeext
7003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004  (eval $ac_link) 2>conftest.er1
7005  ac_status=$?
7006  grep -v '^ *+' conftest.er1 >conftest.err
7007  rm -f conftest.er1
7008  cat conftest.err >&5
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); } &&
7011         { ac_try='test -z "$ac_c_werror_flag"
7012                         || test ! -s conftest.err'
7013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014  (eval $ac_try) 2>&5
7015  ac_status=$?
7016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017  (exit $ac_status); }; } &&
7018         { ac_try='test -s conftest$ac_exeext'
7019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020  (eval $ac_try) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; }; then
7024  ac_cv_lib_socket_connect=yes
7025else
7026  echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029ac_cv_lib_socket_connect=no
7030fi
7031rm -f conftest.err conftest.$ac_objext \
7032      conftest$ac_exeext conftest.$ac_ext
7033LIBS=$ac_check_lib_save_LIBS
7034fi
7035echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7036echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7037if test $ac_cv_lib_socket_connect = yes; then
7038  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7039fi
7040
7041    fi
7042
7043    # Guillermo Gomez says -lposix is necessary on A/UX.
7044    echo "$as_me:$LINENO: checking for remove" >&5
7045echo $ECHO_N "checking for remove... $ECHO_C" >&6
7046if test "${ac_cv_func_remove+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  cat >conftest.$ac_ext <<_ACEOF
7050/* confdefs.h.  */
7051_ACEOF
7052cat confdefs.h >>conftest.$ac_ext
7053cat >>conftest.$ac_ext <<_ACEOF
7054/* end confdefs.h.  */
7055/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7056   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7057#define remove innocuous_remove
7058
7059/* System header to define __stub macros and hopefully few prototypes,
7060    which can conflict with char remove (); below.
7061    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062    <limits.h> exists even on freestanding compilers.  */
7063
7064#ifdef __STDC__
7065# include <limits.h>
7066#else
7067# include <assert.h>
7068#endif
7069
7070#undef remove
7071
7072/* Override any gcc2 internal prototype to avoid an error.  */
7073#ifdef __cplusplus
7074extern "C"
7075{
7076#endif
7077/* We use char because int might match the return type of a gcc2
7078   builtin and then its argument prototype would still apply.  */
7079char remove ();
7080/* The GNU C library defines this for functions which it implements
7081    to always fail with ENOSYS.  Some functions are actually named
7082    something starting with __ and the normal name is an alias.  */
7083#if defined (__stub_remove) || defined (__stub___remove)
7084choke me
7085#else
7086char (*f) () = remove;
7087#endif
7088#ifdef __cplusplus
7089}
7090#endif
7091
7092int
7093main ()
7094{
7095return f != remove;
7096  ;
7097  return 0;
7098}
7099_ACEOF
7100rm -f conftest.$ac_objext conftest$ac_exeext
7101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102  (eval $ac_link) 2>conftest.er1
7103  ac_status=$?
7104  grep -v '^ *+' conftest.er1 >conftest.err
7105  rm -f conftest.er1
7106  cat conftest.err >&5
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } &&
7109         { ac_try='test -z "$ac_c_werror_flag"
7110                         || test ! -s conftest.err'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; } &&
7116         { ac_try='test -s conftest$ac_exeext'
7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118  (eval $ac_try) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }; }; then
7122  ac_cv_func_remove=yes
7123else
7124  echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127ac_cv_func_remove=no
7128fi
7129rm -f conftest.err conftest.$ac_objext \
7130      conftest$ac_exeext conftest.$ac_ext
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7133echo "${ECHO_T}$ac_cv_func_remove" >&6
7134
7135    if test $ac_cv_func_remove = no; then
7136      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7137echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7138if test "${ac_cv_lib_posix_remove+set}" = set; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141  ac_check_lib_save_LIBS=$LIBS
7142LIBS="-lposix  $LIBS"
7143cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h.  */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h.  */
7149
7150/* Override any gcc2 internal prototype to avoid an error.  */
7151#ifdef __cplusplus
7152extern "C"
7153#endif
7154/* We use char because int might match the return type of a gcc2
7155   builtin and then its argument prototype would still apply.  */
7156char remove ();
7157int
7158main ()
7159{
7160remove ();
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165rm -f conftest.$ac_objext conftest$ac_exeext
7166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7167  (eval $ac_link) 2>conftest.er1
7168  ac_status=$?
7169  grep -v '^ *+' conftest.er1 >conftest.err
7170  rm -f conftest.er1
7171  cat conftest.err >&5
7172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173  (exit $ac_status); } &&
7174         { ac_try='test -z "$ac_c_werror_flag"
7175                         || test ! -s conftest.err'
7176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177  (eval $ac_try) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); }; } &&
7181         { ac_try='test -s conftest$ac_exeext'
7182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183  (eval $ac_try) 2>&5
7184  ac_status=$?
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); }; }; then
7187  ac_cv_lib_posix_remove=yes
7188else
7189  echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192ac_cv_lib_posix_remove=no
7193fi
7194rm -f conftest.err conftest.$ac_objext \
7195      conftest$ac_exeext conftest.$ac_ext
7196LIBS=$ac_check_lib_save_LIBS
7197fi
7198echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7199echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7200if test $ac_cv_lib_posix_remove = yes; then
7201  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7202fi
7203
7204    fi
7205
7206    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7207    echo "$as_me:$LINENO: checking for shmat" >&5
7208echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7209if test "${ac_cv_func_shmat+set}" = set; then
7210  echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212  cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h.  */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h.  */
7218/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7219   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7220#define shmat innocuous_shmat
7221
7222/* System header to define __stub macros and hopefully few prototypes,
7223    which can conflict with char shmat (); below.
7224    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225    <limits.h> exists even on freestanding compilers.  */
7226
7227#ifdef __STDC__
7228# include <limits.h>
7229#else
7230# include <assert.h>
7231#endif
7232
7233#undef shmat
7234
7235/* Override any gcc2 internal prototype to avoid an error.  */
7236#ifdef __cplusplus
7237extern "C"
7238{
7239#endif
7240/* We use char because int might match the return type of a gcc2
7241   builtin and then its argument prototype would still apply.  */
7242char shmat ();
7243/* The GNU C library defines this for functions which it implements
7244    to always fail with ENOSYS.  Some functions are actually named
7245    something starting with __ and the normal name is an alias.  */
7246#if defined (__stub_shmat) || defined (__stub___shmat)
7247choke me
7248#else
7249char (*f) () = shmat;
7250#endif
7251#ifdef __cplusplus
7252}
7253#endif
7254
7255int
7256main ()
7257{
7258return f != shmat;
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext
7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265  (eval $ac_link) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272         { ac_try='test -z "$ac_c_werror_flag"
7273                         || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279         { ac_try='test -s conftest$ac_exeext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285  ac_cv_func_shmat=yes
7286else
7287  echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290ac_cv_func_shmat=no
7291fi
7292rm -f conftest.err conftest.$ac_objext \
7293      conftest$ac_exeext conftest.$ac_ext
7294fi
7295echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7296echo "${ECHO_T}$ac_cv_func_shmat" >&6
7297
7298    if test $ac_cv_func_shmat = no; then
7299      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7300echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7301if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7302  echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304  ac_check_lib_save_LIBS=$LIBS
7305LIBS="-lipc  $LIBS"
7306cat >conftest.$ac_ext <<_ACEOF
7307/* confdefs.h.  */
7308_ACEOF
7309cat confdefs.h >>conftest.$ac_ext
7310cat >>conftest.$ac_ext <<_ACEOF
7311/* end confdefs.h.  */
7312
7313/* Override any gcc2 internal prototype to avoid an error.  */
7314#ifdef __cplusplus
7315extern "C"
7316#endif
7317/* We use char because int might match the return type of a gcc2
7318   builtin and then its argument prototype would still apply.  */
7319char shmat ();
7320int
7321main ()
7322{
7323shmat ();
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext conftest$ac_exeext
7329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7330  (eval $ac_link) 2>conftest.er1
7331  ac_status=$?
7332  grep -v '^ *+' conftest.er1 >conftest.err
7333  rm -f conftest.er1
7334  cat conftest.err >&5
7335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336  (exit $ac_status); } &&
7337         { ac_try='test -z "$ac_c_werror_flag"
7338                         || test ! -s conftest.err'
7339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340  (eval $ac_try) 2>&5
7341  ac_status=$?
7342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343  (exit $ac_status); }; } &&
7344         { ac_try='test -s conftest$ac_exeext'
7345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346  (eval $ac_try) 2>&5
7347  ac_status=$?
7348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); }; }; then
7350  ac_cv_lib_ipc_shmat=yes
7351else
7352  echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
7355ac_cv_lib_ipc_shmat=no
7356fi
7357rm -f conftest.err conftest.$ac_objext \
7358      conftest$ac_exeext conftest.$ac_ext
7359LIBS=$ac_check_lib_save_LIBS
7360fi
7361echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7362echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7363if test $ac_cv_lib_ipc_shmat = yes; then
7364  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7365fi
7366
7367    fi
7368  fi
7369
7370  # Check for libraries that X11R6 Xt/Xaw programs need.
7371  ac_save_LDFLAGS=$LDFLAGS
7372  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7373  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7374  # check for ICE first), but we must link in the order -lSM -lICE or
7375  # we get undefined symbols.  So assume we have SM if we have ICE.
7376  # These have to be linked with before -lX11, unlike the other
7377  # libraries we check for below, so use a different variable.
7378  # John Interrante, Karl Berry
7379  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7380echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7381if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7382  echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384  ac_check_lib_save_LIBS=$LIBS
7385LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7386cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h.  */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h.  */
7392
7393/* Override any gcc2 internal prototype to avoid an error.  */
7394#ifdef __cplusplus
7395extern "C"
7396#endif
7397/* We use char because int might match the return type of a gcc2
7398   builtin and then its argument prototype would still apply.  */
7399char IceConnectionNumber ();
7400int
7401main ()
7402{
7403IceConnectionNumber ();
7404  ;
7405  return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410  (eval $ac_link) 2>conftest.er1
7411  ac_status=$?
7412  grep -v '^ *+' conftest.er1 >conftest.err
7413  rm -f conftest.er1
7414  cat conftest.err >&5
7415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416  (exit $ac_status); } &&
7417         { ac_try='test -z "$ac_c_werror_flag"
7418                         || test ! -s conftest.err'
7419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420  (eval $ac_try) 2>&5
7421  ac_status=$?
7422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423  (exit $ac_status); }; } &&
7424         { ac_try='test -s conftest$ac_exeext'
7425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426  (eval $ac_try) 2>&5
7427  ac_status=$?
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); }; }; then
7430  ac_cv_lib_ICE_IceConnectionNumber=yes
7431else
7432  echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435ac_cv_lib_ICE_IceConnectionNumber=no
7436fi
7437rm -f conftest.err conftest.$ac_objext \
7438      conftest$ac_exeext conftest.$ac_ext
7439LIBS=$ac_check_lib_save_LIBS
7440fi
7441echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7442echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7443if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7444  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7445fi
7446
7447  LDFLAGS=$ac_save_LDFLAGS
7448
7449fi
7450
7451
7452        # Check for libX11
7453        echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
7454echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
7455if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
7456  echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458  ac_check_lib_save_LIBS=$LIBS
7459LIBS="-lX11 -L/usr/X11R6/lib $X_LIBS $LIBS"
7460cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h.  */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h.  */
7466
7467/* Override any gcc2 internal prototype to avoid an error.  */
7468#ifdef __cplusplus
7469extern "C"
7470#endif
7471/* We use char because int might match the return type of a gcc2
7472   builtin and then its argument prototype would still apply.  */
7473char XOpenDisplay ();
7474int
7475main ()
7476{
7477XOpenDisplay ();
7478  ;
7479  return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484  (eval $ac_link) 2>conftest.er1
7485  ac_status=$?
7486  grep -v '^ *+' conftest.er1 >conftest.err
7487  rm -f conftest.er1
7488  cat conftest.err >&5
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); } &&
7491         { ac_try='test -z "$ac_c_werror_flag"
7492                         || test ! -s conftest.err'
7493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494  (eval $ac_try) 2>&5
7495  ac_status=$?
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); }; } &&
7498         { ac_try='test -s conftest$ac_exeext'
7499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500  (eval $ac_try) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; }; then
7504  ac_cv_lib_X11_XOpenDisplay=yes
7505else
7506  echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509ac_cv_lib_X11_XOpenDisplay=no
7510fi
7511rm -f conftest.err conftest.$ac_objext \
7512      conftest$ac_exeext conftest.$ac_ext
7513LIBS=$ac_check_lib_save_LIBS
7514fi
7515echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
7516echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
7517if test $ac_cv_lib_X11_XOpenDisplay = yes; then
7518
7519                has_x_runtime=yes
7520
7521else
7522   has_x_runtime=no
7523fi
7524
7525
7526#       echo "------done---------"
7527#       echo "x_includes=${x_includes}"
7528#       echo "x_libraries=${x_libraries}"
7529#       echo "no_x=${no_x}"
7530#       echo "X_CFLAGS=${X_CFLAGS}"
7531#       echo "X_LIBS=${X_LIBS}"
7532#       echo "X_DISPLAY_MISSING=${X_DISPLAY_MISSING}"
7533#       echo "has_x_runtime=${has_x_runtime}"
7534#       echo "host_os=${host_os}"
7535#       echo "------done---------"
7536
7537        state=
7538
7539        case "__${has_x_runtime}__${no_x}__" in
7540                "__no__yes__")
7541                # either the user said --without-x, or it was not found
7542                # at all (runtime or headers)
7543                        { echo "$as_me:$LINENO: WARNING: X11 not available. You will not be able to use dports that use X11" >&5
7544echo "$as_me: WARNING: X11 not available. You will not be able to use dports that use X11" >&2;}
7545                        state=0
7546                        ;;
7547                "__yes__yes__")
7548                        state=1
7549                        ;;
7550                "__yes____")
7551                        state=2
7552                        ;;
7553                *)
7554                        state=3
7555                        ;;
7556        esac
7557
7558        case $host_os in
7559                darwin*)
7560                        case $state in
7561                                1)
7562                                        cat <<EOF;
7563Please install the X11 SDK packages from the
7564Xcode Developer Tools CD
7565EOF
7566                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7567echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7568   { (exit 1); exit 1; }; }
7569
7570                                        ;;
7571                                3)
7572                                        cat <<EOF;
7573Unknown configuration problem. Please install the X11 runtime
7574and/or X11 SDK  packages from the Xcode Developer Tools CD
7575EOF
7576                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7577echo "$as_me: error: Broken X11 install" >&2;}
7578   { (exit 1); exit 1; }; }
7579                                        ;;
7580                        esac
7581                        ;;
7582                *)
7583                        case $state in
7584                                1)
7585                                        cat <<EOF;
7586Please install the X11 developer headers for your platform
7587EOF
7588                                        { { echo "$as_me:$LINENO: error: Broken X11 install. No X11 headers" >&5
7589echo "$as_me: error: Broken X11 install. No X11 headers" >&2;}
7590   { (exit 1); exit 1; }; }
7591
7592                                        ;;
7593                                3)
7594                                        cat <<EOF;
7595Unknown configuration problem. Please install the X11
7596implementation for your platform
7597EOF
7598                                        { { echo "$as_me:$LINENO: error: Broken X11 install" >&5
7599echo "$as_me: error: Broken X11 install" >&2;}
7600   { (exit 1); exit 1; }; }
7601                                        ;;
7602                        esac
7603                        ;;
7604        esac
7605
7606
7607
7608# Load tclConfig.sh
7609
7610    #
7611    # Ok, lets find the tcl configuration
7612    # First, look for one uninstalled.
7613    # the alternative search directory is invoked by --with-tcl
7614    #
7615
7616    if test x"${no_tcl}" = x ; then
7617        # we reset no_tcl in case something fails here
7618        no_tcl=true
7619
7620# Check whether --with-tcl or --without-tcl was given.
7621if test "${with_tcl+set}" = set; then
7622  withval="$with_tcl"
7623  with_tclconfig=${withval}
7624fi;
7625        echo "$as_me:$LINENO: checking for Tcl configuration" >&5
7626echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
7627        if test "${ac_cv_c_tclconfig+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630
7631
7632            # First check to see if --with-tcl was specified.
7633            if test x"${with_tclconfig}" != x ; then
7634                if test -f "${with_tclconfig}/tclConfig.sh" ; then
7635                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
7636                else
7637                    { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
7638echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
7639   { (exit 1); exit 1; }; }
7640                fi
7641            fi
7642
7643            # then check for a private Tcl installation
7644            if test x"${ac_cv_c_tclconfig}" = x ; then
7645                for i in \
7646                        ../tcl \
7647                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
7648                        ../../tcl \
7649                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
7650                        ../../../tcl \
7651                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
7652                    if test -f "$i/unix/tclConfig.sh" ; then
7653                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
7654                        break
7655                    fi
7656                done
7657            fi
7658
7659            # check in a few common install locations
7660            if test x"${ac_cv_c_tclconfig}" = x ; then
7661                for i in `ls -d ${libdir} 2>/dev/null` \
7662                        `ls -d /usr/local/lib 2>/dev/null` \
7663                        `ls -d /usr/contrib/lib 2>/dev/null` \
7664                        `ls -d /usr/lib 2>/dev/null` \
7665                        `ls -d /usr/pkg/lib 2>/dev/null` \
7666                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
7667                        `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \
7668                        `ls -d /usr/local/lib/tcl8.3 2>/dev/null` \
7669                        `ls -d /usr/lib/tcl8.4 2>/dev/null` \
7670                        `ls -d /usr/lib/tcl8.3 2>/dev/null` \
7671                        ; do
7672                    if test -f "$i/tclConfig.sh" ; then
7673                        ac_cv_c_tclconfig=`(cd $i; pwd)`
7674                        break
7675                    fi
7676                done
7677            fi
7678
7679            # check in a few other private locations
7680            if test x"${ac_cv_c_tclconfig}" = x ; then
7681                for i in \
7682                        ${srcdir}/../tcl \
7683                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
7684                    if test -f "$i/unix/tclConfig.sh" ; then
7685                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
7686                    break
7687                fi
7688                done
7689            fi
7690
7691fi
7692
7693
7694        if test x"${ac_cv_c_tclconfig}" = x ; then
7695            TCL_BIN_DIR="# no Tcl configs found"
7696            { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5
7697echo "$as_me: error: Can't find Tcl configuration definitions" >&2;}
7698   { (exit 1); exit 1; }; }
7699        else
7700            no_tcl=
7701            TCL_BIN_DIR=${ac_cv_c_tclconfig}
7702            echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
7703echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
7704        fi
7705    fi
7706
7707
7708    echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
7709echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
7710
7711    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
7712        echo "$as_me:$LINENO: result: loading" >&5
7713echo "${ECHO_T}loading" >&6
7714        . $TCL_BIN_DIR/tclConfig.sh
7715    else
7716        echo "$as_me:$LINENO: result: file not found" >&5
7717echo "${ECHO_T}file not found" >&6
7718    fi
7719
7720    #
7721    # If the TCL_BIN_DIR is the build directory (not the install directory),
7722    # then set the common variable name to the value of the build variables.
7723    # For example, the variable TCL_LIB_SPEC will be set to the value
7724    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
7725    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
7726    # installed and uninstalled version of Tcl.
7727    #
7728
7729    if test -f $TCL_BIN_DIR/Makefile ; then
7730        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
7731        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
7732        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
7733    fi
7734
7735    #
7736    # eval is required to do the TCL_DBGX substitution
7737    #
7738
7739    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
7740    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
7741    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
7742
7743    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
7744    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
7745    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760# Check for Tcl public headers
7761CYGPATH=echo
7762
7763    echo "$as_me:$LINENO: checking for Tcl public headers" >&5
7764echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6
7765
7766
7767# Check whether --with-tclinclude or --without-tclinclude was given.
7768if test "${with_tclinclude+set}" = set; then
7769  withval="$with_tclinclude"
7770  with_tclinclude=${withval}
7771fi;
7772
7773    if test x"${with_tclinclude}" != x ; then
7774        if test -f "${with_tclinclude}/tcl.h" ; then
7775            ac_cv_c_tclh=${with_tclinclude}
7776        else
7777            { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5
7778echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;}
7779   { (exit 1); exit 1; }; }
7780        fi
7781    else
7782        if test "${ac_cv_c_tclh+set}" = set; then
7783  echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785
7786            # Use the value from --with-tclinclude, if it was given
7787
7788            if test x"${with_tclinclude}" != x ; then
7789                ac_cv_c_tclh=${with_tclinclude}
7790            else
7791                # Do NOT check in $includedir, we need to prevent automatic
7792                # location of Tcl headers in $prefix/include unless explicitly
7793                # specified with the --with-tclinclude option. But go ahead and
7794                # check some other possible local system locations.
7795
7796                for i in \
7797                        /usr/local/include /usr/include /usr/local/include/tcl${TCL_VERSION} /usr/include/tcl${TCL_VERSION}; do
7798                    if test -f "$i/tcl.h" ; then
7799                        ac_cv_c_tclh=$i
7800                        break
7801                    fi
7802                done
7803            fi
7804
7805fi
7806
7807    fi
7808
7809    # Print a message based on how we determined the include path
7810
7811    if test x"${ac_cv_c_tclh}" = x ; then
7812        { { echo "$as_me:$LINENO: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&5
7813echo "$as_me: error: tcl.h not found.  Please specify its location with --with-tclinclude" >&2;}
7814   { (exit 1); exit 1; }; }
7815    else
7816        echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5
7817echo "${ECHO_T}${ac_cv_c_tclh}" >&6
7818    fi
7819
7820    # Convert to a native path and substitute into the output files.
7821
7822    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
7823
7824    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
7825
7826
7827
7828
7829# Check for tclsh binary
7830
7831
7832
7833        case $host_os in
7834                freebsd*)
7835                        # FreeBSD installs a dummy tclsh (annoying)
7836                        # Look for a real versioned tclsh first
7837                        # Extract the first word of "tclsh${TCL_VERSION} tclsh", so it can be a program name with args.
7838set dummy tclsh${TCL_VERSION} tclsh; ac_word=$2
7839echo "$as_me:$LINENO: checking for $ac_word" >&5
7840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7841if test "${ac_cv_path_TCLSH+set}" = set; then
7842  echo $ECHO_N "(cached) $ECHO_C" >&6
7843else
7844  case $TCLSH in
7845  [\\/]* | ?:[\\/]*)
7846  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7847  ;;
7848  *)
7849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  test -z "$as_dir" && as_dir=.
7854  for ac_exec_ext in '' $ac_executable_extensions; do
7855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861done
7862
7863  ;;
7864esac
7865fi
7866TCLSH=$ac_cv_path_TCLSH
7867
7868if test -n "$TCLSH"; then
7869  echo "$as_me:$LINENO: result: $TCLSH" >&5
7870echo "${ECHO_T}$TCLSH" >&6
7871else
7872  echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874fi
7875
7876                        ;;
7877                *)
7878                        # Otherwise, look for a non-versioned tclsh
7879                        # Extract the first word of "tclsh tclsh${TCL_VERSION}", so it can be a program name with args.
7880set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
7881echo "$as_me:$LINENO: checking for $ac_word" >&5
7882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7883if test "${ac_cv_path_TCLSH+set}" = set; then
7884  echo $ECHO_N "(cached) $ECHO_C" >&6
7885else
7886  case $TCLSH in
7887  [\\/]* | ?:[\\/]*)
7888  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7889  ;;
7890  *)
7891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896  for ac_exec_ext in '' $ac_executable_extensions; do
7897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903done
7904
7905  ;;
7906esac
7907fi
7908TCLSH=$ac_cv_path_TCLSH
7909
7910if test -n "$TCLSH"; then
7911  echo "$as_me:$LINENO: result: $TCLSH" >&5
7912echo "${ECHO_T}$TCLSH" >&6
7913else
7914  echo "$as_me:$LINENO: result: no" >&5
7915echo "${ECHO_T}no" >&6
7916fi
7917
7918                        ;;
7919        esac
7920        if test "x$TCLSH" = "x" ; then
7921                { { echo "$as_me:$LINENO: error: Could not find tclsh" >&5
7922echo "$as_me: error: Could not find tclsh" >&2;}
7923   { (exit 1); exit 1; }; }
7924        fi
7925
7926
7927
7928
7929# Check for Tcl package path
7930
7931    echo "$as_me:$LINENO: checking for Tcl package directory" >&5
7932echo $ECHO_N "checking for Tcl package directory... $ECHO_C" >&6
7933
7934
7935# Check whether --with-tclpackage or --without-tclpackage was given.
7936if test "${with_tclpackage+set}" = set; then
7937  withval="$with_tclpackage"
7938  with_tclpackagedir=${withval}
7939fi;
7940
7941    if test x"${with_tclpackagedir}" != x ; then
7942        ac_cv_c_tclpkgd=${with_tclpackagedir}
7943    else
7944        if test "${ac_cv_c_tclpkgd+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947
7948            # Use the value from --with-tclpackage, if it was given
7949
7950            if test x"${with_tclpackagedir}" != x ; then
7951                echo "tclpackagedir"
7952                ac_cv_c_tclpkgd=${with_tclpackagedir}
7953            else
7954                # On darwin we can do some intelligent guessing
7955                case $host_os in
7956                    darwin*)
7957                        tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
7958                        for path in $tcl_autopath; do
7959                            if test "$path" = "/Library/Tcl"; then
7960                                ac_cv_c_tclpkgd="$path"
7961                                break
7962                            fi
7963                            if test "$path" = "/System/Library/Tcl"; then
7964                                if test -d "$path"; then
7965                                    ac_cv_c_tclpkgd="$path"
7966                                    break
7967                                fi
7968                            fi
7969                        done
7970                    ;;
7971                esac
7972                if test x"${ac_cv_c_tclpkgd}" = x ; then
7973                    # Fudge a path from the first entry in the auto_path
7974                    tcl_pkgpath=`echo 'puts -nonewline [lindex \$auto_path 0]' | $TCLSH`
7975                    if test -d "$tcl_pkgpath"; then
7976                        ac_cv_c_tclpkgd="$tcl_pkgpath"
7977                    fi
7978                    # If the first entry does not exist, do nothing
7979                fi
7980            fi
7981
7982fi
7983
7984    fi
7985
7986    if test x"${ac_cv_c_tclpkgd}" = x ; then
7987        { { echo "$as_me:$LINENO: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&5
7988echo "$as_me: error: Tcl package directory not found.  Please specify its location with --with-tclpackage" >&2;}
7989   { (exit 1); exit 1; }; }
7990    else
7991        echo "$as_me:$LINENO: result: ${ac_cv_c_tclpkgd}" >&5
7992echo "${ECHO_T}${ac_cv_c_tclpkgd}" >&6
7993    fi
7994
7995    # Convert to a native path and substitute into the output files.
7996
7997    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
7998
7999    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
8000
8001
8002
8003
8004# Check if thread is enabled.
8005
8006        echo "$as_me:$LINENO: checking whether tclsh was compiled with threads" >&5
8007echo $ECHO_N "checking whether tclsh was compiled with threads... $ECHO_C" >&6
8008        tcl_threadenabled=`echo 'puts -nonewline [info exists tcl_platform(threaded)]' | $TCLSH`
8009        if test "$tcl_threadenabled" = "1" ; then
8010                echo "$as_me:$LINENO: result: yes" >&5
8011echo "${ECHO_T}yes" >&6
8012        else
8013                echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
8015                { { echo "$as_me:$LINENO: error: tcl wasn't compiled with threads enabled" >&5
8016echo "$as_me: error: tcl wasn't compiled with threads enabled" >&2;}
8017   { (exit 1); exit 1; }; }
8018        fi
8019
8020
8021## libcurl
8022
8023
8024# Check whether --with-curlprefix or --without-curlprefix was given.
8025if test "${with_curlprefix+set}" = set; then
8026  withval="$with_curlprefix"
8027    curlprefix=$withval
8028fi;
8029
8030        if test "x$curlprefix" = "x"; then
8031                # Extract the first word of "curl-config", so it can be a program name with args.
8032set dummy curl-config; ac_word=$2
8033echo "$as_me:$LINENO: checking for $ac_word" >&5
8034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  case $CURL_CONFIG in
8039  [\\/]* | ?:[\\/]*)
8040  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8041  ;;
8042  *)
8043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046  IFS=$as_save_IFS
8047  test -z "$as_dir" && as_dir=.
8048  for ac_exec_ext in '' $ac_executable_extensions; do
8049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8052    break 2
8053  fi
8054done
8055done
8056
8057  ;;
8058esac
8059fi
8060CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8061
8062if test -n "$CURL_CONFIG"; then
8063  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8064echo "${ECHO_T}$CURL_CONFIG" >&6
8065else
8066  echo "$as_me:$LINENO: result: no" >&5
8067echo "${ECHO_T}no" >&6
8068fi
8069
8070        else
8071                # Extract the first word of "curl-config", so it can be a program name with args.
8072set dummy curl-config; ac_word=$2
8073echo "$as_me:$LINENO: checking for $ac_word" >&5
8074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
8076  echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078  case $CURL_CONFIG in
8079  [\\/]* | ?:[\\/]*)
8080  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8081  ;;
8082  *)
8083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $curlprefix/bin
8085do
8086  IFS=$as_save_IFS
8087  test -z "$as_dir" && as_dir=.
8088  for ac_exec_ext in '' $ac_executable_extensions; do
8089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092    break 2
8093  fi
8094done
8095done
8096
8097  ;;
8098esac
8099fi
8100CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8101
8102if test -n "$CURL_CONFIG"; then
8103  echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
8104echo "${ECHO_T}$CURL_CONFIG" >&6
8105else
8106  echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108fi
8109
8110        fi
8111
8112        if test "x$CURL_CONFIG" = "x"; then
8113                { { echo "$as_me:$LINENO: error: cannot find curl-config. Is libcurl installed?" >&5
8114echo "$as_me: error: cannot find curl-config. Is libcurl installed?" >&2;}
8115   { (exit 1); exit 1; }; }
8116        fi
8117
8118        CFLAGS_LIBCURL=$($CURL_CONFIG --cflags)
8119        # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
8120        # Get rid of them.
8121        LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | sed -E 's/-arch +[^ ]* ?//g')
8122
8123
8124
8125
8126
8127# Do we have curl_easy_strerror?
8128
8129
8130echo "$as_me:$LINENO: checking for curl_easy_strerror in -lcurl" >&5
8131echo $ECHO_N "checking for curl_easy_strerror in -lcurl... $ECHO_C" >&6
8132if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then
8133  echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135  ac_check_lib_save_LIBS=$LIBS
8136LIBS="-lcurl $LDFLAGS_LIBCURL $LIBS"
8137cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h.  */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h.  */
8143
8144/* Override any gcc2 internal prototype to avoid an error.  */
8145#ifdef __cplusplus
8146extern "C"
8147#endif
8148/* We use char because int might match the return type of a gcc2
8149   builtin and then its argument prototype would still apply.  */
8150char curl_easy_strerror ();
8151int
8152main ()
8153{
8154curl_easy_strerror ();
8155  ;
8156  return 0;
8157}
8158_ACEOF
8159rm -f conftest.$ac_objext conftest$ac_exeext
8160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161  (eval $ac_link) 2>conftest.er1
8162  ac_status=$?
8163  grep -v '^ *+' conftest.er1 >conftest.err
8164  rm -f conftest.er1
8165  cat conftest.err >&5
8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167  (exit $ac_status); } &&
8168         { ac_try='test -z "$ac_c_werror_flag"
8169                         || test ! -s conftest.err'
8170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171  (eval $ac_try) 2>&5
8172  ac_status=$?
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); }; } &&
8175         { ac_try='test -s conftest$ac_exeext'
8176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177  (eval $ac_try) 2>&5
8178  ac_status=$?
8179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); }; }; then
8181  ac_cv_lib_curl_curl_easy_strerror=yes
8182else
8183  echo "$as_me: failed program was:" >&5
8184sed 's/^/| /' conftest.$ac_ext >&5
8185
8186ac_cv_lib_curl_curl_easy_strerror=no
8187fi
8188rm -f conftest.err conftest.$ac_objext \
8189      conftest$ac_exeext conftest.$ac_ext
8190LIBS=$ac_check_lib_save_LIBS
8191fi
8192echo "$as_me:$LINENO: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
8193echo "${ECHO_T}$ac_cv_lib_curl_curl_easy_strerror" >&6
8194if test $ac_cv_lib_curl_curl_easy_strerror = yes; then
8195  cat >>confdefs.h <<\_ACEOF
8196#define HAVE_CURL_EASY_STRERROR 1
8197_ACEOF
8198
8199fi
8200
8201
8202# Determine if we need to install some bundled packages
8203OUR_INCLUDED_PACKAGES=
8204
8205## Thread package.
8206
8207# Check whether --with-included-tclthread or --without-included-tclthread was given.
8208if test "${with_included_tclthread+set}" = set; then
8209  withval="$with_included_tclthread"
8210  with_included_tclthread=$withval
8211else
8212  with_included_tclthread="unspecified"
8213fi;
8214
8215# Check if thread package is already installed.
8216if test "x$with_included_tclthread" = "xunspecified" ; then
8217
8218        echo "$as_me:$LINENO: checking for Tcl Thread package" >&5
8219echo $ECHO_N "checking for Tcl Thread package... $ECHO_C" >&6
8220        package_present=`echo 'if {[catch {package require Thread}]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
8221        if test "$package_present" = "1"; then
8222  echo "$as_me:$LINENO: result: yes" >&5
8223echo "${ECHO_T}yes" >&6; with_included_tclthread=no
8224else
8225  echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; with_included_tclthread=yes
8227fi
8228
8229
8230fi
8231
8232# If thread package isn't installed, configure and install thread package.
8233if test "$with_included_tclthread" = "yes"; then
8234        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES thread2.6"
8235
8236
8237subdirs="$subdirs src/thread2.6"
8238
8239        # Extract thread package
8240        (cd src/; gzip -d < thread2.6.tar.gz | tar xf -)
8241        # Patch thread package (so thread2.6 is the vanilla distribution directory)
8242        patch -p0 < src/thread2.6.diff
8243fi
8244
8245
8246
8247# Allows building of shared libraries
8248
8249    echo "$as_me:$LINENO: checking how to build libraries" >&5
8250echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6
8251    # Check whether --enable-shared or --disable-shared was given.
8252if test "${enable_shared+set}" = set; then
8253  enableval="$enable_shared"
8254  tcl_ok=$enableval
8255else
8256  tcl_ok=yes
8257fi;
8258
8259    if test "${enable_shared+set}" = set; then
8260        enableval="$enable_shared"
8261        tcl_ok=$enableval
8262    else
8263        tcl_ok=yes
8264    fi
8265
8266    if test "$tcl_ok" = "yes" ; then
8267        echo "$as_me:$LINENO: result: shared" >&5
8268echo "${ECHO_T}shared" >&6
8269        SHARED_BUILD=1
8270    else
8271        echo "$as_me:$LINENO: result: static" >&5
8272echo "${ECHO_T}static" >&6
8273        SHARED_BUILD=0
8274
8275cat >>confdefs.h <<\_ACEOF
8276#define STATIC_BUILD 1
8277_ACEOF
8278
8279    fi
8280
8281
8282# Pull compiler / linker values from tclConfig.sh
8283CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
8284CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
8285LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
8286LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
8287SHLIB_LD=${TCL_SHLIB_LD}
8288STLIB_LD=${TCL_STLIB_LD}
8289SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
8290SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304#misc variables that need to be expanded for substitution into tcl
8305
8306oldprefix=$prefix
8307if test "x$prefix" = "xNONE" ; then
8308   prefix=$ac_default_prefix
8309fi
8310
8311eval "prefix_expanded=$prefix"
8312
8313# do this twice, since there is a nested variable of
8314# ${prefix} inside of ${sysconfdir}
8315eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR"
8316eval "PORTCONFIGDIR_EXPANDED=$PORTCONFIGDIR_EXPANDED"
8317
8318eval "localstatedir_expanded=$localstatedir"
8319
8320
8321prefix=$oldprefix
8322
8323
8324# Output
8325
8326                                                                                                    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"
8327
8328
8329cat >confcache <<\_ACEOF
8330# This file is a shell script that caches the results of configure
8331# tests run on this system so they can be shared between configure
8332# scripts and configure runs, see configure's option --config-cache.
8333# It is not useful on other systems.  If it contains results you don't
8334# want to keep, you may remove or edit it.
8335#
8336# config.status only pays attention to the cache file if you give it
8337# the --recheck option to rerun configure.
8338#
8339# `ac_cv_env_foo' variables (set or unset) will be overridden when
8340# loading this file, other *unset* `ac_cv_foo' will be assigned the
8341# following values.
8342
8343_ACEOF
8344
8345# The following way of writing the cache mishandles newlines in values,
8346# but we know of no workaround that is simple, portable, and efficient.
8347# So, don't put newlines in cache variables' values.
8348# Ultrix sh set writes to stderr and can't be redirected directly,
8349# and sets the high bit in the cache file unless we assign to the vars.
8350{
8351  (set) 2>&1 |
8352    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8353    *ac_space=\ *)
8354      # `set' does not quote correctly, so add quotes (double-quote
8355      # substitution turns \\\\ into \\, and sed turns \\ into \).
8356      sed -n \
8357        "s/'/'\\\\''/g;
8358          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8359      ;;
8360    *)
8361      # `set' quotes correctly as required by POSIX, so do not add quotes.
8362      sed -n \
8363        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8364      ;;
8365    esac;
8366} |
8367  sed '
8368     t clear
8369     : clear
8370     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8371     t end
8372     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8373     : end' >>confcache
8374if diff $cache_file confcache >/dev/null 2>&1; then :; else
8375  if test -w $cache_file; then
8376    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8377    cat confcache >$cache_file
8378  else
8379    echo "not updating unwritable cache $cache_file"
8380  fi
8381fi
8382rm -f confcache
8383
8384test "x$prefix" = xNONE && prefix=$ac_default_prefix
8385# Let make expand exec_prefix.
8386test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8387
8388# VPATH may cause trouble with some makes, so we remove $(srcdir),
8389# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8390# trailing colons and then remove the whole line if VPATH becomes empty
8391# (actually we leave an empty line to preserve line numbers).
8392if test "x$srcdir" = x.; then
8393  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8394s/:*\$(srcdir):*/:/;
8395s/:*\${srcdir}:*/:/;
8396s/:*@srcdir@:*/:/;
8397s/^\([^=]*=[     ]*\):*/\1/;
8398s/:*$//;
8399s/^[^=]*=[       ]*$//;
8400}'
8401fi
8402
8403DEFS=-DHAVE_CONFIG_H
8404
8405ac_libobjs=
8406ac_ltlibobjs=
8407for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8408  # 1. Remove the extension, and $U if already installed.
8409  ac_i=`echo "$ac_i" |
8410         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8411  # 2. Add them.
8412  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8413  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8414done
8415LIBOBJS=$ac_libobjs
8416
8417LTLIBOBJS=$ac_ltlibobjs
8418
8419
8420
8421: ${CONFIG_STATUS=./config.status}
8422ac_clean_files_save=$ac_clean_files
8423ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8424{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8425echo "$as_me: creating $CONFIG_STATUS" >&6;}
8426cat >$CONFIG_STATUS <<_ACEOF
8427#! $SHELL
8428# Generated by $as_me.
8429# Run this file to recreate the current configuration.
8430# Compiler output produced by configure, useful for debugging
8431# configure, is in config.log if it exists.
8432
8433debug=false
8434ac_cs_recheck=false
8435ac_cs_silent=false
8436SHELL=\${CONFIG_SHELL-$SHELL}
8437_ACEOF
8438
8439cat >>$CONFIG_STATUS <<\_ACEOF
8440## --------------------- ##
8441## M4sh Initialization.  ##
8442## --------------------- ##
8443
8444# Be Bourne compatible
8445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8446  emulate sh
8447  NULLCMD=:
8448  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8449  # is contrary to our usage.  Disable this feature.
8450  alias -g '${1+"$@"}'='"$@"'
8451elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8452  set -o posix
8453fi
8454DUALCASE=1; export DUALCASE # for MKS sh
8455
8456# Support unset when possible.
8457if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8458  as_unset=unset
8459else
8460  as_unset=false
8461fi
8462
8463
8464# Work around bugs in pre-3.0 UWIN ksh.
8465$as_unset ENV MAIL MAILPATH
8466PS1='$ '
8467PS2='> '
8468PS4='+ '
8469
8470# NLS nuisances.
8471for as_var in \
8472  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8473  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8474  LC_TELEPHONE LC_TIME
8475do
8476  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8477    eval $as_var=C; export $as_var
8478  else
8479    $as_unset $as_var
8480  fi
8481done
8482
8483# Required to use basename.
8484if expr a : '\(a\)' >/dev/null 2>&1; then
8485  as_expr=expr
8486else
8487  as_expr=false
8488fi
8489
8490if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8491  as_basename=basename
8492else
8493  as_basename=false
8494fi
8495
8496
8497# Name of the executable.
8498as_me=`$as_basename "$0" ||
8499$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8500         X"$0" : 'X\(//\)$' \| \
8501         X"$0" : 'X\(/\)$' \| \
8502         .     : '\(.\)' 2>/dev/null ||
8503echo X/"$0" |
8504    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8505          /^X\/\(\/\/\)$/{ s//\1/; q; }
8506          /^X\/\(\/\).*/{ s//\1/; q; }
8507          s/.*/./; q'`
8508
8509
8510# PATH needs CR, and LINENO needs CR and PATH.
8511# Avoid depending upon Character Ranges.
8512as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8513as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8514as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8515as_cr_digits='0123456789'
8516as_cr_alnum=$as_cr_Letters$as_cr_digits
8517
8518# The user is always right.
8519if test "${PATH_SEPARATOR+set}" != set; then
8520  echo "#! /bin/sh" >conf$$.sh
8521  echo  "exit 0"   >>conf$$.sh
8522  chmod +x conf$$.sh
8523  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8524    PATH_SEPARATOR=';'
8525  else
8526    PATH_SEPARATOR=:
8527  fi
8528  rm -f conf$$.sh
8529fi
8530
8531
8532  as_lineno_1=$LINENO
8533  as_lineno_2=$LINENO
8534  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8535  test "x$as_lineno_1" != "x$as_lineno_2" &&
8536  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8537  # Find who we are.  Look in the path if we contain no path at all
8538  # relative or not.
8539  case $0 in
8540    *[\\/]* ) as_myself=$0 ;;
8541    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542for as_dir in $PATH
8543do
8544  IFS=$as_save_IFS
8545  test -z "$as_dir" && as_dir=.
8546  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8547done
8548
8549       ;;
8550  esac
8551  # We did not find ourselves, most probably we were run as `sh COMMAND'
8552  # in which case we are not to be found in the path.
8553  if test "x$as_myself" = x; then
8554    as_myself=$0
8555  fi
8556  if test ! -f "$as_myself"; then
8557    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8558echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8559   { (exit 1); exit 1; }; }
8560  fi
8561  case $CONFIG_SHELL in
8562  '')
8563    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8565do
8566  IFS=$as_save_IFS
8567  test -z "$as_dir" && as_dir=.
8568  for as_base in sh bash ksh sh5; do
8569         case $as_dir in
8570         /*)
8571           if ("$as_dir/$as_base" -c '
8572  as_lineno_1=$LINENO
8573  as_lineno_2=$LINENO
8574  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8575  test "x$as_lineno_1" != "x$as_lineno_2" &&
8576  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8577             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8578             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8579             CONFIG_SHELL=$as_dir/$as_base
8580             export CONFIG_SHELL
8581             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8582           fi;;
8583         esac
8584       done
8585done
8586;;
8587  esac
8588
8589  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8590  # uniformly replaced by the line number.  The first 'sed' inserts a
8591  # line-number line before each line; the second 'sed' does the real
8592  # work.  The second script uses 'N' to pair each line-number line
8593  # with the numbered line, and appends trailing '-' during
8594  # substitution so that $LINENO is not a special case at line end.
8595  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8596  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8597  sed '=' <$as_myself |
8598    sed '
8599      N
8600      s,$,-,
8601      : loop
8602      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8603      t loop
8604      s,-$,,
8605      s,^['$as_cr_digits']*\n,,
8606    ' >$as_me.lineno &&
8607  chmod +x $as_me.lineno ||
8608    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8609echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8610   { (exit 1); exit 1; }; }
8611
8612  # Don't try to exec as it changes $[0], causing all sort of problems
8613  # (the dirname of $[0] is not the place where we might find the
8614  # original and so on.  Autoconf is especially sensible to this).
8615  . ./$as_me.lineno
8616  # Exit status is that of the last command.
8617  exit
8618}
8619
8620
8621case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8622  *c*,-n*) ECHO_N= ECHO_C='
8623' ECHO_T='      ' ;;
8624  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8625  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8626esac
8627
8628if expr a : '\(a\)' >/dev/null 2>&1; then
8629  as_expr=expr
8630else
8631  as_expr=false
8632fi
8633
8634rm -f conf$$ conf$$.exe conf$$.file
8635echo >conf$$.file
8636if ln -s conf$$.file conf$$ 2>/dev/null; then
8637  # We could just check for DJGPP; but this test a) works b) is more generic
8638  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8639  if test -f conf$$.exe; then
8640    # Don't use ln at all; we don't have any links
8641    as_ln_s='cp -p'
8642  else
8643    as_ln_s='ln -s'
8644  fi
8645elif ln conf$$.file conf$$ 2>/dev/null; then
8646  as_ln_s=ln
8647else
8648  as_ln_s='cp -p'
8649fi
8650rm -f conf$$ conf$$.exe conf$$.file
8651
8652if mkdir -p . 2>/dev/null; then
8653  as_mkdir_p=:
8654else
8655  test -d ./-p && rmdir ./-p
8656  as_mkdir_p=false
8657fi
8658
8659as_executable_p="test -f"
8660
8661# Sed expression to map a string onto a valid CPP name.
8662as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8663
8664# Sed expression to map a string onto a valid variable name.
8665as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8666
8667
8668# IFS
8669# We need space, tab and new line, in precisely that order.
8670as_nl='
8671'
8672IFS="   $as_nl"
8673
8674# CDPATH.
8675$as_unset CDPATH
8676
8677exec 6>&1
8678
8679# Open the log real soon, to keep \$[0] and so on meaningful, and to
8680# report actual input values of CONFIG_FILES etc. instead of their
8681# values after options handling.  Logging --version etc. is OK.
8682exec 5>>config.log
8683{
8684  echo
8685  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8686## Running $as_me. ##
8687_ASBOX
8688} >&5
8689cat >&5 <<_CSEOF
8690
8691This file was extended by OpenDarwin DarwinPorts $as_me 1.0, which was
8692generated by GNU Autoconf 2.59.  Invocation command line was
8693
8694  CONFIG_FILES    = $CONFIG_FILES
8695  CONFIG_HEADERS  = $CONFIG_HEADERS
8696  CONFIG_LINKS    = $CONFIG_LINKS
8697  CONFIG_COMMANDS = $CONFIG_COMMANDS
8698  $ $0 $@
8699
8700_CSEOF
8701echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8702echo >&5
8703_ACEOF
8704
8705# Files that config.status was made for.
8706if test -n "$ac_config_files"; then
8707  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8708fi
8709
8710if test -n "$ac_config_headers"; then
8711  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8712fi
8713
8714if test -n "$ac_config_links"; then
8715  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8716fi
8717
8718if test -n "$ac_config_commands"; then
8719  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8720fi
8721
8722cat >>$CONFIG_STATUS <<\_ACEOF
8723
8724ac_cs_usage="\
8725\`$as_me' instantiates files from templates according to the
8726current configuration.
8727
8728Usage: $0 [OPTIONS] [FILE]...
8729
8730  -h, --help       print this help, then exit
8731  -V, --version    print version number, then exit
8732  -q, --quiet      do not print progress messages
8733  -d, --debug      don't remove temporary files
8734      --recheck    update $as_me by reconfiguring in the same conditions
8735  --file=FILE[:TEMPLATE]
8736                   instantiate the configuration file FILE
8737  --header=FILE[:TEMPLATE]
8738                   instantiate the configuration header FILE
8739
8740Configuration files:
8741$config_files
8742
8743Configuration headers:
8744$config_headers
8745
8746Report bugs to <bug-autoconf@gnu.org>."
8747_ACEOF
8748
8749cat >>$CONFIG_STATUS <<_ACEOF
8750ac_cs_version="\\
8751OpenDarwin DarwinPorts config.status 1.0
8752configured by $0, generated by GNU Autoconf 2.59,
8753  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8754
8755Copyright (C) 2003 Free Software Foundation, Inc.
8756This config.status script is free software; the Free Software Foundation
8757gives unlimited permission to copy, distribute and modify it."
8758srcdir=$srcdir
8759INSTALL="$INSTALL"
8760_ACEOF
8761
8762cat >>$CONFIG_STATUS <<\_ACEOF
8763# If no file are specified by the user, then we need to provide default
8764# value.  By we need to know if files were specified by the user.
8765ac_need_defaults=:
8766while test $# != 0
8767do
8768  case $1 in
8769  --*=*)
8770    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8771    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8772    ac_shift=:
8773    ;;
8774  -*)
8775    ac_option=$1
8776    ac_optarg=$2
8777    ac_shift=shift
8778    ;;
8779  *) # This is not an option, so the user has probably given explicit
8780     # arguments.
8781     ac_option=$1
8782     ac_need_defaults=false;;
8783  esac
8784
8785  case $ac_option in
8786  # Handling of the options.
8787_ACEOF
8788cat >>$CONFIG_STATUS <<\_ACEOF
8789  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8790    ac_cs_recheck=: ;;
8791  --version | --vers* | -V )
8792    echo "$ac_cs_version"; exit 0 ;;
8793  --he | --h)
8794    # Conflict between --help and --header
8795    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8796Try \`$0 --help' for more information." >&5
8797echo "$as_me: error: ambiguous option: $1
8798Try \`$0 --help' for more information." >&2;}
8799   { (exit 1); exit 1; }; };;
8800  --help | --hel | -h )
8801    echo "$ac_cs_usage"; exit 0 ;;
8802  --debug | --d* | -d )
8803    debug=: ;;
8804  --file | --fil | --fi | --f )
8805    $ac_shift
8806    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8807    ac_need_defaults=false;;
8808  --header | --heade | --head | --hea )
8809    $ac_shift
8810    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8811    ac_need_defaults=false;;
8812  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8813  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8814    ac_cs_silent=: ;;
8815
8816  # This is an error.
8817  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8818Try \`$0 --help' for more information." >&5
8819echo "$as_me: error: unrecognized option: $1
8820Try \`$0 --help' for more information." >&2;}
8821   { (exit 1); exit 1; }; } ;;
8822
8823  *) ac_config_targets="$ac_config_targets $1" ;;
8824
8825  esac
8826  shift
8827done
8828
8829ac_configure_extra_args=
8830
8831if $ac_cs_silent; then
8832  exec 6>/dev/null
8833  ac_configure_extra_args="$ac_configure_extra_args --silent"
8834fi
8835
8836_ACEOF
8837cat >>$CONFIG_STATUS <<_ACEOF
8838if \$ac_cs_recheck; then
8839  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8840  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8841fi
8842
8843_ACEOF
8844
8845
8846
8847
8848
8849cat >>$CONFIG_STATUS <<\_ACEOF
8850for ac_config_target in $ac_config_targets
8851do
8852  case "$ac_config_target" in
8853  # Handling of arguments.
8854  "src/programs/daemondo/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/daemondo/Makefile" ;;
8855  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8856  "Mk/dports.autoconf.mk" ) CONFIG_FILES="$CONFIG_FILES Mk/dports.autoconf.mk" ;;
8857  "doc/prefix.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
8858  "doc/macosx.mtree" ) CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
8859  "doc/ports.conf" ) CONFIG_FILES="$CONFIG_FILES doc/ports.conf" ;;
8860  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8861  "src/darwinports1.0/darwinports_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_autoconf.tcl" ;;
8862  "src/port1.0/port_autoconf.tcl" ) CONFIG_FILES="$CONFIG_FILES src/port1.0/port_autoconf.tcl" ;;
8863  "src/programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
8864  "src/darwinports1.0/darwinports_fastload.tcl" ) CONFIG_FILES="$CONFIG_FILES src/darwinports1.0/darwinports_fastload.tcl" ;;
8865  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8866  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8867echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8868   { (exit 1); exit 1; }; };;
8869  esac
8870done
8871
8872# If the user did not use the arguments to specify the items to instantiate,
8873# then the envvar interface is used.  Set only those that are not.
8874# We use the long form for the default assignment because of an extremely
8875# bizarre bug on SunOS 4.1.3.
8876if $ac_need_defaults; then
8877  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8878  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8879fi
8880
8881# Have a temporary directory for convenience.  Make it in the build tree
8882# simply because there is no reason to put it here, and in addition,
8883# creating and moving files from /tmp can sometimes cause problems.
8884# Create a temporary directory, and hook for its removal unless debugging.
8885$debug ||
8886{
8887  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8888  trap '{ (exit 1); exit 1; }' 1 2 13 15
8889}
8890
8891# Create a (secure) tmp directory for tmp files.
8892
8893{
8894  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8895  test -n "$tmp" && test -d "$tmp"
8896}  ||
8897{
8898  tmp=./confstat$$-$RANDOM
8899  (umask 077 && mkdir $tmp)
8900} ||
8901{
8902   echo "$me: cannot create a temporary directory in ." >&2
8903   { (exit 1); exit 1; }
8904}
8905
8906_ACEOF
8907
8908cat >>$CONFIG_STATUS <<_ACEOF
8909
8910#
8911# CONFIG_FILES section.
8912#
8913
8914# No need to generate the scripts if there are no CONFIG_FILES.
8915# This happens for instance when ./config.status config.h
8916if test -n "\$CONFIG_FILES"; then
8917  # Protect against being on the right side of a sed subst in config.status.
8918  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8919   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8920s,@SHELL@,$SHELL,;t t
8921s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8922s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8923s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8924s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8925s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8926s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8927s,@exec_prefix@,$exec_prefix,;t t
8928s,@prefix@,$prefix,;t t
8929s,@program_transform_name@,$program_transform_name,;t t
8930s,@bindir@,$bindir,;t t
8931s,@sbindir@,$sbindir,;t t
8932s,@libexecdir@,$libexecdir,;t t
8933s,@datadir@,$datadir,;t t
8934s,@sysconfdir@,$sysconfdir,;t t
8935s,@sharedstatedir@,$sharedstatedir,;t t
8936s,@localstatedir@,$localstatedir,;t t
8937s,@libdir@,$libdir,;t t
8938s,@includedir@,$includedir,;t t
8939s,@oldincludedir@,$oldincludedir,;t t
8940s,@infodir@,$infodir,;t t
8941s,@mandir@,$mandir,;t t
8942s,@build_alias@,$build_alias,;t t
8943s,@host_alias@,$host_alias,;t t
8944s,@target_alias@,$target_alias,;t t
8945s,@DEFS@,$DEFS,;t t
8946s,@ECHO_C@,$ECHO_C,;t t
8947s,@ECHO_N@,$ECHO_N,;t t
8948s,@ECHO_T@,$ECHO_T,;t t
8949s,@LIBS@,$LIBS,;t t
8950s,@build@,$build,;t t
8951s,@build_cpu@,$build_cpu,;t t
8952s,@build_vendor@,$build_vendor,;t t
8953s,@build_os@,$build_os,;t t
8954s,@host@,$host,;t t
8955s,@host_cpu@,$host_cpu,;t t
8956s,@host_vendor@,$host_vendor,;t t
8957s,@host_os@,$host_os,;t t
8958s,@target@,$target,;t t
8959s,@target_cpu@,$target_cpu,;t t
8960s,@target_vendor@,$target_vendor,;t t
8961s,@target_os@,$target_os,;t t
8962s,@CC@,$CC,;t t
8963s,@CFLAGS@,$CFLAGS,;t t
8964s,@LDFLAGS@,$LDFLAGS,;t t
8965s,@CPPFLAGS@,$CPPFLAGS,;t t
8966s,@ac_ct_CC@,$ac_ct_CC,;t t
8967s,@EXEEXT@,$EXEEXT,;t t
8968s,@OBJEXT@,$OBJEXT,;t t
8969s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8970s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8971s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8972s,@SET_MAKE@,$SET_MAKE,;t t
8973s,@LN_S@,$LN_S,;t t
8974s,@CVS@,$CVS,;t t
8975s,@HAVE_LAUNCHD@,$HAVE_LAUNCHD,;t t
8976s,@LAUNCHCTL@,$LAUNCHCTL,;t t
8977s,@XCODEBUILD@,$XCODEBUILD,;t t
8978s,@TAR@,$TAR,;t t
8979s,@GNUTAR@,$GNUTAR,;t t
8980s,@TAR_CMD@,$TAR_CMD,;t t
8981s,@CFLAGS_QUICHEEATERS@,$CFLAGS_QUICHEEATERS,;t t
8982s,@MTREE@,$MTREE,;t t
8983s,@subdirs@,$subdirs,;t t
8984s,@ENABLE_LAUNCHD_SUPPORT@,$ENABLE_LAUNCHD_SUPPORT,;t t
8985s,@HAVE_FRAMEWORK_COREFOUNDATION@,$HAVE_FRAMEWORK_COREFOUNDATION,;t t
8986s,@HAVE_FRAMEWORK_SYSTEMCONFIGURATION@,$HAVE_FRAMEWORK_SYSTEMCONFIGURATION,;t t
8987s,@HAVE_FRAMEWORK_IOKIT@,$HAVE_FRAMEWORK_IOKIT,;t t
8988s,@HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER@,$HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER,;t t
8989s,@REPLACEMENT_PROGS@,$REPLACEMENT_PROGS,;t t
8990s,@EXTRA_PROGS@,$EXTRA_PROGS,;t t
8991s,@DPORTSDIR@,$DPORTSDIR,;t t
8992s,@PORTCONFIGDIR@,$PORTCONFIGDIR,;t t
8993s,@DSTUSR@,$DSTUSR,;t t
8994s,@DSTGRP@,$DSTGRP,;t t
8995s,@DSTMODE@,$DSTMODE,;t t
8996s,@CPP@,$CPP,;t t
8997s,@EGREP@,$EGREP,;t t
8998s,@MD5_LIBS@,$MD5_LIBS,;t t
8999s,@X_CFLAGS@,$X_CFLAGS,;t t
9000s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9001s,@X_LIBS@,$X_LIBS,;t t
9002s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9003s,@TCL_VERSION@,$TCL_VERSION,;t t
9004s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
9005s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
9006s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
9007s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
9008s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
9009s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
9010s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
9011s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
9012s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t
9013s,@TCLSH@,$TCLSH,;t t
9014s,@TCL_PACKAGE_DIR@,$TCL_PACKAGE_DIR,;t t
9015s,@CURL_CONFIG@,$CURL_CONFIG,;t t
9016s,@CFLAGS_LIBCURL@,$CFLAGS_LIBCURL,;t t
9017s,@LDFLAGS_LIBCURL@,$LDFLAGS_LIBCURL,;t t
9018s,@OUR_INCLUDED_PACKAGES@,$OUR_INCLUDED_PACKAGES,;t t
9019s,@INCLUDES@,$INCLUDES,;t t
9020s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t
9021s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t
9022s,@TCL_DEFS@,$TCL_DEFS,;t t
9023s,@STLIB_LD@,$STLIB_LD,;t t
9024s,@SHLIB_LD@,$SHLIB_LD,;t t
9025s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
9026s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
9027s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
9028s,@TCL_CC@,$TCL_CC,;t t
9029s,@prefix_expanded@,$prefix_expanded,;t t
9030s,@PORTCONFIGDIR_EXPANDED@,$PORTCONFIGDIR_EXPANDED,;t t
9031s,@localstatedir_expanded@,$localstatedir_expanded,;t t
9032s,@LIBOBJS@,$LIBOBJS,;t t
9033s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9034CEOF
9035
9036_ACEOF
9037
9038  cat >>$CONFIG_STATUS <<\_ACEOF
9039  # Split the substitutions into bite-sized pieces for seds with
9040  # small command number limits, like on Digital OSF/1 and HP-UX.
9041  ac_max_sed_lines=48
9042  ac_sed_frag=1 # Number of current file.
9043  ac_beg=1 # First line for current file.
9044  ac_end=$ac_max_sed_lines # Line after last line for current file.
9045  ac_more_lines=:
9046  ac_sed_cmds=
9047  while $ac_more_lines; do
9048    if test $ac_beg -gt 1; then
9049      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9050    else
9051      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9052    fi
9053    if test ! -s $tmp/subs.frag; then
9054      ac_more_lines=false
9055    else
9056      # The purpose of the label and of the branching condition is to
9057      # speed up the sed processing (if there are no `@' at all, there
9058      # is no need to browse any of the substitutions).
9059      # These are the two extra sed commands mentioned above.
9060      (echo ':t
9061  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9062      if test -z "$ac_sed_cmds"; then
9063        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9064      else
9065        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9066      fi
9067      ac_sed_frag=`expr $ac_sed_frag + 1`
9068      ac_beg=$ac_end
9069      ac_end=`expr $ac_end + $ac_max_sed_lines`
9070    fi
9071  done
9072  if test -z "$ac_sed_cmds"; then
9073    ac_sed_cmds=cat
9074  fi
9075fi # test -n "$CONFIG_FILES"
9076
9077_ACEOF
9078cat >>$CONFIG_STATUS <<\_ACEOF
9079for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9080  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9081  case $ac_file in
9082  - | *:- | *:-:* ) # input from stdin
9083        cat >$tmp/stdin
9084        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9085        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9086  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9087        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9088  * )   ac_file_in=$ac_file.in ;;
9089  esac
9090
9091  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9092  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9094         X"$ac_file" : 'X\(//\)[^/]' \| \
9095         X"$ac_file" : 'X\(//\)$' \| \
9096         X"$ac_file" : 'X\(/\)' \| \
9097         .     : '\(.\)' 2>/dev/null ||
9098echo X"$ac_file" |
9099    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9100          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9101          /^X\(\/\/\)$/{ s//\1/; q; }
9102          /^X\(\/\).*/{ s//\1/; q; }
9103          s/.*/./; q'`
9104  { if $as_mkdir_p; then
9105    mkdir -p "$ac_dir"
9106  else
9107    as_dir="$ac_dir"
9108    as_dirs=
9109    while test ! -d "$as_dir"; do
9110      as_dirs="$as_dir $as_dirs"
9111      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9112$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9113         X"$as_dir" : 'X\(//\)[^/]' \| \
9114         X"$as_dir" : 'X\(//\)$' \| \
9115         X"$as_dir" : 'X\(/\)' \| \
9116         .     : '\(.\)' 2>/dev/null ||
9117echo X"$as_dir" |
9118    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9119          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9120          /^X\(\/\/\)$/{ s//\1/; q; }
9121          /^X\(\/\).*/{ s//\1/; q; }
9122          s/.*/./; q'`
9123    done
9124    test ! -n "$as_dirs" || mkdir $as_dirs
9125  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9126echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9127   { (exit 1); exit 1; }; }; }
9128
9129  ac_builddir=.
9130
9131if test "$ac_dir" != .; then
9132  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9133  # A "../" for each directory in $ac_dir_suffix.
9134  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9135else
9136  ac_dir_suffix= ac_top_builddir=
9137fi
9138
9139case $srcdir in
9140  .)  # No --srcdir option.  We are building in place.
9141    ac_srcdir=.
9142    if test -z "$ac_top_builddir"; then
9143       ac_top_srcdir=.
9144    else
9145       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9146    fi ;;
9147  [\\/]* | ?:[\\/]* )  # Absolute path.
9148    ac_srcdir=$srcdir$ac_dir_suffix;
9149    ac_top_srcdir=$srcdir ;;
9150  *) # Relative path.
9151    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9152    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9153esac
9154
9155# Do not use `cd foo && pwd` to compute absolute paths, because
9156# the directories may not exist.
9157case `pwd` in
9158.) ac_abs_builddir="$ac_dir";;
9159*)
9160  case "$ac_dir" in
9161  .) ac_abs_builddir=`pwd`;;
9162  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9163  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9164  esac;;
9165esac
9166case $ac_abs_builddir in
9167.) ac_abs_top_builddir=${ac_top_builddir}.;;
9168*)
9169  case ${ac_top_builddir}. in
9170  .) ac_abs_top_builddir=$ac_abs_builddir;;
9171  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9172  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9173  esac;;
9174esac
9175case $ac_abs_builddir in
9176.) ac_abs_srcdir=$ac_srcdir;;
9177*)
9178  case $ac_srcdir in
9179  .) ac_abs_srcdir=$ac_abs_builddir;;
9180  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9181  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9182  esac;;
9183esac
9184case $ac_abs_builddir in
9185.) ac_abs_top_srcdir=$ac_top_srcdir;;
9186*)
9187  case $ac_top_srcdir in
9188  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9189  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9190  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9191  esac;;
9192esac
9193
9194
9195  case $INSTALL in
9196  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9197  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9198  esac
9199
9200  if test x"$ac_file" != x-; then
9201    { echo "$as_me:$LINENO: creating $ac_file" >&5
9202echo "$as_me: creating $ac_file" >&6;}
9203    rm -f "$ac_file"
9204  fi
9205  # Let's still pretend it is `configure' which instantiates (i.e., don't
9206  # use $as_me), people would be surprised to read:
9207  #    /* config.h.  Generated by config.status.  */
9208  if test x"$ac_file" = x-; then
9209    configure_input=
9210  else
9211    configure_input="$ac_file.  "
9212  fi
9213  configure_input=$configure_input"Generated from `echo $ac_file_in |
9214                                     sed 's,.*/,,'` by configure."
9215
9216  # First look for the input files in the build tree, otherwise in the
9217  # src tree.
9218  ac_file_inputs=`IFS=:
9219    for f in $ac_file_in; do
9220      case $f in
9221      -) echo $tmp/stdin ;;
9222      [\\/$]*)
9223         # Absolute (can't be DOS-style, as IFS=:)
9224         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9225echo "$as_me: error: cannot find input file: $f" >&2;}
9226   { (exit 1); exit 1; }; }
9227         echo "$f";;
9228      *) # Relative
9229         if test -f "$f"; then
9230           # Build tree
9231           echo "$f"
9232         elif test -f "$srcdir/$f"; then
9233           # Source tree
9234           echo "$srcdir/$f"
9235         else
9236           # /dev/null tree
9237           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9238echo "$as_me: error: cannot find input file: $f" >&2;}
9239   { (exit 1); exit 1; }; }
9240         fi;;
9241      esac
9242    done` || { (exit 1); exit 1; }
9243_ACEOF
9244cat >>$CONFIG_STATUS <<_ACEOF
9245  sed "$ac_vpsub
9246$extrasub
9247_ACEOF
9248cat >>$CONFIG_STATUS <<\_ACEOF
9249:t
9250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9251s,@configure_input@,$configure_input,;t t
9252s,@srcdir@,$ac_srcdir,;t t
9253s,@abs_srcdir@,$ac_abs_srcdir,;t t
9254s,@top_srcdir@,$ac_top_srcdir,;t t
9255s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9256s,@builddir@,$ac_builddir,;t t
9257s,@abs_builddir@,$ac_abs_builddir,;t t
9258s,@top_builddir@,$ac_top_builddir,;t t
9259s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9260s,@INSTALL@,$ac_INSTALL,;t t
9261" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9262  rm -f $tmp/stdin
9263  if test x"$ac_file" != x-; then
9264    mv $tmp/out $ac_file
9265  else
9266    cat $tmp/out
9267    rm -f $tmp/out
9268  fi
9269
9270done
9271_ACEOF
9272cat >>$CONFIG_STATUS <<\_ACEOF
9273
9274#
9275# CONFIG_HEADER section.
9276#
9277
9278# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9279# NAME is the cpp macro being defined and VALUE is the value it is being given.
9280#
9281# ac_d sets the value in "#define NAME VALUE" lines.
9282ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9283ac_dB='[         ].*$,\1#\2'
9284ac_dC=' '
9285ac_dD=',;t'
9286# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9287ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9288ac_uB='$,\1#\2define\3'
9289ac_uC=' '
9290ac_uD=',;t'
9291
9292for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9293  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9294  case $ac_file in
9295  - | *:- | *:-:* ) # input from stdin
9296        cat >$tmp/stdin
9297        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9298        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9299  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9300        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9301  * )   ac_file_in=$ac_file.in ;;
9302  esac
9303
9304  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9305echo "$as_me: creating $ac_file" >&6;}
9306
9307  # First look for the input files in the build tree, otherwise in the
9308  # src tree.
9309  ac_file_inputs=`IFS=:
9310    for f in $ac_file_in; do
9311      case $f in
9312      -) echo $tmp/stdin ;;
9313      [\\/$]*)
9314         # Absolute (can't be DOS-style, as IFS=:)
9315         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9316echo "$as_me: error: cannot find input file: $f" >&2;}
9317   { (exit 1); exit 1; }; }
9318         # Do quote $f, to prevent DOS paths from being IFS'd.
9319         echo "$f";;
9320      *) # Relative
9321         if test -f "$f"; then
9322           # Build tree
9323           echo "$f"
9324         elif test -f "$srcdir/$f"; then
9325           # Source tree
9326           echo "$srcdir/$f"
9327         else
9328           # /dev/null tree
9329           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9330echo "$as_me: error: cannot find input file: $f" >&2;}
9331   { (exit 1); exit 1; }; }
9332         fi;;
9333      esac
9334    done` || { (exit 1); exit 1; }
9335  # Remove the trailing spaces.
9336  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9337
9338_ACEOF
9339
9340# Transform confdefs.h into two sed scripts, `conftest.defines' and
9341# `conftest.undefs', that substitutes the proper values into
9342# config.h.in to produce config.h.  The first handles `#define'
9343# templates, and the second `#undef' templates.
9344# And first: Protect against being on the right side of a sed subst in
9345# config.status.  Protect against being in an unquoted here document
9346# in config.status.
9347rm -f conftest.defines conftest.undefs
9348# Using a here document instead of a string reduces the quoting nightmare.
9349# Putting comments in sed scripts is not portable.
9350#
9351# `end' is used to avoid that the second main sed command (meant for
9352# 0-ary CPP macros) applies to n-ary macro definitions.
9353# See the Autoconf documentation for `clear'.
9354cat >confdef2sed.sed <<\_ACEOF
9355s/[\\&,]/\\&/g
9356s,[\\$`],\\&,g
9357t clear
9358: clear
9359s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9360t end
9361s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9362: end
9363_ACEOF
9364# If some macros were called several times there might be several times
9365# the same #defines, which is useless.  Nevertheless, we may not want to
9366# sort them, since we want the *last* AC-DEFINE to be honored.
9367uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9368sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9369rm -f confdef2sed.sed
9370
9371# This sed command replaces #undef with comments.  This is necessary, for
9372# example, in the case of _POSIX_SOURCE, which is predefined and required
9373# on some systems where configure will not decide to define it.
9374cat >>conftest.undefs <<\_ACEOF
9375s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9376_ACEOF
9377
9378# Break up conftest.defines because some shells have a limit on the size
9379# of here documents, and old seds have small limits too (100 cmds).
9380echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9381echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9382echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9383echo '  :' >>$CONFIG_STATUS
9384rm -f conftest.tail
9385while grep . conftest.defines >/dev/null
9386do
9387  # Write a limited-size here document to $tmp/defines.sed.
9388  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9389  # Speed up: don't consider the non `#define' lines.
9390  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9391  # Work around the forget-to-reset-the-flag bug.
9392  echo 't clr' >>$CONFIG_STATUS
9393  echo ': clr' >>$CONFIG_STATUS
9394  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9395  echo 'CEOF
9396  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9397  rm -f $tmp/in
9398  mv $tmp/out $tmp/in
9399' >>$CONFIG_STATUS
9400  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9401  rm -f conftest.defines
9402  mv conftest.tail conftest.defines
9403done
9404rm -f conftest.defines
9405echo '  fi # grep' >>$CONFIG_STATUS
9406echo >>$CONFIG_STATUS
9407
9408# Break up conftest.undefs because some shells have a limit on the size
9409# of here documents, and old seds have small limits too (100 cmds).
9410echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9411rm -f conftest.tail
9412while grep . conftest.undefs >/dev/null
9413do
9414  # Write a limited-size here document to $tmp/undefs.sed.
9415  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9416  # Speed up: don't consider the non `#undef'
9417  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9418  # Work around the forget-to-reset-the-flag bug.
9419  echo 't clr' >>$CONFIG_STATUS
9420  echo ': clr' >>$CONFIG_STATUS
9421  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9422  echo 'CEOF
9423  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9424  rm -f $tmp/in
9425  mv $tmp/out $tmp/in
9426' >>$CONFIG_STATUS
9427  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9428  rm -f conftest.undefs
9429  mv conftest.tail conftest.undefs
9430done
9431rm -f conftest.undefs
9432
9433cat >>$CONFIG_STATUS <<\_ACEOF
9434  # Let's still pretend it is `configure' which instantiates (i.e., don't
9435  # use $as_me), people would be surprised to read:
9436  #    /* config.h.  Generated by config.status.  */
9437  if test x"$ac_file" = x-; then
9438    echo "/* Generated by configure.  */" >$tmp/config.h
9439  else
9440    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9441  fi
9442  cat $tmp/in >>$tmp/config.h
9443  rm -f $tmp/in
9444  if test x"$ac_file" != x-; then
9445    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9446      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9447echo "$as_me: $ac_file is unchanged" >&6;}
9448    else
9449      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9451         X"$ac_file" : 'X\(//\)[^/]' \| \
9452         X"$ac_file" : 'X\(//\)$' \| \
9453         X"$ac_file" : 'X\(/\)' \| \
9454         .     : '\(.\)' 2>/dev/null ||
9455echo X"$ac_file" |
9456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9457          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9458          /^X\(\/\/\)$/{ s//\1/; q; }
9459          /^X\(\/\).*/{ s//\1/; q; }
9460          s/.*/./; q'`
9461      { if $as_mkdir_p; then
9462    mkdir -p "$ac_dir"
9463  else
9464    as_dir="$ac_dir"
9465    as_dirs=
9466    while test ! -d "$as_dir"; do
9467      as_dirs="$as_dir $as_dirs"
9468      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9470         X"$as_dir" : 'X\(//\)[^/]' \| \
9471         X"$as_dir" : 'X\(//\)$' \| \
9472         X"$as_dir" : 'X\(/\)' \| \
9473         .     : '\(.\)' 2>/dev/null ||
9474echo X"$as_dir" |
9475    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9476          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9477          /^X\(\/\/\)$/{ s//\1/; q; }
9478          /^X\(\/\).*/{ s//\1/; q; }
9479          s/.*/./; q'`
9480    done
9481    test ! -n "$as_dirs" || mkdir $as_dirs
9482  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9483echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9484   { (exit 1); exit 1; }; }; }
9485
9486      rm -f $ac_file
9487      mv $tmp/config.h $ac_file
9488    fi
9489  else
9490    cat $tmp/config.h
9491    rm -f $tmp/config.h
9492  fi
9493done
9494_ACEOF
9495
9496cat >>$CONFIG_STATUS <<\_ACEOF
9497
9498{ (exit 0); exit 0; }
9499_ACEOF
9500chmod +x $CONFIG_STATUS
9501ac_clean_files=$ac_clean_files_save
9502
9503
9504# configure is writing to config.log, and then calls config.status.
9505# config.status does its own redirection, appending to config.log.
9506# Unfortunately, on DOS this fails, as config.log is still kept open
9507# by configure, so config.status won't be able to write to it; its
9508# output is simply discarded.  So we exec the FD to /dev/null,
9509# effectively closing config.log, so it can be properly (re)opened and
9510# appended to by config.status.  When coming back to configure, we
9511# need to make the FD available again.
9512if test "$no_create" != yes; then
9513  ac_cs_success=:
9514  ac_config_status_args=
9515  test "$silent" = yes &&
9516    ac_config_status_args="$ac_config_status_args --quiet"
9517  exec 5>/dev/null
9518  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9519  exec 5>>config.log
9520  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9521  # would make configure fail if this is the last instruction.
9522  $ac_cs_success || { (exit 1); exit 1; }
9523fi
9524
9525#
9526# CONFIG_SUBDIRS section.
9527#
9528if test "$no_recursion" != yes; then
9529
9530  # Remove --cache-file and --srcdir arguments so they do not pile up.
9531  ac_sub_configure_args=
9532  ac_prev=
9533  for ac_arg in $ac_configure_args; do
9534    if test -n "$ac_prev"; then
9535      ac_prev=
9536      continue
9537    fi
9538    case $ac_arg in
9539    -cache-file | --cache-file | --cache-fil | --cache-fi \
9540    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9541      ac_prev=cache_file ;;
9542    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9543    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9544    | --c=*)
9545      ;;
9546    --config-cache | -C)
9547      ;;
9548    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9549      ac_prev=srcdir ;;
9550    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9551      ;;
9552    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9553      ac_prev=prefix ;;
9554    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9555      ;;
9556    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9557    esac
9558  done
9559
9560  # Always prepend --prefix to ensure using the same prefix
9561  # in subdir configurations.
9562  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9563
9564  ac_popdir=`pwd`
9565  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9566
9567    # Do not complain, so a configure script can configure whichever
9568    # parts of a large source tree are present.
9569    test -d $srcdir/$ac_dir || continue
9570
9571    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9572echo "$as_me: configuring in $ac_dir" >&6;}
9573    { if $as_mkdir_p; then
9574    mkdir -p "$ac_dir"
9575  else
9576    as_dir="$ac_dir"
9577    as_dirs=
9578    while test ! -d "$as_dir"; do
9579      as_dirs="$as_dir $as_dirs"
9580      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9582         X"$as_dir" : 'X\(//\)[^/]' \| \
9583         X"$as_dir" : 'X\(//\)$' \| \
9584         X"$as_dir" : 'X\(/\)' \| \
9585         .     : '\(.\)' 2>/dev/null ||
9586echo X"$as_dir" |
9587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9588          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9589          /^X\(\/\/\)$/{ s//\1/; q; }
9590          /^X\(\/\).*/{ s//\1/; q; }
9591          s/.*/./; q'`
9592    done
9593    test ! -n "$as_dirs" || mkdir $as_dirs
9594  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9595echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9596   { (exit 1); exit 1; }; }; }
9597
9598    ac_builddir=.
9599
9600if test "$ac_dir" != .; then
9601  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9602  # A "../" for each directory in $ac_dir_suffix.
9603  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9604else
9605  ac_dir_suffix= ac_top_builddir=
9606fi
9607
9608case $srcdir in
9609  .)  # No --srcdir option.  We are building in place.
9610    ac_srcdir=.
9611    if test -z "$ac_top_builddir"; then
9612       ac_top_srcdir=.
9613    else
9614       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9615    fi ;;
9616  [\\/]* | ?:[\\/]* )  # Absolute path.
9617    ac_srcdir=$srcdir$ac_dir_suffix;
9618    ac_top_srcdir=$srcdir ;;
9619  *) # Relative path.
9620    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9621    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9622esac
9623
9624# Do not use `cd foo && pwd` to compute absolute paths, because
9625# the directories may not exist.
9626case `pwd` in
9627.) ac_abs_builddir="$ac_dir";;
9628*)
9629  case "$ac_dir" in
9630  .) ac_abs_builddir=`pwd`;;
9631  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9632  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9633  esac;;
9634esac
9635case $ac_abs_builddir in
9636.) ac_abs_top_builddir=${ac_top_builddir}.;;
9637*)
9638  case ${ac_top_builddir}. in
9639  .) ac_abs_top_builddir=$ac_abs_builddir;;
9640  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9641  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9642  esac;;
9643esac
9644case $ac_abs_builddir in
9645.) ac_abs_srcdir=$ac_srcdir;;
9646*)
9647  case $ac_srcdir in
9648  .) ac_abs_srcdir=$ac_abs_builddir;;
9649  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9650  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9651  esac;;
9652esac
9653case $ac_abs_builddir in
9654.) ac_abs_top_srcdir=$ac_top_srcdir;;
9655*)
9656  case $ac_top_srcdir in
9657  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9658  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9659  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9660  esac;;
9661esac
9662
9663
9664    cd $ac_dir
9665
9666    # Check for guested configure; otherwise get Cygnus style configure.
9667    if test -f $ac_srcdir/configure.gnu; then
9668      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9669    elif test -f $ac_srcdir/configure; then
9670      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9671    elif test -f $ac_srcdir/configure.in; then
9672      ac_sub_configure=$ac_configure
9673    else
9674      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9675echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9676      ac_sub_configure=
9677    fi
9678
9679    # The recursion is here.
9680    if test -n "$ac_sub_configure"; then
9681      # Make the cache file name correct relative to the subdirectory.
9682      case $cache_file in
9683      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9684      *) # Relative path.
9685        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
9686      esac
9687
9688      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9689echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9690      # The eval makes quoting arguments work.
9691      eval $ac_sub_configure $ac_sub_configure_args \
9692           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9693        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9694echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9695   { (exit 1); exit 1; }; }
9696    fi
9697
9698    cd $ac_popdir
9699  done
9700fi
9701
Note: See TracBrowser for help on using the repository browser.