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

Last change on this file since 52218 was 52218, checked in by enl@…, 11 years ago

Merge from trunk

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