source: branches/gsoc13-tests/configure @ 111323

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

Merge from trunk.

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