~ubuntu-branches/ubuntu/natty/leafnode/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Robert Grimm
  • Date: 2010-06-13 20:41:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100613204110-jn5da77ih13v8oau
Tags: 1.11.8-1
* New upstream release.
   - Fix file descriptor leak in getbody_newno() (closes: #568128).
* Added Danish Debconf translation, kindly provided by
  Joe Hansen <joedalton2@yahoo.dk> (closes: #581055).
* Depend on netbase.  
* Standards version 3.8.4 (no changes).
* Switch to dpkg source 3.0 (quilt) format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.ac Revision: 1.194 .
3
2
# Guess values for system-dependent variables and create Makefiles.
4
3
# Generated by GNU Autoconf 2.63.
5
4
#
636
635
# include <unistd.h>
637
636
#endif"
638
637
 
639
 
ac_subst_vars='LTLIBOBJS
 
638
ac_subst_vars='am__EXEEXT_FALSE
 
639
am__EXEEXT_TRUE
 
640
LTLIBOBJS
640
641
msysconfdir
641
642
TCPD
642
643
ARGV0
651
652
PCRECONFIG
652
653
NEWS_GROUP
653
654
NEWS_USER
 
655
LOCKFILE
 
656
SPOOLDIR
654
657
ID
655
658
RPM
656
659
AR
658
661
EGREP
659
662
GREP
660
663
CPP
661
 
LOCKFILE
662
 
SPOOLDIR
663
664
am__fastdepCC_FALSE
664
665
am__fastdepCC_TRUE
665
666
CCDEPMODE
676
677
LDFLAGS
677
678
CFLAGS
678
679
CC
679
 
MAINT
680
 
MAINTAINER_MODE_FALSE
681
 
MAINTAINER_MODE_TRUE
682
680
am__untar
683
681
am__tar
684
682
AMTAR
742
740
ac_subst_files=''
743
741
ac_user_opts='
744
742
enable_option_checking
745
 
enable_maintainer_mode
 
743
enable_dependency_tracking
746
744
with_ipv6
747
 
enable_dependency_tracking
748
745
with_confdir
749
746
with_spooldir
750
747
with_lockfile
1388
1385
  --disable-option-checking  ignore unrecognized --enable/--with options
1389
1386
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390
1387
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1392
 
                          (and sometimes confusing) to the casual installer
1393
1388
  --disable-dependency-tracking  speeds up one-time build
1394
1389
  --enable-dependency-tracking   do not reject slow dependency extractors
1395
1390
 
1396
1391
Optional Packages:
1397
1392
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398
1393
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399
 
  --with-ipv6             support IPv6
 
1394
  --without-ipv6          disable IPv6 support (default enable)
1400
1395
  --with-confdir          obsolete option, use --sysconfdir
1401
1396
  --with-spooldir         news spool directory (/var/spool/news)
1402
1397
  --with-lockfile         lockfile path (${spooldir}/leaf.node/lock.file)
1858
1853
 
1859
1854
 
1860
1855
 
1861
 
 
1862
 
am__api_version='1.10'
 
1856
am__api_version='1.11'
1863
1857
 
1864
1858
ac_aux_dir=
1865
1859
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1990
1984
# Just in case
1991
1985
sleep 1
1992
1986
echo timestamp > conftest.file
 
1987
# Reject unsafe characters in $srcdir or the absolute working directory
 
1988
# name.  Accept space and tab only in the latter.
 
1989
am_lf='
 
1990
'
 
1991
case `pwd` in
 
1992
  *[\\\"\#\$\&\'\`$am_lf]*)
 
1993
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
1994
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
1995
   { (exit 1); exit 1; }; };;
 
1996
esac
 
1997
case $srcdir in
 
1998
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
1999
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2000
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2001
   { (exit 1); exit 1; }; };;
 
2002
esac
 
2003
 
1993
2004
# Do `set' in a subshell so we don't clobber the current shell's
1994
2005
# arguments.  Must try -L first in case configure is actually a
1995
2006
# symlink; some systems play weird games with the mod time of symlinks
1996
2007
# (eg FreeBSD returns the mod time of the symlink's containing
1997
2008
# directory).
1998
2009
if (
1999
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2010
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2000
2011
   if test "$*" = "X"; then
2001
2012
      # -L didn't work.
2002
 
      set X `ls -t $srcdir/configure conftest.file`
 
2013
      set X `ls -t "$srcdir/configure" conftest.file`
2003
2014
   fi
2004
2015
   rm -f conftest.file
2005
2016
   if test "$*" != "X $srcdir/configure conftest.file" \
2043
2054
# expand $ac_aux_dir to an absolute path
2044
2055
am_aux_dir=`cd $ac_aux_dir && pwd`
2045
2056
 
2046
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2057
if test x"${MISSING+set}" != xset; then
 
2058
  case $am_aux_dir in
 
2059
  *\ * | *\     *)
 
2060
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2061
  *)
 
2062
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2063
  esac
 
2064
fi
2047
2065
# Use eval to expand $SHELL
2048
2066
if eval "$MISSING --run true"; then
2049
2067
  am_missing_run="$MISSING --run "
2053
2071
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2054
2072
fi
2055
2073
 
 
2074
if test x"${install_sh}" != xset; then
 
2075
  case $am_aux_dir in
 
2076
  *\ * | *\     *)
 
2077
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2078
  *)
 
2079
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2080
  esac
 
2081
fi
 
2082
 
 
2083
# Installed binaries are usually stripped using `strip' when the user
 
2084
# run `make install-strip'.  However `strip' might not be the right
 
2085
# tool to use in cross-compilation environments, therefore Automake
 
2086
# will honor the `STRIP' environment variable to overrule this program.
 
2087
if test "$cross_compiling" != no; then
 
2088
  if test -n "$ac_tool_prefix"; then
 
2089
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2090
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2091
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2092
$as_echo_n "checking for $ac_word... " >&6; }
 
2093
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2094
  $as_echo_n "(cached) " >&6
 
2095
else
 
2096
  if test -n "$STRIP"; then
 
2097
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2098
else
 
2099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2100
for as_dir in $PATH
 
2101
do
 
2102
  IFS=$as_save_IFS
 
2103
  test -z "$as_dir" && as_dir=.
 
2104
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2105
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2106
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2107
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2108
    break 2
 
2109
  fi
 
2110
done
 
2111
done
 
2112
IFS=$as_save_IFS
 
2113
 
 
2114
fi
 
2115
fi
 
2116
STRIP=$ac_cv_prog_STRIP
 
2117
if test -n "$STRIP"; then
 
2118
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2119
$as_echo "$STRIP" >&6; }
 
2120
else
 
2121
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2122
$as_echo "no" >&6; }
 
2123
fi
 
2124
 
 
2125
 
 
2126
fi
 
2127
if test -z "$ac_cv_prog_STRIP"; then
 
2128
  ac_ct_STRIP=$STRIP
 
2129
  # Extract the first word of "strip", so it can be a program name with args.
 
2130
set dummy strip; ac_word=$2
 
2131
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2132
$as_echo_n "checking for $ac_word... " >&6; }
 
2133
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2134
  $as_echo_n "(cached) " >&6
 
2135
else
 
2136
  if test -n "$ac_ct_STRIP"; then
 
2137
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2138
else
 
2139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2140
for as_dir in $PATH
 
2141
do
 
2142
  IFS=$as_save_IFS
 
2143
  test -z "$as_dir" && as_dir=.
 
2144
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2145
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2146
    ac_cv_prog_ac_ct_STRIP="strip"
 
2147
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2148
    break 2
 
2149
  fi
 
2150
done
 
2151
done
 
2152
IFS=$as_save_IFS
 
2153
 
 
2154
fi
 
2155
fi
 
2156
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2157
if test -n "$ac_ct_STRIP"; then
 
2158
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2159
$as_echo "$ac_ct_STRIP" >&6; }
 
2160
else
 
2161
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2162
$as_echo "no" >&6; }
 
2163
fi
 
2164
 
 
2165
  if test "x$ac_ct_STRIP" = x; then
 
2166
    STRIP=":"
 
2167
  else
 
2168
    case $cross_compiling:$ac_tool_warned in
 
2169
yes:)
 
2170
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2171
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2172
ac_tool_warned=yes ;;
 
2173
esac
 
2174
    STRIP=$ac_ct_STRIP
 
2175
  fi
 
2176
else
 
2177
  STRIP="$ac_cv_prog_STRIP"
 
2178
fi
 
2179
 
 
2180
fi
 
2181
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2182
 
2056
2183
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2057
2184
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2058
2185
if test -z "$MKDIR_P"; then
2207
2334
 
2208
2335
# Define the identity of the package.
2209
2336
 PACKAGE=leafnode
2210
 
 VERSION=1.11.7
 
2337
 VERSION=1.11.8
2211
2338
 
2212
2339
 
2213
2340
cat >>confdefs.h <<_ACEOF
2235
2362
 
2236
2363
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2237
2364
 
2238
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2239
 
 
2240
 
# Installed binaries are usually stripped using `strip' when the user
2241
 
# run `make install-strip'.  However `strip' might not be the right
2242
 
# tool to use in cross-compilation environments, therefore Automake
2243
 
# will honor the `STRIP' environment variable to overrule this program.
2244
 
if test "$cross_compiling" != no; then
2245
 
  if test -n "$ac_tool_prefix"; then
2246
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2247
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2248
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249
 
$as_echo_n "checking for $ac_word... " >&6; }
2250
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2251
 
  $as_echo_n "(cached) " >&6
2252
 
else
2253
 
  if test -n "$STRIP"; then
2254
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2255
 
else
2256
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257
 
for as_dir in $PATH
2258
 
do
2259
 
  IFS=$as_save_IFS
2260
 
  test -z "$as_dir" && as_dir=.
2261
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2262
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2264
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265
 
    break 2
2266
 
  fi
2267
 
done
2268
 
done
2269
 
IFS=$as_save_IFS
2270
 
 
2271
 
fi
2272
 
fi
2273
 
STRIP=$ac_cv_prog_STRIP
2274
 
if test -n "$STRIP"; then
2275
 
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2276
 
$as_echo "$STRIP" >&6; }
2277
 
else
2278
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2279
 
$as_echo "no" >&6; }
2280
 
fi
2281
 
 
2282
 
 
2283
 
fi
2284
 
if test -z "$ac_cv_prog_STRIP"; then
2285
 
  ac_ct_STRIP=$STRIP
2286
 
  # Extract the first word of "strip", so it can be a program name with args.
2287
 
set dummy strip; ac_word=$2
2288
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289
 
$as_echo_n "checking for $ac_word... " >&6; }
2290
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2291
 
  $as_echo_n "(cached) " >&6
2292
 
else
2293
 
  if test -n "$ac_ct_STRIP"; then
2294
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2295
 
else
2296
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297
 
for as_dir in $PATH
2298
 
do
2299
 
  IFS=$as_save_IFS
2300
 
  test -z "$as_dir" && as_dir=.
2301
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2302
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303
 
    ac_cv_prog_ac_ct_STRIP="strip"
2304
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305
 
    break 2
2306
 
  fi
2307
 
done
2308
 
done
2309
 
IFS=$as_save_IFS
2310
 
 
2311
 
fi
2312
 
fi
2313
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2314
 
if test -n "$ac_ct_STRIP"; then
2315
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2316
 
$as_echo "$ac_ct_STRIP" >&6; }
2317
 
else
2318
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
2319
 
$as_echo "no" >&6; }
2320
 
fi
2321
 
 
2322
 
  if test "x$ac_ct_STRIP" = x; then
2323
 
    STRIP=":"
2324
 
  else
2325
 
    case $cross_compiling:$ac_tool_warned in
2326
 
yes:)
2327
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2328
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329
 
ac_tool_warned=yes ;;
2330
 
esac
2331
 
    STRIP=$ac_ct_STRIP
2332
 
  fi
2333
 
else
2334
 
  STRIP="$ac_cv_prog_STRIP"
2335
 
fi
2336
 
 
2337
 
fi
2338
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2339
 
 
2340
2365
# We need awk for the "check" target.  The system "awk" is bad on
2341
2366
# some platforms.
2342
2367
# Always define AMTAR for backward compatibility.
2351
2376
 
2352
2377
ac_config_headers="$ac_config_headers config.h"
2353
2378
 
2354
 
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2355
 
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2356
 
    # Check whether --enable-maintainer-mode was given.
2357
 
if test "${enable_maintainer_mode+set}" = set; then
2358
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2359
 
else
2360
 
  USE_MAINTAINER_MODE=no
2361
 
fi
2362
 
 
2363
 
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2364
 
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2365
 
   if test $USE_MAINTAINER_MODE = yes; then
2366
 
  MAINTAINER_MODE_TRUE=
2367
 
  MAINTAINER_MODE_FALSE='#'
2368
 
else
2369
 
  MAINTAINER_MODE_TRUE='#'
2370
 
  MAINTAINER_MODE_FALSE=
2371
 
fi
2372
 
 
2373
 
  MAINT=$MAINTAINER_MODE_TRUE
2374
 
 
2375
 
 
 
2379
 
 
2380
for ac_prog in gawk mawk nawk awk
 
2381
do
 
2382
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2383
set dummy $ac_prog; ac_word=$2
 
2384
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2385
$as_echo_n "checking for $ac_word... " >&6; }
 
2386
if test "${ac_cv_prog_AWK+set}" = set; then
 
2387
  $as_echo_n "(cached) " >&6
 
2388
else
 
2389
  if test -n "$AWK"; then
 
2390
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2391
else
 
2392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2393
for as_dir in $PATH
 
2394
do
 
2395
  IFS=$as_save_IFS
 
2396
  test -z "$as_dir" && as_dir=.
 
2397
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2399
    ac_cv_prog_AWK="$ac_prog"
 
2400
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2401
    break 2
 
2402
  fi
 
2403
done
 
2404
done
 
2405
IFS=$as_save_IFS
 
2406
 
 
2407
fi
 
2408
fi
 
2409
AWK=$ac_cv_prog_AWK
 
2410
if test -n "$AWK"; then
 
2411
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2412
$as_echo "$AWK" >&6; }
 
2413
else
 
2414
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2415
$as_echo "no" >&6; }
 
2416
fi
 
2417
 
 
2418
 
 
2419
  test -n "$AWK" && break
 
2420
done
2376
2421
 
2377
2422
DEPDIR="${am__leading_dot}deps"
2378
2423
 
2382
2427
am_make=${MAKE-make}
2383
2428
cat > confinc << 'END'
2384
2429
am__doit:
2385
 
        @echo done
 
2430
        @echo this is the am__doit target
2386
2431
.PHONY: am__doit
2387
2432
END
2388
2433
# If we don't find an include directive, just comment out the code.
2393
2438
_am_result=none
2394
2439
# First try GNU make style include.
2395
2440
echo "include confinc" > confmf
2396
 
# We grep out `Entering directory' and `Leaving directory'
2397
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2398
 
# In particular we don't look at `^make:' because GNU make might
2399
 
# be invoked under some other name (usually "gmake"), in which
2400
 
# case it prints its new name instead of `make'.
2401
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2402
 
   am__include=include
2403
 
   am__quote=
2404
 
   _am_result=GNU
2405
 
fi
 
2441
# Ignore all kinds of additional output from `make'.
 
2442
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2443
*the\ am__doit\ target*)
 
2444
  am__include=include
 
2445
  am__quote=
 
2446
  _am_result=GNU
 
2447
  ;;
 
2448
esac
2406
2449
# Now try BSD make style include.
2407
2450
if test "$am__include" = "#"; then
2408
2451
   echo '.include "confinc"' > confmf
2409
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2410
 
      am__include=.include
2411
 
      am__quote="\""
2412
 
      _am_result=BSD
2413
 
   fi
 
2452
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2453
   *the\ am__doit\ target*)
 
2454
     am__include=.include
 
2455
     am__quote="\""
 
2456
     _am_result=BSD
 
2457
     ;;
 
2458
   esac
2414
2459
fi
2415
2460
 
2416
2461
 
3399
3444
  if test "$am_compiler_list" = ""; then
3400
3445
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3401
3446
  fi
 
3447
  am__universal=false
 
3448
  case " $depcc " in #(
 
3449
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3450
     esac
 
3451
 
3402
3452
  for depmode in $am_compiler_list; do
3403
3453
    # Setup a source with many dependencies, because some compilers
3404
3454
    # like to wrap large dependency lists on column 80 (with \), and
3416
3466
    done
3417
3467
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3418
3468
 
 
3469
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3470
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3471
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3472
    # versions had trouble with output in subdirs
 
3473
    am__obj=sub/conftest.${OBJEXT-o}
 
3474
    am__minus_obj="-o $am__obj"
3419
3475
    case $depmode in
 
3476
    gcc)
 
3477
      # This depmode causes a compiler race in universal mode.
 
3478
      test "$am__universal" = false || continue
 
3479
      ;;
3420
3480
    nosideeffect)
3421
3481
      # after this tag, mechanisms are not by side-effect, so they'll
3422
3482
      # only be used when explicitly requested
3426
3486
        break
3427
3487
      fi
3428
3488
      ;;
 
3489
    msvisualcpp | msvcmsys)
 
3490
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3491
      # not run yet.  These depmodes are late enough in the game, and
 
3492
      # so weak that their functioning should not be impacted.
 
3493
      am__obj=conftest.${OBJEXT-o}
 
3494
      am__minus_obj=
 
3495
      ;;
3429
3496
    none) break ;;
3430
3497
    esac
3431
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3432
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3433
 
    # handle `-M -o', and we need to detect this.
3434
3498
    if depmode=$depmode \
3435
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3499
       source=sub/conftest.c object=$am__obj \
3436
3500
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3437
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3501
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3438
3502
         >/dev/null 2>conftest.err &&
3439
3503
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3440
3504
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3441
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3505
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3442
3506
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3443
3507
      # icc doesn't choke on unknown options, it will just issue warnings
3444
3508
      # or remarks (even with -Werror).  So we grep stderr for any message
3477
3541
fi
3478
3542
 
3479
3543
 
3480
 
 
3481
 
 
3482
 
# Check whether --with-ipv6 was given.
3483
 
if test "${with_ipv6+set}" = set; then
3484
 
  withval=$with_ipv6; if test "$withval" != "no" ; then
3485
 
    { $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
3486
 
$as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
3487
 
if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
3488
 
  $as_echo_n "(cached) " >&6
3489
 
else
3490
 
  cat >conftest.$ac_ext <<_ACEOF
3491
 
/* confdefs.h.  */
3492
 
_ACEOF
3493
 
cat confdefs.h >>conftest.$ac_ext
3494
 
cat >>conftest.$ac_ext <<_ACEOF
3495
 
/* end confdefs.h.  */
3496
 
#include <netdb.h>
3497
 
 
3498
 
int
3499
 
main ()
3500
 
{
3501
 
#ifndef AI_ADDRCONFIG
3502
 
  (void) AI_ADDRCONFIG;
3503
 
#endif
3504
 
 
3505
 
  ;
3506
 
  return 0;
3507
 
}
3508
 
_ACEOF
3509
 
rm -f conftest.$ac_objext
3510
 
if { (ac_try="$ac_compile"
3511
 
case "(($ac_try" in
3512
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513
 
  *) ac_try_echo=$ac_try;;
3514
 
esac
3515
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516
 
$as_echo "$ac_try_echo") >&5
3517
 
  (eval "$ac_compile") 2>conftest.er1
3518
 
  ac_status=$?
3519
 
  grep -v '^ *+' conftest.er1 >conftest.err
3520
 
  rm -f conftest.er1
3521
 
  cat conftest.err >&5
3522
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
 
  (exit $ac_status); } && {
3524
 
         test -z "$ac_c_werror_flag" ||
3525
 
         test ! -s conftest.err
3526
 
       } && test -s conftest.$ac_objext; then
3527
 
  ac_cv_have_decl_AI_ADDRCONFIG=yes
3528
 
else
3529
 
  $as_echo "$as_me: failed program was:" >&5
3530
 
sed 's/^/| /' conftest.$ac_ext >&5
3531
 
 
3532
 
        ac_cv_have_decl_AI_ADDRCONFIG=no
3533
 
fi
3534
 
 
3535
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536
 
fi
3537
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
3538
 
$as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
3539
 
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
3540
 
  :
3541
 
else
3542
 
 
3543
 
cat >>confdefs.h <<\_ACEOF
3544
 
#define AI_ADDRCONFIG 0
3545
 
_ACEOF
3546
 
 
3547
 
fi
3548
 
 
3549
 
 
3550
 
cat >>confdefs.h <<\_ACEOF
3551
 
#define HAVE_IPV6 1
3552
 
_ACEOF
3553
 
 
3554
 
  fi
3555
 
 
3556
 
fi
3557
 
 
3558
 
 
3559
 
 
3560
 
# Check whether --with-confdir was given.
3561
 
if test "${with_confdir+set}" = set; then
3562
 
  withval=$with_confdir; { { $as_echo "$as_me:$LINENO: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&5
3563
 
$as_echo "$as_me: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&2;}
3564
 
   { (exit 1); exit 1; }; }
3565
 
fi
3566
 
 
3567
 
if test "$sysconfdir" = '${prefix}/etc' && test "x$prefix" = "xNONE" ; then
3568
 
    CONFDIR='/etc/leafnode'
3569
 
else
3570
 
    CONFDIR="$sysconfdir"
3571
 
fi
3572
 
 
3573
 
if test "$CONFDIR" != "$sysconfdir"; then
3574
 
  { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
3575
 
$as_echo "$as_me: WARNING: ***" >&2;}
3576
 
  { $as_echo "$as_me:$LINENO: WARNING: *** overriding sysconfdir to $CONFDIR" >&5
3577
 
$as_echo "$as_me: WARNING: *** overriding sysconfdir to $CONFDIR" >&2;}
3578
 
  { $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir to fix" >&5
3579
 
$as_echo "$as_me: WARNING: *** use --sysconfdir to fix" >&2;}
3580
 
  { $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&5
3581
 
$as_echo "$as_me: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&2;}
3582
 
  { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
3583
 
$as_echo "$as_me: WARNING: ***" >&2;}
3584
 
  sleep 1
3585
 
fi
3586
 
sysconfdir=$CONFDIR
3587
 
 
3588
 
 
3589
 
if test "$localstatedir" = '${prefix}/var' && test "$prefix" = NONE ; then
3590
 
  myvar=/var
3591
 
else
3592
 
  myvar="$localstatedir"
3593
 
fi
3594
 
 
3595
 
{ $as_echo "$as_me:$LINENO: checking spooldir" >&5
3596
 
$as_echo_n "checking spooldir... " >&6; }
3597
 
 
3598
 
# Check whether --with-spooldir was given.
3599
 
if test "${with_spooldir+set}" = set; then
3600
 
  withval=$with_spooldir;  case "${withval-}" in
3601
 
  /*) ;;
3602
 
  *)  { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
3603
 
$as_echo "$as_me: error: you must give an absolute path" >&2;}
3604
 
   { (exit 1); exit 1; }; }
3605
 
      ;;
3606
 
  esac
3607
 
  withval=`echo "$withval" | sed 'sx/*$xx;'`
3608
 
 
3609
 
else
3610
 
  withval="$myvar/spool/news"
3611
 
 
3612
 
fi
3613
 
 
3614
 
SPOOLDIR=$withval
3615
 
{ $as_echo "$as_me:$LINENO: result: $SPOOLDIR" >&5
3616
 
$as_echo "$SPOOLDIR" >&6; }
3617
 
 
3618
 
 
3619
 
{ $as_echo "$as_me:$LINENO: checking lockfile" >&5
3620
 
$as_echo_n "checking lockfile... " >&6; }
3621
 
 
3622
 
# Check whether --with-lockfile was given.
3623
 
if test "${with_lockfile+set}" = set; then
3624
 
  withval=$with_lockfile;
3625
 
  case "${withval-}" in
3626
 
  /*) ;;
3627
 
  *)  { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
3628
 
$as_echo "$as_me: error: you must give an absolute path" >&2;}
3629
 
   { (exit 1); exit 1; }; }
3630
 
      ;;
3631
 
  esac
3632
 
 
3633
 
else
3634
 
  withval="$SPOOLDIR/leaf.node/lock.file"
3635
 
 
3636
 
fi
3637
 
 
3638
 
LOCKFILE=$withval
3639
 
{ $as_echo "$as_me:$LINENO: result: $LOCKFILE" >&5
3640
 
$as_echo "$LOCKFILE" >&6; }
3641
 
 
3642
 
 
3643
 
for ac_prog in gawk mawk nawk awk
3644
 
do
3645
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3646
 
set dummy $ac_prog; ac_word=$2
3647
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3648
 
$as_echo_n "checking for $ac_word... " >&6; }
3649
 
if test "${ac_cv_prog_AWK+set}" = set; then
3650
 
  $as_echo_n "(cached) " >&6
3651
 
else
3652
 
  if test -n "$AWK"; then
3653
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3654
 
else
3655
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656
 
for as_dir in $PATH
3657
 
do
3658
 
  IFS=$as_save_IFS
3659
 
  test -z "$as_dir" && as_dir=.
3660
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3661
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662
 
    ac_cv_prog_AWK="$ac_prog"
3663
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664
 
    break 2
3665
 
  fi
3666
 
done
3667
 
done
3668
 
IFS=$as_save_IFS
3669
 
 
3670
 
fi
3671
 
fi
3672
 
AWK=$ac_cv_prog_AWK
3673
 
if test -n "$AWK"; then
3674
 
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3675
 
$as_echo "$AWK" >&6; }
3676
 
else
3677
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3678
 
$as_echo "no" >&6; }
3679
 
fi
3680
 
 
3681
 
 
3682
 
  test -n "$AWK" && break
3683
 
done
3684
 
 
3685
 
ac_ext=c
3686
 
ac_cpp='$CPP $CPPFLAGS'
3687
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
 
if test -n "$ac_tool_prefix"; then
3691
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3694
 
$as_echo_n "checking for $ac_word... " >&6; }
3695
 
if test "${ac_cv_prog_CC+set}" = set; then
3696
 
  $as_echo_n "(cached) " >&6
3697
 
else
3698
 
  if test -n "$CC"; then
3699
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3700
 
else
3701
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702
 
for as_dir in $PATH
3703
 
do
3704
 
  IFS=$as_save_IFS
3705
 
  test -z "$as_dir" && as_dir=.
3706
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3707
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710
 
    break 2
3711
 
  fi
3712
 
done
3713
 
done
3714
 
IFS=$as_save_IFS
3715
 
 
3716
 
fi
3717
 
fi
3718
 
CC=$ac_cv_prog_CC
3719
 
if test -n "$CC"; then
3720
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3721
 
$as_echo "$CC" >&6; }
3722
 
else
3723
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3724
 
$as_echo "no" >&6; }
3725
 
fi
3726
 
 
3727
 
 
3728
 
fi
3729
 
if test -z "$ac_cv_prog_CC"; then
3730
 
  ac_ct_CC=$CC
3731
 
  # Extract the first word of "gcc", so it can be a program name with args.
3732
 
set dummy gcc; ac_word=$2
3733
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3734
 
$as_echo_n "checking for $ac_word... " >&6; }
3735
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3736
 
  $as_echo_n "(cached) " >&6
3737
 
else
3738
 
  if test -n "$ac_ct_CC"; then
3739
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740
 
else
3741
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742
 
for as_dir in $PATH
3743
 
do
3744
 
  IFS=$as_save_IFS
3745
 
  test -z "$as_dir" && as_dir=.
3746
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3747
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748
 
    ac_cv_prog_ac_ct_CC="gcc"
3749
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750
 
    break 2
3751
 
  fi
3752
 
done
3753
 
done
3754
 
IFS=$as_save_IFS
3755
 
 
3756
 
fi
3757
 
fi
3758
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759
 
if test -n "$ac_ct_CC"; then
3760
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761
 
$as_echo "$ac_ct_CC" >&6; }
3762
 
else
3763
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3764
 
$as_echo "no" >&6; }
3765
 
fi
3766
 
 
3767
 
  if test "x$ac_ct_CC" = x; then
3768
 
    CC=""
3769
 
  else
3770
 
    case $cross_compiling:$ac_tool_warned in
3771
 
yes:)
3772
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3773
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774
 
ac_tool_warned=yes ;;
3775
 
esac
3776
 
    CC=$ac_ct_CC
3777
 
  fi
3778
 
else
3779
 
  CC="$ac_cv_prog_CC"
3780
 
fi
3781
 
 
3782
 
if test -z "$CC"; then
3783
 
          if test -n "$ac_tool_prefix"; then
3784
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3786
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3787
 
$as_echo_n "checking for $ac_word... " >&6; }
3788
 
if test "${ac_cv_prog_CC+set}" = set; then
3789
 
  $as_echo_n "(cached) " >&6
3790
 
else
3791
 
  if test -n "$CC"; then
3792
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3793
 
else
3794
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795
 
for as_dir in $PATH
3796
 
do
3797
 
  IFS=$as_save_IFS
3798
 
  test -z "$as_dir" && as_dir=.
3799
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3800
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3802
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803
 
    break 2
3804
 
  fi
3805
 
done
3806
 
done
3807
 
IFS=$as_save_IFS
3808
 
 
3809
 
fi
3810
 
fi
3811
 
CC=$ac_cv_prog_CC
3812
 
if test -n "$CC"; then
3813
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3814
 
$as_echo "$CC" >&6; }
3815
 
else
3816
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3817
 
$as_echo "no" >&6; }
3818
 
fi
3819
 
 
3820
 
 
3821
 
  fi
3822
 
fi
3823
 
if test -z "$CC"; then
3824
 
  # Extract the first word of "cc", so it can be a program name with args.
3825
 
set dummy cc; ac_word=$2
3826
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3827
 
$as_echo_n "checking for $ac_word... " >&6; }
3828
 
if test "${ac_cv_prog_CC+set}" = set; then
3829
 
  $as_echo_n "(cached) " >&6
3830
 
else
3831
 
  if test -n "$CC"; then
3832
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3833
 
else
3834
 
  ac_prog_rejected=no
3835
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836
 
for as_dir in $PATH
3837
 
do
3838
 
  IFS=$as_save_IFS
3839
 
  test -z "$as_dir" && as_dir=.
3840
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3841
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843
 
       ac_prog_rejected=yes
3844
 
       continue
3845
 
     fi
3846
 
    ac_cv_prog_CC="cc"
3847
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848
 
    break 2
3849
 
  fi
3850
 
done
3851
 
done
3852
 
IFS=$as_save_IFS
3853
 
 
3854
 
if test $ac_prog_rejected = yes; then
3855
 
  # We found a bogon in the path, so make sure we never use it.
3856
 
  set dummy $ac_cv_prog_CC
3857
 
  shift
3858
 
  if test $# != 0; then
3859
 
    # We chose a different compiler from the bogus one.
3860
 
    # However, it has the same basename, so the bogon will be chosen
3861
 
    # first if we set CC to just the basename; use the full file name.
3862
 
    shift
3863
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3864
 
  fi
3865
 
fi
3866
 
fi
3867
 
fi
3868
 
CC=$ac_cv_prog_CC
3869
 
if test -n "$CC"; then
3870
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3871
 
$as_echo "$CC" >&6; }
3872
 
else
3873
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3874
 
$as_echo "no" >&6; }
3875
 
fi
3876
 
 
3877
 
 
3878
 
fi
3879
 
if test -z "$CC"; then
3880
 
  if test -n "$ac_tool_prefix"; then
3881
 
  for ac_prog in cl.exe
3882
 
  do
3883
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3886
 
$as_echo_n "checking for $ac_word... " >&6; }
3887
 
if test "${ac_cv_prog_CC+set}" = set; then
3888
 
  $as_echo_n "(cached) " >&6
3889
 
else
3890
 
  if test -n "$CC"; then
3891
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3892
 
else
3893
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894
 
for as_dir in $PATH
3895
 
do
3896
 
  IFS=$as_save_IFS
3897
 
  test -z "$as_dir" && as_dir=.
3898
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3899
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902
 
    break 2
3903
 
  fi
3904
 
done
3905
 
done
3906
 
IFS=$as_save_IFS
3907
 
 
3908
 
fi
3909
 
fi
3910
 
CC=$ac_cv_prog_CC
3911
 
if test -n "$CC"; then
3912
 
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3913
 
$as_echo "$CC" >&6; }
3914
 
else
3915
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3916
 
$as_echo "no" >&6; }
3917
 
fi
3918
 
 
3919
 
 
3920
 
    test -n "$CC" && break
3921
 
  done
3922
 
fi
3923
 
if test -z "$CC"; then
3924
 
  ac_ct_CC=$CC
3925
 
  for ac_prog in cl.exe
3926
 
do
3927
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3928
 
set dummy $ac_prog; ac_word=$2
3929
 
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3930
 
$as_echo_n "checking for $ac_word... " >&6; }
3931
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3932
 
  $as_echo_n "(cached) " >&6
3933
 
else
3934
 
  if test -n "$ac_ct_CC"; then
3935
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936
 
else
3937
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938
 
for as_dir in $PATH
3939
 
do
3940
 
  IFS=$as_save_IFS
3941
 
  test -z "$as_dir" && as_dir=.
3942
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3943
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3945
 
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946
 
    break 2
3947
 
  fi
3948
 
done
3949
 
done
3950
 
IFS=$as_save_IFS
3951
 
 
3952
 
fi
3953
 
fi
3954
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955
 
if test -n "$ac_ct_CC"; then
3956
 
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3957
 
$as_echo "$ac_ct_CC" >&6; }
3958
 
else
3959
 
  { $as_echo "$as_me:$LINENO: result: no" >&5
3960
 
$as_echo "no" >&6; }
3961
 
fi
3962
 
 
3963
 
 
3964
 
  test -n "$ac_ct_CC" && break
3965
 
done
3966
 
 
3967
 
  if test "x$ac_ct_CC" = x; then
3968
 
    CC=""
3969
 
  else
3970
 
    case $cross_compiling:$ac_tool_warned in
3971
 
yes:)
3972
 
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3973
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974
 
ac_tool_warned=yes ;;
3975
 
esac
3976
 
    CC=$ac_ct_CC
3977
 
  fi
3978
 
fi
3979
 
 
3980
 
fi
3981
 
 
3982
 
 
3983
 
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3984
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985
 
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3986
 
See \`config.log' for more details." >&5
3987
 
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3988
 
See \`config.log' for more details." >&2;}
3989
 
   { (exit 1); exit 1; }; }; }
3990
 
 
3991
 
# Provide some information about the compiler.
3992
 
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3993
 
set X $ac_compile
3994
 
ac_compiler=$2
3995
 
{ (ac_try="$ac_compiler --version >&5"
3996
 
case "(($ac_try" in
3997
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998
 
  *) ac_try_echo=$ac_try;;
3999
 
esac
4000
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001
 
$as_echo "$ac_try_echo") >&5
4002
 
  (eval "$ac_compiler --version >&5") 2>&5
4003
 
  ac_status=$?
4004
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
 
  (exit $ac_status); }
4006
 
{ (ac_try="$ac_compiler -v >&5"
4007
 
case "(($ac_try" in
4008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009
 
  *) ac_try_echo=$ac_try;;
4010
 
esac
4011
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4012
 
$as_echo "$ac_try_echo") >&5
4013
 
  (eval "$ac_compiler -v >&5") 2>&5
4014
 
  ac_status=$?
4015
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
 
  (exit $ac_status); }
4017
 
{ (ac_try="$ac_compiler -V >&5"
4018
 
case "(($ac_try" in
4019
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020
 
  *) ac_try_echo=$ac_try;;
4021
 
esac
4022
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023
 
$as_echo "$ac_try_echo") >&5
4024
 
  (eval "$ac_compiler -V >&5") 2>&5
4025
 
  ac_status=$?
4026
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027
 
  (exit $ac_status); }
4028
 
 
4029
 
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4030
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4032
 
  $as_echo_n "(cached) " >&6
4033
 
else
4034
 
  cat >conftest.$ac_ext <<_ACEOF
4035
 
/* confdefs.h.  */
4036
 
_ACEOF
4037
 
cat confdefs.h >>conftest.$ac_ext
4038
 
cat >>conftest.$ac_ext <<_ACEOF
4039
 
/* end confdefs.h.  */
4040
 
 
4041
 
int
4042
 
main ()
4043
 
{
4044
 
#ifndef __GNUC__
4045
 
       choke me
4046
 
#endif
4047
 
 
4048
 
  ;
4049
 
  return 0;
4050
 
}
4051
 
_ACEOF
4052
 
rm -f conftest.$ac_objext
4053
 
if { (ac_try="$ac_compile"
4054
 
case "(($ac_try" in
4055
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056
 
  *) ac_try_echo=$ac_try;;
4057
 
esac
4058
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4059
 
$as_echo "$ac_try_echo") >&5
4060
 
  (eval "$ac_compile") 2>conftest.er1
4061
 
  ac_status=$?
4062
 
  grep -v '^ *+' conftest.er1 >conftest.err
4063
 
  rm -f conftest.er1
4064
 
  cat conftest.err >&5
4065
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
 
  (exit $ac_status); } && {
4067
 
         test -z "$ac_c_werror_flag" ||
4068
 
         test ! -s conftest.err
4069
 
       } && test -s conftest.$ac_objext; then
4070
 
  ac_compiler_gnu=yes
4071
 
else
4072
 
  $as_echo "$as_me: failed program was:" >&5
4073
 
sed 's/^/| /' conftest.$ac_ext >&5
4074
 
 
4075
 
        ac_compiler_gnu=no
4076
 
fi
4077
 
 
4078
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4080
 
 
4081
 
fi
4082
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4083
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4084
 
if test $ac_compiler_gnu = yes; then
4085
 
  GCC=yes
4086
 
else
4087
 
  GCC=
4088
 
fi
4089
 
ac_test_CFLAGS=${CFLAGS+set}
4090
 
ac_save_CFLAGS=$CFLAGS
4091
 
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4092
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4093
 
if test "${ac_cv_prog_cc_g+set}" = set; then
4094
 
  $as_echo_n "(cached) " >&6
4095
 
else
4096
 
  ac_save_c_werror_flag=$ac_c_werror_flag
4097
 
   ac_c_werror_flag=yes
4098
 
   ac_cv_prog_cc_g=no
4099
 
   CFLAGS="-g"
4100
 
   cat >conftest.$ac_ext <<_ACEOF
4101
 
/* confdefs.h.  */
4102
 
_ACEOF
4103
 
cat confdefs.h >>conftest.$ac_ext
4104
 
cat >>conftest.$ac_ext <<_ACEOF
4105
 
/* end confdefs.h.  */
4106
 
 
4107
 
int
4108
 
main ()
4109
 
{
4110
 
 
4111
 
  ;
4112
 
  return 0;
4113
 
}
4114
 
_ACEOF
4115
 
rm -f conftest.$ac_objext
4116
 
if { (ac_try="$ac_compile"
4117
 
case "(($ac_try" in
4118
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119
 
  *) ac_try_echo=$ac_try;;
4120
 
esac
4121
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122
 
$as_echo "$ac_try_echo") >&5
4123
 
  (eval "$ac_compile") 2>conftest.er1
4124
 
  ac_status=$?
4125
 
  grep -v '^ *+' conftest.er1 >conftest.err
4126
 
  rm -f conftest.er1
4127
 
  cat conftest.err >&5
4128
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129
 
  (exit $ac_status); } && {
4130
 
         test -z "$ac_c_werror_flag" ||
4131
 
         test ! -s conftest.err
4132
 
       } && test -s conftest.$ac_objext; then
4133
 
  ac_cv_prog_cc_g=yes
4134
 
else
4135
 
  $as_echo "$as_me: failed program was:" >&5
4136
 
sed 's/^/| /' conftest.$ac_ext >&5
4137
 
 
4138
 
        CFLAGS=""
4139
 
      cat >conftest.$ac_ext <<_ACEOF
4140
 
/* confdefs.h.  */
4141
 
_ACEOF
4142
 
cat confdefs.h >>conftest.$ac_ext
4143
 
cat >>conftest.$ac_ext <<_ACEOF
4144
 
/* end confdefs.h.  */
4145
 
 
4146
 
int
4147
 
main ()
4148
 
{
4149
 
 
4150
 
  ;
4151
 
  return 0;
4152
 
}
4153
 
_ACEOF
4154
 
rm -f conftest.$ac_objext
4155
 
if { (ac_try="$ac_compile"
4156
 
case "(($ac_try" in
4157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158
 
  *) ac_try_echo=$ac_try;;
4159
 
esac
4160
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4161
 
$as_echo "$ac_try_echo") >&5
4162
 
  (eval "$ac_compile") 2>conftest.er1
4163
 
  ac_status=$?
4164
 
  grep -v '^ *+' conftest.er1 >conftest.err
4165
 
  rm -f conftest.er1
4166
 
  cat conftest.err >&5
4167
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
 
  (exit $ac_status); } && {
4169
 
         test -z "$ac_c_werror_flag" ||
4170
 
         test ! -s conftest.err
4171
 
       } && test -s conftest.$ac_objext; then
4172
 
  :
4173
 
else
4174
 
  $as_echo "$as_me: failed program was:" >&5
4175
 
sed 's/^/| /' conftest.$ac_ext >&5
4176
 
 
4177
 
        ac_c_werror_flag=$ac_save_c_werror_flag
4178
 
         CFLAGS="-g"
4179
 
         cat >conftest.$ac_ext <<_ACEOF
4180
 
/* confdefs.h.  */
4181
 
_ACEOF
4182
 
cat confdefs.h >>conftest.$ac_ext
4183
 
cat >>conftest.$ac_ext <<_ACEOF
4184
 
/* end confdefs.h.  */
4185
 
 
4186
 
int
4187
 
main ()
4188
 
{
4189
 
 
4190
 
  ;
4191
 
  return 0;
4192
 
}
4193
 
_ACEOF
4194
 
rm -f conftest.$ac_objext
4195
 
if { (ac_try="$ac_compile"
4196
 
case "(($ac_try" in
4197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198
 
  *) ac_try_echo=$ac_try;;
4199
 
esac
4200
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4201
 
$as_echo "$ac_try_echo") >&5
4202
 
  (eval "$ac_compile") 2>conftest.er1
4203
 
  ac_status=$?
4204
 
  grep -v '^ *+' conftest.er1 >conftest.err
4205
 
  rm -f conftest.er1
4206
 
  cat conftest.err >&5
4207
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208
 
  (exit $ac_status); } && {
4209
 
         test -z "$ac_c_werror_flag" ||
4210
 
         test ! -s conftest.err
4211
 
       } && test -s conftest.$ac_objext; then
4212
 
  ac_cv_prog_cc_g=yes
4213
 
else
4214
 
  $as_echo "$as_me: failed program was:" >&5
4215
 
sed 's/^/| /' conftest.$ac_ext >&5
4216
 
 
4217
 
 
4218
 
fi
4219
 
 
4220
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221
 
fi
4222
 
 
4223
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224
 
fi
4225
 
 
4226
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
 
   ac_c_werror_flag=$ac_save_c_werror_flag
4228
 
fi
4229
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4230
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
4231
 
if test "$ac_test_CFLAGS" = set; then
4232
 
  CFLAGS=$ac_save_CFLAGS
4233
 
elif test $ac_cv_prog_cc_g = yes; then
4234
 
  if test "$GCC" = yes; then
4235
 
    CFLAGS="-g -O2"
4236
 
  else
4237
 
    CFLAGS="-g"
4238
 
  fi
4239
 
else
4240
 
  if test "$GCC" = yes; then
4241
 
    CFLAGS="-O2"
4242
 
  else
4243
 
    CFLAGS=
4244
 
  fi
4245
 
fi
4246
 
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3544
   case $ac_cv_prog_cc_stdc in
 
3545
  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
 
3546
  *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
 
3547
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
3548
if test "${ac_cv_prog_cc_c99+set}" = set; then
 
3549
  $as_echo_n "(cached) " >&6
 
3550
else
 
3551
  ac_cv_prog_cc_c99=no
 
3552
ac_save_CC=$CC
 
3553
cat >conftest.$ac_ext <<_ACEOF
 
3554
/* confdefs.h.  */
 
3555
_ACEOF
 
3556
cat confdefs.h >>conftest.$ac_ext
 
3557
cat >>conftest.$ac_ext <<_ACEOF
 
3558
/* end confdefs.h.  */
 
3559
#include <stdarg.h>
 
3560
#include <stdbool.h>
 
3561
#include <stdlib.h>
 
3562
#include <wchar.h>
 
3563
#include <stdio.h>
 
3564
 
 
3565
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
3566
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
3567
#define showlist(...) puts (#__VA_ARGS__)
 
3568
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
3569
static void
 
3570
test_varargs_macros (void)
 
3571
{
 
3572
  int x = 1234;
 
3573
  int y = 5678;
 
3574
  debug ("Flag");
 
3575
  debug ("X = %d\n", x);
 
3576
  showlist (The first, second, and third items.);
 
3577
  report (x>y, "x is %d but y is %d", x, y);
 
3578
}
 
3579
 
 
3580
// Check long long types.
 
3581
#define BIG64 18446744073709551615ull
 
3582
#define BIG32 4294967295ul
 
3583
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
3584
#if !BIG_OK
 
3585
  your preprocessor is broken;
 
3586
#endif
 
3587
#if BIG_OK
 
3588
#else
 
3589
  your preprocessor is broken;
 
3590
#endif
 
3591
static long long int bignum = -9223372036854775807LL;
 
3592
static unsigned long long int ubignum = BIG64;
 
3593
 
 
3594
struct incomplete_array
 
3595
{
 
3596
  int datasize;
 
3597
  double data[];
 
3598
};
 
3599
 
 
3600
struct named_init {
 
3601
  int number;
 
3602
  const wchar_t *name;
 
3603
  double average;
 
3604
};
 
3605
 
 
3606
typedef const char *ccp;
 
3607
 
 
3608
static inline int
 
3609
test_restrict (ccp restrict text)
 
3610
{
 
3611
  // See if C++-style comments work.
 
3612
  // Iterate through items via the restricted pointer.
 
3613
  // Also check for declarations in for loops.
 
3614
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
3615
    continue;
 
3616
  return 0;
 
3617
}
 
3618
 
 
3619
// Check varargs and va_copy.
 
3620
static void
 
3621
test_varargs (const char *format, ...)
 
3622
{
 
3623
  va_list args;
 
3624
  va_start (args, format);
 
3625
  va_list args_copy;
 
3626
  va_copy (args_copy, args);
 
3627
 
 
3628
  const char *str;
 
3629
  int number;
 
3630
  float fnumber;
 
3631
 
 
3632
  while (*format)
 
3633
    {
 
3634
      switch (*format++)
 
3635
        {
 
3636
        case 's': // string
 
3637
          str = va_arg (args_copy, const char *);
 
3638
          break;
 
3639
        case 'd': // int
 
3640
          number = va_arg (args_copy, int);
 
3641
          break;
 
3642
        case 'f': // float
 
3643
          fnumber = va_arg (args_copy, double);
 
3644
          break;
 
3645
        default:
 
3646
          break;
 
3647
        }
 
3648
    }
 
3649
  va_end (args_copy);
 
3650
  va_end (args);
 
3651
}
 
3652
 
 
3653
int
 
3654
main ()
 
3655
{
 
3656
 
 
3657
  // Check bool.
 
3658
  _Bool success = false;
 
3659
 
 
3660
  // Check restrict.
 
3661
  if (test_restrict ("String literal") == 0)
 
3662
    success = true;
 
3663
  char *restrict newvar = "Another string";
 
3664
 
 
3665
  // Check varargs.
 
3666
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
3667
  test_varargs_macros ();
 
3668
 
 
3669
  // Check flexible array members.
 
3670
  struct incomplete_array *ia =
 
3671
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
3672
  ia->datasize = 10;
 
3673
  for (int i = 0; i < ia->datasize; ++i)
 
3674
    ia->data[i] = i * 1.234;
 
3675
 
 
3676
  // Check named initializers.
 
3677
  struct named_init ni = {
 
3678
    .number = 34,
 
3679
    .name = L"Test wide string",
 
3680
    .average = 543.34343,
 
3681
  };
 
3682
 
 
3683
  ni.number = 58;
 
3684
 
 
3685
  int dynamic_array[ni.number];
 
3686
  dynamic_array[ni.number - 1] = 543;
 
3687
 
 
3688
  // work around unused variable warnings
 
3689
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
3690
          || dynamic_array[ni.number - 1] != 543);
 
3691
 
 
3692
  ;
 
3693
  return 0;
 
3694
}
 
3695
_ACEOF
 
3696
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
3697
do
 
3698
  CC="$ac_save_CC $ac_arg"
 
3699
  rm -f conftest.$ac_objext
 
3700
if { (ac_try="$ac_compile"
 
3701
case "(($ac_try" in
 
3702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3703
  *) ac_try_echo=$ac_try;;
 
3704
esac
 
3705
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3706
$as_echo "$ac_try_echo") >&5
 
3707
  (eval "$ac_compile") 2>conftest.er1
 
3708
  ac_status=$?
 
3709
  grep -v '^ *+' conftest.er1 >conftest.err
 
3710
  rm -f conftest.er1
 
3711
  cat conftest.err >&5
 
3712
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3713
  (exit $ac_status); } && {
 
3714
         test -z "$ac_c_werror_flag" ||
 
3715
         test ! -s conftest.err
 
3716
       } && test -s conftest.$ac_objext; then
 
3717
  ac_cv_prog_cc_c99=$ac_arg
 
3718
else
 
3719
  $as_echo "$as_me: failed program was:" >&5
 
3720
sed 's/^/| /' conftest.$ac_ext >&5
 
3721
 
 
3722
 
 
3723
fi
 
3724
 
 
3725
rm -f core conftest.err conftest.$ac_objext
 
3726
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
3727
done
 
3728
rm -f conftest.$ac_ext
 
3729
CC=$ac_save_CC
 
3730
 
 
3731
fi
 
3732
# AC_CACHE_VAL
 
3733
case "x$ac_cv_prog_cc_c99" in
 
3734
  x)
 
3735
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3736
$as_echo "none needed" >&6; } ;;
 
3737
  xno)
 
3738
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3739
$as_echo "unsupported" >&6; } ;;
 
3740
  *)
 
3741
    CC="$CC $ac_cv_prog_cc_c99"
 
3742
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
 
3743
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
3744
esac
 
3745
if test "x$ac_cv_prog_cc_c99" != xno; then
 
3746
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
3747
else
 
3748
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4247
3749
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4248
3750
if test "${ac_cv_prog_cc_c89+set}" = set; then
4249
3751
  $as_echo_n "(cached) " >&6
4357
3859
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4358
3860
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4359
3861
esac
4360
 
 
4361
 
 
4362
 
ac_ext=c
4363
 
ac_cpp='$CPP $CPPFLAGS'
4364
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
 
 
4368
 
depcc="$CC"   am_compiler_list=
4369
 
 
4370
 
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4371
 
$as_echo_n "checking dependency style of $depcc... " >&6; }
4372
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4373
 
  $as_echo_n "(cached) " >&6
4374
 
else
4375
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4377
 
  # making bogus files that we don't know about and never remove.  For
4378
 
  # instance it was reported that on HP-UX the gcc test will end up
4379
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4380
 
  # in D'.
4381
 
  mkdir conftest.dir
4382
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4383
 
  # using a relative directory.
4384
 
  cp "$am_depcomp" conftest.dir
4385
 
  cd conftest.dir
4386
 
  # We will build objects and dependencies in a subdirectory because
4387
 
  # it helps to detect inapplicable dependency modes.  For instance
4388
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4389
 
  # side effect of compilation, but ICC will put the dependencies in
4390
 
  # the current directory while Tru64 will put them in the object
4391
 
  # directory.
4392
 
  mkdir sub
4393
 
 
4394
 
  am_cv_CC_dependencies_compiler_type=none
4395
 
  if test "$am_compiler_list" = ""; then
4396
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4397
 
  fi
4398
 
  for depmode in $am_compiler_list; do
4399
 
    # Setup a source with many dependencies, because some compilers
4400
 
    # like to wrap large dependency lists on column 80 (with \), and
4401
 
    # we should not choose a depcomp mode which is confused by this.
4402
 
    #
4403
 
    # We need to recreate these files for each test, as the compiler may
4404
 
    # overwrite some of them when testing with obscure command lines.
4405
 
    # This happens at least with the AIX C compiler.
4406
 
    : > sub/conftest.c
4407
 
    for i in 1 2 3 4 5 6; do
4408
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4409
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4410
 
      # Solaris 8's {/usr,}/bin/sh.
4411
 
      touch sub/conftst$i.h
4412
 
    done
4413
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4414
 
 
4415
 
    case $depmode in
4416
 
    nosideeffect)
4417
 
      # after this tag, mechanisms are not by side-effect, so they'll
4418
 
      # only be used when explicitly requested
4419
 
      if test "x$enable_dependency_tracking" = xyes; then
4420
 
        continue
4421
 
      else
4422
 
        break
4423
 
      fi
4424
 
      ;;
4425
 
    none) break ;;
4426
 
    esac
4427
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4428
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4429
 
    # handle `-M -o', and we need to detect this.
4430
 
    if depmode=$depmode \
4431
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4432
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4434
 
         >/dev/null 2>conftest.err &&
4435
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4436
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4437
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4438
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4439
 
      # icc doesn't choke on unknown options, it will just issue warnings
4440
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4441
 
      # that says an option was ignored or not supported.
4442
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4443
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4444
 
      # The diagnosis changed in icc 8.0:
4445
 
      #   icc: Command line remark: option '-MP' not supported
4446
 
      if (grep 'ignoring option' conftest.err ||
4447
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4448
 
        am_cv_CC_dependencies_compiler_type=$depmode
4449
 
        break
4450
 
      fi
4451
 
    fi
4452
 
  done
4453
 
 
4454
 
  cd ..
4455
 
  rm -rf conftest.dir
4456
 
else
4457
 
  am_cv_CC_dependencies_compiler_type=none
4458
 
fi
4459
 
 
4460
 
fi
4461
 
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4462
 
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4463
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464
 
 
4465
 
 if
4466
 
  test "x$enable_dependency_tracking" != xno \
4467
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4468
 
  am__fastdepCC_TRUE=
4469
 
  am__fastdepCC_FALSE='#'
4470
 
else
4471
 
  am__fastdepCC_TRUE='#'
4472
 
  am__fastdepCC_FALSE=
4473
 
fi
4474
 
 
4475
 
 
4476
 
 
4477
 
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
4478
 
$as_echo_n "checking for inline... " >&6; }
4479
 
if test "${ac_cv_c_inline+set}" = set; then
4480
 
  $as_echo_n "(cached) " >&6
4481
 
else
4482
 
  ac_cv_c_inline=no
4483
 
for ac_kw in inline __inline__ __inline; do
4484
 
  cat >conftest.$ac_ext <<_ACEOF
4485
 
/* confdefs.h.  */
4486
 
_ACEOF
4487
 
cat confdefs.h >>conftest.$ac_ext
4488
 
cat >>conftest.$ac_ext <<_ACEOF
4489
 
/* end confdefs.h.  */
4490
 
#ifndef __cplusplus
4491
 
typedef int foo_t;
4492
 
static $ac_kw foo_t static_foo () {return 0; }
4493
 
$ac_kw foo_t foo () {return 0; }
4494
 
#endif
4495
 
 
4496
 
_ACEOF
4497
 
rm -f conftest.$ac_objext
4498
 
if { (ac_try="$ac_compile"
4499
 
case "(($ac_try" in
4500
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501
 
  *) ac_try_echo=$ac_try;;
4502
 
esac
4503
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4504
 
$as_echo "$ac_try_echo") >&5
4505
 
  (eval "$ac_compile") 2>conftest.er1
4506
 
  ac_status=$?
4507
 
  grep -v '^ *+' conftest.er1 >conftest.err
4508
 
  rm -f conftest.er1
4509
 
  cat conftest.err >&5
4510
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
 
  (exit $ac_status); } && {
4512
 
         test -z "$ac_c_werror_flag" ||
4513
 
         test ! -s conftest.err
4514
 
       } && test -s conftest.$ac_objext; then
4515
 
  ac_cv_c_inline=$ac_kw
4516
 
else
4517
 
  $as_echo "$as_me: failed program was:" >&5
4518
 
sed 's/^/| /' conftest.$ac_ext >&5
4519
 
 
4520
 
 
4521
 
fi
4522
 
 
4523
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524
 
  test "$ac_cv_c_inline" != no && break
4525
 
done
4526
 
 
4527
 
fi
4528
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4529
 
$as_echo "$ac_cv_c_inline" >&6; }
4530
 
 
4531
 
 
4532
 
case $ac_cv_c_inline in
4533
 
  inline | yes) ;;
4534
 
  *)
4535
 
    case $ac_cv_c_inline in
4536
 
      no) ac_val=;;
4537
 
      *) ac_val=$ac_cv_c_inline;;
4538
 
    esac
4539
 
    cat >>confdefs.h <<_ACEOF
4540
 
#ifndef __cplusplus
4541
 
#define inline $ac_val
4542
 
#endif
4543
 
_ACEOF
4544
 
    ;;
4545
 
esac
4546
 
 
4547
 
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
4548
 
$as_echo_n "checking for working volatile... " >&6; }
4549
 
if test "${ac_cv_c_volatile+set}" = set; then
4550
 
  $as_echo_n "(cached) " >&6
4551
 
else
4552
 
  cat >conftest.$ac_ext <<_ACEOF
4553
 
/* confdefs.h.  */
4554
 
_ACEOF
4555
 
cat confdefs.h >>conftest.$ac_ext
4556
 
cat >>conftest.$ac_ext <<_ACEOF
4557
 
/* end confdefs.h.  */
4558
 
 
4559
 
int
4560
 
main ()
4561
 
{
4562
 
 
4563
 
volatile int x;
4564
 
int * volatile y = (int *) 0;
4565
 
return !x && !y;
4566
 
  ;
4567
 
  return 0;
4568
 
}
4569
 
_ACEOF
4570
 
rm -f conftest.$ac_objext
4571
 
if { (ac_try="$ac_compile"
4572
 
case "(($ac_try" in
4573
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574
 
  *) ac_try_echo=$ac_try;;
4575
 
esac
4576
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577
 
$as_echo "$ac_try_echo") >&5
4578
 
  (eval "$ac_compile") 2>conftest.er1
4579
 
  ac_status=$?
4580
 
  grep -v '^ *+' conftest.er1 >conftest.err
4581
 
  rm -f conftest.er1
4582
 
  cat conftest.err >&5
4583
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584
 
  (exit $ac_status); } && {
4585
 
         test -z "$ac_c_werror_flag" ||
4586
 
         test ! -s conftest.err
4587
 
       } && test -s conftest.$ac_objext; then
4588
 
  ac_cv_c_volatile=yes
4589
 
else
4590
 
  $as_echo "$as_me: failed program was:" >&5
4591
 
sed 's/^/| /' conftest.$ac_ext >&5
4592
 
 
4593
 
        ac_cv_c_volatile=no
4594
 
fi
4595
 
 
4596
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597
 
fi
4598
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4599
 
$as_echo "$ac_cv_c_volatile" >&6; }
4600
 
if test $ac_cv_c_volatile = no; then
4601
 
 
4602
 
cat >>confdefs.h <<\_ACEOF
4603
 
#define volatile /**/
4604
 
_ACEOF
4605
 
 
4606
 
fi
 
3862
if test "x$ac_cv_prog_cc_c89" != xno; then
 
3863
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
3864
else
 
3865
  ac_cv_prog_cc_stdc=no
 
3866
fi
 
3867
 
 
3868
 
 
3869
fi
 
3870
 
 
3871
 ;;
 
3872
esac
 
3873
  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
 
3874
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
 
3875
  if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3876
  $as_echo_n "(cached) " >&6
 
3877
fi
 
3878
 
 
3879
  case $ac_cv_prog_cc_stdc in
 
3880
  no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3881
$as_echo "unsupported" >&6; } ;;
 
3882
  '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3883
$as_echo "none needed" >&6; } ;;
 
3884
  *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3885
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
 
3886
esac
 
3887
 
 
3888
 
 
3889
 
4607
3890
 
4608
3891
ac_ext=c
4609
3892
ac_cpp='$CPP $CPPFLAGS'
4976
4259
 EGREP="$ac_cv_path_EGREP"
4977
4260
 
4978
4261
 
4979
 
if test $ac_cv_c_compiler_gnu = yes; then
4980
 
    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4981
 
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4982
 
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4983
 
  $as_echo_n "(cached) " >&6
4984
 
else
4985
 
    ac_pattern="Autoconf.*'x'"
4986
 
  cat >conftest.$ac_ext <<_ACEOF
4987
 
/* confdefs.h.  */
4988
 
_ACEOF
4989
 
cat confdefs.h >>conftest.$ac_ext
4990
 
cat >>conftest.$ac_ext <<_ACEOF
4991
 
/* end confdefs.h.  */
4992
 
#include <sgtty.h>
4993
 
Autoconf TIOCGETP
4994
 
_ACEOF
4995
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4996
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4997
 
  ac_cv_prog_gcc_traditional=yes
4998
 
else
4999
 
  ac_cv_prog_gcc_traditional=no
5000
 
fi
5001
 
rm -f conftest*
5002
 
 
5003
 
 
5004
 
  if test $ac_cv_prog_gcc_traditional = no; then
5005
 
    cat >conftest.$ac_ext <<_ACEOF
5006
 
/* confdefs.h.  */
5007
 
_ACEOF
5008
 
cat confdefs.h >>conftest.$ac_ext
5009
 
cat >>conftest.$ac_ext <<_ACEOF
5010
 
/* end confdefs.h.  */
5011
 
#include <termio.h>
5012
 
Autoconf TCGETA
5013
 
_ACEOF
5014
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015
 
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
5016
 
  ac_cv_prog_gcc_traditional=yes
5017
 
fi
5018
 
rm -f conftest*
5019
 
 
5020
 
  fi
5021
 
fi
5022
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5023
 
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5024
 
  if test $ac_cv_prog_gcc_traditional = yes; then
5025
 
    CC="$CC -traditional"
5026
 
  fi
 
4262
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4263
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4264
if test "${ac_cv_header_stdc+set}" = set; then
 
4265
  $as_echo_n "(cached) " >&6
 
4266
else
 
4267
  cat >conftest.$ac_ext <<_ACEOF
 
4268
/* confdefs.h.  */
 
4269
_ACEOF
 
4270
cat confdefs.h >>conftest.$ac_ext
 
4271
cat >>conftest.$ac_ext <<_ACEOF
 
4272
/* end confdefs.h.  */
 
4273
#include <stdlib.h>
 
4274
#include <stdarg.h>
 
4275
#include <string.h>
 
4276
#include <float.h>
 
4277
 
 
4278
int
 
4279
main ()
 
4280
{
 
4281
 
 
4282
  ;
 
4283
  return 0;
 
4284
}
 
4285
_ACEOF
 
4286
rm -f conftest.$ac_objext
 
4287
if { (ac_try="$ac_compile"
 
4288
case "(($ac_try" in
 
4289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4290
  *) ac_try_echo=$ac_try;;
 
4291
esac
 
4292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4293
$as_echo "$ac_try_echo") >&5
 
4294
  (eval "$ac_compile") 2>conftest.er1
 
4295
  ac_status=$?
 
4296
  grep -v '^ *+' conftest.er1 >conftest.err
 
4297
  rm -f conftest.er1
 
4298
  cat conftest.err >&5
 
4299
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4300
  (exit $ac_status); } && {
 
4301
         test -z "$ac_c_werror_flag" ||
 
4302
         test ! -s conftest.err
 
4303
       } && test -s conftest.$ac_objext; then
 
4304
  ac_cv_header_stdc=yes
 
4305
else
 
4306
  $as_echo "$as_me: failed program was:" >&5
 
4307
sed 's/^/| /' conftest.$ac_ext >&5
 
4308
 
 
4309
        ac_cv_header_stdc=no
 
4310
fi
 
4311
 
 
4312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4313
 
 
4314
if test $ac_cv_header_stdc = yes; then
 
4315
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4316
  cat >conftest.$ac_ext <<_ACEOF
 
4317
/* confdefs.h.  */
 
4318
_ACEOF
 
4319
cat confdefs.h >>conftest.$ac_ext
 
4320
cat >>conftest.$ac_ext <<_ACEOF
 
4321
/* end confdefs.h.  */
 
4322
#include <string.h>
 
4323
 
 
4324
_ACEOF
 
4325
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4326
  $EGREP "memchr" >/dev/null 2>&1; then
 
4327
  :
 
4328
else
 
4329
  ac_cv_header_stdc=no
 
4330
fi
 
4331
rm -f conftest*
 
4332
 
 
4333
fi
 
4334
 
 
4335
if test $ac_cv_header_stdc = yes; then
 
4336
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4337
  cat >conftest.$ac_ext <<_ACEOF
 
4338
/* confdefs.h.  */
 
4339
_ACEOF
 
4340
cat confdefs.h >>conftest.$ac_ext
 
4341
cat >>conftest.$ac_ext <<_ACEOF
 
4342
/* end confdefs.h.  */
 
4343
#include <stdlib.h>
 
4344
 
 
4345
_ACEOF
 
4346
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4347
  $EGREP "free" >/dev/null 2>&1; then
 
4348
  :
 
4349
else
 
4350
  ac_cv_header_stdc=no
 
4351
fi
 
4352
rm -f conftest*
 
4353
 
 
4354
fi
 
4355
 
 
4356
if test $ac_cv_header_stdc = yes; then
 
4357
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4358
  if test "$cross_compiling" = yes; then
 
4359
  :
 
4360
else
 
4361
  cat >conftest.$ac_ext <<_ACEOF
 
4362
/* confdefs.h.  */
 
4363
_ACEOF
 
4364
cat confdefs.h >>conftest.$ac_ext
 
4365
cat >>conftest.$ac_ext <<_ACEOF
 
4366
/* end confdefs.h.  */
 
4367
#include <ctype.h>
 
4368
#include <stdlib.h>
 
4369
#if ((' ' & 0x0FF) == 0x020)
 
4370
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4371
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4372
#else
 
4373
# define ISLOWER(c) \
 
4374
                   (('a' <= (c) && (c) <= 'i') \
 
4375
                     || ('j' <= (c) && (c) <= 'r') \
 
4376
                     || ('s' <= (c) && (c) <= 'z'))
 
4377
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4378
#endif
 
4379
 
 
4380
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4381
int
 
4382
main ()
 
4383
{
 
4384
  int i;
 
4385
  for (i = 0; i < 256; i++)
 
4386
    if (XOR (islower (i), ISLOWER (i))
 
4387
        || toupper (i) != TOUPPER (i))
 
4388
      return 2;
 
4389
  return 0;
 
4390
}
 
4391
_ACEOF
 
4392
rm -f conftest$ac_exeext
 
4393
if { (ac_try="$ac_link"
 
4394
case "(($ac_try" in
 
4395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4396
  *) ac_try_echo=$ac_try;;
 
4397
esac
 
4398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4399
$as_echo "$ac_try_echo") >&5
 
4400
  (eval "$ac_link") 2>&5
 
4401
  ac_status=$?
 
4402
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4403
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4404
  { (case "(($ac_try" in
 
4405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4406
  *) ac_try_echo=$ac_try;;
 
4407
esac
 
4408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4409
$as_echo "$ac_try_echo") >&5
 
4410
  (eval "$ac_try") 2>&5
 
4411
  ac_status=$?
 
4412
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4413
  (exit $ac_status); }; }; then
 
4414
  :
 
4415
else
 
4416
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4417
$as_echo "$as_me: failed program was:" >&5
 
4418
sed 's/^/| /' conftest.$ac_ext >&5
 
4419
 
 
4420
( exit $ac_status )
 
4421
ac_cv_header_stdc=no
 
4422
fi
 
4423
rm -rf conftest.dSYM
 
4424
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4425
fi
 
4426
 
 
4427
 
 
4428
fi
 
4429
fi
 
4430
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4431
$as_echo "$ac_cv_header_stdc" >&6; }
 
4432
if test $ac_cv_header_stdc = yes; then
 
4433
 
 
4434
cat >>confdefs.h <<\_ACEOF
 
4435
#define STDC_HEADERS 1
 
4436
_ACEOF
 
4437
 
 
4438
fi
 
4439
 
 
4440
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4441
 
 
4442
 
 
4443
 
 
4444
 
 
4445
 
 
4446
 
 
4447
 
 
4448
 
 
4449
 
 
4450
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4451
                  inttypes.h stdint.h unistd.h
 
4452
do
 
4453
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4454
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4455
$as_echo_n "checking for $ac_header... " >&6; }
 
4456
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4457
  $as_echo_n "(cached) " >&6
 
4458
else
 
4459
  cat >conftest.$ac_ext <<_ACEOF
 
4460
/* confdefs.h.  */
 
4461
_ACEOF
 
4462
cat confdefs.h >>conftest.$ac_ext
 
4463
cat >>conftest.$ac_ext <<_ACEOF
 
4464
/* end confdefs.h.  */
 
4465
$ac_includes_default
 
4466
 
 
4467
#include <$ac_header>
 
4468
_ACEOF
 
4469
rm -f conftest.$ac_objext
 
4470
if { (ac_try="$ac_compile"
 
4471
case "(($ac_try" in
 
4472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4473
  *) ac_try_echo=$ac_try;;
 
4474
esac
 
4475
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4476
$as_echo "$ac_try_echo") >&5
 
4477
  (eval "$ac_compile") 2>conftest.er1
 
4478
  ac_status=$?
 
4479
  grep -v '^ *+' conftest.er1 >conftest.err
 
4480
  rm -f conftest.er1
 
4481
  cat conftest.err >&5
 
4482
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4483
  (exit $ac_status); } && {
 
4484
         test -z "$ac_c_werror_flag" ||
 
4485
         test ! -s conftest.err
 
4486
       } && test -s conftest.$ac_objext; then
 
4487
  eval "$as_ac_Header=yes"
 
4488
else
 
4489
  $as_echo "$as_me: failed program was:" >&5
 
4490
sed 's/^/| /' conftest.$ac_ext >&5
 
4491
 
 
4492
        eval "$as_ac_Header=no"
 
4493
fi
 
4494
 
 
4495
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4496
fi
 
4497
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
4498
                 $as_echo "$as_val"'`
 
4499
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
4500
$as_echo "$ac_res" >&6; }
 
4501
as_val=`eval 'as_val=${'$as_ac_Header'}
 
4502
                 $as_echo "$as_val"'`
 
4503
   if test "x$as_val" = x""yes; then
 
4504
  cat >>confdefs.h <<_ACEOF
 
4505
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4506
_ACEOF
 
4507
 
 
4508
fi
 
4509
 
 
4510
done
 
4511
 
 
4512
 
 
4513
 
 
4514
  if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4515
  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4516
$as_echo_n "checking for minix/config.h... " >&6; }
 
4517
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4518
  $as_echo_n "(cached) " >&6
 
4519
fi
 
4520
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4521
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
4522
else
 
4523
  # Is the header compilable?
 
4524
{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
 
4525
$as_echo_n "checking minix/config.h usability... " >&6; }
 
4526
cat >conftest.$ac_ext <<_ACEOF
 
4527
/* confdefs.h.  */
 
4528
_ACEOF
 
4529
cat confdefs.h >>conftest.$ac_ext
 
4530
cat >>conftest.$ac_ext <<_ACEOF
 
4531
/* end confdefs.h.  */
 
4532
$ac_includes_default
 
4533
#include <minix/config.h>
 
4534
_ACEOF
 
4535
rm -f conftest.$ac_objext
 
4536
if { (ac_try="$ac_compile"
 
4537
case "(($ac_try" in
 
4538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4539
  *) ac_try_echo=$ac_try;;
 
4540
esac
 
4541
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4542
$as_echo "$ac_try_echo") >&5
 
4543
  (eval "$ac_compile") 2>conftest.er1
 
4544
  ac_status=$?
 
4545
  grep -v '^ *+' conftest.er1 >conftest.err
 
4546
  rm -f conftest.er1
 
4547
  cat conftest.err >&5
 
4548
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); } && {
 
4550
         test -z "$ac_c_werror_flag" ||
 
4551
         test ! -s conftest.err
 
4552
       } && test -s conftest.$ac_objext; then
 
4553
  ac_header_compiler=yes
 
4554
else
 
4555
  $as_echo "$as_me: failed program was:" >&5
 
4556
sed 's/^/| /' conftest.$ac_ext >&5
 
4557
 
 
4558
        ac_header_compiler=no
 
4559
fi
 
4560
 
 
4561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4562
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4563
$as_echo "$ac_header_compiler" >&6; }
 
4564
 
 
4565
# Is the header present?
 
4566
{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
 
4567
$as_echo_n "checking minix/config.h presence... " >&6; }
 
4568
cat >conftest.$ac_ext <<_ACEOF
 
4569
/* confdefs.h.  */
 
4570
_ACEOF
 
4571
cat confdefs.h >>conftest.$ac_ext
 
4572
cat >>conftest.$ac_ext <<_ACEOF
 
4573
/* end confdefs.h.  */
 
4574
#include <minix/config.h>
 
4575
_ACEOF
 
4576
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4577
case "(($ac_try" in
 
4578
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4579
  *) ac_try_echo=$ac_try;;
 
4580
esac
 
4581
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4582
$as_echo "$ac_try_echo") >&5
 
4583
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4584
  ac_status=$?
 
4585
  grep -v '^ *+' conftest.er1 >conftest.err
 
4586
  rm -f conftest.er1
 
4587
  cat conftest.err >&5
 
4588
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4589
  (exit $ac_status); } >/dev/null && {
 
4590
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4591
         test ! -s conftest.err
 
4592
       }; then
 
4593
  ac_header_preproc=yes
 
4594
else
 
4595
  $as_echo "$as_me: failed program was:" >&5
 
4596
sed 's/^/| /' conftest.$ac_ext >&5
 
4597
 
 
4598
  ac_header_preproc=no
 
4599
fi
 
4600
 
 
4601
rm -f conftest.err conftest.$ac_ext
 
4602
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4603
$as_echo "$ac_header_preproc" >&6; }
 
4604
 
 
4605
# So?  What about this header?
 
4606
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4607
  yes:no: )
 
4608
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
4609
$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4610
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
 
4611
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
 
4612
    ac_header_preproc=yes
 
4613
    ;;
 
4614
  no:yes:* )
 
4615
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
 
4616
$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
 
4617
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
 
4618
$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
 
4619
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
 
4620
$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
 
4621
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
 
4622
$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4623
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
 
4624
$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
 
4625
    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
 
4626
$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
 
4627
 
 
4628
    ;;
 
4629
esac
 
4630
{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
 
4631
$as_echo_n "checking for minix/config.h... " >&6; }
 
4632
if test "${ac_cv_header_minix_config_h+set}" = set; then
 
4633
  $as_echo_n "(cached) " >&6
 
4634
else
 
4635
  ac_cv_header_minix_config_h=$ac_header_preproc
 
4636
fi
 
4637
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
 
4638
$as_echo "$ac_cv_header_minix_config_h" >&6; }
 
4639
 
 
4640
fi
 
4641
if test "x$ac_cv_header_minix_config_h" = x""yes; then
 
4642
  MINIX=yes
 
4643
else
 
4644
  MINIX=
 
4645
fi
 
4646
 
 
4647
 
 
4648
  if test "$MINIX" = yes; then
 
4649
 
 
4650
cat >>confdefs.h <<\_ACEOF
 
4651
#define _POSIX_SOURCE 1
 
4652
_ACEOF
 
4653
 
 
4654
 
 
4655
cat >>confdefs.h <<\_ACEOF
 
4656
#define _POSIX_1_SOURCE 2
 
4657
_ACEOF
 
4658
 
 
4659
 
 
4660
cat >>confdefs.h <<\_ACEOF
 
4661
#define _MINIX 1
 
4662
_ACEOF
 
4663
 
 
4664
  fi
 
4665
 
 
4666
 
 
4667
 
 
4668
  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
 
4669
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
 
4670
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
 
4671
  $as_echo_n "(cached) " >&6
 
4672
else
 
4673
  cat >conftest.$ac_ext <<_ACEOF
 
4674
/* confdefs.h.  */
 
4675
_ACEOF
 
4676
cat confdefs.h >>conftest.$ac_ext
 
4677
cat >>conftest.$ac_ext <<_ACEOF
 
4678
/* end confdefs.h.  */
 
4679
 
 
4680
#         define __EXTENSIONS__ 1
 
4681
          $ac_includes_default
 
4682
int
 
4683
main ()
 
4684
{
 
4685
 
 
4686
  ;
 
4687
  return 0;
 
4688
}
 
4689
_ACEOF
 
4690
rm -f conftest.$ac_objext
 
4691
if { (ac_try="$ac_compile"
 
4692
case "(($ac_try" in
 
4693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4694
  *) ac_try_echo=$ac_try;;
 
4695
esac
 
4696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4697
$as_echo "$ac_try_echo") >&5
 
4698
  (eval "$ac_compile") 2>conftest.er1
 
4699
  ac_status=$?
 
4700
  grep -v '^ *+' conftest.er1 >conftest.err
 
4701
  rm -f conftest.er1
 
4702
  cat conftest.err >&5
 
4703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4704
  (exit $ac_status); } && {
 
4705
         test -z "$ac_c_werror_flag" ||
 
4706
         test ! -s conftest.err
 
4707
       } && test -s conftest.$ac_objext; then
 
4708
  ac_cv_safe_to_define___extensions__=yes
 
4709
else
 
4710
  $as_echo "$as_me: failed program was:" >&5
 
4711
sed 's/^/| /' conftest.$ac_ext >&5
 
4712
 
 
4713
        ac_cv_safe_to_define___extensions__=no
 
4714
fi
 
4715
 
 
4716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4717
fi
 
4718
{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
 
4719
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
 
4720
  test $ac_cv_safe_to_define___extensions__ = yes &&
 
4721
    cat >>confdefs.h <<\_ACEOF
 
4722
#define __EXTENSIONS__ 1
 
4723
_ACEOF
 
4724
 
 
4725
  cat >>confdefs.h <<\_ACEOF
 
4726
#define _ALL_SOURCE 1
 
4727
_ACEOF
 
4728
 
 
4729
  cat >>confdefs.h <<\_ACEOF
 
4730
#define _GNU_SOURCE 1
 
4731
_ACEOF
 
4732
 
 
4733
  cat >>confdefs.h <<\_ACEOF
 
4734
#define _POSIX_PTHREAD_SEMANTICS 1
 
4735
_ACEOF
 
4736
 
 
4737
  cat >>confdefs.h <<\_ACEOF
 
4738
#define _TANDEM_SOURCE 1
 
4739
_ACEOF
 
4740
 
 
4741
 
 
4742
 
 
4743
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
4744
$as_echo_n "checking for inline... " >&6; }
 
4745
if test "${ac_cv_c_inline+set}" = set; then
 
4746
  $as_echo_n "(cached) " >&6
 
4747
else
 
4748
  ac_cv_c_inline=no
 
4749
for ac_kw in inline __inline__ __inline; do
 
4750
  cat >conftest.$ac_ext <<_ACEOF
 
4751
/* confdefs.h.  */
 
4752
_ACEOF
 
4753
cat confdefs.h >>conftest.$ac_ext
 
4754
cat >>conftest.$ac_ext <<_ACEOF
 
4755
/* end confdefs.h.  */
 
4756
#ifndef __cplusplus
 
4757
typedef int foo_t;
 
4758
static $ac_kw foo_t static_foo () {return 0; }
 
4759
$ac_kw foo_t foo () {return 0; }
 
4760
#endif
 
4761
 
 
4762
_ACEOF
 
4763
rm -f conftest.$ac_objext
 
4764
if { (ac_try="$ac_compile"
 
4765
case "(($ac_try" in
 
4766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4767
  *) ac_try_echo=$ac_try;;
 
4768
esac
 
4769
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4770
$as_echo "$ac_try_echo") >&5
 
4771
  (eval "$ac_compile") 2>conftest.er1
 
4772
  ac_status=$?
 
4773
  grep -v '^ *+' conftest.er1 >conftest.err
 
4774
  rm -f conftest.er1
 
4775
  cat conftest.err >&5
 
4776
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4777
  (exit $ac_status); } && {
 
4778
         test -z "$ac_c_werror_flag" ||
 
4779
         test ! -s conftest.err
 
4780
       } && test -s conftest.$ac_objext; then
 
4781
  ac_cv_c_inline=$ac_kw
 
4782
else
 
4783
  $as_echo "$as_me: failed program was:" >&5
 
4784
sed 's/^/| /' conftest.$ac_ext >&5
 
4785
 
 
4786
 
 
4787
fi
 
4788
 
 
4789
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4790
  test "$ac_cv_c_inline" != no && break
 
4791
done
 
4792
 
 
4793
fi
 
4794
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4795
$as_echo "$ac_cv_c_inline" >&6; }
 
4796
 
 
4797
 
 
4798
case $ac_cv_c_inline in
 
4799
  inline | yes) ;;
 
4800
  *)
 
4801
    case $ac_cv_c_inline in
 
4802
      no) ac_val=;;
 
4803
      *) ac_val=$ac_cv_c_inline;;
 
4804
    esac
 
4805
    cat >>confdefs.h <<_ACEOF
 
4806
#ifndef __cplusplus
 
4807
#define inline $ac_val
 
4808
#endif
 
4809
_ACEOF
 
4810
    ;;
 
4811
esac
 
4812
 
 
4813
{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
 
4814
$as_echo_n "checking for working volatile... " >&6; }
 
4815
if test "${ac_cv_c_volatile+set}" = set; then
 
4816
  $as_echo_n "(cached) " >&6
 
4817
else
 
4818
  cat >conftest.$ac_ext <<_ACEOF
 
4819
/* confdefs.h.  */
 
4820
_ACEOF
 
4821
cat confdefs.h >>conftest.$ac_ext
 
4822
cat >>conftest.$ac_ext <<_ACEOF
 
4823
/* end confdefs.h.  */
 
4824
 
 
4825
int
 
4826
main ()
 
4827
{
 
4828
 
 
4829
volatile int x;
 
4830
int * volatile y = (int *) 0;
 
4831
return !x && !y;
 
4832
  ;
 
4833
  return 0;
 
4834
}
 
4835
_ACEOF
 
4836
rm -f conftest.$ac_objext
 
4837
if { (ac_try="$ac_compile"
 
4838
case "(($ac_try" in
 
4839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4840
  *) ac_try_echo=$ac_try;;
 
4841
esac
 
4842
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4843
$as_echo "$ac_try_echo") >&5
 
4844
  (eval "$ac_compile") 2>conftest.er1
 
4845
  ac_status=$?
 
4846
  grep -v '^ *+' conftest.er1 >conftest.err
 
4847
  rm -f conftest.er1
 
4848
  cat conftest.err >&5
 
4849
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4850
  (exit $ac_status); } && {
 
4851
         test -z "$ac_c_werror_flag" ||
 
4852
         test ! -s conftest.err
 
4853
       } && test -s conftest.$ac_objext; then
 
4854
  ac_cv_c_volatile=yes
 
4855
else
 
4856
  $as_echo "$as_me: failed program was:" >&5
 
4857
sed 's/^/| /' conftest.$ac_ext >&5
 
4858
 
 
4859
        ac_cv_c_volatile=no
 
4860
fi
 
4861
 
 
4862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4863
fi
 
4864
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
4865
$as_echo "$ac_cv_c_volatile" >&6; }
 
4866
if test $ac_cv_c_volatile = no; then
 
4867
 
 
4868
cat >>confdefs.h <<\_ACEOF
 
4869
#define volatile /**/
 
4870
_ACEOF
 
4871
 
5027
4872
fi
5028
4873
 
5029
4874
 
5635
5480
 
5636
5481
 
5637
5482
 
5638
 
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5639
 
$as_echo_n "checking for ANSI C header files... " >&6; }
5640
 
if test "${ac_cv_header_stdc+set}" = set; then
 
5483
 
 
5484
# Check whether --with-ipv6 was given.
 
5485
if test "${with_ipv6+set}" = set; then
 
5486
  withval=$with_ipv6;
 
5487
else
 
5488
  with_ipv6=yes
 
5489
fi
 
5490
 
 
5491
if test "$with_ipv6" != "no" ; then
 
5492
 
 
5493
cat >>confdefs.h <<\_ACEOF
 
5494
#define HAVE_IPV6 1
 
5495
_ACEOF
 
5496
 
 
5497
fi
 
5498
 
 
5499
{ $as_echo "$as_me:$LINENO: checking whether AI_ADDRCONFIG is declared" >&5
 
5500
$as_echo_n "checking whether AI_ADDRCONFIG is declared... " >&6; }
 
5501
if test "${ac_cv_have_decl_AI_ADDRCONFIG+set}" = set; then
5641
5502
  $as_echo_n "(cached) " >&6
5642
5503
else
5643
5504
  cat >conftest.$ac_ext <<_ACEOF
5646
5507
cat confdefs.h >>conftest.$ac_ext
5647
5508
cat >>conftest.$ac_ext <<_ACEOF
5648
5509
/* end confdefs.h.  */
5649
 
#include <stdlib.h>
5650
 
#include <stdarg.h>
5651
 
#include <string.h>
5652
 
#include <float.h>
 
5510
#define _XOPEN_SOURCE 600
 
5511
#include <netdb.h>
5653
5512
 
5654
5513
int
5655
5514
main ()
5656
5515
{
 
5516
#ifndef AI_ADDRCONFIG
 
5517
  (void) AI_ADDRCONFIG;
 
5518
#endif
5657
5519
 
5658
5520
  ;
5659
5521
  return 0;
5677
5539
         test -z "$ac_c_werror_flag" ||
5678
5540
         test ! -s conftest.err
5679
5541
       } && test -s conftest.$ac_objext; then
5680
 
  ac_cv_header_stdc=yes
 
5542
  ac_cv_have_decl_AI_ADDRCONFIG=yes
5681
5543
else
5682
5544
  $as_echo "$as_me: failed program was:" >&5
5683
5545
sed 's/^/| /' conftest.$ac_ext >&5
5684
5546
 
5685
 
        ac_cv_header_stdc=no
 
5547
        ac_cv_have_decl_AI_ADDRCONFIG=no
5686
5548
fi
5687
5549
 
5688
5550
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689
 
 
5690
 
if test $ac_cv_header_stdc = yes; then
5691
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5692
 
  cat >conftest.$ac_ext <<_ACEOF
5693
 
/* confdefs.h.  */
5694
 
_ACEOF
5695
 
cat confdefs.h >>conftest.$ac_ext
5696
 
cat >>conftest.$ac_ext <<_ACEOF
5697
 
/* end confdefs.h.  */
5698
 
#include <string.h>
5699
 
 
5700
 
_ACEOF
5701
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702
 
  $EGREP "memchr" >/dev/null 2>&1; then
5703
 
  :
5704
 
else
5705
 
  ac_cv_header_stdc=no
5706
 
fi
5707
 
rm -f conftest*
5708
 
 
5709
 
fi
5710
 
 
5711
 
if test $ac_cv_header_stdc = yes; then
5712
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5713
 
  cat >conftest.$ac_ext <<_ACEOF
5714
 
/* confdefs.h.  */
5715
 
_ACEOF
5716
 
cat confdefs.h >>conftest.$ac_ext
5717
 
cat >>conftest.$ac_ext <<_ACEOF
5718
 
/* end confdefs.h.  */
5719
 
#include <stdlib.h>
5720
 
 
5721
 
_ACEOF
5722
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723
 
  $EGREP "free" >/dev/null 2>&1; then
5724
 
  :
5725
 
else
5726
 
  ac_cv_header_stdc=no
5727
 
fi
5728
 
rm -f conftest*
5729
 
 
5730
 
fi
5731
 
 
5732
 
if test $ac_cv_header_stdc = yes; then
5733
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5734
 
  if test "$cross_compiling" = yes; then
5735
 
  :
5736
 
else
5737
 
  cat >conftest.$ac_ext <<_ACEOF
5738
 
/* confdefs.h.  */
5739
 
_ACEOF
5740
 
cat confdefs.h >>conftest.$ac_ext
5741
 
cat >>conftest.$ac_ext <<_ACEOF
5742
 
/* end confdefs.h.  */
5743
 
#include <ctype.h>
5744
 
#include <stdlib.h>
5745
 
#if ((' ' & 0x0FF) == 0x020)
5746
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748
 
#else
5749
 
# define ISLOWER(c) \
5750
 
                   (('a' <= (c) && (c) <= 'i') \
5751
 
                     || ('j' <= (c) && (c) <= 'r') \
5752
 
                     || ('s' <= (c) && (c) <= 'z'))
5753
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754
 
#endif
5755
 
 
5756
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757
 
int
5758
 
main ()
5759
 
{
5760
 
  int i;
5761
 
  for (i = 0; i < 256; i++)
5762
 
    if (XOR (islower (i), ISLOWER (i))
5763
 
        || toupper (i) != TOUPPER (i))
5764
 
      return 2;
5765
 
  return 0;
5766
 
}
5767
 
_ACEOF
5768
 
rm -f conftest$ac_exeext
5769
 
if { (ac_try="$ac_link"
5770
 
case "(($ac_try" in
5771
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772
 
  *) ac_try_echo=$ac_try;;
5773
 
esac
5774
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5775
 
$as_echo "$ac_try_echo") >&5
5776
 
  (eval "$ac_link") 2>&5
5777
 
  ac_status=$?
5778
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5780
 
  { (case "(($ac_try" in
5781
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782
 
  *) ac_try_echo=$ac_try;;
5783
 
esac
5784
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785
 
$as_echo "$ac_try_echo") >&5
5786
 
  (eval "$ac_try") 2>&5
5787
 
  ac_status=$?
5788
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
 
  (exit $ac_status); }; }; then
5790
 
  :
5791
 
else
5792
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
5793
 
$as_echo "$as_me: failed program was:" >&5
5794
 
sed 's/^/| /' conftest.$ac_ext >&5
5795
 
 
5796
 
( exit $ac_status )
5797
 
ac_cv_header_stdc=no
5798
 
fi
5799
 
rm -rf conftest.dSYM
5800
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5801
 
fi
5802
 
 
5803
 
 
5804
 
fi
5805
 
fi
5806
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5807
 
$as_echo "$ac_cv_header_stdc" >&6; }
5808
 
if test $ac_cv_header_stdc = yes; then
 
5551
fi
 
5552
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_ADDRCONFIG" >&5
 
5553
$as_echo "$ac_cv_have_decl_AI_ADDRCONFIG" >&6; }
 
5554
if test "x$ac_cv_have_decl_AI_ADDRCONFIG" = x""yes; then
 
5555
  :
 
5556
else
5809
5557
 
5810
5558
cat >>confdefs.h <<\_ACEOF
5811
 
#define STDC_HEADERS 1
5812
 
_ACEOF
5813
 
 
5814
 
fi
5815
 
 
5816
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5817
 
 
5818
 
 
5819
 
 
5820
 
 
5821
 
 
5822
 
 
5823
 
 
5824
 
 
5825
 
 
5826
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5827
 
                  inttypes.h stdint.h unistd.h
5828
 
do
5829
 
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5830
 
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5831
 
$as_echo_n "checking for $ac_header... " >&6; }
5832
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5833
 
  $as_echo_n "(cached) " >&6
5834
 
else
5835
 
  cat >conftest.$ac_ext <<_ACEOF
5836
 
/* confdefs.h.  */
5837
 
_ACEOF
5838
 
cat confdefs.h >>conftest.$ac_ext
5839
 
cat >>conftest.$ac_ext <<_ACEOF
5840
 
/* end confdefs.h.  */
5841
 
$ac_includes_default
5842
 
 
5843
 
#include <$ac_header>
5844
 
_ACEOF
5845
 
rm -f conftest.$ac_objext
5846
 
if { (ac_try="$ac_compile"
5847
 
case "(($ac_try" in
5848
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849
 
  *) ac_try_echo=$ac_try;;
5850
 
esac
5851
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852
 
$as_echo "$ac_try_echo") >&5
5853
 
  (eval "$ac_compile") 2>conftest.er1
5854
 
  ac_status=$?
5855
 
  grep -v '^ *+' conftest.er1 >conftest.err
5856
 
  rm -f conftest.er1
5857
 
  cat conftest.err >&5
5858
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
 
  (exit $ac_status); } && {
5860
 
         test -z "$ac_c_werror_flag" ||
5861
 
         test ! -s conftest.err
5862
 
       } && test -s conftest.$ac_objext; then
5863
 
  eval "$as_ac_Header=yes"
5864
 
else
5865
 
  $as_echo "$as_me: failed program was:" >&5
5866
 
sed 's/^/| /' conftest.$ac_ext >&5
5867
 
 
5868
 
        eval "$as_ac_Header=no"
5869
 
fi
5870
 
 
5871
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872
 
fi
5873
 
ac_res=`eval 'as_val=${'$as_ac_Header'}
5874
 
                 $as_echo "$as_val"'`
5875
 
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5876
 
$as_echo "$ac_res" >&6; }
5877
 
as_val=`eval 'as_val=${'$as_ac_Header'}
5878
 
                 $as_echo "$as_val"'`
5879
 
   if test "x$as_val" = x""yes; then
5880
 
  cat >>confdefs.h <<_ACEOF
5881
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5882
 
_ACEOF
5883
 
 
5884
 
fi
5885
 
 
5886
 
done
 
5559
#define AI_ADDRCONFIG 0
 
5560
_ACEOF
 
5561
 
 
5562
fi
 
5563
 
 
5564
 
 
5565
 
 
5566
# Check whether --with-confdir was given.
 
5567
if test "${with_confdir+set}" = set; then
 
5568
  withval=$with_confdir; { { $as_echo "$as_me:$LINENO: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&5
 
5569
$as_echo "$as_me: error: --with-confdir=D is obsolete. Please use --sysconfdir=D." >&2;}
 
5570
   { (exit 1); exit 1; }; }
 
5571
fi
 
5572
 
 
5573
if test "$sysconfdir" = '${prefix}/etc' && test "x$prefix" = "xNONE" ; then
 
5574
    CONFDIR='/etc/leafnode'
 
5575
else
 
5576
    CONFDIR="$sysconfdir"
 
5577
fi
 
5578
 
 
5579
if test "$CONFDIR" != "$sysconfdir"; then
 
5580
  { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
 
5581
$as_echo "$as_me: WARNING: ***" >&2;}
 
5582
  { $as_echo "$as_me:$LINENO: WARNING: *** overriding sysconfdir to $CONFDIR" >&5
 
5583
$as_echo "$as_me: WARNING: *** overriding sysconfdir to $CONFDIR" >&2;}
 
5584
  { $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir to fix" >&5
 
5585
$as_echo "$as_me: WARNING: *** use --sysconfdir to fix" >&2;}
 
5586
  { $as_echo "$as_me:$LINENO: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&5
 
5587
$as_echo "$as_me: WARNING: *** use --sysconfdir='\$prefix/etc' to get default autoconf behaviour" >&2;}
 
5588
  { $as_echo "$as_me:$LINENO: WARNING: ***" >&5
 
5589
$as_echo "$as_me: WARNING: ***" >&2;}
 
5590
  sleep 1
 
5591
fi
 
5592
sysconfdir=$CONFDIR
 
5593
 
 
5594
 
 
5595
if test "$localstatedir" = '${prefix}/var' && test "$prefix" = NONE ; then
 
5596
  myvar=/var
 
5597
else
 
5598
  myvar="$localstatedir"
 
5599
fi
 
5600
 
 
5601
{ $as_echo "$as_me:$LINENO: checking spooldir" >&5
 
5602
$as_echo_n "checking spooldir... " >&6; }
 
5603
 
 
5604
# Check whether --with-spooldir was given.
 
5605
if test "${with_spooldir+set}" = set; then
 
5606
  withval=$with_spooldir;  case "${withval-}" in
 
5607
  /*) ;;
 
5608
  *)  { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
 
5609
$as_echo "$as_me: error: you must give an absolute path" >&2;}
 
5610
   { (exit 1); exit 1; }; }
 
5611
      ;;
 
5612
  esac
 
5613
  withval=`echo "$withval" | sed 'sx/*$xx;'`
 
5614
 
 
5615
else
 
5616
  withval="$myvar/spool/news"
 
5617
 
 
5618
fi
 
5619
 
 
5620
SPOOLDIR=$withval
 
5621
{ $as_echo "$as_me:$LINENO: result: $SPOOLDIR" >&5
 
5622
$as_echo "$SPOOLDIR" >&6; }
 
5623
 
 
5624
 
 
5625
{ $as_echo "$as_me:$LINENO: checking lockfile" >&5
 
5626
$as_echo_n "checking lockfile... " >&6; }
 
5627
 
 
5628
# Check whether --with-lockfile was given.
 
5629
if test "${with_lockfile+set}" = set; then
 
5630
  withval=$with_lockfile;
 
5631
  case "${withval-}" in
 
5632
  /*) ;;
 
5633
  *)  { { $as_echo "$as_me:$LINENO: error: you must give an absolute path" >&5
 
5634
$as_echo "$as_me: error: you must give an absolute path" >&2;}
 
5635
   { (exit 1); exit 1; }; }
 
5636
      ;;
 
5637
  esac
 
5638
 
 
5639
else
 
5640
  withval="$SPOOLDIR/leaf.node/lock.file"
 
5641
 
 
5642
fi
 
5643
 
 
5644
LOCKFILE=$withval
 
5645
{ $as_echo "$as_me:$LINENO: result: $LOCKFILE" >&5
 
5646
$as_echo "$LOCKFILE" >&6; }
5887
5647
 
5888
5648
 
5889
5649
{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7860
7620
fi
7861
7621
 
7862
7622
 
 
7623
# The cast to long int works around a bug in the HP C Compiler
 
7624
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7625
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7626
# This bug is HP SR number 8606223364.
 
7627
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
 
7628
$as_echo_n "checking size of long... " >&6; }
 
7629
if test "${ac_cv_sizeof_long+set}" = set; then
 
7630
  $as_echo_n "(cached) " >&6
 
7631
else
 
7632
  if test "$cross_compiling" = yes; then
 
7633
  # Depending upon the size, compute the lo and hi bounds.
 
7634
cat >conftest.$ac_ext <<_ACEOF
 
7635
/* confdefs.h.  */
 
7636
_ACEOF
 
7637
cat confdefs.h >>conftest.$ac_ext
 
7638
cat >>conftest.$ac_ext <<_ACEOF
 
7639
/* end confdefs.h.  */
 
7640
$ac_includes_default
 
7641
int
 
7642
main ()
 
7643
{
 
7644
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
 
7645
test_array [0] = 0
 
7646
 
 
7647
  ;
 
7648
  return 0;
 
7649
}
 
7650
_ACEOF
 
7651
rm -f conftest.$ac_objext
 
7652
if { (ac_try="$ac_compile"
 
7653
case "(($ac_try" in
 
7654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7655
  *) ac_try_echo=$ac_try;;
 
7656
esac
 
7657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7658
$as_echo "$ac_try_echo") >&5
 
7659
  (eval "$ac_compile") 2>conftest.er1
 
7660
  ac_status=$?
 
7661
  grep -v '^ *+' conftest.er1 >conftest.err
 
7662
  rm -f conftest.er1
 
7663
  cat conftest.err >&5
 
7664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7665
  (exit $ac_status); } && {
 
7666
         test -z "$ac_c_werror_flag" ||
 
7667
         test ! -s conftest.err
 
7668
       } && test -s conftest.$ac_objext; then
 
7669
  ac_lo=0 ac_mid=0
 
7670
  while :; do
 
7671
    cat >conftest.$ac_ext <<_ACEOF
 
7672
/* confdefs.h.  */
 
7673
_ACEOF
 
7674
cat confdefs.h >>conftest.$ac_ext
 
7675
cat >>conftest.$ac_ext <<_ACEOF
 
7676
/* end confdefs.h.  */
 
7677
$ac_includes_default
 
7678
int
 
7679
main ()
 
7680
{
 
7681
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
 
7682
test_array [0] = 0
 
7683
 
 
7684
  ;
 
7685
  return 0;
 
7686
}
 
7687
_ACEOF
 
7688
rm -f conftest.$ac_objext
 
7689
if { (ac_try="$ac_compile"
 
7690
case "(($ac_try" in
 
7691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7692
  *) ac_try_echo=$ac_try;;
 
7693
esac
 
7694
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7695
$as_echo "$ac_try_echo") >&5
 
7696
  (eval "$ac_compile") 2>conftest.er1
 
7697
  ac_status=$?
 
7698
  grep -v '^ *+' conftest.er1 >conftest.err
 
7699
  rm -f conftest.er1
 
7700
  cat conftest.err >&5
 
7701
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7702
  (exit $ac_status); } && {
 
7703
         test -z "$ac_c_werror_flag" ||
 
7704
         test ! -s conftest.err
 
7705
       } && test -s conftest.$ac_objext; then
 
7706
  ac_hi=$ac_mid; break
 
7707
else
 
7708
  $as_echo "$as_me: failed program was:" >&5
 
7709
sed 's/^/| /' conftest.$ac_ext >&5
 
7710
 
 
7711
        ac_lo=`expr $ac_mid + 1`
 
7712
                        if test $ac_lo -le $ac_mid; then
 
7713
                          ac_lo= ac_hi=
 
7714
                          break
 
7715
                        fi
 
7716
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
7717
fi
 
7718
 
 
7719
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7720
  done
 
7721
else
 
7722
  $as_echo "$as_me: failed program was:" >&5
 
7723
sed 's/^/| /' conftest.$ac_ext >&5
 
7724
 
 
7725
        cat >conftest.$ac_ext <<_ACEOF
 
7726
/* confdefs.h.  */
 
7727
_ACEOF
 
7728
cat confdefs.h >>conftest.$ac_ext
 
7729
cat >>conftest.$ac_ext <<_ACEOF
 
7730
/* end confdefs.h.  */
 
7731
$ac_includes_default
 
7732
int
 
7733
main ()
 
7734
{
 
7735
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
 
7736
test_array [0] = 0
 
7737
 
 
7738
  ;
 
7739
  return 0;
 
7740
}
 
7741
_ACEOF
 
7742
rm -f conftest.$ac_objext
 
7743
if { (ac_try="$ac_compile"
 
7744
case "(($ac_try" in
 
7745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7746
  *) ac_try_echo=$ac_try;;
 
7747
esac
 
7748
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7749
$as_echo "$ac_try_echo") >&5
 
7750
  (eval "$ac_compile") 2>conftest.er1
 
7751
  ac_status=$?
 
7752
  grep -v '^ *+' conftest.er1 >conftest.err
 
7753
  rm -f conftest.er1
 
7754
  cat conftest.err >&5
 
7755
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7756
  (exit $ac_status); } && {
 
7757
         test -z "$ac_c_werror_flag" ||
 
7758
         test ! -s conftest.err
 
7759
       } && test -s conftest.$ac_objext; then
 
7760
  ac_hi=-1 ac_mid=-1
 
7761
  while :; do
 
7762
    cat >conftest.$ac_ext <<_ACEOF
 
7763
/* confdefs.h.  */
 
7764
_ACEOF
 
7765
cat confdefs.h >>conftest.$ac_ext
 
7766
cat >>conftest.$ac_ext <<_ACEOF
 
7767
/* end confdefs.h.  */
 
7768
$ac_includes_default
 
7769
int
 
7770
main ()
 
7771
{
 
7772
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
 
7773
test_array [0] = 0
 
7774
 
 
7775
  ;
 
7776
  return 0;
 
7777
}
 
7778
_ACEOF
 
7779
rm -f conftest.$ac_objext
 
7780
if { (ac_try="$ac_compile"
 
7781
case "(($ac_try" in
 
7782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7783
  *) ac_try_echo=$ac_try;;
 
7784
esac
 
7785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7786
$as_echo "$ac_try_echo") >&5
 
7787
  (eval "$ac_compile") 2>conftest.er1
 
7788
  ac_status=$?
 
7789
  grep -v '^ *+' conftest.er1 >conftest.err
 
7790
  rm -f conftest.er1
 
7791
  cat conftest.err >&5
 
7792
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7793
  (exit $ac_status); } && {
 
7794
         test -z "$ac_c_werror_flag" ||
 
7795
         test ! -s conftest.err
 
7796
       } && test -s conftest.$ac_objext; then
 
7797
  ac_lo=$ac_mid; break
 
7798
else
 
7799
  $as_echo "$as_me: failed program was:" >&5
 
7800
sed 's/^/| /' conftest.$ac_ext >&5
 
7801
 
 
7802
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
7803
                        if test $ac_mid -le $ac_hi; then
 
7804
                          ac_lo= ac_hi=
 
7805
                          break
 
7806
                        fi
 
7807
                        ac_mid=`expr 2 '*' $ac_mid`
 
7808
fi
 
7809
 
 
7810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7811
  done
 
7812
else
 
7813
  $as_echo "$as_me: failed program was:" >&5
 
7814
sed 's/^/| /' conftest.$ac_ext >&5
 
7815
 
 
7816
        ac_lo= ac_hi=
 
7817
fi
 
7818
 
 
7819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7820
fi
 
7821
 
 
7822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7823
# Binary search between lo and hi bounds.
 
7824
while test "x$ac_lo" != "x$ac_hi"; do
 
7825
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7826
  cat >conftest.$ac_ext <<_ACEOF
 
7827
/* confdefs.h.  */
 
7828
_ACEOF
 
7829
cat confdefs.h >>conftest.$ac_ext
 
7830
cat >>conftest.$ac_ext <<_ACEOF
 
7831
/* end confdefs.h.  */
 
7832
$ac_includes_default
 
7833
int
 
7834
main ()
 
7835
{
 
7836
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
 
7837
test_array [0] = 0
 
7838
 
 
7839
  ;
 
7840
  return 0;
 
7841
}
 
7842
_ACEOF
 
7843
rm -f conftest.$ac_objext
 
7844
if { (ac_try="$ac_compile"
 
7845
case "(($ac_try" in
 
7846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7847
  *) ac_try_echo=$ac_try;;
 
7848
esac
 
7849
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7850
$as_echo "$ac_try_echo") >&5
 
7851
  (eval "$ac_compile") 2>conftest.er1
 
7852
  ac_status=$?
 
7853
  grep -v '^ *+' conftest.er1 >conftest.err
 
7854
  rm -f conftest.er1
 
7855
  cat conftest.err >&5
 
7856
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7857
  (exit $ac_status); } && {
 
7858
         test -z "$ac_c_werror_flag" ||
 
7859
         test ! -s conftest.err
 
7860
       } && test -s conftest.$ac_objext; then
 
7861
  ac_hi=$ac_mid
 
7862
else
 
7863
  $as_echo "$as_me: failed program was:" >&5
 
7864
sed 's/^/| /' conftest.$ac_ext >&5
 
7865
 
 
7866
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
7867
fi
 
7868
 
 
7869
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7870
done
 
7871
case $ac_lo in
 
7872
?*) ac_cv_sizeof_long=$ac_lo;;
 
7873
'') if test "$ac_cv_type_long" = yes; then
 
7874
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
7875
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7876
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
7877
See \`config.log' for more details." >&5
 
7878
$as_echo "$as_me: error: cannot compute sizeof (long)
 
7879
See \`config.log' for more details." >&2;}
 
7880
   { (exit 77); exit 77; }; }; }
 
7881
   else
 
7882
     ac_cv_sizeof_long=0
 
7883
   fi ;;
 
7884
esac
 
7885
else
 
7886
  cat >conftest.$ac_ext <<_ACEOF
 
7887
/* confdefs.h.  */
 
7888
_ACEOF
 
7889
cat confdefs.h >>conftest.$ac_ext
 
7890
cat >>conftest.$ac_ext <<_ACEOF
 
7891
/* end confdefs.h.  */
 
7892
$ac_includes_default
 
7893
static long int longval () { return (long int) (sizeof (long)); }
 
7894
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
 
7895
#include <stdio.h>
 
7896
#include <stdlib.h>
 
7897
int
 
7898
main ()
 
7899
{
 
7900
 
 
7901
  FILE *f = fopen ("conftest.val", "w");
 
7902
  if (! f)
 
7903
    return 1;
 
7904
  if (((long int) (sizeof (long))) < 0)
 
7905
    {
 
7906
      long int i = longval ();
 
7907
      if (i != ((long int) (sizeof (long))))
 
7908
        return 1;
 
7909
      fprintf (f, "%ld", i);
 
7910
    }
 
7911
  else
 
7912
    {
 
7913
      unsigned long int i = ulongval ();
 
7914
      if (i != ((long int) (sizeof (long))))
 
7915
        return 1;
 
7916
      fprintf (f, "%lu", i);
 
7917
    }
 
7918
  /* Do not output a trailing newline, as this causes \r\n confusion
 
7919
     on some platforms.  */
 
7920
  return ferror (f) || fclose (f) != 0;
 
7921
 
 
7922
  ;
 
7923
  return 0;
 
7924
}
 
7925
_ACEOF
 
7926
rm -f conftest$ac_exeext
 
7927
if { (ac_try="$ac_link"
 
7928
case "(($ac_try" in
 
7929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7930
  *) ac_try_echo=$ac_try;;
 
7931
esac
 
7932
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7933
$as_echo "$ac_try_echo") >&5
 
7934
  (eval "$ac_link") 2>&5
 
7935
  ac_status=$?
 
7936
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7937
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7938
  { (case "(($ac_try" in
 
7939
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7940
  *) ac_try_echo=$ac_try;;
 
7941
esac
 
7942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7943
$as_echo "$ac_try_echo") >&5
 
7944
  (eval "$ac_try") 2>&5
 
7945
  ac_status=$?
 
7946
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7947
  (exit $ac_status); }; }; then
 
7948
  ac_cv_sizeof_long=`cat conftest.val`
 
7949
else
 
7950
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
7951
$as_echo "$as_me: failed program was:" >&5
 
7952
sed 's/^/| /' conftest.$ac_ext >&5
 
7953
 
 
7954
( exit $ac_status )
 
7955
if test "$ac_cv_type_long" = yes; then
 
7956
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
7957
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7958
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
7959
See \`config.log' for more details." >&5
 
7960
$as_echo "$as_me: error: cannot compute sizeof (long)
 
7961
See \`config.log' for more details." >&2;}
 
7962
   { (exit 77); exit 77; }; }; }
 
7963
   else
 
7964
     ac_cv_sizeof_long=0
 
7965
   fi
 
7966
fi
 
7967
rm -rf conftest.dSYM
 
7968
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7969
fi
 
7970
rm -f conftest.val
 
7971
fi
 
7972
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
7973
$as_echo "$ac_cv_sizeof_long" >&6; }
 
7974
 
 
7975
 
 
7976
 
 
7977
cat >>confdefs.h <<_ACEOF
 
7978
#define SIZEOF_LONG $ac_cv_sizeof_long
 
7979
_ACEOF
 
7980
 
 
7981
 
 
7982
# The cast to long int works around a bug in the HP C Compiler
 
7983
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
7984
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
7985
# This bug is HP SR number 8606223364.
 
7986
{ $as_echo "$as_me:$LINENO: checking size of time_t" >&5
 
7987
$as_echo_n "checking size of time_t... " >&6; }
 
7988
if test "${ac_cv_sizeof_time_t+set}" = set; then
 
7989
  $as_echo_n "(cached) " >&6
 
7990
else
 
7991
  if test "$cross_compiling" = yes; then
 
7992
  # Depending upon the size, compute the lo and hi bounds.
 
7993
cat >conftest.$ac_ext <<_ACEOF
 
7994
/* confdefs.h.  */
 
7995
_ACEOF
 
7996
cat confdefs.h >>conftest.$ac_ext
 
7997
cat >>conftest.$ac_ext <<_ACEOF
 
7998
/* end confdefs.h.  */
 
7999
$ac_includes_default
 
8000
int
 
8001
main ()
 
8002
{
 
8003
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
 
8004
test_array [0] = 0
 
8005
 
 
8006
  ;
 
8007
  return 0;
 
8008
}
 
8009
_ACEOF
 
8010
rm -f conftest.$ac_objext
 
8011
if { (ac_try="$ac_compile"
 
8012
case "(($ac_try" in
 
8013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8014
  *) ac_try_echo=$ac_try;;
 
8015
esac
 
8016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8017
$as_echo "$ac_try_echo") >&5
 
8018
  (eval "$ac_compile") 2>conftest.er1
 
8019
  ac_status=$?
 
8020
  grep -v '^ *+' conftest.er1 >conftest.err
 
8021
  rm -f conftest.er1
 
8022
  cat conftest.err >&5
 
8023
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8024
  (exit $ac_status); } && {
 
8025
         test -z "$ac_c_werror_flag" ||
 
8026
         test ! -s conftest.err
 
8027
       } && test -s conftest.$ac_objext; then
 
8028
  ac_lo=0 ac_mid=0
 
8029
  while :; do
 
8030
    cat >conftest.$ac_ext <<_ACEOF
 
8031
/* confdefs.h.  */
 
8032
_ACEOF
 
8033
cat confdefs.h >>conftest.$ac_ext
 
8034
cat >>conftest.$ac_ext <<_ACEOF
 
8035
/* end confdefs.h.  */
 
8036
$ac_includes_default
 
8037
int
 
8038
main ()
 
8039
{
 
8040
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
 
8041
test_array [0] = 0
 
8042
 
 
8043
  ;
 
8044
  return 0;
 
8045
}
 
8046
_ACEOF
 
8047
rm -f conftest.$ac_objext
 
8048
if { (ac_try="$ac_compile"
 
8049
case "(($ac_try" in
 
8050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8051
  *) ac_try_echo=$ac_try;;
 
8052
esac
 
8053
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8054
$as_echo "$ac_try_echo") >&5
 
8055
  (eval "$ac_compile") 2>conftest.er1
 
8056
  ac_status=$?
 
8057
  grep -v '^ *+' conftest.er1 >conftest.err
 
8058
  rm -f conftest.er1
 
8059
  cat conftest.err >&5
 
8060
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8061
  (exit $ac_status); } && {
 
8062
         test -z "$ac_c_werror_flag" ||
 
8063
         test ! -s conftest.err
 
8064
       } && test -s conftest.$ac_objext; then
 
8065
  ac_hi=$ac_mid; break
 
8066
else
 
8067
  $as_echo "$as_me: failed program was:" >&5
 
8068
sed 's/^/| /' conftest.$ac_ext >&5
 
8069
 
 
8070
        ac_lo=`expr $ac_mid + 1`
 
8071
                        if test $ac_lo -le $ac_mid; then
 
8072
                          ac_lo= ac_hi=
 
8073
                          break
 
8074
                        fi
 
8075
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
8076
fi
 
8077
 
 
8078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8079
  done
 
8080
else
 
8081
  $as_echo "$as_me: failed program was:" >&5
 
8082
sed 's/^/| /' conftest.$ac_ext >&5
 
8083
 
 
8084
        cat >conftest.$ac_ext <<_ACEOF
 
8085
/* confdefs.h.  */
 
8086
_ACEOF
 
8087
cat confdefs.h >>conftest.$ac_ext
 
8088
cat >>conftest.$ac_ext <<_ACEOF
 
8089
/* end confdefs.h.  */
 
8090
$ac_includes_default
 
8091
int
 
8092
main ()
 
8093
{
 
8094
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
 
8095
test_array [0] = 0
 
8096
 
 
8097
  ;
 
8098
  return 0;
 
8099
}
 
8100
_ACEOF
 
8101
rm -f conftest.$ac_objext
 
8102
if { (ac_try="$ac_compile"
 
8103
case "(($ac_try" in
 
8104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8105
  *) ac_try_echo=$ac_try;;
 
8106
esac
 
8107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8108
$as_echo "$ac_try_echo") >&5
 
8109
  (eval "$ac_compile") 2>conftest.er1
 
8110
  ac_status=$?
 
8111
  grep -v '^ *+' conftest.er1 >conftest.err
 
8112
  rm -f conftest.er1
 
8113
  cat conftest.err >&5
 
8114
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8115
  (exit $ac_status); } && {
 
8116
         test -z "$ac_c_werror_flag" ||
 
8117
         test ! -s conftest.err
 
8118
       } && test -s conftest.$ac_objext; then
 
8119
  ac_hi=-1 ac_mid=-1
 
8120
  while :; do
 
8121
    cat >conftest.$ac_ext <<_ACEOF
 
8122
/* confdefs.h.  */
 
8123
_ACEOF
 
8124
cat confdefs.h >>conftest.$ac_ext
 
8125
cat >>conftest.$ac_ext <<_ACEOF
 
8126
/* end confdefs.h.  */
 
8127
$ac_includes_default
 
8128
int
 
8129
main ()
 
8130
{
 
8131
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
 
8132
test_array [0] = 0
 
8133
 
 
8134
  ;
 
8135
  return 0;
 
8136
}
 
8137
_ACEOF
 
8138
rm -f conftest.$ac_objext
 
8139
if { (ac_try="$ac_compile"
 
8140
case "(($ac_try" in
 
8141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8142
  *) ac_try_echo=$ac_try;;
 
8143
esac
 
8144
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8145
$as_echo "$ac_try_echo") >&5
 
8146
  (eval "$ac_compile") 2>conftest.er1
 
8147
  ac_status=$?
 
8148
  grep -v '^ *+' conftest.er1 >conftest.err
 
8149
  rm -f conftest.er1
 
8150
  cat conftest.err >&5
 
8151
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8152
  (exit $ac_status); } && {
 
8153
         test -z "$ac_c_werror_flag" ||
 
8154
         test ! -s conftest.err
 
8155
       } && test -s conftest.$ac_objext; then
 
8156
  ac_lo=$ac_mid; break
 
8157
else
 
8158
  $as_echo "$as_me: failed program was:" >&5
 
8159
sed 's/^/| /' conftest.$ac_ext >&5
 
8160
 
 
8161
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
8162
                        if test $ac_mid -le $ac_hi; then
 
8163
                          ac_lo= ac_hi=
 
8164
                          break
 
8165
                        fi
 
8166
                        ac_mid=`expr 2 '*' $ac_mid`
 
8167
fi
 
8168
 
 
8169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8170
  done
 
8171
else
 
8172
  $as_echo "$as_me: failed program was:" >&5
 
8173
sed 's/^/| /' conftest.$ac_ext >&5
 
8174
 
 
8175
        ac_lo= ac_hi=
 
8176
fi
 
8177
 
 
8178
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8179
fi
 
8180
 
 
8181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8182
# Binary search between lo and hi bounds.
 
8183
while test "x$ac_lo" != "x$ac_hi"; do
 
8184
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
8185
  cat >conftest.$ac_ext <<_ACEOF
 
8186
/* confdefs.h.  */
 
8187
_ACEOF
 
8188
cat confdefs.h >>conftest.$ac_ext
 
8189
cat >>conftest.$ac_ext <<_ACEOF
 
8190
/* end confdefs.h.  */
 
8191
$ac_includes_default
 
8192
int
 
8193
main ()
 
8194
{
 
8195
static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
 
8196
test_array [0] = 0
 
8197
 
 
8198
  ;
 
8199
  return 0;
 
8200
}
 
8201
_ACEOF
 
8202
rm -f conftest.$ac_objext
 
8203
if { (ac_try="$ac_compile"
 
8204
case "(($ac_try" in
 
8205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8206
  *) ac_try_echo=$ac_try;;
 
8207
esac
 
8208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8209
$as_echo "$ac_try_echo") >&5
 
8210
  (eval "$ac_compile") 2>conftest.er1
 
8211
  ac_status=$?
 
8212
  grep -v '^ *+' conftest.er1 >conftest.err
 
8213
  rm -f conftest.er1
 
8214
  cat conftest.err >&5
 
8215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8216
  (exit $ac_status); } && {
 
8217
         test -z "$ac_c_werror_flag" ||
 
8218
         test ! -s conftest.err
 
8219
       } && test -s conftest.$ac_objext; then
 
8220
  ac_hi=$ac_mid
 
8221
else
 
8222
  $as_echo "$as_me: failed program was:" >&5
 
8223
sed 's/^/| /' conftest.$ac_ext >&5
 
8224
 
 
8225
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
8226
fi
 
8227
 
 
8228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8229
done
 
8230
case $ac_lo in
 
8231
?*) ac_cv_sizeof_time_t=$ac_lo;;
 
8232
'') if test "$ac_cv_type_time_t" = yes; then
 
8233
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
8234
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8235
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
 
8236
See \`config.log' for more details." >&5
 
8237
$as_echo "$as_me: error: cannot compute sizeof (time_t)
 
8238
See \`config.log' for more details." >&2;}
 
8239
   { (exit 77); exit 77; }; }; }
 
8240
   else
 
8241
     ac_cv_sizeof_time_t=0
 
8242
   fi ;;
 
8243
esac
 
8244
else
 
8245
  cat >conftest.$ac_ext <<_ACEOF
 
8246
/* confdefs.h.  */
 
8247
_ACEOF
 
8248
cat confdefs.h >>conftest.$ac_ext
 
8249
cat >>conftest.$ac_ext <<_ACEOF
 
8250
/* end confdefs.h.  */
 
8251
$ac_includes_default
 
8252
static long int longval () { return (long int) (sizeof (time_t)); }
 
8253
static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
 
8254
#include <stdio.h>
 
8255
#include <stdlib.h>
 
8256
int
 
8257
main ()
 
8258
{
 
8259
 
 
8260
  FILE *f = fopen ("conftest.val", "w");
 
8261
  if (! f)
 
8262
    return 1;
 
8263
  if (((long int) (sizeof (time_t))) < 0)
 
8264
    {
 
8265
      long int i = longval ();
 
8266
      if (i != ((long int) (sizeof (time_t))))
 
8267
        return 1;
 
8268
      fprintf (f, "%ld", i);
 
8269
    }
 
8270
  else
 
8271
    {
 
8272
      unsigned long int i = ulongval ();
 
8273
      if (i != ((long int) (sizeof (time_t))))
 
8274
        return 1;
 
8275
      fprintf (f, "%lu", i);
 
8276
    }
 
8277
  /* Do not output a trailing newline, as this causes \r\n confusion
 
8278
     on some platforms.  */
 
8279
  return ferror (f) || fclose (f) != 0;
 
8280
 
 
8281
  ;
 
8282
  return 0;
 
8283
}
 
8284
_ACEOF
 
8285
rm -f conftest$ac_exeext
 
8286
if { (ac_try="$ac_link"
 
8287
case "(($ac_try" in
 
8288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8289
  *) ac_try_echo=$ac_try;;
 
8290
esac
 
8291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8292
$as_echo "$ac_try_echo") >&5
 
8293
  (eval "$ac_link") 2>&5
 
8294
  ac_status=$?
 
8295
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8296
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
8297
  { (case "(($ac_try" in
 
8298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8299
  *) ac_try_echo=$ac_try;;
 
8300
esac
 
8301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8302
$as_echo "$ac_try_echo") >&5
 
8303
  (eval "$ac_try") 2>&5
 
8304
  ac_status=$?
 
8305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8306
  (exit $ac_status); }; }; then
 
8307
  ac_cv_sizeof_time_t=`cat conftest.val`
 
8308
else
 
8309
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
8310
$as_echo "$as_me: failed program was:" >&5
 
8311
sed 's/^/| /' conftest.$ac_ext >&5
 
8312
 
 
8313
( exit $ac_status )
 
8314
if test "$ac_cv_type_time_t" = yes; then
 
8315
     { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
8316
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8317
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
 
8318
See \`config.log' for more details." >&5
 
8319
$as_echo "$as_me: error: cannot compute sizeof (time_t)
 
8320
See \`config.log' for more details." >&2;}
 
8321
   { (exit 77); exit 77; }; }; }
 
8322
   else
 
8323
     ac_cv_sizeof_time_t=0
 
8324
   fi
 
8325
fi
 
8326
rm -rf conftest.dSYM
 
8327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
8328
fi
 
8329
rm -f conftest.val
 
8330
fi
 
8331
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
 
8332
$as_echo "$ac_cv_sizeof_time_t" >&6; }
 
8333
 
 
8334
 
 
8335
 
 
8336
cat >>confdefs.h <<_ACEOF
 
8337
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
 
8338
_ACEOF
 
8339
 
 
8340
 
 
8341
 
7863
8342
 
7864
8343
cat >>confdefs.h <<\_ACEOF
7865
8344
#define __NO_CTYPE 1
8444
8923
$as_echo "no" >&6; }
8445
8924
fi
8446
8925
 
8447
 
{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8448
 
$as_echo_n "checking return type of signal handlers... " >&6; }
8449
 
if test "${ac_cv_type_signal+set}" = set; then
8450
 
  $as_echo_n "(cached) " >&6
8451
 
else
8452
 
  cat >conftest.$ac_ext <<_ACEOF
8453
 
/* confdefs.h.  */
8454
 
_ACEOF
8455
 
cat confdefs.h >>conftest.$ac_ext
8456
 
cat >>conftest.$ac_ext <<_ACEOF
8457
 
/* end confdefs.h.  */
8458
 
#include <sys/types.h>
8459
 
#include <signal.h>
8460
 
 
8461
 
int
8462
 
main ()
8463
 
{
8464
 
return *(signal (0, 0)) (0) == 1;
8465
 
  ;
8466
 
  return 0;
8467
 
}
8468
 
_ACEOF
8469
 
rm -f conftest.$ac_objext
8470
 
if { (ac_try="$ac_compile"
8471
 
case "(($ac_try" in
8472
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473
 
  *) ac_try_echo=$ac_try;;
8474
 
esac
8475
 
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476
 
$as_echo "$ac_try_echo") >&5
8477
 
  (eval "$ac_compile") 2>conftest.er1
8478
 
  ac_status=$?
8479
 
  grep -v '^ *+' conftest.er1 >conftest.err
8480
 
  rm -f conftest.er1
8481
 
  cat conftest.err >&5
8482
 
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483
 
  (exit $ac_status); } && {
8484
 
         test -z "$ac_c_werror_flag" ||
8485
 
         test ! -s conftest.err
8486
 
       } && test -s conftest.$ac_objext; then
8487
 
  ac_cv_type_signal=int
8488
 
else
8489
 
  $as_echo "$as_me: failed program was:" >&5
8490
 
sed 's/^/| /' conftest.$ac_ext >&5
8491
 
 
8492
 
        ac_cv_type_signal=void
8493
 
fi
8494
 
 
8495
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496
 
fi
8497
 
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8498
 
$as_echo "$ac_cv_type_signal" >&6; }
8499
 
 
8500
 
cat >>confdefs.h <<_ACEOF
8501
 
#define RETSIGTYPE $ac_cv_type_signal
8502
 
_ACEOF
8503
 
 
8504
 
 
8505
8926
 
8506
8927
for ac_func in strftime
8507
8928
do
8680
9101
 
8681
9102
 
8682
9103
 
8683
 
for ac_func in setgid setuid
 
9104
 
 
9105
for ac_func in setgid setuid getifaddrs
8684
9106
do
8685
9107
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686
9108
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9983
10405
    cat >conftest.$ac_ext <<_ACEOF
9984
10406
 
9985
10407
_ACEOF
9986
 
    for i in -Wall -W -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes
 
10408
    for i in -Wall -W -Wextra -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings
9987
10409
    do
9988
10410
        if $CC $i -c conftest.c
9989
10411
        then
10247
10669
LTLIBOBJS=$ac_ltlibobjs
10248
10670
 
10249
10671
 
10250
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10251
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10252
 
Usually this means the macro was only invoked conditionally." >&5
10253
 
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10254
 
Usually this means the macro was only invoked conditionally." >&2;}
10255
 
   { (exit 1); exit 1; }; }
 
10672
 if test -n "$EXEEXT"; then
 
10673
  am__EXEEXT_TRUE=
 
10674
  am__EXEEXT_FALSE='#'
 
10675
else
 
10676
  am__EXEEXT_TRUE='#'
 
10677
  am__EXEEXT_FALSE=
10256
10678
fi
 
10679
 
10257
10680
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10258
10681
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10259
10682
Usually this means the macro was only invoked conditionally." >&5
10268
10691
Usually this means the macro was only invoked conditionally." >&2;}
10269
10692
   { (exit 1); exit 1; }; }
10270
10693
fi
10271
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10272
 
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10273
 
Usually this means the macro was only invoked conditionally." >&5
10274
 
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10275
 
Usually this means the macro was only invoked conditionally." >&2;}
10276
 
   { (exit 1); exit 1; }; }
10277
 
fi
10278
10694
 
10279
10695
: ${CONFIG_STATUS=./config.status}
10280
10696
ac_write_fail=0
11446
11862
 
11447
11863
 
11448
11864
  case $ac_file$ac_mode in
11449
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11450
 
  # Strip MF so we end up with the name of the file.
11451
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
11452
 
  # Check whether this is an Automake generated Makefile or not.
11453
 
  # We used to match only the files named `Makefile.in', but
11454
 
  # some people rename them; so instead we look at the file content.
11455
 
  # Grep'ing the first line is not enough: some people post-process
11456
 
  # each Makefile.in and add a new line on top of each file to say so.
11457
 
  # Grep'ing the whole file is not good either: AIX grep has a line
11458
 
  # limit of 2048, but all sed's we know have understand at least 4000.
11459
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11460
 
    dirpart=`$as_dirname -- "$mf" ||
 
11865
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
11866
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
11867
  # are listed without --file.  Let's play safe and only enable the eval
 
11868
  # if we detect the quoting.
 
11869
  case $CONFIG_FILES in
 
11870
  *\'*) eval set x "$CONFIG_FILES" ;;
 
11871
  *)   set x $CONFIG_FILES ;;
 
11872
  esac
 
11873
  shift
 
11874
  for mf
 
11875
  do
 
11876
    # Strip MF so we end up with the name of the file.
 
11877
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
11878
    # Check whether this is an Automake generated Makefile or not.
 
11879
    # We used to match only the files named `Makefile.in', but
 
11880
    # some people rename them; so instead we look at the file content.
 
11881
    # Grep'ing the first line is not enough: some people post-process
 
11882
    # each Makefile.in and add a new line on top of each file to say so.
 
11883
    # Grep'ing the whole file is not good either: AIX grep has a line
 
11884
    # limit of 2048, but all sed's we know have understand at least 4000.
 
11885
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
11886
      dirpart=`$as_dirname -- "$mf" ||
11461
11887
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11462
11888
         X"$mf" : 'X\(//\)[^/]' \| \
11463
11889
         X"$mf" : 'X\(//\)$' \| \
11480
11906
            q
11481
11907
          }
11482
11908
          s/.*/./; q'`
11483
 
  else
11484
 
    continue
11485
 
  fi
11486
 
  # Extract the definition of DEPDIR, am__include, and am__quote
11487
 
  # from the Makefile without running `make'.
11488
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11489
 
  test -z "$DEPDIR" && continue
11490
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
11491
 
  test -z "am__include" && continue
11492
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11493
 
  # When using ansi2knr, U may be empty or an underscore; expand it
11494
 
  U=`sed -n 's/^U = //p' < "$mf"`
11495
 
  # Find all dependency output files, they are included files with
11496
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
11497
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
11498
 
  # expansion.
11499
 
  for file in `sed -n "
11500
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11501
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11502
 
    # Make sure the directory exists.
11503
 
    test -f "$dirpart/$file" && continue
11504
 
    fdir=`$as_dirname -- "$file" ||
 
11909
    else
 
11910
      continue
 
11911
    fi
 
11912
    # Extract the definition of DEPDIR, am__include, and am__quote
 
11913
    # from the Makefile without running `make'.
 
11914
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
11915
    test -z "$DEPDIR" && continue
 
11916
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
11917
    test -z "am__include" && continue
 
11918
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
11919
    # When using ansi2knr, U may be empty or an underscore; expand it
 
11920
    U=`sed -n 's/^U = //p' < "$mf"`
 
11921
    # Find all dependency output files, they are included files with
 
11922
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
11923
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
11924
    # expansion.
 
11925
    for file in `sed -n "
 
11926
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
11927
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
11928
      # Make sure the directory exists.
 
11929
      test -f "$dirpart/$file" && continue
 
11930
      fdir=`$as_dirname -- "$file" ||
11505
11931
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506
11932
         X"$file" : 'X\(//\)[^/]' \| \
11507
11933
         X"$file" : 'X\(//\)$' \| \
11524
11950
            q
11525
11951
          }
11526
11952
          s/.*/./; q'`
11527
 
    { as_dir=$dirpart/$fdir
 
11953
      { as_dir=$dirpart/$fdir
11528
11954
  case $as_dir in #(
11529
11955
  -*) as_dir=./$as_dir;;
11530
11956
  esac
11565
11991
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11566
11992
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11567
11993
   { (exit 1); exit 1; }; }; }
11568
 
    # echo "creating $dirpart/$file"
11569
 
    echo '# dummy' > "$dirpart/$file"
 
11994
      # echo "creating $dirpart/$file"
 
11995
      echo '# dummy' > "$dirpart/$file"
 
11996
    done
11570
11997
  done
11571
 
done
 
11998
}
11572
11999
 ;;
11573
12000
    "default":C) echo timestamp >stamp-h ;;
11574
12001