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

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

make findBinary available in port1.0 and use autoconf paths for a bunch of stuff (see #18149)

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