source: trunk/base/configure @ 52395

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

change universal_archs default on 10.6+, regen

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