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

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

Merge from trunk

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