source: trunk/base/configure @ 57343

Last change on this file since 57343 was 55594, checked in by jmr@…, 11 years ago

configure.ac: Xcode 1.x is unsupported along with Panther

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 296.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
672GNUMAKE
673GNUTAR
674XCODEBUILD
675LAUNCHCTL
676HAVE_LAUNCHD
677HDIUTIL
678MAKE
679BSDMAKE
680ZIP
681UNZIP
682TAR
683SED
684RSYNC
685RMDIR
686PATCH
687NICE
688LIPO
689GZIP
690HG
691GIT
692SVN
693CVS
694FILE
695DSCL
696DITTO
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 "ditto", so it can be a program name with args.
4305set dummy ditto; 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_DITTO+set}" = set; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  case $DITTO in
4312  [\\/]* | ?:[\\/]*)
4313  ac_cv_path_DITTO="$DITTO" # 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_DITTO="$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
4334DITTO=$ac_cv_path_DITTO
4335if test -n "$DITTO"; then
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DITTO" >&5
4337$as_echo "$DITTO" >&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 "dscl", so it can be a program name with args.
4345set dummy dscl; 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_DSCL+set}" = set; then :
4349  $as_echo_n "(cached) " >&6
4350else
4351  case $DSCL in
4352  [\\/]* | ?:[\\/]*)
4353  ac_cv_path_DSCL="$DSCL" # 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_DSCL="$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
4374DSCL=$ac_cv_path_DSCL
4375if test -n "$DSCL"; then
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSCL" >&5
4377$as_echo "$DSCL" >&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 "file", so it can be a program name with args.
4385set dummy file; 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_FILE+set}" = set; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  case $FILE in
4392  [\\/]* | ?:[\\/]*)
4393  ac_cv_path_FILE="$FILE" # 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_FILE="$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
4414FILE=$ac_cv_path_FILE
4415if test -n "$FILE"; then
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
4417$as_echo "$FILE" >&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 "cvs", so it can be a program name with args.
4425set dummy cvs; 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_CVS+set}" = set; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  case $CVS in
4432  [\\/]* | ?:[\\/]*)
4433  ac_cv_path_CVS="$CVS" # 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_CVS="$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
4454CVS=$ac_cv_path_CVS
4455if test -n "$CVS"; then
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CVS" >&5
4457$as_echo "$CVS" >&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 "svn", so it can be a program name with args.
4465set dummy svn; 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_SVN+set}" = set; then :
4469  $as_echo_n "(cached) " >&6
4470else
4471  case $SVN in
4472  [\\/]* | ?:[\\/]*)
4473  ac_cv_path_SVN="$SVN" # 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_SVN="$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
4494SVN=$ac_cv_path_SVN
4495if test -n "$SVN"; then
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
4497$as_echo "$SVN" >&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 "git", so it can be a program name with args.
4505set dummy git; 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_GIT+set}" = set; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  case $GIT in
4512  [\\/]* | ?:[\\/]*)
4513  ac_cv_path_GIT="$GIT" # 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_GIT="$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
4534GIT=$ac_cv_path_GIT
4535if test -n "$GIT"; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4537$as_echo "$GIT" >&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 "hg", so it can be a program name with args.
4545set dummy hg; 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_HG+set}" = set; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  case $HG in
4552  [\\/]* | ?:[\\/]*)
4553  ac_cv_path_HG="$HG" # 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_HG="$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
4574HG=$ac_cv_path_HG
4575if test -n "$HG"; then
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
4577$as_echo "$HG" >&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 "gzip", so it can be a program name with args.
4585set dummy gzip; 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_GZIP+set}" = set; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  case $GZIP in
4592  [\\/]* | ?:[\\/]*)
4593  ac_cv_path_GZIP="$GZIP" # 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_GZIP="$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
4614GZIP=$ac_cv_path_GZIP
4615if test -n "$GZIP"; then
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
4617$as_echo "$GZIP" >&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 "lipo", so it can be a program name with args.
4625set dummy lipo; 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_LIPO+set}" = set; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  case $LIPO in
4632  [\\/]* | ?:[\\/]*)
4633  ac_cv_path_LIPO="$LIPO" # 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_LIPO="$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
4654LIPO=$ac_cv_path_LIPO
4655if test -n "$LIPO"; then
4656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
4657$as_echo "$LIPO" >&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 "nice", so it can be a program name with args.
4665set dummy nice; 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_NICE+set}" = set; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  case $NICE in
4672  [\\/]* | ?:[\\/]*)
4673  ac_cv_path_NICE="$NICE" # 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_NICE="$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
4694NICE=$ac_cv_path_NICE
4695if test -n "$NICE"; then
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
4697$as_echo "$NICE" >&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 "patch", so it can be a program name with args.
4705set dummy patch; 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_PATCH+set}" = set; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711  case $PATCH in
4712  [\\/]* | ?:[\\/]*)
4713  ac_cv_path_PATCH="$PATCH" # 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_PATCH="$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
4734PATCH=$ac_cv_path_PATCH
4735if test -n "$PATCH"; then
4736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
4737$as_echo "$PATCH" >&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 "rmdir", so it can be a program name with args.
4745set dummy rmdir; 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_RMDIR+set}" = set; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  case $RMDIR in
4752  [\\/]* | ?:[\\/]*)
4753  ac_cv_path_RMDIR="$RMDIR" # 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_RMDIR="$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
4774RMDIR=$ac_cv_path_RMDIR
4775if test -n "$RMDIR"; then
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4777$as_echo "$RMDIR" >&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 "rsync", so it can be a program name with args.
4785set dummy rsync; 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_RSYNC+set}" = set; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791  case $RSYNC in
4792  [\\/]* | ?:[\\/]*)
4793  ac_cv_path_RSYNC="$RSYNC" # 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_RSYNC="$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
4814RSYNC=$ac_cv_path_RSYNC
4815if test -n "$RSYNC"; then
4816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSYNC" >&5
4817$as_echo "$RSYNC" >&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 "sed", so it can be a program name with args.
4825set dummy sed; 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_SED+set}" = set; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  case $SED in
4832  [\\/]* | ?:[\\/]*)
4833  ac_cv_path_SED="$SED" # 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_SED="$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
4854SED=$ac_cv_path_SED
4855if test -n "$SED"; then
4856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4857$as_echo "$SED" >&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 "tar", so it can be a program name with args.
4865set dummy tar; 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_TAR+set}" = set; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  case $TAR in
4872  [\\/]* | ?:[\\/]*)
4873  ac_cv_path_TAR="$TAR" # 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_TAR="$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
4894TAR=$ac_cv_path_TAR
4895if test -n "$TAR"; then
4896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4897$as_echo "$TAR" >&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 "unzip", so it can be a program name with args.
4905set dummy unzip; 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_UNZIP+set}" = set; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  case $UNZIP in
4912  [\\/]* | ?:[\\/]*)
4913  ac_cv_path_UNZIP="$UNZIP" # 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_UNZIP="$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
4934UNZIP=$ac_cv_path_UNZIP
4935if test -n "$UNZIP"; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
4937$as_echo "$UNZIP" >&6; }
4938else
4939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
4941fi
4942
4943
4944# Extract the first word of "zip", so it can be a program name with args.
4945set dummy zip; ac_word=$2
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if test "${ac_cv_path_ZIP+set}" = set; then :
4949  $as_echo_n "(cached) " >&6
4950else
4951  case $ZIP in
4952  [\\/]* | ?:[\\/]*)
4953  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4954  ;;
4955  *)
4956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959  IFS=$as_save_IFS
4960  test -z "$as_dir" && as_dir=.
4961    for ac_exec_ext in '' $ac_executable_extensions; do
4962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965    break 2
4966  fi
4967done
4968  done
4969IFS=$as_save_IFS
4970
4971  ;;
4972esac
4973fi
4974ZIP=$ac_cv_path_ZIP
4975if test -n "$ZIP"; then
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
4977$as_echo "$ZIP" >&6; }
4978else
4979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
4981fi
4982
4983
4984for ac_prog in bsdmake pmake
4985do
4986  # Extract the first word of "$ac_prog", so it can be a program name with args.
4987set dummy $ac_prog; ac_word=$2
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989$as_echo_n "checking for $ac_word... " >&6; }
4990if test "${ac_cv_path_BSDMAKE+set}" = set; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  case $BSDMAKE in
4994  [\\/]* | ?:[\\/]*)
4995  ac_cv_path_BSDMAKE="$BSDMAKE" # Let the user override the test with a path.
4996  ;;
4997  *)
4998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001  IFS=$as_save_IFS
5002  test -z "$as_dir" && as_dir=.
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005    ac_cv_path_BSDMAKE="$as_dir/$ac_word$ac_exec_ext"
5006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010  done
5011IFS=$as_save_IFS
5012
5013  ;;
5014esac
5015fi
5016BSDMAKE=$ac_cv_path_BSDMAKE
5017if test -n "$BSDMAKE"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BSDMAKE" >&5
5019$as_echo "$BSDMAKE" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025
5026  test -n "$BSDMAKE" && break
5027done
5028
5029# Extract the first word of "make", so it can be a program name with args.
5030set dummy make; 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_MAKE+set}" = set; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  case $MAKE in
5037  [\\/]* | ?:[\\/]*)
5038  ac_cv_path_MAKE="$MAKE" # 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_MAKE="$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
5059MAKE=$ac_cv_path_MAKE
5060if test -n "$MAKE"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5062$as_echo "$MAKE" >&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 "hdiutil", so it can be a program name with args.
5070set dummy hdiutil; 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_path_HDIUTIL+set}" = set; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  case $HDIUTIL in
5077  [\\/]* | ?:[\\/]*)
5078  ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
5079  ;;
5080  *)
5081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in $PATH
5083do
5084  IFS=$as_save_IFS
5085  test -z "$as_dir" && as_dir=.
5086    for ac_exec_ext in '' $ac_executable_extensions; do
5087  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088    ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
5089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090    break 2
5091  fi
5092done
5093  done
5094IFS=$as_save_IFS
5095
5096  ;;
5097esac
5098fi
5099HDIUTIL=$ac_cv_path_HDIUTIL
5100if test -n "$HDIUTIL"; then
5101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
5102$as_echo "$HDIUTIL" >&6; }
5103else
5104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105$as_echo "no" >&6; }
5106fi
5107
5108
5109# Extract the first word of "launchd", so it can be a program name with args.
5110set dummy launchd; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if test "${ac_cv_prog_HAVE_LAUNCHD+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$HAVE_LAUNCHD"; then
5117  ac_cv_prog_HAVE_LAUNCHD="$HAVE_LAUNCHD" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126    ac_cv_prog_HAVE_LAUNCHD="yes"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136HAVE_LAUNCHD=$ac_cv_prog_HAVE_LAUNCHD
5137if test -n "$HAVE_LAUNCHD"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LAUNCHD" >&5
5139$as_echo "$HAVE_LAUNCHD" >&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 "launchctl", so it can be a program name with args.
5147set dummy launchctl; 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_LAUNCHCTL+set}" = set; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  case $LAUNCHCTL in
5154  [\\/]* | ?:[\\/]*)
5155  ac_cv_path_LAUNCHCTL="$LAUNCHCTL" # 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_LAUNCHCTL="$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
5176LAUNCHCTL=$ac_cv_path_LAUNCHCTL
5177if test -n "$LAUNCHCTL"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHCTL" >&5
5179$as_echo "$LAUNCHCTL" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186# Extract the first word of "xcodebuild", so it can be a program name with args.
5187set dummy xcodebuild; ac_word=$2
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_path_XCODEBUILD+set}" = set; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  case $XCODEBUILD in
5194  [\\/]* | ?:[\\/]*)
5195  ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
5196  ;;
5197  *)
5198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201  IFS=$as_save_IFS
5202  test -z "$as_dir" && as_dir=.
5203    for ac_exec_ext in '' $ac_executable_extensions; do
5204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205    ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
5206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207    break 2
5208  fi
5209done
5210  done
5211IFS=$as_save_IFS
5212
5213  ;;
5214esac
5215fi
5216XCODEBUILD=$ac_cv_path_XCODEBUILD
5217if test -n "$XCODEBUILD"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
5219$as_echo "$XCODEBUILD" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225
5226for ac_prog in gnutar gtar
5227do
5228  # Extract the first word of "$ac_prog", so it can be a program name with args.
5229set dummy $ac_prog; ac_word=$2
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231$as_echo_n "checking for $ac_word... " >&6; }
5232if test "${ac_cv_path_GNUTAR+set}" = set; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  case $GNUTAR in
5236  [\\/]* | ?:[\\/]*)
5237  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
5238  ;;
5239  *)
5240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241as_dummy="$PATH:/usr/local/bin"
5242for as_dir in $as_dummy
5243do
5244  IFS=$as_save_IFS
5245  test -z "$as_dir" && as_dir=.
5246    for ac_exec_ext in '' $ac_executable_extensions; do
5247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
5249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250    break 2
5251  fi
5252done
5253  done
5254IFS=$as_save_IFS
5255
5256  ;;
5257esac
5258fi
5259GNUTAR=$ac_cv_path_GNUTAR
5260if test -n "$GNUTAR"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
5262$as_echo "$GNUTAR" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268
5269  test -n "$GNUTAR" && break
5270done
5271
5272for ac_prog in gnumake gmake
5273do
5274  # Extract the first word of "$ac_prog", so it can be a program name with args.
5275set dummy $ac_prog; ac_word=$2
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277$as_echo_n "checking for $ac_word... " >&6; }
5278if test "${ac_cv_path_GNUMAKE+set}" = set; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  case $GNUMAKE in
5282  [\\/]* | ?:[\\/]*)
5283  ac_cv_path_GNUMAKE="$GNUMAKE" # Let the user override the test with a path.
5284  ;;
5285  *)
5286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287as_dummy="$PATH:/usr/local/bin"
5288for as_dir in $as_dummy
5289do
5290  IFS=$as_save_IFS
5291  test -z "$as_dir" && as_dir=.
5292    for ac_exec_ext in '' $ac_executable_extensions; do
5293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294    ac_cv_path_GNUMAKE="$as_dir/$ac_word$ac_exec_ext"
5295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296    break 2
5297  fi
5298done
5299  done
5300IFS=$as_save_IFS
5301
5302  ;;
5303esac
5304fi
5305GNUMAKE=$ac_cv_path_GNUMAKE
5306if test -n "$GNUMAKE"; then
5307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE" >&5
5308$as_echo "$GNUMAKE" >&6; }
5309else
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311$as_echo "no" >&6; }
5312fi
5313
5314
5315  test -n "$GNUMAKE" && break
5316done
5317
5318# Extract the first word of "bzip2", so it can be a program name with args.
5319set dummy bzip2; ac_word=$2
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_path_BZIP2+set}" = set; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  case $BZIP2 in
5326  [\\/]* | ?:[\\/]*)
5327  ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5328  ;;
5329  *)
5330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331for as_dir in $PATH
5332do
5333  IFS=$as_save_IFS
5334  test -z "$as_dir" && as_dir=.
5335    for ac_exec_ext in '' $ac_executable_extensions; do
5336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339    break 2
5340  fi
5341done
5342  done
5343IFS=$as_save_IFS
5344
5345  ;;
5346esac
5347fi
5348BZIP2=$ac_cv_path_BZIP2
5349if test -n "$BZIP2"; then
5350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
5351$as_echo "$BZIP2" >&6; }
5352else
5353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356
5357
5358# Extract the first word of "lsbom", so it can be a program name with args.
5359set dummy lsbom; ac_word=$2
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361$as_echo_n "checking for $ac_word... " >&6; }
5362if test "${ac_cv_path_LSBOM+set}" = set; then :
5363  $as_echo_n "(cached) " >&6
5364else
5365  case $LSBOM in
5366  [\\/]* | ?:[\\/]*)
5367  ac_cv_path_LSBOM="$LSBOM" # Let the user override the test with a path.
5368  ;;
5369  *)
5370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373  IFS=$as_save_IFS
5374  test -z "$as_dir" && as_dir=.
5375    for ac_exec_ext in '' $ac_executable_extensions; do
5376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377    ac_cv_path_LSBOM="$as_dir/$ac_word$ac_exec_ext"
5378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379    break 2
5380  fi
5381done
5382  done
5383IFS=$as_save_IFS
5384
5385  ;;
5386esac
5387fi
5388LSBOM=$ac_cv_path_LSBOM
5389if test -n "$LSBOM"; then
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LSBOM" >&5
5391$as_echo "$LSBOM" >&6; }
5392else
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394$as_echo "no" >&6; }
5395fi
5396
5397
5398# Extract the first word of "mkbom", so it can be a program name with args.
5399set dummy mkbom; ac_word=$2
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401$as_echo_n "checking for $ac_word... " >&6; }
5402if test "${ac_cv_path_MKBOM+set}" = set; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  case $MKBOM in
5406  [\\/]* | ?:[\\/]*)
5407  ac_cv_path_MKBOM="$MKBOM" # Let the user override the test with a path.
5408  ;;
5409  *)
5410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413  IFS=$as_save_IFS
5414  test -z "$as_dir" && as_dir=.
5415    for ac_exec_ext in '' $ac_executable_extensions; do
5416  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417    ac_cv_path_MKBOM="$as_dir/$ac_word$ac_exec_ext"
5418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419    break 2
5420  fi
5421done
5422  done
5423IFS=$as_save_IFS
5424
5425  ;;
5426esac
5427fi
5428MKBOM=$ac_cv_path_MKBOM
5429if test -n "$MKBOM"; then
5430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKBOM" >&5
5431$as_echo "$MKBOM" >&6; }
5432else
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438# Extract the first word of "pax", so it can be a program name with args.
5439set dummy pax; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if test "${ac_cv_path_PAX+set}" = set; then :
5443  $as_echo_n "(cached) " >&6
5444else
5445  case $PAX in
5446  [\\/]* | ?:[\\/]*)
5447  ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
5448  ;;
5449  *)
5450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455    for ac_exec_ext in '' $ac_executable_extensions; do
5456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457    ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
5458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462  done
5463IFS=$as_save_IFS
5464
5465  ;;
5466esac
5467fi
5468PAX=$ac_cv_path_PAX
5469if test -n "$PAX"; then
5470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAX" >&5
5471$as_echo "$PAX" >&6; }
5472else
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478# Extract the first word of "xar", so it can be a program name with args.
5479set dummy xar; ac_word=$2
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481$as_echo_n "checking for $ac_word... " >&6; }
5482if test "${ac_cv_path_XAR+set}" = set; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  case $XAR in
5486  [\\/]* | ?:[\\/]*)
5487  ac_cv_path_XAR="$XAR" # Let the user override the test with a path.
5488  ;;
5489  *)
5490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497    ac_cv_path_XAR="$as_dir/$ac_word$ac_exec_ext"
5498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499    break 2
5500  fi
5501done
5502  done
5503IFS=$as_save_IFS
5504
5505  ;;
5506esac
5507fi
5508XAR=$ac_cv_path_XAR
5509if test -n "$XAR"; then
5510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAR" >&5
5511$as_echo "$XAR" >&6; }
5512else
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }
5515fi
5516
5517
5518# Extract the first word of "open", so it can be a program name with args.
5519set dummy open; ac_word=$2
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521$as_echo_n "checking for $ac_word... " >&6; }
5522if test "${ac_cv_path_OPEN+set}" = set; then :
5523  $as_echo_n "(cached) " >&6
5524else
5525  case $OPEN in
5526  [\\/]* | ?:[\\/]*)
5527  ac_cv_path_OPEN="$OPEN" # Let the user override the test with a path.
5528  ;;
5529  *)
5530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537    ac_cv_path_OPEN="$as_dir/$ac_word$ac_exec_ext"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545  ;;
5546esac
5547fi
5548OPEN=$ac_cv_path_OPEN
5549if test -n "$OPEN"; then
5550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPEN" >&5
5551$as_echo "$OPEN" >&6; }
5552else
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554$as_echo "no" >&6; }
5555fi
5556
5557
5558
5559# Define some precious variables allowing user to override PATH for some programs
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575        # Extract the first word of "sed", so it can be a program name with args.
5576set dummy sed; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if test "${ac_cv_path_SED+set}" = set; then :
5580  $as_echo_n "(cached) " >&6
5581else
5582  case $SED in
5583  [\\/]* | ?:[\\/]*)
5584  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5585  ;;
5586  *)
5587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592    for ac_exec_ext in '' $ac_executable_extensions; do
5593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596    break 2
5597  fi
5598done
5599  done
5600IFS=$as_save_IFS
5601
5602  ;;
5603esac
5604fi
5605SED=$ac_cv_path_SED
5606if test -n "$SED"; then
5607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5608$as_echo "$SED" >&6; }
5609else
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615
5616        if test "x$SED" = "x"; then
5617                as_fn_error "cannot find sed. Is sed installed?" "$LINENO" 5
5618        fi
5619
5620        { $as_echo "$as_me:${as_lineno-$LINENO}: checking which sed flag to use for extended regexp" >&5
5621$as_echo_n "checking which sed flag to use for extended regexp... " >&6; }
5622        any_sed_flag=`echo foo | $SED    -e s/foo+/OK/ 2>&1 | grep OK`
5623        bsd_sed_flag=`echo foo | $SED -E -e s/foo+/OK/ 2>&1 | grep OK`
5624        gnu_sed_flag=`echo foo | $SED -r -e s/foo+/OK/ 2>&1 | grep OK`
5625        if test "x$any_sed_flag" = "xOK" ; then
5626                { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5627$as_echo "none" >&6; }
5628                SED_EXT=
5629        elif test "x$bsd_sed_flag" = "xOK" ; then
5630                { $as_echo "$as_me:${as_lineno-$LINENO}: result: -E (BSD)" >&5
5631$as_echo "-E (BSD)" >&6; }
5632                SED_EXT=-E
5633        elif test "x$gnu_sed_flag" = "xOK" ; then
5634                { $as_echo "$as_me:${as_lineno-$LINENO}: result: -r (GNU)" >&5
5635$as_echo "-r (GNU)" >&6; }
5636                SED_EXT=-r
5637        else
5638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
5639$as_echo "not available" >&6; }
5640                SED_EXT='N/A'
5641        fi
5642
5643
5644
5645        # Extract the first word of "tar", so it can be a program name with args.
5646set dummy tar; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if test "${ac_cv_path_TAR+set}" = set; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  case $TAR in
5653  [\\/]* | ?:[\\/]*)
5654  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5655  ;;
5656  *)
5657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672  ;;
5673esac
5674fi
5675TAR=$ac_cv_path_TAR
5676if test -n "$TAR"; then
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
5678$as_echo "$TAR" >&6; }
5679else
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681$as_echo "no" >&6; }
5682fi
5683
5684
5685        # Extract the first word of "gnutar", so it can be a program name with args.
5686set dummy gnutar; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if test "${ac_cv_path_GNUTAR+set}" = set; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  case $GNUTAR in
5693  [\\/]* | ?:[\\/]*)
5694  ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
5695  ;;
5696  *)
5697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700  IFS=$as_save_IFS
5701  test -z "$as_dir" && as_dir=.
5702    for ac_exec_ext in '' $ac_executable_extensions; do
5703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
5705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706    break 2
5707  fi
5708done
5709  done
5710IFS=$as_save_IFS
5711
5712  ;;
5713esac
5714fi
5715GNUTAR=$ac_cv_path_GNUTAR
5716if test -n "$GNUTAR"; then
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
5718$as_echo "$GNUTAR" >&6; }
5719else
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
5725
5726        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which tar variant to use" >&5
5727$as_echo_n "checking for which tar variant to use... " >&6; }
5728        if test -n "$GNUTAR"; then :
5729  TAR_CMD=$GNUTAR
5730else
5731  TAR_CMD=$TAR
5732fi
5733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_CMD" >&5
5734$as_echo "$TAR_CMD" >&6; }
5735
5736
5737        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $TAR_CMD --no-same-owner support" >&5
5738$as_echo_n "checking for $TAR_CMD --no-same-owner support... " >&6; }
5739        no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`
5740        if test -z "$no_same_owner_support" ; then
5741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743        else
5744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5745$as_echo "yes" >&6; }
5746                TAR_CMD="$TAR_CMD --no-same-owner"
5747        fi
5748
5749
5750# Quiche eaters options.
5751if test x$GCC = xyes; then
5752        CFLAGS_QUICHEEATERS='-W -Wall -pedantic'
5753fi
5754
5755
5756
5757        # Check whether --enable-werror was given.
5758if test "${enable_werror+set}" = set; then :
5759  enableval=$enable_werror; enable_werror=${enableval}
5760else
5761  enable_werror=no
5762fi
5763
5764        if test x"$enable_werror" != "xno"; then
5765                CFLAGS_WERROR="-Werror"
5766        else
5767                CFLAGS_WERROR=""
5768        fi
5769
5770
5771
5772
5773
5774        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to mark unused variables" >&5
5775$as_echo_n "checking how to mark unused variables... " >&6; }
5776        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int a __attribute__ ((unused));
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781
5782$as_echo "#define UNUSED __attribute__((unused))" >>confdefs.h
5783
5784else
5785  $as_echo "#define UNUSED /**/" >>confdefs.h
5786
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789
5790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5791$as_echo "" >&6; }
5792
5793
5794
5795        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc symbol visibility attribute" >&5
5796$as_echo_n "checking for gcc symbol visibility attribute... " >&6; }
5797        if test "${mp_cv_attribute_mp_private+set}" = set; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800
5801                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803
5804
5805                                #if defined(__GNUC__) && defined(__APPLE__) && __GNUC__ < 4
5806                                # error Darwin does not support the visibility attribute with gcc releases prior to 4
5807                                #elif defined(WIN32) && __GNUC__ < 4
5808                                # error MinGW/Cygwin do not support the visibility attribute with gcc releases prior to 4.
5809                                #endif
5810                                int a __attribute__ ((visibility("hidden")));
5811
5812
5813_ACEOF
5814if ac_fn_c_try_compile "$LINENO"; then :
5815
5816                        mp_cv_attribute_mp_private="__attribute__((visibility(\"hidden\")))"
5817
5818else
5819
5820                        mp_cv_attribute_mp_private="no"
5821
5822fi
5823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824
5825fi
5826
5827
5828        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_attribute_mp_private" >&5
5829$as_echo "$mp_cv_attribute_mp_private" >&6; }
5830
5831        if test x"$mp_cv_attribute_mp_private" = "xno"; then
5832                MP_PRIVATE=""
5833        else
5834                MP_PRIVATE="$mp_cv_attribute_mp_private"
5835        fi
5836
5837
5838cat >>confdefs.h <<_ACEOF
5839#define MP_PRIVATE $MP_PRIVATE
5840_ACEOF
5841
5842
5843
5844# Foundation checks
5845
5846
5847ac_ext=c
5848ac_cpp='$CPP $CPPFLAGS'
5849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851ac_compiler_gnu=$ac_cv_c_compiler_gnu
5852
5853acx_pthread_ok=no
5854
5855# We used to check for pthread.h first, but this fails if pthread.h
5856# requires special compiler flags (e.g. on True64 or Sequent).
5857# It gets checked for in the link test anyway.
5858
5859# First of all, check if the user has set any of the PTHREAD_LIBS,
5860# etcetera environment variables, and if threads linking works using
5861# them:
5862if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
5863        save_CFLAGS="$CFLAGS"
5864        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
5865        save_LIBS="$LIBS"
5866        LIBS="$PTHREAD_LIBS $LIBS"
5867        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
5868$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
5869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871
5872/* Override any GCC internal prototype to avoid an error.
5873   Use char because int might match the return type of a GCC
5874   builtin and then its argument prototype would still apply.  */
5875#ifdef __cplusplus
5876extern "C"
5877#endif
5878char pthread_join ();
5879int
5880main ()
5881{
5882return pthread_join ();
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
5888  acx_pthread_ok=yes
5889fi
5890rm -f core conftest.err conftest.$ac_objext \
5891    conftest$ac_exeext conftest.$ac_ext
5892        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
5893$as_echo "$acx_pthread_ok" >&6; }
5894        if test x"$acx_pthread_ok" = xno; then
5895                PTHREAD_LIBS=""
5896                PTHREAD_CFLAGS=""
5897        fi
5898        LIBS="$save_LIBS"
5899        CFLAGS="$save_CFLAGS"
5900fi
5901
5902# We must check for the threads library under a number of different
5903# names; the ordering is very important because some systems
5904# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
5905# libraries is broken (non-POSIX).
5906
5907# Create a list of thread flags to try.  Items starting with a "-" are
5908# C compiler flags, and other items are library names, except for "none"
5909# which indicates that we try without any flags at all, and "pthread-config"
5910# which is a program returning the flags for the Pth emulation library.
5911
5912acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
5913
5914# The ordering *is* (sometimes) important.  Some notes on the
5915# individual items follow:
5916
5917# pthreads: AIX (must check this before -lpthread)
5918# none: in case threads are in libc; should be tried before -Kthread and
5919#       other compiler flags to prevent continual compiler warnings
5920# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
5921# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
5922# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
5923# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
5924# -pthreads: Solaris/gcc
5925# -mthreads: Mingw32/gcc, Lynx/gcc
5926# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
5927#      doesn't hurt to check since this sometimes defines pthreads too;
5928#      also defines -D_REENTRANT)
5929# pthread: Linux, etcetera
5930# --thread-safe: KAI C++
5931# pthread-config: use pthread-config program (for GNU Pth library)
5932
5933case "${host_cpu}-${host_os}" in
5934        *solaris*)
5935
5936        # On Solaris (at least, for some versions), libc contains stubbed
5937        # (non-functional) versions of the pthreads routines, so link-based
5938        # tests will erroneously succeed.  (We need to link with -pthread or
5939        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
5940        # a function called by this macro, so we could check for that, but
5941        # who knows whether they'll stub that too in a future libc.)  So,
5942        # we'll just look for -pthreads and -lpthread first:
5943
5944        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
5945        ;;
5946
5947        *freebsd*)
5948        # freebsd 4 uses -pthread, freebsd 5 uses -lpthread
5949        acx_pthread_flags="pthread -pthread"
5950        ;;
5951esac
5952
5953if test x"$acx_pthread_ok" = xno; then
5954for flag in $acx_pthread_flags; do
5955
5956        case $flag in
5957                none)
5958                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
5959$as_echo_n "checking whether pthreads work without any flags... " >&6; }
5960                ;;
5961
5962                -*)
5963                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
5964$as_echo_n "checking whether pthreads work with $flag... " >&6; }
5965                PTHREAD_CFLAGS="$flag"
5966                ;;
5967
5968                pthread-config)
5969                # Extract the first word of "pthread-config", so it can be a program name with args.
5970set dummy pthread-config; ac_word=$2
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972$as_echo_n "checking for $ac_word... " >&6; }
5973if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  if test -n "$acx_pthread_config"; then
5977  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
5978else
5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980for as_dir in $PATH
5981do
5982  IFS=$as_save_IFS
5983  test -z "$as_dir" && as_dir=.
5984    for ac_exec_ext in '' $ac_executable_extensions; do
5985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986    ac_cv_prog_acx_pthread_config="yes"
5987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5988    break 2
5989  fi
5990done
5991  done
5992IFS=$as_save_IFS
5993
5994  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
5995fi
5996fi
5997acx_pthread_config=$ac_cv_prog_acx_pthread_config
5998if test -n "$acx_pthread_config"; then
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
6000$as_echo "$acx_pthread_config" >&6; }
6001else
6002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007                if test x"$acx_pthread_config" = xno; then continue; fi
6008                PTHREAD_CFLAGS="`pthread-config --cflags`"
6009                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6010                ;;
6011
6012                *)
6013                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
6014$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
6015                PTHREAD_LIBS="-l$flag"
6016                ;;
6017        esac
6018
6019        save_LIBS="$LIBS"
6020        save_CFLAGS="$CFLAGS"
6021        LIBS="$PTHREAD_LIBS $LIBS"
6022        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6023
6024        # Check for various functions.  We must include pthread.h,
6025        # since some functions may be macros.  (On the Sequent, we
6026        # need a special flag -Kthread to make this header compile.)
6027        # We check for pthread_join because it is in -lpthread on IRIX
6028        # while pthread_create is in libc.  We check for pthread_attr_init
6029        # due to DEC craziness with -lpthreads.  We check for
6030        # pthread_cleanup_push because it is one of the few pthread
6031        # functions on Solaris that doesn't have a non-functional libc stub.
6032        # We try pthread_create on general principles.
6033        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035#include <pthread.h>
6036int
6037main ()
6038{
6039pthread_t th; pthread_join(th, 0);
6040                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
6041                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"; then :
6047  acx_pthread_ok=yes
6048fi
6049rm -f core conftest.err conftest.$ac_objext \
6050    conftest$ac_exeext conftest.$ac_ext
6051
6052        LIBS="$save_LIBS"
6053        CFLAGS="$save_CFLAGS"
6054
6055        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
6056$as_echo "$acx_pthread_ok" >&6; }
6057        if test "x$acx_pthread_ok" = xyes; then
6058                break;
6059        fi
6060
6061        PTHREAD_LIBS=""
6062        PTHREAD_CFLAGS=""
6063done
6064fi
6065
6066# Various other checks:
6067if test "x$acx_pthread_ok" = xyes; then
6068        save_LIBS="$LIBS"
6069        LIBS="$PTHREAD_LIBS $LIBS"
6070        save_CFLAGS="$CFLAGS"
6071        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6072
6073        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6074        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6075$as_echo_n "checking for joinable pthread attribute... " >&6; }
6076        attr_name=unknown
6077        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6078            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080#include <pthread.h>
6081int
6082main ()
6083{
6084int attr=$attr;
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_link "$LINENO"; then :
6090  attr_name=$attr; break
6091fi
6092rm -f core conftest.err conftest.$ac_objext \
6093    conftest$ac_exeext conftest.$ac_ext
6094        done
6095        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
6096$as_echo "$attr_name" >&6; }
6097        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6098
6099cat >>confdefs.h <<_ACEOF
6100#define PTHREAD_CREATE_JOINABLE $attr_name
6101_ACEOF
6102
6103        fi
6104
6105        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
6106$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
6107        flag=no
6108        case "${host_cpu}-${host_os}" in
6109            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
6110            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
6111        esac
6112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
6113$as_echo "${flag}" >&6; }
6114        if test "x$flag" != xno; then
6115            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6116        fi
6117
6118        LIBS="$save_LIBS"
6119        CFLAGS="$save_CFLAGS"
6120
6121fi
6122
6123
6124
6125
6126# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6127if test x"$acx_pthread_ok" = xyes; then
6128
6129$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6130
6131        :
6132else
6133        acx_pthread_ok=no
6134
6135fi
6136ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143
6144ac_ext=m
6145ac_cpp='$OBJCPP $CPPFLAGS'
6146ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6147ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6148ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the Objective C preprocessor" >&5
6150$as_echo_n "checking how to run the Objective C preprocessor... " >&6; }
6151if test -z "$OBJCPP"; then
6152  if test "${ac_cv_prog_OBJCPP+set}" = set; then :
6153  $as_echo_n "(cached) " >&6
6154else
6155      # Double quotes because OBJCPP needs to be expanded
6156    for OBJCPP in "$OBJC -E" "/lib/cpp"
6157    do
6158      ac_preproc_ok=false
6159for ac_objc_preproc_warn_flag in '' yes
6160do
6161  # Use a header file that comes with gcc, so configuring glibc
6162  # with a fresh cross-compiler works.
6163  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6164  # <limits.h> exists even on freestanding compilers.
6165  # On the NeXT, cc -E runs the code through the compiler's parser,
6166  # not just through cpp. "Syntax error" is here to catch this case.
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169#ifdef __STDC__
6170# include <limits.h>
6171#else
6172# include <assert.h>
6173#endif
6174                     Syntax error
6175_ACEOF
6176if ac_fn_objc_try_cpp "$LINENO"; then :
6177
6178else
6179  # Broken: fails on valid input.
6180continue
6181fi
6182rm -f conftest.err conftest.$ac_ext
6183
6184  # OK, works on sane cases.  Now check whether nonexistent headers
6185  # can be detected and how.
6186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188#include <ac_nonexistent.h>
6189_ACEOF
6190if ac_fn_objc_try_cpp "$LINENO"; then :
6191  # Broken: success on invalid input.
6192continue
6193else
6194  # Passes both tests.
6195ac_preproc_ok=:
6196break
6197fi
6198rm -f conftest.err conftest.$ac_ext
6199
6200done
6201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6202rm -f conftest.err conftest.$ac_ext
6203if $ac_preproc_ok; then :
6204  break
6205fi
6206
6207    done
6208    ac_cv_prog_OBJCPP=$OBJCPP
6209
6210fi
6211  OBJCPP=$ac_cv_prog_OBJCPP
6212else
6213  ac_cv_prog_OBJCPP=$OBJCPP
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCPP" >&5
6216$as_echo "$OBJCPP" >&6; }
6217ac_preproc_ok=false
6218for ac_objc_preproc_warn_flag in '' yes
6219do
6220  # Use a header file that comes with gcc, so configuring glibc
6221  # with a fresh cross-compiler works.
6222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223  # <limits.h> exists even on freestanding compilers.
6224  # On the NeXT, cc -E runs the code through the compiler's parser,
6225  # not just through cpp. "Syntax error" is here to catch this case.
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228#ifdef __STDC__
6229# include <limits.h>
6230#else
6231# include <assert.h>
6232#endif
6233                     Syntax error
6234_ACEOF
6235if ac_fn_objc_try_cpp "$LINENO"; then :
6236
6237else
6238  # Broken: fails on valid input.
6239continue
6240fi
6241rm -f conftest.err conftest.$ac_ext
6242
6243  # OK, works on sane cases.  Now check whether nonexistent headers
6244  # can be detected and how.
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247#include <ac_nonexistent.h>
6248_ACEOF
6249if ac_fn_objc_try_cpp "$LINENO"; then :
6250  # Broken: success on invalid input.
6251continue
6252else
6253  # Passes both tests.
6254ac_preproc_ok=:
6255break
6256fi
6257rm -f conftest.err conftest.$ac_ext
6258
6259done
6260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6261rm -f conftest.err conftest.$ac_ext
6262if $ac_preproc_ok; then :
6263
6264else
6265  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6267as_fn_error "Objective C preprocessor \"$OBJCPP\" fails sanity check
6268See \`config.log' for more details." "$LINENO" 5; }
6269fi
6270
6271ac_ext=m
6272ac_cpp='$OBJCPP $CPPFLAGS'
6273ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6276
6277
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6280if test "${ac_cv_path_GREP+set}" = set; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  if test -z "$GREP"; then
6284  ac_path_GREP_found=false
6285  # Loop through the user's path and test for each of PROGNAME-LIST
6286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6288do
6289  IFS=$as_save_IFS
6290  test -z "$as_dir" && as_dir=.
6291    for ac_prog in grep ggrep; do
6292    for ac_exec_ext in '' $ac_executable_extensions; do
6293      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6294      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6295# Check for GNU ac_path_GREP and select it if it is found.
6296  # Check for GNU $ac_path_GREP
6297case `"$ac_path_GREP" --version 2>&1` in
6298*GNU*)
6299  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6300*)
6301  ac_count=0
6302  $as_echo_n 0123456789 >"conftest.in"
6303  while :
6304  do
6305    cat "conftest.in" "conftest.in" >"conftest.tmp"
6306    mv "conftest.tmp" "conftest.in"
6307    cp "conftest.in" "conftest.nl"
6308    $as_echo 'GREP' >> "conftest.nl"
6309    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6310    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6311    as_fn_arith $ac_count + 1 && ac_count=$as_val
6312    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6313      # Best one so far, save it but keep looking for a better one
6314      ac_cv_path_GREP="$ac_path_GREP"
6315      ac_path_GREP_max=$ac_count
6316    fi
6317    # 10*(2^10) chars as input seems more than enough
6318    test $ac_count -gt 10 && break
6319  done
6320  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6321esac
6322
6323      $ac_path_GREP_found && break 3
6324    done
6325  done
6326  done
6327IFS=$as_save_IFS
6328  if test -z "$ac_cv_path_GREP"; then
6329    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6330  fi
6331else
6332  ac_cv_path_GREP=$GREP
6333fi
6334
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6337$as_echo "$ac_cv_path_GREP" >&6; }
6338 GREP="$ac_cv_path_GREP"
6339
6340
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6342$as_echo_n "checking for egrep... " >&6; }
6343if test "${ac_cv_path_EGREP+set}" = set; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6347   then ac_cv_path_EGREP="$GREP -E"
6348   else
6349     if test -z "$EGREP"; then
6350  ac_path_EGREP_found=false
6351  # Loop through the user's path and test for each of PROGNAME-LIST
6352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6354do
6355  IFS=$as_save_IFS
6356  test -z "$as_dir" && as_dir=.
6357    for ac_prog in egrep; do
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6360      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6361# Check for GNU ac_path_EGREP and select it if it is found.
6362  # Check for GNU $ac_path_EGREP
6363case `"$ac_path_EGREP" --version 2>&1` in
6364*GNU*)
6365  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6366*)
6367  ac_count=0
6368  $as_echo_n 0123456789 >"conftest.in"
6369  while :
6370  do
6371    cat "conftest.in" "conftest.in" >"conftest.tmp"
6372    mv "conftest.tmp" "conftest.in"
6373    cp "conftest.in" "conftest.nl"
6374    $as_echo 'EGREP' >> "conftest.nl"
6375    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6376    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6377    as_fn_arith $ac_count + 1 && ac_count=$as_val
6378    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6379      # Best one so far, save it but keep looking for a better one
6380      ac_cv_path_EGREP="$ac_path_EGREP"
6381      ac_path_EGREP_max=$ac_count
6382    fi
6383    # 10*(2^10) chars as input seems more than enough
6384    test $ac_count -gt 10 && break
6385  done
6386  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6387esac
6388
6389      $ac_path_EGREP_found && break 3
6390    done
6391  done
6392  done
6393IFS=$as_save_IFS
6394  if test -z "$ac_cv_path_EGREP"; then
6395    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6396  fi
6397else
6398  ac_cv_path_EGREP=$EGREP
6399fi
6400
6401   fi
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6404$as_echo "$ac_cv_path_EGREP" >&6; }
6405 EGREP="$ac_cv_path_EGREP"
6406
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6409$as_echo_n "checking for ANSI C header files... " >&6; }
6410if test "${ac_cv_header_stdc+set}" = set; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414/* end confdefs.h.  */
6415#include <stdlib.h>
6416#include <stdarg.h>
6417#include <string.h>
6418#include <float.h>
6419
6420int
6421main ()
6422{
6423
6424  ;
6425  return 0;
6426}
6427_ACEOF
6428if ac_fn_objc_try_compile "$LINENO"; then :
6429  ac_cv_header_stdc=yes
6430else
6431  ac_cv_header_stdc=no
6432fi
6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434
6435if test $ac_cv_header_stdc = yes; then
6436  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438/* end confdefs.h.  */
6439#include <string.h>
6440
6441_ACEOF
6442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443  $EGREP "memchr" >/dev/null 2>&1; then :
6444
6445else
6446  ac_cv_header_stdc=no
6447fi
6448rm -f conftest*
6449
6450fi
6451
6452if test $ac_cv_header_stdc = yes; then
6453  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456#include <stdlib.h>
6457
6458_ACEOF
6459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460  $EGREP "free" >/dev/null 2>&1; then :
6461
6462else
6463  ac_cv_header_stdc=no
6464fi
6465rm -f conftest*
6466
6467fi
6468
6469if test $ac_cv_header_stdc = yes; then
6470  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6471  if test "$cross_compiling" = yes; then :
6472  :
6473else
6474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h.  */
6476#include <ctype.h>
6477#include <stdlib.h>
6478#if ((' ' & 0x0FF) == 0x020)
6479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6481#else
6482# define ISLOWER(c) \
6483                   (('a' <= (c) && (c) <= 'i') \
6484                     || ('j' <= (c) && (c) <= 'r') \
6485                     || ('s' <= (c) && (c) <= 'z'))
6486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6487#endif
6488
6489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6490int
6491main ()
6492{
6493  int i;
6494  for (i = 0; i < 256; i++)
6495    if (XOR (islower (i), ISLOWER (i))
6496        || toupper (i) != TOUPPER (i))
6497      return 2;
6498  return 0;
6499}
6500_ACEOF
6501if ac_fn_objc_try_run "$LINENO"; then :
6502
6503else
6504  ac_cv_header_stdc=no
6505fi
6506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6507  conftest.$ac_objext conftest.beam conftest.$ac_ext
6508fi
6509
6510fi
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6513$as_echo "$ac_cv_header_stdc" >&6; }
6514if test $ac_cv_header_stdc = yes; then
6515
6516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6517
6518fi
6519
6520# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6522                  inttypes.h stdint.h unistd.h
6523do :
6524  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6525ac_fn_objc_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6526"
6527eval as_val=\$$as_ac_Header
6528   if test "x$as_val" = x""yes; then :
6529  cat >>confdefs.h <<_ACEOF
6530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6531_ACEOF
6532
6533fi
6534
6535done
6536
6537
6538
6539
6540
6541# Check whether --with-objc-runtime was given.
6542if test "${with_objc_runtime+set}" = set; then :
6543  withval=$with_objc_runtime; with_objc_runtime=${withval}
6544fi
6545
6546
6547        if test x"${with_objc_runtime}" != x; then
6548                case "${with_objc_runtime}" in
6549                        GNU)
6550                                ;;
6551                        apple)
6552                                ;;
6553                        no)
6554                                ;;
6555                        *)
6556                                as_fn_error "${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either \"GNU\" or \"apple\"" "$LINENO" 5
6557                                ;;
6558                esac
6559        fi
6560
6561        ac_ext=m
6562ac_cpp='$OBJCPP $CPPFLAGS'
6563ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6564ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6565ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6566
6567
6568        if test x"${with_objc_runtime}" != x"no"; then
6569
6570        # Check for common header, objc/objc.h
6571        for ac_header in objc/objc.h
6572do :
6573  ac_fn_objc_check_header_mongrel "$LINENO" "objc/objc.h" "ac_cv_header_objc_objc_h" "$ac_includes_default"
6574if test "x$ac_cv_header_objc_objc_h" = x""yes; then :
6575  cat >>confdefs.h <<_ACEOF
6576#define HAVE_OBJC_OBJC_H 1
6577_ACEOF
6578
6579else
6580  as_fn_error "Can't locate Objective C runtime headers" "$LINENO" 5
6581fi
6582
6583done
6584
6585
6586        # Save LIBS & OBJCFLAGS
6587        # depending on whether the cache is used,
6588        # the variables may or may not be modified.
6589        OLD_LIBS="${LIBS}"
6590        OLD_OBJCFLAGS="${OBJCFLAGS}"
6591
6592        # Add -lobjc. The following tests will ensure that the library exists and functions with the detected Objective C compiler
6593        LIBS="${LIBS} -lobjc"
6594
6595        # Test if pthreads are required to link against
6596        # libobjc - this is the case on FreeBSD.
6597
6598        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking libobjc requires pthreads" >&5
6599$as_echo_n "checking if linking libobjc requires pthreads... " >&6; }
6600        if test "${mp_cv_objc_req_pthread+set}" = set; then :
6601  $as_echo_n "(cached) " >&6
6602else
6603
6604                # First, test if objc links without pthreads
6605                # The following uses quadrigraphs
6606                # '[' = '['
6607                # ']' = ']'
6608                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610
6611
6612                                                #include <objc/objc.h>
6613                                                #include <objc/Object.h>
6614
6615int
6616main ()
6617{
6618
6619                                                Object *obj = [Object alloc];
6620                                                puts([obj name]);
6621
6622  ;
6623  return 0;
6624}
6625
6626_ACEOF
6627if ac_fn_objc_try_link "$LINENO"; then :
6628
6629                                        # Linked without -pthread
6630                                        mp_cv_objc_req_pthread="no"
6631
6632else
6633
6634                                        # Failed to link without -pthread
6635                                        mp_cv_objc_req_pthread="yes"
6636
6637
6638fi
6639rm -f core conftest.err conftest.$ac_objext \
6640    conftest$ac_exeext conftest.$ac_ext
6641
6642                # If the above failed, try with pthreads
6643                if test x"${mp_cv_objc_req_pthread}" = x"yes"; then
6644                        LIBS="${LIBS} ${PTHREAD_LIBS}"
6645                        OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
6646                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648
6649
6650                                                        #include <objc/objc.h>
6651                                                        #include <objc/Object.h>
6652
6653int
6654main ()
6655{
6656
6657                                                        Object *obj = [Object alloc];
6658                                                        puts([obj name]);
6659
6660  ;
6661  return 0;
6662}
6663
6664_ACEOF
6665if ac_fn_objc_try_link "$LINENO"; then :
6666
6667                                                # Linked with -lpthread
6668                                                mp_cv_objc_req_pthread="yes"
6669
6670else
6671
6672                                                # Failed to link against objc at all
6673                                                # This will be caught in the runtime
6674                                                # checks below
6675                                                mp_cv_objc_req_pthread="no"
6676
6677
6678fi
6679rm -f core conftest.err conftest.$ac_objext \
6680    conftest$ac_exeext conftest.$ac_ext
6681                fi
6682
6683fi
6684
6685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_objc_req_pthread}" >&5
6686$as_echo "${mp_cv_objc_req_pthread}" >&6; }
6687
6688        if test x"${mp_cv_objc_req_pthread}" = x"no"; then
6689                OBJC_LIBS="-lobjc"
6690                OBJC_PTHREAD_LIBS="${PTHREAD_LIBS}"
6691                OBJC_PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
6692        elif test x"${mp_cv_objc_req_pthread}" = x"yes"; then
6693                OBJC_LIBS="-lobjc ${PTHREAD_LIBS}"
6694                OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
6695        fi
6696
6697        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"apple"; then
6698                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple Objective-C runtime" >&5
6699$as_echo_n "checking for Apple Objective-C runtime... " >&6; }
6700                if test "${mp_cv_objc_runtime_apple+set}" = set; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703
6704                        # The following uses quadrigraphs
6705                        # '[' = '['
6706                        # ']' = ']'
6707                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708/* end confdefs.h.  */
6709
6710
6711                                                        #include <objc/objc.h>
6712                                                        #include <objc/objc-api.h>
6713
6714int
6715main ()
6716{
6717
6718                                                        id class = objc_lookUpClass("Object");
6719                                                        id obj = [class alloc];
6720                                                        puts([obj name]);
6721
6722  ;
6723  return 0;
6724}
6725
6726_ACEOF
6727if ac_fn_objc_try_link "$LINENO"; then :
6728
6729                                                mp_cv_objc_runtime_apple="yes"
6730
6731else
6732
6733                                                mp_cv_objc_runtime_apple="no"
6734
6735
6736fi
6737rm -f core conftest.err conftest.$ac_objext \
6738    conftest$ac_exeext conftest.$ac_ext
6739
6740fi
6741
6742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_objc_runtime_apple}" >&5
6743$as_echo "${mp_cv_objc_runtime_apple}" >&6; }
6744        else
6745                mp_cv_objc_runtime_apple="no"
6746        fi
6747
6748        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"GNU"; then
6749                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Objective C runtime" >&5
6750$as_echo_n "checking for GNU Objective C runtime... " >&6; }
6751                if test "${mp_cv_objc_runtime_gnu+set}" = set; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754
6755                        # The following uses quadrigraphs
6756                        # '[' = '['
6757                        # ']' = ']'
6758                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759/* end confdefs.h.  */
6760
6761
6762                                                        #include <objc/objc.h>
6763                                                        #include <objc/objc-api.h>
6764
6765int
6766main ()
6767{
6768
6769                                                        id class = objc_lookup_class("Object");
6770                                                        id obj = [class alloc];
6771                                                        puts([obj name]);
6772
6773  ;
6774  return 0;
6775}
6776
6777_ACEOF
6778if ac_fn_objc_try_link "$LINENO"; then :
6779
6780                                                mp_cv_objc_runtime_gnu="yes"
6781
6782else
6783
6784                                                mp_cv_objc_runtime_gnu="no"
6785
6786
6787fi
6788rm -f core conftest.err conftest.$ac_objext \
6789    conftest$ac_exeext conftest.$ac_ext
6790
6791fi
6792
6793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_objc_runtime_gnu}" >&5
6794$as_echo "${mp_cv_objc_runtime_gnu}" >&6; }
6795        else
6796                mp_cv_objc_runtime_gnu="no"
6797        fi
6798
6799        fi
6800
6801        # Apple runtime is prefered
6802        if test x"${mp_cv_objc_runtime_apple}" = x"yes"; then
6803                        OBJC_RUNTIME="APPLE_RUNTIME"
6804                        OBJC_RUNTIME_FLAGS="-fnext-runtime"
6805                        { $as_echo "$as_me:${as_lineno-$LINENO}: Using Apple Objective-C runtime" >&5
6806$as_echo "$as_me: Using Apple Objective-C runtime" >&6;}
6807
6808$as_echo "#define APPLE_RUNTIME 1" >>confdefs.h
6809
6810        elif test x"${mp_cv_objc_runtime_gnu}" = x"yes"; then
6811                        OBJC_RUNTIME="GNU_RUNTIME"
6812                        OBJC_RUNTIME_FLAGS="-fgnu-runtime"
6813                        { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU Objective-C runtime" >&5
6814$as_echo "$as_me: Using GNU Objective-C runtime" >&6;}
6815
6816$as_echo "#define GNU_RUNTIME 1" >>confdefs.h
6817
6818        elif test x"${with_objc_runtime}" = x"no"; then
6819                        OBJC_RUNTIME="none"
6820                        { $as_echo "$as_me:${as_lineno-$LINENO}: Not using Objective-C runtime" >&5
6821$as_echo "$as_me: Not using Objective-C runtime" >&6;}
6822        else
6823                        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6825as_fn_error "Could not locate a working Objective-C runtime.
6826See \`config.log' for more details." "$LINENO" 5; }
6827        fi
6828
6829        # Restore LIBS & OBJCFLAGS
6830        LIBS="${OLD_LIBS}"
6831        OBJCFLAGS="${OLD_OBJCFLAGS}"
6832
6833
6834
6835
6836
6837
6838
6839
6840        ac_ext=c
6841ac_cpp='$CPP $CPPFLAGS'
6842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845
6846
6847
6848
6849
6850# Check whether --with-objc-foundation was given.
6851if test "${with_objc_foundation+set}" = set; then :
6852  withval=$with_objc_foundation; with_objc_foundation=${withval}
6853fi
6854
6855
6856        if test x"${with_objc_foundation}" != x; then
6857                case "${with_objc_foundation}" in
6858                        GNUstep)
6859                                ;;
6860                        GNU)
6861                                with_objc_foundation="GNUstep"
6862                                ;;
6863                        apple)
6864                                ;;
6865                        no)
6866                                ;;
6867                        *)
6868                                as_fn_error "${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either \"GNU\" or \"apple\"" "$LINENO" 5
6869                                ;;
6870                esac
6871        fi
6872
6873        ac_ext=m
6874ac_cpp='$OBJCPP $CPPFLAGS'
6875ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6878
6879
6880        if test x"${with_objc_foundation}" != x"no"; then
6881
6882        if test x"${with_objc_foundation}" == x || test x"${with_objc_foundation}" == x"apple"; then
6883                # '[' = '['
6884                # ']' = ']'
6885                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple Foundation library" >&5
6886$as_echo_n "checking for Apple Foundation library... " >&6; }
6887
6888                # Set NeXT LIBS and CFLAGS
6889                APPLE_FOUNDATION_CFLAGS=""
6890                APPLE_FOUNDATION_LIBS="-framework Foundation"
6891
6892                if test "${ac_cv_objc_foundation_apple+set}" = set; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895
6896                        # Save old LIBS and CFLAGS
6897                        LIBS_OLD="${LIBS}"
6898                        CFLAGS_OLD="${CFLAGS}"
6899
6900                        CFLAGS="${APPLE_FOUNDATION_CFLAGS} ${CFLAGS}"
6901                        LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
6902
6903                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905
6906
6907                                                                #include <Foundation/Foundation.h>
6908
6909int
6910main ()
6911{
6912
6913                                                                NSString *string = [[NSString alloc] initWithCString: "Hello World"];
6914                                                                [NSString length];
6915
6916  ;
6917  return 0;
6918}
6919
6920_ACEOF
6921if ac_fn_objc_try_link "$LINENO"; then :
6922
6923                                                ac_cv_objc_foundation_apple="yes"
6924
6925else
6926
6927                                                ac_cv_objc_foundation_apple="no"
6928
6929
6930fi
6931rm -f core conftest.err conftest.$ac_objext \
6932    conftest$ac_exeext conftest.$ac_ext
6933                        # Restore LIBS and CFLAGS
6934                        LIBS="${LIBS_OLD}"
6935                        CFLAGS="${CFLAGS_OLD}"
6936
6937fi
6938
6939                { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_objc_foundation_apple}" >&5
6940$as_echo "${ac_cv_objc_foundation_apple}" >&6; }
6941        else
6942                ac_cv_objc_foundation_apple="no"
6943        fi
6944
6945        if test x"${with_objc_foundation}" == x || test x${with_objc_foundation} == x"GNUstep"; then
6946                GNUSTEP_CONFIG=/usr/bin/gnustep-config
6947                if test ! -x "${GNUSTEP_CONFIG}" -a x"${GNUSTEP_SYSTEM_ROOT}" == x; then
6948                        if test x"${with_objc_foundation}" == x"GNUstep"; then
6949                                as_fn_error "GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" "$LINENO" 5
6950                        else
6951                                { $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
6952$as_echo "$as_me: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&2;}
6953                        fi
6954                else
6955
6956                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUstep Foundation library" >&5
6957$as_echo_n "checking for GNUstep Foundation library... " >&6; }
6958
6959                        # Set GNUstep LDFLAGS, CPPFLAGS, and LIBS
6960                        if test -x ${GNUSTEP_CONFIG}; then
6961                        GNUSTEP_LDFLAGS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --objc-libs"`
6962                        GNUSTEP_CPPFLAGS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --objc-flags"`
6963                        GNUSTEP_LIBS=`sh -c "MAKELEVEL=0 ${GNUSTEP_CONFIG} --base-libs"`
6964                        else
6965                        GNUSTEP_LDFLAGS="-L${GNUSTEP_SYSTEM_ROOT}/Library/Libraries/"
6966                        GNUSTEP_CPPFLAGS="-I${GNUSTEP_SYSTEM_ROOT}/Library/Headers/"
6967                        GNUSTEP_LIBS="-lgnustep-base"
6968                        fi
6969
6970                        if test "${ac_cv_objc_foundation_gnustep+set}" = set; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973
6974                                # Save old LDFLAGS, CPPFLAGS, and LIBS
6975                                LDFLAGS_OLD="${LDFLAGS}"
6976                                CPPFLAGS_OLD="${CPPFLAGS}"
6977                                LIBS_OLD="${LIBS}"
6978
6979                                LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
6980                                CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
6981                                LIBS="${GNUSTEP_LIBS} ${LIBS}"
6982
6983                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985
6986
6987                                                                        #include <Foundation/Foundation.h>
6988
6989int
6990main ()
6991{
6992
6993                                                                        NSString *string = [[NSString alloc] initWithCString: "Hello World"];
6994                                                                        [NSString length];
6995
6996  ;
6997  return 0;
6998}
6999
7000_ACEOF
7001if ac_fn_objc_try_link "$LINENO"; then :
7002
7003                                                        ac_cv_objc_foundation_gnustep="yes"
7004
7005else
7006
7007                                                        ac_cv_objc_foundation_gnustep="no"
7008
7009
7010fi
7011rm -f core conftest.err conftest.$ac_objext \
7012    conftest$ac_exeext conftest.$ac_ext
7013                                # Restore LDFLAGS, CPPFLAGS, and LIBS
7014                                LDFLAGS="${LDFLAGS_OLD}"
7015                                CPPFLAGS="${CPPFLAGS_OLD}"
7016                                LIBS="${LIBS_OLD}"
7017
7018fi
7019
7020                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_objc_foundation_gnustep}" >&5
7021$as_echo "${ac_cv_objc_foundation_gnustep}" >&6; }
7022                fi
7023        else
7024                ac_cv_objc_foundation_gnustep="no"
7025        fi
7026
7027        fi
7028
7029        # NeXT Foundation is prefered
7030        if test x"${ac_cv_objc_foundation_apple}" == x"yes"; then
7031                OBJC_FOUNDATION="Apple"
7032                OBJC_FOUNDATION_CPPFLAGS="${APPLE_FOUNDATION_CFLAGS}"
7033                OBJC_FOUNDATION_LIBS="${APPLE_FOUNDATION_LIBS}"
7034                OBJC_FOUNDATION_LDFLAGS=""
7035
7036$as_echo "#define APPLE_FOUNDATION 1" >>confdefs.h
7037
7038                { $as_echo "$as_me:${as_lineno-$LINENO}: Using Apple Foundation library" >&5
7039$as_echo "$as_me: Using Apple Foundation library" >&6;}
7040        elif test x"${ac_cv_objc_foundation_gnustep}" == x"yes"; then
7041                OBJC_FOUNDATION="GNUstep"
7042                OBJC_FOUNDATION_CPPFLAGS="${GNUSTEP_CPPFLAGS}"
7043                OBJC_FOUNDATION_LIBS="${GNUSTEP_LIBS}"
7044                OBJC_FOUNDATION_LDFLAGS="${GNUSTEP_LDFLAGS}"
7045
7046$as_echo "#define GNUSTEP_FOUNDATION 1" >>confdefs.h
7047
7048                { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNUstep Foundation library" >&5
7049$as_echo "$as_me: Using GNUstep Foundation library" >&6;}
7050        elif test x"${with_objc_foundation}" = x"no"; then
7051                OBJC_FOUNDATION="none"
7052                { $as_echo "$as_me:${as_lineno-$LINENO}: Not using Foundation implementation" >&5
7053$as_echo "$as_me: Not using Foundation implementation" >&6;}
7054        else
7055                as_fn_error "Could not find a working Foundation implementation" "$LINENO" 5
7056        fi
7057
7058
7059
7060
7061
7062
7063        ac_ext=c
7064ac_cpp='$CPP $CPPFLAGS'
7065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067ac_compiler_gnu=$ac_cv_c_compiler_gnu
7068
7069
7070
7071
7072        FRAMEWORK_LIBS="-framework CoreFoundation"
7073
7074        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation framework" >&5
7075$as_echo_n "checking for CoreFoundation framework... " >&6; }
7076
7077        if test "${mp_cv_have_framework_corefoundation+set}" = set; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080
7081                ac_save_LIBS="$LIBS"
7082                LIBS="$FRAMEWORK_LIBS $LIBS"
7083
7084                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086
7087
7088                                        #include <CoreFoundation/CoreFoundation.h>
7089
7090int
7091main ()
7092{
7093
7094                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
7095                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
7096
7097  ;
7098  return 0;
7099}
7100
7101_ACEOF
7102if ac_fn_c_try_link "$LINENO"; then :
7103
7104                                mp_cv_have_framework_corefoundation="yes"
7105
7106else
7107
7108                                mp_cv_have_framework_corefoundation="no"
7109
7110
7111fi
7112rm -f core conftest.err conftest.$ac_objext \
7113    conftest$ac_exeext conftest.$ac_ext
7114
7115                LIBS="$ac_save_LIBS"
7116
7117fi
7118
7119
7120        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_have_framework_corefoundation}" >&5
7121$as_echo "${mp_cv_have_framework_corefoundation}" >&6; }
7122
7123        if test x"${mp_cv_have_framework_corefoundation}" = "xyes"; then
7124
7125$as_echo "#define HAVE_FRAMEWORK_COREFOUNDATION /**/" >>confdefs.h
7126
7127        fi
7128
7129
7130
7131
7132        FRAMEWORK_LIBS="-framework SystemConfiguration"
7133
7134        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SystemConfiguration framework" >&5
7135$as_echo_n "checking for SystemConfiguration framework... " >&6; }
7136
7137        if test "${mp_cv_have_framework_systemconfiguration+set}" = set; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140
7141                ac_save_LIBS="$LIBS"
7142                LIBS="$FRAMEWORK_LIBS $LIBS"
7143
7144                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146
7147
7148                                        #include <SystemConfiguration/SystemConfiguration.h>
7149
7150int
7151main ()
7152{
7153
7154                                        int err = SCError();
7155                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
7156
7157  ;
7158  return 0;
7159}
7160
7161_ACEOF
7162if ac_fn_c_try_link "$LINENO"; then :
7163
7164                                mp_cv_have_framework_systemconfiguration="yes"
7165
7166else
7167
7168                                mp_cv_have_framework_systemconfiguration="no"
7169
7170
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173    conftest$ac_exeext conftest.$ac_ext
7174
7175                LIBS="$ac_save_LIBS"
7176
7177fi
7178
7179
7180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_have_framework_systemconfiguration}" >&5
7181$as_echo "${mp_cv_have_framework_systemconfiguration}" >&6; }
7182
7183        if test x"${mp_cv_have_framework_systemconfiguration}" = "xyes"; then
7184
7185$as_echo "#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION /**/" >>confdefs.h
7186
7187        fi
7188
7189
7190
7191
7192        FRAMEWORK_LIBS="-framework IOKit"
7193
7194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IOKit framework" >&5
7195$as_echo_n "checking for IOKit framework... " >&6; }
7196
7197        if test "${mp_cv_have_framework_iokit+set}" = set; then :
7198  $as_echo_n "(cached) " >&6
7199else
7200
7201                ac_save_LIBS="$LIBS"
7202                LIBS="$FRAMEWORK_LIBS $LIBS"
7203
7204                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206
7207
7208                                        #include <IOKit/IOKitLib.h>
7209
7210int
7211main ()
7212{
7213
7214                                        IOCreateReceivePort(0, NULL);
7215                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
7216
7217  ;
7218  return 0;
7219}
7220
7221_ACEOF
7222if ac_fn_c_try_link "$LINENO"; then :
7223
7224                                mp_cv_have_framework_iokit="yes"
7225
7226else
7227
7228                                mp_cv_have_framework_iokit="no"
7229
7230
7231fi
7232rm -f core conftest.err conftest.$ac_objext \
7233    conftest$ac_exeext conftest.$ac_ext
7234
7235                LIBS="$ac_save_LIBS"
7236
7237fi
7238
7239
7240        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_have_framework_iokit}" >&5
7241$as_echo "${mp_cv_have_framework_iokit}" >&6; }
7242
7243        if test x"${mp_cv_have_framework_iokit}" = "xyes"; then
7244
7245$as_echo "#define HAVE_FRAMEWORK_IOKIT /**/" >>confdefs.h
7246
7247        fi
7248
7249
7250
7251
7252        FRAMEWORK_LIBS="-framework CoreFoundation"
7253
7254        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
7255$as_echo_n "checking for CFNotificationCenterGetDarwinNotifyCenter... " >&6; }
7256
7257        if test "${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260
7261                ac_save_LIBS="$LIBS"
7262                LIBS="$FRAMEWORK_LIBS $LIBS"
7263
7264                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266
7267
7268                                        #include <CoreFoundation/CoreFoundation.h>
7269
7270int
7271main ()
7272{
7273
7274                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
7275
7276  ;
7277  return 0;
7278}
7279
7280_ACEOF
7281if ac_fn_c_try_link "$LINENO"; then :
7282
7283                                mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
7284
7285else
7286
7287                                mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
7288
7289
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293
7294                LIBS="$ac_save_LIBS"
7295
7296fi
7297
7298
7299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
7300$as_echo "${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6; }
7301
7302        if test x"${mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
7303
7304$as_echo "#define HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER /**/" >>confdefs.h
7305
7306        fi
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether we will build daemondo" >&5
7317$as_echo_n "checking for whether we will build daemondo... " >&6; }
7318    result=no
7319        case $host_os in
7320        darwin*)
7321                if test "x$mp_cv_have_framework_corefoundation" == "xyes" &&
7322                   test "x$mp_cv_have_framework_systemconfiguration" == "xyes" &&
7323                   test "x$mp_cv_have_framework_iokit" == "xyes" &&
7324                   test "x$mp_cv_have_function_cfnotificationcentergetdarwinnotifycenter" == "xyes"; then
7325                        result=yes
7326                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
7327                        ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
7328
7329                fi
7330                ;;
7331        *)
7332        esac
7333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5
7334$as_echo "${result}" >&6; }
7335
7336
7337
7338
7339# set default ports-directory
7340PORTS_DIR_DEFAULT=`pwd | sed -e "s/base/ports/"`
7341
7342# Check for paths
7343
7344if test x$prefix = x/usr/local; then
7345    as_fn_error "Installing MacPorts into /usr/local is not supported" "$LINENO" 5
7346fi
7347
7348
7349
7350
7351# Check whether --with-ports-dir was given.
7352if test "${with_ports_dir+set}" = set; then :
7353  withval=$with_ports_dir;  portsdir="$withval"
7354fi
7355
7356
7357
7358        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ports tree" >&5
7359$as_echo_n "checking for ports tree... " >&6; }
7360        if test "x$portsdir" != "x" ; then
7361          if test -d "$portsdir" -a -e "$portsdir/PortIndex" ; then
7362                :
7363          else
7364                as_fn_error "$portsdir not a valid ports tree" "$LINENO" 5
7365          fi
7366        else
7367                                if test "x$PORTS_DIR_DEFAULT" != "x" ; then
7368                  if test -d "$PORTS_DIR_DEFAULT" -a -e "$PORTS_DIR_DEFAULT/PortIndex" ; then
7369                        portsdir=$PORTS_DIR_DEFAULT
7370                  fi
7371                fi
7372        fi
7373
7374        if test "x$portsdir" != "x" ; then
7375                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $portsdir" >&5
7376$as_echo "$portsdir" >&6; }
7377                PORTSDIR="$portsdir"
7378
7379        else
7380                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ports tree found" >&5
7381$as_echo "$as_me: WARNING: No ports tree found" >&2;}
7382        fi
7383
7384
7385
7386
7387        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MacPorts config directory" >&5
7388$as_echo_n "checking for MacPorts config directory... " >&6; }
7389
7390        mpconfigdir='${sysconfdir}/macports'
7391
7392        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpconfigdir" >&5
7393$as_echo "$mpconfigdir" >&6; }
7394        MPCONFIGDIR="$mpconfigdir"
7395
7396
7397
7398
7399# Check whether to install without root privileges
7400
7401
7402
7403
7404# Check whether --with-no-root-privileges was given.
7405if test "${with_no_root_privileges+set}" = set; then :
7406  withval=$with_no_root_privileges; ROOTPRIVS=$withval
7407fi
7408
7409
7410        if test "${ROOTPRIVS+set}" = set; then
7411
7412                # Set install-user to current user
7413                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install user" >&5
7414$as_echo_n "checking for install user... " >&6; }
7415                DSTUSR=`id -un`
7416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTUSR" >&5
7417$as_echo "$DSTUSR" >&6; }
7418
7419
7420                # Set install-group to current user
7421                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install group" >&5
7422$as_echo_n "checking for install group... " >&6; }
7423                DSTGRP=`id -gn`
7424                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTGRP" >&5
7425$as_echo "$DSTGRP" >&6; }
7426
7427
7428                # Set Tcl package directory to ~/Library/Tcl
7429            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl package directory" >&5
7430$as_echo_n "checking for Tcl package directory... " >&6; }
7431                ac_cv_c_tclpkgd="~$DSTUSR/Library/Tcl"
7432            # Convert to a native path and substitute into the output files.
7433            PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
7434            TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
7435
7436                if test x"${ac_cv_c_tclpkgd}" = x ; then
7437                        as_fn_error "Tcl package directory not found.  Please specify its location with --with-tclpackage" "$LINENO" 5
7438            else
7439                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclpkgd}" >&5
7440$as_echo "${ac_cv_c_tclpkgd}" >&6; }
7441            fi
7442        fi
7443
7444
7445
7446# Check for install ownership
7447
7448
7449
7450
7451# Check whether --with-install-user was given.
7452if test "${with_install_user+set}" = set; then :
7453  withval=$with_install_user;  DSTUSR=$withval
7454fi
7455
7456
7457        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install user" >&5
7458$as_echo_n "checking for install user... " >&6; }
7459        if test "x$DSTUSR" = "x" ; then
7460           DSTUSR=root
7461        fi
7462
7463        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTUSR" >&5
7464$as_echo "$DSTUSR" >&6; }
7465
7466
7467
7468
7469
7470
7471# Check whether --with-install-group was given.
7472if test "${with_install_group+set}" = set; then :
7473  withval=$with_install_group;  DSTGRP=$withval
7474fi
7475
7476
7477        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install group" >&5
7478$as_echo_n "checking for install group... " >&6; }
7479        if test "x$DSTGRP" = "x" ; then
7480
7481           case $host_os in
7482           darwin*)
7483                DSTGRP="admin"
7484                ;;
7485           freebsd*)
7486                DSTGRP="wheel"
7487                ;;
7488           linux*)
7489                DSTGRP="root"
7490                ;;
7491           *)
7492                DSTGRP="wheel"
7493                ;;
7494           esac
7495        fi
7496
7497        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTGRP" >&5
7498$as_echo "$DSTGRP" >&6; }
7499
7500
7501
7502
7503
7504
7505# Check whether --with-macports-user was given.
7506if test "${with_macports_user+set}" = set; then :
7507  withval=$with_macports_user;  RUNUSR=$withval
7508fi
7509
7510
7511        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for macports user" >&5
7512$as_echo_n "checking for macports user... " >&6; }
7513        if test "x$RUNUSR" = "x" ; then
7514# dropping root privs is still buggy
7515#          RUNUSR=`id -un`
7516           RUNUSR=root
7517        fi
7518
7519        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNUSR" >&5
7520$as_echo "$RUNUSR" >&6; }
7521
7522
7523
7524
7525
7526
7527# Check whether --with-directory-mode was given.
7528if test "${with_directory_mode+set}" = set; then :
7529  withval=$with_directory_mode;  DSTMODE=$withval
7530fi
7531
7532
7533        { $as_echo "$as_me:${as_lineno-$LINENO}: checking what permissions to use for installation directories" >&5
7534$as_echo_n "checking what permissions to use for installation directories... " >&6; }
7535        if test "x$DSTMODE" = "x" ; then
7536           DSTMODE=0755
7537        fi
7538
7539        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTMODE" >&5
7540$as_echo "$DSTMODE" >&6; }
7541
7542
7543
7544
7545
7546
7547# Check whether --with-shared-directory was given.
7548if test "${with_shared_directory+set}" = set; then :
7549  withval=$with_shared_directory;  SHAREDIR=$withval
7550fi
7551
7552
7553        if test "${SHAREDIR+set}" = set; then
7554                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to share the install directory with all members of the install group" >&5
7555$as_echo_n "checking whether to share the install directory with all members of the install group... " >&6; }
7556            DSTMODE=0775
7557
7558                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSTMODE" >&5
7559$as_echo "$DSTMODE" >&6; }
7560
7561        fi
7562
7563
7564# Check for default directories
7565
7566
7567
7568
7569# Check whether --with-applications-dir was given.
7570if test "${with_applications_dir+set}" = set; then :
7571  withval=$with_applications_dir; MPAPPLICATIONSDIR=${withval}
7572fi
7573
7574
7575    oldprefix=$prefix
7576    if test "x$prefix" = "xNONE" ; then
7577        prefix=$ac_default_prefix
7578    fi
7579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Applications installation directory" >&5
7580$as_echo_n "checking for Applications installation directory... " >&6; }
7581
7582        if test "x$MPAPPLICATIONSDIR" = "x" ; then
7583            if test "$DSTUSR" = "root" ; then
7584                MPAPPLICATIONSDIR="/Applications/MacPorts"
7585            else
7586                MPAPPLICATIONSDIR="$(eval echo ~$DSTUSR)/Applications/MacPorts"
7587            fi
7588        fi
7589
7590        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPAPPLICATIONSDIR" >&5
7591$as_echo "$MPAPPLICATIONSDIR" >&6; }
7592
7593    prefix=$oldprefix
7594
7595
7596
7597
7598
7599# Check whether --with-frameworks-dir was given.
7600if test "${with_frameworks_dir+set}" = set; then :
7601  withval=$with_frameworks_dir; MPFRAMEWORKSDIR=${withval}
7602fi
7603
7604
7605    oldprefix=$prefix
7606    if test "x$prefix" = "xNONE" ; then
7607        prefix=$ac_default_prefix
7608    fi
7609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Frameworks installation directory" >&5
7610$as_echo_n "checking for Frameworks installation directory... " >&6; }
7611
7612        if test "x$MPFRAMEWORKSDIR" = "x" ; then
7613                MPFRAMEWORKSDIR="${prefix}/Library/Frameworks"
7614        fi
7615
7616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPFRAMEWORKSDIR" >&5
7617$as_echo "$MPFRAMEWORKSDIR" >&6; }
7618
7619    prefix=$oldprefix
7620
7621
7622# Check for universal options
7623
7624
7625# Check whether --with-universal-archs was given.
7626if test "${with_universal_archs+set}" = set; then :
7627  withval=$with_universal_archs; UNIVERSAL_ARCHS=${withval}
7628fi
7629
7630
7631  if test "x$UNIVERSAL_ARCHS" = "x"; then
7632    case "$MACOSX_VERSION" in
7633      10.[0-5]*)
7634        UNIVERSAL_ARCHS="i386 ppc"
7635        ;;
7636      *)
7637        UNIVERSAL_ARCHS="x86_64 i386"
7638        ;;
7639    esac
7640  fi
7641
7642  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Universal CPU architectures" >&5
7643$as_echo_n "checking for Universal CPU architectures... " >&6; }
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIVERSAL_ARCHS" >&5
7645$as_echo "$UNIVERSAL_ARCHS" >&6; }
7646
7647
7648
7649# Check for standard header files.
7650ac_ext=c
7651ac_cpp='$CPP $CPPFLAGS'
7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7656$as_echo_n "checking how to run the C preprocessor... " >&6; }
7657# On Suns, sometimes $CPP names a directory.
7658if test -n "$CPP" && test -d "$CPP"; then
7659  CPP=
7660fi
7661if test -z "$CPP"; then
7662  if test "${ac_cv_prog_CPP+set}" = set; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665      # Double quotes because CPP needs to be expanded
7666    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7667    do
7668      ac_preproc_ok=false
7669for ac_c_preproc_warn_flag in '' yes
7670do
7671  # Use a header file that comes with gcc, so configuring glibc
7672  # with a fresh cross-compiler works.
7673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7674  # <limits.h> exists even on freestanding compilers.
7675  # On the NeXT, cc -E runs the code through the compiler's parser,
7676  # not just through cpp. "Syntax error" is here to catch this case.
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679#ifdef __STDC__
7680# include <limits.h>
7681#else
7682# include <assert.h>
7683#endif
7684                     Syntax error
7685_ACEOF
7686if ac_fn_c_try_cpp "$LINENO"; then :
7687
7688else
7689  # Broken: fails on valid input.
7690continue
7691fi
7692rm -f conftest.err conftest.$ac_ext
7693
7694  # OK, works on sane cases.  Now check whether nonexistent headers
7695  # can be detected and how.
7696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698#include <ac_nonexistent.h>
7699_ACEOF
7700if ac_fn_c_try_cpp "$LINENO"; then :
7701  # Broken: success on invalid input.
7702continue
7703else
7704  # Passes both tests.
7705ac_preproc_ok=:
7706break
7707fi
7708rm -f conftest.err conftest.$ac_ext
7709
7710done
7711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7712rm -f conftest.err conftest.$ac_ext
7713if $ac_preproc_ok; then :
7714  break
7715fi
7716
7717    done
7718    ac_cv_prog_CPP=$CPP
7719
7720fi
7721  CPP=$ac_cv_prog_CPP
7722else
7723  ac_cv_prog_CPP=$CPP
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7726$as_echo "$CPP" >&6; }
7727ac_preproc_ok=false
7728for ac_c_preproc_warn_flag in '' yes
7729do
7730  # Use a header file that comes with gcc, so configuring glibc
7731  # with a fresh cross-compiler works.
7732  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7733  # <limits.h> exists even on freestanding compilers.
7734  # On the NeXT, cc -E runs the code through the compiler's parser,
7735  # not just through cpp. "Syntax error" is here to catch this case.
7736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737/* end confdefs.h.  */
7738#ifdef __STDC__
7739# include <limits.h>
7740#else
7741# include <assert.h>
7742#endif
7743                     Syntax error
7744_ACEOF
7745if ac_fn_c_try_cpp "$LINENO"; then :
7746
7747else
7748  # Broken: fails on valid input.
7749continue
7750fi
7751rm -f conftest.err conftest.$ac_ext
7752
7753  # OK, works on sane cases.  Now check whether nonexistent headers
7754  # can be detected and how.
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757#include <ac_nonexistent.h>
7758_ACEOF
7759if ac_fn_c_try_cpp "$LINENO"; then :
7760  # Broken: success on invalid input.
7761continue
7762else
7763  # Passes both tests.
7764ac_preproc_ok=:
7765break
7766fi
7767rm -f conftest.err conftest.$ac_ext
7768
7769done
7770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7771rm -f conftest.err conftest.$ac_ext
7772if $ac_preproc_ok; then :
7773
7774else
7775  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7777as_fn_error "C preprocessor \"$CPP\" fails sanity check
7778See \`config.log' for more details." "$LINENO" 5; }
7779fi
7780
7781ac_ext=c
7782ac_cpp='$CPP $CPPFLAGS'
7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7789$as_echo_n "checking for ANSI C header files... " >&6; }
7790if test "${ac_cv_header_stdc+set}" = set; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795#include <stdlib.h>
7796#include <stdarg.h>
7797#include <string.h>
7798#include <float.h>
7799
7800int
7801main ()
7802{
7803
7804  ;
7805  return 0;
7806}
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809  ac_cv_header_stdc=yes
7810else
7811  ac_cv_header_stdc=no
7812fi
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814
7815if test $ac_cv_header_stdc = yes; then
7816  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819#include <string.h>
7820
7821_ACEOF
7822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823  $EGREP "memchr" >/dev/null 2>&1; then :
7824
7825else
7826  ac_cv_header_stdc=no
7827fi
7828rm -f conftest*
7829
7830fi
7831
7832if test $ac_cv_header_stdc = yes; then
7833  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836#include <stdlib.h>
7837
7838_ACEOF
7839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7840  $EGREP "free" >/dev/null 2>&1; then :
7841
7842else
7843  ac_cv_header_stdc=no
7844fi
7845rm -f conftest*
7846
7847fi
7848
7849if test $ac_cv_header_stdc = yes; then
7850  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7851  if test "$cross_compiling" = yes; then :
7852  :
7853else
7854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856#include <ctype.h>
7857#include <stdlib.h>
7858#if ((' ' & 0x0FF) == 0x020)
7859# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7860# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7861#else
7862# define ISLOWER(c) \
7863                   (('a' <= (c) && (c) <= 'i') \
7864                     || ('j' <= (c) && (c) <= 'r') \
7865                     || ('s' <= (c) && (c) <= 'z'))
7866# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7867#endif
7868
7869#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7870int
7871main ()
7872{
7873  int i;
7874  for (i = 0; i < 256; i++)
7875    if (XOR (islower (i), ISLOWER (i))
7876        || toupper (i) != TOUPPER (i))
7877      return 2;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_run "$LINENO"; then :
7882
7883else
7884  ac_cv_header_stdc=no
7885fi
7886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7887  conftest.$ac_objext conftest.beam conftest.$ac_ext
7888fi
7889
7890fi
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7893$as_echo "$ac_cv_header_stdc" >&6; }
7894if test $ac_cv_header_stdc = yes; then
7895
7896$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7897
7898fi
7899
7900ac_header_dirent=no
7901for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7902  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7904$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910#include <sys/types.h>
7911#include <$ac_hdr>
7912
7913int
7914main ()
7915{
7916if ((DIR *) 0)
7917return 0;
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923  eval "$as_ac_Header=yes"
7924else
7925  eval "$as_ac_Header=no"
7926fi
7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929eval ac_res=\$$as_ac_Header
7930               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7931$as_echo "$ac_res" >&6; }
7932eval as_val=\$$as_ac_Header
7933   if test "x$as_val" = x""yes; then :
7934  cat >>confdefs.h <<_ACEOF
7935#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7936_ACEOF
7937
7938ac_header_dirent=$ac_hdr; break
7939fi
7940
7941done
7942# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7943if test $ac_header_dirent = dirent.h; then
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7945$as_echo_n "checking for library containing opendir... " >&6; }
7946if test "${ac_cv_search_opendir+set}" = set; then :
7947  $as_echo_n "(cached) " >&6
7948else
7949  ac_func_search_save_LIBS=$LIBS
7950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h.  */
7952
7953/* Override any GCC internal prototype to avoid an error.
7954   Use char because int might match the return type of a GCC
7955   builtin and then its argument prototype would still apply.  */
7956#ifdef __cplusplus
7957extern "C"
7958#endif
7959char opendir ();
7960int
7961main ()
7962{
7963return opendir ();
7964  ;
7965  return 0;
7966}
7967_ACEOF
7968for ac_lib in '' dir; do
7969  if test -z "$ac_lib"; then
7970    ac_res="none required"
7971  else
7972    ac_res=-l$ac_lib
7973    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7974  fi
7975  if ac_fn_c_try_link "$LINENO"; then :
7976  ac_cv_search_opendir=$ac_res
7977fi
7978rm -f core conftest.err conftest.$ac_objext \
7979    conftest$ac_exeext
7980  if test "${ac_cv_search_opendir+set}" = set; then :
7981  break
7982fi
7983done
7984if test "${ac_cv_search_opendir+set}" = set; then :
7985
7986else
7987  ac_cv_search_opendir=no
7988fi
7989rm conftest.$ac_ext
7990LIBS=$ac_func_search_save_LIBS
7991fi
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7993$as_echo "$ac_cv_search_opendir" >&6; }
7994ac_res=$ac_cv_search_opendir
7995if test "$ac_res" != no; then :
7996  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7997
7998fi
7999
8000else
8001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8002$as_echo_n "checking for library containing opendir... " >&6; }
8003if test "${ac_cv_search_opendir+set}" = set; then :
8004  $as_echo_n "(cached) " >&6
8005else
8006  ac_func_search_save_LIBS=$LIBS
8007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009
8010/* Override any GCC internal prototype to avoid an error.
8011   Use char because int might match the return type of a GCC
8012   builtin and then its argument prototype would still apply.  */
8013#ifdef __cplusplus
8014extern "C"
8015#endif
8016char opendir ();
8017int
8018main ()
8019{
8020return opendir ();
8021  ;
8022  return 0;
8023}
8024_ACEOF
8025for ac_lib in '' x; do
8026  if test -z "$ac_lib"; then
8027    ac_res="none required"
8028  else
8029    ac_res=-l$ac_lib
8030    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8031  fi
8032  if ac_fn_c_try_link "$LINENO"; then :
8033  ac_cv_search_opendir=$ac_res
8034fi
8035rm -f core conftest.err conftest.$ac_objext \
8036    conftest$ac_exeext
8037  if test "${ac_cv_search_opendir+set}" = set; then :
8038  break
8039fi
8040done
8041if test "${ac_cv_search_opendir+set}" = set; then :
8042
8043else
8044  ac_cv_search_opendir=no
8045fi
8046rm conftest.$ac_ext
8047LIBS=$ac_func_search_save_LIBS
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8050$as_echo "$ac_cv_search_opendir" >&6; }
8051ac_res=$ac_cv_search_opendir
8052if test "$ac_res" != no; then :
8053  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8054
8055fi
8056
8057fi
8058
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8060$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8061if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8062  $as_echo_n "(cached) " >&6
8063else
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066#include <sys/types.h>
8067#include <sys/wait.h>
8068#ifndef WEXITSTATUS
8069# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8070#endif
8071#ifndef WIFEXITED
8072# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8073#endif
8074
8075int
8076main ()
8077{
8078  int s;
8079  wait (&s);
8080  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085if ac_fn_c_try_compile "$LINENO"; then :
8086  ac_cv_header_sys_wait_h=yes
8087else
8088  ac_cv_header_sys_wait_h=no
8089fi
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091fi
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8093$as_echo "$ac_cv_header_sys_wait_h" >&6; }
8094if test $ac_cv_header_sys_wait_h = yes; then
8095
8096$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8097
8098fi
8099
8100for 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 \
8101        readline/readline.h readline/history.h pwd.h sys/paths.h utime.h
8102do :
8103  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8105eval as_val=\$$as_ac_Header
8106   if test "x$as_val" = x""yes; then :
8107  cat >>confdefs.h <<_ACEOF
8108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109_ACEOF
8110
8111fi
8112
8113done
8114
8115
8116INCLUDES="-I.. -I. $INCLUDES"
8117
8118# Checks for library functions.
8119for ac_func in bzero memset fgetln lockf flock setmode strcasecmp strncasecmp strlcpy copyfile clearenv
8120do :
8121  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8122ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8123eval as_val=\$$as_ac_var
8124   if test "x$as_val" = x""yes; then :
8125  cat >>confdefs.h <<_ACEOF
8126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8127_ACEOF
8128
8129fi
8130done
8131
8132
8133        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if readlink conforms to POSIX 1003.1a" >&5
8134$as_echo_n "checking if readlink conforms to POSIX 1003.1a... " >&6; }
8135
8136        if test "${mp_cv_readlink_is_posix_1003_1a+set}" = set; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139
8140                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142
8143
8144                                        #include <unistd.h>
8145                                        ssize_t readlink(const char *, char *, size_t);
8146
8147int
8148main ()
8149{
8150
8151
8152  ;
8153  return 0;
8154}
8155
8156_ACEOF
8157if ac_fn_c_try_compile "$LINENO"; then :
8158
8159                                mp_cv_readlink_is_posix_1003_1a="yes"
8160
8161else
8162
8163                                mp_cv_readlink_is_posix_1003_1a="no"
8164
8165
8166fi
8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168
8169fi
8170
8171
8172        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${mp_cv_readlink_is_posix_1003_1a}" >&5
8173$as_echo "${mp_cv_readlink_is_posix_1003_1a}" >&6; }
8174
8175        if test x"${mp_cv_readlink_is_posix_1003_1a}" = "xno"; then
8176
8177$as_echo "#define READLINK_IS_NOT_P1003_1A /**/" >>confdefs.h
8178
8179        fi
8180
8181
8182
8183
8184# Check for md5 implementation
8185
8186
8187        # Check for libmd, which is prefered
8188        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Update in -lmd" >&5
8189$as_echo_n "checking for MD5Update in -lmd... " >&6; }
8190if test "${ac_cv_lib_md_MD5Update+set}" = set; then :
8191  $as_echo_n "(cached) " >&6
8192else
8193  ac_check_lib_save_LIBS=$LIBS
8194LIBS="-lmd  $LIBS"
8195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197
8198/* Override any GCC internal prototype to avoid an error.
8199   Use char because int might match the return type of a GCC
8200   builtin and then its argument prototype would still apply.  */
8201#ifdef __cplusplus
8202extern "C"
8203#endif
8204char MD5Update ();
8205int
8206main ()
8207{
8208return MD5Update ();
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_link "$LINENO"; then :
8214  ac_cv_lib_md_MD5Update=yes
8215else
8216  ac_cv_lib_md_MD5Update=no
8217fi
8218rm -f core conftest.err conftest.$ac_objext \
8219    conftest$ac_exeext conftest.$ac_ext
8220LIBS=$ac_check_lib_save_LIBS
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Update" >&5
8223$as_echo "$ac_cv_lib_md_MD5Update" >&6; }
8224if test "x$ac_cv_lib_md_MD5Update" = x""yes; then :
8225
8226                for ac_header in md5.h
8227do :
8228  ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
8229if test "x$ac_cv_header_md5_h" = x""yes; then :
8230  cat >>confdefs.h <<_ACEOF
8231#define HAVE_MD5_H 1
8232_ACEOF
8233
8234else
8235
8236                        case $host_os in
8237                                darwin*)
8238                                        { $as_echo "$as_me:${as_lineno-$LINENO}: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
8239$as_echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
8240                                        ;;
8241                                *)
8242                                        { $as_echo "$as_me:${as_lineno-$LINENO}: Please install the libmd developer headers for your platform." >&5
8243$as_echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
8244                                        ;;
8245                        esac
8246                        as_fn_error "libmd was found, but md5.h is missing." "$LINENO" 5
8247
8248fi
8249
8250done
8251
8252
8253$as_echo "#define HAVE_LIBMD /**/" >>confdefs.h
8254
8255                MD5_LIBS="-lmd"
8256
8257fi
8258
8259        if test "x$MD5_LIBS" = "x" ; then
8260                # If libmd is not found, check for libcrypto from OpenSSL
8261                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5_Update in -lcrypto" >&5
8262$as_echo_n "checking for MD5_Update in -lcrypto... " >&6; }
8263if test "${ac_cv_lib_crypto_MD5_Update+set}" = set; then :
8264  $as_echo_n "(cached) " >&6
8265else
8266  ac_check_lib_save_LIBS=$LIBS
8267LIBS="-lcrypto  $LIBS"
8268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270
8271/* Override any GCC internal prototype to avoid an error.
8272   Use char because int might match the return type of a GCC
8273   builtin and then its argument prototype would still apply.  */
8274#ifdef __cplusplus
8275extern "C"
8276#endif
8277char MD5_Update ();
8278int
8279main ()
8280{
8281return MD5_Update ();
8282  ;
8283  return 0;
8284}
8285_ACEOF
8286if ac_fn_c_try_link "$LINENO"; then :
8287  ac_cv_lib_crypto_MD5_Update=yes
8288else
8289  ac_cv_lib_crypto_MD5_Update=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext \
8292    conftest$ac_exeext conftest.$ac_ext
8293LIBS=$ac_check_lib_save_LIBS
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_MD5_Update" >&5
8296$as_echo "$ac_cv_lib_crypto_MD5_Update" >&6; }
8297if test "x$ac_cv_lib_crypto_MD5_Update" = x""yes; then :
8298
8299                        for ac_header in openssl/md5.h
8300do :
8301  ac_fn_c_check_header_mongrel "$LINENO" "openssl/md5.h" "ac_cv_header_openssl_md5_h" "$ac_includes_default"
8302if test "x$ac_cv_header_openssl_md5_h" = x""yes; then :
8303  cat >>confdefs.h <<_ACEOF
8304#define HAVE_OPENSSL_MD5_H 1
8305_ACEOF
8306
8307else
8308
8309                                case $host_os in
8310                                        darwin*)
8311                                        { $as_echo "$as_me:${as_lineno-$LINENO}: Please install the BSD SDK package from the Xcode Developer Tools CD." >&5
8312$as_echo "$as_me: Please install the BSD SDK package from the Xcode Developer Tools CD." >&6;}
8313                                                ;;
8314                                        *)
8315                                        { $as_echo "$as_me:${as_lineno-$LINENO}: Please install the libmd developer headers for your platform." >&5
8316$as_echo "$as_me: Please install the libmd developer headers for your platform." >&6;}
8317                                                ;;
8318                                esac
8319                                as_fn_error "libcrypt was found, but header file openssl/md5.h is missing." "$LINENO" 5
8320
8321fi
8322
8323done
8324
8325
8326$as_echo "#define HAVE_LIBCRYPTO /**/" >>confdefs.h
8327
8328                        MD5_LIBS="-lcrypto"
8329
8330else
8331
8332                        as_fn_error "Neither OpenSSL or libmd were found. A working md5 implementation is required." "$LINENO" 5
8333
8334fi
8335
8336        fi
8337        if test "x$MD5_LIBS" = "x"; then
8338                as_fn_error "Neither OpenSSL or libmd were found. A working md5 implementation is required." "$LINENO" 5
8339        fi
8340
8341
8342
8343# Check for readline
8344# Check whether --enable-readline was given.
8345if test "${enable_readline+set}" = set; then :
8346  enableval=$enable_readline;
8347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
8348$as_echo_n "checking for readline in -lreadline... " >&6; }
8349if test "${ac_cv_lib_readline_readline+set}" = set; then :
8350  $as_echo_n "(cached) " >&6
8351else
8352  ac_check_lib_save_LIBS=$LIBS
8353LIBS="-lreadline  $LIBS"
8354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356
8357/* Override any GCC internal prototype to avoid an error.
8358   Use char because int might match the return type of a GCC
8359   builtin and then its argument prototype would still apply.  */
8360#ifdef __cplusplus
8361extern "C"
8362#endif
8363char readline ();
8364int
8365main ()
8366{
8367return readline ();
8368  ;
8369  return 0;
8370}
8371_ACEOF
8372if ac_fn_c_try_link "$LINENO"; then :
8373  ac_cv_lib_readline_readline=yes
8374else
8375  ac_cv_lib_readline_readline=no
8376fi
8377rm -f core conftest.err conftest.$ac_objext \
8378    conftest$ac_exeext conftest.$ac_ext
8379LIBS=$ac_check_lib_save_LIBS
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
8382$as_echo "$ac_cv_lib_readline_readline" >&6; }
8383if test "x$ac_cv_lib_readline_readline" = x""yes; then :
8384
8385                                  READLINE_LIBS=-lreadline
8386
8387$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8388
8389
8390fi
8391
8392        ac_fn_c_check_decl "$LINENO" "rl_username_completion_function" "ac_cv_have_decl_rl_username_completion_function" "
8393        #include <stdio.h>
8394        #if HAVE_READLINE_READLINE_H
8395        # include <readline/readline.h>
8396        #endif
8397
8398"
8399if test "x$ac_cv_have_decl_rl_username_completion_function" = x""yes; then :
8400  ac_have_decl=1
8401else
8402  ac_have_decl=0
8403fi
8404
8405cat >>confdefs.h <<_ACEOF
8406#define HAVE_DECL_RL_USERNAME_COMPLETION_FUNCTION $ac_have_decl
8407_ACEOF
8408ac_fn_c_check_decl "$LINENO" "rl_filename_completion_function" "ac_cv_have_decl_rl_filename_completion_function" "
8409        #include <stdio.h>
8410        #if HAVE_READLINE_READLINE_H
8411        # include <readline/readline.h>
8412        #endif
8413
8414"
8415if test "x$ac_cv_have_decl_rl_filename_completion_function" = x""yes; then :
8416  ac_have_decl=1
8417else
8418  ac_have_decl=0
8419fi
8420
8421cat >>confdefs.h <<_ACEOF
8422#define HAVE_DECL_RL_FILENAME_COMPLETION_FUNCTION $ac_have_decl
8423_ACEOF
8424ac_fn_c_check_decl "$LINENO" "rl_completion_matches" "ac_cv_have_decl_rl_completion_matches" "
8425        #include <stdio.h>
8426        #if HAVE_READLINE_READLINE_H
8427        # include <readline/readline.h>
8428        #endif
8429
8430"
8431if test "x$ac_cv_have_decl_rl_completion_matches" = x""yes; then :
8432  ac_have_decl=1
8433else
8434  ac_have_decl=0
8435fi
8436
8437cat >>confdefs.h <<_ACEOF
8438#define HAVE_DECL_RL_COMPLETION_MATCHES $ac_have_decl
8439_ACEOF
8440ac_fn_c_check_decl "$LINENO" "username_completion_function" "ac_cv_have_decl_username_completion_function" "
8441        #include <stdio.h>
8442        #if HAVE_READLINE_READLINE_H
8443        # include <readline/readline.h>
8444        #endif
8445
8446"
8447if test "x$ac_cv_have_decl_username_completion_function" = x""yes; then :
8448  ac_have_decl=1
8449else
8450  ac_have_decl=0
8451fi
8452
8453cat >>confdefs.h <<_ACEOF
8454#define HAVE_DECL_USERNAME_COMPLETION_FUNCTION $ac_have_decl
8455_ACEOF
8456ac_fn_c_check_decl "$LINENO" "filename_completion_function" "ac_cv_have_decl_filename_completion_function" "
8457        #include <stdio.h>
8458        #if HAVE_READLINE_READLINE_H
8459        # include <readline/readline.h>
8460        #endif
8461
8462"
8463if test "x$ac_cv_have_decl_filename_completion_function" = x""yes; then :
8464  ac_have_decl=1
8465else
8466  ac_have_decl=0
8467fi
8468
8469cat >>confdefs.h <<_ACEOF
8470#define HAVE_DECL_FILENAME_COMPLETION_FUNCTION $ac_have_decl
8471_ACEOF
8472ac_fn_c_check_decl "$LINENO" "completion_matches" "ac_cv_have_decl_completion_matches" "
8473        #include <stdio.h>
8474        #if HAVE_READLINE_READLINE_H
8475        # include <readline/readline.h>
8476        #endif
8477
8478"
8479if test "x$ac_cv_have_decl_completion_matches" = x""yes; then :
8480  ac_have_decl=1
8481else
8482  ac_have_decl=0
8483fi
8484
8485cat >>confdefs.h <<_ACEOF
8486#define HAVE_DECL_COMPLETION_MATCHES $ac_have_decl
8487_ACEOF
8488
8489
8490fi
8491
8492
8493
8494# Lowest non-system-reserved uid and gid (Apple claims <500)
8495
8496$as_echo "#define MIN_USABLE_UID 500" >>confdefs.h
8497
8498
8499$as_echo "#define MIN_USABLE_GID 500" >>confdefs.h
8500
8501
8502# Load tclConfig.sh
8503
8504    #
8505    # Ok, lets find the tcl configuration
8506    # First, look for one uninstalled.
8507    # the alternative search directory is invoked by --with-tcl
8508    #
8509
8510    if test x"${no_tcl}" = x ; then
8511        # we reset no_tcl in case something fails here
8512        no_tcl=true
8513
8514# Check whether --with-tcl was given.
8515if test "${with_tcl+set}" = set; then :
8516  withval=$with_tcl; with_tclconfig=${withval}
8517fi
8518
8519        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
8520$as_echo_n "checking for Tcl configuration... " >&6; }
8521        if test "${ac_cv_c_tclconfig+set}" = set; then :
8522  $as_echo_n "(cached) " >&6
8523else
8524
8525
8526            # First check to see if --with-tcl was specified.
8527            if test x"${with_tclconfig}" != x ; then
8528                if test -f "${with_tclconfig}/tclConfig.sh" ; then
8529                    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
8530                else
8531                    as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
8532                fi
8533            fi
8534
8535            # then check for a private Tcl installation
8536            if test x"${ac_cv_c_tclconfig}" = x ; then
8537                for i in \
8538                        ../tcl \
8539                        `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
8540                        ../../tcl \
8541                        `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
8542                        ../../../tcl \
8543                        `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
8544                    if test -f "$i/unix/tclConfig.sh" ; then
8545                        ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8546                        break
8547                    fi
8548                done
8549            fi
8550
8551            # check in a few common install locations
8552            if test x"${ac_cv_c_tclconfig}" = x ; then
8553                for i in `ls -d ${libdir} 2>/dev/null` \
8554                        `ls -d /usr/local/lib 2>/dev/null` \
8555                        `ls -d /usr/contrib/lib 2>/dev/null` \
8556                        `ls -d /usr/lib 2>/dev/null` \
8557                        `ls -d /usr/pkg/lib 2>/dev/null` \
8558                        `ls -d /System/Library/Tcl/8.3 2>/dev/null` \
8559                        `ls -d /usr/local/lib/tcl8.4 2>/dev/null` \
8560                        `ls -d /usr/local/lib/tcl8.3 2>/dev/null` \
8561                        `ls -d /usr/lib/tcl8.4 2>/dev/null` \
8562                        `ls -d /usr/lib/tcl8.3 2>/dev/null` \
8563                        ; do
8564                    if test -f "$i/tclConfig.sh" ; then
8565                        ac_cv_c_tclconfig=`(cd $i; pwd)`
8566                        break
8567                    fi
8568                done
8569            fi
8570
8571            # check in a few other private locations
8572            if test x"${ac_cv_c_tclconfig}" = x ; then
8573                for i in \
8574                        ${srcdir}/../tcl \
8575                        `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
8576                    if test -f "$i/unix/tclConfig.sh" ; then
8577                    ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
8578                    break
8579                fi
8580                done
8581            fi
8582
8583fi
8584
8585
8586        if test x"${ac_cv_c_tclconfig}" = x ; then
8587            TCL_BIN_DIR="# no Tcl configs found"
8588            as_fn_error "Can't find Tcl configuration definitions" "$LINENO" 5
8589        else
8590            no_tcl=
8591            TCL_BIN_DIR=${ac_cv_c_tclconfig}
8592            { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
8593$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
8594        fi
8595    fi
8596
8597
8598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
8599$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
8600
8601    if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
8602        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
8603$as_echo "loading" >&6; }
8604        . $TCL_BIN_DIR/tclConfig.sh
8605    else
8606        { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
8607$as_echo "file not found" >&6; }
8608    fi
8609
8610    #
8611    # If the TCL_BIN_DIR is the build directory (not the install directory),
8612    # then set the common variable name to the value of the build variables.
8613    # For example, the variable TCL_LIB_SPEC will be set to the value
8614    # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
8615    # instead of TCL_BUILD_LIB_SPEC since it will work with both an
8616    # installed and uninstalled version of Tcl.
8617    #
8618
8619    if test -f $TCL_BIN_DIR/Makefile ; then
8620        TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
8621        TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
8622        TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
8623    fi
8624
8625    #
8626    # eval is required to do the TCL_DBGX substitution
8627    #
8628
8629    eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
8630    eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
8631    eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
8632
8633    eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
8634    eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
8635    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650# Check for Tcl public headers
8651CYGPATH=echo
8652
8653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
8654$as_echo_n "checking for Tcl public headers... " >&6; }
8655
8656
8657# Check whether --with-tclinclude was given.
8658if test "${with_tclinclude+set}" = set; then :
8659  withval=$with_tclinclude; with_tclinclude=${withval}
8660fi
8661
8662
8663    if test x"${with_tclinclude}" != x ; then
8664        if test -f "${with_tclinclude}/tcl.h" ; then
8665            ac_cv_c_tclh=${with_tclinclude}
8666        else
8667            as_fn_error "${with_tclinclude} directory does not contain Tcl public header file tcl.h" "$LINENO" 5
8668        fi
8669    else
8670        if test "${ac_cv_c_tclh+set}" = set; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673
8674            # Use the value from --with-tclinclude, if it was given
8675
8676            if test x"${with_tclinclude}" != x ; then
8677                ac_cv_c_tclh=${with_tclinclude}
8678            else
8679                # Do NOT check in $includedir, we need to prevent automatic
8680                # location of Tcl headers in $prefix/include unless explicitly
8681                # specified with the --with-tclinclude option. But go ahead and
8682                # check some other possible local system locations.
8683
8684                for i in \
8685                        /usr/local/include /usr/include /usr/local/include/tcl${TCL_VERSION} /usr/include/tcl${TCL_VERSION}; do
8686                    if test -f "$i/tcl.h" ; then
8687                        ac_cv_c_tclh=$i
8688                        break
8689                    fi
8690                done
8691            fi
8692
8693fi
8694
8695    fi
8696
8697    # Print a message based on how we determined the include path
8698
8699    if test x"${ac_cv_c_tclh}" = x ; then
8700        as_fn_error "tcl.h not found.  Please specify its location with --with-tclinclude" "$LINENO" 5
8701    else
8702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
8703$as_echo "${ac_cv_c_tclh}" >&6; }
8704    fi
8705
8706    # Convert to a native path and substitute into the output files.
8707
8708    INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
8709
8710    TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
8711
8712
8713
8714
8715# Check for tclsh binary
8716
8717
8718
8719        case $host_os in
8720                freebsd*)
8721                        # FreeBSD installs a dummy tclsh (annoying)
8722                        # Look for a real versioned tclsh with threads first
8723                        # Look for a real versioned tclsh without threads second
8724                        # Extract the first word of "tclsh${TCL_VERSION}-threads tclsh${TCL_VERSION} tclsh", so it can be a program name with args.
8725set dummy tclsh${TCL_VERSION}-threads tclsh${TCL_VERSION} tclsh; ac_word=$2
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
8728if test "${ac_cv_path_TCLSH+set}" = set; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  case $TCLSH in
8732  [\\/]* | ?:[\\/]*)
8733  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8734  ;;
8735  *)
8736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739  IFS=$as_save_IFS
8740  test -z "$as_dir" && as_dir=.
8741    for ac_exec_ext in '' $ac_executable_extensions; do
8742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8743    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745    break 2
8746  fi
8747done
8748  done
8749IFS=$as_save_IFS
8750
8751  ;;
8752esac
8753fi
8754TCLSH=$ac_cv_path_TCLSH
8755if test -n "$TCLSH"; then
8756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
8757$as_echo "$TCLSH" >&6; }
8758else
8759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760$as_echo "no" >&6; }
8761fi
8762
8763
8764                        ;;
8765                *)
8766                        # Otherwise, look for a non-versioned tclsh
8767                        # Extract the first word of "tclsh tclsh${TCL_VERSION}", so it can be a program name with args.
8768set dummy tclsh tclsh${TCL_VERSION}; ac_word=$2
8769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770$as_echo_n "checking for $ac_word... " >&6; }
8771if test "${ac_cv_path_TCLSH+set}" = set; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  case $TCLSH in
8775  [\\/]* | ?:[\\/]*)
8776  ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8777  ;;
8778  *)
8779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH
8781do
8782  IFS=$as_save_IFS
8783  test -z "$as_dir" && as_dir=.
8784    for ac_exec_ext in '' $ac_executable_extensions; do
8785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786    ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788    break 2
8789  fi
8790done
8791  done
8792IFS=$as_save_IFS
8793
8794  ;;
8795esac
8796fi
8797TCLSH=$ac_cv_path_TCLSH
8798if test -n "$TCLSH"; then
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
8800$as_echo "$TCLSH" >&6; }
8801else
8802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
8804fi
8805
8806
8807                        ;;
8808        esac
8809        if test "x$TCLSH" = "x" ; then
8810                as_fn_error "Could not find tclsh" "$LINENO" 5
8811        fi
8812
8813
8814
8815
8816# Check for Tcl package path
8817
8818
8819
8820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl package directory" >&5
8821$as_echo_n "checking for Tcl package directory... " >&6; }
8822
8823
8824# Check whether --with-tclpackage was given.
8825if test "${with_tclpackage+set}" = set; then :
8826  withval=$with_tclpackage; with_tclpackagedir=${withval}
8827fi
8828
8829
8830    if test x"${with_tclpackagedir}" != x ; then
8831        ac_cv_c_tclpkgd=${with_tclpackagedir}
8832    else
8833        if test "${ac_cv_c_tclpkgd+set}" = set; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836
8837            # Use the value from --with-tclpackage, if it was given
8838
8839            if test x"${with_tclpackagedir}" != x ; then
8840                echo "tclpackagedir"
8841                ac_cv_c_tclpkgd=${with_tclpackagedir}
8842            else
8843                # On darwin we can do some intelligent guessing
8844                case $host_os in
8845                    darwin*)
8846                        tcl_autopath=`echo 'puts -nonewline \$auto_path' | $TCLSH`
8847                        for path in $tcl_autopath; do
8848                        if test "$DSTUSR" = "root" ; then
8849                            if test "$path" = "/Library/Tcl"; then
8850                                ac_cv_c_tclpkgd="$path"
8851                                break
8852                            fi
8853                            if test "$path" = "/System/Library/Tcl"; then
8854                                if test -d "$path"; then
8855                                    ac_cv_c_tclpkgd="$path"
8856                                    break
8857                                fi
8858                            fi
8859                        elif test "$path" = "~/Library/Tcl"; then
8860                            ac_cv_c_tclpkgd="~$DSTUSR/Library/Tcl"
8861                            break
8862                        fi
8863                        done
8864                    ;;
8865                esac
8866                if test x"${ac_cv_c_tclpkgd}" = x ; then
8867                    # Fudge a path from the first entry in the auto_path
8868                    tcl_pkgpath=`echo 'puts -nonewline [lindex \$auto_path 0]' | $TCLSH`
8869                    if test -d "$tcl_pkgpath"; then
8870                        ac_cv_c_tclpkgd="$tcl_pkgpath"
8871                    fi
8872                    # If the first entry does not exist, do nothing
8873                fi
8874            fi
8875
8876fi
8877
8878    fi
8879
8880    if test x"${ac_cv_c_tclpkgd}" = x ; then
8881        as_fn_error "Tcl package directory not found.  Please specify its location with --with-tclpackage" "$LINENO" 5
8882    else
8883        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclpkgd}" >&5
8884$as_echo "${ac_cv_c_tclpkgd}" >&6; }
8885    fi
8886
8887    # Convert to a native path and substitute into the output files.
8888
8889    PACKAGE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclpkgd}`
8890
8891    TCL_PACKAGE_DIR=${PACKAGE_DIR_NATIVE}
8892
8893
8894
8895
8896# Check if thread is enabled.
8897
8898        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tclsh was compiled with threads" >&5
8899$as_echo_n "checking whether tclsh was compiled with threads... " >&6; }
8900        tcl_threadenabled=`echo 'puts -nonewline [info exists tcl_platform(threaded)]' | $TCLSH`
8901        if test "$tcl_threadenabled" = "1" ; then
8902                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8903$as_echo "yes" >&6; }
8904        else
8905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907                as_fn_error "tcl wasn't compiled with threads enabled" "$LINENO" 5
8908        fi
8909
8910
8911## libcurl
8912
8913
8914# Check whether --with-curlprefix was given.
8915if test "${with_curlprefix+set}" = set; then :
8916  withval=$with_curlprefix;   curlprefix=$withval
8917fi
8918
8919
8920        if test "x$curlprefix" = "x"; then
8921                # Extract the first word of "curl-config", so it can be a program name with args.
8922set dummy curl-config; ac_word=$2
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924$as_echo_n "checking for $ac_word... " >&6; }
8925if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  case $CURL_CONFIG in
8929  [\\/]* | ?:[\\/]*)
8930  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8931  ;;
8932  *)
8933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934for as_dir in $PATH
8935do
8936  IFS=$as_save_IFS
8937  test -z "$as_dir" && as_dir=.
8938    for ac_exec_ext in '' $ac_executable_extensions; do
8939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942    break 2
8943  fi
8944done
8945  done
8946IFS=$as_save_IFS
8947
8948  ;;
8949esac
8950fi
8951CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8952if test -n "$CURL_CONFIG"; then
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
8954$as_echo "$CURL_CONFIG" >&6; }
8955else
8956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957$as_echo "no" >&6; }
8958fi
8959
8960
8961        else
8962                # Extract the first word of "curl-config", so it can be a program name with args.
8963set dummy curl-config; ac_word=$2
8964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965$as_echo_n "checking for $ac_word... " >&6; }
8966if test "${ac_cv_path_CURL_CONFIG+set}" = set; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  case $CURL_CONFIG in
8970  [\\/]* | ?:[\\/]*)
8971  ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
8972  ;;
8973  *)
8974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $curlprefix/bin
8976do
8977  IFS=$as_save_IFS
8978  test -z "$as_dir" && as_dir=.
8979    for ac_exec_ext in '' $ac_executable_extensions; do
8980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981    ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983    break 2
8984  fi
8985done
8986  done
8987IFS=$as_save_IFS
8988
8989  ;;
8990esac
8991fi
8992CURL_CONFIG=$ac_cv_path_CURL_CONFIG
8993if test -n "$CURL_CONFIG"; then
8994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL_CONFIG" >&5
8995$as_echo "$CURL_CONFIG" >&6; }
8996else
8997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999fi
9000
9001
9002        fi
9003
9004        if test "x$CURL_CONFIG" = "x"; then
9005                as_fn_error "cannot find curl-config. Is libcurl installed?" "$LINENO" 5
9006        fi
9007
9008        CFLAGS_LIBCURL=$($CURL_CONFIG --cflags)
9009        # Due to a bug in dist, --arch flags are improperly supplied by curl-config.
9010        # Get rid of them.
9011        LDFLAGS_LIBCURL=$($CURL_CONFIG --libs | sed 's/-arch [A-Za-z0-9_]* //g')
9012
9013
9014
9015
9016
9017# Determine if we need to install some bundled packages
9018OUR_INCLUDED_PACKAGES=
9019
9020## Thread package.
9021
9022# Check whether --with-included-tclthread was given.
9023if test "${with_included_tclthread+set}" = set; then :
9024  withval=$with_included_tclthread; with_included_tclthread=$withval
9025else
9026  with_included_tclthread="unspecified"
9027fi
9028
9029
9030# Check if thread package is already installed.
9031if test "x$with_included_tclthread" = "xunspecified" ; then
9032
9033        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl Thread package" >&5
9034$as_echo_n "checking for Tcl Thread package... " >&6; }
9035        package_present=`echo 'if {[catch {package require Thread}]} {puts -nonewline 0} else {puts -nonewline 1}' | $TCLSH`
9036        if test "$package_present" = "1"; then :
9037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9038$as_echo "yes" >&6; }; with_included_tclthread=no
9039else
9040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041$as_echo "no" >&6; }; with_included_tclthread=yes
9042fi
9043
9044fi
9045
9046# If thread package isn't installed, configure and install thread package.
9047if test "$with_included_tclthread" = "yes"; then
9048        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES thread2.6"
9049
9050
9051subdirs="$subdirs src/thread2.6"
9052
9053        # Extract thread package
9054        (cd src/; gzip -d < thread2.6.tar.gz | tar xf -)
9055        # Patch thread package (so thread2.6 is the vanilla distribution directory)
9056        patch -p0 < src/thread2.6.diff
9057fi
9058
9059## sqlite3 package.
9060
9061# Check whether --with-included-sqlite3 was given.
9062if test "${with_included_sqlite3+set}" = set; then :
9063  withval=$with_included_sqlite3; with_included_sqlite3=$withval
9064else
9065  with_included_sqlite3="unspecified"
9066fi
9067
9068
9069# Check if sqlite3 package is already installed.
9070if test "x$with_included_sqlite3" = "xunspecified" ; then
9071        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
9072$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
9073if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  ac_check_lib_save_LIBS=$LIBS
9077LIBS="-lsqlite3  $LIBS"
9078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h.  */
9080
9081/* Override any GCC internal prototype to avoid an error.
9082   Use char because int might match the return type of a GCC
9083   builtin and then its argument prototype would still apply.  */
9084#ifdef __cplusplus
9085extern "C"
9086#endif
9087char sqlite3_open ();
9088int
9089main ()
9090{
9091return sqlite3_open ();
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  ac_cv_lib_sqlite3_sqlite3_open=yes
9098else
9099  ac_cv_lib_sqlite3_sqlite3_open=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102    conftest$ac_exeext conftest.$ac_ext
9103LIBS=$ac_check_lib_save_LIBS
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
9106$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
9107if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
9108  with_included_sqlite3=no
9109else
9110  with_included_sqlite3=yes
9111fi
9112
9113fi
9114
9115
9116# Check whether --with-tcl-sqlite3 was given.
9117if test "${with_tcl_sqlite3+set}" = set; then :
9118  withval=$with_tcl_sqlite3; mp_sqlite3_dir=$withval
9119else
9120  mp_sqlite3_dir=/usr/lib/sqlite3
9121fi
9122
9123
9124# If sqlite3 package isn't installed, configure and install sqlite3 package.
9125if test "$with_included_sqlite3" = "yes"; then
9126        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3"
9127        INCLUDES="$INCLUDES -I../sqlite-3.1.3"
9128        subdirs="$subdirs src/sqlite-3.1.3"
9129
9130        # Extract sqlite3 package
9131        (cd src/; gzip -d < sqlite-3.1.3.tar.gz | tar xf -)
9132        # patch sqlite3 with desired configure options
9133        patch -p0 < src/sqlite-3.1.3.diff
9134        # the new tclinstaller.tcl needs to have substitution occur
9135        mv src/sqlite-3.1.3/tclinstaller.tcl src/sqlite-3.1.3/tclinstaller.tcl.in
9136        SQLITE3_LIBS=`pwd`"/src/sqlite-3.1.3/.libs/libsqlite3.a"
9137        if test "x$prefix" = "xNONE" ; then
9138                SQLITE3_DIR=$ac_default_prefix/share/macports/Tcl/sqlite3
9139        else
9140                SQLITE3_DIR=$prefix/share/macports/Tcl/sqlite3
9141        fi
9142else
9143        SQLITE3_LIBS="-lsqlite3"
9144
9145        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl sqlite3 location" >&5
9146$as_echo_n "checking for Tcl sqlite3 location... " >&6; }
9147if test "${mp_cv_sqlite3_dir+set}" = set; then :
9148  $as_echo_n "(cached) " >&6
9149else
9150  mp_cv_sqlite3_dir=
9151                test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir
9152
9153fi
9154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_sqlite3_dir" >&5
9155$as_echo "$mp_cv_sqlite3_dir" >&6; }
9156
9157        SQLITE3_DIR=$mp_cv_sqlite3_dir
9158fi
9159
9160
9161
9162
9163
9164
9165# Check whether --with-trace-sdk was given.
9166if test "${with_trace_sdk+set}" = set; then :
9167  withval=$with_trace_sdk; test -d ${DEVELOPER_DIR}/SDKs/$withval && cat >>confdefs.h <<_ACEOF
9168#define TRACE_SDK "${withval}"
9169_ACEOF
9170
9171fi
9172
9173
9174# Allows building of shared libraries
9175
9176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
9177$as_echo_n "checking how to build libraries... " >&6; }
9178    # Check whether --enable-shared was given.
9179if test "${enable_shared+set}" = set; then :
9180  enableval=$enable_shared; tcl_ok=$enableval
9181else
9182  tcl_ok=yes
9183fi
9184
9185
9186    if test "${enable_shared+set}" = set; then
9187        enableval="$enable_shared"
9188        tcl_ok=$enableval
9189    else
9190        tcl_ok=yes
9191    fi
9192
9193    if test "$tcl_ok" = "yes" ; then
9194        { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
9195$as_echo "shared" >&6; }
9196        SHARED_BUILD=1
9197    else
9198        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
9199$as_echo "static" >&6; }
9200        SHARED_BUILD=0
9201
9202$as_echo "#define STATIC_BUILD 1" >>confdefs.h
9203
9204    fi
9205
9206
9207# Pull compiler / linker values from tclConfig.sh
9208LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
9209LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
9210SHLIB_LD=${TCL_SHLIB_LD}
9211STLIB_LD=${TCL_STLIB_LD}
9212SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
9213SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227# misc variables that need to be expanded for substitution into tcl
9228
9229oldprefix=$prefix
9230if test "x$prefix" = "xNONE" ; then
9231   prefix=$ac_default_prefix
9232fi
9233
9234# Check if there's an existing DP/MP install too old to upgrade
9235
9236
9237        { $as_echo "$as_me:${as_lineno-$LINENO}: checking that any existing MacPorts install can be upgraded" >&5
9238$as_echo_n "checking that any existing MacPorts install can be upgraded... " >&6; }
9239
9240        eval dpversionfile="${sysconfdir}/ports/dp_version"
9241        if test -f $dpversionfile; then
9242                as_fn_error "Existing MacPorts or DarwinPorts install is too old to be upgraded. Install MacPorts 1.7.1 first." "$LINENO" 5
9243        else
9244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9245$as_echo "yes" >&6; }
9246        fi
9247
9248
9249
9250eval "prefix_expanded=$prefix"
9251
9252# do this twice, since there is a nested variable of
9253# ${prefix} inside of ${sysconfdir}
9254eval "MPCONFIGDIR_EXPANDED=$MPCONFIGDIR"
9255eval "MPCONFIGDIR_EXPANDED=$MPCONFIGDIR_EXPANDED"
9256
9257eval "localstatedir_expanded=$localstatedir"
9258
9259
9260prefix=$oldprefix
9261
9262
9263# Output
9264ac_config_files="$ac_config_files Doxyfile Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf portmgr/freebsd/Makefile portmgr/fedora/macports.spec 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"
9265
9266
9267ac_config_files="$ac_config_files src/pkg_mkindex.sh"
9268
9269
9270cat >confcache <<\_ACEOF
9271# This file is a shell script that caches the results of configure
9272# tests run on this system so they can be shared between configure
9273# scripts and configure runs, see configure's option --config-cache.
9274# It is not useful on other systems.  If it contains results you don't
9275# want to keep, you may remove or edit it.
9276#
9277# config.status only pays attention to the cache file if you give it
9278# the --recheck option to rerun configure.
9279#
9280# `ac_cv_env_foo' variables (set or unset) will be overridden when
9281# loading this file, other *unset* `ac_cv_foo' will be assigned the
9282# following values.
9283
9284_ACEOF
9285
9286# The following way of writing the cache mishandles newlines in values,
9287# but we know of no workaround that is simple, portable, and efficient.
9288# So, we kill variables containing newlines.
9289# Ultrix sh set writes to stderr and can't be redirected directly,
9290# and sets the high bit in the cache file unless we assign to the vars.
9291(
9292  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9293    eval ac_val=\$$ac_var
9294    case $ac_val in #(
9295    *${as_nl}*)
9296      case $ac_var in #(
9297      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9299      esac
9300      case $ac_var in #(
9301      _ | IFS | as_nl) ;; #(
9302      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9303      *) { eval $ac_var=; unset $ac_var;} ;;
9304      esac ;;
9305    esac
9306  done
9307
9308  (set) 2>&1 |
9309    case $as_nl`(ac_space=' '; set) 2>&1` in #(
9310    *${as_nl}ac_space=\ *)
9311      # `set' does not quote correctly, so add quotes: double-quote
9312      # substitution turns \\\\ into \\, and sed turns \\ into \.
9313      sed -n \
9314        "s/'/'\\\\''/g;
9315          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9316      ;; #(
9317    *)
9318      # `set' quotes correctly as required by POSIX, so do not add quotes.
9319      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9320      ;;
9321    esac |
9322    sort
9323) |
9324  sed '
9325     /^ac_cv_env_/b end
9326     t clear
9327     :clear
9328     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9329     t end
9330     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9331     :end' >>confcache
9332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9333  if test -w "$cache_file"; then
9334    test "x$cache_file" != "x/dev/null" &&
9335      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9336$as_echo "$as_me: updating cache $cache_file" >&6;}
9337    cat confcache >$cache_file
9338  else
9339    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9340$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9341  fi
9342fi
9343rm -f confcache
9344
9345test "x$prefix" = xNONE && prefix=$ac_default_prefix
9346# Let make expand exec_prefix.
9347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9348
9349DEFS=-DHAVE_CONFIG_H
9350
9351ac_libobjs=
9352ac_ltlibobjs=
9353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9354  # 1. Remove the extension, and $U if already installed.
9355  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9356  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9357  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9358  #    will be set to the directory where LIBOBJS objects are built.
9359  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9360  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9361done
9362LIBOBJS=$ac_libobjs
9363
9364LTLIBOBJS=$ac_ltlibobjs
9365
9366
9367
9368: ${CONFIG_STATUS=./config.status}
9369ac_write_fail=0
9370ac_clean_files_save=$ac_clean_files
9371ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9372{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9373$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9374as_write_fail=0
9375cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9376#! $SHELL
9377# Generated by $as_me.
9378# Run this file to recreate the current configuration.
9379# Compiler output produced by configure, useful for debugging
9380# configure, is in config.log if it exists.
9381
9382debug=false
9383ac_cs_recheck=false
9384ac_cs_silent=false
9385
9386SHELL=\${CONFIG_SHELL-$SHELL}
9387export SHELL
9388_ASEOF
9389cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9390## -------------------- ##
9391## M4sh Initialization. ##
9392## -------------------- ##
9393
9394# Be more Bourne compatible
9395DUALCASE=1; export DUALCASE # for MKS sh
9396if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9397  emulate sh
9398  NULLCMD=:
9399  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9400  # is contrary to our usage.  Disable this feature.
9401  alias -g '${1+"$@"}'='"$@"'
9402  setopt NO_GLOB_SUBST
9403else
9404  case `(set -o) 2>/dev/null` in #(
9405  *posix*) :
9406    set -o posix ;; #(
9407  *) :
9408     ;;
9409esac
9410fi
9411
9412
9413as_nl='
9414'
9415export as_nl
9416# Printing a long string crashes Solaris 7 /usr/bin/printf.
9417as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9418as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9419as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9420# Prefer a ksh shell builtin over an external printf program on Solaris,
9421# but without wasting forks for bash or zsh.
9422if test -z "$BASH_VERSION$ZSH_VERSION" \
9423    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9424  as_echo='print -r --'
9425  as_echo_n='print -rn --'
9426elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9427  as_echo='printf %s\n'
9428  as_echo_n='printf %s'
9429else
9430  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9431    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9432    as_echo_n='/usr/ucb/echo -n'
9433  else
9434    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9435    as_echo_n_body='eval
9436      arg=$1;
9437      case $arg in #(
9438      *"$as_nl"*)
9439        expr "X$arg" : "X\\(.*\\)$as_nl";
9440        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9441      esac;
9442      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9443    '
9444    export as_echo_n_body
9445    as_echo_n='sh -c $as_echo_n_body as_echo'
9446  fi
9447  export as_echo_body
9448  as_echo='sh -c $as_echo_body as_echo'
9449fi
9450
9451# The user is always right.
9452if test "${PATH_SEPARATOR+set}" != set; then
9453  PATH_SEPARATOR=:
9454  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9455    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9456      PATH_SEPARATOR=';'
9457  }
9458fi
9459
9460
9461# IFS
9462# We need space, tab and new line, in precisely that order.  Quoting is
9463# there to prevent editors from complaining about space-tab.
9464# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9465# splitting by setting IFS to empty value.)
9466IFS=" ""        $as_nl"
9467
9468# Find who we are.  Look in the path if we contain no directory separator.
9469case $0 in #((
9470  *[\\/]* ) as_myself=$0 ;;
9471  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472for as_dir in $PATH
9473do
9474  IFS=$as_save_IFS
9475  test -z "$as_dir" && as_dir=.
9476    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9477  done
9478IFS=$as_save_IFS
9479
9480     ;;
9481esac
9482# We did not find ourselves, most probably we were run as `sh COMMAND'
9483# in which case we are not to be found in the path.
9484if test "x$as_myself" = x; then
9485  as_myself=$0
9486fi
9487if test ! -f "$as_myself"; then
9488  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9489  exit 1
9490fi
9491
9492# Unset variables that we do not need and which cause bugs (e.g. in
9493# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9494# suppresses any "Segmentation fault" message there.  '((' could
9495# trigger a bug in pdksh 5.2.14.
9496for as_var in BASH_ENV ENV MAIL MAILPATH
9497do eval test x\${$as_var+set} = xset \
9498  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9499done
9500PS1='$ '
9501PS2='> '
9502PS4='+ '
9503
9504# NLS nuisances.
9505LC_ALL=C
9506export LC_ALL
9507LANGUAGE=C
9508export LANGUAGE
9509
9510# CDPATH.
9511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9512
9513
9514# as_fn_error ERROR [LINENO LOG_FD]
9515# ---------------------------------
9516# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9517# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9518# script with status $?, using 1 if that was 0.
9519as_fn_error ()
9520{
9521  as_status=$?; test $as_status -eq 0 && as_status=1
9522  if test "$3"; then
9523    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9524    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9525  fi
9526  $as_echo "$as_me: error: $1" >&2
9527  as_fn_exit $as_status
9528} # as_fn_error
9529
9530
9531# as_fn_set_status STATUS
9532# -----------------------
9533# Set $? to STATUS, without forking.
9534as_fn_set_status ()
9535{
9536  return $1
9537} # as_fn_set_status
9538
9539# as_fn_exit STATUS
9540# -----------------
9541# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9542as_fn_exit ()
9543{
9544  set +e
9545  as_fn_set_status $1
9546  exit $1
9547} # as_fn_exit
9548
9549# as_fn_unset VAR
9550# ---------------
9551# Portably unset VAR.
9552as_fn_unset ()
9553{
9554  { eval $1=; unset $1;}
9555}
9556as_unset=as_fn_unset
9557# as_fn_append VAR VALUE
9558# ----------------------
9559# Append the text in VALUE to the end of the definition contained in VAR. Take
9560# advantage of any shell optimizations that allow amortized linear growth over
9561# repeated appends, instead of the typical quadratic growth present in naive
9562# implementations.
9563if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9564  eval 'as_fn_append ()
9565  {
9566    eval $1+=\$2
9567  }'
9568else
9569  as_fn_append ()
9570  {
9571    eval $1=\$$1\$2
9572  }
9573fi # as_fn_append
9574
9575# as_fn_arith ARG...
9576# ------------------
9577# Perform arithmetic evaluation on the ARGs, and store the result in the
9578# global $as_val. Take advantage of shells that can avoid forks. The arguments
9579# must be portable across $(()) and expr.
9580if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9581  eval 'as_fn_arith ()
9582  {
9583    as_val=$(( $* ))
9584  }'
9585else
9586  as_fn_arith ()
9587  {
9588    as_val=`expr "$@" || test $? -eq 1`
9589  }
9590fi # as_fn_arith
9591
9592
9593if expr a : '\(a\)' >/dev/null 2>&1 &&
9594   test "X`expr 00001 : '.*\(...\)'`" = X001; then
9595  as_expr=expr
9596else
9597  as_expr=false
9598fi
9599
9600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9601  as_basename=basename
9602else
9603  as_basename=false
9604fi
9605
9606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9607  as_dirname=dirname
9608else
9609  as_dirname=false
9610fi
9611
9612as_me=`$as_basename -- "$0" ||
9613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9614         X"$0" : 'X\(//\)$' \| \
9615         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9616$as_echo X/"$0" |
9617    sed '/^.*\/\([^/][^/]*\)\/*$/{
9618            s//\1/
9619            q
9620          }
9621          /^X\/\(\/\/\)$/{
9622            s//\1/
9623            q
9624          }
9625          /^X\/\(\/\).*/{
9626            s//\1/
9627            q
9628          }
9629          s/.*/./; q'`
9630
9631# Avoid depending upon Character Ranges.
9632as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9634as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9635as_cr_digits='0123456789'
9636as_cr_alnum=$as_cr_Letters$as_cr_digits
9637
9638ECHO_C= ECHO_N= ECHO_T=
9639case `echo -n x` in #(((((
9640-n*)
9641  case `echo 'xy\c'` in
9642  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9643  xy)  ECHO_C='\c';;
9644  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9645       ECHO_T=' ';;
9646  esac;;
9647*)
9648  ECHO_N='-n';;
9649esac
9650
9651rm -f conf$$ conf$$.exe conf$$.file
9652if test -d conf$$.dir; then
9653  rm -f conf$$.dir/conf$$.file
9654else
9655  rm -f conf$$.dir
9656  mkdir conf$$.dir 2>/dev/null
9657fi
9658if (echo >conf$$.file) 2>/dev/null; then
9659  if ln -s conf$$.file conf$$ 2>/dev/null; then
9660    as_ln_s='ln -s'
9661    # ... but there are two gotchas:
9662    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9663    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9664    # In both cases, we have to default to `cp -p'.
9665    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9666      as_ln_s='cp -p'
9667  elif ln conf$$.file conf$$ 2>/dev/null; then
9668    as_ln_s=ln
9669  else
9670    as_ln_s='cp -p'
9671  fi
9672else
9673  as_ln_s='cp -p'
9674fi
9675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9676rmdir conf$$.dir 2>/dev/null
9677
9678
9679# as_fn_mkdir_p
9680# -------------
9681# Create "$as_dir" as a directory, including parents if necessary.
9682as_fn_mkdir_p ()
9683{
9684
9685  case $as_dir in #(
9686  -*) as_dir=./$as_dir;;
9687  esac
9688  test -d "$as_dir" || eval $as_mkdir_p || {
9689    as_dirs=
9690    while :; do
9691      case $as_dir in #(
9692      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9693      *) as_qdir=$as_dir;;
9694      esac
9695      as_dirs="'$as_qdir' $as_dirs"
9696      as_dir=`$as_dirname -- "$as_dir" ||
9697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9698         X"$as_dir" : 'X\(//\)[^/]' \| \
9699         X"$as_dir" : 'X\(//\)$' \| \
9700         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9701$as_echo X"$as_dir" |
9702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9703            s//\1/
9704            q
9705          }
9706          /^X\(\/\/\)[^/].*/{
9707            s//\1/
9708            q
9709          }
9710          /^X\(\/\/\)$/{
9711            s//\1/
9712            q
9713          }
9714          /^X\(\/\).*/{
9715            s//\1/
9716            q
9717          }
9718          s/.*/./; q'`
9719      test -d "$as_dir" && break
9720    done
9721    test -z "$as_dirs" || eval "mkdir $as_dirs"
9722  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9723
9724
9725} # as_fn_mkdir_p
9726if mkdir -p . 2>/dev/null; then
9727  as_mkdir_p='mkdir -p "$as_dir"'
9728else
9729  test -d ./-p && rmdir ./-p
9730  as_mkdir_p=false
9731fi
9732
9733if test -x / >/dev/null 2>&1; then
9734  as_test_x='test -x'
9735else
9736  if ls -dL / >/dev/null 2>&1; then
9737    as_ls_L_option=L
9738  else
9739    as_ls_L_option=
9740  fi
9741  as_test_x='
9742    eval sh -c '\''
9743      if test -d "$1"; then
9744        test -d "$1/.";
9745      else
9746        case $1 in #(
9747        -*)set "./$1";;
9748        esac;
9749        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9750        ???[sx]*):;;*)false;;esac;fi
9751    '\'' sh
9752  '
9753fi
9754as_executable_p=$as_test_x
9755
9756# Sed expression to map a string onto a valid CPP name.
9757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9758
9759# Sed expression to map a string onto a valid variable name.
9760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9761
9762
9763exec 6>&1
9764## ----------------------------------- ##
9765## Main body of $CONFIG_STATUS script. ##
9766## ----------------------------------- ##
9767_ASEOF
9768test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9769
9770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9771# Save the log message, to keep $0 and so on meaningful, and to
9772# report actual input values of CONFIG_FILES etc. instead of their
9773# values after options handling.
9774ac_log="
9775This file was extended by MacPorts $as_me 1.8.99, which was
9776generated by GNU Autoconf 2.64.  Invocation command line was
9777
9778  CONFIG_FILES    = $CONFIG_FILES
9779  CONFIG_HEADERS  = $CONFIG_HEADERS
9780  CONFIG_LINKS    = $CONFIG_LINKS
9781  CONFIG_COMMANDS = $CONFIG_COMMANDS
9782  $ $0 $@
9783
9784on `(hostname || uname -n) 2>/dev/null | sed 1q`
9785"
9786
9787_ACEOF
9788
9789case $ac_config_files in *"
9790"*) set x $ac_config_files; shift; ac_config_files=$*;;
9791esac
9792
9793case $ac_config_headers in *"
9794"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9795esac
9796
9797
9798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9799# Files that config.status was made for.
9800config_files="$ac_config_files"
9801config_headers="$ac_config_headers"
9802
9803_ACEOF
9804
9805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9806ac_cs_usage="\
9807\`$as_me' instantiates files and other configuration actions
9808from templates according to the current configuration.  Unless the files
9809and actions are specified as TAGs, all are instantiated by default.
9810
9811Usage: $0 [OPTION]... [TAG]...
9812
9813  -h, --help       print this help, then exit
9814  -V, --version    print version number and configuration settings, then exit
9815  -q, --quiet, --silent
9816                   do not print progress messages
9817  -d, --debug      don't remove temporary files
9818      --recheck    update $as_me by reconfiguring in the same conditions
9819      --file=FILE[:TEMPLATE]
9820                   instantiate the configuration file FILE
9821      --header=FILE[:TEMPLATE]
9822                   instantiate the configuration header FILE
9823
9824Configuration files:
9825$config_files
9826
9827Configuration headers:
9828$config_headers
9829
9830Report bugs to <macports-dev@lists.macosforge.org>."
9831
9832_ACEOF
9833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9834ac_cs_version="\\
9835MacPorts config.status 1.8.99
9836configured by $0, generated by GNU Autoconf 2.64,
9837  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9838
9839Copyright (C) 2009 Free Software Foundation, Inc.
9840This config.status script is free software; the Free Software Foundation
9841gives unlimited permission to copy, distribute and modify it."
9842
9843ac_pwd='$ac_pwd'
9844srcdir='$srcdir'
9845INSTALL='$INSTALL'
9846test -n "\$AWK" || AWK=awk
9847_ACEOF
9848
9849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9850# The default lists apply if the user does not specify any file.
9851ac_need_defaults=:
9852while test $# != 0
9853do
9854  case $1 in
9855  --*=*)
9856    ac_option=`expr "X$1" : 'X\([^=]*\)='`
9857    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9858    ac_shift=:
9859    ;;
9860  *)
9861    ac_option=$1
9862    ac_optarg=$2
9863    ac_shift=shift
9864    ;;
9865  esac
9866
9867  case $ac_option in
9868  # Handling of the options.
9869  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9870    ac_cs_recheck=: ;;
9871  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9872    $as_echo "$ac_cs_version"; exit ;;
9873  --debug | --debu | --deb | --de | --d | -d )
9874    debug=: ;;
9875  --file | --fil | --fi | --f )
9876    $ac_shift
9877    case $ac_optarg in
9878    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9879    esac
9880    as_fn_append CONFIG_FILES " '$ac_optarg'"
9881    ac_need_defaults=false;;
9882  --header | --heade | --head | --hea )
9883    $ac_shift
9884    case $ac_optarg in
9885    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9886    esac
9887    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9888    ac_need_defaults=false;;
9889  --he | --h)
9890    # Conflict between --help and --header
9891    as_fn_error "ambiguous option: \`$1'
9892Try \`$0 --help' for more information.";;
9893  --help | --hel | -h )
9894    $as_echo "$ac_cs_usage"; exit ;;
9895  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9896  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9897    ac_cs_silent=: ;;
9898
9899  # This is an error.
9900  -*) as_fn_error "unrecognized option: \`$1'
9901Try \`$0 --help' for more information." ;;
9902
9903  *) as_fn_append ac_config_targets " $1"
9904     ac_need_defaults=false ;;
9905
9906  esac
9907  shift
9908done
9909
9910ac_configure_extra_args=
9911
9912if $ac_cs_silent; then
9913  exec 6>/dev/null
9914  ac_configure_extra_args="$ac_configure_extra_args --silent"
9915fi
9916
9917_ACEOF
9918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9919if \$ac_cs_recheck; then
9920  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9921  shift
9922  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9923  CONFIG_SHELL='$SHELL'
9924  export CONFIG_SHELL
9925  exec "\$@"
9926fi
9927
9928_ACEOF
9929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9930exec 5>>config.log
9931{
9932  echo
9933  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9934## Running $as_me. ##
9935_ASBOX
9936  $as_echo "$ac_log"
9937} >&5
9938
9939_ACEOF
9940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9941_ACEOF
9942
9943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9944
9945# Handling of arguments.
9946for ac_config_target in $ac_config_targets
9947do
9948  case $ac_config_target in
9949    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9950    "src/programs/daemondo/Makefile") CONFIG_FILES="$CONFIG_FILES src/programs/daemondo/Makefile" ;;
9951    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
9952    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9953    "Mk/macports.autoconf.mk") CONFIG_FILES="$CONFIG_FILES Mk/macports.autoconf.mk" ;;
9954    "doc/prefix.mtree") CONFIG_FILES="$CONFIG_FILES doc/prefix.mtree" ;;
9955    "doc/macosx.mtree") CONFIG_FILES="$CONFIG_FILES doc/macosx.mtree" ;;
9956    "doc/macports.conf") CONFIG_FILES="$CONFIG_FILES doc/macports.conf" ;;
9957    "portmgr/freebsd/Makefile") CONFIG_FILES="$CONFIG_FILES portmgr/freebsd/Makefile" ;;
9958    "portmgr/fedora/macports.spec") CONFIG_FILES="$CONFIG_FILES portmgr/fedora/macports.spec" ;;
9959    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9960    "src/macports1.0/macports_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_autoconf.tcl" ;;
9961    "src/port1.0/port_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/port1.0/port_autoconf.tcl" ;;
9962    "src/registry1.0/registry_autoconf.tcl") CONFIG_FILES="$CONFIG_FILES src/registry1.0/registry_autoconf.tcl" ;;
9963    "src/programs/Makefile") CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
9964    "src/macports1.0/macports_fastload.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_fastload.tcl" ;;
9965    "setupenv.bash") CONFIG_FILES="$CONFIG_FILES setupenv.bash" ;;
9966    "src/pkg_mkindex.sh") CONFIG_FILES="$CONFIG_FILES src/pkg_mkindex.sh" ;;
9967
9968  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9969  esac
9970done
9971
9972
9973# If the user did not use the arguments to specify the items to instantiate,
9974# then the envvar interface is used.  Set only those that are not.
9975# We use the long form for the default assignment because of an extremely
9976# bizarre bug on SunOS 4.1.3.
9977if $ac_need_defaults; then
9978  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9979  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9980fi
9981
9982# Have a temporary directory for convenience.  Make it in the build tree
9983# simply because there is no reason against having it here, and in addition,
9984# creating and moving files from /tmp can sometimes cause problems.
9985# Hook for its removal unless debugging.
9986# Note that there is a small window in which the directory will not be cleaned:
9987# after its creation but before its name has been assigned to `$tmp'.
9988$debug ||
9989{
9990  tmp=
9991  trap 'exit_status=$?
9992  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9993' 0
9994  trap 'as_fn_exit 1' 1 2 13 15
9995}
9996# Create a (secure) tmp directory for tmp files.
9997
9998{
9999  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10000  test -n "$tmp" && test -d "$tmp"
10001}  ||
10002{
10003  tmp=./conf$$-$RANDOM
10004  (umask 077 && mkdir "$tmp")
10005} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10006
10007# Set up the scripts for CONFIG_FILES section.
10008# No need to generate them if there are no CONFIG_FILES.
10009# This happens for instance with `./config.status config.h'.
10010if test -n "$CONFIG_FILES"; then
10011
10012
10013ac_cr=`echo X | tr X '\015'`
10014# On cygwin, bash can eat \r inside `` if the user requested igncr.
10015# But we know of no other shell where ac_cr would be empty at this
10016# point, so we can use a bashism as a fallback.
10017if test "x$ac_cr" = x; then
10018  eval ac_cr=\$\'\\r\'
10019fi
10020ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10021if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10022  ac_cs_awk_cr='\r'
10023else
10024  ac_cs_awk_cr=$ac_cr
10025fi
10026
10027echo 'BEGIN {' >"$tmp/subs1.awk" &&
10028_ACEOF
10029
10030
10031{
10032  echo "cat >conf$$subs.awk <<_ACEOF" &&
10033  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10034  echo "_ACEOF"
10035} >conf$$subs.sh ||
10036  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10037ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10038ac_delim='%!_!# '
10039for ac_last_try in false false false false false :; do
10040  . ./conf$$subs.sh ||
10041    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10042
10043  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10044  if test $ac_delim_n = $ac_delim_num; then
10045    break
10046  elif $ac_last_try; then
10047    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10048  else
10049    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10050  fi
10051done
10052rm -f conf$$subs.sh
10053
10054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10055cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10056_ACEOF
10057sed -n '
10058h
10059s/^/S["/; s/!.*/"]=/
10060p
10061g
10062s/^[^!]*!//
10063:repl
10064t repl
10065s/'"$ac_delim"'$//
10066t delim
10067:nl
10068h
10069s/\(.\{148\}\).*/\1/
10070t more1
10071s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10072p
10073n
10074b repl
10075:more1
10076s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10077p
10078g
10079s/.\{148\}//
10080t nl
10081:delim
10082h
10083s/\(.\{148\}\).*/\1/
10084t more2
10085s/["\\]/\\&/g; s/^/"/; s/$/"/
10086p
10087b
10088:more2
10089s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10090p
10091g
10092s/.\{148\}//
10093t delim
10094' <conf$$subs.awk | sed '
10095/^[^""]/{
10096  N
10097  s/\n//
10098}
10099' >>$CONFIG_STATUS || ac_write_fail=1
10100rm -f conf$$subs.awk
10101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10102_ACAWK
10103cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10104  for (key in S) S_is_set[key] = 1
10105  FS = ""
10106
10107}
10108{
10109  line = $ 0
10110  nfields = split(line, field, "@")
10111  substed = 0
10112  len = length(field[1])
10113  for (i = 2; i < nfields; i++) {
10114    key = field[i]
10115    keylen = length(key)
10116    if (S_is_set[key]) {
10117      value = S[key]
10118      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10119      len += length(value) + length(field[++i])
10120      substed = 1
10121    } else
10122      len += 1 + keylen
10123  }
10124
10125  print line
10126}
10127
10128_ACAWK
10129_ACEOF
10130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10131if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10132  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10133else
10134  cat
10135fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10136  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10137_ACEOF
10138
10139# VPATH may cause trouble with some makes, so we remove $(srcdir),
10140# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10141# trailing colons and then remove the whole line if VPATH becomes empty
10142# (actually we leave an empty line to preserve line numbers).
10143if test "x$srcdir" = x.; then
10144  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10145s/:*\$(srcdir):*/:/
10146s/:*\${srcdir}:*/:/
10147s/:*@srcdir@:*/:/
10148s/^\([^=]*=[     ]*\):*/\1/
10149s/:*$//
10150s/^[^=]*=[       ]*$//
10151}'
10152fi
10153
10154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10155fi # test -n "$CONFIG_FILES"
10156
10157# Set up the scripts for CONFIG_HEADERS section.
10158# No need to generate them if there are no CONFIG_HEADERS.
10159# This happens for instance with `./config.status Makefile'.
10160if test -n "$CONFIG_HEADERS"; then
10161cat >"$tmp/defines.awk" <<\_ACAWK ||
10162BEGIN {
10163_ACEOF
10164
10165# Transform confdefs.h into an awk script `defines.awk', embedded as
10166# here-document in config.status, that substitutes the proper values into
10167# config.h.in to produce config.h.
10168
10169# Create a delimiter string that does not exist in confdefs.h, to ease
10170# handling of long lines.
10171ac_delim='%!_!# '
10172for ac_last_try in false false :; do
10173  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10174  if test -z "$ac_t"; then
10175    break
10176  elif $ac_last_try; then
10177    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10178  else
10179    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10180  fi
10181done
10182
10183# For the awk script, D is an array of macro values keyed by name,
10184# likewise P contains macro parameters if any.  Preserve backslash
10185# newline sequences.
10186
10187ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10188sed -n '
10189s/.\{148\}/&'"$ac_delim"'/g
10190t rset
10191:rset
10192s/^[     ]*#[    ]*define[       ][      ]*/ /
10193t def
10194d
10195:def
10196s/\\$//
10197t bsnl
10198s/["\\]/\\&/g
10199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10200D["\1"]=" \3"/p
10201s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10202d
10203:bsnl
10204s/["\\]/\\&/g
10205s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10206D["\1"]=" \3\\\\\\n"\\/p
10207t cont
10208s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10209t cont
10210d
10211:cont
10212n
10213s/.\{148\}/&'"$ac_delim"'/g
10214t clear
10215:clear
10216s/\\$//
10217t bsnlc
10218s/["\\]/\\&/g; s/^/"/; s/$/"/p
10219d
10220:bsnlc
10221s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10222b cont
10223' <confdefs.h | sed '
10224s/'"$ac_delim"'/"\\\
10225"/g' >>$CONFIG_STATUS || ac_write_fail=1
10226
10227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10228  for (key in D) D_is_set[key] = 1
10229  FS = ""
10230}
10231/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10232  line = \$ 0
10233  split(line, arg, " ")
10234  if (arg[1] == "#") {
10235    defundef = arg[2]
10236    mac1 = arg[3]
10237  } else {
10238    defundef = substr(arg[1], 2)
10239    mac1 = arg[2]
10240  }
10241  split(mac1, mac2, "(") #)
10242  macro = mac2[1]
10243  prefix = substr(line, 1, index(line, defundef) - 1)
10244  if (D_is_set[macro]) {
10245    # Preserve the white space surrounding the "#".
10246    print prefix "define", macro P[macro] D[macro]
10247    next
10248  } else {
10249    # Replace #undef with comments.  This is necessary, for example,
10250    # in the case of _POSIX_SOURCE, which is predefined and required
10251    # on some systems where configure will not decide to define it.
10252    if (defundef == "undef") {
10253      print "/*", prefix defundef, macro, "*/"
10254      next
10255    }
10256  }
10257}
10258{ print }
10259_ACAWK
10260_ACEOF
10261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10262  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10263fi # test -n "$CONFIG_HEADERS"
10264
10265
10266eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
10267shift
10268for ac_tag
10269do
10270  case $ac_tag in
10271  :[FHLC]) ac_mode=$ac_tag; continue;;
10272  esac
10273  case $ac_mode$ac_tag in
10274  :[FHL]*:*);;
10275  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10276  :[FH]-) ac_tag=-:-;;
10277  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10278  esac
10279  ac_save_IFS=$IFS
10280  IFS=:
10281  set x $ac_tag
10282  IFS=$ac_save_IFS
10283  shift
10284  ac_file=$1
10285  shift
10286
10287  case $ac_mode in
10288  :L) ac_source=$1;;
10289  :[FH])
10290    ac_file_inputs=
10291    for ac_f
10292    do
10293      case $ac_f in
10294      -) ac_f="$tmp/stdin";;
10295      *) # Look for the file first in the build tree, then in the source tree
10296         # (if the path is not absolute).  The absolute path cannot be DOS-style,
10297         # because $ac_f cannot contain `:'.
10298         test -f "$ac_f" ||
10299           case $ac_f in
10300           [\\/$]*) false;;
10301           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10302           esac ||
10303           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10304      esac
10305      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10306      as_fn_append ac_file_inputs " '$ac_f'"
10307    done
10308
10309    # Let's still pretend it is `configure' which instantiates (i.e., don't
10310    # use $as_me), people would be surprised to read:
10311    #    /* config.h.  Generated by config.status.  */
10312    configure_input='Generated from '`
10313          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10314        `' by configure.'
10315    if test x"$ac_file" != x-; then
10316      configure_input="$ac_file.  $configure_input"
10317      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10318$as_echo "$as_me: creating $ac_file" >&6;}
10319    fi
10320    # Neutralize special characters interpreted by sed in replacement strings.
10321    case $configure_input in #(
10322    *\&* | *\|* | *\\* )
10323       ac_sed_conf_input=`$as_echo "$configure_input" |
10324       sed 's/[\\\\&|]/\\\\&/g'`;; #(
10325    *) ac_sed_conf_input=$configure_input;;
10326    esac
10327
10328    case $ac_tag in
10329    *:-:* | *:-) cat >"$tmp/stdin" \
10330      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10331    esac
10332    ;;
10333  esac
10334
10335  ac_dir=`$as_dirname -- "$ac_file" ||
10336$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10337         X"$ac_file" : 'X\(//\)[^/]' \| \
10338         X"$ac_file" : 'X\(//\)$' \| \
10339         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10340$as_echo X"$ac_file" |
10341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10342            s//\1/
10343            q
10344          }
10345          /^X\(\/\/\)[^/].*/{
10346            s//\1/
10347            q
10348          }
10349          /^X\(\/\/\)$/{
10350            s//\1/
10351            q
10352          }
10353          /^X\(\/\).*/{
10354            s//\1/
10355            q
10356          }
10357          s/.*/./; q'`
10358  as_dir="$ac_dir"; as_fn_mkdir_p
10359  ac_builddir=.
10360
10361case "$ac_dir" in
10362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10363*)
10364  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10365  # A ".." for each directory in $ac_dir_suffix.
10366  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10367  case $ac_top_builddir_sub in
10368  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10369  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10370  esac ;;
10371esac
10372ac_abs_top_builddir=$ac_pwd
10373ac_abs_builddir=$ac_pwd$ac_dir_suffix
10374# for backward compatibility:
10375ac_top_builddir=$ac_top_build_prefix
10376
10377case $srcdir in
10378  .)  # We are building in place.
10379    ac_srcdir=.
10380    ac_top_srcdir=$ac_top_builddir_sub
10381    ac_abs_top_srcdir=$ac_pwd ;;
10382  [\\/]* | ?:[\\/]* )  # Absolute name.
10383    ac_srcdir=$srcdir$ac_dir_suffix;
10384    ac_top_srcdir=$srcdir
10385    ac_abs_top_srcdir=$srcdir ;;
10386  *) # Relative name.
10387    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10388    ac_top_srcdir=$ac_top_build_prefix$srcdir
10389    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10390esac
10391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10392
10393
10394  case $ac_mode in
10395  :F)
10396  #
10397  # CONFIG_FILE
10398  #
10399
10400  case $INSTALL in
10401  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10402  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10403  esac
10404_ACEOF
10405
10406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10407# If the template does not know about datarootdir, expand it.
10408# FIXME: This hack should be removed a few years after 2.60.
10409ac_datarootdir_hack=; ac_datarootdir_seen=
10410ac_sed_dataroot='
10411/datarootdir/ {
10412  p
10413  q
10414}
10415/@datadir@/p
10416/@docdir@/p
10417/@infodir@/p
10418/@localedir@/p
10419/@mandir@/p'
10420case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10421*datarootdir*) ac_datarootdir_seen=yes;;
10422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10423  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10424$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10425_ACEOF
10426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10427  ac_datarootdir_hack='
10428  s&@datadir@&$datadir&g
10429  s&@docdir@&$docdir&g
10430  s&@infodir@&$infodir&g
10431  s&@localedir@&$localedir&g
10432  s&@mandir@&$mandir&g
10433  s&\\\${datarootdir}&$datarootdir&g' ;;
10434esac
10435_ACEOF
10436
10437# Neutralize VPATH when `$srcdir' = `.'.
10438# Shell code in configure.ac might set extrasub.
10439# FIXME: do we really want to maintain this feature?
10440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10441ac_sed_extra="$ac_vpsub
10442$extrasub
10443_ACEOF
10444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10445:t
10446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10447s|@configure_input@|$ac_sed_conf_input|;t t
10448s&@top_builddir@&$ac_top_builddir_sub&;t t
10449s&@top_build_prefix@&$ac_top_build_prefix&;t t
10450s&@srcdir@&$ac_srcdir&;t t
10451s&@abs_srcdir@&$ac_abs_srcdir&;t t
10452s&@top_srcdir@&$ac_top_srcdir&;t t
10453s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10454s&@builddir@&$ac_builddir&;t t
10455s&@abs_builddir@&$ac_abs_builddir&;t t
10456s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10457s&@INSTALL@&$ac_INSTALL&;t t
10458$ac_datarootdir_hack
10459"
10460eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10461  || as_fn_error "could not create $ac_file" "$LINENO" 5
10462
10463test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10464  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10465  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10466  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10467which seems to be undefined.  Please make sure it is defined." >&5
10468$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10469which seems to be undefined.  Please make sure it is defined." >&2;}
10470
10471  rm -f "$tmp/stdin"
10472  case $ac_file in
10473  -) cat "$tmp/out" && rm -f "$tmp/out";;
10474  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10475  esac \
10476  || as_fn_error "could not create $ac_file" "$LINENO" 5
10477 ;;
10478  :H)
10479  #
10480  # CONFIG_HEADER
10481  #
10482  if test x"$ac_file" != x-; then
10483    {
10484      $as_echo "/* $configure_input  */" \
10485      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10486    } >"$tmp/config.h" \
10487      || as_fn_error "could not create $ac_file" "$LINENO" 5
10488    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10489      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10490$as_echo "$as_me: $ac_file is unchanged" >&6;}
10491    else
10492      rm -f "$ac_file"
10493      mv "$tmp/config.h" "$ac_file" \
10494        || as_fn_error "could not create $ac_file" "$LINENO" 5
10495    fi
10496  else
10497    $as_echo "/* $configure_input  */" \
10498      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10499      || as_fn_error "could not create -" "$LINENO" 5
10500  fi
10501 ;;
10502
10503
10504  esac
10505
10506
10507  case $ac_file$ac_mode in
10508    "src/pkg_mkindex.sh":F) chmod +x src/pkg_mkindex.sh ;;
10509
10510  esac
10511done # for ac_tag
10512
10513
10514as_fn_exit 0
10515_ACEOF
10516ac_clean_files=$ac_clean_files_save
10517
10518test $ac_write_fail = 0 ||
10519  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10520
10521
10522# configure is writing to config.log, and then calls config.status.
10523# config.status does its own redirection, appending to config.log.
10524# Unfortunately, on DOS this fails, as config.log is still kept open
10525# by configure, so config.status won't be able to write to it; its
10526# output is simply discarded.  So we exec the FD to /dev/null,
10527# effectively closing config.log, so it can be properly (re)opened and
10528# appended to by config.status.  When coming back to configure, we
10529# need to make the FD available again.
10530if test "$no_create" != yes; then
10531  ac_cs_success=:
10532  ac_config_status_args=
10533  test "$silent" = yes &&
10534    ac_config_status_args="$ac_config_status_args --quiet"
10535  exec 5>/dev/null
10536  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10537  exec 5>>config.log
10538  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10539  # would make configure fail if this is the last instruction.
10540  $ac_cs_success || as_fn_exit $?
10541fi
10542
10543#
10544# CONFIG_SUBDIRS section.
10545#
10546if test "$no_recursion" != yes; then
10547
10548  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10549  # so they do not pile up.
10550  ac_sub_configure_args=
10551  ac_prev=
10552  eval "set x $ac_configure_args"
10553  shift
10554  for ac_arg
10555  do
10556    if test -n "$ac_prev"; then
10557      ac_prev=
10558      continue
10559    fi
10560    case $ac_arg in
10561    -cache-file | --cache-file | --cache-fil | --cache-fi \
10562    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10563      ac_prev=cache_file ;;
10564    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10565    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10566    | --c=*)
10567      ;;
10568    --config-cache | -C)
10569      ;;
10570    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10571      ac_prev=srcdir ;;
10572    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10573      ;;
10574    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10575      ac_prev=prefix ;;
10576    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10577      ;;
10578    --disable-option-checking)
10579      ;;
10580    *)
10581      case $ac_arg in
10582      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10583      esac
10584      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10585    esac
10586  done
10587
10588  # Always prepend --prefix to ensure using the same prefix
10589  # in subdir configurations.
10590  ac_arg="--prefix=$prefix"
10591  case $ac_arg in
10592  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10593  esac
10594  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10595
10596  # Pass --silent
10597  if test "$silent" = yes; then
10598    ac_sub_configure_args="--silent $ac_sub_configure_args"
10599  fi
10600
10601  # Always prepend --disable-option-checking to silence warnings, since
10602  # different subdirs can have different --enable and --with options.
10603  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10604
10605  ac_popdir=`pwd`
10606  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10607
10608    # Do not complain, so a configure script can configure whichever
10609    # parts of a large source tree are present.
10610    test -d "$srcdir/$ac_dir" || continue
10611
10612    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10613    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10614    $as_echo "$ac_msg" >&6
10615    as_dir="$ac_dir"; as_fn_mkdir_p
10616    ac_builddir=.
10617
10618case "$ac_dir" in
10619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10620*)
10621  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10622  # A ".." for each directory in $ac_dir_suffix.
10623  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10624  case $ac_top_builddir_sub in
10625  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10626  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10627  esac ;;
10628esac
10629ac_abs_top_builddir=$ac_pwd
10630ac_abs_builddir=$ac_pwd$ac_dir_suffix
10631# for backward compatibility:
10632ac_top_builddir=$ac_top_build_prefix
10633
10634case $srcdir in
10635  .)  # We are building in place.
10636    ac_srcdir=.
10637    ac_top_srcdir=$ac_top_builddir_sub
10638    ac_abs_top_srcdir=$ac_pwd ;;
10639  [\\/]* | ?:[\\/]* )  # Absolute name.
10640    ac_srcdir=$srcdir$ac_dir_suffix;
10641    ac_top_srcdir=$srcdir
10642    ac_abs_top_srcdir=$srcdir ;;
10643  *) # Relative name.
10644    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10645    ac_top_srcdir=$ac_top_build_prefix$srcdir
10646    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10647esac
10648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10649
10650
10651    cd "$ac_dir"
10652
10653    # Check for guested configure; otherwise get Cygnus style configure.
10654    if test -f "$ac_srcdir/configure.gnu"; then
10655      ac_sub_configure=$ac_srcdir/configure.gnu
10656    elif test -f "$ac_srcdir/configure"; then
10657      ac_sub_configure=$ac_srcdir/configure
10658    elif test -f "$ac_srcdir/configure.in"; then
10659      # This should be Cygnus configure.
10660      ac_sub_configure=$ac_aux_dir/configure
10661    else
10662      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10663$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10664      ac_sub_configure=
10665    fi
10666
10667    # The recursion is here.
10668    if test -n "$ac_sub_configure"; then
10669      # Make the cache file name correct relative to the subdirectory.
10670      case $cache_file in
10671      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10672      *) # Relative name.
10673        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10674      esac
10675
10676      { $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
10677$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10678      # The eval makes quoting arguments work.
10679      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10680           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10681        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10682    fi
10683
10684    cd "$ac_popdir"
10685  done
10686fi
10687if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10688  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10689$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10690fi
10691
Note: See TracBrowser for help on using the repository browser.