~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to .pc/debian-changes-1.10+2.41-4/ffcall/vacall/configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

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