source: trunk/base/configure @ 112684

Last change on this file since 112684 was 112590, checked in by jmr@…, 7 years ago

update OS and Xcode versions

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