source: trunk/base/configure @ 92404

Last change on this file since 92404 was 92342, checked in by jmr@…, 8 years ago

regen configure with autoconf 2.69

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