source: trunk/base/configure @ 73358

Last change on this file since 73358 was 71843, checked in by jmr@…, 10 years ago

update current OS version

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