~ubuntu-branches/ubuntu/trusty/ident2/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-01-14 22:37:49 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100114223749-0q90e3awgafpntvx
Tags: 1.07-1ubuntu1
* Merge from Debian testing, remaining changes:
  - debian/control: Add openbsd-inetd | inet-superserver dependencies
  as ident2 needs an inet server to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.59.
6
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
# Name of the host.
 
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
246
# so uname gets run too.
 
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
248
 
 
249
exec 6>&1
 
250
 
 
251
#
 
252
# Initializations.
 
253
#
12
254
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
 
255
ac_config_libobj_dir=.
 
256
cross_compiling=no
 
257
subdirs=
 
258
MFLAGS=
 
259
MAKEFLAGS=
 
260
SHELL=${CONFIG_SHELL-/bin/sh}
 
261
 
 
262
# Maximum number of lines to put in a shell here document.
 
263
# This variable seems obsolete.  It should probably be removed, and
 
264
# only ac_max_sed_lines should be used.
 
265
: ${ac_max_here_lines=38}
 
266
 
 
267
# Identity of this package.
 
268
PACKAGE_NAME=
 
269
PACKAGE_TARNAME=
 
270
PACKAGE_VERSION=
 
271
PACKAGE_STRING=
 
272
PACKAGE_BUGREPORT=
 
273
 
 
274
ac_unique_file="common.c"
 
275
# Factoring default headers for most tests.
 
276
ac_includes_default="\
 
277
#include <stdio.h>
 
278
#if HAVE_SYS_TYPES_H
 
279
# include <sys/types.h>
 
280
#endif
 
281
#if HAVE_SYS_STAT_H
 
282
# include <sys/stat.h>
 
283
#endif
 
284
#if STDC_HEADERS
 
285
# include <stdlib.h>
 
286
# include <stddef.h>
 
287
#else
 
288
# if HAVE_STDLIB_H
 
289
#  include <stdlib.h>
 
290
# endif
 
291
#endif
 
292
#if HAVE_STRING_H
 
293
# if !STDC_HEADERS && HAVE_MEMORY_H
 
294
#  include <memory.h>
 
295
# endif
 
296
# include <string.h>
 
297
#endif
 
298
#if HAVE_STRINGS_H
 
299
# include <strings.h>
 
300
#endif
 
301
#if HAVE_INTTYPES_H
 
302
# include <inttypes.h>
 
303
#else
 
304
# if HAVE_STDINT_H
 
305
#  include <stdint.h>
 
306
# endif
 
307
#endif
 
308
#if HAVE_UNISTD_H
 
309
# include <unistd.h>
 
310
#endif"
 
311
 
 
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LSOF CFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
 
313
ac_subst_files=''
14
314
 
15
315
# Initialize some variables set by options.
 
316
ac_init_help=
 
317
ac_init_version=false
16
318
# The variables have the same names as the options, with
17
319
# dashes changed to underlines.
18
 
build=NONE
19
 
cache_file=./config.cache
 
320
cache_file=/dev/null
20
321
exec_prefix=NONE
21
 
host=NONE
22
322
no_create=
23
 
nonopt=NONE
24
323
no_recursion=
25
324
prefix=NONE
26
325
program_prefix=NONE
29
328
silent=
30
329
site=
31
330
srcdir=
32
 
target=NONE
33
331
verbose=
34
332
x_includes=NONE
35
333
x_libraries=NONE
 
334
 
 
335
# Installation directory options.
 
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
337
# and all the variables that are supposed to be based on exec_prefix
 
338
# by default will actually change.
 
339
# Use braces instead of parens because sh, perl, etc. also accept them.
36
340
bindir='${exec_prefix}/bin'
37
341
sbindir='${exec_prefix}/sbin'
38
342
libexecdir='${exec_prefix}/libexec'
46
350
infodir='${prefix}/info'
47
351
mandir='${prefix}/man'
48
352
 
49
 
# Initialize some other variables.
50
 
subdirs=
51
 
MFLAGS= MAKEFLAGS=
52
 
SHELL=${CONFIG_SHELL-/bin/sh}
53
 
# Maximum number of lines to put in a shell here document.
54
 
ac_max_here_lines=12
55
 
 
56
353
ac_prev=
57
354
for ac_option
58
355
do
59
 
 
60
356
  # If the previous option needs an argument, assign it.
61
357
  if test -n "$ac_prev"; then
62
358
    eval "$ac_prev=\$ac_option"
64
360
    continue
65
361
  fi
66
362
 
67
 
  case "$ac_option" in
68
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69
 
  *) ac_optarg= ;;
70
 
  esac
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
71
364
 
72
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
73
366
 
74
 
  case "$ac_option" in
 
367
  case $ac_option in
75
368
 
76
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
77
370
    ac_prev=bindir ;;
78
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79
 
    bindir="$ac_optarg" ;;
 
372
    bindir=$ac_optarg ;;
80
373
 
81
374
  -build | --build | --buil | --bui | --bu)
82
 
    ac_prev=build ;;
 
375
    ac_prev=build_alias ;;
83
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84
 
    build="$ac_optarg" ;;
 
377
    build_alias=$ac_optarg ;;
85
378
 
86
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
87
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88
381
    ac_prev=cache_file ;;
89
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91
 
    cache_file="$ac_optarg" ;;
 
384
    cache_file=$ac_optarg ;;
 
385
 
 
386
  --config-cache | -C)
 
387
    cache_file=config.cache ;;
92
388
 
93
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94
390
    ac_prev=datadir ;;
95
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96
392
  | --da=*)
97
 
    datadir="$ac_optarg" ;;
 
393
    datadir=$ac_optarg ;;
98
394
 
99
395
  -disable-* | --disable-*)
100
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
101
397
    # Reject names that are not valid shell variable names.
102
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104
 
    fi
105
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106
 
    eval "enable_${ac_feature}=no" ;;
 
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
400
   { (exit 1); exit 1; }; }
 
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
402
    eval "enable_$ac_feature=no" ;;
107
403
 
108
404
  -enable-* | --enable-*)
109
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
110
406
    # Reject names that are not valid shell variable names.
111
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113
 
    fi
114
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115
 
    case "$ac_option" in
116
 
      *=*) ;;
 
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
409
   { (exit 1); exit 1; }; }
 
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
411
    case $ac_option in
 
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
117
413
      *) ac_optarg=yes ;;
118
414
    esac
119
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
120
416
 
121
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127
423
  | --exec=* | --exe=* | --ex=*)
128
 
    exec_prefix="$ac_optarg" ;;
 
424
    exec_prefix=$ac_optarg ;;
129
425
 
130
426
  -gas | --gas | --ga | --g)
131
427
    # Obsolete; use --with-gas.
132
428
    with_gas=yes ;;
133
429
 
134
 
  -help | --help | --hel | --he)
135
 
    # Omit some internal or obsolete options to make the list less imposing.
136
 
    # This message is too long to be a string in the A/UX 3.1 sh.
137
 
    cat << EOF
138
 
Usage: configure [options] [host]
139
 
Options: [defaults in brackets after descriptions]
140
 
Configuration:
141
 
  --cache-file=FILE       cache test results in FILE
142
 
  --help                  print this message
143
 
  --no-create             do not create output files
144
 
  --quiet, --silent       do not print \`checking...' messages
145
 
  --version               print the version of autoconf that created configure
146
 
Directory and file names:
147
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
148
 
                          [$ac_default_prefix]
149
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
150
 
                          [same as prefix]
151
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
152
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
153
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
154
 
  --datadir=DIR           read-only architecture-independent data in DIR
155
 
                          [PREFIX/share]
156
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
157
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
158
 
                          [PREFIX/com]
159
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
160
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
161
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
162
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
163
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
164
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
165
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
166
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
167
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
168
 
  --program-transform-name=PROGRAM
169
 
                          run sed PROGRAM on installed program names
170
 
EOF
171
 
    cat << EOF
172
 
Host type:
173
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
174
 
  --host=HOST             configure for HOST [guessed]
175
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
176
 
Features and packages:
177
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
178
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
179
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
180
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
181
 
  --x-includes=DIR        X include files are in DIR
182
 
  --x-libraries=DIR       X library files are in DIR
183
 
EOF
184
 
    if test -n "$ac_help"; then
185
 
      echo "--enable and --with options recognized:$ac_help"
186
 
    fi
187
 
    exit 0 ;;
 
430
  -help | --help | --hel | --he | -h)
 
431
    ac_init_help=long ;;
 
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
433
    ac_init_help=recursive ;;
 
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
435
    ac_init_help=short ;;
188
436
 
189
437
  -host | --host | --hos | --ho)
190
 
    ac_prev=host ;;
 
438
    ac_prev=host_alias ;;
191
439
  -host=* | --host=* | --hos=* | --ho=*)
192
 
    host="$ac_optarg" ;;
 
440
    host_alias=$ac_optarg ;;
193
441
 
194
442
  -includedir | --includedir | --includedi | --included | --include \
195
443
  | --includ | --inclu | --incl | --inc)
196
444
    ac_prev=includedir ;;
197
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
199
 
    includedir="$ac_optarg" ;;
 
447
    includedir=$ac_optarg ;;
200
448
 
201
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
202
450
    ac_prev=infodir ;;
203
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204
 
    infodir="$ac_optarg" ;;
 
452
    infodir=$ac_optarg ;;
205
453
 
206
454
  -libdir | --libdir | --libdi | --libd)
207
455
    ac_prev=libdir ;;
208
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
209
 
    libdir="$ac_optarg" ;;
 
457
    libdir=$ac_optarg ;;
210
458
 
211
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212
460
  | --libexe | --libex | --libe)
213
461
    ac_prev=libexecdir ;;
214
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215
463
  | --libexe=* | --libex=* | --libe=*)
216
 
    libexecdir="$ac_optarg" ;;
 
464
    libexecdir=$ac_optarg ;;
217
465
 
218
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
219
467
  | --localstate | --localstat | --localsta | --localst \
222
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225
 
    localstatedir="$ac_optarg" ;;
 
473
    localstatedir=$ac_optarg ;;
226
474
 
227
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228
476
    ac_prev=mandir ;;
229
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230
 
    mandir="$ac_optarg" ;;
 
478
    mandir=$ac_optarg ;;
231
479
 
232
480
  -nfp | --nfp | --nf)
233
481
    # Obsolete; use --without-fp.
234
482
    with_fp=no ;;
235
483
 
236
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237
 
  | --no-cr | --no-c)
 
485
  | --no-cr | --no-c | -n)
238
486
    no_create=yes ;;
239
487
 
240
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251
 
    oldincludedir="$ac_optarg" ;;
 
499
    oldincludedir=$ac_optarg ;;
252
500
 
253
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254
502
    ac_prev=prefix ;;
255
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256
 
    prefix="$ac_optarg" ;;
 
504
    prefix=$ac_optarg ;;
257
505
 
258
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
259
507
  | --program-pre | --program-pr | --program-p)
260
508
    ac_prev=program_prefix ;;
261
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
262
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263
 
    program_prefix="$ac_optarg" ;;
 
511
    program_prefix=$ac_optarg ;;
264
512
 
265
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
266
514
  | --program-suf | --program-su | --program-s)
267
515
    ac_prev=program_suffix ;;
268
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
269
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270
 
    program_suffix="$ac_optarg" ;;
 
518
    program_suffix=$ac_optarg ;;
271
519
 
272
520
  -program-transform-name | --program-transform-name \
273
521
  | --program-transform-nam | --program-transform-na \
284
532
  | --program-transfo=* | --program-transf=* \
285
533
  | --program-trans=* | --program-tran=* \
286
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
287
 
    program_transform_name="$ac_optarg" ;;
 
535
    program_transform_name=$ac_optarg ;;
288
536
 
289
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290
538
  | -silent | --silent | --silen | --sile | --sil)
294
542
    ac_prev=sbindir ;;
295
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296
544
  | --sbi=* | --sb=*)
297
 
    sbindir="$ac_optarg" ;;
 
545
    sbindir=$ac_optarg ;;
298
546
 
299
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
300
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307
555
  | --sha=* | --sh=*)
308
 
    sharedstatedir="$ac_optarg" ;;
 
556
    sharedstatedir=$ac_optarg ;;
309
557
 
310
558
  -site | --site | --sit)
311
559
    ac_prev=site ;;
312
560
  -site=* | --site=* | --sit=*)
313
 
    site="$ac_optarg" ;;
 
561
    site=$ac_optarg ;;
314
562
 
315
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316
564
    ac_prev=srcdir ;;
317
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318
 
    srcdir="$ac_optarg" ;;
 
566
    srcdir=$ac_optarg ;;
319
567
 
320
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321
569
  | --syscon | --sysco | --sysc | --sys | --sy)
322
570
    ac_prev=sysconfdir ;;
323
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325
 
    sysconfdir="$ac_optarg" ;;
 
573
    sysconfdir=$ac_optarg ;;
326
574
 
327
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
328
 
    ac_prev=target ;;
 
576
    ac_prev=target_alias ;;
329
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330
 
    target="$ac_optarg" ;;
 
578
    target_alias=$ac_optarg ;;
331
579
 
332
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
333
581
    verbose=yes ;;
334
582
 
335
 
  -version | --version | --versio | --versi | --vers)
336
 
    echo "configure generated by autoconf version 2.13"
337
 
    exit 0 ;;
 
583
  -version | --version | --versio | --versi | --vers | -V)
 
584
    ac_init_version=: ;;
338
585
 
339
586
  -with-* | --with-*)
340
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
341
588
    # Reject names that are not valid shell variable names.
342
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344
 
    fi
 
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
591
   { (exit 1); exit 1; }; }
345
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
346
 
    case "$ac_option" in
347
 
      *=*) ;;
 
593
    case $ac_option in
 
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
348
595
      *) ac_optarg=yes ;;
349
596
    esac
350
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
597
    eval "with_$ac_package='$ac_optarg'" ;;
351
598
 
352
599
  -without-* | --without-*)
353
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
354
601
    # Reject names that are not valid shell variable names.
355
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357
 
    fi
358
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
359
 
    eval "with_${ac_package}=no" ;;
 
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
604
   { (exit 1); exit 1; }; }
 
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
606
    eval "with_$ac_package=no" ;;
360
607
 
361
608
  --x)
362
609
    # Obsolete; use --with-x.
367
614
    ac_prev=x_includes ;;
368
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370
 
    x_includes="$ac_optarg" ;;
 
617
    x_includes=$ac_optarg ;;
371
618
 
372
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
373
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374
621
    ac_prev=x_libraries ;;
375
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377
 
    x_libraries="$ac_optarg" ;;
 
624
    x_libraries=$ac_optarg ;;
378
625
 
379
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
627
Try \`$0 --help' for more information." >&2
 
628
   { (exit 1); exit 1; }; }
380
629
    ;;
381
630
 
 
631
  *=*)
 
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
633
    # Reject names that are not valid shell variable names.
 
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
636
   { (exit 1); exit 1; }; }
 
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
638
    eval "$ac_envvar='$ac_optarg'"
 
639
    export $ac_envvar ;;
 
640
 
382
641
  *)
383
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
385
 
    fi
386
 
    if test "x$nonopt" != xNONE; then
387
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388
 
    fi
389
 
    nonopt="$ac_option"
 
642
    # FIXME: should be removed in autoconf 3.0.
 
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
390
647
    ;;
391
648
 
392
649
  esac
393
650
done
394
651
 
395
652
if test -n "$ac_prev"; then
396
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397
 
fi
398
 
 
399
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400
 
 
401
 
# File descriptor usage:
402
 
# 0 standard input
403
 
# 1 file creation
404
 
# 2 errors and warnings
405
 
# 3 some systems may open it to /dev/tty
406
 
# 4 used on the Kubota Titan
407
 
# 6 checking for... messages and results
408
 
# 5 compiler messages saved in config.log
409
 
if test "$silent" = yes; then
410
 
  exec 6>/dev/null
411
 
else
412
 
  exec 6>&1
413
 
fi
414
 
exec 5>./config.log
415
 
 
416
 
echo "\
417
 
This file contains any messages produced by compilers while
418
 
running configure, to aid debugging if configure makes a mistake.
419
 
" 1>&5
420
 
 
421
 
# Strip out --no-create and --no-recursion so they do not pile up.
422
 
# Also quote any args containing shell metacharacters.
423
 
ac_configure_args=
424
 
for ac_arg
425
 
do
426
 
  case "$ac_arg" in
427
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428
 
  | --no-cr | --no-c) ;;
429
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434
 
  esac
435
 
done
436
 
 
437
 
# NLS nuisances.
438
 
# Only set these to C if already set.  These must not be set unconditionally
439
 
# because not all systems understand e.g. LANG=C (notably SCO).
440
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441
 
# Non-C LC_CTYPE values break the ctype check.
442
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446
 
 
447
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
448
 
rm -rf conftest* confdefs.h
449
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
450
 
echo > confdefs.h
451
 
 
452
 
# A filename unique to this package, relative to the directory that
453
 
# configure is in, which we can look for to find out if srcdir is correct.
454
 
ac_unique_file=common.c
 
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
655
   { (exit 1); exit 1; }; }
 
656
fi
 
657
 
 
658
# Be sure to have absolute paths.
 
659
for ac_var in exec_prefix prefix
 
660
do
 
661
  eval ac_val=$`echo $ac_var`
 
662
  case $ac_val in
 
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
665
   { (exit 1); exit 1; }; };;
 
666
  esac
 
667
done
 
668
 
 
669
# Be sure to have absolute paths.
 
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
671
              localstatedir libdir includedir oldincludedir infodir mandir
 
672
do
 
673
  eval ac_val=$`echo $ac_var`
 
674
  case $ac_val in
 
675
    [\\/$]* | ?:[\\/]* ) ;;
 
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
677
   { (exit 1); exit 1; }; };;
 
678
  esac
 
679
done
 
680
 
 
681
# There might be people who depend on the old broken behavior: `$host'
 
682
# used to hold the argument of --host etc.
 
683
# FIXME: To remove some day.
 
684
build=$build_alias
 
685
host=$host_alias
 
686
target=$target_alias
 
687
 
 
688
# FIXME: To remove some day.
 
689
if test "x$host_alias" != x; then
 
690
  if test "x$build_alias" = x; then
 
691
    cross_compiling=maybe
 
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
693
    If a cross compiler is detected then cross compile mode will be used." >&2
 
694
  elif test "x$build_alias" != "x$host_alias"; then
 
695
    cross_compiling=yes
 
696
  fi
 
697
fi
 
698
 
 
699
ac_tool_prefix=
 
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
701
 
 
702
test "$silent" = yes && exec 6>/dev/null
 
703
 
455
704
 
456
705
# Find the source files, if location was not specified.
457
706
if test -z "$srcdir"; then
458
707
  ac_srcdir_defaulted=yes
459
708
  # Try the directory containing this script, then its parent.
460
 
  ac_prog=$0
461
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
711
         X"$0" : 'X\(//\)[^/]' \| \
 
712
         X"$0" : 'X\(//\)$' \| \
 
713
         X"$0" : 'X\(/\)' \| \
 
714
         .     : '\(.\)' 2>/dev/null ||
 
715
echo X"$0" |
 
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
718
          /^X\(\/\/\)$/{ s//\1/; q; }
 
719
          /^X\(\/\).*/{ s//\1/; q; }
 
720
          s/.*/./; q'`
463
721
  srcdir=$ac_confdir
464
722
  if test ! -r $srcdir/$ac_unique_file; then
465
723
    srcdir=..
469
727
fi
470
728
if test ! -r $srcdir/$ac_unique_file; then
471
729
  if test "$ac_srcdir_defaulted" = yes; then
472
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
731
   { (exit 1); exit 1; }; }
473
732
  else
474
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
734
   { (exit 1); exit 1; }; }
475
735
  fi
476
736
fi
477
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478
 
 
 
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
739
   { (exit 1); exit 1; }; }
 
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
741
ac_env_build_alias_set=${build_alias+set}
 
742
ac_env_build_alias_value=$build_alias
 
743
ac_cv_env_build_alias_set=${build_alias+set}
 
744
ac_cv_env_build_alias_value=$build_alias
 
745
ac_env_host_alias_set=${host_alias+set}
 
746
ac_env_host_alias_value=$host_alias
 
747
ac_cv_env_host_alias_set=${host_alias+set}
 
748
ac_cv_env_host_alias_value=$host_alias
 
749
ac_env_target_alias_set=${target_alias+set}
 
750
ac_env_target_alias_value=$target_alias
 
751
ac_cv_env_target_alias_set=${target_alias+set}
 
752
ac_cv_env_target_alias_value=$target_alias
 
753
ac_env_CC_set=${CC+set}
 
754
ac_env_CC_value=$CC
 
755
ac_cv_env_CC_set=${CC+set}
 
756
ac_cv_env_CC_value=$CC
 
757
ac_env_CFLAGS_set=${CFLAGS+set}
 
758
ac_env_CFLAGS_value=$CFLAGS
 
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
760
ac_cv_env_CFLAGS_value=$CFLAGS
 
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
762
ac_env_LDFLAGS_value=$LDFLAGS
 
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
766
ac_env_CPPFLAGS_value=$CPPFLAGS
 
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
769
ac_env_CPP_set=${CPP+set}
 
770
ac_env_CPP_value=$CPP
 
771
ac_cv_env_CPP_set=${CPP+set}
 
772
ac_cv_env_CPP_value=$CPP
 
773
 
 
774
#
 
775
# Report the --help message.
 
776
#
 
777
if test "$ac_init_help" = "long"; then
 
778
  # Omit some internal or obsolete options to make the list less imposing.
 
779
  # This message is too long to be a string in the A/UX 3.1 sh.
 
780
  cat <<_ACEOF
 
781
\`configure' configures this package to adapt to many kinds of systems.
 
782
 
 
783
Usage: $0 [OPTION]... [VAR=VALUE]...
 
784
 
 
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
786
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
787
 
 
788
Defaults for the options are specified in brackets.
 
789
 
 
790
Configuration:
 
791
  -h, --help              display this help and exit
 
792
      --help=short        display options specific to this package
 
793
      --help=recursive    display the short help of all the included packages
 
794
  -V, --version           display version information and exit
 
795
  -q, --quiet, --silent   do not print \`checking...' messages
 
796
      --cache-file=FILE   cache test results in FILE [disabled]
 
797
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
798
  -n, --no-create         do not create output files
 
799
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
800
 
 
801
_ACEOF
 
802
 
 
803
  cat <<_ACEOF
 
804
Installation directories:
 
805
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
806
                          [$ac_default_prefix]
 
807
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
808
                          [PREFIX]
 
809
 
 
810
By default, \`make install' will install all the files in
 
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
813
for instance \`--prefix=\$HOME'.
 
814
 
 
815
For better control, use the options below.
 
816
 
 
817
Fine tuning of the installation directories:
 
818
  --bindir=DIR           user executables [EPREFIX/bin]
 
819
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
820
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
821
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
822
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
823
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
824
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
825
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
826
  --includedir=DIR       C header files [PREFIX/include]
 
827
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
828
  --infodir=DIR          info documentation [PREFIX/info]
 
829
  --mandir=DIR           man documentation [PREFIX/man]
 
830
_ACEOF
 
831
 
 
832
  cat <<\_ACEOF
 
833
_ACEOF
 
834
fi
 
835
 
 
836
if test -n "$ac_init_help"; then
 
837
 
 
838
  cat <<\_ACEOF
 
839
 
 
840
Some influential environment variables:
 
841
  CC          C compiler command
 
842
  CFLAGS      C compiler flags
 
843
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
844
              nonstandard directory <lib dir>
 
845
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
846
              headers in a nonstandard directory <include dir>
 
847
  CPP         C preprocessor
 
848
 
 
849
Use these variables to override the choices made by `configure' or to help
 
850
it to find libraries and programs with nonstandard names/locations.
 
851
 
 
852
_ACEOF
 
853
fi
 
854
 
 
855
if test "$ac_init_help" = "recursive"; then
 
856
  # If there are subdirs, report their specific --help.
 
857
  ac_popdir=`pwd`
 
858
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
859
    test -d $ac_dir || continue
 
860
    ac_builddir=.
 
861
 
 
862
if test "$ac_dir" != .; then
 
863
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
864
  # A "../" for each directory in $ac_dir_suffix.
 
865
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
866
else
 
867
  ac_dir_suffix= ac_top_builddir=
 
868
fi
 
869
 
 
870
case $srcdir in
 
871
  .)  # No --srcdir option.  We are building in place.
 
872
    ac_srcdir=.
 
873
    if test -z "$ac_top_builddir"; then
 
874
       ac_top_srcdir=.
 
875
    else
 
876
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
877
    fi ;;
 
878
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
879
    ac_srcdir=$srcdir$ac_dir_suffix;
 
880
    ac_top_srcdir=$srcdir ;;
 
881
  *) # Relative path.
 
882
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
883
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
884
esac
 
885
 
 
886
# Do not use `cd foo && pwd` to compute absolute paths, because
 
887
# the directories may not exist.
 
888
case `pwd` in
 
889
.) ac_abs_builddir="$ac_dir";;
 
890
*)
 
891
  case "$ac_dir" in
 
892
  .) ac_abs_builddir=`pwd`;;
 
893
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
894
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
895
  esac;;
 
896
esac
 
897
case $ac_abs_builddir in
 
898
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
899
*)
 
900
  case ${ac_top_builddir}. in
 
901
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
902
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
903
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
904
  esac;;
 
905
esac
 
906
case $ac_abs_builddir in
 
907
.) ac_abs_srcdir=$ac_srcdir;;
 
908
*)
 
909
  case $ac_srcdir in
 
910
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
911
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
912
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
913
  esac;;
 
914
esac
 
915
case $ac_abs_builddir in
 
916
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
917
*)
 
918
  case $ac_top_srcdir in
 
919
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
920
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
921
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
922
  esac;;
 
923
esac
 
924
 
 
925
    cd $ac_dir
 
926
    # Check for guested configure; otherwise get Cygnus style configure.
 
927
    if test -f $ac_srcdir/configure.gnu; then
 
928
      echo
 
929
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
930
    elif test -f $ac_srcdir/configure; then
 
931
      echo
 
932
      $SHELL $ac_srcdir/configure  --help=recursive
 
933
    elif test -f $ac_srcdir/configure.ac ||
 
934
           test -f $ac_srcdir/configure.in; then
 
935
      echo
 
936
      $ac_configure --help
 
937
    else
 
938
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
939
    fi
 
940
    cd $ac_popdir
 
941
  done
 
942
fi
 
943
 
 
944
test -n "$ac_init_help" && exit 0
 
945
if $ac_init_version; then
 
946
  cat <<\_ACEOF
 
947
 
 
948
Copyright (C) 2003 Free Software Foundation, Inc.
 
949
This configure script is free software; the Free Software Foundation
 
950
gives unlimited permission to copy, distribute and modify it.
 
951
_ACEOF
 
952
  exit 0
 
953
fi
 
954
exec 5>config.log
 
955
cat >&5 <<_ACEOF
 
956
This file contains any messages produced by compilers while
 
957
running configure, to aid debugging if configure makes a mistake.
 
958
 
 
959
It was created by $as_me, which was
 
960
generated by GNU Autoconf 2.59.  Invocation command line was
 
961
 
 
962
  $ $0 $@
 
963
 
 
964
_ACEOF
 
965
{
 
966
cat <<_ASUNAME
 
967
## --------- ##
 
968
## Platform. ##
 
969
## --------- ##
 
970
 
 
971
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
972
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
973
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
974
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
975
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
976
 
 
977
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
978
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
979
 
 
980
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
981
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
982
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
983
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
984
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
985
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
986
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
987
 
 
988
_ASUNAME
 
989
 
 
990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
991
for as_dir in $PATH
 
992
do
 
993
  IFS=$as_save_IFS
 
994
  test -z "$as_dir" && as_dir=.
 
995
  echo "PATH: $as_dir"
 
996
done
 
997
 
 
998
} >&5
 
999
 
 
1000
cat >&5 <<_ACEOF
 
1001
 
 
1002
 
 
1003
## ----------- ##
 
1004
## Core tests. ##
 
1005
## ----------- ##
 
1006
 
 
1007
_ACEOF
 
1008
 
 
1009
 
 
1010
# Keep a trace of the command line.
 
1011
# Strip out --no-create and --no-recursion so they do not pile up.
 
1012
# Strip out --silent because we don't want to record it for future runs.
 
1013
# Also quote any args containing shell meta-characters.
 
1014
# Make two passes to allow for proper duplicate-argument suppression.
 
1015
ac_configure_args=
 
1016
ac_configure_args0=
 
1017
ac_configure_args1=
 
1018
ac_sep=
 
1019
ac_must_keep_next=false
 
1020
for ac_pass in 1 2
 
1021
do
 
1022
  for ac_arg
 
1023
  do
 
1024
    case $ac_arg in
 
1025
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1026
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1027
    | -silent | --silent | --silen | --sile | --sil)
 
1028
      continue ;;
 
1029
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1030
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1031
    esac
 
1032
    case $ac_pass in
 
1033
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1034
    2)
 
1035
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1036
      if test $ac_must_keep_next = true; then
 
1037
        ac_must_keep_next=false # Got value, back to normal.
 
1038
      else
 
1039
        case $ac_arg in
 
1040
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1041
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1042
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1043
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1044
            case "$ac_configure_args0 " in
 
1045
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1046
            esac
 
1047
            ;;
 
1048
          -* ) ac_must_keep_next=true ;;
 
1049
        esac
 
1050
      fi
 
1051
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1052
      # Get rid of the leading space.
 
1053
      ac_sep=" "
 
1054
      ;;
 
1055
    esac
 
1056
  done
 
1057
done
 
1058
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1059
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1060
 
 
1061
# When interrupted or exit'd, cleanup temporary files, and complete
 
1062
# config.log.  We remove comments because anyway the quotes in there
 
1063
# would cause problems or look ugly.
 
1064
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1065
# such as our DU 5.0 friend, will then `close' the trap.
 
1066
trap 'exit_status=$?
 
1067
  # Save into config.log some information that might help in debugging.
 
1068
  {
 
1069
    echo
 
1070
 
 
1071
    cat <<\_ASBOX
 
1072
## ---------------- ##
 
1073
## Cache variables. ##
 
1074
## ---------------- ##
 
1075
_ASBOX
 
1076
    echo
 
1077
    # The following way of writing the cache mishandles newlines in values,
 
1078
{
 
1079
  (set) 2>&1 |
 
1080
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1081
    *ac_space=\ *)
 
1082
      sed -n \
 
1083
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1084
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1085
      ;;
 
1086
    *)
 
1087
      sed -n \
 
1088
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1089
      ;;
 
1090
    esac;
 
1091
}
 
1092
    echo
 
1093
 
 
1094
    cat <<\_ASBOX
 
1095
## ----------------- ##
 
1096
## Output variables. ##
 
1097
## ----------------- ##
 
1098
_ASBOX
 
1099
    echo
 
1100
    for ac_var in $ac_subst_vars
 
1101
    do
 
1102
      eval ac_val=$`echo $ac_var`
 
1103
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1104
    done | sort
 
1105
    echo
 
1106
 
 
1107
    if test -n "$ac_subst_files"; then
 
1108
      cat <<\_ASBOX
 
1109
## ------------- ##
 
1110
## Output files. ##
 
1111
## ------------- ##
 
1112
_ASBOX
 
1113
      echo
 
1114
      for ac_var in $ac_subst_files
 
1115
      do
 
1116
        eval ac_val=$`echo $ac_var`
 
1117
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1118
      done | sort
 
1119
      echo
 
1120
    fi
 
1121
 
 
1122
    if test -s confdefs.h; then
 
1123
      cat <<\_ASBOX
 
1124
## ----------- ##
 
1125
## confdefs.h. ##
 
1126
## ----------- ##
 
1127
_ASBOX
 
1128
      echo
 
1129
      sed "/^$/d" confdefs.h | sort
 
1130
      echo
 
1131
    fi
 
1132
    test "$ac_signal" != 0 &&
 
1133
      echo "$as_me: caught signal $ac_signal"
 
1134
    echo "$as_me: exit $exit_status"
 
1135
  } >&5
 
1136
  rm -f core *.core &&
 
1137
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1138
    exit $exit_status
 
1139
     ' 0
 
1140
for ac_signal in 1 2 13 15; do
 
1141
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1142
done
 
1143
ac_signal=0
 
1144
 
 
1145
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1146
rm -rf conftest* confdefs.h
 
1147
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1148
echo >confdefs.h
 
1149
 
 
1150
# Predefined preprocessor variables.
 
1151
 
 
1152
cat >>confdefs.h <<_ACEOF
 
1153
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1154
_ACEOF
 
1155
 
 
1156
 
 
1157
cat >>confdefs.h <<_ACEOF
 
1158
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1159
_ACEOF
 
1160
 
 
1161
 
 
1162
cat >>confdefs.h <<_ACEOF
 
1163
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1164
_ACEOF
 
1165
 
 
1166
 
 
1167
cat >>confdefs.h <<_ACEOF
 
1168
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1169
_ACEOF
 
1170
 
 
1171
 
 
1172
cat >>confdefs.h <<_ACEOF
 
1173
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1174
_ACEOF
 
1175
 
 
1176
 
 
1177
# Let the site file select an alternate cache file if it wants to.
479
1178
# Prefer explicitly selected file to automatically selected ones.
480
1179
if test -z "$CONFIG_SITE"; then
481
1180
  if test "x$prefix" != xNONE; then
486
1185
fi
487
1186
for ac_site_file in $CONFIG_SITE; do
488
1187
  if test -r "$ac_site_file"; then
489
 
    echo "loading site script $ac_site_file"
 
1188
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1189
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1190
    sed 's/^/| /' "$ac_site_file" >&5
490
1191
    . "$ac_site_file"
491
1192
  fi
492
1193
done
493
1194
 
494
1195
if test -r "$cache_file"; then
495
 
  echo "loading cache $cache_file"
496
 
  . $cache_file
 
1196
  # Some versions of bash will fail to source /dev/null (special
 
1197
  # files actually), so we avoid doing that.
 
1198
  if test -f "$cache_file"; then
 
1199
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1200
echo "$as_me: loading cache $cache_file" >&6;}
 
1201
    case $cache_file in
 
1202
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1203
      *)                      . ./$cache_file;;
 
1204
    esac
 
1205
  fi
497
1206
else
498
 
  echo "creating cache $cache_file"
499
 
  > $cache_file
 
1207
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1208
echo "$as_me: creating cache $cache_file" >&6;}
 
1209
  >$cache_file
 
1210
fi
 
1211
 
 
1212
# Check that the precious variables saved in the cache have kept the same
 
1213
# value.
 
1214
ac_cache_corrupted=false
 
1215
for ac_var in `(set) 2>&1 |
 
1216
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1217
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1218
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1219
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1220
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1221
  case $ac_old_set,$ac_new_set in
 
1222
    set,)
 
1223
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1224
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1225
      ac_cache_corrupted=: ;;
 
1226
    ,set)
 
1227
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1228
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1229
      ac_cache_corrupted=: ;;
 
1230
    ,);;
 
1231
    *)
 
1232
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1233
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1234
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1235
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1236
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1237
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1238
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1239
        ac_cache_corrupted=:
 
1240
      fi;;
 
1241
  esac
 
1242
  # Pass precious variables to config.status.
 
1243
  if test "$ac_new_set" = set; then
 
1244
    case $ac_new_val in
 
1245
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1246
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1247
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1248
    esac
 
1249
    case " $ac_configure_args " in
 
1250
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1251
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1252
    esac
 
1253
  fi
 
1254
done
 
1255
if $ac_cache_corrupted; then
 
1256
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1257
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1258
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1259
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1260
   { (exit 1); exit 1; }; }
500
1261
fi
501
1262
 
502
1263
ac_ext=c
503
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504
1264
ac_cpp='$CPP $CPPFLAGS'
505
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507
 
cross_compiling=$ac_cv_prog_cc_cross
508
 
 
509
 
ac_exeext=
510
 
ac_objext=o
511
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514
 
    ac_n= ac_c='
515
 
' ac_t='        '
516
 
  else
517
 
    ac_n=-n ac_c= ac_t=
518
 
  fi
519
 
else
520
 
  ac_n= ac_c='\c' ac_t=
521
 
fi
 
1265
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1266
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1267
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1268
 
 
1269
 
 
1270
 
 
1271
 
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
 
1284
 
522
1285
 
523
1286
 
524
1287
ac_aux_dir=
531
1294
    ac_aux_dir=$ac_dir
532
1295
    ac_install_sh="$ac_aux_dir/install.sh -c"
533
1296
    break
 
1297
  elif test -f $ac_dir/shtool; then
 
1298
    ac_aux_dir=$ac_dir
 
1299
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1300
    break
534
1301
  fi
535
1302
done
536
1303
if test -z "$ac_aux_dir"; then
537
 
  { echo "configure: error: can not find install-sh or install.sh in util $srcdir/util" 1>&2; exit 1; }
 
1304
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in util $srcdir/util" >&5
 
1305
echo "$as_me: error: cannot find install-sh or install.sh in util $srcdir/util" >&2;}
 
1306
   { (exit 1); exit 1; }; }
538
1307
fi
539
 
ac_config_guess=$ac_aux_dir/config.guess
540
 
ac_config_sub=$ac_aux_dir/config.sub
541
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
1308
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1309
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1310
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
542
1311
 
543
1312
 
544
1313
echo > config.h
550
1319
echo -n "checking system version... "
551
1320
echo "$HOSTREL"
552
1321
 
 
1322
 
 
1323
 
553
1324
case "$HOSTOS" in
554
1325
        Linux*)
555
1326
                cp sys/m_linux.c machine.c
560
1331
                        echo "====================================="
561
1332
                        echo "System version is not 3.x, this server may not"
562
1333
                        echo "compile or run on this version. Good luck."
563
 
                        echo "====================================="    
 
1334
                        echo "====================================="
564
1335
                fi
565
1336
                cp sys/m_fbsd.c machine.c
566
1337
        ;;
 
1338
        SunOS|NetBSD|OpenBSD|OSF/1|HP-UX*)
 
1339
                if (test "$HOSTREL" = "5.10" -a "$HOSTOS" = "SunOS" ); then
 
1340
                        echo "======================================"
 
1341
                        echo "Remember, for Solaris 10, you should"
 
1342
                        echo "compile the latest version of lsof"
 
1343
                        echo "from source."
 
1344
                        echo "======================================"
 
1345
                fi
 
1346
                cp sys/m_lsof.c machine.c
 
1347
 
 
1348
    # Extract the first word of "lsof", so it can be a program name with args.
 
1349
set dummy lsof; ac_word=$2
 
1350
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1352
if test "${ac_cv_path_LSOF+set}" = set; then
 
1353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1354
else
 
1355
  case $LSOF in
 
1356
  [\\/]* | ?:[\\/]*)
 
1357
  ac_cv_path_LSOF="$LSOF" # Let the user override the test with a path.
 
1358
  ;;
 
1359
  *)
 
1360
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1361
for as_dir in $PATH
 
1362
do
 
1363
  IFS=$as_save_IFS
 
1364
  test -z "$as_dir" && as_dir=.
 
1365
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1366
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1367
    ac_cv_path_LSOF="$as_dir/$ac_word$ac_exec_ext"
 
1368
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1369
    break 2
 
1370
  fi
 
1371
done
 
1372
done
 
1373
 
 
1374
  ;;
 
1375
esac
 
1376
fi
 
1377
LSOF=$ac_cv_path_LSOF
 
1378
 
 
1379
if test -n "$LSOF"; then
 
1380
  echo "$as_me:$LINENO: result: $LSOF" >&5
 
1381
echo "${ECHO_T}$LSOF" >&6
 
1382
else
 
1383
  echo "$as_me:$LINENO: result: no" >&5
 
1384
echo "${ECHO_T}no" >&6
 
1385
fi
 
1386
 
 
1387
    if test -z "${LSOF}" ; then
 
1388
        { { echo "$as_me:$LINENO: error: lsof was not found in path and is required" >&5
 
1389
echo "$as_me: error: lsof was not found in path and is required" >&2;}
 
1390
   { (exit 1); exit 1; }; }
 
1391
    fi
 
1392
 
 
1393
                CFLAGS="$CFLAGS -DLSOF_LOCATION='\"$LSOF\"'"
 
1394
 
 
1395
        ;;
567
1396
        *)
568
1397
                echo "======================================"
569
1398
                echo "Your Operating System is not supported"
572
1401
                echo "======================================"
573
1402
                exit 1
574
1403
esac
575
 
                
 
1404
 
576
1405
# Find a good install program.  We prefer a C program (faster),
577
1406
# so one script is as good as another.  But avoid the broken or
578
1407
# incompatible versions:
580
1409
# SunOS /usr/etc/install
581
1410
# IRIX /sbin/install
582
1411
# AIX /bin/install
 
1412
# AmigaOS /C/install, which installs bootblocks on floppy discs
583
1413
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
584
1414
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
585
1415
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1416
# OS/2's system install, which has a completely different semantic
586
1417
# ./install, which can be erroneously created by make from ./install.sh.
587
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
588
 
echo "configure:589: checking for a BSD compatible install" >&5
 
1418
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1419
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
589
1420
if test -z "$INSTALL"; then
590
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
591
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1421
if test "${ac_cv_path_install+set}" = set; then
 
1422
  echo $ECHO_N "(cached) $ECHO_C" >&6
592
1423
else
593
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
594
 
  for ac_dir in $PATH; do
595
 
    # Account for people who put trailing slashes in PATH elements.
596
 
    case "$ac_dir/" in
597
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
598
 
    *)
599
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
600
 
      # Don't use installbsd from OSF since it installs stuff as root
601
 
      # by default.
602
 
      for ac_prog in ginstall scoinst install; do
603
 
        if test -f $ac_dir/$ac_prog; then
 
1424
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1425
for as_dir in $PATH
 
1426
do
 
1427
  IFS=$as_save_IFS
 
1428
  test -z "$as_dir" && as_dir=.
 
1429
  # Account for people who put trailing slashes in PATH elements.
 
1430
case $as_dir/ in
 
1431
  ./ | .// | /cC/* | \
 
1432
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1433
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1434
  /usr/ucb/* ) ;;
 
1435
  *)
 
1436
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1437
    # Don't use installbsd from OSF since it installs stuff as root
 
1438
    # by default.
 
1439
    for ac_prog in ginstall scoinst install; do
 
1440
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1441
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
604
1442
          if test $ac_prog = install &&
605
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1443
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
606
1444
            # AIX install.  It has an incompatible calling convention.
607
1445
            :
 
1446
          elif test $ac_prog = install &&
 
1447
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1448
            # program-specific install script used by HP pwplus--don't use.
 
1449
            :
608
1450
          else
609
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
610
 
            break 2
 
1451
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1452
            break 3
611
1453
          fi
612
1454
        fi
613
1455
      done
614
 
      ;;
615
 
    esac
616
 
  done
617
 
  IFS="$ac_save_IFS"
 
1456
    done
 
1457
    ;;
 
1458
esac
 
1459
done
 
1460
 
618
1461
 
619
1462
fi
620
1463
  if test "${ac_cv_path_install+set}" = set; then
621
 
    INSTALL="$ac_cv_path_install"
 
1464
    INSTALL=$ac_cv_path_install
622
1465
  else
623
1466
    # As a last resort, use the slow shell script.  We don't cache a
624
1467
    # path for INSTALL within a source directory, because that will
625
1468
    # break other packages using the cache if that directory is
626
1469
    # removed, or if the path is relative.
627
 
    INSTALL="$ac_install_sh"
 
1470
    INSTALL=$ac_install_sh
628
1471
  fi
629
1472
fi
630
 
echo "$ac_t""$INSTALL" 1>&6
 
1473
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1474
echo "${ECHO_T}$INSTALL" >&6
631
1475
 
632
1476
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
633
1477
# It thinks the first close brace ends the variable substitution.
634
1478
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
635
1479
 
636
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1480
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
637
1481
 
638
1482
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
639
1483
 
640
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1484
ac_ext=c
 
1485
ac_cpp='$CPP $CPPFLAGS'
 
1486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1489
if test -n "$ac_tool_prefix"; then
 
1490
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1491
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1492
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1494
if test "${ac_cv_prog_CC+set}" = set; then
 
1495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1496
else
 
1497
  if test -n "$CC"; then
 
1498
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1499
else
 
1500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1501
for as_dir in $PATH
 
1502
do
 
1503
  IFS=$as_save_IFS
 
1504
  test -z "$as_dir" && as_dir=.
 
1505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1507
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1509
    break 2
 
1510
  fi
 
1511
done
 
1512
done
 
1513
 
 
1514
fi
 
1515
fi
 
1516
CC=$ac_cv_prog_CC
 
1517
if test -n "$CC"; then
 
1518
  echo "$as_me:$LINENO: result: $CC" >&5
 
1519
echo "${ECHO_T}$CC" >&6
 
1520
else
 
1521
  echo "$as_me:$LINENO: result: no" >&5
 
1522
echo "${ECHO_T}no" >&6
 
1523
fi
 
1524
 
 
1525
fi
 
1526
if test -z "$ac_cv_prog_CC"; then
 
1527
  ac_ct_CC=$CC
 
1528
  # Extract the first word of "gcc", so it can be a program name with args.
641
1529
set dummy gcc; ac_word=$2
642
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643
 
echo "configure:644: checking for $ac_word" >&5
644
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1530
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1531
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1532
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1534
else
 
1535
  if test -n "$ac_ct_CC"; then
 
1536
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1537
else
 
1538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1539
for as_dir in $PATH
 
1540
do
 
1541
  IFS=$as_save_IFS
 
1542
  test -z "$as_dir" && as_dir=.
 
1543
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1544
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1545
    ac_cv_prog_ac_ct_CC="gcc"
 
1546
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1547
    break 2
 
1548
  fi
 
1549
done
 
1550
done
 
1551
 
 
1552
fi
 
1553
fi
 
1554
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1555
if test -n "$ac_ct_CC"; then
 
1556
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1557
echo "${ECHO_T}$ac_ct_CC" >&6
 
1558
else
 
1559
  echo "$as_me:$LINENO: result: no" >&5
 
1560
echo "${ECHO_T}no" >&6
 
1561
fi
 
1562
 
 
1563
  CC=$ac_ct_CC
 
1564
else
 
1565
  CC="$ac_cv_prog_CC"
 
1566
fi
 
1567
 
 
1568
if test -z "$CC"; then
 
1569
  if test -n "$ac_tool_prefix"; then
 
1570
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1571
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1572
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1574
if test "${ac_cv_prog_CC+set}" = set; then
 
1575
  echo $ECHO_N "(cached) $ECHO_C" >&6
646
1576
else
647
1577
  if test -n "$CC"; then
648
1578
  ac_cv_prog_CC="$CC" # Let the user override the test.
649
1579
else
650
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
651
 
  ac_dummy="$PATH"
652
 
  for ac_dir in $ac_dummy; do
653
 
    test -z "$ac_dir" && ac_dir=.
654
 
    if test -f $ac_dir/$ac_word; then
655
 
      ac_cv_prog_CC="gcc"
656
 
      break
657
 
    fi
658
 
  done
659
 
  IFS="$ac_save_ifs"
660
 
fi
661
 
fi
662
 
CC="$ac_cv_prog_CC"
 
1580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1581
for as_dir in $PATH
 
1582
do
 
1583
  IFS=$as_save_IFS
 
1584
  test -z "$as_dir" && as_dir=.
 
1585
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1586
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1587
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1588
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1589
    break 2
 
1590
  fi
 
1591
done
 
1592
done
 
1593
 
 
1594
fi
 
1595
fi
 
1596
CC=$ac_cv_prog_CC
663
1597
if test -n "$CC"; then
664
 
  echo "$ac_t""$CC" 1>&6
665
 
else
666
 
  echo "$ac_t""no" 1>&6
667
 
fi
668
 
 
 
1598
  echo "$as_me:$LINENO: result: $CC" >&5
 
1599
echo "${ECHO_T}$CC" >&6
 
1600
else
 
1601
  echo "$as_me:$LINENO: result: no" >&5
 
1602
echo "${ECHO_T}no" >&6
 
1603
fi
 
1604
 
 
1605
fi
 
1606
if test -z "$ac_cv_prog_CC"; then
 
1607
  ac_ct_CC=$CC
 
1608
  # Extract the first word of "cc", so it can be a program name with args.
 
1609
set dummy cc; ac_word=$2
 
1610
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1612
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1613
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1614
else
 
1615
  if test -n "$ac_ct_CC"; then
 
1616
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1617
else
 
1618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1619
for as_dir in $PATH
 
1620
do
 
1621
  IFS=$as_save_IFS
 
1622
  test -z "$as_dir" && as_dir=.
 
1623
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1624
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1625
    ac_cv_prog_ac_ct_CC="cc"
 
1626
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1627
    break 2
 
1628
  fi
 
1629
done
 
1630
done
 
1631
 
 
1632
fi
 
1633
fi
 
1634
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1635
if test -n "$ac_ct_CC"; then
 
1636
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1637
echo "${ECHO_T}$ac_ct_CC" >&6
 
1638
else
 
1639
  echo "$as_me:$LINENO: result: no" >&5
 
1640
echo "${ECHO_T}no" >&6
 
1641
fi
 
1642
 
 
1643
  CC=$ac_ct_CC
 
1644
else
 
1645
  CC="$ac_cv_prog_CC"
 
1646
fi
 
1647
 
 
1648
fi
669
1649
if test -z "$CC"; then
670
1650
  # Extract the first word of "cc", so it can be a program name with args.
671
1651
set dummy cc; ac_word=$2
672
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673
 
echo "configure:674: checking for $ac_word" >&5
674
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1652
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1654
if test "${ac_cv_prog_CC+set}" = set; then
 
1655
  echo $ECHO_N "(cached) $ECHO_C" >&6
676
1656
else
677
1657
  if test -n "$CC"; then
678
1658
  ac_cv_prog_CC="$CC" # Let the user override the test.
679
1659
else
680
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
681
1660
  ac_prog_rejected=no
682
 
  ac_dummy="$PATH"
683
 
  for ac_dir in $ac_dummy; do
684
 
    test -z "$ac_dir" && ac_dir=.
685
 
    if test -f $ac_dir/$ac_word; then
686
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
687
 
        ac_prog_rejected=yes
688
 
        continue
689
 
      fi
690
 
      ac_cv_prog_CC="cc"
691
 
      break
692
 
    fi
693
 
  done
694
 
  IFS="$ac_save_ifs"
 
1661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1662
for as_dir in $PATH
 
1663
do
 
1664
  IFS=$as_save_IFS
 
1665
  test -z "$as_dir" && as_dir=.
 
1666
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1667
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1668
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1669
       ac_prog_rejected=yes
 
1670
       continue
 
1671
     fi
 
1672
    ac_cv_prog_CC="cc"
 
1673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1674
    break 2
 
1675
  fi
 
1676
done
 
1677
done
 
1678
 
695
1679
if test $ac_prog_rejected = yes; then
696
1680
  # We found a bogon in the path, so make sure we never use it.
697
1681
  set dummy $ac_cv_prog_CC
698
1682
  shift
699
 
  if test $# -gt 0; then
 
1683
  if test $# != 0; then
700
1684
    # We chose a different compiler from the bogus one.
701
1685
    # However, it has the same basename, so the bogon will be chosen
702
1686
    # first if we set CC to just the basename; use the full file name.
703
1687
    shift
704
 
    set dummy "$ac_dir/$ac_word" "$@"
705
 
    shift
706
 
    ac_cv_prog_CC="$@"
 
1688
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
707
1689
  fi
708
1690
fi
709
1691
fi
710
1692
fi
711
 
CC="$ac_cv_prog_CC"
 
1693
CC=$ac_cv_prog_CC
712
1694
if test -n "$CC"; then
713
 
  echo "$ac_t""$CC" 1>&6
 
1695
  echo "$as_me:$LINENO: result: $CC" >&5
 
1696
echo "${ECHO_T}$CC" >&6
714
1697
else
715
 
  echo "$ac_t""no" 1>&6
 
1698
  echo "$as_me:$LINENO: result: no" >&5
 
1699
echo "${ECHO_T}no" >&6
716
1700
fi
717
1701
 
718
 
  if test -z "$CC"; then
719
 
    case "`uname -s`" in
720
 
    *win32* | *WIN32*)
721
 
      # Extract the first word of "cl", so it can be a program name with args.
722
 
set dummy cl; ac_word=$2
723
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724
 
echo "configure:725: checking for $ac_word" >&5
725
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
726
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1702
fi
 
1703
if test -z "$CC"; then
 
1704
  if test -n "$ac_tool_prefix"; then
 
1705
  for ac_prog in cl
 
1706
  do
 
1707
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1708
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1709
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1710
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1711
if test "${ac_cv_prog_CC+set}" = set; then
 
1712
  echo $ECHO_N "(cached) $ECHO_C" >&6
727
1713
else
728
1714
  if test -n "$CC"; then
729
1715
  ac_cv_prog_CC="$CC" # Let the user override the test.
730
1716
else
731
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
732
 
  ac_dummy="$PATH"
733
 
  for ac_dir in $ac_dummy; do
734
 
    test -z "$ac_dir" && ac_dir=.
735
 
    if test -f $ac_dir/$ac_word; then
736
 
      ac_cv_prog_CC="cl"
737
 
      break
738
 
    fi
 
1717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1718
for as_dir in $PATH
 
1719
do
 
1720
  IFS=$as_save_IFS
 
1721
  test -z "$as_dir" && as_dir=.
 
1722
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1723
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1724
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1725
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1726
    break 2
 
1727
  fi
 
1728
done
 
1729
done
 
1730
 
 
1731
fi
 
1732
fi
 
1733
CC=$ac_cv_prog_CC
 
1734
if test -n "$CC"; then
 
1735
  echo "$as_me:$LINENO: result: $CC" >&5
 
1736
echo "${ECHO_T}$CC" >&6
 
1737
else
 
1738
  echo "$as_me:$LINENO: result: no" >&5
 
1739
echo "${ECHO_T}no" >&6
 
1740
fi
 
1741
 
 
1742
    test -n "$CC" && break
739
1743
  done
740
 
  IFS="$ac_save_ifs"
741
 
fi
742
 
fi
743
 
CC="$ac_cv_prog_CC"
744
 
if test -n "$CC"; then
745
 
  echo "$ac_t""$CC" 1>&6
746
 
else
747
 
  echo "$ac_t""no" 1>&6
748
 
fi
749
 
 ;;
750
 
    esac
 
1744
fi
 
1745
if test -z "$CC"; then
 
1746
  ac_ct_CC=$CC
 
1747
  for ac_prog in cl
 
1748
do
 
1749
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1750
set dummy $ac_prog; ac_word=$2
 
1751
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1752
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1753
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1755
else
 
1756
  if test -n "$ac_ct_CC"; then
 
1757
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1758
else
 
1759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1760
for as_dir in $PATH
 
1761
do
 
1762
  IFS=$as_save_IFS
 
1763
  test -z "$as_dir" && as_dir=.
 
1764
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1765
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1766
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1767
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1768
    break 2
751
1769
  fi
752
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
753
 
fi
754
 
 
755
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
756
 
echo "configure:757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
757
 
 
758
 
ac_ext=c
759
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760
 
ac_cpp='$CPP $CPPFLAGS'
761
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
762
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
763
 
cross_compiling=$ac_cv_prog_cc_cross
764
 
 
765
 
cat > conftest.$ac_ext << EOF
766
 
 
767
 
#line 768 "configure"
768
 
#include "confdefs.h"
769
 
 
770
 
main(){return(0);}
771
 
EOF
772
 
if { (eval echo configure:773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
773
 
  ac_cv_prog_cc_works=yes
774
 
  # If we can't run a trivial program, we are probably using a cross compiler.
775
 
  if (./conftest; exit) 2>/dev/null; then
776
 
    ac_cv_prog_cc_cross=no
 
1770
done
 
1771
done
 
1772
 
 
1773
fi
 
1774
fi
 
1775
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1776
if test -n "$ac_ct_CC"; then
 
1777
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1778
echo "${ECHO_T}$ac_ct_CC" >&6
 
1779
else
 
1780
  echo "$as_me:$LINENO: result: no" >&5
 
1781
echo "${ECHO_T}no" >&6
 
1782
fi
 
1783
 
 
1784
  test -n "$ac_ct_CC" && break
 
1785
done
 
1786
 
 
1787
  CC=$ac_ct_CC
 
1788
fi
 
1789
 
 
1790
fi
 
1791
 
 
1792
 
 
1793
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1794
See \`config.log' for more details." >&5
 
1795
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1796
See \`config.log' for more details." >&2;}
 
1797
   { (exit 1); exit 1; }; }
 
1798
 
 
1799
# Provide some information about the compiler.
 
1800
echo "$as_me:$LINENO:" \
 
1801
     "checking for C compiler version" >&5
 
1802
ac_compiler=`set X $ac_compile; echo $2`
 
1803
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1804
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1805
  ac_status=$?
 
1806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1807
  (exit $ac_status); }
 
1808
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1809
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1810
  ac_status=$?
 
1811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1812
  (exit $ac_status); }
 
1813
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1814
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1815
  ac_status=$?
 
1816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1817
  (exit $ac_status); }
 
1818
 
 
1819
cat >conftest.$ac_ext <<_ACEOF
 
1820
/* confdefs.h.  */
 
1821
_ACEOF
 
1822
cat confdefs.h >>conftest.$ac_ext
 
1823
cat >>conftest.$ac_ext <<_ACEOF
 
1824
/* end confdefs.h.  */
 
1825
 
 
1826
int
 
1827
main ()
 
1828
{
 
1829
 
 
1830
  ;
 
1831
  return 0;
 
1832
}
 
1833
_ACEOF
 
1834
ac_clean_files_save=$ac_clean_files
 
1835
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1836
# Try to create an executable without -o first, disregard a.out.
 
1837
# It will help us diagnose broken compilers, and finding out an intuition
 
1838
# of exeext.
 
1839
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1840
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1841
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1842
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1843
  (eval $ac_link_default) 2>&5
 
1844
  ac_status=$?
 
1845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1846
  (exit $ac_status); }; then
 
1847
  # Find the output, starting from the most likely.  This scheme is
 
1848
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1849
# resort.
 
1850
 
 
1851
# Be careful to initialize this variable, since it used to be cached.
 
1852
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1853
ac_cv_exeext=
 
1854
# b.out is created by i960 compilers.
 
1855
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1856
do
 
1857
  test -f "$ac_file" || continue
 
1858
  case $ac_file in
 
1859
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1860
        ;;
 
1861
    conftest.$ac_ext )
 
1862
        # This is the source file.
 
1863
        ;;
 
1864
    [ab].out )
 
1865
        # We found the default executable, but exeext='' is most
 
1866
        # certainly right.
 
1867
        break;;
 
1868
    *.* )
 
1869
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1870
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1871
        # but it would be cool to find out if it's true.  Does anybody
 
1872
        # maintain Libtool? --akim.
 
1873
        export ac_cv_exeext
 
1874
        break;;
 
1875
    * )
 
1876
        break;;
 
1877
  esac
 
1878
done
 
1879
else
 
1880
  echo "$as_me: failed program was:" >&5
 
1881
sed 's/^/| /' conftest.$ac_ext >&5
 
1882
 
 
1883
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1884
See \`config.log' for more details." >&5
 
1885
echo "$as_me: error: C compiler cannot create executables
 
1886
See \`config.log' for more details." >&2;}
 
1887
   { (exit 77); exit 77; }; }
 
1888
fi
 
1889
 
 
1890
ac_exeext=$ac_cv_exeext
 
1891
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1892
echo "${ECHO_T}$ac_file" >&6
 
1893
 
 
1894
# Check the compiler produces executables we can run.  If not, either
 
1895
# the compiler is broken, or we cross compile.
 
1896
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1897
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1898
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1899
# If not cross compiling, check that we can run a simple program.
 
1900
if test "$cross_compiling" != yes; then
 
1901
  if { ac_try='./$ac_file'
 
1902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1903
  (eval $ac_try) 2>&5
 
1904
  ac_status=$?
 
1905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1906
  (exit $ac_status); }; }; then
 
1907
    cross_compiling=no
777
1908
  else
778
 
    ac_cv_prog_cc_cross=yes
 
1909
    if test "$cross_compiling" = maybe; then
 
1910
        cross_compiling=yes
 
1911
    else
 
1912
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1913
If you meant to cross compile, use \`--host'.
 
1914
See \`config.log' for more details." >&5
 
1915
echo "$as_me: error: cannot run C compiled programs.
 
1916
If you meant to cross compile, use \`--host'.
 
1917
See \`config.log' for more details." >&2;}
 
1918
   { (exit 1); exit 1; }; }
 
1919
    fi
779
1920
  fi
780
 
else
781
 
  echo "configure: failed program was:" >&5
782
 
  cat conftest.$ac_ext >&5
783
 
  ac_cv_prog_cc_works=no
784
 
fi
785
 
rm -fr conftest*
786
 
ac_ext=c
787
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788
 
ac_cpp='$CPP $CPPFLAGS'
789
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791
 
cross_compiling=$ac_cv_prog_cc_cross
792
 
 
793
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
794
 
if test $ac_cv_prog_cc_works = no; then
795
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
796
 
fi
797
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
798
 
echo "configure:799: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
799
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
800
 
cross_compiling=$ac_cv_prog_cc_cross
801
 
 
802
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
803
 
echo "configure:804: checking whether we are using GNU C" >&5
804
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
805
 
  echo $ac_n "(cached) $ac_c" 1>&6
806
 
else
807
 
  cat > conftest.c <<EOF
808
 
#ifdef __GNUC__
809
 
  yes;
 
1921
fi
 
1922
echo "$as_me:$LINENO: result: yes" >&5
 
1923
echo "${ECHO_T}yes" >&6
 
1924
 
 
1925
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1926
ac_clean_files=$ac_clean_files_save
 
1927
# Check the compiler produces executables we can run.  If not, either
 
1928
# the compiler is broken, or we cross compile.
 
1929
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1930
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1931
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1932
echo "${ECHO_T}$cross_compiling" >&6
 
1933
 
 
1934
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1935
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1937
  (eval $ac_link) 2>&5
 
1938
  ac_status=$?
 
1939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1940
  (exit $ac_status); }; then
 
1941
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1942
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1943
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1944
# `rm'.
 
1945
for ac_file in conftest.exe conftest conftest.*; do
 
1946
  test -f "$ac_file" || continue
 
1947
  case $ac_file in
 
1948
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1949
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1950
          export ac_cv_exeext
 
1951
          break;;
 
1952
    * ) break;;
 
1953
  esac
 
1954
done
 
1955
else
 
1956
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1957
See \`config.log' for more details." >&5
 
1958
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1959
See \`config.log' for more details." >&2;}
 
1960
   { (exit 1); exit 1; }; }
 
1961
fi
 
1962
 
 
1963
rm -f conftest$ac_cv_exeext
 
1964
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1965
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1966
 
 
1967
rm -f conftest.$ac_ext
 
1968
EXEEXT=$ac_cv_exeext
 
1969
ac_exeext=$EXEEXT
 
1970
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1971
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1972
if test "${ac_cv_objext+set}" = set; then
 
1973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1974
else
 
1975
  cat >conftest.$ac_ext <<_ACEOF
 
1976
/* confdefs.h.  */
 
1977
_ACEOF
 
1978
cat confdefs.h >>conftest.$ac_ext
 
1979
cat >>conftest.$ac_ext <<_ACEOF
 
1980
/* end confdefs.h.  */
 
1981
 
 
1982
int
 
1983
main ()
 
1984
{
 
1985
 
 
1986
  ;
 
1987
  return 0;
 
1988
}
 
1989
_ACEOF
 
1990
rm -f conftest.o conftest.obj
 
1991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
1992
  (eval $ac_compile) 2>&5
 
1993
  ac_status=$?
 
1994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1995
  (exit $ac_status); }; then
 
1996
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
1997
  case $ac_file in
 
1998
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
1999
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2000
       break;;
 
2001
  esac
 
2002
done
 
2003
else
 
2004
  echo "$as_me: failed program was:" >&5
 
2005
sed 's/^/| /' conftest.$ac_ext >&5
 
2006
 
 
2007
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2008
See \`config.log' for more details." >&5
 
2009
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2010
See \`config.log' for more details." >&2;}
 
2011
   { (exit 1); exit 1; }; }
 
2012
fi
 
2013
 
 
2014
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2015
fi
 
2016
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2017
echo "${ECHO_T}$ac_cv_objext" >&6
 
2018
OBJEXT=$ac_cv_objext
 
2019
ac_objext=$OBJEXT
 
2020
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2021
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2022
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2024
else
 
2025
  cat >conftest.$ac_ext <<_ACEOF
 
2026
/* confdefs.h.  */
 
2027
_ACEOF
 
2028
cat confdefs.h >>conftest.$ac_ext
 
2029
cat >>conftest.$ac_ext <<_ACEOF
 
2030
/* end confdefs.h.  */
 
2031
 
 
2032
int
 
2033
main ()
 
2034
{
 
2035
#ifndef __GNUC__
 
2036
       choke me
810
2037
#endif
811
 
EOF
812
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
813
 
  ac_cv_prog_gcc=yes
814
 
else
815
 
  ac_cv_prog_gcc=no
816
 
fi
817
 
fi
818
 
 
819
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
820
 
 
821
 
if test $ac_cv_prog_gcc = yes; then
822
 
  GCC=yes
823
 
else
824
 
  GCC=
825
 
fi
826
 
 
827
 
ac_test_CFLAGS="${CFLAGS+set}"
828
 
ac_save_CFLAGS="$CFLAGS"
829
 
CFLAGS=
830
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831
 
echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833
 
  echo $ac_n "(cached) $ac_c" 1>&6
834
 
else
835
 
  echo 'void f(){}' > conftest.c
836
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2038
 
 
2039
  ;
 
2040
  return 0;
 
2041
}
 
2042
_ACEOF
 
2043
rm -f conftest.$ac_objext
 
2044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2045
  (eval $ac_compile) 2>conftest.er1
 
2046
  ac_status=$?
 
2047
  grep -v '^ *+' conftest.er1 >conftest.err
 
2048
  rm -f conftest.er1
 
2049
  cat conftest.err >&5
 
2050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2051
  (exit $ac_status); } &&
 
2052
         { ac_try='test -z "$ac_c_werror_flag"
 
2053
                         || test ! -s conftest.err'
 
2054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2055
  (eval $ac_try) 2>&5
 
2056
  ac_status=$?
 
2057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2058
  (exit $ac_status); }; } &&
 
2059
         { ac_try='test -s conftest.$ac_objext'
 
2060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2061
  (eval $ac_try) 2>&5
 
2062
  ac_status=$?
 
2063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2064
  (exit $ac_status); }; }; then
 
2065
  ac_compiler_gnu=yes
 
2066
else
 
2067
  echo "$as_me: failed program was:" >&5
 
2068
sed 's/^/| /' conftest.$ac_ext >&5
 
2069
 
 
2070
ac_compiler_gnu=no
 
2071
fi
 
2072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2073
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2074
 
 
2075
fi
 
2076
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2077
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2078
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2079
ac_test_CFLAGS=${CFLAGS+set}
 
2080
ac_save_CFLAGS=$CFLAGS
 
2081
CFLAGS="-g"
 
2082
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2083
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2084
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2086
else
 
2087
  cat >conftest.$ac_ext <<_ACEOF
 
2088
/* confdefs.h.  */
 
2089
_ACEOF
 
2090
cat confdefs.h >>conftest.$ac_ext
 
2091
cat >>conftest.$ac_ext <<_ACEOF
 
2092
/* end confdefs.h.  */
 
2093
 
 
2094
int
 
2095
main ()
 
2096
{
 
2097
 
 
2098
  ;
 
2099
  return 0;
 
2100
}
 
2101
_ACEOF
 
2102
rm -f conftest.$ac_objext
 
2103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2104
  (eval $ac_compile) 2>conftest.er1
 
2105
  ac_status=$?
 
2106
  grep -v '^ *+' conftest.er1 >conftest.err
 
2107
  rm -f conftest.er1
 
2108
  cat conftest.err >&5
 
2109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2110
  (exit $ac_status); } &&
 
2111
         { ac_try='test -z "$ac_c_werror_flag"
 
2112
                         || test ! -s conftest.err'
 
2113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2114
  (eval $ac_try) 2>&5
 
2115
  ac_status=$?
 
2116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2117
  (exit $ac_status); }; } &&
 
2118
         { ac_try='test -s conftest.$ac_objext'
 
2119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2120
  (eval $ac_try) 2>&5
 
2121
  ac_status=$?
 
2122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2123
  (exit $ac_status); }; }; then
837
2124
  ac_cv_prog_cc_g=yes
838
2125
else
839
 
  ac_cv_prog_cc_g=no
840
 
fi
841
 
rm -f conftest*
842
 
 
843
 
fi
844
 
 
845
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2126
  echo "$as_me: failed program was:" >&5
 
2127
sed 's/^/| /' conftest.$ac_ext >&5
 
2128
 
 
2129
ac_cv_prog_cc_g=no
 
2130
fi
 
2131
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2132
fi
 
2133
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2134
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
846
2135
if test "$ac_test_CFLAGS" = set; then
847
 
  CFLAGS="$ac_save_CFLAGS"
 
2136
  CFLAGS=$ac_save_CFLAGS
848
2137
elif test $ac_cv_prog_cc_g = yes; then
849
2138
  if test "$GCC" = yes; then
850
2139
    CFLAGS="-g -O2"
858
2147
    CFLAGS=
859
2148
  fi
860
2149
fi
861
 
 
862
 
 
863
 
 
864
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
865
 
echo "configure:866: checking how to run the C preprocessor" >&5
 
2150
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2151
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2152
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2154
else
 
2155
  ac_cv_prog_cc_stdc=no
 
2156
ac_save_CC=$CC
 
2157
cat >conftest.$ac_ext <<_ACEOF
 
2158
/* confdefs.h.  */
 
2159
_ACEOF
 
2160
cat confdefs.h >>conftest.$ac_ext
 
2161
cat >>conftest.$ac_ext <<_ACEOF
 
2162
/* end confdefs.h.  */
 
2163
#include <stdarg.h>
 
2164
#include <stdio.h>
 
2165
#include <sys/types.h>
 
2166
#include <sys/stat.h>
 
2167
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2168
struct buf { int x; };
 
2169
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2170
static char *e (p, i)
 
2171
     char **p;
 
2172
     int i;
 
2173
{
 
2174
  return p[i];
 
2175
}
 
2176
static char *f (char * (*g) (char **, int), char **p, ...)
 
2177
{
 
2178
  char *s;
 
2179
  va_list v;
 
2180
  va_start (v,p);
 
2181
  s = g (p, va_arg (v,int));
 
2182
  va_end (v);
 
2183
  return s;
 
2184
}
 
2185
 
 
2186
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2187
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2188
   These don't provoke an error unfortunately, instead are silently treated
 
2189
   as 'x'.  The following induces an error, until -std1 is added to get
 
2190
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2191
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2192
   that's true only with -std1.  */
 
2193
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2194
 
 
2195
int test (int i, double x);
 
2196
struct s1 {int (*f) (int a);};
 
2197
struct s2 {int (*f) (double a);};
 
2198
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2199
int argc;
 
2200
char **argv;
 
2201
int
 
2202
main ()
 
2203
{
 
2204
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2205
  ;
 
2206
  return 0;
 
2207
}
 
2208
_ACEOF
 
2209
# Don't try gcc -ansi; that turns off useful extensions and
 
2210
# breaks some systems' header files.
 
2211
# AIX                   -qlanglvl=ansi
 
2212
# Ultrix and OSF/1      -std1
 
2213
# HP-UX 10.20 and later -Ae
 
2214
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2215
# SVR4                  -Xc -D__EXTENSIONS__
 
2216
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2217
do
 
2218
  CC="$ac_save_CC $ac_arg"
 
2219
  rm -f conftest.$ac_objext
 
2220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2221
  (eval $ac_compile) 2>conftest.er1
 
2222
  ac_status=$?
 
2223
  grep -v '^ *+' conftest.er1 >conftest.err
 
2224
  rm -f conftest.er1
 
2225
  cat conftest.err >&5
 
2226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2227
  (exit $ac_status); } &&
 
2228
         { ac_try='test -z "$ac_c_werror_flag"
 
2229
                         || test ! -s conftest.err'
 
2230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2231
  (eval $ac_try) 2>&5
 
2232
  ac_status=$?
 
2233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2234
  (exit $ac_status); }; } &&
 
2235
         { ac_try='test -s conftest.$ac_objext'
 
2236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2237
  (eval $ac_try) 2>&5
 
2238
  ac_status=$?
 
2239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2240
  (exit $ac_status); }; }; then
 
2241
  ac_cv_prog_cc_stdc=$ac_arg
 
2242
break
 
2243
else
 
2244
  echo "$as_me: failed program was:" >&5
 
2245
sed 's/^/| /' conftest.$ac_ext >&5
 
2246
 
 
2247
fi
 
2248
rm -f conftest.err conftest.$ac_objext
 
2249
done
 
2250
rm -f conftest.$ac_ext conftest.$ac_objext
 
2251
CC=$ac_save_CC
 
2252
 
 
2253
fi
 
2254
 
 
2255
case "x$ac_cv_prog_cc_stdc" in
 
2256
  x|xno)
 
2257
    echo "$as_me:$LINENO: result: none needed" >&5
 
2258
echo "${ECHO_T}none needed" >&6 ;;
 
2259
  *)
 
2260
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2261
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2262
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2263
esac
 
2264
 
 
2265
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2266
# in C++ we need to declare it.  In case someone uses the same compiler
 
2267
# for both compiling C and C++ we need to have the C++ compiler decide
 
2268
# the declaration of exit, since it's the most demanding environment.
 
2269
cat >conftest.$ac_ext <<_ACEOF
 
2270
#ifndef __cplusplus
 
2271
  choke me
 
2272
#endif
 
2273
_ACEOF
 
2274
rm -f conftest.$ac_objext
 
2275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2276
  (eval $ac_compile) 2>conftest.er1
 
2277
  ac_status=$?
 
2278
  grep -v '^ *+' conftest.er1 >conftest.err
 
2279
  rm -f conftest.er1
 
2280
  cat conftest.err >&5
 
2281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2282
  (exit $ac_status); } &&
 
2283
         { ac_try='test -z "$ac_c_werror_flag"
 
2284
                         || test ! -s conftest.err'
 
2285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2286
  (eval $ac_try) 2>&5
 
2287
  ac_status=$?
 
2288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2289
  (exit $ac_status); }; } &&
 
2290
         { ac_try='test -s conftest.$ac_objext'
 
2291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2292
  (eval $ac_try) 2>&5
 
2293
  ac_status=$?
 
2294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2295
  (exit $ac_status); }; }; then
 
2296
  for ac_declaration in \
 
2297
   '' \
 
2298
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2299
   'extern "C" void std::exit (int); using std::exit;' \
 
2300
   'extern "C" void exit (int) throw ();' \
 
2301
   'extern "C" void exit (int);' \
 
2302
   'void exit (int);'
 
2303
do
 
2304
  cat >conftest.$ac_ext <<_ACEOF
 
2305
/* confdefs.h.  */
 
2306
_ACEOF
 
2307
cat confdefs.h >>conftest.$ac_ext
 
2308
cat >>conftest.$ac_ext <<_ACEOF
 
2309
/* end confdefs.h.  */
 
2310
$ac_declaration
 
2311
#include <stdlib.h>
 
2312
int
 
2313
main ()
 
2314
{
 
2315
exit (42);
 
2316
  ;
 
2317
  return 0;
 
2318
}
 
2319
_ACEOF
 
2320
rm -f conftest.$ac_objext
 
2321
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2322
  (eval $ac_compile) 2>conftest.er1
 
2323
  ac_status=$?
 
2324
  grep -v '^ *+' conftest.er1 >conftest.err
 
2325
  rm -f conftest.er1
 
2326
  cat conftest.err >&5
 
2327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2328
  (exit $ac_status); } &&
 
2329
         { ac_try='test -z "$ac_c_werror_flag"
 
2330
                         || test ! -s conftest.err'
 
2331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2332
  (eval $ac_try) 2>&5
 
2333
  ac_status=$?
 
2334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2335
  (exit $ac_status); }; } &&
 
2336
         { ac_try='test -s conftest.$ac_objext'
 
2337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2338
  (eval $ac_try) 2>&5
 
2339
  ac_status=$?
 
2340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2341
  (exit $ac_status); }; }; then
 
2342
  :
 
2343
else
 
2344
  echo "$as_me: failed program was:" >&5
 
2345
sed 's/^/| /' conftest.$ac_ext >&5
 
2346
 
 
2347
continue
 
2348
fi
 
2349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2350
  cat >conftest.$ac_ext <<_ACEOF
 
2351
/* confdefs.h.  */
 
2352
_ACEOF
 
2353
cat confdefs.h >>conftest.$ac_ext
 
2354
cat >>conftest.$ac_ext <<_ACEOF
 
2355
/* end confdefs.h.  */
 
2356
$ac_declaration
 
2357
int
 
2358
main ()
 
2359
{
 
2360
exit (42);
 
2361
  ;
 
2362
  return 0;
 
2363
}
 
2364
_ACEOF
 
2365
rm -f conftest.$ac_objext
 
2366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2367
  (eval $ac_compile) 2>conftest.er1
 
2368
  ac_status=$?
 
2369
  grep -v '^ *+' conftest.er1 >conftest.err
 
2370
  rm -f conftest.er1
 
2371
  cat conftest.err >&5
 
2372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2373
  (exit $ac_status); } &&
 
2374
         { ac_try='test -z "$ac_c_werror_flag"
 
2375
                         || test ! -s conftest.err'
 
2376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2377
  (eval $ac_try) 2>&5
 
2378
  ac_status=$?
 
2379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2380
  (exit $ac_status); }; } &&
 
2381
         { ac_try='test -s conftest.$ac_objext'
 
2382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2383
  (eval $ac_try) 2>&5
 
2384
  ac_status=$?
 
2385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2386
  (exit $ac_status); }; }; then
 
2387
  break
 
2388
else
 
2389
  echo "$as_me: failed program was:" >&5
 
2390
sed 's/^/| /' conftest.$ac_ext >&5
 
2391
 
 
2392
fi
 
2393
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2394
done
 
2395
rm -f conftest*
 
2396
if test -n "$ac_declaration"; then
 
2397
  echo '#ifdef __cplusplus' >>confdefs.h
 
2398
  echo $ac_declaration      >>confdefs.h
 
2399
  echo '#endif'             >>confdefs.h
 
2400
fi
 
2401
 
 
2402
else
 
2403
  echo "$as_me: failed program was:" >&5
 
2404
sed 's/^/| /' conftest.$ac_ext >&5
 
2405
 
 
2406
fi
 
2407
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2408
ac_ext=c
 
2409
ac_cpp='$CPP $CPPFLAGS'
 
2410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2413
 
 
2414
 
 
2415
 
 
2416
 
 
2417
ac_ext=c
 
2418
ac_cpp='$CPP $CPPFLAGS'
 
2419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2422
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2423
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
866
2424
# On Suns, sometimes $CPP names a directory.
867
2425
if test -n "$CPP" && test -d "$CPP"; then
868
2426
  CPP=
869
2427
fi
870
2428
if test -z "$CPP"; then
871
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
872
 
  echo $ac_n "(cached) $ac_c" 1>&6
873
 
else
874
 
    # This must be in double quotes, not single quotes, because CPP may get
875
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
876
 
  CPP="${CC-cc} -E"
877
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
878
 
  # not just through cpp.
879
 
  cat > conftest.$ac_ext <<EOF
880
 
#line 881 "configure"
881
 
#include "confdefs.h"
882
 
#include <assert.h>
883
 
Syntax Error
884
 
EOF
885
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
886
 
{ (eval echo configure:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
887
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
888
 
if test -z "$ac_err"; then
889
 
  :
890
 
else
891
 
  echo "$ac_err" >&5
892
 
  echo "configure: failed program was:" >&5
893
 
  cat conftest.$ac_ext >&5
894
 
  rm -rf conftest*
895
 
  CPP="${CC-cc} -E -traditional-cpp"
896
 
  cat > conftest.$ac_ext <<EOF
897
 
#line 898 "configure"
898
 
#include "confdefs.h"
899
 
#include <assert.h>
900
 
Syntax Error
901
 
EOF
902
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
903
 
{ (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
904
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
905
 
if test -z "$ac_err"; then
906
 
  :
907
 
else
908
 
  echo "$ac_err" >&5
909
 
  echo "configure: failed program was:" >&5
910
 
  cat conftest.$ac_ext >&5
911
 
  rm -rf conftest*
912
 
  CPP="${CC-cc} -nologo -E"
913
 
  cat > conftest.$ac_ext <<EOF
914
 
#line 915 "configure"
915
 
#include "confdefs.h"
916
 
#include <assert.h>
917
 
Syntax Error
918
 
EOF
919
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
920
 
{ (eval echo configure:921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
921
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
922
 
if test -z "$ac_err"; then
923
 
  :
924
 
else
925
 
  echo "$ac_err" >&5
926
 
  echo "configure: failed program was:" >&5
927
 
  cat conftest.$ac_ext >&5
928
 
  rm -rf conftest*
929
 
  CPP=/lib/cpp
930
 
fi
931
 
rm -f conftest*
932
 
fi
933
 
rm -f conftest*
934
 
fi
935
 
rm -f conftest*
936
 
  ac_cv_prog_CPP="$CPP"
937
 
fi
938
 
  CPP="$ac_cv_prog_CPP"
939
 
else
940
 
  ac_cv_prog_CPP="$CPP"
941
 
fi
942
 
echo "$ac_t""$CPP" 1>&6
943
 
 
944
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
945
 
echo "configure:946: checking for ANSI C header files" >&5
946
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
947
 
  echo $ac_n "(cached) $ac_c" 1>&6
948
 
else
949
 
  cat > conftest.$ac_ext <<EOF
950
 
#line 951 "configure"
951
 
#include "confdefs.h"
 
2429
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2431
else
 
2432
      # Double quotes because CPP needs to be expanded
 
2433
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2434
    do
 
2435
      ac_preproc_ok=false
 
2436
for ac_c_preproc_warn_flag in '' yes
 
2437
do
 
2438
  # Use a header file that comes with gcc, so configuring glibc
 
2439
  # with a fresh cross-compiler works.
 
2440
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2441
  # <limits.h> exists even on freestanding compilers.
 
2442
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2443
  # not just through cpp. "Syntax error" is here to catch this case.
 
2444
  cat >conftest.$ac_ext <<_ACEOF
 
2445
/* confdefs.h.  */
 
2446
_ACEOF
 
2447
cat confdefs.h >>conftest.$ac_ext
 
2448
cat >>conftest.$ac_ext <<_ACEOF
 
2449
/* end confdefs.h.  */
 
2450
#ifdef __STDC__
 
2451
# include <limits.h>
 
2452
#else
 
2453
# include <assert.h>
 
2454
#endif
 
2455
                     Syntax error
 
2456
_ACEOF
 
2457
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2458
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2459
  ac_status=$?
 
2460
  grep -v '^ *+' conftest.er1 >conftest.err
 
2461
  rm -f conftest.er1
 
2462
  cat conftest.err >&5
 
2463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2464
  (exit $ac_status); } >/dev/null; then
 
2465
  if test -s conftest.err; then
 
2466
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2467
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2468
  else
 
2469
    ac_cpp_err=
 
2470
  fi
 
2471
else
 
2472
  ac_cpp_err=yes
 
2473
fi
 
2474
if test -z "$ac_cpp_err"; then
 
2475
  :
 
2476
else
 
2477
  echo "$as_me: failed program was:" >&5
 
2478
sed 's/^/| /' conftest.$ac_ext >&5
 
2479
 
 
2480
  # Broken: fails on valid input.
 
2481
continue
 
2482
fi
 
2483
rm -f conftest.err conftest.$ac_ext
 
2484
 
 
2485
  # OK, works on sane cases.  Now check whether non-existent headers
 
2486
  # can be detected and how.
 
2487
  cat >conftest.$ac_ext <<_ACEOF
 
2488
/* confdefs.h.  */
 
2489
_ACEOF
 
2490
cat confdefs.h >>conftest.$ac_ext
 
2491
cat >>conftest.$ac_ext <<_ACEOF
 
2492
/* end confdefs.h.  */
 
2493
#include <ac_nonexistent.h>
 
2494
_ACEOF
 
2495
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2496
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2497
  ac_status=$?
 
2498
  grep -v '^ *+' conftest.er1 >conftest.err
 
2499
  rm -f conftest.er1
 
2500
  cat conftest.err >&5
 
2501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2502
  (exit $ac_status); } >/dev/null; then
 
2503
  if test -s conftest.err; then
 
2504
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2505
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2506
  else
 
2507
    ac_cpp_err=
 
2508
  fi
 
2509
else
 
2510
  ac_cpp_err=yes
 
2511
fi
 
2512
if test -z "$ac_cpp_err"; then
 
2513
  # Broken: success on invalid input.
 
2514
continue
 
2515
else
 
2516
  echo "$as_me: failed program was:" >&5
 
2517
sed 's/^/| /' conftest.$ac_ext >&5
 
2518
 
 
2519
  # Passes both tests.
 
2520
ac_preproc_ok=:
 
2521
break
 
2522
fi
 
2523
rm -f conftest.err conftest.$ac_ext
 
2524
 
 
2525
done
 
2526
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2527
rm -f conftest.err conftest.$ac_ext
 
2528
if $ac_preproc_ok; then
 
2529
  break
 
2530
fi
 
2531
 
 
2532
    done
 
2533
    ac_cv_prog_CPP=$CPP
 
2534
 
 
2535
fi
 
2536
  CPP=$ac_cv_prog_CPP
 
2537
else
 
2538
  ac_cv_prog_CPP=$CPP
 
2539
fi
 
2540
echo "$as_me:$LINENO: result: $CPP" >&5
 
2541
echo "${ECHO_T}$CPP" >&6
 
2542
ac_preproc_ok=false
 
2543
for ac_c_preproc_warn_flag in '' yes
 
2544
do
 
2545
  # Use a header file that comes with gcc, so configuring glibc
 
2546
  # with a fresh cross-compiler works.
 
2547
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2548
  # <limits.h> exists even on freestanding compilers.
 
2549
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2550
  # not just through cpp. "Syntax error" is here to catch this case.
 
2551
  cat >conftest.$ac_ext <<_ACEOF
 
2552
/* confdefs.h.  */
 
2553
_ACEOF
 
2554
cat confdefs.h >>conftest.$ac_ext
 
2555
cat >>conftest.$ac_ext <<_ACEOF
 
2556
/* end confdefs.h.  */
 
2557
#ifdef __STDC__
 
2558
# include <limits.h>
 
2559
#else
 
2560
# include <assert.h>
 
2561
#endif
 
2562
                     Syntax error
 
2563
_ACEOF
 
2564
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2565
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2566
  ac_status=$?
 
2567
  grep -v '^ *+' conftest.er1 >conftest.err
 
2568
  rm -f conftest.er1
 
2569
  cat conftest.err >&5
 
2570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2571
  (exit $ac_status); } >/dev/null; then
 
2572
  if test -s conftest.err; then
 
2573
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2574
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2575
  else
 
2576
    ac_cpp_err=
 
2577
  fi
 
2578
else
 
2579
  ac_cpp_err=yes
 
2580
fi
 
2581
if test -z "$ac_cpp_err"; then
 
2582
  :
 
2583
else
 
2584
  echo "$as_me: failed program was:" >&5
 
2585
sed 's/^/| /' conftest.$ac_ext >&5
 
2586
 
 
2587
  # Broken: fails on valid input.
 
2588
continue
 
2589
fi
 
2590
rm -f conftest.err conftest.$ac_ext
 
2591
 
 
2592
  # OK, works on sane cases.  Now check whether non-existent headers
 
2593
  # can be detected and how.
 
2594
  cat >conftest.$ac_ext <<_ACEOF
 
2595
/* confdefs.h.  */
 
2596
_ACEOF
 
2597
cat confdefs.h >>conftest.$ac_ext
 
2598
cat >>conftest.$ac_ext <<_ACEOF
 
2599
/* end confdefs.h.  */
 
2600
#include <ac_nonexistent.h>
 
2601
_ACEOF
 
2602
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2603
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2604
  ac_status=$?
 
2605
  grep -v '^ *+' conftest.er1 >conftest.err
 
2606
  rm -f conftest.er1
 
2607
  cat conftest.err >&5
 
2608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2609
  (exit $ac_status); } >/dev/null; then
 
2610
  if test -s conftest.err; then
 
2611
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2612
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
2613
  else
 
2614
    ac_cpp_err=
 
2615
  fi
 
2616
else
 
2617
  ac_cpp_err=yes
 
2618
fi
 
2619
if test -z "$ac_cpp_err"; then
 
2620
  # Broken: success on invalid input.
 
2621
continue
 
2622
else
 
2623
  echo "$as_me: failed program was:" >&5
 
2624
sed 's/^/| /' conftest.$ac_ext >&5
 
2625
 
 
2626
  # Passes both tests.
 
2627
ac_preproc_ok=:
 
2628
break
 
2629
fi
 
2630
rm -f conftest.err conftest.$ac_ext
 
2631
 
 
2632
done
 
2633
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2634
rm -f conftest.err conftest.$ac_ext
 
2635
if $ac_preproc_ok; then
 
2636
  :
 
2637
else
 
2638
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2639
See \`config.log' for more details." >&5
 
2640
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2641
See \`config.log' for more details." >&2;}
 
2642
   { (exit 1); exit 1; }; }
 
2643
fi
 
2644
 
 
2645
ac_ext=c
 
2646
ac_cpp='$CPP $CPPFLAGS'
 
2647
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2648
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2649
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2650
 
 
2651
 
 
2652
echo "$as_me:$LINENO: checking for egrep" >&5
 
2653
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2654
if test "${ac_cv_prog_egrep+set}" = set; then
 
2655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2656
else
 
2657
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2658
    then ac_cv_prog_egrep='grep -E'
 
2659
    else ac_cv_prog_egrep='egrep'
 
2660
    fi
 
2661
fi
 
2662
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2663
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2664
 EGREP=$ac_cv_prog_egrep
 
2665
 
 
2666
 
 
2667
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
2668
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
2669
if test "${ac_cv_header_stdc+set}" = set; then
 
2670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2671
else
 
2672
  cat >conftest.$ac_ext <<_ACEOF
 
2673
/* confdefs.h.  */
 
2674
_ACEOF
 
2675
cat confdefs.h >>conftest.$ac_ext
 
2676
cat >>conftest.$ac_ext <<_ACEOF
 
2677
/* end confdefs.h.  */
952
2678
#include <stdlib.h>
953
2679
#include <stdarg.h>
954
2680
#include <string.h>
955
2681
#include <float.h>
956
 
EOF
957
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958
 
{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960
 
if test -z "$ac_err"; then
961
 
  rm -rf conftest*
 
2682
 
 
2683
int
 
2684
main ()
 
2685
{
 
2686
 
 
2687
  ;
 
2688
  return 0;
 
2689
}
 
2690
_ACEOF
 
2691
rm -f conftest.$ac_objext
 
2692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2693
  (eval $ac_compile) 2>conftest.er1
 
2694
  ac_status=$?
 
2695
  grep -v '^ *+' conftest.er1 >conftest.err
 
2696
  rm -f conftest.er1
 
2697
  cat conftest.err >&5
 
2698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2699
  (exit $ac_status); } &&
 
2700
         { ac_try='test -z "$ac_c_werror_flag"
 
2701
                         || test ! -s conftest.err'
 
2702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2703
  (eval $ac_try) 2>&5
 
2704
  ac_status=$?
 
2705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2706
  (exit $ac_status); }; } &&
 
2707
         { ac_try='test -s conftest.$ac_objext'
 
2708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2709
  (eval $ac_try) 2>&5
 
2710
  ac_status=$?
 
2711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2712
  (exit $ac_status); }; }; then
962
2713
  ac_cv_header_stdc=yes
963
2714
else
964
 
  echo "$ac_err" >&5
965
 
  echo "configure: failed program was:" >&5
966
 
  cat conftest.$ac_ext >&5
967
 
  rm -rf conftest*
968
 
  ac_cv_header_stdc=no
 
2715
  echo "$as_me: failed program was:" >&5
 
2716
sed 's/^/| /' conftest.$ac_ext >&5
 
2717
 
 
2718
ac_cv_header_stdc=no
969
2719
fi
970
 
rm -f conftest*
 
2720
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
971
2721
 
972
2722
if test $ac_cv_header_stdc = yes; then
973
2723
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
974
 
cat > conftest.$ac_ext <<EOF
975
 
#line 976 "configure"
976
 
#include "confdefs.h"
 
2724
  cat >conftest.$ac_ext <<_ACEOF
 
2725
/* confdefs.h.  */
 
2726
_ACEOF
 
2727
cat confdefs.h >>conftest.$ac_ext
 
2728
cat >>conftest.$ac_ext <<_ACEOF
 
2729
/* end confdefs.h.  */
977
2730
#include <string.h>
978
 
EOF
 
2731
 
 
2732
_ACEOF
979
2733
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
980
 
  egrep "memchr" >/dev/null 2>&1; then
 
2734
  $EGREP "memchr" >/dev/null 2>&1; then
981
2735
  :
982
2736
else
983
 
  rm -rf conftest*
984
2737
  ac_cv_header_stdc=no
985
2738
fi
986
2739
rm -f conftest*
989
2742
 
990
2743
if test $ac_cv_header_stdc = yes; then
991
2744
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
992
 
cat > conftest.$ac_ext <<EOF
993
 
#line 994 "configure"
994
 
#include "confdefs.h"
 
2745
  cat >conftest.$ac_ext <<_ACEOF
 
2746
/* confdefs.h.  */
 
2747
_ACEOF
 
2748
cat confdefs.h >>conftest.$ac_ext
 
2749
cat >>conftest.$ac_ext <<_ACEOF
 
2750
/* end confdefs.h.  */
995
2751
#include <stdlib.h>
996
 
EOF
 
2752
 
 
2753
_ACEOF
997
2754
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
998
 
  egrep "free" >/dev/null 2>&1; then
 
2755
  $EGREP "free" >/dev/null 2>&1; then
999
2756
  :
1000
2757
else
1001
 
  rm -rf conftest*
1002
2758
  ac_cv_header_stdc=no
1003
2759
fi
1004
2760
rm -f conftest*
1007
2763
 
1008
2764
if test $ac_cv_header_stdc = yes; then
1009
2765
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1010
 
if test "$cross_compiling" = yes; then
 
2766
  if test "$cross_compiling" = yes; then
1011
2767
  :
1012
2768
else
1013
 
  cat > conftest.$ac_ext <<EOF
1014
 
#line 1015 "configure"
1015
 
#include "confdefs.h"
 
2769
  cat >conftest.$ac_ext <<_ACEOF
 
2770
/* confdefs.h.  */
 
2771
_ACEOF
 
2772
cat confdefs.h >>conftest.$ac_ext
 
2773
cat >>conftest.$ac_ext <<_ACEOF
 
2774
/* end confdefs.h.  */
1016
2775
#include <ctype.h>
1017
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1018
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2776
#if ((' ' & 0x0FF) == 0x020)
 
2777
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
2778
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
2779
#else
 
2780
# define ISLOWER(c) \
 
2781
                   (('a' <= (c) && (c) <= 'i') \
 
2782
                     || ('j' <= (c) && (c) <= 'r') \
 
2783
                     || ('s' <= (c) && (c) <= 'z'))
 
2784
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
2785
#endif
 
2786
 
1019
2787
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1020
 
int main () { int i; for (i = 0; i < 256; i++)
1021
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1022
 
exit (0); }
1023
 
 
1024
 
EOF
1025
 
if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1026
 
then
 
2788
int
 
2789
main ()
 
2790
{
 
2791
  int i;
 
2792
  for (i = 0; i < 256; i++)
 
2793
    if (XOR (islower (i), ISLOWER (i))
 
2794
        || toupper (i) != TOUPPER (i))
 
2795
      exit(2);
 
2796
  exit (0);
 
2797
}
 
2798
_ACEOF
 
2799
rm -f conftest$ac_exeext
 
2800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2801
  (eval $ac_link) 2>&5
 
2802
  ac_status=$?
 
2803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2804
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2806
  (eval $ac_try) 2>&5
 
2807
  ac_status=$?
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); }; }; then
1027
2810
  :
1028
2811
else
1029
 
  echo "configure: failed program was:" >&5
1030
 
  cat conftest.$ac_ext >&5
1031
 
  rm -fr conftest*
1032
 
  ac_cv_header_stdc=no
1033
 
fi
1034
 
rm -fr conftest*
1035
 
fi
1036
 
 
1037
 
fi
1038
 
fi
1039
 
 
1040
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
2812
  echo "$as_me: program exited with status $ac_status" >&5
 
2813
echo "$as_me: failed program was:" >&5
 
2814
sed 's/^/| /' conftest.$ac_ext >&5
 
2815
 
 
2816
( exit $ac_status )
 
2817
ac_cv_header_stdc=no
 
2818
fi
 
2819
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
2820
fi
 
2821
fi
 
2822
fi
 
2823
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
2824
echo "${ECHO_T}$ac_cv_header_stdc" >&6
1041
2825
if test $ac_cv_header_stdc = yes; then
1042
 
  cat >> confdefs.h <<\EOF
 
2826
 
 
2827
cat >>confdefs.h <<\_ACEOF
1043
2828
#define STDC_HEADERS 1
1044
 
EOF
 
2829
_ACEOF
1045
2830
 
1046
2831
fi
1047
2832
 
1048
 
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1049
 
echo "configure:1050: checking for sys/wait.h that is POSIX.1 compatible" >&5
1050
 
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1051
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2833
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
2834
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
2835
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
2836
  echo $ECHO_N "(cached) $ECHO_C" >&6
1052
2837
else
1053
 
  cat > conftest.$ac_ext <<EOF
1054
 
#line 1055 "configure"
1055
 
#include "confdefs.h"
 
2838
  cat >conftest.$ac_ext <<_ACEOF
 
2839
/* confdefs.h.  */
 
2840
_ACEOF
 
2841
cat confdefs.h >>conftest.$ac_ext
 
2842
cat >>conftest.$ac_ext <<_ACEOF
 
2843
/* end confdefs.h.  */
1056
2844
#include <sys/types.h>
1057
2845
#include <sys/wait.h>
1058
2846
#ifndef WEXITSTATUS
1059
 
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
2847
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1060
2848
#endif
1061
2849
#ifndef WIFEXITED
1062
 
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
2850
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1063
2851
#endif
1064
 
int main() {
1065
 
int s;
1066
 
wait (&s);
1067
 
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1068
 
; return 0; }
1069
 
EOF
1070
 
if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1071
 
  rm -rf conftest*
 
2852
 
 
2853
int
 
2854
main ()
 
2855
{
 
2856
  int s;
 
2857
  wait (&s);
 
2858
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
2859
  ;
 
2860
  return 0;
 
2861
}
 
2862
_ACEOF
 
2863
rm -f conftest.$ac_objext
 
2864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2865
  (eval $ac_compile) 2>conftest.er1
 
2866
  ac_status=$?
 
2867
  grep -v '^ *+' conftest.er1 >conftest.err
 
2868
  rm -f conftest.er1
 
2869
  cat conftest.err >&5
 
2870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2871
  (exit $ac_status); } &&
 
2872
         { ac_try='test -z "$ac_c_werror_flag"
 
2873
                         || test ! -s conftest.err'
 
2874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2875
  (eval $ac_try) 2>&5
 
2876
  ac_status=$?
 
2877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2878
  (exit $ac_status); }; } &&
 
2879
         { ac_try='test -s conftest.$ac_objext'
 
2880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2881
  (eval $ac_try) 2>&5
 
2882
  ac_status=$?
 
2883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2884
  (exit $ac_status); }; }; then
1072
2885
  ac_cv_header_sys_wait_h=yes
1073
2886
else
1074
 
  echo "configure: failed program was:" >&5
1075
 
  cat conftest.$ac_ext >&5
1076
 
  rm -rf conftest*
1077
 
  ac_cv_header_sys_wait_h=no
1078
 
fi
1079
 
rm -f conftest*
1080
 
fi
 
2887
  echo "$as_me: failed program was:" >&5
 
2888
sed 's/^/| /' conftest.$ac_ext >&5
1081
2889
 
1082
 
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 
2890
ac_cv_header_sys_wait_h=no
 
2891
fi
 
2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2893
fi
 
2894
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
2895
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
1083
2896
if test $ac_cv_header_sys_wait_h = yes; then
1084
 
  cat >> confdefs.h <<\EOF
 
2897
 
 
2898
cat >>confdefs.h <<\_ACEOF
1085
2899
#define HAVE_SYS_WAIT_H 1
1086
 
EOF
1087
 
 
1088
 
fi
1089
 
 
1090
 
for ac_hdr in fcntl.h sys/time.h syslog.h unistd.h
1091
 
do
1092
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1093
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1094
 
echo "configure:1095: checking for $ac_hdr" >&5
1095
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1096
 
  echo $ac_n "(cached) $ac_c" 1>&6
1097
 
else
1098
 
  cat > conftest.$ac_ext <<EOF
1099
 
#line 1100 "configure"
1100
 
#include "confdefs.h"
1101
 
#include <$ac_hdr>
1102
 
EOF
1103
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1104
 
{ (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1105
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1106
 
if test -z "$ac_err"; then
1107
 
  rm -rf conftest*
1108
 
  eval "ac_cv_header_$ac_safe=yes"
1109
 
else
1110
 
  echo "$ac_err" >&5
1111
 
  echo "configure: failed program was:" >&5
1112
 
  cat conftest.$ac_ext >&5
1113
 
  rm -rf conftest*
1114
 
  eval "ac_cv_header_$ac_safe=no"
1115
 
fi
1116
 
rm -f conftest*
1117
 
fi
1118
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1119
 
  echo "$ac_t""yes" 1>&6
1120
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1121
 
  cat >> confdefs.h <<EOF
1122
 
#define $ac_tr_hdr 1
1123
 
EOF
1124
 
 
1125
 
else
1126
 
  echo "$ac_t""no" 1>&6
1127
 
fi
1128
 
done
1129
 
 
1130
 
 
1131
 
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1132
 
echo "configure:1133: checking for pid_t" >&5
1133
 
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1134
 
  echo $ac_n "(cached) $ac_c" 1>&6
1135
 
else
1136
 
  cat > conftest.$ac_ext <<EOF
1137
 
#line 1138 "configure"
1138
 
#include "confdefs.h"
1139
 
#include <sys/types.h>
1140
 
#if STDC_HEADERS
1141
 
#include <stdlib.h>
1142
 
#include <stddef.h>
1143
 
#endif
1144
 
EOF
1145
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1146
 
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1147
 
  rm -rf conftest*
 
2900
_ACEOF
 
2901
 
 
2902
fi
 
2903
 
 
2904
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
2905
 
 
2906
 
 
2907
 
 
2908
 
 
2909
 
 
2910
 
 
2911
 
 
2912
 
 
2913
 
 
2914
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
2915
                  inttypes.h stdint.h unistd.h
 
2916
do
 
2917
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2918
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2919
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2920
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2922
else
 
2923
  cat >conftest.$ac_ext <<_ACEOF
 
2924
/* confdefs.h.  */
 
2925
_ACEOF
 
2926
cat confdefs.h >>conftest.$ac_ext
 
2927
cat >>conftest.$ac_ext <<_ACEOF
 
2928
/* end confdefs.h.  */
 
2929
$ac_includes_default
 
2930
 
 
2931
#include <$ac_header>
 
2932
_ACEOF
 
2933
rm -f conftest.$ac_objext
 
2934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2935
  (eval $ac_compile) 2>conftest.er1
 
2936
  ac_status=$?
 
2937
  grep -v '^ *+' conftest.er1 >conftest.err
 
2938
  rm -f conftest.er1
 
2939
  cat conftest.err >&5
 
2940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2941
  (exit $ac_status); } &&
 
2942
         { ac_try='test -z "$ac_c_werror_flag"
 
2943
                         || test ! -s conftest.err'
 
2944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2945
  (eval $ac_try) 2>&5
 
2946
  ac_status=$?
 
2947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2948
  (exit $ac_status); }; } &&
 
2949
         { ac_try='test -s conftest.$ac_objext'
 
2950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2951
  (eval $ac_try) 2>&5
 
2952
  ac_status=$?
 
2953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2954
  (exit $ac_status); }; }; then
 
2955
  eval "$as_ac_Header=yes"
 
2956
else
 
2957
  echo "$as_me: failed program was:" >&5
 
2958
sed 's/^/| /' conftest.$ac_ext >&5
 
2959
 
 
2960
eval "$as_ac_Header=no"
 
2961
fi
 
2962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2963
fi
 
2964
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2965
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2966
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
2967
  cat >>confdefs.h <<_ACEOF
 
2968
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
2969
_ACEOF
 
2970
 
 
2971
fi
 
2972
 
 
2973
done
 
2974
 
 
2975
 
 
2976
 
 
2977
 
 
2978
 
 
2979
 
 
2980
for ac_header in fcntl.h sys/time.h syslog.h unistd.h
 
2981
do
 
2982
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
2983
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2984
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
2985
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
2986
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
2987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2988
fi
 
2989
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
2990
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
2991
else
 
2992
  # Is the header compilable?
 
2993
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
2994
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
2995
cat >conftest.$ac_ext <<_ACEOF
 
2996
/* confdefs.h.  */
 
2997
_ACEOF
 
2998
cat confdefs.h >>conftest.$ac_ext
 
2999
cat >>conftest.$ac_ext <<_ACEOF
 
3000
/* end confdefs.h.  */
 
3001
$ac_includes_default
 
3002
#include <$ac_header>
 
3003
_ACEOF
 
3004
rm -f conftest.$ac_objext
 
3005
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3006
  (eval $ac_compile) 2>conftest.er1
 
3007
  ac_status=$?
 
3008
  grep -v '^ *+' conftest.er1 >conftest.err
 
3009
  rm -f conftest.er1
 
3010
  cat conftest.err >&5
 
3011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3012
  (exit $ac_status); } &&
 
3013
         { ac_try='test -z "$ac_c_werror_flag"
 
3014
                         || test ! -s conftest.err'
 
3015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3016
  (eval $ac_try) 2>&5
 
3017
  ac_status=$?
 
3018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3019
  (exit $ac_status); }; } &&
 
3020
         { ac_try='test -s conftest.$ac_objext'
 
3021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3022
  (eval $ac_try) 2>&5
 
3023
  ac_status=$?
 
3024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3025
  (exit $ac_status); }; }; then
 
3026
  ac_header_compiler=yes
 
3027
else
 
3028
  echo "$as_me: failed program was:" >&5
 
3029
sed 's/^/| /' conftest.$ac_ext >&5
 
3030
 
 
3031
ac_header_compiler=no
 
3032
fi
 
3033
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3034
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3035
echo "${ECHO_T}$ac_header_compiler" >&6
 
3036
 
 
3037
# Is the header present?
 
3038
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3039
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3040
cat >conftest.$ac_ext <<_ACEOF
 
3041
/* confdefs.h.  */
 
3042
_ACEOF
 
3043
cat confdefs.h >>conftest.$ac_ext
 
3044
cat >>conftest.$ac_ext <<_ACEOF
 
3045
/* end confdefs.h.  */
 
3046
#include <$ac_header>
 
3047
_ACEOF
 
3048
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3049
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3050
  ac_status=$?
 
3051
  grep -v '^ *+' conftest.er1 >conftest.err
 
3052
  rm -f conftest.er1
 
3053
  cat conftest.err >&5
 
3054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3055
  (exit $ac_status); } >/dev/null; then
 
3056
  if test -s conftest.err; then
 
3057
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3058
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3059
  else
 
3060
    ac_cpp_err=
 
3061
  fi
 
3062
else
 
3063
  ac_cpp_err=yes
 
3064
fi
 
3065
if test -z "$ac_cpp_err"; then
 
3066
  ac_header_preproc=yes
 
3067
else
 
3068
  echo "$as_me: failed program was:" >&5
 
3069
sed 's/^/| /' conftest.$ac_ext >&5
 
3070
 
 
3071
  ac_header_preproc=no
 
3072
fi
 
3073
rm -f conftest.err conftest.$ac_ext
 
3074
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3075
echo "${ECHO_T}$ac_header_preproc" >&6
 
3076
 
 
3077
# So?  What about this header?
 
3078
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3079
  yes:no: )
 
3080
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3081
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3082
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3083
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3084
    ac_header_preproc=yes
 
3085
    ;;
 
3086
  no:yes:* )
 
3087
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3088
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3089
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3090
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3091
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3092
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3093
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3094
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3095
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3096
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3097
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3098
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3099
    (
 
3100
      cat <<\_ASBOX
 
3101
## ------------------------------------------ ##
 
3102
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3103
## ------------------------------------------ ##
 
3104
_ASBOX
 
3105
    ) |
 
3106
      sed "s/^/$as_me: WARNING:     /" >&2
 
3107
    ;;
 
3108
esac
 
3109
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3111
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3113
else
 
3114
  eval "$as_ac_Header=\$ac_header_preproc"
 
3115
fi
 
3116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3117
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3118
 
 
3119
fi
 
3120
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3121
  cat >>confdefs.h <<_ACEOF
 
3122
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3123
_ACEOF
 
3124
 
 
3125
fi
 
3126
 
 
3127
done
 
3128
 
 
3129
 
 
3130
echo "$as_me:$LINENO: checking for pid_t" >&5
 
3131
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
3132
if test "${ac_cv_type_pid_t+set}" = set; then
 
3133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3134
else
 
3135
  cat >conftest.$ac_ext <<_ACEOF
 
3136
/* confdefs.h.  */
 
3137
_ACEOF
 
3138
cat confdefs.h >>conftest.$ac_ext
 
3139
cat >>conftest.$ac_ext <<_ACEOF
 
3140
/* end confdefs.h.  */
 
3141
$ac_includes_default
 
3142
int
 
3143
main ()
 
3144
{
 
3145
if ((pid_t *) 0)
 
3146
  return 0;
 
3147
if (sizeof (pid_t))
 
3148
  return 0;
 
3149
  ;
 
3150
  return 0;
 
3151
}
 
3152
_ACEOF
 
3153
rm -f conftest.$ac_objext
 
3154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3155
  (eval $ac_compile) 2>conftest.er1
 
3156
  ac_status=$?
 
3157
  grep -v '^ *+' conftest.er1 >conftest.err
 
3158
  rm -f conftest.er1
 
3159
  cat conftest.err >&5
 
3160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3161
  (exit $ac_status); } &&
 
3162
         { ac_try='test -z "$ac_c_werror_flag"
 
3163
                         || test ! -s conftest.err'
 
3164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3165
  (eval $ac_try) 2>&5
 
3166
  ac_status=$?
 
3167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3168
  (exit $ac_status); }; } &&
 
3169
         { ac_try='test -s conftest.$ac_objext'
 
3170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3171
  (eval $ac_try) 2>&5
 
3172
  ac_status=$?
 
3173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3174
  (exit $ac_status); }; }; then
1148
3175
  ac_cv_type_pid_t=yes
1149
3176
else
1150
 
  rm -rf conftest*
1151
 
  ac_cv_type_pid_t=no
1152
 
fi
1153
 
rm -f conftest*
1154
 
 
1155
 
fi
1156
 
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1157
 
if test $ac_cv_type_pid_t = no; then
1158
 
  cat >> confdefs.h <<\EOF
 
3177
  echo "$as_me: failed program was:" >&5
 
3178
sed 's/^/| /' conftest.$ac_ext >&5
 
3179
 
 
3180
ac_cv_type_pid_t=no
 
3181
fi
 
3182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3183
fi
 
3184
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
3185
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
3186
if test $ac_cv_type_pid_t = yes; then
 
3187
  :
 
3188
else
 
3189
 
 
3190
cat >>confdefs.h <<_ACEOF
1159
3191
#define pid_t int
1160
 
EOF
 
3192
_ACEOF
1161
3193
 
1162
3194
fi
1163
3195
 
1164
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
1165
 
echo "configure:1166: checking for size_t" >&5
1166
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1167
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3196
echo "$as_me:$LINENO: checking for size_t" >&5
 
3197
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
3198
if test "${ac_cv_type_size_t+set}" = set; then
 
3199
  echo $ECHO_N "(cached) $ECHO_C" >&6
1168
3200
else
1169
 
  cat > conftest.$ac_ext <<EOF
1170
 
#line 1171 "configure"
1171
 
#include "confdefs.h"
1172
 
#include <sys/types.h>
1173
 
#if STDC_HEADERS
1174
 
#include <stdlib.h>
1175
 
#include <stddef.h>
1176
 
#endif
1177
 
EOF
1178
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1179
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1180
 
  rm -rf conftest*
 
3201
  cat >conftest.$ac_ext <<_ACEOF
 
3202
/* confdefs.h.  */
 
3203
_ACEOF
 
3204
cat confdefs.h >>conftest.$ac_ext
 
3205
cat >>conftest.$ac_ext <<_ACEOF
 
3206
/* end confdefs.h.  */
 
3207
$ac_includes_default
 
3208
int
 
3209
main ()
 
3210
{
 
3211
if ((size_t *) 0)
 
3212
  return 0;
 
3213
if (sizeof (size_t))
 
3214
  return 0;
 
3215
  ;
 
3216
  return 0;
 
3217
}
 
3218
_ACEOF
 
3219
rm -f conftest.$ac_objext
 
3220
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3221
  (eval $ac_compile) 2>conftest.er1
 
3222
  ac_status=$?
 
3223
  grep -v '^ *+' conftest.er1 >conftest.err
 
3224
  rm -f conftest.er1
 
3225
  cat conftest.err >&5
 
3226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3227
  (exit $ac_status); } &&
 
3228
         { ac_try='test -z "$ac_c_werror_flag"
 
3229
                         || test ! -s conftest.err'
 
3230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3231
  (eval $ac_try) 2>&5
 
3232
  ac_status=$?
 
3233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3234
  (exit $ac_status); }; } &&
 
3235
         { ac_try='test -s conftest.$ac_objext'
 
3236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3237
  (eval $ac_try) 2>&5
 
3238
  ac_status=$?
 
3239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3240
  (exit $ac_status); }; }; then
1181
3241
  ac_cv_type_size_t=yes
1182
3242
else
1183
 
  rm -rf conftest*
1184
 
  ac_cv_type_size_t=no
1185
 
fi
1186
 
rm -f conftest*
1187
 
 
1188
 
fi
1189
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
1190
 
if test $ac_cv_type_size_t = no; then
1191
 
  cat >> confdefs.h <<\EOF
 
3243
  echo "$as_me: failed program was:" >&5
 
3244
sed 's/^/| /' conftest.$ac_ext >&5
 
3245
 
 
3246
ac_cv_type_size_t=no
 
3247
fi
 
3248
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3249
fi
 
3250
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
3251
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
3252
if test $ac_cv_type_size_t = yes; then
 
3253
  :
 
3254
else
 
3255
 
 
3256
cat >>confdefs.h <<_ACEOF
1192
3257
#define size_t unsigned
1193
 
EOF
 
3258
_ACEOF
1194
3259
 
1195
3260
fi
1196
3261
 
1197
 
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1198
 
echo "configure:1199: checking for uid_t in sys/types.h" >&5
1199
 
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1200
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3262
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
3263
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
 
3264
if test "${ac_cv_type_uid_t+set}" = set; then
 
3265
  echo $ECHO_N "(cached) $ECHO_C" >&6
1201
3266
else
1202
 
  cat > conftest.$ac_ext <<EOF
1203
 
#line 1204 "configure"
1204
 
#include "confdefs.h"
 
3267
  cat >conftest.$ac_ext <<_ACEOF
 
3268
/* confdefs.h.  */
 
3269
_ACEOF
 
3270
cat confdefs.h >>conftest.$ac_ext
 
3271
cat >>conftest.$ac_ext <<_ACEOF
 
3272
/* end confdefs.h.  */
1205
3273
#include <sys/types.h>
1206
 
EOF
 
3274
 
 
3275
_ACEOF
1207
3276
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1208
 
  egrep "uid_t" >/dev/null 2>&1; then
1209
 
  rm -rf conftest*
 
3277
  $EGREP "uid_t" >/dev/null 2>&1; then
1210
3278
  ac_cv_type_uid_t=yes
1211
3279
else
1212
 
  rm -rf conftest*
1213
3280
  ac_cv_type_uid_t=no
1214
3281
fi
1215
3282
rm -f conftest*
1216
3283
 
1217
3284
fi
1218
 
 
1219
 
echo "$ac_t""$ac_cv_type_uid_t" 1>&6
 
3285
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
3286
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
1220
3287
if test $ac_cv_type_uid_t = no; then
1221
 
  cat >> confdefs.h <<\EOF
 
3288
 
 
3289
cat >>confdefs.h <<\_ACEOF
1222
3290
#define uid_t int
1223
 
EOF
1224
 
 
1225
 
  cat >> confdefs.h <<\EOF
 
3291
_ACEOF
 
3292
 
 
3293
 
 
3294
cat >>confdefs.h <<\_ACEOF
1226
3295
#define gid_t int
1227
 
EOF
 
3296
_ACEOF
1228
3297
 
1229
3298
fi
1230
3299
 
1231
3300
 
1232
 
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1233
 
echo "configure:1234: checking return type of signal handlers" >&5
1234
 
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1235
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3301
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
3302
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
3303
if test "${ac_cv_type_signal+set}" = set; then
 
3304
  echo $ECHO_N "(cached) $ECHO_C" >&6
1236
3305
else
1237
 
  cat > conftest.$ac_ext <<EOF
1238
 
#line 1239 "configure"
1239
 
#include "confdefs.h"
 
3306
  cat >conftest.$ac_ext <<_ACEOF
 
3307
/* confdefs.h.  */
 
3308
_ACEOF
 
3309
cat confdefs.h >>conftest.$ac_ext
 
3310
cat >>conftest.$ac_ext <<_ACEOF
 
3311
/* end confdefs.h.  */
1240
3312
#include <sys/types.h>
1241
3313
#include <signal.h>
1242
3314
#ifdef signal
1243
 
#undef signal
 
3315
# undef signal
1244
3316
#endif
1245
3317
#ifdef __cplusplus
1246
3318
extern "C" void (*signal (int, void (*)(int)))(int);
1248
3320
void (*signal ()) ();
1249
3321
#endif
1250
3322
 
1251
 
int main() {
 
3323
int
 
3324
main ()
 
3325
{
1252
3326
int i;
1253
 
; return 0; }
1254
 
EOF
1255
 
if { (eval echo configure:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1256
 
  rm -rf conftest*
 
3327
  ;
 
3328
  return 0;
 
3329
}
 
3330
_ACEOF
 
3331
rm -f conftest.$ac_objext
 
3332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3333
  (eval $ac_compile) 2>conftest.er1
 
3334
  ac_status=$?
 
3335
  grep -v '^ *+' conftest.er1 >conftest.err
 
3336
  rm -f conftest.er1
 
3337
  cat conftest.err >&5
 
3338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3339
  (exit $ac_status); } &&
 
3340
         { ac_try='test -z "$ac_c_werror_flag"
 
3341
                         || test ! -s conftest.err'
 
3342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3343
  (eval $ac_try) 2>&5
 
3344
  ac_status=$?
 
3345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3346
  (exit $ac_status); }; } &&
 
3347
         { ac_try='test -s conftest.$ac_objext'
 
3348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3349
  (eval $ac_try) 2>&5
 
3350
  ac_status=$?
 
3351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3352
  (exit $ac_status); }; }; then
1257
3353
  ac_cv_type_signal=void
1258
3354
else
1259
 
  echo "configure: failed program was:" >&5
1260
 
  cat conftest.$ac_ext >&5
1261
 
  rm -rf conftest*
1262
 
  ac_cv_type_signal=int
1263
 
fi
1264
 
rm -f conftest*
1265
 
fi
1266
 
 
1267
 
echo "$ac_t""$ac_cv_type_signal" 1>&6
1268
 
cat >> confdefs.h <<EOF
 
3355
  echo "$as_me: failed program was:" >&5
 
3356
sed 's/^/| /' conftest.$ac_ext >&5
 
3357
 
 
3358
ac_cv_type_signal=int
 
3359
fi
 
3360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3361
fi
 
3362
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
3363
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
3364
 
 
3365
cat >>confdefs.h <<_ACEOF
1269
3366
#define RETSIGTYPE $ac_cv_type_signal
1270
 
EOF
 
3367
_ACEOF
 
3368
 
 
3369
 
 
3370
 
 
3371
 
1271
3372
 
1272
3373
 
1273
3374
for ac_func in select socket strerror strstr
1274
3375
do
1275
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1276
 
echo "configure:1277: checking for $ac_func" >&5
1277
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1278
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3376
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3377
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3378
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3379
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3380
  echo $ECHO_N "(cached) $ECHO_C" >&6
1279
3381
else
1280
 
  cat > conftest.$ac_ext <<EOF
1281
 
#line 1282 "configure"
1282
 
#include "confdefs.h"
 
3382
  cat >conftest.$ac_ext <<_ACEOF
 
3383
/* confdefs.h.  */
 
3384
_ACEOF
 
3385
cat confdefs.h >>conftest.$ac_ext
 
3386
cat >>conftest.$ac_ext <<_ACEOF
 
3387
/* end confdefs.h.  */
 
3388
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
3389
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3390
#define $ac_func innocuous_$ac_func
 
3391
 
1283
3392
/* System header to define __stub macros and hopefully few prototypes,
1284
 
    which can conflict with char $ac_func(); below.  */
1285
 
#include <assert.h>
 
3393
    which can conflict with char $ac_func (); below.
 
3394
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3395
    <limits.h> exists even on freestanding compilers.  */
 
3396
 
 
3397
#ifdef __STDC__
 
3398
# include <limits.h>
 
3399
#else
 
3400
# include <assert.h>
 
3401
#endif
 
3402
 
 
3403
#undef $ac_func
 
3404
 
1286
3405
/* Override any gcc2 internal prototype to avoid an error.  */
 
3406
#ifdef __cplusplus
 
3407
extern "C"
 
3408
{
 
3409
#endif
1287
3410
/* We use char because int might match the return type of a gcc2
1288
 
    builtin and then its argument prototype would still apply.  */
1289
 
char $ac_func();
1290
 
 
1291
 
int main() {
1292
 
 
 
3411
   builtin and then its argument prototype would still apply.  */
 
3412
char $ac_func ();
1293
3413
/* The GNU C library defines this for functions which it implements
1294
3414
    to always fail with ENOSYS.  Some functions are actually named
1295
3415
    something starting with __ and the normal name is an alias.  */
1296
3416
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1297
3417
choke me
1298
3418
#else
1299
 
$ac_func();
1300
 
#endif
1301
 
 
1302
 
; return 0; }
1303
 
EOF
1304
 
if { (eval echo configure:1305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305
 
  rm -rf conftest*
1306
 
  eval "ac_cv_func_$ac_func=yes"
1307
 
else
1308
 
  echo "configure: failed program was:" >&5
1309
 
  cat conftest.$ac_ext >&5
1310
 
  rm -rf conftest*
1311
 
  eval "ac_cv_func_$ac_func=no"
1312
 
fi
1313
 
rm -f conftest*
1314
 
fi
1315
 
 
1316
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1317
 
  echo "$ac_t""yes" 1>&6
1318
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1319
 
  cat >> confdefs.h <<EOF
1320
 
#define $ac_tr_func 1
1321
 
EOF
1322
 
 
1323
 
else
1324
 
  echo "$ac_t""no" 1>&6
 
3419
char (*f) () = $ac_func;
 
3420
#endif
 
3421
#ifdef __cplusplus
 
3422
}
 
3423
#endif
 
3424
 
 
3425
int
 
3426
main ()
 
3427
{
 
3428
return f != $ac_func;
 
3429
  ;
 
3430
  return 0;
 
3431
}
 
3432
_ACEOF
 
3433
rm -f conftest.$ac_objext conftest$ac_exeext
 
3434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3435
  (eval $ac_link) 2>conftest.er1
 
3436
  ac_status=$?
 
3437
  grep -v '^ *+' conftest.er1 >conftest.err
 
3438
  rm -f conftest.er1
 
3439
  cat conftest.err >&5
 
3440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3441
  (exit $ac_status); } &&
 
3442
         { ac_try='test -z "$ac_c_werror_flag"
 
3443
                         || test ! -s conftest.err'
 
3444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3445
  (eval $ac_try) 2>&5
 
3446
  ac_status=$?
 
3447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3448
  (exit $ac_status); }; } &&
 
3449
         { ac_try='test -s conftest$ac_exeext'
 
3450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3451
  (eval $ac_try) 2>&5
 
3452
  ac_status=$?
 
3453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3454
  (exit $ac_status); }; }; then
 
3455
  eval "$as_ac_var=yes"
 
3456
else
 
3457
  echo "$as_me: failed program was:" >&5
 
3458
sed 's/^/| /' conftest.$ac_ext >&5
 
3459
 
 
3460
eval "$as_ac_var=no"
 
3461
fi
 
3462
rm -f conftest.err conftest.$ac_objext \
 
3463
      conftest$ac_exeext conftest.$ac_ext
 
3464
fi
 
3465
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3466
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3467
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3468
  cat >>confdefs.h <<_ACEOF
 
3469
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3470
_ACEOF
 
3471
 
1325
3472
fi
1326
3473
done
1327
3474
 
 
3475
echo "$as_me:$LINENO: checking for gethostent" >&5
 
3476
echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
 
3477
if test "${ac_cv_func_gethostent+set}" = set; then
 
3478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3479
else
 
3480
  cat >conftest.$ac_ext <<_ACEOF
 
3481
/* confdefs.h.  */
 
3482
_ACEOF
 
3483
cat confdefs.h >>conftest.$ac_ext
 
3484
cat >>conftest.$ac_ext <<_ACEOF
 
3485
/* end confdefs.h.  */
 
3486
/* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
 
3487
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3488
#define gethostent innocuous_gethostent
 
3489
 
 
3490
/* System header to define __stub macros and hopefully few prototypes,
 
3491
    which can conflict with char gethostent (); below.
 
3492
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3493
    <limits.h> exists even on freestanding compilers.  */
 
3494
 
 
3495
#ifdef __STDC__
 
3496
# include <limits.h>
 
3497
#else
 
3498
# include <assert.h>
 
3499
#endif
 
3500
 
 
3501
#undef gethostent
 
3502
 
 
3503
/* Override any gcc2 internal prototype to avoid an error.  */
 
3504
#ifdef __cplusplus
 
3505
extern "C"
 
3506
{
 
3507
#endif
 
3508
/* We use char because int might match the return type of a gcc2
 
3509
   builtin and then its argument prototype would still apply.  */
 
3510
char gethostent ();
 
3511
/* The GNU C library defines this for functions which it implements
 
3512
    to always fail with ENOSYS.  Some functions are actually named
 
3513
    something starting with __ and the normal name is an alias.  */
 
3514
#if defined (__stub_gethostent) || defined (__stub___gethostent)
 
3515
choke me
 
3516
#else
 
3517
char (*f) () = gethostent;
 
3518
#endif
 
3519
#ifdef __cplusplus
 
3520
}
 
3521
#endif
 
3522
 
 
3523
int
 
3524
main ()
 
3525
{
 
3526
return f != gethostent;
 
3527
  ;
 
3528
  return 0;
 
3529
}
 
3530
_ACEOF
 
3531
rm -f conftest.$ac_objext conftest$ac_exeext
 
3532
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3533
  (eval $ac_link) 2>conftest.er1
 
3534
  ac_status=$?
 
3535
  grep -v '^ *+' conftest.er1 >conftest.err
 
3536
  rm -f conftest.er1
 
3537
  cat conftest.err >&5
 
3538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3539
  (exit $ac_status); } &&
 
3540
         { ac_try='test -z "$ac_c_werror_flag"
 
3541
                         || test ! -s conftest.err'
 
3542
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3543
  (eval $ac_try) 2>&5
 
3544
  ac_status=$?
 
3545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3546
  (exit $ac_status); }; } &&
 
3547
         { ac_try='test -s conftest$ac_exeext'
 
3548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3549
  (eval $ac_try) 2>&5
 
3550
  ac_status=$?
 
3551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3552
  (exit $ac_status); }; }; then
 
3553
  ac_cv_func_gethostent=yes
 
3554
else
 
3555
  echo "$as_me: failed program was:" >&5
 
3556
sed 's/^/| /' conftest.$ac_ext >&5
 
3557
 
 
3558
ac_cv_func_gethostent=no
 
3559
fi
 
3560
rm -f conftest.err conftest.$ac_objext \
 
3561
      conftest$ac_exeext conftest.$ac_ext
 
3562
fi
 
3563
echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
 
3564
echo "${ECHO_T}$ac_cv_func_gethostent" >&6
 
3565
if test $ac_cv_func_gethostent = yes; then
 
3566
  :
 
3567
else
 
3568
 
 
3569
echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
 
3570
echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
 
3571
if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
 
3572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3573
else
 
3574
  ac_check_lib_save_LIBS=$LIBS
 
3575
LIBS="-lnsl  $LIBS"
 
3576
cat >conftest.$ac_ext <<_ACEOF
 
3577
/* confdefs.h.  */
 
3578
_ACEOF
 
3579
cat confdefs.h >>conftest.$ac_ext
 
3580
cat >>conftest.$ac_ext <<_ACEOF
 
3581
/* end confdefs.h.  */
 
3582
 
 
3583
/* Override any gcc2 internal prototype to avoid an error.  */
 
3584
#ifdef __cplusplus
 
3585
extern "C"
 
3586
#endif
 
3587
/* We use char because int might match the return type of a gcc2
 
3588
   builtin and then its argument prototype would still apply.  */
 
3589
char gethostent ();
 
3590
int
 
3591
main ()
 
3592
{
 
3593
gethostent ();
 
3594
  ;
 
3595
  return 0;
 
3596
}
 
3597
_ACEOF
 
3598
rm -f conftest.$ac_objext conftest$ac_exeext
 
3599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3600
  (eval $ac_link) 2>conftest.er1
 
3601
  ac_status=$?
 
3602
  grep -v '^ *+' conftest.er1 >conftest.err
 
3603
  rm -f conftest.er1
 
3604
  cat conftest.err >&5
 
3605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3606
  (exit $ac_status); } &&
 
3607
         { ac_try='test -z "$ac_c_werror_flag"
 
3608
                         || test ! -s conftest.err'
 
3609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3610
  (eval $ac_try) 2>&5
 
3611
  ac_status=$?
 
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3613
  (exit $ac_status); }; } &&
 
3614
         { ac_try='test -s conftest$ac_exeext'
 
3615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3616
  (eval $ac_try) 2>&5
 
3617
  ac_status=$?
 
3618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3619
  (exit $ac_status); }; }; then
 
3620
  ac_cv_lib_nsl_gethostent=yes
 
3621
else
 
3622
  echo "$as_me: failed program was:" >&5
 
3623
sed 's/^/| /' conftest.$ac_ext >&5
 
3624
 
 
3625
ac_cv_lib_nsl_gethostent=no
 
3626
fi
 
3627
rm -f conftest.err conftest.$ac_objext \
 
3628
      conftest$ac_exeext conftest.$ac_ext
 
3629
LIBS=$ac_check_lib_save_LIBS
 
3630
fi
 
3631
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
 
3632
echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
 
3633
if test $ac_cv_lib_nsl_gethostent = yes; then
 
3634
  cat >>confdefs.h <<_ACEOF
 
3635
#define HAVE_LIBNSL 1
 
3636
_ACEOF
 
3637
 
 
3638
  LIBS="-lnsl $LIBS"
 
3639
 
 
3640
fi
 
3641
 
 
3642
fi
 
3643
 
 
3644
echo "$as_me:$LINENO: checking for setsockopt" >&5
 
3645
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
 
3646
if test "${ac_cv_func_setsockopt+set}" = set; then
 
3647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3648
else
 
3649
  cat >conftest.$ac_ext <<_ACEOF
 
3650
/* confdefs.h.  */
 
3651
_ACEOF
 
3652
cat confdefs.h >>conftest.$ac_ext
 
3653
cat >>conftest.$ac_ext <<_ACEOF
 
3654
/* end confdefs.h.  */
 
3655
/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
 
3656
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3657
#define setsockopt innocuous_setsockopt
 
3658
 
 
3659
/* System header to define __stub macros and hopefully few prototypes,
 
3660
    which can conflict with char setsockopt (); below.
 
3661
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3662
    <limits.h> exists even on freestanding compilers.  */
 
3663
 
 
3664
#ifdef __STDC__
 
3665
# include <limits.h>
 
3666
#else
 
3667
# include <assert.h>
 
3668
#endif
 
3669
 
 
3670
#undef setsockopt
 
3671
 
 
3672
/* Override any gcc2 internal prototype to avoid an error.  */
 
3673
#ifdef __cplusplus
 
3674
extern "C"
 
3675
{
 
3676
#endif
 
3677
/* We use char because int might match the return type of a gcc2
 
3678
   builtin and then its argument prototype would still apply.  */
 
3679
char setsockopt ();
 
3680
/* The GNU C library defines this for functions which it implements
 
3681
    to always fail with ENOSYS.  Some functions are actually named
 
3682
    something starting with __ and the normal name is an alias.  */
 
3683
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
 
3684
choke me
 
3685
#else
 
3686
char (*f) () = setsockopt;
 
3687
#endif
 
3688
#ifdef __cplusplus
 
3689
}
 
3690
#endif
 
3691
 
 
3692
int
 
3693
main ()
 
3694
{
 
3695
return f != setsockopt;
 
3696
  ;
 
3697
  return 0;
 
3698
}
 
3699
_ACEOF
 
3700
rm -f conftest.$ac_objext conftest$ac_exeext
 
3701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3702
  (eval $ac_link) 2>conftest.er1
 
3703
  ac_status=$?
 
3704
  grep -v '^ *+' conftest.er1 >conftest.err
 
3705
  rm -f conftest.er1
 
3706
  cat conftest.err >&5
 
3707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3708
  (exit $ac_status); } &&
 
3709
         { ac_try='test -z "$ac_c_werror_flag"
 
3710
                         || test ! -s conftest.err'
 
3711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3712
  (eval $ac_try) 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; } &&
 
3716
         { ac_try='test -s conftest$ac_exeext'
 
3717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3718
  (eval $ac_try) 2>&5
 
3719
  ac_status=$?
 
3720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3721
  (exit $ac_status); }; }; then
 
3722
  ac_cv_func_setsockopt=yes
 
3723
else
 
3724
  echo "$as_me: failed program was:" >&5
 
3725
sed 's/^/| /' conftest.$ac_ext >&5
 
3726
 
 
3727
ac_cv_func_setsockopt=no
 
3728
fi
 
3729
rm -f conftest.err conftest.$ac_objext \
 
3730
      conftest$ac_exeext conftest.$ac_ext
 
3731
fi
 
3732
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
 
3733
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
 
3734
if test $ac_cv_func_setsockopt = yes; then
 
3735
  :
 
3736
else
 
3737
 
 
3738
echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
3739
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
 
3740
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
 
3741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3742
else
 
3743
  ac_check_lib_save_LIBS=$LIBS
 
3744
LIBS="-lsocket  $LIBS"
 
3745
cat >conftest.$ac_ext <<_ACEOF
 
3746
/* confdefs.h.  */
 
3747
_ACEOF
 
3748
cat confdefs.h >>conftest.$ac_ext
 
3749
cat >>conftest.$ac_ext <<_ACEOF
 
3750
/* end confdefs.h.  */
 
3751
 
 
3752
/* Override any gcc2 internal prototype to avoid an error.  */
 
3753
#ifdef __cplusplus
 
3754
extern "C"
 
3755
#endif
 
3756
/* We use char because int might match the return type of a gcc2
 
3757
   builtin and then its argument prototype would still apply.  */
 
3758
char setsockopt ();
 
3759
int
 
3760
main ()
 
3761
{
 
3762
setsockopt ();
 
3763
  ;
 
3764
  return 0;
 
3765
}
 
3766
_ACEOF
 
3767
rm -f conftest.$ac_objext conftest$ac_exeext
 
3768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3769
  (eval $ac_link) 2>conftest.er1
 
3770
  ac_status=$?
 
3771
  grep -v '^ *+' conftest.er1 >conftest.err
 
3772
  rm -f conftest.er1
 
3773
  cat conftest.err >&5
 
3774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3775
  (exit $ac_status); } &&
 
3776
         { ac_try='test -z "$ac_c_werror_flag"
 
3777
                         || test ! -s conftest.err'
 
3778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3779
  (eval $ac_try) 2>&5
 
3780
  ac_status=$?
 
3781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3782
  (exit $ac_status); }; } &&
 
3783
         { ac_try='test -s conftest$ac_exeext'
 
3784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3785
  (eval $ac_try) 2>&5
 
3786
  ac_status=$?
 
3787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3788
  (exit $ac_status); }; }; then
 
3789
  ac_cv_lib_socket_setsockopt=yes
 
3790
else
 
3791
  echo "$as_me: failed program was:" >&5
 
3792
sed 's/^/| /' conftest.$ac_ext >&5
 
3793
 
 
3794
ac_cv_lib_socket_setsockopt=no
 
3795
fi
 
3796
rm -f conftest.err conftest.$ac_objext \
 
3797
      conftest$ac_exeext conftest.$ac_ext
 
3798
LIBS=$ac_check_lib_save_LIBS
 
3799
fi
 
3800
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
3801
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
 
3802
if test $ac_cv_lib_socket_setsockopt = yes; then
 
3803
  cat >>confdefs.h <<_ACEOF
 
3804
#define HAVE_LIBSOCKET 1
 
3805
_ACEOF
 
3806
 
 
3807
  LIBS="-lsocket $LIBS"
 
3808
 
 
3809
fi
 
3810
 
 
3811
fi
 
3812
 
1328
3813
 
1329
3814
echo -n 'checking for /var/run/... '
1330
3815
if test -d /var/run
1336
3821
fi
1337
3822
 
1338
3823
echo -n 'checking for getopt_long... '
1339
 
cat > conftest.$ac_ext <<EOF
1340
 
#line 1341 "configure"
1341
 
#include "confdefs.h"
 
3824
cat >conftest.$ac_ext <<_ACEOF
 
3825
/* confdefs.h.  */
 
3826
_ACEOF
 
3827
cat confdefs.h >>conftest.$ac_ext
 
3828
cat >>conftest.$ac_ext <<_ACEOF
 
3829
/* end confdefs.h.  */
1342
3830
#include <stdio.h>
1343
3831
        #include <stdlib.h>
1344
3832
        #include <unistd.h>
1345
3833
        #include <getopt.h>
1346
 
int main() {
 
3834
int
 
3835
main ()
 
3836
{
1347
3837
getopt_long(0,NULL,NULL,NULL,NULL);
1348
 
; return 0; }
1349
 
EOF
1350
 
if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1351
 
  rm -rf conftest*
 
3838
  ;
 
3839
  return 0;
 
3840
}
 
3841
_ACEOF
 
3842
rm -f conftest.$ac_objext
 
3843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3844
  (eval $ac_compile) 2>conftest.er1
 
3845
  ac_status=$?
 
3846
  grep -v '^ *+' conftest.er1 >conftest.err
 
3847
  rm -f conftest.er1
 
3848
  cat conftest.err >&5
 
3849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3850
  (exit $ac_status); } &&
 
3851
         { ac_try='test -z "$ac_c_werror_flag"
 
3852
                         || test ! -s conftest.err'
 
3853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3854
  (eval $ac_try) 2>&5
 
3855
  ac_status=$?
 
3856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3857
  (exit $ac_status); }; } &&
 
3858
         { ac_try='test -s conftest.$ac_objext'
 
3859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3860
  (eval $ac_try) 2>&5
 
3861
  ac_status=$?
 
3862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3863
  (exit $ac_status); }; }; then
1352
3864
  echo yes; echo \#define HAS_GETOPT_LONG >> config.h
1353
3865
else
1354
 
  echo "configure: failed program was:" >&5
1355
 
  cat conftest.$ac_ext >&5
1356
 
  rm -rf conftest*
1357
 
  echo no - short command line options only
 
3866
  echo "$as_me: failed program was:" >&5
 
3867
sed 's/^/| /' conftest.$ac_ext >&5
 
3868
 
 
3869
echo no - short command line options only
1358
3870
fi
1359
 
rm -f conftest*
1360
 
        
1361
 
trap '' 1 2 15
1362
 
cat > confcache <<\EOF
 
3871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3872
 
 
3873
          ac_config_files="$ac_config_files Makefile"
 
3874
cat >confcache <<\_ACEOF
1363
3875
# This file is a shell script that caches the results of configure
1364
3876
# tests run on this system so they can be shared between configure
1365
 
# scripts and configure runs.  It is not useful on other systems.
1366
 
# If it contains results you don't want to keep, you may remove or edit it.
1367
 
#
1368
 
# By default, configure uses ./config.cache as the cache file,
1369
 
# creating it if it does not exist already.  You can give configure
1370
 
# the --cache-file=FILE option to use a different cache file; that is
1371
 
# what configure does when it calls configure scripts in
1372
 
# subdirectories, so they share the cache.
1373
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1374
 
# config.status only pays attention to the cache file if you give it the
1375
 
# --recheck option to rerun configure.
1376
 
#
1377
 
EOF
 
3877
# scripts and configure runs, see configure's option --config-cache.
 
3878
# It is not useful on other systems.  If it contains results you don't
 
3879
# want to keep, you may remove or edit it.
 
3880
#
 
3881
# config.status only pays attention to the cache file if you give it
 
3882
# the --recheck option to rerun configure.
 
3883
#
 
3884
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
3885
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
3886
# following values.
 
3887
 
 
3888
_ACEOF
 
3889
 
1378
3890
# The following way of writing the cache mishandles newlines in values,
1379
3891
# but we know of no workaround that is simple, portable, and efficient.
1380
3892
# So, don't put newlines in cache variables' values.
1381
3893
# Ultrix sh set writes to stderr and can't be redirected directly,
1382
3894
# and sets the high bit in the cache file unless we assign to the vars.
1383
 
(set) 2>&1 |
1384
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1385
 
  *ac_space=\ *)
1386
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
1387
 
    # turns \\\\ into \\, and sed turns \\ into \).
1388
 
    sed -n \
1389
 
      -e "s/'/'\\\\''/g" \
1390
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1391
 
    ;;
1392
 
  *)
1393
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
1394
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1395
 
    ;;
1396
 
  esac >> confcache
1397
 
if cmp -s $cache_file confcache; then
1398
 
  :
1399
 
else
 
3895
{
 
3896
  (set) 2>&1 |
 
3897
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
3898
    *ac_space=\ *)
 
3899
      # `set' does not quote correctly, so add quotes (double-quote
 
3900
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
3901
      sed -n \
 
3902
        "s/'/'\\\\''/g;
 
3903
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
3904
      ;;
 
3905
    *)
 
3906
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
3907
      sed -n \
 
3908
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
3909
      ;;
 
3910
    esac;
 
3911
} |
 
3912
  sed '
 
3913
     t clear
 
3914
     : clear
 
3915
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
3916
     t end
 
3917
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3918
     : end' >>confcache
 
3919
if diff $cache_file confcache >/dev/null 2>&1; then :; else
1400
3920
  if test -w $cache_file; then
1401
 
    echo "updating cache $cache_file"
1402
 
    cat confcache > $cache_file
 
3921
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
3922
    cat confcache >$cache_file
1403
3923
  else
1404
3924
    echo "not updating unwritable cache $cache_file"
1405
3925
  fi
1406
3926
fi
1407
3927
rm -f confcache
1408
3928
 
1409
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1410
 
 
1411
3929
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1412
3930
# Let make expand exec_prefix.
1413
3931
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1414
3932
 
1415
 
# Any assignment to VPATH causes Sun make to only execute
1416
 
# the first set of double-colon rules, so remove it if not needed.
1417
 
# If there is a colon in the path, we need to keep it.
 
3933
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
3934
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
3935
# trailing colons and then remove the whole line if VPATH becomes empty
 
3936
# (actually we leave an empty line to preserve line numbers).
1418
3937
if test "x$srcdir" = x.; then
1419
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
3938
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
3939
s/:*\$(srcdir):*/:/;
 
3940
s/:*\${srcdir}:*/:/;
 
3941
s/:*@srcdir@:*/:/;
 
3942
s/^\([^=]*=[     ]*\):*/\1/;
 
3943
s/:*$//;
 
3944
s/^[^=]*=[       ]*$//;
 
3945
}'
1420
3946
fi
1421
3947
 
1422
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1423
 
 
1424
3948
# Transform confdefs.h into DEFS.
1425
3949
# Protect against shell expansion while executing Makefile rules.
1426
3950
# Protect against Makefile macro expansion.
1427
 
cat > conftest.defs <<\EOF
1428
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1429
 
s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1430
 
s%\[%\\&%g
1431
 
s%\]%\\&%g
1432
 
s%\$%$$%g
1433
 
EOF
1434
 
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1435
 
rm -f conftest.defs
1436
 
 
1437
 
 
1438
 
# Without the "./", some shells look in PATH for config.status.
 
3951
#
 
3952
# If the first sed substitution is executed (which looks for macros that
 
3953
# take arguments), then we branch to the quote section.  Otherwise,
 
3954
# look for a macro that doesn't take arguments.
 
3955
cat >confdef2opt.sed <<\_ACEOF
 
3956
t clear
 
3957
: clear
 
3958
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
3959
t quote
 
3960
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
3961
t quote
 
3962
d
 
3963
: quote
 
3964
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
3965
s,\[,\\&,g
 
3966
s,\],\\&,g
 
3967
s,\$,$$,g
 
3968
p
 
3969
_ACEOF
 
3970
# We use echo to avoid assuming a particular line-breaking character.
 
3971
# The extra dot is to prevent the shell from consuming trailing
 
3972
# line-breaks from the sub-command output.  A line-break within
 
3973
# single-quotes doesn't work because, if this script is created in a
 
3974
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
3975
# would break.
 
3976
ac_LF_and_DOT=`echo; echo .`
 
3977
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
3978
rm -f confdef2opt.sed
 
3979
 
 
3980
 
 
3981
ac_libobjs=
 
3982
ac_ltlibobjs=
 
3983
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
3984
  # 1. Remove the extension, and $U if already installed.
 
3985
  ac_i=`echo "$ac_i" |
 
3986
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
3987
  # 2. Add them.
 
3988
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
3989
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
3990
done
 
3991
LIBOBJS=$ac_libobjs
 
3992
 
 
3993
LTLIBOBJS=$ac_ltlibobjs
 
3994
 
 
3995
 
 
3996
 
1439
3997
: ${CONFIG_STATUS=./config.status}
1440
 
 
1441
 
echo creating $CONFIG_STATUS
1442
 
rm -f $CONFIG_STATUS
1443
 
cat > $CONFIG_STATUS <<EOF
1444
 
#! /bin/sh
1445
 
# Generated automatically by configure.
 
3998
ac_clean_files_save=$ac_clean_files
 
3999
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
4000
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
4001
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
4002
cat >$CONFIG_STATUS <<_ACEOF
 
4003
#! $SHELL
 
4004
# Generated by $as_me.
1446
4005
# Run this file to recreate the current configuration.
1447
 
# This directory was configured as follows,
1448
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1449
 
#
1450
 
# $0 $ac_configure_args
1451
 
#
1452
4006
# Compiler output produced by configure, useful for debugging
1453
 
# configure, is in ./config.log if it exists.
1454
 
 
1455
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1456
 
for ac_option
1457
 
do
1458
 
  case "\$ac_option" in
 
4007
# configure, is in config.log if it exists.
 
4008
 
 
4009
debug=false
 
4010
ac_cs_recheck=false
 
4011
ac_cs_silent=false
 
4012
SHELL=\${CONFIG_SHELL-$SHELL}
 
4013
_ACEOF
 
4014
 
 
4015
cat >>$CONFIG_STATUS <<\_ACEOF
 
4016
## --------------------- ##
 
4017
## M4sh Initialization.  ##
 
4018
## --------------------- ##
 
4019
 
 
4020
# Be Bourne compatible
 
4021
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
4022
  emulate sh
 
4023
  NULLCMD=:
 
4024
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
4025
  # is contrary to our usage.  Disable this feature.
 
4026
  alias -g '${1+"$@"}'='"$@"'
 
4027
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
4028
  set -o posix
 
4029
fi
 
4030
DUALCASE=1; export DUALCASE # for MKS sh
 
4031
 
 
4032
# Support unset when possible.
 
4033
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4034
  as_unset=unset
 
4035
else
 
4036
  as_unset=false
 
4037
fi
 
4038
 
 
4039
 
 
4040
# Work around bugs in pre-3.0 UWIN ksh.
 
4041
$as_unset ENV MAIL MAILPATH
 
4042
PS1='$ '
 
4043
PS2='> '
 
4044
PS4='+ '
 
4045
 
 
4046
# NLS nuisances.
 
4047
for as_var in \
 
4048
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
4049
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
4050
  LC_TELEPHONE LC_TIME
 
4051
do
 
4052
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
4053
    eval $as_var=C; export $as_var
 
4054
  else
 
4055
    $as_unset $as_var
 
4056
  fi
 
4057
done
 
4058
 
 
4059
# Required to use basename.
 
4060
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4061
  as_expr=expr
 
4062
else
 
4063
  as_expr=false
 
4064
fi
 
4065
 
 
4066
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
4067
  as_basename=basename
 
4068
else
 
4069
  as_basename=false
 
4070
fi
 
4071
 
 
4072
 
 
4073
# Name of the executable.
 
4074
as_me=`$as_basename "$0" ||
 
4075
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
4076
         X"$0" : 'X\(//\)$' \| \
 
4077
         X"$0" : 'X\(/\)$' \| \
 
4078
         .     : '\(.\)' 2>/dev/null ||
 
4079
echo X/"$0" |
 
4080
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
4081
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
4082
          /^X\/\(\/\).*/{ s//\1/; q; }
 
4083
          s/.*/./; q'`
 
4084
 
 
4085
 
 
4086
# PATH needs CR, and LINENO needs CR and PATH.
 
4087
# Avoid depending upon Character Ranges.
 
4088
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
4089
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
4090
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
4091
as_cr_digits='0123456789'
 
4092
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
4093
 
 
4094
# The user is always right.
 
4095
if test "${PATH_SEPARATOR+set}" != set; then
 
4096
  echo "#! /bin/sh" >conf$$.sh
 
4097
  echo  "exit 0"   >>conf$$.sh
 
4098
  chmod +x conf$$.sh
 
4099
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4100
    PATH_SEPARATOR=';'
 
4101
  else
 
4102
    PATH_SEPARATOR=:
 
4103
  fi
 
4104
  rm -f conf$$.sh
 
4105
fi
 
4106
 
 
4107
 
 
4108
  as_lineno_1=$LINENO
 
4109
  as_lineno_2=$LINENO
 
4110
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
4111
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
4112
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
4113
  # Find who we are.  Look in the path if we contain no path at all
 
4114
  # relative or not.
 
4115
  case $0 in
 
4116
    *[\\/]* ) as_myself=$0 ;;
 
4117
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4118
for as_dir in $PATH
 
4119
do
 
4120
  IFS=$as_save_IFS
 
4121
  test -z "$as_dir" && as_dir=.
 
4122
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
4123
done
 
4124
 
 
4125
       ;;
 
4126
  esac
 
4127
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
4128
  # in which case we are not to be found in the path.
 
4129
  if test "x$as_myself" = x; then
 
4130
    as_myself=$0
 
4131
  fi
 
4132
  if test ! -f "$as_myself"; then
 
4133
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
4134
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
4135
   { (exit 1); exit 1; }; }
 
4136
  fi
 
4137
  case $CONFIG_SHELL in
 
4138
  '')
 
4139
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4140
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
4141
do
 
4142
  IFS=$as_save_IFS
 
4143
  test -z "$as_dir" && as_dir=.
 
4144
  for as_base in sh bash ksh sh5; do
 
4145
         case $as_dir in
 
4146
         /*)
 
4147
           if ("$as_dir/$as_base" -c '
 
4148
  as_lineno_1=$LINENO
 
4149
  as_lineno_2=$LINENO
 
4150
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
4151
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
4152
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
4153
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
4154
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
4155
             CONFIG_SHELL=$as_dir/$as_base
 
4156
             export CONFIG_SHELL
 
4157
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
4158
           fi;;
 
4159
         esac
 
4160
       done
 
4161
done
 
4162
;;
 
4163
  esac
 
4164
 
 
4165
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
4166
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
4167
  # line-number line before each line; the second 'sed' does the real
 
4168
  # work.  The second script uses 'N' to pair each line-number line
 
4169
  # with the numbered line, and appends trailing '-' during
 
4170
  # substitution so that $LINENO is not a special case at line end.
 
4171
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
4172
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
4173
  sed '=' <$as_myself |
 
4174
    sed '
 
4175
      N
 
4176
      s,$,-,
 
4177
      : loop
 
4178
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
4179
      t loop
 
4180
      s,-$,,
 
4181
      s,^['$as_cr_digits']*\n,,
 
4182
    ' >$as_me.lineno &&
 
4183
  chmod +x $as_me.lineno ||
 
4184
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
4185
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
4186
   { (exit 1); exit 1; }; }
 
4187
 
 
4188
  # Don't try to exec as it changes $[0], causing all sort of problems
 
4189
  # (the dirname of $[0] is not the place where we might find the
 
4190
  # original and so on.  Autoconf is especially sensible to this).
 
4191
  . ./$as_me.lineno
 
4192
  # Exit status is that of the last command.
 
4193
  exit
 
4194
}
 
4195
 
 
4196
 
 
4197
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
4198
  *c*,-n*) ECHO_N= ECHO_C='
 
4199
' ECHO_T='      ' ;;
 
4200
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
4201
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
4202
esac
 
4203
 
 
4204
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4205
  as_expr=expr
 
4206
else
 
4207
  as_expr=false
 
4208
fi
 
4209
 
 
4210
rm -f conf$$ conf$$.exe conf$$.file
 
4211
echo >conf$$.file
 
4212
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
4213
  # We could just check for DJGPP; but this test a) works b) is more generic
 
4214
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
4215
  if test -f conf$$.exe; then
 
4216
    # Don't use ln at all; we don't have any links
 
4217
    as_ln_s='cp -p'
 
4218
  else
 
4219
    as_ln_s='ln -s'
 
4220
  fi
 
4221
elif ln conf$$.file conf$$ 2>/dev/null; then
 
4222
  as_ln_s=ln
 
4223
else
 
4224
  as_ln_s='cp -p'
 
4225
fi
 
4226
rm -f conf$$ conf$$.exe conf$$.file
 
4227
 
 
4228
if mkdir -p . 2>/dev/null; then
 
4229
  as_mkdir_p=:
 
4230
else
 
4231
  test -d ./-p && rmdir ./-p
 
4232
  as_mkdir_p=false
 
4233
fi
 
4234
 
 
4235
as_executable_p="test -f"
 
4236
 
 
4237
# Sed expression to map a string onto a valid CPP name.
 
4238
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
4239
 
 
4240
# Sed expression to map a string onto a valid variable name.
 
4241
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
4242
 
 
4243
 
 
4244
# IFS
 
4245
# We need space, tab and new line, in precisely that order.
 
4246
as_nl='
 
4247
'
 
4248
IFS="   $as_nl"
 
4249
 
 
4250
# CDPATH.
 
4251
$as_unset CDPATH
 
4252
 
 
4253
exec 6>&1
 
4254
 
 
4255
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4256
# report actual input values of CONFIG_FILES etc. instead of their
 
4257
# values after options handling.  Logging --version etc. is OK.
 
4258
exec 5>>config.log
 
4259
{
 
4260
  echo
 
4261
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4262
## Running $as_me. ##
 
4263
_ASBOX
 
4264
} >&5
 
4265
cat >&5 <<_CSEOF
 
4266
 
 
4267
This file was extended by $as_me, which was
 
4268
generated by GNU Autoconf 2.59.  Invocation command line was
 
4269
 
 
4270
  CONFIG_FILES    = $CONFIG_FILES
 
4271
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4272
  CONFIG_LINKS    = $CONFIG_LINKS
 
4273
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4274
  $ $0 $@
 
4275
 
 
4276
_CSEOF
 
4277
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
4278
echo >&5
 
4279
_ACEOF
 
4280
 
 
4281
# Files that config.status was made for.
 
4282
if test -n "$ac_config_files"; then
 
4283
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
4284
fi
 
4285
 
 
4286
if test -n "$ac_config_headers"; then
 
4287
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
4288
fi
 
4289
 
 
4290
if test -n "$ac_config_links"; then
 
4291
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
4292
fi
 
4293
 
 
4294
if test -n "$ac_config_commands"; then
 
4295
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
4296
fi
 
4297
 
 
4298
cat >>$CONFIG_STATUS <<\_ACEOF
 
4299
 
 
4300
ac_cs_usage="\
 
4301
\`$as_me' instantiates files from templates according to the
 
4302
current configuration.
 
4303
 
 
4304
Usage: $0 [OPTIONS] [FILE]...
 
4305
 
 
4306
  -h, --help       print this help, then exit
 
4307
  -V, --version    print version number, then exit
 
4308
  -q, --quiet      do not print progress messages
 
4309
  -d, --debug      don't remove temporary files
 
4310
      --recheck    update $as_me by reconfiguring in the same conditions
 
4311
  --file=FILE[:TEMPLATE]
 
4312
                   instantiate the configuration file FILE
 
4313
 
 
4314
Configuration files:
 
4315
$config_files
 
4316
 
 
4317
Report bugs to <bug-autoconf@gnu.org>."
 
4318
_ACEOF
 
4319
 
 
4320
cat >>$CONFIG_STATUS <<_ACEOF
 
4321
ac_cs_version="\\
 
4322
config.status
 
4323
configured by $0, generated by GNU Autoconf 2.59,
 
4324
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4325
 
 
4326
Copyright (C) 2003 Free Software Foundation, Inc.
 
4327
This config.status script is free software; the Free Software Foundation
 
4328
gives unlimited permission to copy, distribute and modify it."
 
4329
srcdir=$srcdir
 
4330
INSTALL="$INSTALL"
 
4331
_ACEOF
 
4332
 
 
4333
cat >>$CONFIG_STATUS <<\_ACEOF
 
4334
# If no file are specified by the user, then we need to provide default
 
4335
# value.  By we need to know if files were specified by the user.
 
4336
ac_need_defaults=:
 
4337
while test $# != 0
 
4338
do
 
4339
  case $1 in
 
4340
  --*=*)
 
4341
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
4342
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4343
    ac_shift=:
 
4344
    ;;
 
4345
  -*)
 
4346
    ac_option=$1
 
4347
    ac_optarg=$2
 
4348
    ac_shift=shift
 
4349
    ;;
 
4350
  *) # This is not an option, so the user has probably given explicit
 
4351
     # arguments.
 
4352
     ac_option=$1
 
4353
     ac_need_defaults=false;;
 
4354
  esac
 
4355
 
 
4356
  case $ac_option in
 
4357
  # Handling of the options.
 
4358
_ACEOF
 
4359
cat >>$CONFIG_STATUS <<\_ACEOF
1459
4360
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1460
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1461
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1462
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1463
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1464
 
    exit 0 ;;
1465
 
  -help | --help | --hel | --he | --h)
1466
 
    echo "\$ac_cs_usage"; exit 0 ;;
1467
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
1468
 
  esac
1469
 
done
1470
 
 
1471
 
ac_given_srcdir=$srcdir
1472
 
ac_given_INSTALL="$INSTALL"
1473
 
 
1474
 
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1475
 
EOF
1476
 
cat >> $CONFIG_STATUS <<EOF
1477
 
 
1478
 
# Protect against being on the right side of a sed subst in config.status.
1479
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1480
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1481
 
$ac_vpsub
1482
 
$extrasub
1483
 
s%@SHELL@%$SHELL%g
1484
 
s%@CFLAGS@%$CFLAGS%g
1485
 
s%@CPPFLAGS@%$CPPFLAGS%g
1486
 
s%@CXXFLAGS@%$CXXFLAGS%g
1487
 
s%@FFLAGS@%$FFLAGS%g
1488
 
s%@DEFS@%$DEFS%g
1489
 
s%@LDFLAGS@%$LDFLAGS%g
1490
 
s%@LIBS@%$LIBS%g
1491
 
s%@exec_prefix@%$exec_prefix%g
1492
 
s%@prefix@%$prefix%g
1493
 
s%@program_transform_name@%$program_transform_name%g
1494
 
s%@bindir@%$bindir%g
1495
 
s%@sbindir@%$sbindir%g
1496
 
s%@libexecdir@%$libexecdir%g
1497
 
s%@datadir@%$datadir%g
1498
 
s%@sysconfdir@%$sysconfdir%g
1499
 
s%@sharedstatedir@%$sharedstatedir%g
1500
 
s%@localstatedir@%$localstatedir%g
1501
 
s%@libdir@%$libdir%g
1502
 
s%@includedir@%$includedir%g
1503
 
s%@oldincludedir@%$oldincludedir%g
1504
 
s%@infodir@%$infodir%g
1505
 
s%@mandir@%$mandir%g
1506
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1507
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1508
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
1509
 
s%@CC@%$CC%g
1510
 
s%@CPP@%$CPP%g
1511
 
 
 
4361
    ac_cs_recheck=: ;;
 
4362
  --version | --vers* | -V )
 
4363
    echo "$ac_cs_version"; exit 0 ;;
 
4364
  --he | --h)
 
4365
    # Conflict between --help and --header
 
4366
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
4367
Try \`$0 --help' for more information." >&5
 
4368
echo "$as_me: error: ambiguous option: $1
 
4369
Try \`$0 --help' for more information." >&2;}
 
4370
   { (exit 1); exit 1; }; };;
 
4371
  --help | --hel | -h )
 
4372
    echo "$ac_cs_usage"; exit 0 ;;
 
4373
  --debug | --d* | -d )
 
4374
    debug=: ;;
 
4375
  --file | --fil | --fi | --f )
 
4376
    $ac_shift
 
4377
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
4378
    ac_need_defaults=false;;
 
4379
  --header | --heade | --head | --hea )
 
4380
    $ac_shift
 
4381
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
4382
    ac_need_defaults=false;;
 
4383
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
4384
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
4385
    ac_cs_silent=: ;;
 
4386
 
 
4387
  # This is an error.
 
4388
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
4389
Try \`$0 --help' for more information." >&5
 
4390
echo "$as_me: error: unrecognized option: $1
 
4391
Try \`$0 --help' for more information." >&2;}
 
4392
   { (exit 1); exit 1; }; } ;;
 
4393
 
 
4394
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4395
 
 
4396
  esac
 
4397
  shift
 
4398
done
 
4399
 
 
4400
ac_configure_extra_args=
 
4401
 
 
4402
if $ac_cs_silent; then
 
4403
  exec 6>/dev/null
 
4404
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
4405
fi
 
4406
 
 
4407
_ACEOF
 
4408
cat >>$CONFIG_STATUS <<_ACEOF
 
4409
if \$ac_cs_recheck; then
 
4410
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
4411
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
4412
fi
 
4413
 
 
4414
_ACEOF
 
4415
 
 
4416
 
 
4417
 
 
4418
 
 
4419
 
 
4420
cat >>$CONFIG_STATUS <<\_ACEOF
 
4421
for ac_config_target in $ac_config_targets
 
4422
do
 
4423
  case "$ac_config_target" in
 
4424
  # Handling of arguments.
 
4425
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4426
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
4427
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
4428
   { (exit 1); exit 1; }; };;
 
4429
  esac
 
4430
done
 
4431
 
 
4432
# If the user did not use the arguments to specify the items to instantiate,
 
4433
# then the envvar interface is used.  Set only those that are not.
 
4434
# We use the long form for the default assignment because of an extremely
 
4435
# bizarre bug on SunOS 4.1.3.
 
4436
if $ac_need_defaults; then
 
4437
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
4438
fi
 
4439
 
 
4440
# Have a temporary directory for convenience.  Make it in the build tree
 
4441
# simply because there is no reason to put it here, and in addition,
 
4442
# creating and moving files from /tmp can sometimes cause problems.
 
4443
# Create a temporary directory, and hook for its removal unless debugging.
 
4444
$debug ||
 
4445
{
 
4446
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4447
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4448
}
 
4449
 
 
4450
# Create a (secure) tmp directory for tmp files.
 
4451
 
 
4452
{
 
4453
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4454
  test -n "$tmp" && test -d "$tmp"
 
4455
}  ||
 
4456
{
 
4457
  tmp=./confstat$$-$RANDOM
 
4458
  (umask 077 && mkdir $tmp)
 
4459
} ||
 
4460
{
 
4461
   echo "$me: cannot create a temporary directory in ." >&2
 
4462
   { (exit 1); exit 1; }
 
4463
}
 
4464
 
 
4465
_ACEOF
 
4466
 
 
4467
cat >>$CONFIG_STATUS <<_ACEOF
 
4468
 
 
4469
#
 
4470
# CONFIG_FILES section.
 
4471
#
 
4472
 
 
4473
# No need to generate the scripts if there are no CONFIG_FILES.
 
4474
# This happens for instance when ./config.status config.h
 
4475
if test -n "\$CONFIG_FILES"; then
 
4476
  # Protect against being on the right side of a sed subst in config.status.
 
4477
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
4478
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
4479
s,@SHELL@,$SHELL,;t t
 
4480
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
4481
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
4482
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
4483
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
4484
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
4485
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
4486
s,@exec_prefix@,$exec_prefix,;t t
 
4487
s,@prefix@,$prefix,;t t
 
4488
s,@program_transform_name@,$program_transform_name,;t t
 
4489
s,@bindir@,$bindir,;t t
 
4490
s,@sbindir@,$sbindir,;t t
 
4491
s,@libexecdir@,$libexecdir,;t t
 
4492
s,@datadir@,$datadir,;t t
 
4493
s,@sysconfdir@,$sysconfdir,;t t
 
4494
s,@sharedstatedir@,$sharedstatedir,;t t
 
4495
s,@localstatedir@,$localstatedir,;t t
 
4496
s,@libdir@,$libdir,;t t
 
4497
s,@includedir@,$includedir,;t t
 
4498
s,@oldincludedir@,$oldincludedir,;t t
 
4499
s,@infodir@,$infodir,;t t
 
4500
s,@mandir@,$mandir,;t t
 
4501
s,@build_alias@,$build_alias,;t t
 
4502
s,@host_alias@,$host_alias,;t t
 
4503
s,@target_alias@,$target_alias,;t t
 
4504
s,@DEFS@,$DEFS,;t t
 
4505
s,@ECHO_C@,$ECHO_C,;t t
 
4506
s,@ECHO_N@,$ECHO_N,;t t
 
4507
s,@ECHO_T@,$ECHO_T,;t t
 
4508
s,@LIBS@,$LIBS,;t t
 
4509
s,@LSOF@,$LSOF,;t t
 
4510
s,@CFLAGS@,$CFLAGS,;t t
 
4511
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
4512
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
4513
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
4514
s,@CC@,$CC,;t t
 
4515
s,@LDFLAGS@,$LDFLAGS,;t t
 
4516
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
4517
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
4518
s,@EXEEXT@,$EXEEXT,;t t
 
4519
s,@OBJEXT@,$OBJEXT,;t t
 
4520
s,@CPP@,$CPP,;t t
 
4521
s,@EGREP@,$EGREP,;t t
 
4522
s,@LIBOBJS@,$LIBOBJS,;t t
 
4523
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1512
4524
CEOF
1513
 
EOF
1514
 
 
1515
 
cat >> $CONFIG_STATUS <<\EOF
1516
 
 
1517
 
# Split the substitutions into bite-sized pieces for seds with
1518
 
# small command number limits, like on Digital OSF/1 and HP-UX.
1519
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1520
 
ac_file=1 # Number of current file.
1521
 
ac_beg=1 # First line for current file.
1522
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1523
 
ac_more_lines=:
1524
 
ac_sed_cmds=""
1525
 
while $ac_more_lines; do
1526
 
  if test $ac_beg -gt 1; then
1527
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1528
 
  else
1529
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1530
 
  fi
1531
 
  if test ! -s conftest.s$ac_file; then
1532
 
    ac_more_lines=false
1533
 
    rm -f conftest.s$ac_file
1534
 
  else
1535
 
    if test -z "$ac_sed_cmds"; then
1536
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
1537
 
    else
1538
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1539
 
    fi
1540
 
    ac_file=`expr $ac_file + 1`
1541
 
    ac_beg=$ac_end
1542
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1543
 
  fi
1544
 
done
1545
 
if test -z "$ac_sed_cmds"; then
1546
 
  ac_sed_cmds=cat
1547
 
fi
1548
 
EOF
1549
 
 
1550
 
cat >> $CONFIG_STATUS <<EOF
1551
 
 
1552
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1553
 
EOF
1554
 
cat >> $CONFIG_STATUS <<\EOF
1555
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
4525
 
 
4526
_ACEOF
 
4527
 
 
4528
  cat >>$CONFIG_STATUS <<\_ACEOF
 
4529
  # Split the substitutions into bite-sized pieces for seds with
 
4530
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
4531
  ac_max_sed_lines=48
 
4532
  ac_sed_frag=1 # Number of current file.
 
4533
  ac_beg=1 # First line for current file.
 
4534
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
4535
  ac_more_lines=:
 
4536
  ac_sed_cmds=
 
4537
  while $ac_more_lines; do
 
4538
    if test $ac_beg -gt 1; then
 
4539
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4540
    else
 
4541
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
4542
    fi
 
4543
    if test ! -s $tmp/subs.frag; then
 
4544
      ac_more_lines=false
 
4545
    else
 
4546
      # The purpose of the label and of the branching condition is to
 
4547
      # speed up the sed processing (if there are no `@' at all, there
 
4548
      # is no need to browse any of the substitutions).
 
4549
      # These are the two extra sed commands mentioned above.
 
4550
      (echo ':t
 
4551
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
4552
      if test -z "$ac_sed_cmds"; then
 
4553
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
4554
      else
 
4555
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
4556
      fi
 
4557
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
4558
      ac_beg=$ac_end
 
4559
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
4560
    fi
 
4561
  done
 
4562
  if test -z "$ac_sed_cmds"; then
 
4563
    ac_sed_cmds=cat
 
4564
  fi
 
4565
fi # test -n "$CONFIG_FILES"
 
4566
 
 
4567
_ACEOF
 
4568
cat >>$CONFIG_STATUS <<\_ACEOF
 
4569
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1556
4570
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1557
 
  case "$ac_file" in
1558
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1559
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1560
 
  *) ac_file_in="${ac_file}.in" ;;
 
4571
  case $ac_file in
 
4572
  - | *:- | *:-:* ) # input from stdin
 
4573
        cat >$tmp/stdin
 
4574
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4575
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4576
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
4577
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
4578
  * )   ac_file_in=$ac_file.in ;;
1561
4579
  esac
1562
4580
 
1563
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1564
 
 
1565
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
1566
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1567
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1568
 
    # The file is in a subdirectory.
1569
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1570
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1571
 
    # A "../" for each directory in $ac_dir_suffix.
1572
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
4581
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
4582
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
4583
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4584
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
4585
         X"$ac_file" : 'X\(//\)$' \| \
 
4586
         X"$ac_file" : 'X\(/\)' \| \
 
4587
         .     : '\(.\)' 2>/dev/null ||
 
4588
echo X"$ac_file" |
 
4589
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4590
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4591
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4592
          /^X\(\/\).*/{ s//\1/; q; }
 
4593
          s/.*/./; q'`
 
4594
  { if $as_mkdir_p; then
 
4595
    mkdir -p "$ac_dir"
1573
4596
  else
1574
 
    ac_dir_suffix= ac_dots=
1575
 
  fi
1576
 
 
1577
 
  case "$ac_given_srcdir" in
1578
 
  .)  srcdir=.
1579
 
      if test -z "$ac_dots"; then top_srcdir=.
1580
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1581
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
4597
    as_dir="$ac_dir"
 
4598
    as_dirs=
 
4599
    while test ! -d "$as_dir"; do
 
4600
      as_dirs="$as_dir $as_dirs"
 
4601
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
4602
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4603
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4604
         X"$as_dir" : 'X\(//\)$' \| \
 
4605
         X"$as_dir" : 'X\(/\)' \| \
 
4606
         .     : '\(.\)' 2>/dev/null ||
 
4607
echo X"$as_dir" |
 
4608
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
4609
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
4610
          /^X\(\/\/\)$/{ s//\1/; q; }
 
4611
          /^X\(\/\).*/{ s//\1/; q; }
 
4612
          s/.*/./; q'`
 
4613
    done
 
4614
    test ! -n "$as_dirs" || mkdir $as_dirs
 
4615
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
4616
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
4617
   { (exit 1); exit 1; }; }; }
 
4618
 
 
4619
  ac_builddir=.
 
4620
 
 
4621
if test "$ac_dir" != .; then
 
4622
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
4623
  # A "../" for each directory in $ac_dir_suffix.
 
4624
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
4625
else
 
4626
  ac_dir_suffix= ac_top_builddir=
 
4627
fi
 
4628
 
 
4629
case $srcdir in
 
4630
  .)  # No --srcdir option.  We are building in place.
 
4631
    ac_srcdir=.
 
4632
    if test -z "$ac_top_builddir"; then
 
4633
       ac_top_srcdir=.
 
4634
    else
 
4635
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
4636
    fi ;;
 
4637
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
4638
    ac_srcdir=$srcdir$ac_dir_suffix;
 
4639
    ac_top_srcdir=$srcdir ;;
1582
4640
  *) # Relative path.
1583
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1584
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1585
 
  esac
1586
 
 
1587
 
  case "$ac_given_INSTALL" in
1588
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1589
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1590
 
  esac
1591
 
 
1592
 
  echo creating "$ac_file"
1593
 
  rm -f "$ac_file"
1594
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1595
 
  case "$ac_file" in
1596
 
  *Makefile*) ac_comsub="1i\\
1597
 
# $configure_input" ;;
1598
 
  *) ac_comsub= ;;
1599
 
  esac
1600
 
 
1601
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1602
 
  sed -e "$ac_comsub
1603
 
s%@configure_input@%$configure_input%g
1604
 
s%@srcdir@%$srcdir%g
1605
 
s%@top_srcdir@%$top_srcdir%g
1606
 
s%@INSTALL@%$INSTALL%g
1607
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1608
 
fi; done
1609
 
rm -f conftest.s*
1610
 
 
1611
 
EOF
1612
 
cat >> $CONFIG_STATUS <<EOF
1613
 
 
1614
 
EOF
1615
 
cat >> $CONFIG_STATUS <<\EOF
1616
 
 
1617
 
exit 0
1618
 
EOF
 
4641
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
4642
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
4643
esac
 
4644
 
 
4645
# Do not use `cd foo && pwd` to compute absolute paths, because
 
4646
# the directories may not exist.
 
4647
case `pwd` in
 
4648
.) ac_abs_builddir="$ac_dir";;
 
4649
*)
 
4650
  case "$ac_dir" in
 
4651
  .) ac_abs_builddir=`pwd`;;
 
4652
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
4653
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
4654
  esac;;
 
4655
esac
 
4656
case $ac_abs_builddir in
 
4657
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4658
*)
 
4659
  case ${ac_top_builddir}. in
 
4660
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
4661
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
4662
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
4663
  esac;;
 
4664
esac
 
4665
case $ac_abs_builddir in
 
4666
.) ac_abs_srcdir=$ac_srcdir;;
 
4667
*)
 
4668
  case $ac_srcdir in
 
4669
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
4670
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
4671
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
4672
  esac;;
 
4673
esac
 
4674
case $ac_abs_builddir in
 
4675
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4676
*)
 
4677
  case $ac_top_srcdir in
 
4678
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
4679
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
4680
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
4681
  esac;;
 
4682
esac
 
4683
 
 
4684
 
 
4685
  case $INSTALL in
 
4686
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
4687
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
4688
  esac
 
4689
 
 
4690
  if test x"$ac_file" != x-; then
 
4691
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4692
echo "$as_me: creating $ac_file" >&6;}
 
4693
    rm -f "$ac_file"
 
4694
  fi
 
4695
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4696
  # use $as_me), people would be surprised to read:
 
4697
  #    /* config.h.  Generated by config.status.  */
 
4698
  if test x"$ac_file" = x-; then
 
4699
    configure_input=
 
4700
  else
 
4701
    configure_input="$ac_file.  "
 
4702
  fi
 
4703
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
4704
                                     sed 's,.*/,,'` by configure."
 
4705
 
 
4706
  # First look for the input files in the build tree, otherwise in the
 
4707
  # src tree.
 
4708
  ac_file_inputs=`IFS=:
 
4709
    for f in $ac_file_in; do
 
4710
      case $f in
 
4711
      -) echo $tmp/stdin ;;
 
4712
      [\\/$]*)
 
4713
         # Absolute (can't be DOS-style, as IFS=:)
 
4714
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4715
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4716
   { (exit 1); exit 1; }; }
 
4717
         echo "$f";;
 
4718
      *) # Relative
 
4719
         if test -f "$f"; then
 
4720
           # Build tree
 
4721
           echo "$f"
 
4722
         elif test -f "$srcdir/$f"; then
 
4723
           # Source tree
 
4724
           echo "$srcdir/$f"
 
4725
         else
 
4726
           # /dev/null tree
 
4727
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
4728
echo "$as_me: error: cannot find input file: $f" >&2;}
 
4729
   { (exit 1); exit 1; }; }
 
4730
         fi;;
 
4731
      esac
 
4732
    done` || { (exit 1); exit 1; }
 
4733
_ACEOF
 
4734
cat >>$CONFIG_STATUS <<_ACEOF
 
4735
  sed "$ac_vpsub
 
4736
$extrasub
 
4737
_ACEOF
 
4738
cat >>$CONFIG_STATUS <<\_ACEOF
 
4739
:t
 
4740
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
4741
s,@configure_input@,$configure_input,;t t
 
4742
s,@srcdir@,$ac_srcdir,;t t
 
4743
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
4744
s,@top_srcdir@,$ac_top_srcdir,;t t
 
4745
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
4746
s,@builddir@,$ac_builddir,;t t
 
4747
s,@abs_builddir@,$ac_abs_builddir,;t t
 
4748
s,@top_builddir@,$ac_top_builddir,;t t
 
4749
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
4750
s,@INSTALL@,$ac_INSTALL,;t t
 
4751
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
4752
  rm -f $tmp/stdin
 
4753
  if test x"$ac_file" != x-; then
 
4754
    mv $tmp/out $ac_file
 
4755
  else
 
4756
    cat $tmp/out
 
4757
    rm -f $tmp/out
 
4758
  fi
 
4759
 
 
4760
done
 
4761
_ACEOF
 
4762
 
 
4763
cat >>$CONFIG_STATUS <<\_ACEOF
 
4764
 
 
4765
{ (exit 0); exit 0; }
 
4766
_ACEOF
1619
4767
chmod +x $CONFIG_STATUS
1620
 
rm -fr confdefs* $ac_clean_files
1621
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
4768
ac_clean_files=$ac_clean_files_save
 
4769
 
 
4770
 
 
4771
# configure is writing to config.log, and then calls config.status.
 
4772
# config.status does its own redirection, appending to config.log.
 
4773
# Unfortunately, on DOS this fails, as config.log is still kept open
 
4774
# by configure, so config.status won't be able to write to it; its
 
4775
# output is simply discarded.  So we exec the FD to /dev/null,
 
4776
# effectively closing config.log, so it can be properly (re)opened and
 
4777
# appended to by config.status.  When coming back to configure, we
 
4778
# need to make the FD available again.
 
4779
if test "$no_create" != yes; then
 
4780
  ac_cs_success=:
 
4781
  ac_config_status_args=
 
4782
  test "$silent" = yes &&
 
4783
    ac_config_status_args="$ac_config_status_args --quiet"
 
4784
  exec 5>/dev/null
 
4785
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
4786
  exec 5>>config.log
 
4787
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
4788
  # would make configure fail if this is the last instruction.
 
4789
  $ac_cs_success || { (exit 1); exit 1; }
 
4790
fi
1622
4791