source: branches/gsoc13-tests/configure @ 111299

Last change on this file since 111299 was 111299, checked in by marius@…, 7 years ago

package1.0: use correct macports_fastload.tcl file; added package_test_autoconf file

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