source: trunk/base/configure @ 70583

Last change on this file since 70583 was 70301, checked in by jmr@…, 10 years ago

change default run user to nobody

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