Changeset 26135


Ignore:
Timestamp:
Jun 13, 2007, 11:52:22 PM (13 years ago)
Author:
landonf@…
Message:

Autoconf support for objc, foundation, and optionally-enabled -Werror

Location:
trunk/base
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Mk/dports.autoconf.mk.in

    r25770 r26135  
    66
    77CC                      = @CC@
    8 CFLAGS                  = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL)
     8CFLAGS                  = @CFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL)
     9OBJCFLAGS               = @OBJCFLAGS@ $(CFLAGS_QUICHEEATERS) $(CFLAGS_WERROR) ${CFLAGS_DEBUG}  $(CFLAGS_OPTIMIZE) $(CPPFLAGS) $(CFLAGS_LIBCURL)
    910CPPFLAGS                = @CPPFLAGS@ @DEFS@ @INCLUDES@ @TCL_INCLUDES@
    1011TCL_DEFS                = @TCL_DEFS@
     
    1314CFLAGS_OPTIMIZE         = @CFLAGS_OPTIMIZE@
    1415CFLAGS_QUICHEEATERS     = @CFLAGS_QUICHEEATERS@
     16CFLAGS_WERROR           = @CFLAGS_WERROR@
    1517CFLAGS_LIBCURL          = @CFLAGS_LIBCURL@
     18
     19OBJC_RUNTIME            = @OBJC_RUNTIME@
     20OBJC_RUNTIME_FLAGS      = @OBJC_RUNTIME_FLAGS@
     21OBJC_LIBS               = @OBJC_LIBS@
    1622
    1723TCL_CC                  = @TCL_CC@
  • trunk/base/aclocal.m4

    r25770 r26135  
    11builtin(include,tcl.m4)
     2builtin(include,objc.m4)
     3builtin(include,foundation.m4)
    24
    35#------------------------------------------------------------------------
     
    841843        AC_SUBST(READLINK_IS_NOT_P1003_1A)
    842844])
     845
     846#------------------------------------------------------------------------
     847# MP_WERROR --
     848#
     849#       Enable -Werror
     850#
     851# Arguments:
     852#       None.
     853#
     854# Requires:
     855#       none
     856#
     857# Depends:
     858#       none
     859#
     860# Results:
     861#       Substitutes WERROR_CFLAGS variable
     862#------------------------------------------------------------------------
     863AC_DEFUN([MP_WERROR],[
     864        AC_REQUIRE([AC_PROG_CC])
     865        AC_ARG_ENABLE(werror, AC_HELP_STRING([--enable-werror], [Add -Werror to CFLAGS. Used for development.]), [enable_werror=${enableval}], [enable_werror=no])
     866        if test x"$enable_werror" != "xno"; then
     867                CFLAGS_WERROR="-Werror"
     868        else
     869                CFLAGS_WERROR=""
     870        fi
     871        AC_SUBST([CFLAGS_WERROR])
     872])
  • trunk/base/configure

    r25770 r26135  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.61 for MacPorts 1.5.
     3# Generated by GNU Autoconf 2.59 for MacPorts 1.5.
    44#
    55# Report bugs to <macports-dev@lists.macosforge.org>.
    66#
    7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     7# Copyright (C) 2003 Free Software Foundation, Inc.
    98# This configure script is free software; the Free Software Foundation
    109# gives unlimited permission to copy, distribute and modify it.
     
    1312## --------------------- ##
    1413
    15 # Be more Bourne compatible
    16 DUALCASE=1; export DUALCASE # for MKS sh
     14# Be Bourne compatible
    1715if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    1816  emulate sh
     
    2119  # is contrary to our usage.  Disable this feature.
    2220  alias -g '${1+"$@"}'='"$@"'
    23   setopt NO_GLOB_SUBST
    24 else
    25   case `(set -o) 2>/dev/null` in
    26   *posix*) set -o posix ;;
    27 esac
    28 
    29 fi
    30 
    31 
    32 
    33 
    34 # PATH needs CR
     21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     22  set -o posix
     23fi
     24DUALCASE=1; export DUALCASE # for MKS sh
     25
     26# Support unset when possible.
     27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     28  as_unset=unset
     29else
     30  as_unset=false
     31fi
     32
     33
     34# Work around bugs in pre-3.0 UWIN ksh.
     35$as_unset ENV MAIL MAILPATH
     36PS1='$ '
     37PS2='> '
     38PS4='+ '
     39
     40# NLS nuisances.
     41for as_var in \
     42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
     43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
     44  LC_TELEPHONE LC_TIME
     45do
     46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     47    eval $as_var=C; export $as_var
     48  else
     49    $as_unset $as_var
     50  fi
     51done
     52
     53# Required to use basename.
     54if expr a : '\(a\)' >/dev/null 2>&1; then
     55  as_expr=expr
     56else
     57  as_expr=false
     58fi
     59
     60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
     61  as_basename=basename
     62else
     63  as_basename=false
     64fi
     65
     66
     67# Name of the executable.
     68as_me=`$as_basename "$0" ||
     69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
     70         X"$0" : 'X\(//\)$' \| \
     71         X"$0" : 'X\(/\)$' \| \
     72         .     : '\(.\)' 2>/dev/null ||
     73echo X/"$0" |
     74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
     75          /^X\/\(\/\/\)$/{ s//\1/; q; }
     76          /^X\/\(\/\).*/{ s//\1/; q; }
     77          s/.*/./; q'`
     78
     79
     80# PATH needs CR, and LINENO needs CR and PATH.
    3581# Avoid depending upon Character Ranges.
    3682as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     
    5399fi
    54100
    55 # Support unset when possible.
    56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
    57   as_unset=unset
    58 else
    59   as_unset=false
    60 fi
    61 
    62 
    63 # IFS
    64 # We need space, tab and new line, in precisely that order.  Quoting is
    65 # there to prevent editors from complaining about space-tab.
    66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
    67 # splitting by setting IFS to empty value.)
    68 as_nl='
    69 '
    70 IFS=" ""        $as_nl"
    71 
    72 # Find who we are.  Look in the path if we contain no directory separator.
    73 case $0 in
    74   *[\\/]* ) as_myself=$0 ;;
    75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     101
     102  as_lineno_1=$LINENO
     103  as_lineno_2=$LINENO
     104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
     105  test "x$as_lineno_1" != "x$as_lineno_2" &&
     106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
     107  # Find who we are.  Look in the path if we contain no path at all
     108  # relative or not.
     109  case $0 in
     110    *[\\/]* ) as_myself=$0 ;;
     111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    76112for as_dir in $PATH
    77113do
     
    80116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
    81117done
    82 IFS=$as_save_IFS
    83 
    84      ;;
    85 esac
    86 # We did not find ourselves, most probably we were run as `sh COMMAND'
    87 # in which case we are not to be found in the path.
    88 if test "x$as_myself" = x; then
    89   as_myself=$0
    90 fi
    91 if test ! -f "$as_myself"; then
    92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    93   { (exit 1); exit 1; }
    94 fi
    95 
    96 # Work around bugs in pre-3.0 UWIN ksh.
    97 for as_var in ENV MAIL MAILPATH
    98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    99 done
    100 PS1='$ '
    101 PS2='> '
    102 PS4='+ '
    103 
    104 # NLS nuisances.
    105 for as_var in \
    106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    108   LC_TELEPHONE LC_TIME
    109 do
    110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    111     eval $as_var=C; export $as_var
    112   else
    113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     118
     119       ;;
     120  esac
     121  # We did not find ourselves, most probably we were run as `sh COMMAND'
     122  # in which case we are not to be found in the path.
     123  if test "x$as_myself" = x; then
     124    as_myself=$0
    114125  fi
    115 done
    116 
    117 # Required to use basename.
    118 if expr a : '\(a\)' >/dev/null 2>&1 &&
    119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    120   as_expr=expr
    121 else
    122   as_expr=false
    123 fi
    124 
    125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    126   as_basename=basename
    127 else
    128   as_basename=false
    129 fi
    130 
    131 
    132 # Name of the executable.
    133 as_me=`$as_basename -- "$0" ||
    134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    135          X"$0" : 'X\(//\)$' \| \
    136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    137 echo X/"$0" |
    138     sed '/^.*\/\([^/][^/]*\)\/*$/{
    139             s//\1/
    140             q
    141           }
    142           /^X\/\(\/\/\)$/{
    143             s//\1/
    144             q
    145           }
    146           /^X\/\(\/\).*/{
    147             s//\1/
    148             q
    149           }
    150           s/.*/./; q'`
    151 
    152 # CDPATH.
    153 $as_unset CDPATH
    154 
    155 
    156 if test "x$CONFIG_SHELL" = x; then
    157   if (eval ":") 2>/dev/null; then
    158   as_have_required=yes
    159 else
    160   as_have_required=no
    161 fi
    162 
    163   if test $as_have_required = yes &&     (eval ":
    164 (as_func_return () {
    165   (exit \$1)
    166 }
    167 as_func_success () {
    168   as_func_return 0
    169 }
    170 as_func_failure () {
    171   as_func_return 1
    172 }
    173 as_func_ret_success () {
    174   return 0
    175 }
    176 as_func_ret_failure () {
    177   return 1
    178 }
    179 
    180 exitcode=0
    181 if as_func_success; then
    182   :
    183 else
    184   exitcode=1
    185   echo as_func_success failed.
    186 fi
    187 
    188 if as_func_failure; then
    189   exitcode=1
    190   echo as_func_failure succeeded.
    191 fi
    192 
    193 if as_func_ret_success; then
    194   :
    195 else
    196   exitcode=1
    197   echo as_func_ret_success failed.
    198 fi
    199 
    200 if as_func_ret_failure; then
    201   exitcode=1
    202   echo as_func_ret_failure succeeded.
    203 fi
    204 
    205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    206   :
    207 else
    208   exitcode=1
    209   echo positional parameters were not saved.
    210 fi
    211 
    212 test \$exitcode = 0) || { (exit 1); exit 1; }
    213 
    214 (
    215   as_lineno_1=\$LINENO
    216   as_lineno_2=\$LINENO
    217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    219 ") 2> /dev/null; then
    220   :
    221 else
    222   as_candidate_shells=
     126  if test ! -f "$as_myself"; then
     127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
     128   { (exit 1); exit 1; }; }
     129  fi
     130  case $CONFIG_SHELL in
     131  '')
    223132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    224133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
     
    226135  IFS=$as_save_IFS
    227136  test -z "$as_dir" && as_dir=.
    228   case $as_dir in
     137  for as_base in sh bash ksh sh5; do
     138         case $as_dir in
    229139         /*)
    230            for as_base in sh bash ksh sh5; do
    231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    232            done;;
    233        esac
    234 done
    235 IFS=$as_save_IFS
    236 
    237 
    238       for as_shell in $as_candidate_shells $SHELL; do
    239          # Try only shells that exist, to save several forks.
    240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
    242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    243   emulate sh
    244   NULLCMD=:
    245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    246   # is contrary to our usage.  Disable this feature.
    247   alias -g '${1+"$@"}'='"$@"'
    248   setopt NO_GLOB_SUBST
    249 else
    250   case `(set -o) 2>/dev/null` in
    251   *posix*) set -o posix ;;
    252 esac
    253 
    254 fi
    255 
    256 
    257 :
    258 _ASEOF
    259 }; then
    260   CONFIG_SHELL=$as_shell
    261                as_have_required=yes
    262                if { "$as_shell" 2> /dev/null <<\_ASEOF
    263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    264   emulate sh
    265   NULLCMD=:
    266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    267   # is contrary to our usage.  Disable this feature.
    268   alias -g '${1+"$@"}'='"$@"'
    269   setopt NO_GLOB_SUBST
    270 else
    271   case `(set -o) 2>/dev/null` in
    272   *posix*) set -o posix ;;
    273 esac
    274 
    275 fi
    276 
    277 
    278 :
    279 (as_func_return () {
    280   (exit $1)
    281 }
    282 as_func_success () {
    283   as_func_return 0
    284 }
    285 as_func_failure () {
    286   as_func_return 1
    287 }
    288 as_func_ret_success () {
    289   return 0
    290 }
    291 as_func_ret_failure () {
    292   return 1
    293 }
    294 
    295 exitcode=0
    296 if as_func_success; then
    297   :
    298 else
    299   exitcode=1
    300   echo as_func_success failed.
    301 fi
    302 
    303 if as_func_failure; then
    304   exitcode=1
    305   echo as_func_failure succeeded.
    306 fi
    307 
    308 if as_func_ret_success; then
    309   :
    310 else
    311   exitcode=1
    312   echo as_func_ret_success failed.
    313 fi
    314 
    315 if as_func_ret_failure; then
    316   exitcode=1
    317   echo as_func_ret_failure succeeded.
    318 fi
    319 
    320 if ( set x; as_func_ret_success y && test x = "$1" ); then
    321   :
    322 else
    323   exitcode=1
    324   echo positional parameters were not saved.
    325 fi
    326 
    327 test $exitcode = 0) || { (exit 1); exit 1; }
    328 
    329 (
     140           if ("$as_dir/$as_base" -c '
    330141  as_lineno_1=$LINENO
    331142  as_lineno_2=$LINENO
     143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
    332144  test "x$as_lineno_1" != "x$as_lineno_2" &&
    333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    334 
    335 _ASEOF
    336 }; then
    337   break
    338 fi
    339 
    340 fi
    341 
    342       done
    343 
    344       if test "x$CONFIG_SHELL" != x; then
    345   for as_var in BASH_ENV ENV
    346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    347         done
    348         export CONFIG_SHELL
    349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    350 fi
    351 
    352 
    353     if test $as_have_required = no; then
    354   echo This script requires a shell more modern than all the
    355       echo shells that I found on your system.  Please install a
    356       echo modern shell, or manually run the script under such a
    357       echo shell if you do have one.
    358       { (exit 1); exit 1; }
    359 fi
    360 
    361 
    362 fi
    363 
    364 fi
    365 
    366 
    367 
    368 (eval "as_func_return () {
    369   (exit \$1)
    370 }
    371 as_func_success () {
    372   as_func_return 0
    373 }
    374 as_func_failure () {
    375   as_func_return 1
    376 }
    377 as_func_ret_success () {
    378   return 0
    379 }
    380 as_func_ret_failure () {
    381   return 1
    382 }
    383 
    384 exitcode=0
    385 if as_func_success; then
    386   :
    387 else
    388   exitcode=1
    389   echo as_func_success failed.
    390 fi
    391 
    392 if as_func_failure; then
    393   exitcode=1
    394   echo as_func_failure succeeded.
    395 fi
    396 
    397 if as_func_ret_success; then
    398   :
    399 else
    400   exitcode=1
    401   echo as_func_ret_success failed.
    402 fi
    403 
    404 if as_func_ret_failure; then
    405   exitcode=1
    406   echo as_func_ret_failure succeeded.
    407 fi
    408 
    409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    410   :
    411 else
    412   exitcode=1
    413   echo positional parameters were not saved.
    414 fi
    415 
    416 test \$exitcode = 0") || {
    417   echo No shell found that supports shell functions.
    418   echo Please tell autoconf@gnu.org about your system,
    419   echo including any error possibly output before this
    420   echo message
    421 }
    422 
    423 
    424 
    425   as_lineno_1=$LINENO
    426   as_lineno_2=$LINENO
    427   test "x$as_lineno_1" != "x$as_lineno_2" &&
    428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
     145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
     146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
     147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
     148             CONFIG_SHELL=$as_dir/$as_base
     149             export CONFIG_SHELL
     150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
     151           fi;;
     152         esac
     153       done
     154done
     155;;
     156  esac
    429157
    430158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    431159  # uniformly replaced by the line number.  The first 'sed' inserts a
    432   # line-number line after each line using $LINENO; the second 'sed'
    433   # does the real work.  The second script uses 'N' to pair each
    434   # line-number line with the line containing $LINENO, and appends
    435   # trailing '-' during substitution so that $LINENO is not a special
    436   # case at line end.
     160  # line-number line before each line; the second 'sed' does the real
     161  # work.  The second script uses 'N' to pair each line-number line
     162  # with the numbered line, and appends trailing '-' during
     163  # substitution so that $LINENO is not a special case at line end.
    437164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    439   # E. McMahon (1931-1989) for sed's syntax.  :-)
    440   sed -n '
    441     p
    442     /[$]LINENO/=
    443   ' <$as_myself |
     165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
     166  sed '=' <$as_myself |
    444167    sed '
    445       s/[$]LINENO.*/&-/
    446       t lineno
    447       b
    448       :lineno
    449168      N
    450       :loop
    451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
     169      s,$,-,
     170      : loop
     171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
    452172      t loop
    453       s/-\n.*//
     173      s,-$,,
     174      s,^['$as_cr_digits']*\n,,
    454175    ' >$as_me.lineno &&
    455   chmod +x "$as_me.lineno" ||
     176  chmod +x $as_me.lineno ||
    456177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    457178   { (exit 1); exit 1; }; }
     
    459180  # Don't try to exec as it changes $[0], causing all sort of problems
    460181  # (the dirname of $[0] is not the place where we might find the
    461   # original and so on.  Autoconf is especially sensitive to this).
    462   . "./$as_me.lineno"
     182  # original and so on.  Autoconf is especially sensible to this).
     183  . ./$as_me.lineno
    463184  # Exit status is that of the last command.
    464185  exit
     
    466187
    467188
    468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    469   as_dirname=dirname
    470 else
    471   as_dirname=false
    472 fi
    473 
    474 ECHO_C= ECHO_N= ECHO_T=
    475 case `echo -n x` in
    476 -n*)
    477   case `echo 'x\c'` in
    478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
    479   *)   ECHO_C='\c';;
    480   esac;;
    481 *)
    482   ECHO_N='-n';;
     189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     190  *c*,-n*) ECHO_N= ECHO_C='
     191' ECHO_T='      ' ;;
     192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
    483194esac
    484195
    485 if expr a : '\(a\)' >/dev/null 2>&1 &&
    486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
     196if expr a : '\(a\)' >/dev/null 2>&1; then
    487197  as_expr=expr
    488198else
     
    491201
    492202rm -f conf$$ conf$$.exe conf$$.file
    493 if test -d conf$$.dir; then
    494   rm -f conf$$.dir/conf$$.file
    495 else
    496   rm -f conf$$.dir
    497   mkdir conf$$.dir
    498 fi
    499203echo >conf$$.file
    500204if ln -s conf$$.file conf$$ 2>/dev/null; then
    501   as_ln_s='ln -s'
    502   # ... but there are two gotchas:
    503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    505   # In both cases, we have to default to `cp -p'.
    506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
     205  # We could just check for DJGPP; but this test a) works b) is more generic
     206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     207  if test -f conf$$.exe; then
     208    # Don't use ln at all; we don't have any links
    507209    as_ln_s='cp -p'
     210  else
     211    as_ln_s='ln -s'
     212  fi
    508213elif ln conf$$.file conf$$ 2>/dev/null; then
    509214  as_ln_s=ln
     
    511216  as_ln_s='cp -p'
    512217fi
    513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    514 rmdir conf$$.dir 2>/dev/null
     218rm -f conf$$ conf$$.exe conf$$.file
    515219
    516220if mkdir -p . 2>/dev/null; then
     
    521225fi
    522226
    523 if test -x / >/dev/null 2>&1; then
    524   as_test_x='test -x'
    525 else
    526   if ls -dL / >/dev/null 2>&1; then
    527     as_ls_L_option=L
    528   else
    529     as_ls_L_option=
    530   fi
    531   as_test_x='
    532     eval sh -c '\''
    533       if test -d "$1"; then
    534         test -d "$1/.";
    535       else
    536         case $1 in
    537         -*)set "./$1";;
    538         esac;
    539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    540         ???[sx]*):;;*)false;;esac;fi
    541     '\'' sh
    542   '
    543 fi
    544 as_executable_p=$as_test_x
     227as_executable_p="test -f"
    545228
    546229# Sed expression to map a string onto a valid CPP name.
     
    551234
    552235
    553 
    554 exec 7<&0 </dev/null 6>&1
     236# IFS
     237# We need space, tab and new line, in precisely that order.
     238as_nl='
     239'
     240IFS="   $as_nl"
     241
     242# CDPATH.
     243$as_unset CDPATH
     244
    555245
    556246# Name of the host.
     
    559249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    560250
     251exec 6>&1
     252
    561253#
    562254# Initializations.
    563255#
    564256ac_default_prefix=/usr/local
    565 ac_clean_files=
    566257ac_config_libobj_dir=.
    567 LIBOBJS=
    568258cross_compiling=no
    569259subdirs=
     
    571261MAKEFLAGS=
    572262SHELL=${CONFIG_SHELL-/bin/sh}
     263
     264# Maximum number of lines to put in a shell here document.
     265# This variable seems obsolete.  It should probably be removed, and
     266# only ac_max_sed_lines should be used.
     267: ${ac_max_here_lines=38}
    573268
    574269# Identity of this package.
     
    580275
    581276ac_unique_file="src/pextlib1.0/Pextlib.c"
    582 ac_default_prefix=/opt/local
    583277# Factoring default headers for most tests.
    584278ac_includes_default="\
    585279#include <stdio.h>
    586 #ifdef HAVE_SYS_TYPES_H
     280#if HAVE_SYS_TYPES_H
    587281# include <sys/types.h>
    588282#endif
    589 #ifdef HAVE_SYS_STAT_H
     283#if HAVE_SYS_STAT_H
    590284# include <sys/stat.h>
    591285#endif
    592 #ifdef STDC_HEADERS
     286#if STDC_HEADERS
    593287# include <stdlib.h>
    594288# include <stddef.h>
    595289#else
    596 # ifdef HAVE_STDLIB_H
     290# if HAVE_STDLIB_H
    597291#  include <stdlib.h>
    598292# endif
    599293#endif
    600 #ifdef HAVE_STRING_H
    601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
     294#if HAVE_STRING_H
     295# if !STDC_HEADERS && HAVE_MEMORY_H
    602296#  include <memory.h>
    603297# endif
    604298# include <string.h>
    605299#endif
    606 #ifdef HAVE_STRINGS_H
     300#if HAVE_STRINGS_H
    607301# include <strings.h>
    608302#endif
    609 #ifdef HAVE_INTTYPES_H
     303#if HAVE_INTTYPES_H
    610304# include <inttypes.h>
     305#else
     306# if HAVE_STDINT_H
     307#  include <stdint.h>
     308# endif
    611309#endif
    612 #ifdef HAVE_STDINT_H
    613 # include <stdint.h>
    614 #endif
    615 #ifdef HAVE_UNISTD_H
     310#if HAVE_UNISTD_H
    616311# include <unistd.h>
    617312#endif"
    618313
    619 ac_subst_vars='SHELL
    620 PATH_SEPARATOR
    621 PACKAGE_NAME
    622 PACKAGE_TARNAME
    623 PACKAGE_VERSION
    624 PACKAGE_STRING
    625 PACKAGE_BUGREPORT
    626 exec_prefix
    627 prefix
    628 program_transform_name
    629 bindir
    630 sbindir
    631 libexecdir
    632 datarootdir
    633 datadir
    634 sysconfdir
    635 sharedstatedir
    636 localstatedir
    637 includedir
    638 oldincludedir
    639 docdir
    640 infodir
    641 htmldir
    642 dvidir
    643 pdfdir
    644 psdir
    645 libdir
    646 localedir
    647 mandir
    648 DEFS
    649 ECHO_C
    650 ECHO_N
    651 ECHO_T
    652 LIBS
    653 build_alias
    654 host_alias
    655 target_alias
    656 build
    657 build_cpu
    658 build_vendor
    659 build_os
    660 host
    661 host_cpu
    662 host_vendor
    663 host_os
    664 target
    665 target_cpu
    666 target_vendor
    667 target_os
    668 CC
    669 CFLAGS
    670 LDFLAGS
    671 CPPFLAGS
    672 ac_ct_CC
    673 EXEEXT
    674 OBJEXT
    675 INSTALL_PROGRAM
    676 INSTALL_SCRIPT
    677 INSTALL_DATA
    678 SET_MAKE
    679 LN_S
    680 MTREE
    681 CVS
    682 SVN
    683 RSYNC
    684 HAVE_LAUNCHD
    685 LAUNCHCTL
    686 XCODEBUILD
    687 BZIP2
    688 XAR
    689 OPEN
    690 TAR
    691 GNUTAR
    692 TAR_CMD
    693 CFLAGS_QUICHEEATERS
    694 HAVE_FRAMEWORK_COREFOUNDATION
    695 HAVE_FRAMEWORK_SYSTEMCONFIGURATION
    696 HAVE_FRAMEWORK_IOKIT
    697 HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER
    698 REPLACEMENT_PROGS
    699 EXTRA_PROGS
    700 DPORTSDIR
    701 PORTCONFIGDIR
    702 DSTUSR
    703 DSTGRP
    704 DSTMODE
    705 CPP
    706 GREP
    707 EGREP
    708 READLINK_IS_NOT_P1003_1A
    709 MD5_LIBS
    710 XMKMF
    711 X_CFLAGS
    712 X_PRE_LIBS
    713 X_LIBS
    714 X_EXTRA_LIBS
    715 TCL_VERSION
    716 TCL_BIN_DIR
    717 TCL_SRC_DIR
    718 TCL_LIB_FILE
    719 TCL_LIB_FLAG
    720 TCL_LIB_SPEC
    721 TCL_STUB_LIB_FILE
    722 TCL_STUB_LIB_FLAG
    723 TCL_STUB_LIB_SPEC
    724 TCL_INCLUDES
    725 TCLSH
    726 TCL_PACKAGE_DIR
    727 CURL_CONFIG
    728 CFLAGS_LIBCURL
    729 LDFLAGS_LIBCURL
    730 subdirs
    731 SQLITE3_LIBS
    732 SQLITE3_DIR
    733 OUR_INCLUDED_PACKAGES
    734 INCLUDES
    735 CFLAGS_DEBUG
    736 CFLAGS_OPTIMIZE
    737 TCL_DEFS
    738 STLIB_LD
    739 SHLIB_LD
    740 SHLIB_CFLAGS
    741 SHLIB_LDFLAGS
    742 SHLIB_SUFFIX
    743 TCL_CC
    744 prefix_expanded
    745 PORTCONFIGDIR_EXPANDED
    746 localstatedir_expanded
    747 LIBOBJS
    748 LTLIBOBJS'
     314ac_default_prefix=/opt/local
     315ac_subdirs_all="$ac_subdirs_all src/thread2.6"
     316ac_subdirs_all="$ac_subdirs_all src/sqlite-3.1.3"
     317ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT OBJC OBJCFLAGS ac_ct_OBJC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE LN_S MTREE CVS SVN RSYNC HAVE_LAUNCHD LAUNCHCTL XCODEBUILD BZIP2 XAR OPEN TAR GNUTAR TAR_CMD CFLAGS_QUICHEEATERS CFLAGS_WERROR OBJCPP EGREP OBJC_RUNTIME OBJC_RUNTIME_FLAGS OBJC_LIBS OBJC_PTHREAD_LIBS OBJC_PTHREAD_CFLAGS HAVE_FRAMEWORK_COREFOUNDATION HAVE_FRAMEWORK_SYSTEMCONFIGURATION HAVE_FRAMEWORK_IOKIT HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER REPLACEMENT_PROGS EXTRA_PROGS DPORTSDIR PORTCONFIGDIR DSTUSR DSTGRP DSTMODE CPP READLINK_IS_NOT_P1003_1A MD5_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDES TCLSH TCL_PACKAGE_DIR CURL_CONFIG CFLAGS_LIBCURL LDFLAGS_LIBCURL subdirs SQLITE3_LIBS SQLITE3_DIR OUR_INCLUDED_PACKAGES INCLUDES CFLAGS_DEBUG CFLAGS_OPTIMIZE TCL_DEFS STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS SHLIB_SUFFIX TCL_CC prefix_expanded PORTCONFIGDIR_EXPANDED localstatedir_expanded LIBOBJS LTLIBOBJS'
    749318ac_subst_files=''
    750       ac_precious_vars='build_alias
    751 host_alias
    752 target_alias
    753 CC
    754 CFLAGS
    755 LDFLAGS
    756 LIBS
    757 CPPFLAGS
    758 MTREE
    759 CVS
    760 SVN
    761 RSYNC
    762 TAR
    763 GNUTAR
    764 BZIP2
    765 XAR
    766 OPEN
    767 CPP
    768 XMKMF'
    769 ac_subdirs_all='src/thread2.6
    770 src/sqlite-3.1.3'
    771319
    772320# Initialize some variables set by options.
     
    795343# by default will actually change.
    796344# Use braces instead of parens because sh, perl, etc. also accept them.
    797 # (The list follows the same order as the GNU Coding Standards.)
    798345bindir='${exec_prefix}/bin'
    799346sbindir='${exec_prefix}/sbin'
    800347libexecdir='${exec_prefix}/libexec'
    801 datarootdir='${prefix}/share'
    802 datadir='${datarootdir}'
     348datadir='${prefix}/share'
    803349sysconfdir='${prefix}/etc'
    804350sharedstatedir='${prefix}/com'
    805351localstatedir='${prefix}/var'
     352libdir='${exec_prefix}/lib'
    806353includedir='${prefix}/include'
    807354oldincludedir='/usr/include'
    808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    809 infodir='${datarootdir}/info'
    810 htmldir='${docdir}'
    811 dvidir='${docdir}'
    812 pdfdir='${docdir}'
    813 psdir='${docdir}'
    814 libdir='${exec_prefix}/lib'
    815 localedir='${datarootdir}/locale'
    816 mandir='${datarootdir}/man'
     355infodir='${prefix}/info'
     356mandir='${prefix}/man'
    817357
    818358ac_prev=
    819 ac_dashdash=
    820359for ac_option
    821360do
    822361  # If the previous option needs an argument, assign it.
    823362  if test -n "$ac_prev"; then
    824     eval $ac_prev=\$ac_option
     363    eval "$ac_prev=\$ac_option"
    825364    ac_prev=
    826365    continue
    827366  fi
    828367
     368  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
     369
     370  # Accept the important Cygnus configure options, so we can diagnose typos.
     371
    829372  case $ac_option in
    830   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    831   *)    ac_optarg=yes ;;
    832   esac
    833 
    834   # Accept the important Cygnus configure options, so we can diagnose typos.
    835 
    836   case $ac_dashdash$ac_option in
    837   --)
    838     ac_dashdash=yes ;;
    839373
    840374  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     
    858392    cache_file=config.cache ;;
    859393
    860   -datadir | --datadir | --datadi | --datad)
     394  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    861395    ac_prev=datadir ;;
    862   -datadir=* | --datadir=* | --datadi=* | --datad=*)
     396  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     397  | --da=*)
    863398    datadir=$ac_optarg ;;
    864 
    865   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    866   | --dataroo | --dataro | --datar)
    867     ac_prev=datarootdir ;;
    868   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    869   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    870     datarootdir=$ac_optarg ;;
    871399
    872400  -disable-* | --disable-*)
    873401    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    874402    # Reject names that are not valid shell variable names.
    875     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     403    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    876404      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    877405   { (exit 1); exit 1; }; }
    878     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    879     eval enable_$ac_feature=no ;;
    880 
    881   -docdir | --docdir | --docdi | --doc | --do)
    882     ac_prev=docdir ;;
    883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    884     docdir=$ac_optarg ;;
    885 
    886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    887     ac_prev=dvidir ;;
    888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    889     dvidir=$ac_optarg ;;
     406    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     407    eval "enable_$ac_feature=no" ;;
    890408
    891409  -enable-* | --enable-*)
    892410    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    893411    # Reject names that are not valid shell variable names.
    894     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     412    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    895413      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
    896414   { (exit 1); exit 1; }; }
    897     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
    898     eval enable_$ac_feature=\$ac_optarg ;;
     415    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     416    case $ac_option in
     417      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     418      *) ac_optarg=yes ;;
     419    esac
     420    eval "enable_$ac_feature='$ac_optarg'" ;;
    899421
    900422  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    923445    host_alias=$ac_optarg ;;
    924446
    925   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    926     ac_prev=htmldir ;;
    927   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    928   | --ht=*)
    929     htmldir=$ac_optarg ;;
    930 
    931447  -includedir | --includedir | --includedi | --included | --include \
    932448  | --includ | --inclu | --incl | --inc)
     
    953469    libexecdir=$ac_optarg ;;
    954470
    955   -localedir | --localedir | --localedi | --localed | --locale)
    956     ac_prev=localedir ;;
    957   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    958     localedir=$ac_optarg ;;
    959 
    960471  -localstatedir | --localstatedir | --localstatedi | --localstated \
    961   | --localstate | --localstat | --localsta | --localst | --locals)
     472  | --localstate | --localstat | --localsta | --localst \
     473  | --locals | --local | --loca | --loc | --lo)
    962474    ac_prev=localstatedir ;;
    963475  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    964   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
     476  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
     477  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    965478    localstatedir=$ac_optarg ;;
    966479
     
    1027540    program_transform_name=$ac_optarg ;;
    1028541
    1029   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    1030     ac_prev=pdfdir ;;
    1031   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    1032     pdfdir=$ac_optarg ;;
    1033 
    1034   -psdir | --psdir | --psdi | --psd | --ps)
    1035     ac_prev=psdir ;;
    1036   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    1037     psdir=$ac_optarg ;;
    1038 
    1039542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    1040543  | -silent | --silent | --silen | --sile | --sil)
     
    1089592    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    1090593    # Reject names that are not valid shell variable names.
    1091     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     594    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    1092595      { echo "$as_me: error: invalid package name: $ac_package" >&2
    1093596   { (exit 1); exit 1; }; }
    1094     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    1095     eval with_$ac_package=\$ac_optarg ;;
     597    ac_package=`echo $ac_package| sed 's/-/_/g'`
     598    case $ac_option in
     599      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
     600      *) ac_optarg=yes ;;
     601    esac
     602    eval "with_$ac_package='$ac_optarg'" ;;
    1096603
    1097604  -without-* | --without-*)
    1098605    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    1099606    # Reject names that are not valid shell variable names.
    1100     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     607    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
    1101608      { echo "$as_me: error: invalid package name: $ac_package" >&2
    1102609   { (exit 1); exit 1; }; }
    1103     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
    1104     eval with_$ac_package=no ;;
     610    ac_package=`echo $ac_package | sed 's/-/_/g'`
     611    eval "with_$ac_package=no" ;;
    1105612
    1106613  --x)
     
    1133640      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
    1134641   { (exit 1); exit 1; }; }
    1135     eval $ac_envvar=\$ac_optarg
     642    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     643    eval "$ac_envvar='$ac_optarg'"
    1136644    export $ac_envvar ;;
    1137645
     
    1153661fi
    1154662
    1155 # Be sure to have absolute directory names.
    1156 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
    1157                 datadir sysconfdir sharedstatedir localstatedir includedir \
    1158                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
    1159                 libdir localedir mandir
     663# Be sure to have absolute paths.
     664for ac_var in exec_prefix prefix
    1160665do
    1161   eval ac_val=\$$ac_var
     666  eval ac_val=$`echo $ac_var`
    1162667  case $ac_val in
    1163     [\\/$]* | ?:[\\/]* )  continue;;
    1164     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
     668    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     669    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     670   { (exit 1); exit 1; }; };;
    1165671  esac
    1166   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
    1167    { (exit 1); exit 1; }; }
     672done
     673
     674# Be sure to have absolute paths.
     675for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     676              localstatedir libdir includedir oldincludedir infodir mandir
     677do
     678  eval ac_val=$`echo $ac_var`
     679  case $ac_val in
     680    [\\/$]* | ?:[\\/]* ) ;;
     681    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
     682   { (exit 1); exit 1; }; };;
     683  esac
    1168684done
    1169685
     
    1192708
    1193709
    1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
    1195 ac_ls_di=`ls -di .` &&
    1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1197   { echo "$as_me: error: Working directory cannot be determined" >&2
    1198    { (exit 1); exit 1; }; }
    1199 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1200   { echo "$as_me: error: pwd does not report name of working directory" >&2
    1201    { (exit 1); exit 1; }; }
    1202 
    1203 
    1204710# Find the source files, if location was not specified.
    1205711if test -z "$srcdir"; then
    1206712  ac_srcdir_defaulted=yes
    1207   # Try the directory containing this script, then the parent directory.
    1208   ac_confdir=`$as_dirname -- "$0" ||
     713  # Try the directory containing this script, then its parent.
     714  ac_confdir=`(dirname "$0") 2>/dev/null ||
    1209715$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    1210716         X"$0" : 'X\(//\)[^/]' \| \
    1211717         X"$0" : 'X\(//\)$' \| \
    1212          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
     718         X"$0" : 'X\(/\)' \| \
     719         .     : '\(.\)' 2>/dev/null ||
    1213720echo X"$0" |
    1214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    1215             s//\1/
    1216             q
    1217           }
    1218           /^X\(\/\/\)[^/].*/{
    1219             s//\1/
    1220             q
    1221           }
    1222           /^X\(\/\/\)$/{
    1223             s//\1/
    1224             q
    1225           }
    1226           /^X\(\/\).*/{
    1227             s//\1/
    1228             q
    1229           }
    1230           s/.*/./; q'`
     721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     722          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     723          /^X\(\/\/\)$/{ s//\1/; q; }
     724          /^X\(\/\).*/{ s//\1/; q; }
     725          s/.*/./; q'`
    1231726  srcdir=$ac_confdir
    1232   if test ! -r "$srcdir/$ac_unique_file"; then
     727  if test ! -r $srcdir/$ac_unique_file; then
    1233728    srcdir=..
    1234729  fi
     
    1236731  ac_srcdir_defaulted=no
    1237732fi
    1238 if test ! -r "$srcdir/$ac_unique_file"; then
    1239   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1240   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
     733if test ! -r $srcdir/$ac_unique_file; then
     734  if test "$ac_srcdir_defaulted" = yes; then
     735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
    1241736   { (exit 1); exit 1; }; }
    1242 fi
    1243 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    1244 ac_abs_confdir=`(
    1245         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
     737  else
     738    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
    1246739   { (exit 1); exit 1; }; }
    1247         pwd)`
    1248 # When building in place, set srcdir=.
    1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
    1250   srcdir=.
    1251 fi
    1252 # Remove unnecessary trailing slashes from srcdir.
    1253 # Double slashes in file names in object file debugging info
    1254 # mess up M-x gdb in Emacs.
    1255 case $srcdir in
    1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
    1257 esac
    1258 for ac_var in $ac_precious_vars; do
    1259   eval ac_env_${ac_var}_set=\${${ac_var}+set}
    1260   eval ac_env_${ac_var}_value=\$${ac_var}
    1261   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
    1262   eval ac_cv_env_${ac_var}_value=\$${ac_var}
    1263 done
     740  fi
     741fi
     742(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
     743  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
     744   { (exit 1); exit 1; }; }
     745srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     746ac_env_build_alias_set=${build_alias+set}
     747ac_env_build_alias_value=$build_alias
     748ac_cv_env_build_alias_set=${build_alias+set}
     749ac_cv_env_build_alias_value=$build_alias
     750ac_env_host_alias_set=${host_alias+set}
     751ac_env_host_alias_value=$host_alias
     752ac_cv_env_host_alias_set=${host_alias+set}
     753ac_cv_env_host_alias_value=$host_alias
     754ac_env_target_alias_set=${target_alias+set}
     755ac_env_target_alias_value=$target_alias
     756ac_cv_env_target_alias_set=${target_alias+set}
     757ac_cv_env_target_alias_value=$target_alias
     758ac_env_CC_set=${CC+set}
     759ac_env_CC_value=$CC
     760ac_cv_env_CC_set=${CC+set}
     761ac_cv_env_CC_value=$CC
     762ac_env_CFLAGS_set=${CFLAGS+set}
     763ac_env_CFLAGS_value=$CFLAGS
     764ac_cv_env_CFLAGS_set=${CFLAGS+set}
     765ac_cv_env_CFLAGS_value=$CFLAGS
     766ac_env_LDFLAGS_set=${LDFLAGS+set}
     767ac_env_LDFLAGS_value=$LDFLAGS
     768ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     769ac_cv_env_LDFLAGS_value=$LDFLAGS
     770ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     771ac_env_CPPFLAGS_value=$CPPFLAGS
     772ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     773ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     774ac_env_OBJC_set=${OBJC+set}
     775ac_env_OBJC_value=$OBJC
     776ac_cv_env_OBJC_set=${OBJC+set}
     777ac_cv_env_OBJC_value=$OBJC
     778ac_env_OBJCFLAGS_set=${OBJCFLAGS+set}
     779ac_env_OBJCFLAGS_value=$OBJCFLAGS
     780ac_cv_env_OBJCFLAGS_set=${OBJCFLAGS+set}
     781ac_cv_env_OBJCFLAGS_value=$OBJCFLAGS
     782ac_env_MTREE_set=${MTREE+set}
     783ac_env_MTREE_value=$MTREE
     784ac_cv_env_MTREE_set=${MTREE+set}
     785ac_cv_env_MTREE_value=$MTREE
     786ac_env_CVS_set=${CVS+set}
     787ac_env_CVS_value=$CVS
     788ac_cv_env_CVS_set=${CVS+set}
     789ac_cv_env_CVS_value=$CVS
     790ac_env_SVN_set=${SVN+set}
     791ac_env_SVN_value=$SVN
     792ac_cv_env_SVN_set=${SVN+set}
     793ac_cv_env_SVN_value=$SVN
     794ac_env_RSYNC_set=${RSYNC+set}
     795ac_env_RSYNC_value=$RSYNC
     796ac_cv_env_RSYNC_set=${RSYNC+set}
     797ac_cv_env_RSYNC_value=$RSYNC
     798ac_env_TAR_set=${TAR+set}
     799ac_env_TAR_value=$TAR
     800ac_cv_env_TAR_set=${TAR+set}
     801ac_cv_env_TAR_value=$TAR
     802ac_env_GNUTAR_set=${GNUTAR+set}
     803ac_env_GNUTAR_value=$GNUTAR
     804ac_cv_env_GNUTAR_set=${GNUTAR+set}
     805ac_cv_env_GNUTAR_value=$GNUTAR
     806ac_env_BZIP2_set=${BZIP2+set}
     807ac_env_BZIP2_value=$BZIP2
     808ac_cv_env_BZIP2_set=${BZIP2+set}
     809ac_cv_env_BZIP2_value=$BZIP2
     810ac_env_XAR_set=${XAR+set}
     811ac_env_XAR_value=$XAR
     812ac_cv_env_XAR_set=${XAR+set}
     813ac_cv_env_XAR_value=$XAR
     814ac_env_OPEN_set=${OPEN+set}
     815ac_env_OPEN_value=$OPEN
     816ac_cv_env_OPEN_set=${OPEN+set}
     817ac_cv_env_OPEN_value=$OPEN
     818ac_env_OBJCPP_set=${OBJCPP+set}
     819ac_env_OBJCPP_value=$OBJCPP
     820ac_cv_env_OBJCPP_set=${OBJCPP+set}
     821ac_cv_env_OBJCPP_value=$OBJCPP
     822ac_env_CPP_set=${CPP+set}
     823ac_env_CPP_value=$CPP
     824ac_cv_env_CPP_set=${CPP+set}
     825ac_cv_env_CPP_value=$CPP
    1264826
    1265827#
     
    1290852      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
    1291853
     854_ACEOF
     855
     856  cat <<_ACEOF
    1292857Installation directories:
    1293858  --prefix=PREFIX         install architecture-independent files in PREFIX
     
    1307872  --sbindir=DIR          system admin executables [EPREFIX/sbin]
    1308873  --libexecdir=DIR       program executables [EPREFIX/libexec]
     874  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
    1309875  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
    1310876  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     
    1313879  --includedir=DIR       C header files [PREFIX/include]
    1314880  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
    1315   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
    1316   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
    1317   --infodir=DIR          info documentation [DATAROOTDIR/info]
    1318   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
    1319   --mandir=DIR           man documentation [DATAROOTDIR/man]
    1320   --docdir=DIR           documentation root [DATAROOTDIR/doc/macports]
    1321   --htmldir=DIR          html documentation [DOCDIR]
    1322   --dvidir=DIR           dvi documentation [DOCDIR]
    1323   --pdfdir=DIR           pdf documentation [DOCDIR]
    1324   --psdir=DIR            ps documentation [DOCDIR]
     881  --infodir=DIR          info documentation [PREFIX/info]
     882  --mandir=DIR           man documentation [PREFIX/man]
    1325883_ACEOF
    1326884
     
    1347905  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    1348906  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     907  --enable-werror         Add -Werror to CFLAGS. Used for development.
    1349908  --enable-shared         build and link with shared libraries --enable-shared
    1350909
     
    1352911  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    1353912  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     913  --with-objc-runtime     Specify either "GNU" or "apple"
     914  --with-objc-foundation  Specify either "GNUstep" or "apple"
    1354915  --with-dports-dir=DIR   Specify alternate dports directory
    1355916  --with-install-user=USER
     
    1374935  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1375936              nonstandard directory <lib dir>
    1376   LIBS        libraries to pass to the linker, e.g. -l<library>
    1377   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
    1378               you have headers in a nonstandard directory <include dir>
     937  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     938              headers in a nonstandard directory <include dir>
     939  OBJC        Objective C compiler command
     940  OBJCFLAGS   Objective C compiler flags
    1379941  MTREE       path to mtree command
    1380942  CVS         path to cvs command
     
    1386948  XAR         path to xar command
    1387949  OPEN        path to open command
     950  OBJCPP      Objective C preprocessor
    1388951  CPP         C preprocessor
    1389   XMKMF       Path to xmkmf, Makefile generator for X Window System
    1390952
    1391953Use these variables to override the choices made by `configure' or to help
     
    1394956Report bugs to <macports-dev@lists.macosforge.org>.
    1395957_ACEOF
    1396 ac_status=$?
    1397958fi
    1398959
    1399960if test "$ac_init_help" = "recursive"; then
    1400961  # If there are subdirs, report their specific --help.
     962  ac_popdir=`pwd`
    1401963  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    1402     test -d "$ac_dir" || continue
     964    test -d $ac_dir || continue
    1403965    ac_builddir=.
    1404966
    1405 case "$ac_dir" in
    1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
     967if test "$ac_dir" != .; then
     968  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
     969  # A "../" for each directory in $ac_dir_suffix.
     970  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
     971else
     972  ac_dir_suffix= ac_top_builddir=
     973fi
     974
     975case $srcdir in
     976  .)  # No --srcdir option.  We are building in place.
     977    ac_srcdir=.
     978    if test -z "$ac_top_builddir"; then
     979       ac_top_srcdir=.
     980    else
     981       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
     982    fi ;;
     983  [\\/]* | ?:[\\/]* )  # Absolute path.
     984    ac_srcdir=$srcdir$ac_dir_suffix;
     985    ac_top_srcdir=$srcdir ;;
     986  *) # Relative path.
     987    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
     988    ac_top_srcdir=$ac_top_builddir$srcdir ;;
     989esac
     990
     991# Do not use `cd foo && pwd` to compute absolute paths, because
     992# the directories may not exist.
     993case `pwd` in
     994.) ac_abs_builddir="$ac_dir";;
    1407995*)
    1408   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
    1409   # A ".." for each directory in $ac_dir_suffix.
    1410   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
    1411   case $ac_top_builddir_sub in
    1412   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
    1413   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
    1414   esac ;;
     996  case "$ac_dir" in
     997  .) ac_abs_builddir=`pwd`;;
     998  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
     999  *) ac_abs_builddir=`pwd`/"$ac_dir";;
     1000  esac;;
    14151001esac
    1416 ac_abs_top_builddir=$ac_pwd
    1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
    1418 # for backward compatibility:
    1419 ac_top_builddir=$ac_top_build_prefix
    1420 
    1421 case $srcdir in
    1422   .)  # We are building in place.
    1423     ac_srcdir=.
    1424     ac_top_srcdir=$ac_top_builddir_sub
    1425     ac_abs_top_srcdir=$ac_pwd ;;
    1426   [\\/]* | ?:[\\/]* )  # Absolute name.
    1427     ac_srcdir=$srcdir$ac_dir_suffix;
    1428     ac_top_srcdir=$srcdir
    1429     ac_abs_top_srcdir=$srcdir ;;
    1430   *) # Relative name.
    1431     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    1432     ac_top_srcdir=$ac_top_build_prefix$srcdir
    1433     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
     1002case $ac_abs_builddir in
     1003.) ac_abs_top_builddir=${ac_top_builddir}.;;
     1004*)
     1005  case ${ac_top_builddir}. in
     1006  .) ac_abs_top_builddir=$ac_abs_builddir;;
     1007  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
     1008  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
     1009  esac;;
    14341010esac
    1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    1436 
    1437     cd "$ac_dir" || { ac_status=$?; continue; }
    1438     # Check for guested configure.
    1439     if test -f "$ac_srcdir/configure.gnu"; then
    1440       echo &&
    1441       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    1442     elif test -f "$ac_srcdir/configure"; then
    1443       echo &&
    1444       $SHELL "$ac_srcdir/configure" --help=recursive
     1011case $ac_abs_builddir in
     1012.) ac_abs_srcdir=$ac_srcdir;;
     1013*)
     1014  case $ac_srcdir in
     1015  .) ac_abs_srcdir=$ac_abs_builddir;;
     1016  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
     1017  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
     1018  esac;;
     1019esac
     1020case $ac_abs_builddir in
     1021.) ac_abs_top_srcdir=$ac_top_srcdir;;
     1022*)
     1023  case $ac_top_srcdir in
     1024  .) ac_abs_top_srcdir=$ac_abs_builddir;;
     1025  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
     1026  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
     1027  esac;;
     1028esac
     1029
     1030    cd $ac_dir
     1031    # Check for guested configure; otherwise get Cygnus style configure.
     1032    if test -f $ac_srcdir/configure.gnu; then
     1033      echo
     1034      $SHELL $ac_srcdir/configure.gnu  --help=recursive
     1035    elif test -f $ac_srcdir/configure; then
     1036      echo
     1037      $SHELL $ac_srcdir/configure  --help=recursive
     1038    elif test -f $ac_srcdir/configure.ac ||
     1039           test -f $ac_srcdir/configure.in; then
     1040      echo
     1041      $ac_configure --help
    14451042    else
    14461043      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    1447     fi || ac_status=$?
    1448     cd "$ac_pwd" || { ac_status=$?; break; }
     1044    fi
     1045    cd $ac_popdir
    14491046  done
    14501047fi
    14511048
    1452 test -n "$ac_init_help" && exit $ac_status
     1049test -n "$ac_init_help" && exit 0
    14531050if $ac_init_version; then
    14541051  cat <<\_ACEOF
    14551052MacPorts configure 1.5
    1456 generated by GNU Autoconf 2.61
    1457 
    1458 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    1459 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
     1053generated by GNU Autoconf 2.59
     1054
     1055Copyright (C) 2003 Free Software Foundation, Inc.
    14601056This configure script is free software; the Free Software Foundation
    14611057gives unlimited permission to copy, distribute and modify it.
    14621058_ACEOF
    1463   exit
    1464 fi
    1465 cat >config.log <<_ACEOF
     1059  exit 0
     1060fi
     1061exec 5>config.log
     1062cat >&5 <<_ACEOF
    14661063This file contains any messages produced by compilers while
    14671064running configure, to aid debugging if configure makes a mistake.
    14681065
    14691066It was created by MacPorts $as_me 1.5, which was
    1470 generated by GNU Autoconf 2.61.  Invocation command line was
     1067generated by GNU Autoconf 2.59.  Invocation command line was
    14711068
    14721069  $ $0 $@
    14731070
    14741071_ACEOF
    1475 exec 5>>config.log
    14761072{
    14771073cat <<_ASUNAME
     
    14921088/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
    14931089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
    1494 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
     1090hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
    14951091/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
    14961092/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     
    15061102  echo "PATH: $as_dir"
    15071103done
    1508 IFS=$as_save_IFS
    15091104
    15101105} >&5
     
    15281123ac_configure_args0=
    15291124ac_configure_args1=
     1125ac_sep=
    15301126ac_must_keep_next=false
    15311127for ac_pass in 1 2
     
    15381134    | -silent | --silent | --silen | --sile | --sil)
    15391135      continue ;;
    1540     *\'*)
     1136    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
    15411137      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    15421138    esac
     
    15601156        esac
    15611157      fi
    1562       ac_configure_args="$ac_configure_args '$ac_arg'"
     1158      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     1159      # Get rid of the leading space.
     1160      ac_sep=" "
    15631161      ;;
    15641162    esac
     
    15711169# config.log.  We remove comments because anyway the quotes in there
    15721170# would cause problems or look ugly.
    1573 # WARNING: Use '\'' to represent an apostrophe within the trap.
    1574 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
     1171# WARNING: Be sure not to use single quotes in there, as some shells,
     1172# such as our DU 5.0 friend, will then `close' the trap.
    15751173trap 'exit_status=$?
    15761174  # Save into config.log some information that might help in debugging.
     
    15851183    echo
    15861184    # The following way of writing the cache mishandles newlines in values,
    1587 (
    1588   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    1589     eval ac_val=\$$ac_var
    1590     case $ac_val in #(
    1591     *${as_nl}*)
    1592       case $ac_var in #(
    1593       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
    1594 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
    1595       esac
    1596       case $ac_var in #(
    1597       _ | IFS | as_nl) ;; #(
    1598       *) $as_unset $ac_var ;;
    1599       esac ;;
    1600     esac
    1601   done
     1185{
    16021186  (set) 2>&1 |
    1603     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    1604     *${as_nl}ac_space=\ *)
     1187    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     1188    *ac_space=\ *)
    16051189      sed -n \
    1606         "s/'\''/'\''\\\\'\'''\''/g;
    1607           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
    1608       ;; #(
     1190        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1191          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1192      ;;
    16091193    *)
    1610       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
     1194      sed -n \
     1195        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    16111196      ;;
    1612     esac |
    1613     sort
    1614 )
     1197    esac;
     1198}
    16151199    echo
    16161200
     
    16231207    for ac_var in $ac_subst_vars
    16241208    do
    1625       eval ac_val=\$$ac_var
    1626       case $ac_val in
    1627       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
    1628       esac
    1629       echo "$ac_var='\''$ac_val'\''"
     1209      eval ac_val=$`echo $ac_var`
     1210      echo "$ac_var='"'"'$ac_val'"'"'"
    16301211    done | sort
    16311212    echo
     
    16331214    if test -n "$ac_subst_files"; then
    16341215      cat <<\_ASBOX
    1635 ## ------------------- ##
    1636 ## File substitutions. ##
    1637 ## ------------------- ##
     1216## ------------- ##
     1217## Output files. ##
     1218## ------------- ##
    16381219_ASBOX
    16391220      echo
    16401221      for ac_var in $ac_subst_files
    16411222      do
    1642         eval ac_val=\$$ac_var
    1643         case $ac_val in
    1644         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
    1645         esac
    1646         echo "$ac_var='\''$ac_val'\''"
     1223        eval ac_val=$`echo $ac_var`
     1224        echo "$ac_var='"'"'$ac_val'"'"'"
    16471225      done | sort
    16481226      echo
     
    16561234_ASBOX
    16571235      echo
    1658       cat confdefs.h
     1236      sed "/^$/d" confdefs.h | sort
    16591237      echo
    16601238    fi
     
    16631241    echo "$as_me: exit $exit_status"
    16641242  } >&5
    1665   rm -f core *.core core.conftest.* &&
    1666     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
     1243  rm -f core *.core &&
     1244  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    16671245    exit $exit_status
    1668 ' 0
     1246     ' 0
    16691247for ac_signal in 1 2 13 15; do
    16701248  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     
    16731251
    16741252# confdefs.h avoids OS command line length limits that DEFS can exceed.
    1675 rm -f -r conftest* confdefs.h
     1253rm -rf conftest* confdefs.h
     1254# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     1255echo >confdefs.h
    16761256
    16771257# Predefined preprocessor variables.
     
    17041284# Let the site file select an alternate cache file if it wants to.
    17051285# Prefer explicitly selected file to automatically selected ones.
    1706 if test -n "$CONFIG_SITE"; then
    1707   set x "$CONFIG_SITE"
    1708 elif test "x$prefix" != xNONE; then
    1709   set x "$prefix/share/config.site" "$prefix/etc/config.site"
    1710 else
    1711   set x "$ac_default_prefix/share/config.site" \
    1712         "$ac_default_prefix/etc/config.site"
    1713 fi
    1714 shift
    1715 for ac_site_file
    1716 do
     1286if test -z "$CONFIG_SITE"; then
     1287  if test "x$prefix" != xNONE; then
     1288    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
     1289  else
     1290    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     1291  fi
     1292fi
     1293for ac_site_file in $CONFIG_SITE; do
    17171294  if test -r "$ac_site_file"; then
    17181295    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
     
    17301307echo "$as_me: loading cache $cache_file" >&6;}
    17311308    case $cache_file in
    1732       [\\/]* | ?:[\\/]* ) . "$cache_file";;
    1733       *)                      . "./$cache_file";;
     1309      [\\/]* | ?:[\\/]* ) . $cache_file;;
     1310      *)                      . ./$cache_file;;
    17341311    esac
    17351312  fi
     
    17431320# value.
    17441321ac_cache_corrupted=false
    1745 for ac_var in $ac_precious_vars; do
     1322for ac_var in `(set) 2>&1 |
     1323               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    17461324  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    17471325  eval ac_new_set=\$ac_env_${ac_var}_set
    1748   eval ac_old_val=\$ac_cv_env_${ac_var}_value
    1749   eval ac_new_val=\$ac_env_${ac_var}_value
     1326  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     1327  eval ac_new_val="\$ac_env_${ac_var}_value"
    17501328  case $ac_old_set,$ac_new_set in
    17511329    set,)
     
    17721350  if test "$ac_new_set" = set; then
    17731351    case $ac_new_val in
    1774     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     1352    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     1353      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    17751354    *) ac_arg=$ac_var=$ac_new_val ;;
    17761355    esac
     
    17891368fi
    17901369
    1791 
    1792 
    1793 
    1794 
    1795 
    1796 
    1797 
    1798 
    1799 
    1800 
    1801 
    1802 
    1803 
    1804 
    1805 
    1806 
    1807 
    1808 
    1809 
    1810 
    1811 
    1812 
    1813 
    1814 
    18151370ac_ext=c
    18161371ac_cpp='$CPP $CPPFLAGS'
     
    18211376
    18221377
    1823 ac_config_headers="$ac_config_headers src/config.h"
     1378
     1379
     1380
     1381
     1382
     1383
     1384
     1385
     1386
     1387
     1388
     1389
     1390
     1391
     1392
     1393
     1394
     1395
     1396
     1397
     1398
     1399
     1400
     1401
     1402
     1403          ac_config_headers="$ac_config_headers src/config.h"
    18241404
    18251405ac_aux_dir=
    1826 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
    1827   if test -f "$ac_dir/install-sh"; then
     1406for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     1407  if test -f $ac_dir/install-sh; then
    18281408    ac_aux_dir=$ac_dir
    18291409    ac_install_sh="$ac_aux_dir/install-sh -c"
    18301410    break
    1831   elif test -f "$ac_dir/install.sh"; then
     1411  elif test -f $ac_dir/install.sh; then
    18321412    ac_aux_dir=$ac_dir
    18331413    ac_install_sh="$ac_aux_dir/install.sh -c"
    18341414    break
    1835   elif test -f "$ac_dir/shtool"; then
     1415  elif test -f $ac_dir/shtool; then
    18361416    ac_aux_dir=$ac_dir
    18371417    ac_install_sh="$ac_aux_dir/shtool install -c"
     
    18401420done
    18411421if test -z "$ac_aux_dir"; then
    1842   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
    1843 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
     1422  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     1423echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    18441424   { (exit 1); exit 1; }; }
    18451425fi
    1846 
    1847 # These three variables are undocumented and unsupported,
    1848 # and are intended to be withdrawn in a future Autoconf release.
    1849 # They can cause serious problems if a builder's source tree is in a directory
    1850 # whose full name contains unusual characters.
    1851 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
    1852 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
    1853 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
    1854 
     1426ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     1427ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     1428ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    18551429
    18561430# Make sure we can run config.sub.
    1857 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    1858   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
    1859 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
     1431$ac_config_sub sun4 >/dev/null 2>&1 ||
     1432  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1433echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    18601434   { (exit 1); exit 1; }; }
    18611435
    1862 { echo "$as_me:$LINENO: checking build system type" >&5
    1863 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
     1436echo "$as_me:$LINENO: checking build system type" >&5
     1437echo $ECHO_N "checking build system type... $ECHO_C" >&6
    18641438if test "${ac_cv_build+set}" = set; then
    18651439  echo $ECHO_N "(cached) $ECHO_C" >&6
    18661440else
    1867   ac_build_alias=$build_alias
    1868 test "x$ac_build_alias" = x &&
    1869   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    1870 test "x$ac_build_alias" = x &&
     1441  ac_cv_build_alias=$build_alias
     1442test -z "$ac_cv_build_alias" &&
     1443  ac_cv_build_alias=`$ac_config_guess`
     1444test -z "$ac_cv_build_alias" &&
    18711445  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    18721446echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    18731447   { (exit 1); exit 1; }; }
    1874 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    1875   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
    1876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
     1448ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1449  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1450echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    18771451   { (exit 1); exit 1; }; }
    18781452
    18791453fi
    1880 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1881 echo "${ECHO_T}$ac_cv_build" >&6; }
    1882 case $ac_cv_build in
    1883 *-*-*) ;;
    1884 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
    1885 echo "$as_me: error: invalid value of canonical build" >&2;}
    1886    { (exit 1); exit 1; }; };;
    1887 esac
     1454echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1455echo "${ECHO_T}$ac_cv_build" >&6
    18881456build=$ac_cv_build
    1889 ac_save_IFS=$IFS; IFS='-'
    1890 set x $ac_cv_build
    1891 shift
    1892 build_cpu=$1
    1893 build_vendor=$2
    1894 shift; shift
    1895 # Remember, the first character of IFS is used to create $*,
    1896 # except with old shells:
    1897 build_os=$*
    1898 IFS=$ac_save_IFS
    1899 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    1900 
    1901 
    1902 { echo "$as_me:$LINENO: checking host system type" >&5
    1903 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
     1457build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1458build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1459build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1460
     1461
     1462echo "$as_me:$LINENO: checking host system type" >&5
     1463echo $ECHO_N "checking host system type... $ECHO_C" >&6
    19041464if test "${ac_cv_host+set}" = set; then
    19051465  echo $ECHO_N "(cached) $ECHO_C" >&6
    19061466else
    1907   if test "x$host_alias" = x; then
    1908   ac_cv_host=$ac_cv_build
    1909 else
    1910   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    1911     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
    1912 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
     1467  ac_cv_host_alias=$host_alias
     1468test -z "$ac_cv_host_alias" &&
     1469  ac_cv_host_alias=$ac_cv_build_alias
     1470ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
     1471  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     1472echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    19131473   { (exit 1); exit 1; }; }
    1914 fi
    1915 
    1916 fi
    1917 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
    1918 echo "${ECHO_T}$ac_cv_host" >&6; }
    1919 case $ac_cv_host in
    1920 *-*-*) ;;
    1921 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
    1922 echo "$as_me: error: invalid value of canonical host" >&2;}
    1923    { (exit 1); exit 1; }; };;
    1924 esac
     1474
     1475fi
     1476echo "$as_me:$LINENO: result: $ac_cv_host" >&5
     1477echo "${ECHO_T}$ac_cv_host" >&6
    19251478host=$ac_cv_host
    1926 ac_save_IFS=$IFS; IFS='-'
    1927 set x $ac_cv_host
    1928 shift
    1929 host_cpu=$1
    1930 host_vendor=$2
    1931 shift; shift
    1932 # Remember, the first character of IFS is used to create $*,
    1933 # except with old shells:
    1934 host_os=$*
    1935 IFS=$ac_save_IFS
    1936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    1937 
    1938 
    1939 { echo "$as_me:$LINENO: checking target system type" >&5
    1940 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
     1479host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1480host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1481host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1482
     1483
     1484echo "$as_me:$LINENO: checking target system type" >&5
     1485echo $ECHO_N "checking target system type... $ECHO_C" >&6
    19411486if test "${ac_cv_target+set}" = set; then
    19421487  echo $ECHO_N "(cached) $ECHO_C" >&6
    19431488else
    1944   if test "x$target_alias" = x; then
    1945   ac_cv_target=$ac_cv_host
    1946 else
    1947   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    1948     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
    1949 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
     1489  ac_cv_target_alias=$target_alias
     1490test "x$ac_cv_target_alias" = "x" &&
     1491  ac_cv_target_alias=$ac_cv_host_alias
     1492ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
     1493  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     1494echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    19501495   { (exit 1); exit 1; }; }
    1951 fi
    1952 
    1953 fi
    1954 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
    1955 echo "${ECHO_T}$ac_cv_target" >&6; }
    1956 case $ac_cv_target in
    1957 *-*-*) ;;
    1958 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
    1959 echo "$as_me: error: invalid value of canonical target" >&2;}
    1960    { (exit 1); exit 1; }; };;
    1961 esac
     1496
     1497fi
     1498echo "$as_me:$LINENO: result: $ac_cv_target" >&5
     1499echo "${ECHO_T}$ac_cv_target" >&6
    19621500target=$ac_cv_target
    1963 ac_save_IFS=$IFS; IFS='-'
    1964 set x $ac_cv_target
    1965 shift
    1966 target_cpu=$1
    1967 target_vendor=$2
    1968 shift; shift
    1969 # Remember, the first character of IFS is used to create $*,
    1970 # except with old shells:
    1971 target_os=$*
    1972 IFS=$ac_save_IFS
    1973 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
     1501target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1502target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1503target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    19741504
    19751505
     
    20151545  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    20161546set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1547echo "$as_me:$LINENO: checking for $ac_word" >&5
     1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    20191549if test "${ac_cv_prog_CC+set}" = set; then
    20201550  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    20291559  test -z "$as_dir" && as_dir=.
    20301560  for ac_exec_ext in '' $ac_executable_extensions; do
    2031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    20321562    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    20331563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    20361566done
    20371567done
    2038 IFS=$as_save_IFS
    20391568
    20401569fi
     
    20421571CC=$ac_cv_prog_CC
    20431572if test -n "$CC"; then
    2044   { echo "$as_me:$LINENO: result: $CC" >&5
    2045 echo "${ECHO_T}$CC" >&6; }
    2046 else
    2047   { echo "$as_me:$LINENO: result: no" >&5
    2048 echo "${ECHO_T}no" >&6; }
    2049 fi
    2050 
     1573  echo "$as_me:$LINENO: result: $CC" >&5
     1574echo "${ECHO_T}$CC" >&6
     1575else
     1576  echo "$as_me:$LINENO: result: no" >&5
     1577echo "${ECHO_T}no" >&6
     1578fi
    20511579
    20521580fi
     
    20551583  # Extract the first word of "gcc", so it can be a program name with args.
    20561584set dummy gcc; ac_word=$2
    2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1585echo "$as_me:$LINENO: checking for $ac_word" >&5
     1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    20591587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    20601588  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    20691597  test -z "$as_dir" && as_dir=.
    20701598  for ac_exec_ext in '' $ac_executable_extensions; do
    2071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    20721600    ac_cv_prog_ac_ct_CC="gcc"
    20731601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    20761604done
    20771605done
    2078 IFS=$as_save_IFS
    20791606
    20801607fi
     
    20821609ac_ct_CC=$ac_cv_prog_ac_ct_CC
    20831610if test -n "$ac_ct_CC"; then
    2084   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2085 echo "${ECHO_T}$ac_ct_CC" >&6; }
    2086 else
    2087   { echo "$as_me:$LINENO: result: no" >&5
    2088 echo "${ECHO_T}no" >&6; }
    2089 fi
    2090 
    2091   if test "x$ac_ct_CC" = x; then
    2092     CC=""
    2093   else
    2094     case $cross_compiling:$ac_tool_warned in
    2095 yes:)
    2096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    2097 whose name does not start with the host triplet.  If you think this
    2098 configuration is useful to you, please write to autoconf@gnu.org." >&5
    2099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    2100 whose name does not start with the host triplet.  If you think this
    2101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    2102 ac_tool_warned=yes ;;
    2103 esac
    2104     CC=$ac_ct_CC
    2105   fi
     1611  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1612echo "${ECHO_T}$ac_ct_CC" >&6
     1613else
     1614  echo "$as_me:$LINENO: result: no" >&5
     1615echo "${ECHO_T}no" >&6
     1616fi
     1617
     1618  CC=$ac_ct_CC
    21061619else
    21071620  CC="$ac_cv_prog_CC"
     
    21091622
    21101623if test -z "$CC"; then
    2111           if test -n "$ac_tool_prefix"; then
    2112     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1624  if test -n "$ac_tool_prefix"; then
     1625  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    21131626set dummy ${ac_tool_prefix}cc; ac_word=$2
    2114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1627echo "$as_me:$LINENO: checking for $ac_word" >&5
     1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    21161629if test "${ac_cv_prog_CC+set}" = set; then
    21171630  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    21261639  test -z "$as_dir" && as_dir=.
    21271640  for ac_exec_ext in '' $ac_executable_extensions; do
    2128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    21291642    ac_cv_prog_CC="${ac_tool_prefix}cc"
    21301643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    21331646done
    21341647done
    2135 IFS=$as_save_IFS
    21361648
    21371649fi
     
    21391651CC=$ac_cv_prog_CC
    21401652if test -n "$CC"; then
    2141   { echo "$as_me:$LINENO: result: $CC" >&5
    2142 echo "${ECHO_T}$CC" >&6; }
    2143 else
    2144   { echo "$as_me:$LINENO: result: no" >&5
    2145 echo "${ECHO_T}no" >&6; }
    2146 fi
    2147 
    2148 
     1653  echo "$as_me:$LINENO: result: $CC" >&5
     1654echo "${ECHO_T}$CC" >&6
     1655else
     1656  echo "$as_me:$LINENO: result: no" >&5
     1657echo "${ECHO_T}no" >&6
     1658fi
     1659
     1660fi
     1661if test -z "$ac_cv_prog_CC"; then
     1662  ac_ct_CC=$CC
     1663  # Extract the first word of "cc", so it can be a program name with args.
     1664set dummy cc; ac_word=$2
     1665echo "$as_me:$LINENO: checking for $ac_word" >&5
     1666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1668  echo $ECHO_N "(cached) $ECHO_C" >&6
     1669else
     1670  if test -n "$ac_ct_CC"; then
     1671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1672else
     1673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1674for as_dir in $PATH
     1675do
     1676  IFS=$as_save_IFS
     1677  test -z "$as_dir" && as_dir=.
     1678  for ac_exec_ext in '' $ac_executable_extensions; do
     1679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1680    ac_cv_prog_ac_ct_CC="cc"
     1681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1682    break 2
    21491683  fi
     1684done
     1685done
     1686
     1687fi
     1688fi
     1689ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1690if test -n "$ac_ct_CC"; then
     1691  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1692echo "${ECHO_T}$ac_ct_CC" >&6
     1693else
     1694  echo "$as_me:$LINENO: result: no" >&5
     1695echo "${ECHO_T}no" >&6
     1696fi
     1697
     1698  CC=$ac_ct_CC
     1699else
     1700  CC="$ac_cv_prog_CC"
     1701fi
     1702
    21501703fi
    21511704if test -z "$CC"; then
    21521705  # Extract the first word of "cc", so it can be a program name with args.
    21531706set dummy cc; ac_word=$2
    2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1707echo "$as_me:$LINENO: checking for $ac_word" >&5
     1708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    21561709if test "${ac_cv_prog_CC+set}" = set; then
    21571710  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    21671720  test -z "$as_dir" && as_dir=.
    21681721  for ac_exec_ext in '' $ac_executable_extensions; do
    2169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    21701723    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    21711724       ac_prog_rejected=yes
     
    21781731done
    21791732done
    2180 IFS=$as_save_IFS
    21811733
    21821734if test $ac_prog_rejected = yes; then
     
    21961748CC=$ac_cv_prog_CC
    21971749if test -n "$CC"; then
    2198   { echo "$as_me:$LINENO: result: $CC" >&5
    2199 echo "${ECHO_T}$CC" >&6; }
    2200 else
    2201   { echo "$as_me:$LINENO: result: no" >&5
    2202 echo "${ECHO_T}no" >&6; }
    2203 fi
    2204 
     1750  echo "$as_me:$LINENO: result: $CC" >&5
     1751echo "${ECHO_T}$CC" >&6
     1752else
     1753  echo "$as_me:$LINENO: result: no" >&5
     1754echo "${ECHO_T}no" >&6
     1755fi
    22051756
    22061757fi
    22071758if test -z "$CC"; then
    22081759  if test -n "$ac_tool_prefix"; then
    2209   for ac_prog in cl.exe
     1760  for ac_prog in cl
    22101761  do
    22111762    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    22121763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1764echo "$as_me:$LINENO: checking for $ac_word" >&5
     1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    22151766if test "${ac_cv_prog_CC+set}" = set; then
    22161767  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    22251776  test -z "$as_dir" && as_dir=.
    22261777  for ac_exec_ext in '' $ac_executable_extensions; do
    2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    22281779    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    22291780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    22321783done
    22331784done
    2234 IFS=$as_save_IFS
    22351785
    22361786fi
     
    22381788CC=$ac_cv_prog_CC
    22391789if test -n "$CC"; then
    2240   { echo "$as_me:$LINENO: result: $CC" >&5
    2241 echo "${ECHO_T}$CC" >&6; }
    2242 else
    2243   { echo "$as_me:$LINENO: result: no" >&5
    2244 echo "${ECHO_T}no" >&6; }
    2245 fi
    2246 
     1790  echo "$as_me:$LINENO: result: $CC" >&5
     1791echo "${ECHO_T}$CC" >&6
     1792else
     1793  echo "$as_me:$LINENO: result: no" >&5
     1794echo "${ECHO_T}no" >&6
     1795fi
    22471796
    22481797    test -n "$CC" && break
     
    22511800if test -z "$CC"; then
    22521801  ac_ct_CC=$CC
    2253   for ac_prog in cl.exe
     1802  for ac_prog in cl
    22541803do
    22551804  # Extract the first word of "$ac_prog", so it can be a program name with args.
    22561805set dummy $ac_prog; ac_word=$2
    2257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     1806echo "$as_me:$LINENO: checking for $ac_word" >&5
     1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    22591808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    22601809  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    22691818  test -z "$as_dir" && as_dir=.
    22701819  for ac_exec_ext in '' $ac_executable_extensions; do
    2271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    22721821    ac_cv_prog_ac_ct_CC="$ac_prog"
    22731822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    22761825done
    22771826done
    2278 IFS=$as_save_IFS
    22791827
    22801828fi
     
    22821830ac_ct_CC=$ac_cv_prog_ac_ct_CC
    22831831if test -n "$ac_ct_CC"; then
    2284   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2285 echo "${ECHO_T}$ac_ct_CC" >&6; }
    2286 else
    2287   { echo "$as_me:$LINENO: result: no" >&5
    2288 echo "${ECHO_T}no" >&6; }
    2289 fi
    2290 
     1832  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1833echo "${ECHO_T}$ac_ct_CC" >&6
     1834else
     1835  echo "$as_me:$LINENO: result: no" >&5
     1836echo "${ECHO_T}no" >&6
     1837fi
    22911838
    22921839  test -n "$ac_ct_CC" && break
    22931840done
    22941841
    2295   if test "x$ac_ct_CC" = x; then
    2296     CC=""
    2297   else
    2298     case $cross_compiling:$ac_tool_warned in
    2299 yes:)
    2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
    2301 whose name does not start with the host triplet.  If you think this
    2302 configuration is useful to you, please write to autoconf@gnu.org." >&5
    2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
    2304 whose name does not start with the host triplet.  If you think this
    2305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
    2306 ac_tool_warned=yes ;;
    2307 esac
    2308     CC=$ac_ct_CC
    2309   fi
     1842  CC=$ac_ct_CC
    23101843fi
    23111844
     
    23201853
    23211854# Provide some information about the compiler.
    2322 echo "$as_me:$LINENO: checking for C compiler version" >&5
     1855echo "$as_me:$LINENO:" \
     1856     "checking for C compiler version" >&5
    23231857ac_compiler=`set X $ac_compile; echo $2`
    2324 { (ac_try="$ac_compiler --version >&5"
    2325 case "(($ac_try" in
    2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2327   *) ac_try_echo=$ac_try;;
    2328 esac
    2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2330   (eval "$ac_compiler --version >&5") 2>&5
     1858{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     1859  (eval $ac_compiler --version </dev/null >&5) 2>&5
    23311860  ac_status=$?
    23321861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23331862  (exit $ac_status); }
    2334 { (ac_try="$ac_compiler -v >&5"
    2335 case "(($ac_try" in
    2336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2337   *) ac_try_echo=$ac_try;;
    2338 esac
    2339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2340   (eval "$ac_compiler -v >&5") 2>&5
     1863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     1864  (eval $ac_compiler -v </dev/null >&5) 2>&5
    23411865  ac_status=$?
    23421866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    23431867  (exit $ac_status); }
    2344 { (ac_try="$ac_compiler -V >&5"
    2345 case "(($ac_try" in
    2346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2347   *) ac_try_echo=$ac_try;;
    2348 esac
    2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2350   (eval "$ac_compiler -V >&5") 2>&5
     1868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     1869  (eval $ac_compiler -V </dev/null >&5) 2>&5
    23511870  ac_status=$?
    23521871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     
    23731892# It will help us diagnose broken compilers, and finding out an intuition
    23741893# of exeext.
    2375 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2376 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
     1894echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1895echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    23771896ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2378 #
    2379 # List of possible output files, starting from the most likely.
    2380 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
    2381 # only as a last resort.  b.out is created by i960 compilers.
    2382 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
    2383 #
    2384 # The IRIX 6 linker writes into existing files which may not be
    2385 # executable, retaining their permissions.  Remove them first so a
    2386 # subsequent execution test works.
    2387 ac_rmfiles=
    2388 for ac_file in $ac_files
    2389 do
    2390   case $ac_file in
    2391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
    2392     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
    2393   esac
    2394 done
    2395 rm -f $ac_rmfiles
    2396 
    2397 if { (ac_try="$ac_link_default"
    2398 case "(($ac_try" in
    2399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2400   *) ac_try_echo=$ac_try;;
    2401 esac
    2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2403   (eval "$ac_link_default") 2>&5
     1897if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     1898  (eval $ac_link_default) 2>&5
    24041899  ac_status=$?
    24051900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    24061901  (exit $ac_status); }; then
    2407   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    2408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
    2409 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
    2410 # so that the user can short-circuit this test for compilers unknown to
    2411 # Autoconf.
    2412 for ac_file in $ac_files ''
     1902  # Find the output, starting from the most likely.  This scheme is
     1903# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1904# resort.
     1905
     1906# Be careful to initialize this variable, since it used to be cached.
     1907# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
     1908ac_cv_exeext=
     1909# b.out is created by i960 compilers.
     1910for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
    24131911do
    24141912  test -f "$ac_file" || continue
    24151913  case $ac_file in
    2416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
     1914    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
     1915        ;;
     1916    conftest.$ac_ext )
     1917        # This is the source file.
    24171918        ;;
    24181919    [ab].out )
     
    24211922        break;;
    24221923    *.* )
    2423         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    2424         then :; else
    2425            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2426         fi
    2427         # We set ac_cv_exeext here because the later test for it is not
    2428         # safe: cross compilers may not add the suffix if given an `-o'
    2429         # argument, so we may need to know it at that point already.
    2430         # Even if this section looks crufty: it has the advantage of
    2431         # actually working.
     1924        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1925        # FIXME: I believe we export ac_cv_exeext for Libtool,
     1926        # but it would be cool to find out if it's true.  Does anybody
     1927        # maintain Libtool? --akim.
     1928        export ac_cv_exeext
    24321929        break;;
    24331930    * )
     
    24351932  esac
    24361933done
    2437 test "$ac_cv_exeext" = no && ac_cv_exeext=
    2438 
    2439 else
    2440   ac_file=''
    2441 fi
    2442 
    2443 { echo "$as_me:$LINENO: result: $ac_file" >&5
    2444 echo "${ECHO_T}$ac_file" >&6; }
    2445 if test -z "$ac_file"; then
     1934else
    24461935  echo "$as_me: failed program was:" >&5
    24471936sed 's/^/| /' conftest.$ac_ext >&5
     
    24551944
    24561945ac_exeext=$ac_cv_exeext
    2457 
    2458 # Check that the compiler produces executables we can run.  If not, either
     1946echo "$as_me:$LINENO: result: $ac_file" >&5
     1947echo "${ECHO_T}$ac_file" >&6
     1948
     1949# Check the compiler produces executables we can run.  If not, either
    24591950# the compiler is broken, or we cross compile.
    2460 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2461 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
     1951echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     1952echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    24621953# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    24631954# If not cross compiling, check that we can run a simple program.
    24641955if test "$cross_compiling" != yes; then
    24651956  if { ac_try='./$ac_file'
    2466   { (case "(($ac_try" in
    2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2468   *) ac_try_echo=$ac_try;;
    2469 esac
    2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2471   (eval "$ac_try") 2>&5
     1957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1958  (eval $ac_try) 2>&5
    24721959  ac_status=$?
    24731960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     
    24881975  fi
    24891976fi
    2490 { echo "$as_me:$LINENO: result: yes" >&5
    2491 echo "${ECHO_T}yes" >&6; }
     1977echo "$as_me:$LINENO: result: yes" >&5
     1978echo "${ECHO_T}yes" >&6
    24921979
    24931980rm -f a.out a.exe conftest$ac_cv_exeext b.out
    24941981ac_clean_files=$ac_clean_files_save
    2495 # Check that the compiler produces executables we can run.  If not, either
     1982# Check the compiler produces executables we can run.  If not, either
    24961983# the compiler is broken, or we cross compile.
    2497 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
    2498 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
    2499 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
    2500 echo "${ECHO_T}$cross_compiling" >&6; }
    2501 
    2502 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
    2503 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
    2504 if { (ac_try="$ac_link"
    2505 case "(($ac_try" in
    2506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2507   *) ac_try_echo=$ac_try;;
    2508 esac
    2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2510   (eval "$ac_link") 2>&5
     1984echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
     1985echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1986echo "$as_me:$LINENO: result: $cross_compiling" >&5
     1987echo "${ECHO_T}$cross_compiling" >&6
     1988
     1989echo "$as_me:$LINENO: checking for suffix of executables" >&5
     1990echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
     1991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     1992  (eval $ac_link) 2>&5
    25111993  ac_status=$?
    25121994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     
    25192001  test -f "$ac_file" || continue
    25202002  case $ac_file in
    2521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
     2003    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    25222004    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2005          export ac_cv_exeext
    25232006          break;;
    25242007    * ) break;;
     
    25342017
    25352018rm -f conftest$ac_cv_exeext
    2536 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
    2537 echo "${ECHO_T}$ac_cv_exeext" >&6; }
     2019echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
     2020echo "${ECHO_T}$ac_cv_exeext" >&6
    25382021
    25392022rm -f conftest.$ac_ext
    25402023EXEEXT=$ac_cv_exeext
    25412024ac_exeext=$EXEEXT
    2542 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
    2543 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
     2025echo "$as_me:$LINENO: checking for suffix of object files" >&5
     2026echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
    25442027if test "${ac_cv_objext+set}" = set; then
    25452028  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    25612044_ACEOF
    25622045rm -f conftest.o conftest.obj
    2563 if { (ac_try="$ac_compile"
    2564 case "(($ac_try" in
    2565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2566   *) ac_try_echo=$ac_try;;
    2567 esac
    2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2569   (eval "$ac_compile") 2>&5
     2046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2047  (eval $ac_compile) 2>&5
    25702048  ac_status=$?
    25712049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25722050  (exit $ac_status); }; then
    2573   for ac_file in conftest.o conftest.obj conftest.*; do
    2574   test -f "$ac_file" || continue;
     2051  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    25752052  case $ac_file in
    2576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
     2053    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
    25772054    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    25782055       break;;
     
    25922069rm -f conftest.$ac_cv_objext conftest.$ac_ext
    25932070fi
    2594 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
    2595 echo "${ECHO_T}$ac_cv_objext" >&6; }
     2071echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
     2072echo "${ECHO_T}$ac_cv_objext" >&6
    25962073OBJEXT=$ac_cv_objext
    25972074ac_objext=$OBJEXT
    2598 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
     2075echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
     2076echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    26002077if test "${ac_cv_c_compiler_gnu+set}" = set; then
    26012078  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    26202097_ACEOF
    26212098rm -f conftest.$ac_objext
    2622 if { (ac_try="$ac_compile"
    2623 case "(($ac_try" in
    2624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2625   *) ac_try_echo=$ac_try;;
    2626 esac
    2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2628   (eval "$ac_compile") 2>conftest.er1
     2099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2100  (eval $ac_compile) 2>conftest.er1
    26292101  ac_status=$?
    26302102  grep -v '^ *+' conftest.er1 >conftest.err
     
    26322104  cat conftest.err >&5
    26332105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2634   (exit $ac_status); } && {
    2635          test -z "$ac_c_werror_flag" ||
    2636          test ! -s conftest.err
    2637        } && test -s conftest.$ac_objext; then
     2106  (exit $ac_status); } &&
     2107         { ac_try='test -z "$ac_c_werror_flag"
     2108                         || test ! -s conftest.err'
     2109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2110  (eval $ac_try) 2>&5
     2111  ac_status=$?
     2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2113  (exit $ac_status); }; } &&
     2114         { ac_try='test -s conftest.$ac_objext'
     2115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2116  (eval $ac_try) 2>&5
     2117  ac_status=$?
     2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2119  (exit $ac_status); }; }; then
    26382120  ac_compiler_gnu=yes
    26392121else
     
    26412123sed 's/^/| /' conftest.$ac_ext >&5
    26422124
    2643         ac_compiler_gnu=no
    2644 fi
    2645 
    2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2125ac_compiler_gnu=no
     2126fi
     2127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    26472128ac_cv_c_compiler_gnu=$ac_compiler_gnu
    26482129
    26492130fi
    2650 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
    2651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
     2131echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
     2132echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    26522133GCC=`test $ac_compiler_gnu = yes && echo yes`
    26532134ac_test_CFLAGS=${CFLAGS+set}
    26542135ac_save_CFLAGS=$CFLAGS
    2655 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
    2656 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
     2136CFLAGS="-g"
     2137echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
     2138echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    26572139if test "${ac_cv_prog_cc_g+set}" = set; then
    26582140  echo $ECHO_N "(cached) $ECHO_C" >&6
    26592141else
    2660   ac_save_c_werror_flag=$ac_c_werror_flag
    2661    ac_c_werror_flag=yes
    2662    ac_cv_prog_cc_g=no
    2663    CFLAGS="-g"
    2664    cat >conftest.$ac_ext <<_ACEOF
     2142  cat >conftest.$ac_ext <<_ACEOF
    26652143/* confdefs.h.  */
    26662144_ACEOF
     
    26782156_ACEOF
    26792157rm -f conftest.$ac_objext
    2680 if { (ac_try="$ac_compile"
    2681 case "(($ac_try" in
    2682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2683   *) ac_try_echo=$ac_try;;
    2684 esac
    2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2686   (eval "$ac_compile") 2>conftest.er1
     2158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2159  (eval $ac_compile) 2>conftest.er1
    26872160  ac_status=$?
    26882161  grep -v '^ *+' conftest.er1 >conftest.err
     
    26902163  cat conftest.err >&5
    26912164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2692   (exit $ac_status); } && {
    2693          test -z "$ac_c_werror_flag" ||
    2694          test ! -s conftest.err
    2695        } && test -s conftest.$ac_objext; then
     2165  (exit $ac_status); } &&
     2166         { ac_try='test -z "$ac_c_werror_flag"
     2167                         || test ! -s conftest.err'
     2168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2169  (eval $ac_try) 2>&5
     2170  ac_status=$?
     2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2172  (exit $ac_status); }; } &&
     2173         { ac_try='test -s conftest.$ac_objext'
     2174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2175  (eval $ac_try) 2>&5
     2176  ac_status=$?
     2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2178  (exit $ac_status); }; }; then
    26962179  ac_cv_prog_cc_g=yes
    26972180else
     
    26992182sed 's/^/| /' conftest.$ac_ext >&5
    27002183
    2701         CFLAGS=""
    2702       cat >conftest.$ac_ext <<_ACEOF
    2703 /* confdefs.h.  */
    2704 _ACEOF
    2705 cat confdefs.h >>conftest.$ac_ext
    2706 cat >>conftest.$ac_ext <<_ACEOF
    2707 /* end confdefs.h.  */
    2708 
    2709 int
    2710 main ()
    2711 {
    2712 
    2713   ;
    2714   return 0;
    2715 }
    2716 _ACEOF
    2717 rm -f conftest.$ac_objext
    2718 if { (ac_try="$ac_compile"
    2719 case "(($ac_try" in
    2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2721   *) ac_try_echo=$ac_try;;
    2722 esac
    2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2724   (eval "$ac_compile") 2>conftest.er1
    2725   ac_status=$?
    2726   grep -v '^ *+' conftest.er1 >conftest.err
    2727   rm -f conftest.er1
    2728   cat conftest.err >&5
    2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2730   (exit $ac_status); } && {
    2731          test -z "$ac_c_werror_flag" ||
    2732          test ! -s conftest.err
    2733        } && test -s conftest.$ac_objext; then
    2734   :
    2735 else
    2736   echo "$as_me: failed program was:" >&5
    2737 sed 's/^/| /' conftest.$ac_ext >&5
    2738 
    2739         ac_c_werror_flag=$ac_save_c_werror_flag
    2740          CFLAGS="-g"
    2741          cat >conftest.$ac_ext <<_ACEOF
    2742 /* confdefs.h.  */
    2743 _ACEOF
    2744 cat confdefs.h >>conftest.$ac_ext
    2745 cat >>conftest.$ac_ext <<_ACEOF
    2746 /* end confdefs.h.  */
    2747 
    2748 int
    2749 main ()
    2750 {
    2751 
    2752   ;
    2753   return 0;
    2754 }
    2755 _ACEOF
    2756 rm -f conftest.$ac_objext
    2757 if { (ac_try="$ac_compile"
    2758 case "(($ac_try" in
    2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2760   *) ac_try_echo=$ac_try;;
    2761 esac
    2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2763   (eval "$ac_compile") 2>conftest.er1
    2764   ac_status=$?
    2765   grep -v '^ *+' conftest.er1 >conftest.err
    2766   rm -f conftest.er1
    2767   cat conftest.err >&5
    2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2769   (exit $ac_status); } && {
    2770          test -z "$ac_c_werror_flag" ||
    2771          test ! -s conftest.err
    2772        } && test -s conftest.$ac_objext; then
    2773   ac_cv_prog_cc_g=yes
    2774 else
    2775   echo "$as_me: failed program was:" >&5
    2776 sed 's/^/| /' conftest.$ac_ext >&5
    2777 
    2778 
    2779 fi
    2780 
    2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2782 fi
    2783 
    2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2785 fi
    2786 
    2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2788    ac_c_werror_flag=$ac_save_c_werror_flag
    2789 fi
    2790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
    2791 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
     2184ac_cv_prog_cc_g=no
     2185fi
     2186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2187fi
     2188echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     2189echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    27922190if test "$ac_test_CFLAGS" = set; then
    27932191  CFLAGS=$ac_save_CFLAGS
     
    28052203  fi
    28062204fi
    2807 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
    2808 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
    2809 if test "${ac_cv_prog_cc_c89+set}" = set; then
     2205echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
     2206echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
     2207if test "${ac_cv_prog_cc_stdc+set}" = set; then
    28102208  echo $ECHO_N "(cached) $ECHO_C" >&6
    28112209else
    2812   ac_cv_prog_cc_c89=no
     2210  ac_cv_prog_cc_stdc=no
    28132211ac_save_CC=$CC
    28142212cat >conftest.$ac_ext <<_ACEOF
     
    28442242   function prototypes and stuff, but not '\xHH' hex character constants.
    28452243   These don't provoke an error unfortunately, instead are silently treated
    2846    as 'x'.  The following induces an error, until -std is added to get
     2244   as 'x'.  The following induces an error, until -std1 is added to get
    28472245   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    28482246   array size at least.  It's necessary to write '\x00'==0 to get something
    2849    that's true only with -std.  */
     2247   that's true only with -std1.  */
    28502248int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2851 
    2852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    2853    inside strings and character constants.  */
    2854 #define FOO(x) 'x'
    2855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    28562249
    28572250int test (int i, double x);
     
    28692262}
    28702263_ACEOF
    2871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
    2872         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     2264# Don't try gcc -ansi; that turns off useful extensions and
     2265# breaks some systems' header files.
     2266# AIX                   -qlanglvl=ansi
     2267# Ultrix and OSF/1      -std1
     2268# HP-UX 10.20 and later -Ae
     2269# HP-UX older versions  -Aa -D_HPUX_SOURCE
     2270# SVR4                  -Xc -D__EXTENSIONS__
     2271for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    28732272do
    28742273  CC="$ac_save_CC $ac_arg"
    28752274  rm -f conftest.$ac_objext
    2876 if { (ac_try="$ac_compile"
    2877 case "(($ac_try" in
    2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2879   *) ac_try_echo=$ac_try;;
    2880 esac
    2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    2882   (eval "$ac_compile") 2>conftest.er1
     2275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2276  (eval $ac_compile) 2>conftest.er1
    28832277  ac_status=$?
    28842278  grep -v '^ *+' conftest.er1 >conftest.err
     
    28862280  cat conftest.err >&5
    28872281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2888   (exit $ac_status); } && {
    2889          test -z "$ac_c_werror_flag" ||
    2890          test ! -s conftest.err
    2891        } && test -s conftest.$ac_objext; then
    2892   ac_cv_prog_cc_c89=$ac_arg
     2282  (exit $ac_status); } &&
     2283         { ac_try='test -z "$ac_c_werror_flag"
     2284                         || test ! -s conftest.err'
     2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2286  (eval $ac_try) 2>&5
     2287  ac_status=$?
     2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2289  (exit $ac_status); }; } &&
     2290         { ac_try='test -s conftest.$ac_objext'
     2291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2292  (eval $ac_try) 2>&5
     2293  ac_status=$?
     2294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2295  (exit $ac_status); }; }; then
     2296  ac_cv_prog_cc_stdc=$ac_arg
     2297break
    28932298else
    28942299  echo "$as_me: failed program was:" >&5
    28952300sed 's/^/| /' conftest.$ac_ext >&5
    28962301
    2897 
    2898 fi
    2899 
    2900 rm -f core conftest.err conftest.$ac_objext
    2901   test "x$ac_cv_prog_cc_c89" != "xno" && break
     2302fi
     2303rm -f conftest.err conftest.$ac_objext
    29022304done
    2903 rm -f conftest.$ac_ext
     2305rm -f conftest.$ac_ext conftest.$ac_objext
    29042306CC=$ac_save_CC
    29052307
    29062308fi
    2907 # AC_CACHE_VAL
    2908 case "x$ac_cv_prog_cc_c89" in
    2909   x)
    2910     { echo "$as_me:$LINENO: result: none needed" >&5
    2911 echo "${ECHO_T}none needed" >&6; } ;;
    2912   xno)
    2913     { echo "$as_me:$LINENO: result: unsupported" >&5
    2914 echo "${ECHO_T}unsupported" >&6; } ;;
     2309
     2310case "x$ac_cv_prog_cc_stdc" in
     2311  x|xno)
     2312    echo "$as_me:$LINENO: result: none needed" >&5
     2313echo "${ECHO_T}none needed" >&6 ;;
    29152314  *)
    2916     CC="$CC $ac_cv_prog_cc_c89"
    2917     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
    2918 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
     2315    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
     2316echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
     2317    CC="$CC $ac_cv_prog_cc_stdc" ;;
    29192318esac
    29202319
    2921 
     2320# Some people use a C++ compiler to compile C.  Since we use `exit',
     2321# in C++ we need to declare it.  In case someone uses the same compiler
     2322# for both compiling C and C++ we need to have the C++ compiler decide
     2323# the declaration of exit, since it's the most demanding environment.
     2324cat >conftest.$ac_ext <<_ACEOF
     2325#ifndef __cplusplus
     2326  choke me
     2327#endif
     2328_ACEOF
     2329rm -f conftest.$ac_objext
     2330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2331  (eval $ac_compile) 2>conftest.er1
     2332  ac_status=$?
     2333  grep -v '^ *+' conftest.er1 >conftest.err
     2334  rm -f conftest.er1
     2335  cat conftest.err >&5
     2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2337  (exit $ac_status); } &&
     2338         { ac_try='test -z "$ac_c_werror_flag"
     2339                         || test ! -s conftest.err'
     2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2341  (eval $ac_try) 2>&5
     2342  ac_status=$?
     2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2344  (exit $ac_status); }; } &&
     2345         { ac_try='test -s conftest.$ac_objext'
     2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2347  (eval $ac_try) 2>&5
     2348  ac_status=$?
     2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2350  (exit $ac_status); }; }; then
     2351  for ac_declaration in \
     2352   '' \
     2353   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2354   'extern "C" void std::exit (int); using std::exit;' \
     2355   'extern "C" void exit (int) throw ();' \
     2356   'extern "C" void exit (int);' \
     2357   'void exit (int);'
     2358do
     2359  cat >conftest.$ac_ext <<_ACEOF
     2360/* confdefs.h.  */
     2361_ACEOF
     2362cat confdefs.h >>conftest.$ac_ext
     2363cat >>conftest.$ac_ext <<_ACEOF
     2364/* end confdefs.h.  */
     2365$ac_declaration
     2366#include <stdlib.h>
     2367int
     2368main ()
     2369{
     2370exit (42);
     2371  ;
     2372  return 0;
     2373}
     2374_ACEOF
     2375rm -f conftest.$ac_objext
     2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2377  (eval $ac_compile) 2>conftest.er1
     2378  ac_status=$?
     2379  grep -v '^ *+' conftest.er1 >conftest.err
     2380  rm -f conftest.er1
     2381  cat conftest.err >&5
     2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2383  (exit $ac_status); } &&
     2384         { ac_try='test -z "$ac_c_werror_flag"
     2385                         || test ! -s conftest.err'
     2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2387  (eval $ac_try) 2>&5
     2388  ac_status=$?
     2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2390  (exit $ac_status); }; } &&
     2391         { ac_try='test -s conftest.$ac_objext'
     2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2393  (eval $ac_try) 2>&5
     2394  ac_status=$?
     2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2396  (exit $ac_status); }; }; then
     2397  :
     2398else
     2399  echo "$as_me: failed program was:" >&5
     2400sed 's/^/| /' conftest.$ac_ext >&5
     2401
     2402continue
     2403fi
     2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2405  cat >conftest.$ac_ext <<_ACEOF
     2406/* confdefs.h.  */
     2407_ACEOF
     2408cat confdefs.h >>conftest.$ac_ext
     2409cat >>conftest.$ac_ext <<_ACEOF
     2410/* end confdefs.h.  */
     2411$ac_declaration
     2412int
     2413main ()
     2414{
     2415exit (42);
     2416  ;
     2417  return 0;
     2418}
     2419_ACEOF
     2420rm -f conftest.$ac_objext
     2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2422  (eval $ac_compile) 2>conftest.er1
     2423  ac_status=$?
     2424  grep -v '^ *+' conftest.er1 >conftest.err
     2425  rm -f conftest.er1
     2426  cat conftest.err >&5
     2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2428  (exit $ac_status); } &&
     2429         { ac_try='test -z "$ac_c_werror_flag"
     2430                         || test ! -s conftest.err'
     2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2432  (eval $ac_try) 2>&5
     2433  ac_status=$?
     2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2435  (exit $ac_status); }; } &&
     2436         { ac_try='test -s conftest.$ac_objext'
     2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2438  (eval $ac_try) 2>&5
     2439  ac_status=$?
     2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2441  (exit $ac_status); }; }; then
     2442  break
     2443else
     2444  echo "$as_me: failed program was:" >&5
     2445sed 's/^/| /' conftest.$ac_ext >&5
     2446
     2447fi
     2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2449done
     2450rm -f conftest*
     2451if test -n "$ac_declaration"; then
     2452  echo '#ifdef __cplusplus' >>confdefs.h
     2453  echo $ac_declaration      >>confdefs.h
     2454  echo '#endif'             >>confdefs.h
     2455fi
     2456
     2457else
     2458  echo "$as_me: failed program was:" >&5
     2459sed 's/^/| /' conftest.$ac_ext >&5
     2460
     2461fi
     2462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2463ac_ext=c
     2464ac_cpp='$CPP $CPPFLAGS'
     2465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2467ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2468
     2469ac_ext=m
     2470ac_cpp='$OBJCPP $CPPFLAGS'
     2471ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2472ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2473ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     2474if test -n "$ac_tool_prefix"; then
     2475  for ac_prog in $CCC gcc cc objc
     2476  do
     2477    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2479echo "$as_me:$LINENO: checking for $ac_word" >&5
     2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2481if test "${ac_cv_prog_OBJC+set}" = set; then
     2482  echo $ECHO_N "(cached) $ECHO_C" >&6
     2483else
     2484  if test -n "$OBJC"; then
     2485  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
     2486else
     2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2488for as_dir in $PATH
     2489do
     2490  IFS=$as_save_IFS
     2491  test -z "$as_dir" && as_dir=.
     2492  for ac_exec_ext in '' $ac_executable_extensions; do
     2493  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2494    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
     2495    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2496    break 2
     2497  fi
     2498done
     2499done
     2500
     2501fi
     2502fi
     2503OBJC=$ac_cv_prog_OBJC
     2504if test -n "$OBJC"; then
     2505  echo "$as_me:$LINENO: result: $OBJC" >&5
     2506echo "${ECHO_T}$OBJC" >&6
     2507else
     2508  echo "$as_me:$LINENO: result: no" >&5
     2509echo "${ECHO_T}no" >&6
     2510fi
     2511
     2512    test -n "$OBJC" && break
     2513  done
     2514fi
     2515if test -z "$OBJC"; then
     2516  ac_ct_OBJC=$OBJC
     2517  for ac_prog in $CCC gcc cc objc
     2518do
     2519  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2520set dummy $ac_prog; ac_word=$2
     2521echo "$as_me:$LINENO: checking for $ac_word" >&5
     2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2523if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
     2524  echo $ECHO_N "(cached) $ECHO_C" >&6
     2525else
     2526  if test -n "$ac_ct_OBJC"; then
     2527  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
     2528else
     2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2530for as_dir in $PATH
     2531do
     2532  IFS=$as_save_IFS
     2533  test -z "$as_dir" && as_dir=.
     2534  for ac_exec_ext in '' $ac_executable_extensions; do
     2535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2536    ac_cv_prog_ac_ct_OBJC="$ac_prog"
     2537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     2538    break 2
     2539  fi
     2540done
     2541done
     2542
     2543fi
     2544fi
     2545ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
     2546if test -n "$ac_ct_OBJC"; then
     2547  echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
     2548echo "${ECHO_T}$ac_ct_OBJC" >&6
     2549else
     2550  echo "$as_me:$LINENO: result: no" >&5
     2551echo "${ECHO_T}no" >&6
     2552fi
     2553
     2554  test -n "$ac_ct_OBJC" && break
     2555done
     2556test -n "$ac_ct_OBJC" || ac_ct_OBJC="gcc"
     2557
     2558  OBJC=$ac_ct_OBJC
     2559fi
     2560
     2561
     2562# Provide some information about the compiler.
     2563echo "$as_me:$LINENO:" \
     2564     "checking for Objective C compiler version" >&5
     2565ac_compiler=`set X $ac_compile; echo $2`
     2566{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     2567  (eval $ac_compiler --version </dev/null >&5) 2>&5
     2568  ac_status=$?
     2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2570  (exit $ac_status); }
     2571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     2572  (eval $ac_compiler -v </dev/null >&5) 2>&5
     2573  ac_status=$?
     2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2575  (exit $ac_status); }
     2576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     2577  (eval $ac_compiler -V </dev/null >&5) 2>&5
     2578  ac_status=$?
     2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2580  (exit $ac_status); }
     2581
     2582echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
     2583echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6
     2584if test "${ac_cv_objc_compiler_gnu+set}" = set; then
     2585  echo $ECHO_N "(cached) $ECHO_C" >&6
     2586else
     2587  cat >conftest.$ac_ext <<_ACEOF
     2588/* confdefs.h.  */
     2589_ACEOF
     2590cat confdefs.h >>conftest.$ac_ext
     2591cat >>conftest.$ac_ext <<_ACEOF
     2592/* end confdefs.h.  */
     2593
     2594int
     2595main ()
     2596{
     2597#ifndef __GNUC__
     2598       choke me
     2599#endif
     2600
     2601  ;
     2602  return 0;
     2603}
     2604_ACEOF
     2605rm -f conftest.$ac_objext
     2606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2607  (eval $ac_compile) 2>conftest.er1
     2608  ac_status=$?
     2609  grep -v '^ *+' conftest.er1 >conftest.err
     2610  rm -f conftest.er1
     2611  cat conftest.err >&5
     2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2613  (exit $ac_status); } &&
     2614         { ac_try='test -z "$ac_objc_werror_flag"
     2615                         || test ! -s conftest.err'
     2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2617  (eval $ac_try) 2>&5
     2618  ac_status=$?
     2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2620  (exit $ac_status); }; } &&
     2621         { ac_try='test -s conftest.$ac_objext'
     2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2623  (eval $ac_try) 2>&5
     2624  ac_status=$?
     2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2626  (exit $ac_status); }; }; then
     2627  ac_compiler_gnu=yes
     2628else
     2629  echo "$as_me: failed program was:" >&5
     2630sed 's/^/| /' conftest.$ac_ext >&5
     2631
     2632ac_compiler_gnu=no
     2633fi
     2634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2635ac_cv_objc_compiler_gnu=$ac_compiler_gnu
     2636
     2637fi
     2638echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
     2639echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6
     2640GOBJC=`test $ac_compiler_gnu = yes && echo yes`
     2641ac_test_OBJCFLAGS=${OBJCFLAGS+set}
     2642ac_save_OBJCFLAGS=$OBJCFLAGS
     2643OBJCFLAGS="-g"
     2644echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
     2645echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6
     2646if test "${ac_cv_prog_objc_g+set}" = set; then
     2647  echo $ECHO_N "(cached) $ECHO_C" >&6
     2648else
     2649  cat >conftest.$ac_ext <<_ACEOF
     2650/* confdefs.h.  */
     2651_ACEOF
     2652cat confdefs.h >>conftest.$ac_ext
     2653cat >>conftest.$ac_ext <<_ACEOF
     2654/* end confdefs.h.  */
     2655
     2656int
     2657main ()
     2658{
     2659
     2660  ;
     2661  return 0;
     2662}
     2663_ACEOF
     2664rm -f conftest.$ac_objext
     2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2666  (eval $ac_compile) 2>conftest.er1
     2667  ac_status=$?
     2668  grep -v '^ *+' conftest.er1 >conftest.err
     2669  rm -f conftest.er1
     2670  cat conftest.err >&5
     2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2672  (exit $ac_status); } &&
     2673         { ac_try='test -z "$ac_objc_werror_flag"
     2674                         || test ! -s conftest.err'
     2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2676  (eval $ac_try) 2>&5
     2677  ac_status=$?
     2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2679  (exit $ac_status); }; } &&
     2680         { ac_try='test -s conftest.$ac_objext'
     2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2682  (eval $ac_try) 2>&5
     2683  ac_status=$?
     2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2685  (exit $ac_status); }; }; then
     2686  ac_cv_prog_objc_g=yes
     2687else
     2688  echo "$as_me: failed program was:" >&5
     2689sed 's/^/| /' conftest.$ac_ext >&5
     2690
     2691ac_cv_prog_objc_g=no
     2692fi
     2693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2694fi
     2695echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
     2696echo "${ECHO_T}$ac_cv_prog_objc_g" >&6
     2697if test "$ac_test_OBJCFLAGS" = set; then
     2698  OBJCFLAGS=$ac_save_OBJCFLAGS
     2699elif test $ac_cv_prog_objc_g = yes; then
     2700  if test "$GOBJC" = yes; then
     2701    OBJCFLAGS="-g -O2"
     2702  else
     2703    OBJCFLAGS="-g"
     2704  fi
     2705else
     2706  if test "$GOBJC" = yes; then
     2707    OBJCFLAGS="-O2"
     2708  else
     2709    OBJCFLAGS=
     2710  fi
     2711fi
    29222712ac_ext=c
    29232713ac_cpp='$CPP $CPPFLAGS'
     
    29392729# OS/2's system install, which has a completely different semantic
    29402730# ./install, which can be erroneously created by make from ./install.sh.
    2941 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2942 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
     2731echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     2732echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    29432733if test -z "$INSTALL"; then
    29442734if test "${ac_cv_path_install+set}" = set; then
     
    29622752    for ac_prog in ginstall scoinst install; do
    29632753      for ac_exec_ext in '' $ac_executable_extensions; do
    2964         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
     2754        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    29652755          if test $ac_prog = install &&
    29662756            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     
    29812771esac
    29822772done
    2983 IFS=$as_save_IFS
    29842773
    29852774
     
    29882777    INSTALL=$ac_cv_path_install
    29892778  else
    2990     # As a last resort, use the slow shell script.  Don't cache a
    2991     # value for INSTALL within a source directory, because that will
     2779    # As a last resort, use the slow shell script.  We don't cache a
     2780    # path for INSTALL within a source directory, because that will
    29922781    # break other packages using the cache if that directory is
    2993     # removed, or if the value is a relative name.
     2782    # removed, or if the path is relative.
    29942783    INSTALL=$ac_install_sh
    29952784  fi
    29962785fi
    2997 { echo "$as_me:$LINENO: result: $INSTALL" >&5
    2998 echo "${ECHO_T}$INSTALL" >&6; }
     2786echo "$as_me:$LINENO: result: $INSTALL" >&5
     2787echo "${ECHO_T}$INSTALL" >&6
    29992788
    30002789# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    30062795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    30072796
    3008 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    3009 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
    3010 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    3011 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
     2797echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     2798echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     2799set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     2800if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    30122801  echo $ECHO_N "(cached) $ECHO_C" >&6
    30132802else
    30142803  cat >conftest.make <<\_ACEOF
    3015 SHELL = /bin/sh
    30162804all:
    3017         @echo '@@@%%%=$(MAKE)=@@@%%%'
     2805        @echo 'ac_maketemp="$(MAKE)"'
    30182806_ACEOF
    30192807# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    3020 case `${MAKE-make} -f conftest.make 2>/dev/null` in
    3021   *@@@%%%=?*=@@@%%%*)
    3022     eval ac_cv_prog_make_${ac_make}_set=yes;;
    3023   *)
    3024     eval ac_cv_prog_make_${ac_make}_set=no;;
    3025 esac
     2808eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     2809if test -n "$ac_maketemp"; then
     2810  eval ac_cv_prog_make_${ac_make}_set=yes
     2811else
     2812  eval ac_cv_prog_make_${ac_make}_set=no
     2813fi
    30262814rm -f conftest.make
    30272815fi
    3028 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
    3029   { echo "$as_me:$LINENO: result: yes" >&5
    3030 echo "${ECHO_T}yes" >&6; }
     2816if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     2817  echo "$as_me:$LINENO: result: yes" >&5
     2818echo "${ECHO_T}yes" >&6
    30312819  SET_MAKE=
    30322820else
    3033   { echo "$as_me:$LINENO: result: no" >&5
    3034 echo "${ECHO_T}no" >&6; }
     2821  echo "$as_me:$LINENO: result: no" >&5
     2822echo "${ECHO_T}no" >&6
    30352823  SET_MAKE="MAKE=${MAKE-make}"
    30362824fi
    30372825
    3038 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
    3039 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
     2826echo "$as_me:$LINENO: checking whether ln -s works" >&5
     2827echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    30402828LN_S=$as_ln_s
    30412829if test "$LN_S" = "ln -s"; then
    3042   { echo "$as_me:$LINENO: result: yes" >&5
    3043 echo "${ECHO_T}yes" >&6; }
    3044 else
    3045   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    3046 echo "${ECHO_T}no, using $LN_S" >&6; }
     2830  echo "$as_me:$LINENO: result: yes" >&5
     2831echo "${ECHO_T}yes" >&6
     2832else
     2833  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     2834echo "${ECHO_T}no, using $LN_S" >&6
    30472835fi
    30482836
    30492837# Extract the first word of "mtree", so it can be a program name with args.
    30502838set dummy mtree; ac_word=$2
    3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2839echo "$as_me:$LINENO: checking for $ac_word" >&5
     2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    30532841if test "${ac_cv_path_MTREE+set}" = set; then
    30542842  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    30652853  test -z "$as_dir" && as_dir=.
    30662854  for ac_exec_ext in '' $ac_executable_extensions; do
    3067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    30682856    ac_cv_path_MTREE="$as_dir/$ac_word$ac_exec_ext"
    30692857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    30722860done
    30732861done
    3074 IFS=$as_save_IFS
    30752862
    30762863  ;;
     
    30782865fi
    30792866MTREE=$ac_cv_path_MTREE
     2867
    30802868if test -n "$MTREE"; then
    3081   { echo "$as_me:$LINENO: result: $MTREE" >&5
    3082 echo "${ECHO_T}$MTREE" >&6; }
    3083 else
    3084   { echo "$as_me:$LINENO: result: no" >&5
    3085 echo "${ECHO_T}no" >&6; }
    3086 fi
    3087 
     2869  echo "$as_me:$LINENO: result: $MTREE" >&5
     2870echo "${ECHO_T}$MTREE" >&6
     2871else
     2872  echo "$as_me:$LINENO: result: no" >&5
     2873echo "${ECHO_T}no" >&6
     2874fi
    30882875
    30892876# Extract the first word of "cvs", so it can be a program name with args.
    30902877set dummy cvs; ac_word=$2
    3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2878echo "$as_me:$LINENO: checking for $ac_word" >&5
     2879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    30932880if test "${ac_cv_path_CVS+set}" = set; then
    30942881  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    31052892  test -z "$as_dir" && as_dir=.
    31062893  for ac_exec_ext in '' $ac_executable_extensions; do
    3107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31082895    ac_cv_path_CVS="$as_dir/$ac_word$ac_exec_ext"
    31092896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    31122899done
    31132900done
    3114 IFS=$as_save_IFS
    31152901
    31162902  ;;
     
    31182904fi
    31192905CVS=$ac_cv_path_CVS
     2906
    31202907if test -n "$CVS"; then
    3121   { echo "$as_me:$LINENO: result: $CVS" >&5
    3122 echo "${ECHO_T}$CVS" >&6; }
    3123 else
    3124   { echo "$as_me:$LINENO: result: no" >&5
    3125 echo "${ECHO_T}no" >&6; }
    3126 fi
    3127 
     2908  echo "$as_me:$LINENO: result: $CVS" >&5
     2909echo "${ECHO_T}$CVS" >&6
     2910else
     2911  echo "$as_me:$LINENO: result: no" >&5
     2912echo "${ECHO_T}no" >&6
     2913fi
    31282914
    31292915# Extract the first word of "svn", so it can be a program name with args.
    31302916set dummy svn; ac_word=$2
    3131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2917echo "$as_me:$LINENO: checking for $ac_word" >&5
     2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    31332919if test "${ac_cv_path_SVN+set}" = set; then
    31342920  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    31452931  test -z "$as_dir" && as_dir=.
    31462932  for ac_exec_ext in '' $ac_executable_extensions; do
    3147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31482934    ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
    31492935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    31522938done
    31532939done
    3154 IFS=$as_save_IFS
    31552940
    31562941  ;;
     
    31582943fi
    31592944SVN=$ac_cv_path_SVN
     2945
    31602946if test -n "$SVN"; then
    3161   { echo "$as_me:$LINENO: result: $SVN" >&5
    3162 echo "${ECHO_T}$SVN" >&6; }
    3163 else
    3164   { echo "$as_me:$LINENO: result: no" >&5
    3165 echo "${ECHO_T}no" >&6; }
    3166 fi
    3167 
     2947  echo "$as_me:$LINENO: result: $SVN" >&5
     2948echo "${ECHO_T}$SVN" >&6
     2949else
     2950  echo "$as_me:$LINENO: result: no" >&5
     2951echo "${ECHO_T}no" >&6
     2952fi
    31682953
    31692954# Extract the first word of "rsync", so it can be a program name with args.
    31702955set dummy rsync; ac_word=$2
    3171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2956echo "$as_me:$LINENO: checking for $ac_word" >&5
     2957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    31732958if test "${ac_cv_path_RSYNC+set}" = set; then
    31742959  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    31852970  test -z "$as_dir" && as_dir=.
    31862971  for ac_exec_ext in '' $ac_executable_extensions; do
    3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    31882973    ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
    31892974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    31922977done
    31932978done
    3194 IFS=$as_save_IFS
    31952979
    31962980  ;;
     
    31982982fi
    31992983RSYNC=$ac_cv_path_RSYNC
     2984
    32002985if test -n "$RSYNC"; then
    3201   { echo "$as_me:$LINENO: result: $RSYNC" >&5
    3202 echo "${ECHO_T}$RSYNC" >&6; }
    3203 else
    3204   { echo "$as_me:$LINENO: result: no" >&5
    3205 echo "${ECHO_T}no" >&6; }
    3206 fi
    3207 
     2986  echo "$as_me:$LINENO: result: $RSYNC" >&5
     2987echo "${ECHO_T}$RSYNC" >&6
     2988else
     2989  echo "$as_me:$LINENO: result: no" >&5
     2990echo "${ECHO_T}no" >&6
     2991fi
    32082992
    32092993# Extract the first word of "launchd", so it can be a program name with args.
    32102994set dummy launchd; ac_word=$2
    3211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     2995echo "$as_me:$LINENO: checking for $ac_word" >&5
     2996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    32132997if test "${ac_cv_prog_HAVE_LAUNCHD+set}" = set; then
    32142998  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    32233007  test -z "$as_dir" && as_dir=.
    32243008  for ac_exec_ext in '' $ac_executable_extensions; do
    3225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    32263010    ac_cv_prog_HAVE_LAUNCHD="yes"
    32273011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    32303014done
    32313015done
    3232 IFS=$as_save_IFS
    32333016
    32343017fi
     
    32363019HAVE_LAUNCHD=$ac_cv_prog_HAVE_LAUNCHD
    32373020if test -n "$HAVE_LAUNCHD"; then
    3238   { echo "$as_me:$LINENO: result: $HAVE_LAUNCHD" >&5
    3239 echo "${ECHO_T}$HAVE_LAUNCHD" >&6; }
    3240 else
    3241   { echo "$as_me:$LINENO: result: no" >&5
    3242 echo "${ECHO_T}no" >&6; }
    3243 fi
    3244 
     3021  echo "$as_me:$LINENO: result: $HAVE_LAUNCHD" >&5
     3022echo "${ECHO_T}$HAVE_LAUNCHD" >&6
     3023else
     3024  echo "$as_me:$LINENO: result: no" >&5
     3025echo "${ECHO_T}no" >&6
     3026fi
    32453027
    32463028# Extract the first word of "launchctl", so it can be a program name with args.
    32473029set dummy launchctl; ac_word=$2
    3248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3030echo "$as_me:$LINENO: checking for $ac_word" >&5
     3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    32503032if test "${ac_cv_path_LAUNCHCTL+set}" = set; then
    32513033  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    32623044  test -z "$as_dir" && as_dir=.
    32633045  for ac_exec_ext in '' $ac_executable_extensions; do
    3264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    32653047    ac_cv_path_LAUNCHCTL="$as_dir/$ac_word$ac_exec_ext"
    32663048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    32693051done
    32703052done
    3271 IFS=$as_save_IFS
    32723053
    32733054  ;;
     
    32753056fi
    32763057LAUNCHCTL=$ac_cv_path_LAUNCHCTL
     3058
    32773059if test -n "$LAUNCHCTL"; then
    3278   { echo "$as_me:$LINENO: result: $LAUNCHCTL" >&5
    3279 echo "${ECHO_T}$LAUNCHCTL" >&6; }
    3280 else
    3281   { echo "$as_me:$LINENO: result: no" >&5
    3282 echo "${ECHO_T}no" >&6; }
    3283 fi
    3284 
     3060  echo "$as_me:$LINENO: result: $LAUNCHCTL" >&5
     3061echo "${ECHO_T}$LAUNCHCTL" >&6
     3062else
     3063  echo "$as_me:$LINENO: result: no" >&5
     3064echo "${ECHO_T}no" >&6
     3065fi
    32853066
    32863067# Extract the first word of "xcodebuild", so it can be a program name with args.
    32873068set dummy xcodebuild; ac_word=$2
    3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3069echo "$as_me:$LINENO: checking for $ac_word" >&5
     3070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    32903071if test "${ac_cv_path_XCODEBUILD+set}" = set; then
    32913072  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    33023083  test -z "$as_dir" && as_dir=.
    33033084  for ac_exec_ext in '' $ac_executable_extensions; do
    3304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    33053086    ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
    33063087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    33093090done
    33103091done
    3311 IFS=$as_save_IFS
    33123092
    33133093  ;;
     
    33153095fi
    33163096XCODEBUILD=$ac_cv_path_XCODEBUILD
     3097
    33173098if test -n "$XCODEBUILD"; then
    3318   { echo "$as_me:$LINENO: result: $XCODEBUILD" >&5
    3319 echo "${ECHO_T}$XCODEBUILD" >&6; }
    3320 else
    3321   { echo "$as_me:$LINENO: result: no" >&5
    3322 echo "${ECHO_T}no" >&6; }
    3323 fi
    3324 
     3099  echo "$as_me:$LINENO: result: $XCODEBUILD" >&5
     3100echo "${ECHO_T}$XCODEBUILD" >&6
     3101else
     3102  echo "$as_me:$LINENO: result: no" >&5
     3103echo "${ECHO_T}no" >&6
     3104fi
    33253105
    33263106# Extract the first word of "bzip2", so it can be a program name with args.
    33273107set dummy bzip2; ac_word=$2
    3328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3108echo "$as_me:$LINENO: checking for $ac_word" >&5
     3109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    33303110if test "${ac_cv_path_BZIP2+set}" = set; then
    33313111  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    33423122  test -z "$as_dir" && as_dir=.
    33433123  for ac_exec_ext in '' $ac_executable_extensions; do
    3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    33453125    ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
    33463126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    33493129done
    33503130done
    3351 IFS=$as_save_IFS
    33523131
    33533132  ;;
     
    33553134fi
    33563135BZIP2=$ac_cv_path_BZIP2
     3136
    33573137if test -n "$BZIP2"; then
    3358   { echo "$as_me:$LINENO: result: $BZIP2" >&5
    3359 echo "${ECHO_T}$BZIP2" >&6; }
    3360 else
    3361   { echo "$as_me:$LINENO: result: no" >&5
    3362 echo "${ECHO_T}no" >&6; }
    3363 fi
    3364 
     3138  echo "$as_me:$LINENO: result: $BZIP2" >&5
     3139echo "${ECHO_T}$BZIP2" >&6
     3140else
     3141  echo "$as_me:$LINENO: result: no" >&5
     3142echo "${ECHO_T}no" >&6
     3143fi
    33653144
    33663145# Extract the first word of "xar", so it can be a program name with args.
    33673146set dummy xar; ac_word=$2
    3368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3147echo "$as_me:$LINENO: checking for $ac_word" >&5
     3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    33703149if test "${ac_cv_path_XAR+set}" = set; then
    33713150  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    33823161  test -z "$as_dir" && as_dir=.
    33833162  for ac_exec_ext in '' $ac_executable_extensions; do
    3384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    33853164    ac_cv_path_XAR="$as_dir/$ac_word$ac_exec_ext"
    33863165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    33893168done
    33903169done
    3391 IFS=$as_save_IFS
    33923170
    33933171  ;;
     
    33953173fi
    33963174XAR=$ac_cv_path_XAR
     3175
    33973176if test -n "$XAR"; then
    3398   { echo "$as_me:$LINENO: result: $XAR" >&5
    3399 echo "${ECHO_T}$XAR" >&6; }
    3400 else
    3401   { echo "$as_me:$LINENO: result: no" >&5
    3402 echo "${ECHO_T}no" >&6; }
    3403 fi
    3404 
     3177  echo "$as_me:$LINENO: result: $XAR" >&5
     3178echo "${ECHO_T}$XAR" >&6
     3179else
     3180  echo "$as_me:$LINENO: result: no" >&5
     3181echo "${ECHO_T}no" >&6
     3182fi
    34053183
    34063184# Extract the first word of "open", so it can be a program name with args.
    34073185set dummy open; ac_word=$2
    3408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3186echo "$as_me:$LINENO: checking for $ac_word" >&5
     3187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    34103188if test "${ac_cv_path_OPEN+set}" = set; then
    34113189  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    34223200  test -z "$as_dir" && as_dir=.
    34233201  for ac_exec_ext in '' $ac_executable_extensions; do
    3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    34253203    ac_cv_path_OPEN="$as_dir/$ac_word$ac_exec_ext"
    34263204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    34293207done
    34303208done
    3431 IFS=$as_save_IFS
    34323209
    34333210  ;;
     
    34353212fi
    34363213OPEN=$ac_cv_path_OPEN
     3214
    34373215if test -n "$OPEN"; then
    3438   { echo "$as_me:$LINENO: result: $OPEN" >&5
    3439 echo "${ECHO_T}$OPEN" >&6; }
    3440 else
    3441   { echo "$as_me:$LINENO: result: no" >&5
    3442 echo "${ECHO_T}no" >&6; }
    3443 fi
    3444 
     3216  echo "$as_me:$LINENO: result: $OPEN" >&5
     3217echo "${ECHO_T}$OPEN" >&6
     3218else
     3219  echo "$as_me:$LINENO: result: no" >&5
     3220echo "${ECHO_T}no" >&6
     3221fi
    34453222
    34463223
     
    34593236        # Extract the first word of "tar", so it can be a program name with args.
    34603237set dummy tar; ac_word=$2
    3461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3238echo "$as_me:$LINENO: checking for $ac_word" >&5
     3239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    34633240if test "${ac_cv_path_TAR+set}" = set; then
    34643241  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    34753252  test -z "$as_dir" && as_dir=.
    34763253  for ac_exec_ext in '' $ac_executable_extensions; do
    3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    34783255    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
    34793256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    34823259done
    34833260done
    3484 IFS=$as_save_IFS
    34853261
    34863262  ;;
     
    34883264fi
    34893265TAR=$ac_cv_path_TAR
     3266
    34903267if test -n "$TAR"; then
    3491   { echo "$as_me:$LINENO: result: $TAR" >&5
    3492 echo "${ECHO_T}$TAR" >&6; }
    3493 else
    3494   { echo "$as_me:$LINENO: result: no" >&5
    3495 echo "${ECHO_T}no" >&6; }
    3496 fi
    3497 
     3268  echo "$as_me:$LINENO: result: $TAR" >&5
     3269echo "${ECHO_T}$TAR" >&6
     3270else
     3271  echo "$as_me:$LINENO: result: no" >&5
     3272echo "${ECHO_T}no" >&6
     3273fi
    34983274
    34993275        # Extract the first word of "gnutar", so it can be a program name with args.
    35003276set dummy gnutar; ac_word=$2
    3501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
    3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
     3277echo "$as_me:$LINENO: checking for $ac_word" >&5
     3278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    35033279if test "${ac_cv_path_GNUTAR+set}" = set; then
    35043280  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    35153291  test -z "$as_dir" && as_dir=.
    35163292  for ac_exec_ext in '' $ac_executable_extensions; do
    3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    35183294    ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
    35193295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     
    35223298done
    35233299done
    3524 IFS=$as_save_IFS
    35253300
    35263301  ;;
     
    35283303fi
    35293304GNUTAR=$ac_cv_path_GNUTAR
     3305
    35303306if test -n "$GNUTAR"; then
    3531   { echo "$as_me:$LINENO: result: $GNUTAR" >&5
    3532 echo "${ECHO_T}$GNUTAR" >&6; }
    3533 else
    3534   { echo "$as_me:$LINENO: result: no" >&5
    3535 echo "${ECHO_T}no" >&6; }
    3536 fi
    3537 
    3538 
    3539 
    3540         { echo "$as_me:$LINENO: checking for which tar variant to use" >&5
    3541 echo $ECHO_N "checking for which tar variant to use... $ECHO_C" >&6; }
     3307  echo "$as_me:$LINENO: result: $GNUTAR" >&5
     3308echo "${ECHO_T}$GNUTAR" >&6
     3309else
     3310  echo "$as_me:$LINENO: result: no" >&5
     3311echo "${ECHO_T}no" >&6
     3312fi
     3313
     3314
     3315        echo "$as_me:$LINENO: checking for which tar variant to use" >&5
     3316echo $ECHO_N "checking for which tar variant to use... $ECHO_C" >&6
    35423317        if test -n "$GNUTAR"; then
    35433318  TAR_CMD=$GNUTAR
     
    35463321fi
    35473322
    3548         { echo "$as_me:$LINENO: result: $TAR_CMD" >&5
    3549 echo "${ECHO_T}$TAR_CMD" >&6; }
    3550 
    3551 
    3552         { echo "$as_me:$LINENO: checking for $TAR_CMD --no-same-owner support" >&5
    3553 echo $ECHO_N "checking for $TAR_CMD --no-same-owner support... $ECHO_C" >&6; }
     3323        echo "$as_me:$LINENO: result: $TAR_CMD" >&5
     3324echo "${ECHO_T}$TAR_CMD" >&6
     3325
     3326
     3327        echo "$as_me:$LINENO: checking for $TAR_CMD --no-same-owner support" >&5
     3328echo $ECHO_N "checking for $TAR_CMD --no-same-owner support... $ECHO_C" >&6
    35543329        no_same_owner_support=`$TAR_CMD --help 2>&1 | grep no-same-owner`
    35553330        if test -z "$no_same_owner_support" ; then
    3556                 { echo "$as_me:$LINENO: result: no" >&5
    3557 echo "${ECHO_T}no" >&6; }
     3331                echo "$as_me:$LINENO: result: no" >&5
     3332echo "${ECHO_T}no" >&6
    35583333        else
    3559                 { echo "$as_me:$LINENO: result: yes" >&5
    3560 echo "${ECHO_T}yes" >&6; }
     3334                echo "$as_me:$LINENO: result: yes" >&5
     3335echo "${ECHO_T}yes" >&6
    35613336                TAR_CMD="$TAR_CMD --no-same-owner"
    35623337        fi
     
    35703345
    35713346
    3572 
    3573         { echo "$as_me:$LINENO: checking how to mark unused variables" >&5
    3574 echo $ECHO_N "checking how to mark unused variables... $ECHO_C" >&6; }
     3347        # Check whether --enable-werror or --disable-werror was given.
     3348if test "${enable_werror+set}" = set; then
     3349  enableval="$enable_werror"
     3350  enable_werror=${enableval}
     3351else
     3352  enable_werror=no
     3353fi;
     3354        if test x"$enable_werror" != "xno"; then
     3355                CFLAGS_WERROR="-Werror"
     3356        else
     3357                CFLAGS_WERROR=""
     3358        fi
     3359
     3360
     3361
     3362
     3363
     3364        echo "$as_me:$LINENO: checking how to mark unused variables" >&5
     3365echo $ECHO_N "checking how to mark unused variables... $ECHO_C" >&6
    35753366        cat >conftest.$ac_ext <<_ACEOF
    35763367/* confdefs.h.  */
     
    35823373_ACEOF
    35833374rm -f conftest.$ac_objext
    3584 if { (ac_try="$ac_compile"
    3585 case "(($ac_try" in
    3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3587   *) ac_try_echo=$ac_try;;
    3588 esac
    3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3590   (eval "$ac_compile") 2>conftest.er1
     3375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3376  (eval $ac_compile) 2>conftest.er1
    35913377  ac_status=$?
    35923378  grep -v '^ *+' conftest.er1 >conftest.err
     
    35943380  cat conftest.err >&5
    35953381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3596   (exit $ac_status); } && {
    3597          test -z "$ac_c_werror_flag" ||
    3598          test ! -s conftest.err
    3599        } && test -s conftest.$ac_objext; then
     3382  (exit $ac_status); } &&
     3383         { ac_try='test -z "$ac_c_werror_flag"
     3384                         || test ! -s conftest.err'
     3385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3386  (eval $ac_try) 2>&5
     3387  ac_status=$?
     3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3389  (exit $ac_status); }; } &&
     3390         { ac_try='test -s conftest.$ac_objext'
     3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3392  (eval $ac_try) 2>&5
     3393  ac_status=$?
     3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3395  (exit $ac_status); }; }; then
    36003396
    36013397cat >>confdefs.h <<\_ACEOF
     
    36073403sed 's/^/| /' conftest.$ac_ext >&5
    36083404
    3609         cat >>confdefs.h <<\_ACEOF
     3405cat >>confdefs.h <<\_ACEOF
    36103406#define UNUSED
    36113407_ACEOF
    36123408
    36133409fi
    3614 
    3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    3616 
    3617         { echo "$as_me:$LINENO: result: " >&5
    3618 echo "${ECHO_T}" >&6; }
    3619 
    3620 
    3621 
    3622 
    3623         FRAMEWORK_LIBS="-framework CoreFoundation"
    3624 
    3625         { echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
    3626 echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6; }
    3627 
    3628         if test "${od_cv_have_framework_corefoundation+set}" = set; then
     3410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3411
     3412        echo "$as_me:$LINENO: result: " >&5
     3413echo "${ECHO_T}" >&6
     3414
     3415
     3416
     3417        echo "$as_me:$LINENO: checking for gcc symbol visibility attribute" >&5
     3418echo $ECHO_N "checking for gcc symbol visibility attribute... $ECHO_C" >&6
     3419        if test "${mp_cv_attribute_mp_private+set}" = set; then
    36293420  echo $ECHO_N "(cached) $ECHO_C" >&6
    36303421else
    3631 
    3632                 ac_save_LIBS="$LIBS"
    3633                 LIBS="$FRAMEWORK_LIBS $LIBS"
    36343422
    36353423                cat >conftest.$ac_ext <<_ACEOF
     
    36413429/* end confdefs.h.  */
    36423430
    3643                                         #include <CoreFoundation/CoreFoundation.h>
     3431                                #if defined(__GNUC__) && defined(__APPLE__) && __GNUC__ < 4
     3432                                # error Darwin does not support the visibility attribute with gcc releases prior to 4
     3433                                #elif defined(WIN32) && __GNUC__ < 4
     3434                                # error MinGW/Cygwin do not support the visibility attribute with gcc releases prior to 4.
     3435                                #endif
     3436                                int a __attribute__ ((visibility("hidden")));
     3437
     3438
     3439_ACEOF
     3440rm -f conftest.$ac_objext
     3441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3442  (eval $ac_compile) 2>conftest.er1
     3443  ac_status=$?
     3444  grep -v '^ *+' conftest.er1 >conftest.err
     3445  rm -f conftest.er1
     3446  cat conftest.err >&5
     3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3448  (exit $ac_status); } &&
     3449         { ac_try='test -z "$ac_c_werror_flag"
     3450                         || test ! -s conftest.err'
     3451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3452  (eval $ac_try) 2>&5
     3453  ac_status=$?
     3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3455  (exit $ac_status); }; } &&
     3456         { ac_try='test -s conftest.$ac_objext'
     3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3458  (eval $ac_try) 2>&5
     3459  ac_status=$?
     3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3461  (exit $ac_status); }; }; then
     3462
     3463                        mp_cv_attribute_mp_private="__attribute__((visibility(\"hidden\")))"
     3464
     3465else
     3466  echo "$as_me: failed program was:" >&5
     3467sed 's/^/| /' conftest.$ac_ext >&5
     3468
     3469
     3470                        mp_cv_attribute_mp_private="no"
     3471
     3472fi
     3473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3474
     3475fi
     3476
     3477
     3478        echo "$as_me:$LINENO: result: $mp_cv_attribute_mp_private" >&5
     3479echo "${ECHO_T}$mp_cv_attribute_mp_private" >&6
     3480
     3481        if test x"$mp_cv_attribute_mp_private" = "xno"; then
     3482                MP_PRIVATE=""
     3483        else
     3484                MP_PRIVATE="$mp_cv_attribute_mp_private"
     3485        fi
     3486
     3487
     3488cat >>confdefs.h <<_ACEOF
     3489#define MP_PRIVATE $MP_PRIVATE
     3490_ACEOF
     3491
     3492
     3493
     3494# Foundation checks
     3495
     3496ac_ext=m
     3497ac_cpp='$OBJCPP $CPPFLAGS'
     3498ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3499ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3500ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     3501echo "$as_me:$LINENO: checking how to run the Objective C preprocessor" >&5
     3502echo $ECHO_N "checking how to run the Objective C preprocessor... $ECHO_C" >&6
     3503if test -z "$OBJCPP"; then
     3504  if test "${ac_cv_prog_OBJCPP+set}" = set; then
     3505  echo $ECHO_N "(cached) $ECHO_C" >&6
     3506else
     3507      # Double quotes because OBJCPP needs to be expanded
     3508    for OBJCPP in "$OBJC -E" "/lib/cpp"
     3509    do
     3510      ac_preproc_ok=false
     3511for ac_objc_preproc_warn_flag in '' yes
     3512do
     3513  # Use a header file that comes with gcc, so configuring glibc
     3514  # with a fresh cross-compiler works.
     3515  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3516  # <limits.h> exists even on freestanding compilers.
     3517  # On the NeXT, cc -E runs the code through the compiler's parser,
     3518  # not just through cpp. "Syntax error" is here to catch this case.
     3519  cat >conftest.$ac_ext <<_ACEOF
     3520/* confdefs.h.  */
     3521_ACEOF
     3522cat confdefs.h >>conftest.$ac_ext
     3523cat >>conftest.$ac_ext <<_ACEOF
     3524/* end confdefs.h.  */
     3525#ifdef __STDC__
     3526# include <limits.h>
     3527#else
     3528# include <assert.h>
     3529#endif
     3530                     Syntax error
     3531_ACEOF
     3532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3533  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3534  ac_status=$?
     3535  grep -v '^ *+' conftest.er1 >conftest.err
     3536  rm -f conftest.er1
     3537  cat conftest.err >&5
     3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3539  (exit $ac_status); } >/dev/null; then
     3540  if test -s conftest.err; then
     3541    ac_cpp_err=$ac_objc_preproc_warn_flag
     3542    ac_cpp_err=$ac_cpp_err$ac_objc_werror_flag
     3543  else
     3544    ac_cpp_err=
     3545  fi
     3546else
     3547  ac_cpp_err=yes
     3548fi
     3549if test -z "$ac_cpp_err"; then
     3550  :
     3551else
     3552  echo "$as_me: failed program was:" >&5
     3553sed 's/^/| /' conftest.$ac_ext >&5
     3554
     3555  # Broken: fails on valid input.
     3556continue
     3557fi
     3558rm -f conftest.err conftest.$ac_ext
     3559
     3560  # OK, works on sane cases.  Now check whether non-existent headers
     3561  # can be detected and how.
     3562  cat >conftest.$ac_ext <<_ACEOF
     3563/* confdefs.h.  */
     3564_ACEOF
     3565cat confdefs.h >>conftest.$ac_ext
     3566cat >>conftest.$ac_ext <<_ACEOF
     3567/* end confdefs.h.  */
     3568#include <ac_nonexistent.h>
     3569_ACEOF
     3570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3571  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3572  ac_status=$?
     3573  grep -v '^ *+' conftest.er1 >conftest.err
     3574  rm -f conftest.er1
     3575  cat conftest.err >&5
     3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3577  (exit $ac_status); } >/dev/null; then
     3578  if test -s conftest.err; then
     3579    ac_cpp_err=$ac_objc_preproc_warn_flag
     3580    ac_cpp_err=$ac_cpp_err$ac_objc_werror_flag
     3581  else
     3582    ac_cpp_err=
     3583  fi
     3584else
     3585  ac_cpp_err=yes
     3586fi
     3587if test -z "$ac_cpp_err"; then
     3588  # Broken: success on invalid input.
     3589continue
     3590else
     3591  echo "$as_me: failed program was:" >&5
     3592sed 's/^/| /' conftest.$ac_ext >&5
     3593
     3594  # Passes both tests.
     3595ac_preproc_ok=:
     3596break
     3597fi
     3598rm -f conftest.err conftest.$ac_ext
     3599
     3600done
     3601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3602rm -f conftest.err conftest.$ac_ext
     3603if $ac_preproc_ok; then
     3604  break
     3605fi
     3606
     3607    done
     3608    ac_cv_prog_OBJCPP=$OBJCPP
     3609
     3610fi
     3611  OBJCPP=$ac_cv_prog_OBJCPP
     3612else
     3613  ac_cv_prog_OBJCPP=$OBJCPP
     3614fi
     3615echo "$as_me:$LINENO: result: $OBJCPP" >&5
     3616echo "${ECHO_T}$OBJCPP" >&6
     3617ac_preproc_ok=false
     3618for ac_objc_preproc_warn_flag in '' yes
     3619do
     3620  # Use a header file that comes with gcc, so configuring glibc
     3621  # with a fresh cross-compiler works.
     3622  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3623  # <limits.h> exists even on freestanding compilers.
     3624  # On the NeXT, cc -E runs the code through the compiler's parser,
     3625  # not just through cpp. "Syntax error" is here to catch this case.
     3626  cat >conftest.$ac_ext <<_ACEOF
     3627/* confdefs.h.  */
     3628_ACEOF
     3629cat confdefs.h >>conftest.$ac_ext
     3630cat >>conftest.$ac_ext <<_ACEOF
     3631/* end confdefs.h.  */
     3632#ifdef __STDC__
     3633# include <limits.h>
     3634#else
     3635# include <assert.h>
     3636#endif
     3637                     Syntax error
     3638_ACEOF
     3639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3640  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3641  ac_status=$?
     3642  grep -v '^ *+' conftest.er1 >conftest.err
     3643  rm -f conftest.er1
     3644  cat conftest.err >&5
     3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3646  (exit $ac_status); } >/dev/null; then
     3647  if test -s conftest.err; then
     3648    ac_cpp_err=$ac_objc_preproc_warn_flag
     3649    ac_cpp_err=$ac_cpp_err$ac_objc_werror_flag
     3650  else
     3651    ac_cpp_err=
     3652  fi
     3653else
     3654  ac_cpp_err=yes
     3655fi
     3656if test -z "$ac_cpp_err"; then
     3657  :
     3658else
     3659  echo "$as_me: failed program was:" >&5
     3660sed 's/^/| /' conftest.$ac_ext >&5
     3661
     3662  # Broken: fails on valid input.
     3663continue
     3664fi
     3665rm -f conftest.err conftest.$ac_ext
     3666
     3667  # OK, works on sane cases.  Now check whether non-existent headers
     3668  # can be detected and how.
     3669  cat >conftest.$ac_ext <<_ACEOF
     3670/* confdefs.h.  */
     3671_ACEOF
     3672cat confdefs.h >>conftest.$ac_ext
     3673cat >>conftest.$ac_ext <<_ACEOF
     3674/* end confdefs.h.  */
     3675#include <ac_nonexistent.h>
     3676_ACEOF
     3677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3679  ac_status=$?
     3680  grep -v '^ *+' conftest.er1 >conftest.err
     3681  rm -f conftest.er1
     3682  cat conftest.err >&5
     3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3684  (exit $ac_status); } >/dev/null; then
     3685  if test -s conftest.err; then
     3686    ac_cpp_err=$ac_objc_preproc_warn_flag
     3687    ac_cpp_err=$ac_cpp_err$ac_objc_werror_flag
     3688  else
     3689    ac_cpp_err=
     3690  fi
     3691else
     3692  ac_cpp_err=yes
     3693fi
     3694if test -z "$ac_cpp_err"; then
     3695  # Broken: success on invalid input.
     3696continue
     3697else
     3698  echo "$as_me: failed program was:" >&5
     3699sed 's/^/| /' conftest.$ac_ext >&5
     3700
     3701  # Passes both tests.
     3702ac_preproc_ok=:
     3703break
     3704fi
     3705rm -f conftest.err conftest.$ac_ext
     3706
     3707done
     3708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3709rm -f conftest.err conftest.$ac_ext
     3710if $ac_preproc_ok; then
     3711  :
     3712else
     3713  { { echo "$as_me:$LINENO: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
     3714See \`config.log' for more details." >&5
     3715echo "$as_me: error: Objective C preprocessor \"$OBJCPP\" fails sanity check
     3716See \`config.log' for more details." >&2;}
     3717   { (exit 1); exit 1; }; }
     3718fi
     3719
     3720ac_ext=m
     3721ac_cpp='$OBJCPP $CPPFLAGS'
     3722ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3723ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3724ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     3725
     3726
     3727echo "$as_me:$LINENO: checking for egrep" >&5
     3728echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3729if test "${ac_cv_prog_egrep+set}" = set; then
     3730  echo $ECHO_N "(cached) $ECHO_C" >&6
     3731else
     3732  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3733    then ac_cv_prog_egrep='grep -E'
     3734    else ac_cv_prog_egrep='egrep'
     3735    fi
     3736fi
     3737echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3738echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3739 EGREP=$ac_cv_prog_egrep
     3740
     3741
     3742echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3743echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3744if test "${ac_cv_header_stdc+set}" = set; then
     3745  echo $ECHO_N "(cached) $ECHO_C" >&6
     3746else
     3747  cat >conftest.$ac_ext <<_ACEOF
     3748/* confdefs.h.  */
     3749_ACEOF
     3750cat confdefs.h >>conftest.$ac_ext
     3751cat >>conftest.$ac_ext <<_ACEOF
     3752/* end confdefs.h.  */
     3753#include <stdlib.h>
     3754#include <stdarg.h>
     3755#include <string.h>
     3756#include <float.h>
    36443757
    36453758int
     
    36473760{
    36483761
    3649                                         CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
    3650                                         CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
    3651 
    36523762  ;
    36533763  return 0;
    36543764}
    3655 
    3656 _ACEOF
    3657 rm -f conftest.$ac_objext conftest$ac_exeext
    3658 if { (ac_try="$ac_link"
    3659 case "(($ac_try" in
    3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3661   *) ac_try_echo=$ac_try;;
    3662 esac
    3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3664   (eval "$ac_link") 2>conftest.er1
     3765_ACEOF
     3766rm -f conftest.$ac_objext
     3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3768  (eval $ac_compile) 2>conftest.er1
    36653769  ac_status=$?
    36663770  grep -v '^ *+' conftest.er1 >conftest.err
     
    36683772  cat conftest.err >&5
    36693773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3670   (exit $ac_status); } && {
    3671          test -z "$ac_c_werror_flag" ||
    3672          test ! -s conftest.err
    3673        } && test -s conftest$ac_exeext &&
    3674        $as_test_x conftest$ac_exeext; then
    3675 
    3676                                 od_cv_have_framework_corefoundation="yes"
    3677 
     3774  (exit $ac_status); } &&
     3775         { ac_try='test -z "$ac_objc_werror_flag"
     3776                         || test ! -s conftest.err'
     3777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3778  (eval $ac_try) 2>&5
     3779  ac_status=$?
     3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3781  (exit $ac_status); }; } &&
     3782         { ac_try='test -s conftest.$ac_objext'
     3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3784  (eval $ac_try) 2>&5
     3785  ac_status=$?
     3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3787  (exit $ac_status); }; }; then
     3788  ac_cv_header_stdc=yes
    36783789else
    36793790  echo "$as_me: failed program was:" >&5
    36803791sed 's/^/| /' conftest.$ac_ext >&5
    36813792
    3682 
    3683                                 od_cv_have_framework_corefoundation="no"
    3684 
    3685 
    3686 fi
    3687 
    3688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
    3689       conftest$ac_exeext conftest.$ac_ext
    3690 
    3691                 LIBS="$ac_save_LIBS"
    3692 
    3693 fi
    3694 
    3695 
    3696         { echo "$as_me:$LINENO: result: ${od_cv_have_framework_corefoundation}" >&5
    3697 echo "${ECHO_T}${od_cv_have_framework_corefoundation}" >&6; }
    3698 
    3699         if test x"${od_cv_have_framework_corefoundation}" = "xyes"; then
    3700 
    3701 cat >>confdefs.h <<\_ACEOF
    3702 #define HAVE_FRAMEWORK_COREFOUNDATION
    3703 _ACEOF
    3704 
    3705         fi
    3706 
    3707 
    3708 
    3709 
    3710         FRAMEWORK_LIBS="-framework SystemConfiguration"
    3711 
    3712         { echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
    3713 echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6; }
    3714 
    3715         if test "${od_cv_have_framework_systemconfiguration+set}" = set; then
    3716   echo $ECHO_N "(cached) $ECHO_C" >&6
    3717 else
    3718 
    3719                 ac_save_LIBS="$LIBS"
    3720                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3721 
    3722                 cat >conftest.$ac_ext <<_ACEOF
    3723 
    3724                         /* confdefs.h.  */
     3793ac_cv_header_stdc=no
     3794fi
     3795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3796
     3797if test $ac_cv_header_stdc = yes; then
     3798  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3799  cat >conftest.$ac_ext <<_ACEOF
     3800/* confdefs.h.  */
    37253801_ACEOF
    37263802cat confdefs.h >>conftest.$ac_ext
    37273803cat >>conftest.$ac_ext <<_ACEOF
    37283804/* end confdefs.h.  */
    3729 
    3730                                         #include <SystemConfiguration/SystemConfiguration.h>
    3731 
     3805#include <string.h>
     3806
     3807_ACEOF
     3808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3809  $EGREP "memchr" >/dev/null 2>&1; then
     3810  :
     3811else
     3812  ac_cv_header_stdc=no
     3813fi
     3814rm -f conftest*
     3815
     3816fi
     3817
     3818if test $ac_cv_header_stdc = yes; then
     3819  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3820  cat >conftest.$ac_ext <<_ACEOF
     3821/* confdefs.h.  */
     3822_ACEOF
     3823cat confdefs.h >>conftest.$ac_ext
     3824cat >>conftest.$ac_ext <<_ACEOF
     3825/* end confdefs.h.  */
     3826#include <stdlib.h>
     3827
     3828_ACEOF
     3829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3830  $EGREP "free" >/dev/null 2>&1; then
     3831  :
     3832else
     3833  ac_cv_header_stdc=no
     3834fi
     3835rm -f conftest*
     3836
     3837fi
     3838
     3839if test $ac_cv_header_stdc = yes; then
     3840  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3841  if test "$cross_compiling" = yes; then
     3842  :
     3843else
     3844  cat >conftest.$ac_ext <<_ACEOF
     3845/* confdefs.h.  */
     3846_ACEOF
     3847cat confdefs.h >>conftest.$ac_ext
     3848cat >>conftest.$ac_ext <<_ACEOF
     3849/* end confdefs.h.  */
     3850#include <ctype.h>
     3851#if ((' ' & 0x0FF) == 0x020)
     3852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3854#else
     3855# define ISLOWER(c) \
     3856                   (('a' <= (c) && (c) <= 'i') \
     3857                     || ('j' <= (c) && (c) <= 'r') \
     3858                     || ('s' <= (c) && (c) <= 'z'))
     3859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3860#endif
     3861
     3862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    37323863int
    37333864main ()
    37343865{
    3735 
    3736                                         int err = SCError();
    3737                                         SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
     3866  int i;
     3867  for (i = 0; i < 256; i++)
     3868    if (XOR (islower (i), ISLOWER (i))
     3869        || toupper (i) != TOUPPER (i))
     3870      exit(2);
     3871  exit (0);
     3872}
     3873_ACEOF
     3874rm -f conftest$ac_exeext
     3875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3876  (eval $ac_link) 2>&5
     3877  ac_status=$?
     3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3879  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3881  (eval $ac_try) 2>&5
     3882  ac_status=$?
     3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3884  (exit $ac_status); }; }; then
     3885  :
     3886else
     3887  echo "$as_me: program exited with status $ac_status" >&5
     3888echo "$as_me: failed program was:" >&5
     3889sed 's/^/| /' conftest.$ac_ext >&5
     3890
     3891( exit $ac_status )
     3892ac_cv_header_stdc=no
     3893fi
     3894rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3895fi
     3896fi
     3897fi
     3898echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     3899echo "${ECHO_T}$ac_cv_header_stdc" >&6
     3900if test $ac_cv_header_stdc = yes; then
     3901
     3902cat >>confdefs.h <<\_ACEOF
     3903#define STDC_HEADERS 1
     3904_ACEOF
     3905
     3906fi
     3907
     3908# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3909
     3910
     3911
     3912
     3913
     3914
     3915
     3916
     3917
     3918for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3919                  inttypes.h stdint.h unistd.h
     3920do
     3921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3922echo "$as_me:$LINENO: checking for $ac_header" >&5
     3923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     3924if eval "test \"\${$as_ac_Header+set}\" = set"; then
     3925  echo $ECHO_N "(cached) $ECHO_C" >&6
     3926else
     3927  cat >conftest.$ac_ext <<_ACEOF
     3928/* confdefs.h.  */
     3929_ACEOF
     3930cat confdefs.h >>conftest.$ac_ext
     3931cat >>conftest.$ac_ext <<_ACEOF
     3932/* end confdefs.h.  */
     3933$ac_includes_default
     3934
     3935#include <$ac_header>
     3936_ACEOF
     3937rm -f conftest.$ac_objext
     3938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3939  (eval $ac_compile) 2>conftest.er1
     3940  ac_status=$?
     3941  grep -v '^ *+' conftest.er1 >conftest.err
     3942  rm -f conftest.er1
     3943  cat conftest.err >&5
     3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3945  (exit $ac_status); } &&
     3946         { ac_try='test -z "$ac_objc_werror_flag"
     3947                         || test ! -s conftest.err'
     3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3949  (eval $ac_try) 2>&5
     3950  ac_status=$?
     3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3952  (exit $ac_status); }; } &&
     3953         { ac_try='test -s conftest.$ac_objext'
     3954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3955  (eval $ac_try) 2>&5
     3956  ac_status=$?
     3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3958  (exit $ac_status); }; }; then
     3959  eval "$as_ac_Header=yes"
     3960else
     3961  echo "$as_me: failed program was:" >&5
     3962sed 's/^/| /' conftest.$ac_ext >&5
     3963
     3964eval "$as_ac_Header=no"
     3965fi
     3966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3967fi
     3968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     3969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     3970if test `eval echo '${'$as_ac_Header'}'` = yes; then
     3971  cat >>confdefs.h <<_ACEOF
     3972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3973_ACEOF
     3974
     3975fi
     3976
     3977done
     3978
     3979
     3980
     3981
     3982
     3983# Check whether --with-objc-runtime or --without-objc-runtime was given.
     3984if test "${with_objc_runtime+set}" = set; then
     3985  withval="$with_objc_runtime"
     3986  with_objc_runtime=${withval}
     3987fi;
     3988
     3989        if test x"${with_objc_runtime}" != x; then
     3990                case "${with_objc_runtime}" in
     3991                        GNU)
     3992                                ;;
     3993                        apple)
     3994                                ;;
     3995                        *)
     3996                                { { echo "$as_me:$LINENO: error: ${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either \"GNU\" or \"apple\"" >&5
     3997echo "$as_me: error: ${with_objc_runtime} is not a valid argument to --with-objc-runtime. Please specify either \"GNU\" or \"apple\"" >&2;}
     3998   { (exit 1); exit 1; }; }
     3999                                ;;
     4000                esac
     4001        fi
     4002
     4003        ac_ext=m
     4004ac_cpp='$OBJCPP $CPPFLAGS'
     4005ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4006ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4007ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     4008
     4009
     4010        # Check for common header, objc/objc.h
     4011
     4012for ac_header in objc/objc.h
     4013do
     4014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4015if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4016  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4018if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4019  echo $ECHO_N "(cached) $ECHO_C" >&6
     4020fi
     4021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4023else
     4024  # Is the header compilable?
     4025echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4027cat >conftest.$ac_ext <<_ACEOF
     4028/* confdefs.h.  */
     4029_ACEOF
     4030cat confdefs.h >>conftest.$ac_ext
     4031cat >>conftest.$ac_ext <<_ACEOF
     4032/* end confdefs.h.  */
     4033$ac_includes_default
     4034#include <$ac_header>
     4035_ACEOF
     4036rm -f conftest.$ac_objext
     4037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4038  (eval $ac_compile) 2>conftest.er1
     4039  ac_status=$?
     4040  grep -v '^ *+' conftest.er1 >conftest.err
     4041  rm -f conftest.er1
     4042  cat conftest.err >&5
     4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4044  (exit $ac_status); } &&
     4045         { ac_try='test -z "$ac_objc_werror_flag"
     4046                         || test ! -s conftest.err'
     4047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4048  (eval $ac_try) 2>&5
     4049  ac_status=$?
     4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4051  (exit $ac_status); }; } &&
     4052         { ac_try='test -s conftest.$ac_objext'
     4053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4054  (eval $ac_try) 2>&5
     4055  ac_status=$?
     4056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4057  (exit $ac_status); }; }; then
     4058  ac_header_compiler=yes
     4059else
     4060  echo "$as_me: failed program was:" >&5
     4061sed 's/^/| /' conftest.$ac_ext >&5
     4062
     4063ac_header_compiler=no
     4064fi
     4065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4067echo "${ECHO_T}$ac_header_compiler" >&6
     4068
     4069# Is the header present?
     4070echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4072cat >conftest.$ac_ext <<_ACEOF
     4073/* confdefs.h.  */
     4074_ACEOF
     4075cat confdefs.h >>conftest.$ac_ext
     4076cat >>conftest.$ac_ext <<_ACEOF
     4077/* end confdefs.h.  */
     4078#include <$ac_header>
     4079_ACEOF
     4080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4082  ac_status=$?
     4083  grep -v '^ *+' conftest.er1 >conftest.err
     4084  rm -f conftest.er1
     4085  cat conftest.err >&5
     4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4087  (exit $ac_status); } >/dev/null; then
     4088  if test -s conftest.err; then
     4089    ac_cpp_err=$ac_objc_preproc_warn_flag
     4090    ac_cpp_err=$ac_cpp_err$ac_objc_werror_flag
     4091  else
     4092    ac_cpp_err=
     4093  fi
     4094else
     4095  ac_cpp_err=yes
     4096fi
     4097if test -z "$ac_cpp_err"; then
     4098  ac_header_preproc=yes
     4099else
     4100  echo "$as_me: failed program was:" >&5
     4101sed 's/^/| /' conftest.$ac_ext >&5
     4102
     4103  ac_header_preproc=no
     4104fi
     4105rm -f conftest.err conftest.$ac_ext
     4106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4107echo "${ECHO_T}$ac_header_preproc" >&6
     4108
     4109# So?  What about this header?
     4110case $ac_header_compiler:$ac_header_preproc:$ac_objc_preproc_warn_flag in
     4111  yes:no: )
     4112    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4114    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     4115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     4116    ac_header_preproc=yes
     4117    ;;
     4118  no:yes:* )
     4119    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4121    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     4122echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     4123    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     4124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     4125    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     4126echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     4127    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4129    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     4130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     4131    (
     4132      cat <<\_ASBOX
     4133## ------------------------------------------------ ##
     4134## Report this to macports-dev@lists.macosforge.org ##
     4135## ------------------------------------------------ ##
     4136_ASBOX
     4137    ) |
     4138      sed "s/^/$as_me: WARNING:     /" >&2
     4139    ;;
     4140esac
     4141echo "$as_me:$LINENO: checking for $ac_header" >&5
     4142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4143if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4144  echo $ECHO_N "(cached) $ECHO_C" >&6
     4145else
     4146  eval "$as_ac_Header=\$ac_header_preproc"
     4147fi
     4148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4150
     4151fi
     4152if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4153  cat >>confdefs.h <<_ACEOF
     4154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4155_ACEOF
     4156
     4157else
     4158  { { echo "$as_me:$LINENO: error: Can't locate Objective C runtime headers" >&5
     4159echo "$as_me: error: Can't locate Objective C runtime headers" >&2;}
     4160   { (exit 1); exit 1; }; }
     4161fi
     4162
     4163done
     4164
     4165
     4166        # Save LIBS & OBJCFLAGS
     4167        # depending on whether the cache is used,
     4168        # the variables may or may not be modified.
     4169        OLD_LIBS="${LIBS}"
     4170        OLD_OBJCFLAGS="${OBJCFLAGS}"
     4171
     4172        # Add -lobjc. The following tests will ensure that the library exists and functions with the detected Objective C compiler
     4173        LIBS="${LIBS} -lobjc"
     4174
     4175        # Test if pthreads are required to link against
     4176        # libobjc - this is the case on FreeBSD.
     4177
     4178        echo "$as_me:$LINENO: checking if linking libobjc requires pthreads" >&5
     4179echo $ECHO_N "checking if linking libobjc requires pthreads... $ECHO_C" >&6
     4180        if test "${od_cv_objc_req_pthread+set}" = set; then
     4181  echo $ECHO_N "(cached) $ECHO_C" >&6
     4182else
     4183
     4184                # First, test if objc links without pthreads
     4185                # The following uses quadrigraphs
     4186                # '[' = '['
     4187                # ']' = ']'
     4188                cat >conftest.$ac_ext <<_ACEOF
     4189
     4190                                /* confdefs.h.  */
     4191_ACEOF
     4192cat confdefs.h >>conftest.$ac_ext
     4193cat >>conftest.$ac_ext <<_ACEOF
     4194/* end confdefs.h.  */
     4195
     4196                                                #include <objc/objc.h>
     4197                                                #include <objc/Object.h>
     4198
     4199int
     4200main ()
     4201{
     4202
     4203                                                Object *obj = [Object alloc];
     4204                                                puts([obj name]);
    37384205
    37394206  ;
     
    37434210_ACEOF
    37444211rm -f conftest.$ac_objext conftest$ac_exeext
    3745 if { (ac_try="$ac_link"
    3746 case "(($ac_try" in
    3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3748   *) ac_try_echo=$ac_try;;
    3749 esac
    3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3751   (eval "$ac_link") 2>conftest.er1
     4212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4213  (eval $ac_link) 2>conftest.er1
    37524214  ac_status=$?
    37534215  grep -v '^ *+' conftest.er1 >conftest.err
     
    37554217  cat conftest.err >&5
    37564218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3757   (exit $ac_status); } && {
    3758          test -z "$ac_c_werror_flag" ||
    3759          test ! -s conftest.err
    3760        } && test -s conftest$ac_exeext &&
    3761        $as_test_x conftest$ac_exeext; then
    3762 
    3763                                 od_cv_have_framework_systemconfiguration="yes"
     4219  (exit $ac_status); } &&
     4220         { ac_try='test -z "$ac_objc_werror_flag"
     4221                         || test ! -s conftest.err'
     4222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4223  (eval $ac_try) 2>&5
     4224  ac_status=$?
     4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4226  (exit $ac_status); }; } &&
     4227         { ac_try='test -s conftest$ac_exeext'
     4228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4229  (eval $ac_try) 2>&5
     4230  ac_status=$?
     4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4232  (exit $ac_status); }; }; then
     4233
     4234                                        # Linked without -pthread
     4235                                        od_cv_objc_req_pthread="no"
    37644236
    37654237else
     
    37684240
    37694241
    3770                                 od_cv_have_framework_systemconfiguration="no"
    3771 
    3772 
    3773 fi
    3774 
    3775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4242                                        # Failed to link without -pthread
     4243                                        od_cv_objc_req_pthread="yes"
     4244
     4245
     4246fi
     4247rm -f conftest.err conftest.$ac_objext \
    37764248      conftest$ac_exeext conftest.$ac_ext
    37774249
    3778                 LIBS="$ac_save_LIBS"
    3779 
    3780 fi
    3781 
    3782 
    3783         { echo "$as_me:$LINENO: result: ${od_cv_have_framework_systemconfiguration}" >&5
    3784 echo "${ECHO_T}${od_cv_have_framework_systemconfiguration}" >&6; }
    3785 
    3786         if test x"${od_cv_have_framework_systemconfiguration}" = "xyes"; then
    3787 
    3788 cat >>confdefs.h <<\_ACEOF
    3789 #define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
    3790 _ACEOF
    3791 
    3792         fi
    3793 
    3794 
    3795 
    3796 
    3797         FRAMEWORK_LIBS="-framework IOKit"
    3798 
    3799         { echo "$as_me:$LINENO: checking for IOKit framework" >&5
    3800 echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6; }
    3801 
    3802         if test "${od_cv_have_framework_iokit+set}" = set; then
    3803   echo $ECHO_N "(cached) $ECHO_C" >&6
    3804 else
    3805 
    3806                 ac_save_LIBS="$LIBS"
    3807                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3808 
    3809                 cat >conftest.$ac_ext <<_ACEOF
    3810 
    3811                         /* confdefs.h.  */
     4250                # If the above failed, try with pthreads
     4251                if test x"${od_cv_objc_req_pthread}" = x"yes"; then
     4252                        LIBS="${LIBS} ${PTHREAD_LIBS}"
     4253                        OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
     4254                        cat >conftest.$ac_ext <<_ACEOF
     4255
     4256                                        /* confdefs.h.  */
    38124257_ACEOF
    38134258cat confdefs.h >>conftest.$ac_ext
     
    38154260/* end confdefs.h.  */
    38164261
    3817                                         #include <IOKit/IOKitLib.h>
     4262                                                        #include <objc/objc.h>
     4263                                                        #include <objc/Object.h>
    38184264
    38194265int
     
    38214267{
    38224268
    3823                                         IOCreateReceivePort(0, NULL);
    3824                                         IORegisterForSystemPower(0, NULL, NULL, NULL);
     4269                                                        Object *obj = [Object alloc];
     4270                                                        puts([obj name]);
    38254271
    38264272  ;
     
    38304276_ACEOF
    38314277rm -f conftest.$ac_objext conftest$ac_exeext
    3832 if { (ac_try="$ac_link"
    3833 case "(($ac_try" in
    3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3835   *) ac_try_echo=$ac_try;;
    3836 esac
    3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3838   (eval "$ac_link") 2>conftest.er1
     4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4279  (eval $ac_link) 2>conftest.er1
    38394280  ac_status=$?
    38404281  grep -v '^ *+' conftest.er1 >conftest.err
     
    38424283  cat conftest.err >&5
    38434284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3844   (exit $ac_status); } && {
    3845          test -z "$ac_c_werror_flag" ||
    3846          test ! -s conftest.err
    3847        } && test -s conftest$ac_exeext &&
    3848        $as_test_x conftest$ac_exeext; then
    3849 
    3850                                 od_cv_have_framework_iokit="yes"
     4285  (exit $ac_status); } &&
     4286         { ac_try='test -z "$ac_objc_werror_flag"
     4287                         || test ! -s conftest.err'
     4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4289  (eval $ac_try) 2>&5
     4290  ac_status=$?
     4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4292  (exit $ac_status); }; } &&
     4293         { ac_try='test -s conftest$ac_exeext'
     4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4295  (eval $ac_try) 2>&5
     4296  ac_status=$?
     4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4298  (exit $ac_status); }; }; then
     4299
     4300                                                # Linked with -lpthread
     4301                                                od_cv_objc_req_pthread="yes"
    38514302
    38524303else
     
    38554306
    38564307
    3857                                 od_cv_have_framework_iokit="no"
    3858 
    3859 
    3860 fi
    3861 
    3862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     4308                                                # Failed to link against objc at all
     4309                                                # This will be caught in the runtime
     4310                                                # checks below
     4311                                                od_cv_objc_req_pthread="no"
     4312
     4313
     4314fi
     4315rm -f conftest.err conftest.$ac_objext \
    38634316      conftest$ac_exeext conftest.$ac_ext
    3864 
    3865                 LIBS="$ac_save_LIBS"
    3866 
    3867 fi
    3868 
    3869 
    3870         { echo "$as_me:$LINENO: result: ${od_cv_have_framework_iokit}" >&5
    3871 echo "${ECHO_T}${od_cv_have_framework_iokit}" >&6; }
    3872 
    3873         if test x"${od_cv_have_framework_iokit}" = "xyes"; then
    3874 
    3875 cat >>confdefs.h <<\_ACEOF
    3876 #define HAVE_FRAMEWORK_IOKIT
    3877 _ACEOF
    3878 
     4317                fi
     4318
     4319fi
     4320
     4321        echo "$as_me:$LINENO: result: ${od_cv_objc_req_pthread}" >&5
     4322echo "${ECHO_T}${od_cv_objc_req_pthread}" >&6
     4323
     4324        if test x"${od_cv_objc_req_pthread}" = x"no"; then
     4325                OBJC_LIBS="-lobjc"
     4326                OBJC_PTHREAD_LIBS="${PTHREAD_LIBS}"
     4327                OBJC_PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
     4328        elif test x"${od_cv_objc_req_pthread}" = x"yes"; then
     4329                OBJC_LIBS="-lobjc ${PTHREAD_LIBS}"
     4330                OBJCFLAGS="${OBJCFLAGS} ${PTHREAD_CFLAGS}"
    38794331        fi
    38804332
    3881 
    3882 
    3883 
    3884         FRAMEWORK_LIBS="-framework CoreFoundation"
    3885 
    3886         { echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
    3887 echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6; }
    3888 
    3889         if test "${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
     4333        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"apple"; then
     4334                echo "$as_me:$LINENO: checking for Apple Objective-C runtime" >&5
     4335echo $ECHO_N "checking for Apple Objective-C runtime... $ECHO_C" >&6
     4336                if test "${od_cv_objc_runtime_apple+set}" = set; then
    38904337  echo $ECHO_N "(cached) $ECHO_C" >&6
    38914338else
    38924339
    3893                 ac_save_LIBS="$LIBS"
    3894                 LIBS="$FRAMEWORK_LIBS $LIBS"
    3895 
    3896                 cat >conftest.$ac_ext <<_ACEOF
    3897 
    3898                         /* confdefs.h.  */
     4340                        # The following uses quadrigraphs
     4341                        # '[' = '['
     4342                        # ']' = ']'
     4343                        cat >conftest.$ac_ext <<_ACEOF
     4344
     4345                                        /* confdefs.h.  */
    38994346_ACEOF
    39004347cat confdefs.h >>conftest.$ac_ext
     
    39024349/* end confdefs.h.  */
    39034350
    3904                                         #include <CoreFoundation/CoreFoundation.h>
     4351                                                        #include <objc/objc.h>
     4352                                                        #include <objc/objc-api.h>
    39054353
    39064354int
     
    39084356{
    39094357
    3910                                         CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
     4358                                                        id class = objc_lookUpClass("Object");
     4359                                                        id obj = [class alloc];
     4360                                                        puts([obj name]);
    39114361
    39124362  ;
     
    39164366_ACEOF
    39174367rm -f conftest.$ac_objext conftest$ac_exeext
    3918 if { (ac_try="$ac_link"
    3919 case "(($ac_try" in
    3920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    3921   *) ac_try_echo=$ac_try;;
    3922 esac
    3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
    3924   (eval "$ac_link") 2>conftest.er1
     4368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4369  (eval $ac_link) 2>conftest.er1
    39254370  ac_status=$?
    39264371  grep -v '^ *+' conftest.er1 >conftest.err
     
    39284373  cat conftest.err >&5
    39294374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3930   (exit $ac_status); } && {
    3931          test -z "$ac_c_werror_flag" ||
    3932          test ! -s conftest.err
    3933        } && test -s conftest$ac_exeext &&
    3934        $as_test_x conftest$ac_exeext; then
    3935 
    3936                                 od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
     4375  (exit $ac_status); } &&
     4376         { ac_try='test -z "$ac_objc_werror_flag"
     4377                         || test ! -s conftest.err'
     4378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4379  (eval $ac_try) 2>&5
     4380  ac_status=$?
     4381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4382  (exit $ac_status); }; } &&
     4383         { ac_try='test -s conftest$ac_exeext'
     4384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4385  (eval $ac_try) 2>&5
     4386  ac_status=$?
     4387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4388  (exit $ac_status); }; }; then
     4389
     4390                                                od_cv_objc_runtime_apple="yes"
    39374391
    39384392else
     
    39414395
    39424396
     4397                                                od_cv_objc_runtime_apple="no"
     4398
     4399
     4400fi
     4401rm -f conftest.err conftest.$ac_objext \
     4402      conftest$ac_exeext conftest.$ac_ext
     4403
     4404fi
     4405
     4406                echo "$as_me:$LINENO: result: ${od_cv_objc_runtime_apple}" >&5
     4407echo "${ECHO_T}${od_cv_objc_runtime_apple}" >&6
     4408        else
     4409                od_cv_objc_runtime_apple="no"
     4410        fi
     4411
     4412        if test x"${with_objc_runtime}" = x || test x"${with_objc_runtime}" = x"GNU"; then
     4413                echo "$as_me:$LINENO: checking for GNU Objective C runtime" >&5
     4414echo $ECHO_N "checking for GNU Objective C runtime... $ECHO_C" >&6
     4415                if test "${od_cv_objc_runtime_gnu+set}" = set; then
     4416  echo $ECHO_N "(cached) $ECHO_C" >&6
     4417else
     4418
     4419                        # The following uses quadrigraphs
     4420                        # '[' = '['
     4421                        # ']' = ']'
     4422                        cat >conftest.$ac_ext <<_ACEOF
     4423
     4424                                        /* confdefs.h.  */
     4425_ACEOF
     4426cat confdefs.h >>conftest.$ac_ext
     4427cat >>conftest.$ac_ext <<_ACEOF
     4428/* end confdefs.h.  */
     4429
     4430                                                        #include <objc/objc.h>
     4431                                                        #include <objc/objc-api.h>
     4432
     4433int
     4434main ()
     4435{
     4436
     4437                                                        id class = objc_lookup_class("Object");
     4438                                                        id obj = [class alloc];
     4439                                                        puts([obj name]);
     4440
     4441  ;
     4442  return 0;
     4443}
     4444
     4445_ACEOF
     4446rm -f conftest.$ac_objext conftest$ac_exeext
     4447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4448  (eval $ac_link) 2>conftest.er1
     4449  ac_status=$?
     4450  grep -v '^ *+' conftest.er1 >conftest.err
     4451  rm -f conftest.er1
     4452  cat conftest.err >&5
     4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4454  (exit $ac_status); } &&
     4455         { ac_try='test -z "$ac_objc_werror_flag"
     4456                         || test ! -s conftest.err'
     4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4458  (eval $ac_try) 2>&5
     4459  ac_status=$?
     4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4461  (exit $ac_status); }; } &&
     4462         { ac_try='test -s conftest$ac_exeext'
     4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4464  (eval $ac_try) 2>&5
     4465  ac_status=$?
     4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4467  (exit $ac_status); }; }; then
     4468
     4469                                                od_cv_objc_runtime_gnu="yes"
     4470
     4471else
     4472  echo "$as_me: failed program was:" >&5
     4473sed 's/^/| /' conftest.$ac_ext >&5
     4474
     4475
     4476                                                od_cv_objc_runtime_gnu="no"
     4477
     4478
     4479fi
     4480rm -f conftest.err conftest.$ac_objext \
     4481      conftest$ac_exeext conftest.$ac_ext
     4482
     4483fi
     4484
     4485                echo "$as_me:$LINENO: result: ${od_cv_objc_runtime_gnu}" >&5
     4486echo "${ECHO_T}${od_cv_objc_runtime_gnu}" >&6
     4487        else
     4488                od_cv_objc_runtime_gnu="no"
     4489        fi
     4490
     4491        # Apple runtime is prefered
     4492        if test x"${od_cv_objc_runtime_apple}" = x"yes"; then
     4493                        OBJC_RUNTIME="APPLE_RUNTIME"
     4494                        OBJC_RUNTIME_FLAGS="-fnext-runtime"
     4495                        { echo "$as_me:$LINENO: Using Apple Objective-C runtime" >&5
     4496echo "$as_me: Using Apple Objective-C runtime" >&6;}
     4497
     4498cat >>confdefs.h <<\_ACEOF
     4499#define APPLE_RUNTIME 1
     4500_ACEOF
     4501
     4502        elif test x"${od_cv_objc_runtime_gnu}" = x"yes"; then
     4503                        OBJC_RUNTIME="GNU_RUNTIME"
     4504                        OBJC_RUNTIME_FLAGS="-fgnu-runtime"
     4505                        { echo "$as_me:$LINENO: Using GNU Objective-C runtime" >&5
     4506echo "$as_me: Using GNU Objective-C runtime" >&6;}
     4507
     4508cat >>confdefs.h <<\_ACEOF
     4509#define GNU_RUNTIME 1
     4510_ACEOF
     4511
     4512        else
     4513                        { { echo "$as_me:$LINENO: error: Could not locate a working Objective-C runtime.
     4514See \`config.log' for more details." >&5
     4515echo "$as_me: error: Could not locate a working Objective-C runtime.
     4516See \`config.log' for more details." >&2;}
     4517   { (exit 1); exit 1; }; }
     4518        fi
     4519
     4520        # Restore LIBS & OBJCFLAGS
     4521        LIBS="${OLD_LIBS}"
     4522        OBJCFLAGS="${OLD_OBJCFLAGS}"
     4523
     4524
     4525
     4526
     4527
     4528
     4529
     4530
     4531        ac_ext=c
     4532ac_cpp='$CPP $CPPFLAGS'
     4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4536
     4537
     4538
     4539
     4540
     4541# Check whether --with-objc-foundation or --without-objc-foundation was given.
     4542if test "${with_objc_foundation+set}" = set; then
     4543  withval="$with_objc_foundation"
     4544  with_objc_foundation=${withval}
     4545fi;
     4546
     4547        if test x"${with_objc_foundation}" != x; then
     4548                case "${with_objc_foundation}" in
     4549                        GNUstep)
     4550                                ;;
     4551                        GNU)
     4552                                with_objc_foundation="GNUstep"
     4553                                ;;
     4554                        apple)
     4555                                ;;
     4556                        *)
     4557                                { { echo "$as_me:$LINENO: error: ${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either \"GNU\" or \"apple\"" >&5
     4558echo "$as_me: error: ${with_objc_foundation} is not a valid argument to --with-objc-foundation. Please specify either \"GNU\" or \"apple\"" >&2;}
     4559   { (exit 1); exit 1; }; }
     4560                                ;;
     4561                esac
     4562        fi
     4563
     4564        ac_ext=m
     4565ac_cpp='$OBJCPP $CPPFLAGS'
     4566ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4567ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4568ac_compiler_gnu=$ac_cv_objc_compiler_gnu
     4569
     4570
     4571        if test x"${with_objc_foundation}" == x || test x"${with_objc_foundation}" == x"apple"; then
     4572                # '[' = '['
     4573                # ']' = ']'
     4574                echo "$as_me:$LINENO: checking for Apple Foundation library" >&5
     4575echo $ECHO_N "checking for Apple Foundation library... $ECHO_C" >&6
     4576
     4577                # Set NeXT LIBS and CFLAGS
     4578                APPLE_FOUNDATION_CFLAGS="-framework Foundation"
     4579                APPLE_FOUNDATION_LIBS="-framework Foundation"
     4580
     4581                if test "${ac_cv_objc_foundation_apple+set}" = set; then
     4582  echo $ECHO_N "(cached) $ECHO_C" >&6
     4583else
     4584
     4585                        # Save old LIBS and CFLAGS
     4586                        LIBS_OLD="${LIBS}"
     4587                        CFLAGS_OLD="${CFLAGS}"
     4588
     4589                        CFLAGS="${APPLE_FOUNDATION_CFLAGS} ${CFLAGS}"
     4590                        LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
     4591
     4592                        cat >conftest.$ac_ext <<_ACEOF
     4593
     4594                                        /* confdefs.h.  */
     4595_ACEOF
     4596cat confdefs.h >>conftest.$ac_ext
     4597cat >>conftest.$ac_ext <<_ACEOF
     4598/* end confdefs.h.  */
     4599
     4600                                                                #include <Foundation/Foundation.h>
     4601
     4602int
     4603main ()
     4604{
     4605
     4606                                                                NSString *string = [[NSString alloc] initWithCString: "Hello World"];
     4607                                                                [NSString length];
     4608
     4609  ;
     4610  return 0;
     4611}
     4612
     4613_ACEOF
     4614rm -f conftest.$ac_objext conftest$ac_exeext
     4615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4616  (eval $ac_link) 2>conftest.er1
     4617  ac_status=$?
     4618  grep -v '^ *+' conftest.er1 >conftest.err
     4619  rm -f conftest.er1
     4620  cat conftest.err >&5
     4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4622  (exit $ac_status); } &&
     4623         { ac_try='test -z "$ac_objc_werror_flag"
     4624                         || test ! -s conftest.err'
     4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4626  (eval $ac_try) 2>&5
     4627  ac_status=$?
     4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4629  (exit $ac_status); }; } &&
     4630         { ac_try='test -s conftest$ac_exeext'
     4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4632  (eval $ac_try) 2>&5
     4633  ac_status=$?
     4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4635  (exit $ac_status); }; }; then
     4636
     4637                                                ac_cv_objc_foundation_apple="yes"
     4638
     4639else
     4640  echo "$as_me: failed program was:" >&5
     4641sed 's/^/| /' conftest.$ac_ext >&5
     4642
     4643
     4644                                                ac_cv_objc_foundation_apple="no"
     4645
     4646
     4647fi
     4648rm -f conftest.err conftest.$ac_objext \
     4649      conftest$ac_exeext conftest.$ac_ext
     4650                        # Restore LIBS and CFLAGS
     4651                        LIBS="${LIBS_OLD}"
     4652                        CFLAGS="${CFLAGS_OLD}"
     4653
     4654fi
     4655
     4656                echo "$as_me:$LINENO: result: ${ac_cv_objc_foundation_apple}" >&5
     4657echo "${ECHO_T}${ac_cv_objc_foundation_apple}" >&6
     4658        else
     4659                ac_cv_objc_foundation_apple="no"
     4660        fi
     4661
     4662        if test x"${with_objc_foundation}" == x || test x${with_objc_foundation} == x"GNUstep"; then
     4663                if test x"${GNUSTEP_SYSTEM_ROOT}" == x; then
     4664                        if test x"${with_objc_foundation}" == x"GNUstep"; then
     4665                                { { echo "$as_me:$LINENO: error: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&5
     4666echo "$as_me: error: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&2;}
     4667   { (exit 1); exit 1; }; }
     4668                        else
     4669                                { echo "$as_me:$LINENO: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&5
     4670echo "$as_me: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, preventing the use of GNUstep's Foundation library" >&2;}
     4671                        fi
     4672                else
     4673
     4674                        echo "$as_me:$LINENO: checking for GNUstep Foundation library" >&5
     4675echo $ECHO_N "checking for GNUstep Foundation library... $ECHO_C" >&6
     4676
     4677                        # Set GNUstep LDFLAGS, CPPFLAGS, and LIBS
     4678                        GNUSTEP_LDFLAGS="-L${GNUSTEP_SYSTEM_ROOT}/Library/Libraries/"
     4679                        GNUSTEP_CPPFLAGS="-I${GNUSTEP_SYSTEM_ROOT}/Library/Headers/"
     4680                        GNUSTEP_LIBS="-lgnustep-base"
     4681
     4682                        if test "${ac_cv_objc_foundation_gnustep+set}" = set; then
     4683  echo $ECHO_N "(cached) $ECHO_C" >&6
     4684else
     4685
     4686                                # Save old LDFLAGS, CPPFLAGS, and LIBS
     4687                                LDFLAGS_OLD="${LDFLAGS}"
     4688                                CPPFLAGS_OLD="${CPPFLAGS}"
     4689                                LIBS_OLD="${LIBS}"
     4690
     4691                                LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
     4692                                CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
     4693                                LIBS="${GNUSTEP_LIBS} ${LIBS}"
     4694
     4695                                cat >conftest.$ac_ext <<_ACEOF
     4696
     4697                                                /* confdefs.h.  */
     4698_ACEOF
     4699cat confdefs.h >>conftest.$ac_ext
     4700cat >>conftest.$ac_ext <<_ACEOF
     4701/* end confdefs.h.  */
     4702
     4703                                                                        #include <Foundation/Foundation.h>
     4704
     4705int
     4706main ()
     4707{
     4708
     4709                                                                        NSString *string = [[NSString alloc] initWithCString: "Hello World"];
     4710                                                                        [NSString length];
     4711
     4712  ;
     4713  return 0;
     4714}
     4715
     4716_ACEOF
     4717rm -f conftest.$ac_objext conftest$ac_exeext
     4718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4719  (eval $ac_link) 2>conftest.er1
     4720  ac_status=$?
     4721  grep -v '^ *+' conftest.er1 >conftest.err
     4722  rm -f conftest.er1
     4723  cat conftest.err >&5
     4724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4725  (exit $ac_status); } &&
     4726         { ac_try='test -z "$ac_objc_werror_flag"
     4727                         || test ! -s conftest.err'
     4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4729  (eval $ac_try) 2>&5
     4730  ac_status=$?
     4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4732  (exit $ac_status); }; } &&
     4733         { ac_try='test -s conftest$ac_exeext'
     4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4735  (eval $ac_try) 2>&5
     4736  ac_status=$?
     4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4738  (exit $ac_status); }; }; then
     4739
     4740                                                        ac_cv_objc_foundation_gnustep="yes"
     4741
     4742else
     4743  echo "$as_me: failed program was:" >&5
     4744sed 's/^/| /' conftest.$ac_ext >&5
     4745
     4746
     4747                                                        ac_cv_objc_foundation_gnustep="no"
     4748
     4749
     4750fi
     4751rm -f conftest.err conftest.$ac_objext \
     4752      conftest$ac_exeext conftest.$ac_ext
     4753                                # Restore LDFLAGS, CPPFLAGS, and LIBS
     4754                                LDFLAGS="${LDFLAGS_OLD}"
     4755                                CPPFLAGS="${CPPFLAGS_OLD}"
     4756                                LIBS="${LIBS_OLD}"
     4757
     4758fi
     4759
     4760                        echo "$as_me:$LINENO: result: ${ac_cv_objc_foundation_gnustep}" >&5
     4761echo "${ECHO_T}${ac_cv_objc_foundation_gnustep}" >&6
     4762                fi
     4763        else
     4764                ac_cv_objc_foundation_gnustep="no"
     4765        fi
     4766
     4767        # NeXT Foundation is prefered
     4768        if test x"${ac_cv_objc_foundation_apple}" == x"yes"; then
     4769                OBJC_FOUNDATION="Apple"
     4770                CPPFLAGS="${APPLE_FOUNDATION_CPPFLAGS} ${CPPFLAGS}"
     4771                LIBS="${APPLE_FOUNDATION_LIBS} ${LIBS}"
     4772
     4773cat >>confdefs.h <<\_ACEOF
     4774#define APPLE_FOUNDATION 1
     4775_ACEOF
     4776
     4777                { echo "$as_me:$LINENO: Using Apple Foundation library" >&5
     4778echo "$as_me: Using Apple Foundation library" >&6;}
     4779        elif test x"${ac_cv_objc_foundation_gnustep}" == x"yes"; then
     4780                OBJC_FOUNDATION="GNUstep"
     4781                CPPFLAGS="${GNUSTEP_CPPFLAGS} ${CPPFLAGS}"
     4782                LIBS="${GNUSTEP_LIBS} ${LIBS}"
     4783                LDFLAGS="${GNUSTEP_LDFLAGS} ${LDFLAGS}"
     4784
     4785cat >>confdefs.h <<\_ACEOF
     4786#define GNUSTEP_FOUNDATION 1
     4787_ACEOF
     4788
     4789                { echo "$as_me:$LINENO: Using GNUstep Foundation library" >&5
     4790echo "$as_me: Using GNUstep Foundation library" >&6;}
     4791        else
     4792                { { echo "$as_me:$LINENO: error: Could not find a working Foundation implementation" >&5
     4793echo "$as_me: error: Could not find a working Foundation implementation" >&2;}
     4794   { (exit 1); exit 1; }; }
     4795        fi
     4796
     4797        ac_ext=c
     4798ac_cpp='$CPP $CPPFLAGS'
     4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4802
     4803
     4804
     4805
     4806        FRAMEWORK_LIBS="-framework CoreFoundation"
     4807
     4808        echo "$as_me:$LINENO: checking for CoreFoundation framework" >&5
     4809echo $ECHO_N "checking for CoreFoundation framework... $ECHO_C" >&6
     4810
     4811        if test "${od_cv_have_framework_corefoundation+set}" = set; then
     4812  echo $ECHO_N "(cached) $ECHO_C" >&6
     4813else
     4814
     4815                ac_save_LIBS="$LIBS"
     4816                LIBS="$FRAMEWORK_LIBS $LIBS"
     4817
     4818                cat >conftest.$ac_ext <<_ACEOF
     4819
     4820                        /* confdefs.h.  */
     4821_ACEOF
     4822cat confdefs.h >>conftest.$ac_ext
     4823cat >>conftest.$ac_ext <<_ACEOF
     4824/* end confdefs.h.  */
     4825
     4826                                        #include <CoreFoundation/CoreFoundation.h>
     4827
     4828int
     4829main ()
     4830{
     4831
     4832                                        CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
     4833                                        CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
     4834
     4835  ;
     4836  return 0;
     4837}
     4838
     4839_ACEOF
     4840rm -f conftest.$ac_objext conftest$ac_exeext
     4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4842  (eval $ac_link) 2>conftest.er1
     4843  ac_status=$?
     4844  grep -v '^ *+' conftest.er1 >conftest.err
     4845  rm -f conftest.er1
     4846  cat conftest.err >&5
     4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4848  (exit $ac_status); } &&
     4849         { ac_try='test -z "$ac_c_werror_flag"
     4850                         || test ! -s conftest.err'
     4851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4852  (eval $ac_try) 2>&5
     4853  ac_status=$?
     4854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4855  (exit $ac_status); }; } &&
     4856         { ac_try='test -s conftest$ac_exeext'
     4857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4858  (eval $ac_try) 2>&5
     4859  ac_status=$?
     4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4861  (exit $ac_status); }; }; then
     4862
     4863                                od_cv_have_framework_corefoundation="yes"
     4864
     4865else
     4866  echo "$as_me: failed program was:" >&5
     4867sed 's/^/| /' conftest.$ac_ext >&5
     4868
     4869
     4870                                od_cv_have_framework_corefoundation="no"
     4871
     4872
     4873fi
     4874rm -f conftest.err conftest.$ac_objext \
     4875      conftest$ac_exeext conftest.$ac_ext
     4876
     4877                LIBS="$ac_save_LIBS"
     4878
     4879fi
     4880
     4881
     4882        echo "$as_me:$LINENO: result: ${od_cv_have_framework_corefoundation}" >&5
     4883echo "${ECHO_T}${od_cv_have_framework_corefoundation}" >&6
     4884
     4885        if test x"${od_cv_have_framework_corefoundation}" = "xyes"; then
     4886
     4887cat >>confdefs.h <<\_ACEOF
     4888#define HAVE_FRAMEWORK_COREFOUNDATION
     4889_ACEOF
     4890
     4891        fi
     4892
     4893
     4894
     4895
     4896        FRAMEWORK_LIBS="-framework SystemConfiguration"
     4897
     4898        echo "$as_me:$LINENO: checking for SystemConfiguration framework" >&5
     4899echo $ECHO_N "checking for SystemConfiguration framework... $ECHO_C" >&6
     4900
     4901        if test "${od_cv_have_framework_systemconfiguration+set}" = set; then
     4902  echo $ECHO_N "(cached) $ECHO_C" >&6
     4903else
     4904
     4905                ac_save_LIBS="$LIBS"
     4906                LIBS="$FRAMEWORK_LIBS $LIBS"
     4907
     4908                cat >conftest.$ac_ext <<_ACEOF
     4909
     4910                        /* confdefs.h.  */
     4911_ACEOF
     4912cat confdefs.h >>conftest.$ac_ext
     4913cat >>conftest.$ac_ext <<_ACEOF
     4914/* end confdefs.h.  */
     4915
     4916                                        #include <SystemConfiguration/SystemConfiguration.h>
     4917
     4918int
     4919main ()
     4920{
     4921
     4922                                        int err = SCError();
     4923                                        SCDynamicStoreRef dsRef = SCDynamicStoreCreate(NULL, NULL, NULL, NULL);
     4924
     4925  ;
     4926  return 0;
     4927}
     4928
     4929_ACEOF
     4930rm -f conftest.$ac_objext conftest$ac_exeext
     4931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4932  (eval $ac_link) 2>conftest.er1
     4933  ac_status=$?
     4934  grep -v '^ *+' conftest.er1 >conftest.err
     4935  rm -f conftest.er1
     4936  cat conftest.err >&5
     4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4938  (exit $ac_status); } &&
     4939         { ac_try='test -z "$ac_c_werror_flag"
     4940                         || test ! -s conftest.err'
     4941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4942  (eval $ac_try) 2>&5
     4943  ac_status=$?
     4944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4945  (exit $ac_status); }; } &&
     4946         { ac_try='test -s conftest$ac_exeext'
     4947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4948  (eval $ac_try) 2>&5
     4949  ac_status=$?
     4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4951  (exit $ac_status); }; }; then
     4952
     4953                                od_cv_have_framework_systemconfiguration="yes"
     4954
     4955else
     4956  echo "$as_me: failed program was:" >&5
     4957sed 's/^/| /' conftest.$ac_ext >&5
     4958
     4959
     4960                                od_cv_have_framework_systemconfiguration="no"
     4961
     4962
     4963fi
     4964rm -f conftest.err conftest.$ac_objext \
     4965      conftest$ac_exeext conftest.$ac_ext
     4966
     4967                LIBS="$ac_save_LIBS"
     4968
     4969fi
     4970
     4971
     4972        echo "$as_me:$LINENO: result: ${od_cv_have_framework_systemconfiguration}" >&5
     4973echo "${ECHO_T}${od_cv_have_framework_systemconfiguration}" >&6
     4974
     4975        if test x"${od_cv_have_framework_systemconfiguration}" = "xyes"; then
     4976
     4977cat >>confdefs.h <<\_ACEOF
     4978#define HAVE_FRAMEWORK_SYSTEMCONFIGURATION
     4979_ACEOF
     4980
     4981        fi
     4982
     4983
     4984
     4985
     4986        FRAMEWORK_LIBS="-framework IOKit"
     4987
     4988        echo "$as_me:$LINENO: checking for IOKit framework" >&5
     4989echo $ECHO_N "checking for IOKit framework... $ECHO_C" >&6
     4990
     4991        if test "${od_cv_have_framework_iokit+set}" = set; then
     4992  echo $ECHO_N "(cached) $ECHO_C" >&6
     4993else
     4994
     4995                ac_save_LIBS="$LIBS"
     4996                LIBS="$FRAMEWORK_LIBS $LIBS"
     4997
     4998                cat >conftest.$ac_ext <<_ACEOF
     4999
     5000                        /* confdefs.h.  */
     5001_ACEOF
     5002cat confdefs.h >>conftest.$ac_ext
     5003cat >>conftest.$ac_ext <<_ACEOF
     5004/* end confdefs.h.  */
     5005
     5006                                        #include <IOKit/IOKitLib.h>
     5007
     5008int
     5009main ()
     5010{
     5011
     5012                                        IOCreateReceivePort(0, NULL);
     5013                                        IORegisterForSystemPower(0, NULL, NULL, NULL);
     5014
     5015  ;
     5016  return 0;
     5017}
     5018
     5019_ACEOF
     5020rm -f conftest.$ac_objext conftest$ac_exeext
     5021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5022  (eval $ac_link) 2>conftest.er1
     5023  ac_status=$?
     5024  grep -v '^ *+' conftest.er1 >conftest.err
     5025  rm -f conftest.er1
     5026  cat conftest.err >&5
     5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5028  (exit $ac_status); } &&
     5029         { ac_try='test -z "$ac_c_werror_flag"
     5030                         || test ! -s conftest.err'
     5031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5032  (eval $ac_try) 2>&5
     5033  ac_status=$?
     5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5035  (exit $ac_status); }; } &&
     5036         { ac_try='test -s conftest$ac_exeext'
     5037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5038  (eval $ac_try) 2>&5
     5039  ac_status=$?
     5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5041  (exit $ac_status); }; }; then
     5042
     5043                                od_cv_have_framework_iokit="yes"
     5044
     5045else
     5046  echo "$as_me: failed program was:" >&5
     5047sed 's/^/| /' conftest.$ac_ext >&5
     5048
     5049
     5050                                od_cv_have_framework_iokit="no"
     5051
     5052
     5053fi
     5054rm -f conftest.err conftest.$ac_objext \
     5055      conftest$ac_exeext conftest.$ac_ext
     5056
     5057                LIBS="$ac_save_LIBS"
     5058
     5059fi
     5060
     5061
     5062        echo "$as_me:$LINENO: result: ${od_cv_have_framework_iokit}" >&5
     5063echo "${ECHO_T}${od_cv_have_framework_iokit}" >&6
     5064
     5065        if test x"${od_cv_have_framework_iokit}" = "xyes"; then
     5066
     5067cat >>confdefs.h <<\_ACEOF
     5068#define HAVE_FRAMEWORK_IOKIT
     5069_ACEOF
     5070
     5071        fi
     5072
     5073
     5074
     5075
     5076        FRAMEWORK_LIBS="-framework CoreFoundation"
     5077
     5078        echo "$as_me:$LINENO: checking for CFNotificationCenterGetDarwinNotifyCenter" >&5
     5079echo $ECHO_N "checking for CFNotificationCenterGetDarwinNotifyCenter... $ECHO_C" >&6
     5080
     5081        if test "${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter+set}" = set; then
     5082  echo $ECHO_N "(cached) $ECHO_C" >&6
     5083else
     5084
     5085                ac_save_LIBS="$LIBS"
     5086                LIBS="$FRAMEWORK_LIBS $LIBS"
     5087
     5088                cat >conftest.$ac_ext <<_ACEOF
     5089
     5090                        /* confdefs.h.  */
     5091_ACEOF
     5092cat confdefs.h >>conftest.$ac_ext
     5093cat >>conftest.$ac_ext <<_ACEOF
     5094/* end confdefs.h.  */
     5095
     5096                                        #include <CoreFoundation/CoreFoundation.h>
     5097
     5098int
     5099main ()
     5100{
     5101
     5102                                        CFNotificationCenterRef ref = CFNotificationCenterGetDarwinNotifyCenter();
     5103
     5104  ;
     5105  return 0;
     5106}
     5107
     5108_ACEOF
     5109rm -f conftest.$ac_objext conftest$ac_exeext
     5110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5111  (eval $ac_link) 2>conftest.er1
     5112  ac_status=$?
     5113  grep -v '^ *+' conftest.er1 >conftest.err
     5114  rm -f conftest.er1
     5115  cat conftest.err >&5
     5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5117  (exit $ac_status); } &&
     5118         { ac_try='test -z "$ac_c_werror_flag"
     5119                         || test ! -s conftest.err'
     5120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5121  (eval $ac_try) 2>&5
     5122  ac_status=$?
     5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5124  (exit $ac_status); }; } &&
     5125         { ac_try='test -s conftest$ac_exeext'
     5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5127  (eval $ac_try) 2>&5
     5128  ac_status=$?
     5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5130  (exit $ac_status); }; }; then
     5131
     5132                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="yes"
     5133
     5134else
     5135  echo "$as_me: failed program was:" >&5
     5136sed 's/^/| /' conftest.$ac_ext >&5
     5137
     5138
    39435139                                od_cv_have_function_cfnotificationcentergetdarwinnotifycenter="no"
    39445140
    39455141
    39465142fi
    3947 
    3948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
     5143rm -f conftest.err conftest.$ac_objext \
    39495144      conftest$ac_exeext conftest.$ac_ext
    39505145
     
    39545149
    39555150
    3956         { echo "$as_me:$LINENO: result: ${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
    3957 echo "${ECHO_T}${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6; }
     5151        echo "$as_me:$LINENO: result: ${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&5
     5152echo "${ECHO_T}${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" >&6
    39585153
    39595154        if test x"${od_cv_have_function_cfnotificationcentergetdarwinnotifycenter}" = "xyes"; then
     
    39735168
    39745169
    3975     { echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
    3976 echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6; }
     5170    echo "$as_me:$LINENO: checking for whether we will build daemondo" >&5
     5171echo $ECHO_N "checking for whether we will build daemondo... $ECHO_C" >&6
    39775172    result=no
    39785173        case $host_os in
     
    39845179                        result=yes
    39855180                        EXTRA_PROGS="$EXTRA_PROGS daemondo"
    3986                         ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
     5181                                  ac_config_files="$ac_config_files src/programs/daemondo/Makefile"
    39875182
    39885183                fi
     
    39905185        *)
    39915186        esac
    3992         { echo "$as_me:$LINENO: result: ${result}" >&5
    3993 echo "${ECHO_T}${result}" >&6; }
     5187        echo "$as_me:$LINENO: result: ${result}" >&5
     5188echo "${ECHO_T}${result}" >&6
    39945189
    39955190#OD_PROG_XAR
     
    40075202
    40085203
    4009 # Check whether --with-dports-dir was given.
     5204# Check whether --with-dports-dir or --without-dports-dir was given.
    40105205if test "${with_dports_dir+set}" = set; then
    4011   withval=$with_dports_dir;  dportsdir="$withval"
    4012 fi
    4013 
    4014 
    4015 
    4016         { echo "$as_me:$LINENO: checking for dports tree" >&5
    4017 echo $ECHO_N "checking for dports tree... $ECHO_C" >&6; }
     5206  withval="$with_dports_dir"
     5207   dportsdir="$withval"
     5208fi;
     5209
     5210
     5211        echo "$as_me:$LINENO: checking for dports tree" >&5
     5212echo $ECHO_N "checking for dports tree... $ECHO_C" >&6
    40185213        if test "x$dportsdir" != "x" ; then
    40195214          if test -d "$dportsdir" -a -e "$dportsdir/PortIndex" ; then
     
    40335228
    40345229        if test "x$dportsdir" != "x" ; then
    4035                 { echo "$as_me:$LINENO: result: $dportsdir" >&5
    4036 echo "${ECHO_T}$dportsdir" >&6; }
     5230                echo "$as_me:$LINENO: result: $dportsdir" >&5
     5231echo "${ECHO_T}$dportsdir" >&6
    40375232                DPORTSDIR="$dportsdir"
    40385233
     
    40455240
    40465241
    4047         { echo "$as_me:$LINENO: checking for ports config directory" >&5
    4048 echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6; }
     5242        echo "$as_me:$LINENO: checking for ports config directory" >&5
     5243echo $ECHO_N "checking for ports config directory... $ECHO_C" >&6
    40495244
    40505245        portconfigdir='${sysconfdir}/ports'
    40515246
    4052         { echo "$as_me:$LINENO: result: $portconfigdir" >&5
    4053 echo "${ECHO_T}$portconfigdir" >&6; }
     5247        echo "$as_me:$LINENO: result: $portconfigdir" >&5
     5248echo "${ECHO_T}$portconfigdir" >&6
    40545249        PORTCONFIGDIR="$portconfigdir"
    40555250
     
    40625257
    40635258
    4064 # Check whether --with-install-user was given.
     5259# Check whether --with-install-user or --without-install-user was given.
    40655260if test "${with_install_user+set}" = set; then
    4066   withval=$with_install_user;  DSTUSR=$withval
    4067 fi
    4068 
    4069 
    4070         { echo "$as_me:$LINENO: checking for install user" >&5
    4071 echo $ECHO_N "checking for install user... $ECHO_C" >&6; }
     5261  withval="$with_install_user"
     5262   DSTUSR=$withval
     5263fi;
     5264
     5265        echo "$as_me:$LINENO: checking for install user" >&5
     5266echo $ECHO_N "checking for install user... $ECHO_C" >&6
    40725267        if test "x$DSTUSR" = "x" ; then
    40735268           DSTUSR=root
    40745269        fi
    40755270
    4076         { echo "$as_me:$LINENO: result: $DSTUSR" >&5
    4077 echo "${ECHO_T}$DSTUSR" >&6; }
    4078 
    4079 
    4080 
    4081 
    4082 
    4083 
    4084 # Check whether --with-install-group was given.
     5271        echo "$as_me:$LINENO: result: $DSTUSR" >&5
     5272echo "${ECHO_T}$DSTUSR" >&6
     5273
     5274
     5275
     5276
     5277
     5278
     5279# Check whether --with-install-group or --without-install-group was given.
    40855280if test "${with_install_group+set}" = set; then
    4086   withval=$with_install_group;  DSTGRP=$withval
    4087 fi
    4088 
    4089 
    4090         { echo "$as_me:$LINENO: checking for install group" >&5
    4091 echo $ECHO_N "checking for install group... $ECHO_C" >&6; }
     5281  withval="$with_install_group"
     5282   DSTGRP=$withval
     5283fi;
     5284
     5285        echo "$as_me:$LINENO: checking for install group" >&5
     5286echo $ECHO_N "checking for install group... $ECHO_C" >&6
    40925287        if test "x$DSTGRP" = "x" ; then
    40935288