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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [configure] - Blame information for rev 17

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

Line No. Rev Author Line
1 12 jlechner
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
# Name of the host.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
249
exec 6>&1
250
 
251
#
252
# Initializations.
253
#
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
256
cross_compiling=no
257
subdirs=
258
MFLAGS=
259
MAKEFLAGS=
260
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete.  It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
266
 
267
# Identity of this package.
268
PACKAGE_NAME=
269
PACKAGE_TARNAME=
270
PACKAGE_VERSION=
271
PACKAGE_STRING=
272
PACKAGE_BUGREPORT=
273
 
274
ac_unique_file="tree.c"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
277
#include 
278
#if HAVE_SYS_TYPES_H
279
# include 
280
#endif
281
#if HAVE_SYS_STAT_H
282
# include 
283
#endif
284
#if STDC_HEADERS
285
# include 
286
# include 
287
#else
288
# if HAVE_STDLIB_H
289
#  include 
290
# endif
291
#endif
292
#if HAVE_STRING_H
293
# if !STDC_HEADERS && HAVE_MEMORY_H
294
#  include 
295
# endif
296
# include 
297
#endif
298
#if HAVE_STRINGS_H
299
# include 
300
#endif
301
#if HAVE_INTTYPES_H
302
# include 
303
#else
304
# if HAVE_STDINT_H
305
#  include 
306
# endif
307
#endif
308
#if HAVE_UNISTD_H
309
# include 
310
#endif"
311
 
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump ORIGINAL_OBJDUMP_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313
ac_subst_files='language_hooks'
314
 
315
# Initialize some variables set by options.
316
ac_init_help=
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
320
cache_file=/dev/null
321
exec_prefix=NONE
322
no_create=
323
no_recursion=
324
prefix=NONE
325
program_prefix=NONE
326
program_suffix=NONE
327
program_transform_name=s,x,x,
328
silent=
329
site=
330
srcdir=
331
verbose=
332
x_includes=NONE
333
x_libraries=NONE
334
 
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
352
 
353
ac_prev=
354
for ac_option
355
do
356
  # If the previous option needs an argument, assign it.
357
  if test -n "$ac_prev"; then
358
    eval "$ac_prev=\$ac_option"
359
    ac_prev=
360
    continue
361
  fi
362
 
363
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
 
365
  # Accept the important Cygnus configure options, so we can diagnose typos.
366
 
367
  case $ac_option in
368
 
369
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370
    ac_prev=bindir ;;
371
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372
    bindir=$ac_optarg ;;
373
 
374
  -build | --build | --buil | --bui | --bu)
375
    ac_prev=build_alias ;;
376
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
    build_alias=$ac_optarg ;;
378
 
379
  -cache-file | --cache-file | --cache-fil | --cache-fi \
380
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
    ac_prev=cache_file ;;
382
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
    cache_file=$ac_optarg ;;
385
 
386
  --config-cache | -C)
387
    cache_file=config.cache ;;
388
 
389
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
    ac_prev=datadir ;;
391
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
  | --da=*)
393
    datadir=$ac_optarg ;;
394
 
395
  -disable-* | --disable-*)
396
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
    # Reject names that are not valid shell variable names.
398
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
   { (exit 1); exit 1; }; }
401
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
    eval "enable_$ac_feature=no" ;;
403
 
404
  -enable-* | --enable-*)
405
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
    # Reject names that are not valid shell variable names.
407
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
   { (exit 1); exit 1; }; }
410
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
    case $ac_option in
412
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413
      *) ac_optarg=yes ;;
414
    esac
415
    eval "enable_$ac_feature='$ac_optarg'" ;;
416
 
417
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
  | --exec | --exe | --ex)
420
    ac_prev=exec_prefix ;;
421
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
  | --exec=* | --exe=* | --ex=*)
424
    exec_prefix=$ac_optarg ;;
425
 
426
  -gas | --gas | --ga | --g)
427
    # Obsolete; use --with-gas.
428
    with_gas=yes ;;
429
 
430
  -help | --help | --hel | --he | -h)
431
    ac_init_help=long ;;
432
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
    ac_init_help=recursive ;;
434
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
    ac_init_help=short ;;
436
 
437
  -host | --host | --hos | --ho)
438
    ac_prev=host_alias ;;
439
  -host=* | --host=* | --hos=* | --ho=*)
440
    host_alias=$ac_optarg ;;
441
 
442
  -includedir | --includedir | --includedi | --included | --include \
443
  | --includ | --inclu | --incl | --inc)
444
    ac_prev=includedir ;;
445
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
  | --includ=* | --inclu=* | --incl=* | --inc=*)
447
    includedir=$ac_optarg ;;
448
 
449
  -infodir | --infodir | --infodi | --infod | --info | --inf)
450
    ac_prev=infodir ;;
451
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
    infodir=$ac_optarg ;;
453
 
454
  -libdir | --libdir | --libdi | --libd)
455
    ac_prev=libdir ;;
456
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457
    libdir=$ac_optarg ;;
458
 
459
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
  | --libexe | --libex | --libe)
461
    ac_prev=libexecdir ;;
462
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
  | --libexe=* | --libex=* | --libe=*)
464
    libexecdir=$ac_optarg ;;
465
 
466
  -localstatedir | --localstatedir | --localstatedi | --localstated \
467
  | --localstate | --localstat | --localsta | --localst \
468
  | --locals | --local | --loca | --loc | --lo)
469
    ac_prev=localstatedir ;;
470
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
    localstatedir=$ac_optarg ;;
474
 
475
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
    ac_prev=mandir ;;
477
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478
    mandir=$ac_optarg ;;
479
 
480
  -nfp | --nfp | --nf)
481
    # Obsolete; use --without-fp.
482
    with_fp=no ;;
483
 
484
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
  | --no-cr | --no-c | -n)
486
    no_create=yes ;;
487
 
488
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490
    no_recursion=yes ;;
491
 
492
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
  | --oldin | --oldi | --old | --ol | --o)
495
    ac_prev=oldincludedir ;;
496
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
    oldincludedir=$ac_optarg ;;
500
 
501
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
    ac_prev=prefix ;;
503
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504
    prefix=$ac_optarg ;;
505
 
506
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507
  | --program-pre | --program-pr | --program-p)
508
    ac_prev=program_prefix ;;
509
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
    program_prefix=$ac_optarg ;;
512
 
513
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514
  | --program-suf | --program-su | --program-s)
515
    ac_prev=program_suffix ;;
516
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
    program_suffix=$ac_optarg ;;
519
 
520
  -program-transform-name | --program-transform-name \
521
  | --program-transform-nam | --program-transform-na \
522
  | --program-transform-n | --program-transform- \
523
  | --program-transform | --program-transfor \
524
  | --program-transfo | --program-transf \
525
  | --program-trans | --program-tran \
526
  | --progr-tra | --program-tr | --program-t)
527
    ac_prev=program_transform_name ;;
528
  -program-transform-name=* | --program-transform-name=* \
529
  | --program-transform-nam=* | --program-transform-na=* \
530
  | --program-transform-n=* | --program-transform-=* \
531
  | --program-transform=* | --program-transfor=* \
532
  | --program-transfo=* | --program-transf=* \
533
  | --program-trans=* | --program-tran=* \
534
  | --progr-tra=* | --program-tr=* | --program-t=*)
535
    program_transform_name=$ac_optarg ;;
536
 
537
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
  | -silent | --silent | --silen | --sile | --sil)
539
    silent=yes ;;
540
 
541
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
    ac_prev=sbindir ;;
543
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
  | --sbi=* | --sb=*)
545
    sbindir=$ac_optarg ;;
546
 
547
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
  | --sharedst | --shareds | --shared | --share | --shar \
550
  | --sha | --sh)
551
    ac_prev=sharedstatedir ;;
552
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
  | --sha=* | --sh=*)
556
    sharedstatedir=$ac_optarg ;;
557
 
558
  -site | --site | --sit)
559
    ac_prev=site ;;
560
  -site=* | --site=* | --sit=*)
561
    site=$ac_optarg ;;
562
 
563
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
    ac_prev=srcdir ;;
565
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566
    srcdir=$ac_optarg ;;
567
 
568
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
  | --syscon | --sysco | --sysc | --sys | --sy)
570
    ac_prev=sysconfdir ;;
571
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
    sysconfdir=$ac_optarg ;;
574
 
575
  -target | --target | --targe | --targ | --tar | --ta | --t)
576
    ac_prev=target_alias ;;
577
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
    target_alias=$ac_optarg ;;
579
 
580
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581
    verbose=yes ;;
582
 
583
  -version | --version | --versio | --versi | --vers | -V)
584
    ac_init_version=: ;;
585
 
586
  -with-* | --with-*)
587
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
    # Reject names that are not valid shell variable names.
589
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
      { echo "$as_me: error: invalid package name: $ac_package" >&2
591
   { (exit 1); exit 1; }; }
592
    ac_package=`echo $ac_package| sed 's/-/_/g'`
593
    case $ac_option in
594
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595
      *) ac_optarg=yes ;;
596
    esac
597
    eval "with_$ac_package='$ac_optarg'" ;;
598
 
599
  -without-* | --without-*)
600
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
    # Reject names that are not valid shell variable names.
602
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
      { echo "$as_me: error: invalid package name: $ac_package" >&2
604
   { (exit 1); exit 1; }; }
605
    ac_package=`echo $ac_package | sed 's/-/_/g'`
606
    eval "with_$ac_package=no" ;;
607
 
608
  --x)
609
    # Obsolete; use --with-x.
610
    with_x=yes ;;
611
 
612
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
  | --x-incl | --x-inc | --x-in | --x-i)
614
    ac_prev=x_includes ;;
615
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
    x_includes=$ac_optarg ;;
618
 
619
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
    ac_prev=x_libraries ;;
622
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
    x_libraries=$ac_optarg ;;
625
 
626
  -*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
   { (exit 1); exit 1; }; }
629
    ;;
630
 
631
  *=*)
632
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
    # Reject names that are not valid shell variable names.
634
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
   { (exit 1); exit 1; }; }
637
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
    eval "$ac_envvar='$ac_optarg'"
639
    export $ac_envvar ;;
640
 
641
  *)
642
    # FIXME: should be removed in autoconf 3.0.
643
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647
    ;;
648
 
649
  esac
650
done
651
 
652
if test -n "$ac_prev"; then
653
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
  { echo "$as_me: error: missing argument to $ac_option" >&2
655
   { (exit 1); exit 1; }; }
656
fi
657
 
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
660
do
661
  eval ac_val=$`echo $ac_var`
662
  case $ac_val in
663
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
   { (exit 1); exit 1; }; };;
666
  esac
667
done
668
 
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
              localstatedir libdir includedir oldincludedir infodir mandir
672
do
673
  eval ac_val=$`echo $ac_var`
674
  case $ac_val in
675
    [\\/$]* | ?:[\\/]* ) ;;
676
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
   { (exit 1); exit 1; }; };;
678
  esac
679
done
680
 
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
684
build=$build_alias
685
host=$host_alias
686
target=$target_alias
687
 
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
  if test "x$build_alias" = x; then
691
    cross_compiling=maybe
692
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
    If a cross compiler is detected then cross compile mode will be used." >&2
694
  elif test "x$build_alias" != "x$host_alias"; then
695
    cross_compiling=yes
696
  fi
697
fi
698
 
699
ac_tool_prefix=
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
 
702
test "$silent" = yes && exec 6>/dev/null
703
 
704
 
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
  ac_srcdir_defaulted=yes
708
  # Try the directory containing this script, then its parent.
709
  ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
         X"$0" : 'X\(//\)[^/]' \| \
712
         X"$0" : 'X\(//\)$' \| \
713
         X"$0" : 'X\(/\)' \| \
714
         .     : '\(.\)' 2>/dev/null ||
715
echo X"$0" |
716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
          /^X\(\/\/\)$/{ s//\1/; q; }
719
          /^X\(\/\).*/{ s//\1/; q; }
720
          s/.*/./; q'`
721
  srcdir=$ac_confdir
722
  if test ! -r $srcdir/$ac_unique_file; then
723
    srcdir=..
724
  fi
725
else
726
  ac_srcdir_defaulted=no
727
fi
728
if test ! -r $srcdir/$ac_unique_file; then
729
  if test "$ac_srcdir_defaulted" = yes; then
730
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
   { (exit 1); exit 1; }; }
732
  else
733
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
   { (exit 1); exit 1; }; }
735
  fi
736
fi
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
   { (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
754
ac_env_CC_value=$CC
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
773
ac_env_GMPLIBS_set=${GMPLIBS+set}
774
ac_env_GMPLIBS_value=$GMPLIBS
775
ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776
ac_cv_env_GMPLIBS_value=$GMPLIBS
777
ac_env_GMPINC_set=${GMPINC+set}
778
ac_env_GMPINC_value=$GMPINC
779
ac_cv_env_GMPINC_set=${GMPINC+set}
780
ac_cv_env_GMPINC_value=$GMPINC
781
 
782
#
783
# Report the --help message.
784
#
785
if test "$ac_init_help" = "long"; then
786
  # Omit some internal or obsolete options to make the list less imposing.
787
  # This message is too long to be a string in the A/UX 3.1 sh.
788
  cat <<_ACEOF
789
\`configure' configures this package to adapt to many kinds of systems.
790
 
791
Usage: $0 [OPTION]... [VAR=VALUE]...
792
 
793
To assign environment variables (e.g., CC, CFLAGS...), specify them as
794
VAR=VALUE.  See below for descriptions of some of the useful variables.
795
 
796
Defaults for the options are specified in brackets.
797
 
798
Configuration:
799
  -h, --help              display this help and exit
800
      --help=short        display options specific to this package
801
      --help=recursive    display the short help of all the included packages
802
  -V, --version           display version information and exit
803
  -q, --quiet, --silent   do not print \`checking...' messages
804
      --cache-file=FILE   cache test results in FILE [disabled]
805
  -C, --config-cache      alias for \`--cache-file=config.cache'
806
  -n, --no-create         do not create output files
807
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
 
809
_ACEOF
810
 
811
  cat <<_ACEOF
812
Installation directories:
813
  --prefix=PREFIX         install architecture-independent files in PREFIX
814
                          [$ac_default_prefix]
815
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816
                          [PREFIX]
817
 
818
By default, \`make install' will install all the files in
819
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821
for instance \`--prefix=\$HOME'.
822
 
823
For better control, use the options below.
824
 
825
Fine tuning of the installation directories:
826
  --bindir=DIR           user executables [EPREFIX/bin]
827
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
828
  --libexecdir=DIR       program executables [EPREFIX/libexec]
829
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833
  --libdir=DIR           object code libraries [EPREFIX/lib]
834
  --includedir=DIR       C header files [PREFIX/include]
835
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836
  --infodir=DIR          info documentation [PREFIX/info]
837
  --mandir=DIR           man documentation [PREFIX/man]
838
_ACEOF
839
 
840
  cat <<\_ACEOF
841
 
842
Program names:
843
  --program-prefix=PREFIX            prepend PREFIX to installed program names
844
  --program-suffix=SUFFIX            append SUFFIX to installed program names
845
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
 
847
System types:
848
  --build=BUILD     configure for building on BUILD [guessed]
849
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850
  --target=TARGET   configure for building compilers for TARGET [HOST]
851
_ACEOF
852
fi
853
 
854
if test -n "$ac_init_help"; then
855
 
856
  cat <<\_ACEOF
857
 
858
Optional Features:
859
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861
  --enable-generated-files-in-srcdir
862
                          put copies of generated files in source dir
863
                          intended for creating source tarballs for users
864
                          without texinfo bison or flex.
865
  --enable-werror-always         enable -Werror always
866
  --enable-werror         enable -Werror in bootstrap stage2 and later
867
  --enable-checking=LIST
868
                          enable expensive run-time checks.  With LIST,
869
                          enable only specific categories of checks.
870
                          Categories are: yes,no,all,none,release.
871
                          Flags are: assert,fold,gc,gcac,misc,
872
                          rtlflag,rtl,runtime,tree,valgrind.
873
  --enable-mapped-location   location_t is fileline integer cookie
874
  --enable-coverage=LEVEL
875
                          enable compiler's code coverage collection.
876
                          Use to measure compiler performance and locate
877
                          unused parts of the compiler. With LEVEL, specify
878
                          optimization. Values are opt, noopt,
879
                          default is noopt
880
  --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881
  --enable-multilib       enable library support for multiple ABIs
882
  --enable-__cxa_atexit   enable __cxa_atexit for C++
883
  --enable-threads        enable thread usage for target GCC
884
  --enable-threads=LIB    use LIB thread package for target GCC
885
  --enable-tls            enable or disable generation of tls code
886
                          overriding the assembler check for tls support
887
  --enable-objc-gc        enable the use of Boehm's garbage collector with
888
                          the GNU Objective-C runtime
889
  --disable-shared        don't provide a shared libgcc
890
  --enable-intermodule    build the compiler in one step
891
  --enable-languages=LIST specify which front-ends to build
892
  --disable-rpath         do not hardcode runtime library paths
893
  --enable-initfini-array       use .init_array/.fini_array sections
894
  --enable-sjlj-exceptions
895
                          arrange to use setjmp/longjmp exception handling
896
  --enable-secureplt      enable -msecure-plt by default for PowerPC
897
  --disable-win32-registry
898
                          disable lookup of installation paths in the
899
                          Registry on Windows hosts
900
  --enable-win32-registry enable registry lookup (default)
901
  --enable-win32-registry=KEY
902
                          use KEY instead of GCC version as the last portion
903
                          of the registry key
904
  --enable-maintainer-mode
905
                          enable make rules and dependencies not useful
906
                          (and sometimes confusing) to the casual installer
907
  --enable-version-specific-runtime-libs
908
                          specify that runtime libraries should be
909
                          installed in a compiler-specific directory
910
 
911
Optional Packages:
912
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
913
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
914
  --with-local-prefix=DIR specifies directory to put local include
915
  --with-gxx-include-dir=DIR
916
                          specifies directory to put g++ header files
917
  --with-cpp-install-dir=DIR
918
                          install the user visible C preprocessor in DIR
919
                          (relative to PREFIX) as well as PREFIX/bin
920
  --with-gnu-ld           arrange to work with GNU ld.
921
  --with-ld               arrange to use the specified ld (full pathname)
922
  --with-demangler-in-ld  try to use demangler in GNU ld.
923
  --with-gnu-as           arrange to work with GNU as
924
  --with-as               arrange to use the specified as (full pathname)
925
  --with-stabs            arrange to use stabs instead of host debug format
926
  --with-dwarf2           force the default debug format to be DWARF 2
927
  --with-build-sysroot=sysroot
928
                          use sysroot as the system root during the build
929
  --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
930
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
931
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
932
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
933
  --with-system-libunwind use installed libunwind
934
  --with-gc={page,zone}   choose the garbage collection mechanism to use
935
                          with the compiler
936
  --with-system-zlib      use installed libz
937
  --with-slibdir=DIR      shared libraries in DIR LIBDIR
938
 
939
Some influential environment variables:
940
  CC          C compiler command
941
  CFLAGS      C compiler flags
942
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
943
              nonstandard directory 
944
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
945
              headers in a nonstandard directory 
946
  CPP         C preprocessor
947
  GMPLIBS     How to link GMP
948
  GMPINC      How to find GMP include files
949
 
950
Use these variables to override the choices made by `configure' or to help
951
it to find libraries and programs with nonstandard names/locations.
952
 
953
_ACEOF
954
fi
955
 
956
if test "$ac_init_help" = "recursive"; then
957
  # If there are subdirs, report their specific --help.
958
  ac_popdir=`pwd`
959
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
960
    test -d $ac_dir || continue
961
    ac_builddir=.
962
 
963
if test "$ac_dir" != .; then
964
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
965
  # A "../" for each directory in $ac_dir_suffix.
966
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
967
else
968
  ac_dir_suffix= ac_top_builddir=
969
fi
970
 
971
case $srcdir in
972
  .)  # No --srcdir option.  We are building in place.
973
    ac_srcdir=.
974
    if test -z "$ac_top_builddir"; then
975
       ac_top_srcdir=.
976
    else
977
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
978
    fi ;;
979
  [\\/]* | ?:[\\/]* )  # Absolute path.
980
    ac_srcdir=$srcdir$ac_dir_suffix;
981
    ac_top_srcdir=$srcdir ;;
982
  *) # Relative path.
983
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
984
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
985
esac
986
 
987
# Do not use `cd foo && pwd` to compute absolute paths, because
988
# the directories may not exist.
989
case `pwd` in
990
.) ac_abs_builddir="$ac_dir";;
991
*)
992
  case "$ac_dir" in
993
  .) ac_abs_builddir=`pwd`;;
994
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
995
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
996
  esac;;
997
esac
998
case $ac_abs_builddir in
999
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1000
*)
1001
  case ${ac_top_builddir}. in
1002
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1003
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1004
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1005
  esac;;
1006
esac
1007
case $ac_abs_builddir in
1008
.) ac_abs_srcdir=$ac_srcdir;;
1009
*)
1010
  case $ac_srcdir in
1011
  .) ac_abs_srcdir=$ac_abs_builddir;;
1012
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1013
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1014
  esac;;
1015
esac
1016
case $ac_abs_builddir in
1017
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1018
*)
1019
  case $ac_top_srcdir in
1020
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1021
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1022
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1023
  esac;;
1024
esac
1025
 
1026
    cd $ac_dir
1027
    # Check for guested configure; otherwise get Cygnus style configure.
1028
    if test -f $ac_srcdir/configure.gnu; then
1029
      echo
1030
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1031
    elif test -f $ac_srcdir/configure; then
1032
      echo
1033
      $SHELL $ac_srcdir/configure  --help=recursive
1034
    elif test -f $ac_srcdir/configure.ac ||
1035
           test -f $ac_srcdir/configure.in; then
1036
      echo
1037
      $ac_configure --help
1038
    else
1039
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040
    fi
1041
    cd $ac_popdir
1042
  done
1043
fi
1044
 
1045
test -n "$ac_init_help" && exit 0
1046
if $ac_init_version; then
1047
  cat <<\_ACEOF
1048
 
1049
Copyright (C) 2003 Free Software Foundation, Inc.
1050
This configure script is free software; the Free Software Foundation
1051
gives unlimited permission to copy, distribute and modify it.
1052
_ACEOF
1053
  exit 0
1054
fi
1055
exec 5>config.log
1056
cat >&5 <<_ACEOF
1057
This file contains any messages produced by compilers while
1058
running configure, to aid debugging if configure makes a mistake.
1059
 
1060
It was created by $as_me, which was
1061
generated by GNU Autoconf 2.59.  Invocation command line was
1062
 
1063
  $ $0 $@
1064
 
1065
_ACEOF
1066
{
1067
cat <<_ASUNAME
1068
## --------- ##
1069
## Platform. ##
1070
## --------- ##
1071
 
1072
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1073
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1074
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1075
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1076
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1077
 
1078
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1079
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1080
 
1081
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1082
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1083
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1084
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1085
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1086
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1087
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1088
 
1089
_ASUNAME
1090
 
1091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1092
for as_dir in $PATH
1093
do
1094
  IFS=$as_save_IFS
1095
  test -z "$as_dir" && as_dir=.
1096
  echo "PATH: $as_dir"
1097
done
1098
 
1099
} >&5
1100
 
1101
cat >&5 <<_ACEOF
1102
 
1103
 
1104
## ----------- ##
1105
## Core tests. ##
1106
## ----------- ##
1107
 
1108
_ACEOF
1109
 
1110
 
1111
# Keep a trace of the command line.
1112
# Strip out --no-create and --no-recursion so they do not pile up.
1113
# Strip out --silent because we don't want to record it for future runs.
1114
# Also quote any args containing shell meta-characters.
1115
# Make two passes to allow for proper duplicate-argument suppression.
1116
ac_configure_args=
1117
ac_configure_args0=
1118
ac_configure_args1=
1119
ac_sep=
1120
ac_must_keep_next=false
1121
for ac_pass in 1 2
1122
do
1123
  for ac_arg
1124
  do
1125
    case $ac_arg in
1126
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1127
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128
    | -silent | --silent | --silen | --sile | --sil)
1129
      continue ;;
1130
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1131
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1132
    esac
1133
    case $ac_pass in
1134
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135
    2)
1136
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1137
      if test $ac_must_keep_next = true; then
1138
        ac_must_keep_next=false # Got value, back to normal.
1139
      else
1140
        case $ac_arg in
1141
          *=* | --config-cache | -C | -disable-* | --disable-* \
1142
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1143
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1144
          | -with-* | --with-* | -without-* | --without-* | --x)
1145
            case "$ac_configure_args0 " in
1146
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1147
            esac
1148
            ;;
1149
          -* ) ac_must_keep_next=true ;;
1150
        esac
1151
      fi
1152
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1153
      # Get rid of the leading space.
1154
      ac_sep=" "
1155
      ;;
1156
    esac
1157
  done
1158
done
1159
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1160
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161
 
1162
# When interrupted or exit'd, cleanup temporary files, and complete
1163
# config.log.  We remove comments because anyway the quotes in there
1164
# would cause problems or look ugly.
1165
# WARNING: Be sure not to use single quotes in there, as some shells,
1166
# such as our DU 5.0 friend, will then `close' the trap.
1167
trap 'exit_status=$?
1168
  # Save into config.log some information that might help in debugging.
1169
  {
1170
    echo
1171
 
1172
    cat <<\_ASBOX
1173
## ---------------- ##
1174
## Cache variables. ##
1175
## ---------------- ##
1176
_ASBOX
1177
    echo
1178
    # The following way of writing the cache mishandles newlines in values,
1179
{
1180
  (set) 2>&1 |
1181
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1182
    *ac_space=\ *)
1183
      sed -n \
1184
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1185
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1186
      ;;
1187
    *)
1188
      sed -n \
1189
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1190
      ;;
1191
    esac;
1192
}
1193
    echo
1194
 
1195
    cat <<\_ASBOX
1196
## ----------------- ##
1197
## Output variables. ##
1198
## ----------------- ##
1199
_ASBOX
1200
    echo
1201
    for ac_var in $ac_subst_vars
1202
    do
1203
      eval ac_val=$`echo $ac_var`
1204
      echo "$ac_var='"'"'$ac_val'"'"'"
1205
    done | sort
1206
    echo
1207
 
1208
    if test -n "$ac_subst_files"; then
1209
      cat <<\_ASBOX
1210
## ------------- ##
1211
## Output files. ##
1212
## ------------- ##
1213
_ASBOX
1214
      echo
1215
      for ac_var in $ac_subst_files
1216
      do
1217
        eval ac_val=$`echo $ac_var`
1218
        echo "$ac_var='"'"'$ac_val'"'"'"
1219
      done | sort
1220
      echo
1221
    fi
1222
 
1223
    if test -s confdefs.h; then
1224
      cat <<\_ASBOX
1225
## ----------- ##
1226
## confdefs.h. ##
1227
## ----------- ##
1228
_ASBOX
1229
      echo
1230
      sed "/^$/d" confdefs.h | sort
1231
      echo
1232
    fi
1233
    test "$ac_signal" != 0 &&
1234
      echo "$as_me: caught signal $ac_signal"
1235
    echo "$as_me: exit $exit_status"
1236
  } >&5
1237
  rm -f core *.core &&
1238
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1239
    exit $exit_status
1240
     ' 0
1241
for ac_signal in 1 2 13 15; do
1242
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1243
done
1244
ac_signal=0
1245
 
1246
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1247
rm -rf conftest* confdefs.h
1248
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1249
echo >confdefs.h
1250
 
1251
# Predefined preprocessor variables.
1252
 
1253
cat >>confdefs.h <<_ACEOF
1254
#define PACKAGE_NAME "$PACKAGE_NAME"
1255
_ACEOF
1256
 
1257
 
1258
cat >>confdefs.h <<_ACEOF
1259
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1260
_ACEOF
1261
 
1262
 
1263
cat >>confdefs.h <<_ACEOF
1264
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1265
_ACEOF
1266
 
1267
 
1268
cat >>confdefs.h <<_ACEOF
1269
#define PACKAGE_STRING "$PACKAGE_STRING"
1270
_ACEOF
1271
 
1272
 
1273
cat >>confdefs.h <<_ACEOF
1274
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1275
_ACEOF
1276
 
1277
 
1278
# Let the site file select an alternate cache file if it wants to.
1279
# Prefer explicitly selected file to automatically selected ones.
1280
if test -z "$CONFIG_SITE"; then
1281
  if test "x$prefix" != xNONE; then
1282
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283
  else
1284
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1285
  fi
1286
fi
1287
for ac_site_file in $CONFIG_SITE; do
1288
  if test -r "$ac_site_file"; then
1289
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1290
echo "$as_me: loading site script $ac_site_file" >&6;}
1291
    sed 's/^/| /' "$ac_site_file" >&5
1292
    . "$ac_site_file"
1293
  fi
1294
done
1295
 
1296
if test -r "$cache_file"; then
1297
  # Some versions of bash will fail to source /dev/null (special
1298
  # files actually), so we avoid doing that.
1299
  if test -f "$cache_file"; then
1300
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1301
echo "$as_me: loading cache $cache_file" >&6;}
1302
    case $cache_file in
1303
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1304
      *)                      . ./$cache_file;;
1305
    esac
1306
  fi
1307
else
1308
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1309
echo "$as_me: creating cache $cache_file" >&6;}
1310
  >$cache_file
1311
fi
1312
 
1313
# Check that the precious variables saved in the cache have kept the same
1314
# value.
1315
ac_cache_corrupted=false
1316
for ac_var in `(set) 2>&1 |
1317
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1318
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1319
  eval ac_new_set=\$ac_env_${ac_var}_set
1320
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1321
  eval ac_new_val="\$ac_env_${ac_var}_value"
1322
  case $ac_old_set,$ac_new_set in
1323
    set,)
1324
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1325
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1326
      ac_cache_corrupted=: ;;
1327
    ,set)
1328
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1329
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1330
      ac_cache_corrupted=: ;;
1331
    ,);;
1332
    *)
1333
      if test "x$ac_old_val" != "x$ac_new_val"; then
1334
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1335
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1336
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1337
echo "$as_me:   former value:  $ac_old_val" >&2;}
1338
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1339
echo "$as_me:   current value: $ac_new_val" >&2;}
1340
        ac_cache_corrupted=:
1341
      fi;;
1342
  esac
1343
  # Pass precious variables to config.status.
1344
  if test "$ac_new_set" = set; then
1345
    case $ac_new_val in
1346
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1347
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1348
    *) ac_arg=$ac_var=$ac_new_val ;;
1349
    esac
1350
    case " $ac_configure_args " in
1351
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1352
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1353
    esac
1354
  fi
1355
done
1356
if $ac_cache_corrupted; then
1357
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1358
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1359
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1360
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1361
   { (exit 1); exit 1; }; }
1362
fi
1363
 
1364
ac_ext=c
1365
ac_cpp='$CPP $CPPFLAGS'
1366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1369
 
1370
 
1371
 
1372
 
1373
 
1374
 
1375
 
1376
 
1377
 
1378
 
1379
 
1380
 
1381
 
1382
 
1383
 
1384
 
1385
 
1386
 
1387
 
1388
 
1389
          ac_config_headers="$ac_config_headers auto-host.h:config.in"
1390
 
1391
 
1392
gcc_version=`cat $srcdir/BASE-VER`
1393
 
1394
# Determine the host, build, and target systems
1395
ac_aux_dir=
1396
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397
  if test -f $ac_dir/install-sh; then
1398
    ac_aux_dir=$ac_dir
1399
    ac_install_sh="$ac_aux_dir/install-sh -c"
1400
    break
1401
  elif test -f $ac_dir/install.sh; then
1402
    ac_aux_dir=$ac_dir
1403
    ac_install_sh="$ac_aux_dir/install.sh -c"
1404
    break
1405
  elif test -f $ac_dir/shtool; then
1406
    ac_aux_dir=$ac_dir
1407
    ac_install_sh="$ac_aux_dir/shtool install -c"
1408
    break
1409
  fi
1410
done
1411
if test -z "$ac_aux_dir"; then
1412
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414
   { (exit 1); exit 1; }; }
1415
fi
1416
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1419
 
1420
# Make sure we can run config.sub.
1421
$ac_config_sub sun4 >/dev/null 2>&1 ||
1422
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1423
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1424
   { (exit 1); exit 1; }; }
1425
 
1426
echo "$as_me:$LINENO: checking build system type" >&5
1427
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1428
if test "${ac_cv_build+set}" = set; then
1429
  echo $ECHO_N "(cached) $ECHO_C" >&6
1430
else
1431
  ac_cv_build_alias=$build_alias
1432
test -z "$ac_cv_build_alias" &&
1433
  ac_cv_build_alias=`$ac_config_guess`
1434
test -z "$ac_cv_build_alias" &&
1435
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1436
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1437
   { (exit 1); exit 1; }; }
1438
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1439
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1440
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1441
   { (exit 1); exit 1; }; }
1442
 
1443
fi
1444
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1445
echo "${ECHO_T}$ac_cv_build" >&6
1446
build=$ac_cv_build
1447
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
 
1451
 
1452
echo "$as_me:$LINENO: checking host system type" >&5
1453
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1454
if test "${ac_cv_host+set}" = set; then
1455
  echo $ECHO_N "(cached) $ECHO_C" >&6
1456
else
1457
  ac_cv_host_alias=$host_alias
1458
test -z "$ac_cv_host_alias" &&
1459
  ac_cv_host_alias=$ac_cv_build_alias
1460
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1461
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1462
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1463
   { (exit 1); exit 1; }; }
1464
 
1465
fi
1466
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1467
echo "${ECHO_T}$ac_cv_host" >&6
1468
host=$ac_cv_host
1469
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
 
1473
 
1474
echo "$as_me:$LINENO: checking target system type" >&5
1475
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1476
if test "${ac_cv_target+set}" = set; then
1477
  echo $ECHO_N "(cached) $ECHO_C" >&6
1478
else
1479
  ac_cv_target_alias=$target_alias
1480
test "x$ac_cv_target_alias" = "x" &&
1481
  ac_cv_target_alias=$ac_cv_host_alias
1482
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1483
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1484
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1485
   { (exit 1); exit 1; }; }
1486
 
1487
fi
1488
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1489
echo "${ECHO_T}$ac_cv_target" >&6
1490
target=$ac_cv_target
1491
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
 
1495
 
1496
# The aliases save the names the user supplied, while $host etc.
1497
# will get canonicalized.
1498
test -n "$target_alias" &&
1499
  test "$program_prefix$program_suffix$program_transform_name" = \
1500
    NONENONEs,x,x, &&
1501
  program_prefix=${target_alias}-
1502
 
1503
# Determine the noncanonical target name, for directory use.
1504
 case ${build_alias} in
1505
  "") build_noncanonical=${build} ;;
1506
  *) build_noncanonical=${build_alias} ;;
1507
esac
1508
 
1509
 case ${host_alias} in
1510
  "") host_noncanonical=${build_noncanonical} ;;
1511
  *) host_noncanonical=${host_alias} ;;
1512
esac
1513
 
1514
 case ${target_alias} in
1515
  "") target_noncanonical=${host_noncanonical} ;;
1516
  *) target_noncanonical=${target_alias} ;;
1517
esac
1518
 
1519
 
1520
 
1521
 
1522
# Determine the target- and build-specific subdirectories
1523
  # Prefix 'build-' so this never conflicts with target_subdir.
1524
build_subdir="build-${build_noncanonical}"
1525
# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1526
if ( test $srcdir = . && test -d gcc ) \
1527
   || test -d $srcdir/../host-${host_noncanonical}; then
1528
  host_subdir="host-${host_noncanonical}"
1529
else
1530
  host_subdir=.
1531
fi
1532
# No prefix.
1533
target_subdir=${target_noncanonical}
1534
 
1535
 
1536
# Set program_transform_name
1537
test "$program_prefix" != NONE &&
1538
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1539
# Use a double $ so make ignores it.
1540
test "$program_suffix" != NONE &&
1541
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1542
# Double any \ or $.  echo might interpret backslashes.
1543
# By default was `s,x,x', remove it if useless.
1544
cat <<\_ACEOF >conftest.sed
1545
s/[\\$]/&&/g;s/;s,x,x,$//
1546
_ACEOF
1547
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1548
rm conftest.sed
1549
 
1550
 
1551
# Check for bogus environment variables.
1552
# Test if LIBRARY_PATH contains the notation for the current directory
1553
# since this would lead to problems installing/building glibc.
1554
# LIBRARY_PATH contains the current directory if one of the following
1555
# is true:
1556
# - one of the terminals (":" and ";") is the first or last sign
1557
# - two terminals occur directly after each other
1558
# - the path contains an element with a dot in it
1559
echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1560
echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1561
case ${LIBRARY_PATH} in
1562
  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1563
    library_path_setting="contains current directory"
1564
    ;;
1565
  *)
1566
    library_path_setting="ok"
1567
    ;;
1568
esac
1569
echo "$as_me:$LINENO: result: $library_path_setting" >&5
1570
echo "${ECHO_T}$library_path_setting" >&6
1571
if test "$library_path_setting" != "ok"; then
1572
{ { echo "$as_me:$LINENO: error:
1573
*** LIBRARY_PATH shouldn't contain the current directory when
1574
*** building gcc. Please change the environment variable
1575
*** and run configure again." >&5
1576
echo "$as_me: error:
1577
*** LIBRARY_PATH shouldn't contain the current directory when
1578
*** building gcc. Please change the environment variable
1579
*** and run configure again." >&2;}
1580
   { (exit 1); exit 1; }; }
1581
fi
1582
 
1583
# Test if GCC_EXEC_PREFIX contains the notation for the current directory
1584
# since this would lead to problems installing/building glibc.
1585
# GCC_EXEC_PREFIX contains the current directory if one of the following
1586
# is true:
1587
# - one of the terminals (":" and ";") is the first or last sign
1588
# - two terminals occur directly after each other
1589
# - the path contains an element with a dot in it
1590
echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1591
echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1592
case ${GCC_EXEC_PREFIX} in
1593
  [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1594
    gcc_exec_prefix_setting="contains current directory"
1595
    ;;
1596
  *)
1597
    gcc_exec_prefix_setting="ok"
1598
    ;;
1599
esac
1600
echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1601
echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1602
if test "$gcc_exec_prefix_setting" != "ok"; then
1603
{ { echo "$as_me:$LINENO: error:
1604
*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1605
*** building gcc. Please change the environment variable
1606
*** and run configure again." >&5
1607
echo "$as_me: error:
1608
*** GCC_EXEC_PREFIX shouldn't contain the current directory when
1609
*** building gcc. Please change the environment variable
1610
*** and run configure again." >&2;}
1611
   { (exit 1); exit 1; }; }
1612
fi
1613
 
1614
# -----------
1615
# Directories
1616
# -----------
1617
 
1618
# Specify the local prefix
1619
local_prefix=
1620
 
1621
# Check whether --with-local-prefix or --without-local-prefix was given.
1622
if test "${with_local_prefix+set}" = set; then
1623
  withval="$with_local_prefix"
1624
  case "${withval}" in
1625
yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1626
echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1627
   { (exit 1); exit 1; }; } ;;
1628
no)     ;;
1629
*)      local_prefix=$with_local_prefix ;;
1630
esac
1631
fi;
1632
 
1633
# Default local prefix if it is empty
1634
if test x$local_prefix = x; then
1635
        local_prefix=/usr/local
1636
fi
1637
 
1638
# Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1639
# passed in by the toplevel make and thus we'd get different behavior
1640
# depending on where we built the sources.
1641
gcc_gxx_include_dir=
1642
# Specify the g++ header file directory
1643
 
1644
# Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1645
if test "${with_gxx_include_dir+set}" = set; then
1646
  withval="$with_gxx_include_dir"
1647
  case "${withval}" in
1648
yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1649
echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1650
   { (exit 1); exit 1; }; } ;;
1651
no)     ;;
1652
*)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1653
esac
1654
fi;
1655
 
1656
if test x${gcc_gxx_include_dir} = x; then
1657
  if test x${enable_version_specific_runtime_libs} = xyes; then
1658
    gcc_gxx_include_dir='${libsubdir}/include/c++'
1659
  else
1660
    libstdcxx_incdir='c++/$(version)'
1661
    gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1662
  fi
1663
fi
1664
 
1665
 
1666
# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1667
if test "${with_cpp_install_dir+set}" = set; then
1668
  withval="$with_cpp_install_dir"
1669
  if test x$withval = xyes; then
1670
  { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1671
echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1672
   { (exit 1); exit 1; }; }
1673
elif test x$withval != xno; then
1674
  cpp_install_dir=$withval
1675
fi
1676
fi;
1677
 
1678
# We would like to our source tree to be readonly.  However when releases or
1679
# pre-releases are generated, the flex/bison generated files as well as the
1680
# various formats of manuals need to be included along with the rest of the
1681
# sources.  Therefore we have --enable-generated-files-in-srcdir to do
1682
# just that.
1683
 
1684
echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1685
echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1686
    # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1687
if test "${enable_generated_files_in_srcdir+set}" = set; then
1688
  enableval="$enable_generated_files_in_srcdir"
1689
  generated_files_in_srcdir=$enableval
1690
else
1691
  generated_files_in_srcdir=no
1692
fi;
1693
 
1694
echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1695
echo "${ECHO_T}$generated_files_in_srcdir" >&6
1696
 
1697
if test "$generated_files_in_srcdir" = "yes"; then
1698
  GENINSRC=''
1699
else
1700
  GENINSRC='#'
1701
fi
1702
 
1703
 
1704
# -------------------
1705
# Find default linker
1706
# -------------------
1707
 
1708
# With GNU ld
1709
 
1710
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1711
if test "${with_gnu_ld+set}" = set; then
1712
  withval="$with_gnu_ld"
1713
  gnu_ld_flag="$with_gnu_ld"
1714
else
1715
  gnu_ld_flag=no
1716
fi;
1717
 
1718
# With pre-defined ld
1719
 
1720
# Check whether --with-ld or --without-ld was given.
1721
if test "${with_ld+set}" = set; then
1722
  withval="$with_ld"
1723
  DEFAULT_LINKER="$with_ld"
1724
fi;
1725
if test x"${DEFAULT_LINKER+set}" = x"set"; then
1726
  if test ! -x "$DEFAULT_LINKER"; then
1727
    { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1728
echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1729
   { (exit 1); exit 1; }; }
1730
  elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1731
    gnu_ld_flag=yes
1732
  fi
1733
 
1734
cat >>confdefs.h <<_ACEOF
1735
#define DEFAULT_LINKER "$DEFAULT_LINKER"
1736
_ACEOF
1737
 
1738
fi
1739
 
1740
echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1741
echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1742
if test x"${DEFAULT_LINKER+set}" = x"set"; then
1743
  if test x"$gnu_ld_flag" = x"no"; then
1744
    echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1745
echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1746
  else
1747
    echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1748
echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1749
  fi
1750
else
1751
  echo "$as_me:$LINENO: result: no" >&5
1752
echo "${ECHO_T}no" >&6
1753
fi
1754
 
1755
# With demangler in GNU ld
1756
 
1757
# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1758
if test "${with_demangler_in_ld+set}" = set; then
1759
  withval="$with_demangler_in_ld"
1760
  demangler_in_ld="$with_demangler_in_ld"
1761
else
1762
  demangler_in_ld=no
1763
fi;
1764
 
1765
# ----------------------
1766
# Find default assembler
1767
# ----------------------
1768
 
1769
# With GNU as
1770
 
1771
# Check whether --with-gnu-as or --without-gnu-as was given.
1772
if test "${with_gnu_as+set}" = set; then
1773
  withval="$with_gnu_as"
1774
  gas_flag="$with_gnu_as"
1775
else
1776
  gas_flag=no
1777
fi;
1778
 
1779
 
1780
# Check whether --with-as or --without-as was given.
1781
if test "${with_as+set}" = set; then
1782
  withval="$with_as"
1783
  DEFAULT_ASSEMBLER="$with_as"
1784
fi;
1785
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1786
  if test ! -x "$DEFAULT_ASSEMBLER"; then
1787
    { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1788
echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1789
   { (exit 1); exit 1; }; }
1790
  elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1791
    gas_flag=yes
1792
  fi
1793
 
1794
cat >>confdefs.h <<_ACEOF
1795
#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1796
_ACEOF
1797
 
1798
fi
1799
 
1800
echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1801
echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1802
if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1803
  if test x"$gas_flag" = x"no"; then
1804
    echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1805
echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1806
  else
1807
    echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1808
echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1809
  fi
1810
else
1811
  echo "$as_me:$LINENO: result: no" >&5
1812
echo "${ECHO_T}no" >&6
1813
fi
1814
 
1815
# ---------------
1816
# Find C compiler
1817
# ---------------
1818
 
1819
# If a non-executable a.out is present (e.g. created by GNU as above even if
1820
# invoked with -v only), the IRIX 6 native ld just overwrites the existing
1821
# file, even when creating an executable, so an execution test fails.
1822
# Remove possible default executable files to avoid this.
1823
#
1824
# FIXME: This really belongs into AC_PROG_CC and can be removed once
1825
# Autoconf includes it.
1826
rm -f a.out a.exe b.out
1827
 
1828
# Find the native compiler
1829
ac_ext=c
1830
ac_cpp='$CPP $CPPFLAGS'
1831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834
if test -n "$ac_tool_prefix"; then
1835
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1836
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1837
echo "$as_me:$LINENO: checking for $ac_word" >&5
1838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839
if test "${ac_cv_prog_CC+set}" = set; then
1840
  echo $ECHO_N "(cached) $ECHO_C" >&6
1841
else
1842
  if test -n "$CC"; then
1843
  ac_cv_prog_CC="$CC" # Let the user override the test.
1844
else
1845
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846
for as_dir in $PATH
1847
do
1848
  IFS=$as_save_IFS
1849
  test -z "$as_dir" && as_dir=.
1850
  for ac_exec_ext in '' $ac_executable_extensions; do
1851
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1853
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854
    break 2
1855
  fi
1856
done
1857
done
1858
 
1859
fi
1860
fi
1861
CC=$ac_cv_prog_CC
1862
if test -n "$CC"; then
1863
  echo "$as_me:$LINENO: result: $CC" >&5
1864
echo "${ECHO_T}$CC" >&6
1865
else
1866
  echo "$as_me:$LINENO: result: no" >&5
1867
echo "${ECHO_T}no" >&6
1868
fi
1869
 
1870
fi
1871
if test -z "$ac_cv_prog_CC"; then
1872
  ac_ct_CC=$CC
1873
  # Extract the first word of "gcc", so it can be a program name with args.
1874
set dummy gcc; ac_word=$2
1875
echo "$as_me:$LINENO: checking for $ac_word" >&5
1876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878
  echo $ECHO_N "(cached) $ECHO_C" >&6
1879
else
1880
  if test -n "$ac_ct_CC"; then
1881
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882
else
1883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884
for as_dir in $PATH
1885
do
1886
  IFS=$as_save_IFS
1887
  test -z "$as_dir" && as_dir=.
1888
  for ac_exec_ext in '' $ac_executable_extensions; do
1889
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890
    ac_cv_prog_ac_ct_CC="gcc"
1891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892
    break 2
1893
  fi
1894
done
1895
done
1896
 
1897
fi
1898
fi
1899
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900
if test -n "$ac_ct_CC"; then
1901
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902
echo "${ECHO_T}$ac_ct_CC" >&6
1903
else
1904
  echo "$as_me:$LINENO: result: no" >&5
1905
echo "${ECHO_T}no" >&6
1906
fi
1907
 
1908
  CC=$ac_ct_CC
1909
else
1910
  CC="$ac_cv_prog_CC"
1911
fi
1912
 
1913
if test -z "$CC"; then
1914
  if test -n "$ac_tool_prefix"; then
1915
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1916
set dummy ${ac_tool_prefix}cc; ac_word=$2
1917
echo "$as_me:$LINENO: checking for $ac_word" >&5
1918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919
if test "${ac_cv_prog_CC+set}" = set; then
1920
  echo $ECHO_N "(cached) $ECHO_C" >&6
1921
else
1922
  if test -n "$CC"; then
1923
  ac_cv_prog_CC="$CC" # Let the user override the test.
1924
else
1925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926
for as_dir in $PATH
1927
do
1928
  IFS=$as_save_IFS
1929
  test -z "$as_dir" && as_dir=.
1930
  for ac_exec_ext in '' $ac_executable_extensions; do
1931
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1933
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934
    break 2
1935
  fi
1936
done
1937
done
1938
 
1939
fi
1940
fi
1941
CC=$ac_cv_prog_CC
1942
if test -n "$CC"; then
1943
  echo "$as_me:$LINENO: result: $CC" >&5
1944
echo "${ECHO_T}$CC" >&6
1945
else
1946
  echo "$as_me:$LINENO: result: no" >&5
1947
echo "${ECHO_T}no" >&6
1948
fi
1949
 
1950
fi
1951
if test -z "$ac_cv_prog_CC"; then
1952
  ac_ct_CC=$CC
1953
  # Extract the first word of "cc", so it can be a program name with args.
1954
set dummy cc; ac_word=$2
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958
  echo $ECHO_N "(cached) $ECHO_C" >&6
1959
else
1960
  if test -n "$ac_ct_CC"; then
1961
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1962
else
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964
for as_dir in $PATH
1965
do
1966
  IFS=$as_save_IFS
1967
  test -z "$as_dir" && as_dir=.
1968
  for ac_exec_ext in '' $ac_executable_extensions; do
1969
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
    ac_cv_prog_ac_ct_CC="cc"
1971
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972
    break 2
1973
  fi
1974
done
1975
done
1976
 
1977
fi
1978
fi
1979
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980
if test -n "$ac_ct_CC"; then
1981
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982
echo "${ECHO_T}$ac_ct_CC" >&6
1983
else
1984
  echo "$as_me:$LINENO: result: no" >&5
1985
echo "${ECHO_T}no" >&6
1986
fi
1987
 
1988
  CC=$ac_ct_CC
1989
else
1990
  CC="$ac_cv_prog_CC"
1991
fi
1992
 
1993
fi
1994
if test -z "$CC"; then
1995
  # Extract the first word of "cc", so it can be a program name with args.
1996
set dummy cc; ac_word=$2
1997
echo "$as_me:$LINENO: checking for $ac_word" >&5
1998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999
if test "${ac_cv_prog_CC+set}" = set; then
2000
  echo $ECHO_N "(cached) $ECHO_C" >&6
2001
else
2002
  if test -n "$CC"; then
2003
  ac_cv_prog_CC="$CC" # Let the user override the test.
2004
else
2005
  ac_prog_rejected=no
2006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007
for as_dir in $PATH
2008
do
2009
  IFS=$as_save_IFS
2010
  test -z "$as_dir" && as_dir=.
2011
  for ac_exec_ext in '' $ac_executable_extensions; do
2012
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2014
       ac_prog_rejected=yes
2015
       continue
2016
     fi
2017
    ac_cv_prog_CC="cc"
2018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019
    break 2
2020
  fi
2021
done
2022
done
2023
 
2024
if test $ac_prog_rejected = yes; then
2025
  # We found a bogon in the path, so make sure we never use it.
2026
  set dummy $ac_cv_prog_CC
2027
  shift
2028
  if test $# != 0; then
2029
    # We chose a different compiler from the bogus one.
2030
    # However, it has the same basename, so the bogon will be chosen
2031
    # first if we set CC to just the basename; use the full file name.
2032
    shift
2033
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2034
  fi
2035
fi
2036
fi
2037
fi
2038
CC=$ac_cv_prog_CC
2039
if test -n "$CC"; then
2040
  echo "$as_me:$LINENO: result: $CC" >&5
2041
echo "${ECHO_T}$CC" >&6
2042
else
2043
  echo "$as_me:$LINENO: result: no" >&5
2044
echo "${ECHO_T}no" >&6
2045
fi
2046
 
2047
fi
2048
if test -z "$CC"; then
2049
  if test -n "$ac_tool_prefix"; then
2050
  for ac_prog in cl
2051
  do
2052
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054
echo "$as_me:$LINENO: checking for $ac_word" >&5
2055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056
if test "${ac_cv_prog_CC+set}" = set; then
2057
  echo $ECHO_N "(cached) $ECHO_C" >&6
2058
else
2059
  if test -n "$CC"; then
2060
  ac_cv_prog_CC="$CC" # Let the user override the test.
2061
else
2062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063
for as_dir in $PATH
2064
do
2065
  IFS=$as_save_IFS
2066
  test -z "$as_dir" && as_dir=.
2067
  for ac_exec_ext in '' $ac_executable_extensions; do
2068
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071
    break 2
2072
  fi
2073
done
2074
done
2075
 
2076
fi
2077
fi
2078
CC=$ac_cv_prog_CC
2079
if test -n "$CC"; then
2080
  echo "$as_me:$LINENO: result: $CC" >&5
2081
echo "${ECHO_T}$CC" >&6
2082
else
2083
  echo "$as_me:$LINENO: result: no" >&5
2084
echo "${ECHO_T}no" >&6
2085
fi
2086
 
2087
    test -n "$CC" && break
2088
  done
2089
fi
2090
if test -z "$CC"; then
2091
  ac_ct_CC=$CC
2092
  for ac_prog in cl
2093
do
2094
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2095
set dummy $ac_prog; ac_word=$2
2096
echo "$as_me:$LINENO: checking for $ac_word" >&5
2097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099
  echo $ECHO_N "(cached) $ECHO_C" >&6
2100
else
2101
  if test -n "$ac_ct_CC"; then
2102
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103
else
2104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105
for as_dir in $PATH
2106
do
2107
  IFS=$as_save_IFS
2108
  test -z "$as_dir" && as_dir=.
2109
  for ac_exec_ext in '' $ac_executable_extensions; do
2110
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111
    ac_cv_prog_ac_ct_CC="$ac_prog"
2112
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113
    break 2
2114
  fi
2115
done
2116
done
2117
 
2118
fi
2119
fi
2120
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121
if test -n "$ac_ct_CC"; then
2122
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123
echo "${ECHO_T}$ac_ct_CC" >&6
2124
else
2125
  echo "$as_me:$LINENO: result: no" >&5
2126
echo "${ECHO_T}no" >&6
2127
fi
2128
 
2129
  test -n "$ac_ct_CC" && break
2130
done
2131
 
2132
  CC=$ac_ct_CC
2133
fi
2134
 
2135
fi
2136
 
2137
 
2138
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139
See \`config.log' for more details." >&5
2140
echo "$as_me: error: no acceptable C compiler found in \$PATH
2141
See \`config.log' for more details." >&2;}
2142
   { (exit 1); exit 1; }; }
2143
 
2144
# Provide some information about the compiler.
2145
echo "$as_me:$LINENO:" \
2146
     "checking for C compiler version" >&5
2147
ac_compiler=`set X $ac_compile; echo $2`
2148
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
2149
  (eval $ac_compiler --version &5) 2>&5
2150
  ac_status=$?
2151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152
  (exit $ac_status); }
2153
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
2154
  (eval $ac_compiler -v &5) 2>&5
2155
  ac_status=$?
2156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157
  (exit $ac_status); }
2158
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
2159
  (eval $ac_compiler -V &5) 2>&5
2160
  ac_status=$?
2161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162
  (exit $ac_status); }
2163
 
2164
cat >conftest.$ac_ext <<_ACEOF
2165
/* confdefs.h.  */
2166
_ACEOF
2167
cat confdefs.h >>conftest.$ac_ext
2168
cat >>conftest.$ac_ext <<_ACEOF
2169
/* end confdefs.h.  */
2170
 
2171
int
2172
main ()
2173
{
2174
 
2175
  ;
2176
  return 0;
2177
}
2178
_ACEOF
2179
ac_clean_files_save=$ac_clean_files
2180
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181
# Try to create an executable without -o first, disregard a.out.
2182
# It will help us diagnose broken compilers, and finding out an intuition
2183
# of exeext.
2184
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188
  (eval $ac_link_default) 2>&5
2189
  ac_status=$?
2190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
  (exit $ac_status); }; then
2192
  # Find the output, starting from the most likely.  This scheme is
2193
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194
# resort.
2195
 
2196
# Be careful to initialize this variable, since it used to be cached.
2197
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198
ac_cv_exeext=
2199
# b.out is created by i960 compilers.
2200
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201
do
2202
  test -f "$ac_file" || continue
2203
  case $ac_file in
2204
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205
        ;;
2206
    conftest.$ac_ext )
2207
        # This is the source file.
2208
        ;;
2209
    [ab].out )
2210
        # We found the default executable, but exeext='' is most
2211
        # certainly right.
2212
        break;;
2213
    *.* )
2214
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2216
        # but it would be cool to find out if it's true.  Does anybody
2217
        # maintain Libtool? --akim.
2218
        export ac_cv_exeext
2219
        break;;
2220
    * )
2221
        break;;
2222
  esac
2223
done
2224
else
2225
  echo "$as_me: failed program was:" >&5
2226
sed 's/^/| /' conftest.$ac_ext >&5
2227
 
2228
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229
See \`config.log' for more details." >&5
2230
echo "$as_me: error: C compiler cannot create executables
2231
See \`config.log' for more details." >&2;}
2232
   { (exit 77); exit 77; }; }
2233
fi
2234
 
2235
ac_exeext=$ac_cv_exeext
2236
echo "$as_me:$LINENO: result: $ac_file" >&5
2237
echo "${ECHO_T}$ac_file" >&6
2238
 
2239
# Check the compiler produces executables we can run.  If not, either
2240
# the compiler is broken, or we cross compile.
2241
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244
# If not cross compiling, check that we can run a simple program.
2245
if test "$cross_compiling" != yes; then
2246
  if { ac_try='./$ac_file'
2247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248
  (eval $ac_try) 2>&5
2249
  ac_status=$?
2250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251
  (exit $ac_status); }; }; then
2252
    cross_compiling=no
2253
  else
2254
    if test "$cross_compiling" = maybe; then
2255
        cross_compiling=yes
2256
    else
2257
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258
If you meant to cross compile, use \`--host'.
2259
See \`config.log' for more details." >&5
2260
echo "$as_me: error: cannot run C compiled programs.
2261
If you meant to cross compile, use \`--host'.
2262
See \`config.log' for more details." >&2;}
2263
   { (exit 1); exit 1; }; }
2264
    fi
2265
  fi
2266
fi
2267
echo "$as_me:$LINENO: result: yes" >&5
2268
echo "${ECHO_T}yes" >&6
2269
 
2270
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271
ac_clean_files=$ac_clean_files_save
2272
# Check the compiler produces executables we can run.  If not, either
2273
# the compiler is broken, or we cross compile.
2274
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277
echo "${ECHO_T}$cross_compiling" >&6
2278
 
2279
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282
  (eval $ac_link) 2>&5
2283
  ac_status=$?
2284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285
  (exit $ac_status); }; then
2286
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288
# work properly (i.e., refer to `conftest.exe'), while it won't with
2289
# `rm'.
2290
for ac_file in conftest.exe conftest conftest.*; do
2291
  test -f "$ac_file" || continue
2292
  case $ac_file in
2293
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295
          export ac_cv_exeext
2296
          break;;
2297
    * ) break;;
2298
  esac
2299
done
2300
else
2301
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302
See \`config.log' for more details." >&5
2303
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304
See \`config.log' for more details." >&2;}
2305
   { (exit 1); exit 1; }; }
2306
fi
2307
 
2308
rm -f conftest$ac_cv_exeext
2309
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310
echo "${ECHO_T}$ac_cv_exeext" >&6
2311
 
2312
rm -f conftest.$ac_ext
2313
EXEEXT=$ac_cv_exeext
2314
ac_exeext=$EXEEXT
2315
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317
if test "${ac_cv_objext+set}" = set; then
2318
  echo $ECHO_N "(cached) $ECHO_C" >&6
2319
else
2320
  cat >conftest.$ac_ext <<_ACEOF
2321
/* confdefs.h.  */
2322
_ACEOF
2323
cat confdefs.h >>conftest.$ac_ext
2324
cat >>conftest.$ac_ext <<_ACEOF
2325
/* end confdefs.h.  */
2326
 
2327
int
2328
main ()
2329
{
2330
 
2331
  ;
2332
  return 0;
2333
}
2334
_ACEOF
2335
rm -f conftest.o conftest.obj
2336
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337
  (eval $ac_compile) 2>&5
2338
  ac_status=$?
2339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340
  (exit $ac_status); }; then
2341
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342
  case $ac_file in
2343
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345
       break;;
2346
  esac
2347
done
2348
else
2349
  echo "$as_me: failed program was:" >&5
2350
sed 's/^/| /' conftest.$ac_ext >&5
2351
 
2352
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353
See \`config.log' for more details." >&5
2354
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355
See \`config.log' for more details." >&2;}
2356
   { (exit 1); exit 1; }; }
2357
fi
2358
 
2359
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360
fi
2361
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362
echo "${ECHO_T}$ac_cv_objext" >&6
2363
OBJEXT=$ac_cv_objext
2364
ac_objext=$OBJEXT
2365
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368
  echo $ECHO_N "(cached) $ECHO_C" >&6
2369
else
2370
  cat >conftest.$ac_ext <<_ACEOF
2371
/* confdefs.h.  */
2372
_ACEOF
2373
cat confdefs.h >>conftest.$ac_ext
2374
cat >>conftest.$ac_ext <<_ACEOF
2375
/* end confdefs.h.  */
2376
 
2377
int
2378
main ()
2379
{
2380
#ifndef __GNUC__
2381
       choke me
2382
#endif
2383
 
2384
  ;
2385
  return 0;
2386
}
2387
_ACEOF
2388
rm -f conftest.$ac_objext
2389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390
  (eval $ac_compile) 2>conftest.er1
2391
  ac_status=$?
2392
  grep -v '^ *+' conftest.er1 >conftest.err
2393
  rm -f conftest.er1
2394
  cat conftest.err >&5
2395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396
  (exit $ac_status); } &&
2397
         { ac_try='test -z "$ac_c_werror_flag"
2398
                         || test ! -s conftest.err'
2399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400
  (eval $ac_try) 2>&5
2401
  ac_status=$?
2402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403
  (exit $ac_status); }; } &&
2404
         { ac_try='test -s conftest.$ac_objext'
2405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406
  (eval $ac_try) 2>&5
2407
  ac_status=$?
2408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
  (exit $ac_status); }; }; then
2410
  ac_compiler_gnu=yes
2411
else
2412
  echo "$as_me: failed program was:" >&5
2413
sed 's/^/| /' conftest.$ac_ext >&5
2414
 
2415
ac_compiler_gnu=no
2416
fi
2417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
 
2420
fi
2421
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423
GCC=`test $ac_compiler_gnu = yes && echo yes`
2424
ac_test_CFLAGS=${CFLAGS+set}
2425
ac_save_CFLAGS=$CFLAGS
2426
CFLAGS="-g"
2427
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429
if test "${ac_cv_prog_cc_g+set}" = set; then
2430
  echo $ECHO_N "(cached) $ECHO_C" >&6
2431
else
2432
  cat >conftest.$ac_ext <<_ACEOF
2433
/* confdefs.h.  */
2434
_ACEOF
2435
cat confdefs.h >>conftest.$ac_ext
2436
cat >>conftest.$ac_ext <<_ACEOF
2437
/* end confdefs.h.  */
2438
 
2439
int
2440
main ()
2441
{
2442
 
2443
  ;
2444
  return 0;
2445
}
2446
_ACEOF
2447
rm -f conftest.$ac_objext
2448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449
  (eval $ac_compile) 2>conftest.er1
2450
  ac_status=$?
2451
  grep -v '^ *+' conftest.er1 >conftest.err
2452
  rm -f conftest.er1
2453
  cat conftest.err >&5
2454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455
  (exit $ac_status); } &&
2456
         { ac_try='test -z "$ac_c_werror_flag"
2457
                         || test ! -s conftest.err'
2458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459
  (eval $ac_try) 2>&5
2460
  ac_status=$?
2461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
  (exit $ac_status); }; } &&
2463
         { ac_try='test -s conftest.$ac_objext'
2464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; }; then
2469
  ac_cv_prog_cc_g=yes
2470
else
2471
  echo "$as_me: failed program was:" >&5
2472
sed 's/^/| /' conftest.$ac_ext >&5
2473
 
2474
ac_cv_prog_cc_g=no
2475
fi
2476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477
fi
2478
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480
if test "$ac_test_CFLAGS" = set; then
2481
  CFLAGS=$ac_save_CFLAGS
2482
elif test $ac_cv_prog_cc_g = yes; then
2483
  if test "$GCC" = yes; then
2484
    CFLAGS="-g -O2"
2485
  else
2486
    CFLAGS="-g"
2487
  fi
2488
else
2489
  if test "$GCC" = yes; then
2490
    CFLAGS="-O2"
2491
  else
2492
    CFLAGS=
2493
  fi
2494
fi
2495
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498
  echo $ECHO_N "(cached) $ECHO_C" >&6
2499
else
2500
  ac_cv_prog_cc_stdc=no
2501
ac_save_CC=$CC
2502
cat >conftest.$ac_ext <<_ACEOF
2503
/* confdefs.h.  */
2504
_ACEOF
2505
cat confdefs.h >>conftest.$ac_ext
2506
cat >>conftest.$ac_ext <<_ACEOF
2507
/* end confdefs.h.  */
2508
#include 
2509
#include 
2510
#include 
2511
#include 
2512
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513
struct buf { int x; };
2514
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515
static char *e (p, i)
2516
     char **p;
2517
     int i;
2518
{
2519
  return p[i];
2520
}
2521
static char *f (char * (*g) (char **, int), char **p, ...)
2522
{
2523
  char *s;
2524
  va_list v;
2525
  va_start (v,p);
2526
  s = g (p, va_arg (v,int));
2527
  va_end (v);
2528
  return s;
2529
}
2530
 
2531
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532
   function prototypes and stuff, but not '\xHH' hex character constants.
2533
   These don't provoke an error unfortunately, instead are silently treated
2534
   as 'x'.  The following induces an error, until -std1 is added to get
2535
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536
   array size at least.  It's necessary to write '\x00'==0 to get something
2537
   that's true only with -std1.  */
2538
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
 
2540
int test (int i, double x);
2541
struct s1 {int (*f) (int a);};
2542
struct s2 {int (*f) (double a);};
2543
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544
int argc;
2545
char **argv;
2546
int
2547
main ()
2548
{
2549
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550
  ;
2551
  return 0;
2552
}
2553
_ACEOF
2554
# Don't try gcc -ansi; that turns off useful extensions and
2555
# breaks some systems' header files.
2556
# AIX                   -qlanglvl=ansi
2557
# Ultrix and OSF/1      -std1
2558
# HP-UX 10.20 and later -Ae
2559
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2560
# SVR4                  -Xc -D__EXTENSIONS__
2561
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562
do
2563
  CC="$ac_save_CC $ac_arg"
2564
  rm -f conftest.$ac_objext
2565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566
  (eval $ac_compile) 2>conftest.er1
2567
  ac_status=$?
2568
  grep -v '^ *+' conftest.er1 >conftest.err
2569
  rm -f conftest.er1
2570
  cat conftest.err >&5
2571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572
  (exit $ac_status); } &&
2573
         { ac_try='test -z "$ac_c_werror_flag"
2574
                         || test ! -s conftest.err'
2575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576
  (eval $ac_try) 2>&5
2577
  ac_status=$?
2578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579
  (exit $ac_status); }; } &&
2580
         { ac_try='test -s conftest.$ac_objext'
2581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582
  (eval $ac_try) 2>&5
2583
  ac_status=$?
2584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
  (exit $ac_status); }; }; then
2586
  ac_cv_prog_cc_stdc=$ac_arg
2587
break
2588
else
2589
  echo "$as_me: failed program was:" >&5
2590
sed 's/^/| /' conftest.$ac_ext >&5
2591
 
2592
fi
2593
rm -f conftest.err conftest.$ac_objext
2594
done
2595
rm -f conftest.$ac_ext conftest.$ac_objext
2596
CC=$ac_save_CC
2597
 
2598
fi
2599
 
2600
case "x$ac_cv_prog_cc_stdc" in
2601
  x|xno)
2602
    echo "$as_me:$LINENO: result: none needed" >&5
2603
echo "${ECHO_T}none needed" >&6 ;;
2604
  *)
2605
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2608
esac
2609
 
2610
# Some people use a C++ compiler to compile C.  Since we use `exit',
2611
# in C++ we need to declare it.  In case someone uses the same compiler
2612
# for both compiling C and C++ we need to have the C++ compiler decide
2613
# the declaration of exit, since it's the most demanding environment.
2614
cat >conftest.$ac_ext <<_ACEOF
2615
#ifndef __cplusplus
2616
  choke me
2617
#endif
2618
_ACEOF
2619
rm -f conftest.$ac_objext
2620
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621
  (eval $ac_compile) 2>conftest.er1
2622
  ac_status=$?
2623
  grep -v '^ *+' conftest.er1 >conftest.err
2624
  rm -f conftest.er1
2625
  cat conftest.err >&5
2626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627
  (exit $ac_status); } &&
2628
         { ac_try='test -z "$ac_c_werror_flag"
2629
                         || test ! -s conftest.err'
2630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631
  (eval $ac_try) 2>&5
2632
  ac_status=$?
2633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
  (exit $ac_status); }; } &&
2635
         { ac_try='test -s conftest.$ac_objext'
2636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637
  (eval $ac_try) 2>&5
2638
  ac_status=$?
2639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640
  (exit $ac_status); }; }; then
2641
  for ac_declaration in \
2642
   '' \
2643
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2644
   'extern "C" void std::exit (int); using std::exit;' \
2645
   'extern "C" void exit (int) throw ();' \
2646
   'extern "C" void exit (int);' \
2647
   'void exit (int);'
2648
do
2649
  cat >conftest.$ac_ext <<_ACEOF
2650
/* confdefs.h.  */
2651
_ACEOF
2652
cat confdefs.h >>conftest.$ac_ext
2653
cat >>conftest.$ac_ext <<_ACEOF
2654
/* end confdefs.h.  */
2655
$ac_declaration
2656
#include 
2657
int
2658
main ()
2659
{
2660
exit (42);
2661
  ;
2662
  return 0;
2663
}
2664
_ACEOF
2665
rm -f conftest.$ac_objext
2666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667
  (eval $ac_compile) 2>conftest.er1
2668
  ac_status=$?
2669
  grep -v '^ *+' conftest.er1 >conftest.err
2670
  rm -f conftest.er1
2671
  cat conftest.err >&5
2672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673
  (exit $ac_status); } &&
2674
         { ac_try='test -z "$ac_c_werror_flag"
2675
                         || test ! -s conftest.err'
2676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677
  (eval $ac_try) 2>&5
2678
  ac_status=$?
2679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680
  (exit $ac_status); }; } &&
2681
         { ac_try='test -s conftest.$ac_objext'
2682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683
  (eval $ac_try) 2>&5
2684
  ac_status=$?
2685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686
  (exit $ac_status); }; }; then
2687
  :
2688
else
2689
  echo "$as_me: failed program was:" >&5
2690
sed 's/^/| /' conftest.$ac_ext >&5
2691
 
2692
continue
2693
fi
2694
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695
  cat >conftest.$ac_ext <<_ACEOF
2696
/* confdefs.h.  */
2697
_ACEOF
2698
cat confdefs.h >>conftest.$ac_ext
2699
cat >>conftest.$ac_ext <<_ACEOF
2700
/* end confdefs.h.  */
2701
$ac_declaration
2702
int
2703
main ()
2704
{
2705
exit (42);
2706
  ;
2707
  return 0;
2708
}
2709
_ACEOF
2710
rm -f conftest.$ac_objext
2711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712
  (eval $ac_compile) 2>conftest.er1
2713
  ac_status=$?
2714
  grep -v '^ *+' conftest.er1 >conftest.err
2715
  rm -f conftest.er1
2716
  cat conftest.err >&5
2717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718
  (exit $ac_status); } &&
2719
         { ac_try='test -z "$ac_c_werror_flag"
2720
                         || test ! -s conftest.err'
2721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722
  (eval $ac_try) 2>&5
2723
  ac_status=$?
2724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725
  (exit $ac_status); }; } &&
2726
         { ac_try='test -s conftest.$ac_objext'
2727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728
  (eval $ac_try) 2>&5
2729
  ac_status=$?
2730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
  (exit $ac_status); }; }; then
2732
  break
2733
else
2734
  echo "$as_me: failed program was:" >&5
2735
sed 's/^/| /' conftest.$ac_ext >&5
2736
 
2737
fi
2738
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739
done
2740
rm -f conftest*
2741
if test -n "$ac_declaration"; then
2742
  echo '#ifdef __cplusplus' >>confdefs.h
2743
  echo $ac_declaration      >>confdefs.h
2744
  echo '#endif'             >>confdefs.h
2745
fi
2746
 
2747
else
2748
  echo "$as_me: failed program was:" >&5
2749
sed 's/^/| /' conftest.$ac_ext >&5
2750
 
2751
fi
2752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753
ac_ext=c
2754
ac_cpp='$CPP $CPPFLAGS'
2755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
 
2759
if test "x$CC" != xcc; then
2760
  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2761
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2762
else
2763
  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2764
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2765
fi
2766
set dummy $CC; ac_cc=`echo $2 |
2767
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2768
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2769
  echo $ECHO_N "(cached) $ECHO_C" >&6
2770
else
2771
  cat >conftest.$ac_ext <<_ACEOF
2772
/* confdefs.h.  */
2773
_ACEOF
2774
cat confdefs.h >>conftest.$ac_ext
2775
cat >>conftest.$ac_ext <<_ACEOF
2776
/* end confdefs.h.  */
2777
 
2778
int
2779
main ()
2780
{
2781
 
2782
  ;
2783
  return 0;
2784
}
2785
_ACEOF
2786
# Make sure it works both with $CC and with simple cc.
2787
# We do the test twice because some compilers refuse to overwrite an
2788
# existing .o file with -o, though they will create one.
2789
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2790
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791
  (eval $ac_try) 2>&5
2792
  ac_status=$?
2793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794
  (exit $ac_status); } &&
2795
   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796
  (eval $ac_try) 2>&5
2797
  ac_status=$?
2798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799
  (exit $ac_status); };
2800
then
2801
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2802
  if test "x$CC" != xcc; then
2803
    # Test first that cc exists at all.
2804
    if { ac_try='cc -c conftest.$ac_ext >&5'
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
  (eval $ac_try) 2>&5
2807
  ac_status=$?
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
  (exit $ac_status); }; }; then
2810
      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2811
      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812
  (eval $ac_try) 2>&5
2813
  ac_status=$?
2814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
  (exit $ac_status); } &&
2816
         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817
  (eval $ac_try) 2>&5
2818
  ac_status=$?
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
  (exit $ac_status); };
2821
      then
2822
        # cc works too.
2823
        :
2824
      else
2825
        # cc exists but doesn't like -o.
2826
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
2827
      fi
2828
    fi
2829
  fi
2830
else
2831
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
2832
fi
2833
rm -f conftest*
2834
 
2835
fi
2836
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2837
  echo "$as_me:$LINENO: result: yes" >&5
2838
echo "${ECHO_T}yes" >&6
2839
else
2840
  echo "$as_me:$LINENO: result: no" >&5
2841
echo "${ECHO_T}no" >&6
2842
 
2843
cat >>confdefs.h <<\_ACEOF
2844
#define NO_MINUS_C_MINUS_O 1
2845
_ACEOF
2846
 
2847
fi
2848
 
2849
# expand $ac_aux_dir to an absolute path
2850
am_aux_dir=`cd $ac_aux_dir && pwd`
2851
 
2852
# FIXME: we rely on the cache variable name because
2853
# there is no other way.
2854
set dummy $CC
2855
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2856
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2857
   # Losing compiler, so override with the script.
2858
   # FIXME: It is wrong to rewrite CC.
2859
   # But if we don't then we get into trouble of one sort or another.
2860
   # A longer-term fix would be to have automake use am__CC in this case,
2861
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2862
   CC="$am_aux_dir/compile $CC"
2863
fi
2864
 
2865
# autoconf is lame and doesn't give us any substitution variable for this.
2866
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2867
  NO_MINUS_C_MINUS_O=yes
2868
else
2869
  OUTPUT_OPTION='-o $@'
2870
fi
2871
 
2872
 
2873
 
2874
# -------------------------
2875
# Check C compiler features
2876
# -------------------------
2877
 
2878
ac_ext=c
2879
ac_cpp='$CPP $CPPFLAGS'
2880
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2884
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2885
# On Suns, sometimes $CPP names a directory.
2886
if test -n "$CPP" && test -d "$CPP"; then
2887
  CPP=
2888
fi
2889
if test -z "$CPP"; then
2890
  if test "${ac_cv_prog_CPP+set}" = set; then
2891
  echo $ECHO_N "(cached) $ECHO_C" >&6
2892
else
2893
      # Double quotes because CPP needs to be expanded
2894
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2895
    do
2896
      ac_preproc_ok=false
2897
for ac_c_preproc_warn_flag in '' yes
2898
do
2899
  # Use a header file that comes with gcc, so configuring glibc
2900
  # with a fresh cross-compiler works.
2901
  # Prefer  to  if __STDC__ is defined, since
2902
  #  exists even on freestanding compilers.
2903
  # On the NeXT, cc -E runs the code through the compiler's parser,
2904
  # not just through cpp. "Syntax error" is here to catch this case.
2905
  cat >conftest.$ac_ext <<_ACEOF
2906
/* confdefs.h.  */
2907
_ACEOF
2908
cat confdefs.h >>conftest.$ac_ext
2909
cat >>conftest.$ac_ext <<_ACEOF
2910
/* end confdefs.h.  */
2911
#ifdef __STDC__
2912
# include 
2913
#else
2914
# include 
2915
#endif
2916
                     Syntax error
2917
_ACEOF
2918
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2919
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920
  ac_status=$?
2921
  grep -v '^ *+' conftest.er1 >conftest.err
2922
  rm -f conftest.er1
2923
  cat conftest.err >&5
2924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
  (exit $ac_status); } >/dev/null; then
2926
  if test -s conftest.err; then
2927
    ac_cpp_err=$ac_c_preproc_warn_flag
2928
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2929
  else
2930
    ac_cpp_err=
2931
  fi
2932
else
2933
  ac_cpp_err=yes
2934
fi
2935
if test -z "$ac_cpp_err"; then
2936
  :
2937
else
2938
  echo "$as_me: failed program was:" >&5
2939
sed 's/^/| /' conftest.$ac_ext >&5
2940
 
2941
  # Broken: fails on valid input.
2942
continue
2943
fi
2944
rm -f conftest.err conftest.$ac_ext
2945
 
2946
  # OK, works on sane cases.  Now check whether non-existent headers
2947
  # can be detected and how.
2948
  cat >conftest.$ac_ext <<_ACEOF
2949
/* confdefs.h.  */
2950
_ACEOF
2951
cat confdefs.h >>conftest.$ac_ext
2952
cat >>conftest.$ac_ext <<_ACEOF
2953
/* end confdefs.h.  */
2954
#include 
2955
_ACEOF
2956
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958
  ac_status=$?
2959
  grep -v '^ *+' conftest.er1 >conftest.err
2960
  rm -f conftest.er1
2961
  cat conftest.err >&5
2962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963
  (exit $ac_status); } >/dev/null; then
2964
  if test -s conftest.err; then
2965
    ac_cpp_err=$ac_c_preproc_warn_flag
2966
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967
  else
2968
    ac_cpp_err=
2969
  fi
2970
else
2971
  ac_cpp_err=yes
2972
fi
2973
if test -z "$ac_cpp_err"; then
2974
  # Broken: success on invalid input.
2975
continue
2976
else
2977
  echo "$as_me: failed program was:" >&5
2978
sed 's/^/| /' conftest.$ac_ext >&5
2979
 
2980
  # Passes both tests.
2981
ac_preproc_ok=:
2982
break
2983
fi
2984
rm -f conftest.err conftest.$ac_ext
2985
 
2986
done
2987
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988
rm -f conftest.err conftest.$ac_ext
2989
if $ac_preproc_ok; then
2990
  break
2991
fi
2992
 
2993
    done
2994
    ac_cv_prog_CPP=$CPP
2995
 
2996
fi
2997
  CPP=$ac_cv_prog_CPP
2998
else
2999
  ac_cv_prog_CPP=$CPP
3000
fi
3001
echo "$as_me:$LINENO: result: $CPP" >&5
3002
echo "${ECHO_T}$CPP" >&6
3003
ac_preproc_ok=false
3004
for ac_c_preproc_warn_flag in '' yes
3005
do
3006
  # Use a header file that comes with gcc, so configuring glibc
3007
  # with a fresh cross-compiler works.
3008
  # Prefer  to  if __STDC__ is defined, since
3009
  #  exists even on freestanding compilers.
3010
  # On the NeXT, cc -E runs the code through the compiler's parser,
3011
  # not just through cpp. "Syntax error" is here to catch this case.
3012
  cat >conftest.$ac_ext <<_ACEOF
3013
/* confdefs.h.  */
3014
_ACEOF
3015
cat confdefs.h >>conftest.$ac_ext
3016
cat >>conftest.$ac_ext <<_ACEOF
3017
/* end confdefs.h.  */
3018
#ifdef __STDC__
3019
# include 
3020
#else
3021
# include 
3022
#endif
3023
                     Syntax error
3024
_ACEOF
3025
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027
  ac_status=$?
3028
  grep -v '^ *+' conftest.er1 >conftest.err
3029
  rm -f conftest.er1
3030
  cat conftest.err >&5
3031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
  (exit $ac_status); } >/dev/null; then
3033
  if test -s conftest.err; then
3034
    ac_cpp_err=$ac_c_preproc_warn_flag
3035
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3036
  else
3037
    ac_cpp_err=
3038
  fi
3039
else
3040
  ac_cpp_err=yes
3041
fi
3042
if test -z "$ac_cpp_err"; then
3043
  :
3044
else
3045
  echo "$as_me: failed program was:" >&5
3046
sed 's/^/| /' conftest.$ac_ext >&5
3047
 
3048
  # Broken: fails on valid input.
3049
continue
3050
fi
3051
rm -f conftest.err conftest.$ac_ext
3052
 
3053
  # OK, works on sane cases.  Now check whether non-existent headers
3054
  # can be detected and how.
3055
  cat >conftest.$ac_ext <<_ACEOF
3056
/* confdefs.h.  */
3057
_ACEOF
3058
cat confdefs.h >>conftest.$ac_ext
3059
cat >>conftest.$ac_ext <<_ACEOF
3060
/* end confdefs.h.  */
3061
#include 
3062
_ACEOF
3063
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065
  ac_status=$?
3066
  grep -v '^ *+' conftest.er1 >conftest.err
3067
  rm -f conftest.er1
3068
  cat conftest.err >&5
3069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070
  (exit $ac_status); } >/dev/null; then
3071
  if test -s conftest.err; then
3072
    ac_cpp_err=$ac_c_preproc_warn_flag
3073
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074
  else
3075
    ac_cpp_err=
3076
  fi
3077
else
3078
  ac_cpp_err=yes
3079
fi
3080
if test -z "$ac_cpp_err"; then
3081
  # Broken: success on invalid input.
3082
continue
3083
else
3084
  echo "$as_me: failed program was:" >&5
3085
sed 's/^/| /' conftest.$ac_ext >&5
3086
 
3087
  # Passes both tests.
3088
ac_preproc_ok=:
3089
break
3090
fi
3091
rm -f conftest.err conftest.$ac_ext
3092
 
3093
done
3094
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095
rm -f conftest.err conftest.$ac_ext
3096
if $ac_preproc_ok; then
3097
  :
3098
else
3099
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3100
See \`config.log' for more details." >&5
3101
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3102
See \`config.log' for more details." >&2;}
3103
   { (exit 1); exit 1; }; }
3104
fi
3105
 
3106
ac_ext=c
3107
ac_cpp='$CPP $CPPFLAGS'
3108
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111
 
3112
 
3113
echo "$as_me:$LINENO: checking for inline" >&5
3114
echo $ECHO_N "checking for inline... $ECHO_C" >&6
3115
if test "${ac_cv_c_inline+set}" = set; then
3116
  echo $ECHO_N "(cached) $ECHO_C" >&6
3117
else
3118
  ac_cv_c_inline=no
3119
for ac_kw in inline __inline__ __inline; do
3120
  cat >conftest.$ac_ext <<_ACEOF
3121
/* confdefs.h.  */
3122
_ACEOF
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h.  */
3126
#ifndef __cplusplus
3127
typedef int foo_t;
3128
static $ac_kw foo_t static_foo () {return 0; }
3129
$ac_kw foo_t foo () {return 0; }
3130
#endif
3131
 
3132
_ACEOF
3133
rm -f conftest.$ac_objext
3134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135
  (eval $ac_compile) 2>conftest.er1
3136
  ac_status=$?
3137
  grep -v '^ *+' conftest.er1 >conftest.err
3138
  rm -f conftest.er1
3139
  cat conftest.err >&5
3140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
  (exit $ac_status); } &&
3142
         { ac_try='test -z "$ac_c_werror_flag"
3143
                         || test ! -s conftest.err'
3144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145
  (eval $ac_try) 2>&5
3146
  ac_status=$?
3147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148
  (exit $ac_status); }; } &&
3149
         { ac_try='test -s conftest.$ac_objext'
3150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151
  (eval $ac_try) 2>&5
3152
  ac_status=$?
3153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
  (exit $ac_status); }; }; then
3155
  ac_cv_c_inline=$ac_kw; break
3156
else
3157
  echo "$as_me: failed program was:" >&5
3158
sed 's/^/| /' conftest.$ac_ext >&5
3159
 
3160
fi
3161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162
done
3163
 
3164
fi
3165
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3166
echo "${ECHO_T}$ac_cv_c_inline" >&6
3167
 
3168
 
3169
case $ac_cv_c_inline in
3170
  inline | yes) ;;
3171
  *)
3172
    case $ac_cv_c_inline in
3173
      no) ac_val=;;
3174
      *) ac_val=$ac_cv_c_inline;;
3175
    esac
3176
    cat >>confdefs.h <<_ACEOF
3177
#ifndef __cplusplus
3178
#define inline $ac_val
3179
#endif
3180
_ACEOF
3181
    ;;
3182
esac
3183
 
3184
 
3185
# sizeof(char) is 1 by definition.
3186
 
3187
echo "$as_me:$LINENO: checking for egrep" >&5
3188
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3189
if test "${ac_cv_prog_egrep+set}" = set; then
3190
  echo $ECHO_N "(cached) $ECHO_C" >&6
3191
else
3192
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3193
    then ac_cv_prog_egrep='grep -E'
3194
    else ac_cv_prog_egrep='egrep'
3195
    fi
3196
fi
3197
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3198
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3199
 EGREP=$ac_cv_prog_egrep
3200
 
3201
 
3202
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3203
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3204
if test "${ac_cv_header_stdc+set}" = set; then
3205
  echo $ECHO_N "(cached) $ECHO_C" >&6
3206
else
3207
  cat >conftest.$ac_ext <<_ACEOF
3208
/* confdefs.h.  */
3209
_ACEOF
3210
cat confdefs.h >>conftest.$ac_ext
3211
cat >>conftest.$ac_ext <<_ACEOF
3212
/* end confdefs.h.  */
3213
#include 
3214
#include 
3215
#include 
3216
#include 
3217
 
3218
int
3219
main ()
3220
{
3221
 
3222
  ;
3223
  return 0;
3224
}
3225
_ACEOF
3226
rm -f conftest.$ac_objext
3227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228
  (eval $ac_compile) 2>conftest.er1
3229
  ac_status=$?
3230
  grep -v '^ *+' conftest.er1 >conftest.err
3231
  rm -f conftest.er1
3232
  cat conftest.err >&5
3233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234
  (exit $ac_status); } &&
3235
         { ac_try='test -z "$ac_c_werror_flag"
3236
                         || test ! -s conftest.err'
3237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238
  (eval $ac_try) 2>&5
3239
  ac_status=$?
3240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241
  (exit $ac_status); }; } &&
3242
         { ac_try='test -s conftest.$ac_objext'
3243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244
  (eval $ac_try) 2>&5
3245
  ac_status=$?
3246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
  (exit $ac_status); }; }; then
3248
  ac_cv_header_stdc=yes
3249
else
3250
  echo "$as_me: failed program was:" >&5
3251
sed 's/^/| /' conftest.$ac_ext >&5
3252
 
3253
ac_cv_header_stdc=no
3254
fi
3255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256
 
3257
if test $ac_cv_header_stdc = yes; then
3258
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3259
  cat >conftest.$ac_ext <<_ACEOF
3260
/* confdefs.h.  */
3261
_ACEOF
3262
cat confdefs.h >>conftest.$ac_ext
3263
cat >>conftest.$ac_ext <<_ACEOF
3264
/* end confdefs.h.  */
3265
#include 
3266
 
3267
_ACEOF
3268
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269
  $EGREP "memchr" >/dev/null 2>&1; then
3270
  :
3271
else
3272
  ac_cv_header_stdc=no
3273
fi
3274
rm -f conftest*
3275
 
3276
fi
3277
 
3278
if test $ac_cv_header_stdc = yes; then
3279
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3280
  cat >conftest.$ac_ext <<_ACEOF
3281
/* confdefs.h.  */
3282
_ACEOF
3283
cat confdefs.h >>conftest.$ac_ext
3284
cat >>conftest.$ac_ext <<_ACEOF
3285
/* end confdefs.h.  */
3286
#include 
3287
 
3288
_ACEOF
3289
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290
  $EGREP "free" >/dev/null 2>&1; then
3291
  :
3292
else
3293
  ac_cv_header_stdc=no
3294
fi
3295
rm -f conftest*
3296
 
3297
fi
3298
 
3299
if test $ac_cv_header_stdc = yes; then
3300
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3301
  if test "$cross_compiling" = yes; then
3302
  :
3303
else
3304
  cat >conftest.$ac_ext <<_ACEOF
3305
/* confdefs.h.  */
3306
_ACEOF
3307
cat confdefs.h >>conftest.$ac_ext
3308
cat >>conftest.$ac_ext <<_ACEOF
3309
/* end confdefs.h.  */
3310
#include 
3311
#if ((' ' & 0x0FF) == 0x020)
3312
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3313
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3314
#else
3315
# define ISLOWER(c) \
3316
                   (('a' <= (c) && (c) <= 'i') \
3317
                     || ('j' <= (c) && (c) <= 'r') \
3318
                     || ('s' <= (c) && (c) <= 'z'))
3319
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3320
#endif
3321
 
3322
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3323
int
3324
main ()
3325
{
3326
  int i;
3327
  for (i = 0; i < 256; i++)
3328
    if (XOR (islower (i), ISLOWER (i))
3329
        || toupper (i) != TOUPPER (i))
3330
      exit(2);
3331
  exit (0);
3332
}
3333
_ACEOF
3334
rm -f conftest$ac_exeext
3335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3336
  (eval $ac_link) 2>&5
3337
  ac_status=$?
3338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341
  (eval $ac_try) 2>&5
3342
  ac_status=$?
3343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
  (exit $ac_status); }; }; then
3345
  :
3346
else
3347
  echo "$as_me: program exited with status $ac_status" >&5
3348
echo "$as_me: failed program was:" >&5
3349
sed 's/^/| /' conftest.$ac_ext >&5
3350
 
3351
( exit $ac_status )
3352
ac_cv_header_stdc=no
3353
fi
3354
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3355
fi
3356
fi
3357
fi
3358
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3359
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3360
if test $ac_cv_header_stdc = yes; then
3361
 
3362
cat >>confdefs.h <<\_ACEOF
3363
#define STDC_HEADERS 1
3364
_ACEOF
3365
 
3366
fi
3367
 
3368
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3369
 
3370
 
3371
 
3372
 
3373
 
3374
 
3375
 
3376
 
3377
 
3378
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3379
                  inttypes.h stdint.h unistd.h
3380
do
3381
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3382
echo "$as_me:$LINENO: checking for $ac_header" >&5
3383
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3384
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3385
  echo $ECHO_N "(cached) $ECHO_C" >&6
3386
else
3387
  cat >conftest.$ac_ext <<_ACEOF
3388
/* confdefs.h.  */
3389
_ACEOF
3390
cat confdefs.h >>conftest.$ac_ext
3391
cat >>conftest.$ac_ext <<_ACEOF
3392
/* end confdefs.h.  */
3393
$ac_includes_default
3394
 
3395
#include <$ac_header>
3396
_ACEOF
3397
rm -f conftest.$ac_objext
3398
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399
  (eval $ac_compile) 2>conftest.er1
3400
  ac_status=$?
3401
  grep -v '^ *+' conftest.er1 >conftest.err
3402
  rm -f conftest.er1
3403
  cat conftest.err >&5
3404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405
  (exit $ac_status); } &&
3406
         { ac_try='test -z "$ac_c_werror_flag"
3407
                         || test ! -s conftest.err'
3408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409
  (eval $ac_try) 2>&5
3410
  ac_status=$?
3411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412
  (exit $ac_status); }; } &&
3413
         { ac_try='test -s conftest.$ac_objext'
3414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415
  (eval $ac_try) 2>&5
3416
  ac_status=$?
3417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418
  (exit $ac_status); }; }; then
3419
  eval "$as_ac_Header=yes"
3420
else
3421
  echo "$as_me: failed program was:" >&5
3422
sed 's/^/| /' conftest.$ac_ext >&5
3423
 
3424
eval "$as_ac_Header=no"
3425
fi
3426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427
fi
3428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3430
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3431
  cat >>confdefs.h <<_ACEOF
3432
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433
_ACEOF
3434
 
3435
fi
3436
 
3437
done
3438
 
3439
 
3440
echo "$as_me:$LINENO: checking for void *" >&5
3441
echo $ECHO_N "checking for void *... $ECHO_C" >&6
3442
if test "${ac_cv_type_void_p+set}" = set; then
3443
  echo $ECHO_N "(cached) $ECHO_C" >&6
3444
else
3445
  cat >conftest.$ac_ext <<_ACEOF
3446
/* confdefs.h.  */
3447
_ACEOF
3448
cat confdefs.h >>conftest.$ac_ext
3449
cat >>conftest.$ac_ext <<_ACEOF
3450
/* end confdefs.h.  */
3451
$ac_includes_default
3452
int
3453
main ()
3454
{
3455
if ((void * *) 0)
3456
  return 0;
3457
if (sizeof (void *))
3458
  return 0;
3459
  ;
3460
  return 0;
3461
}
3462
_ACEOF
3463
rm -f conftest.$ac_objext
3464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465
  (eval $ac_compile) 2>conftest.er1
3466
  ac_status=$?
3467
  grep -v '^ *+' conftest.er1 >conftest.err
3468
  rm -f conftest.er1
3469
  cat conftest.err >&5
3470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471
  (exit $ac_status); } &&
3472
         { ac_try='test -z "$ac_c_werror_flag"
3473
                         || test ! -s conftest.err'
3474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475
  (eval $ac_try) 2>&5
3476
  ac_status=$?
3477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478
  (exit $ac_status); }; } &&
3479
         { ac_try='test -s conftest.$ac_objext'
3480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481
  (eval $ac_try) 2>&5
3482
  ac_status=$?
3483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484
  (exit $ac_status); }; }; then
3485
  ac_cv_type_void_p=yes
3486
else
3487
  echo "$as_me: failed program was:" >&5
3488
sed 's/^/| /' conftest.$ac_ext >&5
3489
 
3490
ac_cv_type_void_p=no
3491
fi
3492
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493
fi
3494
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3495
echo "${ECHO_T}$ac_cv_type_void_p" >&6
3496
 
3497
echo "$as_me:$LINENO: checking size of void *" >&5
3498
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3499
if test "${ac_cv_sizeof_void_p+set}" = set; then
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
3501
else
3502
  if test "$ac_cv_type_void_p" = yes; then
3503
  # The cast to unsigned long works around a bug in the HP C Compiler
3504
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3505
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3506
  # This bug is HP SR number 8606223364.
3507
  if test "$cross_compiling" = yes; then
3508
  # Depending upon the size, compute the lo and hi bounds.
3509
cat >conftest.$ac_ext <<_ACEOF
3510
/* confdefs.h.  */
3511
_ACEOF
3512
cat confdefs.h >>conftest.$ac_ext
3513
cat >>conftest.$ac_ext <<_ACEOF
3514
/* end confdefs.h.  */
3515
$ac_includes_default
3516
int
3517
main ()
3518
{
3519
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3520
test_array [0] = 0
3521
 
3522
  ;
3523
  return 0;
3524
}
3525
_ACEOF
3526
rm -f conftest.$ac_objext
3527
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528
  (eval $ac_compile) 2>conftest.er1
3529
  ac_status=$?
3530
  grep -v '^ *+' conftest.er1 >conftest.err
3531
  rm -f conftest.er1
3532
  cat conftest.err >&5
3533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534
  (exit $ac_status); } &&
3535
         { ac_try='test -z "$ac_c_werror_flag"
3536
                         || test ! -s conftest.err'
3537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538
  (eval $ac_try) 2>&5
3539
  ac_status=$?
3540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541
  (exit $ac_status); }; } &&
3542
         { ac_try='test -s conftest.$ac_objext'
3543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544
  (eval $ac_try) 2>&5
3545
  ac_status=$?
3546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547
  (exit $ac_status); }; }; then
3548
  ac_lo=0 ac_mid=0
3549
  while :; do
3550
    cat >conftest.$ac_ext <<_ACEOF
3551
/* confdefs.h.  */
3552
_ACEOF
3553
cat confdefs.h >>conftest.$ac_ext
3554
cat >>conftest.$ac_ext <<_ACEOF
3555
/* end confdefs.h.  */
3556
$ac_includes_default
3557
int
3558
main ()
3559
{
3560
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3561
test_array [0] = 0
3562
 
3563
  ;
3564
  return 0;
3565
}
3566
_ACEOF
3567
rm -f conftest.$ac_objext
3568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569
  (eval $ac_compile) 2>conftest.er1
3570
  ac_status=$?
3571
  grep -v '^ *+' conftest.er1 >conftest.err
3572
  rm -f conftest.er1
3573
  cat conftest.err >&5
3574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575
  (exit $ac_status); } &&
3576
         { ac_try='test -z "$ac_c_werror_flag"
3577
                         || test ! -s conftest.err'
3578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579
  (eval $ac_try) 2>&5
3580
  ac_status=$?
3581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582
  (exit $ac_status); }; } &&
3583
         { ac_try='test -s conftest.$ac_objext'
3584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585
  (eval $ac_try) 2>&5
3586
  ac_status=$?
3587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588
  (exit $ac_status); }; }; then
3589
  ac_hi=$ac_mid; break
3590
else
3591
  echo "$as_me: failed program was:" >&5
3592
sed 's/^/| /' conftest.$ac_ext >&5
3593
 
3594
ac_lo=`expr $ac_mid + 1`
3595
                    if test $ac_lo -le $ac_mid; then
3596
                      ac_lo= ac_hi=
3597
                      break
3598
                    fi
3599
                    ac_mid=`expr 2 '*' $ac_mid + 1`
3600
fi
3601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602
  done
3603
else
3604
  echo "$as_me: failed program was:" >&5
3605
sed 's/^/| /' conftest.$ac_ext >&5
3606
 
3607
cat >conftest.$ac_ext <<_ACEOF
3608
/* confdefs.h.  */
3609
_ACEOF
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h.  */
3613
$ac_includes_default
3614
int
3615
main ()
3616
{
3617
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3618
test_array [0] = 0
3619
 
3620
  ;
3621
  return 0;
3622
}
3623
_ACEOF
3624
rm -f conftest.$ac_objext
3625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626
  (eval $ac_compile) 2>conftest.er1
3627
  ac_status=$?
3628
  grep -v '^ *+' conftest.er1 >conftest.err
3629
  rm -f conftest.er1
3630
  cat conftest.err >&5
3631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632
  (exit $ac_status); } &&
3633
         { ac_try='test -z "$ac_c_werror_flag"
3634
                         || test ! -s conftest.err'
3635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636
  (eval $ac_try) 2>&5
3637
  ac_status=$?
3638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639
  (exit $ac_status); }; } &&
3640
         { ac_try='test -s conftest.$ac_objext'
3641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642
  (eval $ac_try) 2>&5
3643
  ac_status=$?
3644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645
  (exit $ac_status); }; }; then
3646
  ac_hi=-1 ac_mid=-1
3647
  while :; do
3648
    cat >conftest.$ac_ext <<_ACEOF
3649
/* confdefs.h.  */
3650
_ACEOF
3651
cat confdefs.h >>conftest.$ac_ext
3652
cat >>conftest.$ac_ext <<_ACEOF
3653
/* end confdefs.h.  */
3654
$ac_includes_default
3655
int
3656
main ()
3657
{
3658
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3659
test_array [0] = 0
3660
 
3661
  ;
3662
  return 0;
3663
}
3664
_ACEOF
3665
rm -f conftest.$ac_objext
3666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667
  (eval $ac_compile) 2>conftest.er1
3668
  ac_status=$?
3669
  grep -v '^ *+' conftest.er1 >conftest.err
3670
  rm -f conftest.er1
3671
  cat conftest.err >&5
3672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673
  (exit $ac_status); } &&
3674
         { ac_try='test -z "$ac_c_werror_flag"
3675
                         || test ! -s conftest.err'
3676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677
  (eval $ac_try) 2>&5
3678
  ac_status=$?
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680
  (exit $ac_status); }; } &&
3681
         { ac_try='test -s conftest.$ac_objext'
3682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683
  (eval $ac_try) 2>&5
3684
  ac_status=$?
3685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
  (exit $ac_status); }; }; then
3687
  ac_lo=$ac_mid; break
3688
else
3689
  echo "$as_me: failed program was:" >&5
3690
sed 's/^/| /' conftest.$ac_ext >&5
3691
 
3692
ac_hi=`expr '(' $ac_mid ')' - 1`
3693
                       if test $ac_mid -le $ac_hi; then
3694
                         ac_lo= ac_hi=
3695
                         break
3696
                       fi
3697
                       ac_mid=`expr 2 '*' $ac_mid`
3698
fi
3699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3700
  done
3701
else
3702
  echo "$as_me: failed program was:" >&5
3703
sed 's/^/| /' conftest.$ac_ext >&5
3704
 
3705
ac_lo= ac_hi=
3706
fi
3707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708
fi
3709
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710
# Binary search between lo and hi bounds.
3711
while test "x$ac_lo" != "x$ac_hi"; do
3712
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3713
  cat >conftest.$ac_ext <<_ACEOF
3714
/* confdefs.h.  */
3715
_ACEOF
3716
cat confdefs.h >>conftest.$ac_ext
3717
cat >>conftest.$ac_ext <<_ACEOF
3718
/* end confdefs.h.  */
3719
$ac_includes_default
3720
int
3721
main ()
3722
{
3723
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3724
test_array [0] = 0
3725
 
3726
  ;
3727
  return 0;
3728
}
3729
_ACEOF
3730
rm -f conftest.$ac_objext
3731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732
  (eval $ac_compile) 2>conftest.er1
3733
  ac_status=$?
3734
  grep -v '^ *+' conftest.er1 >conftest.err
3735
  rm -f conftest.er1
3736
  cat conftest.err >&5
3737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738
  (exit $ac_status); } &&
3739
         { ac_try='test -z "$ac_c_werror_flag"
3740
                         || test ! -s conftest.err'
3741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742
  (eval $ac_try) 2>&5
3743
  ac_status=$?
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
  (exit $ac_status); }; } &&
3746
         { ac_try='test -s conftest.$ac_objext'
3747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748
  (eval $ac_try) 2>&5
3749
  ac_status=$?
3750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751
  (exit $ac_status); }; }; then
3752
  ac_hi=$ac_mid
3753
else
3754
  echo "$as_me: failed program was:" >&5
3755
sed 's/^/| /' conftest.$ac_ext >&5
3756
 
3757
ac_lo=`expr '(' $ac_mid ')' + 1`
3758
fi
3759
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760
done
3761
case $ac_lo in
3762
?*) ac_cv_sizeof_void_p=$ac_lo;;
3763
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3764
See \`config.log' for more details." >&5
3765
echo "$as_me: error: cannot compute sizeof (void *), 77
3766
See \`config.log' for more details." >&2;}
3767
   { (exit 1); exit 1; }; } ;;
3768
esac
3769
else
3770
  if test "$cross_compiling" = yes; then
3771
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3772
See \`config.log' for more details." >&5
3773
echo "$as_me: error: cannot run test program while cross compiling
3774
See \`config.log' for more details." >&2;}
3775
   { (exit 1); exit 1; }; }
3776
else
3777
  cat >conftest.$ac_ext <<_ACEOF
3778
/* confdefs.h.  */
3779
_ACEOF
3780
cat confdefs.h >>conftest.$ac_ext
3781
cat >>conftest.$ac_ext <<_ACEOF
3782
/* end confdefs.h.  */
3783
$ac_includes_default
3784
long longval () { return (long) (sizeof (void *)); }
3785
unsigned long ulongval () { return (long) (sizeof (void *)); }
3786
#include 
3787
#include 
3788
int
3789
main ()
3790
{
3791
 
3792
  FILE *f = fopen ("conftest.val", "w");
3793
  if (! f)
3794
    exit (1);
3795
  if (((long) (sizeof (void *))) < 0)
3796
    {
3797
      long i = longval ();
3798
      if (i != ((long) (sizeof (void *))))
3799
        exit (1);
3800
      fprintf (f, "%ld\n", i);
3801
    }
3802
  else
3803
    {
3804
      unsigned long i = ulongval ();
3805
      if (i != ((long) (sizeof (void *))))
3806
        exit (1);
3807
      fprintf (f, "%lu\n", i);
3808
    }
3809
  exit (ferror (f) || fclose (f) != 0);
3810
 
3811
  ;
3812
  return 0;
3813
}
3814
_ACEOF
3815
rm -f conftest$ac_exeext
3816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817
  (eval $ac_link) 2>&5
3818
  ac_status=$?
3819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822
  (eval $ac_try) 2>&5
3823
  ac_status=$?
3824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825
  (exit $ac_status); }; }; then
3826
  ac_cv_sizeof_void_p=`cat conftest.val`
3827
else
3828
  echo "$as_me: program exited with status $ac_status" >&5
3829
echo "$as_me: failed program was:" >&5
3830
sed 's/^/| /' conftest.$ac_ext >&5
3831
 
3832
( exit $ac_status )
3833
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3834
See \`config.log' for more details." >&5
3835
echo "$as_me: error: cannot compute sizeof (void *), 77
3836
See \`config.log' for more details." >&2;}
3837
   { (exit 1); exit 1; }; }
3838
fi
3839
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3840
fi
3841
fi
3842
rm -f conftest.val
3843
else
3844
  ac_cv_sizeof_void_p=0
3845
fi
3846
fi
3847
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3848
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3849
cat >>confdefs.h <<_ACEOF
3850
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3851
_ACEOF
3852
 
3853
 
3854
echo "$as_me:$LINENO: checking for short" >&5
3855
echo $ECHO_N "checking for short... $ECHO_C" >&6
3856
if test "${ac_cv_type_short+set}" = set; then
3857
  echo $ECHO_N "(cached) $ECHO_C" >&6
3858
else
3859
  cat >conftest.$ac_ext <<_ACEOF
3860
/* confdefs.h.  */
3861
_ACEOF
3862
cat confdefs.h >>conftest.$ac_ext
3863
cat >>conftest.$ac_ext <<_ACEOF
3864
/* end confdefs.h.  */
3865
$ac_includes_default
3866
int
3867
main ()
3868
{
3869
if ((short *) 0)
3870
  return 0;
3871
if (sizeof (short))
3872
  return 0;
3873
  ;
3874
  return 0;
3875
}
3876
_ACEOF
3877
rm -f conftest.$ac_objext
3878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3879
  (eval $ac_compile) 2>conftest.er1
3880
  ac_status=$?
3881
  grep -v '^ *+' conftest.er1 >conftest.err
3882
  rm -f conftest.er1
3883
  cat conftest.err >&5
3884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885
  (exit $ac_status); } &&
3886
         { ac_try='test -z "$ac_c_werror_flag"
3887
                         || test ! -s conftest.err'
3888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889
  (eval $ac_try) 2>&5
3890
  ac_status=$?
3891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
  (exit $ac_status); }; } &&
3893
         { ac_try='test -s conftest.$ac_objext'
3894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895
  (eval $ac_try) 2>&5
3896
  ac_status=$?
3897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898
  (exit $ac_status); }; }; then
3899
  ac_cv_type_short=yes
3900
else
3901
  echo "$as_me: failed program was:" >&5
3902
sed 's/^/| /' conftest.$ac_ext >&5
3903
 
3904
ac_cv_type_short=no
3905
fi
3906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3907
fi
3908
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3909
echo "${ECHO_T}$ac_cv_type_short" >&6
3910
 
3911
echo "$as_me:$LINENO: checking size of short" >&5
3912
echo $ECHO_N "checking size of short... $ECHO_C" >&6
3913
if test "${ac_cv_sizeof_short+set}" = set; then
3914
  echo $ECHO_N "(cached) $ECHO_C" >&6
3915
else
3916
  if test "$ac_cv_type_short" = yes; then
3917
  # The cast to unsigned long works around a bug in the HP C Compiler
3918
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3919
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3920
  # This bug is HP SR number 8606223364.
3921
  if test "$cross_compiling" = yes; then
3922
  # Depending upon the size, compute the lo and hi bounds.
3923
cat >conftest.$ac_ext <<_ACEOF
3924
/* confdefs.h.  */
3925
_ACEOF
3926
cat confdefs.h >>conftest.$ac_ext
3927
cat >>conftest.$ac_ext <<_ACEOF
3928
/* end confdefs.h.  */
3929
$ac_includes_default
3930
int
3931
main ()
3932
{
3933
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3934
test_array [0] = 0
3935
 
3936
  ;
3937
  return 0;
3938
}
3939
_ACEOF
3940
rm -f conftest.$ac_objext
3941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942
  (eval $ac_compile) 2>conftest.er1
3943
  ac_status=$?
3944
  grep -v '^ *+' conftest.er1 >conftest.err
3945
  rm -f conftest.er1
3946
  cat conftest.err >&5
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
  (exit $ac_status); } &&
3949
         { ac_try='test -z "$ac_c_werror_flag"
3950
                         || test ! -s conftest.err'
3951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952
  (eval $ac_try) 2>&5
3953
  ac_status=$?
3954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
  (exit $ac_status); }; } &&
3956
         { ac_try='test -s conftest.$ac_objext'
3957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958
  (eval $ac_try) 2>&5
3959
  ac_status=$?
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
  (exit $ac_status); }; }; then
3962
  ac_lo=0 ac_mid=0
3963
  while :; do
3964
    cat >conftest.$ac_ext <<_ACEOF
3965
/* confdefs.h.  */
3966
_ACEOF
3967
cat confdefs.h >>conftest.$ac_ext
3968
cat >>conftest.$ac_ext <<_ACEOF
3969
/* end confdefs.h.  */
3970
$ac_includes_default
3971
int
3972
main ()
3973
{
3974
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3975
test_array [0] = 0
3976
 
3977
  ;
3978
  return 0;
3979
}
3980
_ACEOF
3981
rm -f conftest.$ac_objext
3982
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983
  (eval $ac_compile) 2>conftest.er1
3984
  ac_status=$?
3985
  grep -v '^ *+' conftest.er1 >conftest.err
3986
  rm -f conftest.er1
3987
  cat conftest.err >&5
3988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989
  (exit $ac_status); } &&
3990
         { ac_try='test -z "$ac_c_werror_flag"
3991
                         || test ! -s conftest.err'
3992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993
  (eval $ac_try) 2>&5
3994
  ac_status=$?
3995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996
  (exit $ac_status); }; } &&
3997
         { ac_try='test -s conftest.$ac_objext'
3998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999
  (eval $ac_try) 2>&5
4000
  ac_status=$?
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002
  (exit $ac_status); }; }; then
4003
  ac_hi=$ac_mid; break
4004
else
4005
  echo "$as_me: failed program was:" >&5
4006
sed 's/^/| /' conftest.$ac_ext >&5
4007
 
4008
ac_lo=`expr $ac_mid + 1`
4009
                    if test $ac_lo -le $ac_mid; then
4010
                      ac_lo= ac_hi=
4011
                      break
4012
                    fi
4013
                    ac_mid=`expr 2 '*' $ac_mid + 1`
4014
fi
4015
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4016
  done
4017
else
4018
  echo "$as_me: failed program was:" >&5
4019
sed 's/^/| /' conftest.$ac_ext >&5
4020
 
4021
cat >conftest.$ac_ext <<_ACEOF
4022
/* confdefs.h.  */
4023
_ACEOF
4024
cat confdefs.h >>conftest.$ac_ext
4025
cat >>conftest.$ac_ext <<_ACEOF
4026
/* end confdefs.h.  */
4027
$ac_includes_default
4028
int
4029
main ()
4030
{
4031
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4032
test_array [0] = 0
4033
 
4034
  ;
4035
  return 0;
4036
}
4037
_ACEOF
4038
rm -f conftest.$ac_objext
4039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4040
  (eval $ac_compile) 2>conftest.er1
4041
  ac_status=$?
4042
  grep -v '^ *+' conftest.er1 >conftest.err
4043
  rm -f conftest.er1
4044
  cat conftest.err >&5
4045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046
  (exit $ac_status); } &&
4047
         { ac_try='test -z "$ac_c_werror_flag"
4048
                         || test ! -s conftest.err'
4049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050
  (eval $ac_try) 2>&5
4051
  ac_status=$?
4052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053
  (exit $ac_status); }; } &&
4054
         { ac_try='test -s conftest.$ac_objext'
4055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056
  (eval $ac_try) 2>&5
4057
  ac_status=$?
4058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059
  (exit $ac_status); }; }; then
4060
  ac_hi=-1 ac_mid=-1
4061
  while :; do
4062
    cat >conftest.$ac_ext <<_ACEOF
4063
/* confdefs.h.  */
4064
_ACEOF
4065
cat confdefs.h >>conftest.$ac_ext
4066
cat >>conftest.$ac_ext <<_ACEOF
4067
/* end confdefs.h.  */
4068
$ac_includes_default
4069
int
4070
main ()
4071
{
4072
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4073
test_array [0] = 0
4074
 
4075
  ;
4076
  return 0;
4077
}
4078
_ACEOF
4079
rm -f conftest.$ac_objext
4080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081
  (eval $ac_compile) 2>conftest.er1
4082
  ac_status=$?
4083
  grep -v '^ *+' conftest.er1 >conftest.err
4084
  rm -f conftest.er1
4085
  cat conftest.err >&5
4086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087
  (exit $ac_status); } &&
4088
         { ac_try='test -z "$ac_c_werror_flag"
4089
                         || test ! -s conftest.err'
4090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091
  (eval $ac_try) 2>&5
4092
  ac_status=$?
4093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094
  (exit $ac_status); }; } &&
4095
         { ac_try='test -s conftest.$ac_objext'
4096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097
  (eval $ac_try) 2>&5
4098
  ac_status=$?
4099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100
  (exit $ac_status); }; }; then
4101
  ac_lo=$ac_mid; break
4102
else
4103
  echo "$as_me: failed program was:" >&5
4104
sed 's/^/| /' conftest.$ac_ext >&5
4105
 
4106
ac_hi=`expr '(' $ac_mid ')' - 1`
4107
                       if test $ac_mid -le $ac_hi; then
4108
                         ac_lo= ac_hi=
4109
                         break
4110
                       fi
4111
                       ac_mid=`expr 2 '*' $ac_mid`
4112
fi
4113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114
  done
4115
else
4116
  echo "$as_me: failed program was:" >&5
4117
sed 's/^/| /' conftest.$ac_ext >&5
4118
 
4119
ac_lo= ac_hi=
4120
fi
4121
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4122
fi
4123
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124
# Binary search between lo and hi bounds.
4125
while test "x$ac_lo" != "x$ac_hi"; do
4126
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4127
  cat >conftest.$ac_ext <<_ACEOF
4128
/* confdefs.h.  */
4129
_ACEOF
4130
cat confdefs.h >>conftest.$ac_ext
4131
cat >>conftest.$ac_ext <<_ACEOF
4132
/* end confdefs.h.  */
4133
$ac_includes_default
4134
int
4135
main ()
4136
{
4137
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4138
test_array [0] = 0
4139
 
4140
  ;
4141
  return 0;
4142
}
4143
_ACEOF
4144
rm -f conftest.$ac_objext
4145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146
  (eval $ac_compile) 2>conftest.er1
4147
  ac_status=$?
4148
  grep -v '^ *+' conftest.er1 >conftest.err
4149
  rm -f conftest.er1
4150
  cat conftest.err >&5
4151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152
  (exit $ac_status); } &&
4153
         { ac_try='test -z "$ac_c_werror_flag"
4154
                         || test ! -s conftest.err'
4155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156
  (eval $ac_try) 2>&5
4157
  ac_status=$?
4158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159
  (exit $ac_status); }; } &&
4160
         { ac_try='test -s conftest.$ac_objext'
4161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162
  (eval $ac_try) 2>&5
4163
  ac_status=$?
4164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165
  (exit $ac_status); }; }; then
4166
  ac_hi=$ac_mid
4167
else
4168
  echo "$as_me: failed program was:" >&5
4169
sed 's/^/| /' conftest.$ac_ext >&5
4170
 
4171
ac_lo=`expr '(' $ac_mid ')' + 1`
4172
fi
4173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174
done
4175
case $ac_lo in
4176
?*) ac_cv_sizeof_short=$ac_lo;;
4177
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4178
See \`config.log' for more details." >&5
4179
echo "$as_me: error: cannot compute sizeof (short), 77
4180
See \`config.log' for more details." >&2;}
4181
   { (exit 1); exit 1; }; } ;;
4182
esac
4183
else
4184
  if test "$cross_compiling" = yes; then
4185
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4186
See \`config.log' for more details." >&5
4187
echo "$as_me: error: cannot run test program while cross compiling
4188
See \`config.log' for more details." >&2;}
4189
   { (exit 1); exit 1; }; }
4190
else
4191
  cat >conftest.$ac_ext <<_ACEOF
4192
/* confdefs.h.  */
4193
_ACEOF
4194
cat confdefs.h >>conftest.$ac_ext
4195
cat >>conftest.$ac_ext <<_ACEOF
4196
/* end confdefs.h.  */
4197
$ac_includes_default
4198
long longval () { return (long) (sizeof (short)); }
4199
unsigned long ulongval () { return (long) (sizeof (short)); }
4200
#include 
4201
#include 
4202
int
4203
main ()
4204
{
4205
 
4206
  FILE *f = fopen ("conftest.val", "w");
4207
  if (! f)
4208
    exit (1);
4209
  if (((long) (sizeof (short))) < 0)
4210
    {
4211
      long i = longval ();
4212
      if (i != ((long) (sizeof (short))))
4213
        exit (1);
4214
      fprintf (f, "%ld\n", i);
4215
    }
4216
  else
4217
    {
4218
      unsigned long i = ulongval ();
4219
      if (i != ((long) (sizeof (short))))
4220
        exit (1);
4221
      fprintf (f, "%lu\n", i);
4222
    }
4223
  exit (ferror (f) || fclose (f) != 0);
4224
 
4225
  ;
4226
  return 0;
4227
}
4228
_ACEOF
4229
rm -f conftest$ac_exeext
4230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231
  (eval $ac_link) 2>&5
4232
  ac_status=$?
4233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236
  (eval $ac_try) 2>&5
4237
  ac_status=$?
4238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239
  (exit $ac_status); }; }; then
4240
  ac_cv_sizeof_short=`cat conftest.val`
4241
else
4242
  echo "$as_me: program exited with status $ac_status" >&5
4243
echo "$as_me: failed program was:" >&5
4244
sed 's/^/| /' conftest.$ac_ext >&5
4245
 
4246
( exit $ac_status )
4247
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4248
See \`config.log' for more details." >&5
4249
echo "$as_me: error: cannot compute sizeof (short), 77
4250
See \`config.log' for more details." >&2;}
4251
   { (exit 1); exit 1; }; }
4252
fi
4253
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4254
fi
4255
fi
4256
rm -f conftest.val
4257
else
4258
  ac_cv_sizeof_short=0
4259
fi
4260
fi
4261
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4262
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4263
cat >>confdefs.h <<_ACEOF
4264
#define SIZEOF_SHORT $ac_cv_sizeof_short
4265
_ACEOF
4266
 
4267
 
4268
echo "$as_me:$LINENO: checking for int" >&5
4269
echo $ECHO_N "checking for int... $ECHO_C" >&6
4270
if test "${ac_cv_type_int+set}" = set; then
4271
  echo $ECHO_N "(cached) $ECHO_C" >&6
4272
else
4273
  cat >conftest.$ac_ext <<_ACEOF
4274
/* confdefs.h.  */
4275
_ACEOF
4276
cat confdefs.h >>conftest.$ac_ext
4277
cat >>conftest.$ac_ext <<_ACEOF
4278
/* end confdefs.h.  */
4279
$ac_includes_default
4280
int
4281
main ()
4282
{
4283
if ((int *) 0)
4284
  return 0;
4285
if (sizeof (int))
4286
  return 0;
4287
  ;
4288
  return 0;
4289
}
4290
_ACEOF
4291
rm -f conftest.$ac_objext
4292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293
  (eval $ac_compile) 2>conftest.er1
4294
  ac_status=$?
4295
  grep -v '^ *+' conftest.er1 >conftest.err
4296
  rm -f conftest.er1
4297
  cat conftest.err >&5
4298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299
  (exit $ac_status); } &&
4300
         { ac_try='test -z "$ac_c_werror_flag"
4301
                         || test ! -s conftest.err'
4302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303
  (eval $ac_try) 2>&5
4304
  ac_status=$?
4305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
  (exit $ac_status); }; } &&
4307
         { ac_try='test -s conftest.$ac_objext'
4308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309
  (eval $ac_try) 2>&5
4310
  ac_status=$?
4311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312
  (exit $ac_status); }; }; then
4313
  ac_cv_type_int=yes
4314
else
4315
  echo "$as_me: failed program was:" >&5
4316
sed 's/^/| /' conftest.$ac_ext >&5
4317
 
4318
ac_cv_type_int=no
4319
fi
4320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321
fi
4322
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4323
echo "${ECHO_T}$ac_cv_type_int" >&6
4324
 
4325
echo "$as_me:$LINENO: checking size of int" >&5
4326
echo $ECHO_N "checking size of int... $ECHO_C" >&6
4327
if test "${ac_cv_sizeof_int+set}" = set; then
4328
  echo $ECHO_N "(cached) $ECHO_C" >&6
4329
else
4330
  if test "$ac_cv_type_int" = yes; then
4331
  # The cast to unsigned long works around a bug in the HP C Compiler
4332
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4333
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4334
  # This bug is HP SR number 8606223364.
4335
  if test "$cross_compiling" = yes; then
4336
  # Depending upon the size, compute the lo and hi bounds.
4337
cat >conftest.$ac_ext <<_ACEOF
4338
/* confdefs.h.  */
4339
_ACEOF
4340
cat confdefs.h >>conftest.$ac_ext
4341
cat >>conftest.$ac_ext <<_ACEOF
4342
/* end confdefs.h.  */
4343
$ac_includes_default
4344
int
4345
main ()
4346
{
4347
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4348
test_array [0] = 0
4349
 
4350
  ;
4351
  return 0;
4352
}
4353
_ACEOF
4354
rm -f conftest.$ac_objext
4355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356
  (eval $ac_compile) 2>conftest.er1
4357
  ac_status=$?
4358
  grep -v '^ *+' conftest.er1 >conftest.err
4359
  rm -f conftest.er1
4360
  cat conftest.err >&5
4361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362
  (exit $ac_status); } &&
4363
         { ac_try='test -z "$ac_c_werror_flag"
4364
                         || test ! -s conftest.err'
4365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366
  (eval $ac_try) 2>&5
4367
  ac_status=$?
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369
  (exit $ac_status); }; } &&
4370
         { ac_try='test -s conftest.$ac_objext'
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372
  (eval $ac_try) 2>&5
4373
  ac_status=$?
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375
  (exit $ac_status); }; }; then
4376
  ac_lo=0 ac_mid=0
4377
  while :; do
4378
    cat >conftest.$ac_ext <<_ACEOF
4379
/* confdefs.h.  */
4380
_ACEOF
4381
cat confdefs.h >>conftest.$ac_ext
4382
cat >>conftest.$ac_ext <<_ACEOF
4383
/* end confdefs.h.  */
4384
$ac_includes_default
4385
int
4386
main ()
4387
{
4388
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4389
test_array [0] = 0
4390
 
4391
  ;
4392
  return 0;
4393
}
4394
_ACEOF
4395
rm -f conftest.$ac_objext
4396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397
  (eval $ac_compile) 2>conftest.er1
4398
  ac_status=$?
4399
  grep -v '^ *+' conftest.er1 >conftest.err
4400
  rm -f conftest.er1
4401
  cat conftest.err >&5
4402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
  (exit $ac_status); } &&
4404
         { ac_try='test -z "$ac_c_werror_flag"
4405
                         || test ! -s conftest.err'
4406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407
  (eval $ac_try) 2>&5
4408
  ac_status=$?
4409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410
  (exit $ac_status); }; } &&
4411
         { ac_try='test -s conftest.$ac_objext'
4412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413
  (eval $ac_try) 2>&5
4414
  ac_status=$?
4415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
  (exit $ac_status); }; }; then
4417
  ac_hi=$ac_mid; break
4418
else
4419
  echo "$as_me: failed program was:" >&5
4420
sed 's/^/| /' conftest.$ac_ext >&5
4421
 
4422
ac_lo=`expr $ac_mid + 1`
4423
                    if test $ac_lo -le $ac_mid; then
4424
                      ac_lo= ac_hi=
4425
                      break
4426
                    fi
4427
                    ac_mid=`expr 2 '*' $ac_mid + 1`
4428
fi
4429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430
  done
4431
else
4432
  echo "$as_me: failed program was:" >&5
4433
sed 's/^/| /' conftest.$ac_ext >&5
4434
 
4435
cat >conftest.$ac_ext <<_ACEOF
4436
/* confdefs.h.  */
4437
_ACEOF
4438
cat confdefs.h >>conftest.$ac_ext
4439
cat >>conftest.$ac_ext <<_ACEOF
4440
/* end confdefs.h.  */
4441
$ac_includes_default
4442
int
4443
main ()
4444
{
4445
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4446
test_array [0] = 0
4447
 
4448
  ;
4449
  return 0;
4450
}
4451
_ACEOF
4452
rm -f conftest.$ac_objext
4453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454
  (eval $ac_compile) 2>conftest.er1
4455
  ac_status=$?
4456
  grep -v '^ *+' conftest.er1 >conftest.err
4457
  rm -f conftest.er1
4458
  cat conftest.err >&5
4459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460
  (exit $ac_status); } &&
4461
         { ac_try='test -z "$ac_c_werror_flag"
4462
                         || test ! -s conftest.err'
4463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464
  (eval $ac_try) 2>&5
4465
  ac_status=$?
4466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467
  (exit $ac_status); }; } &&
4468
         { ac_try='test -s conftest.$ac_objext'
4469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
  (eval $ac_try) 2>&5
4471
  ac_status=$?
4472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473
  (exit $ac_status); }; }; then
4474
  ac_hi=-1 ac_mid=-1
4475
  while :; do
4476
    cat >conftest.$ac_ext <<_ACEOF
4477
/* confdefs.h.  */
4478
_ACEOF
4479
cat confdefs.h >>conftest.$ac_ext
4480
cat >>conftest.$ac_ext <<_ACEOF
4481
/* end confdefs.h.  */
4482
$ac_includes_default
4483
int
4484
main ()
4485
{
4486
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4487
test_array [0] = 0
4488
 
4489
  ;
4490
  return 0;
4491
}
4492
_ACEOF
4493
rm -f conftest.$ac_objext
4494
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495
  (eval $ac_compile) 2>conftest.er1
4496
  ac_status=$?
4497
  grep -v '^ *+' conftest.er1 >conftest.err
4498
  rm -f conftest.er1
4499
  cat conftest.err >&5
4500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501
  (exit $ac_status); } &&
4502
         { ac_try='test -z "$ac_c_werror_flag"
4503
                         || test ! -s conftest.err'
4504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505
  (eval $ac_try) 2>&5
4506
  ac_status=$?
4507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508
  (exit $ac_status); }; } &&
4509
         { ac_try='test -s conftest.$ac_objext'
4510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511
  (eval $ac_try) 2>&5
4512
  ac_status=$?
4513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514
  (exit $ac_status); }; }; then
4515
  ac_lo=$ac_mid; break
4516
else
4517
  echo "$as_me: failed program was:" >&5
4518
sed 's/^/| /' conftest.$ac_ext >&5
4519
 
4520
ac_hi=`expr '(' $ac_mid ')' - 1`
4521
                       if test $ac_mid -le $ac_hi; then
4522
                         ac_lo= ac_hi=
4523
                         break
4524
                       fi
4525
                       ac_mid=`expr 2 '*' $ac_mid`
4526
fi
4527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4528
  done
4529
else
4530
  echo "$as_me: failed program was:" >&5
4531
sed 's/^/| /' conftest.$ac_ext >&5
4532
 
4533
ac_lo= ac_hi=
4534
fi
4535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
fi
4537
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538
# Binary search between lo and hi bounds.
4539
while test "x$ac_lo" != "x$ac_hi"; do
4540
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4541
  cat >conftest.$ac_ext <<_ACEOF
4542
/* confdefs.h.  */
4543
_ACEOF
4544
cat confdefs.h >>conftest.$ac_ext
4545
cat >>conftest.$ac_ext <<_ACEOF
4546
/* end confdefs.h.  */
4547
$ac_includes_default
4548
int
4549
main ()
4550
{
4551
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4552
test_array [0] = 0
4553
 
4554
  ;
4555
  return 0;
4556
}
4557
_ACEOF
4558
rm -f conftest.$ac_objext
4559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560
  (eval $ac_compile) 2>conftest.er1
4561
  ac_status=$?
4562
  grep -v '^ *+' conftest.er1 >conftest.err
4563
  rm -f conftest.er1
4564
  cat conftest.err >&5
4565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566
  (exit $ac_status); } &&
4567
         { ac_try='test -z "$ac_c_werror_flag"
4568
                         || test ! -s conftest.err'
4569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570
  (eval $ac_try) 2>&5
4571
  ac_status=$?
4572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
  (exit $ac_status); }; } &&
4574
         { ac_try='test -s conftest.$ac_objext'
4575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
  (eval $ac_try) 2>&5
4577
  ac_status=$?
4578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
  (exit $ac_status); }; }; then
4580
  ac_hi=$ac_mid
4581
else
4582
  echo "$as_me: failed program was:" >&5
4583
sed 's/^/| /' conftest.$ac_ext >&5
4584
 
4585
ac_lo=`expr '(' $ac_mid ')' + 1`
4586
fi
4587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588
done
4589
case $ac_lo in
4590
?*) ac_cv_sizeof_int=$ac_lo;;
4591
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4592
See \`config.log' for more details." >&5
4593
echo "$as_me: error: cannot compute sizeof (int), 77
4594
See \`config.log' for more details." >&2;}
4595
   { (exit 1); exit 1; }; } ;;
4596
esac
4597
else
4598
  if test "$cross_compiling" = yes; then
4599
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4600
See \`config.log' for more details." >&5
4601
echo "$as_me: error: cannot run test program while cross compiling
4602
See \`config.log' for more details." >&2;}
4603
   { (exit 1); exit 1; }; }
4604
else
4605
  cat >conftest.$ac_ext <<_ACEOF
4606
/* confdefs.h.  */
4607
_ACEOF
4608
cat confdefs.h >>conftest.$ac_ext
4609
cat >>conftest.$ac_ext <<_ACEOF
4610
/* end confdefs.h.  */
4611
$ac_includes_default
4612
long longval () { return (long) (sizeof (int)); }
4613
unsigned long ulongval () { return (long) (sizeof (int)); }
4614
#include 
4615
#include 
4616
int
4617
main ()
4618
{
4619
 
4620
  FILE *f = fopen ("conftest.val", "w");
4621
  if (! f)
4622
    exit (1);
4623
  if (((long) (sizeof (int))) < 0)
4624
    {
4625
      long i = longval ();
4626
      if (i != ((long) (sizeof (int))))
4627
        exit (1);
4628
      fprintf (f, "%ld\n", i);
4629
    }
4630
  else
4631
    {
4632
      unsigned long i = ulongval ();
4633
      if (i != ((long) (sizeof (int))))
4634
        exit (1);
4635
      fprintf (f, "%lu\n", i);
4636
    }
4637
  exit (ferror (f) || fclose (f) != 0);
4638
 
4639
  ;
4640
  return 0;
4641
}
4642
_ACEOF
4643
rm -f conftest$ac_exeext
4644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645
  (eval $ac_link) 2>&5
4646
  ac_status=$?
4647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650
  (eval $ac_try) 2>&5
4651
  ac_status=$?
4652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653
  (exit $ac_status); }; }; then
4654
  ac_cv_sizeof_int=`cat conftest.val`
4655
else
4656
  echo "$as_me: program exited with status $ac_status" >&5
4657
echo "$as_me: failed program was:" >&5
4658
sed 's/^/| /' conftest.$ac_ext >&5
4659
 
4660
( exit $ac_status )
4661
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4662
See \`config.log' for more details." >&5
4663
echo "$as_me: error: cannot compute sizeof (int), 77
4664
See \`config.log' for more details." >&2;}
4665
   { (exit 1); exit 1; }; }
4666
fi
4667
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4668
fi
4669
fi
4670
rm -f conftest.val
4671
else
4672
  ac_cv_sizeof_int=0
4673
fi
4674
fi
4675
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4676
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4677
cat >>confdefs.h <<_ACEOF
4678
#define SIZEOF_INT $ac_cv_sizeof_int
4679
_ACEOF
4680
 
4681
 
4682
echo "$as_me:$LINENO: checking for long" >&5
4683
echo $ECHO_N "checking for long... $ECHO_C" >&6
4684
if test "${ac_cv_type_long+set}" = set; then
4685
  echo $ECHO_N "(cached) $ECHO_C" >&6
4686
else
4687
  cat >conftest.$ac_ext <<_ACEOF
4688
/* confdefs.h.  */
4689
_ACEOF
4690
cat confdefs.h >>conftest.$ac_ext
4691
cat >>conftest.$ac_ext <<_ACEOF
4692
/* end confdefs.h.  */
4693
$ac_includes_default
4694
int
4695
main ()
4696
{
4697
if ((long *) 0)
4698
  return 0;
4699
if (sizeof (long))
4700
  return 0;
4701
  ;
4702
  return 0;
4703
}
4704
_ACEOF
4705
rm -f conftest.$ac_objext
4706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707
  (eval $ac_compile) 2>conftest.er1
4708
  ac_status=$?
4709
  grep -v '^ *+' conftest.er1 >conftest.err
4710
  rm -f conftest.er1
4711
  cat conftest.err >&5
4712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
  (exit $ac_status); } &&
4714
         { ac_try='test -z "$ac_c_werror_flag"
4715
                         || test ! -s conftest.err'
4716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717
  (eval $ac_try) 2>&5
4718
  ac_status=$?
4719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720
  (exit $ac_status); }; } &&
4721
         { ac_try='test -s conftest.$ac_objext'
4722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723
  (eval $ac_try) 2>&5
4724
  ac_status=$?
4725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726
  (exit $ac_status); }; }; then
4727
  ac_cv_type_long=yes
4728
else
4729
  echo "$as_me: failed program was:" >&5
4730
sed 's/^/| /' conftest.$ac_ext >&5
4731
 
4732
ac_cv_type_long=no
4733
fi
4734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735
fi
4736
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4737
echo "${ECHO_T}$ac_cv_type_long" >&6
4738
 
4739
echo "$as_me:$LINENO: checking size of long" >&5
4740
echo $ECHO_N "checking size of long... $ECHO_C" >&6
4741
if test "${ac_cv_sizeof_long+set}" = set; then
4742
  echo $ECHO_N "(cached) $ECHO_C" >&6
4743
else
4744
  if test "$ac_cv_type_long" = yes; then
4745
  # The cast to unsigned long works around a bug in the HP C Compiler
4746
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4747
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4748
  # This bug is HP SR number 8606223364.
4749
  if test "$cross_compiling" = yes; then
4750
  # Depending upon the size, compute the lo and hi bounds.
4751
cat >conftest.$ac_ext <<_ACEOF
4752
/* confdefs.h.  */
4753
_ACEOF
4754
cat confdefs.h >>conftest.$ac_ext
4755
cat >>conftest.$ac_ext <<_ACEOF
4756
/* end confdefs.h.  */
4757
$ac_includes_default
4758
int
4759
main ()
4760
{
4761
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4762
test_array [0] = 0
4763
 
4764
  ;
4765
  return 0;
4766
}
4767
_ACEOF
4768
rm -f conftest.$ac_objext
4769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770
  (eval $ac_compile) 2>conftest.er1
4771
  ac_status=$?
4772
  grep -v '^ *+' conftest.er1 >conftest.err
4773
  rm -f conftest.er1
4774
  cat conftest.err >&5
4775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776
  (exit $ac_status); } &&
4777
         { ac_try='test -z "$ac_c_werror_flag"
4778
                         || test ! -s conftest.err'
4779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780
  (eval $ac_try) 2>&5
4781
  ac_status=$?
4782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783
  (exit $ac_status); }; } &&
4784
         { ac_try='test -s conftest.$ac_objext'
4785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786
  (eval $ac_try) 2>&5
4787
  ac_status=$?
4788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789
  (exit $ac_status); }; }; then
4790
  ac_lo=0 ac_mid=0
4791
  while :; do
4792
    cat >conftest.$ac_ext <<_ACEOF
4793
/* confdefs.h.  */
4794
_ACEOF
4795
cat confdefs.h >>conftest.$ac_ext
4796
cat >>conftest.$ac_ext <<_ACEOF
4797
/* end confdefs.h.  */
4798
$ac_includes_default
4799
int
4800
main ()
4801
{
4802
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4803
test_array [0] = 0
4804
 
4805
  ;
4806
  return 0;
4807
}
4808
_ACEOF
4809
rm -f conftest.$ac_objext
4810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811
  (eval $ac_compile) 2>conftest.er1
4812
  ac_status=$?
4813
  grep -v '^ *+' conftest.er1 >conftest.err
4814
  rm -f conftest.er1
4815
  cat conftest.err >&5
4816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817
  (exit $ac_status); } &&
4818
         { ac_try='test -z "$ac_c_werror_flag"
4819
                         || test ! -s conftest.err'
4820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821
  (eval $ac_try) 2>&5
4822
  ac_status=$?
4823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824
  (exit $ac_status); }; } &&
4825
         { ac_try='test -s conftest.$ac_objext'
4826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827
  (eval $ac_try) 2>&5
4828
  ac_status=$?
4829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830
  (exit $ac_status); }; }; then
4831
  ac_hi=$ac_mid; break
4832
else
4833
  echo "$as_me: failed program was:" >&5
4834
sed 's/^/| /' conftest.$ac_ext >&5
4835
 
4836
ac_lo=`expr $ac_mid + 1`
4837
                    if test $ac_lo -le $ac_mid; then
4838
                      ac_lo= ac_hi=
4839
                      break
4840
                    fi
4841
                    ac_mid=`expr 2 '*' $ac_mid + 1`
4842
fi
4843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844
  done
4845
else
4846
  echo "$as_me: failed program was:" >&5
4847
sed 's/^/| /' conftest.$ac_ext >&5
4848
 
4849
cat >conftest.$ac_ext <<_ACEOF
4850
/* confdefs.h.  */
4851
_ACEOF
4852
cat confdefs.h >>conftest.$ac_ext
4853
cat >>conftest.$ac_ext <<_ACEOF
4854
/* end confdefs.h.  */
4855
$ac_includes_default
4856
int
4857
main ()
4858
{
4859
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4860
test_array [0] = 0
4861
 
4862
  ;
4863
  return 0;
4864
}
4865
_ACEOF
4866
rm -f conftest.$ac_objext
4867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868
  (eval $ac_compile) 2>conftest.er1
4869
  ac_status=$?
4870
  grep -v '^ *+' conftest.er1 >conftest.err
4871
  rm -f conftest.er1
4872
  cat conftest.err >&5
4873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
  (exit $ac_status); } &&
4875
         { ac_try='test -z "$ac_c_werror_flag"
4876
                         || test ! -s conftest.err'
4877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878
  (eval $ac_try) 2>&5
4879
  ac_status=$?
4880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
  (exit $ac_status); }; } &&
4882
         { ac_try='test -s conftest.$ac_objext'
4883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884
  (eval $ac_try) 2>&5
4885
  ac_status=$?
4886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887
  (exit $ac_status); }; }; then
4888
  ac_hi=-1 ac_mid=-1
4889
  while :; do
4890
    cat >conftest.$ac_ext <<_ACEOF
4891
/* confdefs.h.  */
4892
_ACEOF
4893
cat confdefs.h >>conftest.$ac_ext
4894
cat >>conftest.$ac_ext <<_ACEOF
4895
/* end confdefs.h.  */
4896
$ac_includes_default
4897
int
4898
main ()
4899
{
4900
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4901
test_array [0] = 0
4902
 
4903
  ;
4904
  return 0;
4905
}
4906
_ACEOF
4907
rm -f conftest.$ac_objext
4908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909
  (eval $ac_compile) 2>conftest.er1
4910
  ac_status=$?
4911
  grep -v '^ *+' conftest.er1 >conftest.err
4912
  rm -f conftest.er1
4913
  cat conftest.err >&5
4914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915
  (exit $ac_status); } &&
4916
         { ac_try='test -z "$ac_c_werror_flag"
4917
                         || test ! -s conftest.err'
4918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919
  (eval $ac_try) 2>&5
4920
  ac_status=$?
4921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922
  (exit $ac_status); }; } &&
4923
         { ac_try='test -s conftest.$ac_objext'
4924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925
  (eval $ac_try) 2>&5
4926
  ac_status=$?
4927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928
  (exit $ac_status); }; }; then
4929
  ac_lo=$ac_mid; break
4930
else
4931
  echo "$as_me: failed program was:" >&5
4932
sed 's/^/| /' conftest.$ac_ext >&5
4933
 
4934
ac_hi=`expr '(' $ac_mid ')' - 1`
4935
                       if test $ac_mid -le $ac_hi; then
4936
                         ac_lo= ac_hi=
4937
                         break
4938
                       fi
4939
                       ac_mid=`expr 2 '*' $ac_mid`
4940
fi
4941
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942
  done
4943
else
4944
  echo "$as_me: failed program was:" >&5
4945
sed 's/^/| /' conftest.$ac_ext >&5
4946
 
4947
ac_lo= ac_hi=
4948
fi
4949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950
fi
4951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952
# Binary search between lo and hi bounds.
4953
while test "x$ac_lo" != "x$ac_hi"; do
4954
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4955
  cat >conftest.$ac_ext <<_ACEOF
4956
/* confdefs.h.  */
4957
_ACEOF
4958
cat confdefs.h >>conftest.$ac_ext
4959
cat >>conftest.$ac_ext <<_ACEOF
4960
/* end confdefs.h.  */
4961
$ac_includes_default
4962
int
4963
main ()
4964
{
4965
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4966
test_array [0] = 0
4967
 
4968
  ;
4969
  return 0;
4970
}
4971
_ACEOF
4972
rm -f conftest.$ac_objext
4973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974
  (eval $ac_compile) 2>conftest.er1
4975
  ac_status=$?
4976
  grep -v '^ *+' conftest.er1 >conftest.err
4977
  rm -f conftest.er1
4978
  cat conftest.err >&5
4979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980
  (exit $ac_status); } &&
4981
         { ac_try='test -z "$ac_c_werror_flag"
4982
                         || test ! -s conftest.err'
4983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984
  (eval $ac_try) 2>&5
4985
  ac_status=$?
4986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987
  (exit $ac_status); }; } &&
4988
         { ac_try='test -s conftest.$ac_objext'
4989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990
  (eval $ac_try) 2>&5
4991
  ac_status=$?
4992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993
  (exit $ac_status); }; }; then
4994
  ac_hi=$ac_mid
4995
else
4996
  echo "$as_me: failed program was:" >&5
4997
sed 's/^/| /' conftest.$ac_ext >&5
4998
 
4999
ac_lo=`expr '(' $ac_mid ')' + 1`
5000
fi
5001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002
done
5003
case $ac_lo in
5004
?*) ac_cv_sizeof_long=$ac_lo;;
5005
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5006
See \`config.log' for more details." >&5
5007
echo "$as_me: error: cannot compute sizeof (long), 77
5008
See \`config.log' for more details." >&2;}
5009
   { (exit 1); exit 1; }; } ;;
5010
esac
5011
else
5012
  if test "$cross_compiling" = yes; then
5013
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5014
See \`config.log' for more details." >&5
5015
echo "$as_me: error: cannot run test program while cross compiling
5016
See \`config.log' for more details." >&2;}
5017
   { (exit 1); exit 1; }; }
5018
else
5019
  cat >conftest.$ac_ext <<_ACEOF
5020
/* confdefs.h.  */
5021
_ACEOF
5022
cat confdefs.h >>conftest.$ac_ext
5023
cat >>conftest.$ac_ext <<_ACEOF
5024
/* end confdefs.h.  */
5025
$ac_includes_default
5026
long longval () { return (long) (sizeof (long)); }
5027
unsigned long ulongval () { return (long) (sizeof (long)); }
5028
#include 
5029
#include 
5030
int
5031
main ()
5032
{
5033
 
5034
  FILE *f = fopen ("conftest.val", "w");
5035
  if (! f)
5036
    exit (1);
5037
  if (((long) (sizeof (long))) < 0)
5038
    {
5039
      long i = longval ();
5040
      if (i != ((long) (sizeof (long))))
5041
        exit (1);
5042
      fprintf (f, "%ld\n", i);
5043
    }
5044
  else
5045
    {
5046
      unsigned long i = ulongval ();
5047
      if (i != ((long) (sizeof (long))))
5048
        exit (1);
5049
      fprintf (f, "%lu\n", i);
5050
    }
5051
  exit (ferror (f) || fclose (f) != 0);
5052
 
5053
  ;
5054
  return 0;
5055
}
5056
_ACEOF
5057
rm -f conftest$ac_exeext
5058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059
  (eval $ac_link) 2>&5
5060
  ac_status=$?
5061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064
  (eval $ac_try) 2>&5
5065
  ac_status=$?
5066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067
  (exit $ac_status); }; }; then
5068
  ac_cv_sizeof_long=`cat conftest.val`
5069
else
5070
  echo "$as_me: program exited with status $ac_status" >&5
5071
echo "$as_me: failed program was:" >&5
5072
sed 's/^/| /' conftest.$ac_ext >&5
5073
 
5074
( exit $ac_status )
5075
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5076
See \`config.log' for more details." >&5
5077
echo "$as_me: error: cannot compute sizeof (long), 77
5078
See \`config.log' for more details." >&2;}
5079
   { (exit 1); exit 1; }; }
5080
fi
5081
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082
fi
5083
fi
5084
rm -f conftest.val
5085
else
5086
  ac_cv_sizeof_long=0
5087
fi
5088
fi
5089
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5090
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5091
cat >>confdefs.h <<_ACEOF
5092
#define SIZEOF_LONG $ac_cv_sizeof_long
5093
_ACEOF
5094
 
5095
 
5096
echo "$as_me:$LINENO: checking for long long" >&5
5097
echo $ECHO_N "checking for long long... $ECHO_C" >&6
5098
if test "${ac_cv_type_long_long+set}" = set; then
5099
  echo $ECHO_N "(cached) $ECHO_C" >&6
5100
else
5101
  cat >conftest.$ac_ext <<_ACEOF
5102
/* confdefs.h.  */
5103
_ACEOF
5104
cat confdefs.h >>conftest.$ac_ext
5105
cat >>conftest.$ac_ext <<_ACEOF
5106
/* end confdefs.h.  */
5107
$ac_includes_default
5108
int
5109
main ()
5110
{
5111
if ((long long *) 0)
5112
  return 0;
5113
if (sizeof (long long))
5114
  return 0;
5115
  ;
5116
  return 0;
5117
}
5118
_ACEOF
5119
rm -f conftest.$ac_objext
5120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121
  (eval $ac_compile) 2>conftest.er1
5122
  ac_status=$?
5123
  grep -v '^ *+' conftest.er1 >conftest.err
5124
  rm -f conftest.er1
5125
  cat conftest.err >&5
5126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127
  (exit $ac_status); } &&
5128
         { ac_try='test -z "$ac_c_werror_flag"
5129
                         || test ! -s conftest.err'
5130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131
  (eval $ac_try) 2>&5
5132
  ac_status=$?
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134
  (exit $ac_status); }; } &&
5135
         { ac_try='test -s conftest.$ac_objext'
5136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137
  (eval $ac_try) 2>&5
5138
  ac_status=$?
5139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140
  (exit $ac_status); }; }; then
5141
  ac_cv_type_long_long=yes
5142
else
5143
  echo "$as_me: failed program was:" >&5
5144
sed 's/^/| /' conftest.$ac_ext >&5
5145
 
5146
ac_cv_type_long_long=no
5147
fi
5148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149
fi
5150
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5151
echo "${ECHO_T}$ac_cv_type_long_long" >&6
5152
if test $ac_cv_type_long_long = yes; then
5153
 
5154
cat >>confdefs.h <<_ACEOF
5155
#define HAVE_LONG_LONG 1
5156
_ACEOF
5157
 
5158
echo "$as_me:$LINENO: checking for long long" >&5
5159
echo $ECHO_N "checking for long long... $ECHO_C" >&6
5160
if test "${ac_cv_type_long_long+set}" = set; then
5161
  echo $ECHO_N "(cached) $ECHO_C" >&6
5162
else
5163
  cat >conftest.$ac_ext <<_ACEOF
5164
/* confdefs.h.  */
5165
_ACEOF
5166
cat confdefs.h >>conftest.$ac_ext
5167
cat >>conftest.$ac_ext <<_ACEOF
5168
/* end confdefs.h.  */
5169
$ac_includes_default
5170
int
5171
main ()
5172
{
5173
if ((long long *) 0)
5174
  return 0;
5175
if (sizeof (long long))
5176
  return 0;
5177
  ;
5178
  return 0;
5179
}
5180
_ACEOF
5181
rm -f conftest.$ac_objext
5182
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183
  (eval $ac_compile) 2>conftest.er1
5184
  ac_status=$?
5185
  grep -v '^ *+' conftest.er1 >conftest.err
5186
  rm -f conftest.er1
5187
  cat conftest.err >&5
5188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189
  (exit $ac_status); } &&
5190
         { ac_try='test -z "$ac_c_werror_flag"
5191
                         || test ! -s conftest.err'
5192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193
  (eval $ac_try) 2>&5
5194
  ac_status=$?
5195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196
  (exit $ac_status); }; } &&
5197
         { ac_try='test -s conftest.$ac_objext'
5198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199
  (eval $ac_try) 2>&5
5200
  ac_status=$?
5201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
  (exit $ac_status); }; }; then
5203
  ac_cv_type_long_long=yes
5204
else
5205
  echo "$as_me: failed program was:" >&5
5206
sed 's/^/| /' conftest.$ac_ext >&5
5207
 
5208
ac_cv_type_long_long=no
5209
fi
5210
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5211
fi
5212
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5213
echo "${ECHO_T}$ac_cv_type_long_long" >&6
5214
 
5215
echo "$as_me:$LINENO: checking size of long long" >&5
5216
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5217
if test "${ac_cv_sizeof_long_long+set}" = set; then
5218
  echo $ECHO_N "(cached) $ECHO_C" >&6
5219
else
5220
  if test "$ac_cv_type_long_long" = yes; then
5221
  # The cast to unsigned long works around a bug in the HP C Compiler
5222
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5223
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5224
  # This bug is HP SR number 8606223364.
5225
  if test "$cross_compiling" = yes; then
5226
  # Depending upon the size, compute the lo and hi bounds.
5227
cat >conftest.$ac_ext <<_ACEOF
5228
/* confdefs.h.  */
5229
_ACEOF
5230
cat confdefs.h >>conftest.$ac_ext
5231
cat >>conftest.$ac_ext <<_ACEOF
5232
/* end confdefs.h.  */
5233
$ac_includes_default
5234
int
5235
main ()
5236
{
5237
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5238
test_array [0] = 0
5239
 
5240
  ;
5241
  return 0;
5242
}
5243
_ACEOF
5244
rm -f conftest.$ac_objext
5245
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246
  (eval $ac_compile) 2>conftest.er1
5247
  ac_status=$?
5248
  grep -v '^ *+' conftest.er1 >conftest.err
5249
  rm -f conftest.er1
5250
  cat conftest.err >&5
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252
  (exit $ac_status); } &&
5253
         { ac_try='test -z "$ac_c_werror_flag"
5254
                         || test ! -s conftest.err'
5255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256
  (eval $ac_try) 2>&5
5257
  ac_status=$?
5258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259
  (exit $ac_status); }; } &&
5260
         { ac_try='test -s conftest.$ac_objext'
5261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262
  (eval $ac_try) 2>&5
5263
  ac_status=$?
5264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265
  (exit $ac_status); }; }; then
5266
  ac_lo=0 ac_mid=0
5267
  while :; do
5268
    cat >conftest.$ac_ext <<_ACEOF
5269
/* confdefs.h.  */
5270
_ACEOF
5271
cat confdefs.h >>conftest.$ac_ext
5272
cat >>conftest.$ac_ext <<_ACEOF
5273
/* end confdefs.h.  */
5274
$ac_includes_default
5275
int
5276
main ()
5277
{
5278
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5279
test_array [0] = 0
5280
 
5281
  ;
5282
  return 0;
5283
}
5284
_ACEOF
5285
rm -f conftest.$ac_objext
5286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287
  (eval $ac_compile) 2>conftest.er1
5288
  ac_status=$?
5289
  grep -v '^ *+' conftest.er1 >conftest.err
5290
  rm -f conftest.er1
5291
  cat conftest.err >&5
5292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293
  (exit $ac_status); } &&
5294
         { ac_try='test -z "$ac_c_werror_flag"
5295
                         || test ! -s conftest.err'
5296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297
  (eval $ac_try) 2>&5
5298
  ac_status=$?
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
  (exit $ac_status); }; } &&
5301
         { ac_try='test -s conftest.$ac_objext'
5302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303
  (eval $ac_try) 2>&5
5304
  ac_status=$?
5305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306
  (exit $ac_status); }; }; then
5307
  ac_hi=$ac_mid; break
5308
else
5309
  echo "$as_me: failed program was:" >&5
5310
sed 's/^/| /' conftest.$ac_ext >&5
5311
 
5312
ac_lo=`expr $ac_mid + 1`
5313
                    if test $ac_lo -le $ac_mid; then
5314
                      ac_lo= ac_hi=
5315
                      break
5316
                    fi
5317
                    ac_mid=`expr 2 '*' $ac_mid + 1`
5318
fi
5319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320
  done
5321
else
5322
  echo "$as_me: failed program was:" >&5
5323
sed 's/^/| /' conftest.$ac_ext >&5
5324
 
5325
cat >conftest.$ac_ext <<_ACEOF
5326
/* confdefs.h.  */
5327
_ACEOF
5328
cat confdefs.h >>conftest.$ac_ext
5329
cat >>conftest.$ac_ext <<_ACEOF
5330
/* end confdefs.h.  */
5331
$ac_includes_default
5332
int
5333
main ()
5334
{
5335
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5336
test_array [0] = 0
5337
 
5338
  ;
5339
  return 0;
5340
}
5341
_ACEOF
5342
rm -f conftest.$ac_objext
5343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344
  (eval $ac_compile) 2>conftest.er1
5345
  ac_status=$?
5346
  grep -v '^ *+' conftest.er1 >conftest.err
5347
  rm -f conftest.er1
5348
  cat conftest.err >&5
5349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350
  (exit $ac_status); } &&
5351
         { ac_try='test -z "$ac_c_werror_flag"
5352
                         || test ! -s conftest.err'
5353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354
  (eval $ac_try) 2>&5
5355
  ac_status=$?
5356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
  (exit $ac_status); }; } &&
5358
         { ac_try='test -s conftest.$ac_objext'
5359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360
  (eval $ac_try) 2>&5
5361
  ac_status=$?
5362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
  (exit $ac_status); }; }; then
5364
  ac_hi=-1 ac_mid=-1
5365
  while :; do
5366
    cat >conftest.$ac_ext <<_ACEOF
5367
/* confdefs.h.  */
5368
_ACEOF
5369
cat confdefs.h >>conftest.$ac_ext
5370
cat >>conftest.$ac_ext <<_ACEOF
5371
/* end confdefs.h.  */
5372
$ac_includes_default
5373
int
5374
main ()
5375
{
5376
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5377
test_array [0] = 0
5378
 
5379
  ;
5380
  return 0;
5381
}
5382
_ACEOF
5383
rm -f conftest.$ac_objext
5384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385
  (eval $ac_compile) 2>conftest.er1
5386
  ac_status=$?
5387
  grep -v '^ *+' conftest.er1 >conftest.err
5388
  rm -f conftest.er1
5389
  cat conftest.err >&5
5390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391
  (exit $ac_status); } &&
5392
         { ac_try='test -z "$ac_c_werror_flag"
5393
                         || test ! -s conftest.err'
5394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395
  (eval $ac_try) 2>&5
5396
  ac_status=$?
5397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
  (exit $ac_status); }; } &&
5399
         { ac_try='test -s conftest.$ac_objext'
5400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401
  (eval $ac_try) 2>&5
5402
  ac_status=$?
5403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404
  (exit $ac_status); }; }; then
5405
  ac_lo=$ac_mid; break
5406
else
5407
  echo "$as_me: failed program was:" >&5
5408
sed 's/^/| /' conftest.$ac_ext >&5
5409
 
5410
ac_hi=`expr '(' $ac_mid ')' - 1`
5411
                       if test $ac_mid -le $ac_hi; then
5412
                         ac_lo= ac_hi=
5413
                         break
5414
                       fi
5415
                       ac_mid=`expr 2 '*' $ac_mid`
5416
fi
5417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418
  done
5419
else
5420
  echo "$as_me: failed program was:" >&5
5421
sed 's/^/| /' conftest.$ac_ext >&5
5422
 
5423
ac_lo= ac_hi=
5424
fi
5425
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426
fi
5427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428
# Binary search between lo and hi bounds.
5429
while test "x$ac_lo" != "x$ac_hi"; do
5430
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5431
  cat >conftest.$ac_ext <<_ACEOF
5432
/* confdefs.h.  */
5433
_ACEOF
5434
cat confdefs.h >>conftest.$ac_ext
5435
cat >>conftest.$ac_ext <<_ACEOF
5436
/* end confdefs.h.  */
5437
$ac_includes_default
5438
int
5439
main ()
5440
{
5441
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5442
test_array [0] = 0
5443
 
5444
  ;
5445
  return 0;
5446
}
5447
_ACEOF
5448
rm -f conftest.$ac_objext
5449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450
  (eval $ac_compile) 2>conftest.er1
5451
  ac_status=$?
5452
  grep -v '^ *+' conftest.er1 >conftest.err
5453
  rm -f conftest.er1
5454
  cat conftest.err >&5
5455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456
  (exit $ac_status); } &&
5457
         { ac_try='test -z "$ac_c_werror_flag"
5458
                         || test ! -s conftest.err'
5459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460
  (eval $ac_try) 2>&5
5461
  ac_status=$?
5462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463
  (exit $ac_status); }; } &&
5464
         { ac_try='test -s conftest.$ac_objext'
5465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466
  (eval $ac_try) 2>&5
5467
  ac_status=$?
5468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469
  (exit $ac_status); }; }; then
5470
  ac_hi=$ac_mid
5471
else
5472
  echo "$as_me: failed program was:" >&5
5473
sed 's/^/| /' conftest.$ac_ext >&5
5474
 
5475
ac_lo=`expr '(' $ac_mid ')' + 1`
5476
fi
5477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5478
done
5479
case $ac_lo in
5480
?*) ac_cv_sizeof_long_long=$ac_lo;;
5481
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5482
See \`config.log' for more details." >&5
5483
echo "$as_me: error: cannot compute sizeof (long long), 77
5484
See \`config.log' for more details." >&2;}
5485
   { (exit 1); exit 1; }; } ;;
5486
esac
5487
else
5488
  if test "$cross_compiling" = yes; then
5489
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5490
See \`config.log' for more details." >&5
5491
echo "$as_me: error: cannot run test program while cross compiling
5492
See \`config.log' for more details." >&2;}
5493
   { (exit 1); exit 1; }; }
5494
else
5495
  cat >conftest.$ac_ext <<_ACEOF
5496
/* confdefs.h.  */
5497
_ACEOF
5498
cat confdefs.h >>conftest.$ac_ext
5499
cat >>conftest.$ac_ext <<_ACEOF
5500
/* end confdefs.h.  */
5501
$ac_includes_default
5502
long longval () { return (long) (sizeof (long long)); }
5503
unsigned long ulongval () { return (long) (sizeof (long long)); }
5504
#include 
5505
#include 
5506
int
5507
main ()
5508
{
5509
 
5510
  FILE *f = fopen ("conftest.val", "w");
5511
  if (! f)
5512
    exit (1);
5513
  if (((long) (sizeof (long long))) < 0)
5514
    {
5515
      long i = longval ();
5516
      if (i != ((long) (sizeof (long long))))
5517
        exit (1);
5518
      fprintf (f, "%ld\n", i);
5519
    }
5520
  else
5521
    {
5522
      unsigned long i = ulongval ();
5523
      if (i != ((long) (sizeof (long long))))
5524
        exit (1);
5525
      fprintf (f, "%lu\n", i);
5526
    }
5527
  exit (ferror (f) || fclose (f) != 0);
5528
 
5529
  ;
5530
  return 0;
5531
}
5532
_ACEOF
5533
rm -f conftest$ac_exeext
5534
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535
  (eval $ac_link) 2>&5
5536
  ac_status=$?
5537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540
  (eval $ac_try) 2>&5
5541
  ac_status=$?
5542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543
  (exit $ac_status); }; }; then
5544
  ac_cv_sizeof_long_long=`cat conftest.val`
5545
else
5546
  echo "$as_me: program exited with status $ac_status" >&5
5547
echo "$as_me: failed program was:" >&5
5548
sed 's/^/| /' conftest.$ac_ext >&5
5549
 
5550
( exit $ac_status )
5551
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5552
See \`config.log' for more details." >&5
5553
echo "$as_me: error: cannot compute sizeof (long long), 77
5554
See \`config.log' for more details." >&2;}
5555
   { (exit 1); exit 1; }; }
5556
fi
5557
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558
fi
5559
fi
5560
rm -f conftest.val
5561
else
5562
  ac_cv_sizeof_long_long=0
5563
fi
5564
fi
5565
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5566
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5567
cat >>confdefs.h <<_ACEOF
5568
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5569
_ACEOF
5570
 
5571
 
5572
fi
5573
 
5574
echo "$as_me:$LINENO: checking for __int64" >&5
5575
echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5576
if test "${ac_cv_type___int64+set}" = set; then
5577
  echo $ECHO_N "(cached) $ECHO_C" >&6
5578
else
5579
  cat >conftest.$ac_ext <<_ACEOF
5580
/* confdefs.h.  */
5581
_ACEOF
5582
cat confdefs.h >>conftest.$ac_ext
5583
cat >>conftest.$ac_ext <<_ACEOF
5584
/* end confdefs.h.  */
5585
$ac_includes_default
5586
int
5587
main ()
5588
{
5589
if ((__int64 *) 0)
5590
  return 0;
5591
if (sizeof (__int64))
5592
  return 0;
5593
  ;
5594
  return 0;
5595
}
5596
_ACEOF
5597
rm -f conftest.$ac_objext
5598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599
  (eval $ac_compile) 2>conftest.er1
5600
  ac_status=$?
5601
  grep -v '^ *+' conftest.er1 >conftest.err
5602
  rm -f conftest.er1
5603
  cat conftest.err >&5
5604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605
  (exit $ac_status); } &&
5606
         { ac_try='test -z "$ac_c_werror_flag"
5607
                         || test ! -s conftest.err'
5608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609
  (eval $ac_try) 2>&5
5610
  ac_status=$?
5611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612
  (exit $ac_status); }; } &&
5613
         { ac_try='test -s conftest.$ac_objext'
5614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615
  (eval $ac_try) 2>&5
5616
  ac_status=$?
5617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618
  (exit $ac_status); }; }; then
5619
  ac_cv_type___int64=yes
5620
else
5621
  echo "$as_me: failed program was:" >&5
5622
sed 's/^/| /' conftest.$ac_ext >&5
5623
 
5624
ac_cv_type___int64=no
5625
fi
5626
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627
fi
5628
echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5629
echo "${ECHO_T}$ac_cv_type___int64" >&6
5630
if test $ac_cv_type___int64 = yes; then
5631
 
5632
cat >>confdefs.h <<_ACEOF
5633
#define HAVE___INT64 1
5634
_ACEOF
5635
 
5636
echo "$as_me:$LINENO: checking for __int64" >&5
5637
echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5638
if test "${ac_cv_type___int64+set}" = set; then
5639
  echo $ECHO_N "(cached) $ECHO_C" >&6
5640
else
5641
  cat >conftest.$ac_ext <<_ACEOF
5642
/* confdefs.h.  */
5643
_ACEOF
5644
cat confdefs.h >>conftest.$ac_ext
5645
cat >>conftest.$ac_ext <<_ACEOF
5646
/* end confdefs.h.  */
5647
$ac_includes_default
5648
int
5649
main ()
5650
{
5651
if ((__int64 *) 0)
5652
  return 0;
5653
if (sizeof (__int64))
5654
  return 0;
5655
  ;
5656
  return 0;
5657
}
5658
_ACEOF
5659
rm -f conftest.$ac_objext
5660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661
  (eval $ac_compile) 2>conftest.er1
5662
  ac_status=$?
5663
  grep -v '^ *+' conftest.er1 >conftest.err
5664
  rm -f conftest.er1
5665
  cat conftest.err >&5
5666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667
  (exit $ac_status); } &&
5668
         { ac_try='test -z "$ac_c_werror_flag"
5669
                         || test ! -s conftest.err'
5670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671
  (eval $ac_try) 2>&5
5672
  ac_status=$?
5673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674
  (exit $ac_status); }; } &&
5675
         { ac_try='test -s conftest.$ac_objext'
5676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677
  (eval $ac_try) 2>&5
5678
  ac_status=$?
5679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680
  (exit $ac_status); }; }; then
5681
  ac_cv_type___int64=yes
5682
else
5683
  echo "$as_me: failed program was:" >&5
5684
sed 's/^/| /' conftest.$ac_ext >&5
5685
 
5686
ac_cv_type___int64=no
5687
fi
5688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5689
fi
5690
echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5691
echo "${ECHO_T}$ac_cv_type___int64" >&6
5692
 
5693
echo "$as_me:$LINENO: checking size of __int64" >&5
5694
echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5695
if test "${ac_cv_sizeof___int64+set}" = set; then
5696
  echo $ECHO_N "(cached) $ECHO_C" >&6
5697
else
5698
  if test "$ac_cv_type___int64" = yes; then
5699
  # The cast to unsigned long works around a bug in the HP C Compiler
5700
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702
  # This bug is HP SR number 8606223364.
5703
  if test "$cross_compiling" = yes; then
5704
  # Depending upon the size, compute the lo and hi bounds.
5705
cat >conftest.$ac_ext <<_ACEOF
5706
/* confdefs.h.  */
5707
_ACEOF
5708
cat confdefs.h >>conftest.$ac_ext
5709
cat >>conftest.$ac_ext <<_ACEOF
5710
/* end confdefs.h.  */
5711
$ac_includes_default
5712
int
5713
main ()
5714
{
5715
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5716
test_array [0] = 0
5717
 
5718
  ;
5719
  return 0;
5720
}
5721
_ACEOF
5722
rm -f conftest.$ac_objext
5723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724
  (eval $ac_compile) 2>conftest.er1
5725
  ac_status=$?
5726
  grep -v '^ *+' conftest.er1 >conftest.err
5727
  rm -f conftest.er1
5728
  cat conftest.err >&5
5729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730
  (exit $ac_status); } &&
5731
         { ac_try='test -z "$ac_c_werror_flag"
5732
                         || test ! -s conftest.err'
5733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734
  (eval $ac_try) 2>&5
5735
  ac_status=$?
5736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
  (exit $ac_status); }; } &&
5738
         { ac_try='test -s conftest.$ac_objext'
5739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740
  (eval $ac_try) 2>&5
5741
  ac_status=$?
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
  (exit $ac_status); }; }; then
5744
  ac_lo=0 ac_mid=0
5745
  while :; do
5746
    cat >conftest.$ac_ext <<_ACEOF
5747
/* confdefs.h.  */
5748
_ACEOF
5749
cat confdefs.h >>conftest.$ac_ext
5750
cat >>conftest.$ac_ext <<_ACEOF
5751
/* end confdefs.h.  */
5752
$ac_includes_default
5753
int
5754
main ()
5755
{
5756
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5757
test_array [0] = 0
5758
 
5759
  ;
5760
  return 0;
5761
}
5762
_ACEOF
5763
rm -f conftest.$ac_objext
5764
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765
  (eval $ac_compile) 2>conftest.er1
5766
  ac_status=$?
5767
  grep -v '^ *+' conftest.er1 >conftest.err
5768
  rm -f conftest.er1
5769
  cat conftest.err >&5
5770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771
  (exit $ac_status); } &&
5772
         { ac_try='test -z "$ac_c_werror_flag"
5773
                         || test ! -s conftest.err'
5774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775
  (eval $ac_try) 2>&5
5776
  ac_status=$?
5777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778
  (exit $ac_status); }; } &&
5779
         { ac_try='test -s conftest.$ac_objext'
5780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781
  (eval $ac_try) 2>&5
5782
  ac_status=$?
5783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
  (exit $ac_status); }; }; then
5785
  ac_hi=$ac_mid; break
5786
else
5787
  echo "$as_me: failed program was:" >&5
5788
sed 's/^/| /' conftest.$ac_ext >&5
5789
 
5790
ac_lo=`expr $ac_mid + 1`
5791
                    if test $ac_lo -le $ac_mid; then
5792
                      ac_lo= ac_hi=
5793
                      break
5794
                    fi
5795
                    ac_mid=`expr 2 '*' $ac_mid + 1`
5796
fi
5797
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798
  done
5799
else
5800
  echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5802
 
5803
cat >conftest.$ac_ext <<_ACEOF
5804
/* confdefs.h.  */
5805
_ACEOF
5806
cat confdefs.h >>conftest.$ac_ext
5807
cat >>conftest.$ac_ext <<_ACEOF
5808
/* end confdefs.h.  */
5809
$ac_includes_default
5810
int
5811
main ()
5812
{
5813
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5814
test_array [0] = 0
5815
 
5816
  ;
5817
  return 0;
5818
}
5819
_ACEOF
5820
rm -f conftest.$ac_objext
5821
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822
  (eval $ac_compile) 2>conftest.er1
5823
  ac_status=$?
5824
  grep -v '^ *+' conftest.er1 >conftest.err
5825
  rm -f conftest.er1
5826
  cat conftest.err >&5
5827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828
  (exit $ac_status); } &&
5829
         { ac_try='test -z "$ac_c_werror_flag"
5830
                         || test ! -s conftest.err'
5831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832
  (eval $ac_try) 2>&5
5833
  ac_status=$?
5834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835
  (exit $ac_status); }; } &&
5836
         { ac_try='test -s conftest.$ac_objext'
5837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838
  (eval $ac_try) 2>&5
5839
  ac_status=$?
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
  (exit $ac_status); }; }; then
5842
  ac_hi=-1 ac_mid=-1
5843
  while :; do
5844
    cat >conftest.$ac_ext <<_ACEOF
5845
/* confdefs.h.  */
5846
_ACEOF
5847
cat confdefs.h >>conftest.$ac_ext
5848
cat >>conftest.$ac_ext <<_ACEOF
5849
/* end confdefs.h.  */
5850
$ac_includes_default
5851
int
5852
main ()
5853
{
5854
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5855
test_array [0] = 0
5856
 
5857
  ;
5858
  return 0;
5859
}
5860
_ACEOF
5861
rm -f conftest.$ac_objext
5862
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863
  (eval $ac_compile) 2>conftest.er1
5864
  ac_status=$?
5865
  grep -v '^ *+' conftest.er1 >conftest.err
5866
  rm -f conftest.er1
5867
  cat conftest.err >&5
5868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869
  (exit $ac_status); } &&
5870
         { ac_try='test -z "$ac_c_werror_flag"
5871
                         || test ! -s conftest.err'
5872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873
  (eval $ac_try) 2>&5
5874
  ac_status=$?
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876
  (exit $ac_status); }; } &&
5877
         { ac_try='test -s conftest.$ac_objext'
5878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879
  (eval $ac_try) 2>&5
5880
  ac_status=$?
5881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882
  (exit $ac_status); }; }; then
5883
  ac_lo=$ac_mid; break
5884
else
5885
  echo "$as_me: failed program was:" >&5
5886
sed 's/^/| /' conftest.$ac_ext >&5
5887
 
5888
ac_hi=`expr '(' $ac_mid ')' - 1`
5889
                       if test $ac_mid -le $ac_hi; then
5890
                         ac_lo= ac_hi=
5891
                         break
5892
                       fi
5893
                       ac_mid=`expr 2 '*' $ac_mid`
5894
fi
5895
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896
  done
5897
else
5898
  echo "$as_me: failed program was:" >&5
5899
sed 's/^/| /' conftest.$ac_ext >&5
5900
 
5901
ac_lo= ac_hi=
5902
fi
5903
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904
fi
5905
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906
# Binary search between lo and hi bounds.
5907
while test "x$ac_lo" != "x$ac_hi"; do
5908
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5909
  cat >conftest.$ac_ext <<_ACEOF
5910
/* confdefs.h.  */
5911
_ACEOF
5912
cat confdefs.h >>conftest.$ac_ext
5913
cat >>conftest.$ac_ext <<_ACEOF
5914
/* end confdefs.h.  */
5915
$ac_includes_default
5916
int
5917
main ()
5918
{
5919
static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5920
test_array [0] = 0
5921
 
5922
  ;
5923
  return 0;
5924
}
5925
_ACEOF
5926
rm -f conftest.$ac_objext
5927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928
  (eval $ac_compile) 2>conftest.er1
5929
  ac_status=$?
5930
  grep -v '^ *+' conftest.er1 >conftest.err
5931
  rm -f conftest.er1
5932
  cat conftest.err >&5
5933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934
  (exit $ac_status); } &&
5935
         { ac_try='test -z "$ac_c_werror_flag"
5936
                         || test ! -s conftest.err'
5937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938
  (eval $ac_try) 2>&5
5939
  ac_status=$?
5940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
  (exit $ac_status); }; } &&
5942
         { ac_try='test -s conftest.$ac_objext'
5943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944
  (eval $ac_try) 2>&5
5945
  ac_status=$?
5946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947
  (exit $ac_status); }; }; then
5948
  ac_hi=$ac_mid
5949
else
5950
  echo "$as_me: failed program was:" >&5
5951
sed 's/^/| /' conftest.$ac_ext >&5
5952
 
5953
ac_lo=`expr '(' $ac_mid ')' + 1`
5954
fi
5955
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956
done
5957
case $ac_lo in
5958
?*) ac_cv_sizeof___int64=$ac_lo;;
5959
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5960
See \`config.log' for more details." >&5
5961
echo "$as_me: error: cannot compute sizeof (__int64), 77
5962
See \`config.log' for more details." >&2;}
5963
   { (exit 1); exit 1; }; } ;;
5964
esac
5965
else
5966
  if test "$cross_compiling" = yes; then
5967
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5968
See \`config.log' for more details." >&5
5969
echo "$as_me: error: cannot run test program while cross compiling
5970
See \`config.log' for more details." >&2;}
5971
   { (exit 1); exit 1; }; }
5972
else
5973
  cat >conftest.$ac_ext <<_ACEOF
5974
/* confdefs.h.  */
5975
_ACEOF
5976
cat confdefs.h >>conftest.$ac_ext
5977
cat >>conftest.$ac_ext <<_ACEOF
5978
/* end confdefs.h.  */
5979
$ac_includes_default
5980
long longval () { return (long) (sizeof (__int64)); }
5981
unsigned long ulongval () { return (long) (sizeof (__int64)); }
5982
#include 
5983
#include 
5984
int
5985
main ()
5986
{
5987
 
5988
  FILE *f = fopen ("conftest.val", "w");
5989
  if (! f)
5990
    exit (1);
5991
  if (((long) (sizeof (__int64))) < 0)
5992
    {
5993
      long i = longval ();
5994
      if (i != ((long) (sizeof (__int64))))
5995
        exit (1);
5996
      fprintf (f, "%ld\n", i);
5997
    }
5998
  else
5999
    {
6000
      unsigned long i = ulongval ();
6001
      if (i != ((long) (sizeof (__int64))))
6002
        exit (1);
6003
      fprintf (f, "%lu\n", i);
6004
    }
6005
  exit (ferror (f) || fclose (f) != 0);
6006
 
6007
  ;
6008
  return 0;
6009
}
6010
_ACEOF
6011
rm -f conftest$ac_exeext
6012
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013
  (eval $ac_link) 2>&5
6014
  ac_status=$?
6015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018
  (eval $ac_try) 2>&5
6019
  ac_status=$?
6020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021
  (exit $ac_status); }; }; then
6022
  ac_cv_sizeof___int64=`cat conftest.val`
6023
else
6024
  echo "$as_me: program exited with status $ac_status" >&5
6025
echo "$as_me: failed program was:" >&5
6026
sed 's/^/| /' conftest.$ac_ext >&5
6027
 
6028
( exit $ac_status )
6029
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6030
See \`config.log' for more details." >&5
6031
echo "$as_me: error: cannot compute sizeof (__int64), 77
6032
See \`config.log' for more details." >&2;}
6033
   { (exit 1); exit 1; }; }
6034
fi
6035
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6036
fi
6037
fi
6038
rm -f conftest.val
6039
else
6040
  ac_cv_sizeof___int64=0
6041
fi
6042
fi
6043
echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6044
echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6045
cat >>confdefs.h <<_ACEOF
6046
#define SIZEOF___INT64 $ac_cv_sizeof___int64
6047
_ACEOF
6048
 
6049
 
6050
fi
6051
 
6052
 
6053
# ---------------------
6054
# Warnings and checking
6055
# ---------------------
6056
 
6057
# Check $CC warning features (if it's GCC).
6058
# We want to use -pedantic, but we don't want warnings about
6059
# * 'long long'
6060
# * variadic macros
6061
# So, we only use -pedantic if we can disable those warnings.
6062
 
6063
echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6064
echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6065
if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6066
  echo $ECHO_N "(cached) $ECHO_C" >&6
6067
else
6068
  save_CFLAGS="$CFLAGS"
6069
  CFLAGS="-Wno-long-long"
6070
  cat >conftest.$ac_ext <<_ACEOF
6071
/* confdefs.h.  */
6072
_ACEOF
6073
cat confdefs.h >>conftest.$ac_ext
6074
cat >>conftest.$ac_ext <<_ACEOF
6075
/* end confdefs.h.  */
6076
 
6077
_ACEOF
6078
rm -f conftest.$ac_objext
6079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080
  (eval $ac_compile) 2>conftest.er1
6081
  ac_status=$?
6082
  grep -v '^ *+' conftest.er1 >conftest.err
6083
  rm -f conftest.er1
6084
  cat conftest.err >&5
6085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086
  (exit $ac_status); } &&
6087
         { ac_try='test -z "$ac_c_werror_flag"
6088
                         || test ! -s conftest.err'
6089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090
  (eval $ac_try) 2>&5
6091
  ac_status=$?
6092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
  (exit $ac_status); }; } &&
6094
         { ac_try='test -s conftest.$ac_objext'
6095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096
  (eval $ac_try) 2>&5
6097
  ac_status=$?
6098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099
  (exit $ac_status); }; }; then
6100
  ac_cv_prog_cc_w_no_long_long=yes
6101
else
6102
  echo "$as_me: failed program was:" >&5
6103
sed 's/^/| /' conftest.$ac_ext >&5
6104
 
6105
ac_cv_prog_cc_w_no_long_long=no
6106
fi
6107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6108
  CFLAGS="$save_CFLAGS"
6109
 
6110
fi
6111
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6112
echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6113
 
6114
echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6115
echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6116
if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6117
  echo $ECHO_N "(cached) $ECHO_C" >&6
6118
else
6119
  save_CFLAGS="$CFLAGS"
6120
  CFLAGS="-Wno-variadic-macros"
6121
  cat >conftest.$ac_ext <<_ACEOF
6122
/* confdefs.h.  */
6123
_ACEOF
6124
cat confdefs.h >>conftest.$ac_ext
6125
cat >>conftest.$ac_ext <<_ACEOF
6126
/* end confdefs.h.  */
6127
 
6128
_ACEOF
6129
rm -f conftest.$ac_objext
6130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131
  (eval $ac_compile) 2>conftest.er1
6132
  ac_status=$?
6133
  grep -v '^ *+' conftest.er1 >conftest.err
6134
  rm -f conftest.er1
6135
  cat conftest.err >&5
6136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137
  (exit $ac_status); } &&
6138
         { ac_try='test -z "$ac_c_werror_flag"
6139
                         || test ! -s conftest.err'
6140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141
  (eval $ac_try) 2>&5
6142
  ac_status=$?
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
  (exit $ac_status); }; } &&
6145
         { ac_try='test -s conftest.$ac_objext'
6146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147
  (eval $ac_try) 2>&5
6148
  ac_status=$?
6149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150
  (exit $ac_status); }; }; then
6151
  ac_cv_prog_cc_w_no_variadic_macros=yes
6152
else
6153
  echo "$as_me: failed program was:" >&5
6154
sed 's/^/| /' conftest.$ac_ext >&5
6155
 
6156
ac_cv_prog_cc_w_no_variadic_macros=no
6157
fi
6158
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159
  CFLAGS="$save_CFLAGS"
6160
 
6161
fi
6162
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6163
echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6164
 
6165
strict1_warn=
6166
if test $ac_cv_prog_cc_w_no_long_long = yes \
6167
   && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6168
  strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6169
fi
6170
 
6171
# Add -Wold-style-definition if it's accepted
6172
echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6173
echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6174
if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
6176
else
6177
  save_CFLAGS="$CFLAGS"
6178
  CFLAGS="-Wold-style-definition"
6179
  cat >conftest.$ac_ext <<_ACEOF
6180
/* confdefs.h.  */
6181
_ACEOF
6182
cat confdefs.h >>conftest.$ac_ext
6183
cat >>conftest.$ac_ext <<_ACEOF
6184
/* end confdefs.h.  */
6185
 
6186
_ACEOF
6187
rm -f conftest.$ac_objext
6188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189
  (eval $ac_compile) 2>conftest.er1
6190
  ac_status=$?
6191
  grep -v '^ *+' conftest.er1 >conftest.err
6192
  rm -f conftest.er1
6193
  cat conftest.err >&5
6194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195
  (exit $ac_status); } &&
6196
         { ac_try='test -z "$ac_c_werror_flag"
6197
                         || test ! -s conftest.err'
6198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199
  (eval $ac_try) 2>&5
6200
  ac_status=$?
6201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202
  (exit $ac_status); }; } &&
6203
         { ac_try='test -s conftest.$ac_objext'
6204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205
  (eval $ac_try) 2>&5
6206
  ac_status=$?
6207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208
  (exit $ac_status); }; }; then
6209
  ac_cv_prog_cc_w_old_style_definition=yes
6210
else
6211
  echo "$as_me: failed program was:" >&5
6212
sed 's/^/| /' conftest.$ac_ext >&5
6213
 
6214
ac_cv_prog_cc_w_old_style_definition=no
6215
fi
6216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217
  CFLAGS="$save_CFLAGS"
6218
 
6219
fi
6220
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6221
echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6222
if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6223
  strict1_warn="${strict1_warn} -Wold-style-definition"
6224
fi
6225
 
6226
# Add -Wmissing-format-attribute if it's accepted
6227
echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6228
echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6229
if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6230
  echo $ECHO_N "(cached) $ECHO_C" >&6
6231
else
6232
  save_CFLAGS="$CFLAGS"
6233
  CFLAGS="-Wmissing-format-attribute"
6234
  cat >conftest.$ac_ext <<_ACEOF
6235
/* confdefs.h.  */
6236
_ACEOF
6237
cat confdefs.h >>conftest.$ac_ext
6238
cat >>conftest.$ac_ext <<_ACEOF
6239
/* end confdefs.h.  */
6240
 
6241
_ACEOF
6242
rm -f conftest.$ac_objext
6243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244
  (eval $ac_compile) 2>conftest.er1
6245
  ac_status=$?
6246
  grep -v '^ *+' conftest.er1 >conftest.err
6247
  rm -f conftest.er1
6248
  cat conftest.err >&5
6249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250
  (exit $ac_status); } &&
6251
         { ac_try='test -z "$ac_c_werror_flag"
6252
                         || test ! -s conftest.err'
6253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254
  (eval $ac_try) 2>&5
6255
  ac_status=$?
6256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257
  (exit $ac_status); }; } &&
6258
         { ac_try='test -s conftest.$ac_objext'
6259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260
  (eval $ac_try) 2>&5
6261
  ac_status=$?
6262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263
  (exit $ac_status); }; }; then
6264
  ac_cv_prog_cc_w_missing_format_attribute=yes
6265
else
6266
  echo "$as_me: failed program was:" >&5
6267
sed 's/^/| /' conftest.$ac_ext >&5
6268
 
6269
ac_cv_prog_cc_w_missing_format_attribute=no
6270
fi
6271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272
  CFLAGS="$save_CFLAGS"
6273
 
6274
fi
6275
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6276
echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6277
if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6278
  strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6279
fi
6280
 
6281
# Enable -Werror, period.
6282
# Check whether --enable-werror_always or --disable-werror_always was given.
6283
if test "${enable_werror_always+set}" = set; then
6284
  enableval="$enable_werror_always"
6285
 
6286
else
6287
  enable_werror_always=no
6288
fi;
6289
if test x${enable_werror_always} = xyes ; then
6290
  strict1_warn="${strict1_warn} -Werror"
6291
  WERROR=-Werror
6292
fi
6293
 
6294
 
6295
 
6296
# If the native compiler is GCC, we can enable warnings even in stage1.
6297
# That's useful for people building cross-compilers, or just running a
6298
# quick `make'.
6299
warn_cflags=
6300
if test "x$GCC" = "xyes"; then
6301
  warn_cflags='$(GCC_WARN_CFLAGS)'
6302
fi
6303
 
6304
 
6305
# Enable -Werror in bootstrap stage2 and later.
6306
is_release=
6307
if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6308
  is_release=yes
6309
fi
6310
# Check whether --enable-werror or --disable-werror was given.
6311
if test "${enable_werror+set}" = set; then
6312
  enableval="$enable_werror"
6313
 
6314
else
6315
  if test x$is_release = x ; then
6316
  # Default to "yes" on development branches.
6317
  enable_werror=yes
6318
else
6319
  # Default to "no" on release branches.
6320
  enable_werror=no
6321
fi
6322
fi;
6323
if test x$enable_werror = xyes ; then
6324
  WERROR=-Werror
6325
fi
6326
 
6327
 
6328
# Enable expensive internal checks
6329
# Check whether --enable-checking or --disable-checking was given.
6330
if test "${enable_checking+set}" = set; then
6331
  enableval="$enable_checking"
6332
  ac_checking_flags="${enableval}"
6333
else
6334
 
6335
# Determine the default checks.
6336
if test x$is_release = x ; then
6337
  ac_checking_flags=yes
6338
else
6339
  ac_checking_flags=release
6340
fi
6341
fi;
6342
ac_assert_checking=1
6343
ac_checking=
6344
ac_fold_checking=
6345
ac_gc_checking=
6346
ac_gc_always_collect=
6347
ac_rtl_checking=
6348
ac_rtlflag_checking=
6349
ac_runtime_checking=1
6350
ac_tree_checking=
6351
ac_valgrind_checking=
6352
IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6353
for check in $ac_checking_flags
6354
do
6355
        case $check in
6356
        # these set all the flags to specific states
6357
        yes)            ac_assert_checking=1 ; ac_checking=1 ;
6358
                        ac_fold_checking= ; ac_gc_checking=1 ;
6359
                        ac_gc_always_collect= ; ac_rtl_checking= ;
6360
                        ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6361
                        ac_tree_checking=1 ; ac_valgrind_checking= ;;
6362
        no|none)        ac_assert_checking= ; ac_checking= ;
6363
                        ac_fold_checking= ; ac_gc_checking= ;
6364
                        ac_gc_always_collect= ; ac_rtl_checking= ;
6365
                        ac_rtlflag_checking= ; ac_runtime_checking= ;
6366
                        ac_tree_checking= ; ac_valgrind_checking= ;;
6367
        all)            ac_assert_checking=1 ; ac_checking=1 ;
6368
                        ac_fold_checking=1 ; ac_gc_checking=1 ;
6369
                        ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6370
                        ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6371
                        ac_tree_checking=1 ; ac_valgrind_checking= ;;
6372
        release)        ac_assert_checking=1 ; ac_checking= ;
6373
                        ac_fold_checking= ; ac_gc_checking= ;
6374
                        ac_gc_always_collect= ; ac_rtl_checking= ;
6375
                        ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6376
                        ac_tree_checking= ; ac_valgrind_checking= ;;
6377
        # these enable particular checks
6378
        assert)         ac_assert_checking=1 ;;
6379
        fold)           ac_fold_checking=1 ;;
6380
        gc)             ac_gc_checking=1 ;;
6381
        gcac)           ac_gc_always_collect=1 ;;
6382
        misc)           ac_checking=1 ;;
6383
        rtl)            ac_rtl_checking=1 ;;
6384
        rtlflag)        ac_rtlflag_checking=1 ;;
6385
        runtime)        ac_runtime_checking=1 ;;
6386
        tree)           ac_tree_checking=1 ;;
6387
        valgrind)       ac_valgrind_checking=1 ;;
6388
        *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6389
echo "$as_me: error: unknown check category $check" >&2;}
6390
   { (exit 1); exit 1; }; } ;;
6391
        esac
6392
done
6393
IFS="$ac_save_IFS"
6394
 
6395
nocommon_flag=""
6396
if test x$ac_checking != x ; then
6397
 
6398
cat >>confdefs.h <<\_ACEOF
6399
#define ENABLE_CHECKING 1
6400
_ACEOF
6401
 
6402
  nocommon_flag=-fno-common
6403
fi
6404
 
6405
if test x$ac_assert_checking != x ; then
6406
 
6407
cat >>confdefs.h <<\_ACEOF
6408
#define ENABLE_ASSERT_CHECKING 1
6409
_ACEOF
6410
 
6411
fi
6412
 
6413
if test x$ac_runtime_checking != x ; then
6414
 
6415
cat >>confdefs.h <<\_ACEOF
6416
#define ENABLE_RUNTIME_CHECKING 1
6417
_ACEOF
6418
 
6419
fi
6420
if test x$ac_tree_checking != x ; then
6421
 
6422
cat >>confdefs.h <<\_ACEOF
6423
#define ENABLE_TREE_CHECKING 1
6424
_ACEOF
6425
 
6426
  TREEBROWSER=tree-browser.o
6427
fi
6428
 
6429
if test x$ac_rtl_checking != x ; then
6430
 
6431
cat >>confdefs.h <<\_ACEOF
6432
#define ENABLE_RTL_CHECKING 1
6433
_ACEOF
6434
 
6435
fi
6436
if test x$ac_rtlflag_checking != x ; then
6437
 
6438
cat >>confdefs.h <<\_ACEOF
6439
#define ENABLE_RTL_FLAG_CHECKING 1
6440
_ACEOF
6441
 
6442
fi
6443
if test x$ac_gc_checking != x ; then
6444
 
6445
cat >>confdefs.h <<\_ACEOF
6446
#define ENABLE_GC_CHECKING 1
6447
_ACEOF
6448
 
6449
fi
6450
if test x$ac_gc_always_collect != x ; then
6451
 
6452
cat >>confdefs.h <<\_ACEOF
6453
#define ENABLE_GC_ALWAYS_COLLECT 1
6454
_ACEOF
6455
 
6456
fi
6457
if test x$ac_fold_checking != x ; then
6458
 
6459
cat >>confdefs.h <<\_ACEOF
6460
#define ENABLE_FOLD_CHECKING 1
6461
_ACEOF
6462
 
6463
fi
6464
valgrind_path_defines=
6465
valgrind_command=
6466
 
6467
if test "${ac_cv_header_valgrind_h+set}" = set; then
6468
  echo "$as_me:$LINENO: checking for valgrind.h" >&5
6469
echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6470
if test "${ac_cv_header_valgrind_h+set}" = set; then
6471
  echo $ECHO_N "(cached) $ECHO_C" >&6
6472
fi
6473
echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6474
echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6475
else
6476
  # Is the header compilable?
6477
echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6478
echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6479
cat >conftest.$ac_ext <<_ACEOF
6480
/* confdefs.h.  */
6481
_ACEOF
6482
cat confdefs.h >>conftest.$ac_ext
6483
cat >>conftest.$ac_ext <<_ACEOF
6484
/* end confdefs.h.  */
6485
$ac_includes_default
6486
#include 
6487
_ACEOF
6488
rm -f conftest.$ac_objext
6489
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6490
  (eval $ac_compile) 2>conftest.er1
6491
  ac_status=$?
6492
  grep -v '^ *+' conftest.er1 >conftest.err
6493
  rm -f conftest.er1
6494
  cat conftest.err >&5
6495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496
  (exit $ac_status); } &&
6497
         { ac_try='test -z "$ac_c_werror_flag"
6498
                         || test ! -s conftest.err'
6499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500
  (eval $ac_try) 2>&5
6501
  ac_status=$?
6502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503
  (exit $ac_status); }; } &&
6504
         { ac_try='test -s conftest.$ac_objext'
6505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506
  (eval $ac_try) 2>&5
6507
  ac_status=$?
6508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509
  (exit $ac_status); }; }; then
6510
  ac_header_compiler=yes
6511
else
6512
  echo "$as_me: failed program was:" >&5
6513
sed 's/^/| /' conftest.$ac_ext >&5
6514
 
6515
ac_header_compiler=no
6516
fi
6517
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6519
echo "${ECHO_T}$ac_header_compiler" >&6
6520
 
6521
# Is the header present?
6522
echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6523
echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6524
cat >conftest.$ac_ext <<_ACEOF
6525
/* confdefs.h.  */
6526
_ACEOF
6527
cat confdefs.h >>conftest.$ac_ext
6528
cat >>conftest.$ac_ext <<_ACEOF
6529
/* end confdefs.h.  */
6530
#include 
6531
_ACEOF
6532
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6533
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6534
  ac_status=$?
6535
  grep -v '^ *+' conftest.er1 >conftest.err
6536
  rm -f conftest.er1
6537
  cat conftest.err >&5
6538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
  (exit $ac_status); } >/dev/null; then
6540
  if test -s conftest.err; then
6541
    ac_cpp_err=$ac_c_preproc_warn_flag
6542
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6543
  else
6544
    ac_cpp_err=
6545
  fi
6546
else
6547
  ac_cpp_err=yes
6548
fi
6549
if test -z "$ac_cpp_err"; then
6550
  ac_header_preproc=yes
6551
else
6552
  echo "$as_me: failed program was:" >&5
6553
sed 's/^/| /' conftest.$ac_ext >&5
6554
 
6555
  ac_header_preproc=no
6556
fi
6557
rm -f conftest.err conftest.$ac_ext
6558
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559
echo "${ECHO_T}$ac_header_preproc" >&6
6560
 
6561
# So?  What about this header?
6562
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6563
  yes:no: )
6564
    { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6565
echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566
    { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6567
echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6568
    ac_header_preproc=yes
6569
    ;;
6570
  no:yes:* )
6571
    { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6572
echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6573
    { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6574
echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6575
    { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6576
echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6577
    { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6578
echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6579
    { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6580
echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6581
    { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6582
echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6583
    (
6584
      cat <<\_ASBOX
6585
## ------------------------------------------ ##
6586
## Report this to the AC_PACKAGE_NAME lists.  ##
6587
## ------------------------------------------ ##
6588
_ASBOX
6589
    ) |
6590
      sed "s/^/$as_me: WARNING:     /" >&2
6591
    ;;
6592
esac
6593
echo "$as_me:$LINENO: checking for valgrind.h" >&5
6594
echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6595
if test "${ac_cv_header_valgrind_h+set}" = set; then
6596
  echo $ECHO_N "(cached) $ECHO_C" >&6
6597
else
6598
  ac_cv_header_valgrind_h=$ac_header_preproc
6599
fi
6600
echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6601
echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6602
 
6603
fi
6604
if test $ac_cv_header_valgrind_h = yes; then
6605
  have_valgrind_h=yes
6606
else
6607
  have_valgrind_h=no
6608
fi
6609
 
6610
 
6611
 
6612
if test x$ac_valgrind_checking != x ; then
6613
  # It is certainly possible that there's valgrind but no valgrind.h.
6614
  # GCC relies on making annotations so we must have both.
6615
  echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in " >&5
6616
echo $ECHO_N "checking for VALGRIND_DISCARD in ... $ECHO_C" >&6
6617
  cat >conftest.$ac_ext <<_ACEOF
6618
/* confdefs.h.  */
6619
_ACEOF
6620
cat confdefs.h >>conftest.$ac_ext
6621
cat >>conftest.$ac_ext <<_ACEOF
6622
/* end confdefs.h.  */
6623
#include 
6624
#ifndef VALGRIND_DISCARD
6625
#error VALGRIND_DISCARD not defined
6626
#endif
6627
_ACEOF
6628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6629
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6630
  ac_status=$?
6631
  grep -v '^ *+' conftest.er1 >conftest.err
6632
  rm -f conftest.er1
6633
  cat conftest.err >&5
6634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635
  (exit $ac_status); } >/dev/null; then
6636
  if test -s conftest.err; then
6637
    ac_cpp_err=$ac_c_preproc_warn_flag
6638
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6639
  else
6640
    ac_cpp_err=
6641
  fi
6642
else
6643
  ac_cpp_err=yes
6644
fi
6645
if test -z "$ac_cpp_err"; then
6646
  gcc_cv_header_valgrind_memcheck_h=yes
6647
else
6648
  echo "$as_me: failed program was:" >&5
6649
sed 's/^/| /' conftest.$ac_ext >&5
6650
 
6651
  gcc_cv_header_valgrind_memcheck_h=no
6652
fi
6653
rm -f conftest.err conftest.$ac_ext
6654
  echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6655
echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6656
  echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in " >&5
6657
echo $ECHO_N "checking for VALGRIND_DISCARD in ... $ECHO_C" >&6
6658
  cat >conftest.$ac_ext <<_ACEOF
6659
/* confdefs.h.  */
6660
_ACEOF
6661
cat confdefs.h >>conftest.$ac_ext
6662
cat >>conftest.$ac_ext <<_ACEOF
6663
/* end confdefs.h.  */
6664
#include 
6665
#ifndef VALGRIND_DISCARD
6666
#error VALGRIND_DISCARD not defined
6667
#endif
6668
_ACEOF
6669
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6670
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6671
  ac_status=$?
6672
  grep -v '^ *+' conftest.er1 >conftest.err
6673
  rm -f conftest.er1
6674
  cat conftest.err >&5
6675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676
  (exit $ac_status); } >/dev/null; then
6677
  if test -s conftest.err; then
6678
    ac_cpp_err=$ac_c_preproc_warn_flag
6679
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6680
  else
6681
    ac_cpp_err=
6682
  fi
6683
else
6684
  ac_cpp_err=yes
6685
fi
6686
if test -z "$ac_cpp_err"; then
6687
  gcc_cv_header_memcheck_h=yes
6688
else
6689
  echo "$as_me: failed program was:" >&5
6690
sed 's/^/| /' conftest.$ac_ext >&5
6691
 
6692
  gcc_cv_header_memcheck_h=no
6693
fi
6694
rm -f conftest.err conftest.$ac_ext
6695
  echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6696
echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6697
 
6698
# Prepare PATH_SEPARATOR.
6699
# The user is always right.
6700
if test "${PATH_SEPARATOR+set}" != set; then
6701
  echo "#! /bin/sh" >conf$$.sh
6702
  echo  "exit 0"   >>conf$$.sh
6703
  chmod +x conf$$.sh
6704
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6705
    PATH_SEPARATOR=';'
6706
  else
6707
    PATH_SEPARATOR=:
6708
  fi
6709
  rm -f conf$$.sh
6710
fi
6711
 
6712
# Find out how to test for executable files. Don't use a zero-byte file,
6713
# as systems may use methods other than mode bits to determine executability.
6714
cat >conf$$.file <<_ASEOF
6715
#! /bin/sh
6716
exit 0
6717
_ASEOF
6718
chmod +x conf$$.file
6719
if test -x conf$$.file >/dev/null 2>&1; then
6720
  ac_executable_p="test -x"
6721
else
6722
  ac_executable_p="test -f"
6723
fi
6724
rm -f conf$$.file
6725
 
6726
# Extract the first word of "valgrind", so it can be a program name with args.
6727
set dummy valgrind; ac_word=$2
6728
echo "$as_me:$LINENO: checking for $ac_word" >&5
6729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730
if test "${ac_cv_path_valgrind_path+set}" = set; then
6731
  echo $ECHO_N "(cached) $ECHO_C" >&6
6732
else
6733
  case "$valgrind_path" in
6734
  [\\/]* | ?:[\\/]*)
6735
    ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6736
    ;;
6737
  *)
6738
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6739
    for ac_dir in $PATH; do
6740
      IFS="$ac_save_IFS"
6741
      test -z "$ac_dir" && ac_dir=.
6742
      for ac_exec_ext in '' $ac_executable_extensions; do
6743
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6744
          if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6745
            ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6746
            break 2
6747
          fi
6748
        fi
6749
      done
6750
    done
6751
    IFS="$ac_save_IFS"
6752
    ;;
6753
esac
6754
fi
6755
valgrind_path="$ac_cv_path_valgrind_path"
6756
if test -n "$valgrind_path"; then
6757
  echo "$as_me:$LINENO: result: $valgrind_path" >&5
6758
echo "${ECHO_T}$valgrind_path" >&6
6759
else
6760
  echo "$as_me:$LINENO: result: no" >&5
6761
echo "${ECHO_T}no" >&6
6762
fi
6763
 
6764
  if test "x$valgrind_path" = "x" \
6765
    || (test $have_valgrind_h = no \
6766
        && test $gcc_cv_header_memcheck_h = no \
6767
        && test $gcc_cv_header_valgrind_memcheck_h = no); then
6768
        { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6769
echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6770
   { (exit 1); exit 1; }; }
6771
  fi
6772
  valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6773
  valgrind_command="$valgrind_path -q"
6774
 
6775
cat >>confdefs.h <<\_ACEOF
6776
#define ENABLE_VALGRIND_CHECKING 1
6777
_ACEOF
6778
 
6779
  if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6780
 
6781
cat >>confdefs.h <<\_ACEOF
6782
#define HAVE_VALGRIND_MEMCHECK_H 1
6783
_ACEOF
6784
 
6785
  fi
6786
  if test $gcc_cv_header_memcheck_h = yes; then
6787
 
6788
cat >>confdefs.h <<\_ACEOF
6789
#define HAVE_MEMCHECK_H 1
6790
_ACEOF
6791
 
6792
  fi
6793
fi
6794
 
6795
 
6796
 
6797
# Check whether --enable-mapped-location or --disable-mapped-location was given.
6798
if test "${enable_mapped_location+set}" = set; then
6799
  enableval="$enable_mapped_location"
6800
 
6801
else
6802
  enable_mapped_location=no
6803
fi;
6804
 
6805
if test "$enable_mapped_location" = yes ; then
6806
 
6807
cat >>confdefs.h <<\_ACEOF
6808
#define USE_MAPPED_LOCATION 1
6809
_ACEOF
6810
 
6811
fi
6812
 
6813
# Enable code coverage collection
6814
# Check whether --enable-coverage or --disable-coverage was given.
6815
if test "${enable_coverage+set}" = set; then
6816
  enableval="$enable_coverage"
6817
  case "${enableval}" in
6818
  yes|noopt)
6819
    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6820
    ;;
6821
  opt)
6822
    coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6823
    ;;
6824
  no)
6825
    # a.k.a. --disable-coverage
6826
    coverage_flags=""
6827
    ;;
6828
  *)
6829
    { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6830
echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6831
   { (exit 1); exit 1; }; }
6832
    ;;
6833
esac
6834
else
6835
  coverage_flags=""
6836
fi;
6837
 
6838
 
6839
# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6840
if test "${enable_gather_detailed_mem_stats+set}" = set; then
6841
  enableval="$enable_gather_detailed_mem_stats"
6842
 
6843
else
6844
  enable_gather_detailed_mem_stats=no
6845
fi;
6846
if test x$enable_gather_detailed_mem_stats = xyes ; then
6847
 
6848
cat >>confdefs.h <<\_ACEOF
6849
#define GATHER_STATISTICS 1
6850
_ACEOF
6851
 
6852
fi
6853
 
6854
# -------------------------------
6855
# Miscenalleous configure options
6856
# -------------------------------
6857
 
6858
# With stabs
6859
 
6860
# Check whether --with-stabs or --without-stabs was given.
6861
if test "${with_stabs+set}" = set; then
6862
  withval="$with_stabs"
6863
  stabs="$with_stabs"
6864
else
6865
  stabs=no
6866
fi;
6867
 
6868
# Determine whether or not multilibs are enabled.
6869
# Check whether --enable-multilib or --disable-multilib was given.
6870
if test "${enable_multilib+set}" = set; then
6871
  enableval="$enable_multilib"
6872
 
6873
else
6874
  enable_multilib=yes
6875
fi;
6876
 
6877
 
6878
# Enable __cxa_atexit for C++.
6879
# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6880
if test "${enable___cxa_atexit+set}" = set; then
6881
  enableval="$enable___cxa_atexit"
6882
 
6883
fi;
6884
 
6885
# Enable threads
6886
# Pass with no value to take the default
6887
# Pass with a value to specify a thread package
6888
# Check whether --enable-threads or --disable-threads was given.
6889
if test "${enable_threads+set}" = set; then
6890
  enableval="$enable_threads"
6891
 
6892
else
6893
  enable_threads=''
6894
fi;
6895
 
6896
# Check whether --enable-tls or --disable-tls was given.
6897
if test "${enable_tls+set}" = set; then
6898
  enableval="$enable_tls"
6899
 
6900
  case $enable_tls in
6901
    yes | no) ;;
6902
    *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
6903
Valid choices are 'yes' and 'no'." >&5
6904
echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
6905
Valid choices are 'yes' and 'no'." >&2;}
6906
   { (exit 1); exit 1; }; } ;;
6907
  esac
6908
 
6909
else
6910
  enable_tls=''
6911
fi;
6912
 
6913
# Check whether --enable-objc-gc or --disable-objc-gc was given.
6914
if test "${enable_objc_gc+set}" = set; then
6915
  enableval="$enable_objc_gc"
6916
  if test x$enable_objc_gc = xno; then
6917
        objc_boehm_gc=''
6918
else
6919
        objc_boehm_gc=1
6920
fi
6921
else
6922
  objc_boehm_gc=''
6923
fi;
6924
 
6925
 
6926
# Check whether --with-dwarf2 or --without-dwarf2 was given.
6927
if test "${with_dwarf2+set}" = set; then
6928
  withval="$with_dwarf2"
6929
  dwarf2="$with_dwarf2"
6930
else
6931
  dwarf2=no
6932
fi;
6933
 
6934
# Check whether --enable-shared or --disable-shared was given.
6935
if test "${enable_shared+set}" = set; then
6936
  enableval="$enable_shared"
6937
 
6938
  case $enable_shared in
6939
  yes | no) ;;
6940
  *)
6941
    enable_shared=no
6942
    IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6943
    for pkg in $enableval; do
6944
      if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6945
        enable_shared=yes
6946
      fi
6947
    done
6948
    IFS="$ac_save_ifs"
6949
    ;;
6950
  esac
6951
 
6952
else
6953
  enable_shared=yes
6954
fi;
6955
 
6956
 
6957
 
6958
# Check whether --with-build-sysroot or --without-build-sysroot was given.
6959
if test "${with_build_sysroot+set}" = set; then
6960
  withval="$with_build_sysroot"
6961
 
6962
fi;
6963
 
6964
 
6965
# Check whether --with-sysroot or --without-sysroot was given.
6966
if test "${with_sysroot+set}" = set; then
6967
  withval="$with_sysroot"
6968
 
6969
 case ${with_sysroot} in
6970
 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6971
 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6972
 esac
6973
 
6974
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6975
 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6976
 
6977
 if test "x$exec_prefix" = xNONE; then
6978
  if test "x$prefix" = xNONE; then
6979
   test_prefix=/usr/local
6980
  else
6981
   test_prefix=$prefix
6982
  fi
6983
 else
6984
  test_prefix=$exec_prefix
6985
 fi
6986
 case ${TARGET_SYSTEM_ROOT} in
6987
 "${test_prefix}"|"${test_prefix}/"*|\
6988
 '${exec_prefix}'|'${exec_prefix}/'*)
6989
   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6990
   TARGET_SYSTEM_ROOT_DEFINE="$t"
6991
   ;;
6992
 esac
6993
 
6994
else
6995
 
6996
 TARGET_SYSTEM_ROOT=
6997
 TARGET_SYSTEM_ROOT_DEFINE=
6998
 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6999
 
7000
fi;
7001
 
7002
 
7003
 
7004
 
7005
# Build with intermodule optimisations
7006
# Check whether --enable-intermodule or --disable-intermodule was given.
7007
if test "${enable_intermodule+set}" = set; then
7008
  enableval="$enable_intermodule"
7009
  case ${enable_intermodule} in
7010
  yes) onestep="-onestep";;
7011
  *) onestep="";;
7012
esac
7013
else
7014
  onestep=""
7015
fi;
7016
 
7017
 
7018
# Sanity check enable_languages in case someone does not run the toplevel
7019
# configure # script.
7020
# Check whether --enable-languages or --disable-languages was given.
7021
if test "${enable_languages+set}" = set; then
7022
  enableval="$enable_languages"
7023
  case ,${enable_languages}, in
7024
       ,,|,yes,)
7025
                # go safe -- we cannot be much sure without the toplevel
7026
                # configure's
7027
                # analysis of which target libs are present and usable
7028
                enable_languages=c
7029
                ;;
7030
         *,all,*)
7031
                { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7032
echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7033
   { (exit 1); exit 1; }; }
7034
                ;;
7035
        *,c,*)
7036
                ;;
7037
        *)
7038
                enable_languages=c,${enable_languages}
7039
                ;;
7040
esac
7041
else
7042
  enable_languages=c
7043
fi;
7044
 
7045
subdirs=
7046
for lang in ${srcdir}/*/config-lang.in
7047
do
7048
        case $lang in
7049
        # The odd quoting in the next line works around
7050
        # an apparent bug in bash 1.12 on linux.
7051
        ${srcdir}/[*]/config-lang.in) ;;
7052
        *)
7053
          lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7054
          if test "x$lang_alias" = x
7055
          then
7056
                echo "$lang doesn't set \$language." 1>&2
7057
                exit 1
7058
          fi
7059
          case ",$enable_languages," in
7060
          *,$lang_alias,*)
7061
            subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7062
          esac
7063
          ;;
7064
        esac
7065
done
7066
 
7067
 
7068
# -------------------------
7069
# Checks for other programs
7070
# -------------------------
7071
 
7072
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7073
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7074
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7075
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7076
  echo $ECHO_N "(cached) $ECHO_C" >&6
7077
else
7078
  cat >conftest.make <<\_ACEOF
7079
all:
7080
        @echo 'ac_maketemp="$(MAKE)"'
7081
_ACEOF
7082
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7083
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7084
if test -n "$ac_maketemp"; then
7085
  eval ac_cv_prog_make_${ac_make}_set=yes
7086
else
7087
  eval ac_cv_prog_make_${ac_make}_set=no
7088
fi
7089
rm -f conftest.make
7090
fi
7091
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7092
  echo "$as_me:$LINENO: result: yes" >&5
7093
echo "${ECHO_T}yes" >&6
7094
  SET_MAKE=
7095
else
7096
  echo "$as_me:$LINENO: result: no" >&5
7097
echo "${ECHO_T}no" >&6
7098
  SET_MAKE="MAKE=${MAKE-make}"
7099
fi
7100
 
7101
 
7102
# Find some useful tools
7103
for ac_prog in gawk mawk nawk awk
7104
do
7105
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7106
set dummy $ac_prog; ac_word=$2
7107
echo "$as_me:$LINENO: checking for $ac_word" >&5
7108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109
if test "${ac_cv_prog_AWK+set}" = set; then
7110
  echo $ECHO_N "(cached) $ECHO_C" >&6
7111
else
7112
  if test -n "$AWK"; then
7113
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7114
else
7115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116
for as_dir in $PATH
7117
do
7118
  IFS=$as_save_IFS
7119
  test -z "$as_dir" && as_dir=.
7120
  for ac_exec_ext in '' $ac_executable_extensions; do
7121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122
    ac_cv_prog_AWK="$ac_prog"
7123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124
    break 2
7125
  fi
7126
done
7127
done
7128
 
7129
fi
7130
fi
7131
AWK=$ac_cv_prog_AWK
7132
if test -n "$AWK"; then
7133
  echo "$as_me:$LINENO: result: $AWK" >&5
7134
echo "${ECHO_T}$AWK" >&6
7135
else
7136
  echo "$as_me:$LINENO: result: no" >&5
7137
echo "${ECHO_T}no" >&6
7138
fi
7139
 
7140
  test -n "$AWK" && break
7141
done
7142
 
7143
# We need awk to create options.c and options.h.
7144
# Bail out if it's missing.
7145
case ${AWK} in
7146
  "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7147
echo "$as_me: error: can't build without awk, bailing out" >&2;}
7148
   { (exit 1); exit 1; }; } ;;
7149
esac
7150
 
7151
echo "$as_me:$LINENO: checking whether ln -s works" >&5
7152
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7153
if test "${gcc_cv_prog_LN_S+set}" = set; then
7154
  echo $ECHO_N "(cached) $ECHO_C" >&6
7155
else
7156
  rm -f conftestdata_t
7157
echo >conftestdata_f
7158
if ln -s conftestdata_f conftestdata_t 2>/dev/null
7159
then
7160
  gcc_cv_prog_LN_S="ln -s"
7161
else
7162
  if ln conftestdata_f conftestdata_t 2>/dev/null
7163
  then
7164
    gcc_cv_prog_LN_S=ln
7165
  else
7166
    if cp -p conftestdata_f conftestdata_t 2>/dev/null
7167
    then
7168
      gcc_cv_prog_LN_S="cp -p"
7169
    else
7170
      gcc_cv_prog_LN_S=cp
7171
    fi
7172
  fi
7173
fi
7174
rm -f conftestdata_f conftestdata_t
7175
 
7176
fi
7177
LN_S="$gcc_cv_prog_LN_S"
7178
if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7179
  echo "$as_me:$LINENO: result: yes" >&5
7180
echo "${ECHO_T}yes" >&6
7181
else
7182
  if test "$gcc_cv_prog_LN_S" = "ln"; then
7183
    echo "$as_me:$LINENO: result: no, using ln" >&5
7184
echo "${ECHO_T}no, using ln" >&6
7185
  else
7186
    echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7187
echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7188
  fi
7189
fi
7190
 
7191
echo "$as_me:$LINENO: checking whether ln works" >&5
7192
echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7193
if test "${acx_cv_prog_LN+set}" = set; then
7194
  echo $ECHO_N "(cached) $ECHO_C" >&6
7195
else
7196
  rm -f conftestdata_t
7197
echo >conftestdata_f
7198
if ln conftestdata_f conftestdata_t 2>/dev/null
7199
then
7200
  acx_cv_prog_LN=ln
7201
else
7202
  acx_cv_prog_LN=no
7203
fi
7204
rm -f conftestdata_f conftestdata_t
7205
 
7206
fi
7207
if test $acx_cv_prog_LN = no; then
7208
  LN="$LN_S"
7209
  echo "$as_me:$LINENO: result: no, using $LN" >&5
7210
echo "${ECHO_T}no, using $LN" >&6
7211
else
7212
  LN="$acx_cv_prog_LN"
7213
  echo "$as_me:$LINENO: result: yes" >&5
7214
echo "${ECHO_T}yes" >&6
7215
fi
7216
 
7217
if test -n "$ac_tool_prefix"; then
7218
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7219
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7220
echo "$as_me:$LINENO: checking for $ac_word" >&5
7221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7222
if test "${ac_cv_prog_RANLIB+set}" = set; then
7223
  echo $ECHO_N "(cached) $ECHO_C" >&6
7224
else
7225
  if test -n "$RANLIB"; then
7226
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7227
else
7228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229
for as_dir in $PATH
7230
do
7231
  IFS=$as_save_IFS
7232
  test -z "$as_dir" && as_dir=.
7233
  for ac_exec_ext in '' $ac_executable_extensions; do
7234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237
    break 2
7238
  fi
7239
done
7240
done
7241
 
7242
fi
7243
fi
7244
RANLIB=$ac_cv_prog_RANLIB
7245
if test -n "$RANLIB"; then
7246
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7247
echo "${ECHO_T}$RANLIB" >&6
7248
else
7249
  echo "$as_me:$LINENO: result: no" >&5
7250
echo "${ECHO_T}no" >&6
7251
fi
7252
 
7253
fi
7254
if test -z "$ac_cv_prog_RANLIB"; then
7255
  ac_ct_RANLIB=$RANLIB
7256
  # Extract the first word of "ranlib", so it can be a program name with args.
7257
set dummy ranlib; ac_word=$2
7258
echo "$as_me:$LINENO: checking for $ac_word" >&5
7259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7260
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7261
  echo $ECHO_N "(cached) $ECHO_C" >&6
7262
else
7263
  if test -n "$ac_ct_RANLIB"; then
7264
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7265
else
7266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267
for as_dir in $PATH
7268
do
7269
  IFS=$as_save_IFS
7270
  test -z "$as_dir" && as_dir=.
7271
  for ac_exec_ext in '' $ac_executable_extensions; do
7272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275
    break 2
7276
  fi
7277
done
7278
done
7279
 
7280
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7281
fi
7282
fi
7283
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7284
if test -n "$ac_ct_RANLIB"; then
7285
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7286
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7287
else
7288
  echo "$as_me:$LINENO: result: no" >&5
7289
echo "${ECHO_T}no" >&6
7290
fi
7291
 
7292
  RANLIB=$ac_ct_RANLIB
7293
else
7294
  RANLIB="$ac_cv_prog_RANLIB"
7295
fi
7296
 
7297
case "${host}" in
7298
*-*-darwin*)
7299
  # By default, the Darwin ranlib will not treat common symbols as
7300
  # definitions when  building the archive table of contents.  Other
7301
  # ranlibs do that; pass an option to the Darwin ranlib that makes
7302
  # it behave similarly.
7303
  ranlib_flags="-c"
7304
  ;;
7305
*)
7306
  ranlib_flags=""
7307
esac
7308
 
7309
 
7310
# Find a good install program.  We prefer a C program (faster),
7311
# so one script is as good as another.  But avoid the broken or
7312
# incompatible versions:
7313
# SysV /etc/install, /usr/sbin/install
7314
# SunOS /usr/etc/install
7315
# IRIX /sbin/install
7316
# AIX /bin/install
7317
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7318
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7319
# ./install, which can be erroneously created by make from ./install.sh.
7320
echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7321
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7322
if test -z "$INSTALL"; then
7323
if test "${ac_cv_path_install+set}" = set; then
7324
  echo $ECHO_N "(cached) $ECHO_C" >&6
7325
else
7326
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7327
  for ac_dir in $PATH; do
7328
    # Account for people who put trailing slashes in PATH elements.
7329
    case "$ac_dir/" in
7330
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7331
    *)
7332
      # OSF1 and SCO ODT 3.0 have their own names for install.
7333
      for ac_prog in ginstall scoinst install; do
7334
        if test -f $ac_dir/$ac_prog; then
7335
          if test $ac_prog = install &&
7336
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7337
            # AIX install.  It has an incompatible calling convention.
7338
            # OSF/1 installbsd also uses dspmsg, but is usable.
7339
            :
7340
          else
7341
            ac_cv_path_install="$ac_dir/$ac_prog -c"
7342
            break 2
7343
          fi
7344
        fi
7345
      done
7346
      ;;
7347
    esac
7348
  done
7349
  IFS="$ac_save_IFS"
7350
 
7351
fi
7352
  if test "${ac_cv_path_install+set}" = set; then
7353
    INSTALL="$ac_cv_path_install"
7354
  else
7355
    # As a last resort, use the slow shell script.  We don't cache a
7356
    # path for INSTALL within a source directory, because that will
7357
    # break other packages using the cache if that directory is
7358
    # removed, or if the path is relative.
7359
    INSTALL="$ac_install_sh"
7360
  fi
7361
fi
7362
echo "$as_me:$LINENO: result: $INSTALL" >&5
7363
echo "${ECHO_T}$INSTALL" >&6
7364
 
7365
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7366
# It thinks the first close brace ends the variable substitution.
7367
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7368
 
7369
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7370
 
7371
 
7372
# See if cmp has --ignore-initial.
7373
echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7374
echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7375
if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7376
  echo $ECHO_N "(cached) $ECHO_C" >&6
7377
else
7378
   echo abfoo >t1
7379
  echo cdfoo >t2
7380
  gcc_cv_prog_cmp_skip=slowcompare
7381
  if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7382
    if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7383
      :
7384
    else
7385
      gcc_cv_prog_cmp_skip=gnucompare
7386
    fi
7387
  fi
7388
  if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7389
    if cmp t1 t2 2 2 > /dev/null 2>&1; then
7390
      if cmp t1 t2 1 1 > /dev/null 2>&1; then
7391
        :
7392
      else
7393
        gcc_cv_prog_cmp_skip=fastcompare
7394
      fi
7395
    fi
7396
  fi
7397
  rm t1 t2
7398
 
7399
fi
7400
echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7401
echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7402
make_compare_target=$gcc_cv_prog_cmp_skip
7403
 
7404
 
7405
 
7406
# See if we have the mktemp command.
7407
# Extract the first word of "mktemp", so it can be a program name with args.
7408
set dummy mktemp; ac_word=$2
7409
echo "$as_me:$LINENO: checking for $ac_word" >&5
7410
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7411
if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7412
  echo $ECHO_N "(cached) $ECHO_C" >&6
7413
else
7414
  if test -n "$have_mktemp_command"; then
7415
  ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7416
else
7417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418
for as_dir in $PATH
7419
do
7420
  IFS=$as_save_IFS
7421
  test -z "$as_dir" && as_dir=.
7422
  for ac_exec_ext in '' $ac_executable_extensions; do
7423
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424
    ac_cv_prog_have_mktemp_command="yes"
7425
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426
    break 2
7427
  fi
7428
done
7429
done
7430
 
7431
  test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7432
fi
7433
fi
7434
have_mktemp_command=$ac_cv_prog_have_mktemp_command
7435
if test -n "$have_mktemp_command"; then
7436
  echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7437
echo "${ECHO_T}$have_mktemp_command" >&6
7438
else
7439
  echo "$as_me:$LINENO: result: no" >&5
7440
echo "${ECHO_T}no" >&6
7441
fi
7442
 
7443
 
7444
MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7445
 
7446
# See if makeinfo has been installed and is modern enough
7447
# that we can use it.
7448
 
7449
ac_executable_extensions="$build_exeext"
7450
 
7451
# Extract the first word of "makeinfo", so it can be a program name with args.
7452
set dummy makeinfo; ac_word=$2
7453
echo "$as_me:$LINENO: checking for $ac_word" >&5
7454
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455
if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7456
  echo $ECHO_N "(cached) $ECHO_C" >&6
7457
else
7458
  if test -n "$MAKEINFO"; then
7459
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7460
else
7461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462
for as_dir in $PATH
7463
do
7464
  IFS=$as_save_IFS
7465
  test -z "$as_dir" && as_dir=.
7466
  for ac_exec_ext in '' $ac_executable_extensions; do
7467
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468
    ac_cv_prog_MAKEINFO="makeinfo"
7469
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470
    break 2
7471
  fi
7472
done
7473
done
7474
 
7475
fi
7476
fi
7477
MAKEINFO=$ac_cv_prog_MAKEINFO
7478
if test -n "$MAKEINFO"; then
7479
  echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7480
echo "${ECHO_T}$MAKEINFO" >&6
7481
else
7482
  echo "$as_me:$LINENO: result: no" >&5
7483
echo "${ECHO_T}no" >&6
7484
fi
7485
 
7486
if test -n "$MAKEINFO"; then
7487
  # Found it, now check the version.
7488
  echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7489
echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7490
if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7491
  echo $ECHO_N "(cached) $ECHO_C" >&6
7492
else
7493
    ac_prog_version=`$MAKEINFO --version 2>&1 |
7494
                   sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7495
  echo "configure:7495: version of makeinfo is $ac_prog_version" >&5
7496
  case $ac_prog_version in
7497
    '')     gcc_cv_prog_makeinfo_modern=no;;
7498
    4.[2-9]*)
7499
            gcc_cv_prog_makeinfo_modern=yes;;
7500
    *)      gcc_cv_prog_makeinfo_modern=no;;
7501
  esac
7502
 
7503
fi
7504
echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7505
echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7506
else
7507
  gcc_cv_prog_makeinfo_modern=no
7508
fi
7509
 
7510
if test $gcc_cv_prog_makeinfo_modern = no; then
7511
  MAKEINFO="$MISSING makeinfo"
7512
  { echo "$as_me:$LINENO: WARNING:
7513
*** Makeinfo is missing or too old.
7514
*** Info documentation will not be built." >&5
7515
echo "$as_me: WARNING:
7516
*** Makeinfo is missing or too old.
7517
*** Info documentation will not be built." >&2;}
7518
  BUILD_INFO=
7519
else
7520
  BUILD_INFO=info
7521
fi
7522
 
7523
 
7524
# Is pod2man recent enough to regenerate manpages?
7525
echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7526
echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7527
if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7528
  echo "$as_me:$LINENO: result: yes" >&5
7529
echo "${ECHO_T}yes" >&6
7530
  GENERATED_MANPAGES=generated-manpages
7531
else
7532
  echo "$as_me:$LINENO: result: no" >&5
7533
echo "${ECHO_T}no" >&6
7534
  GENERATED_MANPAGES=
7535
fi
7536
 
7537
 
7538
# How about lex?
7539
for ac_prog in flex
7540
do
7541
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7542
set dummy $ac_prog; ac_word=$2
7543
echo "$as_me:$LINENO: checking for $ac_word" >&5
7544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545
if test "${ac_cv_prog_FLEX+set}" = set; then
7546
  echo $ECHO_N "(cached) $ECHO_C" >&6
7547
else
7548
  if test -n "$FLEX"; then
7549
  ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7550
else
7551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552
for as_dir in $PATH
7553
do
7554
  IFS=$as_save_IFS
7555
  test -z "$as_dir" && as_dir=.
7556
  for ac_exec_ext in '' $ac_executable_extensions; do
7557
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558
    ac_cv_prog_FLEX="$ac_prog"
7559
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560
    break 2
7561
  fi
7562
done
7563
done
7564
 
7565
fi
7566
fi
7567
FLEX=$ac_cv_prog_FLEX
7568
if test -n "$FLEX"; then
7569
  echo "$as_me:$LINENO: result: $FLEX" >&5
7570
echo "${ECHO_T}$FLEX" >&6
7571
else
7572
  echo "$as_me:$LINENO: result: no" >&5
7573
echo "${ECHO_T}no" >&6
7574
fi
7575
 
7576
  test -n "$FLEX" && break
7577
done
7578
test -n "$FLEX" || FLEX="$MISSING flex"
7579
 
7580
 
7581
# Bison?
7582
for ac_prog in bison
7583
do
7584
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7585
set dummy $ac_prog; ac_word=$2
7586
echo "$as_me:$LINENO: checking for $ac_word" >&5
7587
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588
if test "${ac_cv_prog_BISON+set}" = set; then
7589
  echo $ECHO_N "(cached) $ECHO_C" >&6
7590
else
7591
  if test -n "$BISON"; then
7592
  ac_cv_prog_BISON="$BISON" # Let the user override the test.
7593
else
7594
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595
for as_dir in $PATH
7596
do
7597
  IFS=$as_save_IFS
7598
  test -z "$as_dir" && as_dir=.
7599
  for ac_exec_ext in '' $ac_executable_extensions; do
7600
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601
    ac_cv_prog_BISON="$ac_prog"
7602
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603
    break 2
7604
  fi
7605
done
7606
done
7607
 
7608
fi
7609
fi
7610
BISON=$ac_cv_prog_BISON
7611
if test -n "$BISON"; then
7612
  echo "$as_me:$LINENO: result: $BISON" >&5
7613
echo "${ECHO_T}$BISON" >&6
7614
else
7615
  echo "$as_me:$LINENO: result: no" >&5
7616
echo "${ECHO_T}no" >&6
7617
fi
7618
 
7619
  test -n "$BISON" && break
7620
done
7621
test -n "$BISON" || BISON="$MISSING bison"
7622
 
7623
 
7624
# Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7625
# check for build == host before using them.
7626
 
7627
# NM
7628
if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7629
  && test -d ../binutils ; then
7630
  NM='$(objdir)/../binutils/nm-new'
7631
else
7632
  # Extract the first word of "nm", so it can be a program name with args.
7633
set dummy nm; ac_word=$2
7634
echo "$as_me:$LINENO: checking for $ac_word" >&5
7635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636
if test "${ac_cv_prog_NM+set}" = set; then
7637
  echo $ECHO_N "(cached) $ECHO_C" >&6
7638
else
7639
  if test -n "$NM"; then
7640
  ac_cv_prog_NM="$NM" # Let the user override the test.
7641
else
7642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643
for as_dir in $PATH
7644
do
7645
  IFS=$as_save_IFS
7646
  test -z "$as_dir" && as_dir=.
7647
  for ac_exec_ext in '' $ac_executable_extensions; do
7648
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649
    ac_cv_prog_NM="nm"
7650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651
    break 2
7652
  fi
7653
done
7654
done
7655
 
7656
  test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7657
fi
7658
fi
7659
NM=$ac_cv_prog_NM
7660
if test -n "$NM"; then
7661
  echo "$as_me:$LINENO: result: $NM" >&5
7662
echo "${ECHO_T}$NM" >&6
7663
else
7664
  echo "$as_me:$LINENO: result: no" >&5
7665
echo "${ECHO_T}no" >&6
7666
fi
7667
 
7668
fi
7669
 
7670
# AR
7671
if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7672
  && test -d ../binutils ; then
7673
  AR='$(objdir)/../binutils/ar'
7674
else
7675
  # Extract the first word of "ar", so it can be a program name with args.
7676
set dummy ar; ac_word=$2
7677
echo "$as_me:$LINENO: checking for $ac_word" >&5
7678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679
if test "${ac_cv_prog_AR+set}" = set; then
7680
  echo $ECHO_N "(cached) $ECHO_C" >&6
7681
else
7682
  if test -n "$AR"; then
7683
  ac_cv_prog_AR="$AR" # Let the user override the test.
7684
else
7685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686
for as_dir in $PATH
7687
do
7688
  IFS=$as_save_IFS
7689
  test -z "$as_dir" && as_dir=.
7690
  for ac_exec_ext in '' $ac_executable_extensions; do
7691
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692
    ac_cv_prog_AR="ar"
7693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694
    break 2
7695
  fi
7696
done
7697
done
7698
 
7699
  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7700
fi
7701
fi
7702
AR=$ac_cv_prog_AR
7703
if test -n "$AR"; then
7704
  echo "$as_me:$LINENO: result: $AR" >&5
7705
echo "${ECHO_T}$AR" >&6
7706
else
7707
  echo "$as_me:$LINENO: result: no" >&5
7708
echo "${ECHO_T}no" >&6
7709
fi
7710
 
7711
fi
7712
 
7713
 
7714
# --------------------
7715
# Checks for C headers
7716
# --------------------
7717
 
7718
echo "$as_me:$LINENO: checking for GNU C library" >&5
7719
echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7720
if test "${gcc_cv_glibc+set}" = set; then
7721
  echo $ECHO_N "(cached) $ECHO_C" >&6
7722
else
7723
  cat >conftest.$ac_ext <<_ACEOF
7724
/* confdefs.h.  */
7725
_ACEOF
7726
cat confdefs.h >>conftest.$ac_ext
7727
cat >>conftest.$ac_ext <<_ACEOF
7728
/* end confdefs.h.  */
7729
#include 
7730
int
7731
main ()
7732
{
7733
 
7734
#if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7735
#error Not a GNU C library system
7736
#endif
7737
  ;
7738
  return 0;
7739
}
7740
_ACEOF
7741
rm -f conftest.$ac_objext
7742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743
  (eval $ac_compile) 2>conftest.er1
7744
  ac_status=$?
7745
  grep -v '^ *+' conftest.er1 >conftest.err
7746
  rm -f conftest.er1
7747
  cat conftest.err >&5
7748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749
  (exit $ac_status); } &&
7750
         { ac_try='test -z "$ac_c_werror_flag"
7751
                         || test ! -s conftest.err'
7752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753
  (eval $ac_try) 2>&5
7754
  ac_status=$?
7755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756
  (exit $ac_status); }; } &&
7757
         { ac_try='test -s conftest.$ac_objext'
7758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759
  (eval $ac_try) 2>&5
7760
  ac_status=$?
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
  (exit $ac_status); }; }; then
7763
  gcc_cv_glibc=yes
7764
else
7765
  echo "$as_me: failed program was:" >&5
7766
sed 's/^/| /' conftest.$ac_ext >&5
7767
 
7768
gcc_cv_glibc=no
7769
fi
7770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7771
fi
7772
 
7773
echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7774
echo "${ECHO_T}$gcc_cv_glibc" >&6
7775
if test $gcc_cv_glibc = yes; then
7776
 
7777
cat >>confdefs.h <<\_ACEOF
7778
#define _GNU_SOURCE 1
7779
_ACEOF
7780
 
7781
fi
7782
 
7783
# Need to reject headers which give warnings, so that the -Werror bootstrap
7784
# works later. *sigh*  This needs to come before all header checks.
7785
 
7786
ac_c_preproc_warn_flag=yes
7787
 
7788
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7789
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7790
if test "${ac_cv_header_stdc+set}" = set; then
7791
  echo $ECHO_N "(cached) $ECHO_C" >&6
7792
else
7793
  cat >conftest.$ac_ext <<_ACEOF
7794
/* confdefs.h.  */
7795
_ACEOF
7796
cat confdefs.h >>conftest.$ac_ext
7797
cat >>conftest.$ac_ext <<_ACEOF
7798
/* end confdefs.h.  */
7799
#include 
7800
#include 
7801
#include 
7802
#include 
7803
 
7804
int
7805
main ()
7806
{
7807
 
7808
  ;
7809
  return 0;
7810
}
7811
_ACEOF
7812
rm -f conftest.$ac_objext
7813
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814
  (eval $ac_compile) 2>conftest.er1
7815
  ac_status=$?
7816
  grep -v '^ *+' conftest.er1 >conftest.err
7817
  rm -f conftest.er1
7818
  cat conftest.err >&5
7819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820
  (exit $ac_status); } &&
7821
         { ac_try='test -z "$ac_c_werror_flag"
7822
                         || test ! -s conftest.err'
7823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824
  (eval $ac_try) 2>&5
7825
  ac_status=$?
7826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827
  (exit $ac_status); }; } &&
7828
         { ac_try='test -s conftest.$ac_objext'
7829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830
  (eval $ac_try) 2>&5
7831
  ac_status=$?
7832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833
  (exit $ac_status); }; }; then
7834
  ac_cv_header_stdc=yes
7835
else
7836
  echo "$as_me: failed program was:" >&5
7837
sed 's/^/| /' conftest.$ac_ext >&5
7838
 
7839
ac_cv_header_stdc=no
7840
fi
7841
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842
 
7843
if test $ac_cv_header_stdc = yes; then
7844
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7845
  cat >conftest.$ac_ext <<_ACEOF
7846
/* confdefs.h.  */
7847
_ACEOF
7848
cat confdefs.h >>conftest.$ac_ext
7849
cat >>conftest.$ac_ext <<_ACEOF
7850
/* end confdefs.h.  */
7851
#include 
7852
 
7853
_ACEOF
7854
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7855
  $EGREP "memchr" >/dev/null 2>&1; then
7856
  :
7857
else
7858
  ac_cv_header_stdc=no
7859
fi
7860
rm -f conftest*
7861
 
7862
fi
7863
 
7864
if test $ac_cv_header_stdc = yes; then
7865
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7866
  cat >conftest.$ac_ext <<_ACEOF
7867
/* confdefs.h.  */
7868
_ACEOF
7869
cat confdefs.h >>conftest.$ac_ext
7870
cat >>conftest.$ac_ext <<_ACEOF
7871
/* end confdefs.h.  */
7872
#include 
7873
 
7874
_ACEOF
7875
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7876
  $EGREP "free" >/dev/null 2>&1; then
7877
  :
7878
else
7879
  ac_cv_header_stdc=no
7880
fi
7881
rm -f conftest*
7882
 
7883
fi
7884
 
7885
if test $ac_cv_header_stdc = yes; then
7886
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7887
  if test "$cross_compiling" = yes; then
7888
  :
7889
else
7890
  cat >conftest.$ac_ext <<_ACEOF
7891
/* confdefs.h.  */
7892
_ACEOF
7893
cat confdefs.h >>conftest.$ac_ext
7894
cat >>conftest.$ac_ext <<_ACEOF
7895
/* end confdefs.h.  */
7896
#include 
7897
#if ((' ' & 0x0FF) == 0x020)
7898
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7899
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7900
#else
7901
# define ISLOWER(c) \
7902
                   (('a' <= (c) && (c) <= 'i') \
7903
                     || ('j' <= (c) && (c) <= 'r') \
7904
                     || ('s' <= (c) && (c) <= 'z'))
7905
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7906
#endif
7907
 
7908
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7909
int
7910
main ()
7911
{
7912
  int i;
7913
  for (i = 0; i < 256; i++)
7914
    if (XOR (islower (i), ISLOWER (i))
7915
        || toupper (i) != TOUPPER (i))
7916
      exit(2);
7917
  exit (0);
7918
}
7919
_ACEOF
7920
rm -f conftest$ac_exeext
7921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7922
  (eval $ac_link) 2>&5
7923
  ac_status=$?
7924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927
  (eval $ac_try) 2>&5
7928
  ac_status=$?
7929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930
  (exit $ac_status); }; }; then
7931
  :
7932
else
7933
  echo "$as_me: program exited with status $ac_status" >&5
7934
echo "$as_me: failed program was:" >&5
7935
sed 's/^/| /' conftest.$ac_ext >&5
7936
 
7937
( exit $ac_status )
7938
ac_cv_header_stdc=no
7939
fi
7940
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7941
fi
7942
fi
7943
fi
7944
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7945
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7946
if test $ac_cv_header_stdc = yes; then
7947
 
7948
cat >>confdefs.h <<\_ACEOF
7949
#define STDC_HEADERS 1
7950
_ACEOF
7951
 
7952
fi
7953
 
7954
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7955
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7956
if test "${ac_cv_header_time+set}" = set; then
7957
  echo $ECHO_N "(cached) $ECHO_C" >&6
7958
else
7959
  cat >conftest.$ac_ext <<_ACEOF
7960
/* confdefs.h.  */
7961
_ACEOF
7962
cat confdefs.h >>conftest.$ac_ext
7963
cat >>conftest.$ac_ext <<_ACEOF
7964
/* end confdefs.h.  */
7965
#include 
7966
#include 
7967
#include 
7968
 
7969
int
7970
main ()
7971
{
7972
if ((struct tm *) 0)
7973
return 0;
7974
  ;
7975
  return 0;
7976
}
7977
_ACEOF
7978
rm -f conftest.$ac_objext
7979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980
  (eval $ac_compile) 2>conftest.er1
7981
  ac_status=$?
7982
  grep -v '^ *+' conftest.er1 >conftest.err
7983
  rm -f conftest.er1
7984
  cat conftest.err >&5
7985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986
  (exit $ac_status); } &&
7987
         { ac_try='test -z "$ac_c_werror_flag"
7988
                         || test ! -s conftest.err'
7989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990
  (eval $ac_try) 2>&5
7991
  ac_status=$?
7992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993
  (exit $ac_status); }; } &&
7994
         { ac_try='test -s conftest.$ac_objext'
7995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996
  (eval $ac_try) 2>&5
7997
  ac_status=$?
7998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999
  (exit $ac_status); }; }; then
8000
  ac_cv_header_time=yes
8001
else
8002
  echo "$as_me: failed program was:" >&5
8003
sed 's/^/| /' conftest.$ac_ext >&5
8004
 
8005
ac_cv_header_time=no
8006
fi
8007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008
fi
8009
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8010
echo "${ECHO_T}$ac_cv_header_time" >&6
8011
if test $ac_cv_header_time = yes; then
8012
 
8013
cat >>confdefs.h <<\_ACEOF
8014
#define TIME_WITH_SYS_TIME 1
8015
_ACEOF
8016
 
8017
fi
8018
 
8019
echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8020
echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8021
if test "${gcc_cv_header_string+set}" = set; then
8022
  echo $ECHO_N "(cached) $ECHO_C" >&6
8023
else
8024
  cat >conftest.$ac_ext <<_ACEOF
8025
/* confdefs.h.  */
8026
_ACEOF
8027
cat confdefs.h >>conftest.$ac_ext
8028
cat >>conftest.$ac_ext <<_ACEOF
8029
/* end confdefs.h.  */
8030
#include 
8031
#include 
8032
int
8033
main ()
8034
{
8035
 
8036
  ;
8037
  return 0;
8038
}
8039
_ACEOF
8040
rm -f conftest.$ac_objext
8041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042
  (eval $ac_compile) 2>conftest.er1
8043
  ac_status=$?
8044
  grep -v '^ *+' conftest.er1 >conftest.err
8045
  rm -f conftest.er1
8046
  cat conftest.err >&5
8047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048
  (exit $ac_status); } &&
8049
         { ac_try='test -z "$ac_c_werror_flag"
8050
                         || test ! -s conftest.err'
8051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052
  (eval $ac_try) 2>&5
8053
  ac_status=$?
8054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055
  (exit $ac_status); }; } &&
8056
         { ac_try='test -s conftest.$ac_objext'
8057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058
  (eval $ac_try) 2>&5
8059
  ac_status=$?
8060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061
  (exit $ac_status); }; }; then
8062
  gcc_cv_header_string=yes
8063
else
8064
  echo "$as_me: failed program was:" >&5
8065
sed 's/^/| /' conftest.$ac_ext >&5
8066
 
8067
gcc_cv_header_string=no
8068
fi
8069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070
fi
8071
echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8072
echo "${ECHO_T}$gcc_cv_header_string" >&6
8073
if test $gcc_cv_header_string = yes; then
8074
 
8075
cat >>confdefs.h <<\_ACEOF
8076
#define STRING_WITH_STRINGS 1
8077
_ACEOF
8078
 
8079
fi
8080
 
8081
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8082
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8083
if test "${ac_cv_header_sys_wait_h+set}" = set; then
8084
  echo $ECHO_N "(cached) $ECHO_C" >&6
8085
else
8086
  cat >conftest.$ac_ext <<_ACEOF
8087
/* confdefs.h.  */
8088
_ACEOF
8089
cat confdefs.h >>conftest.$ac_ext
8090
cat >>conftest.$ac_ext <<_ACEOF
8091
/* end confdefs.h.  */
8092
#include 
8093
#include 
8094
#ifndef WEXITSTATUS
8095
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8096
#endif
8097
#ifndef WIFEXITED
8098
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8099
#endif
8100
 
8101
int
8102
main ()
8103
{
8104
  int s;
8105
  wait (&s);
8106
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8107
  ;
8108
  return 0;
8109
}
8110
_ACEOF
8111
rm -f conftest.$ac_objext
8112
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113
  (eval $ac_compile) 2>conftest.er1
8114
  ac_status=$?
8115
  grep -v '^ *+' conftest.er1 >conftest.err
8116
  rm -f conftest.er1
8117
  cat conftest.err >&5
8118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119
  (exit $ac_status); } &&
8120
         { ac_try='test -z "$ac_c_werror_flag"
8121
                         || test ! -s conftest.err'
8122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123
  (eval $ac_try) 2>&5
8124
  ac_status=$?
8125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126
  (exit $ac_status); }; } &&
8127
         { ac_try='test -s conftest.$ac_objext'
8128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129
  (eval $ac_try) 2>&5
8130
  ac_status=$?
8131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132
  (exit $ac_status); }; }; then
8133
  ac_cv_header_sys_wait_h=yes
8134
else
8135
  echo "$as_me: failed program was:" >&5
8136
sed 's/^/| /' conftest.$ac_ext >&5
8137
 
8138
ac_cv_header_sys_wait_h=no
8139
fi
8140
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8141
fi
8142
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8143
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8144
if test $ac_cv_header_sys_wait_h = yes; then
8145
 
8146
cat >>confdefs.h <<\_ACEOF
8147
#define HAVE_SYS_WAIT_H 1
8148
_ACEOF
8149
 
8150
fi
8151
 
8152
 
8153
 
8154
 
8155
 
8156
 
8157
 
8158
 
8159
 
8160
 
8161
 
8162
 
8163
 
8164
 
8165
 
8166
 
8167
 
8168
 
8169
 
8170
 
8171
 
8172
 
8173
 
8174
for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8175
                 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8176
                 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8177
                 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8178
do
8179
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180
echo "$as_me:$LINENO: checking for $ac_header" >&5
8181
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8182
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8183
  echo $ECHO_N "(cached) $ECHO_C" >&6
8184
else
8185
  cat >conftest.$ac_ext <<_ACEOF
8186
/* confdefs.h.  */
8187
_ACEOF
8188
cat confdefs.h >>conftest.$ac_ext
8189
cat >>conftest.$ac_ext <<_ACEOF
8190
/* end confdefs.h.  */
8191
#include <$ac_header>
8192
_ACEOF
8193
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8194
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8195
  ac_status=$?
8196
  grep -v '^ *+' conftest.er1 >conftest.err
8197
  rm -f conftest.er1
8198
  cat conftest.err >&5
8199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200
  (exit $ac_status); } >/dev/null; then
8201
  if test -s conftest.err; then
8202
    ac_cpp_err=$ac_c_preproc_warn_flag
8203
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8204
  else
8205
    ac_cpp_err=
8206
  fi
8207
else
8208
  ac_cpp_err=yes
8209
fi
8210
if test -z "$ac_cpp_err"; then
8211
  eval "$as_ac_Header=yes"
8212
else
8213
  echo "$as_me: failed program was:" >&5
8214
sed 's/^/| /' conftest.$ac_ext >&5
8215
 
8216
  eval "$as_ac_Header=no"
8217
fi
8218
rm -f conftest.err conftest.$ac_ext
8219
fi
8220
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8221
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8222
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8223
  cat >>confdefs.h <<_ACEOF
8224
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225
_ACEOF
8226
 
8227
fi
8228
done
8229
 
8230
 
8231
# Check for thread headers.
8232
echo "$as_me:$LINENO: checking for thread.h" >&5
8233
echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8234
if test "${ac_cv_header_thread_h+set}" = set; then
8235
  echo $ECHO_N "(cached) $ECHO_C" >&6
8236
else
8237
  cat >conftest.$ac_ext <<_ACEOF
8238
/* confdefs.h.  */
8239
_ACEOF
8240
cat confdefs.h >>conftest.$ac_ext
8241
cat >>conftest.$ac_ext <<_ACEOF
8242
/* end confdefs.h.  */
8243
#include 
8244
_ACEOF
8245
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8246
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8247
  ac_status=$?
8248
  grep -v '^ *+' conftest.er1 >conftest.err
8249
  rm -f conftest.er1
8250
  cat conftest.err >&5
8251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252
  (exit $ac_status); } >/dev/null; then
8253
  if test -s conftest.err; then
8254
    ac_cpp_err=$ac_c_preproc_warn_flag
8255
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8256
  else
8257
    ac_cpp_err=
8258
  fi
8259
else
8260
  ac_cpp_err=yes
8261
fi
8262
if test -z "$ac_cpp_err"; then
8263
  ac_cv_header_thread_h=yes
8264
else
8265
  echo "$as_me: failed program was:" >&5
8266
sed 's/^/| /' conftest.$ac_ext >&5
8267
 
8268
  ac_cv_header_thread_h=no
8269
fi
8270
rm -f conftest.err conftest.$ac_ext
8271
fi
8272
echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8273
echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8274
if test $ac_cv_header_thread_h = yes; then
8275
  have_thread_h=yes
8276
else
8277
  have_thread_h=
8278
fi
8279
 
8280
echo "$as_me:$LINENO: checking for pthread.h" >&5
8281
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8282
if test "${ac_cv_header_pthread_h+set}" = set; then
8283
  echo $ECHO_N "(cached) $ECHO_C" >&6
8284
else
8285
  cat >conftest.$ac_ext <<_ACEOF
8286
/* confdefs.h.  */
8287
_ACEOF
8288
cat confdefs.h >>conftest.$ac_ext
8289
cat >>conftest.$ac_ext <<_ACEOF
8290
/* end confdefs.h.  */
8291
#include 
8292
_ACEOF
8293
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8294
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8295
  ac_status=$?
8296
  grep -v '^ *+' conftest.er1 >conftest.err
8297
  rm -f conftest.er1
8298
  cat conftest.err >&5
8299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300
  (exit $ac_status); } >/dev/null; then
8301
  if test -s conftest.err; then
8302
    ac_cpp_err=$ac_c_preproc_warn_flag
8303
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8304
  else
8305
    ac_cpp_err=
8306
  fi
8307
else
8308
  ac_cpp_err=yes
8309
fi
8310
if test -z "$ac_cpp_err"; then
8311
  ac_cv_header_pthread_h=yes
8312
else
8313
  echo "$as_me: failed program was:" >&5
8314
sed 's/^/| /' conftest.$ac_ext >&5
8315
 
8316
  ac_cv_header_pthread_h=no
8317
fi
8318
rm -f conftest.err conftest.$ac_ext
8319
fi
8320
echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8321
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8322
if test $ac_cv_header_pthread_h = yes; then
8323
  have_pthread_h=yes
8324
else
8325
  have_pthread_h=
8326
fi
8327
 
8328
 
8329
# These tests can't be done till we know if we have limits.h.
8330
echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8331
echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8332
if test "${gcc_cv_decl_char_bit+set}" = set; then
8333
  echo $ECHO_N "(cached) $ECHO_C" >&6
8334
else
8335
  cat >conftest.$ac_ext <<_ACEOF
8336
/* confdefs.h.  */
8337
_ACEOF
8338
cat confdefs.h >>conftest.$ac_ext
8339
cat >>conftest.$ac_ext <<_ACEOF
8340
/* end confdefs.h.  */
8341
#ifdef HAVE_LIMITS_H
8342
#include 
8343
#endif
8344
#ifdef CHAR_BIT
8345
found
8346
#endif
8347
_ACEOF
8348
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8349
  $EGREP "found" >/dev/null 2>&1; then
8350
  gcc_cv_decl_char_bit=yes
8351
else
8352
  gcc_cv_decl_char_bit=no
8353
fi
8354
rm -f conftest*
8355
 
8356
 
8357
fi
8358
echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8359
echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8360
if test $gcc_cv_decl_char_bit = no; then
8361
  echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8362
echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8363
if test "${gcc_cv_c_nbby+set}" = set; then
8364
  echo $ECHO_N "(cached) $ECHO_C" >&6
8365
else
8366
  i=8
8367
 gcc_cv_c_nbby=
8368
 while test $i -lt 65; do
8369
   cat >conftest.$ac_ext <<_ACEOF
8370
/* confdefs.h.  */
8371
_ACEOF
8372
cat confdefs.h >>conftest.$ac_ext
8373
cat >>conftest.$ac_ext <<_ACEOF
8374
/* end confdefs.h.  */
8375
 
8376
int
8377
main ()
8378
{
8379
switch(0) {
8380
  case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8381
  case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8382
  ; }
8383
  ;
8384
  return 0;
8385
}
8386
_ACEOF
8387
rm -f conftest.$ac_objext
8388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389
  (eval $ac_compile) 2>conftest.er1
8390
  ac_status=$?
8391
  grep -v '^ *+' conftest.er1 >conftest.err
8392
  rm -f conftest.er1
8393
  cat conftest.err >&5
8394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395
  (exit $ac_status); } &&
8396
         { ac_try='test -z "$ac_c_werror_flag"
8397
                         || test ! -s conftest.err'
8398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399
  (eval $ac_try) 2>&5
8400
  ac_status=$?
8401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402
  (exit $ac_status); }; } &&
8403
         { ac_try='test -s conftest.$ac_objext'
8404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405
  (eval $ac_try) 2>&5
8406
  ac_status=$?
8407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408
  (exit $ac_status); }; }; then
8409
  gcc_cv_c_nbby=$i; break
8410
else
8411
  echo "$as_me: failed program was:" >&5
8412
sed 's/^/| /' conftest.$ac_ext >&5
8413
 
8414
fi
8415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416
   i=`expr $i + 1`
8417
 done
8418
 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8419
 
8420
fi
8421
echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8422
echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8423
if test $gcc_cv_c_nbby = failed; then
8424
  { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8425
echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8426
   { (exit 1); exit 1; }; }
8427
else
8428
 
8429
cat >>confdefs.h <<_ACEOF
8430
#define CHAR_BIT $gcc_cv_c_nbby
8431
_ACEOF
8432
 
8433
fi
8434
fi
8435
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8436
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8437
if test "${ac_cv_c_bigendian+set}" = set; then
8438
  echo $ECHO_N "(cached) $ECHO_C" >&6
8439
else
8440
  # See if sys/param.h defines the BYTE_ORDER macro.
8441
cat >conftest.$ac_ext <<_ACEOF
8442
/* confdefs.h.  */
8443
_ACEOF
8444
cat confdefs.h >>conftest.$ac_ext
8445
cat >>conftest.$ac_ext <<_ACEOF
8446
/* end confdefs.h.  */
8447
#include 
8448
#include 
8449
 
8450
int
8451
main ()
8452
{
8453
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8454
 bogus endian macros
8455
#endif
8456
 
8457
  ;
8458
  return 0;
8459
}
8460
_ACEOF
8461
rm -f conftest.$ac_objext
8462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8463
  (eval $ac_compile) 2>conftest.er1
8464
  ac_status=$?
8465
  grep -v '^ *+' conftest.er1 >conftest.err
8466
  rm -f conftest.er1
8467
  cat conftest.err >&5
8468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469
  (exit $ac_status); } &&
8470
         { ac_try='test -z "$ac_c_werror_flag"
8471
                         || test ! -s conftest.err'
8472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473
  (eval $ac_try) 2>&5
8474
  ac_status=$?
8475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476
  (exit $ac_status); }; } &&
8477
         { ac_try='test -s conftest.$ac_objext'
8478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479
  (eval $ac_try) 2>&5
8480
  ac_status=$?
8481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482
  (exit $ac_status); }; }; then
8483
  # It does; now see whether it defined to BIG_ENDIAN or not.
8484
cat >conftest.$ac_ext <<_ACEOF
8485
/* confdefs.h.  */
8486
_ACEOF
8487
cat confdefs.h >>conftest.$ac_ext
8488
cat >>conftest.$ac_ext <<_ACEOF
8489
/* end confdefs.h.  */
8490
#include 
8491
#include 
8492
 
8493
int
8494
main ()
8495
{
8496
#if BYTE_ORDER != BIG_ENDIAN
8497
 not big endian
8498
#endif
8499
 
8500
  ;
8501
  return 0;
8502
}
8503
_ACEOF
8504
rm -f conftest.$ac_objext
8505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506
  (eval $ac_compile) 2>conftest.er1
8507
  ac_status=$?
8508
  grep -v '^ *+' conftest.er1 >conftest.err
8509
  rm -f conftest.er1
8510
  cat conftest.err >&5
8511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
  (exit $ac_status); } &&
8513
         { ac_try='test -z "$ac_c_werror_flag"
8514
                         || test ! -s conftest.err'
8515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516
  (eval $ac_try) 2>&5
8517
  ac_status=$?
8518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519
  (exit $ac_status); }; } &&
8520
         { ac_try='test -s conftest.$ac_objext'
8521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522
  (eval $ac_try) 2>&5
8523
  ac_status=$?
8524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525
  (exit $ac_status); }; }; then
8526
  ac_cv_c_bigendian=yes
8527
else
8528
  echo "$as_me: failed program was:" >&5
8529
sed 's/^/| /' conftest.$ac_ext >&5
8530
 
8531
ac_cv_c_bigendian=no
8532
fi
8533
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8534
else
8535
  echo "$as_me: failed program was:" >&5
8536
sed 's/^/| /' conftest.$ac_ext >&5
8537
 
8538
# It does not; compile a test program.
8539
if test "$cross_compiling" = yes; then
8540
  # try to guess the endianness by grepping values into an object file
8541
  ac_cv_c_bigendian=unknown
8542
  cat >conftest.$ac_ext <<_ACEOF
8543
/* confdefs.h.  */
8544
_ACEOF
8545
cat confdefs.h >>conftest.$ac_ext
8546
cat >>conftest.$ac_ext <<_ACEOF
8547
/* end confdefs.h.  */
8548
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8549
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8550
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8551
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8552
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8553
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8554
int
8555
main ()
8556
{
8557
 _ascii (); _ebcdic ();
8558
  ;
8559
  return 0;
8560
}
8561
_ACEOF
8562
rm -f conftest.$ac_objext
8563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564
  (eval $ac_compile) 2>conftest.er1
8565
  ac_status=$?
8566
  grep -v '^ *+' conftest.er1 >conftest.err
8567
  rm -f conftest.er1
8568
  cat conftest.err >&5
8569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570
  (exit $ac_status); } &&
8571
         { ac_try='test -z "$ac_c_werror_flag"
8572
                         || test ! -s conftest.err'
8573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574
  (eval $ac_try) 2>&5
8575
  ac_status=$?
8576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577
  (exit $ac_status); }; } &&
8578
         { ac_try='test -s conftest.$ac_objext'
8579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580
  (eval $ac_try) 2>&5
8581
  ac_status=$?
8582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583
  (exit $ac_status); }; }; then
8584
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8585
  ac_cv_c_bigendian=yes
8586
fi
8587
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8588
  if test "$ac_cv_c_bigendian" = unknown; then
8589
    ac_cv_c_bigendian=no
8590
  else
8591
    # finding both strings is unlikely to happen, but who knows?
8592
    ac_cv_c_bigendian=unknown
8593
  fi
8594
fi
8595
else
8596
  echo "$as_me: failed program was:" >&5
8597
sed 's/^/| /' conftest.$ac_ext >&5
8598
 
8599
fi
8600
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601
else
8602
  cat >conftest.$ac_ext <<_ACEOF
8603
/* confdefs.h.  */
8604
_ACEOF
8605
cat confdefs.h >>conftest.$ac_ext
8606
cat >>conftest.$ac_ext <<_ACEOF
8607
/* end confdefs.h.  */
8608
int
8609
main ()
8610
{
8611
  /* Are we little or big endian?  From Harbison&Steele.  */
8612
  union
8613
  {
8614
    long l;
8615
    char c[sizeof (long)];
8616
  } u;
8617
  u.l = 1;
8618
  exit (u.c[sizeof (long) - 1] == 1);
8619
}
8620
_ACEOF
8621
rm -f conftest$ac_exeext
8622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623
  (eval $ac_link) 2>&5
8624
  ac_status=$?
8625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628
  (eval $ac_try) 2>&5
8629
  ac_status=$?
8630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631
  (exit $ac_status); }; }; then
8632
  ac_cv_c_bigendian=no
8633
else
8634
  echo "$as_me: program exited with status $ac_status" >&5
8635
echo "$as_me: failed program was:" >&5
8636
sed 's/^/| /' conftest.$ac_ext >&5
8637
 
8638
( exit $ac_status )
8639
ac_cv_c_bigendian=yes
8640
fi
8641
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8642
fi
8643
fi
8644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645
fi
8646
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8647
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8648
case $ac_cv_c_bigendian in
8649
  yes)
8650
 
8651
cat >>confdefs.h <<\_ACEOF
8652
#define WORDS_BIGENDIAN 1
8653
_ACEOF
8654
 ;;
8655
  no)
8656
     ;;
8657
  *)
8658
    { { echo "$as_me:$LINENO: error: unknown endianness
8659
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8660
echo "$as_me: error: unknown endianness
8661
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8662
   { (exit 1); exit 1; }; } ;;
8663
esac
8664
 
8665
 
8666
# --------
8667
# UNSORTED
8668
# --------
8669
 
8670
# Stage specific cflags for build.
8671
stage1_cflags=
8672
case $build in
8673
vax-*-*)
8674
  if test x$GCC = xyes
8675
  then
8676
    stage1_cflags="-Wa,-J"
8677
  else
8678
    stage1_cflags="-J"
8679
  fi
8680
  ;;
8681
powerpc-*-darwin*)
8682
  # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8683
  # sources; use -no-cpp-precomp to get to GNU cpp.
8684
  # Apple's GCC has bugs in designated initializer handling, so disable
8685
  # that too.
8686
  stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8687
  ;;
8688
esac
8689
 
8690
 
8691
# These libraries may be used by collect2.
8692
# We may need a special search path to get them linked.
8693
echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8694
echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8695
if test "${gcc_cv_collect2_libs+set}" = set; then
8696
  echo $ECHO_N "(cached) $ECHO_C" >&6
8697
else
8698
  save_LIBS="$LIBS"
8699
for libs in '' -lld -lmld \
8700
                '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8701
                '-L/usr/lib/cmplrs/cc3.11 -lmld'
8702
do
8703
        LIBS="$libs"
8704
        cat >conftest.$ac_ext <<_ACEOF
8705
/* confdefs.h.  */
8706
_ACEOF
8707
cat confdefs.h >>conftest.$ac_ext
8708
cat >>conftest.$ac_ext <<_ACEOF
8709
/* end confdefs.h.  */
8710
 
8711
/* Override any gcc2 internal prototype to avoid an error.  */
8712
#ifdef __cplusplus
8713
extern "C"
8714
#endif
8715
/* We use char because int might match the return type of a gcc2
8716
   builtin and then its argument prototype would still apply.  */
8717
char ldopen ();
8718
int
8719
main ()
8720
{
8721
ldopen ();
8722
  ;
8723
  return 0;
8724
}
8725
_ACEOF
8726
rm -f conftest.$ac_objext conftest$ac_exeext
8727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728
  (eval $ac_link) 2>conftest.er1
8729
  ac_status=$?
8730
  grep -v '^ *+' conftest.er1 >conftest.err
8731
  rm -f conftest.er1
8732
  cat conftest.err >&5
8733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734
  (exit $ac_status); } &&
8735
         { ac_try='test -z "$ac_c_werror_flag"
8736
                         || test ! -s conftest.err'
8737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738
  (eval $ac_try) 2>&5
8739
  ac_status=$?
8740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
  (exit $ac_status); }; } &&
8742
         { ac_try='test -s conftest$ac_exeext'
8743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744
  (eval $ac_try) 2>&5
8745
  ac_status=$?
8746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747
  (exit $ac_status); }; }; then
8748
  gcc_cv_collect2_libs="$libs"; break
8749
else
8750
  echo "$as_me: failed program was:" >&5
8751
sed 's/^/| /' conftest.$ac_ext >&5
8752
 
8753
fi
8754
rm -f conftest.err conftest.$ac_objext \
8755
      conftest$ac_exeext conftest.$ac_ext
8756
done
8757
LIBS="$save_LIBS"
8758
test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8759
fi
8760
echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8761
echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8762
case $gcc_cv_collect2_libs in
8763
        "none required")        ;;
8764
        *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8765
esac
8766
 
8767
 
8768
# When building Ada code on Alpha, we need exc_resume which is usually in
8769
# -lexc.  So test for it.
8770
save_LIBS="$LIBS"
8771
LIBS=
8772
echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8773
echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8774
if test "${ac_cv_search_exc_resume+set}" = set; then
8775
  echo $ECHO_N "(cached) $ECHO_C" >&6
8776
else
8777
  ac_func_search_save_LIBS=$LIBS
8778
ac_cv_search_exc_resume=no
8779
cat >conftest.$ac_ext <<_ACEOF
8780
/* confdefs.h.  */
8781
_ACEOF
8782
cat confdefs.h >>conftest.$ac_ext
8783
cat >>conftest.$ac_ext <<_ACEOF
8784
/* end confdefs.h.  */
8785
 
8786
/* Override any gcc2 internal prototype to avoid an error.  */
8787
#ifdef __cplusplus
8788
extern "C"
8789
#endif
8790
/* We use char because int might match the return type of a gcc2
8791
   builtin and then its argument prototype would still apply.  */
8792
char exc_resume ();
8793
int
8794
main ()
8795
{
8796
exc_resume ();
8797
  ;
8798
  return 0;
8799
}
8800
_ACEOF
8801
rm -f conftest.$ac_objext conftest$ac_exeext
8802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803
  (eval $ac_link) 2>conftest.er1
8804
  ac_status=$?
8805
  grep -v '^ *+' conftest.er1 >conftest.err
8806
  rm -f conftest.er1
8807
  cat conftest.err >&5
8808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809
  (exit $ac_status); } &&
8810
         { ac_try='test -z "$ac_c_werror_flag"
8811
                         || test ! -s conftest.err'
8812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813
  (eval $ac_try) 2>&5
8814
  ac_status=$?
8815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
  (exit $ac_status); }; } &&
8817
         { ac_try='test -s conftest$ac_exeext'
8818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819
  (eval $ac_try) 2>&5
8820
  ac_status=$?
8821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822
  (exit $ac_status); }; }; then
8823
  ac_cv_search_exc_resume="none required"
8824
else
8825
  echo "$as_me: failed program was:" >&5
8826
sed 's/^/| /' conftest.$ac_ext >&5
8827
 
8828
fi
8829
rm -f conftest.err conftest.$ac_objext \
8830
      conftest$ac_exeext conftest.$ac_ext
8831
if test "$ac_cv_search_exc_resume" = no; then
8832
  for ac_lib in exc; do
8833
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8834
    cat >conftest.$ac_ext <<_ACEOF
8835
/* confdefs.h.  */
8836
_ACEOF
8837
cat confdefs.h >>conftest.$ac_ext
8838
cat >>conftest.$ac_ext <<_ACEOF
8839
/* end confdefs.h.  */
8840
 
8841
/* Override any gcc2 internal prototype to avoid an error.  */
8842
#ifdef __cplusplus
8843
extern "C"
8844
#endif
8845
/* We use char because int might match the return type of a gcc2
8846
   builtin and then its argument prototype would still apply.  */
8847
char exc_resume ();
8848
int
8849
main ()
8850
{
8851
exc_resume ();
8852
  ;
8853
  return 0;
8854
}
8855
_ACEOF
8856
rm -f conftest.$ac_objext conftest$ac_exeext
8857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858
  (eval $ac_link) 2>conftest.er1
8859
  ac_status=$?
8860
  grep -v '^ *+' conftest.er1 >conftest.err
8861
  rm -f conftest.er1
8862
  cat conftest.err >&5
8863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864
  (exit $ac_status); } &&
8865
         { ac_try='test -z "$ac_c_werror_flag"
8866
                         || test ! -s conftest.err'
8867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868
  (eval $ac_try) 2>&5
8869
  ac_status=$?
8870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871
  (exit $ac_status); }; } &&
8872
         { ac_try='test -s conftest$ac_exeext'
8873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874
  (eval $ac_try) 2>&5
8875
  ac_status=$?
8876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877
  (exit $ac_status); }; }; then
8878
  ac_cv_search_exc_resume="-l$ac_lib"
8879
break
8880
else
8881
  echo "$as_me: failed program was:" >&5
8882
sed 's/^/| /' conftest.$ac_ext >&5
8883
 
8884
fi
8885
rm -f conftest.err conftest.$ac_objext \
8886
      conftest$ac_exeext conftest.$ac_ext
8887
  done
8888
fi
8889
LIBS=$ac_func_search_save_LIBS
8890
fi
8891
echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8892
echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8893
if test "$ac_cv_search_exc_resume" != no; then
8894
  test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8895
 
8896
fi
8897
 
8898
GNAT_LIBEXC="$LIBS"
8899
LIBS="$save_LIBS"
8900
 
8901
 
8902
# Some systems put ldexp and frexp in libm instead of libc; assume
8903
# they're both in the same place.  jcf-dump needs them.
8904
save_LIBS="$LIBS"
8905
LIBS=
8906
echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8907
echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8908
if test "${ac_cv_search_ldexp+set}" = set; then
8909
  echo $ECHO_N "(cached) $ECHO_C" >&6
8910
else
8911
  ac_func_search_save_LIBS=$LIBS
8912
ac_cv_search_ldexp=no
8913
cat >conftest.$ac_ext <<_ACEOF
8914
/* confdefs.h.  */
8915
_ACEOF
8916
cat confdefs.h >>conftest.$ac_ext
8917
cat >>conftest.$ac_ext <<_ACEOF
8918
/* end confdefs.h.  */
8919
 
8920
/* Override any gcc2 internal prototype to avoid an error.  */
8921
#ifdef __cplusplus
8922
extern "C"
8923
#endif
8924
/* We use char because int might match the return type of a gcc2
8925
   builtin and then its argument prototype would still apply.  */
8926
char ldexp ();
8927
int
8928
main ()
8929
{
8930
ldexp ();
8931
  ;
8932
  return 0;
8933
}
8934
_ACEOF
8935
rm -f conftest.$ac_objext conftest$ac_exeext
8936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937
  (eval $ac_link) 2>conftest.er1
8938
  ac_status=$?
8939
  grep -v '^ *+' conftest.er1 >conftest.err
8940
  rm -f conftest.er1
8941
  cat conftest.err >&5
8942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943
  (exit $ac_status); } &&
8944
         { ac_try='test -z "$ac_c_werror_flag"
8945
                         || test ! -s conftest.err'
8946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947
  (eval $ac_try) 2>&5
8948
  ac_status=$?
8949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
  (exit $ac_status); }; } &&
8951
         { ac_try='test -s conftest$ac_exeext'
8952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953
  (eval $ac_try) 2>&5
8954
  ac_status=$?
8955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956
  (exit $ac_status); }; }; then
8957
  ac_cv_search_ldexp="none required"
8958
else
8959
  echo "$as_me: failed program was:" >&5
8960
sed 's/^/| /' conftest.$ac_ext >&5
8961
 
8962
fi
8963
rm -f conftest.err conftest.$ac_objext \
8964
      conftest$ac_exeext conftest.$ac_ext
8965
if test "$ac_cv_search_ldexp" = no; then
8966
  for ac_lib in m; do
8967
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8968
    cat >conftest.$ac_ext <<_ACEOF
8969
/* confdefs.h.  */
8970
_ACEOF
8971
cat confdefs.h >>conftest.$ac_ext
8972
cat >>conftest.$ac_ext <<_ACEOF
8973
/* end confdefs.h.  */
8974
 
8975
/* Override any gcc2 internal prototype to avoid an error.  */
8976
#ifdef __cplusplus
8977
extern "C"
8978
#endif
8979
/* We use char because int might match the return type of a gcc2
8980
   builtin and then its argument prototype would still apply.  */
8981
char ldexp ();
8982
int
8983
main ()
8984
{
8985
ldexp ();
8986
  ;
8987
  return 0;
8988
}
8989
_ACEOF
8990
rm -f conftest.$ac_objext conftest$ac_exeext
8991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8992
  (eval $ac_link) 2>conftest.er1
8993
  ac_status=$?
8994
  grep -v '^ *+' conftest.er1 >conftest.err
8995
  rm -f conftest.er1
8996
  cat conftest.err >&5
8997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998
  (exit $ac_status); } &&
8999
         { ac_try='test -z "$ac_c_werror_flag"
9000
                         || test ! -s conftest.err'
9001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002
  (eval $ac_try) 2>&5
9003
  ac_status=$?
9004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005
  (exit $ac_status); }; } &&
9006
         { ac_try='test -s conftest$ac_exeext'
9007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008
  (eval $ac_try) 2>&5
9009
  ac_status=$?
9010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011
  (exit $ac_status); }; }; then
9012
  ac_cv_search_ldexp="-l$ac_lib"
9013
break
9014
else
9015
  echo "$as_me: failed program was:" >&5
9016
sed 's/^/| /' conftest.$ac_ext >&5
9017
 
9018
fi
9019
rm -f conftest.err conftest.$ac_objext \
9020
      conftest$ac_exeext conftest.$ac_ext
9021
  done
9022
fi
9023
LIBS=$ac_func_search_save_LIBS
9024
fi
9025
echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9026
echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9027
if test "$ac_cv_search_ldexp" != no; then
9028
  test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9029
 
9030
fi
9031
 
9032
LDEXP_LIB="$LIBS"
9033
LIBS="$save_LIBS"
9034
 
9035
 
9036
# Use  only if it exists,
9037
# doesn't clash with , and declares intmax_t.
9038
echo "$as_me:$LINENO: checking for inttypes.h" >&5
9039
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9040
if test "${gcc_cv_header_inttypes_h+set}" = set; then
9041
  echo $ECHO_N "(cached) $ECHO_C" >&6
9042
else
9043
  cat >conftest.$ac_ext <<_ACEOF
9044
/* confdefs.h.  */
9045
_ACEOF
9046
cat confdefs.h >>conftest.$ac_ext
9047
cat >>conftest.$ac_ext <<_ACEOF
9048
/* end confdefs.h.  */
9049
#include 
9050
#include 
9051
int
9052
main ()
9053
{
9054
intmax_t i = -1;
9055
  ;
9056
  return 0;
9057
}
9058
_ACEOF
9059
rm -f conftest.$ac_objext
9060
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061
  (eval $ac_compile) 2>conftest.er1
9062
  ac_status=$?
9063
  grep -v '^ *+' conftest.er1 >conftest.err
9064
  rm -f conftest.er1
9065
  cat conftest.err >&5
9066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067
  (exit $ac_status); } &&
9068
         { ac_try='test -z "$ac_c_werror_flag"
9069
                         || test ! -s conftest.err'
9070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071
  (eval $ac_try) 2>&5
9072
  ac_status=$?
9073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074
  (exit $ac_status); }; } &&
9075
         { ac_try='test -s conftest.$ac_objext'
9076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077
  (eval $ac_try) 2>&5
9078
  ac_status=$?
9079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080
  (exit $ac_status); }; }; then
9081
  gcc_cv_header_inttypes_h=yes
9082
else
9083
  echo "$as_me: failed program was:" >&5
9084
sed 's/^/| /' conftest.$ac_ext >&5
9085
 
9086
gcc_cv_header_inttypes_h=no
9087
fi
9088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9089
fi
9090
 
9091
echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9092
echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9093
if test $gcc_cv_header_inttypes_h = yes; then
9094
 
9095
cat >>confdefs.h <<\_ACEOF
9096
#define HAVE_INTTYPES_H 1
9097
_ACEOF
9098
 
9099
fi
9100
 
9101
 
9102
 
9103
 
9104
 
9105
 
9106
 
9107
 
9108
 
9109
 
9110
 
9111
 
9112
 
9113
 
9114
 
9115
 
9116
 
9117
 
9118
 
9119
 
9120
 
9121
 
9122
 
9123
 
9124
 
9125
 
9126
 
9127
 
9128
 
9129
 
9130
 
9131
 
9132
 
9133
 
9134
 
9135
 
9136
 
9137
 
9138
for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9139
        sysconf strsignal getrusage nl_langinfo scandir alphasort \
9140
        gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9141
        clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9142
do
9143
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9144
echo "$as_me:$LINENO: checking for $ac_func" >&5
9145
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9146
if eval "test \"\${$as_ac_var+set}\" = set"; then
9147
  echo $ECHO_N "(cached) $ECHO_C" >&6
9148
else
9149
  cat >conftest.$ac_ext <<_ACEOF
9150
/* confdefs.h.  */
9151
_ACEOF
9152
cat confdefs.h >>conftest.$ac_ext
9153
cat >>conftest.$ac_ext <<_ACEOF
9154
/* end confdefs.h.  */
9155
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
9156
   For example, HP-UX 11i  declares gettimeofday.  */
9157
#define $ac_func innocuous_$ac_func
9158
 
9159
/* System header to define __stub macros and hopefully few prototypes,
9160
    which can conflict with char $ac_func (); below.
9161
    Prefer  to  if __STDC__ is defined, since
9162
     exists even on freestanding compilers.  */
9163
 
9164
#ifdef __STDC__
9165
# include 
9166
#else
9167
# include 
9168
#endif
9169
 
9170
#undef $ac_func
9171
 
9172
/* Override any gcc2 internal prototype to avoid an error.  */
9173
#ifdef __cplusplus
9174
extern "C"
9175
{
9176
#endif
9177
/* We use char because int might match the return type of a gcc2
9178
   builtin and then its argument prototype would still apply.  */
9179
char $ac_func ();
9180
/* The GNU C library defines this for functions which it implements
9181
    to always fail with ENOSYS.  Some functions are actually named
9182
    something starting with __ and the normal name is an alias.  */
9183
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9184
choke me
9185
#else
9186
char (*f) () = $ac_func;
9187
#endif
9188
#ifdef __cplusplus
9189
}
9190
#endif
9191
 
9192
int
9193
main ()
9194
{
9195
return f != $ac_func;
9196
  ;
9197
  return 0;
9198
}
9199
_ACEOF
9200
rm -f conftest.$ac_objext conftest$ac_exeext
9201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9202
  (eval $ac_link) 2>conftest.er1
9203
  ac_status=$?
9204
  grep -v '^ *+' conftest.er1 >conftest.err
9205
  rm -f conftest.er1
9206
  cat conftest.err >&5
9207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208
  (exit $ac_status); } &&
9209
         { ac_try='test -z "$ac_c_werror_flag"
9210
                         || test ! -s conftest.err'
9211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212
  (eval $ac_try) 2>&5
9213
  ac_status=$?
9214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215
  (exit $ac_status); }; } &&
9216
         { ac_try='test -s conftest$ac_exeext'
9217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218
  (eval $ac_try) 2>&5
9219
  ac_status=$?
9220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221
  (exit $ac_status); }; }; then
9222
  eval "$as_ac_var=yes"
9223
else
9224
  echo "$as_me: failed program was:" >&5
9225
sed 's/^/| /' conftest.$ac_ext >&5
9226
 
9227
eval "$as_ac_var=no"
9228
fi
9229
rm -f conftest.err conftest.$ac_objext \
9230
      conftest$ac_exeext conftest.$ac_ext
9231
fi
9232
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9233
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9234
if test `eval echo '${'$as_ac_var'}'` = yes; then
9235
  cat >>confdefs.h <<_ACEOF
9236
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9237
_ACEOF
9238
 
9239
fi
9240
done
9241
 
9242
 
9243
if test x$ac_cv_func_mbstowcs = xyes; then
9244
  echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9245
echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9246
if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9247
  echo $ECHO_N "(cached) $ECHO_C" >&6
9248
else
9249
      if test "$cross_compiling" = yes; then
9250
  gcc_cv_func_mbstowcs_works=yes
9251
else
9252
  cat >conftest.$ac_ext <<_ACEOF
9253
/* confdefs.h.  */
9254
_ACEOF
9255
cat confdefs.h >>conftest.$ac_ext
9256
cat >>conftest.$ac_ext <<_ACEOF
9257
/* end confdefs.h.  */
9258
#include 
9259
int main()
9260
{
9261
  mbstowcs(0, "", 0);
9262
  return 0;
9263
}
9264
_ACEOF
9265
rm -f conftest$ac_exeext
9266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9267
  (eval $ac_link) 2>&5
9268
  ac_status=$?
9269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272
  (eval $ac_try) 2>&5
9273
  ac_status=$?
9274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275
  (exit $ac_status); }; }; then
9276
  gcc_cv_func_mbstowcs_works=yes
9277
else
9278
  echo "$as_me: program exited with status $ac_status" >&5
9279
echo "$as_me: failed program was:" >&5
9280
sed 's/^/| /' conftest.$ac_ext >&5
9281
 
9282
( exit $ac_status )
9283
gcc_cv_func_mbstowcs_works=no
9284
fi
9285
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9286
fi
9287
fi
9288
echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9289
echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9290
  if test x$gcc_cv_func_mbstowcs_works = xyes; then
9291
 
9292
cat >>confdefs.h <<\_ACEOF
9293
#define HAVE_WORKING_MBSTOWCS 1
9294
_ACEOF
9295
 
9296
  fi
9297
fi
9298
 
9299
echo "$as_me:$LINENO: checking for ssize_t" >&5
9300
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9301
if test "${ac_cv_type_ssize_t+set}" = set; then
9302
  echo $ECHO_N "(cached) $ECHO_C" >&6
9303
else
9304
  cat >conftest.$ac_ext <<_ACEOF
9305
/* confdefs.h.  */
9306
_ACEOF
9307
cat confdefs.h >>conftest.$ac_ext
9308
cat >>conftest.$ac_ext <<_ACEOF
9309
/* end confdefs.h.  */
9310
$ac_includes_default
9311
int
9312
main ()
9313
{
9314
if ((ssize_t *) 0)
9315
  return 0;
9316
if (sizeof (ssize_t))
9317
  return 0;
9318
  ;
9319
  return 0;
9320
}
9321
_ACEOF
9322
rm -f conftest.$ac_objext
9323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324
  (eval $ac_compile) 2>conftest.er1
9325
  ac_status=$?
9326
  grep -v '^ *+' conftest.er1 >conftest.err
9327
  rm -f conftest.er1
9328
  cat conftest.err >&5
9329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330
  (exit $ac_status); } &&
9331
         { ac_try='test -z "$ac_c_werror_flag"
9332
                         || test ! -s conftest.err'
9333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334
  (eval $ac_try) 2>&5
9335
  ac_status=$?
9336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337
  (exit $ac_status); }; } &&
9338
         { ac_try='test -s conftest.$ac_objext'
9339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340
  (eval $ac_try) 2>&5
9341
  ac_status=$?
9342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343
  (exit $ac_status); }; }; then
9344
  ac_cv_type_ssize_t=yes
9345
else
9346
  echo "$as_me: failed program was:" >&5
9347
sed 's/^/| /' conftest.$ac_ext >&5
9348
 
9349
ac_cv_type_ssize_t=no
9350
fi
9351
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352
fi
9353
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9354
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9355
if test $ac_cv_type_ssize_t = yes; then
9356
  :
9357
else
9358
 
9359
cat >>confdefs.h <<_ACEOF
9360
#define ssize_t int
9361
_ACEOF
9362
 
9363
fi
9364
 
9365
 
9366
# Try to determine the array type of the second argument of getgroups
9367
# for the target system (int or gid_t).
9368
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9369
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9370
if test "${ac_cv_type_uid_t+set}" = set; then
9371
  echo $ECHO_N "(cached) $ECHO_C" >&6
9372
else
9373
  cat >conftest.$ac_ext <<_ACEOF
9374
/* confdefs.h.  */
9375
_ACEOF
9376
cat confdefs.h >>conftest.$ac_ext
9377
cat >>conftest.$ac_ext <<_ACEOF
9378
/* end confdefs.h.  */
9379
#include 
9380
 
9381
_ACEOF
9382
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9383
  $EGREP "uid_t" >/dev/null 2>&1; then
9384
  ac_cv_type_uid_t=yes
9385
else
9386
  ac_cv_type_uid_t=no
9387
fi
9388
rm -f conftest*
9389
 
9390
fi
9391
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9392
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9393
if test $ac_cv_type_uid_t = no; then
9394
 
9395
cat >>confdefs.h <<\_ACEOF
9396
#define uid_t int
9397
_ACEOF
9398
 
9399
 
9400
cat >>confdefs.h <<\_ACEOF
9401
#define gid_t int
9402
_ACEOF
9403
 
9404
fi
9405
 
9406
echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9407
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9408
if test "${ac_cv_type_getgroups+set}" = set; then
9409
  echo $ECHO_N "(cached) $ECHO_C" >&6
9410
else
9411
  if test "$cross_compiling" = yes; then
9412
  ac_cv_type_getgroups=cross
9413
else
9414
  cat >conftest.$ac_ext <<_ACEOF
9415
/* confdefs.h.  */
9416
_ACEOF
9417
cat confdefs.h >>conftest.$ac_ext
9418
cat >>conftest.$ac_ext <<_ACEOF
9419
/* end confdefs.h.  */
9420
/* Thanks to Mike Rendell for this test.  */
9421
#include 
9422
#define NGID 256
9423
#undef MAX
9424
#define MAX(x, y) ((x) > (y) ? (x) : (y))
9425
 
9426
int
9427
main ()
9428
{
9429
  gid_t gidset[NGID];
9430
  int i, n;
9431
  union { gid_t gval; long lval; }  val;
9432
 
9433
  val.lval = -1;
9434
  for (i = 0; i < NGID; i++)
9435
    gidset[i] = val.gval;
9436
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9437
                 gidset);
9438
  /* Exit non-zero if getgroups seems to require an array of ints.  This
9439
     happens when gid_t is short but getgroups modifies an array of ints.  */
9440
  exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9441
}
9442
_ACEOF
9443
rm -f conftest$ac_exeext
9444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445
  (eval $ac_link) 2>&5
9446
  ac_status=$?
9447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450
  (eval $ac_try) 2>&5
9451
  ac_status=$?
9452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453
  (exit $ac_status); }; }; then
9454
  ac_cv_type_getgroups=gid_t
9455
else
9456
  echo "$as_me: program exited with status $ac_status" >&5
9457
echo "$as_me: failed program was:" >&5
9458
sed 's/^/| /' conftest.$ac_ext >&5
9459
 
9460
( exit $ac_status )
9461
ac_cv_type_getgroups=int
9462
fi
9463
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9464
fi
9465
if test $ac_cv_type_getgroups = cross; then
9466
        cat >conftest.$ac_ext <<_ACEOF
9467
/* confdefs.h.  */
9468
_ACEOF
9469
cat confdefs.h >>conftest.$ac_ext
9470
cat >>conftest.$ac_ext <<_ACEOF
9471
/* end confdefs.h.  */
9472
#include 
9473
 
9474
_ACEOF
9475
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9476
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9477
  ac_cv_type_getgroups=gid_t
9478
else
9479
  ac_cv_type_getgroups=int
9480
fi
9481
rm -f conftest*
9482
 
9483
fi
9484
fi
9485
echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9486
echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9487
 
9488
cat >>confdefs.h <<_ACEOF
9489
#define GETGROUPS_T $ac_cv_type_getgroups
9490
_ACEOF
9491
 
9492
 
9493
if test "${target}" = "${build}"; then
9494
  TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9495
else
9496
  case "${target}" in
9497
        # This condition may need some tweaking.  It should include all
9498
        # targets where the array type of the second argument of getgroups
9499
        # is int and the type of gid_t is not equivalent to int.
9500
        *-*-sunos* | *-*-ultrix*)
9501
                TARGET_GETGROUPS_T=int
9502
                ;;
9503
        *)
9504
                TARGET_GETGROUPS_T=gid_t
9505
                ;;
9506
  esac
9507
fi
9508
 
9509
 
9510
 
9511
echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9512
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9513
if test "${ac_cv_header_sys_mman_h+set}" = set; then
9514
  echo $ECHO_N "(cached) $ECHO_C" >&6
9515
else
9516
  cat >conftest.$ac_ext <<_ACEOF
9517
/* confdefs.h.  */
9518
_ACEOF
9519
cat confdefs.h >>conftest.$ac_ext
9520
cat >>conftest.$ac_ext <<_ACEOF
9521
/* end confdefs.h.  */
9522
#include 
9523
_ACEOF
9524
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9525
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9526
  ac_status=$?
9527
  grep -v '^ *+' conftest.er1 >conftest.err
9528
  rm -f conftest.er1
9529
  cat conftest.err >&5
9530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531
  (exit $ac_status); } >/dev/null; then
9532
  if test -s conftest.err; then
9533
    ac_cpp_err=$ac_c_preproc_warn_flag
9534
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9535
  else
9536
    ac_cpp_err=
9537
  fi
9538
else
9539
  ac_cpp_err=yes
9540
fi
9541
if test -z "$ac_cpp_err"; then
9542
  ac_cv_header_sys_mman_h=yes
9543
else
9544
  echo "$as_me: failed program was:" >&5
9545
sed 's/^/| /' conftest.$ac_ext >&5
9546
 
9547
  ac_cv_header_sys_mman_h=no
9548
fi
9549
rm -f conftest.err conftest.$ac_ext
9550
fi
9551
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9552
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9553
if test $ac_cv_header_sys_mman_h = yes; then
9554
  gcc_header_sys_mman_h=yes
9555
else
9556
  gcc_header_sys_mman_h=no
9557
fi
9558
 
9559
echo "$as_me:$LINENO: checking for mmap" >&5
9560
echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9561
if test "${ac_cv_func_mmap+set}" = set; then
9562
  echo $ECHO_N "(cached) $ECHO_C" >&6
9563
else
9564
  cat >conftest.$ac_ext <<_ACEOF
9565
/* confdefs.h.  */
9566
_ACEOF
9567
cat confdefs.h >>conftest.$ac_ext
9568
cat >>conftest.$ac_ext <<_ACEOF
9569
/* end confdefs.h.  */
9570
/* Define mmap to an innocuous variant, in case  declares mmap.
9571
   For example, HP-UX 11i  declares gettimeofday.  */
9572
#define mmap innocuous_mmap
9573
 
9574
/* System header to define __stub macros and hopefully few prototypes,
9575
    which can conflict with char mmap (); below.
9576
    Prefer  to  if __STDC__ is defined, since
9577
     exists even on freestanding compilers.  */
9578
 
9579
#ifdef __STDC__
9580
# include 
9581
#else
9582
# include 
9583
#endif
9584
 
9585
#undef mmap
9586
 
9587
/* Override any gcc2 internal prototype to avoid an error.  */
9588
#ifdef __cplusplus
9589
extern "C"
9590
{
9591
#endif
9592
/* We use char because int might match the return type of a gcc2
9593
   builtin and then its argument prototype would still apply.  */
9594
char mmap ();
9595
/* The GNU C library defines this for functions which it implements
9596
    to always fail with ENOSYS.  Some functions are actually named
9597
    something starting with __ and the normal name is an alias.  */
9598
#if defined (__stub_mmap) || defined (__stub___mmap)
9599
choke me
9600
#else
9601
char (*f) () = mmap;
9602
#endif
9603
#ifdef __cplusplus
9604
}
9605
#endif
9606
 
9607
int
9608
main ()
9609
{
9610
return f != mmap;
9611
  ;
9612
  return 0;
9613
}
9614
_ACEOF
9615
rm -f conftest.$ac_objext conftest$ac_exeext
9616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617
  (eval $ac_link) 2>conftest.er1
9618
  ac_status=$?
9619
  grep -v '^ *+' conftest.er1 >conftest.err
9620
  rm -f conftest.er1
9621
  cat conftest.err >&5
9622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623
  (exit $ac_status); } &&
9624
         { ac_try='test -z "$ac_c_werror_flag"
9625
                         || test ! -s conftest.err'
9626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627
  (eval $ac_try) 2>&5
9628
  ac_status=$?
9629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630
  (exit $ac_status); }; } &&
9631
         { ac_try='test -s conftest$ac_exeext'
9632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633
  (eval $ac_try) 2>&5
9634
  ac_status=$?
9635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636
  (exit $ac_status); }; }; then
9637
  ac_cv_func_mmap=yes
9638
else
9639
  echo "$as_me: failed program was:" >&5
9640
sed 's/^/| /' conftest.$ac_ext >&5
9641
 
9642
ac_cv_func_mmap=no
9643
fi
9644
rm -f conftest.err conftest.$ac_objext \
9645
      conftest$ac_exeext conftest.$ac_ext
9646
fi
9647
echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9648
echo "${ECHO_T}$ac_cv_func_mmap" >&6
9649
if test $ac_cv_func_mmap = yes; then
9650
  gcc_func_mmap=yes
9651
else
9652
  gcc_func_mmap=no
9653
fi
9654
 
9655
if test "$gcc_header_sys_mman_h" != yes \
9656
 || test "$gcc_func_mmap" != yes; then
9657
   gcc_cv_func_mmap_file=no
9658
   gcc_cv_func_mmap_dev_zero=no
9659
   gcc_cv_func_mmap_anon=no
9660
else
9661
   echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9662
echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9663
if test "${gcc_cv_func_mmap_file+set}" = set; then
9664
  echo $ECHO_N "(cached) $ECHO_C" >&6
9665
else
9666
  # Add a system to this blacklist if
9667
   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9668
   # memory area containing the same data that you'd get if you applied
9669
   # read() to the same fd.  The only system known to have a problem here
9670
   # is VMS, where text files have record structure.
9671
   case "$host_os" in
9672
     vms* | ultrix*)
9673
        gcc_cv_func_mmap_file=no ;;
9674
     *)
9675
        gcc_cv_func_mmap_file=yes;;
9676
   esac
9677
fi
9678
echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9679
echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9680
   echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9681
echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9682
if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9683
  echo $ECHO_N "(cached) $ECHO_C" >&6
9684
else
9685
  # Add a system to this blacklist if it has mmap() but /dev/zero
9686
   # does not exist, or if mmapping /dev/zero does not give anonymous
9687
   # zeroed pages with both the following properties:
9688
   # 1. If you map N consecutive pages in with one call, and then
9689
   #    unmap any subset of those pages, the pages that were not
9690
   #    explicitly unmapped remain accessible.
9691
   # 2. If you map two adjacent blocks of memory and then unmap them
9692
   #    both at once, they must both go away.
9693
   # Systems known to be in this category are Windows (all variants),
9694
   # VMS, and Darwin.
9695
   case "$host_os" in
9696
     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9697
        gcc_cv_func_mmap_dev_zero=no ;;
9698
     *)
9699
        gcc_cv_func_mmap_dev_zero=yes;;
9700
   esac
9701
fi
9702
echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9703
echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9704
 
9705
   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9706
   echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9707
echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9708
if test "${gcc_cv_decl_map_anon+set}" = set; then
9709
  echo $ECHO_N "(cached) $ECHO_C" >&6
9710
else
9711
  cat >conftest.$ac_ext <<_ACEOF
9712
/* confdefs.h.  */
9713
_ACEOF
9714
cat confdefs.h >>conftest.$ac_ext
9715
cat >>conftest.$ac_ext <<_ACEOF
9716
/* end confdefs.h.  */
9717
#include 
9718
#include 
9719
#include 
9720
 
9721
#ifndef MAP_ANONYMOUS
9722
#define MAP_ANONYMOUS MAP_ANON
9723
#endif
9724
 
9725
int
9726
main ()
9727
{
9728
int n = MAP_ANONYMOUS;
9729
  ;
9730
  return 0;
9731
}
9732
_ACEOF
9733
rm -f conftest.$ac_objext
9734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735
  (eval $ac_compile) 2>conftest.er1
9736
  ac_status=$?
9737
  grep -v '^ *+' conftest.er1 >conftest.err
9738
  rm -f conftest.er1
9739
  cat conftest.err >&5
9740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741
  (exit $ac_status); } &&
9742
         { ac_try='test -z "$ac_c_werror_flag"
9743
                         || test ! -s conftest.err'
9744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745
  (eval $ac_try) 2>&5
9746
  ac_status=$?
9747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748
  (exit $ac_status); }; } &&
9749
         { ac_try='test -s conftest.$ac_objext'
9750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751
  (eval $ac_try) 2>&5
9752
  ac_status=$?
9753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754
  (exit $ac_status); }; }; then
9755
  gcc_cv_decl_map_anon=yes
9756
else
9757
  echo "$as_me: failed program was:" >&5
9758
sed 's/^/| /' conftest.$ac_ext >&5
9759
 
9760
gcc_cv_decl_map_anon=no
9761
fi
9762
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9763
fi
9764
echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9765
echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9766
 
9767
   if test $gcc_cv_decl_map_anon = no; then
9768
     gcc_cv_func_mmap_anon=no
9769
   else
9770
     echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9771
echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9772
if test "${gcc_cv_func_mmap_anon+set}" = set; then
9773
  echo $ECHO_N "(cached) $ECHO_C" >&6
9774
else
9775
  # Add a system to this blacklist if it has mmap() and MAP_ANON or
9776
   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9777
   # doesn't give anonymous zeroed pages with the same properties listed
9778
   # above for use of /dev/zero.
9779
   # Systems known to be in this category are Windows, VMS, and SCO Unix.
9780
   case "$host_os" in
9781
     vms* | cygwin* | pe | mingw* | sco* | udk* )
9782
        gcc_cv_func_mmap_anon=no ;;
9783
     *)
9784
        gcc_cv_func_mmap_anon=yes;;
9785
   esac
9786
fi
9787
echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9788
echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9789
   fi
9790
fi
9791
 
9792
if test $gcc_cv_func_mmap_file = yes; then
9793
 
9794
cat >>confdefs.h <<\_ACEOF
9795
#define HAVE_MMAP_FILE 1
9796
_ACEOF
9797
 
9798
fi
9799
if test $gcc_cv_func_mmap_dev_zero = yes; then
9800
 
9801
cat >>confdefs.h <<\_ACEOF
9802
#define HAVE_MMAP_DEV_ZERO 1
9803
_ACEOF
9804
 
9805
fi
9806
if test $gcc_cv_func_mmap_anon = yes; then
9807
 
9808
cat >>confdefs.h <<\_ACEOF
9809
#define HAVE_MMAP_ANON 1
9810
_ACEOF
9811
 
9812
fi
9813
 
9814
 
9815
case "${host}" in
9816
*-*-*vms*)
9817
  # Under VMS, vfork works very differently than on Unix. The standard test
9818
  # won't work, and it isn't easily adaptable. It makes more sense to
9819
  # just force it.
9820
  ac_cv_func_vfork_works=yes
9821
  ;;
9822
esac
9823
echo "$as_me:$LINENO: checking for pid_t" >&5
9824
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9825
if test "${ac_cv_type_pid_t+set}" = set; then
9826
  echo $ECHO_N "(cached) $ECHO_C" >&6
9827
else
9828
  cat >conftest.$ac_ext <<_ACEOF
9829
/* confdefs.h.  */
9830
_ACEOF
9831
cat confdefs.h >>conftest.$ac_ext
9832
cat >>conftest.$ac_ext <<_ACEOF
9833
/* end confdefs.h.  */
9834
$ac_includes_default
9835
int
9836
main ()
9837
{
9838
if ((pid_t *) 0)
9839
  return 0;
9840
if (sizeof (pid_t))
9841
  return 0;
9842
  ;
9843
  return 0;
9844
}
9845
_ACEOF
9846
rm -f conftest.$ac_objext
9847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9848
  (eval $ac_compile) 2>conftest.er1
9849
  ac_status=$?
9850
  grep -v '^ *+' conftest.er1 >conftest.err
9851
  rm -f conftest.er1
9852
  cat conftest.err >&5
9853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854
  (exit $ac_status); } &&
9855
         { ac_try='test -z "$ac_c_werror_flag"
9856
                         || test ! -s conftest.err'
9857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858
  (eval $ac_try) 2>&5
9859
  ac_status=$?
9860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861
  (exit $ac_status); }; } &&
9862
         { ac_try='test -s conftest.$ac_objext'
9863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864
  (eval $ac_try) 2>&5
9865
  ac_status=$?
9866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867
  (exit $ac_status); }; }; then
9868
  ac_cv_type_pid_t=yes
9869
else
9870
  echo "$as_me: failed program was:" >&5
9871
sed 's/^/| /' conftest.$ac_ext >&5
9872
 
9873
ac_cv_type_pid_t=no
9874
fi
9875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9876
fi
9877
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9878
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9879
if test $ac_cv_type_pid_t = yes; then
9880
  :
9881
else
9882
 
9883
cat >>confdefs.h <<_ACEOF
9884
#define pid_t int
9885
_ACEOF
9886
 
9887
fi
9888
 
9889
 
9890
 
9891
for ac_header in unistd.h vfork.h
9892
do
9893
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9894
echo "$as_me:$LINENO: checking for $ac_header" >&5
9895
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9896
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9897
  echo $ECHO_N "(cached) $ECHO_C" >&6
9898
else
9899
  cat >conftest.$ac_ext <<_ACEOF
9900
/* confdefs.h.  */
9901
_ACEOF
9902
cat confdefs.h >>conftest.$ac_ext
9903
cat >>conftest.$ac_ext <<_ACEOF
9904
/* end confdefs.h.  */
9905
#include <$ac_header>
9906
_ACEOF
9907
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9908
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9909
  ac_status=$?
9910
  grep -v '^ *+' conftest.er1 >conftest.err
9911
  rm -f conftest.er1
9912
  cat conftest.err >&5
9913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914
  (exit $ac_status); } >/dev/null; then
9915
  if test -s conftest.err; then
9916
    ac_cpp_err=$ac_c_preproc_warn_flag
9917
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9918
  else
9919
    ac_cpp_err=
9920
  fi
9921
else
9922
  ac_cpp_err=yes
9923
fi
9924
if test -z "$ac_cpp_err"; then
9925
  eval "$as_ac_Header=yes"
9926
else
9927
  echo "$as_me: failed program was:" >&5
9928
sed 's/^/| /' conftest.$ac_ext >&5
9929
 
9930
  eval "$as_ac_Header=no"
9931
fi
9932
rm -f conftest.err conftest.$ac_ext
9933
fi
9934
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9935
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9936
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9937
  cat >>confdefs.h <<_ACEOF
9938
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9939
_ACEOF
9940
 
9941
fi
9942
done
9943
 
9944
 
9945
 
9946
for ac_func in fork vfork
9947
do
9948
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949
echo "$as_me:$LINENO: checking for $ac_func" >&5
9950
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9951
if eval "test \"\${$as_ac_var+set}\" = set"; then
9952
  echo $ECHO_N "(cached) $ECHO_C" >&6
9953
else
9954
  cat >conftest.$ac_ext <<_ACEOF
9955
/* confdefs.h.  */
9956
_ACEOF
9957
cat confdefs.h >>conftest.$ac_ext
9958
cat >>conftest.$ac_ext <<_ACEOF
9959
/* end confdefs.h.  */
9960
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
9961
   For example, HP-UX 11i  declares gettimeofday.  */
9962
#define $ac_func innocuous_$ac_func
9963
 
9964
/* System header to define __stub macros and hopefully few prototypes,
9965
    which can conflict with char $ac_func (); below.
9966
    Prefer  to  if __STDC__ is defined, since
9967
     exists even on freestanding compilers.  */
9968
 
9969
#ifdef __STDC__
9970
# include 
9971
#else
9972
# include 
9973
#endif
9974
 
9975
#undef $ac_func
9976
 
9977
/* Override any gcc2 internal prototype to avoid an error.  */
9978
#ifdef __cplusplus
9979
extern "C"
9980
{
9981
#endif
9982
/* We use char because int might match the return type of a gcc2
9983
   builtin and then its argument prototype would still apply.  */
9984
char $ac_func ();
9985
/* The GNU C library defines this for functions which it implements
9986
    to always fail with ENOSYS.  Some functions are actually named
9987
    something starting with __ and the normal name is an alias.  */
9988
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9989
choke me
9990
#else
9991
char (*f) () = $ac_func;
9992
#endif
9993
#ifdef __cplusplus
9994
}
9995
#endif
9996
 
9997
int
9998
main ()
9999
{
10000
return f != $ac_func;
10001
  ;
10002
  return 0;
10003
}
10004
_ACEOF
10005
rm -f conftest.$ac_objext conftest$ac_exeext
10006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10007
  (eval $ac_link) 2>conftest.er1
10008
  ac_status=$?
10009
  grep -v '^ *+' conftest.er1 >conftest.err
10010
  rm -f conftest.er1
10011
  cat conftest.err >&5
10012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013
  (exit $ac_status); } &&
10014
         { ac_try='test -z "$ac_c_werror_flag"
10015
                         || test ! -s conftest.err'
10016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017
  (eval $ac_try) 2>&5
10018
  ac_status=$?
10019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020
  (exit $ac_status); }; } &&
10021
         { ac_try='test -s conftest$ac_exeext'
10022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023
  (eval $ac_try) 2>&5
10024
  ac_status=$?
10025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026
  (exit $ac_status); }; }; then
10027
  eval "$as_ac_var=yes"
10028
else
10029
  echo "$as_me: failed program was:" >&5
10030
sed 's/^/| /' conftest.$ac_ext >&5
10031
 
10032
eval "$as_ac_var=no"
10033
fi
10034
rm -f conftest.err conftest.$ac_objext \
10035
      conftest$ac_exeext conftest.$ac_ext
10036
fi
10037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10038
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10039
if test `eval echo '${'$as_ac_var'}'` = yes; then
10040
  cat >>confdefs.h <<_ACEOF
10041
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10042
_ACEOF
10043
 
10044
fi
10045
done
10046
 
10047
if test "x$ac_cv_func_fork" = xyes; then
10048
  echo "$as_me:$LINENO: checking for working fork" >&5
10049
echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10050
if test "${ac_cv_func_fork_works+set}" = set; then
10051
  echo $ECHO_N "(cached) $ECHO_C" >&6
10052
else
10053
  if test "$cross_compiling" = yes; then
10054
  ac_cv_func_fork_works=cross
10055
else
10056
  cat >conftest.$ac_ext <<_ACEOF
10057
/* By Ruediger Kuhlmann. */
10058
      #include 
10059
      #if HAVE_UNISTD_H
10060
      # include 
10061
      #endif
10062
      /* Some systems only have a dummy stub for fork() */
10063
      int main ()
10064
      {
10065
        if (fork() < 0)
10066
          exit (1);
10067
        exit (0);
10068
      }
10069
_ACEOF
10070
rm -f conftest$ac_exeext
10071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10072
  (eval $ac_link) 2>&5
10073
  ac_status=$?
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077
  (eval $ac_try) 2>&5
10078
  ac_status=$?
10079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080
  (exit $ac_status); }; }; then
10081
  ac_cv_func_fork_works=yes
10082
else
10083
  echo "$as_me: program exited with status $ac_status" >&5
10084
echo "$as_me: failed program was:" >&5
10085
sed 's/^/| /' conftest.$ac_ext >&5
10086
 
10087
( exit $ac_status )
10088
ac_cv_func_fork_works=no
10089
fi
10090
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10091
fi
10092
fi
10093
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10094
echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10095
 
10096
else
10097
  ac_cv_func_fork_works=$ac_cv_func_fork
10098
fi
10099
if test "x$ac_cv_func_fork_works" = xcross; then
10100
  case $host in
10101
    *-*-amigaos* | *-*-msdosdjgpp*)
10102
      # Override, as these systems have only a dummy fork() stub
10103
      ac_cv_func_fork_works=no
10104
      ;;
10105
    *)
10106
      ac_cv_func_fork_works=yes
10107
      ;;
10108
  esac
10109
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10110
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10111
fi
10112
ac_cv_func_vfork_works=$ac_cv_func_vfork
10113
if test "x$ac_cv_func_vfork" = xyes; then
10114
  echo "$as_me:$LINENO: checking for working vfork" >&5
10115
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10116
if test "${ac_cv_func_vfork_works+set}" = set; then
10117
  echo $ECHO_N "(cached) $ECHO_C" >&6
10118
else
10119
  if test "$cross_compiling" = yes; then
10120
  ac_cv_func_vfork_works=cross
10121
else
10122
  cat >conftest.$ac_ext <<_ACEOF
10123
/* confdefs.h.  */
10124
_ACEOF
10125
cat confdefs.h >>conftest.$ac_ext
10126
cat >>conftest.$ac_ext <<_ACEOF
10127
/* end confdefs.h.  */
10128
/* Thanks to Paul Eggert for this test.  */
10129
#include 
10130
#include 
10131
#include 
10132
#include 
10133
#include 
10134
#if HAVE_UNISTD_H
10135
# include 
10136
#endif
10137
#if HAVE_VFORK_H
10138
# include 
10139
#endif
10140
/* On some sparc systems, changes by the child to local and incoming
10141
   argument registers are propagated back to the parent.  The compiler
10142
   is told about this with #include , but some compilers
10143
   (e.g. gcc -O) don't grok .  Test for this by using a
10144
   static variable whose address is put into a register that is
10145
   clobbered by the vfork.  */
10146
static void
10147
#ifdef __cplusplus
10148
sparc_address_test (int arg)
10149
# else
10150
sparc_address_test (arg) int arg;
10151
#endif
10152
{
10153
  static pid_t child;
10154
  if (!child) {
10155
    child = vfork ();
10156
    if (child < 0) {
10157
      perror ("vfork");
10158
      _exit(2);
10159
    }
10160
    if (!child) {
10161
      arg = getpid();
10162
      write(-1, "", 0);
10163
      _exit (arg);
10164
    }
10165
  }
10166
}
10167
 
10168
int
10169
main ()
10170
{
10171
  pid_t parent = getpid ();
10172
  pid_t child;
10173
 
10174
  sparc_address_test (0);
10175
 
10176
  child = vfork ();
10177
 
10178
  if (child == 0) {
10179
    /* Here is another test for sparc vfork register problems.  This
10180
       test uses lots of local variables, at least as many local
10181
       variables as main has allocated so far including compiler
10182
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10183
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10184
       reuse the register of parent for one of the local variables,
10185
       since it will think that parent can't possibly be used any more
10186
       in this routine.  Assigning to the local variable will thus
10187
       munge parent in the parent process.  */
10188
    pid_t
10189
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10190
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10191
    /* Convince the compiler that p..p7 are live; otherwise, it might
10192
       use the same hardware register for all 8 local variables.  */
10193
    if (p != p1 || p != p2 || p != p3 || p != p4
10194
        || p != p5 || p != p6 || p != p7)
10195
      _exit(1);
10196
 
10197
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10198
       from child file descriptors.  If the child closes a descriptor
10199
       before it execs or exits, this munges the parent's descriptor
10200
       as well.  Test for this by closing stdout in the child.  */
10201
    _exit(close(fileno(stdout)) != 0);
10202
  } else {
10203
    int status;
10204
    struct stat st;
10205
 
10206
    while (wait(&status) != child)
10207
      ;
10208
    exit(
10209
         /* Was there some problem with vforking?  */
10210
         child < 0
10211
 
10212
         /* Did the child fail?  (This shouldn't happen.)  */
10213
         || status
10214
 
10215
         /* Did the vfork/compiler bug occur?  */
10216
         || parent != getpid()
10217
 
10218
         /* Did the file descriptor bug occur?  */
10219
         || fstat(fileno(stdout), &st) != 0
10220
         );
10221
  }
10222
}
10223
_ACEOF
10224
rm -f conftest$ac_exeext
10225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10226
  (eval $ac_link) 2>&5
10227
  ac_status=$?
10228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231
  (eval $ac_try) 2>&5
10232
  ac_status=$?
10233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234
  (exit $ac_status); }; }; then
10235
  ac_cv_func_vfork_works=yes
10236
else
10237
  echo "$as_me: program exited with status $ac_status" >&5
10238
echo "$as_me: failed program was:" >&5
10239
sed 's/^/| /' conftest.$ac_ext >&5
10240
 
10241
( exit $ac_status )
10242
ac_cv_func_vfork_works=no
10243
fi
10244
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10245
fi
10246
fi
10247
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10248
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10249
 
10250
fi;
10251
if test "x$ac_cv_func_fork_works" = xcross; then
10252
  ac_cv_func_vfork_works=$ac_cv_func_vfork
10253
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10254
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10255
fi
10256
 
10257
if test "x$ac_cv_func_vfork_works" = xyes; then
10258
 
10259
cat >>confdefs.h <<\_ACEOF
10260
#define HAVE_WORKING_VFORK 1
10261
_ACEOF
10262
 
10263
else
10264
 
10265
cat >>confdefs.h <<\_ACEOF
10266
#define vfork fork
10267
_ACEOF
10268
 
10269
fi
10270
if test "x$ac_cv_func_fork_works" = xyes; then
10271
 
10272
cat >>confdefs.h <<\_ACEOF
10273
#define HAVE_WORKING_FORK 1
10274
_ACEOF
10275
 
10276
fi
10277
 
10278
 
10279
 
10280
      if test "X$prefix" = "XNONE"; then
10281
    acl_final_prefix="$ac_default_prefix"
10282
  else
10283
    acl_final_prefix="$prefix"
10284
  fi
10285
  if test "X$exec_prefix" = "XNONE"; then
10286
    acl_final_exec_prefix='${prefix}'
10287
  else
10288
    acl_final_exec_prefix="$exec_prefix"
10289
  fi
10290
  acl_save_prefix="$prefix"
10291
  prefix="$acl_final_prefix"
10292
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10293
  prefix="$acl_save_prefix"
10294
 
10295
 
10296
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10297
if test "${with_gnu_ld+set}" = set; then
10298
  withval="$with_gnu_ld"
10299
  test "$withval" = no || with_gnu_ld=yes
10300
else
10301
  with_gnu_ld=no
10302
fi;
10303
# Prepare PATH_SEPARATOR.
10304
# The user is always right.
10305
if test "${PATH_SEPARATOR+set}" != set; then
10306
  echo "#! /bin/sh" >conf$$.sh
10307
  echo  "exit 0"   >>conf$$.sh
10308
  chmod +x conf$$.sh
10309
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10310
    PATH_SEPARATOR=';'
10311
  else
10312
    PATH_SEPARATOR=:
10313
  fi
10314
  rm -f conf$$.sh
10315
fi
10316
ac_prog=ld
10317
if test "$GCC" = yes; then
10318
  # Check if gcc -print-prog-name=ld gives a path.
10319
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10320
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10321
  case $host in
10322
  *-*-mingw*)
10323
    # gcc leaves a trailing carriage return which upsets mingw
10324
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10325
  *)
10326
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10327
  esac
10328
  case $ac_prog in
10329
    # Accept absolute paths.
10330
    [\\/]* | [A-Za-z]:[\\/]*)
10331
      re_direlt='/[^/][^/]*/\.\./'
10332
      # Canonicalize the path of ld
10333
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10334
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10335
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10336
      done
10337
      test -z "$LD" && LD="$ac_prog"
10338
      ;;
10339
  "")
10340
    # If it fails, then pretend we aren't using GCC.
10341
    ac_prog=ld
10342
    ;;
10343
  *)
10344
    # If it is relative, then search for the first ld in PATH.
10345
    with_gnu_ld=unknown
10346
    ;;
10347
  esac
10348
elif test "$with_gnu_ld" = yes; then
10349
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10350
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10351
else
10352
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10353
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10354
fi
10355
if test "${acl_cv_path_LD+set}" = set; then
10356
  echo $ECHO_N "(cached) $ECHO_C" >&6
10357
else
10358
  if test -z "$LD"; then
10359
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10360
  for ac_dir in $PATH; do
10361
    test -z "$ac_dir" && ac_dir=.
10362
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10363
      acl_cv_path_LD="$ac_dir/$ac_prog"
10364
      # Check to see if the program is GNU ld.  I'd rather use --version,
10365
      # but apparently some GNU ld's only accept -v.
10366
      # Break only if it was the GNU/non-GNU ld that we prefer.
10367
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10368
        test "$with_gnu_ld" != no && break
10369
      else
10370
        test "$with_gnu_ld" != yes && break
10371
      fi
10372
    fi
10373
  done
10374
  IFS="$ac_save_ifs"
10375
else
10376
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10377
fi
10378
fi
10379
 
10380
LD="$acl_cv_path_LD"
10381
if test -n "$LD"; then
10382
  echo "$as_me:$LINENO: result: $LD" >&5
10383
echo "${ECHO_T}$LD" >&6
10384
else
10385
  echo "$as_me:$LINENO: result: no" >&5
10386
echo "${ECHO_T}no" >&6
10387
fi
10388
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10389
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10390
   { (exit 1); exit 1; }; }
10391
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10392
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10393
if test "${acl_cv_prog_gnu_ld+set}" = set; then
10394
  echo $ECHO_N "(cached) $ECHO_C" >&6
10395
else
10396
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10397
if $LD -v 2>&1 &5; then
10398
  acl_cv_prog_gnu_ld=yes
10399
else
10400
  acl_cv_prog_gnu_ld=no
10401
fi
10402
fi
10403
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10404
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10405
with_gnu_ld=$acl_cv_prog_gnu_ld
10406
 
10407
 
10408
 
10409
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10410
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10411
if test "${acl_cv_rpath+set}" = set; then
10412
  echo $ECHO_N "(cached) $ECHO_C" >&6
10413
else
10414
 
10415
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10416
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10417
    . ./conftest.sh
10418
    rm -f ./conftest.sh
10419
    acl_cv_rpath=done
10420
 
10421
fi
10422
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10423
echo "${ECHO_T}$acl_cv_rpath" >&6
10424
  wl="$acl_cv_wl"
10425
  libext="$acl_cv_libext"
10426
  shlibext="$acl_cv_shlibext"
10427
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10428
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10429
  hardcode_direct="$acl_cv_hardcode_direct"
10430
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10431
    # Check whether --enable-rpath or --disable-rpath was given.
10432
if test "${enable_rpath+set}" = set; then
10433
  enableval="$enable_rpath"
10434
  :
10435
else
10436
  enable_rpath=yes
10437
fi;
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
    use_additional=yes
10446
 
10447
  acl_save_prefix="$prefix"
10448
  prefix="$acl_final_prefix"
10449
  acl_save_exec_prefix="$exec_prefix"
10450
  exec_prefix="$acl_final_exec_prefix"
10451
 
10452
    eval additional_includedir=\"$includedir\"
10453
    eval additional_libdir=\"$libdir\"
10454
 
10455
  exec_prefix="$acl_save_exec_prefix"
10456
  prefix="$acl_save_prefix"
10457
 
10458
 
10459
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10460
if test "${with_libiconv_prefix+set}" = set; then
10461
  withval="$with_libiconv_prefix"
10462
 
10463
    if test "X$withval" = "Xno"; then
10464
      use_additional=no
10465
    else
10466
      if test "X$withval" = "X"; then
10467
 
10468
  acl_save_prefix="$prefix"
10469
  prefix="$acl_final_prefix"
10470
  acl_save_exec_prefix="$exec_prefix"
10471
  exec_prefix="$acl_final_exec_prefix"
10472
 
10473
          eval additional_includedir=\"$includedir\"
10474
          eval additional_libdir=\"$libdir\"
10475
 
10476
  exec_prefix="$acl_save_exec_prefix"
10477
  prefix="$acl_save_prefix"
10478
 
10479
      else
10480
        additional_includedir="$withval/include"
10481
        additional_libdir="$withval/lib"
10482
      fi
10483
    fi
10484
 
10485
fi;
10486
      LIBICONV=
10487
  LTLIBICONV=
10488
  INCICONV=
10489
  rpathdirs=
10490
  ltrpathdirs=
10491
  names_already_handled=
10492
  names_next_round='iconv '
10493
  while test -n "$names_next_round"; do
10494
    names_this_round="$names_next_round"
10495
    names_next_round=
10496
    for name in $names_this_round; do
10497
      already_handled=
10498
      for n in $names_already_handled; do
10499
        if test "$n" = "$name"; then
10500
          already_handled=yes
10501
          break
10502
        fi
10503
      done
10504
      if test -z "$already_handled"; then
10505
        names_already_handled="$names_already_handled $name"
10506
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10507
        eval value=\"\$HAVE_LIB$uppername\"
10508
        if test -n "$value"; then
10509
          if test "$value" = yes; then
10510
            eval value=\"\$LIB$uppername\"
10511
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10512
            eval value=\"\$LTLIB$uppername\"
10513
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10514
          else
10515
                                    :
10516
          fi
10517
        else
10518
                              found_dir=
10519
          found_la=
10520
          found_so=
10521
          found_a=
10522
          if test $use_additional = yes; then
10523
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10524
              found_dir="$additional_libdir"
10525
              found_so="$additional_libdir/lib$name.$shlibext"
10526
              if test -f "$additional_libdir/lib$name.la"; then
10527
                found_la="$additional_libdir/lib$name.la"
10528
              fi
10529
            else
10530
              if test -f "$additional_libdir/lib$name.$libext"; then
10531
                found_dir="$additional_libdir"
10532
                found_a="$additional_libdir/lib$name.$libext"
10533
                if test -f "$additional_libdir/lib$name.la"; then
10534
                  found_la="$additional_libdir/lib$name.la"
10535
                fi
10536
              fi
10537
            fi
10538
          fi
10539
          if test "X$found_dir" = "X"; then
10540
            for x in $LDFLAGS $LTLIBICONV; do
10541
 
10542
  acl_save_prefix="$prefix"
10543
  prefix="$acl_final_prefix"
10544
  acl_save_exec_prefix="$exec_prefix"
10545
  exec_prefix="$acl_final_exec_prefix"
10546
  eval x=\"$x\"
10547
  exec_prefix="$acl_save_exec_prefix"
10548
  prefix="$acl_save_prefix"
10549
 
10550
              case "$x" in
10551
                -L*)
10552
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10553
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10554
                    found_dir="$dir"
10555
                    found_so="$dir/lib$name.$shlibext"
10556
                    if test -f "$dir/lib$name.la"; then
10557
                      found_la="$dir/lib$name.la"
10558
                    fi
10559
                  else
10560
                    if test -f "$dir/lib$name.$libext"; then
10561
                      found_dir="$dir"
10562
                      found_a="$dir/lib$name.$libext"
10563
                      if test -f "$dir/lib$name.la"; then
10564
                        found_la="$dir/lib$name.la"
10565
                      fi
10566
                    fi
10567
                  fi
10568
                  ;;
10569
              esac
10570
              if test "X$found_dir" != "X"; then
10571
                break
10572
              fi
10573
            done
10574
          fi
10575
          if test "X$found_dir" != "X"; then
10576
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10577
            if test "X$found_so" != "X"; then
10578
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10579
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10580
              else
10581
                                                                                haveit=
10582
                for x in $ltrpathdirs; do
10583
                  if test "X$x" = "X$found_dir"; then
10584
                    haveit=yes
10585
                    break
10586
                  fi
10587
                done
10588
                if test -z "$haveit"; then
10589
                  ltrpathdirs="$ltrpathdirs $found_dir"
10590
                fi
10591
                                if test "$hardcode_direct" = yes; then
10592
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10593
                else
10594
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10595
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10596
                                                            haveit=
10597
                    for x in $rpathdirs; do
10598
                      if test "X$x" = "X$found_dir"; then
10599
                        haveit=yes
10600
                        break
10601
                      fi
10602
                    done
10603
                    if test -z "$haveit"; then
10604
                      rpathdirs="$rpathdirs $found_dir"
10605
                    fi
10606
                  else
10607
                                                                                haveit=
10608
                    for x in $LDFLAGS $LIBICONV; do
10609
 
10610
  acl_save_prefix="$prefix"
10611
  prefix="$acl_final_prefix"
10612
  acl_save_exec_prefix="$exec_prefix"
10613
  exec_prefix="$acl_final_exec_prefix"
10614
  eval x=\"$x\"
10615
  exec_prefix="$acl_save_exec_prefix"
10616
  prefix="$acl_save_prefix"
10617
 
10618
                      if test "X$x" = "X-L$found_dir"; then
10619
                        haveit=yes
10620
                        break
10621
                      fi
10622
                    done
10623
                    if test -z "$haveit"; then
10624
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10625
                    fi
10626
                    if test "$hardcode_minus_L" != no; then
10627
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10628
                    else
10629
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10630
                    fi
10631
                  fi
10632
                fi
10633
              fi
10634
            else
10635
              if test "X$found_a" != "X"; then
10636
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10637
              else
10638
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10639
              fi
10640
            fi
10641
                        additional_includedir=
10642
            case "$found_dir" in
10643
              */lib | */lib/)
10644
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10645
                additional_includedir="$basedir/include"
10646
                ;;
10647
            esac
10648
            if test "X$additional_includedir" != "X"; then
10649
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10650
                haveit=
10651
                if test "X$additional_includedir" = "X/usr/local/include"; then
10652
                  if test -n "$GCC"; then
10653
                    case $host_os in
10654
                      linux*) haveit=yes;;
10655
                    esac
10656
                  fi
10657
                fi
10658
                if test -z "$haveit"; then
10659
                  for x in $CPPFLAGS $INCICONV; do
10660
 
10661
  acl_save_prefix="$prefix"
10662
  prefix="$acl_final_prefix"
10663
  acl_save_exec_prefix="$exec_prefix"
10664
  exec_prefix="$acl_final_exec_prefix"
10665
  eval x=\"$x\"
10666
  exec_prefix="$acl_save_exec_prefix"
10667
  prefix="$acl_save_prefix"
10668
 
10669
                    if test "X$x" = "X-I$additional_includedir"; then
10670
                      haveit=yes
10671
                      break
10672
                    fi
10673
                  done
10674
                  if test -z "$haveit"; then
10675
                    if test -d "$additional_includedir"; then
10676
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10677
                    fi
10678
                  fi
10679
                fi
10680
              fi
10681
            fi
10682
                        if test -n "$found_la"; then
10683
                                                        save_libdir="$libdir"
10684
              case "$found_la" in
10685
                */* | *\\*) . "$found_la" ;;
10686
                *) . "./$found_la" ;;
10687
              esac
10688
              libdir="$save_libdir"
10689
                            for dep in $dependency_libs; do
10690
                case "$dep" in
10691
                  -L*)
10692
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10693
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
10694
                      haveit=
10695
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
10696
                        if test -n "$GCC"; then
10697
                          case $host_os in
10698
                            linux*) haveit=yes;;
10699
                          esac
10700
                        fi
10701
                      fi
10702
                      if test -z "$haveit"; then
10703
                        haveit=
10704
                        for x in $LDFLAGS $LIBICONV; do
10705
 
10706
  acl_save_prefix="$prefix"
10707
  prefix="$acl_final_prefix"
10708
  acl_save_exec_prefix="$exec_prefix"
10709
  exec_prefix="$acl_final_exec_prefix"
10710
  eval x=\"$x\"
10711
  exec_prefix="$acl_save_exec_prefix"
10712
  prefix="$acl_save_prefix"
10713
 
10714
                          if test "X$x" = "X-L$additional_libdir"; then
10715
                            haveit=yes
10716
                            break
10717
                          fi
10718
                        done
10719
                        if test -z "$haveit"; then
10720
                          if test -d "$additional_libdir"; then
10721
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10722
                          fi
10723
                        fi
10724
                        haveit=
10725
                        for x in $LDFLAGS $LTLIBICONV; do
10726
 
10727
  acl_save_prefix="$prefix"
10728
  prefix="$acl_final_prefix"
10729
  acl_save_exec_prefix="$exec_prefix"
10730
  exec_prefix="$acl_final_exec_prefix"
10731
  eval x=\"$x\"
10732
  exec_prefix="$acl_save_exec_prefix"
10733
  prefix="$acl_save_prefix"
10734
 
10735
                          if test "X$x" = "X-L$additional_libdir"; then
10736
                            haveit=yes
10737
                            break
10738
                          fi
10739
                        done
10740
                        if test -z "$haveit"; then
10741
                          if test -d "$additional_libdir"; then
10742
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10743
                          fi
10744
                        fi
10745
                      fi
10746
                    fi
10747
                    ;;
10748
                  -R*)
10749
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10750
                    if test "$enable_rpath" != no; then
10751
                                                                  haveit=
10752
                      for x in $rpathdirs; do
10753
                        if test "X$x" = "X$dir"; then
10754
                          haveit=yes
10755
                          break
10756
                        fi
10757
                      done
10758
                      if test -z "$haveit"; then
10759
                        rpathdirs="$rpathdirs $dir"
10760
                      fi
10761
                                                                  haveit=
10762
                      for x in $ltrpathdirs; do
10763
                        if test "X$x" = "X$dir"; then
10764
                          haveit=yes
10765
                          break
10766
                        fi
10767
                      done
10768
                      if test -z "$haveit"; then
10769
                        ltrpathdirs="$ltrpathdirs $dir"
10770
                      fi
10771
                    fi
10772
                    ;;
10773
                  -l*)
10774
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10775
                    ;;
10776
                  *.la)
10777
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10778
                    ;;
10779
                  *)
10780
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10781
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10782
                    ;;
10783
                esac
10784
              done
10785
            fi
10786
          else
10787
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10788
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10789
          fi
10790
        fi
10791
      fi
10792
    done
10793
  done
10794
  if test "X$rpathdirs" != "X"; then
10795
    if test -n "$hardcode_libdir_separator"; then
10796
                        alldirs=
10797
      for found_dir in $rpathdirs; do
10798
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10799
      done
10800
            acl_save_libdir="$libdir"
10801
      libdir="$alldirs"
10802
      eval flag=\"$hardcode_libdir_flag_spec\"
10803
      libdir="$acl_save_libdir"
10804
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10805
    else
10806
            for found_dir in $rpathdirs; do
10807
        acl_save_libdir="$libdir"
10808
        libdir="$found_dir"
10809
        eval flag=\"$hardcode_libdir_flag_spec\"
10810
        libdir="$acl_save_libdir"
10811
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10812
      done
10813
    fi
10814
  fi
10815
  if test "X$ltrpathdirs" != "X"; then
10816
            for found_dir in $ltrpathdirs; do
10817
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10818
    done
10819
  fi
10820
 
10821
 
10822
 
10823
 
10824
 
10825
 
10826
 
10827
          am_save_CPPFLAGS="$CPPFLAGS"
10828
 
10829
  for element in $INCICONV; do
10830
    haveit=
10831
    for x in $CPPFLAGS; do
10832
 
10833
  acl_save_prefix="$prefix"
10834
  prefix="$acl_final_prefix"
10835
  acl_save_exec_prefix="$exec_prefix"
10836
  exec_prefix="$acl_final_exec_prefix"
10837
  eval x=\"$x\"
10838
  exec_prefix="$acl_save_exec_prefix"
10839
  prefix="$acl_save_prefix"
10840
 
10841
      if test "X$x" = "X$element"; then
10842
        haveit=yes
10843
        break
10844
      fi
10845
    done
10846
    if test -z "$haveit"; then
10847
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10848
    fi
10849
  done
10850
 
10851
 
10852
  echo "$as_me:$LINENO: checking for iconv" >&5
10853
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10854
if test "${am_cv_func_iconv+set}" = set; then
10855
  echo $ECHO_N "(cached) $ECHO_C" >&6
10856
else
10857
 
10858
    am_cv_func_iconv="no, consider installing GNU libiconv"
10859
    am_cv_lib_iconv=no
10860
    cat >conftest.$ac_ext <<_ACEOF
10861
/* confdefs.h.  */
10862
_ACEOF
10863
cat confdefs.h >>conftest.$ac_ext
10864
cat >>conftest.$ac_ext <<_ACEOF
10865
/* end confdefs.h.  */
10866
#include 
10867
#include 
10868
int
10869
main ()
10870
{
10871
iconv_t cd = iconv_open("","");
10872
       iconv(cd,NULL,NULL,NULL,NULL);
10873
       iconv_close(cd);
10874
  ;
10875
  return 0;
10876
}
10877
_ACEOF
10878
rm -f conftest.$ac_objext conftest$ac_exeext
10879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10880
  (eval $ac_link) 2>conftest.er1
10881
  ac_status=$?
10882
  grep -v '^ *+' conftest.er1 >conftest.err
10883
  rm -f conftest.er1
10884
  cat conftest.err >&5
10885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886
  (exit $ac_status); } &&
10887
         { ac_try='test -z "$ac_c_werror_flag"
10888
                         || test ! -s conftest.err'
10889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890
  (eval $ac_try) 2>&5
10891
  ac_status=$?
10892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893
  (exit $ac_status); }; } &&
10894
         { ac_try='test -s conftest$ac_exeext'
10895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896
  (eval $ac_try) 2>&5
10897
  ac_status=$?
10898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899
  (exit $ac_status); }; }; then
10900
  am_cv_func_iconv=yes
10901
else
10902
  echo "$as_me: failed program was:" >&5
10903
sed 's/^/| /' conftest.$ac_ext >&5
10904
 
10905
fi
10906
rm -f conftest.err conftest.$ac_objext \
10907
      conftest$ac_exeext conftest.$ac_ext
10908
    if test "$am_cv_func_iconv" != yes; then
10909
      am_save_LIBS="$LIBS"
10910
      LIBS="$LIBS $LIBICONV"
10911
      cat >conftest.$ac_ext <<_ACEOF
10912
/* confdefs.h.  */
10913
_ACEOF
10914
cat confdefs.h >>conftest.$ac_ext
10915
cat >>conftest.$ac_ext <<_ACEOF
10916
/* end confdefs.h.  */
10917
#include 
10918
#include 
10919
int
10920
main ()
10921
{
10922
iconv_t cd = iconv_open("","");
10923
         iconv(cd,NULL,NULL,NULL,NULL);
10924
         iconv_close(cd);
10925
  ;
10926
  return 0;
10927
}
10928
_ACEOF
10929
rm -f conftest.$ac_objext conftest$ac_exeext
10930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931
  (eval $ac_link) 2>conftest.er1
10932
  ac_status=$?
10933
  grep -v '^ *+' conftest.er1 >conftest.err
10934
  rm -f conftest.er1
10935
  cat conftest.err >&5
10936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937
  (exit $ac_status); } &&
10938
         { ac_try='test -z "$ac_c_werror_flag"
10939
                         || test ! -s conftest.err'
10940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941
  (eval $ac_try) 2>&5
10942
  ac_status=$?
10943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944
  (exit $ac_status); }; } &&
10945
         { ac_try='test -s conftest$ac_exeext'
10946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947
  (eval $ac_try) 2>&5
10948
  ac_status=$?
10949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950
  (exit $ac_status); }; }; then
10951
  am_cv_lib_iconv=yes
10952
        am_cv_func_iconv=yes
10953
else
10954
  echo "$as_me: failed program was:" >&5
10955
sed 's/^/| /' conftest.$ac_ext >&5
10956
 
10957
fi
10958
rm -f conftest.err conftest.$ac_objext \
10959
      conftest$ac_exeext conftest.$ac_ext
10960
      LIBS="$am_save_LIBS"
10961
    fi
10962
 
10963
fi
10964
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10965
echo "${ECHO_T}$am_cv_func_iconv" >&6
10966
  if test "$am_cv_func_iconv" = yes; then
10967
 
10968
cat >>confdefs.h <<\_ACEOF
10969
#define HAVE_ICONV 1
10970
_ACEOF
10971
 
10972
  fi
10973
  if test "$am_cv_lib_iconv" = yes; then
10974
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10975
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10976
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
10977
echo "${ECHO_T}$LIBICONV" >&6
10978
  else
10979
            CPPFLAGS="$am_save_CPPFLAGS"
10980
    LIBICONV=
10981
    LTLIBICONV=
10982
  fi
10983
 
10984
 
10985
 
10986
  if test "$am_cv_func_iconv" = yes; then
10987
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
10988
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10989
    if test "${am_cv_proto_iconv+set}" = set; then
10990
  echo $ECHO_N "(cached) $ECHO_C" >&6
10991
else
10992
 
10993
      cat >conftest.$ac_ext <<_ACEOF
10994
/* confdefs.h.  */
10995
_ACEOF
10996
cat confdefs.h >>conftest.$ac_ext
10997
cat >>conftest.$ac_ext <<_ACEOF
10998
/* end confdefs.h.  */
10999
 
11000
#include 
11001
#include 
11002
extern
11003
#ifdef __cplusplus
11004
"C"
11005
#endif
11006
#if defined(__STDC__) || defined(__cplusplus)
11007
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11008
#else
11009
size_t iconv();
11010
#endif
11011
 
11012
int
11013
main ()
11014
{
11015
 
11016
  ;
11017
  return 0;
11018
}
11019
_ACEOF
11020
rm -f conftest.$ac_objext
11021
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022
  (eval $ac_compile) 2>conftest.er1
11023
  ac_status=$?
11024
  grep -v '^ *+' conftest.er1 >conftest.err
11025
  rm -f conftest.er1
11026
  cat conftest.err >&5
11027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028
  (exit $ac_status); } &&
11029
         { ac_try='test -z "$ac_c_werror_flag"
11030
                         || test ! -s conftest.err'
11031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032
  (eval $ac_try) 2>&5
11033
  ac_status=$?
11034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035
  (exit $ac_status); }; } &&
11036
         { ac_try='test -s conftest.$ac_objext'
11037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038
  (eval $ac_try) 2>&5
11039
  ac_status=$?
11040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041
  (exit $ac_status); }; }; then
11042
  am_cv_proto_iconv_arg1=""
11043
else
11044
  echo "$as_me: failed program was:" >&5
11045
sed 's/^/| /' conftest.$ac_ext >&5
11046
 
11047
am_cv_proto_iconv_arg1="const"
11048
fi
11049
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11050
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11051
fi
11052
 
11053
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11054
    echo "$as_me:$LINENO: result: ${ac_t:-
11055
         }$am_cv_proto_iconv" >&5
11056
echo "${ECHO_T}${ac_t:-
11057
         }$am_cv_proto_iconv" >&6
11058
 
11059
cat >>confdefs.h <<_ACEOF
11060
#define ICONV_CONST $am_cv_proto_iconv_arg1
11061
_ACEOF
11062
 
11063
  fi
11064
 
11065
# Until we have in-tree GNU iconv:
11066
LIBICONV_DEP=
11067
 
11068
 
11069
 
11070
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11071
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11072
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11073
  echo $ECHO_N "(cached) $ECHO_C" >&6
11074
else
11075
  cat >conftest.$ac_ext <<_ACEOF
11076
/* confdefs.h.  */
11077
_ACEOF
11078
cat confdefs.h >>conftest.$ac_ext
11079
cat >>conftest.$ac_ext <<_ACEOF
11080
/* end confdefs.h.  */
11081
#include 
11082
int
11083
main ()
11084
{
11085
return LC_MESSAGES
11086
  ;
11087
  return 0;
11088
}
11089
_ACEOF
11090
rm -f conftest.$ac_objext conftest$ac_exeext
11091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092
  (eval $ac_link) 2>conftest.er1
11093
  ac_status=$?
11094
  grep -v '^ *+' conftest.er1 >conftest.err
11095
  rm -f conftest.er1
11096
  cat conftest.err >&5
11097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098
  (exit $ac_status); } &&
11099
         { ac_try='test -z "$ac_c_werror_flag"
11100
                         || test ! -s conftest.err'
11101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102
  (eval $ac_try) 2>&5
11103
  ac_status=$?
11104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105
  (exit $ac_status); }; } &&
11106
         { ac_try='test -s conftest$ac_exeext'
11107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108
  (eval $ac_try) 2>&5
11109
  ac_status=$?
11110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111
  (exit $ac_status); }; }; then
11112
  am_cv_val_LC_MESSAGES=yes
11113
else
11114
  echo "$as_me: failed program was:" >&5
11115
sed 's/^/| /' conftest.$ac_ext >&5
11116
 
11117
am_cv_val_LC_MESSAGES=no
11118
fi
11119
rm -f conftest.err conftest.$ac_objext \
11120
      conftest$ac_exeext conftest.$ac_ext
11121
fi
11122
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11123
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11124
  if test $am_cv_val_LC_MESSAGES = yes; then
11125
 
11126
cat >>confdefs.h <<\_ACEOF
11127
#define HAVE_LC_MESSAGES 1
11128
_ACEOF
11129
 
11130
  fi
11131
 
11132
 
11133
 
11134
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11135
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11136
if test "${am_cv_langinfo_codeset+set}" = set; then
11137
  echo $ECHO_N "(cached) $ECHO_C" >&6
11138
else
11139
  cat >conftest.$ac_ext <<_ACEOF
11140
/* confdefs.h.  */
11141
_ACEOF
11142
cat confdefs.h >>conftest.$ac_ext
11143
cat >>conftest.$ac_ext <<_ACEOF
11144
/* end confdefs.h.  */
11145
#include 
11146
int
11147
main ()
11148
{
11149
char* cs = nl_langinfo(CODESET);
11150
  ;
11151
  return 0;
11152
}
11153
_ACEOF
11154
rm -f conftest.$ac_objext conftest$ac_exeext
11155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156
  (eval $ac_link) 2>conftest.er1
11157
  ac_status=$?
11158
  grep -v '^ *+' conftest.er1 >conftest.err
11159
  rm -f conftest.er1
11160
  cat conftest.err >&5
11161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162
  (exit $ac_status); } &&
11163
         { ac_try='test -z "$ac_c_werror_flag"
11164
                         || test ! -s conftest.err'
11165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166
  (eval $ac_try) 2>&5
11167
  ac_status=$?
11168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169
  (exit $ac_status); }; } &&
11170
         { ac_try='test -s conftest$ac_exeext'
11171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172
  (eval $ac_try) 2>&5
11173
  ac_status=$?
11174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175
  (exit $ac_status); }; }; then
11176
  am_cv_langinfo_codeset=yes
11177
else
11178
  echo "$as_me: failed program was:" >&5
11179
sed 's/^/| /' conftest.$ac_ext >&5
11180
 
11181
am_cv_langinfo_codeset=no
11182
fi
11183
rm -f conftest.err conftest.$ac_objext \
11184
      conftest$ac_exeext conftest.$ac_ext
11185
 
11186
fi
11187
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11188
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11189
  if test $am_cv_langinfo_codeset = yes; then
11190
 
11191
cat >>confdefs.h <<\_ACEOF
11192
#define HAVE_LANGINFO_CODESET 1
11193
_ACEOF
11194
 
11195
  fi
11196
 
11197
 
11198
# We will need to find libiberty.h and ansidecl.h
11199
saved_CFLAGS="$CFLAGS"
11200
CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11201
 
11202
 
11203
 
11204
 
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
 
11221
 
11222
 
11223
 
11224
 
11225
 
11226
 
11227
 
11228
 
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
 
11236
 
11237
 
11238
 
11239
 
11240
for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11241
        strsignal strstr strverscmp \
11242
        errno snprintf vsnprintf vasprintf malloc realloc calloc \
11243
        free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11244
do
11245
  ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11246
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11247
echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11248
if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11249
  echo $ECHO_N "(cached) $ECHO_C" >&6
11250
else
11251
  cat >conftest.$ac_ext <<_ACEOF
11252
/* confdefs.h.  */
11253
_ACEOF
11254
cat confdefs.h >>conftest.$ac_ext
11255
cat >>conftest.$ac_ext <<_ACEOF
11256
/* end confdefs.h.  */
11257
#undef $ac_tr_decl
11258
#define $ac_tr_decl 1
11259
 
11260
#include "ansidecl.h"
11261
#include "system.h"
11262
 
11263
int
11264
main ()
11265
{
11266
#ifndef $ac_func
11267
char *(*pfn) = (char *(*)) $ac_func ;
11268
#endif
11269
  ;
11270
  return 0;
11271
}
11272
_ACEOF
11273
rm -f conftest.$ac_objext
11274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11275
  (eval $ac_compile) 2>conftest.er1
11276
  ac_status=$?
11277
  grep -v '^ *+' conftest.er1 >conftest.err
11278
  rm -f conftest.er1
11279
  cat conftest.err >&5
11280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281
  (exit $ac_status); } &&
11282
         { ac_try='test -z "$ac_c_werror_flag"
11283
                         || test ! -s conftest.err'
11284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285
  (eval $ac_try) 2>&5
11286
  ac_status=$?
11287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288
  (exit $ac_status); }; } &&
11289
         { ac_try='test -s conftest.$ac_objext'
11290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291
  (eval $ac_try) 2>&5
11292
  ac_status=$?
11293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294
  (exit $ac_status); }; }; then
11295
  eval "gcc_cv_have_decl_$ac_func=yes"
11296
else
11297
  echo "$as_me: failed program was:" >&5
11298
sed 's/^/| /' conftest.$ac_ext >&5
11299
 
11300
eval "gcc_cv_have_decl_$ac_func=no"
11301
fi
11302
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11303
fi
11304
 
11305
if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11306
  echo "$as_me:$LINENO: result: yes" >&5
11307
echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11308
#define $ac_tr_decl 1
11309
_ACEOF
11310
 
11311
else
11312
  echo "$as_me:$LINENO: result: no" >&5
11313
echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11314
#define $ac_tr_decl 0
11315
_ACEOF
11316
 
11317
fi
11318
 
11319
done
11320
 
11321
 
11322
 
11323
 
11324
 
11325
for ac_func in getrlimit setrlimit getrusage
11326
do
11327
  ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11328
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11329
echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11330
if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11331
  echo $ECHO_N "(cached) $ECHO_C" >&6
11332
else
11333
  cat >conftest.$ac_ext <<_ACEOF
11334
/* confdefs.h.  */
11335
_ACEOF
11336
cat confdefs.h >>conftest.$ac_ext
11337
cat >>conftest.$ac_ext <<_ACEOF
11338
/* end confdefs.h.  */
11339
#undef $ac_tr_decl
11340
#define $ac_tr_decl 1
11341
 
11342
#include "ansidecl.h"
11343
#include "system.h"
11344
#ifdef HAVE_SYS_RESOURCE_H
11345
#include 
11346
#endif
11347
 
11348
 
11349
int
11350
main ()
11351
{
11352
#ifndef $ac_func
11353
char *(*pfn) = (char *(*)) $ac_func ;
11354
#endif
11355
  ;
11356
  return 0;
11357
}
11358
_ACEOF
11359
rm -f conftest.$ac_objext
11360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361
  (eval $ac_compile) 2>conftest.er1
11362
  ac_status=$?
11363
  grep -v '^ *+' conftest.er1 >conftest.err
11364
  rm -f conftest.er1
11365
  cat conftest.err >&5
11366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367
  (exit $ac_status); } &&
11368
         { ac_try='test -z "$ac_c_werror_flag"
11369
                         || test ! -s conftest.err'
11370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371
  (eval $ac_try) 2>&5
11372
  ac_status=$?
11373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374
  (exit $ac_status); }; } &&
11375
         { ac_try='test -s conftest.$ac_objext'
11376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377
  (eval $ac_try) 2>&5
11378
  ac_status=$?
11379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380
  (exit $ac_status); }; }; then
11381
  eval "gcc_cv_have_decl_$ac_func=yes"
11382
else
11383
  echo "$as_me: failed program was:" >&5
11384
sed 's/^/| /' conftest.$ac_ext >&5
11385
 
11386
eval "gcc_cv_have_decl_$ac_func=no"
11387
fi
11388
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11389
fi
11390
 
11391
if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11392
  echo "$as_me:$LINENO: result: yes" >&5
11393
echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11394
#define $ac_tr_decl 1
11395
_ACEOF
11396
 
11397
else
11398
  echo "$as_me:$LINENO: result: no" >&5
11399
echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11400
#define $ac_tr_decl 0
11401
_ACEOF
11402
 
11403
fi
11404
 
11405
done
11406
 
11407
 
11408
cat >conftest.$ac_ext <<_ACEOF
11409
/* confdefs.h.  */
11410
_ACEOF
11411
cat confdefs.h >>conftest.$ac_ext
11412
cat >>conftest.$ac_ext <<_ACEOF
11413
/* end confdefs.h.  */
11414
 
11415
#include "ansidecl.h"
11416
#include "system.h"
11417
#ifdef HAVE_SYS_RESOURCE_H
11418
#include 
11419
#endif
11420
 
11421
int
11422
main ()
11423
{
11424
rlim_t l = 0;
11425
  ;
11426
  return 0;
11427
}
11428
_ACEOF
11429
rm -f conftest.$ac_objext
11430
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431
  (eval $ac_compile) 2>conftest.er1
11432
  ac_status=$?
11433
  grep -v '^ *+' conftest.er1 >conftest.err
11434
  rm -f conftest.er1
11435
  cat conftest.err >&5
11436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437
  (exit $ac_status); } &&
11438
         { ac_try='test -z "$ac_c_werror_flag"
11439
                         || test ! -s conftest.err'
11440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441
  (eval $ac_try) 2>&5
11442
  ac_status=$?
11443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444
  (exit $ac_status); }; } &&
11445
         { ac_try='test -s conftest.$ac_objext'
11446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447
  (eval $ac_try) 2>&5
11448
  ac_status=$?
11449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450
  (exit $ac_status); }; }; then
11451
  :
11452
else
11453
  echo "$as_me: failed program was:" >&5
11454
sed 's/^/| /' conftest.$ac_ext >&5
11455
 
11456
 
11457
cat >>confdefs.h <<\_ACEOF
11458
#define rlim_t long
11459
_ACEOF
11460
 
11461
fi
11462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463
 
11464
# On AIX 5.2,  conflicts with , as both define incompatible
11465
# FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11466
# in collect2.c,  isn't visible, but the configure test below needs
11467
# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11468
 
11469
for ac_func in ldgetname
11470
do
11471
  ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11472
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11473
echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11474
if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11475
  echo $ECHO_N "(cached) $ECHO_C" >&6
11476
else
11477
  cat >conftest.$ac_ext <<_ACEOF
11478
/* confdefs.h.  */
11479
_ACEOF
11480
cat confdefs.h >>conftest.$ac_ext
11481
cat >>conftest.$ac_ext <<_ACEOF
11482
/* end confdefs.h.  */
11483
#undef $ac_tr_decl
11484
#define $ac_tr_decl 1
11485
 
11486
#include "ansidecl.h"
11487
#include "system.h"
11488
#ifdef HAVE_LDFCN_H
11489
#undef FREAD
11490
#undef FWRITE
11491
#include 
11492
#endif
11493
 
11494
 
11495
int
11496
main ()
11497
{
11498
#ifndef $ac_func
11499
char *(*pfn) = (char *(*)) $ac_func ;
11500
#endif
11501
  ;
11502
  return 0;
11503
}
11504
_ACEOF
11505
rm -f conftest.$ac_objext
11506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507
  (eval $ac_compile) 2>conftest.er1
11508
  ac_status=$?
11509
  grep -v '^ *+' conftest.er1 >conftest.err
11510
  rm -f conftest.er1
11511
  cat conftest.err >&5
11512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513
  (exit $ac_status); } &&
11514
         { ac_try='test -z "$ac_c_werror_flag"
11515
                         || test ! -s conftest.err'
11516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517
  (eval $ac_try) 2>&5
11518
  ac_status=$?
11519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520
  (exit $ac_status); }; } &&
11521
         { ac_try='test -s conftest.$ac_objext'
11522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523
  (eval $ac_try) 2>&5
11524
  ac_status=$?
11525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
  (exit $ac_status); }; }; then
11527
  eval "gcc_cv_have_decl_$ac_func=yes"
11528
else
11529
  echo "$as_me: failed program was:" >&5
11530
sed 's/^/| /' conftest.$ac_ext >&5
11531
 
11532
eval "gcc_cv_have_decl_$ac_func=no"
11533
fi
11534
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11535
fi
11536
 
11537
if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11538
  echo "$as_me:$LINENO: result: yes" >&5
11539
echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11540
#define $ac_tr_decl 1
11541
_ACEOF
11542
 
11543
else
11544
  echo "$as_me:$LINENO: result: no" >&5
11545
echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11546
#define $ac_tr_decl 0
11547
_ACEOF
11548
 
11549
fi
11550
 
11551
done
11552
 
11553
 
11554
 
11555
for ac_func in times
11556
do
11557
  ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11558
echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11559
echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11560
if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11561
  echo $ECHO_N "(cached) $ECHO_C" >&6
11562
else
11563
  cat >conftest.$ac_ext <<_ACEOF
11564
/* confdefs.h.  */
11565
_ACEOF
11566
cat confdefs.h >>conftest.$ac_ext
11567
cat >>conftest.$ac_ext <<_ACEOF
11568
/* end confdefs.h.  */
11569
#undef $ac_tr_decl
11570
#define $ac_tr_decl 1
11571
 
11572
#include "ansidecl.h"
11573
#include "system.h"
11574
#ifdef HAVE_SYS_TIMES_H
11575
#include 
11576
#endif
11577
 
11578
 
11579
int
11580
main ()
11581
{
11582
#ifndef $ac_func
11583
char *(*pfn) = (char *(*)) $ac_func ;
11584
#endif
11585
  ;
11586
  return 0;
11587
}
11588
_ACEOF
11589
rm -f conftest.$ac_objext
11590
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11591
  (eval $ac_compile) 2>conftest.er1
11592
  ac_status=$?
11593
  grep -v '^ *+' conftest.er1 >conftest.err
11594
  rm -f conftest.er1
11595
  cat conftest.err >&5
11596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597
  (exit $ac_status); } &&
11598
         { ac_try='test -z "$ac_c_werror_flag"
11599
                         || test ! -s conftest.err'
11600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601
  (eval $ac_try) 2>&5
11602
  ac_status=$?
11603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604
  (exit $ac_status); }; } &&
11605
         { ac_try='test -s conftest.$ac_objext'
11606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607
  (eval $ac_try) 2>&5
11608
  ac_status=$?
11609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610
  (exit $ac_status); }; }; then
11611
  eval "gcc_cv_have_decl_$ac_func=yes"
11612
else
11613
  echo "$as_me: failed program was:" >&5
11614
sed 's/^/| /' conftest.$ac_ext >&5
11615
 
11616
eval "gcc_cv_have_decl_$ac_func=no"
11617
fi
11618
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11619
fi
11620
 
11621
if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11622
  echo "$as_me:$LINENO: result: yes" >&5
11623
echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11624
#define $ac_tr_decl 1
11625
_ACEOF
11626
 
11627
else
11628
  echo "$as_me:$LINENO: result: no" >&5
11629
echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11630
#define $ac_tr_decl 0
11631
_ACEOF
11632
 
11633
fi
11634
 
11635
done
11636
 
11637
 
11638
# More time-related stuff.
11639
echo "$as_me:$LINENO: checking for struct tms" >&5
11640
echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11641
if test "${ac_cv_struct_tms+set}" = set; then
11642
  echo $ECHO_N "(cached) $ECHO_C" >&6
11643
else
11644
 
11645
cat >conftest.$ac_ext <<_ACEOF
11646
/* confdefs.h.  */
11647
_ACEOF
11648
cat confdefs.h >>conftest.$ac_ext
11649
cat >>conftest.$ac_ext <<_ACEOF
11650
/* end confdefs.h.  */
11651
 
11652
#include "ansidecl.h"
11653
#include "system.h"
11654
#ifdef HAVE_SYS_TIMES_H
11655
#include 
11656
#endif
11657
 
11658
int
11659
main ()
11660
{
11661
struct tms tms;
11662
  ;
11663
  return 0;
11664
}
11665
_ACEOF
11666
rm -f conftest.$ac_objext
11667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668
  (eval $ac_compile) 2>conftest.er1
11669
  ac_status=$?
11670
  grep -v '^ *+' conftest.er1 >conftest.err
11671
  rm -f conftest.er1
11672
  cat conftest.err >&5
11673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674
  (exit $ac_status); } &&
11675
         { ac_try='test -z "$ac_c_werror_flag"
11676
                         || test ! -s conftest.err'
11677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678
  (eval $ac_try) 2>&5
11679
  ac_status=$?
11680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681
  (exit $ac_status); }; } &&
11682
         { ac_try='test -s conftest.$ac_objext'
11683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684
  (eval $ac_try) 2>&5
11685
  ac_status=$?
11686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687
  (exit $ac_status); }; }; then
11688
  ac_cv_struct_tms=yes
11689
else
11690
  echo "$as_me: failed program was:" >&5
11691
sed 's/^/| /' conftest.$ac_ext >&5
11692
 
11693
ac_cv_struct_tms=no
11694
fi
11695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11696
fi
11697
echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11698
echo "${ECHO_T}$ac_cv_struct_tms" >&6
11699
if test $ac_cv_struct_tms = yes; then
11700
 
11701
cat >>confdefs.h <<\_ACEOF
11702
#define HAVE_STRUCT_TMS 1
11703
_ACEOF
11704
 
11705
fi
11706
 
11707
# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11708
# revisit after autoconf 2.50.
11709
echo "$as_me:$LINENO: checking for clock_t" >&5
11710
echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11711
if test "${gcc_cv_type_clock_t+set}" = set; then
11712
  echo $ECHO_N "(cached) $ECHO_C" >&6
11713
else
11714
 
11715
cat >conftest.$ac_ext <<_ACEOF
11716
/* confdefs.h.  */
11717
_ACEOF
11718
cat confdefs.h >>conftest.$ac_ext
11719
cat >>conftest.$ac_ext <<_ACEOF
11720
/* end confdefs.h.  */
11721
 
11722
#include "ansidecl.h"
11723
#include "system.h"
11724
 
11725
int
11726
main ()
11727
{
11728
clock_t x;
11729
  ;
11730
  return 0;
11731
}
11732
_ACEOF
11733
rm -f conftest.$ac_objext
11734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735
  (eval $ac_compile) 2>conftest.er1
11736
  ac_status=$?
11737
  grep -v '^ *+' conftest.er1 >conftest.err
11738
  rm -f conftest.er1
11739
  cat conftest.err >&5
11740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741
  (exit $ac_status); } &&
11742
         { ac_try='test -z "$ac_c_werror_flag"
11743
                         || test ! -s conftest.err'
11744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745
  (eval $ac_try) 2>&5
11746
  ac_status=$?
11747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748
  (exit $ac_status); }; } &&
11749
         { ac_try='test -s conftest.$ac_objext'
11750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751
  (eval $ac_try) 2>&5
11752
  ac_status=$?
11753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754
  (exit $ac_status); }; }; then
11755
  gcc_cv_type_clock_t=yes
11756
else
11757
  echo "$as_me: failed program was:" >&5
11758
sed 's/^/| /' conftest.$ac_ext >&5
11759
 
11760
gcc_cv_type_clock_t=no
11761
fi
11762
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11763
fi
11764
echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11765
echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11766
if test $gcc_cv_type_clock_t = yes; then
11767
 
11768
cat >>confdefs.h <<\_ACEOF
11769
#define HAVE_CLOCK_T 1
11770
_ACEOF
11771
 
11772
fi
11773
 
11774
# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11775
CFLAGS="$saved_CFLAGS"
11776
 
11777
# Check whether --enable-initfini-array or --disable-initfini-array was given.
11778
if test "${enable_initfini_array+set}" = set; then
11779
  enableval="$enable_initfini_array"
11780
 
11781
else
11782
 
11783
echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11784
echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11785
if test "${gcc_cv_initfini_array+set}" = set; then
11786
  echo $ECHO_N "(cached) $ECHO_C" >&6
11787
else
11788
    if test "$cross_compiling" = yes; then
11789
  gcc_cv_initfini_array=no
11790
else
11791
  cat >conftest.$ac_ext <<_ACEOF
11792
/* confdefs.h.  */
11793
_ACEOF
11794
cat confdefs.h >>conftest.$ac_ext
11795
cat >>conftest.$ac_ext <<_ACEOF
11796
/* end confdefs.h.  */
11797
 
11798
static int x = -1;
11799
int main (void) { return x; }
11800
int foo (void) { x = 0; }
11801
int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11802
_ACEOF
11803
rm -f conftest$ac_exeext
11804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11805
  (eval $ac_link) 2>&5
11806
  ac_status=$?
11807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810
  (eval $ac_try) 2>&5
11811
  ac_status=$?
11812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813
  (exit $ac_status); }; }; then
11814
  gcc_cv_initfini_array=yes
11815
else
11816
  echo "$as_me: program exited with status $ac_status" >&5
11817
echo "$as_me: failed program was:" >&5
11818
sed 's/^/| /' conftest.$ac_ext >&5
11819
 
11820
( exit $ac_status )
11821
gcc_cv_initfini_array=no
11822
fi
11823
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11824
fi
11825
fi
11826
echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11827
echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11828
  enable_initfini_array=$gcc_cv_initfini_array
11829
 
11830
fi;
11831
if test $enable_initfini_array = yes; then
11832
 
11833
cat >>confdefs.h <<\_ACEOF
11834
#define HAVE_INITFINI_ARRAY 1
11835
_ACEOF
11836
 
11837
fi
11838
 
11839
# mkdir takes a single argument on some systems.
11840
echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11841
echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11842
if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11843
  echo $ECHO_N "(cached) $ECHO_C" >&6
11844
else
11845
  cat >conftest.$ac_ext <<_ACEOF
11846
/* confdefs.h.  */
11847
_ACEOF
11848
cat confdefs.h >>conftest.$ac_ext
11849
cat >>conftest.$ac_ext <<_ACEOF
11850
/* end confdefs.h.  */
11851
 
11852
#include 
11853
#ifdef HAVE_SYS_STAT_H
11854
# include 
11855
#endif
11856
#ifdef HAVE_UNISTD_H
11857
# include 
11858
#endif
11859
#ifdef HAVE_DIRECT_H
11860
# include 
11861
#endif
11862
int
11863
main ()
11864
{
11865
mkdir ("foo", 0);
11866
  ;
11867
  return 0;
11868
}
11869
_ACEOF
11870
rm -f conftest.$ac_objext
11871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872
  (eval $ac_compile) 2>conftest.er1
11873
  ac_status=$?
11874
  grep -v '^ *+' conftest.er1 >conftest.err
11875
  rm -f conftest.er1
11876
  cat conftest.err >&5
11877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878
  (exit $ac_status); } &&
11879
         { ac_try='test -z "$ac_c_werror_flag"
11880
                         || test ! -s conftest.err'
11881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882
  (eval $ac_try) 2>&5
11883
  ac_status=$?
11884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885
  (exit $ac_status); }; } &&
11886
         { ac_try='test -s conftest.$ac_objext'
11887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888
  (eval $ac_try) 2>&5
11889
  ac_status=$?
11890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891
  (exit $ac_status); }; }; then
11892
  gcc_cv_mkdir_takes_one_arg=no
11893
else
11894
  echo "$as_me: failed program was:" >&5
11895
sed 's/^/| /' conftest.$ac_ext >&5
11896
 
11897
gcc_cv_mkdir_takes_one_arg=yes
11898
fi
11899
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900
fi
11901
echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11902
echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11903
if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11904
 
11905
cat >>confdefs.h <<\_ACEOF
11906
#define MKDIR_TAKES_ONE_ARG 1
11907
_ACEOF
11908
 
11909
fi
11910
 
11911
 
11912
# File extensions
11913
manext='.1'
11914
objext='.o'
11915
 
11916
 
11917
 
11918
# With Setjmp/Longjmp based exception handling.
11919
# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11920
if test "${enable_sjlj_exceptions+set}" = set; then
11921
  enableval="$enable_sjlj_exceptions"
11922
  sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11923
 
11924
cat >>confdefs.h <<_ACEOF
11925
#define CONFIG_SJLJ_EXCEPTIONS $sjlj
11926
_ACEOF
11927
 
11928
fi;
11929
 
11930
# For platforms with the unwind ABI which includes an unwind library,
11931
# libunwind, we can choose to use the system libunwind.
11932
 
11933
# Check whether --with-system-libunwind or --without-system-libunwind was given.
11934
if test "${with_system_libunwind+set}" = set; then
11935
  withval="$with_system_libunwind"
11936
 
11937
fi;
11938
 
11939
# --------------------------------------------------------
11940
# Build, host, and target specific configuration fragments
11941
# --------------------------------------------------------
11942
 
11943
# Collect build-machine-specific information.
11944
. ${srcdir}/config.build
11945
 
11946
# Collect host-machine-specific information.
11947
. ${srcdir}/config.host
11948
 
11949
target_gtfiles=
11950
 
11951
# Collect target-machine-specific information.
11952
. ${srcdir}/config.gcc
11953
 
11954
extra_objs="${host_extra_objs} ${extra_objs}"
11955
extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11956
 
11957
# Default the target-machine variables that were not explicitly set.
11958
if test x"$tm_file" = x
11959
then tm_file=$cpu_type/$cpu_type.h; fi
11960
 
11961
if test x"$extra_headers" = x
11962
then extra_headers=; fi
11963
 
11964
if test x$md_file = x
11965
then md_file=$cpu_type/$cpu_type.md; fi
11966
 
11967
if test x$out_file = x
11968
then out_file=$cpu_type/$cpu_type.c; fi
11969
 
11970
if test x"$tmake_file" = x
11971
then tmake_file=$cpu_type/t-$cpu_type
11972
fi
11973
 
11974
if test x"$dwarf2" = xyes
11975
then tm_file="$tm_file tm-dwarf2.h"
11976
fi
11977
 
11978
# Say what files are being used for the output code and MD file.
11979
echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11980
echo "Using \`$srcdir/config/$md_file' as machine description file."
11981
 
11982
# If any of the xm_file variables contain nonexistent files, warn
11983
# about them and drop them.
11984
 
11985
bx=
11986
for x in $build_xm_file; do
11987
  if    test -f $srcdir/config/$x
11988
  then      bx="$bx $x"
11989
  else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11990
echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11991
  fi
11992
done
11993
build_xm_file="$bx"
11994
 
11995
hx=
11996
for x in $host_xm_file; do
11997
  if    test -f $srcdir/config/$x
11998
  then      hx="$hx $x"
11999
  else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12000
echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12001
  fi
12002
done
12003
host_xm_file="$hx"
12004
 
12005
tx=
12006
for x in $xm_file; do
12007
  if    test -f $srcdir/config/$x
12008
  then      tx="$tx $x"
12009
  else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12010
echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12011
  fi
12012
done
12013
xm_file="$tx"
12014
 
12015
count=a
12016
for f in $tm_file; do
12017
        count=${count}x
12018
done
12019
if test $count = ax; then
12020
        echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12021
else
12022
        echo "Using the following target machine macro files:"
12023
        for f in $tm_file; do
12024
                echo "  $srcdir/config/$f"
12025
        done
12026
fi
12027
 
12028
if test x$need_64bit_hwint = xyes; then
12029
 
12030
cat >>confdefs.h <<\_ACEOF
12031
#define NEED_64BIT_HOST_WIDE_INT 1
12032
_ACEOF
12033
 
12034
fi
12035
 
12036
if test x$use_long_long_for_widest_fast_int = xyes; then
12037
 
12038
cat >>confdefs.h <<\_ACEOF
12039
#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12040
_ACEOF
12041
 
12042
fi
12043
 
12044
count=a
12045
for f in $host_xm_file; do
12046
        count=${count}x
12047
done
12048
if test $count = a; then
12049
        :
12050
elif test $count = ax; then
12051
        echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12052
else
12053
        echo "Using the following host machine macro files:"
12054
        for f in $host_xm_file; do
12055
                echo "  $srcdir/config/$f"
12056
        done
12057
fi
12058
echo "Using ${out_host_hook_obj} for host machine hooks."
12059
 
12060
if test "$host_xm_file" != "$build_xm_file"; then
12061
        count=a
12062
        for f in $build_xm_file; do
12063
                count=${count}x
12064
        done
12065
        if test $count = a; then
12066
                :
12067
        elif test $count = ax; then
12068
                echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12069
        else
12070
                echo "Using the following build machine macro files:"
12071
                for f in $build_xm_file; do
12072
                        echo "  $srcdir/config/$f"
12073
                done
12074
        fi
12075
fi
12076
 
12077
# ---------
12078
# Threading
12079
# ---------
12080
 
12081
# Check if a valid thread package
12082
case ${enable_threads} in
12083
  "" | no)
12084
    # No threads
12085
    target_thread_file='single'
12086
    ;;
12087
  yes)
12088
    # default
12089
    target_thread_file='single'
12090
    ;;
12091
  aix | dce | gnat | irix | posix | posix95 | rtems | \
12092
  single | solaris | vxworks | win32 )
12093
    target_thread_file=${enable_threads}
12094
    ;;
12095
  *)
12096
    echo "${enable_threads} is an unknown thread package" 1>&2
12097
    exit 1
12098
    ;;
12099
esac
12100
 
12101
if test x${thread_file} = x; then
12102
  # No thread file set by target-specific clauses in config.gcc,
12103
  # so use file chosen by default logic above
12104
  thread_file=${target_thread_file}
12105
fi
12106
 
12107
# Make gthr-default.h if we have a thread file.
12108
gthread_flags=
12109
if test $thread_file != single; then
12110
  rm -f gthr-default.h
12111
  echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12112
  gthread_flags=-DHAVE_GTHR_DEFAULT
12113
fi
12114
 
12115
 
12116
# --------
12117
# UNSORTED
12118
# --------
12119
 
12120
use_cxa_atexit=no
12121
if test x$enable___cxa_atexit = xyes || \
12122
   test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12123
  if test x$host = x$target; then
12124
    echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12125
echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12126
if test "${ac_cv_func___cxa_atexit+set}" = set; then
12127
  echo $ECHO_N "(cached) $ECHO_C" >&6
12128
else
12129
  cat >conftest.$ac_ext <<_ACEOF
12130
/* confdefs.h.  */
12131
_ACEOF
12132
cat confdefs.h >>conftest.$ac_ext
12133
cat >>conftest.$ac_ext <<_ACEOF
12134
/* end confdefs.h.  */
12135
/* Define __cxa_atexit to an innocuous variant, in case  declares __cxa_atexit.
12136
   For example, HP-UX 11i  declares gettimeofday.  */
12137
#define __cxa_atexit innocuous___cxa_atexit
12138
 
12139
/* System header to define __stub macros and hopefully few prototypes,
12140
    which can conflict with char __cxa_atexit (); below.
12141
    Prefer  to  if __STDC__ is defined, since
12142
     exists even on freestanding compilers.  */
12143
 
12144
#ifdef __STDC__
12145
# include 
12146
#else
12147
# include 
12148
#endif
12149
 
12150
#undef __cxa_atexit
12151
 
12152
/* Override any gcc2 internal prototype to avoid an error.  */
12153
#ifdef __cplusplus
12154
extern "C"
12155
{
12156
#endif
12157
/* We use char because int might match the return type of a gcc2
12158
   builtin and then its argument prototype would still apply.  */
12159
char __cxa_atexit ();
12160
/* The GNU C library defines this for functions which it implements
12161
    to always fail with ENOSYS.  Some functions are actually named
12162
    something starting with __ and the normal name is an alias.  */
12163
#if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12164
choke me
12165
#else
12166
char (*f) () = __cxa_atexit;
12167
#endif
12168
#ifdef __cplusplus
12169
}
12170
#endif
12171
 
12172
int
12173
main ()
12174
{
12175
return f != __cxa_atexit;
12176
  ;
12177
  return 0;
12178
}
12179
_ACEOF
12180
rm -f conftest.$ac_objext conftest$ac_exeext
12181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12182
  (eval $ac_link) 2>conftest.er1
12183
  ac_status=$?
12184
  grep -v '^ *+' conftest.er1 >conftest.err
12185
  rm -f conftest.er1
12186
  cat conftest.err >&5
12187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188
  (exit $ac_status); } &&
12189
         { ac_try='test -z "$ac_c_werror_flag"
12190
                         || test ! -s conftest.err'
12191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192
  (eval $ac_try) 2>&5
12193
  ac_status=$?
12194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195
  (exit $ac_status); }; } &&
12196
         { ac_try='test -s conftest$ac_exeext'
12197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198
  (eval $ac_try) 2>&5
12199
  ac_status=$?
12200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201
  (exit $ac_status); }; }; then
12202
  ac_cv_func___cxa_atexit=yes
12203
else
12204
  echo "$as_me: failed program was:" >&5
12205
sed 's/^/| /' conftest.$ac_ext >&5
12206
 
12207
ac_cv_func___cxa_atexit=no
12208
fi
12209
rm -f conftest.err conftest.$ac_objext \
12210
      conftest$ac_exeext conftest.$ac_ext
12211
fi
12212
echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12213
echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12214
if test $ac_cv_func___cxa_atexit = yes; then
12215
  use_cxa_atexit=yes
12216
else
12217
  echo "__cxa_atexit can't be enabled on this target"
12218
fi
12219
 
12220
  else
12221
    # We can't check for __cxa_atexit when building a cross, so assume
12222
    # it is available
12223
    use_cxa_atexit=yes
12224
  fi
12225
  if test x$use_cxa_atexit = xyes; then
12226
 
12227
cat >>confdefs.h <<\_ACEOF
12228
#define DEFAULT_USE_CXA_ATEXIT 1
12229
_ACEOF
12230
 
12231
  fi
12232
fi
12233
 
12234
# Look for a file containing extra machine modes.
12235
if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12236
  extra_modes_file='$(srcdir)'/config/${extra_modes}
12237
 
12238
 
12239
cat >>confdefs.h <<_ACEOF
12240
#define EXTRA_MODES_FILE "config/$extra_modes"
12241
_ACEOF
12242
 
12243
fi
12244
 
12245
# Convert extra_options into a form suitable for Makefile use.
12246
extra_opt_files=
12247
for f in $extra_options; do
12248
  extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12249
done
12250
 
12251
 
12252
# auto-host.h is the file containing items generated by autoconf and is
12253
# the first file included by config.h.
12254
# If host=build, it is correct to have bconfig include auto-host.h
12255
# as well.  If host!=build, we are in error and need to do more
12256
# work to find out the build config parameters.
12257
if test x$host = x$build
12258
then
12259
        build_auto=auto-host.h
12260
else
12261
        # We create a subdir, then run autoconf in the subdir.
12262
        # To prevent recursion we set host and build for the new
12263
        # invocation of configure to the build for this invocation
12264
        # of configure.
12265
        tempdir=build.$$
12266
        rm -rf $tempdir
12267
        mkdir $tempdir
12268
        cd $tempdir
12269
        case ${srcdir} in
12270
        /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12271
        *) realsrcdir=../${srcdir};;
12272
        esac
12273
        saved_CFLAGS="${CFLAGS}"
12274
        CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12275
        ${realsrcdir}/configure \
12276
                --enable-languages=${enable_languages-all} \
12277
                --target=$target_alias --host=$build_alias --build=$build_alias
12278
        CFLAGS="${saved_CFLAGS}"
12279
 
12280
        # We just finished tests for the build machine, so rename
12281
        # the file auto-build.h in the gcc directory.
12282
        mv auto-host.h ../auto-build.h
12283
        cd ..
12284
        rm -rf $tempdir
12285
        build_auto=auto-build.h
12286
fi
12287
 
12288
 
12289
tm_file="${tm_file} defaults.h"
12290
tm_p_file="${tm_p_file} tm-preds.h"
12291
host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12292
build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12293
# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12294
# put this back in temporarily.
12295
xm_file="auto-host.h ansidecl.h ${xm_file}"
12296
 
12297
# --------
12298
# UNSORTED
12299
# --------
12300
 
12301
# Compile in configure arguments.
12302
if test -f configargs.h ; then
12303
        # Being re-configured.
12304
        gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12305
        gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12306
else
12307
        gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12308
fi
12309
 
12310
# Double all backslashes and backslash all quotes to turn
12311
# gcc_config_arguments into a C string.
12312
sed -e 's/\\/\\\\/g; s/"/\\"/g' <conftest.out
12313
$gcc_config_arguments
12314
EOF
12315
gcc_config_arguments_str=`cat conftest.out`
12316
rm -f conftest.out
12317
 
12318
cat > configargs.h <
12319
/* Generated automatically. */
12320
static const char configuration_arguments[] = "$gcc_config_arguments_str";
12321
static const char thread_model[] = "$thread_file";
12322
 
12323
static const struct {
12324
  const char *name, *value;
12325
} configure_default_options[] = $configure_default_options;
12326
EOF
12327
 
12328
# Internationalization
12329
# If we haven't got the data from the intl directory,
12330
# assume NLS is disabled.
12331
USE_NLS=no
12332
LIBINTL=
12333
LIBINTL_DEP=
12334
INCINTL=
12335
XGETTEXT=
12336
GMSGFMT=
12337
POSUB=
12338
if test -f ../intl/config.intl; then
12339
  . ../intl/config.intl
12340
fi
12341
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12342
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12343
if test x"$USE_NLS" != xyes; then
12344
  echo "$as_me:$LINENO: result: no" >&5
12345
echo "${ECHO_T}no" >&6
12346
else
12347
  echo "$as_me:$LINENO: result: yes" >&5
12348
echo "${ECHO_T}yes" >&6
12349
 
12350
cat >>confdefs.h <<\_ACEOF
12351
#define ENABLE_NLS 1
12352
_ACEOF
12353
 
12354
 
12355
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12356
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12357
  # Look for .po and .gmo files in the source directory.
12358
  CATALOGS=
12359
  XLINGUAS=
12360
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12361
    # If there aren't any .gmo files the shell will give us the
12362
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
12363
    # weeded out.
12364
    case "$cat" in *\**)
12365
      continue;;
12366
    esac
12367
    # The quadruple backslash is collapsed to a double backslash
12368
    # by the backticks, then collapsed again by the double quotes,
12369
    # leaving us with one backslash in the sed expression (right
12370
    # before the dot that mustn't act as a wildcard).
12371
    cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12372
    lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12373
    # The user is allowed to set LINGUAS to a list of languages to
12374
    # install catalogs for.  If it's empty that means "all of them."
12375
    if test "x$LINGUAS" = x; then
12376
      CATALOGS="$CATALOGS $cat"
12377
      XLINGUAS="$XLINGUAS $lang"
12378
    else
12379
      case "$LINGUAS" in *$lang*)
12380
        CATALOGS="$CATALOGS $cat"
12381
        XLINGUAS="$XLINGUAS $lang"
12382
        ;;
12383
      esac
12384
    fi
12385
  done
12386
  LINGUAS="$XLINGUAS"
12387
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
12388
echo "${ECHO_T}$LINGUAS" >&6
12389
fi
12390
 
12391
# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12392
# -liconv on the link line twice.
12393
case "$LIBINTL" in *$LIBICONV*)
12394
        LIBICONV= ;;
12395
esac
12396
 
12397
# Check whether --enable-secureplt or --disable-secureplt was given.
12398
if test "${enable_secureplt+set}" = set; then
12399
  enableval="$enable_secureplt"
12400
 
12401
fi;
12402
 
12403
# Windows32 Registry support for specifying GCC installation paths.
12404
# Check whether --enable-win32-registry or --disable-win32-registry was given.
12405
if test "${enable_win32_registry+set}" = set; then
12406
  enableval="$enable_win32_registry"
12407
 
12408
fi;
12409
 
12410
case $host_os in
12411
  win32 | pe | cygwin* | mingw32* | uwin*)
12412
    if test "x$enable_win32_registry" != xno; then
12413
      echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12414
echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12415
if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12416
  echo $ECHO_N "(cached) $ECHO_C" >&6
12417
else
12418
  ac_func_search_save_LIBS=$LIBS
12419
ac_cv_search_RegOpenKeyExA=no
12420
cat >conftest.$ac_ext <<_ACEOF
12421
/* confdefs.h.  */
12422
_ACEOF
12423
cat confdefs.h >>conftest.$ac_ext
12424
cat >>conftest.$ac_ext <<_ACEOF
12425
/* end confdefs.h.  */
12426
 
12427
/* Override any gcc2 internal prototype to avoid an error.  */
12428
#ifdef __cplusplus
12429
extern "C"
12430
#endif
12431
/* We use char because int might match the return type of a gcc2
12432
   builtin and then its argument prototype would still apply.  */
12433
char RegOpenKeyExA ();
12434
int
12435
main ()
12436
{
12437
RegOpenKeyExA ();
12438
  ;
12439
  return 0;
12440
}
12441
_ACEOF
12442
rm -f conftest.$ac_objext conftest$ac_exeext
12443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444
  (eval $ac_link) 2>conftest.er1
12445
  ac_status=$?
12446
  grep -v '^ *+' conftest.er1 >conftest.err
12447
  rm -f conftest.er1
12448
  cat conftest.err >&5
12449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450
  (exit $ac_status); } &&
12451
         { ac_try='test -z "$ac_c_werror_flag"
12452
                         || test ! -s conftest.err'
12453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454
  (eval $ac_try) 2>&5
12455
  ac_status=$?
12456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457
  (exit $ac_status); }; } &&
12458
         { ac_try='test -s conftest$ac_exeext'
12459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460
  (eval $ac_try) 2>&5
12461
  ac_status=$?
12462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463
  (exit $ac_status); }; }; then
12464
  ac_cv_search_RegOpenKeyExA="none required"
12465
else
12466
  echo "$as_me: failed program was:" >&5
12467
sed 's/^/| /' conftest.$ac_ext >&5
12468
 
12469
fi
12470
rm -f conftest.err conftest.$ac_objext \
12471
      conftest$ac_exeext conftest.$ac_ext
12472
if test "$ac_cv_search_RegOpenKeyExA" = no; then
12473
  for ac_lib in advapi32; do
12474
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12475
    cat >conftest.$ac_ext <<_ACEOF
12476
/* confdefs.h.  */
12477
_ACEOF
12478
cat confdefs.h >>conftest.$ac_ext
12479
cat >>conftest.$ac_ext <<_ACEOF
12480
/* end confdefs.h.  */
12481
 
12482
/* Override any gcc2 internal prototype to avoid an error.  */
12483
#ifdef __cplusplus
12484
extern "C"
12485
#endif
12486
/* We use char because int might match the return type of a gcc2
12487
   builtin and then its argument prototype would still apply.  */
12488
char RegOpenKeyExA ();
12489
int
12490
main ()
12491
{
12492
RegOpenKeyExA ();
12493
  ;
12494
  return 0;
12495
}
12496
_ACEOF
12497
rm -f conftest.$ac_objext conftest$ac_exeext
12498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499
  (eval $ac_link) 2>conftest.er1
12500
  ac_status=$?
12501
  grep -v '^ *+' conftest.er1 >conftest.err
12502
  rm -f conftest.er1
12503
  cat conftest.err >&5
12504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505
  (exit $ac_status); } &&
12506
         { ac_try='test -z "$ac_c_werror_flag"
12507
                         || test ! -s conftest.err'
12508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509
  (eval $ac_try) 2>&5
12510
  ac_status=$?
12511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512
  (exit $ac_status); }; } &&
12513
         { ac_try='test -s conftest$ac_exeext'
12514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515
  (eval $ac_try) 2>&5
12516
  ac_status=$?
12517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518
  (exit $ac_status); }; }; then
12519
  ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12520
break
12521
else
12522
  echo "$as_me: failed program was:" >&5
12523
sed 's/^/| /' conftest.$ac_ext >&5
12524
 
12525
fi
12526
rm -f conftest.err conftest.$ac_objext \
12527
      conftest$ac_exeext conftest.$ac_ext
12528
  done
12529
fi
12530
LIBS=$ac_func_search_save_LIBS
12531
fi
12532
echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12533
echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12534
if test "$ac_cv_search_RegOpenKeyExA" != no; then
12535
  test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12536
 
12537
else
12538
  enable_win32_registry=no
12539
fi
12540
 
12541
    fi
12542
 
12543
    if test "x$enable_win32_registry" != xno; then
12544
 
12545
cat >>confdefs.h <<\_ACEOF
12546
#define ENABLE_WIN32_REGISTRY 1
12547
_ACEOF
12548
 
12549
 
12550
      if test "x$enable_win32_registry" != xyes \
12551
         && test "x$enable_win32_registry" != x; then
12552
 
12553
cat >>confdefs.h <<_ACEOF
12554
#define WIN32_REGISTRY_KEY "$enable_win32_registry"
12555
_ACEOF
12556
 
12557
      fi
12558
    fi
12559
  ;;
12560
esac
12561
 
12562
# Get an absolute path to the GCC top-level source directory
12563
holddir=`${PWDCMD-pwd}`
12564
cd $srcdir
12565
topdir=`${PWDCMD-pwd}`
12566
cd $holddir
12567
 
12568
# Conditionalize the makefile for this host machine.
12569
xmake_file=
12570
for f in ${host_xmake_file}
12571
do
12572
        if test -f ${srcdir}/config/$f
12573
        then
12574
                xmake_file="${xmake_file} \$(srcdir)/config/$f"
12575
        fi
12576
done
12577
 
12578
# Conditionalize the makefile for this target machine.
12579
tmake_file_=
12580
for f in ${tmake_file}
12581
do
12582
        if test -f ${srcdir}/config/$f
12583
        then
12584
                tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12585
        fi
12586
done
12587
tmake_file="${tmake_file_}"
12588
 
12589
# If the host doesn't support symlinks, modify CC in
12590
# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12591
# Otherwise, we can use "CC=$(CC)".
12592
rm -f symtest.tem
12593
case "$LN_S" in
12594
        *-s*)
12595
                cc_set_by_configure="\$(CC)"
12596
                quoted_cc_set_by_configure="\$(CC)"
12597
                stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12598
                quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12599
                ;;
12600
        *)
12601
                cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12602
                quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12603
                stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12604
                quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12605
                ;;
12606
esac
12607
 
12608
# This is a terrible hack which will go away some day.
12609
host_cc_for_libada=${CC}
12610
 
12611
 
12612
out_object_file=`basename $out_file .c`.o
12613
 
12614
tm_file_list="options.h"
12615
tm_include_list="options.h"
12616
for f in $tm_file; do
12617
  case $f in
12618
    defaults.h )
12619
       tm_file_list="${tm_file_list} \$(srcdir)/$f"
12620
       tm_include_list="${tm_include_list} $f"
12621
       ;;
12622
    * )
12623
       tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12624
       tm_include_list="${tm_include_list} config/$f"
12625
       ;;
12626
  esac
12627
done
12628
 
12629
tm_p_file_list=
12630
tm_p_include_list=
12631
for f in $tm_p_file; do
12632
  case $f in
12633
    tm-preds.h )
12634
       tm_p_file_list="${tm_p_file_list} $f"
12635
       tm_p_include_list="${tm_p_include_list} $f"
12636
       ;;
12637
    * )
12638
       tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12639
       tm_p_include_list="${tm_p_include_list} config/$f"
12640
  esac
12641
done
12642
 
12643
xm_file_list=
12644
xm_include_list=
12645
for f in $xm_file; do
12646
  case $f in
12647
    ansidecl.h )
12648
       xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12649
       xm_include_list="${xm_include_list} $f"
12650
       ;;
12651
    auto-host.h )
12652
       xm_file_list="${xm_file_list} $f"
12653
       xm_include_list="${xm_include_list} $f"
12654
       ;;
12655
    * )
12656
       xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12657
       xm_include_list="${xm_include_list} config/$f"
12658
       ;;
12659
  esac
12660
done
12661
 
12662
host_xm_file_list=
12663
host_xm_include_list=
12664
for f in $host_xm_file; do
12665
  case $f in
12666
    ansidecl.h )
12667
       host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12668
       host_xm_include_list="${host_xm_include_list} $f"
12669
       ;;
12670
    auto-host.h )
12671
       host_xm_file_list="${host_xm_file_list} $f"
12672
       host_xm_include_list="${host_xm_include_list} $f"
12673
       ;;
12674
    * )
12675
       host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12676
       host_xm_include_list="${host_xm_include_list} config/$f"
12677
       ;;
12678
  esac
12679
done
12680
 
12681
build_xm_file_list=
12682
for f in $build_xm_file; do
12683
  case $f in
12684
    ansidecl.h )
12685
       build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12686
       build_xm_include_list="${build_xm_include_list} $f"
12687
       ;;
12688
    auto-build.h | auto-host.h )
12689
       build_xm_file_list="${build_xm_file_list} $f"
12690
       build_xm_include_list="${build_xm_include_list} $f"
12691
       ;;
12692
    * )
12693
       build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12694
       build_xm_include_list="${build_xm_include_list} config/$f"
12695
       ;;
12696
  esac
12697
done
12698
 
12699
# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12700
# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12701
CROSS=
12702
ALL=all.internal
12703
SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12704
 
12705
if test "x$with_build_sysroot" != x; then
12706
  build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12707
else
12708
  # This value is used, even on a native system, because
12709
  # CROSS_SYSTEM_HEADER_DIR is just
12710
  # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12711
  build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12712
fi
12713
 
12714
if test x$host != x$target
12715
then
12716
        CROSS="-DCROSS_COMPILE"
12717
        ALL=all.cross
12718
        SYSTEM_HEADER_DIR=$build_system_header_dir
12719
        case "$host","$target" in
12720
        # Darwin crosses can use the host system's libraries and headers,
12721
        # because of the fat library support.  Of course, it must be the
12722
        # same version of Darwin on both sides.  Allow the user to
12723
        # just say --target=foo-darwin without a version number to mean
12724
        # "the version on this system".
12725
            *-*-darwin*,*-*-darwin*)
12726
                hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12727
                targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12728
                if test $hostos = $targetos -o $targetos = darwin ; then
12729
                    CROSS=
12730
                    SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12731
                    with_headers=yes
12732
                fi
12733
                ;;
12734
 
12735
            i?86-*-*,x86_64-*-* \
12736
            | powerpc*-*-*,powerpc64*-*-*)
12737
                CROSS="$CROSS -DNATIVE_CROSS" ;;
12738
        esac
12739
elif test "x$TARGET_SYSTEM_ROOT" != x; then
12740
        SYSTEM_HEADER_DIR=$build_system_header_dir
12741
fi
12742
 
12743
# If this is a cross-compiler that does not
12744
# have its own set of headers then define
12745
# inhibit_libc
12746
 
12747
# If this is using newlib, without having the headers available now,
12748
# then define inhibit_libc in LIBGCC2_CFLAGS.
12749
# This prevents libgcc2 from containing any code which requires libc
12750
# support.
12751
inhibit_libc=false
12752
if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12753
       test x$with_newlib = xyes ; } &&
12754
     { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12755
       inhibit_libc=true
12756
fi
12757
 
12758
 
12759
# When building gcc with a cross-compiler, we need to adjust things so
12760
# that the generator programs are still built with the native compiler.
12761
# Also, we cannot run fixincludes or fix-header.
12762
 
12763
# These are the normal (build=host) settings:
12764
CC_FOR_BUILD='$(CC)'
12765
BUILD_CFLAGS='$(ALL_CFLAGS)'
12766
STMP_FIXINC=stmp-fixinc
12767
 
12768
# Possibly disable fixproto, on a per-target basis.
12769
case ${use_fixproto} in
12770
  no)
12771
    STMP_FIXPROTO=
12772
    ;;
12773
  yes)
12774
    STMP_FIXPROTO=stmp-fixproto
12775
    ;;
12776
esac
12777
 
12778
 
12779
# And these apply if build != host, or we are generating coverage data
12780
if test x$build != x$host || test "x$coverage_flags" != x
12781
then
12782
    BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12783
 
12784
    if test "x$TARGET_SYSTEM_ROOT" = x; then
12785
        if test "x$STMP_FIXPROTO" != x; then
12786
          STMP_FIXPROTO=stmp-install-fixproto
12787
        fi
12788
    fi
12789
fi
12790
 
12791
# Expand extra_headers to include complete path.
12792
# This substitutes for lots of t-* files.
12793
extra_headers_list=
12794
# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12795
for file in ${extra_headers} ; do
12796
  extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12797
done
12798
 
12799
# Define collect2 in Makefile.
12800
case $host_can_use_collect2 in
12801
  no) collect2= ;;
12802
  *) collect2='collect2$(exeext)' ;;
12803
esac
12804
 
12805
 
12806
# Add a definition of USE_COLLECT2 if system wants one.
12807
case $use_collect2 in
12808
  no) use_collect2= ;;
12809
  "") ;;
12810
  *)
12811
    host_xm_defines="${host_xm_defines} USE_COLLECT2"
12812
    xm_defines="${xm_defines} USE_COLLECT2"
12813
    case $host_can_use_collect2 in
12814
      no)
12815
        { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12816
echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12817
   { (exit 1); exit 1; }; }
12818
        ;;
12819
    esac
12820
    ;;
12821
esac
12822
 
12823
# ---------------------------
12824
# Assembler & linker features
12825
# ---------------------------
12826
 
12827
# Identify the assembler which will work hand-in-glove with the newly
12828
# built GCC, so that we can examine its features.  This is the assembler
12829
# which will be driven by the driver program.
12830
#
12831
# If build != host, and we aren't building gas in-tree, we identify a
12832
# build->target assembler and hope that it will have the same features
12833
# as the host->target assembler we'll be using.
12834
in_tree_gas=no
12835
gcc_cv_as=
12836
gcc_cv_gas_major_version=
12837
gcc_cv_gas_minor_version=
12838
gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12839
if test -x "$DEFAULT_ASSEMBLER"; then
12840
        gcc_cv_as="$DEFAULT_ASSEMBLER"
12841
elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12842
     && test -f ../gas/Makefile \
12843
     && test x$build = x$host; then
12844
  # Single tree build which includes gas.  We want to prefer it
12845
  # over whatever linker top-level may have detected, since
12846
  # we'll use what we're building after installation anyway.
12847
  in_tree_gas=yes
12848
  gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12849
for f in $gcc_cv_as_bfd_srcdir/configure \
12850
         $gcc_cv_as_gas_srcdir/configure \
12851
         $gcc_cv_as_gas_srcdir/configure.in \
12852
         $gcc_cv_as_gas_srcdir/Makefile.in ; do
12853
  gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12854
  if test x$gcc_cv_gas_version != x; then
12855
    break
12856
  fi
12857
done
12858
gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12859
gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12860
gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12861
case $gcc_cv_gas_patch_version in
12862
  "") gcc_cv_gas_patch_version="0" ;;
12863
esac
12864
gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12865
                            + $gcc_cv_gas_minor_version \) \* 1000 \
12866
                            + $gcc_cv_gas_patch_version`
12867
 
12868
  gcc_cv_as=../gas/as-new$build_exeext
12869
  in_tree_gas_is_elf=no
12870
  if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12871
     || (grep 'obj_format = multi' ../gas/Makefile \
12872
         && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12873
  then
12874
    in_tree_gas_is_elf=yes
12875
  fi
12876
elif test -x as$build_exeext; then
12877
        # Build using assembler in the current directory.
12878
        gcc_cv_as=./as$build_exeext
12879
fi
12880
 
12881
 
12882
# When searching for the assembler or linker, search the same directories
12883
# that the installed compiler will search.  Else we may find the wrong
12884
# assembler or linker and lose.  If we do not find a suitable binary,
12885
# then try the user's path.
12886
#
12887
# Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12888
if test "x$exec_prefix" = xNONE; then
12889
        if test "x$prefix" = xNONE; then
12890
                gcc_cv_tool_prefix=/usr/local
12891
        else
12892
                gcc_cv_tool_prefix=$prefix
12893
        fi
12894
else
12895
        gcc_cv_tool_prefix=$exec_prefix
12896
fi
12897
 
12898
if test x$host = x$build; then
12899
    gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12900
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12901
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12902
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12903
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12904
    gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12905
else
12906
    gcc_cv_tool_dirs=
12907
fi
12908
 
12909
if test x$build = x$target; then
12910
    # Rummage through tm_files looking for MD_EXEC_PREFIX
12911
    md_dirs=
12912
    for f in ${tm_file_list}; do
12913
        if test -f $f; then
12914
            if grep '^#[        ]*undef[        ]*MD_EXEC_PREFIX' $f > /dev/null; then
12915
                md_dirs=
12916
            fi
12917
            md_dirs="$md_dirs "`sed -n -e 's@^#[        ]*define[       ]*MD_EXEC_PREFIX[       ]*"\(.*\)/"@\1@p' < $f`
12918
        fi
12919
    done
12920
    for f in ${md_dirs}; do
12921
        gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12922
    done
12923
fi
12924
 
12925
 
12926
 
12927
 
12928
exec 6>/dev/null
12929
 
12930
# First try the environment variables.  Handle full paths or basenames.
12931
if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
12932
        # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12933
set dummy $AS_FOR_TARGET; ac_word=$2
12934
echo "$as_me:$LINENO: checking for $ac_word" >&5
12935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936
if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12937
  echo $ECHO_N "(cached) $ECHO_C" >&6
12938
else
12939
  case $gcc_cv_as in
12940
  [\\/]* | ?:[\\/]*)
12941
  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12942
  ;;
12943
  *)
12944
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945
for as_dir in $PATH
12946
do
12947
  IFS=$as_save_IFS
12948
  test -z "$as_dir" && as_dir=.
12949
  for ac_exec_ext in '' $ac_executable_extensions; do
12950
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951
    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12953
    break 2
12954
  fi
12955
done
12956
done
12957
 
12958
  ;;
12959
esac
12960
fi
12961
gcc_cv_as=$ac_cv_path_gcc_cv_as
12962
 
12963
if test -n "$gcc_cv_as"; then
12964
  echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12965
echo "${ECHO_T}$gcc_cv_as" >&6
12966
else
12967
  echo "$as_me:$LINENO: result: no" >&5
12968
echo "${ECHO_T}no" >&6
12969
fi
12970
 
12971
fi
12972
if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
12973
        # Extract the first word of "$AS", so it can be a program name with args.
12974
set dummy $AS; ac_word=$2
12975
echo "$as_me:$LINENO: checking for $ac_word" >&5
12976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12977
if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12978
  echo $ECHO_N "(cached) $ECHO_C" >&6
12979
else
12980
  case $gcc_cv_as in
12981
  [\\/]* | ?:[\\/]*)
12982
  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12983
  ;;
12984
  *)
12985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986
for as_dir in $PATH
12987
do
12988
  IFS=$as_save_IFS
12989
  test -z "$as_dir" && as_dir=.
12990
  for ac_exec_ext in '' $ac_executable_extensions; do
12991
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992
    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12994
    break 2
12995
  fi
12996
done
12997
done
12998
 
12999
  ;;
13000
esac
13001
fi
13002
gcc_cv_as=$ac_cv_path_gcc_cv_as
13003
 
13004
if test -n "$gcc_cv_as"; then
13005
  echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13006
echo "${ECHO_T}$gcc_cv_as" >&6
13007
else
13008
  echo "$as_me:$LINENO: result: no" >&5
13009
echo "${ECHO_T}no" >&6
13010
fi
13011
 
13012
fi
13013
 
13014
if test "x$gcc_cv_as" = x; then
13015
        # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13016
        # is empty.
13017
        if test "x$gcc_cv_tool_dirs" = x; then
13018
                gcc_cv_as=
13019
        else
13020
                for ac_prog in as
13021
do
13022
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13023
set dummy $ac_prog; ac_word=$2
13024
echo "$as_me:$LINENO: checking for $ac_word" >&5
13025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13026
if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13027
  echo $ECHO_N "(cached) $ECHO_C" >&6
13028
else
13029
  case $gcc_cv_as in
13030
  [\\/]* | ?:[\\/]*)
13031
  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13032
  ;;
13033
  *)
13034
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035
for as_dir in $gcc_cv_tool_dirs
13036
do
13037
  IFS=$as_save_IFS
13038
  test -z "$as_dir" && as_dir=.
13039
  for ac_exec_ext in '' $ac_executable_extensions; do
13040
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041
    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13042
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043
    break 2
13044
  fi
13045
done
13046
done
13047
 
13048
  ;;
13049
esac
13050
fi
13051
gcc_cv_as=$ac_cv_path_gcc_cv_as
13052
 
13053
if test -n "$gcc_cv_as"; then
13054
  echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13055
echo "${ECHO_T}$gcc_cv_as" >&6
13056
else
13057
  echo "$as_me:$LINENO: result: no" >&5
13058
echo "${ECHO_T}no" >&6
13059
fi
13060
 
13061
  test -n "$gcc_cv_as" && break
13062
done
13063
 
13064
        fi
13065
fi
13066
if test "x$gcc_cv_as" = x; then
13067
        # If the loop above did not find a tool, then use whatever
13068
        # one we can find in the users's path.  We are looking for a
13069
        # ${build} -> ${target} tool.
13070
        if test "x$program_prefix" != xNONE; then
13071
                default_tool_name=${program_prefix}as
13072
        elif test x$build != x$host && test x$build != x$target; then
13073
                default_tool_name=${target_noncanonical}-as
13074
        else
13075
                default_tool_name=`echo as | sed "${program_transform_name}"`
13076
        fi
13077
        for ac_prog in $default_tool_name
13078
do
13079
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13080
set dummy $ac_prog; ac_word=$2
13081
echo "$as_me:$LINENO: checking for $ac_word" >&5
13082
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13083
if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13084
  echo $ECHO_N "(cached) $ECHO_C" >&6
13085
else
13086
  case $gcc_cv_as in
13087
  [\\/]* | ?:[\\/]*)
13088
  ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13089
  ;;
13090
  *)
13091
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092
for as_dir in $PATH
13093
do
13094
  IFS=$as_save_IFS
13095
  test -z "$as_dir" && as_dir=.
13096
  for ac_exec_ext in '' $ac_executable_extensions; do
13097
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13098
    ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13099
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100
    break 2
13101
  fi
13102
done
13103
done
13104
 
13105
  ;;
13106
esac
13107
fi
13108
gcc_cv_as=$ac_cv_path_gcc_cv_as
13109
 
13110
if test -n "$gcc_cv_as"; then
13111
  echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13112
echo "${ECHO_T}$gcc_cv_as" >&6
13113
else
13114
  echo "$as_me:$LINENO: result: no" >&5
13115
echo "${ECHO_T}no" >&6
13116
fi
13117
 
13118
  test -n "$gcc_cv_as" && break
13119
done
13120
test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13121
 
13122
fi
13123
test "$silent" != yes && exec 6>&1
13124
 
13125
ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13126
 
13127
echo "$as_me:$LINENO: checking what assembler to use" >&5
13128
echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13129
case $in_tree_gas in
13130
  yes)
13131
    echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13132
echo "${ECHO_T}\"newly built gas\"" >&6
13133
    ;;
13134
  no)
13135
    echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13136
echo "${ECHO_T}$gcc_cv_as" >&6
13137
    ;;
13138
esac
13139
 
13140
# Identify the linker which will work hand-in-glove with the newly
13141
# built GCC, so that we can examine its features.  This is the linker
13142
# which will be driven by the driver program.
13143
#
13144
# If build != host, and we aren't building gas in-tree, we identify a
13145
# build->target linker and hope that it will have the same features
13146
# as the host->target linker we'll be using.
13147
in_tree_ld=no
13148
gcc_cv_ld=
13149
gcc_cv_gld_major_version=
13150
gcc_cv_gld_minor_version=
13151
gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13152
gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13153
if test -x "$DEFAULT_LINKER"; then
13154
        gcc_cv_ld="$DEFAULT_LINKER"
13155
elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13156
     && test -f ../ld/Makefile \
13157
     && test x$build = x$host; then
13158
        # Single tree build which includes ld.  We want to prefer it
13159
        # over whatever linker top-level may have detected, since
13160
        # we'll use what we're building after installation anyway.
13161
        in_tree_ld=yes
13162
        in_tree_ld_is_elf=no
13163
        if (grep 'EMUL = .*elf' ../ld/Makefile \
13164
            || grep 'EMUL = .*linux' ../ld/Makefile \
13165
            || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13166
          in_tree_ld_is_elf=yes
13167
        fi
13168
        for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
13169
        do
13170
                gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13171
                if test x$gcc_cv_gld_version != x; then
13172
                        break
13173
                fi
13174
        done
13175
        gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13176
        gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13177
        gcc_cv_ld=../ld/ld-new$build_exeext
13178
elif test -x collect-ld$build_exeext; then
13179
        # Build using linker in the current directory.
13180
        gcc_cv_ld=./collect-ld$build_exeext
13181
fi
13182
 
13183
 
13184
 
13185
 
13186
 
13187
exec 6>/dev/null
13188
 
13189
# First try the environment variables.  Handle full paths or basenames.
13190
if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13191
        # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13192
set dummy $LD_FOR_TARGET; ac_word=$2
13193
echo "$as_me:$LINENO: checking for $ac_word" >&5
13194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13195
if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13196
  echo $ECHO_N "(cached) $ECHO_C" >&6
13197
else
13198
  case $gcc_cv_ld in
13199
  [\\/]* | ?:[\\/]*)
13200
  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13201
  ;;
13202
  *)
13203
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204
for as_dir in $PATH
13205
do
13206
  IFS=$as_save_IFS
13207
  test -z "$as_dir" && as_dir=.
13208
  for ac_exec_ext in '' $ac_executable_extensions; do
13209
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210
    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13211
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13212
    break 2
13213
  fi
13214
done
13215
done
13216
 
13217
  ;;
13218
esac
13219
fi
13220
gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13221
 
13222
if test -n "$gcc_cv_ld"; then
13223
  echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13224
echo "${ECHO_T}$gcc_cv_ld" >&6
13225
else
13226
  echo "$as_me:$LINENO: result: no" >&5
13227
echo "${ECHO_T}no" >&6
13228
fi
13229
 
13230
fi
13231
if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
13232
        # Extract the first word of "$LD", so it can be a program name with args.
13233
set dummy $LD; ac_word=$2
13234
echo "$as_me:$LINENO: checking for $ac_word" >&5
13235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13236
if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13237
  echo $ECHO_N "(cached) $ECHO_C" >&6
13238
else
13239
  case $gcc_cv_ld in
13240
  [\\/]* | ?:[\\/]*)
13241
  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13242
  ;;
13243
  *)
13244
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245
for as_dir in $PATH
13246
do
13247
  IFS=$as_save_IFS
13248
  test -z "$as_dir" && as_dir=.
13249
  for ac_exec_ext in '' $ac_executable_extensions; do
13250
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251
    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13253
    break 2
13254
  fi
13255
done
13256
done
13257
 
13258
  ;;
13259
esac
13260
fi
13261
gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13262
 
13263
if test -n "$gcc_cv_ld"; then
13264
  echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13265
echo "${ECHO_T}$gcc_cv_ld" >&6
13266
else
13267
  echo "$as_me:$LINENO: result: no" >&5
13268
echo "${ECHO_T}no" >&6
13269
fi
13270
 
13271
fi
13272
 
13273
if test "x$gcc_cv_ld" = x; then
13274
        # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13275
        # is empty.
13276
        if test "x$gcc_cv_tool_dirs" = x; then
13277
                gcc_cv_ld=
13278
        else
13279
                for ac_prog in ld
13280
do
13281
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13282
set dummy $ac_prog; ac_word=$2
13283
echo "$as_me:$LINENO: checking for $ac_word" >&5
13284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13285
if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13286
  echo $ECHO_N "(cached) $ECHO_C" >&6
13287
else
13288
  case $gcc_cv_ld in
13289
  [\\/]* | ?:[\\/]*)
13290
  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13291
  ;;
13292
  *)
13293
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294
for as_dir in $gcc_cv_tool_dirs
13295
do
13296
  IFS=$as_save_IFS
13297
  test -z "$as_dir" && as_dir=.
13298
  for ac_exec_ext in '' $ac_executable_extensions; do
13299
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13300
    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13301
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13302
    break 2
13303
  fi
13304
done
13305
done
13306
 
13307
  ;;
13308
esac
13309
fi
13310
gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13311
 
13312
if test -n "$gcc_cv_ld"; then
13313
  echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13314
echo "${ECHO_T}$gcc_cv_ld" >&6
13315
else
13316
  echo "$as_me:$LINENO: result: no" >&5
13317
echo "${ECHO_T}no" >&6
13318
fi
13319
 
13320
  test -n "$gcc_cv_ld" && break
13321
done
13322
 
13323
        fi
13324
fi
13325
if test "x$gcc_cv_ld" = x; then
13326
        # If the loop above did not find a tool, then use whatever
13327
        # one we can find in the users's path.  We are looking for a
13328
        # ${build} -> ${target} tool.
13329
        if test "x$program_prefix" != xNONE; then
13330
                default_tool_name=${program_prefix}ld
13331
        elif test x$build != x$host && test x$build != x$target; then
13332
                default_tool_name=${target_noncanonical}-ld
13333
        else
13334
                default_tool_name=`echo ld | sed "${program_transform_name}"`
13335
        fi
13336
        for ac_prog in $default_tool_name
13337
do
13338
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13339
set dummy $ac_prog; ac_word=$2
13340
echo "$as_me:$LINENO: checking for $ac_word" >&5
13341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13342
if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13343
  echo $ECHO_N "(cached) $ECHO_C" >&6
13344
else
13345
  case $gcc_cv_ld in
13346
  [\\/]* | ?:[\\/]*)
13347
  ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13348
  ;;
13349
  *)
13350
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351
for as_dir in $PATH
13352
do
13353
  IFS=$as_save_IFS
13354
  test -z "$as_dir" && as_dir=.
13355
  for ac_exec_ext in '' $ac_executable_extensions; do
13356
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357
    ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13359
    break 2
13360
  fi
13361
done
13362
done
13363
 
13364
  ;;
13365
esac
13366
fi
13367
gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13368
 
13369
if test -n "$gcc_cv_ld"; then
13370
  echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13371
echo "${ECHO_T}$gcc_cv_ld" >&6
13372
else
13373
  echo "$as_me:$LINENO: result: no" >&5
13374
echo "${ECHO_T}no" >&6
13375
fi
13376
 
13377
  test -n "$gcc_cv_ld" && break
13378
done
13379
test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13380
 
13381
fi
13382
test "$silent" != yes && exec 6>&1
13383
 
13384
ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13385
 
13386
echo "$as_me:$LINENO: checking what linker to use" >&5
13387
echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13388
case $in_tree_ld in
13389
  yes)
13390
    echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13391
echo "${ECHO_T}\"newly built ld\"" >&6
13392
    ;;
13393
  no)
13394
    echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13395
echo "${ECHO_T}$gcc_cv_ld" >&6
13396
    ;;
13397
esac
13398
 
13399
# Figure out what nm we will be using.
13400
gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13401
in_tree_nm=no
13402
gcc_cv_nm=
13403
if test -f $gcc_cv_binutils_srcdir/configure.in \
13404
     && test -f ../binutils/Makefile; then
13405
        # Single tree build which includes binutils.
13406
        in_tree_nm=yes
13407
        gcc_cv_nm=../binutils/nm-new$build_exeext
13408
elif test -x nm$build_exeext; then
13409
        gcc_cv_nm=./nm$build_exeext
13410
fi
13411
 
13412
 
13413
 
13414
 
13415
 
13416
exec 6>/dev/null
13417
 
13418
# First try the environment variables.  Handle full paths or basenames.
13419
if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
13420
        # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13421
set dummy $NM_FOR_TARGET; ac_word=$2
13422
echo "$as_me:$LINENO: checking for $ac_word" >&5
13423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13424
if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13425
  echo $ECHO_N "(cached) $ECHO_C" >&6
13426
else
13427
  case $gcc_cv_nm in
13428
  [\\/]* | ?:[\\/]*)
13429
  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13430
  ;;
13431
  *)
13432
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433
for as_dir in $PATH
13434
do
13435
  IFS=$as_save_IFS
13436
  test -z "$as_dir" && as_dir=.
13437
  for ac_exec_ext in '' $ac_executable_extensions; do
13438
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439
    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13440
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13441
    break 2
13442
  fi
13443
done
13444
done
13445
 
13446
  ;;
13447
esac
13448
fi
13449
gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13450
 
13451
if test -n "$gcc_cv_nm"; then
13452
  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13453
echo "${ECHO_T}$gcc_cv_nm" >&6
13454
else
13455
  echo "$as_me:$LINENO: result: no" >&5
13456
echo "${ECHO_T}no" >&6
13457
fi
13458
 
13459
fi
13460
if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
13461
        # Extract the first word of "$NM", so it can be a program name with args.
13462
set dummy $NM; ac_word=$2
13463
echo "$as_me:$LINENO: checking for $ac_word" >&5
13464
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13465
if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13466
  echo $ECHO_N "(cached) $ECHO_C" >&6
13467
else
13468
  case $gcc_cv_nm in
13469
  [\\/]* | ?:[\\/]*)
13470
  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13471
  ;;
13472
  *)
13473
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474
for as_dir in $PATH
13475
do
13476
  IFS=$as_save_IFS
13477
  test -z "$as_dir" && as_dir=.
13478
  for ac_exec_ext in '' $ac_executable_extensions; do
13479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480
    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13482
    break 2
13483
  fi
13484
done
13485
done
13486
 
13487
  ;;
13488
esac
13489
fi
13490
gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13491
 
13492
if test -n "$gcc_cv_nm"; then
13493
  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13494
echo "${ECHO_T}$gcc_cv_nm" >&6
13495
else
13496
  echo "$as_me:$LINENO: result: no" >&5
13497
echo "${ECHO_T}no" >&6
13498
fi
13499
 
13500
fi
13501
 
13502
if test "x$gcc_cv_nm" = x; then
13503
        # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13504
        # is empty.
13505
        if test "x$gcc_cv_tool_dirs" = x; then
13506
                gcc_cv_nm=
13507
        else
13508
                for ac_prog in nm
13509
do
13510
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13511
set dummy $ac_prog; ac_word=$2
13512
echo "$as_me:$LINENO: checking for $ac_word" >&5
13513
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13514
if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13515
  echo $ECHO_N "(cached) $ECHO_C" >&6
13516
else
13517
  case $gcc_cv_nm in
13518
  [\\/]* | ?:[\\/]*)
13519
  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13520
  ;;
13521
  *)
13522
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523
for as_dir in $gcc_cv_tool_dirs
13524
do
13525
  IFS=$as_save_IFS
13526
  test -z "$as_dir" && as_dir=.
13527
  for ac_exec_ext in '' $ac_executable_extensions; do
13528
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529
    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13531
    break 2
13532
  fi
13533
done
13534
done
13535
 
13536
  ;;
13537
esac
13538
fi
13539
gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13540
 
13541
if test -n "$gcc_cv_nm"; then
13542
  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13543
echo "${ECHO_T}$gcc_cv_nm" >&6
13544
else
13545
  echo "$as_me:$LINENO: result: no" >&5
13546
echo "${ECHO_T}no" >&6
13547
fi
13548
 
13549
  test -n "$gcc_cv_nm" && break
13550
done
13551
 
13552
        fi
13553
fi
13554
if test "x$gcc_cv_nm" = x; then
13555
        # If the loop above did not find a tool, then use whatever
13556
        # one we can find in the users's path.  We are looking for a
13557
        # ${build} -> ${target} tool.
13558
        if test "x$program_prefix" != xNONE; then
13559
                default_tool_name=${program_prefix}nm
13560
        elif test x$build != x$host && test x$build != x$target; then
13561
                default_tool_name=${target_noncanonical}-nm
13562
        else
13563
                default_tool_name=`echo nm | sed "${program_transform_name}"`
13564
        fi
13565
        for ac_prog in $default_tool_name
13566
do
13567
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13568
set dummy $ac_prog; ac_word=$2
13569
echo "$as_me:$LINENO: checking for $ac_word" >&5
13570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13571
if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13572
  echo $ECHO_N "(cached) $ECHO_C" >&6
13573
else
13574
  case $gcc_cv_nm in
13575
  [\\/]* | ?:[\\/]*)
13576
  ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13577
  ;;
13578
  *)
13579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580
for as_dir in $PATH
13581
do
13582
  IFS=$as_save_IFS
13583
  test -z "$as_dir" && as_dir=.
13584
  for ac_exec_ext in '' $ac_executable_extensions; do
13585
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586
    ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13587
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13588
    break 2
13589
  fi
13590
done
13591
done
13592
 
13593
  ;;
13594
esac
13595
fi
13596
gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13597
 
13598
if test -n "$gcc_cv_nm"; then
13599
  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13600
echo "${ECHO_T}$gcc_cv_nm" >&6
13601
else
13602
  echo "$as_me:$LINENO: result: no" >&5
13603
echo "${ECHO_T}no" >&6
13604
fi
13605
 
13606
  test -n "$gcc_cv_nm" && break
13607
done
13608
test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13609
 
13610
fi
13611
test "$silent" != yes && exec 6>&1
13612
 
13613
ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13614
 
13615
echo "$as_me:$LINENO: checking what nm to use" >&5
13616
echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13617
case $in_tree_nm in
13618
  yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13619
echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13620
  no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13621
echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13622
esac
13623
 
13624
# Figure out what objdump we will be using.
13625
in_tree_objdump=no
13626
gcc_cv_objdump=
13627
if test -f $gcc_cv_binutils_srcdir/configure.in \
13628
     && test -f ../binutils/Makefile; then
13629
        # Single tree build which includes binutils.
13630
        in_tree_objdump=yes
13631
        gcc_cv_objdump=../binutils/objdump$build_exeext
13632
elif test -x objdump$build_exeext; then
13633
        gcc_cv_objdump=./objdump$build_exeext
13634
fi
13635
 
13636
 
13637
 
13638
 
13639
 
13640
exec 6>/dev/null
13641
 
13642
# First try the environment variables.  Handle full paths or basenames.
13643
if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
13644
        # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13645
set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13646
echo "$as_me:$LINENO: checking for $ac_word" >&5
13647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13648
if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13649
  echo $ECHO_N "(cached) $ECHO_C" >&6
13650
else
13651
  case $gcc_cv_objdump in
13652
  [\\/]* | ?:[\\/]*)
13653
  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13654
  ;;
13655
  *)
13656
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13657
for as_dir in $PATH
13658
do
13659
  IFS=$as_save_IFS
13660
  test -z "$as_dir" && as_dir=.
13661
  for ac_exec_ext in '' $ac_executable_extensions; do
13662
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13663
    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13664
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13665
    break 2
13666
  fi
13667
done
13668
done
13669
 
13670
  ;;
13671
esac
13672
fi
13673
gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13674
 
13675
if test -n "$gcc_cv_objdump"; then
13676
  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13677
echo "${ECHO_T}$gcc_cv_objdump" >&6
13678
else
13679
  echo "$as_me:$LINENO: result: no" >&5
13680
echo "${ECHO_T}no" >&6
13681
fi
13682
 
13683
fi
13684
if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
13685
        # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13686
set dummy $OBJDUMP; ac_word=$2
13687
echo "$as_me:$LINENO: checking for $ac_word" >&5
13688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13689
if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13690
  echo $ECHO_N "(cached) $ECHO_C" >&6
13691
else
13692
  case $gcc_cv_objdump in
13693
  [\\/]* | ?:[\\/]*)
13694
  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13695
  ;;
13696
  *)
13697
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698
for as_dir in $PATH
13699
do
13700
  IFS=$as_save_IFS
13701
  test -z "$as_dir" && as_dir=.
13702
  for ac_exec_ext in '' $ac_executable_extensions; do
13703
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704
    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13705
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13706
    break 2
13707
  fi
13708
done
13709
done
13710
 
13711
  ;;
13712
esac
13713
fi
13714
gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13715
 
13716
if test -n "$gcc_cv_objdump"; then
13717
  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13718
echo "${ECHO_T}$gcc_cv_objdump" >&6
13719
else
13720
  echo "$as_me:$LINENO: result: no" >&5
13721
echo "${ECHO_T}no" >&6
13722
fi
13723
 
13724
fi
13725
 
13726
if test "x$gcc_cv_objdump" = x; then
13727
        # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13728
        # is empty.
13729
        if test "x$gcc_cv_tool_dirs" = x; then
13730
                gcc_cv_objdump=
13731
        else
13732
                for ac_prog in objdump
13733
do
13734
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13735
set dummy $ac_prog; ac_word=$2
13736
echo "$as_me:$LINENO: checking for $ac_word" >&5
13737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13738
if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13739
  echo $ECHO_N "(cached) $ECHO_C" >&6
13740
else
13741
  case $gcc_cv_objdump in
13742
  [\\/]* | ?:[\\/]*)
13743
  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13744
  ;;
13745
  *)
13746
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747
for as_dir in $gcc_cv_tool_dirs
13748
do
13749
  IFS=$as_save_IFS
13750
  test -z "$as_dir" && as_dir=.
13751
  for ac_exec_ext in '' $ac_executable_extensions; do
13752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753
    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13755
    break 2
13756
  fi
13757
done
13758
done
13759
 
13760
  ;;
13761
esac
13762
fi
13763
gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13764
 
13765
if test -n "$gcc_cv_objdump"; then
13766
  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13767
echo "${ECHO_T}$gcc_cv_objdump" >&6
13768
else
13769
  echo "$as_me:$LINENO: result: no" >&5
13770
echo "${ECHO_T}no" >&6
13771
fi
13772
 
13773
  test -n "$gcc_cv_objdump" && break
13774
done
13775
 
13776
        fi
13777
fi
13778
if test "x$gcc_cv_objdump" = x; then
13779
        # If the loop above did not find a tool, then use whatever
13780
        # one we can find in the users's path.  We are looking for a
13781
        # ${build} -> ${target} tool.
13782
        if test "x$program_prefix" != xNONE; then
13783
                default_tool_name=${program_prefix}objdump
13784
        elif test x$build != x$host && test x$build != x$target; then
13785
                default_tool_name=${target_noncanonical}-objdump
13786
        else
13787
                default_tool_name=`echo objdump | sed "${program_transform_name}"`
13788
        fi
13789
        for ac_prog in $default_tool_name
13790
do
13791
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13792
set dummy $ac_prog; ac_word=$2
13793
echo "$as_me:$LINENO: checking for $ac_word" >&5
13794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13795
if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13796
  echo $ECHO_N "(cached) $ECHO_C" >&6
13797
else
13798
  case $gcc_cv_objdump in
13799
  [\\/]* | ?:[\\/]*)
13800
  ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13801
  ;;
13802
  *)
13803
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804
for as_dir in $PATH
13805
do
13806
  IFS=$as_save_IFS
13807
  test -z "$as_dir" && as_dir=.
13808
  for ac_exec_ext in '' $ac_executable_extensions; do
13809
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810
    ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13811
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13812
    break 2
13813
  fi
13814
done
13815
done
13816
 
13817
  ;;
13818
esac
13819
fi
13820
gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13821
 
13822
if test -n "$gcc_cv_objdump"; then
13823
  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13824
echo "${ECHO_T}$gcc_cv_objdump" >&6
13825
else
13826
  echo "$as_me:$LINENO: result: no" >&5
13827
echo "${ECHO_T}no" >&6
13828
fi
13829
 
13830
  test -n "$gcc_cv_objdump" && break
13831
done
13832
test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13833
 
13834
fi
13835
test "$silent" != yes && exec 6>&1
13836
 
13837
ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
13838
 
13839
echo "$as_me:$LINENO: checking what objdump to use" >&5
13840
echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13841
case $in_tree_objdump in
13842
  yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13843
echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13844
  no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13845
echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13846
esac
13847
 
13848
# Figure out what assembler alignment features are present.
13849
echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13850
echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13851
if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13852
  echo $ECHO_N "(cached) $ECHO_C" >&6
13853
else
13854
  gcc_cv_as_balign_and_p2align=no
13855
    if test $in_tree_gas = yes; then
13856
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13857
  then gcc_cv_as_balign_and_p2align=yes
13858
fi
13859
  elif test x$gcc_cv_as != x; then
13860
    echo '.balign 4
13861
.p2align 2' > conftest.s
13862
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864
  (eval $ac_try) 2>&5
13865
  ac_status=$?
13866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867
  (exit $ac_status); }; }
13868
    then
13869
        gcc_cv_as_balign_and_p2align=yes
13870
    else
13871
      echo "configure: failed program was" >&5
13872
      cat conftest.s >&5
13873
    fi
13874
    rm -f conftest.o conftest.s
13875
  fi
13876
fi
13877
echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13878
echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13879
if test $gcc_cv_as_balign_and_p2align = yes; then
13880
 
13881
cat >>confdefs.h <<\_ACEOF
13882
#define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13883
_ACEOF
13884
 
13885
fi
13886
 
13887
echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13888
echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13889
if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13890
  echo $ECHO_N "(cached) $ECHO_C" >&6
13891
else
13892
  gcc_cv_as_max_skip_p2align=no
13893
    if test $in_tree_gas = yes; then
13894
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13895
  then gcc_cv_as_max_skip_p2align=yes
13896
fi
13897
  elif test x$gcc_cv_as != x; then
13898
    echo '.p2align 4,,7' > conftest.s
13899
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901
  (eval $ac_try) 2>&5
13902
  ac_status=$?
13903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904
  (exit $ac_status); }; }
13905
    then
13906
        gcc_cv_as_max_skip_p2align=yes
13907
    else
13908
      echo "configure: failed program was" >&5
13909
      cat conftest.s >&5
13910
    fi
13911
    rm -f conftest.o conftest.s
13912
  fi
13913
fi
13914
echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13915
echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13916
if test $gcc_cv_as_max_skip_p2align = yes; then
13917
 
13918
cat >>confdefs.h <<\_ACEOF
13919
#define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13920
_ACEOF
13921
 
13922
fi
13923
 
13924
echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13925
echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13926
if test "${gcc_cv_as_subsection_m1+set}" = set; then
13927
  echo $ECHO_N "(cached) $ECHO_C" >&6
13928
else
13929
  gcc_cv_as_subsection_m1=no
13930
    if test $in_tree_gas = yes; then
13931
    if test $in_tree_gas_is_elf = yes \
13932
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13933
  then gcc_cv_as_subsection_m1=yes
13934
fi
13935
  elif test x$gcc_cv_as != x; then
13936
    echo 'conftest_label1: .word 0
13937
.subsection -1
13938
conftest_label2: .word 0
13939
.previous' > conftest.s
13940
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942
  (eval $ac_try) 2>&5
13943
  ac_status=$?
13944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945
  (exit $ac_status); }; }
13946
    then
13947
        if test x$gcc_cv_nm != x; then
13948
    $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13949
    $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13950
    if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13951
    then :
13952
    else gcc_cv_as_subsection_m1=yes
13953
    fi
13954
    rm -f conftest.nm1 conftest.nm2
13955
  fi
13956
    else
13957
      echo "configure: failed program was" >&5
13958
      cat conftest.s >&5
13959
    fi
13960
    rm -f conftest.o conftest.s
13961
  fi
13962
fi
13963
echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13964
echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13965
if test $gcc_cv_as_subsection_m1 = yes; then
13966
 
13967
cat >>confdefs.h <<\_ACEOF
13968
#define HAVE_GAS_SUBSECTION_ORDERING 1
13969
_ACEOF
13970
 
13971
fi
13972
 
13973
echo "$as_me:$LINENO: checking assembler for .weak" >&5
13974
echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13975
if test "${gcc_cv_as_weak+set}" = set; then
13976
  echo $ECHO_N "(cached) $ECHO_C" >&6
13977
else
13978
  gcc_cv_as_weak=no
13979
    if test $in_tree_gas = yes; then
13980
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13981
  then gcc_cv_as_weak=yes
13982
fi
13983
  elif test x$gcc_cv_as != x; then
13984
    echo '      .weak foobar' > conftest.s
13985
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987
  (eval $ac_try) 2>&5
13988
  ac_status=$?
13989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990
  (exit $ac_status); }; }
13991
    then
13992
        gcc_cv_as_weak=yes
13993
    else
13994
      echo "configure: failed program was" >&5
13995
      cat conftest.s >&5
13996
    fi
13997
    rm -f conftest.o conftest.s
13998
  fi
13999
fi
14000
echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14001
echo "${ECHO_T}$gcc_cv_as_weak" >&6
14002
if test $gcc_cv_as_weak = yes; then
14003
 
14004
cat >>confdefs.h <<\_ACEOF
14005
#define HAVE_GAS_WEAK 1
14006
_ACEOF
14007
 
14008
fi
14009
 
14010
echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14011
echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14012
if test "${gcc_cv_as_weakref+set}" = set; then
14013
  echo $ECHO_N "(cached) $ECHO_C" >&6
14014
else
14015
  gcc_cv_as_weakref=no
14016
    if test $in_tree_gas = yes; then
14017
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14018
  then gcc_cv_as_weakref=yes
14019
fi
14020
  elif test x$gcc_cv_as != x; then
14021
    echo '      .weakref foobar, barfnot' > conftest.s
14022
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024
  (eval $ac_try) 2>&5
14025
  ac_status=$?
14026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027
  (exit $ac_status); }; }
14028
    then
14029
        gcc_cv_as_weakref=yes
14030
    else
14031
      echo "configure: failed program was" >&5
14032
      cat conftest.s >&5
14033
    fi
14034
    rm -f conftest.o conftest.s
14035
  fi
14036
fi
14037
echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14038
echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14039
if test $gcc_cv_as_weakref = yes; then
14040
 
14041
cat >>confdefs.h <<\_ACEOF
14042
#define HAVE_GAS_WEAKREF 1
14043
_ACEOF
14044
 
14045
fi
14046
 
14047
echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14048
echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14049
if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14050
  echo $ECHO_N "(cached) $ECHO_C" >&6
14051
else
14052
  gcc_cv_as_nsubspa_comdat=no
14053
    if test $in_tree_gas = yes; then
14054
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14055
  then gcc_cv_as_nsubspa_comdat=yes
14056
fi
14057
  elif test x$gcc_cv_as != x; then
14058
    echo '      .SPACE $TEXT$
14059
        .NSUBSPA $CODE$,COMDAT' > conftest.s
14060
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062
  (eval $ac_try) 2>&5
14063
  ac_status=$?
14064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065
  (exit $ac_status); }; }
14066
    then
14067
        gcc_cv_as_nsubspa_comdat=yes
14068
    else
14069
      echo "configure: failed program was" >&5
14070
      cat conftest.s >&5
14071
    fi
14072
    rm -f conftest.o conftest.s
14073
  fi
14074
fi
14075
echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14076
echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14077
if test $gcc_cv_as_nsubspa_comdat = yes; then
14078
 
14079
cat >>confdefs.h <<\_ACEOF
14080
#define HAVE_GAS_NSUBSPA_COMDAT 1
14081
_ACEOF
14082
 
14083
fi
14084
 
14085
# .hidden needs to be supported in both the assembler and the linker,
14086
# because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14087
# This is irritatingly difficult to feature test for; we have to check the
14088
# date string after the version number.  If we've got an in-tree
14089
# ld, we don't know its patchlevel version, so we set the baseline at 2.13
14090
# to be safe.
14091
# The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14092
echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14093
echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14094
if test "${gcc_cv_as_hidden+set}" = set; then
14095
  echo $ECHO_N "(cached) $ECHO_C" >&6
14096
else
14097
  gcc_cv_as_hidden=no
14098
    if test $in_tree_gas = yes; then
14099
    if test $in_tree_gas_is_elf = yes \
14100
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14101
  then gcc_cv_as_hidden=yes
14102
fi
14103
  elif test x$gcc_cv_as != x; then
14104
    echo '      .hidden foobar
14105
foobar:' > conftest.s
14106
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108
  (eval $ac_try) 2>&5
14109
  ac_status=$?
14110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111
  (exit $ac_status); }; }
14112
    then
14113
        gcc_cv_as_hidden=yes
14114
    else
14115
      echo "configure: failed program was" >&5
14116
      cat conftest.s >&5
14117
    fi
14118
    rm -f conftest.o conftest.s
14119
  fi
14120
fi
14121
echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14122
echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14123
 
14124
 
14125
echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14126
echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14127
if test "${gcc_cv_ld_hidden+set}" = set; then
14128
  echo $ECHO_N "(cached) $ECHO_C" >&6
14129
else
14130
  if test $in_tree_ld = yes ; then
14131
  gcc_cv_ld_hidden=no
14132
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
14133
     && test $in_tree_ld_is_elf = yes; then
14134
     gcc_cv_ld_hidden=yes
14135
  fi
14136
else
14137
  gcc_cv_ld_hidden=yes
14138
  ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14139
  if echo "$ld_ver" | grep GNU > /dev/null; then
14140
    ld_vers=`echo $ld_ver | sed -n \
14141
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14142
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14143
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14144
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14145
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14146
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14147
        -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
14148
    ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
14149
    ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14150
    ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14151
    ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14152
    if test 0"$ld_date" -lt 20020404; then
14153
      if test -n "$ld_date"; then
14154
        # If there was date string, but was earlier than 2002-04-04, fail
14155
        gcc_cv_ld_hidden=no
14156
      elif test -z "$ld_vers"; then
14157
        # If there was no date string nor ld version number, something is wrong
14158
        gcc_cv_ld_hidden=no
14159
      else
14160
        test -z "$ld_vers_patch" && ld_vers_patch=0
14161
        if test "$ld_vers_major" -lt 2; then
14162
          gcc_cv_ld_hidden=no
14163
        elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14164
          gcc_cv_ld_hidden="no"
14165
        elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14166
          gcc_cv_ld_hidden=no
14167
        fi
14168
      fi
14169
    fi
14170
  else
14171
    case "${target}" in
14172
      hppa64*-*-hpux* | ia64*-*-hpux*)
14173
        gcc_cv_ld_hidden=yes
14174
        ;;
14175
      *)
14176
        gcc_cv_ld_hidden=no
14177
        ;;
14178
    esac
14179
  fi
14180
fi
14181
fi
14182
echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14183
echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14184
libgcc_visibility=no
14185
 
14186
 
14187
if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14188
  libgcc_visibility=yes
14189
 
14190
cat >>confdefs.h <<\_ACEOF
14191
#define HAVE_GAS_HIDDEN 1
14192
_ACEOF
14193
 
14194
fi
14195
 
14196
# Check if we have .[us]leb128, and support symbol arithmetic with it.
14197
echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14198
echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14199
if test "${gcc_cv_as_leb128+set}" = set; then
14200
  echo $ECHO_N "(cached) $ECHO_C" >&6
14201
else
14202
  gcc_cv_as_leb128=no
14203
    if test $in_tree_gas = yes; then
14204
    if test $in_tree_gas_is_elf = yes \
14205
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14206
  then gcc_cv_as_leb128=yes
14207
fi
14208
  elif test x$gcc_cv_as != x; then
14209
    echo '      .data
14210
        .uleb128 L2 - L1
14211
L1:
14212
        .uleb128 1280
14213
        .sleb128 -1010
14214
L2:' > conftest.s
14215
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217
  (eval $ac_try) 2>&5
14218
  ac_status=$?
14219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220
  (exit $ac_status); }; }
14221
    then
14222
        # GAS versions before 2.11 do not support uleb128,
14223
  # despite appearing to.
14224
  # ??? There exists an elf-specific test that will crash
14225
  # the assembler.  Perhaps it's better to figure out whether
14226
  # arbitrary sections are supported and try the test.
14227
  as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14228
  if echo "$as_ver" | grep GNU > /dev/null; then
14229
    as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14230
    as_major=`echo $as_ver | sed 's/\..*//'`
14231
    as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14232
    if test $as_major -eq 2 && test $as_minor -lt 11
14233
    then :
14234
    else gcc_cv_as_leb128=yes
14235
    fi
14236
  fi
14237
    else
14238
      echo "configure: failed program was" >&5
14239
      cat conftest.s >&5
14240
    fi
14241
    rm -f conftest.o conftest.s
14242
  fi
14243
fi
14244
echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14245
echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14246
if test $gcc_cv_as_leb128 = yes; then
14247
 
14248
cat >>confdefs.h <<\_ACEOF
14249
#define HAVE_AS_LEB128 1
14250
_ACEOF
14251
 
14252
fi
14253
 
14254
# GAS versions up to and including 2.11.0 may mis-optimize
14255
# .eh_frame data.
14256
echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14257
echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14258
if test "${gcc_cv_as_eh_frame+set}" = set; then
14259
  echo $ECHO_N "(cached) $ECHO_C" >&6
14260
else
14261
  gcc_cv_as_eh_frame=no
14262
    if test $in_tree_gas = yes; then
14263
    if test $in_tree_gas_is_elf = yes \
14264
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14265
  then gcc_cv_as_eh_frame=yes
14266
fi
14267
  elif test x$gcc_cv_as != x; then
14268
    echo '      .text
14269
.LFB1:
14270
        .4byte  0
14271
.L1:
14272
        .4byte  0
14273
.LFE1:
14274
        .section        .eh_frame,"aw",@progbits
14275
__FRAME_BEGIN__:
14276
        .4byte  .LECIE1-.LSCIE1
14277
.LSCIE1:
14278
        .4byte  0x0
14279
        .byte   0x1
14280
        .ascii "z\0"
14281
        .byte   0x1
14282
        .byte   0x78
14283
        .byte   0x1a
14284
        .byte   0x0
14285
        .byte   0x4
14286
        .4byte  1
14287
        .p2align 1
14288
.LECIE1:
14289
.LSFDE1:
14290
        .4byte  .LEFDE1-.LASFDE1
14291
.LASFDE1:
14292
        .4byte  .LASFDE1-__FRAME_BEGIN__
14293
        .4byte  .LFB1
14294
        .4byte  .LFE1-.LFB1
14295
        .byte   0x4
14296
        .4byte  .LFE1-.LFB1
14297
        .byte   0x4
14298
        .4byte  .L1-.LFB1
14299
.LEFDE1:' > conftest.s
14300
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14301
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302
  (eval $ac_try) 2>&5
14303
  ac_status=$?
14304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305
  (exit $ac_status); }; }
14306
    then
14307
          cat > conftest.lit <
14308
 0000 10000000 00000000 017a0001 781a0004  .........z..x...
14309
 0010 01000000 12000000 18000000 00000000  ................
14310
 0020 08000000 04080000 0044               .........D
14311
EOF
14312
cat > conftest.big <
14313
 0000 00000010 00000000 017a0001 781a0004  .........z..x...
14314
 0010 00000001 00000012 00000018 00000000  ................
14315
 0020 00000008 04000000 0844               .........D
14316
EOF
14317
  # If the assembler didn't choke, and we can objdump,
14318
  # and we got the correct data, then succeed.
14319
  if test x$gcc_cv_objdump != x \
14320
  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14321
     | tail -3 > conftest.got \
14322
  && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14323
    || cmp conftest.big conftest.got > /dev/null 2>&1; }
14324
  then
14325
    gcc_cv_as_eh_frame=yes
14326
  elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328
  (eval $ac_try) 2>&5
14329
  ac_status=$?
14330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331
  (exit $ac_status); }; }; then
14332
    gcc_cv_as_eh_frame=buggy
14333
  else
14334
    # Uh oh, what do we do now?
14335
    gcc_cv_as_eh_frame=no
14336
  fi
14337
    else
14338
      echo "configure: failed program was" >&5
14339
      cat conftest.s >&5
14340
    fi
14341
    rm -f conftest.o conftest.s
14342
  fi
14343
fi
14344
echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14345
echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14346
 
14347
 
14348
if test $gcc_cv_as_eh_frame = buggy; then
14349
 
14350
cat >>confdefs.h <<\_ACEOF
14351
#define USE_AS_TRADITIONAL_FORMAT 1
14352
_ACEOF
14353
 
14354
fi
14355
 
14356
echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14357
echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14358
if test "${gcc_cv_as_shf_merge+set}" = set; then
14359
  echo $ECHO_N "(cached) $ECHO_C" >&6
14360
else
14361
  gcc_cv_as_shf_merge=no
14362
    if test $in_tree_gas = yes; then
14363
    if test $in_tree_gas_is_elf = yes \
14364
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14365
  then gcc_cv_as_shf_merge=yes
14366
fi
14367
  elif test x$gcc_cv_as != x; then
14368
    echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14369
    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371
  (eval $ac_try) 2>&5
14372
  ac_status=$?
14373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374
  (exit $ac_status); }; }
14375
    then
14376
        gcc_cv_as_shf_merge=yes
14377
    else
14378
      echo "configure: failed program was" >&5
14379
      cat conftest.s >&5
14380
    fi
14381
    rm -f conftest.o conftest.s
14382
  fi
14383
fi
14384
echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14385
echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14386
 
14387
if test $gcc_cv_as_shf_merge = no; then
14388
  echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14389
echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14390
if test "${gcc_cv_as_shf_merge+set}" = set; then
14391
  echo $ECHO_N "(cached) $ECHO_C" >&6
14392
else
14393
  gcc_cv_as_shf_merge=no
14394
    if test $in_tree_gas = yes; then
14395
    if test $in_tree_gas_is_elf = yes \
14396
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14397
  then gcc_cv_as_shf_merge=yes
14398
fi
14399
  elif test x$gcc_cv_as != x; then
14400
    echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14401
    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403
  (eval $ac_try) 2>&5
14404
  ac_status=$?
14405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406
  (exit $ac_status); }; }
14407
    then
14408
        gcc_cv_as_shf_merge=yes
14409
    else
14410
      echo "configure: failed program was" >&5
14411
      cat conftest.s >&5
14412
    fi
14413
    rm -f conftest.o conftest.s
14414
  fi
14415
fi
14416
echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14417
echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14418
 
14419
fi
14420
 
14421
cat >>confdefs.h <<_ACEOF
14422
#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14423
_ACEOF
14424
 
14425
 
14426
echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14427
echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14428
if test "${gcc_cv_as_comdat_group+set}" = set; then
14429
  echo $ECHO_N "(cached) $ECHO_C" >&6
14430
else
14431
  gcc_cv_as_comdat_group=no
14432
    if test $in_tree_gas = yes; then
14433
    if test $in_tree_gas_is_elf = yes \
14434
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14435
  then gcc_cv_as_comdat_group=yes
14436
fi
14437
  elif test x$gcc_cv_as != x; then
14438
    echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14439
    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441
  (eval $ac_try) 2>&5
14442
  ac_status=$?
14443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444
  (exit $ac_status); }; }
14445
    then
14446
        gcc_cv_as_comdat_group=yes
14447
    else
14448
      echo "configure: failed program was" >&5
14449
      cat conftest.s >&5
14450
    fi
14451
    rm -f conftest.o conftest.s
14452
  fi
14453
fi
14454
echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14455
echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14456
 
14457
if test $gcc_cv_as_comdat_group = yes; then
14458
  gcc_cv_as_comdat_group_percent=no
14459
else
14460
 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14461
echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14462
if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14463
  echo $ECHO_N "(cached) $ECHO_C" >&6
14464
else
14465
  gcc_cv_as_comdat_group_percent=no
14466
    if test $in_tree_gas = yes; then
14467
    if test $in_tree_gas_is_elf = yes \
14468
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14469
  then gcc_cv_as_comdat_group_percent=yes
14470
fi
14471
  elif test x$gcc_cv_as != x; then
14472
    echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14473
    if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475
  (eval $ac_try) 2>&5
14476
  ac_status=$?
14477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478
  (exit $ac_status); }; }
14479
    then
14480
        gcc_cv_as_comdat_group_percent=yes
14481
    else
14482
      echo "configure: failed program was" >&5
14483
      cat conftest.s >&5
14484
    fi
14485
    rm -f conftest.o conftest.s
14486
  fi
14487
fi
14488
echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14489
echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14490
 
14491
fi
14492
if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14493
  comdat_group=yes
14494
  if test 0"$ld_date" -lt 20050308; then
14495
    if test -n "$ld_date"; then
14496
      # If there was date string, but was earlier than 2005-03-08, fail
14497
      comdat_group=no
14498
    elif test "$ld_vers_major" -lt 2; then
14499
      comdat_group=no
14500
    elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14501
      comdat_group=no
14502
    fi
14503
  fi
14504
else
14505
  # assume linkers other than GNU ld don't support COMDAT group
14506
  comdat_group=no
14507
fi
14508
if test $comdat_group = no; then
14509
  gcc_cv_as_comdat_group=no
14510
  gcc_cv_as_comdat_group_percent=no
14511
fi
14512
 
14513
cat >>confdefs.h <<_ACEOF
14514
#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14515
_ACEOF
14516
 
14517
 
14518
# Thread-local storage - the check is heavily parametrized.
14519
conftest_s=
14520
tls_first_major=
14521
tls_first_minor=
14522
tls_as_opt=
14523
case "$target" in
14524
  alpha*-*-*)
14525
    conftest_s='
14526
        .section ".tdata","awT",@progbits
14527
foo:    .long   25
14528
        .text
14529
        ldq     $27,__tls_get_addr($29)         !literal!1
14530
        lda     $16,foo($29)                    !tlsgd!1
14531
        jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14532
        ldq     $27,__tls_get_addr($29)         !literal!2
14533
        lda     $16,foo($29)                    !tlsldm!2
14534
        jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14535
        ldq     $1,foo($29)                     !gotdtprel
14536
        ldah    $2,foo($29)                     !dtprelhi
14537
        lda     $3,foo($2)                      !dtprello
14538
        lda     $4,foo($29)                     !dtprel
14539
        ldq     $1,foo($29)                     !gottprel
14540
        ldah    $2,foo($29)                     !tprelhi
14541
        lda     $3,foo($2)                      !tprello
14542
        lda     $4,foo($29)                     !tprel'
14543
        tls_first_major=2
14544
        tls_first_minor=13
14545
        tls_as_opt=--fatal-warnings
14546
        ;;
14547
  frv*-*-*)
14548
    conftest_s='
14549
        .section ".tdata","awT",@progbits
14550
x:      .long   25
14551
        .text
14552
        call    #gettlsoff(x)'
14553
        tls_first_major=2
14554
        tls_first_minor=14
14555
        ;;
14556
  hppa*-*-linux*)
14557
    conftest_s='
14558
t1:     .reg    %r20
14559
t2:     .reg    %r21
14560
gp:     .reg    %r19
14561
        .section ".tdata","awT",@progbits
14562
foo:    .long   25
14563
        .text
14564
        .align  4
14565
        addil LT%foo-$tls_gdidx$,gp
14566
        ldo RT%foo-$tls_gdidx$(%r1),%arg0
14567
        b __tls_get_addr
14568
        nop
14569
        addil LT%foo-$tls_ldidx$,gp
14570
        b __tls_get_addr
14571
        ldo RT%foo-$tls_ldidx$(%r1),%arg0
14572
        addil LR%foo-$tls_dtpoff$,%ret0
14573
        ldo RR%foo-$tls_dtpoff$(%r1),%t1
14574
        mfctl %cr27,%t1
14575
        addil LT%foo-$tls_ieoff$,gp
14576
        ldw RT%foo-$tls_ieoff$(%r1),%t2
14577
        add %t1,%t2,%t3
14578
        mfctl %cr27,%t1
14579
        addil LR%foo-$tls_leoff$,%t1
14580
        ldo RR%foo-$tls_leoff$(%r1),%t2'
14581
        tls_first_major=2
14582
        tls_first_minor=15
14583
        tls_as_opt=--fatal-warnings
14584
        ;;
14585
  arm*-*-*)
14586
    conftest_s='
14587
        .section ".tdata","awT",%progbits
14588
foo:    .long   25
14589
        .text
14590
.word foo(gottpoff)
14591
.word foo(tpoff)
14592
.word foo(tlsgd)
14593
.word foo(tlsldm)
14594
.word foo(tlsldo)'
14595
        tls_first_major=2
14596
        tls_first_minor=17
14597
        ;;
14598
  i[34567]86-*-*)
14599
    conftest_s='
14600
        .section ".tdata","awT",@progbits
14601
foo:    .long   25
14602
        .text
14603
        movl    %gs:0, %eax
14604
        leal    foo@TLSGD(,%ebx,1), %eax
14605
        leal    foo@TLSLDM(%ebx), %eax
14606
        leal    foo@DTPOFF(%eax), %edx
14607
        movl    foo@GOTTPOFF(%ebx), %eax
14608
        subl    foo@GOTTPOFF(%ebx), %eax
14609
        addl    foo@GOTNTPOFF(%ebx), %eax
14610
        movl    foo@INDNTPOFF, %eax
14611
        movl    $foo@TPOFF, %eax
14612
        subl    $foo@TPOFF, %eax
14613
        leal    foo@NTPOFF(%ecx), %eax'
14614
        tls_first_major=2
14615
        tls_first_minor=14
14616
        tls_as_opt=--fatal-warnings
14617
        ;;
14618
  x86_64-*-*)
14619
    conftest_s='
14620
        .section ".tdata","awT",@progbits
14621
foo:    .long   25
14622
        .text
14623
        movq    %fs:0, %rax
14624
        leaq    foo@TLSGD(%rip), %rdi
14625
        leaq    foo@TLSLD(%rip), %rdi
14626
        leaq    foo@DTPOFF(%rax), %rdx
14627
        movq    foo@GOTTPOFF(%rip), %rax
14628
        movq    $foo@TPOFF, %rax'
14629
        tls_first_major=2
14630
        tls_first_minor=14
14631
        tls_as_opt=--fatal-warnings
14632
        ;;
14633
  ia64-*-*)
14634
    conftest_s='
14635
        .section ".tdata","awT",@progbits
14636
foo:    data8   25
14637
        .text
14638
        addl    r16 = @ltoff(@dtpmod(foo#)), gp
14639
        addl    r17 = @ltoff(@dtprel(foo#)), gp
14640
        addl    r18 = @ltoff(@tprel(foo#)), gp
14641
        addl    r19 = @dtprel(foo#), gp
14642
        adds    r21 = @dtprel(foo#), r13
14643
        movl    r23 = @dtprel(foo#)
14644
        addl    r20 = @tprel(foo#), gp
14645
        adds    r22 = @tprel(foo#), r13
14646
        movl    r24 = @tprel(foo#)'
14647
        tls_first_major=2
14648
        tls_first_minor=13
14649
        tls_as_opt=--fatal-warnings
14650
        ;;
14651
  mips*-*-*)
14652
    conftest_s='
14653
        .section .tdata,"awT",@progbits
14654
x:
14655
        .word 2
14656
        .text
14657
        addiu $4, $28, %tlsgd(x)
14658
        addiu $4, $28, %tlsldm(x)
14659
        lui $4, %dtprel_hi(x)
14660
        addiu $4, $4, %dtprel_lo(x)
14661
        lw $4, %gottprel(x)($28)
14662
        lui $4, %tprel_hi(x)
14663
        addiu $4, $4, %tprel_lo(x)'
14664
        tls_first_major=2
14665
        tls_first_minor=16
14666
        tls_as_opt='-32 --fatal-warnings'
14667
        ;;
14668
  powerpc-*-*)
14669
    conftest_s='
14670
        .section ".tdata","awT",@progbits
14671
        .align 2
14672
ld0:    .space 4
14673
ld1:    .space 4
14674
x1:     .space 4
14675
x2:     .space 4
14676
x3:     .space 4
14677
        .text
14678
        addi 3,31,ld0@got@tlsgd
14679
        bl __tls_get_addr
14680
        addi 3,31,x1@got@tlsld
14681
        bl __tls_get_addr
14682
        addi 9,3,x1@dtprel
14683
        addis 9,3,x2@dtprel@ha
14684
        addi 9,9,x2@dtprel@l
14685
        lwz 9,x3@got@tprel(31)
14686
        add 9,9,x@tls
14687
        addi 9,2,x1@tprel
14688
        addis 9,2,x2@tprel@ha
14689
        addi 9,9,x2@tprel@l'
14690
        tls_first_major=2
14691
        tls_first_minor=14
14692
        tls_as_opt="-a32 --fatal-warnings"
14693
        ;;
14694
  powerpc64-*-*)
14695
    conftest_s='
14696
        .section ".tdata","awT",@progbits
14697
        .align 3
14698
ld0:    .space 8
14699
ld1:    .space 8
14700
x1:     .space 8
14701
x2:     .space 8
14702
x3:     .space 8
14703
        .text
14704
        addi 3,2,ld0@got@tlsgd
14705
        bl .__tls_get_addr
14706
        nop
14707
        addi 3,2,ld1@toc
14708
        bl .__tls_get_addr
14709
        nop
14710
        addi 3,2,x1@got@tlsld
14711
        bl .__tls_get_addr
14712
        nop
14713
        addi 9,3,x1@dtprel
14714
        bl .__tls_get_addr
14715
        nop
14716
        addis 9,3,x2@dtprel@ha
14717
        addi 9,9,x2@dtprel@l
14718
        bl .__tls_get_addr
14719
        nop
14720
        ld 9,x3@got@dtprel(2)
14721
        add 9,9,3
14722
        bl .__tls_get_addr
14723
        nop'
14724
        tls_first_major=2
14725
        tls_first_minor=14
14726
        tls_as_opt="-a64 --fatal-warnings"
14727
        ;;
14728
  s390-*-*)
14729
    conftest_s='
14730
        .section ".tdata","awT",@progbits
14731
foo:    .long   25
14732
        .text
14733
        .long   foo@TLSGD
14734
        .long   foo@TLSLDM
14735
        .long   foo@DTPOFF
14736
        .long   foo@NTPOFF
14737
        .long   foo@GOTNTPOFF
14738
        .long   foo@INDNTPOFF
14739
        l       %r1,foo@GOTNTPOFF(%r12)
14740
        l       %r1,0(%r1):tls_load:foo
14741
        bas     %r14,0(%r1,%r13):tls_gdcall:foo
14742
        bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14743
        tls_first_major=2
14744
        tls_first_minor=14
14745
        tls_as_opt="-m31 --fatal-warnings"
14746
        ;;
14747
  s390x-*-*)
14748
    conftest_s='
14749
        .section ".tdata","awT",@progbits
14750
foo:    .long   25
14751
        .text
14752
        .quad   foo@TLSGD
14753
        .quad   foo@TLSLDM
14754
        .quad   foo@DTPOFF
14755
        .quad   foo@NTPOFF
14756
        .quad   foo@GOTNTPOFF
14757
        lg      %r1,foo@GOTNTPOFF(%r12)
14758
        larl    %r1,foo@INDNTPOFF
14759
        brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14760
        brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14761
        tls_first_major=2
14762
        tls_first_minor=14
14763
        tls_as_opt="-m64 -Aesame --fatal-warnings"
14764
        ;;
14765
  sh-*-* | sh[34]-*-*)
14766
    conftest_s='
14767
        .section ".tdata","awT",@progbits
14768
foo:    .long   25
14769
        .text
14770
        .long   foo@TLSGD
14771
        .long   foo@TLSLDM
14772
        .long   foo@DTPOFF
14773
        .long   foo@GOTTPOFF
14774
        .long   foo@TPOFF'
14775
        tls_first_major=2
14776
        tls_first_minor=13
14777
        tls_as_opt=--fatal-warnings
14778
        ;;
14779
  sparc*-*-*)
14780
    case "$target" in
14781
      sparc*-sun-solaris2.[56789]*)
14782
        # TLS was introduced in the Solaris 9 4/04 release but
14783
        # we do not enable it by default on Solaris 9 either.
14784
        if test "x$enable_tls" = xyes ; then
14785
          on_solaris=yes
14786
        else
14787
          enable_tls=no;
14788
        fi
14789
        ;;
14790
      sparc*-sun-solaris2.*)
14791
        on_solaris=yes
14792
        ;;
14793
      *)
14794
        on_solaris=no
14795
        ;;
14796
    esac
14797
    if test x$on_solaris = xyes && test x$gas_flag = xno; then
14798
      conftest_s='
14799
        .section ".tdata",#alloc,#write,#tls
14800
foo:    .long   25
14801
        .text
14802
        sethi   %tgd_hi22(foo), %o0
14803
        add     %o0, %tgd_lo10(foo), %o1
14804
        add     %l7, %o1, %o0, %tgd_add(foo)
14805
        call    __tls_get_addr, %tgd_call(foo)
14806
        sethi   %tldm_hi22(foo), %l1
14807
        add     %l1, %tldm_lo10(foo), %l2
14808
        add     %l7, %l2, %o0, %tldm_add(foo)
14809
        call    __tls_get_addr, %tldm_call(foo)
14810
        sethi   %tldo_hix22(foo), %l3
14811
        xor     %l3, %tldo_lox10(foo), %l4
14812
        add     %o0, %l4, %l5, %tldo_add(foo)
14813
        sethi   %tie_hi22(foo), %o3
14814
        add     %o3, %tie_lo10(foo), %o3
14815
        ld      [%l7 + %o3], %o2, %tie_ld(foo)
14816
        add     %g7, %o2, %o4, %tie_add(foo)
14817
        sethi   %tle_hix22(foo), %l1
14818
        xor     %l1, %tle_lox10(foo), %o5
14819
        ld      [%g7 + %o5], %o1'
14820
        tls_first_major=0
14821
        tls_first_minor=0
14822
    else
14823
      conftest_s='
14824
        .section ".tdata","awT",@progbits
14825
foo:    .long   25
14826
        .text
14827
        sethi   %tgd_hi22(foo), %o0
14828
        add     %o0, %tgd_lo10(foo), %o1
14829
        add     %l7, %o1, %o0, %tgd_add(foo)
14830
        call    __tls_get_addr, %tgd_call(foo)
14831
        sethi   %tldm_hi22(foo), %l1
14832
        add     %l1, %tldm_lo10(foo), %l2
14833
        add     %l7, %l2, %o0, %tldm_add(foo)
14834
        call    __tls_get_addr, %tldm_call(foo)
14835
        sethi   %tldo_hix22(foo), %l3
14836
        xor     %l3, %tldo_lox10(foo), %l4
14837
        add     %o0, %l4, %l5, %tldo_add(foo)
14838
        sethi   %tie_hi22(foo), %o3
14839
        add     %o3, %tie_lo10(foo), %o3
14840
        ld      [%l7 + %o3], %o2, %tie_ld(foo)
14841
        add     %g7, %o2, %o4, %tie_add(foo)
14842
        sethi   %tle_hix22(foo), %l1
14843
        xor     %l1, %tle_lox10(foo), %o5
14844
        ld      [%g7 + %o5], %o1'
14845
        tls_first_major=2
14846
        tls_first_minor=14
14847
        tls_as_opt="-32 --fatal-warnings"
14848
      fi
14849
        ;;
14850
esac
14851
set_have_as_tls=no
14852
if test "x$enable_tls" = xno ; then
14853
  : # TLS explicitly disabled.
14854
elif test "x$enable_tls" = xyes ; then
14855
  set_have_as_tls=yes # TLS explicitly enabled.
14856
elif test -z "$tls_first_major"; then
14857
  : # If we don't have a check, assume no support.
14858
else
14859
  echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14860
echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14861
if test "${gcc_cv_as_tls+set}" = set; then
14862
  echo $ECHO_N "(cached) $ECHO_C" >&6
14863
else
14864
  gcc_cv_as_tls=no
14865
    if test $in_tree_gas = yes; then
14866
    if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14867
  then gcc_cv_as_tls=yes
14868
fi
14869
  elif test x$gcc_cv_as != x; then
14870
    echo "$conftest_s" > conftest.s
14871
    if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873
  (eval $ac_try) 2>&5
14874
  ac_status=$?
14875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876
  (exit $ac_status); }; }
14877
    then
14878
        gcc_cv_as_tls=yes
14879
    else
14880
      echo "configure: failed program was" >&5
14881
      cat conftest.s >&5
14882
    fi
14883
    rm -f conftest.o conftest.s
14884
  fi
14885
fi
14886
echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14887
echo "${ECHO_T}$gcc_cv_as_tls" >&6
14888
if test $gcc_cv_as_tls = yes; then
14889
  set_have_as_tls=yes
14890
fi
14891
fi
14892
if test $set_have_as_tls = yes ; then
14893
 
14894
cat >>confdefs.h <<\_ACEOF
14895
#define HAVE_AS_TLS 1
14896
_ACEOF
14897
 
14898
fi
14899
 
14900
# Target-specific assembler checks.
14901
 
14902
echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14903
echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14904
gcc_cv_ld_static_dynamic=no
14905
if test $in_tree_ld = yes ; then
14906
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14907
    gcc_cv_ld_static_dynamic=yes
14908
  fi
14909
elif test x$gcc_cv_ld != x; then
14910
        # Check if linker supports -Bstatic/-Bdynamic option
14911
        if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14912
          && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14913
                gcc_cv_ld_static_dynamic=yes
14914
        fi
14915
fi
14916
if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14917
 
14918
cat >>confdefs.h <<\_ACEOF
14919
#define HAVE_LD_STATIC_DYNAMIC 1
14920
_ACEOF
14921
 
14922
fi
14923
echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14924
echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14925
 
14926
if test x"$demangler_in_ld" = xyes; then
14927
  echo "$as_me:$LINENO: checking linker --demangle support" >&5
14928
echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14929
  gcc_cv_ld_demangle=no
14930
  if test $in_tree_ld = yes; then
14931
    if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14932
      gcc_cv_ld_demangle=yes
14933
    fi
14934
  elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14935
    # Check if the GNU linker supports --demangle option
14936
    if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14937
      gcc_cv_ld_demangle=yes
14938
    fi
14939
  fi
14940
  if test x"$gcc_cv_ld_demangle" = xyes; then
14941
 
14942
cat >>confdefs.h <<\_ACEOF
14943
#define HAVE_LD_DEMANGLE 1
14944
_ACEOF
14945
 
14946
  fi
14947
  echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14948
echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14949
fi
14950
 
14951
case "$target" in
14952
  # All TARGET_ABI_OSF targets.
14953
  alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14954
    echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14955
echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14956
if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14957
  echo $ECHO_N "(cached) $ECHO_C" >&6
14958
else
14959
  gcc_cv_as_alpha_explicit_relocs=no
14960
    if test $in_tree_gas = yes; then
14961
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14962
  then gcc_cv_as_alpha_explicit_relocs=yes
14963
fi
14964
  elif test x$gcc_cv_as != x; then
14965
    echo '      .set nomacro
14966
        .text
14967
        extbl   $3, $2, $3      !lituse_bytoff!1
14968
        ldq     $2, a($29)      !literal!1
14969
        ldq     $4, b($29)      !literal!2
14970
        ldq_u   $3, 0($2)       !lituse_base!1
14971
        ldq     $27, f($29)     !literal!5
14972
        jsr     $26, ($27), f   !lituse_jsr!5
14973
        ldah    $29, 0($26)     !gpdisp!3
14974
        lda     $0, c($29)      !gprel
14975
        ldah    $1, d($29)      !gprelhigh
14976
        lda     $1, d($1)       !gprellow
14977
        lda     $29, 0($29)     !gpdisp!3' > conftest.s
14978
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980
  (eval $ac_try) 2>&5
14981
  ac_status=$?
14982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983
  (exit $ac_status); }; }
14984
    then
14985
        gcc_cv_as_alpha_explicit_relocs=yes
14986
    else
14987
      echo "configure: failed program was" >&5
14988
      cat conftest.s >&5
14989
    fi
14990
    rm -f conftest.o conftest.s
14991
  fi
14992
fi
14993
echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14994
echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14995
if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14996
 
14997
cat >>confdefs.h <<\_ACEOF
14998
#define HAVE_AS_EXPLICIT_RELOCS 1
14999
_ACEOF
15000
 
15001
fi
15002
    echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15003
echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15004
if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15005
  echo $ECHO_N "(cached) $ECHO_C" >&6
15006
else
15007
  gcc_cv_as_alpha_jsrdirect_relocs=no
15008
    if test $in_tree_gas = yes; then
15009
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15010
  then gcc_cv_as_alpha_jsrdirect_relocs=yes
15011
fi
15012
  elif test x$gcc_cv_as != x; then
15013
    echo '      .set nomacro
15014
        .text
15015
        ldq     $27, a($29)     !literal!1
15016
        jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15017
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019
  (eval $ac_try) 2>&5
15020
  ac_status=$?
15021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022
  (exit $ac_status); }; }
15023
    then
15024
        gcc_cv_as_alpha_jsrdirect_relocs=yes
15025
    else
15026
      echo "configure: failed program was" >&5
15027
      cat conftest.s >&5
15028
    fi
15029
    rm -f conftest.o conftest.s
15030
  fi
15031
fi
15032
echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15033
echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15034
if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15035
 
15036
cat >>confdefs.h <<\_ACEOF
15037
#define HAVE_AS_JSRDIRECT_RELOCS 1
15038
_ACEOF
15039
 
15040
fi
15041
    ;;
15042
 
15043
  cris-*-*)
15044
    echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15045
echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15046
if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15047
  echo $ECHO_N "(cached) $ECHO_C" >&6
15048
else
15049
  gcc_cv_as_cris_no_mul_bug=no
15050
    if test $in_tree_gas = yes; then
15051
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15052
  then gcc_cv_as_cris_no_mul_bug=yes
15053
fi
15054
  elif test x$gcc_cv_as != x; then
15055
    echo '.text' > conftest.s
15056
    if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058
  (eval $ac_try) 2>&5
15059
  ac_status=$?
15060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061
  (exit $ac_status); }; }
15062
    then
15063
        gcc_cv_as_cris_no_mul_bug=yes
15064
    else
15065
      echo "configure: failed program was" >&5
15066
      cat conftest.s >&5
15067
    fi
15068
    rm -f conftest.o conftest.s
15069
  fi
15070
fi
15071
echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15072
echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15073
if test $gcc_cv_as_cris_no_mul_bug = yes; then
15074
 
15075
cat >>confdefs.h <<\_ACEOF
15076
#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15077
_ACEOF
15078
 
15079
fi
15080
    ;;
15081
 
15082
  sparc*-*-*)
15083
    echo "$as_me:$LINENO: checking assembler for .register" >&5
15084
echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15085
if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15086
  echo $ECHO_N "(cached) $ECHO_C" >&6
15087
else
15088
  gcc_cv_as_sparc_register_op=no
15089
  if test x$gcc_cv_as != x; then
15090
    echo '.register %g2, #scratch' > conftest.s
15091
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093
  (eval $ac_try) 2>&5
15094
  ac_status=$?
15095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096
  (exit $ac_status); }; }
15097
    then
15098
        gcc_cv_as_sparc_register_op=yes
15099
    else
15100
      echo "configure: failed program was" >&5
15101
      cat conftest.s >&5
15102
    fi
15103
    rm -f conftest.o conftest.s
15104
  fi
15105
fi
15106
echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15107
echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15108
if test $gcc_cv_as_sparc_register_op = yes; then
15109
 
15110
cat >>confdefs.h <<\_ACEOF
15111
#define HAVE_AS_REGISTER_PSEUDO_OP 1
15112
_ACEOF
15113
 
15114
fi
15115
 
15116
    echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15117
echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15118
if test "${gcc_cv_as_sparc_relax+set}" = set; then
15119
  echo $ECHO_N "(cached) $ECHO_C" >&6
15120
else
15121
  gcc_cv_as_sparc_relax=no
15122
  if test x$gcc_cv_as != x; then
15123
    echo '.text' > conftest.s
15124
    if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126
  (eval $ac_try) 2>&5
15127
  ac_status=$?
15128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129
  (exit $ac_status); }; }
15130
    then
15131
        gcc_cv_as_sparc_relax=yes
15132
    else
15133
      echo "configure: failed program was" >&5
15134
      cat conftest.s >&5
15135
    fi
15136
    rm -f conftest.o conftest.s
15137
  fi
15138
fi
15139
echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15140
echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15141
if test $gcc_cv_as_sparc_relax = yes; then
15142
 
15143
cat >>confdefs.h <<\_ACEOF
15144
#define HAVE_AS_RELAX_OPTION 1
15145
_ACEOF
15146
 
15147
fi
15148
 
15149
    echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15150
echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15151
if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15152
  echo $ECHO_N "(cached) $ECHO_C" >&6
15153
else
15154
  gcc_cv_as_sparc_ua_pcrel=no
15155
  if test x$gcc_cv_as != x; then
15156
    echo '.text
15157
foo:
15158
        nop
15159
.data
15160
.align 4
15161
.byte 0
15162
.uaword %r_disp32(foo)' > conftest.s
15163
    if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165
  (eval $ac_try) 2>&5
15166
  ac_status=$?
15167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168
  (exit $ac_status); }; }
15169
    then
15170
        if test x$gcc_cv_ld != x \
15171
       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15172
         gcc_cv_as_sparc_ua_pcrel=yes
15173
       fi
15174
       rm -f conftest
15175
    else
15176
      echo "configure: failed program was" >&5
15177
      cat conftest.s >&5
15178
    fi
15179
    rm -f conftest.o conftest.s
15180
  fi
15181
fi
15182
echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15183
echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15184
if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15185
 
15186
cat >>confdefs.h <<\_ACEOF
15187
#define HAVE_AS_SPARC_UA_PCREL 1
15188
_ACEOF
15189
 
15190
 
15191
      echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15192
echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15193
if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15194
  echo $ECHO_N "(cached) $ECHO_C" >&6
15195
else
15196
  gcc_cv_as_sparc_ua_pcrel_hidden=no
15197
  if test x$gcc_cv_as != x; then
15198
    echo '.data
15199
.align 4
15200
.byte 0x31
15201
.uaword %r_disp32(foo)
15202
.byte 0x32, 0x33, 0x34
15203
.global foo
15204
.hidden foo
15205
foo:
15206
.skip 4' > conftest.s
15207
    if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209
  (eval $ac_try) 2>&5
15210
  ac_status=$?
15211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212
  (exit $ac_status); }; }
15213
    then
15214
        if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15215
         && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15216
         && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15217
            | grep ' 31000000 07323334' > /dev/null 2>&1; then
15218
            if $gcc_cv_objdump -R conftest 2> /dev/null \
15219
               | grep 'DISP32' > /dev/null 2>&1; then
15220
                :
15221
            else
15222
                gcc_cv_as_sparc_ua_pcrel_hidden=yes
15223
            fi
15224
         fi
15225
         rm -f conftest
15226
    else
15227
      echo "configure: failed program was" >&5
15228
      cat conftest.s >&5
15229
    fi
15230
    rm -f conftest.o conftest.s
15231
  fi
15232
fi
15233
echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15234
echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15235
if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15236
 
15237
cat >>confdefs.h <<\_ACEOF
15238
#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15239
_ACEOF
15240
 
15241
fi
15242
 
15243
fi # unaligned pcrel relocs
15244
 
15245
    echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15246
echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15247
if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15248
  echo $ECHO_N "(cached) $ECHO_C" >&6
15249
else
15250
  gcc_cv_as_sparc_offsetable_lo10=no
15251
  if test x$gcc_cv_as != x; then
15252
    echo '.text
15253
        or %g1, %lo(ab) + 12, %g1
15254
        or %g1, %lo(ab + 12), %g1' > conftest.s
15255
    if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257
  (eval $ac_try) 2>&5
15258
  ac_status=$?
15259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260
  (exit $ac_status); }; }
15261
    then
15262
        if test x$gcc_cv_objdump != x \
15263
       && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15264
          | grep ' 82106000 82106000' > /dev/null 2>&1; then
15265
         gcc_cv_as_sparc_offsetable_lo10=yes
15266
       fi
15267
    else
15268
      echo "configure: failed program was" >&5
15269
      cat conftest.s >&5
15270
    fi
15271
    rm -f conftest.o conftest.s
15272
  fi
15273
fi
15274
echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15275
echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15276
if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15277
 
15278
cat >>confdefs.h <<\_ACEOF
15279
#define HAVE_AS_OFFSETABLE_LO10 1
15280
_ACEOF
15281
 
15282
fi
15283
    ;;
15284
 
15285
  i[34567]86-*-* | x86_64-*-*)
15286
    case $target_os in
15287
      cygwin* | pe | mingw32*)
15288
        # Used for DWARF 2 in PE
15289
        echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15290
echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15291
if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15292
  echo $ECHO_N "(cached) $ECHO_C" >&6
15293
else
15294
  gcc_cv_as_ix86_pe_secrel32=no
15295
    if test $in_tree_gas = yes; then
15296
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15297
  then gcc_cv_as_ix86_pe_secrel32=yes
15298
fi
15299
  elif test x$gcc_cv_as != x; then
15300
    echo '.text
15301
foo:    nop
15302
.data
15303
        .secrel32 foo' > conftest.s
15304
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306
  (eval $ac_try) 2>&5
15307
  ac_status=$?
15308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309
  (exit $ac_status); }; }
15310
    then
15311
        if test x$gcc_cv_ld != x \
15312
           && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15313
             gcc_cv_as_ix86_pe_secrel32=yes
15314
           fi
15315
           rm -f conftest
15316
    else
15317
      echo "configure: failed program was" >&5
15318
      cat conftest.s >&5
15319
    fi
15320
    rm -f conftest.o conftest.s
15321
  fi
15322
fi
15323
echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15324
echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15325
if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15326
 
15327
cat >>confdefs.h <<\_ACEOF
15328
#define HAVE_GAS_PE_SECREL32_RELOC 1
15329
_ACEOF
15330
 
15331
fi
15332
        ;;
15333
    esac
15334
 
15335
    echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15336
echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15337
if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15338
  echo $ECHO_N "(cached) $ECHO_C" >&6
15339
else
15340
  gcc_cv_as_ix86_filds_fists=no
15341
    if test $in_tree_gas = yes; then
15342
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15343
  then gcc_cv_as_ix86_filds_fists=yes
15344
fi
15345
  elif test x$gcc_cv_as != x; then
15346
    echo 'filds mem; fists mem' > conftest.s
15347
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349
  (eval $ac_try) 2>&5
15350
  ac_status=$?
15351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352
  (exit $ac_status); }; }
15353
    then
15354
        gcc_cv_as_ix86_filds_fists=yes
15355
    else
15356
      echo "configure: failed program was" >&5
15357
      cat conftest.s >&5
15358
    fi
15359
    rm -f conftest.o conftest.s
15360
  fi
15361
fi
15362
echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15363
echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15364
if test $gcc_cv_as_ix86_filds_fists = yes; then
15365
 
15366
cat >>confdefs.h <<\_ACEOF
15367
#define HAVE_GAS_FILDS_FISTS 1
15368
_ACEOF
15369
 
15370
fi
15371
 
15372
    echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15373
echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15374
if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15375
  echo $ECHO_N "(cached) $ECHO_C" >&6
15376
else
15377
  gcc_cv_as_ix86_cmov_sun_syntax=no
15378
  if test x$gcc_cv_as != x; then
15379
    echo 'cmovl.l %edx, %eax' > conftest.s
15380
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382
  (eval $ac_try) 2>&5
15383
  ac_status=$?
15384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385
  (exit $ac_status); }; }
15386
    then
15387
        gcc_cv_as_ix86_cmov_sun_syntax=yes
15388
    else
15389
      echo "configure: failed program was" >&5
15390
      cat conftest.s >&5
15391
    fi
15392
    rm -f conftest.o conftest.s
15393
  fi
15394
fi
15395
echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15396
echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15397
if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15398
 
15399
cat >>confdefs.h <<\_ACEOF
15400
#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15401
_ACEOF
15402
 
15403
fi
15404
 
15405
    # This one is used unconditionally by i386.[ch]; it is to be defined
15406
    # to 1 if the feature is present, 0 otherwise.
15407
    echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15408
echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15409
if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15410
  echo $ECHO_N "(cached) $ECHO_C" >&6
15411
else
15412
  gcc_cv_as_ix86_gotoff_in_data=no
15413
    if test $in_tree_gas = yes; then
15414
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15415
  then gcc_cv_as_ix86_gotoff_in_data=yes
15416
fi
15417
  elif test x$gcc_cv_as != x; then
15418
    echo '      .text
15419
.L0:
15420
        nop
15421
        .data
15422
        .long .L0@GOTOFF' > conftest.s
15423
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425
  (eval $ac_try) 2>&5
15426
  ac_status=$?
15427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428
  (exit $ac_status); }; }
15429
    then
15430
        gcc_cv_as_ix86_gotoff_in_data=yes
15431
    else
15432
      echo "configure: failed program was" >&5
15433
      cat conftest.s >&5
15434
    fi
15435
    rm -f conftest.o conftest.s
15436
  fi
15437
fi
15438
echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15439
echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15440
 
15441
 
15442
cat >>confdefs.h <<_ACEOF
15443
#define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15444
_ACEOF
15445
 
15446
    ;;
15447
 
15448
  ia64*-*-*)
15449
    echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15450
echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15451
if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15452
  echo $ECHO_N "(cached) $ECHO_C" >&6
15453
else
15454
  gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15455
    if test $in_tree_gas = yes; then
15456
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15457
  then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15458
fi
15459
  elif test x$gcc_cv_as != x; then
15460
    echo '      .text
15461
        addl r15 = @ltoffx(x#), gp
15462
        ;;
15463
        ld8.mov r16 = [r15], x#' > conftest.s
15464
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466
  (eval $ac_try) 2>&5
15467
  ac_status=$?
15468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469
  (exit $ac_status); }; }
15470
    then
15471
        gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15472
    else
15473
      echo "configure: failed program was" >&5
15474
      cat conftest.s >&5
15475
    fi
15476
    rm -f conftest.o conftest.s
15477
  fi
15478
fi
15479
echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15480
echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15481
if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15482
 
15483
cat >>confdefs.h <<\_ACEOF
15484
#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15485
_ACEOF
15486
 
15487
fi
15488
 
15489
    ;;
15490
 
15491
  powerpc*-*-*)
15492
    case $target in
15493
      *-*-aix*) conftest_s='    .machine "pwr5"
15494
        .csect .text[PR]
15495
        mfcr 3,128';;
15496
      *-*-darwin*)
15497
        echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15498
echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15499
if test "${gcc_cv_as_machine_directive+set}" = set; then
15500
  echo $ECHO_N "(cached) $ECHO_C" >&6
15501
else
15502
  gcc_cv_as_machine_directive=no
15503
  if test x$gcc_cv_as != x; then
15504
    echo '      .machine ppc7400' > conftest.s
15505
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507
  (eval $ac_try) 2>&5
15508
  ac_status=$?
15509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510
  (exit $ac_status); }; }
15511
    then
15512
        gcc_cv_as_machine_directive=yes
15513
    else
15514
      echo "configure: failed program was" >&5
15515
      cat conftest.s >&5
15516
    fi
15517
    rm -f conftest.o conftest.s
15518
  fi
15519
fi
15520
echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15521
echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15522
 
15523
        if test x$gcc_cv_as_machine_directive != xyes; then
15524
          echo "*** This target requires an assembler supporting \".machine\"" >&2
15525
          echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15526
          test x$build = x$target && exit 1
15527
        fi
15528
        conftest_s='    .text
15529
        mfcr r3,128';;
15530
      *) conftest_s='   .machine power4
15531
        .text
15532
        mfcr 3,128';;
15533
    esac
15534
 
15535
    echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15536
echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15537
if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15538
  echo $ECHO_N "(cached) $ECHO_C" >&6
15539
else
15540
  gcc_cv_as_powerpc_mfcrf=no
15541
    if test $in_tree_gas = yes; then
15542
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15543
  then gcc_cv_as_powerpc_mfcrf=yes
15544
fi
15545
  elif test x$gcc_cv_as != x; then
15546
    echo "$conftest_s" > conftest.s
15547
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549
  (eval $ac_try) 2>&5
15550
  ac_status=$?
15551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552
  (exit $ac_status); }; }
15553
    then
15554
        gcc_cv_as_powerpc_mfcrf=yes
15555
    else
15556
      echo "configure: failed program was" >&5
15557
      cat conftest.s >&5
15558
    fi
15559
    rm -f conftest.o conftest.s
15560
  fi
15561
fi
15562
echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15563
echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15564
if test $gcc_cv_as_powerpc_mfcrf = yes; then
15565
 
15566
cat >>confdefs.h <<\_ACEOF
15567
#define HAVE_AS_MFCRF 1
15568
_ACEOF
15569
 
15570
fi
15571
 
15572
    case $target in
15573
      *-*-aix*) conftest_s='    .machine "pwr5"
15574
        .csect .text[PR]
15575
        popcntb 3,3';;
15576
      *) conftest_s='   .machine power5
15577
        .text
15578
        popcntb 3,3';;
15579
    esac
15580
 
15581
    echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15582
echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15583
if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15584
  echo $ECHO_N "(cached) $ECHO_C" >&6
15585
else
15586
  gcc_cv_as_powerpc_popcntb=no
15587
    if test $in_tree_gas = yes; then
15588
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15589
  then gcc_cv_as_powerpc_popcntb=yes
15590
fi
15591
  elif test x$gcc_cv_as != x; then
15592
    echo "$conftest_s" > conftest.s
15593
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595
  (eval $ac_try) 2>&5
15596
  ac_status=$?
15597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598
  (exit $ac_status); }; }
15599
    then
15600
        gcc_cv_as_powerpc_popcntb=yes
15601
    else
15602
      echo "configure: failed program was" >&5
15603
      cat conftest.s >&5
15604
    fi
15605
    rm -f conftest.o conftest.s
15606
  fi
15607
fi
15608
echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15609
echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15610
if test $gcc_cv_as_powerpc_popcntb = yes; then
15611
 
15612
cat >>confdefs.h <<\_ACEOF
15613
#define HAVE_AS_POPCNTB 1
15614
_ACEOF
15615
 
15616
fi
15617
 
15618
    case $target in
15619
      *-*-aix*) conftest_s='    .machine "pwr5x"
15620
        .csect .text[PR]
15621
        frin 1,1';;
15622
      *) conftest_s='   .machine power5
15623
        .text
15624
        frin 1,1';;
15625
    esac
15626
 
15627
    echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15628
echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15629
if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15630
  echo $ECHO_N "(cached) $ECHO_C" >&6
15631
else
15632
  gcc_cv_as_powerpc_fprnd=no
15633
    if test $in_tree_gas = yes; then
15634
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15635
  then gcc_cv_as_powerpc_fprnd=yes
15636
fi
15637
  elif test x$gcc_cv_as != x; then
15638
    echo "$conftest_s" > conftest.s
15639
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641
  (eval $ac_try) 2>&5
15642
  ac_status=$?
15643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644
  (exit $ac_status); }; }
15645
    then
15646
        gcc_cv_as_powerpc_fprnd=yes
15647
    else
15648
      echo "configure: failed program was" >&5
15649
      cat conftest.s >&5
15650
    fi
15651
    rm -f conftest.o conftest.s
15652
  fi
15653
fi
15654
echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15655
echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15656
if test $gcc_cv_as_powerpc_fprnd = yes; then
15657
 
15658
cat >>confdefs.h <<\_ACEOF
15659
#define HAVE_AS_FPRND 1
15660
_ACEOF
15661
 
15662
fi
15663
 
15664
    case $target in
15665
      *-*-aix*) conftest_s='    .csect .text[PR]
15666
LCF..0:
15667
        addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15668
      *-*-darwin*)
15669
        conftest_s='    .text
15670
LCF0:
15671
        addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15672
      *) conftest_s='   .text
15673
.LCF0:
15674
        addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15675
    esac
15676
 
15677
    echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15678
echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15679
if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15680
  echo $ECHO_N "(cached) $ECHO_C" >&6
15681
else
15682
  gcc_cv_as_powerpc_rel16=no
15683
    if test $in_tree_gas = yes; then
15684
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15685
  then gcc_cv_as_powerpc_rel16=yes
15686
fi
15687
  elif test x$gcc_cv_as != x; then
15688
    echo "$conftest_s" > conftest.s
15689
    if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691
  (eval $ac_try) 2>&5
15692
  ac_status=$?
15693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694
  (exit $ac_status); }; }
15695
    then
15696
        gcc_cv_as_powerpc_rel16=yes
15697
    else
15698
      echo "configure: failed program was" >&5
15699
      cat conftest.s >&5
15700
    fi
15701
    rm -f conftest.o conftest.s
15702
  fi
15703
fi
15704
echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15705
echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15706
if test $gcc_cv_as_powerpc_rel16 = yes; then
15707
 
15708
cat >>confdefs.h <<\_ACEOF
15709
#define HAVE_AS_REL16 1
15710
_ACEOF
15711
 
15712
fi
15713
    ;;
15714
 
15715
  mips*-*-*)
15716
    echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15717
echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15718
if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15719
  echo $ECHO_N "(cached) $ECHO_C" >&6
15720
else
15721
  gcc_cv_as_mips_explicit_relocs=no
15722
    if test $in_tree_gas = yes; then
15723
    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15724
  then gcc_cv_as_mips_explicit_relocs=yes
15725
fi
15726
  elif test x$gcc_cv_as != x; then
15727
    echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15728
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730
  (eval $ac_try) 2>&5
15731
  ac_status=$?
15732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733
  (exit $ac_status); }; }
15734
    then
15735
        gcc_cv_as_mips_explicit_relocs=yes
15736
    else
15737
      echo "configure: failed program was" >&5
15738
      cat conftest.s >&5
15739
    fi
15740
    rm -f conftest.o conftest.s
15741
  fi
15742
fi
15743
echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15744
echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15745
if test $gcc_cv_as_mips_explicit_relocs = yes; then
15746
  if test x$target_cpu_default = x
15747
       then target_cpu_default=MASK_EXPLICIT_RELOCS
15748
       else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15749
       fi
15750
fi
15751
    ;;
15752
esac
15753
 
15754
# Mips and HP-UX need the GNU assembler.
15755
# Linux on IA64 might be able to use the Intel assembler.
15756
 
15757
case "$target" in
15758
  mips*-*-* | *-*-hpux* )
15759
    if test x$gas_flag = xyes \
15760
       || test x"$host" != x"$build" \
15761
       || test ! -x "$gcc_cv_as" \
15762
       || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15763
      :
15764
    else
15765
      echo "*** This configuration requires the GNU assembler" >&2
15766
      exit 1
15767
    fi
15768
    ;;
15769
esac
15770
 
15771
# ??? Not all targets support dwarf2 debug_line, even within a version
15772
# of gas.  Moreover, we need to emit a valid instruction to trigger any
15773
# info to the output file.  So, as supported targets are added to gas 2.11,
15774
# add some instruction here to (also) show we expect this might work.
15775
# ??? Once 2.11 is released, probably need to add first known working
15776
# version to the per-target configury.
15777
case "$target" in
15778
  i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15779
  | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15780
  | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15781
    insn="nop"
15782
    ;;
15783
  ia64*-*-* | s390*-*-*)
15784
    insn="nop 0"
15785
    ;;
15786
  mmix-*-*)
15787
    insn="swym 0"
15788
    ;;
15789
esac
15790
if test x"$insn" != x; then
15791
 conftest_s="\
15792
        .file 1 \"conftest.s\"
15793
        .loc 1 3 0
15794
        $insn"
15795
 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15796
echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15797
if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15798
  echo $ECHO_N "(cached) $ECHO_C" >&6
15799
else
15800
  gcc_cv_as_dwarf2_debug_line=no
15801
    if test $in_tree_gas = yes; then
15802
    if test $in_tree_gas_is_elf = yes \
15803
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15804
  then gcc_cv_as_dwarf2_debug_line=yes
15805
fi
15806
  elif test x$gcc_cv_as != x; then
15807
    echo "$conftest_s" > conftest.s
15808
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810
  (eval $ac_try) 2>&5
15811
  ac_status=$?
15812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813
  (exit $ac_status); }; }
15814
    then
15815
        if test x$gcc_cv_objdump != x \
15816
   && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15817
      | grep debug_line > /dev/null 2>&1; then
15818
     gcc_cv_as_dwarf2_debug_line=yes
15819
   fi
15820
    else
15821
      echo "configure: failed program was" >&5
15822
      cat conftest.s >&5
15823
    fi
15824
    rm -f conftest.o conftest.s
15825
  fi
15826
fi
15827
echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15828
echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15829
 
15830
 
15831
# The .debug_line file table must be in the exact order that
15832
# we specified the files, since these indices are also used
15833
# by DW_AT_decl_file.  Approximate this test by testing if
15834
# the assembler bitches if the same index is assigned twice.
15835
 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15836
echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15837
if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15838
  echo $ECHO_N "(cached) $ECHO_C" >&6
15839
else
15840
  gcc_cv_as_dwarf2_file_buggy=no
15841
  if test x$gcc_cv_as != x; then
15842
    echo '      .file 1 "foo.s"
15843
        .file 1 "bar.s"' > conftest.s
15844
    if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846
  (eval $ac_try) 2>&5
15847
  ac_status=$?
15848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849
  (exit $ac_status); }; }
15850
    then
15851
        gcc_cv_as_dwarf2_file_buggy=yes
15852
    else
15853
      echo "configure: failed program was" >&5
15854
      cat conftest.s >&5
15855
    fi
15856
    rm -f conftest.o conftest.s
15857
  fi
15858
fi
15859
echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15860
echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15861
 
15862
 
15863
 if test $gcc_cv_as_dwarf2_debug_line = yes \
15864
 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15865
 
15866
cat >>confdefs.h <<\_ACEOF
15867
#define HAVE_AS_DWARF2_DEBUG_LINE 1
15868
_ACEOF
15869
 
15870
 fi
15871
 
15872
 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15873
echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15874
if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15875
  echo $ECHO_N "(cached) $ECHO_C" >&6
15876
else
15877
  gcc_cv_as_gdwarf2_flag=no
15878
    if test $in_tree_gas = yes; then
15879
    if test $in_tree_gas_is_elf = yes \
15880
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15881
  then gcc_cv_as_gdwarf2_flag=yes
15882
fi
15883
  elif test x$gcc_cv_as != x; then
15884
    echo "$insn" > conftest.s
15885
    if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887
  (eval $ac_try) 2>&5
15888
  ac_status=$?
15889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890
  (exit $ac_status); }; }
15891
    then
15892
        gcc_cv_as_gdwarf2_flag=yes
15893
    else
15894
      echo "configure: failed program was" >&5
15895
      cat conftest.s >&5
15896
    fi
15897
    rm -f conftest.o conftest.s
15898
  fi
15899
fi
15900
echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15901
echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15902
if test $gcc_cv_as_gdwarf2_flag = yes; then
15903
 
15904
cat >>confdefs.h <<\_ACEOF
15905
#define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15906
_ACEOF
15907
 
15908
fi
15909
 
15910
 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15911
echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15912
if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15913
  echo $ECHO_N "(cached) $ECHO_C" >&6
15914
else
15915
  gcc_cv_as_gstabs_flag=no
15916
    if test $in_tree_gas = yes; then
15917
    if test $in_tree_gas_is_elf = yes \
15918
  && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15919
  then gcc_cv_as_gstabs_flag=yes
15920
fi
15921
  elif test x$gcc_cv_as != x; then
15922
    echo "$insn" > conftest.s
15923
    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925
  (eval $ac_try) 2>&5
15926
  ac_status=$?
15927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928
  (exit $ac_status); }; }
15929
    then
15930
        # The native Solaris 9/Intel assembler doesn't understand --gstabs
15931
   # and warns about it, but still exits successfully.  So check for
15932
   # this.
15933
   if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935
  (eval $ac_try) 2>&5
15936
  ac_status=$?
15937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938
  (exit $ac_status); }; }
15939
   then :
15940
   else gcc_cv_as_gstabs_flag=yes
15941
   fi
15942
    else
15943
      echo "configure: failed program was" >&5
15944
      cat conftest.s >&5
15945
    fi
15946
    rm -f conftest.o conftest.s
15947
  fi
15948
fi
15949
echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15950
echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15951
if test $gcc_cv_as_gstabs_flag = yes; then
15952
 
15953
cat >>confdefs.h <<\_ACEOF
15954
#define HAVE_AS_GSTABS_DEBUG_FLAG 1
15955
_ACEOF
15956
 
15957
fi
15958
fi
15959
 
15960
echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15961
echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15962
gcc_cv_ld_ro_rw_mix=unknown
15963
if test $in_tree_ld = yes ; then
15964
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
15965
     && test $in_tree_ld_is_elf = yes; then
15966
    gcc_cv_ld_ro_rw_mix=read-write
15967
  fi
15968
elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15969
  echo '.section myfoosect, "a"' > conftest1.s
15970
  echo '.section myfoosect, "aw"' > conftest2.s
15971
  echo '.byte 1' >> conftest2.s
15972
  echo '.section myfoosect, "a"' > conftest3.s
15973
  echo '.byte 0' >> conftest3.s
15974
  if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15975
     && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15976
     && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15977
     && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15978
        conftest2.o conftest3.o > /dev/null 2>&1; then
15979
    gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15980
                         | sed -e '/myfoosect/!d' -e N`
15981
    if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15982
      if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15983
        gcc_cv_ld_ro_rw_mix=read-only
15984
      else
15985
        gcc_cv_ld_ro_rw_mix=read-write
15986
      fi
15987
    fi
15988
  fi
15989
  rm -f conftest.* conftest[123].*
15990
fi
15991
if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15992
 
15993
cat >>confdefs.h <<\_ACEOF
15994
#define HAVE_LD_RO_RW_SECTION_MIXING 1
15995
_ACEOF
15996
 
15997
fi
15998
echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15999
echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16000
 
16001
echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16002
echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16003
gcc_cv_ld_eh_frame_hdr=no
16004
if test $in_tree_ld = yes ; then
16005
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
16006
     && test $in_tree_ld_is_elf = yes; then
16007
    gcc_cv_ld_eh_frame_hdr=yes
16008
  fi
16009
elif test x$gcc_cv_ld != x; then
16010
        # Check if linker supports --eh-frame-hdr option
16011
        if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16012
                gcc_cv_ld_eh_frame_hdr=yes
16013
        fi
16014
fi
16015
 
16016
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16017
 
16018
cat >>confdefs.h <<\_ACEOF
16019
#define HAVE_LD_EH_FRAME_HDR 1
16020
_ACEOF
16021
 
16022
fi
16023
echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16024
echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16025
 
16026
echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16027
echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16028
gcc_cv_ld_pie=no
16029
if test $in_tree_ld = yes ; then
16030
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
16031
     && test $in_tree_ld_is_elf = yes; then
16032
    gcc_cv_ld_pie=yes
16033
  fi
16034
elif test x$gcc_cv_ld != x; then
16035
        # Check if linker supports -pie option
16036
        if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16037
                gcc_cv_ld_pie=yes
16038
        fi
16039
fi
16040
if test x"$gcc_cv_ld_pie" = xyes; then
16041
 
16042
cat >>confdefs.h <<\_ACEOF
16043
#define HAVE_LD_PIE 1
16044
_ACEOF
16045
 
16046
fi
16047
echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16048
echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16049
 
16050
# --------
16051
# UNSORTED
16052
# --------
16053
 
16054
echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16055
echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16056
if test "${gcc_cv_ld_as_needed+set}" = set; then
16057
  echo $ECHO_N "(cached) $ECHO_C" >&6
16058
else
16059
  gcc_cv_ld_as_needed=no
16060
if test $in_tree_ld = yes ; then
16061
  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
16062
     && test $in_tree_ld_is_elf = yes; then
16063
    gcc_cv_ld_as_needed=yes
16064
  fi
16065
elif test x$gcc_cv_ld != x; then
16066
        # Check if linker supports --as-needed and --no-as-needed options
16067
        if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16068
                gcc_cv_ld_as_needed=yes
16069
        fi
16070
fi
16071
 
16072
fi
16073
echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16074
echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16075
if test x"$gcc_cv_ld_as_needed" = xyes; then
16076
 
16077
cat >>confdefs.h <<\_ACEOF
16078
#define HAVE_LD_AS_NEEDED 1
16079
_ACEOF
16080
 
16081
fi
16082
 
16083
case "$target:$tm_file" in
16084
  powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16085
    echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16086
echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16087
if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16088
  echo $ECHO_N "(cached) $ECHO_C" >&6
16089
else
16090
  gcc_cv_ld_no_dot_syms=no
16091
    if test $in_tree_ld = yes ; then
16092
      if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
16093
        gcc_cv_ld_no_dot_syms=yes
16094
      fi
16095
    elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16096
      cat > conftest1.s <
16097
        .text
16098
        bl .foo
16099
EOF
16100
      cat > conftest2.s <
16101
        .section ".opd","aw"
16102
        .align 3
16103
        .globl foo
16104
        .type foo,@function
16105
foo:
16106
        .quad .LEfoo,.TOC.@tocbase,0
16107
        .text
16108
.LEfoo:
16109
        blr
16110
        .size foo,.-.LEfoo
16111
EOF
16112
      if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16113
         && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16114
         && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16115
        gcc_cv_ld_no_dot_syms=yes
16116
      fi
16117
      rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16118
    fi
16119
 
16120
fi
16121
echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16122
echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16123
    if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16124
 
16125
cat >>confdefs.h <<\_ACEOF
16126
#define HAVE_LD_NO_DOT_SYMS 1
16127
_ACEOF
16128
 
16129
    fi
16130
    ;;
16131
esac
16132
 
16133
echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16134
echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16135
if test "${gcc_cv_ld_sysroot+set}" = set; then
16136
  echo $ECHO_N "(cached) $ECHO_C" >&6
16137
else
16138
  gcc_cv_ld_sysroot=no
16139
  if test $in_tree_ld = yes ; then
16140
      if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
16141
        gcc_cv_ld_sysroot=yes
16142
      fi
16143
  elif test x$gcc_cv_ld != x; then
16144
    if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16145
      gcc_cv_ld_sysroot=yes
16146
    fi
16147
  fi
16148
fi
16149
echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16150
echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16151
if test x"$gcc_cv_ld_sysroot" = xyes; then
16152
 
16153
cat >>confdefs.h <<\_ACEOF
16154
#define HAVE_LD_SYSROOT 1
16155
_ACEOF
16156
 
16157
fi
16158
 
16159
if test x$with_sysroot = x && test x$host = x$target \
16160
   && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16161
 
16162
cat >>confdefs.h <<_ACEOF
16163
#define PREFIX_INCLUDE_DIR "$prefix/include"
16164
_ACEOF
16165
 
16166
fi
16167
 
16168
# Test for stack protector support in target C library.
16169
case "$target" in
16170
  *-*-linux*)
16171
    echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16172
echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16173
if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16174
  echo $ECHO_N "(cached) $ECHO_C" >&6
16175
else
16176
  gcc_cv_libc_provides_ssp=no
16177
      if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16178
        if test "x$with_sysroot" = x; then
16179
          glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16180
        elif test "x$with_sysroot" = xyes; then
16181
          glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16182
        else
16183
          glibc_header_dir="${with_sysroot}/usr/include"
16184
        fi
16185
      else
16186
        glibc_header_dir=/usr/include
16187
      fi
16188
      # glibc 2.4 and later provides __stack_chk_fail and
16189
      # either __stack_chk_guard, or TLS access to stack guard canary.
16190
      if test -f $glibc_header_dir/features.h \
16191
         && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16192
            $glibc_header_dir/features.h > /dev/null; then
16193
        if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16194
           $glibc_header_dir/features.h > /dev/null; then
16195
          gcc_cv_libc_provides_ssp=yes
16196
        elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16197
             $glibc_header_dir/features.h > /dev/null \
16198
             && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16199
             $glibc_header_dir/features.h > /dev/null; then
16200
          gcc_cv_libc_provides_ssp=yes
16201
        fi
16202
      fi
16203
fi
16204
echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16205
echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16206
  *) gcc_cv_libc_provides_ssp=no ;;
16207
esac
16208
if test x$gcc_cv_libc_provides_ssp = xyes; then
16209
 
16210
cat >>confdefs.h <<\_ACEOF
16211
#define TARGET_LIBC_PROVIDES_SSP 1
16212
_ACEOF
16213
 
16214
fi
16215
 
16216
# Find out what GC implementation we want, or may, use.
16217
 
16218
# Check whether --with-gc or --without-gc was given.
16219
if test "${with_gc+set}" = set; then
16220
  withval="$with_gc"
16221
  case "$withval" in
16222
  page)
16223
    GGC=ggc-$withval
16224
    ;;
16225
  zone)
16226
    GGC=ggc-$withval
16227
 
16228
cat >>confdefs.h <<\_ACEOF
16229
#define GGC_ZONE 1
16230
_ACEOF
16231
 
16232
    ;;
16233
  *)
16234
    { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16235
echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16236
   { (exit 1); exit 1; }; }
16237
    ;;
16238
esac
16239
else
16240
  GGC=ggc-page
16241
fi;
16242
 
16243
echo "Using $GGC for garbage collection."
16244
 
16245
# Use the system's zlib library.
16246
zlibdir=-L../zlib
16247
zlibinc="-I\$(srcdir)/../zlib"
16248
 
16249
# Check whether --with-system-zlib or --without-system-zlib was given.
16250
if test "${with_system_zlib+set}" = set; then
16251
  withval="$with_system_zlib"
16252
  zlibdir=
16253
zlibinc=
16254
 
16255
fi;
16256
 
16257
 
16258
 
16259
 
16260
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16261
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16262
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16263
if test "${enable_maintainer_mode+set}" = set; then
16264
  enableval="$enable_maintainer_mode"
16265
  maintainer_mode=$enableval
16266
else
16267
  maintainer_mode=no
16268
fi;
16269
 
16270
echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16271
echo "${ECHO_T}$maintainer_mode" >&6
16272
 
16273
if test "$maintainer_mode" = "yes"; then
16274
  MAINT=''
16275
else
16276
  MAINT='#'
16277
fi
16278
 
16279
# --------------
16280
# Language hooks
16281
# --------------
16282
 
16283
# Make empty files to contain the specs and options for each language.
16284
# Then add #include lines to for a compiler that has specs and/or options.
16285
 
16286
lang_opt_files=
16287
lang_specs_files=
16288
lang_tree_files=
16289
for subdir in . $subdirs
16290
do
16291
        if test -f $srcdir/$subdir/lang.opt; then
16292
            lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16293
        fi
16294
        if test -f $srcdir/$subdir/lang-specs.h; then
16295
            lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16296
        fi
16297
        if test -f $srcdir/$subdir/$subdir-tree.def; then
16298
            lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16299
        fi
16300
done
16301
 
16302
# These (without "all_") are set in each config-lang.in.
16303
# `language' must be a single word so is spelled singularly.
16304
all_languages=
16305
all_boot_languages=
16306
all_compilers=
16307
all_stagestuff=
16308
all_outputs='Makefile gccbug mklibgcc libada-mk'
16309
# List of language makefile fragments.
16310
all_lang_makefrags=
16311
# List of language subdirectory makefiles.  Deprecated.
16312
all_lang_makefiles=
16313
# Files for gengtype
16314
all_gtfiles="$target_gtfiles"
16315
# Files for gengtype with language
16316
all_gtfiles_files_langs=
16317
all_gtfiles_files_files=
16318
 
16319
# Add the language fragments.
16320
# Languages are added via two mechanisms.  Some information must be
16321
# recorded in makefile variables, these are defined in config-lang.in.
16322
# We accumulate them and plug them into the main Makefile.
16323
# The other mechanism is a set of hooks for each of the main targets
16324
# like `clean', `install', etc.
16325
 
16326
language_hooks="Make-hooks"
16327
 
16328
for s in $subdirs
16329
do
16330
                language=
16331
                boot_language=
16332
                compilers=
16333
                stagestuff=
16334
                outputs=
16335
                gtfiles=
16336
                . ${srcdir}/$s/config-lang.in
16337
                if test "x$language" = x
16338
                then
16339
                        echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16340
                        exit 1
16341
                fi
16342
                all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16343
                if test -f ${srcdir}/$s/Makefile.in
16344
                then all_lang_makefiles="$s/Makefile"
16345
                fi
16346
                all_languages="$all_languages $language"
16347
                if test "x$boot_language" = xyes
16348
                then
16349
                        all_boot_languages="$all_boot_languages $language"
16350
                fi
16351
                all_compilers="$all_compilers $compilers"
16352
                all_stagestuff="$all_stagestuff $stagestuff"
16353
                all_outputs="$all_outputs $outputs"
16354
                all_gtfiles="$all_gtfiles $gtfiles"
16355
                for f in $gtfiles
16356
                do
16357
                         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16358
                         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16359
                done
16360
done
16361
 
16362
# Pick up gtfiles for c
16363
gtfiles=
16364
s="c"
16365
. ${srcdir}/c-config-lang.in
16366
all_gtfiles="$all_gtfiles $gtfiles"
16367
for f in $gtfiles
16368
do
16369
        all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16370
        all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16371
done
16372
 
16373
check_languages=
16374
for language in $all_languages
16375
do
16376
                check_languages="$check_languages check-$language"
16377
done
16378
 
16379
# We link each language in with a set of hooks, reached indirectly via
16380
# lang.${target}.
16381
 
16382
rm -f Make-hooks
16383
touch Make-hooks
16384
target_list="all.build all.cross start.encap rest.encap tags \
16385
        install-normal install-common install-man \
16386
        uninstall info man srcextra srcman srcinfo \
16387
        mostlyclean clean distclean maintainer-clean \
16388
        stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16389
for t in $target_list
16390
do
16391
        x=
16392
        for lang in $all_languages
16393
        do
16394
                        x="$x $lang.$t"
16395
        done
16396
        echo "lang.$t: $x" >> Make-hooks
16397
done
16398
 
16399
# --------
16400
# UNSORTED
16401
# --------
16402
 
16403
# Create .gdbinit.
16404
 
16405
echo "dir ." > .gdbinit
16406
echo "dir ${srcdir}" >> .gdbinit
16407
if test x$gdb_needs_out_file_path = xyes
16408
then
16409
        echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16410
fi
16411
if test "x$subdirs" != x; then
16412
        for s in $subdirs
16413
        do
16414
                echo "dir ${srcdir}/$s" >> .gdbinit
16415
        done
16416
fi
16417
echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16418
 
16419
# If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16420
# absolute path for gcc_tooldir based on inserting the number of up-directory
16421
# movements required to get from $(exec_prefix) to $(prefix) into the basic
16422
# $(libsubdir)/@(unlibsubdir) based path.
16423
# Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16424
# make and thus we'd get different behavior depending on where we built the
16425
# sources.
16426
if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16427
    gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16428
else
16429
# An explanation of the sed strings:
16430
#  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16431
#  -e 's|/$||'            match a trailing forward slash and eliminates it
16432
#  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16433
#  -e 's|/[^/]*|../|g'    replaces each occurrence of / with ../
16434
#
16435
# (*) Note this pattern overwrites the first character of the string
16436
# with a forward slash if one is not already present.  This is not a
16437
# problem because the exact names of the sub-directories concerned is
16438
# unimportant, just the number of them matters.
16439
#
16440
# The practical upshot of these patterns is like this:
16441
#
16442
#  prefix     exec_prefix        result
16443
#  ------     -----------        ------
16444
#   /foo        /foo/bar          ../
16445
#   /foo/       /foo/bar          ../
16446
#   /foo        /foo/bar/         ../
16447
#   /foo/       /foo/bar/         ../
16448
#   /foo        /foo/bar/ugg      ../../
16449
#
16450
    dollar='$$'
16451
    gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16452
fi
16453
 
16454
 
16455
 
16456
# Find a directory in which to install a shared libgcc.
16457
 
16458
# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16459
if test "${enable_version_specific_runtime_libs+set}" = set; then
16460
  enableval="$enable_version_specific_runtime_libs"
16461
 
16462
fi;
16463
 
16464
 
16465
# Check whether --with-slibdir or --without-slibdir was given.
16466
if test "${with_slibdir+set}" = set; then
16467
  withval="$with_slibdir"
16468
  slibdir="$with_slibdir"
16469
else
16470
  if test "${enable_version_specific_runtime_libs+set}" = set; then
16471
  slibdir='$(libsubdir)'
16472
elif test "$host" != "$target"; then
16473
  slibdir='$(build_tooldir)/lib'
16474
else
16475
  slibdir='$(libdir)'
16476
fi
16477
fi;
16478
 
16479
 
16480
objdir=`${PWDCMD-pwd}`
16481
 
16482
 
16483
# Substitute configuration variables
16484
 
16485
 
16486
 
16487
 
16488
 
16489
 
16490
 
16491
 
16492
 
16493
 
16494
 
16495
 
16496
 
16497
 
16498
 
16499
 
16500
 
16501
 
16502
 
16503
 
16504
 
16505
 
16506
 
16507
 
16508
 
16509
 
16510
 
16511
 
16512
 
16513
 
16514
 
16515
 
16516
 
16517
 
16518
 
16519
 
16520
 
16521
 
16522
 
16523
 
16524
 
16525
 
16526
 
16527
 
16528
 
16529
 
16530
 
16531
 
16532
 
16533
 
16534
 
16535
 
16536
 
16537
 
16538
 
16539
 
16540
 
16541
 
16542
 
16543
 
16544
 
16545
 
16546
 
16547
# Echo link setup.
16548
if test x${build} = x${host} ; then
16549
  if test x${host} = x${target} ; then
16550
    echo "Links are now set up to build a native compiler for ${target}." 1>&2
16551
  else
16552
    echo "Links are now set up to build a cross-compiler" 1>&2
16553
    echo " from ${host} to ${target}." 1>&2
16554
  fi
16555
else
16556
  if test x${host} = x${target} ; then
16557
    echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16558
    echo " for ${target}." 1>&2
16559
  else
16560
    echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16561
    echo " from ${host} to ${target}." 1>&2
16562
  fi
16563
fi
16564
 
16565
 
16566
 
16567
 
16568
# Configure the subdirectories
16569
# AC_CONFIG_SUBDIRS($subdirs)
16570
 
16571
# Create the Makefile
16572
# and configure language subdirectories
16573
          ac_config_files="$ac_config_files $all_outputs"
16574
 
16575
 
16576
          ac_config_commands="$ac_config_commands default"
16577
 
16578
cat >confcache <<\_ACEOF
16579
# This file is a shell script that caches the results of configure
16580
# tests run on this system so they can be shared between configure
16581
# scripts and configure runs, see configure's option --config-cache.
16582
# It is not useful on other systems.  If it contains results you don't
16583
# want to keep, you may remove or edit it.
16584
#
16585
# config.status only pays attention to the cache file if you give it
16586
# the --recheck option to rerun configure.
16587
#
16588
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16589
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16590
# following values.
16591
 
16592
_ACEOF
16593
 
16594
# The following way of writing the cache mishandles newlines in values,
16595
# but we know of no workaround that is simple, portable, and efficient.
16596
# So, don't put newlines in cache variables' values.
16597
# Ultrix sh set writes to stderr and can't be redirected directly,
16598
# and sets the high bit in the cache file unless we assign to the vars.
16599
{
16600
  (set) 2>&1 |
16601
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
16602
    *ac_space=\ *)
16603
      # `set' does not quote correctly, so add quotes (double-quote
16604
      # substitution turns \\\\ into \\, and sed turns \\ into \).
16605
      sed -n \
16606
        "s/'/'\\\\''/g;
16607
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16608
      ;;
16609
    *)
16610
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16611
      sed -n \
16612
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16613
      ;;
16614
    esac;
16615
} |
16616
  sed '
16617
     t clear
16618
     : clear
16619
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16620
     t end
16621
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16622
     : end' >>confcache
16623
if diff $cache_file confcache >/dev/null 2>&1; then :; else
16624
  if test -w $cache_file; then
16625
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16626
    cat confcache >$cache_file
16627
  else
16628
    echo "not updating unwritable cache $cache_file"
16629
  fi
16630
fi
16631
rm -f confcache
16632
 
16633
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16634
# Let make expand exec_prefix.
16635
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16636
 
16637
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16638
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16639
# trailing colons and then remove the whole line if VPATH becomes empty
16640
# (actually we leave an empty line to preserve line numbers).
16641
if test "x$srcdir" = x.; then
16642
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
16643
s/:*\$(srcdir):*/:/;
16644
s/:*\${srcdir}:*/:/;
16645
s/:*@srcdir@:*/:/;
16646
s/^\([^=]*=[     ]*\):*/\1/;
16647
s/:*$//;
16648
s/^[^=]*=[       ]*$//;
16649
}'
16650
fi
16651
 
16652
DEFS=-DHAVE_CONFIG_H
16653
 
16654
ac_libobjs=
16655
ac_ltlibobjs=
16656
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16657
  # 1. Remove the extension, and $U if already installed.
16658
  ac_i=`echo "$ac_i" |
16659
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16660
  # 2. Add them.
16661
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16662
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16663
done
16664
LIBOBJS=$ac_libobjs
16665
 
16666
LTLIBOBJS=$ac_ltlibobjs
16667
 
16668
 
16669
 
16670
: ${CONFIG_STATUS=./config.status}
16671
ac_clean_files_save=$ac_clean_files
16672
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16673
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16674
echo "$as_me: creating $CONFIG_STATUS" >&6;}
16675
cat >$CONFIG_STATUS <<_ACEOF
16676
#! $SHELL
16677
# Generated by $as_me.
16678
# Run this file to recreate the current configuration.
16679
# Compiler output produced by configure, useful for debugging
16680
# configure, is in config.log if it exists.
16681
 
16682
debug=false
16683
ac_cs_recheck=false
16684
ac_cs_silent=false
16685
SHELL=\${CONFIG_SHELL-$SHELL}
16686
_ACEOF
16687
 
16688
cat >>$CONFIG_STATUS <<\_ACEOF
16689
## --------------------- ##
16690
## M4sh Initialization.  ##
16691
## --------------------- ##
16692
 
16693
# Be Bourne compatible
16694
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16695
  emulate sh
16696
  NULLCMD=:
16697
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16698
  # is contrary to our usage.  Disable this feature.
16699
  alias -g '${1+"$@"}'='"$@"'
16700
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16701
  set -o posix
16702
fi
16703
DUALCASE=1; export DUALCASE # for MKS sh
16704
 
16705
# Support unset when possible.
16706
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16707
  as_unset=unset
16708
else
16709
  as_unset=false
16710
fi
16711
 
16712
 
16713
# Work around bugs in pre-3.0 UWIN ksh.
16714
$as_unset ENV MAIL MAILPATH
16715
PS1='$ '
16716
PS2='> '
16717
PS4='+ '
16718
 
16719
# NLS nuisances.
16720
for as_var in \
16721
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16722
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16723
  LC_TELEPHONE LC_TIME
16724
do
16725
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16726
    eval $as_var=C; export $as_var
16727
  else
16728
    $as_unset $as_var
16729
  fi
16730
done
16731
 
16732
# Required to use basename.
16733
if expr a : '\(a\)' >/dev/null 2>&1; then
16734
  as_expr=expr
16735
else
16736
  as_expr=false
16737
fi
16738
 
16739
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16740
  as_basename=basename
16741
else
16742
  as_basename=false
16743
fi
16744
 
16745
 
16746
# Name of the executable.
16747
as_me=`$as_basename "$0" ||
16748
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16749
         X"$0" : 'X\(//\)$' \| \
16750
         X"$0" : 'X\(/\)$' \| \
16751
         .     : '\(.\)' 2>/dev/null ||
16752
echo X/"$0" |
16753
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16754
          /^X\/\(\/\/\)$/{ s//\1/; q; }
16755
          /^X\/\(\/\).*/{ s//\1/; q; }
16756
          s/.*/./; q'`
16757
 
16758
 
16759
# PATH needs CR, and LINENO needs CR and PATH.
16760
# Avoid depending upon Character Ranges.
16761
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16762
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16763
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16764
as_cr_digits='0123456789'
16765
as_cr_alnum=$as_cr_Letters$as_cr_digits
16766
 
16767
# The user is always right.
16768
if test "${PATH_SEPARATOR+set}" != set; then
16769
  echo "#! /bin/sh" >conf$$.sh
16770
  echo  "exit 0"   >>conf$$.sh
16771
  chmod +x conf$$.sh
16772
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16773
    PATH_SEPARATOR=';'
16774
  else
16775
    PATH_SEPARATOR=:
16776
  fi
16777
  rm -f conf$$.sh
16778
fi
16779
 
16780
 
16781
  as_lineno_1=$LINENO
16782
  as_lineno_2=$LINENO
16783
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16784
  test "x$as_lineno_1" != "x$as_lineno_2" &&
16785
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16786
  # Find who we are.  Look in the path if we contain no path at all
16787
  # relative or not.
16788
  case $0 in
16789
    *[\\/]* ) as_myself=$0 ;;
16790
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791
for as_dir in $PATH
16792
do
16793
  IFS=$as_save_IFS
16794
  test -z "$as_dir" && as_dir=.
16795
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16796
done
16797
 
16798
       ;;
16799
  esac
16800
  # We did not find ourselves, most probably we were run as `sh COMMAND'
16801
  # in which case we are not to be found in the path.
16802
  if test "x$as_myself" = x; then
16803
    as_myself=$0
16804
  fi
16805
  if test ! -f "$as_myself"; then
16806
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16807
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16808
   { (exit 1); exit 1; }; }
16809
  fi
16810
  case $CONFIG_SHELL in
16811
  '')
16812
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16814
do
16815
  IFS=$as_save_IFS
16816
  test -z "$as_dir" && as_dir=.
16817
  for as_base in sh bash ksh sh5; do
16818
         case $as_dir in
16819
         /*)
16820
           if ("$as_dir/$as_base" -c '
16821
  as_lineno_1=$LINENO
16822
  as_lineno_2=$LINENO
16823
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16824
  test "x$as_lineno_1" != "x$as_lineno_2" &&
16825
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16826
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16827
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16828
             CONFIG_SHELL=$as_dir/$as_base
16829
             export CONFIG_SHELL
16830
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16831
           fi;;
16832
         esac
16833
       done
16834
done
16835
;;
16836
  esac
16837
 
16838
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16839
  # uniformly replaced by the line number.  The first 'sed' inserts a
16840
  # line-number line before each line; the second 'sed' does the real
16841
  # work.  The second script uses 'N' to pair each line-number line
16842
  # with the numbered line, and appends trailing '-' during
16843
  # substitution so that $LINENO is not a special case at line end.
16844
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16845
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16846
  sed '=' <$as_myself |
16847
    sed '
16848
      N
16849
      s,$,-,
16850
      : loop
16851
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16852
      t loop
16853
      s,-$,,
16854
      s,^['$as_cr_digits']*\n,,
16855
    ' >$as_me.lineno &&
16856
  chmod +x $as_me.lineno ||
16857
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16858
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16859
   { (exit 1); exit 1; }; }
16860
 
16861
  # Don't try to exec as it changes $[0], causing all sort of problems
16862
  # (the dirname of $[0] is not the place where we might find the
16863
  # original and so on.  Autoconf is especially sensible to this).
16864
  . ./$as_me.lineno
16865
  # Exit status is that of the last command.
16866
  exit
16867
}
16868
 
16869
 
16870
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16871
  *c*,-n*) ECHO_N= ECHO_C='
16872
' ECHO_T='      ' ;;
16873
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16874
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16875
esac
16876
 
16877
if expr a : '\(a\)' >/dev/null 2>&1; then
16878
  as_expr=expr
16879
else
16880
  as_expr=false
16881
fi
16882
 
16883
rm -f conf$$ conf$$.exe conf$$.file
16884
echo >conf$$.file
16885
if ln -s conf$$.file conf$$ 2>/dev/null; then
16886
  # We could just check for DJGPP; but this test a) works b) is more generic
16887
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16888
  if test -f conf$$.exe; then
16889
    # Don't use ln at all; we don't have any links
16890
    as_ln_s='cp -p'
16891
  else
16892
    as_ln_s='ln -s'
16893
  fi
16894
elif ln conf$$.file conf$$ 2>/dev/null; then
16895
  as_ln_s=ln
16896
else
16897
  as_ln_s='cp -p'
16898
fi
16899
rm -f conf$$ conf$$.exe conf$$.file
16900
 
16901
if mkdir -p . 2>/dev/null; then
16902
  as_mkdir_p=:
16903
else
16904
  test -d ./-p && rmdir ./-p
16905
  as_mkdir_p=false
16906
fi
16907
 
16908
as_executable_p="test -f"
16909
 
16910
# Sed expression to map a string onto a valid CPP name.
16911
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16912
 
16913
# Sed expression to map a string onto a valid variable name.
16914
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16915
 
16916
 
16917
# IFS
16918
# We need space, tab and new line, in precisely that order.
16919
as_nl='
16920
'
16921
IFS="   $as_nl"
16922
 
16923
# CDPATH.
16924
$as_unset CDPATH
16925
 
16926
exec 6>&1
16927
 
16928
# Open the log real soon, to keep \$[0] and so on meaningful, and to
16929
# report actual input values of CONFIG_FILES etc. instead of their
16930
# values after options handling.  Logging --version etc. is OK.
16931
exec 5>>config.log
16932
{
16933
  echo
16934
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16935
## Running $as_me. ##
16936
_ASBOX
16937
} >&5
16938
cat >&5 <<_CSEOF
16939
 
16940
This file was extended by $as_me, which was
16941
generated by GNU Autoconf 2.59.  Invocation command line was
16942
 
16943
  CONFIG_FILES    = $CONFIG_FILES
16944
  CONFIG_HEADERS  = $CONFIG_HEADERS
16945
  CONFIG_LINKS    = $CONFIG_LINKS
16946
  CONFIG_COMMANDS = $CONFIG_COMMANDS
16947
  $ $0 $@
16948
 
16949
_CSEOF
16950
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16951
echo >&5
16952
_ACEOF
16953
 
16954
# Files that config.status was made for.
16955
if test -n "$ac_config_files"; then
16956
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16957
fi
16958
 
16959
if test -n "$ac_config_headers"; then
16960
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16961
fi
16962
 
16963
if test -n "$ac_config_links"; then
16964
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16965
fi
16966
 
16967
if test -n "$ac_config_commands"; then
16968
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16969
fi
16970
 
16971
cat >>$CONFIG_STATUS <<\_ACEOF
16972
 
16973
ac_cs_usage="\
16974
\`$as_me' instantiates files from templates according to the
16975
current configuration.
16976
 
16977
Usage: $0 [OPTIONS] [FILE]...
16978
 
16979
  -h, --help       print this help, then exit
16980
  -V, --version    print version number, then exit
16981
  -q, --quiet      do not print progress messages
16982
  -d, --debug      don't remove temporary files
16983
      --recheck    update $as_me by reconfiguring in the same conditions
16984
  --file=FILE[:TEMPLATE]
16985
                   instantiate the configuration file FILE
16986
  --header=FILE[:TEMPLATE]
16987
                   instantiate the configuration header FILE
16988
 
16989
Configuration files:
16990
$config_files
16991
 
16992
Configuration headers:
16993
$config_headers
16994
 
16995
Configuration commands:
16996
$config_commands
16997
 
16998
Report bugs to ."
16999
_ACEOF
17000
 
17001
cat >>$CONFIG_STATUS <<_ACEOF
17002
ac_cs_version="\\
17003
config.status
17004
configured by $0, generated by GNU Autoconf 2.59,
17005
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17006
 
17007
Copyright (C) 2003 Free Software Foundation, Inc.
17008
This config.status script is free software; the Free Software Foundation
17009
gives unlimited permission to copy, distribute and modify it."
17010
srcdir=$srcdir
17011
_ACEOF
17012
 
17013
cat >>$CONFIG_STATUS <<\_ACEOF
17014
# If no file are specified by the user, then we need to provide default
17015
# value.  By we need to know if files were specified by the user.
17016
ac_need_defaults=:
17017
while test $# != 0
17018
do
17019
  case $1 in
17020
  --*=*)
17021
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
17022
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17023
    ac_shift=:
17024
    ;;
17025
  -*)
17026
    ac_option=$1
17027
    ac_optarg=$2
17028
    ac_shift=shift
17029
    ;;
17030
  *) # This is not an option, so the user has probably given explicit
17031
     # arguments.
17032
     ac_option=$1
17033
     ac_need_defaults=false;;
17034
  esac
17035
 
17036
  case $ac_option in
17037
  # Handling of the options.
17038
_ACEOF
17039
cat >>$CONFIG_STATUS <<\_ACEOF
17040
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17041
    ac_cs_recheck=: ;;
17042
  --version | --vers* | -V )
17043
    echo "$ac_cs_version"; exit 0 ;;
17044
  --he | --h)
17045
    # Conflict between --help and --header
17046
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
17047
Try \`$0 --help' for more information." >&5
17048
echo "$as_me: error: ambiguous option: $1
17049
Try \`$0 --help' for more information." >&2;}
17050
   { (exit 1); exit 1; }; };;
17051
  --help | --hel | -h )
17052
    echo "$ac_cs_usage"; exit 0 ;;
17053
  --debug | --d* | -d )
17054
    debug=: ;;
17055
  --file | --fil | --fi | --f )
17056
    $ac_shift
17057
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17058
    ac_need_defaults=false;;
17059
  --header | --heade | --head | --hea )
17060
    $ac_shift
17061
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17062
    ac_need_defaults=false;;
17063
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17064
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17065
    ac_cs_silent=: ;;
17066
 
17067
  # This is an error.
17068
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17069
Try \`$0 --help' for more information." >&5
17070
echo "$as_me: error: unrecognized option: $1
17071
Try \`$0 --help' for more information." >&2;}
17072
   { (exit 1); exit 1; }; } ;;
17073
 
17074
  *) ac_config_targets="$ac_config_targets $1" ;;
17075
 
17076
  esac
17077
  shift
17078
done
17079
 
17080
ac_configure_extra_args=
17081
 
17082
if $ac_cs_silent; then
17083
  exec 6>/dev/null
17084
  ac_configure_extra_args="$ac_configure_extra_args --silent"
17085
fi
17086
 
17087
_ACEOF
17088
cat >>$CONFIG_STATUS <<_ACEOF
17089
if \$ac_cs_recheck; then
17090
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17091
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17092
fi
17093
 
17094
_ACEOF
17095
 
17096
cat >>$CONFIG_STATUS <<_ACEOF
17097
#
17098
# INIT-COMMANDS section.
17099
#
17100
 
17101
subdirs='$subdirs'
17102
 
17103
_ACEOF
17104
 
17105
 
17106
 
17107
cat >>$CONFIG_STATUS <<\_ACEOF
17108
for ac_config_target in $ac_config_targets
17109
do
17110
  case "$ac_config_target" in
17111
  # Handling of arguments.
17112
  "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17113
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17114
  "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17115
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17116
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17117
   { (exit 1); exit 1; }; };;
17118
  esac
17119
done
17120
 
17121
# If the user did not use the arguments to specify the items to instantiate,
17122
# then the envvar interface is used.  Set only those that are not.
17123
# We use the long form for the default assignment because of an extremely
17124
# bizarre bug on SunOS 4.1.3.
17125
if $ac_need_defaults; then
17126
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17127
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17128
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17129
fi
17130
 
17131
# Have a temporary directory for convenience.  Make it in the build tree
17132
# simply because there is no reason to put it here, and in addition,
17133
# creating and moving files from /tmp can sometimes cause problems.
17134
# Create a temporary directory, and hook for its removal unless debugging.
17135
$debug ||
17136
{
17137
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17138
  trap '{ (exit 1); exit 1; }' 1 2 13 15
17139
}
17140
 
17141
# Create a (secure) tmp directory for tmp files.
17142
 
17143
{
17144
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17145
  test -n "$tmp" && test -d "$tmp"
17146
}  ||
17147
{
17148
  tmp=./confstat$$-$RANDOM
17149
  (umask 077 && mkdir $tmp)
17150
} ||
17151
{
17152
   echo "$me: cannot create a temporary directory in ." >&2
17153
   { (exit 1); exit 1; }
17154
}
17155
 
17156
_ACEOF
17157
 
17158
cat >>$CONFIG_STATUS <<_ACEOF
17159
 
17160
#
17161
# CONFIG_FILES section.
17162
#
17163
 
17164
# No need to generate the scripts if there are no CONFIG_FILES.
17165
# This happens for instance when ./config.status config.h
17166
if test -n "\$CONFIG_FILES"; then
17167
  # Protect against being on the right side of a sed subst in config.status.
17168
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17169
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17170
s,@SHELL@,$SHELL,;t t
17171
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17172
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17173
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17174
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17175
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17176
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17177
s,@exec_prefix@,$exec_prefix,;t t
17178
s,@prefix@,$prefix,;t t
17179
s,@program_transform_name@,$program_transform_name,;t t
17180
s,@bindir@,$bindir,;t t
17181
s,@sbindir@,$sbindir,;t t
17182
s,@libexecdir@,$libexecdir,;t t
17183
s,@datadir@,$datadir,;t t
17184
s,@sysconfdir@,$sysconfdir,;t t
17185
s,@sharedstatedir@,$sharedstatedir,;t t
17186
s,@localstatedir@,$localstatedir,;t t
17187
s,@libdir@,$libdir,;t t
17188
s,@includedir@,$includedir,;t t
17189
s,@oldincludedir@,$oldincludedir,;t t
17190
s,@infodir@,$infodir,;t t
17191
s,@mandir@,$mandir,;t t
17192
s,@build_alias@,$build_alias,;t t
17193
s,@host_alias@,$host_alias,;t t
17194
s,@target_alias@,$target_alias,;t t
17195
s,@DEFS@,$DEFS,;t t
17196
s,@ECHO_C@,$ECHO_C,;t t
17197
s,@ECHO_N@,$ECHO_N,;t t
17198
s,@ECHO_T@,$ECHO_T,;t t
17199
s,@LIBS@,$LIBS,;t t
17200
s,@build@,$build,;t t
17201
s,@build_cpu@,$build_cpu,;t t
17202
s,@build_vendor@,$build_vendor,;t t
17203
s,@build_os@,$build_os,;t t
17204
s,@host@,$host,;t t
17205
s,@host_cpu@,$host_cpu,;t t
17206
s,@host_vendor@,$host_vendor,;t t
17207
s,@host_os@,$host_os,;t t
17208
s,@target@,$target,;t t
17209
s,@target_cpu@,$target_cpu,;t t
17210
s,@target_vendor@,$target_vendor,;t t
17211
s,@target_os@,$target_os,;t t
17212
s,@target_noncanonical@,$target_noncanonical,;t t
17213
s,@build_subdir@,$build_subdir,;t t
17214
s,@host_subdir@,$host_subdir,;t t
17215
s,@target_subdir@,$target_subdir,;t t
17216
s,@GENINSRC@,$GENINSRC,;t t
17217
s,@CC@,$CC,;t t
17218
s,@CFLAGS@,$CFLAGS,;t t
17219
s,@LDFLAGS@,$LDFLAGS,;t t
17220
s,@CPPFLAGS@,$CPPFLAGS,;t t
17221
s,@ac_ct_CC@,$ac_ct_CC,;t t
17222
s,@EXEEXT@,$EXEEXT,;t t
17223
s,@OBJEXT@,$OBJEXT,;t t
17224
s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17225
s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17226
s,@CPP@,$CPP,;t t
17227
s,@EGREP@,$EGREP,;t t
17228
s,@strict1_warn@,$strict1_warn,;t t
17229
s,@warn_cflags@,$warn_cflags,;t t
17230
s,@WERROR@,$WERROR,;t t
17231
s,@nocommon_flag@,$nocommon_flag,;t t
17232
s,@TREEBROWSER@,$TREEBROWSER,;t t
17233
s,@valgrind_path@,$valgrind_path,;t t
17234
s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17235
s,@valgrind_command@,$valgrind_command,;t t
17236
s,@coverage_flags@,$coverage_flags,;t t
17237
s,@enable_multilib@,$enable_multilib,;t t
17238
s,@enable_shared@,$enable_shared,;t t
17239
s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17240
s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17241
s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17242
s,@onestep@,$onestep,;t t
17243
s,@SET_MAKE@,$SET_MAKE,;t t
17244
s,@AWK@,$AWK,;t t
17245
s,@LN_S@,$LN_S,;t t
17246
s,@LN@,$LN,;t t
17247
s,@RANLIB@,$RANLIB,;t t
17248
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17249
s,@ranlib_flags@,$ranlib_flags,;t t
17250
s,@INSTALL@,$INSTALL,;t t
17251
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17252
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17253
s,@make_compare_target@,$make_compare_target,;t t
17254
s,@have_mktemp_command@,$have_mktemp_command,;t t
17255
s,@MAKEINFO@,$MAKEINFO,;t t
17256
s,@BUILD_INFO@,$BUILD_INFO,;t t
17257
s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17258
s,@FLEX@,$FLEX,;t t
17259
s,@BISON@,$BISON,;t t
17260
s,@NM@,$NM,;t t
17261
s,@AR@,$AR,;t t
17262
s,@stage1_cflags@,$stage1_cflags,;t t
17263
s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17264
s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17265
s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17266
s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17267
s,@LIBICONV@,$LIBICONV,;t t
17268
s,@LTLIBICONV@,$LTLIBICONV,;t t
17269
s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17270
s,@manext@,$manext,;t t
17271
s,@objext@,$objext,;t t
17272
s,@gthread_flags@,$gthread_flags,;t t
17273
s,@extra_modes_file@,$extra_modes_file,;t t
17274
s,@extra_opt_files@,$extra_opt_files,;t t
17275
s,@USE_NLS@,$USE_NLS,;t t
17276
s,@LIBINTL@,$LIBINTL,;t t
17277
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17278
s,@INCINTL@,$INCINTL,;t t
17279
s,@XGETTEXT@,$XGETTEXT,;t t
17280
s,@GMSGFMT@,$GMSGFMT,;t t
17281
s,@POSUB@,$POSUB,;t t
17282
s,@CATALOGS@,$CATALOGS,;t t
17283
s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17284
s,@CROSS@,$CROSS,;t t
17285
s,@ALL@,$ALL,;t t
17286
s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17287
s,@inhibit_libc@,$inhibit_libc,;t t
17288
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17289
s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17290
s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17291
s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17292
s,@collect2@,$collect2,;t t
17293
s,@gcc_cv_as@,$gcc_cv_as,;t t
17294
s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17295
s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17296
s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17297
s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17298
s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17299
s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17300
s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17301
s,@libgcc_visibility@,$libgcc_visibility,;t t
17302
s,@GGC@,$GGC,;t t
17303
s,@zlibdir@,$zlibdir,;t t
17304
s,@zlibinc@,$zlibinc,;t t
17305
s,@MAINT@,$MAINT,;t t
17306
s,@gcc_tooldir@,$gcc_tooldir,;t t
17307
s,@dollar@,$dollar,;t t
17308
s,@slibdir@,$slibdir,;t t
17309
s,@objdir@,$objdir,;t t
17310
s,@subdirs@,$subdirs,;t t
17311
s,@srcdir@,$srcdir,;t t
17312
s,@all_boot_languages@,$all_boot_languages,;t t
17313
s,@all_compilers@,$all_compilers,;t t
17314
s,@all_gtfiles@,$all_gtfiles,;t t
17315
s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17316
s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17317
s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17318
s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17319
s,@all_languages@,$all_languages,;t t
17320
s,@all_stagestuff@,$all_stagestuff,;t t
17321
s,@build_exeext@,$build_exeext,;t t
17322
s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17323
s,@build_xm_file_list@,$build_xm_file_list,;t t
17324
s,@build_xm_include_list@,$build_xm_include_list,;t t
17325
s,@build_xm_defines@,$build_xm_defines,;t t
17326
s,@check_languages@,$check_languages,;t t
17327
s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17328
s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17329
s,@cpp_install_dir@,$cpp_install_dir,;t t
17330
s,@xmake_file@,$xmake_file,;t t
17331
s,@tmake_file@,$tmake_file,;t t
17332
s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17333
s,@extra_headers_list@,$extra_headers_list,;t t
17334
s,@extra_objs@,$extra_objs,;t t
17335
s,@extra_parts@,$extra_parts,;t t
17336
s,@extra_passes@,$extra_passes,;t t
17337
s,@extra_programs@,$extra_programs,;t t
17338
s,@float_h_file@,$float_h_file,;t t
17339
s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17340
s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17341
s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17342
s,@host_exeext@,$host_exeext,;t t
17343
s,@host_xm_file_list@,$host_xm_file_list,;t t
17344
s,@host_xm_include_list@,$host_xm_include_list,;t t
17345
s,@host_xm_defines@,$host_xm_defines,;t t
17346
s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17347
s,@install@,$install,;t t
17348
s,@lang_opt_files@,$lang_opt_files,;t t
17349
s,@lang_specs_files@,$lang_specs_files,;t t
17350
s,@lang_tree_files@,$lang_tree_files,;t t
17351
s,@local_prefix@,$local_prefix,;t t
17352
s,@md_file@,$md_file,;t t
17353
s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17354
s,@out_file@,$out_file,;t t
17355
s,@out_object_file@,$out_object_file,;t t
17356
s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17357
s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17358
s,@thread_file@,$thread_file,;t t
17359
s,@tm_file_list@,$tm_file_list,;t t
17360
s,@tm_include_list@,$tm_include_list,;t t
17361
s,@tm_defines@,$tm_defines,;t t
17362
s,@tm_p_file_list@,$tm_p_file_list,;t t
17363
s,@tm_p_include_list@,$tm_p_include_list,;t t
17364
s,@xm_file_list@,$xm_file_list,;t t
17365
s,@xm_include_list@,$xm_include_list,;t t
17366
s,@xm_defines@,$xm_defines,;t t
17367
s,@c_target_objs@,$c_target_objs,;t t
17368
s,@cxx_target_objs@,$cxx_target_objs,;t t
17369
s,@target_cpu_default@,$target_cpu_default,;t t
17370
s,@GMPLIBS@,$GMPLIBS,;t t
17371
s,@GMPINC@,$GMPINC,;t t
17372
s,@LIBOBJS@,$LIBOBJS,;t t
17373
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17374
/@language_hooks@/r $language_hooks
17375
s,@language_hooks@,,;t t
17376
CEOF
17377
 
17378
_ACEOF
17379
 
17380
  cat >>$CONFIG_STATUS <<\_ACEOF
17381
  # Split the substitutions into bite-sized pieces for seds with
17382
  # small command number limits, like on Digital OSF/1 and HP-UX.
17383
  ac_max_sed_lines=48
17384
  ac_sed_frag=1 # Number of current file.
17385
  ac_beg=1 # First line for current file.
17386
  ac_end=$ac_max_sed_lines # Line after last line for current file.
17387
  ac_more_lines=:
17388
  ac_sed_cmds=
17389
  while $ac_more_lines; do
17390
    if test $ac_beg -gt 1; then
17391
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17392
    else
17393
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17394
    fi
17395
    if test ! -s $tmp/subs.frag; then
17396
      ac_more_lines=false
17397
    else
17398
      # The purpose of the label and of the branching condition is to
17399
      # speed up the sed processing (if there are no `@' at all, there
17400
      # is no need to browse any of the substitutions).
17401
      # These are the two extra sed commands mentioned above.
17402
      (echo ':t
17403
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17404
      if test -z "$ac_sed_cmds"; then
17405
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17406
      else
17407
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17408
      fi
17409
      ac_sed_frag=`expr $ac_sed_frag + 1`
17410
      ac_beg=$ac_end
17411
      ac_end=`expr $ac_end + $ac_max_sed_lines`
17412
    fi
17413
  done
17414
  if test -z "$ac_sed_cmds"; then
17415
    ac_sed_cmds=cat
17416
  fi
17417
fi # test -n "$CONFIG_FILES"
17418
 
17419
_ACEOF
17420
cat >>$CONFIG_STATUS <<\_ACEOF
17421
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17422
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17423
  case $ac_file in
17424
  - | *:- | *:-:* ) # input from stdin
17425
        cat >$tmp/stdin
17426
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17427
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17428
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17429
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17430
  * )   ac_file_in=$ac_file.in ;;
17431
  esac
17432
 
17433
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17434
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17435
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17436
         X"$ac_file" : 'X\(//\)[^/]' \| \
17437
         X"$ac_file" : 'X\(//\)$' \| \
17438
         X"$ac_file" : 'X\(/\)' \| \
17439
         .     : '\(.\)' 2>/dev/null ||
17440
echo X"$ac_file" |
17441
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17442
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17443
          /^X\(\/\/\)$/{ s//\1/; q; }
17444
          /^X\(\/\).*/{ s//\1/; q; }
17445
          s/.*/./; q'`
17446
  { if $as_mkdir_p; then
17447
    mkdir -p "$ac_dir"
17448
  else
17449
    as_dir="$ac_dir"
17450
    as_dirs=
17451
    while test ! -d "$as_dir"; do
17452
      as_dirs="$as_dir $as_dirs"
17453
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17454
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17455
         X"$as_dir" : 'X\(//\)[^/]' \| \
17456
         X"$as_dir" : 'X\(//\)$' \| \
17457
         X"$as_dir" : 'X\(/\)' \| \
17458
         .     : '\(.\)' 2>/dev/null ||
17459
echo X"$as_dir" |
17460
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17461
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17462
          /^X\(\/\/\)$/{ s//\1/; q; }
17463
          /^X\(\/\).*/{ s//\1/; q; }
17464
          s/.*/./; q'`
17465
    done
17466
    test ! -n "$as_dirs" || mkdir $as_dirs
17467
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17468
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17469
   { (exit 1); exit 1; }; }; }
17470
 
17471
  ac_builddir=.
17472
 
17473
if test "$ac_dir" != .; then
17474
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17475
  # A "../" for each directory in $ac_dir_suffix.
17476
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17477
else
17478
  ac_dir_suffix= ac_top_builddir=
17479
fi
17480
 
17481
case $srcdir in
17482
  .)  # No --srcdir option.  We are building in place.
17483
    ac_srcdir=.
17484
    if test -z "$ac_top_builddir"; then
17485
       ac_top_srcdir=.
17486
    else
17487
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17488
    fi ;;
17489
  [\\/]* | ?:[\\/]* )  # Absolute path.
17490
    ac_srcdir=$srcdir$ac_dir_suffix;
17491
    ac_top_srcdir=$srcdir ;;
17492
  *) # Relative path.
17493
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17494
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
17495
esac
17496
 
17497
# Do not use `cd foo && pwd` to compute absolute paths, because
17498
# the directories may not exist.
17499
case `pwd` in
17500
.) ac_abs_builddir="$ac_dir";;
17501
*)
17502
  case "$ac_dir" in
17503
  .) ac_abs_builddir=`pwd`;;
17504
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17505
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
17506
  esac;;
17507
esac
17508
case $ac_abs_builddir in
17509
.) ac_abs_top_builddir=${ac_top_builddir}.;;
17510
*)
17511
  case ${ac_top_builddir}. in
17512
  .) ac_abs_top_builddir=$ac_abs_builddir;;
17513
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17514
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17515
  esac;;
17516
esac
17517
case $ac_abs_builddir in
17518
.) ac_abs_srcdir=$ac_srcdir;;
17519
*)
17520
  case $ac_srcdir in
17521
  .) ac_abs_srcdir=$ac_abs_builddir;;
17522
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17523
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17524
  esac;;
17525
esac
17526
case $ac_abs_builddir in
17527
.) ac_abs_top_srcdir=$ac_top_srcdir;;
17528
*)
17529
  case $ac_top_srcdir in
17530
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
17531
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17532
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17533
  esac;;
17534
esac
17535
 
17536
 
17537
 
17538
  if test x"$ac_file" != x-; then
17539
    { echo "$as_me:$LINENO: creating $ac_file" >&5
17540
echo "$as_me: creating $ac_file" >&6;}
17541
    rm -f "$ac_file"
17542
  fi
17543
  # Let's still pretend it is `configure' which instantiates (i.e., don't
17544
  # use $as_me), people would be surprised to read:
17545
  #    /* config.h.  Generated by config.status.  */
17546
  if test x"$ac_file" = x-; then
17547
    configure_input=
17548
  else
17549
    configure_input="$ac_file.  "
17550
  fi
17551
  configure_input=$configure_input"Generated from `echo $ac_file_in |
17552
                                     sed 's,.*/,,'` by configure."
17553
 
17554
  # First look for the input files in the build tree, otherwise in the
17555
  # src tree.
17556
  ac_file_inputs=`IFS=:
17557
    for f in $ac_file_in; do
17558
      case $f in
17559
      -) echo $tmp/stdin ;;
17560
      [\\/$]*)
17561
         # Absolute (can't be DOS-style, as IFS=:)
17562
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17563
echo "$as_me: error: cannot find input file: $f" >&2;}
17564
   { (exit 1); exit 1; }; }
17565
         echo "$f";;
17566
      *) # Relative
17567
         if test -f "$f"; then
17568
           # Build tree
17569
           echo "$f"
17570
         elif test -f "$srcdir/$f"; then
17571
           # Source tree
17572
           echo "$srcdir/$f"
17573
         else
17574
           # /dev/null tree
17575
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17576
echo "$as_me: error: cannot find input file: $f" >&2;}
17577
   { (exit 1); exit 1; }; }
17578
         fi;;
17579
      esac
17580
    done` || { (exit 1); exit 1; }
17581
_ACEOF
17582
cat >>$CONFIG_STATUS <<_ACEOF
17583
  sed "$ac_vpsub
17584
$extrasub
17585
_ACEOF
17586
cat >>$CONFIG_STATUS <<\_ACEOF
17587
:t
17588
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17589
s,@configure_input@,$configure_input,;t t
17590
s,@srcdir@,$ac_srcdir,;t t
17591
s,@abs_srcdir@,$ac_abs_srcdir,;t t
17592
s,@top_srcdir@,$ac_top_srcdir,;t t
17593
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17594
s,@builddir@,$ac_builddir,;t t
17595
s,@abs_builddir@,$ac_abs_builddir,;t t
17596
s,@top_builddir@,$ac_top_builddir,;t t
17597
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17598
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17599
  rm -f $tmp/stdin
17600
  if test x"$ac_file" != x-; then
17601
    mv $tmp/out $ac_file
17602
  else
17603
    cat $tmp/out
17604
    rm -f $tmp/out
17605
  fi
17606
 
17607
done
17608
_ACEOF
17609
cat >>$CONFIG_STATUS <<\_ACEOF
17610
 
17611
#
17612
# CONFIG_HEADER section.
17613
#
17614
 
17615
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17616
# NAME is the cpp macro being defined and VALUE is the value it is being given.
17617
#
17618
# ac_d sets the value in "#define NAME VALUE" lines.
17619
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17620
ac_dB='[         ].*$,\1#\2'
17621
ac_dC=' '
17622
ac_dD=',;t'
17623
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17624
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17625
ac_uB='$,\1#\2define\3'
17626
ac_uC=' '
17627
ac_uD=',;t'
17628
 
17629
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17630
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17631
  case $ac_file in
17632
  - | *:- | *:-:* ) # input from stdin
17633
        cat >$tmp/stdin
17634
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17635
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17636
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17637
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17638
  * )   ac_file_in=$ac_file.in ;;
17639
  esac
17640
 
17641
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17642
echo "$as_me: creating $ac_file" >&6;}
17643
 
17644
  # First look for the input files in the build tree, otherwise in the
17645
  # src tree.
17646
  ac_file_inputs=`IFS=:
17647
    for f in $ac_file_in; do
17648
      case $f in
17649
      -) echo $tmp/stdin ;;
17650
      [\\/$]*)
17651
         # Absolute (can't be DOS-style, as IFS=:)
17652
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17653
echo "$as_me: error: cannot find input file: $f" >&2;}
17654
   { (exit 1); exit 1; }; }
17655
         # Do quote $f, to prevent DOS paths from being IFS'd.
17656
         echo "$f";;
17657
      *) # Relative
17658
         if test -f "$f"; then
17659
           # Build tree
17660
           echo "$f"
17661
         elif test -f "$srcdir/$f"; then
17662
           # Source tree
17663
           echo "$srcdir/$f"
17664
         else
17665
           # /dev/null tree
17666
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17667
echo "$as_me: error: cannot find input file: $f" >&2;}
17668
   { (exit 1); exit 1; }; }
17669
         fi;;
17670
      esac
17671
    done` || { (exit 1); exit 1; }
17672
  # Remove the trailing spaces.
17673
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17674
 
17675
_ACEOF
17676
 
17677
# Transform confdefs.h into two sed scripts, `conftest.defines' and
17678
# `conftest.undefs', that substitutes the proper values into
17679
# config.h.in to produce config.h.  The first handles `#define'
17680
# templates, and the second `#undef' templates.
17681
# And first: Protect against being on the right side of a sed subst in
17682
# config.status.  Protect against being in an unquoted here document
17683
# in config.status.
17684
rm -f conftest.defines conftest.undefs
17685
# Using a here document instead of a string reduces the quoting nightmare.
17686
# Putting comments in sed scripts is not portable.
17687
#
17688
# `end' is used to avoid that the second main sed command (meant for
17689
# 0-ary CPP macros) applies to n-ary macro definitions.
17690
# See the Autoconf documentation for `clear'.
17691
cat >confdef2sed.sed <<\_ACEOF
17692
s/[\\&,]/\\&/g
17693
s,[\\$`],\\&,g
17694
t clear
17695
: clear
17696
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17697
t end
17698
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17699
: end
17700
_ACEOF
17701
# If some macros were called several times there might be several times
17702
# the same #defines, which is useless.  Nevertheless, we may not want to
17703
# sort them, since we want the *last* AC-DEFINE to be honored.
17704
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17705
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17706
rm -f confdef2sed.sed
17707
 
17708
# This sed command replaces #undef with comments.  This is necessary, for
17709
# example, in the case of _POSIX_SOURCE, which is predefined and required
17710
# on some systems where configure will not decide to define it.
17711
cat >>conftest.undefs <<\_ACEOF
17712
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17713
_ACEOF
17714
 
17715
# Break up conftest.defines because some shells have a limit on the size
17716
# of here documents, and old seds have small limits too (100 cmds).
17717
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17718
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17719
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17720
echo '  :' >>$CONFIG_STATUS
17721
rm -f conftest.tail
17722
while grep . conftest.defines >/dev/null
17723
do
17724
  # Write a limited-size here document to $tmp/defines.sed.
17725
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
17726
  # Speed up: don't consider the non `#define' lines.
17727
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17728
  # Work around the forget-to-reset-the-flag bug.
17729
  echo 't clr' >>$CONFIG_STATUS
17730
  echo ': clr' >>$CONFIG_STATUS
17731
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17732
  echo 'CEOF
17733
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
17734
  rm -f $tmp/in
17735
  mv $tmp/out $tmp/in
17736
' >>$CONFIG_STATUS
17737
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17738
  rm -f conftest.defines
17739
  mv conftest.tail conftest.defines
17740
done
17741
rm -f conftest.defines
17742
echo '  fi # grep' >>$CONFIG_STATUS
17743
echo >>$CONFIG_STATUS
17744
 
17745
# Break up conftest.undefs because some shells have a limit on the size
17746
# of here documents, and old seds have small limits too (100 cmds).
17747
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17748
rm -f conftest.tail
17749
while grep . conftest.undefs >/dev/null
17750
do
17751
  # Write a limited-size here document to $tmp/undefs.sed.
17752
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
17753
  # Speed up: don't consider the non `#undef'
17754
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17755
  # Work around the forget-to-reset-the-flag bug.
17756
  echo 't clr' >>$CONFIG_STATUS
17757
  echo ': clr' >>$CONFIG_STATUS
17758
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17759
  echo 'CEOF
17760
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17761
  rm -f $tmp/in
17762
  mv $tmp/out $tmp/in
17763
' >>$CONFIG_STATUS
17764
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17765
  rm -f conftest.undefs
17766
  mv conftest.tail conftest.undefs
17767
done
17768
rm -f conftest.undefs
17769
 
17770
cat >>$CONFIG_STATUS <<\_ACEOF
17771
  # Let's still pretend it is `configure' which instantiates (i.e., don't
17772
  # use $as_me), people would be surprised to read:
17773
  #    /* config.h.  Generated by config.status.  */
17774
  if test x"$ac_file" = x-; then
17775
    echo "/* Generated by configure.  */" >$tmp/config.h
17776
  else
17777
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17778
  fi
17779
  cat $tmp/in >>$tmp/config.h
17780
  rm -f $tmp/in
17781
  if test x"$ac_file" != x-; then
17782
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17783
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17784
echo "$as_me: $ac_file is unchanged" >&6;}
17785
    else
17786
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17787
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17788
         X"$ac_file" : 'X\(//\)[^/]' \| \
17789
         X"$ac_file" : 'X\(//\)$' \| \
17790
         X"$ac_file" : 'X\(/\)' \| \
17791
         .     : '\(.\)' 2>/dev/null ||
17792
echo X"$ac_file" |
17793
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17794
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17795
          /^X\(\/\/\)$/{ s//\1/; q; }
17796
          /^X\(\/\).*/{ s//\1/; q; }
17797
          s/.*/./; q'`
17798
      { if $as_mkdir_p; then
17799
    mkdir -p "$ac_dir"
17800
  else
17801
    as_dir="$ac_dir"
17802
    as_dirs=
17803
    while test ! -d "$as_dir"; do
17804
      as_dirs="$as_dir $as_dirs"
17805
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17806
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17807
         X"$as_dir" : 'X\(//\)[^/]' \| \
17808
         X"$as_dir" : 'X\(//\)$' \| \
17809
         X"$as_dir" : 'X\(/\)' \| \
17810
         .     : '\(.\)' 2>/dev/null ||
17811
echo X"$as_dir" |
17812
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17813
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17814
          /^X\(\/\/\)$/{ s//\1/; q; }
17815
          /^X\(\/\).*/{ s//\1/; q; }
17816
          s/.*/./; q'`
17817
    done
17818
    test ! -n "$as_dirs" || mkdir $as_dirs
17819
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17820
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17821
   { (exit 1); exit 1; }; }; }
17822
 
17823
      rm -f $ac_file
17824
      mv $tmp/config.h $ac_file
17825
    fi
17826
  else
17827
    cat $tmp/config.h
17828
    rm -f $tmp/config.h
17829
  fi
17830
done
17831
_ACEOF
17832
cat >>$CONFIG_STATUS <<\_ACEOF
17833
 
17834
#
17835
# CONFIG_COMMANDS section.
17836
#
17837
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17838
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17839
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17840
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17841
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17842
         X"$ac_dest" : 'X\(//\)[^/]' \| \
17843
         X"$ac_dest" : 'X\(//\)$' \| \
17844
         X"$ac_dest" : 'X\(/\)' \| \
17845
         .     : '\(.\)' 2>/dev/null ||
17846
echo X"$ac_dest" |
17847
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17848
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17849
          /^X\(\/\/\)$/{ s//\1/; q; }
17850
          /^X\(\/\).*/{ s//\1/; q; }
17851
          s/.*/./; q'`
17852
  { if $as_mkdir_p; then
17853
    mkdir -p "$ac_dir"
17854
  else
17855
    as_dir="$ac_dir"
17856
    as_dirs=
17857
    while test ! -d "$as_dir"; do
17858
      as_dirs="$as_dir $as_dirs"
17859
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17860
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17861
         X"$as_dir" : 'X\(//\)[^/]' \| \
17862
         X"$as_dir" : 'X\(//\)$' \| \
17863
         X"$as_dir" : 'X\(/\)' \| \
17864
         .     : '\(.\)' 2>/dev/null ||
17865
echo X"$as_dir" |
17866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17868
          /^X\(\/\/\)$/{ s//\1/; q; }
17869
          /^X\(\/\).*/{ s//\1/; q; }
17870
          s/.*/./; q'`
17871
    done
17872
    test ! -n "$as_dirs" || mkdir $as_dirs
17873
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17874
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17875
   { (exit 1); exit 1; }; }; }
17876
 
17877
  ac_builddir=.
17878
 
17879
if test "$ac_dir" != .; then
17880
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17881
  # A "../" for each directory in $ac_dir_suffix.
17882
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17883
else
17884
  ac_dir_suffix= ac_top_builddir=
17885
fi
17886
 
17887
case $srcdir in
17888
  .)  # No --srcdir option.  We are building in place.
17889
    ac_srcdir=.
17890
    if test -z "$ac_top_builddir"; then
17891
       ac_top_srcdir=.
17892
    else
17893
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17894
    fi ;;
17895
  [\\/]* | ?:[\\/]* )  # Absolute path.
17896
    ac_srcdir=$srcdir$ac_dir_suffix;
17897
    ac_top_srcdir=$srcdir ;;
17898
  *) # Relative path.
17899
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17900
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
17901
esac
17902
 
17903
# Do not use `cd foo && pwd` to compute absolute paths, because
17904
# the directories may not exist.
17905
case `pwd` in
17906
.) ac_abs_builddir="$ac_dir";;
17907
*)
17908
  case "$ac_dir" in
17909
  .) ac_abs_builddir=`pwd`;;
17910
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17911
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
17912
  esac;;
17913
esac
17914
case $ac_abs_builddir in
17915
.) ac_abs_top_builddir=${ac_top_builddir}.;;
17916
*)
17917
  case ${ac_top_builddir}. in
17918
  .) ac_abs_top_builddir=$ac_abs_builddir;;
17919
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17920
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17921
  esac;;
17922
esac
17923
case $ac_abs_builddir in
17924
.) ac_abs_srcdir=$ac_srcdir;;
17925
*)
17926
  case $ac_srcdir in
17927
  .) ac_abs_srcdir=$ac_abs_builddir;;
17928
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17929
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17930
  esac;;
17931
esac
17932
case $ac_abs_builddir in
17933
.) ac_abs_top_srcdir=$ac_top_srcdir;;
17934
*)
17935
  case $ac_top_srcdir in
17936
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
17937
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17938
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17939
  esac;;
17940
esac
17941
 
17942
 
17943
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17944
echo "$as_me: executing $ac_dest commands" >&6;}
17945
  case $ac_dest in
17946
    default )
17947
case ${CONFIG_HEADERS} in
17948
  *auto-host.h:config.in*)
17949
  echo > cstamp-h ;;
17950
esac
17951
# Make sure all the subdirs exist.
17952
for d in $subdirs doc build
17953
do
17954
    test -d $d || mkdir $d
17955
done
17956
# If the host supports symlinks, point stage[1234] at ../stage[1234] so
17957
# bootstrapping and the installation procedure can still use
17958
# CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17959
# FLAGS_TO_PASS has been modified to solve the problem there.
17960
# This is virtually a duplicate of what happens in configure.lang; we do
17961
# an extra check to make sure this only happens if ln -s can be used.
17962
case "$LN_S" in
17963
  *-s*)
17964
    for d in ${subdirs} ; do
17965
        STARTDIR=`${PWDCMD-pwd}`
17966
        cd $d
17967
        for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17968
        do
17969
                rm -f $t
17970
                $LN_S ../$t $t 2>/dev/null
17971
        done
17972
        cd $STARTDIR
17973
    done
17974
  ;;
17975
esac
17976
 ;;
17977
  esac
17978
done
17979
_ACEOF
17980
 
17981
cat >>$CONFIG_STATUS <<\_ACEOF
17982
 
17983
{ (exit 0); exit 0; }
17984
_ACEOF
17985
chmod +x $CONFIG_STATUS
17986
ac_clean_files=$ac_clean_files_save
17987
 
17988
 
17989
# configure is writing to config.log, and then calls config.status.
17990
# config.status does its own redirection, appending to config.log.
17991
# Unfortunately, on DOS this fails, as config.log is still kept open
17992
# by configure, so config.status won't be able to write to it; its
17993
# output is simply discarded.  So we exec the FD to /dev/null,
17994
# effectively closing config.log, so it can be properly (re)opened and
17995
# appended to by config.status.  When coming back to configure, we
17996
# need to make the FD available again.
17997
if test "$no_create" != yes; then
17998
  ac_cs_success=:
17999
  ac_config_status_args=
18000
  test "$silent" = yes &&
18001
    ac_config_status_args="$ac_config_status_args --quiet"
18002
  exec 5>/dev/null
18003
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18004
  exec 5>>config.log
18005
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18006
  # would make configure fail if this is the last instruction.
18007
  $ac_cs_success || { (exit 1); exit 1; }
18008
fi
18009
 

powered by: WebSVN 2.1.0

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