source: trunk/base/configure @ 11387

Last change on this file since 11387 was 10524, checked in by landonf (Landon Fuller), 15 years ago

Add autoconf check for CoreFoundation

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