source: branches/gsoc11-statistics/base/configure @ 140222

Last change on this file since 140222 was 107206, checked in by snc@…, 7 years ago

gsoc11-statistics/base: rebase /trunk/base

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