OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [configure] - Blame information for rev 1646

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 jrydberg
#! /bin/sh
2 1576 phoenix
# From configure.in for or1ksim-1.2, version 2.14, from autoconf version AC_ACVERSION.
3 7 jrydberg
# Guess values for system-dependent variables and create Makefiles.
4 1576 phoenix
# Generated by GNU Autoconf 2.59.
5 7 jrydberg
#
6 1576 phoenix
# Copyright (C) 2003 Free Software Foundation, Inc.
7 7 jrydberg
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9 1576 phoenix
## --------------------- ##
10
## M4sh Initialization.  ##
11
## --------------------- ##
12 7 jrydberg
 
13 1576 phoenix
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15
  emulate sh
16
  NULLCMD=:
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
  # is contrary to our usage.  Disable this feature.
19
  alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21
  set -o posix
22
fi
23
DUALCASE=1; export DUALCASE # for MKS sh
24
 
25
# Support unset when possible.
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27
  as_unset=unset
28
else
29
  as_unset=false
30
fi
31
 
32
 
33
# Work around bugs in pre-3.0 UWIN ksh.
34
$as_unset ENV MAIL MAILPATH
35
PS1='$ '
36
PS2='> '
37
PS4='+ '
38
 
39
# NLS nuisances.
40
for as_var in \
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43
  LC_TELEPHONE LC_TIME
44
do
45
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46
    eval $as_var=C; export $as_var
47
  else
48
    $as_unset $as_var
49
  fi
50
done
51
 
52
# Required to use basename.
53
if expr a : '\(a\)' >/dev/null 2>&1; then
54
  as_expr=expr
55
else
56
  as_expr=false
57
fi
58
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60
  as_basename=basename
61
else
62
  as_basename=false
63
fi
64
 
65
 
66
# Name of the executable.
67
as_me=`$as_basename "$0" ||
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
         X"$0" : 'X\(//\)$' \| \
70
         X"$0" : 'X\(/\)$' \| \
71
         .     : '\(.\)' 2>/dev/null ||
72
echo X/"$0" |
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
75
          /^X\/\(\/\).*/{ s//\1/; q; }
76
          s/.*/./; q'`
77
 
78
 
79
# PATH needs CR, and LINENO needs CR and PATH.
80 1242 hpanther
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
 
87 1576 phoenix
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
  echo "#! /bin/sh" >conf$$.sh
90
  echo  "exit 0"   >>conf$$.sh
91
  chmod +x conf$$.sh
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93
    PATH_SEPARATOR=';'
94
  else
95
    PATH_SEPARATOR=:
96
  fi
97
  rm -f conf$$.sh
98
fi
99 1242 hpanther
 
100
 
101 1576 phoenix
  as_lineno_1=$LINENO
102
  as_lineno_2=$LINENO
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106
  # Find who we are.  Look in the path if we contain no path at all
107
  # relative or not.
108
  case $0 in
109
    *[\\/]* ) as_myself=$0 ;;
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111
for as_dir in $PATH
112
do
113
  IFS=$as_save_IFS
114
  test -z "$as_dir" && as_dir=.
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116
done
117 1242 hpanther
 
118 1576 phoenix
       ;;
119
  esac
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
121
  # in which case we are not to be found in the path.
122
  if test "x$as_myself" = x; then
123
    as_myself=$0
124
  fi
125
  if test ! -f "$as_myself"; then
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
   { (exit 1); exit 1; }; }
128
  fi
129
  case $CONFIG_SHELL in
130
  '')
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133
do
134
  IFS=$as_save_IFS
135
  test -z "$as_dir" && as_dir=.
136
  for as_base in sh bash ksh sh5; do
137
         case $as_dir in
138
         /*)
139
           if ("$as_dir/$as_base" -c '
140
  as_lineno_1=$LINENO
141
  as_lineno_2=$LINENO
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
             CONFIG_SHELL=$as_dir/$as_base
148
             export CONFIG_SHELL
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150
           fi;;
151
         esac
152
       done
153
done
154
;;
155
  esac
156 1242 hpanther
 
157 1576 phoenix
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
159
  # line-number line before each line; the second 'sed' does the real
160
  # work.  The second script uses 'N' to pair each line-number line
161
  # with the numbered line, and appends trailing '-' during
162
  # substitution so that $LINENO is not a special case at line end.
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165
  sed '=' <$as_myself |
166
    sed '
167
      N
168
      s,$,-,
169
      : loop
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171
      t loop
172
      s,-$,,
173
      s,^['$as_cr_digits']*\n,,
174
    ' >$as_me.lineno &&
175
  chmod +x $as_me.lineno ||
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
   { (exit 1); exit 1; }; }
178
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
180
  # (the dirname of $[0] is not the place where we might find the
181
  # original and so on.  Autoconf is especially sensible to this).
182
  . ./$as_me.lineno
183
  # Exit status is that of the last command.
184
  exit
185
}
186
 
187
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
  *c*,-n*) ECHO_N= ECHO_C='
190
' ECHO_T='      ' ;;
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193
esac
194
 
195 1242 hpanther
if expr a : '\(a\)' >/dev/null 2>&1; then
196
  as_expr=expr
197
else
198
  as_expr=false
199
fi
200
 
201
rm -f conf$$ conf$$.exe conf$$.file
202
echo >conf$$.file
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
  # We could just check for DJGPP; but this test a) works b) is more generic
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
  if test -f conf$$.exe; then
207
    # Don't use ln at all; we don't have any links
208
    as_ln_s='cp -p'
209
  else
210
    as_ln_s='ln -s'
211
  fi
212
elif ln conf$$.file conf$$ 2>/dev/null; then
213
  as_ln_s=ln
214
else
215
  as_ln_s='cp -p'
216
fi
217
rm -f conf$$ conf$$.exe conf$$.file
218
 
219 1576 phoenix
if mkdir -p . 2>/dev/null; then
220
  as_mkdir_p=:
221 1242 hpanther
else
222 1576 phoenix
  test -d ./-p && rmdir ./-p
223
  as_mkdir_p=false
224 1242 hpanther
fi
225
 
226 1576 phoenix
as_executable_p="test -f"
227 1242 hpanther
 
228 1576 phoenix
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
 
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
 
234
 
235 1242 hpanther
# IFS
236
# We need space, tab and new line, in precisely that order.
237
as_nl='
238
'
239
IFS="   $as_nl"
240
 
241
# CDPATH.
242 1576 phoenix
$as_unset CDPATH
243 1242 hpanther
 
244 1576 phoenix
 
245 1242 hpanther
# Name of the host.
246
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247
# so uname gets run too.
248
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
 
250
exec 6>&1
251
 
252
#
253
# Initializations.
254
#
255 7 jrydberg
ac_default_prefix=/usr/local
256 1576 phoenix
ac_config_libobj_dir=.
257 1242 hpanther
cross_compiling=no
258
subdirs=
259 1576 phoenix
MFLAGS=
260
MAKEFLAGS=
261 1242 hpanther
SHELL=${CONFIG_SHELL-/bin/sh}
262 7 jrydberg
 
263 1242 hpanther
# Maximum number of lines to put in a shell here document.
264
# This variable seems obsolete.  It should probably be removed, and
265
# only ac_max_sed_lines should be used.
266
: ${ac_max_here_lines=38}
267
 
268 1576 phoenix
# Identity of this package.
269
PACKAGE_NAME=
270
PACKAGE_TARNAME=
271
PACKAGE_VERSION=
272
PACKAGE_STRING=
273
PACKAGE_BUGREPORT=
274
 
275 1242 hpanther
ac_unique_file="cpu/or32/execute.c"
276
# Factoring default headers for most tests.
277
ac_includes_default="\
278
#include 
279
#if HAVE_SYS_TYPES_H
280
# include 
281
#endif
282
#if HAVE_SYS_STAT_H
283
# include 
284
#endif
285
#if STDC_HEADERS
286
# include 
287
# include 
288
#else
289
# if HAVE_STDLIB_H
290
#  include 
291
# endif
292
#endif
293
#if HAVE_STRING_H
294
# if !STDC_HEADERS && HAVE_MEMORY_H
295
#  include 
296
# endif
297
# include 
298
#endif
299
#if HAVE_STRINGS_H
300
# include 
301
#endif
302
#if HAVE_INTTYPES_H
303
# include 
304
#else
305
# if HAVE_STDINT_H
306
#  include 
307
# endif
308
#endif
309
#if HAVE_UNISTD_H
310
# include 
311
#endif"
312
 
313 1576 phoenix
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CPU_ARCH CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP AR RANLIB ac_ct_RANLIB MAKE_SHELL GENERATE_NEEDED_TRUE GENERATE_NEEDED_FALSE DYNAMIC_EXECUTION_TRUE DYNAMIC_EXECUTION_FALSE BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS SUMVERSION TERMCAP_LIB INCLUDES LIBOBJS LTLIBOBJS'
314
ac_subst_files=''
315
 
316 7 jrydberg
# Initialize some variables set by options.
317 1242 hpanther
ac_init_help=
318
ac_init_version=false
319 7 jrydberg
# The variables have the same names as the options, with
320
# dashes changed to underlines.
321 1242 hpanther
cache_file=/dev/null
322 7 jrydberg
exec_prefix=NONE
323
no_create=
324
no_recursion=
325
prefix=NONE
326
program_prefix=NONE
327
program_suffix=NONE
328
program_transform_name=s,x,x,
329
silent=
330
site=
331
srcdir=
332
verbose=
333
x_includes=NONE
334
x_libraries=NONE
335 1242 hpanther
 
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341 7 jrydberg
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
353
 
354
ac_prev=
355
for ac_option
356
do
357
  # If the previous option needs an argument, assign it.
358
  if test -n "$ac_prev"; then
359
    eval "$ac_prev=\$ac_option"
360
    ac_prev=
361
    continue
362
  fi
363
 
364 1242 hpanther
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 7 jrydberg
 
366
  # Accept the important Cygnus configure options, so we can diagnose typos.
367
 
368 1242 hpanther
  case $ac_option in
369 7 jrydberg
 
370
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371
    ac_prev=bindir ;;
372
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 1242 hpanther
    bindir=$ac_optarg ;;
374 7 jrydberg
 
375
  -build | --build | --buil | --bui | --bu)
376 1242 hpanther
    ac_prev=build_alias ;;
377 7 jrydberg
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 1242 hpanther
    build_alias=$ac_optarg ;;
379 7 jrydberg
 
380
  -cache-file | --cache-file | --cache-fil | --cache-fi \
381
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
    ac_prev=cache_file ;;
383
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 1242 hpanther
    cache_file=$ac_optarg ;;
386 7 jrydberg
 
387 1242 hpanther
  --config-cache | -C)
388
    cache_file=config.cache ;;
389
 
390 7 jrydberg
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
    ac_prev=datadir ;;
392
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
  | --da=*)
394 1242 hpanther
    datadir=$ac_optarg ;;
395 7 jrydberg
 
396
  -disable-* | --disable-*)
397 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 7 jrydberg
    # Reject names that are not valid shell variable names.
399 1242 hpanther
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
   { (exit 1); exit 1; }; }
402
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
    eval "enable_$ac_feature=no" ;;
404 7 jrydberg
 
405
  -enable-* | --enable-*)
406 1242 hpanther
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 7 jrydberg
    # Reject names that are not valid shell variable names.
408 1242 hpanther
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
   { (exit 1); exit 1; }; }
411
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
    case $ac_option in
413
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 7 jrydberg
      *) ac_optarg=yes ;;
415
    esac
416 1242 hpanther
    eval "enable_$ac_feature='$ac_optarg'" ;;
417 7 jrydberg
 
418
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
  | --exec | --exe | --ex)
421
    ac_prev=exec_prefix ;;
422
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
  | --exec=* | --exe=* | --ex=*)
425 1242 hpanther
    exec_prefix=$ac_optarg ;;
426 7 jrydberg
 
427
  -gas | --gas | --ga | --g)
428
    # Obsolete; use --with-gas.
429
    with_gas=yes ;;
430
 
431 1242 hpanther
  -help | --help | --hel | --he | -h)
432
    ac_init_help=long ;;
433
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
    ac_init_help=recursive ;;
435
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
    ac_init_help=short ;;
437 7 jrydberg
 
438
  -host | --host | --hos | --ho)
439 1242 hpanther
    ac_prev=host_alias ;;
440 7 jrydberg
  -host=* | --host=* | --hos=* | --ho=*)
441 1242 hpanther
    host_alias=$ac_optarg ;;
442 7 jrydberg
 
443
  -includedir | --includedir | --includedi | --included | --include \
444
  | --includ | --inclu | --incl | --inc)
445
    ac_prev=includedir ;;
446
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
  | --includ=* | --inclu=* | --incl=* | --inc=*)
448 1242 hpanther
    includedir=$ac_optarg ;;
449 7 jrydberg
 
450
  -infodir | --infodir | --infodi | --infod | --info | --inf)
451
    ac_prev=infodir ;;
452
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 1242 hpanther
    infodir=$ac_optarg ;;
454 7 jrydberg
 
455
  -libdir | --libdir | --libdi | --libd)
456
    ac_prev=libdir ;;
457
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 1242 hpanther
    libdir=$ac_optarg ;;
459 7 jrydberg
 
460
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
  | --libexe | --libex | --libe)
462
    ac_prev=libexecdir ;;
463
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
  | --libexe=* | --libex=* | --libe=*)
465 1242 hpanther
    libexecdir=$ac_optarg ;;
466 7 jrydberg
 
467
  -localstatedir | --localstatedir | --localstatedi | --localstated \
468
  | --localstate | --localstat | --localsta | --localst \
469
  | --locals | --local | --loca | --loc | --lo)
470
    ac_prev=localstatedir ;;
471
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 1242 hpanther
    localstatedir=$ac_optarg ;;
475 7 jrydberg
 
476
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
    ac_prev=mandir ;;
478
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 1242 hpanther
    mandir=$ac_optarg ;;
480 7 jrydberg
 
481
  -nfp | --nfp | --nf)
482
    # Obsolete; use --without-fp.
483
    with_fp=no ;;
484
 
485
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 1576 phoenix
  | --no-cr | --no-c | -n)
487 7 jrydberg
    no_create=yes ;;
488
 
489
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
    no_recursion=yes ;;
492
 
493
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
  | --oldin | --oldi | --old | --ol | --o)
496
    ac_prev=oldincludedir ;;
497
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 1242 hpanther
    oldincludedir=$ac_optarg ;;
501 7 jrydberg
 
502
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
    ac_prev=prefix ;;
504
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 1242 hpanther
    prefix=$ac_optarg ;;
506 7 jrydberg
 
507
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508
  | --program-pre | --program-pr | --program-p)
509
    ac_prev=program_prefix ;;
510
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 1242 hpanther
    program_prefix=$ac_optarg ;;
513 7 jrydberg
 
514
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515
  | --program-suf | --program-su | --program-s)
516
    ac_prev=program_suffix ;;
517
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 1242 hpanther
    program_suffix=$ac_optarg ;;
520 7 jrydberg
 
521
  -program-transform-name | --program-transform-name \
522
  | --program-transform-nam | --program-transform-na \
523
  | --program-transform-n | --program-transform- \
524
  | --program-transform | --program-transfor \
525
  | --program-transfo | --program-transf \
526
  | --program-trans | --program-tran \
527
  | --progr-tra | --program-tr | --program-t)
528
    ac_prev=program_transform_name ;;
529
  -program-transform-name=* | --program-transform-name=* \
530
  | --program-transform-nam=* | --program-transform-na=* \
531
  | --program-transform-n=* | --program-transform-=* \
532
  | --program-transform=* | --program-transfor=* \
533
  | --program-transfo=* | --program-transf=* \
534
  | --program-trans=* | --program-tran=* \
535
  | --progr-tra=* | --program-tr=* | --program-t=*)
536 1242 hpanther
    program_transform_name=$ac_optarg ;;
537 7 jrydberg
 
538
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
  | -silent | --silent | --silen | --sile | --sil)
540
    silent=yes ;;
541
 
542
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
    ac_prev=sbindir ;;
544
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
  | --sbi=* | --sb=*)
546 1242 hpanther
    sbindir=$ac_optarg ;;
547 7 jrydberg
 
548
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
  | --sharedst | --shareds | --shared | --share | --shar \
551
  | --sha | --sh)
552
    ac_prev=sharedstatedir ;;
553
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
  | --sha=* | --sh=*)
557 1242 hpanther
    sharedstatedir=$ac_optarg ;;
558 7 jrydberg
 
559
  -site | --site | --sit)
560
    ac_prev=site ;;
561
  -site=* | --site=* | --sit=*)
562 1242 hpanther
    site=$ac_optarg ;;
563 7 jrydberg
 
564
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
    ac_prev=srcdir ;;
566
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 1242 hpanther
    srcdir=$ac_optarg ;;
568 7 jrydberg
 
569
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
  | --syscon | --sysco | --sysc | --sys | --sy)
571
    ac_prev=sysconfdir ;;
572
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 1242 hpanther
    sysconfdir=$ac_optarg ;;
575 7 jrydberg
 
576
  -target | --target | --targe | --targ | --tar | --ta | --t)
577 1242 hpanther
    ac_prev=target_alias ;;
578 7 jrydberg
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 1242 hpanther
    target_alias=$ac_optarg ;;
580 7 jrydberg
 
581
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582
    verbose=yes ;;
583
 
584 1242 hpanther
  -version | --version | --versio | --versi | --vers | -V)
585
    ac_init_version=: ;;
586 7 jrydberg
 
587
  -with-* | --with-*)
588 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 7 jrydberg
    # Reject names that are not valid shell variable names.
590 1242 hpanther
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
      { echo "$as_me: error: invalid package name: $ac_package" >&2
592
   { (exit 1); exit 1; }; }
593 7 jrydberg
    ac_package=`echo $ac_package| sed 's/-/_/g'`
594 1242 hpanther
    case $ac_option in
595
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 7 jrydberg
      *) ac_optarg=yes ;;
597
    esac
598 1242 hpanther
    eval "with_$ac_package='$ac_optarg'" ;;
599 7 jrydberg
 
600
  -without-* | --without-*)
601 1242 hpanther
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 7 jrydberg
    # Reject names that are not valid shell variable names.
603 1242 hpanther
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
      { echo "$as_me: error: invalid package name: $ac_package" >&2
605
   { (exit 1); exit 1; }; }
606
    ac_package=`echo $ac_package | sed 's/-/_/g'`
607
    eval "with_$ac_package=no" ;;
608 7 jrydberg
 
609
  --x)
610
    # Obsolete; use --with-x.
611
    with_x=yes ;;
612
 
613
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
  | --x-incl | --x-inc | --x-in | --x-i)
615
    ac_prev=x_includes ;;
616
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 1242 hpanther
    x_includes=$ac_optarg ;;
619 7 jrydberg
 
620
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
    ac_prev=x_libraries ;;
623
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 1242 hpanther
    x_libraries=$ac_optarg ;;
626 7 jrydberg
 
627 1242 hpanther
  -*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
   { (exit 1); exit 1; }; }
630 7 jrydberg
    ;;
631
 
632 1242 hpanther
  *=*)
633
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
    # Reject names that are not valid shell variable names.
635
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
   { (exit 1); exit 1; }; }
638
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
    eval "$ac_envvar='$ac_optarg'"
640
    export $ac_envvar ;;
641
 
642 7 jrydberg
  *)
643 1242 hpanther
    # FIXME: should be removed in autoconf 3.0.
644
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 7 jrydberg
    ;;
649
 
650
  esac
651
done
652
 
653
if test -n "$ac_prev"; then
654 1242 hpanther
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
  { echo "$as_me: error: missing argument to $ac_option" >&2
656
   { (exit 1); exit 1; }; }
657 7 jrydberg
fi
658
 
659 1242 hpanther
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
661
do
662
  eval ac_val=$`echo $ac_var`
663
  case $ac_val in
664
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 1576 phoenix
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 1242 hpanther
   { (exit 1); exit 1; }; };;
667
  esac
668
done
669 7 jrydberg
 
670 1242 hpanther
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 1576 phoenix
              localstatedir libdir includedir oldincludedir infodir mandir
673 7 jrydberg
do
674 1242 hpanther
  eval ac_val=$`echo $ac_var`
675
  case $ac_val in
676
    [\\/$]* | ?:[\\/]* ) ;;
677 1576 phoenix
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 1242 hpanther
   { (exit 1); exit 1; }; };;
679 7 jrydberg
  esac
680
done
681
 
682 1242 hpanther
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684 1576 phoenix
# FIXME: To remove some day.
685 1242 hpanther
build=$build_alias
686
host=$host_alias
687
target=$target_alias
688 7 jrydberg
 
689 1576 phoenix
# FIXME: To remove some day.
690 1242 hpanther
if test "x$host_alias" != x; then
691
  if test "x$build_alias" = x; then
692
    cross_compiling=maybe
693
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
    If a cross compiler is detected then cross compile mode will be used." >&2
695
  elif test "x$build_alias" != "x$host_alias"; then
696
    cross_compiling=yes
697
  fi
698
fi
699 7 jrydberg
 
700 1242 hpanther
ac_tool_prefix=
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 7 jrydberg
 
703 1242 hpanther
test "$silent" = yes && exec 6>/dev/null
704
 
705 1576 phoenix
 
706 7 jrydberg
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
  ac_srcdir_defaulted=yes
709
  # Try the directory containing this script, then its parent.
710 1576 phoenix
  ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
         X"$0" : 'X\(//\)[^/]' \| \
713
         X"$0" : 'X\(//\)$' \| \
714
         X"$0" : 'X\(/\)' \| \
715
         .     : '\(.\)' 2>/dev/null ||
716
echo X"$0" |
717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
          /^X\(\/\/\)$/{ s//\1/; q; }
720
          /^X\(\/\).*/{ s//\1/; q; }
721
          s/.*/./; q'`
722 7 jrydberg
  srcdir=$ac_confdir
723
  if test ! -r $srcdir/$ac_unique_file; then
724
    srcdir=..
725
  fi
726
else
727
  ac_srcdir_defaulted=no
728
fi
729
if test ! -r $srcdir/$ac_unique_file; then
730
  if test "$ac_srcdir_defaulted" = yes; then
731 1576 phoenix
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 1242 hpanther
   { (exit 1); exit 1; }; }
733 7 jrydberg
  else
734 1576 phoenix
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 1242 hpanther
   { (exit 1); exit 1; }; }
736 7 jrydberg
  fi
737
fi
738 1576 phoenix
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
   { (exit 1); exit 1; }; }
741 1242 hpanther
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
755
ac_env_CC_value=$CC
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
774 7 jrydberg
 
775 1242 hpanther
#
776
# Report the --help message.
777
#
778
if test "$ac_init_help" = "long"; then
779
  # Omit some internal or obsolete options to make the list less imposing.
780
  # This message is too long to be a string in the A/UX 3.1 sh.
781 1576 phoenix
  cat <<_ACEOF
782 1242 hpanther
\`configure' configures this package to adapt to many kinds of systems.
783
 
784
Usage: $0 [OPTION]... [VAR=VALUE]...
785
 
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE.  See below for descriptions of some of the useful variables.
788
 
789
Defaults for the options are specified in brackets.
790
 
791
Configuration:
792
  -h, --help              display this help and exit
793
      --help=short        display options specific to this package
794
      --help=recursive    display the short help of all the included packages
795
  -V, --version           display version information and exit
796
  -q, --quiet, --silent   do not print \`checking...' messages
797
      --cache-file=FILE   cache test results in FILE [disabled]
798
  -C, --config-cache      alias for \`--cache-file=config.cache'
799
  -n, --no-create         do not create output files
800
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
 
802 1576 phoenix
_ACEOF
803 1242 hpanther
 
804 1576 phoenix
  cat <<_ACEOF
805 1242 hpanther
Installation directories:
806
  --prefix=PREFIX         install architecture-independent files in PREFIX
807 1576 phoenix
                          [$ac_default_prefix]
808 1242 hpanther
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809 1576 phoenix
                          [PREFIX]
810 1242 hpanther
 
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
815
 
816
For better control, use the options below.
817
 
818
Fine tuning of the installation directories:
819
  --bindir=DIR           user executables [EPREFIX/bin]
820
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821
  --libexecdir=DIR       program executables [EPREFIX/libexec]
822
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826
  --libdir=DIR           object code libraries [EPREFIX/lib]
827
  --includedir=DIR       C header files [PREFIX/include]
828
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829
  --infodir=DIR          info documentation [PREFIX/info]
830
  --mandir=DIR           man documentation [PREFIX/man]
831 1576 phoenix
_ACEOF
832 1242 hpanther
 
833 1576 phoenix
  cat <<\_ACEOF
834 1242 hpanther
 
835
Program names:
836
  --program-prefix=PREFIX            prepend PREFIX to installed program names
837
  --program-suffix=SUFFIX            append SUFFIX to installed program names
838
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
 
840
System types:
841
  --build=BUILD     configure for building on BUILD [guessed]
842 1576 phoenix
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843 1242 hpanther
  --target=TARGET   configure for building compilers for TARGET [HOST]
844 1576 phoenix
_ACEOF
845 1242 hpanther
fi
846
 
847
if test -n "$ac_init_help"; then
848
 
849 1576 phoenix
  cat <<\_ACEOF
850 1242 hpanther
 
851
Optional Features:
852
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
853
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
854 1576 phoenix
  --disable-dependency-tracking  speeds up one-time build
855
  --enable-dependency-tracking   do not reject slow dependency extractors
856 1242 hpanther
  --enable-profiling      generate profiling code
857 1576 phoenix
  --enable-execution Execution style to use (simple/complex/dynamic)
858 1242 hpanther
  --enable-ethphy    compiles sim with ethernet phy support
859
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
860
  --enable-ov-flag      Whether instructions set overflow flag.
861
  --enable-arith-flag      Whether arithmethic instructions setflag.
862
 
863
Some influential environment variables:
864
  CC          C compiler command
865
  CFLAGS      C compiler flags
866
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
867
              nonstandard directory 
868
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
869
              headers in a nonstandard directory 
870
  CPP         C preprocessor
871
 
872
Use these variables to override the choices made by `configure' or to help
873
it to find libraries and programs with nonstandard names/locations.
874
 
875 1576 phoenix
_ACEOF
876 1242 hpanther
fi
877
 
878
if test "$ac_init_help" = "recursive"; then
879
  # If there are subdirs, report their specific --help.
880
  ac_popdir=`pwd`
881 1576 phoenix
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882
    test -d $ac_dir || continue
883
    ac_builddir=.
884 1242 hpanther
 
885 1576 phoenix
if test "$ac_dir" != .; then
886
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887
  # A "../" for each directory in $ac_dir_suffix.
888
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889
else
890
  ac_dir_suffix= ac_top_builddir=
891
fi
892 1242 hpanther
 
893 1576 phoenix
case $srcdir in
894
  .)  # No --srcdir option.  We are building in place.
895
    ac_srcdir=.
896
    if test -z "$ac_top_builddir"; then
897
       ac_top_srcdir=.
898
    else
899
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900
    fi ;;
901
  [\\/]* | ?:[\\/]* )  # Absolute path.
902
    ac_srcdir=$srcdir$ac_dir_suffix;
903
    ac_top_srcdir=$srcdir ;;
904
  *) # Relative path.
905
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
907
esac
908
 
909
# Do not use `cd foo && pwd` to compute absolute paths, because
910
# the directories may not exist.
911
case `pwd` in
912
.) ac_abs_builddir="$ac_dir";;
913
*)
914
  case "$ac_dir" in
915
  .) ac_abs_builddir=`pwd`;;
916
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
918
  esac;;
919
esac
920
case $ac_abs_builddir in
921
.) ac_abs_top_builddir=${ac_top_builddir}.;;
922
*)
923
  case ${ac_top_builddir}. in
924
  .) ac_abs_top_builddir=$ac_abs_builddir;;
925
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927
  esac;;
928
esac
929
case $ac_abs_builddir in
930
.) ac_abs_srcdir=$ac_srcdir;;
931
*)
932
  case $ac_srcdir in
933
  .) ac_abs_srcdir=$ac_abs_builddir;;
934
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936
  esac;;
937
esac
938
case $ac_abs_builddir in
939
.) ac_abs_top_srcdir=$ac_top_srcdir;;
940
*)
941
  case $ac_top_srcdir in
942
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
943
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945
  esac;;
946
esac
947
 
948
    cd $ac_dir
949 1242 hpanther
    # Check for guested configure; otherwise get Cygnus style configure.
950 1576 phoenix
    if test -f $ac_srcdir/configure.gnu; then
951 1242 hpanther
      echo
952 1576 phoenix
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
953
    elif test -f $ac_srcdir/configure; then
954 1242 hpanther
      echo
955 1576 phoenix
      $SHELL $ac_srcdir/configure  --help=recursive
956
    elif test -f $ac_srcdir/configure.ac ||
957
           test -f $ac_srcdir/configure.in; then
958 1242 hpanther
      echo
959
      $ac_configure --help
960
    else
961 1576 phoenix
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 1242 hpanther
    fi
963
    cd $ac_popdir
964
  done
965
fi
966
 
967
test -n "$ac_init_help" && exit 0
968
if $ac_init_version; then
969 1576 phoenix
  cat <<\_ACEOF
970 1242 hpanther
 
971 1576 phoenix
Copyright (C) 2003 Free Software Foundation, Inc.
972 1242 hpanther
This configure script is free software; the Free Software Foundation
973
gives unlimited permission to copy, distribute and modify it.
974 1576 phoenix
_ACEOF
975 1242 hpanther
  exit 0
976
fi
977
exec 5>config.log
978 1576 phoenix
cat >&5 <<_ACEOF
979 1242 hpanther
This file contains any messages produced by compilers while
980
running configure, to aid debugging if configure makes a mistake.
981
 
982
It was created by $as_me, which was
983 1576 phoenix
generated by GNU Autoconf 2.59.  Invocation command line was
984 1242 hpanther
 
985
  $ $0 $@
986
 
987 1576 phoenix
_ACEOF
988 1242 hpanther
{
989
cat <<_ASUNAME
990 1576 phoenix
## --------- ##
991
## Platform. ##
992
## --------- ##
993 1242 hpanther
 
994
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995
uname -m = `(uname -m) 2>/dev/null || echo unknown`
996
uname -r = `(uname -r) 2>/dev/null || echo unknown`
997
uname -s = `(uname -s) 2>/dev/null || echo unknown`
998
uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
 
1000
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1002
 
1003
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1004
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1005
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1007
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1008
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1009
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1010
 
1011 1576 phoenix
_ASUNAME
1012 1249 lampret
 
1013 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014
for as_dir in $PATH
1015
do
1016
  IFS=$as_save_IFS
1017
  test -z "$as_dir" && as_dir=.
1018
  echo "PATH: $as_dir"
1019
done
1020
 
1021 1242 hpanther
} >&5
1022
 
1023 1576 phoenix
cat >&5 <<_ACEOF
1024 1242 hpanther
 
1025
 
1026 1576 phoenix
## ----------- ##
1027
## Core tests. ##
1028
## ----------- ##
1029
 
1030
_ACEOF
1031
 
1032
 
1033 1242 hpanther
# Keep a trace of the command line.
1034
# Strip out --no-create and --no-recursion so they do not pile up.
1035 1576 phoenix
# Strip out --silent because we don't want to record it for future runs.
1036 1242 hpanther
# Also quote any args containing shell meta-characters.
1037 1576 phoenix
# Make two passes to allow for proper duplicate-argument suppression.
1038 1242 hpanther
ac_configure_args=
1039 1576 phoenix
ac_configure_args0=
1040
ac_configure_args1=
1041 1242 hpanther
ac_sep=
1042 1576 phoenix
ac_must_keep_next=false
1043
for ac_pass in 1 2
1044 1242 hpanther
do
1045 1576 phoenix
  for ac_arg
1046
  do
1047
    case $ac_arg in
1048
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050
    | -silent | --silent | --silen | --sile | --sil)
1051
      continue ;;
1052
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054
    esac
1055
    case $ac_pass in
1056
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057
    2)
1058
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059
      if test $ac_must_keep_next = true; then
1060
        ac_must_keep_next=false # Got value, back to normal.
1061
      else
1062
        case $ac_arg in
1063
          *=* | --config-cache | -C | -disable-* | --disable-* \
1064
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066
          | -with-* | --with-* | -without-* | --without-* | --x)
1067
            case "$ac_configure_args0 " in
1068
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069
            esac
1070
            ;;
1071
          -* ) ac_must_keep_next=true ;;
1072
        esac
1073
      fi
1074
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075
      # Get rid of the leading space.
1076
      ac_sep=" "
1077
      ;;
1078
    esac
1079
  done
1080 1242 hpanther
done
1081 1576 phoenix
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 1242 hpanther
 
1084
# When interrupted or exit'd, cleanup temporary files, and complete
1085
# config.log.  We remove comments because anyway the quotes in there
1086
# would cause problems or look ugly.
1087 1576 phoenix
# WARNING: Be sure not to use single quotes in there, as some shells,
1088
# such as our DU 5.0 friend, will then `close' the trap.
1089 1242 hpanther
trap 'exit_status=$?
1090
  # Save into config.log some information that might help in debugging.
1091 1576 phoenix
  {
1092
    echo
1093
 
1094
    cat <<\_ASBOX
1095
## ---------------- ##
1096
## Cache variables. ##
1097
## ---------------- ##
1098
_ASBOX
1099
    echo
1100
    # The following way of writing the cache mishandles newlines in values,
1101 1242 hpanther
{
1102
  (set) 2>&1 |
1103
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104
    *ac_space=\ *)
1105
      sed -n \
1106 1576 phoenix
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 1242 hpanther
      ;;
1109
    *)
1110
      sed -n \
1111 1576 phoenix
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 1242 hpanther
      ;;
1113
    esac;
1114 1576 phoenix
}
1115
    echo
1116
 
1117
    cat <<\_ASBOX
1118
## ----------------- ##
1119
## Output variables. ##
1120
## ----------------- ##
1121
_ASBOX
1122
    echo
1123
    for ac_var in $ac_subst_vars
1124
    do
1125
      eval ac_val=$`echo $ac_var`
1126
      echo "$ac_var='"'"'$ac_val'"'"'"
1127
    done | sort
1128
    echo
1129
 
1130
    if test -n "$ac_subst_files"; then
1131
      cat <<\_ASBOX
1132
## ------------- ##
1133
## Output files. ##
1134
## ------------- ##
1135
_ASBOX
1136
      echo
1137
      for ac_var in $ac_subst_files
1138
      do
1139
        eval ac_val=$`echo $ac_var`
1140
        echo "$ac_var='"'"'$ac_val'"'"'"
1141
      done | sort
1142
      echo
1143
    fi
1144
 
1145
    if test -s confdefs.h; then
1146
      cat <<\_ASBOX
1147
## ----------- ##
1148
## confdefs.h. ##
1149
## ----------- ##
1150
_ASBOX
1151
      echo
1152
      sed "/^$/d" confdefs.h | sort
1153
      echo
1154
    fi
1155
    test "$ac_signal" != 0 &&
1156
      echo "$as_me: caught signal $ac_signal"
1157
    echo "$as_me: exit $exit_status"
1158
  } >&5
1159
  rm -f core *.core &&
1160
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 1242 hpanther
    exit $exit_status
1162
     ' 0
1163
for ac_signal in 1 2 13 15; do
1164
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165
done
1166
ac_signal=0
1167
 
1168
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169
rm -rf conftest* confdefs.h
1170
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171
echo >confdefs.h
1172
 
1173 1576 phoenix
# Predefined preprocessor variables.
1174
 
1175
cat >>confdefs.h <<_ACEOF
1176
#define PACKAGE_NAME "$PACKAGE_NAME"
1177
_ACEOF
1178
 
1179
 
1180
cat >>confdefs.h <<_ACEOF
1181
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182
_ACEOF
1183
 
1184
 
1185
cat >>confdefs.h <<_ACEOF
1186
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1187
_ACEOF
1188
 
1189
 
1190
cat >>confdefs.h <<_ACEOF
1191
#define PACKAGE_STRING "$PACKAGE_STRING"
1192
_ACEOF
1193
 
1194
 
1195
cat >>confdefs.h <<_ACEOF
1196
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197
_ACEOF
1198
 
1199
 
1200 1242 hpanther
# Let the site file select an alternate cache file if it wants to.
1201 7 jrydberg
# Prefer explicitly selected file to automatically selected ones.
1202
if test -z "$CONFIG_SITE"; then
1203
  if test "x$prefix" != xNONE; then
1204
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205
  else
1206
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207
  fi
1208
fi
1209
for ac_site_file in $CONFIG_SITE; do
1210
  if test -r "$ac_site_file"; then
1211 1576 phoenix
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 1242 hpanther
echo "$as_me: loading site script $ac_site_file" >&6;}
1213 1576 phoenix
    sed 's/^/| /' "$ac_site_file" >&5
1214 7 jrydberg
    . "$ac_site_file"
1215
  fi
1216
done
1217
 
1218
if test -r "$cache_file"; then
1219 1242 hpanther
  # Some versions of bash will fail to source /dev/null (special
1220
  # files actually), so we avoid doing that.
1221
  if test -f "$cache_file"; then
1222 1576 phoenix
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 1242 hpanther
echo "$as_me: loading cache $cache_file" >&6;}
1224
    case $cache_file in
1225
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1226
      *)                      . ./$cache_file;;
1227
    esac
1228
  fi
1229 7 jrydberg
else
1230 1576 phoenix
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 1242 hpanther
echo "$as_me: creating cache $cache_file" >&6;}
1232
  >$cache_file
1233 7 jrydberg
fi
1234
 
1235 1242 hpanther
# Check that the precious variables saved in the cache have kept the same
1236
# value.
1237
ac_cache_corrupted=false
1238
for ac_var in `(set) 2>&1 |
1239 1576 phoenix
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 1242 hpanther
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241
  eval ac_new_set=\$ac_env_${ac_var}_set
1242
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243
  eval ac_new_val="\$ac_env_${ac_var}_value"
1244
  case $ac_old_set,$ac_new_set in
1245
    set,)
1246 1576 phoenix
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 1242 hpanther
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248
      ac_cache_corrupted=: ;;
1249
    ,set)
1250 1576 phoenix
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 1242 hpanther
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252
      ac_cache_corrupted=: ;;
1253
    ,);;
1254
    *)
1255
      if test "x$ac_old_val" != "x$ac_new_val"; then
1256 1576 phoenix
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 1242 hpanther
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 1576 phoenix
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1259 1242 hpanther
echo "$as_me:   former value:  $ac_old_val" >&2;}
1260 1576 phoenix
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1261 1242 hpanther
echo "$as_me:   current value: $ac_new_val" >&2;}
1262 1576 phoenix
        ac_cache_corrupted=:
1263 1242 hpanther
      fi;;
1264
  esac
1265 1576 phoenix
  # Pass precious variables to config.status.
1266 1242 hpanther
  if test "$ac_new_set" = set; then
1267
    case $ac_new_val in
1268
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 1576 phoenix
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270
    *) ac_arg=$ac_var=$ac_new_val ;;
1271 1242 hpanther
    esac
1272 1576 phoenix
    case " $ac_configure_args " in
1273
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1274
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275
    esac
1276 1242 hpanther
  fi
1277
done
1278
if $ac_cache_corrupted; then
1279 1576 phoenix
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 1242 hpanther
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 1576 phoenix
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 1242 hpanther
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283
   { (exit 1); exit 1; }; }
1284
fi
1285
 
1286 7 jrydberg
ac_ext=c
1287
ac_cpp='$CPP $CPPFLAGS'
1288 1242 hpanther
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291 7 jrydberg
 
1292
 
1293 1576 phoenix
 
1294
 
1295
 
1296
 
1297
 
1298
 
1299
 
1300
 
1301
 
1302
 
1303
 
1304
 
1305
 
1306
 
1307
 
1308
 
1309
 
1310
 
1311 7 jrydberg
ac_aux_dir=
1312
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1313
  if test -f $ac_dir/install-sh; then
1314
    ac_aux_dir=$ac_dir
1315
    ac_install_sh="$ac_aux_dir/install-sh -c"
1316
    break
1317
  elif test -f $ac_dir/install.sh; then
1318
    ac_aux_dir=$ac_dir
1319
    ac_install_sh="$ac_aux_dir/install.sh -c"
1320
    break
1321 1242 hpanther
  elif test -f $ac_dir/shtool; then
1322
    ac_aux_dir=$ac_dir
1323
    ac_install_sh="$ac_aux_dir/shtool install -c"
1324
    break
1325 7 jrydberg
  fi
1326
done
1327
if test -z "$ac_aux_dir"; then
1328 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 1242 hpanther
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330
   { (exit 1); exit 1; }; }
1331 7 jrydberg
fi
1332 1242 hpanther
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335 7 jrydberg
 
1336 1242 hpanther
# Make sure we can run config.sub.
1337
$ac_config_sub sun4 >/dev/null 2>&1 ||
1338 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339 1242 hpanther
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340
   { (exit 1); exit 1; }; }
1341 11 jrydberg
 
1342 1576 phoenix
echo "$as_me:$LINENO: checking build system type" >&5
1343 1242 hpanther
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344
if test "${ac_cv_build+set}" = set; then
1345
  echo $ECHO_N "(cached) $ECHO_C" >&6
1346
else
1347
  ac_cv_build_alias=$build_alias
1348
test -z "$ac_cv_build_alias" &&
1349
  ac_cv_build_alias=`$ac_config_guess`
1350
test -z "$ac_cv_build_alias" &&
1351 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352 1242 hpanther
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353
   { (exit 1); exit 1; }; }
1354
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1355 1576 phoenix
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 1242 hpanther
   { (exit 1); exit 1; }; }
1358 11 jrydberg
 
1359
fi
1360 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361 1242 hpanther
echo "${ECHO_T}$ac_cv_build" >&6
1362
build=$ac_cv_build
1363
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366 11 jrydberg
 
1367 1576 phoenix
 
1368
echo "$as_me:$LINENO: checking host system type" >&5
1369 1242 hpanther
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370
if test "${ac_cv_host+set}" = set; then
1371
  echo $ECHO_N "(cached) $ECHO_C" >&6
1372
else
1373
  ac_cv_host_alias=$host_alias
1374
test -z "$ac_cv_host_alias" &&
1375
  ac_cv_host_alias=$ac_cv_build_alias
1376
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1377 1576 phoenix
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378 1242 hpanther
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379
   { (exit 1); exit 1; }; }
1380 11 jrydberg
 
1381 1242 hpanther
fi
1382 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383 1242 hpanther
echo "${ECHO_T}$ac_cv_host" >&6
1384
host=$ac_cv_host
1385
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 11 jrydberg
 
1389 1576 phoenix
 
1390
echo "$as_me:$LINENO: checking target system type" >&5
1391 1242 hpanther
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1392
if test "${ac_cv_target+set}" = set; then
1393
  echo $ECHO_N "(cached) $ECHO_C" >&6
1394
else
1395
  ac_cv_target_alias=$target_alias
1396
test "x$ac_cv_target_alias" = "x" &&
1397
  ac_cv_target_alias=$ac_cv_host_alias
1398
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1399 1576 phoenix
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1400 1242 hpanther
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1401
   { (exit 1); exit 1; }; }
1402 11 jrydberg
 
1403 1242 hpanther
fi
1404 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1405 1242 hpanther
echo "${ECHO_T}$ac_cv_target" >&6
1406
target=$ac_cv_target
1407
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1410 11 jrydberg
 
1411 1576 phoenix
 
1412 1242 hpanther
# The aliases save the names the user supplied, while $host etc.
1413
# will get canonicalized.
1414
test -n "$target_alias" &&
1415 11 jrydberg
  test "$program_prefix$program_suffix$program_transform_name" = \
1416
    NONENONEs,x,x, &&
1417
  program_prefix=${target_alias}-
1418 1576 phoenix
am__api_version="1.9"
1419 7 jrydberg
# Find a good install program.  We prefer a C program (faster),
1420
# so one script is as good as another.  But avoid the broken or
1421
# incompatible versions:
1422
# SysV /etc/install, /usr/sbin/install
1423
# SunOS /usr/etc/install
1424
# IRIX /sbin/install
1425
# AIX /bin/install
1426 1242 hpanther
# AmigaOS /C/install, which installs bootblocks on floppy discs
1427 7 jrydberg
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1428
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1429
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1430 1576 phoenix
# OS/2's system install, which has a completely different semantic
1431 7 jrydberg
# ./install, which can be erroneously created by make from ./install.sh.
1432 1576 phoenix
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1433
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1434 7 jrydberg
if test -z "$INSTALL"; then
1435 1242 hpanther
if test "${ac_cv_path_install+set}" = set; then
1436
  echo $ECHO_N "(cached) $ECHO_C" >&6
1437 7 jrydberg
else
1438 1576 phoenix
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439
for as_dir in $PATH
1440
do
1441
  IFS=$as_save_IFS
1442
  test -z "$as_dir" && as_dir=.
1443
  # Account for people who put trailing slashes in PATH elements.
1444
case $as_dir/ in
1445
  ./ | .// | /cC/* | \
1446
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1447
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1448
  /usr/ucb/* ) ;;
1449
  *)
1450
    # OSF1 and SCO ODT 3.0 have their own names for install.
1451
    # Don't use installbsd from OSF since it installs stuff as root
1452
    # by default.
1453
    for ac_prog in ginstall scoinst install; do
1454
      for ac_exec_ext in '' $ac_executable_extensions; do
1455
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1456 1249 lampret
          if test $ac_prog = install &&
1457 1576 phoenix
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1458 1249 lampret
            # AIX install.  It has an incompatible calling convention.
1459
            :
1460
          elif test $ac_prog = install &&
1461 1576 phoenix
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1462 1249 lampret
            # program-specific install script used by HP pwplus--don't use.
1463
            :
1464
          else
1465 1576 phoenix
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1466
            break 3
1467 1249 lampret
          fi
1468
        fi
1469 7 jrydberg
      done
1470 1576 phoenix
    done
1471
    ;;
1472
esac
1473
done
1474 7 jrydberg
 
1475 1576 phoenix
 
1476 7 jrydberg
fi
1477
  if test "${ac_cv_path_install+set}" = set; then
1478 1242 hpanther
    INSTALL=$ac_cv_path_install
1479 7 jrydberg
  else
1480
    # As a last resort, use the slow shell script.  We don't cache a
1481
    # path for INSTALL within a source directory, because that will
1482
    # break other packages using the cache if that directory is
1483
    # removed, or if the path is relative.
1484 1242 hpanther
    INSTALL=$ac_install_sh
1485 7 jrydberg
  fi
1486
fi
1487 1576 phoenix
echo "$as_me:$LINENO: result: $INSTALL" >&5
1488 1242 hpanther
echo "${ECHO_T}$INSTALL" >&6
1489 7 jrydberg
 
1490
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1491
# It thinks the first close brace ends the variable substitution.
1492
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1493
 
1494 1242 hpanther
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1495 7 jrydberg
 
1496
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1497
 
1498 1576 phoenix
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1499 1242 hpanther
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1500 7 jrydberg
# Just in case
1501
sleep 1
1502 1242 hpanther
echo timestamp > conftest.file
1503 7 jrydberg
# Do `set' in a subshell so we don't clobber the current shell's
1504
# arguments.  Must try -L first in case configure is actually a
1505
# symlink; some systems play weird games with the mod time of symlinks
1506
# (eg FreeBSD returns the mod time of the symlink's containing
1507
# directory).
1508
if (
1509 1242 hpanther
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1510 7 jrydberg
   if test "$*" = "X"; then
1511
      # -L didn't work.
1512 1242 hpanther
      set X `ls -t $srcdir/configure conftest.file`
1513 7 jrydberg
   fi
1514 1242 hpanther
   rm -f conftest.file
1515
   if test "$*" != "X $srcdir/configure conftest.file" \
1516
      && test "$*" != "X conftest.file $srcdir/configure"; then
1517 7 jrydberg
 
1518
      # If neither matched, then we have a broken ls.  This can happen
1519
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1520
      # broken ls alias from the environment.  This has actually
1521
      # happened.  Such a system could not be considered "sane".
1522 1576 phoenix
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1523 1242 hpanther
alias in your environment" >&5
1524
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1525
alias in your environment" >&2;}
1526
   { (exit 1); exit 1; }; }
1527 7 jrydberg
   fi
1528
 
1529 1242 hpanther
   test "$2" = conftest.file
1530 7 jrydberg
   )
1531
then
1532
   # Ok.
1533
   :
1534
else
1535 1576 phoenix
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1536 1242 hpanther
Check your system clock" >&5
1537
echo "$as_me: error: newly created file is older than distributed files!
1538
Check your system clock" >&2;}
1539
   { (exit 1); exit 1; }; }
1540 7 jrydberg
fi
1541 1576 phoenix
echo "$as_me:$LINENO: result: yes" >&5
1542 1242 hpanther
echo "${ECHO_T}yes" >&6
1543 7 jrydberg
test "$program_prefix" != NONE &&
1544 1242 hpanther
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1545 7 jrydberg
# Use a double $ so make ignores it.
1546
test "$program_suffix" != NONE &&
1547 1242 hpanther
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1548
# Double any \ or $.  echo might interpret backslashes.
1549
# By default was `s,x,x', remove it if useless.
1550
cat <<\_ACEOF >conftest.sed
1551
s/[\\$]/&&/g;s/;s,x,x,$//
1552
_ACEOF
1553
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1554
rm conftest.sed
1555 7 jrydberg
 
1556 1242 hpanther
# expand $ac_aux_dir to an absolute path
1557
am_aux_dir=`cd $ac_aux_dir && pwd`
1558
 
1559
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1560
# Use eval to expand $SHELL
1561
if eval "$MISSING --run true"; then
1562
  am_missing_run="$MISSING --run "
1563 7 jrydberg
else
1564 1242 hpanther
  am_missing_run=
1565 1576 phoenix
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1566 1242 hpanther
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1567
fi
1568
 
1569 1576 phoenix
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1570
  # We used to keeping the `.' as first argument, in order to
1571
  # allow $(mkdir_p) to be used without argument.  As in
1572
  #   $(mkdir_p) $(somedir)
1573
  # where $(somedir) is conditionally defined.  However this is wrong
1574
  # for two reasons:
1575
  #  1. if the package is installed by a user who cannot write `.'
1576
  #     make install will fail,
1577
  #  2. the above comment should most certainly read
1578
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1579
  #     so it does not work when $(somedir) is undefined and
1580
  #     $(DESTDIR) is not.
1581
  #  To support the latter case, we have to write
1582
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1583
  #  so the `.' trick is pointless.
1584
  mkdir_p='mkdir -p --'
1585
else
1586
  # On NextStep and OpenStep, the `mkdir' command does not
1587
  # recognize any option.  It will interpret all options as
1588
  # directories to create, and then abort because `.' already
1589
  # exists.
1590
  for d in ./-p ./--version;
1591
  do
1592
    test -d $d && rmdir $d
1593
  done
1594
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1595
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1596
    mkdir_p='$(mkinstalldirs)'
1597
  else
1598
    mkdir_p='$(install_sh) -d'
1599
  fi
1600
fi
1601
 
1602
for ac_prog in gawk mawk nawk awk
1603 1242 hpanther
do
1604
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1605
set dummy $ac_prog; ac_word=$2
1606 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608
if test "${ac_cv_prog_AWK+set}" = set; then
1609
  echo $ECHO_N "(cached) $ECHO_C" >&6
1610
else
1611
  if test -n "$AWK"; then
1612
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1613
else
1614 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615
for as_dir in $PATH
1616
do
1617
  IFS=$as_save_IFS
1618
  test -z "$as_dir" && as_dir=.
1619
  for ac_exec_ext in '' $ac_executable_extensions; do
1620
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621
    ac_cv_prog_AWK="$ac_prog"
1622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623
    break 2
1624
  fi
1625 1242 hpanther
done
1626 1576 phoenix
done
1627 1242 hpanther
 
1628
fi
1629
fi
1630
AWK=$ac_cv_prog_AWK
1631
if test -n "$AWK"; then
1632 1576 phoenix
  echo "$as_me:$LINENO: result: $AWK" >&5
1633 1242 hpanther
echo "${ECHO_T}$AWK" >&6
1634
else
1635 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1636 1242 hpanther
echo "${ECHO_T}no" >&6
1637
fi
1638
 
1639
  test -n "$AWK" && break
1640
done
1641
 
1642 1576 phoenix
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1643
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1644
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1645 1242 hpanther
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1646
  echo $ECHO_N "(cached) $ECHO_C" >&6
1647
else
1648 1576 phoenix
  cat >conftest.make <<\_ACEOF
1649 7 jrydberg
all:
1650 1576 phoenix
        @echo 'ac_maketemp="$(MAKE)"'
1651
_ACEOF
1652 7 jrydberg
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1653 1242 hpanther
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1654 7 jrydberg
if test -n "$ac_maketemp"; then
1655
  eval ac_cv_prog_make_${ac_make}_set=yes
1656
else
1657
  eval ac_cv_prog_make_${ac_make}_set=no
1658
fi
1659 1242 hpanther
rm -f conftest.make
1660 7 jrydberg
fi
1661
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1662 1576 phoenix
  echo "$as_me:$LINENO: result: yes" >&5
1663 1242 hpanther
echo "${ECHO_T}yes" >&6
1664 7 jrydberg
  SET_MAKE=
1665
else
1666 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1667 1242 hpanther
echo "${ECHO_T}no" >&6
1668 7 jrydberg
  SET_MAKE="MAKE=${MAKE-make}"
1669
fi
1670
 
1671 1576 phoenix
rm -rf .tst 2>/dev/null
1672
mkdir .tst 2>/dev/null
1673
if test -d .tst; then
1674
  am__leading_dot=.
1675
else
1676
  am__leading_dot=_
1677
fi
1678
rmdir .tst 2>/dev/null
1679
 
1680
# test to see if srcdir already configured
1681 1242 hpanther
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1682
   test -f $srcdir/config.status; then
1683 1576 phoenix
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1684 1242 hpanther
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1685
   { (exit 1); exit 1; }; }
1686
fi
1687 7 jrydberg
 
1688 1576 phoenix
# test whether we have cygpath
1689
if test -z "$CYGPATH_W"; then
1690
  if (cygpath --version) >/dev/null 2>/dev/null; then
1691
    CYGPATH_W='cygpath -w'
1692
  else
1693
    CYGPATH_W=echo
1694
  fi
1695
fi
1696
 
1697
 
1698 1242 hpanther
# Define the identity of the package.
1699
 PACKAGE=or1ksim
1700
 VERSION=1.3
1701 7 jrydberg
 
1702 1576 phoenix
 
1703
cat >>confdefs.h <<_ACEOF
1704 7 jrydberg
#define PACKAGE "$PACKAGE"
1705 1576 phoenix
_ACEOF
1706 7 jrydberg
 
1707 1576 phoenix
 
1708
cat >>confdefs.h <<_ACEOF
1709 7 jrydberg
#define VERSION "$VERSION"
1710 1576 phoenix
_ACEOF
1711 7 jrydberg
 
1712 1242 hpanther
# Some tools Automake needs.
1713 7 jrydberg
 
1714 1376 phoenix
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1715 7 jrydberg
 
1716 1576 phoenix
 
1717 1242 hpanther
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1718
 
1719 1576 phoenix
 
1720 1376 phoenix
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1721 1242 hpanther
 
1722 1576 phoenix
 
1723 1242 hpanther
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1724
 
1725 1576 phoenix
 
1726 1242 hpanther
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1727
 
1728
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1729
 
1730
# Installed binaries are usually stripped using `strip' when the user
1731
# run `make install-strip'.  However `strip' might not be the right
1732
# tool to use in cross-compilation environments, therefore Automake
1733
# will honor the `STRIP' environment variable to overrule this program.
1734
if test "$cross_compiling" != no; then
1735
  if test -n "$ac_tool_prefix"; then
1736
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1737
set dummy ${ac_tool_prefix}strip; ac_word=$2
1738 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740
if test "${ac_cv_prog_STRIP+set}" = set; then
1741
  echo $ECHO_N "(cached) $ECHO_C" >&6
1742 7 jrydberg
else
1743 1242 hpanther
  if test -n "$STRIP"; then
1744
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1745
else
1746 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747
for as_dir in $PATH
1748
do
1749
  IFS=$as_save_IFS
1750
  test -z "$as_dir" && as_dir=.
1751
  for ac_exec_ext in '' $ac_executable_extensions; do
1752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755
    break 2
1756
  fi
1757 1242 hpanther
done
1758 1576 phoenix
done
1759 1242 hpanther
 
1760 7 jrydberg
fi
1761 1242 hpanther
fi
1762
STRIP=$ac_cv_prog_STRIP
1763
if test -n "$STRIP"; then
1764 1576 phoenix
  echo "$as_me:$LINENO: result: $STRIP" >&5
1765 1242 hpanther
echo "${ECHO_T}$STRIP" >&6
1766 7 jrydberg
else
1767 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1768 1242 hpanther
echo "${ECHO_T}no" >&6
1769 7 jrydberg
fi
1770
 
1771 1242 hpanther
fi
1772
if test -z "$ac_cv_prog_STRIP"; then
1773
  ac_ct_STRIP=$STRIP
1774
  # Extract the first word of "strip", so it can be a program name with args.
1775
set dummy strip; ac_word=$2
1776 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1777 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1779
  echo $ECHO_N "(cached) $ECHO_C" >&6
1780 7 jrydberg
else
1781 1242 hpanther
  if test -n "$ac_ct_STRIP"; then
1782
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1783
else
1784 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785
for as_dir in $PATH
1786
do
1787
  IFS=$as_save_IFS
1788
  test -z "$as_dir" && as_dir=.
1789
  for ac_exec_ext in '' $ac_executable_extensions; do
1790
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791
    ac_cv_prog_ac_ct_STRIP="strip"
1792
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793
    break 2
1794
  fi
1795 1242 hpanther
done
1796 1576 phoenix
done
1797 1242 hpanther
 
1798
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1799 7 jrydberg
fi
1800 1242 hpanther
fi
1801
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1802
if test -n "$ac_ct_STRIP"; then
1803 1576 phoenix
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1804 1242 hpanther
echo "${ECHO_T}$ac_ct_STRIP" >&6
1805 7 jrydberg
else
1806 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1807 1242 hpanther
echo "${ECHO_T}no" >&6
1808 7 jrydberg
fi
1809
 
1810 1242 hpanther
  STRIP=$ac_ct_STRIP
1811 7 jrydberg
else
1812 1242 hpanther
  STRIP="$ac_cv_prog_STRIP"
1813 7 jrydberg
fi
1814
 
1815 1242 hpanther
fi
1816
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1817 7 jrydberg
 
1818 1242 hpanther
# We need awk for the "check" target.  The system "awk" is bad on
1819
# some platforms.
1820 1576 phoenix
# Always define AMTAR for backward compatibility.
1821 7 jrydberg
 
1822 1576 phoenix
AMTAR=${AMTAR-"${am_missing_run}tar"}
1823 7 jrydberg
 
1824 1576 phoenix
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1825
 
1826
 
1827
 
1828
 
1829
 
1830
          ac_config_headers="$ac_config_headers config.h"
1831
 
1832
 
1833
 
1834 1242 hpanther
SIMVERSION=1.2
1835 7 jrydberg
 
1836 1576 phoenix
 
1837
 
1838 28 lampret
case "$target_cpu" in
1839
or32*)  CPU_ARCH=or32;
1840
        ARCH_ISA=OR32;;
1841
dlx*)   CPU_ARCH=dlx;
1842
        ARCH_ISA=DLX;;
1843 1576 phoenix
*)      { { echo "$as_me:$LINENO: error: Unknown target architechture $target_cpu" >&5
1844
echo "$as_me: error: Unknown target architechture $target_cpu" >&2;}
1845
   { (exit 1); exit 1; }; };;
1846 28 lampret
esac
1847
 
1848 1576 phoenix
 
1849 7 jrydberg
# We want these before the checks, so the checks can modify their values.
1850 1376 phoenix
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
1851 7 jrydberg
 
1852 1242 hpanther
ac_ext=c
1853
ac_cpp='$CPP $CPPFLAGS'
1854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1857
if test -n "$ac_tool_prefix"; then
1858
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1859
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1860 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862
if test "${ac_cv_prog_CC+set}" = set; then
1863
  echo $ECHO_N "(cached) $ECHO_C" >&6
1864
else
1865
  if test -n "$CC"; then
1866
  ac_cv_prog_CC="$CC" # Let the user override the test.
1867
else
1868 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
for as_dir in $PATH
1870
do
1871
  IFS=$as_save_IFS
1872
  test -z "$as_dir" && as_dir=.
1873
  for ac_exec_ext in '' $ac_executable_extensions; do
1874
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877
    break 2
1878
  fi
1879 1242 hpanther
done
1880 1576 phoenix
done
1881 1242 hpanther
 
1882
fi
1883
fi
1884
CC=$ac_cv_prog_CC
1885
if test -n "$CC"; then
1886 1576 phoenix
  echo "$as_me:$LINENO: result: $CC" >&5
1887 1242 hpanther
echo "${ECHO_T}$CC" >&6
1888
else
1889 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1890 1242 hpanther
echo "${ECHO_T}no" >&6
1891
fi
1892
 
1893
fi
1894
if test -z "$ac_cv_prog_CC"; then
1895
  ac_ct_CC=$CC
1896
  # Extract the first word of "gcc", so it can be a program name with args.
1897 7 jrydberg
set dummy gcc; ac_word=$2
1898 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1901
  echo $ECHO_N "(cached) $ECHO_C" >&6
1902 7 jrydberg
else
1903 1242 hpanther
  if test -n "$ac_ct_CC"; then
1904
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905
else
1906 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907
for as_dir in $PATH
1908
do
1909
  IFS=$as_save_IFS
1910
  test -z "$as_dir" && as_dir=.
1911
  for ac_exec_ext in '' $ac_executable_extensions; do
1912
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913
    ac_cv_prog_ac_ct_CC="gcc"
1914
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915
    break 2
1916
  fi
1917 1242 hpanther
done
1918 1576 phoenix
done
1919 1242 hpanther
 
1920
fi
1921
fi
1922
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1923
if test -n "$ac_ct_CC"; then
1924 1576 phoenix
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1925 1242 hpanther
echo "${ECHO_T}$ac_ct_CC" >&6
1926
else
1927 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1928 1242 hpanther
echo "${ECHO_T}no" >&6
1929
fi
1930
 
1931
  CC=$ac_ct_CC
1932
else
1933
  CC="$ac_cv_prog_CC"
1934
fi
1935
 
1936
if test -z "$CC"; then
1937
  if test -n "$ac_tool_prefix"; then
1938
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1939
set dummy ${ac_tool_prefix}cc; ac_word=$2
1940 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942
if test "${ac_cv_prog_CC+set}" = set; then
1943
  echo $ECHO_N "(cached) $ECHO_C" >&6
1944
else
1945 7 jrydberg
  if test -n "$CC"; then
1946
  ac_cv_prog_CC="$CC" # Let the user override the test.
1947
else
1948 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949
for as_dir in $PATH
1950
do
1951
  IFS=$as_save_IFS
1952
  test -z "$as_dir" && as_dir=.
1953
  for ac_exec_ext in '' $ac_executable_extensions; do
1954
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1956
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957
    break 2
1958
  fi
1959 1242 hpanther
done
1960 1576 phoenix
done
1961 1242 hpanther
 
1962 7 jrydberg
fi
1963
fi
1964 1242 hpanther
CC=$ac_cv_prog_CC
1965 7 jrydberg
if test -n "$CC"; then
1966 1576 phoenix
  echo "$as_me:$LINENO: result: $CC" >&5
1967 1242 hpanther
echo "${ECHO_T}$CC" >&6
1968 7 jrydberg
else
1969 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
1970 1242 hpanther
echo "${ECHO_T}no" >&6
1971 7 jrydberg
fi
1972
 
1973 1242 hpanther
fi
1974
if test -z "$ac_cv_prog_CC"; then
1975
  ac_ct_CC=$CC
1976
  # Extract the first word of "cc", so it can be a program name with args.
1977
set dummy cc; ac_word=$2
1978 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981
  echo $ECHO_N "(cached) $ECHO_C" >&6
1982
else
1983
  if test -n "$ac_ct_CC"; then
1984
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985
else
1986 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987
for as_dir in $PATH
1988
do
1989
  IFS=$as_save_IFS
1990
  test -z "$as_dir" && as_dir=.
1991
  for ac_exec_ext in '' $ac_executable_extensions; do
1992
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993
    ac_cv_prog_ac_ct_CC="cc"
1994
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995
    break 2
1996
  fi
1997 1242 hpanther
done
1998 1576 phoenix
done
1999 1242 hpanther
 
2000
fi
2001
fi
2002
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003
if test -n "$ac_ct_CC"; then
2004 1576 phoenix
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005 1242 hpanther
echo "${ECHO_T}$ac_ct_CC" >&6
2006
else
2007 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
2008 1242 hpanther
echo "${ECHO_T}no" >&6
2009
fi
2010
 
2011
  CC=$ac_ct_CC
2012
else
2013
  CC="$ac_cv_prog_CC"
2014
fi
2015
 
2016
fi
2017 7 jrydberg
if test -z "$CC"; then
2018
  # Extract the first word of "cc", so it can be a program name with args.
2019
set dummy cc; ac_word=$2
2020 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022
if test "${ac_cv_prog_CC+set}" = set; then
2023
  echo $ECHO_N "(cached) $ECHO_C" >&6
2024 7 jrydberg
else
2025
  if test -n "$CC"; then
2026
  ac_cv_prog_CC="$CC" # Let the user override the test.
2027
else
2028
  ac_prog_rejected=no
2029 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
for as_dir in $PATH
2031
do
2032
  IFS=$as_save_IFS
2033
  test -z "$as_dir" && as_dir=.
2034
  for ac_exec_ext in '' $ac_executable_extensions; do
2035
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2037
       ac_prog_rejected=yes
2038
       continue
2039
     fi
2040
    ac_cv_prog_CC="cc"
2041
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042
    break 2
2043
  fi
2044 1242 hpanther
done
2045 1576 phoenix
done
2046 1242 hpanther
 
2047 7 jrydberg
if test $ac_prog_rejected = yes; then
2048
  # We found a bogon in the path, so make sure we never use it.
2049
  set dummy $ac_cv_prog_CC
2050
  shift
2051 1242 hpanther
  if test $# != 0; then
2052 7 jrydberg
    # We chose a different compiler from the bogus one.
2053
    # However, it has the same basename, so the bogon will be chosen
2054
    # first if we set CC to just the basename; use the full file name.
2055
    shift
2056 1576 phoenix
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2057 7 jrydberg
  fi
2058
fi
2059
fi
2060
fi
2061 1242 hpanther
CC=$ac_cv_prog_CC
2062 7 jrydberg
if test -n "$CC"; then
2063 1576 phoenix
  echo "$as_me:$LINENO: result: $CC" >&5
2064 1242 hpanther
echo "${ECHO_T}$CC" >&6
2065 7 jrydberg
else
2066 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
2067 1242 hpanther
echo "${ECHO_T}no" >&6
2068 7 jrydberg
fi
2069
 
2070 1242 hpanther
fi
2071
if test -z "$CC"; then
2072
  if test -n "$ac_tool_prefix"; then
2073
  for ac_prog in cl
2074
  do
2075
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2076
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079
if test "${ac_cv_prog_CC+set}" = set; then
2080
  echo $ECHO_N "(cached) $ECHO_C" >&6
2081 7 jrydberg
else
2082
  if test -n "$CC"; then
2083
  ac_cv_prog_CC="$CC" # Let the user override the test.
2084
else
2085 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086
for as_dir in $PATH
2087
do
2088
  IFS=$as_save_IFS
2089
  test -z "$as_dir" && as_dir=.
2090
  for ac_exec_ext in '' $ac_executable_extensions; do
2091
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094
    break 2
2095
  fi
2096 1242 hpanther
done
2097 1576 phoenix
done
2098 1242 hpanther
 
2099 7 jrydberg
fi
2100
fi
2101 1242 hpanther
CC=$ac_cv_prog_CC
2102 7 jrydberg
if test -n "$CC"; then
2103 1576 phoenix
  echo "$as_me:$LINENO: result: $CC" >&5
2104 1242 hpanther
echo "${ECHO_T}$CC" >&6
2105 7 jrydberg
else
2106 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
2107 1242 hpanther
echo "${ECHO_T}no" >&6
2108 7 jrydberg
fi
2109 1242 hpanther
 
2110
    test -n "$CC" && break
2111
  done
2112
fi
2113
if test -z "$CC"; then
2114
  ac_ct_CC=$CC
2115
  for ac_prog in cl
2116
do
2117
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2118
set dummy $ac_prog; ac_word=$2
2119 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122
  echo $ECHO_N "(cached) $ECHO_C" >&6
2123
else
2124
  if test -n "$ac_ct_CC"; then
2125
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126
else
2127 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128
for as_dir in $PATH
2129
do
2130
  IFS=$as_save_IFS
2131
  test -z "$as_dir" && as_dir=.
2132
  for ac_exec_ext in '' $ac_executable_extensions; do
2133
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134
    ac_cv_prog_ac_ct_CC="$ac_prog"
2135
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136
    break 2
2137
  fi
2138 1242 hpanther
done
2139 1576 phoenix
done
2140 1242 hpanther
 
2141 7 jrydberg
fi
2142 1242 hpanther
fi
2143
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144
if test -n "$ac_ct_CC"; then
2145 1576 phoenix
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 1242 hpanther
echo "${ECHO_T}$ac_ct_CC" >&6
2147
else
2148 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
2149 1242 hpanther
echo "${ECHO_T}no" >&6
2150
fi
2151 7 jrydberg
 
2152 1242 hpanther
  test -n "$ac_ct_CC" && break
2153
done
2154 7 jrydberg
 
2155 1242 hpanther
  CC=$ac_ct_CC
2156
fi
2157 7 jrydberg
 
2158 1242 hpanther
fi
2159 7 jrydberg
 
2160 1576 phoenix
 
2161
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2162
See \`config.log' for more details." >&5
2163
echo "$as_me: error: no acceptable C compiler found in \$PATH
2164
See \`config.log' for more details." >&2;}
2165 1242 hpanther
   { (exit 1); exit 1; }; }
2166
 
2167
# Provide some information about the compiler.
2168 1576 phoenix
echo "$as_me:$LINENO:" \
2169 1242 hpanther
     "checking for C compiler version" >&5
2170
ac_compiler=`set X $ac_compile; echo $2`
2171 1576 phoenix
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2172 1242 hpanther
  (eval $ac_compiler --version &5) 2>&5
2173
  ac_status=$?
2174 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 1242 hpanther
  (exit $ac_status); }
2176 1576 phoenix
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2177 1242 hpanther
  (eval $ac_compiler -v &5) 2>&5
2178
  ac_status=$?
2179 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 1242 hpanther
  (exit $ac_status); }
2181 1576 phoenix
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2182 1242 hpanther
  (eval $ac_compiler -V &5) 2>&5
2183
  ac_status=$?
2184 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 1242 hpanther
  (exit $ac_status); }
2186
 
2187
cat >conftest.$ac_ext <<_ACEOF
2188 1576 phoenix
/* confdefs.h.  */
2189
_ACEOF
2190
cat confdefs.h >>conftest.$ac_ext
2191
cat >>conftest.$ac_ext <<_ACEOF
2192
/* end confdefs.h.  */
2193 1242 hpanther
 
2194
int
2195
main ()
2196
{
2197
 
2198
  ;
2199
  return 0;
2200
}
2201
_ACEOF
2202
ac_clean_files_save=$ac_clean_files
2203 1576 phoenix
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2204 1242 hpanther
# Try to create an executable without -o first, disregard a.out.
2205
# It will help us diagnose broken compilers, and finding out an intuition
2206
# of exeext.
2207 1576 phoenix
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2208
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2209 1242 hpanther
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2211 1242 hpanther
  (eval $ac_link_default) 2>&5
2212
  ac_status=$?
2213 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 1242 hpanther
  (exit $ac_status); }; then
2215
  # Find the output, starting from the most likely.  This scheme is
2216
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217
# resort.
2218 1576 phoenix
 
2219
# Be careful to initialize this variable, since it used to be cached.
2220
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2221
ac_cv_exeext=
2222
# b.out is created by i960 compilers.
2223
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2224
do
2225
  test -f "$ac_file" || continue
2226 1242 hpanther
  case $ac_file in
2227 1576 phoenix
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228
        ;;
2229
    conftest.$ac_ext )
2230
        # This is the source file.
2231
        ;;
2232
    [ab].out )
2233
        # We found the default executable, but exeext='' is most
2234
        # certainly right.
2235
        break;;
2236
    *.* )
2237
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2239
        # but it would be cool to find out if it's true.  Does anybody
2240
        # maintain Libtool? --akim.
2241
        export ac_cv_exeext
2242
        break;;
2243
    * )
2244
        break;;
2245 1242 hpanther
  esac
2246
done
2247
else
2248
  echo "$as_me: failed program was:" >&5
2249 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2250
 
2251
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252
See \`config.log' for more details." >&5
2253
echo "$as_me: error: C compiler cannot create executables
2254
See \`config.log' for more details." >&2;}
2255 1242 hpanther
   { (exit 77); exit 77; }; }
2256
fi
2257
 
2258
ac_exeext=$ac_cv_exeext
2259 1576 phoenix
echo "$as_me:$LINENO: result: $ac_file" >&5
2260 1242 hpanther
echo "${ECHO_T}$ac_file" >&6
2261
 
2262
# Check the compiler produces executables we can run.  If not, either
2263
# the compiler is broken, or we cross compile.
2264 1576 phoenix
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265 1242 hpanther
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2266
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267
# If not cross compiling, check that we can run a simple program.
2268
if test "$cross_compiling" != yes; then
2269
  if { ac_try='./$ac_file'
2270 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 1242 hpanther
  (eval $ac_try) 2>&5
2272
  ac_status=$?
2273 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 1242 hpanther
  (exit $ac_status); }; }; then
2275
    cross_compiling=no
2276 7 jrydberg
  else
2277 1242 hpanther
    if test "$cross_compiling" = maybe; then
2278
        cross_compiling=yes
2279
    else
2280 1576 phoenix
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281
If you meant to cross compile, use \`--host'.
2282
See \`config.log' for more details." >&5
2283 1242 hpanther
echo "$as_me: error: cannot run C compiled programs.
2284 1576 phoenix
If you meant to cross compile, use \`--host'.
2285
See \`config.log' for more details." >&2;}
2286 1242 hpanther
   { (exit 1); exit 1; }; }
2287
    fi
2288 7 jrydberg
  fi
2289
fi
2290 1576 phoenix
echo "$as_me:$LINENO: result: yes" >&5
2291 1242 hpanther
echo "${ECHO_T}yes" >&6
2292 7 jrydberg
 
2293 1576 phoenix
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294 1242 hpanther
ac_clean_files=$ac_clean_files_save
2295
# Check the compiler produces executables we can run.  If not, either
2296
# the compiler is broken, or we cross compile.
2297 1576 phoenix
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298 1242 hpanther
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2299 1576 phoenix
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300 1242 hpanther
echo "${ECHO_T}$cross_compiling" >&6
2301
 
2302 1576 phoenix
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2305 1242 hpanther
  (eval $ac_link) 2>&5
2306
  ac_status=$?
2307 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 1242 hpanther
  (exit $ac_status); }; then
2309
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2310
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2311
# work properly (i.e., refer to `conftest.exe'), while it won't with
2312
# `rm'.
2313 1576 phoenix
for ac_file in conftest.exe conftest conftest.*; do
2314
  test -f "$ac_file" || continue
2315 1242 hpanther
  case $ac_file in
2316 1576 phoenix
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2317 1242 hpanther
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318 1576 phoenix
          export ac_cv_exeext
2319
          break;;
2320 1242 hpanther
    * ) break;;
2321
  esac
2322
done
2323
else
2324 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325
See \`config.log' for more details." >&5
2326
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327
See \`config.log' for more details." >&2;}
2328 1242 hpanther
   { (exit 1); exit 1; }; }
2329 7 jrydberg
fi
2330
 
2331 1242 hpanther
rm -f conftest$ac_cv_exeext
2332 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333 1242 hpanther
echo "${ECHO_T}$ac_cv_exeext" >&6
2334
 
2335
rm -f conftest.$ac_ext
2336
EXEEXT=$ac_cv_exeext
2337
ac_exeext=$EXEEXT
2338 1576 phoenix
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2340 1242 hpanther
if test "${ac_cv_objext+set}" = set; then
2341
  echo $ECHO_N "(cached) $ECHO_C" >&6
2342 7 jrydberg
else
2343 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
2344 1576 phoenix
/* confdefs.h.  */
2345
_ACEOF
2346
cat confdefs.h >>conftest.$ac_ext
2347
cat >>conftest.$ac_ext <<_ACEOF
2348
/* end confdefs.h.  */
2349 1242 hpanther
 
2350
int
2351
main ()
2352
{
2353
 
2354
  ;
2355
  return 0;
2356
}
2357
_ACEOF
2358
rm -f conftest.o conftest.obj
2359 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 1242 hpanther
  (eval $ac_compile) 2>&5
2361
  ac_status=$?
2362 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 1242 hpanther
  (exit $ac_status); }; then
2364
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365
  case $ac_file in
2366 1576 phoenix
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2367 1242 hpanther
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368
       break;;
2369
  esac
2370
done
2371 7 jrydberg
else
2372 1242 hpanther
  echo "$as_me: failed program was:" >&5
2373 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2374
 
2375
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376
See \`config.log' for more details." >&5
2377
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378
See \`config.log' for more details." >&2;}
2379 1242 hpanther
   { (exit 1); exit 1; }; }
2380 7 jrydberg
fi
2381 1242 hpanther
 
2382
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 7 jrydberg
fi
2384 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385 1242 hpanther
echo "${ECHO_T}$ac_cv_objext" >&6
2386
OBJEXT=$ac_cv_objext
2387
ac_objext=$OBJEXT
2388 1576 phoenix
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389 1242 hpanther
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2390
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391
  echo $ECHO_N "(cached) $ECHO_C" >&6
2392
else
2393
  cat >conftest.$ac_ext <<_ACEOF
2394 1576 phoenix
/* confdefs.h.  */
2395
_ACEOF
2396
cat confdefs.h >>conftest.$ac_ext
2397
cat >>conftest.$ac_ext <<_ACEOF
2398
/* end confdefs.h.  */
2399 7 jrydberg
 
2400 1242 hpanther
int
2401
main ()
2402
{
2403
#ifndef __GNUC__
2404
       choke me
2405
#endif
2406 7 jrydberg
 
2407 1242 hpanther
  ;
2408
  return 0;
2409
}
2410
_ACEOF
2411
rm -f conftest.$ac_objext
2412 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413
  (eval $ac_compile) 2>conftest.er1
2414 1242 hpanther
  ac_status=$?
2415 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
2416
  rm -f conftest.er1
2417
  cat conftest.err >&5
2418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 1242 hpanther
  (exit $ac_status); } &&
2420 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
2421
                         || test ! -s conftest.err'
2422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 1242 hpanther
  (eval $ac_try) 2>&5
2424
  ac_status=$?
2425 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
  (exit $ac_status); }; } &&
2427
         { ac_try='test -s conftest.$ac_objext'
2428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429
  (eval $ac_try) 2>&5
2430
  ac_status=$?
2431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 1242 hpanther
  (exit $ac_status); }; }; then
2433
  ac_compiler_gnu=yes
2434 7 jrydberg
else
2435 1242 hpanther
  echo "$as_me: failed program was:" >&5
2436 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2437
 
2438 1242 hpanther
ac_compiler_gnu=no
2439 7 jrydberg
fi
2440 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441 1242 hpanther
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442 7 jrydberg
 
2443 1242 hpanther
fi
2444 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445 1242 hpanther
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2446
GCC=`test $ac_compiler_gnu = yes && echo yes`
2447
ac_test_CFLAGS=${CFLAGS+set}
2448
ac_save_CFLAGS=$CFLAGS
2449
CFLAGS="-g"
2450 1576 phoenix
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451 1242 hpanther
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2452
if test "${ac_cv_prog_cc_g+set}" = set; then
2453
  echo $ECHO_N "(cached) $ECHO_C" >&6
2454 7 jrydberg
else
2455 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
2456 1576 phoenix
/* confdefs.h.  */
2457
_ACEOF
2458
cat confdefs.h >>conftest.$ac_ext
2459
cat >>conftest.$ac_ext <<_ACEOF
2460
/* end confdefs.h.  */
2461 1242 hpanther
 
2462
int
2463
main ()
2464
{
2465
 
2466
  ;
2467
  return 0;
2468
}
2469
_ACEOF
2470
rm -f conftest.$ac_objext
2471 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472
  (eval $ac_compile) 2>conftest.er1
2473 1242 hpanther
  ac_status=$?
2474 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
2475
  rm -f conftest.er1
2476
  cat conftest.err >&5
2477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 1242 hpanther
  (exit $ac_status); } &&
2479 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
2480
                         || test ! -s conftest.err'
2481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 1242 hpanther
  (eval $ac_try) 2>&5
2483
  ac_status=$?
2484 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
  (exit $ac_status); }; } &&
2486
         { ac_try='test -s conftest.$ac_objext'
2487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488
  (eval $ac_try) 2>&5
2489
  ac_status=$?
2490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 1242 hpanther
  (exit $ac_status); }; }; then
2492 7 jrydberg
  ac_cv_prog_cc_g=yes
2493
else
2494 1242 hpanther
  echo "$as_me: failed program was:" >&5
2495 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2496
 
2497 1242 hpanther
ac_cv_prog_cc_g=no
2498 7 jrydberg
fi
2499 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500 1242 hpanther
fi
2501 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2502 1242 hpanther
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2503 7 jrydberg
if test "$ac_test_CFLAGS" = set; then
2504 1242 hpanther
  CFLAGS=$ac_save_CFLAGS
2505 7 jrydberg
elif test $ac_cv_prog_cc_g = yes; then
2506
  if test "$GCC" = yes; then
2507
    CFLAGS="-g -O2"
2508
  else
2509
    CFLAGS="-g"
2510
  fi
2511
else
2512
  if test "$GCC" = yes; then
2513
    CFLAGS="-O2"
2514
  else
2515
    CFLAGS=
2516
  fi
2517
fi
2518 1576 phoenix
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2519
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2520
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2521
  echo $ECHO_N "(cached) $ECHO_C" >&6
2522
else
2523
  ac_cv_prog_cc_stdc=no
2524
ac_save_CC=$CC
2525
cat >conftest.$ac_ext <<_ACEOF
2526
/* confdefs.h.  */
2527
_ACEOF
2528
cat confdefs.h >>conftest.$ac_ext
2529
cat >>conftest.$ac_ext <<_ACEOF
2530
/* end confdefs.h.  */
2531
#include 
2532
#include 
2533
#include 
2534
#include 
2535
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2536
struct buf { int x; };
2537
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2538
static char *e (p, i)
2539
     char **p;
2540
     int i;
2541
{
2542
  return p[i];
2543
}
2544
static char *f (char * (*g) (char **, int), char **p, ...)
2545
{
2546
  char *s;
2547
  va_list v;
2548
  va_start (v,p);
2549
  s = g (p, va_arg (v,int));
2550
  va_end (v);
2551
  return s;
2552
}
2553
 
2554
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2555
   function prototypes and stuff, but not '\xHH' hex character constants.
2556
   These don't provoke an error unfortunately, instead are silently treated
2557
   as 'x'.  The following induces an error, until -std1 is added to get
2558
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2559
   array size at least.  It's necessary to write '\x00'==0 to get something
2560
   that's true only with -std1.  */
2561
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2562
 
2563
int test (int i, double x);
2564
struct s1 {int (*f) (int a);};
2565
struct s2 {int (*f) (double a);};
2566
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567
int argc;
2568
char **argv;
2569
int
2570
main ()
2571
{
2572
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2573
  ;
2574
  return 0;
2575
}
2576
_ACEOF
2577
# Don't try gcc -ansi; that turns off useful extensions and
2578
# breaks some systems' header files.
2579
# AIX                   -qlanglvl=ansi
2580
# Ultrix and OSF/1      -std1
2581
# HP-UX 10.20 and later -Ae
2582
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2583
# SVR4                  -Xc -D__EXTENSIONS__
2584
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585
do
2586
  CC="$ac_save_CC $ac_arg"
2587
  rm -f conftest.$ac_objext
2588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589
  (eval $ac_compile) 2>conftest.er1
2590
  ac_status=$?
2591
  grep -v '^ *+' conftest.er1 >conftest.err
2592
  rm -f conftest.er1
2593
  cat conftest.err >&5
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
  (exit $ac_status); } &&
2596
         { ac_try='test -z "$ac_c_werror_flag"
2597
                         || test ! -s conftest.err'
2598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599
  (eval $ac_try) 2>&5
2600
  ac_status=$?
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
  (exit $ac_status); }; } &&
2603
         { ac_try='test -s conftest.$ac_objext'
2604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605
  (eval $ac_try) 2>&5
2606
  ac_status=$?
2607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
  (exit $ac_status); }; }; then
2609
  ac_cv_prog_cc_stdc=$ac_arg
2610
break
2611
else
2612
  echo "$as_me: failed program was:" >&5
2613
sed 's/^/| /' conftest.$ac_ext >&5
2614
 
2615
fi
2616
rm -f conftest.err conftest.$ac_objext
2617
done
2618
rm -f conftest.$ac_ext conftest.$ac_objext
2619
CC=$ac_save_CC
2620
 
2621
fi
2622
 
2623
case "x$ac_cv_prog_cc_stdc" in
2624
  x|xno)
2625
    echo "$as_me:$LINENO: result: none needed" >&5
2626
echo "${ECHO_T}none needed" >&6 ;;
2627
  *)
2628
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2629
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2630
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2631
esac
2632
 
2633 1242 hpanther
# Some people use a C++ compiler to compile C.  Since we use `exit',
2634
# in C++ we need to declare it.  In case someone uses the same compiler
2635
# for both compiling C and C++ we need to have the C++ compiler decide
2636
# the declaration of exit, since it's the most demanding environment.
2637
cat >conftest.$ac_ext <<_ACEOF
2638
#ifndef __cplusplus
2639
  choke me
2640
#endif
2641
_ACEOF
2642
rm -f conftest.$ac_objext
2643 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644
  (eval $ac_compile) 2>conftest.er1
2645 1242 hpanther
  ac_status=$?
2646 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
2647
  rm -f conftest.er1
2648
  cat conftest.err >&5
2649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 1242 hpanther
  (exit $ac_status); } &&
2651 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
2652
                         || test ! -s conftest.err'
2653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 1242 hpanther
  (eval $ac_try) 2>&5
2655
  ac_status=$?
2656 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657
  (exit $ac_status); }; } &&
2658
         { ac_try='test -s conftest.$ac_objext'
2659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660
  (eval $ac_try) 2>&5
2661
  ac_status=$?
2662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 1242 hpanther
  (exit $ac_status); }; }; then
2664
  for ac_declaration in \
2665 1576 phoenix
   '' \
2666 1242 hpanther
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2667
   'extern "C" void std::exit (int); using std::exit;' \
2668
   'extern "C" void exit (int) throw ();' \
2669
   'extern "C" void exit (int);' \
2670
   'void exit (int);'
2671
do
2672
  cat >conftest.$ac_ext <<_ACEOF
2673 1576 phoenix
/* confdefs.h.  */
2674
_ACEOF
2675
cat confdefs.h >>conftest.$ac_ext
2676
cat >>conftest.$ac_ext <<_ACEOF
2677
/* end confdefs.h.  */
2678
$ac_declaration
2679 1242 hpanther
#include 
2680
int
2681
main ()
2682
{
2683
exit (42);
2684
  ;
2685
  return 0;
2686
}
2687
_ACEOF
2688
rm -f conftest.$ac_objext
2689 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690
  (eval $ac_compile) 2>conftest.er1
2691 1242 hpanther
  ac_status=$?
2692 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
2693
  rm -f conftest.er1
2694
  cat conftest.err >&5
2695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 1242 hpanther
  (exit $ac_status); } &&
2697 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
2698
                         || test ! -s conftest.err'
2699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 1242 hpanther
  (eval $ac_try) 2>&5
2701
  ac_status=$?
2702 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703
  (exit $ac_status); }; } &&
2704
         { ac_try='test -s conftest.$ac_objext'
2705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706
  (eval $ac_try) 2>&5
2707
  ac_status=$?
2708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 1242 hpanther
  (exit $ac_status); }; }; then
2710
  :
2711
else
2712
  echo "$as_me: failed program was:" >&5
2713 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2714
 
2715 1242 hpanther
continue
2716
fi
2717 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
2719 1576 phoenix
/* confdefs.h.  */
2720
_ACEOF
2721
cat confdefs.h >>conftest.$ac_ext
2722
cat >>conftest.$ac_ext <<_ACEOF
2723
/* end confdefs.h.  */
2724 1242 hpanther
$ac_declaration
2725
int
2726
main ()
2727
{
2728
exit (42);
2729
  ;
2730
  return 0;
2731
}
2732
_ACEOF
2733
rm -f conftest.$ac_objext
2734 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735
  (eval $ac_compile) 2>conftest.er1
2736 1242 hpanther
  ac_status=$?
2737 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
2738
  rm -f conftest.er1
2739
  cat conftest.err >&5
2740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 1242 hpanther
  (exit $ac_status); } &&
2742 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
2743
                         || test ! -s conftest.err'
2744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 1242 hpanther
  (eval $ac_try) 2>&5
2746
  ac_status=$?
2747 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748
  (exit $ac_status); }; } &&
2749
         { ac_try='test -s conftest.$ac_objext'
2750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751
  (eval $ac_try) 2>&5
2752
  ac_status=$?
2753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 1242 hpanther
  (exit $ac_status); }; }; then
2755
  break
2756
else
2757
  echo "$as_me: failed program was:" >&5
2758 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2759
 
2760 1242 hpanther
fi
2761 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762 1242 hpanther
done
2763
rm -f conftest*
2764
if test -n "$ac_declaration"; then
2765
  echo '#ifdef __cplusplus' >>confdefs.h
2766
  echo $ac_declaration      >>confdefs.h
2767
  echo '#endif'             >>confdefs.h
2768
fi
2769
 
2770
else
2771
  echo "$as_me: failed program was:" >&5
2772 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
2773
 
2774 1242 hpanther
fi
2775 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776 1242 hpanther
ac_ext=c
2777
ac_cpp='$CPP $CPPFLAGS'
2778
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 1576 phoenix
DEPDIR="${am__leading_dot}deps"
2782 1242 hpanther
 
2783 1576 phoenix
          ac_config_commands="$ac_config_commands depfiles"
2784 1242 hpanther
 
2785 1576 phoenix
 
2786 1242 hpanther
am_make=${MAKE-make}
2787
cat > confinc << 'END'
2788 1576 phoenix
am__doit:
2789 1242 hpanther
        @echo done
2790 1576 phoenix
.PHONY: am__doit
2791 1242 hpanther
END
2792
# If we don't find an include directive, just comment out the code.
2793 1576 phoenix
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2794 1242 hpanther
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2795
am__include="#"
2796
am__quote=
2797
_am_result=none
2798
# First try GNU make style include.
2799
echo "include confinc" > confmf
2800
# We grep out `Entering directory' and `Leaving directory'
2801
# messages which can occur if `w' ends up in MAKEFLAGS.
2802
# In particular we don't look at `^make:' because GNU make might
2803
# be invoked under some other name (usually "gmake"), in which
2804
# case it prints its new name instead of `make'.
2805 1576 phoenix
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2806 1242 hpanther
   am__include=include
2807
   am__quote=
2808
   _am_result=GNU
2809
fi
2810
# Now try BSD make style include.
2811
if test "$am__include" = "#"; then
2812
   echo '.include "confinc"' > confmf
2813
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2814
      am__include=.include
2815
      am__quote="\""
2816
      _am_result=BSD
2817
   fi
2818
fi
2819
 
2820 1576 phoenix
 
2821
echo "$as_me:$LINENO: result: $_am_result" >&5
2822 1242 hpanther
echo "${ECHO_T}$_am_result" >&6
2823
rm -f confinc confmf
2824
 
2825
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2826
if test "${enable_dependency_tracking+set}" = set; then
2827
  enableval="$enable_dependency_tracking"
2828
 
2829
fi;
2830
if test "x$enable_dependency_tracking" != xno; then
2831
  am_depcomp="$ac_aux_dir/depcomp"
2832
  AMDEPBACKSLASH='\'
2833
fi
2834
 
2835 1576 phoenix
 
2836 1242 hpanther
if test "x$enable_dependency_tracking" != xno; then
2837
  AMDEP_TRUE=
2838
  AMDEP_FALSE='#'
2839
else
2840
  AMDEP_TRUE='#'
2841
  AMDEP_FALSE=
2842
fi
2843
 
2844 1576 phoenix
 
2845
 
2846
 
2847 1242 hpanther
depcc="$CC"   am_compiler_list=
2848
 
2849 1576 phoenix
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2850 1242 hpanther
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2851
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2852
  echo $ECHO_N "(cached) $ECHO_C" >&6
2853
else
2854
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2855
  # We make a subdir and do the tests there.  Otherwise we can end up
2856
  # making bogus files that we don't know about and never remove.  For
2857
  # instance it was reported that on HP-UX the gcc test will end up
2858
  # making a dummy file named `D' -- because `-MD' means `put the output
2859
  # in D'.
2860
  mkdir conftest.dir
2861
  # Copy depcomp to subdir because otherwise we won't find it if we're
2862
  # using a relative directory.
2863
  cp "$am_depcomp" conftest.dir
2864
  cd conftest.dir
2865 1576 phoenix
  # We will build objects and dependencies in a subdirectory because
2866
  # it helps to detect inapplicable dependency modes.  For instance
2867
  # both Tru64's cc and ICC support -MD to output dependencies as a
2868
  # side effect of compilation, but ICC will put the dependencies in
2869
  # the current directory while Tru64 will put them in the object
2870
  # directory.
2871
  mkdir sub
2872 1242 hpanther
 
2873
  am_cv_CC_dependencies_compiler_type=none
2874
  if test "$am_compiler_list" = ""; then
2875
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2876
  fi
2877
  for depmode in $am_compiler_list; do
2878 1576 phoenix
    # Setup a source with many dependencies, because some compilers
2879
    # like to wrap large dependency lists on column 80 (with \), and
2880
    # we should not choose a depcomp mode which is confused by this.
2881
    #
2882 1242 hpanther
    # We need to recreate these files for each test, as the compiler may
2883
    # overwrite some of them when testing with obscure command lines.
2884
    # This happens at least with the AIX C compiler.
2885 1576 phoenix
    : > sub/conftest.c
2886
    for i in 1 2 3 4 5 6; do
2887
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2888
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2889
      # Solaris 8's {/usr,}/bin/sh.
2890
      touch sub/conftst$i.h
2891
    done
2892
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2893 1242 hpanther
 
2894
    case $depmode in
2895
    nosideeffect)
2896
      # after this tag, mechanisms are not by side-effect, so they'll
2897
      # only be used when explicitly requested
2898
      if test "x$enable_dependency_tracking" = xyes; then
2899
        continue
2900
      else
2901
        break
2902
      fi
2903
      ;;
2904
    none) break ;;
2905
    esac
2906
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2907
    # mode.  It turns out that the SunPro C++ compiler does not properly
2908
    # handle `-M -o', and we need to detect this.
2909
    if depmode=$depmode \
2910 1576 phoenix
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2911
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2912
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2913
         >/dev/null 2>conftest.err &&
2914
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2915
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2916 1242 hpanther
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2917 1576 phoenix
      # icc doesn't choke on unknown options, it will just issue warnings
2918
      # or remarks (even with -Werror).  So we grep stderr for any message
2919
      # that says an option was ignored or not supported.
2920
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2921
      #   icc: Command line warning: ignoring option '-M'; no argument required
2922
      # The diagnosis changed in icc 8.0:
2923
      #   icc: Command line remark: option '-MP' not supported
2924
      if (grep 'ignoring option' conftest.err ||
2925
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2926
        am_cv_CC_dependencies_compiler_type=$depmode
2927
        break
2928
      fi
2929 1242 hpanther
    fi
2930
  done
2931
 
2932
  cd ..
2933
  rm -rf conftest.dir
2934
else
2935
  am_cv_CC_dependencies_compiler_type=none
2936
fi
2937
 
2938
fi
2939 1576 phoenix
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2940 1242 hpanther
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2941
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2942
 
2943 1576 phoenix
 
2944
 
2945
if
2946
  test "x$enable_dependency_tracking" != xno \
2947
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2948
  am__fastdepCC_TRUE=
2949
  am__fastdepCC_FALSE='#'
2950
else
2951
  am__fastdepCC_TRUE='#'
2952
  am__fastdepCC_FALSE=
2953
fi
2954
 
2955
 
2956
 
2957 1242 hpanther
ac_ext=c
2958
ac_cpp='$CPP $CPPFLAGS'
2959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 1576 phoenix
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2963 1242 hpanther
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2964 7 jrydberg
# On Suns, sometimes $CPP names a directory.
2965
if test -n "$CPP" && test -d "$CPP"; then
2966
  CPP=
2967
fi
2968
if test -z "$CPP"; then
2969 1242 hpanther
  if test "${ac_cv_prog_CPP+set}" = set; then
2970
  echo $ECHO_N "(cached) $ECHO_C" >&6
2971 7 jrydberg
else
2972 1242 hpanther
      # Double quotes because CPP needs to be expanded
2973
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2974
    do
2975
      ac_preproc_ok=false
2976
for ac_c_preproc_warn_flag in '' yes
2977
do
2978
  # Use a header file that comes with gcc, so configuring glibc
2979
  # with a fresh cross-compiler works.
2980 1576 phoenix
  # Prefer  to  if __STDC__ is defined, since
2981
  #  exists even on freestanding compilers.
2982 7 jrydberg
  # On the NeXT, cc -E runs the code through the compiler's parser,
2983 1242 hpanther
  # not just through cpp. "Syntax error" is here to catch this case.
2984
  cat >conftest.$ac_ext <<_ACEOF
2985 1576 phoenix
/* confdefs.h.  */
2986 1242 hpanther
_ACEOF
2987 1576 phoenix
cat confdefs.h >>conftest.$ac_ext
2988
cat >>conftest.$ac_ext <<_ACEOF
2989
/* end confdefs.h.  */
2990
#ifdef __STDC__
2991
# include 
2992
#else
2993
# include 
2994
#endif
2995
                     Syntax error
2996
_ACEOF
2997
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2998 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999
  ac_status=$?
3000 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3001 1242 hpanther
  rm -f conftest.er1
3002
  cat conftest.err >&5
3003 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 1242 hpanther
  (exit $ac_status); } >/dev/null; then
3005
  if test -s conftest.err; then
3006
    ac_cpp_err=$ac_c_preproc_warn_flag
3007 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3008 1242 hpanther
  else
3009
    ac_cpp_err=
3010
  fi
3011
else
3012
  ac_cpp_err=yes
3013
fi
3014
if test -z "$ac_cpp_err"; then
3015 7 jrydberg
  :
3016
else
3017 1242 hpanther
  echo "$as_me: failed program was:" >&5
3018 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3019
 
3020 1242 hpanther
  # Broken: fails on valid input.
3021
continue
3022
fi
3023
rm -f conftest.err conftest.$ac_ext
3024
 
3025
  # OK, works on sane cases.  Now check whether non-existent headers
3026
  # can be detected and how.
3027
  cat >conftest.$ac_ext <<_ACEOF
3028 1576 phoenix
/* confdefs.h.  */
3029
_ACEOF
3030
cat confdefs.h >>conftest.$ac_ext
3031
cat >>conftest.$ac_ext <<_ACEOF
3032
/* end confdefs.h.  */
3033 1242 hpanther
#include 
3034
_ACEOF
3035 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037
  ac_status=$?
3038 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3039 1242 hpanther
  rm -f conftest.er1
3040
  cat conftest.err >&5
3041 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 1242 hpanther
  (exit $ac_status); } >/dev/null; then
3043
  if test -s conftest.err; then
3044
    ac_cpp_err=$ac_c_preproc_warn_flag
3045 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3046 1242 hpanther
  else
3047
    ac_cpp_err=
3048
  fi
3049
else
3050
  ac_cpp_err=yes
3051
fi
3052
if test -z "$ac_cpp_err"; then
3053
  # Broken: success on invalid input.
3054
continue
3055
else
3056
  echo "$as_me: failed program was:" >&5
3057 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3058
 
3059 1242 hpanther
  # Passes both tests.
3060
ac_preproc_ok=:
3061
break
3062
fi
3063
rm -f conftest.err conftest.$ac_ext
3064
 
3065
done
3066
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067
rm -f conftest.err conftest.$ac_ext
3068
if $ac_preproc_ok; then
3069
  break
3070
fi
3071
 
3072
    done
3073
    ac_cv_prog_CPP=$CPP
3074
 
3075
fi
3076
  CPP=$ac_cv_prog_CPP
3077
else
3078
  ac_cv_prog_CPP=$CPP
3079
fi
3080 1576 phoenix
echo "$as_me:$LINENO: result: $CPP" >&5
3081 1242 hpanther
echo "${ECHO_T}$CPP" >&6
3082
ac_preproc_ok=false
3083
for ac_c_preproc_warn_flag in '' yes
3084
do
3085
  # Use a header file that comes with gcc, so configuring glibc
3086
  # with a fresh cross-compiler works.
3087 1576 phoenix
  # Prefer  to  if __STDC__ is defined, since
3088
  #  exists even on freestanding compilers.
3089 1242 hpanther
  # On the NeXT, cc -E runs the code through the compiler's parser,
3090
  # not just through cpp. "Syntax error" is here to catch this case.
3091
  cat >conftest.$ac_ext <<_ACEOF
3092 1576 phoenix
/* confdefs.h.  */
3093 1242 hpanther
_ACEOF
3094 1576 phoenix
cat confdefs.h >>conftest.$ac_ext
3095
cat >>conftest.$ac_ext <<_ACEOF
3096
/* end confdefs.h.  */
3097
#ifdef __STDC__
3098
# include 
3099
#else
3100
# include 
3101
#endif
3102
                     Syntax error
3103
_ACEOF
3104
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106
  ac_status=$?
3107 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3108 1242 hpanther
  rm -f conftest.er1
3109
  cat conftest.err >&5
3110 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 1242 hpanther
  (exit $ac_status); } >/dev/null; then
3112
  if test -s conftest.err; then
3113
    ac_cpp_err=$ac_c_preproc_warn_flag
3114 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 1242 hpanther
  else
3116
    ac_cpp_err=
3117
  fi
3118
else
3119
  ac_cpp_err=yes
3120
fi
3121
if test -z "$ac_cpp_err"; then
3122 7 jrydberg
  :
3123
else
3124 1242 hpanther
  echo "$as_me: failed program was:" >&5
3125 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3126
 
3127 1242 hpanther
  # Broken: fails on valid input.
3128
continue
3129
fi
3130
rm -f conftest.err conftest.$ac_ext
3131
 
3132
  # OK, works on sane cases.  Now check whether non-existent headers
3133
  # can be detected and how.
3134
  cat >conftest.$ac_ext <<_ACEOF
3135 1576 phoenix
/* confdefs.h.  */
3136
_ACEOF
3137
cat confdefs.h >>conftest.$ac_ext
3138
cat >>conftest.$ac_ext <<_ACEOF
3139
/* end confdefs.h.  */
3140 1242 hpanther
#include 
3141
_ACEOF
3142 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144
  ac_status=$?
3145 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3146 1242 hpanther
  rm -f conftest.er1
3147
  cat conftest.err >&5
3148 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 1242 hpanther
  (exit $ac_status); } >/dev/null; then
3150
  if test -s conftest.err; then
3151
    ac_cpp_err=$ac_c_preproc_warn_flag
3152 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3153 1242 hpanther
  else
3154
    ac_cpp_err=
3155
  fi
3156
else
3157
  ac_cpp_err=yes
3158
fi
3159
if test -z "$ac_cpp_err"; then
3160
  # Broken: success on invalid input.
3161
continue
3162
else
3163
  echo "$as_me: failed program was:" >&5
3164 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3165
 
3166 1242 hpanther
  # Passes both tests.
3167
ac_preproc_ok=:
3168
break
3169
fi
3170
rm -f conftest.err conftest.$ac_ext
3171
 
3172
done
3173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3174
rm -f conftest.err conftest.$ac_ext
3175
if $ac_preproc_ok; then
3176 7 jrydberg
  :
3177
else
3178 1576 phoenix
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3179
See \`config.log' for more details." >&5
3180
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3181
See \`config.log' for more details." >&2;}
3182 1242 hpanther
   { (exit 1); exit 1; }; }
3183 7 jrydberg
fi
3184 1242 hpanther
 
3185
ac_ext=c
3186
ac_cpp='$CPP $CPPFLAGS'
3187
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3190
 
3191 1576 phoenix
 
3192
echo "$as_me:$LINENO: checking for egrep" >&5
3193
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3194
if test "${ac_cv_prog_egrep+set}" = set; then
3195
  echo $ECHO_N "(cached) $ECHO_C" >&6
3196
else
3197
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3198
    then ac_cv_prog_egrep='grep -E'
3199
    else ac_cv_prog_egrep='egrep'
3200
    fi
3201
fi
3202
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3203
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3204
 EGREP=$ac_cv_prog_egrep
3205
 
3206
 
3207
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3208
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3209
if test "${ac_cv_header_stdc+set}" = set; then
3210
  echo $ECHO_N "(cached) $ECHO_C" >&6
3211
else
3212
  cat >conftest.$ac_ext <<_ACEOF
3213
/* confdefs.h.  */
3214
_ACEOF
3215
cat confdefs.h >>conftest.$ac_ext
3216
cat >>conftest.$ac_ext <<_ACEOF
3217
/* end confdefs.h.  */
3218
#include 
3219
#include 
3220
#include 
3221
#include 
3222
 
3223
int
3224
main ()
3225
{
3226
 
3227
  ;
3228
  return 0;
3229
}
3230
_ACEOF
3231
rm -f conftest.$ac_objext
3232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233
  (eval $ac_compile) 2>conftest.er1
3234
  ac_status=$?
3235
  grep -v '^ *+' conftest.er1 >conftest.err
3236
  rm -f conftest.er1
3237
  cat conftest.err >&5
3238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239
  (exit $ac_status); } &&
3240
         { ac_try='test -z "$ac_c_werror_flag"
3241
                         || test ! -s conftest.err'
3242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243
  (eval $ac_try) 2>&5
3244
  ac_status=$?
3245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246
  (exit $ac_status); }; } &&
3247
         { ac_try='test -s conftest.$ac_objext'
3248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249
  (eval $ac_try) 2>&5
3250
  ac_status=$?
3251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252
  (exit $ac_status); }; }; then
3253
  ac_cv_header_stdc=yes
3254
else
3255
  echo "$as_me: failed program was:" >&5
3256
sed 's/^/| /' conftest.$ac_ext >&5
3257
 
3258
ac_cv_header_stdc=no
3259
fi
3260
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3261
 
3262
if test $ac_cv_header_stdc = yes; then
3263
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264
  cat >conftest.$ac_ext <<_ACEOF
3265
/* confdefs.h.  */
3266
_ACEOF
3267
cat confdefs.h >>conftest.$ac_ext
3268
cat >>conftest.$ac_ext <<_ACEOF
3269
/* end confdefs.h.  */
3270
#include 
3271
 
3272
_ACEOF
3273
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274
  $EGREP "memchr" >/dev/null 2>&1; then
3275
  :
3276
else
3277
  ac_cv_header_stdc=no
3278
fi
3279
rm -f conftest*
3280
 
3281
fi
3282
 
3283
if test $ac_cv_header_stdc = yes; then
3284
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3285
  cat >conftest.$ac_ext <<_ACEOF
3286
/* confdefs.h.  */
3287
_ACEOF
3288
cat confdefs.h >>conftest.$ac_ext
3289
cat >>conftest.$ac_ext <<_ACEOF
3290
/* end confdefs.h.  */
3291
#include 
3292
 
3293
_ACEOF
3294
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295
  $EGREP "free" >/dev/null 2>&1; then
3296
  :
3297
else
3298
  ac_cv_header_stdc=no
3299
fi
3300
rm -f conftest*
3301
 
3302
fi
3303
 
3304
if test $ac_cv_header_stdc = yes; then
3305
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3306
  if test "$cross_compiling" = yes; then
3307
  :
3308
else
3309
  cat >conftest.$ac_ext <<_ACEOF
3310
/* confdefs.h.  */
3311
_ACEOF
3312
cat confdefs.h >>conftest.$ac_ext
3313
cat >>conftest.$ac_ext <<_ACEOF
3314
/* end confdefs.h.  */
3315
#include 
3316
#if ((' ' & 0x0FF) == 0x020)
3317
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3318
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3319
#else
3320
# define ISLOWER(c) \
3321
                   (('a' <= (c) && (c) <= 'i') \
3322
                     || ('j' <= (c) && (c) <= 'r') \
3323
                     || ('s' <= (c) && (c) <= 'z'))
3324
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3325
#endif
3326
 
3327
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3328
int
3329
main ()
3330
{
3331
  int i;
3332
  for (i = 0; i < 256; i++)
3333
    if (XOR (islower (i), ISLOWER (i))
3334
        || toupper (i) != TOUPPER (i))
3335
      exit(2);
3336
  exit (0);
3337
}
3338
_ACEOF
3339
rm -f conftest$ac_exeext
3340
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341
  (eval $ac_link) 2>&5
3342
  ac_status=$?
3343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346
  (eval $ac_try) 2>&5
3347
  ac_status=$?
3348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349
  (exit $ac_status); }; }; then
3350
  :
3351
else
3352
  echo "$as_me: program exited with status $ac_status" >&5
3353
echo "$as_me: failed program was:" >&5
3354
sed 's/^/| /' conftest.$ac_ext >&5
3355
 
3356
( exit $ac_status )
3357
ac_cv_header_stdc=no
3358
fi
3359
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360
fi
3361
fi
3362
fi
3363
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3364
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3365
if test $ac_cv_header_stdc = yes; then
3366
 
3367
cat >>confdefs.h <<\_ACEOF
3368
#define STDC_HEADERS 1
3369
_ACEOF
3370
 
3371
fi
3372
 
3373
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3374
 
3375
 
3376
 
3377
 
3378
 
3379
 
3380
 
3381
 
3382
 
3383
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3384
                  inttypes.h stdint.h unistd.h
3385
do
3386
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3387
echo "$as_me:$LINENO: checking for $ac_header" >&5
3388
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3389
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3390
  echo $ECHO_N "(cached) $ECHO_C" >&6
3391
else
3392
  cat >conftest.$ac_ext <<_ACEOF
3393
/* confdefs.h.  */
3394
_ACEOF
3395
cat confdefs.h >>conftest.$ac_ext
3396
cat >>conftest.$ac_ext <<_ACEOF
3397
/* end confdefs.h.  */
3398
$ac_includes_default
3399
 
3400
#include <$ac_header>
3401
_ACEOF
3402
rm -f conftest.$ac_objext
3403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404
  (eval $ac_compile) 2>conftest.er1
3405
  ac_status=$?
3406
  grep -v '^ *+' conftest.er1 >conftest.err
3407
  rm -f conftest.er1
3408
  cat conftest.err >&5
3409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410
  (exit $ac_status); } &&
3411
         { ac_try='test -z "$ac_c_werror_flag"
3412
                         || test ! -s conftest.err'
3413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414
  (eval $ac_try) 2>&5
3415
  ac_status=$?
3416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417
  (exit $ac_status); }; } &&
3418
         { ac_try='test -s conftest.$ac_objext'
3419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420
  (eval $ac_try) 2>&5
3421
  ac_status=$?
3422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
  (exit $ac_status); }; }; then
3424
  eval "$as_ac_Header=yes"
3425
else
3426
  echo "$as_me: failed program was:" >&5
3427
sed 's/^/| /' conftest.$ac_ext >&5
3428
 
3429
eval "$as_ac_Header=no"
3430
fi
3431
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432
fi
3433
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3434
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3435
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436
  cat >>confdefs.h <<_ACEOF
3437
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438
_ACEOF
3439
 
3440
fi
3441
 
3442
done
3443
 
3444
 
3445
if test "${ac_cv_header_minix_config_h+set}" = set; then
3446
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3447 1242 hpanther
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3448
if test "${ac_cv_header_minix_config_h+set}" = set; then
3449
  echo $ECHO_N "(cached) $ECHO_C" >&6
3450 1576 phoenix
fi
3451
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3452
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3453 1242 hpanther
else
3454 1576 phoenix
  # Is the header compilable?
3455
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3456
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3457
cat >conftest.$ac_ext <<_ACEOF
3458
/* confdefs.h.  */
3459
_ACEOF
3460
cat confdefs.h >>conftest.$ac_ext
3461
cat >>conftest.$ac_ext <<_ACEOF
3462
/* end confdefs.h.  */
3463
$ac_includes_default
3464 7 jrydberg
#include 
3465 1242 hpanther
_ACEOF
3466 1576 phoenix
rm -f conftest.$ac_objext
3467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468
  (eval $ac_compile) 2>conftest.er1
3469
  ac_status=$?
3470
  grep -v '^ *+' conftest.er1 >conftest.err
3471
  rm -f conftest.er1
3472
  cat conftest.err >&5
3473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474
  (exit $ac_status); } &&
3475
         { ac_try='test -z "$ac_c_werror_flag"
3476
                         || test ! -s conftest.err'
3477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478
  (eval $ac_try) 2>&5
3479
  ac_status=$?
3480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481
  (exit $ac_status); }; } &&
3482
         { ac_try='test -s conftest.$ac_objext'
3483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484
  (eval $ac_try) 2>&5
3485
  ac_status=$?
3486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487
  (exit $ac_status); }; }; then
3488
  ac_header_compiler=yes
3489
else
3490
  echo "$as_me: failed program was:" >&5
3491
sed 's/^/| /' conftest.$ac_ext >&5
3492
 
3493
ac_header_compiler=no
3494
fi
3495
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3497
echo "${ECHO_T}$ac_header_compiler" >&6
3498
 
3499
# Is the header present?
3500
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3501
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3502
cat >conftest.$ac_ext <<_ACEOF
3503
/* confdefs.h.  */
3504
_ACEOF
3505
cat confdefs.h >>conftest.$ac_ext
3506
cat >>conftest.$ac_ext <<_ACEOF
3507
/* end confdefs.h.  */
3508
#include 
3509
_ACEOF
3510
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3511 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3512
  ac_status=$?
3513 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3514 1242 hpanther
  rm -f conftest.er1
3515
  cat conftest.err >&5
3516 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 1242 hpanther
  (exit $ac_status); } >/dev/null; then
3518
  if test -s conftest.err; then
3519
    ac_cpp_err=$ac_c_preproc_warn_flag
3520 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3521 1242 hpanther
  else
3522
    ac_cpp_err=
3523
  fi
3524
else
3525
  ac_cpp_err=yes
3526 7 jrydberg
fi
3527 1242 hpanther
if test -z "$ac_cpp_err"; then
3528 1576 phoenix
  ac_header_preproc=yes
3529 1242 hpanther
else
3530
  echo "$as_me: failed program was:" >&5
3531 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3532
 
3533
  ac_header_preproc=no
3534 1242 hpanther
fi
3535
rm -f conftest.err conftest.$ac_ext
3536 1576 phoenix
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3537
echo "${ECHO_T}$ac_header_preproc" >&6
3538
 
3539
# So?  What about this header?
3540
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3541
  yes:no: )
3542
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3543
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3544
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3545
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3546
    ac_header_preproc=yes
3547
    ;;
3548
  no:yes:* )
3549
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3550
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3551
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3552
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3553
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3554
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3555
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3556
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3557
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3558
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3559
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3560
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3561
    (
3562
      cat <<\_ASBOX
3563
## ------------------------------------------ ##
3564
## Report this to the AC_PACKAGE_NAME lists.  ##
3565
## ------------------------------------------ ##
3566
_ASBOX
3567
    ) |
3568
      sed "s/^/$as_me: WARNING:     /" >&2
3569
    ;;
3570
esac
3571
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3572
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3573
if test "${ac_cv_header_minix_config_h+set}" = set; then
3574
  echo $ECHO_N "(cached) $ECHO_C" >&6
3575
else
3576
  ac_cv_header_minix_config_h=$ac_header_preproc
3577 1242 hpanther
fi
3578 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3579 1242 hpanther
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3580 1576 phoenix
 
3581
fi
3582 1242 hpanther
if test $ac_cv_header_minix_config_h = yes; then
3583 7 jrydberg
  MINIX=yes
3584
else
3585 1242 hpanther
  MINIX=
3586 7 jrydberg
fi
3587
 
3588 1576 phoenix
 
3589 7 jrydberg
if test "$MINIX" = yes; then
3590 1242 hpanther
 
3591 1576 phoenix
cat >>confdefs.h <<\_ACEOF
3592 7 jrydberg
#define _POSIX_SOURCE 1
3593 1576 phoenix
_ACEOF
3594 7 jrydberg
 
3595 1576 phoenix
 
3596
cat >>confdefs.h <<\_ACEOF
3597 7 jrydberg
#define _POSIX_1_SOURCE 2
3598 1576 phoenix
_ACEOF
3599 7 jrydberg
 
3600 1576 phoenix
 
3601
cat >>confdefs.h <<\_ACEOF
3602 7 jrydberg
#define _MINIX 1
3603 1576 phoenix
_ACEOF
3604 7 jrydberg
 
3605
fi
3606
 
3607 1576 phoenix
 
3608
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3609
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3610
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3611 1242 hpanther
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3612
  echo $ECHO_N "(cached) $ECHO_C" >&6
3613 7 jrydberg
else
3614 1576 phoenix
  cat >conftest.make <<\_ACEOF
3615 7 jrydberg
all:
3616 1576 phoenix
        @echo 'ac_maketemp="$(MAKE)"'
3617
_ACEOF
3618 7 jrydberg
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3619 1242 hpanther
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3620 7 jrydberg
if test -n "$ac_maketemp"; then
3621
  eval ac_cv_prog_make_${ac_make}_set=yes
3622
else
3623
  eval ac_cv_prog_make_${ac_make}_set=no
3624
fi
3625 1242 hpanther
rm -f conftest.make
3626 7 jrydberg
fi
3627
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3628 1576 phoenix
  echo "$as_me:$LINENO: result: yes" >&5
3629 1242 hpanther
echo "${ECHO_T}yes" >&6
3630 7 jrydberg
  SET_MAKE=
3631
else
3632 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
3633 1242 hpanther
echo "${ECHO_T}no" >&6
3634 7 jrydberg
  SET_MAKE="MAKE=${MAKE-make}"
3635
fi
3636
 
3637 1576 phoenix
 
3638 7 jrydberg
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
3639 28 lampret
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
3640 7 jrydberg
 
3641 1242 hpanther
if test $ac_cv_c_compiler_gnu = yes; then
3642 1576 phoenix
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3643 1242 hpanther
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3644
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3645
  echo $ECHO_N "(cached) $ECHO_C" >&6
3646 7 jrydberg
else
3647
    ac_pattern="Autoconf.*'x'"
3648 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
3649 1576 phoenix
/* confdefs.h.  */
3650
_ACEOF
3651
cat confdefs.h >>conftest.$ac_ext
3652
cat >>conftest.$ac_ext <<_ACEOF
3653
/* end confdefs.h.  */
3654 7 jrydberg
#include 
3655
Autoconf TIOCGETP
3656 1242 hpanther
_ACEOF
3657 7 jrydberg
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3658 1576 phoenix
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3659 7 jrydberg
  ac_cv_prog_gcc_traditional=yes
3660
else
3661
  ac_cv_prog_gcc_traditional=no
3662
fi
3663
rm -f conftest*
3664
 
3665 1576 phoenix
 
3666 7 jrydberg
  if test $ac_cv_prog_gcc_traditional = no; then
3667 1242 hpanther
    cat >conftest.$ac_ext <<_ACEOF
3668 1576 phoenix
/* confdefs.h.  */
3669
_ACEOF
3670
cat confdefs.h >>conftest.$ac_ext
3671
cat >>conftest.$ac_ext <<_ACEOF
3672
/* end confdefs.h.  */
3673 7 jrydberg
#include 
3674
Autoconf TCGETA
3675 1242 hpanther
_ACEOF
3676 7 jrydberg
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 1576 phoenix
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3678 7 jrydberg
  ac_cv_prog_gcc_traditional=yes
3679
fi
3680
rm -f conftest*
3681
 
3682
  fi
3683
fi
3684 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3685 1242 hpanther
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3686 7 jrydberg
  if test $ac_cv_prog_gcc_traditional = yes; then
3687
    CC="$CC -traditional"
3688
  fi
3689
fi
3690
 
3691
# Find a good install program.  We prefer a C program (faster),
3692
# so one script is as good as another.  But avoid the broken or
3693
# incompatible versions:
3694
# SysV /etc/install, /usr/sbin/install
3695
# SunOS /usr/etc/install
3696
# IRIX /sbin/install
3697
# AIX /bin/install
3698 1242 hpanther
# AmigaOS /C/install, which installs bootblocks on floppy discs
3699 7 jrydberg
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3700
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3701
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3702 1576 phoenix
# OS/2's system install, which has a completely different semantic
3703 7 jrydberg
# ./install, which can be erroneously created by make from ./install.sh.
3704 1576 phoenix
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3705
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3706 7 jrydberg
if test -z "$INSTALL"; then
3707 1242 hpanther
if test "${ac_cv_path_install+set}" = set; then
3708
  echo $ECHO_N "(cached) $ECHO_C" >&6
3709 7 jrydberg
else
3710 1576 phoenix
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711
for as_dir in $PATH
3712
do
3713
  IFS=$as_save_IFS
3714
  test -z "$as_dir" && as_dir=.
3715
  # Account for people who put trailing slashes in PATH elements.
3716
case $as_dir/ in
3717
  ./ | .// | /cC/* | \
3718
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3719
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3720
  /usr/ucb/* ) ;;
3721
  *)
3722
    # OSF1 and SCO ODT 3.0 have their own names for install.
3723
    # Don't use installbsd from OSF since it installs stuff as root
3724
    # by default.
3725
    for ac_prog in ginstall scoinst install; do
3726
      for ac_exec_ext in '' $ac_executable_extensions; do
3727
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3728 1249 lampret
          if test $ac_prog = install &&
3729 1576 phoenix
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3730 1249 lampret
            # AIX install.  It has an incompatible calling convention.
3731
            :
3732
          elif test $ac_prog = install &&
3733 1576 phoenix
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3734 1249 lampret
            # program-specific install script used by HP pwplus--don't use.
3735
            :
3736
          else
3737 1576 phoenix
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3738
            break 3
3739 1249 lampret
          fi
3740
        fi
3741 7 jrydberg
      done
3742 1576 phoenix
    done
3743
    ;;
3744
esac
3745
done
3746 7 jrydberg
 
3747 1576 phoenix
 
3748 7 jrydberg
fi
3749
  if test "${ac_cv_path_install+set}" = set; then
3750 1242 hpanther
    INSTALL=$ac_cv_path_install
3751 7 jrydberg
  else
3752
    # As a last resort, use the slow shell script.  We don't cache a
3753
    # path for INSTALL within a source directory, because that will
3754
    # break other packages using the cache if that directory is
3755
    # removed, or if the path is relative.
3756 1242 hpanther
    INSTALL=$ac_install_sh
3757 7 jrydberg
  fi
3758
fi
3759 1576 phoenix
echo "$as_me:$LINENO: result: $INSTALL" >&5
3760 1242 hpanther
echo "${ECHO_T}$INSTALL" >&6
3761 7 jrydberg
 
3762
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3763
# It thinks the first close brace ends the variable substitution.
3764
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3765
 
3766 1242 hpanther
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3767 7 jrydberg
 
3768
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3769
 
3770
# Extract the first word of "ar", so it can be a program name with args.
3771
set dummy ar; ac_word=$2
3772 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774
if test "${ac_cv_prog_AR+set}" = set; then
3775
  echo $ECHO_N "(cached) $ECHO_C" >&6
3776 7 jrydberg
else
3777
  if test -n "$AR"; then
3778
  ac_cv_prog_AR="$AR" # Let the user override the test.
3779
else
3780 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781
for as_dir in $PATH
3782
do
3783
  IFS=$as_save_IFS
3784
  test -z "$as_dir" && as_dir=.
3785
  for ac_exec_ext in '' $ac_executable_extensions; do
3786
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787
    ac_cv_prog_AR="ar"
3788
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789
    break 2
3790
  fi
3791 1242 hpanther
done
3792 1576 phoenix
done
3793 1242 hpanther
 
3794 7 jrydberg
fi
3795
fi
3796 1242 hpanther
AR=$ac_cv_prog_AR
3797 7 jrydberg
if test -n "$AR"; then
3798 1576 phoenix
  echo "$as_me:$LINENO: result: $AR" >&5
3799 1242 hpanther
echo "${ECHO_T}$AR" >&6
3800 7 jrydberg
else
3801 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
3802 1242 hpanther
echo "${ECHO_T}no" >&6
3803 7 jrydberg
fi
3804
 
3805
test -n "$ARFLAGS" || ARFLAGS="cr"
3806 1242 hpanther
if test -n "$ac_tool_prefix"; then
3807
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811
if test "${ac_cv_prog_RANLIB+set}" = set; then
3812
  echo $ECHO_N "(cached) $ECHO_C" >&6
3813 7 jrydberg
else
3814
  if test -n "$RANLIB"; then
3815
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816
else
3817 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818
for as_dir in $PATH
3819
do
3820
  IFS=$as_save_IFS
3821
  test -z "$as_dir" && as_dir=.
3822
  for ac_exec_ext in '' $ac_executable_extensions; do
3823
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826
    break 2
3827
  fi
3828 1242 hpanther
done
3829 1576 phoenix
done
3830 1242 hpanther
 
3831 7 jrydberg
fi
3832
fi
3833 1242 hpanther
RANLIB=$ac_cv_prog_RANLIB
3834 7 jrydberg
if test -n "$RANLIB"; then
3835 1576 phoenix
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 1242 hpanther
echo "${ECHO_T}$RANLIB" >&6
3837 7 jrydberg
else
3838 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
3839 1242 hpanther
echo "${ECHO_T}no" >&6
3840 7 jrydberg
fi
3841
 
3842 1242 hpanther
fi
3843
if test -z "$ac_cv_prog_RANLIB"; then
3844
  ac_ct_RANLIB=$RANLIB
3845
  # Extract the first word of "ranlib", so it can be a program name with args.
3846
set dummy ranlib; ac_word=$2
3847 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 1242 hpanther
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850
  echo $ECHO_N "(cached) $ECHO_C" >&6
3851
else
3852
  if test -n "$ac_ct_RANLIB"; then
3853
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854
else
3855 1576 phoenix
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856
for as_dir in $PATH
3857
do
3858
  IFS=$as_save_IFS
3859
  test -z "$as_dir" && as_dir=.
3860
  for ac_exec_ext in '' $ac_executable_extensions; do
3861
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3863
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864
    break 2
3865
  fi
3866 1242 hpanther
done
3867 1576 phoenix
done
3868 7 jrydberg
 
3869 1242 hpanther
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3870
fi
3871
fi
3872
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873
if test -n "$ac_ct_RANLIB"; then
3874 1576 phoenix
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 1242 hpanther
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876
else
3877 1576 phoenix
  echo "$as_me:$LINENO: result: no" >&5
3878 1242 hpanther
echo "${ECHO_T}no" >&6
3879
fi
3880
 
3881
  RANLIB=$ac_ct_RANLIB
3882
else
3883
  RANLIB="$ac_cv_prog_RANLIB"
3884
fi
3885
 
3886 1576 phoenix
 
3887 7 jrydberg
MAKE_SHELL=/bin/sh
3888
 
3889 1576 phoenix
 
3890
 
3891
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3892 1242 hpanther
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3893
if test "${ac_cv_type_signal+set}" = set; then
3894
  echo $ECHO_N "(cached) $ECHO_C" >&6
3895 7 jrydberg
else
3896 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
3897 1576 phoenix
/* confdefs.h.  */
3898
_ACEOF
3899
cat confdefs.h >>conftest.$ac_ext
3900
cat >>conftest.$ac_ext <<_ACEOF
3901
/* end confdefs.h.  */
3902 7 jrydberg
#include 
3903
#include 
3904
#ifdef signal
3905 1242 hpanther
# undef signal
3906 7 jrydberg
#endif
3907
#ifdef __cplusplus
3908
extern "C" void (*signal (int, void (*)(int)))(int);
3909
#else
3910
void (*signal ()) ();
3911
#endif
3912
 
3913 1242 hpanther
int
3914
main ()
3915
{
3916 7 jrydberg
int i;
3917 1242 hpanther
  ;
3918
  return 0;
3919
}
3920
_ACEOF
3921
rm -f conftest.$ac_objext
3922 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923
  (eval $ac_compile) 2>conftest.er1
3924 1242 hpanther
  ac_status=$?
3925 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
3926
  rm -f conftest.er1
3927
  cat conftest.err >&5
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 1242 hpanther
  (exit $ac_status); } &&
3930 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
3931
                         || test ! -s conftest.err'
3932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 1242 hpanther
  (eval $ac_try) 2>&5
3934
  ac_status=$?
3935 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
  (exit $ac_status); }; } &&
3937
         { ac_try='test -s conftest.$ac_objext'
3938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939
  (eval $ac_try) 2>&5
3940
  ac_status=$?
3941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 1242 hpanther
  (exit $ac_status); }; }; then
3943 7 jrydberg
  ac_cv_type_signal=void
3944
else
3945 1242 hpanther
  echo "$as_me: failed program was:" >&5
3946 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
3947
 
3948 1242 hpanther
ac_cv_type_signal=int
3949 7 jrydberg
fi
3950 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3951 7 jrydberg
fi
3952 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3953 1242 hpanther
echo "${ECHO_T}$ac_cv_type_signal" >&6
3954 7 jrydberg
 
3955 1576 phoenix
cat >>confdefs.h <<_ACEOF
3956 7 jrydberg
#define RETSIGTYPE $ac_cv_type_signal
3957 1576 phoenix
_ACEOF
3958 7 jrydberg
 
3959 1576 phoenix
 
3960
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3961 1242 hpanther
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3962
if test "${ac_cv_header_stat_broken+set}" = set; then
3963
  echo $ECHO_N "(cached) $ECHO_C" >&6
3964 7 jrydberg
else
3965 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
3966 1576 phoenix
/* confdefs.h.  */
3967
_ACEOF
3968
cat confdefs.h >>conftest.$ac_ext
3969
cat >>conftest.$ac_ext <<_ACEOF
3970
/* end confdefs.h.  */
3971 7 jrydberg
#include 
3972
#include 
3973
 
3974
#if defined(S_ISBLK) && defined(S_IFDIR)
3975
# if S_ISBLK (S_IFDIR)
3976
You lose.
3977
# endif
3978
#endif
3979
 
3980
#if defined(S_ISBLK) && defined(S_IFCHR)
3981
# if S_ISBLK (S_IFCHR)
3982
You lose.
3983
# endif
3984
#endif
3985
 
3986
#if defined(S_ISLNK) && defined(S_IFREG)
3987
# if S_ISLNK (S_IFREG)
3988
You lose.
3989
# endif
3990
#endif
3991
 
3992
#if defined(S_ISSOCK) && defined(S_IFREG)
3993
# if S_ISSOCK (S_IFREG)
3994
You lose.
3995
# endif
3996
#endif
3997
 
3998 1242 hpanther
_ACEOF
3999 7 jrydberg
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4000 1576 phoenix
  $EGREP "You lose" >/dev/null 2>&1; then
4001 7 jrydberg
  ac_cv_header_stat_broken=yes
4002
else
4003
  ac_cv_header_stat_broken=no
4004
fi
4005
rm -f conftest*
4006
 
4007
fi
4008 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4009 1242 hpanther
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4010
if test $ac_cv_header_stat_broken = yes; then
4011 7 jrydberg
 
4012 1576 phoenix
cat >>confdefs.h <<\_ACEOF
4013 7 jrydberg
#define STAT_MACROS_BROKEN 1
4014 1576 phoenix
_ACEOF
4015 7 jrydberg
 
4016
fi
4017
 
4018 1576 phoenix
 
4019
 
4020
 
4021
 
4022
 
4023 7 jrydberg
ac_header_dirent=no
4024 1242 hpanther
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4025
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4026 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4027 1242 hpanther
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4028
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029
  echo $ECHO_N "(cached) $ECHO_C" >&6
4030 7 jrydberg
else
4031 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
4032 1576 phoenix
/* confdefs.h.  */
4033
_ACEOF
4034
cat confdefs.h >>conftest.$ac_ext
4035
cat >>conftest.$ac_ext <<_ACEOF
4036
/* end confdefs.h.  */
4037 7 jrydberg
#include 
4038
#include <$ac_hdr>
4039 1242 hpanther
 
4040
int
4041
main ()
4042
{
4043
if ((DIR *) 0)
4044
return 0;
4045
  ;
4046
  return 0;
4047
}
4048
_ACEOF
4049
rm -f conftest.$ac_objext
4050 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4051
  (eval $ac_compile) 2>conftest.er1
4052 1242 hpanther
  ac_status=$?
4053 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4054
  rm -f conftest.er1
4055
  cat conftest.err >&5
4056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 1242 hpanther
  (exit $ac_status); } &&
4058 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4059
                         || test ! -s conftest.err'
4060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 1242 hpanther
  (eval $ac_try) 2>&5
4062
  ac_status=$?
4063 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
  (exit $ac_status); }; } &&
4065
         { ac_try='test -s conftest.$ac_objext'
4066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067
  (eval $ac_try) 2>&5
4068
  ac_status=$?
4069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 1242 hpanther
  (exit $ac_status); }; }; then
4071
  eval "$as_ac_Header=yes"
4072 7 jrydberg
else
4073 1242 hpanther
  echo "$as_me: failed program was:" >&5
4074 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4075
 
4076 1242 hpanther
eval "$as_ac_Header=no"
4077 7 jrydberg
fi
4078 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4079 7 jrydberg
fi
4080 1576 phoenix
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4081 1242 hpanther
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4082
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4083 1576 phoenix
  cat >>confdefs.h <<_ACEOF
4084 1242 hpanther
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4085 1576 phoenix
_ACEOF
4086 1242 hpanther
 
4087
ac_header_dirent=$ac_hdr; break
4088 7 jrydberg
fi
4089 1242 hpanther
 
4090 7 jrydberg
done
4091
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4092
if test $ac_header_dirent = dirent.h; then
4093 1576 phoenix
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4094
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4095
if test "${ac_cv_search_opendir+set}" = set; then
4096 1242 hpanther
  echo $ECHO_N "(cached) $ECHO_C" >&6
4097 7 jrydberg
else
4098 1576 phoenix
  ac_func_search_save_LIBS=$LIBS
4099
ac_cv_search_opendir=no
4100 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
4101 1576 phoenix
/* confdefs.h.  */
4102
_ACEOF
4103
cat confdefs.h >>conftest.$ac_ext
4104
cat >>conftest.$ac_ext <<_ACEOF
4105
/* end confdefs.h.  */
4106 1242 hpanther
 
4107 7 jrydberg
/* Override any gcc2 internal prototype to avoid an error.  */
4108 1242 hpanther
#ifdef __cplusplus
4109
extern "C"
4110
#endif
4111 7 jrydberg
/* We use char because int might match the return type of a gcc2
4112 1242 hpanther
   builtin and then its argument prototype would still apply.  */
4113
char opendir ();
4114
int
4115
main ()
4116
{
4117
opendir ();
4118
  ;
4119
  return 0;
4120
}
4121
_ACEOF
4122
rm -f conftest.$ac_objext conftest$ac_exeext
4123 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4124
  (eval $ac_link) 2>conftest.er1
4125 1242 hpanther
  ac_status=$?
4126 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4127
  rm -f conftest.er1
4128
  cat conftest.err >&5
4129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 1242 hpanther
  (exit $ac_status); } &&
4131 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4132
                         || test ! -s conftest.err'
4133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 1242 hpanther
  (eval $ac_try) 2>&5
4135
  ac_status=$?
4136 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137
  (exit $ac_status); }; } &&
4138
         { ac_try='test -s conftest$ac_exeext'
4139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140
  (eval $ac_try) 2>&5
4141
  ac_status=$?
4142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 1242 hpanther
  (exit $ac_status); }; }; then
4144 1576 phoenix
  ac_cv_search_opendir="none required"
4145 1242 hpanther
else
4146
  echo "$as_me: failed program was:" >&5
4147 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4148
 
4149 7 jrydberg
fi
4150 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4151
      conftest$ac_exeext conftest.$ac_ext
4152
if test "$ac_cv_search_opendir" = no; then
4153
  for ac_lib in dir; do
4154
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4155
    cat >conftest.$ac_ext <<_ACEOF
4156
/* confdefs.h.  */
4157
_ACEOF
4158
cat confdefs.h >>conftest.$ac_ext
4159
cat >>conftest.$ac_ext <<_ACEOF
4160
/* end confdefs.h.  */
4161
 
4162
/* Override any gcc2 internal prototype to avoid an error.  */
4163
#ifdef __cplusplus
4164
extern "C"
4165
#endif
4166
/* We use char because int might match the return type of a gcc2
4167
   builtin and then its argument prototype would still apply.  */
4168
char opendir ();
4169
int
4170
main ()
4171
{
4172
opendir ();
4173
  ;
4174
  return 0;
4175
}
4176
_ACEOF
4177
rm -f conftest.$ac_objext conftest$ac_exeext
4178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179
  (eval $ac_link) 2>conftest.er1
4180
  ac_status=$?
4181
  grep -v '^ *+' conftest.er1 >conftest.err
4182
  rm -f conftest.er1
4183
  cat conftest.err >&5
4184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185
  (exit $ac_status); } &&
4186
         { ac_try='test -z "$ac_c_werror_flag"
4187
                         || test ! -s conftest.err'
4188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189
  (eval $ac_try) 2>&5
4190
  ac_status=$?
4191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192
  (exit $ac_status); }; } &&
4193
         { ac_try='test -s conftest$ac_exeext'
4194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195
  (eval $ac_try) 2>&5
4196
  ac_status=$?
4197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
  (exit $ac_status); }; }; then
4199
  ac_cv_search_opendir="-l$ac_lib"
4200
break
4201
else
4202
  echo "$as_me: failed program was:" >&5
4203
sed 's/^/| /' conftest.$ac_ext >&5
4204
 
4205 1249 lampret
fi
4206 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4207
      conftest$ac_exeext conftest.$ac_ext
4208
  done
4209 1249 lampret
fi
4210 1576 phoenix
LIBS=$ac_func_search_save_LIBS
4211
fi
4212
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4213
echo "${ECHO_T}$ac_cv_search_opendir" >&6
4214
if test "$ac_cv_search_opendir" != no; then
4215
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4216 7 jrydberg
 
4217 1576 phoenix
fi
4218
 
4219 1249 lampret
else
4220 1576 phoenix
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
4221
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4222
if test "${ac_cv_search_opendir+set}" = set; then
4223 1249 lampret
  echo $ECHO_N "(cached) $ECHO_C" >&6
4224
else
4225 1576 phoenix
  ac_func_search_save_LIBS=$LIBS
4226
ac_cv_search_opendir=no
4227 1249 lampret
cat >conftest.$ac_ext <<_ACEOF
4228 1576 phoenix
/* confdefs.h.  */
4229
_ACEOF
4230
cat confdefs.h >>conftest.$ac_ext
4231
cat >>conftest.$ac_ext <<_ACEOF
4232
/* end confdefs.h.  */
4233 1249 lampret
 
4234 1242 hpanther
/* Override any gcc2 internal prototype to avoid an error.  */
4235
#ifdef __cplusplus
4236
extern "C"
4237
#endif
4238
/* We use char because int might match the return type of a gcc2
4239
   builtin and then its argument prototype would still apply.  */
4240
char opendir ();
4241
int
4242
main ()
4243
{
4244
opendir ();
4245
  ;
4246
  return 0;
4247
}
4248
_ACEOF
4249
rm -f conftest.$ac_objext conftest$ac_exeext
4250 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251
  (eval $ac_link) 2>conftest.er1
4252 1242 hpanther
  ac_status=$?
4253 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4254
  rm -f conftest.er1
4255
  cat conftest.err >&5
4256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 1242 hpanther
  (exit $ac_status); } &&
4258 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4259
                         || test ! -s conftest.err'
4260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 1242 hpanther
  (eval $ac_try) 2>&5
4262
  ac_status=$?
4263 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264
  (exit $ac_status); }; } &&
4265
         { ac_try='test -s conftest$ac_exeext'
4266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267
  (eval $ac_try) 2>&5
4268
  ac_status=$?
4269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 1242 hpanther
  (exit $ac_status); }; }; then
4271 1576 phoenix
  ac_cv_search_opendir="none required"
4272 7 jrydberg
else
4273 1242 hpanther
  echo "$as_me: failed program was:" >&5
4274 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4275 7 jrydberg
 
4276 1242 hpanther
fi
4277 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4278
      conftest$ac_exeext conftest.$ac_ext
4279
if test "$ac_cv_search_opendir" = no; then
4280
  for ac_lib in x; do
4281
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4282
    cat >conftest.$ac_ext <<_ACEOF
4283
/* confdefs.h.  */
4284
_ACEOF
4285
cat confdefs.h >>conftest.$ac_ext
4286
cat >>conftest.$ac_ext <<_ACEOF
4287
/* end confdefs.h.  */
4288 1242 hpanther
 
4289 7 jrydberg
/* Override any gcc2 internal prototype to avoid an error.  */
4290 1242 hpanther
#ifdef __cplusplus
4291
extern "C"
4292
#endif
4293 7 jrydberg
/* We use char because int might match the return type of a gcc2
4294 1242 hpanther
   builtin and then its argument prototype would still apply.  */
4295 1576 phoenix
char opendir ();
4296 1242 hpanther
int
4297
main ()
4298
{
4299 1576 phoenix
opendir ();
4300 1242 hpanther
  ;
4301
  return 0;
4302
}
4303
_ACEOF
4304
rm -f conftest.$ac_objext conftest$ac_exeext
4305 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306
  (eval $ac_link) 2>conftest.er1
4307 1242 hpanther
  ac_status=$?
4308 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4309
  rm -f conftest.er1
4310
  cat conftest.err >&5
4311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 1242 hpanther
  (exit $ac_status); } &&
4313 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4314
                         || test ! -s conftest.err'
4315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 1242 hpanther
  (eval $ac_try) 2>&5
4317
  ac_status=$?
4318 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
  (exit $ac_status); }; } &&
4320
         { ac_try='test -s conftest$ac_exeext'
4321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322
  (eval $ac_try) 2>&5
4323
  ac_status=$?
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 1242 hpanther
  (exit $ac_status); }; }; then
4326 1576 phoenix
  ac_cv_search_opendir="-l$ac_lib"
4327
break
4328 7 jrydberg
else
4329 1242 hpanther
  echo "$as_me: failed program was:" >&5
4330 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4331
 
4332 7 jrydberg
fi
4333 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4334
      conftest$ac_exeext conftest.$ac_ext
4335
  done
4336 1242 hpanther
fi
4337 1576 phoenix
LIBS=$ac_func_search_save_LIBS
4338
fi
4339
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4340
echo "${ECHO_T}$ac_cv_search_opendir" >&6
4341
if test "$ac_cv_search_opendir" != no; then
4342
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4343 7 jrydberg
 
4344
fi
4345
 
4346 1576 phoenix
fi
4347
 
4348
 
4349
 
4350
 
4351
 
4352
 
4353
 
4354
 
4355
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
4356 7 jrydberg
do
4357 1242 hpanther
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4358 1576 phoenix
echo "$as_me:$LINENO: checking for $ac_func" >&5
4359 1242 hpanther
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4360
if eval "test \"\${$as_ac_var+set}\" = set"; then
4361
  echo $ECHO_N "(cached) $ECHO_C" >&6
4362 7 jrydberg
else
4363 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
4364 1576 phoenix
/* confdefs.h.  */
4365
_ACEOF
4366
cat confdefs.h >>conftest.$ac_ext
4367
cat >>conftest.$ac_ext <<_ACEOF
4368
/* end confdefs.h.  */
4369
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
4370
   For example, HP-UX 11i  declares gettimeofday.  */
4371
#define $ac_func innocuous_$ac_func
4372
 
4373 7 jrydberg
/* System header to define __stub macros and hopefully few prototypes,
4374 1576 phoenix
    which can conflict with char $ac_func (); below.
4375
    Prefer  to  if __STDC__ is defined, since
4376
     exists even on freestanding compilers.  */
4377
 
4378
#ifdef __STDC__
4379
# include 
4380
#else
4381
# include 
4382
#endif
4383
 
4384
#undef $ac_func
4385
 
4386 7 jrydberg
/* Override any gcc2 internal prototype to avoid an error.  */
4387 1242 hpanther
#ifdef __cplusplus
4388
extern "C"
4389 1576 phoenix
{
4390 1242 hpanther
#endif
4391 7 jrydberg
/* We use char because int might match the return type of a gcc2
4392 1242 hpanther
   builtin and then its argument prototype would still apply.  */
4393
char $ac_func ();
4394
/* The GNU C library defines this for functions which it implements
4395
    to always fail with ENOSYS.  Some functions are actually named
4396
    something starting with __ and the normal name is an alias.  */
4397
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4398
choke me
4399
#else
4400 1576 phoenix
char (*f) () = $ac_func;
4401 1242 hpanther
#endif
4402 1576 phoenix
#ifdef __cplusplus
4403
}
4404
#endif
4405 7 jrydberg
 
4406 1576 phoenix
int
4407
main ()
4408
{
4409
return f != $ac_func;
4410 1242 hpanther
  ;
4411
  return 0;
4412
}
4413
_ACEOF
4414
rm -f conftest.$ac_objext conftest$ac_exeext
4415 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4416
  (eval $ac_link) 2>conftest.er1
4417 1242 hpanther
  ac_status=$?
4418 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4419
  rm -f conftest.er1
4420
  cat conftest.err >&5
4421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 1242 hpanther
  (exit $ac_status); } &&
4423 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4424
                         || test ! -s conftest.err'
4425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 1242 hpanther
  (eval $ac_try) 2>&5
4427
  ac_status=$?
4428 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429
  (exit $ac_status); }; } &&
4430
         { ac_try='test -s conftest$ac_exeext'
4431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432
  (eval $ac_try) 2>&5
4433
  ac_status=$?
4434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 1242 hpanther
  (exit $ac_status); }; }; then
4436
  eval "$as_ac_var=yes"
4437
else
4438
  echo "$as_me: failed program was:" >&5
4439 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4440
 
4441 1242 hpanther
eval "$as_ac_var=no"
4442
fi
4443 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4444
      conftest$ac_exeext conftest.$ac_ext
4445 1242 hpanther
fi
4446 1576 phoenix
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4447 1242 hpanther
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4448
if test `eval echo '${'$as_ac_var'}'` = yes; then
4449 1576 phoenix
  cat >>confdefs.h <<_ACEOF
4450 1242 hpanther
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4451 1576 phoenix
_ACEOF
4452 1242 hpanther
 
4453
fi
4454
done
4455
 
4456
 
4457
 
4458
 
4459
 
4460
 
4461 1576 phoenix
 
4462
for ac_func in strndup grantpt unlockpt ptsname on_exit isblank
4463
do
4464
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4465
echo "$as_me:$LINENO: checking for $ac_func" >&5
4466
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4467
if eval "test \"\${$as_ac_var+set}\" = set"; then
4468
  echo $ECHO_N "(cached) $ECHO_C" >&6
4469
else
4470 1249 lampret
  cat >conftest.$ac_ext <<_ACEOF
4471 1576 phoenix
/* confdefs.h.  */
4472 1249 lampret
_ACEOF
4473 1576 phoenix
cat confdefs.h >>conftest.$ac_ext
4474
cat >>conftest.$ac_ext <<_ACEOF
4475
/* end confdefs.h.  */
4476
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
4477
   For example, HP-UX 11i  declares gettimeofday.  */
4478
#define $ac_func innocuous_$ac_func
4479 1249 lampret
 
4480 1576 phoenix
/* System header to define __stub macros and hopefully few prototypes,
4481
    which can conflict with char $ac_func (); below.
4482
    Prefer  to  if __STDC__ is defined, since
4483
     exists even on freestanding compilers.  */
4484 1249 lampret
 
4485 1576 phoenix
#ifdef __STDC__
4486
# include 
4487 1242 hpanther
#else
4488 1576 phoenix
# include 
4489 1242 hpanther
#endif
4490 7 jrydberg
 
4491 1576 phoenix
#undef $ac_func
4492
 
4493
/* Override any gcc2 internal prototype to avoid an error.  */
4494
#ifdef __cplusplus
4495
extern "C"
4496
{
4497
#endif
4498
/* We use char because int might match the return type of a gcc2
4499
   builtin and then its argument prototype would still apply.  */
4500
char $ac_func ();
4501
/* The GNU C library defines this for functions which it implements
4502
    to always fail with ENOSYS.  Some functions are actually named
4503
    something starting with __ and the normal name is an alias.  */
4504
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4505
choke me
4506
#else
4507
char (*f) () = $ac_func;
4508
#endif
4509
#ifdef __cplusplus
4510
}
4511
#endif
4512
 
4513 1242 hpanther
int
4514
main ()
4515
{
4516 1576 phoenix
return f != $ac_func;
4517
  ;
4518
  return 0;
4519 1242 hpanther
}
4520
_ACEOF
4521 1576 phoenix
rm -f conftest.$ac_objext conftest$ac_exeext
4522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523
  (eval $ac_link) 2>conftest.er1
4524 1242 hpanther
  ac_status=$?
4525 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4526
  rm -f conftest.er1
4527
  cat conftest.err >&5
4528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529
  (exit $ac_status); } &&
4530
         { ac_try='test -z "$ac_c_werror_flag"
4531
                         || test ! -s conftest.err'
4532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 1249 lampret
  (eval $ac_try) 2>&5
4534
  ac_status=$?
4535 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536
  (exit $ac_status); }; } &&
4537
         { ac_try='test -s conftest$ac_exeext'
4538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 1242 hpanther
  (eval $ac_try) 2>&5
4540
  ac_status=$?
4541 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 1242 hpanther
  (exit $ac_status); }; }; then
4543 1576 phoenix
  eval "$as_ac_var=yes"
4544 7 jrydberg
else
4545 1242 hpanther
  echo "$as_me: failed program was:" >&5
4546 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4547
 
4548
eval "$as_ac_var=no"
4549 7 jrydberg
fi
4550 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
4551
      conftest$ac_exeext conftest.$ac_ext
4552 7 jrydberg
fi
4553 1576 phoenix
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4554
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4555
if test `eval echo '${'$as_ac_var'}'` = yes; then
4556
  cat >>confdefs.h <<_ACEOF
4557
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4558
_ACEOF
4559 7 jrydberg
 
4560
fi
4561
done
4562
 
4563 1576 phoenix
echo "$as_me:$LINENO: checking for working strcoll" >&5
4564 1242 hpanther
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4565
if test "${ac_cv_func_strcoll_works+set}" = set; then
4566
  echo $ECHO_N "(cached) $ECHO_C" >&6
4567 7 jrydberg
else
4568
  if test "$cross_compiling" = yes; then
4569
  ac_cv_func_strcoll_works=no
4570
else
4571 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
4572 1576 phoenix
/* confdefs.h.  */
4573
_ACEOF
4574
cat confdefs.h >>conftest.$ac_ext
4575
cat >>conftest.$ac_ext <<_ACEOF
4576
/* end confdefs.h.  */
4577 1242 hpanther
$ac_includes_default
4578
int
4579 7 jrydberg
main ()
4580
{
4581 1242 hpanther
exit (strcoll ("abc", "def") >= 0 ||
4582
         strcoll ("ABC", "DEF") >= 0 ||
4583
         strcoll ("123", "456") >= 0)
4584
  ;
4585
  return 0;
4586 7 jrydberg
}
4587 1242 hpanther
_ACEOF
4588
rm -f conftest$ac_exeext
4589 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4590 1242 hpanther
  (eval $ac_link) 2>&5
4591
  ac_status=$?
4592 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 1242 hpanther
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 1242 hpanther
  (eval $ac_try) 2>&5
4596
  ac_status=$?
4597 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 1242 hpanther
  (exit $ac_status); }; }; then
4599 7 jrydberg
  ac_cv_func_strcoll_works=yes
4600
else
4601 1242 hpanther
  echo "$as_me: program exited with status $ac_status" >&5
4602
echo "$as_me: failed program was:" >&5
4603 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4604
 
4605
( exit $ac_status )
4606 1242 hpanther
ac_cv_func_strcoll_works=no
4607 7 jrydberg
fi
4608 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4609 7 jrydberg
fi
4610
fi
4611 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4612 1242 hpanther
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4613
if test $ac_cv_func_strcoll_works = yes; then
4614 7 jrydberg
 
4615 1576 phoenix
cat >>confdefs.h <<\_ACEOF
4616 7 jrydberg
#define HAVE_STRCOLL 1
4617 1576 phoenix
_ACEOF
4618 7 jrydberg
 
4619
fi
4620
 
4621 1576 phoenix
 
4622
 
4623
 
4624
 
4625
 
4626
 
4627
 
4628
 
4629
 
4630
 
4631
 
4632
 
4633
 
4634
 
4635
 
4636
 
4637
 
4638
 
4639
 
4640 1242 hpanther
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h \
4641
                sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
4642 345 erez
                termcap.h termios.h termio.h sys/file.h locale.h\
4643 1376 phoenix
                net/ethernet.h sys/ethernet.h malloc.h inttypes.h
4644 7 jrydberg
do
4645 1242 hpanther
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 1576 phoenix
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4647
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4648 1242 hpanther
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4649
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4650
  echo $ECHO_N "(cached) $ECHO_C" >&6
4651 1576 phoenix
fi
4652
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4653
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4654 7 jrydberg
else
4655 1576 phoenix
  # Is the header compilable?
4656
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4657
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4658
cat >conftest.$ac_ext <<_ACEOF
4659
/* confdefs.h.  */
4660
_ACEOF
4661
cat confdefs.h >>conftest.$ac_ext
4662
cat >>conftest.$ac_ext <<_ACEOF
4663
/* end confdefs.h.  */
4664
$ac_includes_default
4665 1242 hpanther
#include <$ac_header>
4666
_ACEOF
4667 1576 phoenix
rm -f conftest.$ac_objext
4668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669
  (eval $ac_compile) 2>conftest.er1
4670
  ac_status=$?
4671
  grep -v '^ *+' conftest.er1 >conftest.err
4672
  rm -f conftest.er1
4673
  cat conftest.err >&5
4674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
  (exit $ac_status); } &&
4676
         { ac_try='test -z "$ac_c_werror_flag"
4677
                         || test ! -s conftest.err'
4678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
  (eval $ac_try) 2>&5
4680
  ac_status=$?
4681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682
  (exit $ac_status); }; } &&
4683
         { ac_try='test -s conftest.$ac_objext'
4684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685
  (eval $ac_try) 2>&5
4686
  ac_status=$?
4687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
  (exit $ac_status); }; }; then
4689
  ac_header_compiler=yes
4690
else
4691
  echo "$as_me: failed program was:" >&5
4692
sed 's/^/| /' conftest.$ac_ext >&5
4693
 
4694
ac_header_compiler=no
4695
fi
4696
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4698
echo "${ECHO_T}$ac_header_compiler" >&6
4699
 
4700
# Is the header present?
4701
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4702
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4703
cat >conftest.$ac_ext <<_ACEOF
4704
/* confdefs.h.  */
4705
_ACEOF
4706
cat confdefs.h >>conftest.$ac_ext
4707
cat >>conftest.$ac_ext <<_ACEOF
4708
/* end confdefs.h.  */
4709
#include <$ac_header>
4710
_ACEOF
4711
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4712 1242 hpanther
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4713
  ac_status=$?
4714 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4715 1242 hpanther
  rm -f conftest.er1
4716
  cat conftest.err >&5
4717 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 1242 hpanther
  (exit $ac_status); } >/dev/null; then
4719
  if test -s conftest.err; then
4720
    ac_cpp_err=$ac_c_preproc_warn_flag
4721 1576 phoenix
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4722 1242 hpanther
  else
4723
    ac_cpp_err=
4724
  fi
4725
else
4726
  ac_cpp_err=yes
4727 7 jrydberg
fi
4728 1242 hpanther
if test -z "$ac_cpp_err"; then
4729 1576 phoenix
  ac_header_preproc=yes
4730 7 jrydberg
else
4731 1242 hpanther
  echo "$as_me: failed program was:" >&5
4732 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4733
 
4734
  ac_header_preproc=no
4735 7 jrydberg
fi
4736 1242 hpanther
rm -f conftest.err conftest.$ac_ext
4737 1576 phoenix
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4738
echo "${ECHO_T}$ac_header_preproc" >&6
4739
 
4740
# So?  What about this header?
4741
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742
  yes:no: )
4743
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4744
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4745
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4746
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4747
    ac_header_preproc=yes
4748
    ;;
4749
  no:yes:* )
4750
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4751
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4752
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4753
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4754
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4755
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4756
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4757
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4758
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4759
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4760
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4761
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4762
    (
4763
      cat <<\_ASBOX
4764
## ------------------------------------------ ##
4765
## Report this to the AC_PACKAGE_NAME lists.  ##
4766
## ------------------------------------------ ##
4767
_ASBOX
4768
    ) |
4769
      sed "s/^/$as_me: WARNING:     /" >&2
4770
    ;;
4771
esac
4772
echo "$as_me:$LINENO: checking for $ac_header" >&5
4773
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4774
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4775
  echo $ECHO_N "(cached) $ECHO_C" >&6
4776
else
4777
  eval "$as_ac_Header=\$ac_header_preproc"
4778 1242 hpanther
fi
4779 1576 phoenix
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4780 1242 hpanther
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4781 1576 phoenix
 
4782
fi
4783 1242 hpanther
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4784 1576 phoenix
  cat >>confdefs.h <<_ACEOF
4785 1242 hpanther
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 1576 phoenix
_ACEOF
4787 1242 hpanther
 
4788
fi
4789 1576 phoenix
 
4790 7 jrydberg
done
4791
 
4792 1576 phoenix
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4793 1242 hpanther
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4794
if test "${ac_cv_c_bigendian+set}" = set; then
4795
  echo $ECHO_N "(cached) $ECHO_C" >&6
4796
else
4797 1576 phoenix
  # See if sys/param.h defines the BYTE_ORDER macro.
4798 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
4799 1576 phoenix
/* confdefs.h.  */
4800
_ACEOF
4801
cat confdefs.h >>conftest.$ac_ext
4802
cat >>conftest.$ac_ext <<_ACEOF
4803
/* end confdefs.h.  */
4804 1242 hpanther
#include 
4805
#include 
4806 7 jrydberg
 
4807 1242 hpanther
int
4808
main ()
4809
{
4810
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4811
 bogus endian macros
4812
#endif
4813 202 erez
 
4814 1242 hpanther
  ;
4815
  return 0;
4816
}
4817
_ACEOF
4818
rm -f conftest.$ac_objext
4819 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820
  (eval $ac_compile) 2>conftest.er1
4821 1242 hpanther
  ac_status=$?
4822 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4823
  rm -f conftest.er1
4824
  cat conftest.err >&5
4825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 1242 hpanther
  (exit $ac_status); } &&
4827 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4828
                         || test ! -s conftest.err'
4829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 1242 hpanther
  (eval $ac_try) 2>&5
4831
  ac_status=$?
4832 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833
  (exit $ac_status); }; } &&
4834
         { ac_try='test -s conftest.$ac_objext'
4835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836
  (eval $ac_try) 2>&5
4837
  ac_status=$?
4838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 1242 hpanther
  (exit $ac_status); }; }; then
4840
  # It does; now see whether it defined to BIG_ENDIAN or not.
4841
cat >conftest.$ac_ext <<_ACEOF
4842 1576 phoenix
/* confdefs.h.  */
4843
_ACEOF
4844
cat confdefs.h >>conftest.$ac_ext
4845
cat >>conftest.$ac_ext <<_ACEOF
4846
/* end confdefs.h.  */
4847 1242 hpanther
#include 
4848
#include 
4849
 
4850
int
4851
main ()
4852
{
4853
#if BYTE_ORDER != BIG_ENDIAN
4854
 not big endian
4855
#endif
4856
 
4857
  ;
4858
  return 0;
4859
}
4860
_ACEOF
4861
rm -f conftest.$ac_objext
4862 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863
  (eval $ac_compile) 2>conftest.er1
4864 1242 hpanther
  ac_status=$?
4865 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
4866
  rm -f conftest.er1
4867
  cat conftest.err >&5
4868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 1242 hpanther
  (exit $ac_status); } &&
4870 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
4871
                         || test ! -s conftest.err'
4872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 1242 hpanther
  (eval $ac_try) 2>&5
4874
  ac_status=$?
4875 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
  (exit $ac_status); }; } &&
4877
         { ac_try='test -s conftest.$ac_objext'
4878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879
  (eval $ac_try) 2>&5
4880
  ac_status=$?
4881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 1242 hpanther
  (exit $ac_status); }; }; then
4883
  ac_cv_c_bigendian=yes
4884
else
4885
  echo "$as_me: failed program was:" >&5
4886 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4887
 
4888 1242 hpanther
ac_cv_c_bigendian=no
4889
fi
4890 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4891 1242 hpanther
else
4892
  echo "$as_me: failed program was:" >&5
4893 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4894
 
4895
# It does not; compile a test program.
4896
if test "$cross_compiling" = yes; then
4897
  # try to guess the endianness by grepping values into an object file
4898
  ac_cv_c_bigendian=unknown
4899
  cat >conftest.$ac_ext <<_ACEOF
4900
/* confdefs.h.  */
4901
_ACEOF
4902
cat confdefs.h >>conftest.$ac_ext
4903
cat >>conftest.$ac_ext <<_ACEOF
4904
/* end confdefs.h.  */
4905
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4906
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4907
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4908
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4909
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4910
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4911
int
4912
main ()
4913
{
4914
 _ascii (); _ebcdic ();
4915
  ;
4916
  return 0;
4917
}
4918
_ACEOF
4919
rm -f conftest.$ac_objext
4920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921
  (eval $ac_compile) 2>conftest.er1
4922
  ac_status=$?
4923
  grep -v '^ *+' conftest.er1 >conftest.err
4924
  rm -f conftest.er1
4925
  cat conftest.err >&5
4926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927
  (exit $ac_status); } &&
4928
         { ac_try='test -z "$ac_c_werror_flag"
4929
                         || test ! -s conftest.err'
4930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931
  (eval $ac_try) 2>&5
4932
  ac_status=$?
4933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934
  (exit $ac_status); }; } &&
4935
         { ac_try='test -s conftest.$ac_objext'
4936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937
  (eval $ac_try) 2>&5
4938
  ac_status=$?
4939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940
  (exit $ac_status); }; }; then
4941
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4942
  ac_cv_c_bigendian=yes
4943 1242 hpanther
fi
4944 1576 phoenix
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4945
  if test "$ac_cv_c_bigendian" = unknown; then
4946
    ac_cv_c_bigendian=no
4947
  else
4948
    # finding both strings is unlikely to happen, but who knows?
4949
    ac_cv_c_bigendian=unknown
4950
  fi
4951
fi
4952 1242 hpanther
else
4953 1576 phoenix
  echo "$as_me: failed program was:" >&5
4954
sed 's/^/| /' conftest.$ac_ext >&5
4955
 
4956
fi
4957
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958
else
4959 1242 hpanther
  cat >conftest.$ac_ext <<_ACEOF
4960 1576 phoenix
/* confdefs.h.  */
4961
_ACEOF
4962
cat confdefs.h >>conftest.$ac_ext
4963
cat >>conftest.$ac_ext <<_ACEOF
4964
/* end confdefs.h.  */
4965 1242 hpanther
int
4966
main ()
4967
{
4968
  /* Are we little or big endian?  From Harbison&Steele.  */
4969
  union
4970
  {
4971
    long l;
4972
    char c[sizeof (long)];
4973
  } u;
4974
  u.l = 1;
4975
  exit (u.c[sizeof (long) - 1] == 1);
4976
}
4977
_ACEOF
4978
rm -f conftest$ac_exeext
4979 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 1242 hpanther
  (eval $ac_link) 2>&5
4981
  ac_status=$?
4982 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 1242 hpanther
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4984 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 1242 hpanther
  (eval $ac_try) 2>&5
4986
  ac_status=$?
4987 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 1242 hpanther
  (exit $ac_status); }; }; then
4989
  ac_cv_c_bigendian=no
4990
else
4991
  echo "$as_me: program exited with status $ac_status" >&5
4992
echo "$as_me: failed program was:" >&5
4993 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
4994
 
4995
( exit $ac_status )
4996 1242 hpanther
ac_cv_c_bigendian=yes
4997
fi
4998 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4999 1242 hpanther
fi
5000
fi
5001 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 1242 hpanther
fi
5003 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5004 1242 hpanther
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5005 1576 phoenix
case $ac_cv_c_bigendian in
5006
  yes)
5007 1242 hpanther
 
5008 1576 phoenix
cat >>confdefs.h <<\_ACEOF
5009 1242 hpanther
#define WORDS_BIGENDIAN 1
5010 1576 phoenix
_ACEOF
5011
 ;;
5012
  no)
5013
     ;;
5014
  *)
5015
    { { echo "$as_me:$LINENO: error: unknown endianness
5016
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5017
echo "$as_me: error: unknown endianness
5018
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5019
   { (exit 1); exit 1; }; } ;;
5020
esac
5021 1242 hpanther
 
5022
 
5023
cat >conftest.$ac_ext <<_ACEOF
5024 1576 phoenix
/* confdefs.h.  */
5025
_ACEOF
5026
cat confdefs.h >>conftest.$ac_ext
5027
cat >>conftest.$ac_ext <<_ACEOF
5028
/* end confdefs.h.  */
5029 1242 hpanther
 
5030
int
5031
main ()
5032
{
5033 202 erez
long long ll; unsigned long long ull;
5034 1242 hpanther
  ;
5035
  return 0;
5036
}
5037
_ACEOF
5038
rm -f conftest.$ac_objext
5039 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040
  (eval $ac_compile) 2>conftest.er1
5041 1242 hpanther
  ac_status=$?
5042 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5043
  rm -f conftest.er1
5044
  cat conftest.err >&5
5045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 1242 hpanther
  (exit $ac_status); } &&
5047 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5048
                         || test ! -s conftest.err'
5049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 1242 hpanther
  (eval $ac_try) 2>&5
5051
  ac_status=$?
5052 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053
  (exit $ac_status); }; } &&
5054
         { ac_try='test -s conftest.$ac_objext'
5055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056
  (eval $ac_try) 2>&5
5057
  ac_status=$?
5058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 1242 hpanther
  (exit $ac_status); }; }; then
5060 1576 phoenix
 
5061
cat >>confdefs.h <<\_ACEOF
5062 202 erez
#define CC_HAS_LONG_LONG 1
5063 1576 phoenix
_ACEOF
5064 202 erez
 
5065
else
5066 1242 hpanther
  echo "$as_me: failed program was:" >&5
5067 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5068
 
5069 202 erez
fi
5070 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071 202 erez
 
5072 1576 phoenix
echo "$as_me:$LINENO: checking for uint8_t" >&5
5073 1376 phoenix
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
5074
if test "${ac_cv_type_uint8_t+set}" = set; then
5075
  echo $ECHO_N "(cached) $ECHO_C" >&6
5076
else
5077
  cat >conftest.$ac_ext <<_ACEOF
5078 1576 phoenix
/* confdefs.h.  */
5079
_ACEOF
5080
cat confdefs.h >>conftest.$ac_ext
5081
cat >>conftest.$ac_ext <<_ACEOF
5082
/* end confdefs.h.  */
5083 1376 phoenix
#include 
5084
 
5085
int
5086
main ()
5087
{
5088
if ((uint8_t *) 0)
5089
  return 0;
5090
if (sizeof (uint8_t))
5091
  return 0;
5092
  ;
5093
  return 0;
5094
}
5095
_ACEOF
5096
rm -f conftest.$ac_objext
5097 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5098
  (eval $ac_compile) 2>conftest.er1
5099 1376 phoenix
  ac_status=$?
5100 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5101
  rm -f conftest.er1
5102
  cat conftest.err >&5
5103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 1376 phoenix
  (exit $ac_status); } &&
5105 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5106
                         || test ! -s conftest.err'
5107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 1376 phoenix
  (eval $ac_try) 2>&5
5109
  ac_status=$?
5110 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111
  (exit $ac_status); }; } &&
5112
         { ac_try='test -s conftest.$ac_objext'
5113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114
  (eval $ac_try) 2>&5
5115
  ac_status=$?
5116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 1376 phoenix
  (exit $ac_status); }; }; then
5118
  ac_cv_type_uint8_t=yes
5119
else
5120
  echo "$as_me: failed program was:" >&5
5121 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5122
 
5123 1376 phoenix
ac_cv_type_uint8_t=no
5124
fi
5125 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 1376 phoenix
fi
5127 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
5128 1376 phoenix
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
5129
if test $ac_cv_type_uint8_t = yes; then
5130
 
5131 1576 phoenix
cat >>confdefs.h <<_ACEOF
5132 1376 phoenix
#define HAVE_UINT8_T 1
5133 1576 phoenix
_ACEOF
5134 1376 phoenix
 
5135 1576 phoenix
 
5136 1376 phoenix
fi
5137 1576 phoenix
echo "$as_me:$LINENO: checking for uint16_t" >&5
5138 1376 phoenix
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
5139
if test "${ac_cv_type_uint16_t+set}" = set; then
5140
  echo $ECHO_N "(cached) $ECHO_C" >&6
5141
else
5142
  cat >conftest.$ac_ext <<_ACEOF
5143 1576 phoenix
/* confdefs.h.  */
5144
_ACEOF
5145
cat confdefs.h >>conftest.$ac_ext
5146
cat >>conftest.$ac_ext <<_ACEOF
5147
/* end confdefs.h.  */
5148 1376 phoenix
#include 
5149
 
5150
int
5151
main ()
5152
{
5153
if ((uint16_t *) 0)
5154
  return 0;
5155
if (sizeof (uint16_t))
5156
  return 0;
5157
  ;
5158
  return 0;
5159
}
5160
_ACEOF
5161
rm -f conftest.$ac_objext
5162 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163
  (eval $ac_compile) 2>conftest.er1
5164 1376 phoenix
  ac_status=$?
5165 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5166
  rm -f conftest.er1
5167
  cat conftest.err >&5
5168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 1376 phoenix
  (exit $ac_status); } &&
5170 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5171
                         || test ! -s conftest.err'
5172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 1376 phoenix
  (eval $ac_try) 2>&5
5174
  ac_status=$?
5175 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176
  (exit $ac_status); }; } &&
5177
         { ac_try='test -s conftest.$ac_objext'
5178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179
  (eval $ac_try) 2>&5
5180
  ac_status=$?
5181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 1376 phoenix
  (exit $ac_status); }; }; then
5183
  ac_cv_type_uint16_t=yes
5184
else
5185
  echo "$as_me: failed program was:" >&5
5186 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5187
 
5188 1376 phoenix
ac_cv_type_uint16_t=no
5189
fi
5190 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191 1376 phoenix
fi
5192 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
5193 1376 phoenix
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
5194
if test $ac_cv_type_uint16_t = yes; then
5195
 
5196 1576 phoenix
cat >>confdefs.h <<_ACEOF
5197 1376 phoenix
#define HAVE_UINT16_T 1
5198 1576 phoenix
_ACEOF
5199 1376 phoenix
 
5200 1576 phoenix
 
5201 1376 phoenix
fi
5202 1576 phoenix
echo "$as_me:$LINENO: checking for uint32_t" >&5
5203 1376 phoenix
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5204
if test "${ac_cv_type_uint32_t+set}" = set; then
5205
  echo $ECHO_N "(cached) $ECHO_C" >&6
5206
else
5207
  cat >conftest.$ac_ext <<_ACEOF
5208 1576 phoenix
/* confdefs.h.  */
5209
_ACEOF
5210
cat confdefs.h >>conftest.$ac_ext
5211
cat >>conftest.$ac_ext <<_ACEOF
5212
/* end confdefs.h.  */
5213 1376 phoenix
#include 
5214
 
5215
int
5216
main ()
5217
{
5218
if ((uint32_t *) 0)
5219
  return 0;
5220
if (sizeof (uint32_t))
5221
  return 0;
5222
  ;
5223
  return 0;
5224
}
5225
_ACEOF
5226
rm -f conftest.$ac_objext
5227 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228
  (eval $ac_compile) 2>conftest.er1
5229 1376 phoenix
  ac_status=$?
5230 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5231
  rm -f conftest.er1
5232
  cat conftest.err >&5
5233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 1376 phoenix
  (exit $ac_status); } &&
5235 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5236
                         || test ! -s conftest.err'
5237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 1376 phoenix
  (eval $ac_try) 2>&5
5239
  ac_status=$?
5240 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241
  (exit $ac_status); }; } &&
5242
         { ac_try='test -s conftest.$ac_objext'
5243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244
  (eval $ac_try) 2>&5
5245
  ac_status=$?
5246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 1376 phoenix
  (exit $ac_status); }; }; then
5248
  ac_cv_type_uint32_t=yes
5249
else
5250
  echo "$as_me: failed program was:" >&5
5251 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5252
 
5253 1376 phoenix
ac_cv_type_uint32_t=no
5254
fi
5255 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5256 1376 phoenix
fi
5257 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5258 1376 phoenix
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5259
if test $ac_cv_type_uint32_t = yes; then
5260
 
5261 1576 phoenix
cat >>confdefs.h <<_ACEOF
5262 1376 phoenix
#define HAVE_UINT32_T 1
5263 1576 phoenix
_ACEOF
5264 1376 phoenix
 
5265 1576 phoenix
 
5266 1376 phoenix
fi
5267
 
5268 1576 phoenix
echo "$as_me:$LINENO: checking for int8_t" >&5
5269 1376 phoenix
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
5270
if test "${ac_cv_type_int8_t+set}" = set; then
5271
  echo $ECHO_N "(cached) $ECHO_C" >&6
5272
else
5273
  cat >conftest.$ac_ext <<_ACEOF
5274 1576 phoenix
/* confdefs.h.  */
5275
_ACEOF
5276
cat confdefs.h >>conftest.$ac_ext
5277
cat >>conftest.$ac_ext <<_ACEOF
5278
/* end confdefs.h.  */
5279 1376 phoenix
#include 
5280
 
5281
int
5282
main ()
5283
{
5284
if ((int8_t *) 0)
5285
  return 0;
5286
if (sizeof (int8_t))
5287
  return 0;
5288
  ;
5289
  return 0;
5290
}
5291
_ACEOF
5292
rm -f conftest.$ac_objext
5293 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294
  (eval $ac_compile) 2>conftest.er1
5295 1376 phoenix
  ac_status=$?
5296 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5297
  rm -f conftest.er1
5298
  cat conftest.err >&5
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 1376 phoenix
  (exit $ac_status); } &&
5301 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5302
                         || test ! -s conftest.err'
5303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 1376 phoenix
  (eval $ac_try) 2>&5
5305
  ac_status=$?
5306 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307
  (exit $ac_status); }; } &&
5308
         { ac_try='test -s conftest.$ac_objext'
5309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310
  (eval $ac_try) 2>&5
5311
  ac_status=$?
5312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 1376 phoenix
  (exit $ac_status); }; }; then
5314
  ac_cv_type_int8_t=yes
5315
else
5316
  echo "$as_me: failed program was:" >&5
5317 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5318
 
5319 1376 phoenix
ac_cv_type_int8_t=no
5320
fi
5321 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 1376 phoenix
fi
5323 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
5324 1376 phoenix
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
5325
if test $ac_cv_type_int8_t = yes; then
5326
 
5327 1576 phoenix
cat >>confdefs.h <<_ACEOF
5328 1376 phoenix
#define HAVE_INT8_T 1
5329 1576 phoenix
_ACEOF
5330 1376 phoenix
 
5331 1576 phoenix
 
5332 1376 phoenix
fi
5333 1576 phoenix
echo "$as_me:$LINENO: checking for int16_t" >&5
5334 1376 phoenix
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
5335
if test "${ac_cv_type_int16_t+set}" = set; then
5336
  echo $ECHO_N "(cached) $ECHO_C" >&6
5337
else
5338
  cat >conftest.$ac_ext <<_ACEOF
5339 1576 phoenix
/* confdefs.h.  */
5340
_ACEOF
5341
cat confdefs.h >>conftest.$ac_ext
5342
cat >>conftest.$ac_ext <<_ACEOF
5343
/* end confdefs.h.  */
5344 1376 phoenix
#include 
5345
 
5346
int
5347
main ()
5348
{
5349
if ((int16_t *) 0)
5350
  return 0;
5351
if (sizeof (int16_t))
5352
  return 0;
5353
  ;
5354
  return 0;
5355
}
5356
_ACEOF
5357
rm -f conftest.$ac_objext
5358 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359
  (eval $ac_compile) 2>conftest.er1
5360 1376 phoenix
  ac_status=$?
5361 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5362
  rm -f conftest.er1
5363
  cat conftest.err >&5
5364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 1376 phoenix
  (exit $ac_status); } &&
5366 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5367
                         || test ! -s conftest.err'
5368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 1376 phoenix
  (eval $ac_try) 2>&5
5370
  ac_status=$?
5371 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
  (exit $ac_status); }; } &&
5373
         { ac_try='test -s conftest.$ac_objext'
5374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375
  (eval $ac_try) 2>&5
5376
  ac_status=$?
5377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 1376 phoenix
  (exit $ac_status); }; }; then
5379
  ac_cv_type_int16_t=yes
5380
else
5381
  echo "$as_me: failed program was:" >&5
5382 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5383
 
5384 1376 phoenix
ac_cv_type_int16_t=no
5385
fi
5386 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 1376 phoenix
fi
5388 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
5389 1376 phoenix
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
5390
if test $ac_cv_type_int16_t = yes; then
5391
 
5392 1576 phoenix
cat >>confdefs.h <<_ACEOF
5393 1376 phoenix
#define HAVE_INT16_T 1
5394 1576 phoenix
_ACEOF
5395 1376 phoenix
 
5396 1576 phoenix
 
5397 1376 phoenix
fi
5398 1576 phoenix
echo "$as_me:$LINENO: checking for int32_t" >&5
5399 1376 phoenix
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
5400
if test "${ac_cv_type_int32_t+set}" = set; then
5401
  echo $ECHO_N "(cached) $ECHO_C" >&6
5402
else
5403
  cat >conftest.$ac_ext <<_ACEOF
5404 1576 phoenix
/* confdefs.h.  */
5405
_ACEOF
5406
cat confdefs.h >>conftest.$ac_ext
5407
cat >>conftest.$ac_ext <<_ACEOF
5408
/* end confdefs.h.  */
5409 1376 phoenix
#include 
5410
 
5411
int
5412
main ()
5413
{
5414
if ((int32_t *) 0)
5415
  return 0;
5416
if (sizeof (int32_t))
5417
  return 0;
5418
  ;
5419
  return 0;
5420
}
5421
_ACEOF
5422
rm -f conftest.$ac_objext
5423 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424
  (eval $ac_compile) 2>conftest.er1
5425 1376 phoenix
  ac_status=$?
5426 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5427
  rm -f conftest.er1
5428
  cat conftest.err >&5
5429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 1376 phoenix
  (exit $ac_status); } &&
5431 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5432
                         || test ! -s conftest.err'
5433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 1376 phoenix
  (eval $ac_try) 2>&5
5435
  ac_status=$?
5436 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
  (exit $ac_status); }; } &&
5438
         { ac_try='test -s conftest.$ac_objext'
5439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440
  (eval $ac_try) 2>&5
5441
  ac_status=$?
5442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 1376 phoenix
  (exit $ac_status); }; }; then
5444
  ac_cv_type_int32_t=yes
5445
else
5446
  echo "$as_me: failed program was:" >&5
5447 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5448
 
5449 1376 phoenix
ac_cv_type_int32_t=no
5450
fi
5451 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5452 1376 phoenix
fi
5453 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
5454 1376 phoenix
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
5455
if test $ac_cv_type_int32_t = yes; then
5456
 
5457 1576 phoenix
cat >>confdefs.h <<_ACEOF
5458 1376 phoenix
#define HAVE_INT32_T 1
5459 1576 phoenix
_ACEOF
5460 1376 phoenix
 
5461 1576 phoenix
 
5462 1376 phoenix
fi
5463
 
5464 1576 phoenix
 
5465
echo "$as_me:$LINENO: checking for char" >&5
5466 1376 phoenix
echo $ECHO_N "checking for char... $ECHO_C" >&6
5467
if test "${ac_cv_type_char+set}" = set; then
5468
  echo $ECHO_N "(cached) $ECHO_C" >&6
5469
else
5470
  cat >conftest.$ac_ext <<_ACEOF
5471 1576 phoenix
/* confdefs.h.  */
5472
_ACEOF
5473
cat confdefs.h >>conftest.$ac_ext
5474
cat >>conftest.$ac_ext <<_ACEOF
5475
/* end confdefs.h.  */
5476 1376 phoenix
$ac_includes_default
5477
int
5478
main ()
5479
{
5480
if ((char *) 0)
5481
  return 0;
5482
if (sizeof (char))
5483
  return 0;
5484
  ;
5485
  return 0;
5486
}
5487
_ACEOF
5488
rm -f conftest.$ac_objext
5489 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5490
  (eval $ac_compile) 2>conftest.er1
5491 1376 phoenix
  ac_status=$?
5492 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5493
  rm -f conftest.er1
5494
  cat conftest.err >&5
5495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 1376 phoenix
  (exit $ac_status); } &&
5497 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5498
                         || test ! -s conftest.err'
5499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 1376 phoenix
  (eval $ac_try) 2>&5
5501
  ac_status=$?
5502 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503
  (exit $ac_status); }; } &&
5504
         { ac_try='test -s conftest.$ac_objext'
5505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506
  (eval $ac_try) 2>&5
5507
  ac_status=$?
5508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 1376 phoenix
  (exit $ac_status); }; }; then
5510
  ac_cv_type_char=yes
5511
else
5512
  echo "$as_me: failed program was:" >&5
5513 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5514
 
5515 1376 phoenix
ac_cv_type_char=no
5516
fi
5517 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5518 1376 phoenix
fi
5519 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
5520 1376 phoenix
echo "${ECHO_T}$ac_cv_type_char" >&6
5521
 
5522 1576 phoenix
echo "$as_me:$LINENO: checking size of char" >&5
5523 1376 phoenix
echo $ECHO_N "checking size of char... $ECHO_C" >&6
5524
if test "${ac_cv_sizeof_char+set}" = set; then
5525
  echo $ECHO_N "(cached) $ECHO_C" >&6
5526
else
5527
  if test "$ac_cv_type_char" = yes; then
5528 1576 phoenix
  # The cast to unsigned long works around a bug in the HP C Compiler
5529
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5530
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5531
  # This bug is HP SR number 8606223364.
5532 1376 phoenix
  if test "$cross_compiling" = yes; then
5533
  # Depending upon the size, compute the lo and hi bounds.
5534
cat >conftest.$ac_ext <<_ACEOF
5535 1576 phoenix
/* confdefs.h.  */
5536
_ACEOF
5537
cat confdefs.h >>conftest.$ac_ext
5538
cat >>conftest.$ac_ext <<_ACEOF
5539
/* end confdefs.h.  */
5540 1376 phoenix
$ac_includes_default
5541
int
5542
main ()
5543
{
5544 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
5545
test_array [0] = 0
5546
 
5547 1376 phoenix
  ;
5548
  return 0;
5549
}
5550
_ACEOF
5551
rm -f conftest.$ac_objext
5552 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553
  (eval $ac_compile) 2>conftest.er1
5554 1376 phoenix
  ac_status=$?
5555 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5556
  rm -f conftest.er1
5557
  cat conftest.err >&5
5558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 1376 phoenix
  (exit $ac_status); } &&
5560 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5561
                         || test ! -s conftest.err'
5562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 1376 phoenix
  (eval $ac_try) 2>&5
5564
  ac_status=$?
5565 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
  (exit $ac_status); }; } &&
5567
         { ac_try='test -s conftest.$ac_objext'
5568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569
  (eval $ac_try) 2>&5
5570
  ac_status=$?
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 1376 phoenix
  (exit $ac_status); }; }; then
5573
  ac_lo=0 ac_mid=0
5574
  while :; do
5575
    cat >conftest.$ac_ext <<_ACEOF
5576 1576 phoenix
/* confdefs.h.  */
5577
_ACEOF
5578
cat confdefs.h >>conftest.$ac_ext
5579
cat >>conftest.$ac_ext <<_ACEOF
5580
/* end confdefs.h.  */
5581 1376 phoenix
$ac_includes_default
5582
int
5583
main ()
5584
{
5585 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5586
test_array [0] = 0
5587
 
5588 1376 phoenix
  ;
5589
  return 0;
5590
}
5591
_ACEOF
5592
rm -f conftest.$ac_objext
5593 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594
  (eval $ac_compile) 2>conftest.er1
5595 1376 phoenix
  ac_status=$?
5596 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5597
  rm -f conftest.er1
5598
  cat conftest.err >&5
5599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 1376 phoenix
  (exit $ac_status); } &&
5601 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5602
                         || test ! -s conftest.err'
5603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 1376 phoenix
  (eval $ac_try) 2>&5
5605
  ac_status=$?
5606 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607
  (exit $ac_status); }; } &&
5608
         { ac_try='test -s conftest.$ac_objext'
5609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610
  (eval $ac_try) 2>&5
5611
  ac_status=$?
5612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 1376 phoenix
  (exit $ac_status); }; }; then
5614
  ac_hi=$ac_mid; break
5615
else
5616
  echo "$as_me: failed program was:" >&5
5617 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5618
 
5619
ac_lo=`expr $ac_mid + 1`
5620
                    if test $ac_lo -le $ac_mid; then
5621
                      ac_lo= ac_hi=
5622
                      break
5623
                    fi
5624
                    ac_mid=`expr 2 '*' $ac_mid + 1`
5625 1376 phoenix
fi
5626 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 1376 phoenix
  done
5628
else
5629
  echo "$as_me: failed program was:" >&5
5630 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5631
 
5632
cat >conftest.$ac_ext <<_ACEOF
5633
/* confdefs.h.  */
5634
_ACEOF
5635
cat confdefs.h >>conftest.$ac_ext
5636
cat >>conftest.$ac_ext <<_ACEOF
5637
/* end confdefs.h.  */
5638
$ac_includes_default
5639
int
5640
main ()
5641
{
5642
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
5643
test_array [0] = 0
5644
 
5645
  ;
5646
  return 0;
5647
}
5648
_ACEOF
5649
rm -f conftest.$ac_objext
5650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651
  (eval $ac_compile) 2>conftest.er1
5652
  ac_status=$?
5653
  grep -v '^ *+' conftest.er1 >conftest.err
5654
  rm -f conftest.er1
5655
  cat conftest.err >&5
5656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657
  (exit $ac_status); } &&
5658
         { ac_try='test -z "$ac_c_werror_flag"
5659
                         || test ! -s conftest.err'
5660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661
  (eval $ac_try) 2>&5
5662
  ac_status=$?
5663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664
  (exit $ac_status); }; } &&
5665
         { ac_try='test -s conftest.$ac_objext'
5666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667
  (eval $ac_try) 2>&5
5668
  ac_status=$?
5669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670
  (exit $ac_status); }; }; then
5671
  ac_hi=-1 ac_mid=-1
5672 1376 phoenix
  while :; do
5673
    cat >conftest.$ac_ext <<_ACEOF
5674 1576 phoenix
/* confdefs.h.  */
5675
_ACEOF
5676
cat confdefs.h >>conftest.$ac_ext
5677
cat >>conftest.$ac_ext <<_ACEOF
5678
/* end confdefs.h.  */
5679 1376 phoenix
$ac_includes_default
5680
int
5681
main ()
5682
{
5683 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5684
test_array [0] = 0
5685
 
5686 1376 phoenix
  ;
5687
  return 0;
5688
}
5689
_ACEOF
5690
rm -f conftest.$ac_objext
5691 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692
  (eval $ac_compile) 2>conftest.er1
5693 1376 phoenix
  ac_status=$?
5694 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5695
  rm -f conftest.er1
5696
  cat conftest.err >&5
5697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 1376 phoenix
  (exit $ac_status); } &&
5699 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5700
                         || test ! -s conftest.err'
5701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 1376 phoenix
  (eval $ac_try) 2>&5
5703
  ac_status=$?
5704 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705
  (exit $ac_status); }; } &&
5706
         { ac_try='test -s conftest.$ac_objext'
5707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708
  (eval $ac_try) 2>&5
5709
  ac_status=$?
5710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 1376 phoenix
  (exit $ac_status); }; }; then
5712
  ac_lo=$ac_mid; break
5713
else
5714
  echo "$as_me: failed program was:" >&5
5715 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5716
 
5717
ac_hi=`expr '(' $ac_mid ')' - 1`
5718
                       if test $ac_mid -le $ac_hi; then
5719
                         ac_lo= ac_hi=
5720
                         break
5721
                       fi
5722
                       ac_mid=`expr 2 '*' $ac_mid`
5723 1376 phoenix
fi
5724 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725 1376 phoenix
  done
5726 1576 phoenix
else
5727
  echo "$as_me: failed program was:" >&5
5728
sed 's/^/| /' conftest.$ac_ext >&5
5729
 
5730
ac_lo= ac_hi=
5731 1376 phoenix
fi
5732 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5733
fi
5734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 1376 phoenix
# Binary search between lo and hi bounds.
5736
while test "x$ac_lo" != "x$ac_hi"; do
5737
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5738
  cat >conftest.$ac_ext <<_ACEOF
5739 1576 phoenix
/* confdefs.h.  */
5740
_ACEOF
5741
cat confdefs.h >>conftest.$ac_ext
5742
cat >>conftest.$ac_ext <<_ACEOF
5743
/* end confdefs.h.  */
5744 1376 phoenix
$ac_includes_default
5745
int
5746
main ()
5747
{
5748 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5749
test_array [0] = 0
5750
 
5751 1376 phoenix
  ;
5752
  return 0;
5753
}
5754
_ACEOF
5755
rm -f conftest.$ac_objext
5756 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757
  (eval $ac_compile) 2>conftest.er1
5758 1376 phoenix
  ac_status=$?
5759 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5760
  rm -f conftest.er1
5761
  cat conftest.err >&5
5762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 1376 phoenix
  (exit $ac_status); } &&
5764 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5765
                         || test ! -s conftest.err'
5766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 1376 phoenix
  (eval $ac_try) 2>&5
5768
  ac_status=$?
5769 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770
  (exit $ac_status); }; } &&
5771
         { ac_try='test -s conftest.$ac_objext'
5772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773
  (eval $ac_try) 2>&5
5774
  ac_status=$?
5775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 1376 phoenix
  (exit $ac_status); }; }; then
5777
  ac_hi=$ac_mid
5778
else
5779
  echo "$as_me: failed program was:" >&5
5780 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5781
 
5782
ac_lo=`expr '(' $ac_mid ')' + 1`
5783 1376 phoenix
fi
5784 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5785 1376 phoenix
done
5786 1576 phoenix
case $ac_lo in
5787
?*) ac_cv_sizeof_char=$ac_lo;;
5788
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5789
See \`config.log' for more details." >&5
5790
echo "$as_me: error: cannot compute sizeof (char), 77
5791
See \`config.log' for more details." >&2;}
5792
   { (exit 1); exit 1; }; } ;;
5793
esac
5794 1376 phoenix
else
5795
  if test "$cross_compiling" = yes; then
5796 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5797
See \`config.log' for more details." >&5
5798
echo "$as_me: error: cannot run test program while cross compiling
5799
See \`config.log' for more details." >&2;}
5800 1376 phoenix
   { (exit 1); exit 1; }; }
5801
else
5802
  cat >conftest.$ac_ext <<_ACEOF
5803 1576 phoenix
/* confdefs.h.  */
5804
_ACEOF
5805
cat confdefs.h >>conftest.$ac_ext
5806
cat >>conftest.$ac_ext <<_ACEOF
5807
/* end confdefs.h.  */
5808 1376 phoenix
$ac_includes_default
5809 1576 phoenix
long longval () { return (long) (sizeof (char)); }
5810
unsigned long ulongval () { return (long) (sizeof (char)); }
5811
#include 
5812
#include 
5813 1376 phoenix
int
5814
main ()
5815
{
5816 1576 phoenix
 
5817
  FILE *f = fopen ("conftest.val", "w");
5818
  if (! f)
5819
    exit (1);
5820
  if (((long) (sizeof (char))) < 0)
5821
    {
5822
      long i = longval ();
5823
      if (i != ((long) (sizeof (char))))
5824
        exit (1);
5825
      fprintf (f, "%ld\n", i);
5826
    }
5827
  else
5828
    {
5829
      unsigned long i = ulongval ();
5830
      if (i != ((long) (sizeof (char))))
5831
        exit (1);
5832
      fprintf (f, "%lu\n", i);
5833
    }
5834
  exit (ferror (f) || fclose (f) != 0);
5835
 
5836 1376 phoenix
  ;
5837
  return 0;
5838
}
5839
_ACEOF
5840
rm -f conftest$ac_exeext
5841 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 1376 phoenix
  (eval $ac_link) 2>&5
5843
  ac_status=$?
5844 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5846 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 1376 phoenix
  (eval $ac_try) 2>&5
5848
  ac_status=$?
5849 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 1376 phoenix
  (exit $ac_status); }; }; then
5851
  ac_cv_sizeof_char=`cat conftest.val`
5852
else
5853
  echo "$as_me: program exited with status $ac_status" >&5
5854
echo "$as_me: failed program was:" >&5
5855 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5856
 
5857
( exit $ac_status )
5858
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5859
See \`config.log' for more details." >&5
5860
echo "$as_me: error: cannot compute sizeof (char), 77
5861
See \`config.log' for more details." >&2;}
5862
   { (exit 1); exit 1; }; }
5863 1376 phoenix
fi
5864 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5865 1376 phoenix
fi
5866
fi
5867
rm -f conftest.val
5868
else
5869
  ac_cv_sizeof_char=0
5870
fi
5871
fi
5872 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5873 1376 phoenix
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5874 1576 phoenix
cat >>confdefs.h <<_ACEOF
5875 1376 phoenix
#define SIZEOF_CHAR $ac_cv_sizeof_char
5876 1576 phoenix
_ACEOF
5877 1376 phoenix
 
5878 1576 phoenix
 
5879
echo "$as_me:$LINENO: checking for short" >&5
5880 1376 phoenix
echo $ECHO_N "checking for short... $ECHO_C" >&6
5881
if test "${ac_cv_type_short+set}" = set; then
5882
  echo $ECHO_N "(cached) $ECHO_C" >&6
5883
else
5884
  cat >conftest.$ac_ext <<_ACEOF
5885 1576 phoenix
/* confdefs.h.  */
5886
_ACEOF
5887
cat confdefs.h >>conftest.$ac_ext
5888
cat >>conftest.$ac_ext <<_ACEOF
5889
/* end confdefs.h.  */
5890 1376 phoenix
$ac_includes_default
5891
int
5892
main ()
5893
{
5894
if ((short *) 0)
5895
  return 0;
5896
if (sizeof (short))
5897
  return 0;
5898
  ;
5899
  return 0;
5900
}
5901
_ACEOF
5902
rm -f conftest.$ac_objext
5903 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904
  (eval $ac_compile) 2>conftest.er1
5905 1376 phoenix
  ac_status=$?
5906 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5907
  rm -f conftest.er1
5908
  cat conftest.err >&5
5909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 1376 phoenix
  (exit $ac_status); } &&
5911 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5912
                         || test ! -s conftest.err'
5913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 1376 phoenix
  (eval $ac_try) 2>&5
5915
  ac_status=$?
5916 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917
  (exit $ac_status); }; } &&
5918
         { ac_try='test -s conftest.$ac_objext'
5919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920
  (eval $ac_try) 2>&5
5921
  ac_status=$?
5922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 1376 phoenix
  (exit $ac_status); }; }; then
5924
  ac_cv_type_short=yes
5925
else
5926
  echo "$as_me: failed program was:" >&5
5927 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
5928
 
5929 1376 phoenix
ac_cv_type_short=no
5930
fi
5931 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 1376 phoenix
fi
5933 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5934 1376 phoenix
echo "${ECHO_T}$ac_cv_type_short" >&6
5935
 
5936 1576 phoenix
echo "$as_me:$LINENO: checking size of short" >&5
5937 1376 phoenix
echo $ECHO_N "checking size of short... $ECHO_C" >&6
5938
if test "${ac_cv_sizeof_short+set}" = set; then
5939
  echo $ECHO_N "(cached) $ECHO_C" >&6
5940
else
5941
  if test "$ac_cv_type_short" = yes; then
5942 1576 phoenix
  # The cast to unsigned long works around a bug in the HP C Compiler
5943
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5944
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5945
  # This bug is HP SR number 8606223364.
5946 1376 phoenix
  if test "$cross_compiling" = yes; then
5947
  # Depending upon the size, compute the lo and hi bounds.
5948
cat >conftest.$ac_ext <<_ACEOF
5949 1576 phoenix
/* confdefs.h.  */
5950
_ACEOF
5951
cat confdefs.h >>conftest.$ac_ext
5952
cat >>conftest.$ac_ext <<_ACEOF
5953
/* end confdefs.h.  */
5954 1376 phoenix
$ac_includes_default
5955
int
5956
main ()
5957
{
5958 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5959
test_array [0] = 0
5960
 
5961 1376 phoenix
  ;
5962
  return 0;
5963
}
5964
_ACEOF
5965
rm -f conftest.$ac_objext
5966 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967
  (eval $ac_compile) 2>conftest.er1
5968 1376 phoenix
  ac_status=$?
5969 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
5970
  rm -f conftest.er1
5971
  cat conftest.err >&5
5972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 1376 phoenix
  (exit $ac_status); } &&
5974 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
5975
                         || test ! -s conftest.err'
5976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 1376 phoenix
  (eval $ac_try) 2>&5
5978
  ac_status=$?
5979 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
  (exit $ac_status); }; } &&
5981
         { ac_try='test -s conftest.$ac_objext'
5982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983
  (eval $ac_try) 2>&5
5984
  ac_status=$?
5985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 1376 phoenix
  (exit $ac_status); }; }; then
5987
  ac_lo=0 ac_mid=0
5988
  while :; do
5989
    cat >conftest.$ac_ext <<_ACEOF
5990 1576 phoenix
/* confdefs.h.  */
5991
_ACEOF
5992
cat confdefs.h >>conftest.$ac_ext
5993
cat >>conftest.$ac_ext <<_ACEOF
5994
/* end confdefs.h.  */
5995 1376 phoenix
$ac_includes_default
5996
int
5997
main ()
5998
{
5999 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6000
test_array [0] = 0
6001
 
6002 1376 phoenix
  ;
6003
  return 0;
6004
}
6005
_ACEOF
6006
rm -f conftest.$ac_objext
6007 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008
  (eval $ac_compile) 2>conftest.er1
6009 1376 phoenix
  ac_status=$?
6010 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6011
  rm -f conftest.er1
6012
  cat conftest.err >&5
6013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 1376 phoenix
  (exit $ac_status); } &&
6015 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6016
                         || test ! -s conftest.err'
6017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 1376 phoenix
  (eval $ac_try) 2>&5
6019
  ac_status=$?
6020 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
  (exit $ac_status); }; } &&
6022
         { ac_try='test -s conftest.$ac_objext'
6023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024
  (eval $ac_try) 2>&5
6025
  ac_status=$?
6026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 1376 phoenix
  (exit $ac_status); }; }; then
6028
  ac_hi=$ac_mid; break
6029
else
6030
  echo "$as_me: failed program was:" >&5
6031 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6032
 
6033
ac_lo=`expr $ac_mid + 1`
6034
                    if test $ac_lo -le $ac_mid; then
6035
                      ac_lo= ac_hi=
6036
                      break
6037
                    fi
6038
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6039 1376 phoenix
fi
6040 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 1376 phoenix
  done
6042
else
6043
  echo "$as_me: failed program was:" >&5
6044 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6045
 
6046
cat >conftest.$ac_ext <<_ACEOF
6047
/* confdefs.h.  */
6048
_ACEOF
6049
cat confdefs.h >>conftest.$ac_ext
6050
cat >>conftest.$ac_ext <<_ACEOF
6051
/* end confdefs.h.  */
6052
$ac_includes_default
6053
int
6054
main ()
6055
{
6056
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6057
test_array [0] = 0
6058
 
6059
  ;
6060
  return 0;
6061
}
6062
_ACEOF
6063
rm -f conftest.$ac_objext
6064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065
  (eval $ac_compile) 2>conftest.er1
6066
  ac_status=$?
6067
  grep -v '^ *+' conftest.er1 >conftest.err
6068
  rm -f conftest.er1
6069
  cat conftest.err >&5
6070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071
  (exit $ac_status); } &&
6072
         { ac_try='test -z "$ac_c_werror_flag"
6073
                         || test ! -s conftest.err'
6074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075
  (eval $ac_try) 2>&5
6076
  ac_status=$?
6077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078
  (exit $ac_status); }; } &&
6079
         { ac_try='test -s conftest.$ac_objext'
6080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081
  (eval $ac_try) 2>&5
6082
  ac_status=$?
6083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084
  (exit $ac_status); }; }; then
6085
  ac_hi=-1 ac_mid=-1
6086 1376 phoenix
  while :; do
6087
    cat >conftest.$ac_ext <<_ACEOF
6088 1576 phoenix
/* confdefs.h.  */
6089
_ACEOF
6090
cat confdefs.h >>conftest.$ac_ext
6091
cat >>conftest.$ac_ext <<_ACEOF
6092
/* end confdefs.h.  */
6093 1376 phoenix
$ac_includes_default
6094
int
6095
main ()
6096
{
6097 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6098
test_array [0] = 0
6099
 
6100 1376 phoenix
  ;
6101
  return 0;
6102
}
6103
_ACEOF
6104
rm -f conftest.$ac_objext
6105 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106
  (eval $ac_compile) 2>conftest.er1
6107 1376 phoenix
  ac_status=$?
6108 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6109
  rm -f conftest.er1
6110
  cat conftest.err >&5
6111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 1376 phoenix
  (exit $ac_status); } &&
6113 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6114
                         || test ! -s conftest.err'
6115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 1376 phoenix
  (eval $ac_try) 2>&5
6117
  ac_status=$?
6118 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
  (exit $ac_status); }; } &&
6120
         { ac_try='test -s conftest.$ac_objext'
6121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122
  (eval $ac_try) 2>&5
6123
  ac_status=$?
6124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 1376 phoenix
  (exit $ac_status); }; }; then
6126
  ac_lo=$ac_mid; break
6127
else
6128
  echo "$as_me: failed program was:" >&5
6129 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6130
 
6131
ac_hi=`expr '(' $ac_mid ')' - 1`
6132
                       if test $ac_mid -le $ac_hi; then
6133
                         ac_lo= ac_hi=
6134
                         break
6135
                       fi
6136
                       ac_mid=`expr 2 '*' $ac_mid`
6137 1376 phoenix
fi
6138 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 1376 phoenix
  done
6140 1576 phoenix
else
6141
  echo "$as_me: failed program was:" >&5
6142
sed 's/^/| /' conftest.$ac_ext >&5
6143
 
6144
ac_lo= ac_hi=
6145 1376 phoenix
fi
6146 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147
fi
6148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 1376 phoenix
# Binary search between lo and hi bounds.
6150
while test "x$ac_lo" != "x$ac_hi"; do
6151
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6152
  cat >conftest.$ac_ext <<_ACEOF
6153 1576 phoenix
/* confdefs.h.  */
6154
_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h.  */
6158 1376 phoenix
$ac_includes_default
6159
int
6160
main ()
6161
{
6162 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6163
test_array [0] = 0
6164
 
6165 1376 phoenix
  ;
6166
  return 0;
6167
}
6168
_ACEOF
6169
rm -f conftest.$ac_objext
6170 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171
  (eval $ac_compile) 2>conftest.er1
6172 1376 phoenix
  ac_status=$?
6173 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6174
  rm -f conftest.er1
6175
  cat conftest.err >&5
6176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 1376 phoenix
  (exit $ac_status); } &&
6178 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6179
                         || test ! -s conftest.err'
6180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 1376 phoenix
  (eval $ac_try) 2>&5
6182
  ac_status=$?
6183 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184
  (exit $ac_status); }; } &&
6185
         { ac_try='test -s conftest.$ac_objext'
6186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187
  (eval $ac_try) 2>&5
6188
  ac_status=$?
6189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 1376 phoenix
  (exit $ac_status); }; }; then
6191
  ac_hi=$ac_mid
6192
else
6193
  echo "$as_me: failed program was:" >&5
6194 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6195
 
6196
ac_lo=`expr '(' $ac_mid ')' + 1`
6197 1376 phoenix
fi
6198 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6199 1376 phoenix
done
6200 1576 phoenix
case $ac_lo in
6201
?*) ac_cv_sizeof_short=$ac_lo;;
6202
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6203
See \`config.log' for more details." >&5
6204
echo "$as_me: error: cannot compute sizeof (short), 77
6205
See \`config.log' for more details." >&2;}
6206
   { (exit 1); exit 1; }; } ;;
6207
esac
6208 1376 phoenix
else
6209
  if test "$cross_compiling" = yes; then
6210 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6211
See \`config.log' for more details." >&5
6212
echo "$as_me: error: cannot run test program while cross compiling
6213
See \`config.log' for more details." >&2;}
6214 1376 phoenix
   { (exit 1); exit 1; }; }
6215
else
6216
  cat >conftest.$ac_ext <<_ACEOF
6217 1576 phoenix
/* confdefs.h.  */
6218
_ACEOF
6219
cat confdefs.h >>conftest.$ac_ext
6220
cat >>conftest.$ac_ext <<_ACEOF
6221
/* end confdefs.h.  */
6222 1376 phoenix
$ac_includes_default
6223 1576 phoenix
long longval () { return (long) (sizeof (short)); }
6224
unsigned long ulongval () { return (long) (sizeof (short)); }
6225
#include 
6226
#include 
6227 1376 phoenix
int
6228
main ()
6229
{
6230 1576 phoenix
 
6231
  FILE *f = fopen ("conftest.val", "w");
6232
  if (! f)
6233
    exit (1);
6234
  if (((long) (sizeof (short))) < 0)
6235
    {
6236
      long i = longval ();
6237
      if (i != ((long) (sizeof (short))))
6238
        exit (1);
6239
      fprintf (f, "%ld\n", i);
6240
    }
6241
  else
6242
    {
6243
      unsigned long i = ulongval ();
6244
      if (i != ((long) (sizeof (short))))
6245
        exit (1);
6246
      fprintf (f, "%lu\n", i);
6247
    }
6248
  exit (ferror (f) || fclose (f) != 0);
6249
 
6250 1376 phoenix
  ;
6251
  return 0;
6252
}
6253
_ACEOF
6254
rm -f conftest$ac_exeext
6255 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6256 1376 phoenix
  (eval $ac_link) 2>&5
6257
  ac_status=$?
6258 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6260 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 1376 phoenix
  (eval $ac_try) 2>&5
6262
  ac_status=$?
6263 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 1376 phoenix
  (exit $ac_status); }; }; then
6265
  ac_cv_sizeof_short=`cat conftest.val`
6266
else
6267
  echo "$as_me: program exited with status $ac_status" >&5
6268
echo "$as_me: failed program was:" >&5
6269 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6270
 
6271
( exit $ac_status )
6272
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6273
See \`config.log' for more details." >&5
6274
echo "$as_me: error: cannot compute sizeof (short), 77
6275
See \`config.log' for more details." >&2;}
6276
   { (exit 1); exit 1; }; }
6277 1376 phoenix
fi
6278 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6279 1376 phoenix
fi
6280
fi
6281
rm -f conftest.val
6282
else
6283
  ac_cv_sizeof_short=0
6284
fi
6285
fi
6286 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6287 1376 phoenix
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6288 1576 phoenix
cat >>confdefs.h <<_ACEOF
6289 1376 phoenix
#define SIZEOF_SHORT $ac_cv_sizeof_short
6290 1576 phoenix
_ACEOF
6291 1376 phoenix
 
6292 1576 phoenix
 
6293
echo "$as_me:$LINENO: checking for int" >&5
6294 1376 phoenix
echo $ECHO_N "checking for int... $ECHO_C" >&6
6295
if test "${ac_cv_type_int+set}" = set; then
6296
  echo $ECHO_N "(cached) $ECHO_C" >&6
6297
else
6298
  cat >conftest.$ac_ext <<_ACEOF
6299 1576 phoenix
/* confdefs.h.  */
6300
_ACEOF
6301
cat confdefs.h >>conftest.$ac_ext
6302
cat >>conftest.$ac_ext <<_ACEOF
6303
/* end confdefs.h.  */
6304 1376 phoenix
$ac_includes_default
6305
int
6306
main ()
6307
{
6308
if ((int *) 0)
6309
  return 0;
6310
if (sizeof (int))
6311
  return 0;
6312
  ;
6313
  return 0;
6314
}
6315
_ACEOF
6316
rm -f conftest.$ac_objext
6317 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318
  (eval $ac_compile) 2>conftest.er1
6319 1376 phoenix
  ac_status=$?
6320 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6321
  rm -f conftest.er1
6322
  cat conftest.err >&5
6323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 1376 phoenix
  (exit $ac_status); } &&
6325 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6326
                         || test ! -s conftest.err'
6327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 1376 phoenix
  (eval $ac_try) 2>&5
6329
  ac_status=$?
6330 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331
  (exit $ac_status); }; } &&
6332
         { ac_try='test -s conftest.$ac_objext'
6333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334
  (eval $ac_try) 2>&5
6335
  ac_status=$?
6336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 1376 phoenix
  (exit $ac_status); }; }; then
6338
  ac_cv_type_int=yes
6339
else
6340
  echo "$as_me: failed program was:" >&5
6341 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6342
 
6343 1376 phoenix
ac_cv_type_int=no
6344
fi
6345 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346 1376 phoenix
fi
6347 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6348 1376 phoenix
echo "${ECHO_T}$ac_cv_type_int" >&6
6349
 
6350 1576 phoenix
echo "$as_me:$LINENO: checking size of int" >&5
6351 1376 phoenix
echo $ECHO_N "checking size of int... $ECHO_C" >&6
6352
if test "${ac_cv_sizeof_int+set}" = set; then
6353
  echo $ECHO_N "(cached) $ECHO_C" >&6
6354
else
6355
  if test "$ac_cv_type_int" = yes; then
6356 1576 phoenix
  # The cast to unsigned long works around a bug in the HP C Compiler
6357
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6358
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6359
  # This bug is HP SR number 8606223364.
6360 1376 phoenix
  if test "$cross_compiling" = yes; then
6361
  # Depending upon the size, compute the lo and hi bounds.
6362
cat >conftest.$ac_ext <<_ACEOF
6363 1576 phoenix
/* confdefs.h.  */
6364
_ACEOF
6365
cat confdefs.h >>conftest.$ac_ext
6366
cat >>conftest.$ac_ext <<_ACEOF
6367
/* end confdefs.h.  */
6368 1376 phoenix
$ac_includes_default
6369
int
6370
main ()
6371
{
6372 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6373
test_array [0] = 0
6374
 
6375 1376 phoenix
  ;
6376
  return 0;
6377
}
6378
_ACEOF
6379
rm -f conftest.$ac_objext
6380 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381
  (eval $ac_compile) 2>conftest.er1
6382 1376 phoenix
  ac_status=$?
6383 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6384
  rm -f conftest.er1
6385
  cat conftest.err >&5
6386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 1376 phoenix
  (exit $ac_status); } &&
6388 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6389
                         || test ! -s conftest.err'
6390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 1376 phoenix
  (eval $ac_try) 2>&5
6392
  ac_status=$?
6393 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394
  (exit $ac_status); }; } &&
6395
         { ac_try='test -s conftest.$ac_objext'
6396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397
  (eval $ac_try) 2>&5
6398
  ac_status=$?
6399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 1376 phoenix
  (exit $ac_status); }; }; then
6401
  ac_lo=0 ac_mid=0
6402
  while :; do
6403
    cat >conftest.$ac_ext <<_ACEOF
6404 1576 phoenix
/* confdefs.h.  */
6405
_ACEOF
6406
cat confdefs.h >>conftest.$ac_ext
6407
cat >>conftest.$ac_ext <<_ACEOF
6408
/* end confdefs.h.  */
6409 1376 phoenix
$ac_includes_default
6410
int
6411
main ()
6412
{
6413 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6414
test_array [0] = 0
6415
 
6416 1376 phoenix
  ;
6417
  return 0;
6418
}
6419
_ACEOF
6420
rm -f conftest.$ac_objext
6421 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422
  (eval $ac_compile) 2>conftest.er1
6423 1376 phoenix
  ac_status=$?
6424 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6425
  rm -f conftest.er1
6426
  cat conftest.err >&5
6427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 1376 phoenix
  (exit $ac_status); } &&
6429 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6430
                         || test ! -s conftest.err'
6431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 1376 phoenix
  (eval $ac_try) 2>&5
6433
  ac_status=$?
6434 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435
  (exit $ac_status); }; } &&
6436
         { ac_try='test -s conftest.$ac_objext'
6437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438
  (eval $ac_try) 2>&5
6439
  ac_status=$?
6440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 1376 phoenix
  (exit $ac_status); }; }; then
6442
  ac_hi=$ac_mid; break
6443
else
6444
  echo "$as_me: failed program was:" >&5
6445 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6446
 
6447
ac_lo=`expr $ac_mid + 1`
6448
                    if test $ac_lo -le $ac_mid; then
6449
                      ac_lo= ac_hi=
6450
                      break
6451
                    fi
6452
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6453 1376 phoenix
fi
6454 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 1376 phoenix
  done
6456
else
6457
  echo "$as_me: failed program was:" >&5
6458 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6459
 
6460
cat >conftest.$ac_ext <<_ACEOF
6461
/* confdefs.h.  */
6462
_ACEOF
6463
cat confdefs.h >>conftest.$ac_ext
6464
cat >>conftest.$ac_ext <<_ACEOF
6465
/* end confdefs.h.  */
6466
$ac_includes_default
6467
int
6468
main ()
6469
{
6470
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6471
test_array [0] = 0
6472
 
6473
  ;
6474
  return 0;
6475
}
6476
_ACEOF
6477
rm -f conftest.$ac_objext
6478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479
  (eval $ac_compile) 2>conftest.er1
6480
  ac_status=$?
6481
  grep -v '^ *+' conftest.er1 >conftest.err
6482
  rm -f conftest.er1
6483
  cat conftest.err >&5
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
  (exit $ac_status); } &&
6486
         { ac_try='test -z "$ac_c_werror_flag"
6487
                         || test ! -s conftest.err'
6488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489
  (eval $ac_try) 2>&5
6490
  ac_status=$?
6491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492
  (exit $ac_status); }; } &&
6493
         { ac_try='test -s conftest.$ac_objext'
6494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495
  (eval $ac_try) 2>&5
6496
  ac_status=$?
6497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
  (exit $ac_status); }; }; then
6499
  ac_hi=-1 ac_mid=-1
6500 1376 phoenix
  while :; do
6501
    cat >conftest.$ac_ext <<_ACEOF
6502 1576 phoenix
/* confdefs.h.  */
6503
_ACEOF
6504
cat confdefs.h >>conftest.$ac_ext
6505
cat >>conftest.$ac_ext <<_ACEOF
6506
/* end confdefs.h.  */
6507 1376 phoenix
$ac_includes_default
6508
int
6509
main ()
6510
{
6511 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6512
test_array [0] = 0
6513
 
6514 1376 phoenix
  ;
6515
  return 0;
6516
}
6517
_ACEOF
6518
rm -f conftest.$ac_objext
6519 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520
  (eval $ac_compile) 2>conftest.er1
6521 1376 phoenix
  ac_status=$?
6522 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6523
  rm -f conftest.er1
6524
  cat conftest.err >&5
6525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 1376 phoenix
  (exit $ac_status); } &&
6527 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6528
                         || test ! -s conftest.err'
6529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 1376 phoenix
  (eval $ac_try) 2>&5
6531
  ac_status=$?
6532 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533
  (exit $ac_status); }; } &&
6534
         { ac_try='test -s conftest.$ac_objext'
6535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536
  (eval $ac_try) 2>&5
6537
  ac_status=$?
6538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 1376 phoenix
  (exit $ac_status); }; }; then
6540
  ac_lo=$ac_mid; break
6541
else
6542
  echo "$as_me: failed program was:" >&5
6543 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6544
 
6545
ac_hi=`expr '(' $ac_mid ')' - 1`
6546
                       if test $ac_mid -le $ac_hi; then
6547
                         ac_lo= ac_hi=
6548
                         break
6549
                       fi
6550
                       ac_mid=`expr 2 '*' $ac_mid`
6551 1376 phoenix
fi
6552 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 1376 phoenix
  done
6554 1576 phoenix
else
6555
  echo "$as_me: failed program was:" >&5
6556
sed 's/^/| /' conftest.$ac_ext >&5
6557
 
6558
ac_lo= ac_hi=
6559 1376 phoenix
fi
6560 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561
fi
6562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6563 1376 phoenix
# Binary search between lo and hi bounds.
6564
while test "x$ac_lo" != "x$ac_hi"; do
6565
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6566
  cat >conftest.$ac_ext <<_ACEOF
6567 1576 phoenix
/* confdefs.h.  */
6568
_ACEOF
6569
cat confdefs.h >>conftest.$ac_ext
6570
cat >>conftest.$ac_ext <<_ACEOF
6571
/* end confdefs.h.  */
6572 1376 phoenix
$ac_includes_default
6573
int
6574
main ()
6575
{
6576 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6577
test_array [0] = 0
6578
 
6579 1376 phoenix
  ;
6580
  return 0;
6581
}
6582
_ACEOF
6583
rm -f conftest.$ac_objext
6584 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585
  (eval $ac_compile) 2>conftest.er1
6586 1376 phoenix
  ac_status=$?
6587 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6588
  rm -f conftest.er1
6589
  cat conftest.err >&5
6590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 1376 phoenix
  (exit $ac_status); } &&
6592 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6593
                         || test ! -s conftest.err'
6594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 1376 phoenix
  (eval $ac_try) 2>&5
6596
  ac_status=$?
6597 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598
  (exit $ac_status); }; } &&
6599
         { ac_try='test -s conftest.$ac_objext'
6600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601
  (eval $ac_try) 2>&5
6602
  ac_status=$?
6603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 1376 phoenix
  (exit $ac_status); }; }; then
6605
  ac_hi=$ac_mid
6606
else
6607
  echo "$as_me: failed program was:" >&5
6608 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6609
 
6610
ac_lo=`expr '(' $ac_mid ')' + 1`
6611 1376 phoenix
fi
6612 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 1376 phoenix
done
6614 1576 phoenix
case $ac_lo in
6615
?*) ac_cv_sizeof_int=$ac_lo;;
6616
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6617
See \`config.log' for more details." >&5
6618
echo "$as_me: error: cannot compute sizeof (int), 77
6619
See \`config.log' for more details." >&2;}
6620
   { (exit 1); exit 1; }; } ;;
6621
esac
6622 1376 phoenix
else
6623
  if test "$cross_compiling" = yes; then
6624 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6625
See \`config.log' for more details." >&5
6626
echo "$as_me: error: cannot run test program while cross compiling
6627
See \`config.log' for more details." >&2;}
6628 1376 phoenix
   { (exit 1); exit 1; }; }
6629
else
6630
  cat >conftest.$ac_ext <<_ACEOF
6631 1576 phoenix
/* confdefs.h.  */
6632
_ACEOF
6633
cat confdefs.h >>conftest.$ac_ext
6634
cat >>conftest.$ac_ext <<_ACEOF
6635
/* end confdefs.h.  */
6636 1376 phoenix
$ac_includes_default
6637 1576 phoenix
long longval () { return (long) (sizeof (int)); }
6638
unsigned long ulongval () { return (long) (sizeof (int)); }
6639
#include 
6640
#include 
6641 1376 phoenix
int
6642
main ()
6643
{
6644 1576 phoenix
 
6645
  FILE *f = fopen ("conftest.val", "w");
6646
  if (! f)
6647
    exit (1);
6648
  if (((long) (sizeof (int))) < 0)
6649
    {
6650
      long i = longval ();
6651
      if (i != ((long) (sizeof (int))))
6652
        exit (1);
6653
      fprintf (f, "%ld\n", i);
6654
    }
6655
  else
6656
    {
6657
      unsigned long i = ulongval ();
6658
      if (i != ((long) (sizeof (int))))
6659
        exit (1);
6660
      fprintf (f, "%lu\n", i);
6661
    }
6662
  exit (ferror (f) || fclose (f) != 0);
6663
 
6664 1376 phoenix
  ;
6665
  return 0;
6666
}
6667
_ACEOF
6668
rm -f conftest$ac_exeext
6669 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670 1376 phoenix
  (eval $ac_link) 2>&5
6671
  ac_status=$?
6672 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6674 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 1376 phoenix
  (eval $ac_try) 2>&5
6676
  ac_status=$?
6677 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 1376 phoenix
  (exit $ac_status); }; }; then
6679
  ac_cv_sizeof_int=`cat conftest.val`
6680
else
6681
  echo "$as_me: program exited with status $ac_status" >&5
6682
echo "$as_me: failed program was:" >&5
6683 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6684
 
6685
( exit $ac_status )
6686
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6687
See \`config.log' for more details." >&5
6688
echo "$as_me: error: cannot compute sizeof (int), 77
6689
See \`config.log' for more details." >&2;}
6690
   { (exit 1); exit 1; }; }
6691 1376 phoenix
fi
6692 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6693 1376 phoenix
fi
6694
fi
6695
rm -f conftest.val
6696
else
6697
  ac_cv_sizeof_int=0
6698
fi
6699
fi
6700 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6701 1376 phoenix
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6702 1576 phoenix
cat >>confdefs.h <<_ACEOF
6703 1376 phoenix
#define SIZEOF_INT $ac_cv_sizeof_int
6704 1576 phoenix
_ACEOF
6705 1376 phoenix
 
6706 1576 phoenix
 
6707
echo "$as_me:$LINENO: checking for long" >&5
6708 1376 phoenix
echo $ECHO_N "checking for long... $ECHO_C" >&6
6709
if test "${ac_cv_type_long+set}" = set; then
6710
  echo $ECHO_N "(cached) $ECHO_C" >&6
6711
else
6712
  cat >conftest.$ac_ext <<_ACEOF
6713 1576 phoenix
/* confdefs.h.  */
6714
_ACEOF
6715
cat confdefs.h >>conftest.$ac_ext
6716
cat >>conftest.$ac_ext <<_ACEOF
6717
/* end confdefs.h.  */
6718 1376 phoenix
$ac_includes_default
6719
int
6720
main ()
6721
{
6722
if ((long *) 0)
6723
  return 0;
6724
if (sizeof (long))
6725
  return 0;
6726
  ;
6727
  return 0;
6728
}
6729
_ACEOF
6730
rm -f conftest.$ac_objext
6731 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6732
  (eval $ac_compile) 2>conftest.er1
6733 1376 phoenix
  ac_status=$?
6734 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6735
  rm -f conftest.er1
6736
  cat conftest.err >&5
6737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 1376 phoenix
  (exit $ac_status); } &&
6739 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6740
                         || test ! -s conftest.err'
6741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 1376 phoenix
  (eval $ac_try) 2>&5
6743
  ac_status=$?
6744 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745
  (exit $ac_status); }; } &&
6746
         { ac_try='test -s conftest.$ac_objext'
6747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748
  (eval $ac_try) 2>&5
6749
  ac_status=$?
6750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 1376 phoenix
  (exit $ac_status); }; }; then
6752
  ac_cv_type_long=yes
6753
else
6754
  echo "$as_me: failed program was:" >&5
6755 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6756
 
6757 1376 phoenix
ac_cv_type_long=no
6758
fi
6759 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6760 1376 phoenix
fi
6761 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6762 1376 phoenix
echo "${ECHO_T}$ac_cv_type_long" >&6
6763
 
6764 1576 phoenix
echo "$as_me:$LINENO: checking size of long" >&5
6765 1376 phoenix
echo $ECHO_N "checking size of long... $ECHO_C" >&6
6766
if test "${ac_cv_sizeof_long+set}" = set; then
6767
  echo $ECHO_N "(cached) $ECHO_C" >&6
6768
else
6769
  if test "$ac_cv_type_long" = yes; then
6770 1576 phoenix
  # The cast to unsigned long works around a bug in the HP C Compiler
6771
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6772
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6773
  # This bug is HP SR number 8606223364.
6774 1376 phoenix
  if test "$cross_compiling" = yes; then
6775
  # Depending upon the size, compute the lo and hi bounds.
6776
cat >conftest.$ac_ext <<_ACEOF
6777 1576 phoenix
/* confdefs.h.  */
6778
_ACEOF
6779
cat confdefs.h >>conftest.$ac_ext
6780
cat >>conftest.$ac_ext <<_ACEOF
6781
/* end confdefs.h.  */
6782 1376 phoenix
$ac_includes_default
6783
int
6784
main ()
6785
{
6786 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6787
test_array [0] = 0
6788
 
6789 1376 phoenix
  ;
6790
  return 0;
6791
}
6792
_ACEOF
6793
rm -f conftest.$ac_objext
6794 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795
  (eval $ac_compile) 2>conftest.er1
6796 1376 phoenix
  ac_status=$?
6797 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6798
  rm -f conftest.er1
6799
  cat conftest.err >&5
6800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 1376 phoenix
  (exit $ac_status); } &&
6802 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6803
                         || test ! -s conftest.err'
6804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 1376 phoenix
  (eval $ac_try) 2>&5
6806
  ac_status=$?
6807 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808
  (exit $ac_status); }; } &&
6809
         { ac_try='test -s conftest.$ac_objext'
6810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811
  (eval $ac_try) 2>&5
6812
  ac_status=$?
6813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 1376 phoenix
  (exit $ac_status); }; }; then
6815
  ac_lo=0 ac_mid=0
6816
  while :; do
6817
    cat >conftest.$ac_ext <<_ACEOF
6818 1576 phoenix
/* confdefs.h.  */
6819
_ACEOF
6820
cat confdefs.h >>conftest.$ac_ext
6821
cat >>conftest.$ac_ext <<_ACEOF
6822
/* end confdefs.h.  */
6823 1376 phoenix
$ac_includes_default
6824
int
6825
main ()
6826
{
6827 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6828
test_array [0] = 0
6829
 
6830 1376 phoenix
  ;
6831
  return 0;
6832
}
6833
_ACEOF
6834
rm -f conftest.$ac_objext
6835 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6836
  (eval $ac_compile) 2>conftest.er1
6837 1376 phoenix
  ac_status=$?
6838 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6839
  rm -f conftest.er1
6840
  cat conftest.err >&5
6841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 1376 phoenix
  (exit $ac_status); } &&
6843 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6844
                         || test ! -s conftest.err'
6845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 1376 phoenix
  (eval $ac_try) 2>&5
6847
  ac_status=$?
6848 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849
  (exit $ac_status); }; } &&
6850
         { ac_try='test -s conftest.$ac_objext'
6851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852
  (eval $ac_try) 2>&5
6853
  ac_status=$?
6854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 1376 phoenix
  (exit $ac_status); }; }; then
6856
  ac_hi=$ac_mid; break
6857
else
6858
  echo "$as_me: failed program was:" >&5
6859 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6860
 
6861
ac_lo=`expr $ac_mid + 1`
6862
                    if test $ac_lo -le $ac_mid; then
6863
                      ac_lo= ac_hi=
6864
                      break
6865
                    fi
6866
                    ac_mid=`expr 2 '*' $ac_mid + 1`
6867 1376 phoenix
fi
6868 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6869 1376 phoenix
  done
6870
else
6871
  echo "$as_me: failed program was:" >&5
6872 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6873
 
6874
cat >conftest.$ac_ext <<_ACEOF
6875
/* confdefs.h.  */
6876
_ACEOF
6877
cat confdefs.h >>conftest.$ac_ext
6878
cat >>conftest.$ac_ext <<_ACEOF
6879
/* end confdefs.h.  */
6880
$ac_includes_default
6881
int
6882
main ()
6883
{
6884
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6885
test_array [0] = 0
6886
 
6887
  ;
6888
  return 0;
6889
}
6890
_ACEOF
6891
rm -f conftest.$ac_objext
6892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893
  (eval $ac_compile) 2>conftest.er1
6894
  ac_status=$?
6895
  grep -v '^ *+' conftest.er1 >conftest.err
6896
  rm -f conftest.er1
6897
  cat conftest.err >&5
6898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899
  (exit $ac_status); } &&
6900
         { ac_try='test -z "$ac_c_werror_flag"
6901
                         || test ! -s conftest.err'
6902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903
  (eval $ac_try) 2>&5
6904
  ac_status=$?
6905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906
  (exit $ac_status); }; } &&
6907
         { ac_try='test -s conftest.$ac_objext'
6908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909
  (eval $ac_try) 2>&5
6910
  ac_status=$?
6911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912
  (exit $ac_status); }; }; then
6913
  ac_hi=-1 ac_mid=-1
6914 1376 phoenix
  while :; do
6915
    cat >conftest.$ac_ext <<_ACEOF
6916 1576 phoenix
/* confdefs.h.  */
6917
_ACEOF
6918
cat confdefs.h >>conftest.$ac_ext
6919
cat >>conftest.$ac_ext <<_ACEOF
6920
/* end confdefs.h.  */
6921 1376 phoenix
$ac_includes_default
6922
int
6923
main ()
6924
{
6925 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6926
test_array [0] = 0
6927
 
6928 1376 phoenix
  ;
6929
  return 0;
6930
}
6931
_ACEOF
6932
rm -f conftest.$ac_objext
6933 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934
  (eval $ac_compile) 2>conftest.er1
6935 1376 phoenix
  ac_status=$?
6936 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
6937
  rm -f conftest.er1
6938
  cat conftest.err >&5
6939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 1376 phoenix
  (exit $ac_status); } &&
6941 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
6942
                         || test ! -s conftest.err'
6943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 1376 phoenix
  (eval $ac_try) 2>&5
6945
  ac_status=$?
6946 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947
  (exit $ac_status); }; } &&
6948
         { ac_try='test -s conftest.$ac_objext'
6949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950
  (eval $ac_try) 2>&5
6951
  ac_status=$?
6952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 1376 phoenix
  (exit $ac_status); }; }; then
6954
  ac_lo=$ac_mid; break
6955
else
6956
  echo "$as_me: failed program was:" >&5
6957 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
6958
 
6959
ac_hi=`expr '(' $ac_mid ')' - 1`
6960
                       if test $ac_mid -le $ac_hi; then
6961
                         ac_lo= ac_hi=
6962
                         break
6963
                       fi
6964
                       ac_mid=`expr 2 '*' $ac_mid`
6965 1376 phoenix
fi
6966 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967 1376 phoenix
  done
6968 1576 phoenix
else
6969
  echo "$as_me: failed program was:" >&5
6970
sed 's/^/| /' conftest.$ac_ext >&5
6971
 
6972
ac_lo= ac_hi=
6973 1376 phoenix
fi
6974 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975
fi
6976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6977 1376 phoenix
# Binary search between lo and hi bounds.
6978
while test "x$ac_lo" != "x$ac_hi"; do
6979
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6980
  cat >conftest.$ac_ext <<_ACEOF
6981 1576 phoenix
/* confdefs.h.  */
6982
_ACEOF
6983
cat confdefs.h >>conftest.$ac_ext
6984
cat >>conftest.$ac_ext <<_ACEOF
6985
/* end confdefs.h.  */
6986 1376 phoenix
$ac_includes_default
6987
int
6988
main ()
6989
{
6990 1576 phoenix
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6991
test_array [0] = 0
6992
 
6993 1376 phoenix
  ;
6994
  return 0;
6995
}
6996
_ACEOF
6997
rm -f conftest.$ac_objext
6998 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999
  (eval $ac_compile) 2>conftest.er1
7000 1376 phoenix
  ac_status=$?
7001 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
7002
  rm -f conftest.er1
7003
  cat conftest.err >&5
7004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 1376 phoenix
  (exit $ac_status); } &&
7006 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
7007
                         || test ! -s conftest.err'
7008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 1376 phoenix
  (eval $ac_try) 2>&5
7010
  ac_status=$?
7011 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012
  (exit $ac_status); }; } &&
7013
         { ac_try='test -s conftest.$ac_objext'
7014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015
  (eval $ac_try) 2>&5
7016
  ac_status=$?
7017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 1376 phoenix
  (exit $ac_status); }; }; then
7019
  ac_hi=$ac_mid
7020
else
7021
  echo "$as_me: failed program was:" >&5
7022 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
7023
 
7024
ac_lo=`expr '(' $ac_mid ')' + 1`
7025 1376 phoenix
fi
7026 1576 phoenix
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7027 1376 phoenix
done
7028 1576 phoenix
case $ac_lo in
7029
?*) ac_cv_sizeof_long=$ac_lo;;
7030
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7031
See \`config.log' for more details." >&5
7032
echo "$as_me: error: cannot compute sizeof (long), 77
7033
See \`config.log' for more details." >&2;}
7034
   { (exit 1); exit 1; }; } ;;
7035
esac
7036 1376 phoenix
else
7037
  if test "$cross_compiling" = yes; then
7038 1576 phoenix
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7039
See \`config.log' for more details." >&5
7040
echo "$as_me: error: cannot run test program while cross compiling
7041
See \`config.log' for more details." >&2;}
7042 1376 phoenix
   { (exit 1); exit 1; }; }
7043
else
7044
  cat >conftest.$ac_ext <<_ACEOF
7045 1576 phoenix
/* confdefs.h.  */
7046
_ACEOF
7047
cat confdefs.h >>conftest.$ac_ext
7048
cat >>conftest.$ac_ext <<_ACEOF
7049
/* end confdefs.h.  */
7050 1376 phoenix
$ac_includes_default
7051 1576 phoenix
long longval () { return (long) (sizeof (long)); }
7052
unsigned long ulongval () { return (long) (sizeof (long)); }
7053
#include 
7054
#include 
7055 1376 phoenix
int
7056
main ()
7057
{
7058 1576 phoenix
 
7059
  FILE *f = fopen ("conftest.val", "w");
7060
  if (! f)
7061
    exit (1);
7062
  if (((long) (sizeof (long))) < 0)
7063
    {
7064
      long i = longval ();
7065
      if (i != ((long) (sizeof (long))))
7066
        exit (1);
7067
      fprintf (f, "%ld\n", i);
7068
    }
7069
  else
7070
    {
7071
      unsigned long i = ulongval ();
7072
      if (i != ((long) (sizeof (long))))
7073
        exit (1);
7074
      fprintf (f, "%lu\n", i);
7075
    }
7076
  exit (ferror (f) || fclose (f) != 0);
7077
 
7078 1376 phoenix
  ;
7079
  return 0;
7080
}
7081
_ACEOF
7082
rm -f conftest$ac_exeext
7083 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084 1376 phoenix
  (eval $ac_link) 2>&5
7085
  ac_status=$?
7086 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 1376 phoenix
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7088 1576 phoenix
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 1376 phoenix
  (eval $ac_try) 2>&5
7090
  ac_status=$?
7091 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 1376 phoenix
  (exit $ac_status); }; }; then
7093
  ac_cv_sizeof_long=`cat conftest.val`
7094
else
7095
  echo "$as_me: program exited with status $ac_status" >&5
7096
echo "$as_me: failed program was:" >&5
7097 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
7098
 
7099
( exit $ac_status )
7100
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7101
See \`config.log' for more details." >&5
7102
echo "$as_me: error: cannot compute sizeof (long), 77
7103
See \`config.log' for more details." >&2;}
7104
   { (exit 1); exit 1; }; }
7105 1376 phoenix
fi
7106 1576 phoenix
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7107 1376 phoenix
fi
7108
fi
7109
rm -f conftest.val
7110
else
7111
  ac_cv_sizeof_long=0
7112
fi
7113
fi
7114 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7115 1376 phoenix
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7116 1576 phoenix
cat >>confdefs.h <<_ACEOF
7117 1376 phoenix
#define SIZEOF_LONG $ac_cv_sizeof_long
7118 1576 phoenix
_ACEOF
7119 1376 phoenix
 
7120 1242 hpanther
 
7121 1576 phoenix
 
7122
 
7123
echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
7124 1242 hpanther
echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6
7125
if test "${ac_cv_lib_readline_add_history+set}" = set; then
7126
  echo $ECHO_N "(cached) $ECHO_C" >&6
7127 17 jrydberg
else
7128 1242 hpanther
  ac_check_lib_save_LIBS=$LIBS
7129 17 jrydberg
LIBS="-lreadline  $LIBS"
7130 1242 hpanther
cat >conftest.$ac_ext <<_ACEOF
7131 1576 phoenix
/* confdefs.h.  */
7132
_ACEOF
7133
cat confdefs.h >>conftest.$ac_ext
7134
cat >>conftest.$ac_ext <<_ACEOF
7135
/* end confdefs.h.  */
7136 1242 hpanther
 
7137 17 jrydberg
/* Override any gcc2 internal prototype to avoid an error.  */
7138 1242 hpanther
#ifdef __cplusplus
7139
extern "C"
7140
#endif
7141 17 jrydberg
/* We use char because int might match the return type of a gcc2
7142 1242 hpanther
   builtin and then its argument prototype would still apply.  */
7143
char add_history ();
7144
int
7145
main ()
7146
{
7147
add_history ();
7148
  ;
7149
  return 0;
7150
}
7151
_ACEOF
7152
rm -f conftest.$ac_objext conftest$ac_exeext
7153 1576 phoenix
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7154
  (eval $ac_link) 2>conftest.er1
7155 1242 hpanther
  ac_status=$?
7156 1576 phoenix
  grep -v '^ *+' conftest.er1 >conftest.err
7157
  rm -f conftest.er1
7158
  cat conftest.err >&5
7159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 1242 hpanther
  (exit $ac_status); } &&
7161 1576 phoenix
         { ac_try='test -z "$ac_c_werror_flag"
7162
                         || test ! -s conftest.err'
7163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 1242 hpanther
  (eval $ac_try) 2>&5
7165
  ac_status=$?
7166 1576 phoenix
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167
  (exit $ac_status); }; } &&
7168
         { ac_try='test -s conftest$ac_exeext'
7169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170
  (eval $ac_try) 2>&5
7171
  ac_status=$?
7172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 1242 hpanther
  (exit $ac_status); }; }; then
7174
  ac_cv_lib_readline_add_history=yes
7175 17 jrydberg
else
7176 1242 hpanther
  echo "$as_me: failed program was:" >&5
7177 1576 phoenix
sed 's/^/| /' conftest.$ac_ext >&5
7178
 
7179 1242 hpanther
ac_cv_lib_readline_add_history=no
7180 17 jrydberg
fi
7181 1576 phoenix
rm -f conftest.err conftest.$ac_objext \
7182
      conftest$ac_exeext conftest.$ac_ext
7183 1242 hpanther
LIBS=$ac_check_lib_save_LIBS
7184
fi
7185 1576 phoenix
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
7186 1242 hpanther
echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6
7187
if test $ac_cv_lib_readline_add_history = yes; then
7188 1576 phoenix
  cat >>confdefs.h <<_ACEOF
7189 1242 hpanther
#define HAVE_LIBREADLINE 1
7190 1576 phoenix
_ACEOF
7191 17 jrydberg
 
7192
  LIBS="-lreadline $LIBS"
7193
 
7194
fi
7195
 
7196
 
7197 7 jrydberg
case "$host_os" in
7198
aix*)   prefer_curses=yes ;;
7199
esac
7200
 
7201
case "$host_cpu" in
7202
*cray*) LOCAL_CFLAGS=-DCRAY ;;
7203
esac
7204
 
7205
case "$host_os" in
7206
isc*)   LOCAL_CFLAGS=-Disc386 ;;
7207
esac
7208
 
7209 132 chris
case "$host_os" in
7210
solaris*) LIBS="-lsocket -lnsl" ;;
7211
esac
7212
 
7213 1576 phoenix
 
7214
echo "$as_me:$LINENO: checking whether to enable profiling" >&5
7215 1242 hpanther
echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
7216 517 markom
# Check whether --enable-profiling or --disable-profiling was given.
7217
if test "${enable_profiling+set}" = set; then
7218
  enableval="$enable_profiling"
7219 1242 hpanther
 
7220 517 markom
    case "$enableval" in
7221
        yes) profile="-pg -a" ;;
7222
    esac
7223 167 markom
 
7224 1242 hpanther
fi;
7225 1576 phoenix
echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
7226 1242 hpanther
echo "${ECHO_T}${enable_profiling-no}" >&6
7227 517 markom
 
7228 1576 phoenix
execution="1"
7229
 
7230 1376 phoenix
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
7231 1576 phoenix
echo "$as_me:$LINENO: checking which execution style to use" >&5
7232
echo $ECHO_N "checking which execution style to use... $ECHO_C" >&6
7233
# Check whether --enable-execution or --disable-execution was given.
7234
if test "${enable_execution+set}" = set; then
7235
  enableval="$enable_execution"
7236 1242 hpanther
 
7237 706 markom
    case "$enableval" in
7238 1576 phoenix
    simple)
7239
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
7240
      execution="0"
7241
      echo "$as_me:$LINENO: result: simple" >&5
7242
echo "${ECHO_T}simple" >&6
7243
      ;;
7244
    complex)
7245
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
7246
      execution="1"
7247
      echo "$as_me:$LINENO: result: complex" >&5
7248
echo "${ECHO_T}complex" >&6
7249
      ;;
7250
    dynamic)
7251
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
7252
      execution="2"
7253
      echo "$as_me:$LINENO: result: dynamic" >&5
7254
echo "${ECHO_T}dynamic" >&6
7255
      ;;
7256
    *)
7257
      { { echo "$as_me:$LINENO: error: \"excecution must one of simple/complex/dynamic\"" >&5
7258
echo "$as_me: error: \"excecution must one of simple/complex/dynamic\"" >&2;}
7259
   { (exit 1); exit 1; }; }
7260
      ;;
7261 706 markom
    esac
7262
 
7263 1576 phoenix
else
7264
 
7265
      echo "$as_me:$LINENO: result: complex" >&5
7266
echo "${ECHO_T}complex" >&6
7267
 
7268 1242 hpanther
fi;
7269 706 markom
 
7270 849 markom
eth_phy="0"
7271 1576 phoenix
echo "$as_me:$LINENO: checking whether to enable ethernet phy emulation" >&5
7272 1242 hpanther
echo $ECHO_N "checking whether to enable ethernet phy emulation... $ECHO_C" >&6
7273 849 markom
# Check whether --enable-ethphy or --disable-ethphy was given.
7274
if test "${enable_ethphy+set}" = set; then
7275
  enableval="$enable_ethphy"
7276 1242 hpanther
 
7277 849 markom
    case "$enableval" in
7278
  no)  eth_phy="0" ;;
7279
        yes) eth_phy="1" ;;
7280
    esac
7281
 
7282 1242 hpanther
fi;
7283 1576 phoenix
echo "$as_me:$LINENO: result: ${enable_eth_phy-no}" >&5
7284 1242 hpanther
echo "${ECHO_T}${enable_eth_phy-no}" >&6
7285 849 markom
 
7286 1576 phoenix
 
7287 721 markom
raw_range_stats="0"
7288 1576 phoenix
echo "$as_me:$LINENO: checking whether to use raw range stats" >&5
7289 1242 hpanther
echo $ECHO_N "checking whether to use raw range stats... $ECHO_C" >&6
7290 721 markom
# Check whether --enable-range_stats or --disable-range_stats was given.
7291
if test "${enable_range_stats+set}" = set; then
7292
  enableval="$enable_range_stats"
7293 1242 hpanther
 
7294 721 markom
    case "$enableval" in
7295
  no)  raw_range_stats="0" ;;
7296
        yes) raw_range_stats="1" simple_execution="1" ;;
7297
    esac
7298
 
7299 1242 hpanther
fi;
7300 1576 phoenix
echo "$as_me:$LINENO: result: ${enable_range_stats-no}" >&5
7301 1242 hpanther
echo "${ECHO_T}${enable_range_stats-no}" >&6
7302 721 markom
 
7303 928 markom
set_ov_flag="0"
7304 1576 phoenix
echo "$as_me:$LINENO: checking whether instructions set overflow flag" >&5
7305 1242 hpanther
echo $ECHO_N "checking whether instructions set overflow flag... $ECHO_C" >&6
7306 721 markom
# Check whether --enable-ov_flag or --disable-ov_flag was given.
7307
if test "${enable_ov_flag+set}" = set; then
7308
  enableval="$enable_ov_flag"
7309 1242 hpanther
 
7310 721 markom
    case "$enableval" in
7311
  no)  set_ov_flag="0" ;;
7312
        yes) set_ov_flag="1" ;;
7313
    esac
7314
 
7315 1242 hpanther
fi;
7316 1576 phoenix
echo "$as_me:$LINENO: result: ${enable_ov_flag-no}" >&5
7317 1242 hpanther
echo "${ECHO_T}${enable_ov_flag-no}" >&6
7318 721 markom
 
7319 928 markom
set_arith_flag="0"
7320 1576 phoenix
echo "$as_me:$LINENO: checking whether arithmethic instructions set flag" >&5
7321 1242 hpanther
echo $ECHO_N "checking whether arithmethic instructions set flag... $ECHO_C" >&6
7322 721 markom
# Check whether --enable-arith_flag or --disable-arith_flag was given.
7323
if test "${enable_arith_flag+set}" = set; then
7324
  enableval="$enable_arith_flag"
7325 1242 hpanther
 
7326 721 markom
    case "$enableval" in
7327
  no)  set_arith_flag="0" ;;
7328
        yes) set_arith_flag="1" ;;
7329
    esac
7330
 
7331 1242 hpanther
fi;
7332 1576 phoenix
echo "$as_me:$LINENO: result: ${enable_arith_flag-no}" >&5
7333 1242 hpanther
echo "${ECHO_T}${enable_arith_flag-no}" >&6
7334 721 markom
 
7335 1576 phoenix
 
7336
cat >>confdefs.h <<_ACEOF
7337 721 markom
#define RAW_RANGE_STATS $raw_range_stats
7338 1576 phoenix
_ACEOF
7339 721 markom
 
7340 1576 phoenix
 
7341
cat >>confdefs.h <<_ACEOF
7342 721 markom
#define SET_OV_FLAG $set_ov_flag
7343 1576 phoenix
_ACEOF
7344 721 markom
 
7345 1576 phoenix
 
7346
cat >>confdefs.h <<_ACEOF
7347 721 markom
#define ARITH_SET_FLAG $set_arith_flag
7348 1576 phoenix
_ACEOF
7349 721 markom
 
7350 1576 phoenix
 
7351
cat >>confdefs.h <<_ACEOF
7352 849 markom
#define HAVE_ETH_PHY $eth_phy
7353 1576 phoenix
_ACEOF
7354 721 markom
 
7355 706 markom
 
7356 1576 phoenix
cat >>confdefs.h <<_ACEOF
7357
#define SIMPLE_EXECUTION $execution == 0
7358
_ACEOF
7359
 
7360
 
7361
cat >>confdefs.h <<_ACEOF
7362
#define COMPLEX_EXECUTION $execution == 1
7363
_ACEOF
7364
 
7365
 
7366
cat >>confdefs.h <<_ACEOF
7367
#define DYNAMIC_EXECUTION $execution == 2
7368
_ACEOF
7369
 
7370
 
7371
 
7372
if test x$execution = x1; then
7373
  GENERATE_NEEDED_TRUE=
7374
  GENERATE_NEEDED_FALSE='#'
7375 706 markom
else
7376 1576 phoenix
  GENERATE_NEEDED_TRUE='#'
7377
  GENERATE_NEEDED_FALSE=
7378 706 markom
fi
7379
 
7380 1242 hpanther
 
7381 202 erez
 
7382 1576 phoenix
if test x$execution = x2; then
7383
  DYNAMIC_EXECUTION_TRUE=
7384
  DYNAMIC_EXECUTION_FALSE='#'
7385
else
7386
  DYNAMIC_EXECUTION_TRUE='#'
7387
  DYNAMIC_EXECUTION_FALSE=
7388 202 erez
fi
7389 517 markom
 
7390 1576 phoenix
 
7391
 
7392 517 markom
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
7393 518 markom
# CFLAGS="$CFLAGS -O4"
7394 202 erez
 
7395 7 jrydberg
BUILD_DIR=`pwd`
7396
 
7397 1576 phoenix
 
7398
 
7399
 
7400
 
7401
 
7402
 
7403
 
7404
 
7405
 
7406
 
7407
 
7408
 
7409
 
7410
 
7411
 
7412
 
7413
 
7414
cat >>confdefs.h <<\_ACEOF
7415 123 markom
#define HAS_EXECUTION 1
7416 1576 phoenix
_ACEOF
7417 7 jrydberg
 
7418 1576 phoenix
 
7419
cat >>confdefs.h <<\_ACEOF
7420 371 markom
#define HAS_DEBUG 1
7421 1576 phoenix
_ACEOF
7422 123 markom
 
7423 1576 phoenix
 
7424 1376 phoenix
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
7425
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
7426 103 lampret
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
7427 1376 phoenix
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
7428
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
7429
-I\${top_srcdir}/cuc -I\${top_srcdir}/port"
7430 7 jrydberg
 
7431 1576 phoenix
 
7432
                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or32/Makefile cuc/Makefile cpu/or1k/Makefile cpu/dlx/Makefile debug/Makefile support/Makefile mmu/Makefile peripheral/Makefile tick/Makefile peripheral/channels/Makefile pm/Makefile pic/Makefile vapi/Makefile port/Makefile"
7433
 
7434
          ac_config_commands="$ac_config_commands default"
7435
 
7436 1242 hpanther
cat >confcache <<\_ACEOF
7437 7 jrydberg
# This file is a shell script that caches the results of configure
7438
# tests run on this system so they can be shared between configure
7439 1242 hpanther
# scripts and configure runs, see configure's option --config-cache.
7440
# It is not useful on other systems.  If it contains results you don't
7441
# want to keep, you may remove or edit it.
7442 7 jrydberg
#
7443 1242 hpanther
# config.status only pays attention to the cache file if you give it
7444
# the --recheck option to rerun configure.
7445 7 jrydberg
#
7446 1576 phoenix
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7447 1242 hpanther
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7448
# following values.
7449
 
7450
_ACEOF
7451
 
7452 7 jrydberg
# The following way of writing the cache mishandles newlines in values,
7453
# but we know of no workaround that is simple, portable, and efficient.
7454
# So, don't put newlines in cache variables' values.
7455
# Ultrix sh set writes to stderr and can't be redirected directly,
7456
# and sets the high bit in the cache file unless we assign to the vars.
7457 1242 hpanther
{
7458
  (set) 2>&1 |
7459
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7460
    *ac_space=\ *)
7461
      # `set' does not quote correctly, so add quotes (double-quote
7462
      # substitution turns \\\\ into \\, and sed turns \\ into \).
7463
      sed -n \
7464 1576 phoenix
        "s/'/'\\\\''/g;
7465
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7466 1242 hpanther
      ;;
7467
    *)
7468
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7469
      sed -n \
7470 1576 phoenix
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7471 1242 hpanther
      ;;
7472
    esac;
7473
} |
7474
  sed '
7475
     t clear
7476
     : clear
7477
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7478
     t end
7479
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7480
     : end' >>confcache
7481 1576 phoenix
if diff $cache_file confcache >/dev/null 2>&1; then :; else
7482 7 jrydberg
  if test -w $cache_file; then
7483 1242 hpanther
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7484
    cat confcache >$cache_file
7485 7 jrydberg
  else
7486
    echo "not updating unwritable cache $cache_file"
7487
  fi
7488
fi
7489
rm -f confcache
7490
 
7491
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7492
# Let make expand exec_prefix.
7493
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7494
 
7495 1242 hpanther
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7496
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7497
# trailing colons and then remove the whole line if VPATH becomes empty
7498
# (actually we leave an empty line to preserve line numbers).
7499 7 jrydberg
if test "x$srcdir" = x.; then
7500 1576 phoenix
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7501 1242 hpanther
s/:*\$(srcdir):*/:/;
7502
s/:*\${srcdir}:*/:/;
7503
s/:*@srcdir@:*/:/;
7504 1576 phoenix
s/^\([^=]*=[     ]*\):*/\1/;
7505 1242 hpanther
s/:*$//;
7506 1576 phoenix
s/^[^=]*=[       ]*$//;
7507 1242 hpanther
}'
7508 7 jrydberg
fi
7509
 
7510
DEFS=-DHAVE_CONFIG_H
7511
 
7512 1576 phoenix
ac_libobjs=
7513
ac_ltlibobjs=
7514
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7515
  # 1. Remove the extension, and $U if already installed.
7516
  ac_i=`echo "$ac_i" |
7517
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7518
  # 2. Add them.
7519
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7520
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7521
done
7522
LIBOBJS=$ac_libobjs
7523
 
7524
LTLIBOBJS=$ac_ltlibobjs
7525
 
7526
 
7527 1242 hpanther
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7528 1576 phoenix
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7529 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
7530
echo "$as_me: error: conditional \"AMDEP\" was never defined.
7531
Usually this means the macro was only invoked conditionally." >&2;}
7532
   { (exit 1); exit 1; }; }
7533
fi
7534 1576 phoenix
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7535
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7536 1242 hpanther
Usually this means the macro was only invoked conditionally." >&5
7537 1576 phoenix
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7538 1242 hpanther
Usually this means the macro was only invoked conditionally." >&2;}
7539
   { (exit 1); exit 1; }; }
7540
fi
7541 1576 phoenix
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
7542
  { { echo "$as_me:$LINENO: error: conditional \"GENERATE_NEEDED\" was never defined.
7543
Usually this means the macro was only invoked conditionally." >&5
7544
echo "$as_me: error: conditional \"GENERATE_NEEDED\" was never defined.
7545
Usually this means the macro was only invoked conditionally." >&2;}
7546
   { (exit 1); exit 1; }; }
7547
fi
7548
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
7549
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
7550
Usually this means the macro was only invoked conditionally." >&5
7551
echo "$as_me: error: conditional \"DYNAMIC_EXECUTION\" was never defined.
7552
Usually this means the macro was only invoked conditionally." >&2;}
7553
   { (exit 1); exit 1; }; }
7554
fi
7555 1242 hpanther
 
7556 7 jrydberg
: ${CONFIG_STATUS=./config.status}
7557 1242 hpanther
ac_clean_files_save=$ac_clean_files
7558
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7559 1576 phoenix
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7560 1242 hpanther
echo "$as_me: creating $CONFIG_STATUS" >&6;}
7561
cat >$CONFIG_STATUS <<_ACEOF
7562
#! $SHELL
7563 1576 phoenix
# Generated by $as_me.
7564 7 jrydberg
# Run this file to recreate the current configuration.
7565
# Compiler output produced by configure, useful for debugging
7566 1242 hpanther
# configure, is in config.log if it exists.
7567 7 jrydberg
 
7568 1242 hpanther
debug=false
7569 1576 phoenix
ac_cs_recheck=false
7570
ac_cs_silent=false
7571 1242 hpanther
SHELL=\${CONFIG_SHELL-$SHELL}
7572
_ACEOF
7573
 
7574
cat >>$CONFIG_STATUS <<\_ACEOF
7575 1576 phoenix
## --------------------- ##
7576
## M4sh Initialization.  ##
7577
## --------------------- ##
7578
 
7579 1242 hpanther
# Be Bourne compatible
7580
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7581
  emulate sh
7582
  NULLCMD=:
7583 1576 phoenix
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7584
  # is contrary to our usage.  Disable this feature.
7585
  alias -g '${1+"$@"}'='"$@"'
7586 1242 hpanther
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7587
  set -o posix
7588
fi
7589 1576 phoenix
DUALCASE=1; export DUALCASE # for MKS sh
7590 1242 hpanther
 
7591 1576 phoenix
# Support unset when possible.
7592
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7593
  as_unset=unset
7594
else
7595
  as_unset=false
7596
fi
7597
 
7598
 
7599
# Work around bugs in pre-3.0 UWIN ksh.
7600
$as_unset ENV MAIL MAILPATH
7601
PS1='$ '
7602
PS2='> '
7603
PS4='+ '
7604
 
7605
# NLS nuisances.
7606
for as_var in \
7607
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7608
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7609
  LC_TELEPHONE LC_TIME
7610
do
7611
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7612
    eval $as_var=C; export $as_var
7613
  else
7614
    $as_unset $as_var
7615
  fi
7616
done
7617
 
7618
# Required to use basename.
7619
if expr a : '\(a\)' >/dev/null 2>&1; then
7620
  as_expr=expr
7621
else
7622
  as_expr=false
7623
fi
7624
 
7625
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7626
  as_basename=basename
7627
else
7628
  as_basename=false
7629
fi
7630
 
7631
 
7632 1242 hpanther
# Name of the executable.
7633 1576 phoenix
as_me=`$as_basename "$0" ||
7634
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7635
         X"$0" : 'X\(//\)$' \| \
7636
         X"$0" : 'X\(/\)$' \| \
7637
         .     : '\(.\)' 2>/dev/null ||
7638
echo X/"$0" |
7639
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7640
          /^X\/\(\/\/\)$/{ s//\1/; q; }
7641
          /^X\/\(\/\).*/{ s//\1/; q; }
7642
          s/.*/./; q'`
7643 7 jrydberg
 
7644 1576 phoenix
 
7645
# PATH needs CR, and LINENO needs CR and PATH.
7646
# Avoid depending upon Character Ranges.
7647
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7648
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7649
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7650
as_cr_digits='0123456789'
7651
as_cr_alnum=$as_cr_Letters$as_cr_digits
7652
 
7653
# The user is always right.
7654
if test "${PATH_SEPARATOR+set}" != set; then
7655
  echo "#! /bin/sh" >conf$$.sh
7656
  echo  "exit 0"   >>conf$$.sh
7657
  chmod +x conf$$.sh
7658
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7659
    PATH_SEPARATOR=';'
7660
  else
7661
    PATH_SEPARATOR=:
7662
  fi
7663
  rm -f conf$$.sh
7664
fi
7665
 
7666
 
7667
  as_lineno_1=$LINENO
7668
  as_lineno_2=$LINENO
7669
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7670
  test "x$as_lineno_1" != "x$as_lineno_2" &&
7671
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7672
  # Find who we are.  Look in the path if we contain no path at all
7673
  # relative or not.
7674
  case $0 in
7675
    *[\\/]* ) as_myself=$0 ;;
7676
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677
for as_dir in $PATH
7678
do
7679
  IFS=$as_save_IFS
7680
  test -z "$as_dir" && as_dir=.
7681
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7682
done
7683
 
7684
       ;;
7685
  esac
7686
  # We did not find ourselves, most probably we were run as `sh COMMAND'
7687
  # in which case we are not to be found in the path.
7688
  if test "x$as_myself" = x; then
7689
    as_myself=$0
7690
  fi
7691
  if test ! -f "$as_myself"; then
7692
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7693
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7694
   { (exit 1); exit 1; }; }
7695
  fi
7696
  case $CONFIG_SHELL in
7697
  '')
7698
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7700
do
7701
  IFS=$as_save_IFS
7702
  test -z "$as_dir" && as_dir=.
7703
  for as_base in sh bash ksh sh5; do
7704
         case $as_dir in
7705
         /*)
7706
           if ("$as_dir/$as_base" -c '
7707
  as_lineno_1=$LINENO
7708
  as_lineno_2=$LINENO
7709
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7710
  test "x$as_lineno_1" != "x$as_lineno_2" &&
7711
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7712
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7713
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7714
             CONFIG_SHELL=$as_dir/$as_base
7715
             export CONFIG_SHELL
7716
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7717
           fi;;
7718
         esac
7719
       done
7720
done
7721
;;
7722
  esac
7723
 
7724
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7725
  # uniformly replaced by the line number.  The first 'sed' inserts a
7726
  # line-number line before each line; the second 'sed' does the real
7727
  # work.  The second script uses 'N' to pair each line-number line
7728
  # with the numbered line, and appends trailing '-' during
7729
  # substitution so that $LINENO is not a special case at line end.
7730
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7731
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7732
  sed '=' <$as_myself |
7733
    sed '
7734
      N
7735
      s,$,-,
7736
      : loop
7737
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7738
      t loop
7739
      s,-$,,
7740
      s,^['$as_cr_digits']*\n,,
7741
    ' >$as_me.lineno &&
7742
  chmod +x $as_me.lineno ||
7743
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7744
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7745
   { (exit 1); exit 1; }; }
7746
 
7747
  # Don't try to exec as it changes $[0], causing all sort of problems
7748
  # (the dirname of $[0] is not the place where we might find the
7749
  # original and so on.  Autoconf is especially sensible to this).
7750
  . ./$as_me.lineno
7751
  # Exit status is that of the last command.
7752
  exit
7753
}
7754
 
7755
 
7756
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7757
  *c*,-n*) ECHO_N= ECHO_C='
7758
' ECHO_T='      ' ;;
7759
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7760
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7761
esac
7762
 
7763 1242 hpanther
if expr a : '\(a\)' >/dev/null 2>&1; then
7764
  as_expr=expr
7765
else
7766
  as_expr=false
7767
fi
7768
 
7769
rm -f conf$$ conf$$.exe conf$$.file
7770
echo >conf$$.file
7771
if ln -s conf$$.file conf$$ 2>/dev/null; then
7772
  # We could just check for DJGPP; but this test a) works b) is more generic
7773
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7774
  if test -f conf$$.exe; then
7775
    # Don't use ln at all; we don't have any links
7776
    as_ln_s='cp -p'
7777 7 jrydberg
  else
7778 1242 hpanther
    as_ln_s='ln -s'
7779 7 jrydberg
  fi
7780 1242 hpanther
elif ln conf$$.file conf$$ 2>/dev/null; then
7781
  as_ln_s=ln
7782
else
7783
  as_ln_s='cp -p'
7784
fi
7785
rm -f conf$$ conf$$.exe conf$$.file
7786
 
7787 1576 phoenix
if mkdir -p . 2>/dev/null; then
7788
  as_mkdir_p=:
7789 1242 hpanther
else
7790 1576 phoenix
  test -d ./-p && rmdir ./-p
7791
  as_mkdir_p=false
7792 1242 hpanther
fi
7793
 
7794 1576 phoenix
as_executable_p="test -f"
7795 1242 hpanther
 
7796 1576 phoenix
# Sed expression to map a string onto a valid CPP name.
7797
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7798
 
7799
# Sed expression to map a string onto a valid variable name.
7800
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7801
 
7802
 
7803 1242 hpanther
# IFS
7804
# We need space, tab and new line, in precisely that order.
7805
as_nl='
7806
'
7807
IFS="   $as_nl"
7808
 
7809
# CDPATH.
7810 1576 phoenix
$as_unset CDPATH
7811 1242 hpanther
 
7812
exec 6>&1
7813
 
7814 1576 phoenix
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7815
# report actual input values of CONFIG_FILES etc. instead of their
7816
# values after options handling.  Logging --version etc. is OK.
7817
exec 5>>config.log
7818
{
7819
  echo
7820
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7821
## Running $as_me. ##
7822
_ASBOX
7823
} >&5
7824
cat >&5 <<_CSEOF
7825
 
7826
This file was extended by $as_me, which was
7827
generated by GNU Autoconf 2.59.  Invocation command line was
7828
 
7829
  CONFIG_FILES    = $CONFIG_FILES
7830
  CONFIG_HEADERS  = $CONFIG_HEADERS
7831
  CONFIG_LINKS    = $CONFIG_LINKS
7832
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7833
  $ $0 $@
7834
 
7835
_CSEOF
7836
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7837
echo >&5
7838 1242 hpanther
_ACEOF
7839
 
7840
# Files that config.status was made for.
7841
if test -n "$ac_config_files"; then
7842
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7843
fi
7844
 
7845
if test -n "$ac_config_headers"; then
7846
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7847
fi
7848
 
7849
if test -n "$ac_config_links"; then
7850
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7851
fi
7852
 
7853
if test -n "$ac_config_commands"; then
7854
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7855
fi
7856
 
7857 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
7858 1242 hpanther
 
7859
ac_cs_usage="\
7860
\`$as_me' instantiates files from templates according to the
7861
current configuration.
7862
 
7863
Usage: $0 [OPTIONS] [FILE]...
7864
 
7865
  -h, --help       print this help, then exit
7866
  -V, --version    print version number, then exit
7867 1576 phoenix
  -q, --quiet      do not print progress messages
7868 1242 hpanther
  -d, --debug      don't remove temporary files
7869
      --recheck    update $as_me by reconfiguring in the same conditions
7870
  --file=FILE[:TEMPLATE]
7871 1576 phoenix
                   instantiate the configuration file FILE
7872 1242 hpanther
  --header=FILE[:TEMPLATE]
7873 1576 phoenix
                   instantiate the configuration header FILE
7874 1242 hpanther
 
7875
Configuration files:
7876
$config_files
7877
 
7878
Configuration headers:
7879
$config_headers
7880
 
7881
Configuration commands:
7882
$config_commands
7883
 
7884
Report bugs to ."
7885 1576 phoenix
_ACEOF
7886 1242 hpanther
 
7887 1576 phoenix
cat >>$CONFIG_STATUS <<_ACEOF
7888 1242 hpanther
ac_cs_version="\\
7889
config.status
7890 1576 phoenix
configured by $0, generated by GNU Autoconf 2.59,
7891 1242 hpanther
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7892
 
7893 1576 phoenix
Copyright (C) 2003 Free Software Foundation, Inc.
7894 1242 hpanther
This config.status script is free software; the Free Software Foundation
7895
gives unlimited permission to copy, distribute and modify it."
7896
srcdir=$srcdir
7897
INSTALL="$INSTALL"
7898 1576 phoenix
_ACEOF
7899 1242 hpanther
 
7900 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
7901 1242 hpanther
# If no file are specified by the user, then we need to provide default
7902
# value.  By we need to know if files were specified by the user.
7903
ac_need_defaults=:
7904
while test $# != 0
7905
do
7906
  case $1 in
7907
  --*=*)
7908
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7909
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7910 1576 phoenix
    ac_shift=:
7911 1242 hpanther
    ;;
7912 1576 phoenix
  -*)
7913
    ac_option=$1
7914
    ac_optarg=$2
7915
    ac_shift=shift
7916
    ;;
7917 1242 hpanther
  *) # This is not an option, so the user has probably given explicit
7918
     # arguments.
7919 1576 phoenix
     ac_option=$1
7920 1242 hpanther
     ac_need_defaults=false;;
7921
  esac
7922
 
7923 1576 phoenix
  case $ac_option in
7924 1242 hpanther
  # Handling of the options.
7925 1576 phoenix
_ACEOF
7926
cat >>$CONFIG_STATUS <<\_ACEOF
7927 1242 hpanther
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7928 1576 phoenix
    ac_cs_recheck=: ;;
7929 1242 hpanther
  --version | --vers* | -V )
7930
    echo "$ac_cs_version"; exit 0 ;;
7931
  --he | --h)
7932
    # Conflict between --help and --header
7933 1576 phoenix
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7934 1242 hpanther
Try \`$0 --help' for more information." >&5
7935
echo "$as_me: error: ambiguous option: $1
7936
Try \`$0 --help' for more information." >&2;}
7937
   { (exit 1); exit 1; }; };;
7938
  --help | --hel | -h )
7939
    echo "$ac_cs_usage"; exit 0 ;;
7940
  --debug | --d* | -d )
7941
    debug=: ;;
7942
  --file | --fil | --fi | --f )
7943 1576 phoenix
    $ac_shift
7944
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7945 1242 hpanther
    ac_need_defaults=false;;
7946
  --header | --heade | --head | --hea )
7947 1576 phoenix
    $ac_shift
7948
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7949 1242 hpanther
    ac_need_defaults=false;;
7950 1576 phoenix
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7951
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7952
    ac_cs_silent=: ;;
7953 1242 hpanther
 
7954
  # This is an error.
7955 1576 phoenix
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7956 1242 hpanther
Try \`$0 --help' for more information." >&5
7957
echo "$as_me: error: unrecognized option: $1
7958
Try \`$0 --help' for more information." >&2;}
7959
   { (exit 1); exit 1; }; } ;;
7960
 
7961
  *) ac_config_targets="$ac_config_targets $1" ;;
7962
 
7963
  esac
7964
  shift
7965 7 jrydberg
done
7966 1242 hpanther
 
7967 1576 phoenix
ac_configure_extra_args=
7968 1242 hpanther
 
7969 1576 phoenix
if $ac_cs_silent; then
7970
  exec 6>/dev/null
7971
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7972
fi
7973 7 jrydberg
 
7974 1576 phoenix
_ACEOF
7975
cat >>$CONFIG_STATUS <<_ACEOF
7976
if \$ac_cs_recheck; then
7977
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7978
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7979
fi
7980 7 jrydberg
 
7981 1242 hpanther
_ACEOF
7982
 
7983 1576 phoenix
cat >>$CONFIG_STATUS <<_ACEOF
7984 1242 hpanther
#
7985
# INIT-COMMANDS section.
7986
#
7987
 
7988
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7989
 
7990
 
7991 1576 phoenix
_ACEOF
7992
 
7993
 
7994
 
7995
cat >>$CONFIG_STATUS <<\_ACEOF
7996 1242 hpanther
for ac_config_target in $ac_config_targets
7997
do
7998
  case "$ac_config_target" in
7999
  # Handling of arguments.
8000
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8001
  "bpb/Makefile" ) CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
8002
  "cache/Makefile" ) CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
8003
  "cpu/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
8004
  "cpu/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
8005
  "cpu/or32/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
8006
  "cuc/Makefile" ) CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
8007
  "cpu/or1k/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
8008
  "cpu/dlx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
8009
  "debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
8010
  "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
8011
  "mmu/Makefile" ) CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
8012
  "peripheral/Makefile" ) CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
8013
  "tick/Makefile" ) CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
8014
  "peripheral/channels/Makefile" ) CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
8015
  "pm/Makefile" ) CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
8016
  "pic/Makefile" ) CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
8017
  "vapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
8018 1376 phoenix
  "port/Makefile" ) CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
8019 1242 hpanther
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8020
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8021
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8022 1576 phoenix
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8023 1242 hpanther
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8024
   { (exit 1); exit 1; }; };;
8025 7 jrydberg
  esac
8026 1242 hpanther
done
8027 7 jrydberg
 
8028 1242 hpanther
# If the user did not use the arguments to specify the items to instantiate,
8029
# then the envvar interface is used.  Set only those that are not.
8030
# We use the long form for the default assignment because of an extremely
8031
# bizarre bug on SunOS 4.1.3.
8032
if $ac_need_defaults; then
8033
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8034
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8035
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8036
fi
8037 7 jrydberg
 
8038 1576 phoenix
# Have a temporary directory for convenience.  Make it in the build tree
8039
# simply because there is no reason to put it here, and in addition,
8040
# creating and moving files from /tmp can sometimes cause problems.
8041 1242 hpanther
# Create a temporary directory, and hook for its removal unless debugging.
8042
$debug ||
8043
{
8044
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8045
  trap '{ (exit 1); exit 1; }' 1 2 13 15
8046
}
8047
 
8048
# Create a (secure) tmp directory for tmp files.
8049 1576 phoenix
 
8050 1242 hpanther
{
8051 1576 phoenix
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8052 1242 hpanther
  test -n "$tmp" && test -d "$tmp"
8053
}  ||
8054
{
8055 1576 phoenix
  tmp=./confstat$$-$RANDOM
8056 1242 hpanther
  (umask 077 && mkdir $tmp)
8057
} ||
8058
{
8059 1576 phoenix
   echo "$me: cannot create a temporary directory in ." >&2
8060 1242 hpanther
   { (exit 1); exit 1; }
8061
}
8062
 
8063 1576 phoenix
_ACEOF
8064 1242 hpanther
 
8065 1576 phoenix
cat >>$CONFIG_STATUS <<_ACEOF
8066 1242 hpanther
 
8067
#
8068
# CONFIG_FILES section.
8069
#
8070
 
8071
# No need to generate the scripts if there are no CONFIG_FILES.
8072
# This happens for instance when ./config.status config.h
8073
if test -n "\$CONFIG_FILES"; then
8074
  # Protect against being on the right side of a sed subst in config.status.
8075
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8076
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8077
s,@SHELL@,$SHELL,;t t
8078 1576 phoenix
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8079
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8080
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8081
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8082
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8083
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8084 1242 hpanther
s,@exec_prefix@,$exec_prefix,;t t
8085
s,@prefix@,$prefix,;t t
8086
s,@program_transform_name@,$program_transform_name,;t t
8087
s,@bindir@,$bindir,;t t
8088
s,@sbindir@,$sbindir,;t t
8089
s,@libexecdir@,$libexecdir,;t t
8090
s,@datadir@,$datadir,;t t
8091
s,@sysconfdir@,$sysconfdir,;t t
8092
s,@sharedstatedir@,$sharedstatedir,;t t
8093
s,@localstatedir@,$localstatedir,;t t
8094
s,@libdir@,$libdir,;t t
8095
s,@includedir@,$includedir,;t t
8096
s,@oldincludedir@,$oldincludedir,;t t
8097
s,@infodir@,$infodir,;t t
8098
s,@mandir@,$mandir,;t t
8099
s,@build_alias@,$build_alias,;t t
8100
s,@host_alias@,$host_alias,;t t
8101
s,@target_alias@,$target_alias,;t t
8102 1576 phoenix
s,@DEFS@,$DEFS,;t t
8103 1242 hpanther
s,@ECHO_C@,$ECHO_C,;t t
8104
s,@ECHO_N@,$ECHO_N,;t t
8105
s,@ECHO_T@,$ECHO_T,;t t
8106
s,@LIBS@,$LIBS,;t t
8107
s,@build@,$build,;t t
8108
s,@build_cpu@,$build_cpu,;t t
8109
s,@build_vendor@,$build_vendor,;t t
8110
s,@build_os@,$build_os,;t t
8111
s,@host@,$host,;t t
8112
s,@host_cpu@,$host_cpu,;t t
8113
s,@host_vendor@,$host_vendor,;t t
8114
s,@host_os@,$host_os,;t t
8115
s,@target@,$target,;t t
8116
s,@target_cpu@,$target_cpu,;t t
8117
s,@target_vendor@,$target_vendor,;t t
8118
s,@target_os@,$target_os,;t t
8119
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8120
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8121
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8122 1576 phoenix
s,@CYGPATH_W@,$CYGPATH_W,;t t
8123 1242 hpanther
s,@PACKAGE@,$PACKAGE,;t t
8124
s,@VERSION@,$VERSION,;t t
8125
s,@ACLOCAL@,$ACLOCAL,;t t
8126
s,@AUTOCONF@,$AUTOCONF,;t t
8127
s,@AUTOMAKE@,$AUTOMAKE,;t t
8128
s,@AUTOHEADER@,$AUTOHEADER,;t t
8129
s,@MAKEINFO@,$MAKEINFO,;t t
8130
s,@install_sh@,$install_sh,;t t
8131
s,@STRIP@,$STRIP,;t t
8132
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8133
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8134 1576 phoenix
s,@mkdir_p@,$mkdir_p,;t t
8135 1242 hpanther
s,@AWK@,$AWK,;t t
8136
s,@SET_MAKE@,$SET_MAKE,;t t
8137 1576 phoenix
s,@am__leading_dot@,$am__leading_dot,;t t
8138
s,@AMTAR@,$AMTAR,;t t
8139
s,@am__tar@,$am__tar,;t t
8140
s,@am__untar@,$am__untar,;t t
8141 1242 hpanther
s,@CPU_ARCH@,$CPU_ARCH,;t t
8142
s,@CC@,$CC,;t t
8143
s,@CFLAGS@,$CFLAGS,;t t
8144
s,@LDFLAGS@,$LDFLAGS,;t t
8145
s,@CPPFLAGS@,$CPPFLAGS,;t t
8146
s,@ac_ct_CC@,$ac_ct_CC,;t t
8147
s,@EXEEXT@,$EXEEXT,;t t
8148
s,@OBJEXT@,$OBJEXT,;t t
8149
s,@DEPDIR@,$DEPDIR,;t t
8150
s,@am__include@,$am__include,;t t
8151
s,@am__quote@,$am__quote,;t t
8152
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8153
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8154
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8155
s,@CCDEPMODE@,$CCDEPMODE,;t t
8156 1576 phoenix
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8157
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8158 1242 hpanther
s,@CPP@,$CPP,;t t
8159 1576 phoenix
s,@EGREP@,$EGREP,;t t
8160 1242 hpanther
s,@AR@,$AR,;t t
8161
s,@RANLIB@,$RANLIB,;t t
8162
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8163
s,@MAKE_SHELL@,$MAKE_SHELL,;t t
8164 1576 phoenix
s,@GENERATE_NEEDED_TRUE@,$GENERATE_NEEDED_TRUE,;t t
8165
s,@GENERATE_NEEDED_FALSE@,$GENERATE_NEEDED_FALSE,;t t
8166
s,@DYNAMIC_EXECUTION_TRUE@,$DYNAMIC_EXECUTION_TRUE,;t t
8167
s,@DYNAMIC_EXECUTION_FALSE@,$DYNAMIC_EXECUTION_FALSE,;t t
8168 1242 hpanther
s,@BUILD_DIR@,$BUILD_DIR,;t t
8169
s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
8170 1576 phoenix
s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
8171 1242 hpanther
s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
8172
s,@ARFLAGS@,$ARFLAGS,;t t
8173
s,@SUMVERSION@,$SUMVERSION,;t t
8174
s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
8175
s,@INCLUDES@,$INCLUDES,;t t
8176 1576 phoenix
s,@LIBOBJS@,$LIBOBJS,;t t
8177
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8178 1242 hpanther
CEOF
8179
 
8180 1576 phoenix
_ACEOF
8181 1242 hpanther
 
8182 1576 phoenix
  cat >>$CONFIG_STATUS <<\_ACEOF
8183 1242 hpanther
  # Split the substitutions into bite-sized pieces for seds with
8184
  # small command number limits, like on Digital OSF/1 and HP-UX.
8185
  ac_max_sed_lines=48
8186
  ac_sed_frag=1 # Number of current file.
8187
  ac_beg=1 # First line for current file.
8188
  ac_end=$ac_max_sed_lines # Line after last line for current file.
8189
  ac_more_lines=:
8190
  ac_sed_cmds=
8191
  while $ac_more_lines; do
8192
    if test $ac_beg -gt 1; then
8193
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8194
    else
8195
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8196
    fi
8197
    if test ! -s $tmp/subs.frag; then
8198
      ac_more_lines=false
8199
    else
8200
      # The purpose of the label and of the branching condition is to
8201
      # speed up the sed processing (if there are no `@' at all, there
8202
      # is no need to browse any of the substitutions).
8203
      # These are the two extra sed commands mentioned above.
8204
      (echo ':t
8205
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8206
      if test -z "$ac_sed_cmds"; then
8207 1576 phoenix
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8208 1242 hpanther
      else
8209 1576 phoenix
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8210 1242 hpanther
      fi
8211
      ac_sed_frag=`expr $ac_sed_frag + 1`
8212
      ac_beg=$ac_end
8213
      ac_end=`expr $ac_end + $ac_max_sed_lines`
8214
    fi
8215
  done
8216
  if test -z "$ac_sed_cmds"; then
8217
    ac_sed_cmds=cat
8218 7 jrydberg
  fi
8219 1242 hpanther
fi # test -n "$CONFIG_FILES"
8220 7 jrydberg
 
8221 1576 phoenix
_ACEOF
8222
cat >>$CONFIG_STATUS <<\_ACEOF
8223 1242 hpanther
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8224
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8225
  case $ac_file in
8226
  - | *:- | *:-:* ) # input from stdin
8227 1576 phoenix
        cat >$tmp/stdin
8228
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8229
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8230 1242 hpanther
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8231 1576 phoenix
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8232 1242 hpanther
  * )   ac_file_in=$ac_file.in ;;
8233 7 jrydberg
  esac
8234
 
8235 1242 hpanther
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8236 1576 phoenix
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8237
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8238
         X"$ac_file" : 'X\(//\)[^/]' \| \
8239
         X"$ac_file" : 'X\(//\)$' \| \
8240
         X"$ac_file" : 'X\(/\)' \| \
8241
         .     : '\(.\)' 2>/dev/null ||
8242 1242 hpanther
echo X"$ac_file" |
8243
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8244
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8245
          /^X\(\/\/\)$/{ s//\1/; q; }
8246
          /^X\(\/\).*/{ s//\1/; q; }
8247
          s/.*/./; q'`
8248 1576 phoenix
  { if $as_mkdir_p; then
8249
    mkdir -p "$ac_dir"
8250 1242 hpanther
  else
8251 1576 phoenix
    as_dir="$ac_dir"
8252
    as_dirs=
8253
    while test ! -d "$as_dir"; do
8254
      as_dirs="$as_dir $as_dirs"
8255
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8256
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8257
         X"$as_dir" : 'X\(//\)[^/]' \| \
8258
         X"$as_dir" : 'X\(//\)$' \| \
8259
         X"$as_dir" : 'X\(/\)' \| \
8260
         .     : '\(.\)' 2>/dev/null ||
8261
echo X"$as_dir" |
8262
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8263
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8264
          /^X\(\/\/\)$/{ s//\1/; q; }
8265
          /^X\(\/\).*/{ s//\1/; q; }
8266
          s/.*/./; q'`
8267
    done
8268
    test ! -n "$as_dirs" || mkdir $as_dirs
8269
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8270
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8271
   { (exit 1); exit 1; }; }; }
8272 7 jrydberg
 
8273 1576 phoenix
  ac_builddir=.
8274
 
8275
if test "$ac_dir" != .; then
8276
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8277
  # A "../" for each directory in $ac_dir_suffix.
8278
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8279
else
8280
  ac_dir_suffix= ac_top_builddir=
8281
fi
8282
 
8283
case $srcdir in
8284
  .)  # No --srcdir option.  We are building in place.
8285
    ac_srcdir=.
8286
    if test -z "$ac_top_builddir"; then
8287
       ac_top_srcdir=.
8288
    else
8289
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8290
    fi ;;
8291
  [\\/]* | ?:[\\/]* )  # Absolute path.
8292
    ac_srcdir=$srcdir$ac_dir_suffix;
8293
    ac_top_srcdir=$srcdir ;;
8294 1242 hpanther
  *) # Relative path.
8295 1576 phoenix
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8296
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8297
esac
8298 1242 hpanther
 
8299 1576 phoenix
# Do not use `cd foo && pwd` to compute absolute paths, because
8300
# the directories may not exist.
8301
case `pwd` in
8302
.) ac_abs_builddir="$ac_dir";;
8303
*)
8304
  case "$ac_dir" in
8305
  .) ac_abs_builddir=`pwd`;;
8306
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8307
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8308
  esac;;
8309
esac
8310
case $ac_abs_builddir in
8311
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8312
*)
8313
  case ${ac_top_builddir}. in
8314
  .) ac_abs_top_builddir=$ac_abs_builddir;;
8315
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8316
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8317
  esac;;
8318
esac
8319
case $ac_abs_builddir in
8320
.) ac_abs_srcdir=$ac_srcdir;;
8321
*)
8322
  case $ac_srcdir in
8323
  .) ac_abs_srcdir=$ac_abs_builddir;;
8324
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8325
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8326
  esac;;
8327
esac
8328
case $ac_abs_builddir in
8329
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8330
*)
8331
  case $ac_top_srcdir in
8332
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8333
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8334
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8335
  esac;;
8336
esac
8337
 
8338
 
8339 1242 hpanther
  case $INSTALL in
8340
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8341 1576 phoenix
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8342 7 jrydberg
  esac
8343
 
8344 1242 hpanther
  if test x"$ac_file" != x-; then
8345 1576 phoenix
    { echo "$as_me:$LINENO: creating $ac_file" >&5
8346 1242 hpanther
echo "$as_me: creating $ac_file" >&6;}
8347
    rm -f "$ac_file"
8348
  fi
8349
  # Let's still pretend it is `configure' which instantiates (i.e., don't
8350
  # use $as_me), people would be surprised to read:
8351 1576 phoenix
  #    /* config.h.  Generated by config.status.  */
8352
  if test x"$ac_file" = x-; then
8353
    configure_input=
8354
  else
8355
    configure_input="$ac_file.  "
8356
  fi
8357
  configure_input=$configure_input"Generated from `echo $ac_file_in |
8358
                                     sed 's,.*/,,'` by configure."
8359 7 jrydberg
 
8360 1242 hpanther
  # First look for the input files in the build tree, otherwise in the
8361
  # src tree.
8362
  ac_file_inputs=`IFS=:
8363
    for f in $ac_file_in; do
8364
      case $f in
8365
      -) echo $tmp/stdin ;;
8366
      [\\/$]*)
8367 1576 phoenix
         # Absolute (can't be DOS-style, as IFS=:)
8368
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8369 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
8370
   { (exit 1); exit 1; }; }
8371 1576 phoenix
         echo "$f";;
8372 1242 hpanther
      *) # Relative
8373 1576 phoenix
         if test -f "$f"; then
8374
           # Build tree
8375
           echo "$f"
8376
         elif test -f "$srcdir/$f"; then
8377
           # Source tree
8378
           echo "$srcdir/$f"
8379
         else
8380
           # /dev/null tree
8381
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8382 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
8383
   { (exit 1); exit 1; }; }
8384 1576 phoenix
         fi;;
8385 1242 hpanther
      esac
8386
    done` || { (exit 1); exit 1; }
8387 1576 phoenix
_ACEOF
8388
cat >>$CONFIG_STATUS <<_ACEOF
8389 1242 hpanther
  sed "$ac_vpsub
8390
$extrasub
8391 1576 phoenix
_ACEOF
8392
cat >>$CONFIG_STATUS <<\_ACEOF
8393 1242 hpanther
:t
8394
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8395
s,@configure_input@,$configure_input,;t t
8396
s,@srcdir@,$ac_srcdir,;t t
8397 1576 phoenix
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8398 1242 hpanther
s,@top_srcdir@,$ac_top_srcdir,;t t
8399 1576 phoenix
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8400
s,@builddir@,$ac_builddir,;t t
8401
s,@abs_builddir@,$ac_abs_builddir,;t t
8402
s,@top_builddir@,$ac_top_builddir,;t t
8403
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8404 1242 hpanther
s,@INSTALL@,$ac_INSTALL,;t t
8405
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8406
  rm -f $tmp/stdin
8407
  if test x"$ac_file" != x-; then
8408
    mv $tmp/out $ac_file
8409
  else
8410
    cat $tmp/out
8411
    rm -f $tmp/out
8412
  fi
8413
 
8414
done
8415 1576 phoenix
_ACEOF
8416
cat >>$CONFIG_STATUS <<\_ACEOF
8417 1242 hpanther
 
8418
#
8419
# CONFIG_HEADER section.
8420
#
8421
 
8422 7 jrydberg
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8423
# NAME is the cpp macro being defined and VALUE is the value it is being given.
8424
#
8425
# ac_d sets the value in "#define NAME VALUE" lines.
8426 1576 phoenix
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8427
ac_dB='[         ].*$,\1#\2'
8428 1242 hpanther
ac_dC=' '
8429
ac_dD=',;t'
8430
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8431 1576 phoenix
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8432 1242 hpanther
ac_uB='$,\1#\2define\3'
8433 7 jrydberg
ac_uC=' '
8434 1242 hpanther
ac_uD=',;t'
8435 7 jrydberg
 
8436 1242 hpanther
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8437 7 jrydberg
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8438 1242 hpanther
  case $ac_file in
8439
  - | *:- | *:-:* ) # input from stdin
8440 1576 phoenix
        cat >$tmp/stdin
8441
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8442
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8443 1242 hpanther
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8444 1576 phoenix
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8445 1242 hpanther
  * )   ac_file_in=$ac_file.in ;;
8446 7 jrydberg
  esac
8447
 
8448 1576 phoenix
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8449 1242 hpanther
echo "$as_me: creating $ac_file" >&6;}
8450 7 jrydberg
 
8451 1242 hpanther
  # First look for the input files in the build tree, otherwise in the
8452
  # src tree.
8453
  ac_file_inputs=`IFS=:
8454
    for f in $ac_file_in; do
8455
      case $f in
8456
      -) echo $tmp/stdin ;;
8457
      [\\/$]*)
8458 1576 phoenix
         # Absolute (can't be DOS-style, as IFS=:)
8459
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8460 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
8461
   { (exit 1); exit 1; }; }
8462 1576 phoenix
         # Do quote $f, to prevent DOS paths from being IFS'd.
8463
         echo "$f";;
8464 1242 hpanther
      *) # Relative
8465 1576 phoenix
         if test -f "$f"; then
8466
           # Build tree
8467
           echo "$f"
8468
         elif test -f "$srcdir/$f"; then
8469
           # Source tree
8470
           echo "$srcdir/$f"
8471
         else
8472
           # /dev/null tree
8473
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8474 1242 hpanther
echo "$as_me: error: cannot find input file: $f" >&2;}
8475
   { (exit 1); exit 1; }; }
8476 1576 phoenix
         fi;;
8477 1242 hpanther
      esac
8478
    done` || { (exit 1); exit 1; }
8479
  # Remove the trailing spaces.
8480 1576 phoenix
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8481 7 jrydberg
 
8482 1576 phoenix
_ACEOF
8483 7 jrydberg
 
8484 1242 hpanther
# Transform confdefs.h into two sed scripts, `conftest.defines' and
8485
# `conftest.undefs', that substitutes the proper values into
8486
# config.h.in to produce config.h.  The first handles `#define'
8487
# templates, and the second `#undef' templates.
8488
# And first: Protect against being on the right side of a sed subst in
8489
# config.status.  Protect against being in an unquoted here document
8490
# in config.status.
8491
rm -f conftest.defines conftest.undefs
8492
# Using a here document instead of a string reduces the quoting nightmare.
8493
# Putting comments in sed scripts is not portable.
8494
#
8495
# `end' is used to avoid that the second main sed command (meant for
8496
# 0-ary CPP macros) applies to n-ary macro definitions.
8497
# See the Autoconf documentation for `clear'.
8498 1576 phoenix
cat >confdef2sed.sed <<\_ACEOF
8499 1242 hpanther
s/[\\&,]/\\&/g
8500
s,[\\$`],\\&,g
8501
t clear
8502
: clear
8503 1576 phoenix
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8504 1242 hpanther
t end
8505 1576 phoenix
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8506 1242 hpanther
: end
8507 1576 phoenix
_ACEOF
8508 1242 hpanther
# If some macros were called several times there might be several times
8509
# the same #defines, which is useless.  Nevertheless, we may not want to
8510
# sort them, since we want the *last* AC-DEFINE to be honored.
8511
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8512
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8513
rm -f confdef2sed.sed
8514 7 jrydberg
 
8515
# This sed command replaces #undef with comments.  This is necessary, for
8516
# example, in the case of _POSIX_SOURCE, which is predefined and required
8517
# on some systems where configure will not decide to define it.
8518 1576 phoenix
cat >>conftest.undefs <<\_ACEOF
8519
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8520
_ACEOF
8521 7 jrydberg
 
8522 1242 hpanther
# Break up conftest.defines because some shells have a limit on the size
8523
# of here documents, and old seds have small limits too (100 cmds).
8524
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8525 1576 phoenix
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8526 1242 hpanther
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8527
echo '  :' >>$CONFIG_STATUS
8528
rm -f conftest.tail
8529
while grep . conftest.defines >/dev/null
8530
do
8531
  # Write a limited-size here document to $tmp/defines.sed.
8532
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
8533
  # Speed up: don't consider the non `#define' lines.
8534 1576 phoenix
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8535 1242 hpanther
  # Work around the forget-to-reset-the-flag bug.
8536
  echo 't clr' >>$CONFIG_STATUS
8537
  echo ': clr' >>$CONFIG_STATUS
8538
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8539
  echo 'CEOF
8540
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8541
  rm -f $tmp/in
8542
  mv $tmp/out $tmp/in
8543
' >>$CONFIG_STATUS
8544
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8545
  rm -f conftest.defines
8546
  mv conftest.tail conftest.defines
8547
done
8548
rm -f conftest.defines
8549 1576 phoenix
echo '  fi # grep' >>$CONFIG_STATUS
8550 1242 hpanther
echo >>$CONFIG_STATUS
8551 7 jrydberg
 
8552 1242 hpanther
# Break up conftest.undefs because some shells have a limit on the size
8553
# of here documents, and old seds have small limits too (100 cmds).
8554
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8555 7 jrydberg
rm -f conftest.tail
8556 1242 hpanther
while grep . conftest.undefs >/dev/null
8557 7 jrydberg
do
8558 1242 hpanther
  # Write a limited-size here document to $tmp/undefs.sed.
8559
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
8560
  # Speed up: don't consider the non `#undef'
8561 1576 phoenix
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8562 1242 hpanther
  # Work around the forget-to-reset-the-flag bug.
8563
  echo 't clr' >>$CONFIG_STATUS
8564
  echo ': clr' >>$CONFIG_STATUS
8565
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8566 7 jrydberg
  echo 'CEOF
8567 1242 hpanther
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8568
  rm -f $tmp/in
8569
  mv $tmp/out $tmp/in
8570
' >>$CONFIG_STATUS
8571
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8572
  rm -f conftest.undefs
8573
  mv conftest.tail conftest.undefs
8574 7 jrydberg
done
8575 1242 hpanther
rm -f conftest.undefs
8576 7 jrydberg
 
8577 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
8578 1242 hpanther
  # Let's still pretend it is `configure' which instantiates (i.e., don't
8579
  # use $as_me), people would be surprised to read:
8580 1576 phoenix
  #    /* config.h.  Generated by config.status.  */
8581 1242 hpanther
  if test x"$ac_file" = x-; then
8582 1576 phoenix
    echo "/* Generated by configure.  */" >$tmp/config.h
8583 7 jrydberg
  else
8584 1576 phoenix
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8585 1242 hpanther
  fi
8586
  cat $tmp/in >>$tmp/config.h
8587
  rm -f $tmp/in
8588
  if test x"$ac_file" != x-; then
8589 1576 phoenix
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8590
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8591 1242 hpanther
echo "$as_me: $ac_file is unchanged" >&6;}
8592
    else
8593 1576 phoenix
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8594
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8595
         X"$ac_file" : 'X\(//\)[^/]' \| \
8596
         X"$ac_file" : 'X\(//\)$' \| \
8597
         X"$ac_file" : 'X\(/\)' \| \
8598
         .     : '\(.\)' 2>/dev/null ||
8599 1242 hpanther
echo X"$ac_file" |
8600
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8601
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8602
          /^X\(\/\/\)$/{ s//\1/; q; }
8603
          /^X\(\/\).*/{ s//\1/; q; }
8604
          s/.*/./; q'`
8605 1576 phoenix
      { if $as_mkdir_p; then
8606
    mkdir -p "$ac_dir"
8607
  else
8608
    as_dir="$ac_dir"
8609
    as_dirs=
8610
    while test ! -d "$as_dir"; do
8611
      as_dirs="$as_dir $as_dirs"
8612
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8613
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8614
         X"$as_dir" : 'X\(//\)[^/]' \| \
8615
         X"$as_dir" : 'X\(//\)$' \| \
8616
         X"$as_dir" : 'X\(/\)' \| \
8617
         .     : '\(.\)' 2>/dev/null ||
8618
echo X"$as_dir" |
8619
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8620
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8621
          /^X\(\/\/\)$/{ s//\1/; q; }
8622
          /^X\(\/\).*/{ s//\1/; q; }
8623
          s/.*/./; q'`
8624
    done
8625
    test ! -n "$as_dirs" || mkdir $as_dirs
8626
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8627
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8628
   { (exit 1); exit 1; }; }; }
8629 1242 hpanther
 
8630
      rm -f $ac_file
8631
      mv $tmp/config.h $ac_file
8632 7 jrydberg
    fi
8633 1242 hpanther
  else
8634
    cat $tmp/config.h
8635
    rm -f $tmp/config.h
8636 7 jrydberg
  fi
8637 1576 phoenix
# Compute $ac_file's index in $config_headers.
8638
_am_stamp_count=1
8639
for _am_header in $config_headers :; do
8640
  case $_am_header in
8641
    $ac_file | $ac_file:* )
8642
      break ;;
8643
    * )
8644
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8645 1242 hpanther
  esac
8646
done
8647 1576 phoenix
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8648
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8649
         X$ac_file : 'X\(//\)[^/]' \| \
8650
         X$ac_file : 'X\(//\)$' \| \
8651
         X$ac_file : 'X\(/\)' \| \
8652
         .     : '\(.\)' 2>/dev/null ||
8653
echo X$ac_file |
8654
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8655
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8656
          /^X\(\/\/\)$/{ s//\1/; q; }
8657
          /^X\(\/\).*/{ s//\1/; q; }
8658
          s/.*/./; q'`/stamp-h$_am_stamp_count
8659
done
8660
_ACEOF
8661
cat >>$CONFIG_STATUS <<\_ACEOF
8662 7 jrydberg
 
8663 1242 hpanther
#
8664
# CONFIG_COMMANDS section.
8665
#
8666
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8667
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8668
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8669 1576 phoenix
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8670
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8671
         X"$ac_dest" : 'X\(//\)[^/]' \| \
8672
         X"$ac_dest" : 'X\(//\)$' \| \
8673
         X"$ac_dest" : 'X\(/\)' \| \
8674
         .     : '\(.\)' 2>/dev/null ||
8675
echo X"$ac_dest" |
8676
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8677
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8678
          /^X\(\/\/\)$/{ s//\1/; q; }
8679
          /^X\(\/\).*/{ s//\1/; q; }
8680
          s/.*/./; q'`
8681
  { if $as_mkdir_p; then
8682
    mkdir -p "$ac_dir"
8683
  else
8684
    as_dir="$ac_dir"
8685
    as_dirs=
8686
    while test ! -d "$as_dir"; do
8687
      as_dirs="$as_dir $as_dirs"
8688
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8689
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8690
         X"$as_dir" : 'X\(//\)[^/]' \| \
8691
         X"$as_dir" : 'X\(//\)$' \| \
8692
         X"$as_dir" : 'X\(/\)' \| \
8693
         .     : '\(.\)' 2>/dev/null ||
8694
echo X"$as_dir" |
8695
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8696
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8697
          /^X\(\/\/\)$/{ s//\1/; q; }
8698
          /^X\(\/\).*/{ s//\1/; q; }
8699
          s/.*/./; q'`
8700
    done
8701
    test ! -n "$as_dirs" || mkdir $as_dirs
8702
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8703
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8704
   { (exit 1); exit 1; }; }; }
8705 7 jrydberg
 
8706 1576 phoenix
  ac_builddir=.
8707
 
8708
if test "$ac_dir" != .; then
8709
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8710
  # A "../" for each directory in $ac_dir_suffix.
8711
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8712
else
8713
  ac_dir_suffix= ac_top_builddir=
8714
fi
8715
 
8716
case $srcdir in
8717
  .)  # No --srcdir option.  We are building in place.
8718
    ac_srcdir=.
8719
    if test -z "$ac_top_builddir"; then
8720
       ac_top_srcdir=.
8721
    else
8722
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8723
    fi ;;
8724
  [\\/]* | ?:[\\/]* )  # Absolute path.
8725
    ac_srcdir=$srcdir$ac_dir_suffix;
8726
    ac_top_srcdir=$srcdir ;;
8727
  *) # Relative path.
8728
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8729
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8730
esac
8731
 
8732
# Do not use `cd foo && pwd` to compute absolute paths, because
8733
# the directories may not exist.
8734
case `pwd` in
8735
.) ac_abs_builddir="$ac_dir";;
8736
*)
8737
  case "$ac_dir" in
8738
  .) ac_abs_builddir=`pwd`;;
8739
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8740
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8741
  esac;;
8742
esac
8743
case $ac_abs_builddir in
8744
.) ac_abs_top_builddir=${ac_top_builddir}.;;
8745
*)
8746
  case ${ac_top_builddir}. in
8747
  .) ac_abs_top_builddir=$ac_abs_builddir;;
8748
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8749
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8750
  esac;;
8751
esac
8752
case $ac_abs_builddir in
8753
.) ac_abs_srcdir=$ac_srcdir;;
8754
*)
8755
  case $ac_srcdir in
8756
  .) ac_abs_srcdir=$ac_abs_builddir;;
8757
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8758
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8759
  esac;;
8760
esac
8761
case $ac_abs_builddir in
8762
.) ac_abs_top_srcdir=$ac_top_srcdir;;
8763
*)
8764
  case $ac_top_srcdir in
8765
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8766
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8767
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8768
  esac;;
8769
esac
8770
 
8771
 
8772
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8773
echo "$as_me: executing $ac_dest commands" >&6;}
8774 1242 hpanther
  case $ac_dest in
8775
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8776
  # Strip MF so we end up with the name of the file.
8777
  mf=`echo "$mf" | sed -e 's/:.*$//'`
8778 1376 phoenix
  # Check whether this is an Automake generated Makefile or not.
8779
  # We used to match only the files named `Makefile.in', but
8780
  # some people rename them; so instead we look at the file content.
8781
  # Grep'ing the first line is not enough: some people post-process
8782
  # each Makefile.in and add a new line on top of each file to say so.
8783
  # So let's grep whole file.
8784
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8785 1576 phoenix
    dirpart=`(dirname "$mf") 2>/dev/null ||
8786
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8787
         X"$mf" : 'X\(//\)[^/]' \| \
8788
         X"$mf" : 'X\(//\)$' \| \
8789
         X"$mf" : 'X\(/\)' \| \
8790
         .     : '\(.\)' 2>/dev/null ||
8791 1242 hpanther
echo X"$mf" |
8792
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8793
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8794
          /^X\(\/\/\)$/{ s//\1/; q; }
8795
          /^X\(\/\).*/{ s//\1/; q; }
8796
          s/.*/./; q'`
8797
  else
8798
    continue
8799
  fi
8800 1576 phoenix
  # Extract the definition of DEPDIR, am__include, and am__quote
8801
  # from the Makefile without running `make'.
8802
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8803 1242 hpanther
  test -z "$DEPDIR" && continue
8804 1576 phoenix
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
8805
  test -z "am__include" && continue
8806
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8807 1242 hpanther
  # When using ansi2knr, U may be empty or an underscore; expand it
8808 1576 phoenix
  U=`sed -n 's/^U = //p' < "$mf"`
8809
  # Find all dependency output files, they are included files with
8810
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
8811
  # simplest approach to changing $(DEPDIR) to its actual value in the
8812
  # expansion.
8813
  for file in `sed -n "
8814
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8815 1242 hpanther
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8816
    # Make sure the directory exists.
8817
    test -f "$dirpart/$file" && continue
8818 1576 phoenix
    fdir=`(dirname "$file") 2>/dev/null ||
8819
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8820
         X"$file" : 'X\(//\)[^/]' \| \
8821
         X"$file" : 'X\(//\)$' \| \
8822
         X"$file" : 'X\(/\)' \| \
8823
         .     : '\(.\)' 2>/dev/null ||
8824 1242 hpanther
echo X"$file" |
8825
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8826
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8827
          /^X\(\/\/\)$/{ s//\1/; q; }
8828
          /^X\(\/\).*/{ s//\1/; q; }
8829
          s/.*/./; q'`
8830 1576 phoenix
    { if $as_mkdir_p; then
8831
    mkdir -p $dirpart/$fdir
8832
  else
8833
    as_dir=$dirpart/$fdir
8834
    as_dirs=
8835
    while test ! -d "$as_dir"; do
8836
      as_dirs="$as_dir $as_dirs"
8837
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8838
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8839
         X"$as_dir" : 'X\(//\)[^/]' \| \
8840
         X"$as_dir" : 'X\(//\)$' \| \
8841
         X"$as_dir" : 'X\(/\)' \| \
8842
         .     : '\(.\)' 2>/dev/null ||
8843
echo X"$as_dir" |
8844
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8845
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8846
          /^X\(\/\/\)$/{ s//\1/; q; }
8847
          /^X\(\/\).*/{ s//\1/; q; }
8848
          s/.*/./; q'`
8849
    done
8850
    test ! -n "$as_dirs" || mkdir $as_dirs
8851
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8852
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8853
   { (exit 1); exit 1; }; }; }
8854 1242 hpanther
 
8855
    # echo "creating $dirpart/$file"
8856
    echo '# dummy' > "$dirpart/$file"
8857
  done
8858
done
8859
 ;;
8860
    default )
8861 7 jrydberg
# Makefile uses this timestamp file to record whether config.h is up to date.
8862
echo > stamp-h
8863 1242 hpanther
 ;;
8864
  esac
8865
done
8866 1576 phoenix
_ACEOF
8867 7 jrydberg
 
8868 1576 phoenix
cat >>$CONFIG_STATUS <<\_ACEOF
8869 1242 hpanther
 
8870
{ (exit 0); exit 0; }
8871 1576 phoenix
_ACEOF
8872 7 jrydberg
chmod +x $CONFIG_STATUS
8873 1242 hpanther
ac_clean_files=$ac_clean_files_save
8874 7 jrydberg
 
8875 1576 phoenix
 
8876 1242 hpanther
# configure is writing to config.log, and then calls config.status.
8877
# config.status does its own redirection, appending to config.log.
8878
# Unfortunately, on DOS this fails, as config.log is still kept open
8879
# by configure, so config.status won't be able to write to it; its
8880
# output is simply discarded.  So we exec the FD to /dev/null,
8881
# effectively closing config.log, so it can be properly (re)opened and
8882
# appended to by config.status.  When coming back to configure, we
8883
# need to make the FD available again.
8884
if test "$no_create" != yes; then
8885
  ac_cs_success=:
8886 1576 phoenix
  ac_config_status_args=
8887
  test "$silent" = yes &&
8888
    ac_config_status_args="$ac_config_status_args --quiet"
8889 1242 hpanther
  exec 5>/dev/null
8890 1576 phoenix
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8891 1242 hpanther
  exec 5>>config.log
8892
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8893
  # would make configure fail if this is the last instruction.
8894
  $ac_cs_success || { (exit 1); exit 1; }
8895
fi
8896
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.