source: branches/gsoc09-logging/base/configure @ 140300

Last change on this file since 140300 was 60369, checked in by blb@…, 11 years ago

Merge from trunk

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