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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [bfd/] [configure] - Blame information for rev 831

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

Line No. Rev Author Line
1 38 julius
#! /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
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME=
418
PACKAGE_TARNAME=
419
PACKAGE_VERSION=
420
PACKAGE_STRING=
421
PACKAGE_BUGREPORT=
422
 
423
ac_unique_file="libbfd.c"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462
ac_subst_files=''
463
 
464
# Initialize some variables set by options.
465
ac_init_help=
466
ac_init_version=false
467
# The variables have the same names as the options, with
468
# dashes changed to underlines.
469
cache_file=/dev/null
470
exec_prefix=NONE
471
no_create=
472
no_recursion=
473
prefix=NONE
474
program_prefix=NONE
475
program_suffix=NONE
476
program_transform_name=s,x,x,
477
silent=
478
site=
479
srcdir=
480
verbose=
481
x_includes=NONE
482
x_libraries=NONE
483
 
484
# Installation directory options.
485
# These are left unexpanded so users can "make install exec_prefix=/foo"
486
# and all the variables that are supposed to be based on exec_prefix
487
# by default will actually change.
488
# Use braces instead of parens because sh, perl, etc. also accept them.
489
bindir='${exec_prefix}/bin'
490
sbindir='${exec_prefix}/sbin'
491
libexecdir='${exec_prefix}/libexec'
492
datadir='${prefix}/share'
493
sysconfdir='${prefix}/etc'
494
sharedstatedir='${prefix}/com'
495
localstatedir='${prefix}/var'
496
libdir='${exec_prefix}/lib'
497
includedir='${prefix}/include'
498
oldincludedir='/usr/include'
499
infodir='${prefix}/info'
500
mandir='${prefix}/man'
501
 
502
ac_prev=
503
for ac_option
504
do
505
  # If the previous option needs an argument, assign it.
506
  if test -n "$ac_prev"; then
507
    eval "$ac_prev=\$ac_option"
508
    ac_prev=
509
    continue
510
  fi
511
 
512
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
 
514
  # Accept the important Cygnus configure options, so we can diagnose typos.
515
 
516
  case $ac_option in
517
 
518
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519
    ac_prev=bindir ;;
520
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521
    bindir=$ac_optarg ;;
522
 
523
  -build | --build | --buil | --bui | --bu)
524
    ac_prev=build_alias ;;
525
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526
    build_alias=$ac_optarg ;;
527
 
528
  -cache-file | --cache-file | --cache-fil | --cache-fi \
529
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530
    ac_prev=cache_file ;;
531
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533
    cache_file=$ac_optarg ;;
534
 
535
  --config-cache | -C)
536
    cache_file=config.cache ;;
537
 
538
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539
    ac_prev=datadir ;;
540
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541
  | --da=*)
542
    datadir=$ac_optarg ;;
543
 
544
  -disable-* | --disable-*)
545
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546
    # Reject names that are not valid shell variable names.
547
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549
   { (exit 1); exit 1; }; }
550
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551
    eval "enable_$ac_feature=no" ;;
552
 
553
  -enable-* | --enable-*)
554
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555
    # Reject names that are not valid shell variable names.
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
   { (exit 1); exit 1; }; }
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
    case $ac_option in
561
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562
      *) ac_optarg=yes ;;
563
    esac
564
    eval "enable_$ac_feature='$ac_optarg'" ;;
565
 
566
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568
  | --exec | --exe | --ex)
569
    ac_prev=exec_prefix ;;
570
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572
  | --exec=* | --exe=* | --ex=*)
573
    exec_prefix=$ac_optarg ;;
574
 
575
  -gas | --gas | --ga | --g)
576
    # Obsolete; use --with-gas.
577
    with_gas=yes ;;
578
 
579
  -help | --help | --hel | --he | -h)
580
    ac_init_help=long ;;
581
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582
    ac_init_help=recursive ;;
583
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584
    ac_init_help=short ;;
585
 
586
  -host | --host | --hos | --ho)
587
    ac_prev=host_alias ;;
588
  -host=* | --host=* | --hos=* | --ho=*)
589
    host_alias=$ac_optarg ;;
590
 
591
  -includedir | --includedir | --includedi | --included | --include \
592
  | --includ | --inclu | --incl | --inc)
593
    ac_prev=includedir ;;
594
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595
  | --includ=* | --inclu=* | --incl=* | --inc=*)
596
    includedir=$ac_optarg ;;
597
 
598
  -infodir | --infodir | --infodi | --infod | --info | --inf)
599
    ac_prev=infodir ;;
600
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601
    infodir=$ac_optarg ;;
602
 
603
  -libdir | --libdir | --libdi | --libd)
604
    ac_prev=libdir ;;
605
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606
    libdir=$ac_optarg ;;
607
 
608
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609
  | --libexe | --libex | --libe)
610
    ac_prev=libexecdir ;;
611
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612
  | --libexe=* | --libex=* | --libe=*)
613
    libexecdir=$ac_optarg ;;
614
 
615
  -localstatedir | --localstatedir | --localstatedi | --localstated \
616
  | --localstate | --localstat | --localsta | --localst \
617
  | --locals | --local | --loca | --loc | --lo)
618
    ac_prev=localstatedir ;;
619
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622
    localstatedir=$ac_optarg ;;
623
 
624
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625
    ac_prev=mandir ;;
626
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
    mandir=$ac_optarg ;;
628
 
629
  -nfp | --nfp | --nf)
630
    # Obsolete; use --without-fp.
631
    with_fp=no ;;
632
 
633
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634
  | --no-cr | --no-c | -n)
635
    no_create=yes ;;
636
 
637
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639
    no_recursion=yes ;;
640
 
641
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643
  | --oldin | --oldi | --old | --ol | --o)
644
    ac_prev=oldincludedir ;;
645
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648
    oldincludedir=$ac_optarg ;;
649
 
650
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651
    ac_prev=prefix ;;
652
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653
    prefix=$ac_optarg ;;
654
 
655
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656
  | --program-pre | --program-pr | --program-p)
657
    ac_prev=program_prefix ;;
658
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660
    program_prefix=$ac_optarg ;;
661
 
662
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663
  | --program-suf | --program-su | --program-s)
664
    ac_prev=program_suffix ;;
665
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667
    program_suffix=$ac_optarg ;;
668
 
669
  -program-transform-name | --program-transform-name \
670
  | --program-transform-nam | --program-transform-na \
671
  | --program-transform-n | --program-transform- \
672
  | --program-transform | --program-transfor \
673
  | --program-transfo | --program-transf \
674
  | --program-trans | --program-tran \
675
  | --progr-tra | --program-tr | --program-t)
676
    ac_prev=program_transform_name ;;
677
  -program-transform-name=* | --program-transform-name=* \
678
  | --program-transform-nam=* | --program-transform-na=* \
679
  | --program-transform-n=* | --program-transform-=* \
680
  | --program-transform=* | --program-transfor=* \
681
  | --program-transfo=* | --program-transf=* \
682
  | --program-trans=* | --program-tran=* \
683
  | --progr-tra=* | --program-tr=* | --program-t=*)
684
    program_transform_name=$ac_optarg ;;
685
 
686
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687
  | -silent | --silent | --silen | --sile | --sil)
688
    silent=yes ;;
689
 
690
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691
    ac_prev=sbindir ;;
692
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693
  | --sbi=* | --sb=*)
694
    sbindir=$ac_optarg ;;
695
 
696
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698
  | --sharedst | --shareds | --shared | --share | --shar \
699
  | --sha | --sh)
700
    ac_prev=sharedstatedir ;;
701
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704
  | --sha=* | --sh=*)
705
    sharedstatedir=$ac_optarg ;;
706
 
707
  -site | --site | --sit)
708
    ac_prev=site ;;
709
  -site=* | --site=* | --sit=*)
710
    site=$ac_optarg ;;
711
 
712
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713
    ac_prev=srcdir ;;
714
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715
    srcdir=$ac_optarg ;;
716
 
717
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718
  | --syscon | --sysco | --sysc | --sys | --sy)
719
    ac_prev=sysconfdir ;;
720
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722
    sysconfdir=$ac_optarg ;;
723
 
724
  -target | --target | --targe | --targ | --tar | --ta | --t)
725
    ac_prev=target_alias ;;
726
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727
    target_alias=$ac_optarg ;;
728
 
729
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730
    verbose=yes ;;
731
 
732
  -version | --version | --versio | --versi | --vers | -V)
733
    ac_init_version=: ;;
734
 
735
  -with-* | --with-*)
736
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737
    # Reject names that are not valid shell variable names.
738
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739
      { echo "$as_me: error: invalid package name: $ac_package" >&2
740
   { (exit 1); exit 1; }; }
741
    ac_package=`echo $ac_package| sed 's/-/_/g'`
742
    case $ac_option in
743
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744
      *) ac_optarg=yes ;;
745
    esac
746
    eval "with_$ac_package='$ac_optarg'" ;;
747
 
748
  -without-* | --without-*)
749
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750
    # Reject names that are not valid shell variable names.
751
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752
      { echo "$as_me: error: invalid package name: $ac_package" >&2
753
   { (exit 1); exit 1; }; }
754
    ac_package=`echo $ac_package | sed 's/-/_/g'`
755
    eval "with_$ac_package=no" ;;
756
 
757
  --x)
758
    # Obsolete; use --with-x.
759
    with_x=yes ;;
760
 
761
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762
  | --x-incl | --x-inc | --x-in | --x-i)
763
    ac_prev=x_includes ;;
764
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766
    x_includes=$ac_optarg ;;
767
 
768
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770
    ac_prev=x_libraries ;;
771
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773
    x_libraries=$ac_optarg ;;
774
 
775
  -*) { echo "$as_me: error: unrecognized option: $ac_option
776
Try \`$0 --help' for more information." >&2
777
   { (exit 1); exit 1; }; }
778
    ;;
779
 
780
  *=*)
781
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782
    # Reject names that are not valid shell variable names.
783
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785
   { (exit 1); exit 1; }; }
786
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787
    eval "$ac_envvar='$ac_optarg'"
788
    export $ac_envvar ;;
789
 
790
  *)
791
    # FIXME: should be removed in autoconf 3.0.
792
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796
    ;;
797
 
798
  esac
799
done
800
 
801
if test -n "$ac_prev"; then
802
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803
  { echo "$as_me: error: missing argument to $ac_option" >&2
804
   { (exit 1); exit 1; }; }
805
fi
806
 
807
# Be sure to have absolute paths.
808
for ac_var in exec_prefix prefix
809
do
810
  eval ac_val=$`echo $ac_var`
811
  case $ac_val in
812
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814
   { (exit 1); exit 1; }; };;
815
  esac
816
done
817
 
818
# Be sure to have absolute paths.
819
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
              localstatedir libdir includedir oldincludedir infodir mandir
821
do
822
  eval ac_val=$`echo $ac_var`
823
  case $ac_val in
824
    [\\/$]* | ?:[\\/]* ) ;;
825
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
   { (exit 1); exit 1; }; };;
827
  esac
828
done
829
 
830
# There might be people who depend on the old broken behavior: `$host'
831
# used to hold the argument of --host etc.
832
# FIXME: To remove some day.
833
build=$build_alias
834
host=$host_alias
835
target=$target_alias
836
 
837
# FIXME: To remove some day.
838
if test "x$host_alias" != x; then
839
  if test "x$build_alias" = x; then
840
    cross_compiling=maybe
841
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842
    If a cross compiler is detected then cross compile mode will be used." >&2
843
  elif test "x$build_alias" != "x$host_alias"; then
844
    cross_compiling=yes
845
  fi
846
fi
847
 
848
ac_tool_prefix=
849
test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
 
851
test "$silent" = yes && exec 6>/dev/null
852
 
853
 
854
# Find the source files, if location was not specified.
855
if test -z "$srcdir"; then
856
  ac_srcdir_defaulted=yes
857
  # Try the directory containing this script, then its parent.
858
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
         X"$0" : 'X\(//\)[^/]' \| \
861
         X"$0" : 'X\(//\)$' \| \
862
         X"$0" : 'X\(/\)' \| \
863
         .     : '\(.\)' 2>/dev/null ||
864
echo X"$0" |
865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867
          /^X\(\/\/\)$/{ s//\1/; q; }
868
          /^X\(\/\).*/{ s//\1/; q; }
869
          s/.*/./; q'`
870
  srcdir=$ac_confdir
871
  if test ! -r $srcdir/$ac_unique_file; then
872
    srcdir=..
873
  fi
874
else
875
  ac_srcdir_defaulted=no
876
fi
877
if test ! -r $srcdir/$ac_unique_file; then
878
  if test "$ac_srcdir_defaulted" = yes; then
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880
   { (exit 1); exit 1; }; }
881
  else
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883
   { (exit 1); exit 1; }; }
884
  fi
885
fi
886
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888
   { (exit 1); exit 1; }; }
889
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890
ac_env_build_alias_set=${build_alias+set}
891
ac_env_build_alias_value=$build_alias
892
ac_cv_env_build_alias_set=${build_alias+set}
893
ac_cv_env_build_alias_value=$build_alias
894
ac_env_host_alias_set=${host_alias+set}
895
ac_env_host_alias_value=$host_alias
896
ac_cv_env_host_alias_set=${host_alias+set}
897
ac_cv_env_host_alias_value=$host_alias
898
ac_env_target_alias_set=${target_alias+set}
899
ac_env_target_alias_value=$target_alias
900
ac_cv_env_target_alias_set=${target_alias+set}
901
ac_cv_env_target_alias_value=$target_alias
902
ac_env_CC_set=${CC+set}
903
ac_env_CC_value=$CC
904
ac_cv_env_CC_set=${CC+set}
905
ac_cv_env_CC_value=$CC
906
ac_env_CFLAGS_set=${CFLAGS+set}
907
ac_env_CFLAGS_value=$CFLAGS
908
ac_cv_env_CFLAGS_set=${CFLAGS+set}
909
ac_cv_env_CFLAGS_value=$CFLAGS
910
ac_env_LDFLAGS_set=${LDFLAGS+set}
911
ac_env_LDFLAGS_value=$LDFLAGS
912
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913
ac_cv_env_LDFLAGS_value=$LDFLAGS
914
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915
ac_env_CPPFLAGS_value=$CPPFLAGS
916
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918
ac_env_CPP_set=${CPP+set}
919
ac_env_CPP_value=$CPP
920
ac_cv_env_CPP_set=${CPP+set}
921
ac_cv_env_CPP_value=$CPP
922
 
923
#
924
# Report the --help message.
925
#
926
if test "$ac_init_help" = "long"; then
927
  # Omit some internal or obsolete options to make the list less imposing.
928
  # This message is too long to be a string in the A/UX 3.1 sh.
929
  cat <<_ACEOF
930
\`configure' configures this package to adapt to many kinds of systems.
931
 
932
Usage: $0 [OPTION]... [VAR=VALUE]...
933
 
934
To assign environment variables (e.g., CC, CFLAGS...), specify them as
935
VAR=VALUE.  See below for descriptions of some of the useful variables.
936
 
937
Defaults for the options are specified in brackets.
938
 
939
Configuration:
940
  -h, --help              display this help and exit
941
      --help=short        display options specific to this package
942
      --help=recursive    display the short help of all the included packages
943
  -V, --version           display version information and exit
944
  -q, --quiet, --silent   do not print \`checking...' messages
945
      --cache-file=FILE   cache test results in FILE [disabled]
946
  -C, --config-cache      alias for \`--cache-file=config.cache'
947
  -n, --no-create         do not create output files
948
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
 
950
_ACEOF
951
 
952
  cat <<_ACEOF
953
Installation directories:
954
  --prefix=PREFIX         install architecture-independent files in PREFIX
955
                          [$ac_default_prefix]
956
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957
                          [PREFIX]
958
 
959
By default, \`make install' will install all the files in
960
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962
for instance \`--prefix=\$HOME'.
963
 
964
For better control, use the options below.
965
 
966
Fine tuning of the installation directories:
967
  --bindir=DIR           user executables [EPREFIX/bin]
968
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969
  --libexecdir=DIR       program executables [EPREFIX/libexec]
970
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974
  --libdir=DIR           object code libraries [EPREFIX/lib]
975
  --includedir=DIR       C header files [PREFIX/include]
976
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977
  --infodir=DIR          info documentation [PREFIX/info]
978
  --mandir=DIR           man documentation [PREFIX/man]
979
_ACEOF
980
 
981
  cat <<\_ACEOF
982
 
983
Program names:
984
  --program-prefix=PREFIX            prepend PREFIX to installed program names
985
  --program-suffix=SUFFIX            append SUFFIX to installed program names
986
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
 
988
System types:
989
  --build=BUILD     configure for building on BUILD [guessed]
990
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991
  --target=TARGET   configure for building compilers for TARGET [HOST]
992
_ACEOF
993
fi
994
 
995
if test -n "$ac_init_help"; then
996
 
997
  cat <<\_ACEOF
998
 
999
Optional Features:
1000
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002
  --disable-dependency-tracking  speeds up one-time build
1003
  --enable-dependency-tracking   do not reject slow dependency extractors
1004
  --enable-shared[=PKGS]
1005
                          build shared libraries [default=no]
1006
  --enable-static[=PKGS]
1007
                          build static libraries [default=yes]
1008
  --enable-fast-install[=PKGS]
1009
                          optimize for fast installation [default=yes]
1010
  --disable-libtool-lock  avoid locking (might break parallel builds)
1011
  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1012
  --enable-targets        alternative target configurations
1013
  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014
  --enable-secureplt      Default to creating read-only plt entries
1015
  --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1016
  --enable-werror         treat compile warnings as errors
1017
  --enable-build-warnings enable build-time compiler warnings
1018
  --enable-maintainer-mode  enable make rules and dependencies not useful
1019
                          (and sometimes confusing) to the casual installer
1020
  --enable-install-libbfd controls installation of libbfd and related headers
1021
  --disable-nls           do not use Native Language Support
1022
 
1023
Optional Packages:
1024
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1025
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1026
  --with-pic              try to use only PIC/non-PIC objects [default=use
1027
                          both]
1028
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1029
  --with-mmap             try using mmap for BFD input files if available
1030
  --with-separate-debug-dir=DIR
1031
                          Look for global separate debug info in DIR
1032
                          [default=LIBDIR/debug]
1033
  --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1034
                          Binutils"
1035
  --with-bugurl=URL       Direct users to URL to report a bug
1036
 
1037
Some influential environment variables:
1038
  CC          C compiler command
1039
  CFLAGS      C compiler flags
1040
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1041
              nonstandard directory 
1042
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1043
              headers in a nonstandard directory 
1044
  CPP         C preprocessor
1045
 
1046
Use these variables to override the choices made by `configure' or to help
1047
it to find libraries and programs with nonstandard names/locations.
1048
 
1049
_ACEOF
1050
fi
1051
 
1052
if test "$ac_init_help" = "recursive"; then
1053
  # If there are subdirs, report their specific --help.
1054
  ac_popdir=`pwd`
1055
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1056
    test -d $ac_dir || continue
1057
    ac_builddir=.
1058
 
1059
if test "$ac_dir" != .; then
1060
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1061
  # A "../" for each directory in $ac_dir_suffix.
1062
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063
else
1064
  ac_dir_suffix= ac_top_builddir=
1065
fi
1066
 
1067
case $srcdir in
1068
  .)  # No --srcdir option.  We are building in place.
1069
    ac_srcdir=.
1070
    if test -z "$ac_top_builddir"; then
1071
       ac_top_srcdir=.
1072
    else
1073
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074
    fi ;;
1075
  [\\/]* | ?:[\\/]* )  # Absolute path.
1076
    ac_srcdir=$srcdir$ac_dir_suffix;
1077
    ac_top_srcdir=$srcdir ;;
1078
  *) # Relative path.
1079
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1080
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081
esac
1082
 
1083
# Do not use `cd foo && pwd` to compute absolute paths, because
1084
# the directories may not exist.
1085
case `pwd` in
1086
.) ac_abs_builddir="$ac_dir";;
1087
*)
1088
  case "$ac_dir" in
1089
  .) ac_abs_builddir=`pwd`;;
1090
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1091
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092
  esac;;
1093
esac
1094
case $ac_abs_builddir in
1095
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1096
*)
1097
  case ${ac_top_builddir}. in
1098
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1099
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1100
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101
  esac;;
1102
esac
1103
case $ac_abs_builddir in
1104
.) ac_abs_srcdir=$ac_srcdir;;
1105
*)
1106
  case $ac_srcdir in
1107
  .) ac_abs_srcdir=$ac_abs_builddir;;
1108
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1109
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110
  esac;;
1111
esac
1112
case $ac_abs_builddir in
1113
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1114
*)
1115
  case $ac_top_srcdir in
1116
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1117
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1118
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1119
  esac;;
1120
esac
1121
 
1122
    cd $ac_dir
1123
    # Check for guested configure; otherwise get Cygnus style configure.
1124
    if test -f $ac_srcdir/configure.gnu; then
1125
      echo
1126
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1127
    elif test -f $ac_srcdir/configure; then
1128
      echo
1129
      $SHELL $ac_srcdir/configure  --help=recursive
1130
    elif test -f $ac_srcdir/configure.ac ||
1131
           test -f $ac_srcdir/configure.in; then
1132
      echo
1133
      $ac_configure --help
1134
    else
1135
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1136
    fi
1137
    cd $ac_popdir
1138
  done
1139
fi
1140
 
1141
test -n "$ac_init_help" && exit 0
1142
if $ac_init_version; then
1143
  cat <<\_ACEOF
1144
 
1145
Copyright (C) 2003 Free Software Foundation, Inc.
1146
This configure script is free software; the Free Software Foundation
1147
gives unlimited permission to copy, distribute and modify it.
1148
_ACEOF
1149
  exit 0
1150
fi
1151
exec 5>config.log
1152
cat >&5 <<_ACEOF
1153
This file contains any messages produced by compilers while
1154
running configure, to aid debugging if configure makes a mistake.
1155
 
1156
It was created by $as_me, which was
1157
generated by GNU Autoconf 2.59.  Invocation command line was
1158
 
1159
  $ $0 $@
1160
 
1161
_ACEOF
1162
{
1163
cat <<_ASUNAME
1164
## --------- ##
1165
## Platform. ##
1166
## --------- ##
1167
 
1168
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1169
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1170
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1171
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1172
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173
 
1174
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1175
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1176
 
1177
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1178
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1179
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1180
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1181
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1182
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1183
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1184
 
1185
_ASUNAME
1186
 
1187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1188
for as_dir in $PATH
1189
do
1190
  IFS=$as_save_IFS
1191
  test -z "$as_dir" && as_dir=.
1192
  echo "PATH: $as_dir"
1193
done
1194
 
1195
} >&5
1196
 
1197
cat >&5 <<_ACEOF
1198
 
1199
 
1200
## ----------- ##
1201
## Core tests. ##
1202
## ----------- ##
1203
 
1204
_ACEOF
1205
 
1206
 
1207
# Keep a trace of the command line.
1208
# Strip out --no-create and --no-recursion so they do not pile up.
1209
# Strip out --silent because we don't want to record it for future runs.
1210
# Also quote any args containing shell meta-characters.
1211
# Make two passes to allow for proper duplicate-argument suppression.
1212
ac_configure_args=
1213
ac_configure_args0=
1214
ac_configure_args1=
1215
ac_sep=
1216
ac_must_keep_next=false
1217
for ac_pass in 1 2
1218
do
1219
  for ac_arg
1220
  do
1221
    case $ac_arg in
1222
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1223
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224
    | -silent | --silent | --silen | --sile | --sil)
1225
      continue ;;
1226
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1227
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228
    esac
1229
    case $ac_pass in
1230
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231
    2)
1232
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1233
      if test $ac_must_keep_next = true; then
1234
        ac_must_keep_next=false # Got value, back to normal.
1235
      else
1236
        case $ac_arg in
1237
          *=* | --config-cache | -C | -disable-* | --disable-* \
1238
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1239
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1240
          | -with-* | --with-* | -without-* | --without-* | --x)
1241
            case "$ac_configure_args0 " in
1242
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243
            esac
1244
            ;;
1245
          -* ) ac_must_keep_next=true ;;
1246
        esac
1247
      fi
1248
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1249
      # Get rid of the leading space.
1250
      ac_sep=" "
1251
      ;;
1252
    esac
1253
  done
1254
done
1255
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1256
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257
 
1258
# When interrupted or exit'd, cleanup temporary files, and complete
1259
# config.log.  We remove comments because anyway the quotes in there
1260
# would cause problems or look ugly.
1261
# WARNING: Be sure not to use single quotes in there, as some shells,
1262
# such as our DU 5.0 friend, will then `close' the trap.
1263
trap 'exit_status=$?
1264
  # Save into config.log some information that might help in debugging.
1265
  {
1266
    echo
1267
 
1268
    cat <<\_ASBOX
1269
## ---------------- ##
1270
## Cache variables. ##
1271
## ---------------- ##
1272
_ASBOX
1273
    echo
1274
    # The following way of writing the cache mishandles newlines in values,
1275
{
1276
  (set) 2>&1 |
1277
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278
    *ac_space=\ *)
1279
      sed -n \
1280
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1281
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1282
      ;;
1283
    *)
1284
      sed -n \
1285
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286
      ;;
1287
    esac;
1288
}
1289
    echo
1290
 
1291
    cat <<\_ASBOX
1292
## ----------------- ##
1293
## Output variables. ##
1294
## ----------------- ##
1295
_ASBOX
1296
    echo
1297
    for ac_var in $ac_subst_vars
1298
    do
1299
      eval ac_val=$`echo $ac_var`
1300
      echo "$ac_var='"'"'$ac_val'"'"'"
1301
    done | sort
1302
    echo
1303
 
1304
    if test -n "$ac_subst_files"; then
1305
      cat <<\_ASBOX
1306
## ------------- ##
1307
## Output files. ##
1308
## ------------- ##
1309
_ASBOX
1310
      echo
1311
      for ac_var in $ac_subst_files
1312
      do
1313
        eval ac_val=$`echo $ac_var`
1314
        echo "$ac_var='"'"'$ac_val'"'"'"
1315
      done | sort
1316
      echo
1317
    fi
1318
 
1319
    if test -s confdefs.h; then
1320
      cat <<\_ASBOX
1321
## ----------- ##
1322
## confdefs.h. ##
1323
## ----------- ##
1324
_ASBOX
1325
      echo
1326
      sed "/^$/d" confdefs.h | sort
1327
      echo
1328
    fi
1329
    test "$ac_signal" != 0 &&
1330
      echo "$as_me: caught signal $ac_signal"
1331
    echo "$as_me: exit $exit_status"
1332
  } >&5
1333
  rm -f core *.core &&
1334
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335
    exit $exit_status
1336
     ' 0
1337
for ac_signal in 1 2 13 15; do
1338
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1339
done
1340
ac_signal=0
1341
 
1342
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1343
rm -rf conftest* confdefs.h
1344
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345
echo >confdefs.h
1346
 
1347
# Predefined preprocessor variables.
1348
 
1349
cat >>confdefs.h <<_ACEOF
1350
#define PACKAGE_NAME "$PACKAGE_NAME"
1351
_ACEOF
1352
 
1353
 
1354
cat >>confdefs.h <<_ACEOF
1355
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1356
_ACEOF
1357
 
1358
 
1359
cat >>confdefs.h <<_ACEOF
1360
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1361
_ACEOF
1362
 
1363
 
1364
cat >>confdefs.h <<_ACEOF
1365
#define PACKAGE_STRING "$PACKAGE_STRING"
1366
_ACEOF
1367
 
1368
 
1369
cat >>confdefs.h <<_ACEOF
1370
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1371
_ACEOF
1372
 
1373
 
1374
# Let the site file select an alternate cache file if it wants to.
1375
# Prefer explicitly selected file to automatically selected ones.
1376
if test -z "$CONFIG_SITE"; then
1377
  if test "x$prefix" != xNONE; then
1378
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379
  else
1380
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381
  fi
1382
fi
1383
for ac_site_file in $CONFIG_SITE; do
1384
  if test -r "$ac_site_file"; then
1385
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1386
echo "$as_me: loading site script $ac_site_file" >&6;}
1387
    sed 's/^/| /' "$ac_site_file" >&5
1388
    . "$ac_site_file"
1389
  fi
1390
done
1391
 
1392
if test -r "$cache_file"; then
1393
  # Some versions of bash will fail to source /dev/null (special
1394
  # files actually), so we avoid doing that.
1395
  if test -f "$cache_file"; then
1396
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1397
echo "$as_me: loading cache $cache_file" >&6;}
1398
    case $cache_file in
1399
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1400
      *)                      . ./$cache_file;;
1401
    esac
1402
  fi
1403
else
1404
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1405
echo "$as_me: creating cache $cache_file" >&6;}
1406
  >$cache_file
1407
fi
1408
 
1409
# Check that the precious variables saved in the cache have kept the same
1410
# value.
1411
ac_cache_corrupted=false
1412
for ac_var in `(set) 2>&1 |
1413
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1414
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1415
  eval ac_new_set=\$ac_env_${ac_var}_set
1416
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1417
  eval ac_new_val="\$ac_env_${ac_var}_value"
1418
  case $ac_old_set,$ac_new_set in
1419
    set,)
1420
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1421
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1422
      ac_cache_corrupted=: ;;
1423
    ,set)
1424
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1425
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1426
      ac_cache_corrupted=: ;;
1427
    ,);;
1428
    *)
1429
      if test "x$ac_old_val" != "x$ac_new_val"; then
1430
        # differences in whitespace do not lead to failure.
1431
        ac_old_val_w=`echo x $ac_old_val`
1432
        ac_new_val_w=`echo x $ac_new_val`
1433
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1434
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1435
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1436
          ac_cache_corrupted=:
1437
        else
1438
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1439
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1440
          eval $ac_var=\$ac_old_val
1441
        fi
1442
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1443
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1444
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1445
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1446
      fi;;
1447
  esac
1448
  # Pass precious variables to config.status.
1449
  if test "$ac_new_set" = set; then
1450
    case $ac_new_val in
1451
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1452
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1453
    *) ac_arg=$ac_var=$ac_new_val ;;
1454
    esac
1455
    case " $ac_configure_args " in
1456
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1457
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1458
    esac
1459
  fi
1460
done
1461
if $ac_cache_corrupted; then
1462
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1463
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1464
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1465
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1466
   { (exit 1); exit 1; }; }
1467
fi
1468
 
1469
ac_ext=c
1470
ac_cpp='$CPP $CPPFLAGS'
1471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
ac_aux_dir=
1496
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1497
  if test -f $ac_dir/install-sh; then
1498
    ac_aux_dir=$ac_dir
1499
    ac_install_sh="$ac_aux_dir/install-sh -c"
1500
    break
1501
  elif test -f $ac_dir/install.sh; then
1502
    ac_aux_dir=$ac_dir
1503
    ac_install_sh="$ac_aux_dir/install.sh -c"
1504
    break
1505
  elif test -f $ac_dir/shtool; then
1506
    ac_aux_dir=$ac_dir
1507
    ac_install_sh="$ac_aux_dir/shtool install -c"
1508
    break
1509
  fi
1510
done
1511
if test -z "$ac_aux_dir"; then
1512
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1513
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1514
   { (exit 1); exit 1; }; }
1515
fi
1516
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1517
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1518
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1519
 
1520
# Make sure we can run config.sub.
1521
$ac_config_sub sun4 >/dev/null 2>&1 ||
1522
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524
   { (exit 1); exit 1; }; }
1525
 
1526
echo "$as_me:$LINENO: checking build system type" >&5
1527
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528
if test "${ac_cv_build+set}" = set; then
1529
  echo $ECHO_N "(cached) $ECHO_C" >&6
1530
else
1531
  ac_cv_build_alias=$build_alias
1532
test -z "$ac_cv_build_alias" &&
1533
  ac_cv_build_alias=`$ac_config_guess`
1534
test -z "$ac_cv_build_alias" &&
1535
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537
   { (exit 1); exit 1; }; }
1538
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1539
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541
   { (exit 1); exit 1; }; }
1542
 
1543
fi
1544
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545
echo "${ECHO_T}$ac_cv_build" >&6
1546
build=$ac_cv_build
1547
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1550
 
1551
 
1552
echo "$as_me:$LINENO: checking host system type" >&5
1553
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554
if test "${ac_cv_host+set}" = set; then
1555
  echo $ECHO_N "(cached) $ECHO_C" >&6
1556
else
1557
  ac_cv_host_alias=$host_alias
1558
test -z "$ac_cv_host_alias" &&
1559
  ac_cv_host_alias=$ac_cv_build_alias
1560
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1561
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563
   { (exit 1); exit 1; }; }
1564
 
1565
fi
1566
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567
echo "${ECHO_T}$ac_cv_host" >&6
1568
host=$ac_cv_host
1569
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1572
 
1573
 
1574
echo "$as_me:$LINENO: checking target system type" >&5
1575
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1576
if test "${ac_cv_target+set}" = set; then
1577
  echo $ECHO_N "(cached) $ECHO_C" >&6
1578
else
1579
  ac_cv_target_alias=$target_alias
1580
test "x$ac_cv_target_alias" = "x" &&
1581
  ac_cv_target_alias=$ac_cv_host_alias
1582
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1583
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1584
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1585
   { (exit 1); exit 1; }; }
1586
 
1587
fi
1588
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1589
echo "${ECHO_T}$ac_cv_target" >&6
1590
target=$ac_cv_target
1591
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1592
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1593
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1594
 
1595
 
1596
# The aliases save the names the user supplied, while $host etc.
1597
# will get canonicalized.
1598
test -n "$target_alias" &&
1599
  test "$program_prefix$program_suffix$program_transform_name" = \
1600
    NONENONEs,x,x, &&
1601
  program_prefix=${target_alias}-
1602
ac_ext=c
1603
ac_cpp='$CPP $CPPFLAGS'
1604
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1605
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1606
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1607
if test -n "$ac_tool_prefix"; then
1608
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1609
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1610
echo "$as_me:$LINENO: checking for $ac_word" >&5
1611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612
if test "${ac_cv_prog_CC+set}" = set; then
1613
  echo $ECHO_N "(cached) $ECHO_C" >&6
1614
else
1615
  if test -n "$CC"; then
1616
  ac_cv_prog_CC="$CC" # Let the user override the test.
1617
else
1618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619
for as_dir in $PATH
1620
do
1621
  IFS=$as_save_IFS
1622
  test -z "$as_dir" && as_dir=.
1623
  for ac_exec_ext in '' $ac_executable_extensions; do
1624
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1626
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627
    break 2
1628
  fi
1629
done
1630
done
1631
 
1632
fi
1633
fi
1634
CC=$ac_cv_prog_CC
1635
if test -n "$CC"; then
1636
  echo "$as_me:$LINENO: result: $CC" >&5
1637
echo "${ECHO_T}$CC" >&6
1638
else
1639
  echo "$as_me:$LINENO: result: no" >&5
1640
echo "${ECHO_T}no" >&6
1641
fi
1642
 
1643
fi
1644
if test -z "$ac_cv_prog_CC"; then
1645
  ac_ct_CC=$CC
1646
  # Extract the first word of "gcc", so it can be a program name with args.
1647
set dummy gcc; ac_word=$2
1648
echo "$as_me:$LINENO: checking for $ac_word" >&5
1649
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651
  echo $ECHO_N "(cached) $ECHO_C" >&6
1652
else
1653
  if test -n "$ac_ct_CC"; then
1654
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655
else
1656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657
for as_dir in $PATH
1658
do
1659
  IFS=$as_save_IFS
1660
  test -z "$as_dir" && as_dir=.
1661
  for ac_exec_ext in '' $ac_executable_extensions; do
1662
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663
    ac_cv_prog_ac_ct_CC="gcc"
1664
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665
    break 2
1666
  fi
1667
done
1668
done
1669
 
1670
fi
1671
fi
1672
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673
if test -n "$ac_ct_CC"; then
1674
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675
echo "${ECHO_T}$ac_ct_CC" >&6
1676
else
1677
  echo "$as_me:$LINENO: result: no" >&5
1678
echo "${ECHO_T}no" >&6
1679
fi
1680
 
1681
  CC=$ac_ct_CC
1682
else
1683
  CC="$ac_cv_prog_CC"
1684
fi
1685
 
1686
if test -z "$CC"; then
1687
  if test -n "$ac_tool_prefix"; then
1688
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1689
set dummy ${ac_tool_prefix}cc; ac_word=$2
1690
echo "$as_me:$LINENO: checking for $ac_word" >&5
1691
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692
if test "${ac_cv_prog_CC+set}" = set; then
1693
  echo $ECHO_N "(cached) $ECHO_C" >&6
1694
else
1695
  if test -n "$CC"; then
1696
  ac_cv_prog_CC="$CC" # Let the user override the test.
1697
else
1698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699
for as_dir in $PATH
1700
do
1701
  IFS=$as_save_IFS
1702
  test -z "$as_dir" && as_dir=.
1703
  for ac_exec_ext in '' $ac_executable_extensions; do
1704
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1706
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707
    break 2
1708
  fi
1709
done
1710
done
1711
 
1712
fi
1713
fi
1714
CC=$ac_cv_prog_CC
1715
if test -n "$CC"; then
1716
  echo "$as_me:$LINENO: result: $CC" >&5
1717
echo "${ECHO_T}$CC" >&6
1718
else
1719
  echo "$as_me:$LINENO: result: no" >&5
1720
echo "${ECHO_T}no" >&6
1721
fi
1722
 
1723
fi
1724
if test -z "$ac_cv_prog_CC"; then
1725
  ac_ct_CC=$CC
1726
  # Extract the first word of "cc", so it can be a program name with args.
1727
set dummy cc; ac_word=$2
1728
echo "$as_me:$LINENO: checking for $ac_word" >&5
1729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1731
  echo $ECHO_N "(cached) $ECHO_C" >&6
1732
else
1733
  if test -n "$ac_ct_CC"; then
1734
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1735
else
1736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737
for as_dir in $PATH
1738
do
1739
  IFS=$as_save_IFS
1740
  test -z "$as_dir" && as_dir=.
1741
  for ac_exec_ext in '' $ac_executable_extensions; do
1742
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743
    ac_cv_prog_ac_ct_CC="cc"
1744
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745
    break 2
1746
  fi
1747
done
1748
done
1749
 
1750
fi
1751
fi
1752
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1753
if test -n "$ac_ct_CC"; then
1754
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1755
echo "${ECHO_T}$ac_ct_CC" >&6
1756
else
1757
  echo "$as_me:$LINENO: result: no" >&5
1758
echo "${ECHO_T}no" >&6
1759
fi
1760
 
1761
  CC=$ac_ct_CC
1762
else
1763
  CC="$ac_cv_prog_CC"
1764
fi
1765
 
1766
fi
1767
if test -z "$CC"; then
1768
  # Extract the first word of "cc", so it can be a program name with args.
1769
set dummy cc; ac_word=$2
1770
echo "$as_me:$LINENO: checking for $ac_word" >&5
1771
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772
if test "${ac_cv_prog_CC+set}" = set; then
1773
  echo $ECHO_N "(cached) $ECHO_C" >&6
1774
else
1775
  if test -n "$CC"; then
1776
  ac_cv_prog_CC="$CC" # Let the user override the test.
1777
else
1778
  ac_prog_rejected=no
1779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780
for as_dir in $PATH
1781
do
1782
  IFS=$as_save_IFS
1783
  test -z "$as_dir" && as_dir=.
1784
  for ac_exec_ext in '' $ac_executable_extensions; do
1785
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1787
       ac_prog_rejected=yes
1788
       continue
1789
     fi
1790
    ac_cv_prog_CC="cc"
1791
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792
    break 2
1793
  fi
1794
done
1795
done
1796
 
1797
if test $ac_prog_rejected = yes; then
1798
  # We found a bogon in the path, so make sure we never use it.
1799
  set dummy $ac_cv_prog_CC
1800
  shift
1801
  if test $# != 0; then
1802
    # We chose a different compiler from the bogus one.
1803
    # However, it has the same basename, so the bogon will be chosen
1804
    # first if we set CC to just the basename; use the full file name.
1805
    shift
1806
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1807
  fi
1808
fi
1809
fi
1810
fi
1811
CC=$ac_cv_prog_CC
1812
if test -n "$CC"; then
1813
  echo "$as_me:$LINENO: result: $CC" >&5
1814
echo "${ECHO_T}$CC" >&6
1815
else
1816
  echo "$as_me:$LINENO: result: no" >&5
1817
echo "${ECHO_T}no" >&6
1818
fi
1819
 
1820
fi
1821
if test -z "$CC"; then
1822
  if test -n "$ac_tool_prefix"; then
1823
  for ac_prog in cl
1824
  do
1825
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1826
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1827
echo "$as_me:$LINENO: checking for $ac_word" >&5
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829
if test "${ac_cv_prog_CC+set}" = set; then
1830
  echo $ECHO_N "(cached) $ECHO_C" >&6
1831
else
1832
  if test -n "$CC"; then
1833
  ac_cv_prog_CC="$CC" # Let the user override the test.
1834
else
1835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836
for as_dir in $PATH
1837
do
1838
  IFS=$as_save_IFS
1839
  test -z "$as_dir" && as_dir=.
1840
  for ac_exec_ext in '' $ac_executable_extensions; do
1841
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844
    break 2
1845
  fi
1846
done
1847
done
1848
 
1849
fi
1850
fi
1851
CC=$ac_cv_prog_CC
1852
if test -n "$CC"; then
1853
  echo "$as_me:$LINENO: result: $CC" >&5
1854
echo "${ECHO_T}$CC" >&6
1855
else
1856
  echo "$as_me:$LINENO: result: no" >&5
1857
echo "${ECHO_T}no" >&6
1858
fi
1859
 
1860
    test -n "$CC" && break
1861
  done
1862
fi
1863
if test -z "$CC"; then
1864
  ac_ct_CC=$CC
1865
  for ac_prog in cl
1866
do
1867
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1868
set dummy $ac_prog; ac_word=$2
1869
echo "$as_me:$LINENO: checking for $ac_word" >&5
1870
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872
  echo $ECHO_N "(cached) $ECHO_C" >&6
1873
else
1874
  if test -n "$ac_ct_CC"; then
1875
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1876
else
1877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878
for as_dir in $PATH
1879
do
1880
  IFS=$as_save_IFS
1881
  test -z "$as_dir" && as_dir=.
1882
  for ac_exec_ext in '' $ac_executable_extensions; do
1883
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884
    ac_cv_prog_ac_ct_CC="$ac_prog"
1885
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886
    break 2
1887
  fi
1888
done
1889
done
1890
 
1891
fi
1892
fi
1893
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894
if test -n "$ac_ct_CC"; then
1895
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896
echo "${ECHO_T}$ac_ct_CC" >&6
1897
else
1898
  echo "$as_me:$LINENO: result: no" >&5
1899
echo "${ECHO_T}no" >&6
1900
fi
1901
 
1902
  test -n "$ac_ct_CC" && break
1903
done
1904
 
1905
  CC=$ac_ct_CC
1906
fi
1907
 
1908
fi
1909
 
1910
 
1911
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1912
See \`config.log' for more details." >&5
1913
echo "$as_me: error: no acceptable C compiler found in \$PATH
1914
See \`config.log' for more details." >&2;}
1915
   { (exit 1); exit 1; }; }
1916
 
1917
# Provide some information about the compiler.
1918
echo "$as_me:$LINENO:" \
1919
     "checking for C compiler version" >&5
1920
ac_compiler=`set X $ac_compile; echo $2`
1921
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1922
  (eval $ac_compiler --version &5) 2>&5
1923
  ac_status=$?
1924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925
  (exit $ac_status); }
1926
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1927
  (eval $ac_compiler -v &5) 2>&5
1928
  ac_status=$?
1929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930
  (exit $ac_status); }
1931
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1932
  (eval $ac_compiler -V &5) 2>&5
1933
  ac_status=$?
1934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935
  (exit $ac_status); }
1936
 
1937
cat >conftest.$ac_ext <<_ACEOF
1938
/* confdefs.h.  */
1939
_ACEOF
1940
cat confdefs.h >>conftest.$ac_ext
1941
cat >>conftest.$ac_ext <<_ACEOF
1942
/* end confdefs.h.  */
1943
 
1944
int
1945
main ()
1946
{
1947
 
1948
  ;
1949
  return 0;
1950
}
1951
_ACEOF
1952
ac_clean_files_save=$ac_clean_files
1953
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1954
# Try to create an executable without -o first, disregard a.out.
1955
# It will help us diagnose broken compilers, and finding out an intuition
1956
# of exeext.
1957
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1958
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1959
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961
  (eval $ac_link_default) 2>&5
1962
  ac_status=$?
1963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964
  (exit $ac_status); }; then
1965
  # Find the output, starting from the most likely.  This scheme is
1966
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1967
# resort.
1968
 
1969
# Be careful to initialize this variable, since it used to be cached.
1970
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1971
ac_cv_exeext=
1972
# b.out is created by i960 compilers.
1973
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1974
do
1975
  test -f "$ac_file" || continue
1976
  case $ac_file in
1977
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978
        ;;
1979
    conftest.$ac_ext )
1980
        # This is the source file.
1981
        ;;
1982
    [ab].out )
1983
        # We found the default executable, but exeext='' is most
1984
        # certainly right.
1985
        break;;
1986
    *.* )
1987
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1988
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1989
        # but it would be cool to find out if it's true.  Does anybody
1990
        # maintain Libtool? --akim.
1991
        export ac_cv_exeext
1992
        break;;
1993
    * )
1994
        break;;
1995
  esac
1996
done
1997
else
1998
  echo "$as_me: failed program was:" >&5
1999
sed 's/^/| /' conftest.$ac_ext >&5
2000
 
2001
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002
See \`config.log' for more details." >&5
2003
echo "$as_me: error: C compiler cannot create executables
2004
See \`config.log' for more details." >&2;}
2005
   { (exit 77); exit 77; }; }
2006
fi
2007
 
2008
ac_exeext=$ac_cv_exeext
2009
echo "$as_me:$LINENO: result: $ac_file" >&5
2010
echo "${ECHO_T}$ac_file" >&6
2011
 
2012
# Check the compiler produces executables we can run.  If not, either
2013
# the compiler is broken, or we cross compile.
2014
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017
# If not cross compiling, check that we can run a simple program.
2018
if test "$cross_compiling" != yes; then
2019
  if { ac_try='./$ac_file'
2020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021
  (eval $ac_try) 2>&5
2022
  ac_status=$?
2023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024
  (exit $ac_status); }; }; then
2025
    cross_compiling=no
2026
  else
2027
    if test "$cross_compiling" = maybe; then
2028
        cross_compiling=yes
2029
    else
2030
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2031
If you meant to cross compile, use \`--host'.
2032
See \`config.log' for more details." >&5
2033
echo "$as_me: error: cannot run C compiled programs.
2034
If you meant to cross compile, use \`--host'.
2035
See \`config.log' for more details." >&2;}
2036
   { (exit 1); exit 1; }; }
2037
    fi
2038
  fi
2039
fi
2040
echo "$as_me:$LINENO: result: yes" >&5
2041
echo "${ECHO_T}yes" >&6
2042
 
2043
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2044
ac_clean_files=$ac_clean_files_save
2045
# Check the compiler produces executables we can run.  If not, either
2046
# the compiler is broken, or we cross compile.
2047
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2048
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2049
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2050
echo "${ECHO_T}$cross_compiling" >&6
2051
 
2052
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2053
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2055
  (eval $ac_link) 2>&5
2056
  ac_status=$?
2057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058
  (exit $ac_status); }; then
2059
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2060
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2061
# work properly (i.e., refer to `conftest.exe'), while it won't with
2062
# `rm'.
2063
for ac_file in conftest.exe conftest conftest.*; do
2064
  test -f "$ac_file" || continue
2065
  case $ac_file in
2066
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2067
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068
          export ac_cv_exeext
2069
          break;;
2070
    * ) break;;
2071
  esac
2072
done
2073
else
2074
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2075
See \`config.log' for more details." >&5
2076
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2077
See \`config.log' for more details." >&2;}
2078
   { (exit 1); exit 1; }; }
2079
fi
2080
 
2081
rm -f conftest$ac_cv_exeext
2082
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2083
echo "${ECHO_T}$ac_cv_exeext" >&6
2084
 
2085
rm -f conftest.$ac_ext
2086
EXEEXT=$ac_cv_exeext
2087
ac_exeext=$EXEEXT
2088
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2089
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2090
if test "${ac_cv_objext+set}" = set; then
2091
  echo $ECHO_N "(cached) $ECHO_C" >&6
2092
else
2093
  cat >conftest.$ac_ext <<_ACEOF
2094
/* confdefs.h.  */
2095
_ACEOF
2096
cat confdefs.h >>conftest.$ac_ext
2097
cat >>conftest.$ac_ext <<_ACEOF
2098
/* end confdefs.h.  */
2099
 
2100
int
2101
main ()
2102
{
2103
 
2104
  ;
2105
  return 0;
2106
}
2107
_ACEOF
2108
rm -f conftest.o conftest.obj
2109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110
  (eval $ac_compile) 2>&5
2111
  ac_status=$?
2112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113
  (exit $ac_status); }; then
2114
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2115
  case $ac_file in
2116
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2117
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2118
       break;;
2119
  esac
2120
done
2121
else
2122
  echo "$as_me: failed program was:" >&5
2123
sed 's/^/| /' conftest.$ac_ext >&5
2124
 
2125
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2126
See \`config.log' for more details." >&5
2127
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2128
See \`config.log' for more details." >&2;}
2129
   { (exit 1); exit 1; }; }
2130
fi
2131
 
2132
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2133
fi
2134
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2135
echo "${ECHO_T}$ac_cv_objext" >&6
2136
OBJEXT=$ac_cv_objext
2137
ac_objext=$OBJEXT
2138
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2139
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2140
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2141
  echo $ECHO_N "(cached) $ECHO_C" >&6
2142
else
2143
  cat >conftest.$ac_ext <<_ACEOF
2144
/* confdefs.h.  */
2145
_ACEOF
2146
cat confdefs.h >>conftest.$ac_ext
2147
cat >>conftest.$ac_ext <<_ACEOF
2148
/* end confdefs.h.  */
2149
 
2150
int
2151
main ()
2152
{
2153
#ifndef __GNUC__
2154
       choke me
2155
#endif
2156
 
2157
  ;
2158
  return 0;
2159
}
2160
_ACEOF
2161
rm -f conftest.$ac_objext
2162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163
  (eval $ac_compile) 2>conftest.er1
2164
  ac_status=$?
2165
  grep -v '^ *+' conftest.er1 >conftest.err
2166
  rm -f conftest.er1
2167
  cat conftest.err >&5
2168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169
  (exit $ac_status); } &&
2170
         { ac_try='test -z "$ac_c_werror_flag"
2171
                         || test ! -s conftest.err'
2172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173
  (eval $ac_try) 2>&5
2174
  ac_status=$?
2175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176
  (exit $ac_status); }; } &&
2177
         { ac_try='test -s conftest.$ac_objext'
2178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179
  (eval $ac_try) 2>&5
2180
  ac_status=$?
2181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
  (exit $ac_status); }; }; then
2183
  ac_compiler_gnu=yes
2184
else
2185
  echo "$as_me: failed program was:" >&5
2186
sed 's/^/| /' conftest.$ac_ext >&5
2187
 
2188
ac_compiler_gnu=no
2189
fi
2190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2191
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2192
 
2193
fi
2194
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2195
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2196
GCC=`test $ac_compiler_gnu = yes && echo yes`
2197
ac_test_CFLAGS=${CFLAGS+set}
2198
ac_save_CFLAGS=$CFLAGS
2199
CFLAGS="-g"
2200
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2201
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2202
if test "${ac_cv_prog_cc_g+set}" = set; then
2203
  echo $ECHO_N "(cached) $ECHO_C" >&6
2204
else
2205
  cat >conftest.$ac_ext <<_ACEOF
2206
/* confdefs.h.  */
2207
_ACEOF
2208
cat confdefs.h >>conftest.$ac_ext
2209
cat >>conftest.$ac_ext <<_ACEOF
2210
/* end confdefs.h.  */
2211
 
2212
int
2213
main ()
2214
{
2215
 
2216
  ;
2217
  return 0;
2218
}
2219
_ACEOF
2220
rm -f conftest.$ac_objext
2221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222
  (eval $ac_compile) 2>conftest.er1
2223
  ac_status=$?
2224
  grep -v '^ *+' conftest.er1 >conftest.err
2225
  rm -f conftest.er1
2226
  cat conftest.err >&5
2227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
  (exit $ac_status); } &&
2229
         { ac_try='test -z "$ac_c_werror_flag"
2230
                         || test ! -s conftest.err'
2231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232
  (eval $ac_try) 2>&5
2233
  ac_status=$?
2234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235
  (exit $ac_status); }; } &&
2236
         { ac_try='test -s conftest.$ac_objext'
2237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238
  (eval $ac_try) 2>&5
2239
  ac_status=$?
2240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241
  (exit $ac_status); }; }; then
2242
  ac_cv_prog_cc_g=yes
2243
else
2244
  echo "$as_me: failed program was:" >&5
2245
sed 's/^/| /' conftest.$ac_ext >&5
2246
 
2247
ac_cv_prog_cc_g=no
2248
fi
2249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250
fi
2251
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2252
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2253
if test "$ac_test_CFLAGS" = set; then
2254
  CFLAGS=$ac_save_CFLAGS
2255
elif test $ac_cv_prog_cc_g = yes; then
2256
  if test "$GCC" = yes; then
2257
    CFLAGS="-g -O2"
2258
  else
2259
    CFLAGS="-g"
2260
  fi
2261
else
2262
  if test "$GCC" = yes; then
2263
    CFLAGS="-O2"
2264
  else
2265
    CFLAGS=
2266
  fi
2267
fi
2268
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2269
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2270
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2271
  echo $ECHO_N "(cached) $ECHO_C" >&6
2272
else
2273
  ac_cv_prog_cc_stdc=no
2274
ac_save_CC=$CC
2275
cat >conftest.$ac_ext <<_ACEOF
2276
/* confdefs.h.  */
2277
_ACEOF
2278
cat confdefs.h >>conftest.$ac_ext
2279
cat >>conftest.$ac_ext <<_ACEOF
2280
/* end confdefs.h.  */
2281
#include 
2282
#include 
2283
#include 
2284
#include 
2285
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2286
struct buf { int x; };
2287
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2288
static char *e (p, i)
2289
     char **p;
2290
     int i;
2291
{
2292
  return p[i];
2293
}
2294
static char *f (char * (*g) (char **, int), char **p, ...)
2295
{
2296
  char *s;
2297
  va_list v;
2298
  va_start (v,p);
2299
  s = g (p, va_arg (v,int));
2300
  va_end (v);
2301
  return s;
2302
}
2303
 
2304
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2305
   function prototypes and stuff, but not '\xHH' hex character constants.
2306
   These don't provoke an error unfortunately, instead are silently treated
2307
   as 'x'.  The following induces an error, until -std1 is added to get
2308
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2309
   array size at least.  It's necessary to write '\x00'==0 to get something
2310
   that's true only with -std1.  */
2311
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2312
 
2313
int test (int i, double x);
2314
struct s1 {int (*f) (int a);};
2315
struct s2 {int (*f) (double a);};
2316
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2317
int argc;
2318
char **argv;
2319
int
2320
main ()
2321
{
2322
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2323
  ;
2324
  return 0;
2325
}
2326
_ACEOF
2327
# Don't try gcc -ansi; that turns off useful extensions and
2328
# breaks some systems' header files.
2329
# AIX                   -qlanglvl=ansi
2330
# Ultrix and OSF/1      -std1
2331
# HP-UX 10.20 and later -Ae
2332
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2333
# SVR4                  -Xc -D__EXTENSIONS__
2334
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2335
do
2336
  CC="$ac_save_CC $ac_arg"
2337
  rm -f conftest.$ac_objext
2338
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339
  (eval $ac_compile) 2>conftest.er1
2340
  ac_status=$?
2341
  grep -v '^ *+' conftest.er1 >conftest.err
2342
  rm -f conftest.er1
2343
  cat conftest.err >&5
2344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345
  (exit $ac_status); } &&
2346
         { ac_try='test -z "$ac_c_werror_flag"
2347
                         || test ! -s conftest.err'
2348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349
  (eval $ac_try) 2>&5
2350
  ac_status=$?
2351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352
  (exit $ac_status); }; } &&
2353
         { ac_try='test -s conftest.$ac_objext'
2354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355
  (eval $ac_try) 2>&5
2356
  ac_status=$?
2357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358
  (exit $ac_status); }; }; then
2359
  ac_cv_prog_cc_stdc=$ac_arg
2360
break
2361
else
2362
  echo "$as_me: failed program was:" >&5
2363
sed 's/^/| /' conftest.$ac_ext >&5
2364
 
2365
fi
2366
rm -f conftest.err conftest.$ac_objext
2367
done
2368
rm -f conftest.$ac_ext conftest.$ac_objext
2369
CC=$ac_save_CC
2370
 
2371
fi
2372
 
2373
case "x$ac_cv_prog_cc_stdc" in
2374
  x|xno)
2375
    echo "$as_me:$LINENO: result: none needed" >&5
2376
echo "${ECHO_T}none needed" >&6 ;;
2377
  *)
2378
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2379
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2380
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2381
esac
2382
 
2383
# Some people use a C++ compiler to compile C.  Since we use `exit',
2384
# in C++ we need to declare it.  In case someone uses the same compiler
2385
# for both compiling C and C++ we need to have the C++ compiler decide
2386
# the declaration of exit, since it's the most demanding environment.
2387
cat >conftest.$ac_ext <<_ACEOF
2388
#ifndef __cplusplus
2389
  choke me
2390
#endif
2391
_ACEOF
2392
rm -f conftest.$ac_objext
2393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394
  (eval $ac_compile) 2>conftest.er1
2395
  ac_status=$?
2396
  grep -v '^ *+' conftest.er1 >conftest.err
2397
  rm -f conftest.er1
2398
  cat conftest.err >&5
2399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400
  (exit $ac_status); } &&
2401
         { ac_try='test -z "$ac_c_werror_flag"
2402
                         || test ! -s conftest.err'
2403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404
  (eval $ac_try) 2>&5
2405
  ac_status=$?
2406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407
  (exit $ac_status); }; } &&
2408
         { ac_try='test -s conftest.$ac_objext'
2409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410
  (eval $ac_try) 2>&5
2411
  ac_status=$?
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
  (exit $ac_status); }; }; then
2414
  for ac_declaration in \
2415
   '' \
2416
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2417
   'extern "C" void std::exit (int); using std::exit;' \
2418
   'extern "C" void exit (int) throw ();' \
2419
   'extern "C" void exit (int);' \
2420
   'void exit (int);'
2421
do
2422
  cat >conftest.$ac_ext <<_ACEOF
2423
/* confdefs.h.  */
2424
_ACEOF
2425
cat confdefs.h >>conftest.$ac_ext
2426
cat >>conftest.$ac_ext <<_ACEOF
2427
/* end confdefs.h.  */
2428
$ac_declaration
2429
#include 
2430
int
2431
main ()
2432
{
2433
exit (42);
2434
  ;
2435
  return 0;
2436
}
2437
_ACEOF
2438
rm -f conftest.$ac_objext
2439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440
  (eval $ac_compile) 2>conftest.er1
2441
  ac_status=$?
2442
  grep -v '^ *+' conftest.er1 >conftest.err
2443
  rm -f conftest.er1
2444
  cat conftest.err >&5
2445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
  (exit $ac_status); } &&
2447
         { ac_try='test -z "$ac_c_werror_flag"
2448
                         || test ! -s conftest.err'
2449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450
  (eval $ac_try) 2>&5
2451
  ac_status=$?
2452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453
  (exit $ac_status); }; } &&
2454
         { ac_try='test -s conftest.$ac_objext'
2455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456
  (eval $ac_try) 2>&5
2457
  ac_status=$?
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459
  (exit $ac_status); }; }; then
2460
  :
2461
else
2462
  echo "$as_me: failed program was:" >&5
2463
sed 's/^/| /' conftest.$ac_ext >&5
2464
 
2465
continue
2466
fi
2467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468
  cat >conftest.$ac_ext <<_ACEOF
2469
/* confdefs.h.  */
2470
_ACEOF
2471
cat confdefs.h >>conftest.$ac_ext
2472
cat >>conftest.$ac_ext <<_ACEOF
2473
/* end confdefs.h.  */
2474
$ac_declaration
2475
int
2476
main ()
2477
{
2478
exit (42);
2479
  ;
2480
  return 0;
2481
}
2482
_ACEOF
2483
rm -f conftest.$ac_objext
2484
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485
  (eval $ac_compile) 2>conftest.er1
2486
  ac_status=$?
2487
  grep -v '^ *+' conftest.er1 >conftest.err
2488
  rm -f conftest.er1
2489
  cat conftest.err >&5
2490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491
  (exit $ac_status); } &&
2492
         { ac_try='test -z "$ac_c_werror_flag"
2493
                         || test ! -s conftest.err'
2494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495
  (eval $ac_try) 2>&5
2496
  ac_status=$?
2497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
  (exit $ac_status); }; } &&
2499
         { ac_try='test -s conftest.$ac_objext'
2500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501
  (eval $ac_try) 2>&5
2502
  ac_status=$?
2503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
  (exit $ac_status); }; }; then
2505
  break
2506
else
2507
  echo "$as_me: failed program was:" >&5
2508
sed 's/^/| /' conftest.$ac_ext >&5
2509
 
2510
fi
2511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2512
done
2513
rm -f conftest*
2514
if test -n "$ac_declaration"; then
2515
  echo '#ifdef __cplusplus' >>confdefs.h
2516
  echo $ac_declaration      >>confdefs.h
2517
  echo '#endif'             >>confdefs.h
2518
fi
2519
 
2520
else
2521
  echo "$as_me: failed program was:" >&5
2522
sed 's/^/| /' conftest.$ac_ext >&5
2523
 
2524
fi
2525
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526
ac_ext=c
2527
ac_cpp='$CPP $CPPFLAGS'
2528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
 
2532
 
2533
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2534
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2535
if test "${ac_cv_search_strerror+set}" = set; then
2536
  echo $ECHO_N "(cached) $ECHO_C" >&6
2537
else
2538
  ac_func_search_save_LIBS=$LIBS
2539
ac_cv_search_strerror=no
2540
cat >conftest.$ac_ext <<_ACEOF
2541
/* confdefs.h.  */
2542
_ACEOF
2543
cat confdefs.h >>conftest.$ac_ext
2544
cat >>conftest.$ac_ext <<_ACEOF
2545
/* end confdefs.h.  */
2546
 
2547
/* Override any gcc2 internal prototype to avoid an error.  */
2548
#ifdef __cplusplus
2549
extern "C"
2550
#endif
2551
/* We use char because int might match the return type of a gcc2
2552
   builtin and then its argument prototype would still apply.  */
2553
char strerror ();
2554
int
2555
main ()
2556
{
2557
strerror ();
2558
  ;
2559
  return 0;
2560
}
2561
_ACEOF
2562
rm -f conftest.$ac_objext conftest$ac_exeext
2563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2564
  (eval $ac_link) 2>conftest.er1
2565
  ac_status=$?
2566
  grep -v '^ *+' conftest.er1 >conftest.err
2567
  rm -f conftest.er1
2568
  cat conftest.err >&5
2569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
  (exit $ac_status); } &&
2571
         { ac_try='test -z "$ac_c_werror_flag"
2572
                         || test ! -s conftest.err'
2573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574
  (eval $ac_try) 2>&5
2575
  ac_status=$?
2576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577
  (exit $ac_status); }; } &&
2578
         { ac_try='test -s conftest$ac_exeext'
2579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580
  (eval $ac_try) 2>&5
2581
  ac_status=$?
2582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583
  (exit $ac_status); }; }; then
2584
  ac_cv_search_strerror="none required"
2585
else
2586
  echo "$as_me: failed program was:" >&5
2587
sed 's/^/| /' conftest.$ac_ext >&5
2588
 
2589
fi
2590
rm -f conftest.err conftest.$ac_objext \
2591
      conftest$ac_exeext conftest.$ac_ext
2592
if test "$ac_cv_search_strerror" = no; then
2593
  for ac_lib in cposix; do
2594
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2595
    cat >conftest.$ac_ext <<_ACEOF
2596
/* confdefs.h.  */
2597
_ACEOF
2598
cat confdefs.h >>conftest.$ac_ext
2599
cat >>conftest.$ac_ext <<_ACEOF
2600
/* end confdefs.h.  */
2601
 
2602
/* Override any gcc2 internal prototype to avoid an error.  */
2603
#ifdef __cplusplus
2604
extern "C"
2605
#endif
2606
/* We use char because int might match the return type of a gcc2
2607
   builtin and then its argument prototype would still apply.  */
2608
char strerror ();
2609
int
2610
main ()
2611
{
2612
strerror ();
2613
  ;
2614
  return 0;
2615
}
2616
_ACEOF
2617
rm -f conftest.$ac_objext conftest$ac_exeext
2618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619
  (eval $ac_link) 2>conftest.er1
2620
  ac_status=$?
2621
  grep -v '^ *+' conftest.er1 >conftest.err
2622
  rm -f conftest.er1
2623
  cat conftest.err >&5
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
  (exit $ac_status); } &&
2626
         { ac_try='test -z "$ac_c_werror_flag"
2627
                         || test ! -s conftest.err'
2628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629
  (eval $ac_try) 2>&5
2630
  ac_status=$?
2631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
  (exit $ac_status); }; } &&
2633
         { ac_try='test -s conftest$ac_exeext'
2634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635
  (eval $ac_try) 2>&5
2636
  ac_status=$?
2637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
  (exit $ac_status); }; }; then
2639
  ac_cv_search_strerror="-l$ac_lib"
2640
break
2641
else
2642
  echo "$as_me: failed program was:" >&5
2643
sed 's/^/| /' conftest.$ac_ext >&5
2644
 
2645
fi
2646
rm -f conftest.err conftest.$ac_objext \
2647
      conftest$ac_exeext conftest.$ac_ext
2648
  done
2649
fi
2650
LIBS=$ac_func_search_save_LIBS
2651
fi
2652
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2653
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2654
if test "$ac_cv_search_strerror" != no; then
2655
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2656
 
2657
fi
2658
 
2659
 
2660
am__api_version="1.9"
2661
# Find a good install program.  We prefer a C program (faster),
2662
# so one script is as good as another.  But avoid the broken or
2663
# incompatible versions:
2664
# SysV /etc/install, /usr/sbin/install
2665
# SunOS /usr/etc/install
2666
# IRIX /sbin/install
2667
# AIX /bin/install
2668
# AmigaOS /C/install, which installs bootblocks on floppy discs
2669
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2670
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2671
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2672
# OS/2's system install, which has a completely different semantic
2673
# ./install, which can be erroneously created by make from ./install.sh.
2674
# Reject install programs that cannot install multiple files.
2675
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2676
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2677
if test -z "$INSTALL"; then
2678
if test "${ac_cv_path_install+set}" = set; then
2679
  echo $ECHO_N "(cached) $ECHO_C" >&6
2680
else
2681
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682
for as_dir in $PATH
2683
do
2684
  IFS=$as_save_IFS
2685
  test -z "$as_dir" && as_dir=.
2686
  # Account for people who put trailing slashes in PATH elements.
2687
case $as_dir/ in
2688
  ./ | .// | /cC/* | \
2689
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2690
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2691
  /usr/ucb/* ) ;;
2692
  *)
2693
    # OSF1 and SCO ODT 3.0 have their own names for install.
2694
    # Don't use installbsd from OSF since it installs stuff as root
2695
    # by default.
2696
    for ac_prog in ginstall scoinst install; do
2697
      for ac_exec_ext in '' $ac_executable_extensions; do
2698
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2699
          if test $ac_prog = install &&
2700
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701
            # AIX install.  It has an incompatible calling convention.
2702
            :
2703
          elif test $ac_prog = install &&
2704
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705
            # program-specific install script used by HP pwplus--don't use.
2706
            :
2707
          else
2708
            rm -rf conftest.one conftest.two conftest.dir
2709
            echo one > conftest.one
2710
            echo two > conftest.two
2711
            mkdir conftest.dir
2712
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2713
              test -s conftest.one && test -s conftest.two &&
2714
              test -s conftest.dir/conftest.one &&
2715
              test -s conftest.dir/conftest.two
2716
            then
2717
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2718
              break 3
2719
            fi
2720
          fi
2721
        fi
2722
      done
2723
    done
2724
    ;;
2725
esac
2726
done
2727
 
2728
rm -rf conftest.one conftest.two conftest.dir
2729
 
2730
fi
2731
  if test "${ac_cv_path_install+set}" = set; then
2732
    INSTALL=$ac_cv_path_install
2733
  else
2734
    # As a last resort, use the slow shell script.  Don't cache a
2735
    # value for INSTALL within a source directory, because that will
2736
    # break other packages using the cache if that directory is
2737
    # removed, or if the value is a relative name.
2738
    INSTALL=$ac_install_sh
2739
  fi
2740
fi
2741
echo "$as_me:$LINENO: result: $INSTALL" >&5
2742
echo "${ECHO_T}$INSTALL" >&6
2743
 
2744
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2745
# It thinks the first close brace ends the variable substitution.
2746
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2747
 
2748
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2749
 
2750
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2751
 
2752
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2753
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2754
# Just in case
2755
sleep 1
2756
echo timestamp > conftest.file
2757
# Do `set' in a subshell so we don't clobber the current shell's
2758
# arguments.  Must try -L first in case configure is actually a
2759
# symlink; some systems play weird games with the mod time of symlinks
2760
# (eg FreeBSD returns the mod time of the symlink's containing
2761
# directory).
2762
if (
2763
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2764
   if test "$*" = "X"; then
2765
      # -L didn't work.
2766
      set X `ls -t $srcdir/configure conftest.file`
2767
   fi
2768
   rm -f conftest.file
2769
   if test "$*" != "X $srcdir/configure conftest.file" \
2770
      && test "$*" != "X conftest.file $srcdir/configure"; then
2771
 
2772
      # If neither matched, then we have a broken ls.  This can happen
2773
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2774
      # broken ls alias from the environment.  This has actually
2775
      # happened.  Such a system could not be considered "sane".
2776
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2777
alias in your environment" >&5
2778
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2779
alias in your environment" >&2;}
2780
   { (exit 1); exit 1; }; }
2781
   fi
2782
 
2783
   test "$2" = conftest.file
2784
   )
2785
then
2786
   # Ok.
2787
   :
2788
else
2789
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2790
Check your system clock" >&5
2791
echo "$as_me: error: newly created file is older than distributed files!
2792
Check your system clock" >&2;}
2793
   { (exit 1); exit 1; }; }
2794
fi
2795
echo "$as_me:$LINENO: result: yes" >&5
2796
echo "${ECHO_T}yes" >&6
2797
test "$program_prefix" != NONE &&
2798
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2799
# Use a double $ so make ignores it.
2800
test "$program_suffix" != NONE &&
2801
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2802
# Double any \ or $.  echo might interpret backslashes.
2803
# By default was `s,x,x', remove it if useless.
2804
cat <<\_ACEOF >conftest.sed
2805
s/[\\$]/&&/g;s/;s,x,x,$//
2806
_ACEOF
2807
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2808
rm conftest.sed
2809
 
2810
# expand $ac_aux_dir to an absolute path
2811
am_aux_dir=`cd $ac_aux_dir && pwd`
2812
 
2813
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2814
# Use eval to expand $SHELL
2815
if eval "$MISSING --run true"; then
2816
  am_missing_run="$MISSING --run "
2817
else
2818
  am_missing_run=
2819
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2820
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2821
fi
2822
 
2823
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2824
  # We used to keeping the `.' as first argument, in order to
2825
  # allow $(mkdir_p) to be used without argument.  As in
2826
  #   $(mkdir_p) $(somedir)
2827
  # where $(somedir) is conditionally defined.  However this is wrong
2828
  # for two reasons:
2829
  #  1. if the package is installed by a user who cannot write `.'
2830
  #     make install will fail,
2831
  #  2. the above comment should most certainly read
2832
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2833
  #     so it does not work when $(somedir) is undefined and
2834
  #     $(DESTDIR) is not.
2835
  #  To support the latter case, we have to write
2836
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2837
  #  so the `.' trick is pointless.
2838
  mkdir_p='mkdir -p --'
2839
else
2840
  # On NextStep and OpenStep, the `mkdir' command does not
2841
  # recognize any option.  It will interpret all options as
2842
  # directories to create, and then abort because `.' already
2843
  # exists.
2844
  for d in ./-p ./--version;
2845
  do
2846
    test -d $d && rmdir $d
2847
  done
2848
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2849
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2850
    mkdir_p='$(mkinstalldirs)'
2851
  else
2852
    mkdir_p='$(install_sh) -d'
2853
  fi
2854
fi
2855
 
2856
for ac_prog in gawk mawk nawk awk
2857
do
2858
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2859
set dummy $ac_prog; ac_word=$2
2860
echo "$as_me:$LINENO: checking for $ac_word" >&5
2861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862
if test "${ac_cv_prog_AWK+set}" = set; then
2863
  echo $ECHO_N "(cached) $ECHO_C" >&6
2864
else
2865
  if test -n "$AWK"; then
2866
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2867
else
2868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869
for as_dir in $PATH
2870
do
2871
  IFS=$as_save_IFS
2872
  test -z "$as_dir" && as_dir=.
2873
  for ac_exec_ext in '' $ac_executable_extensions; do
2874
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875
    ac_cv_prog_AWK="$ac_prog"
2876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877
    break 2
2878
  fi
2879
done
2880
done
2881
 
2882
fi
2883
fi
2884
AWK=$ac_cv_prog_AWK
2885
if test -n "$AWK"; then
2886
  echo "$as_me:$LINENO: result: $AWK" >&5
2887
echo "${ECHO_T}$AWK" >&6
2888
else
2889
  echo "$as_me:$LINENO: result: no" >&5
2890
echo "${ECHO_T}no" >&6
2891
fi
2892
 
2893
  test -n "$AWK" && break
2894
done
2895
 
2896
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2897
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2898
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2899
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2900
  echo $ECHO_N "(cached) $ECHO_C" >&6
2901
else
2902
  cat >conftest.make <<\_ACEOF
2903
all:
2904
        @echo 'ac_maketemp="$(MAKE)"'
2905
_ACEOF
2906
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2907
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2908
if test -n "$ac_maketemp"; then
2909
  eval ac_cv_prog_make_${ac_make}_set=yes
2910
else
2911
  eval ac_cv_prog_make_${ac_make}_set=no
2912
fi
2913
rm -f conftest.make
2914
fi
2915
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2916
  echo "$as_me:$LINENO: result: yes" >&5
2917
echo "${ECHO_T}yes" >&6
2918
  SET_MAKE=
2919
else
2920
  echo "$as_me:$LINENO: result: no" >&5
2921
echo "${ECHO_T}no" >&6
2922
  SET_MAKE="MAKE=${MAKE-make}"
2923
fi
2924
 
2925
rm -rf .tst 2>/dev/null
2926
mkdir .tst 2>/dev/null
2927
if test -d .tst; then
2928
  am__leading_dot=.
2929
else
2930
  am__leading_dot=_
2931
fi
2932
rmdir .tst 2>/dev/null
2933
 
2934
DEPDIR="${am__leading_dot}deps"
2935
 
2936
          ac_config_commands="$ac_config_commands depfiles"
2937
 
2938
 
2939
am_make=${MAKE-make}
2940
cat > confinc << 'END'
2941
am__doit:
2942
        @echo done
2943
.PHONY: am__doit
2944
END
2945
# If we don't find an include directive, just comment out the code.
2946
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2948
am__include="#"
2949
am__quote=
2950
_am_result=none
2951
# First try GNU make style include.
2952
echo "include confinc" > confmf
2953
# We grep out `Entering directory' and `Leaving directory'
2954
# messages which can occur if `w' ends up in MAKEFLAGS.
2955
# In particular we don't look at `^make:' because GNU make might
2956
# be invoked under some other name (usually "gmake"), in which
2957
# case it prints its new name instead of `make'.
2958
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2959
   am__include=include
2960
   am__quote=
2961
   _am_result=GNU
2962
fi
2963
# Now try BSD make style include.
2964
if test "$am__include" = "#"; then
2965
   echo '.include "confinc"' > confmf
2966
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967
      am__include=.include
2968
      am__quote="\""
2969
      _am_result=BSD
2970
   fi
2971
fi
2972
 
2973
 
2974
echo "$as_me:$LINENO: result: $_am_result" >&5
2975
echo "${ECHO_T}$_am_result" >&6
2976
rm -f confinc confmf
2977
 
2978
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2979
if test "${enable_dependency_tracking+set}" = set; then
2980
  enableval="$enable_dependency_tracking"
2981
 
2982
fi;
2983
if test "x$enable_dependency_tracking" != xno; then
2984
  am_depcomp="$ac_aux_dir/depcomp"
2985
  AMDEPBACKSLASH='\'
2986
fi
2987
 
2988
 
2989
if test "x$enable_dependency_tracking" != xno; then
2990
  AMDEP_TRUE=
2991
  AMDEP_FALSE='#'
2992
else
2993
  AMDEP_TRUE='#'
2994
  AMDEP_FALSE=
2995
fi
2996
 
2997
 
2998
 
2999
# test to see if srcdir already configured
3000
if test "`cd $srcdir && pwd`" != "`pwd`" &&
3001
   test -f $srcdir/config.status; then
3002
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3003
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3004
   { (exit 1); exit 1; }; }
3005
fi
3006
 
3007
# test whether we have cygpath
3008
if test -z "$CYGPATH_W"; then
3009
  if (cygpath --version) >/dev/null 2>/dev/null; then
3010
    CYGPATH_W='cygpath -w'
3011
  else
3012
    CYGPATH_W=echo
3013
  fi
3014
fi
3015
 
3016
 
3017
# Define the identity of the package.
3018
 PACKAGE=bfd
3019
 VERSION=2.18.50
3020
 
3021
 
3022
cat >>confdefs.h <<_ACEOF
3023
#define PACKAGE "$PACKAGE"
3024
_ACEOF
3025
 
3026
 
3027
cat >>confdefs.h <<_ACEOF
3028
#define VERSION "$VERSION"
3029
_ACEOF
3030
 
3031
# Some tools Automake needs.
3032
 
3033
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3034
 
3035
 
3036
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3037
 
3038
 
3039
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3040
 
3041
 
3042
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3043
 
3044
 
3045
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3046
 
3047
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3048
 
3049
# Installed binaries are usually stripped using `strip' when the user
3050
# run `make install-strip'.  However `strip' might not be the right
3051
# tool to use in cross-compilation environments, therefore Automake
3052
# will honor the `STRIP' environment variable to overrule this program.
3053
if test "$cross_compiling" != no; then
3054
  if test -n "$ac_tool_prefix"; then
3055
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3056
set dummy ${ac_tool_prefix}strip; ac_word=$2
3057
echo "$as_me:$LINENO: checking for $ac_word" >&5
3058
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059
if test "${ac_cv_prog_STRIP+set}" = set; then
3060
  echo $ECHO_N "(cached) $ECHO_C" >&6
3061
else
3062
  if test -n "$STRIP"; then
3063
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3064
else
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066
for as_dir in $PATH
3067
do
3068
  IFS=$as_save_IFS
3069
  test -z "$as_dir" && as_dir=.
3070
  for ac_exec_ext in '' $ac_executable_extensions; do
3071
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074
    break 2
3075
  fi
3076
done
3077
done
3078
 
3079
fi
3080
fi
3081
STRIP=$ac_cv_prog_STRIP
3082
if test -n "$STRIP"; then
3083
  echo "$as_me:$LINENO: result: $STRIP" >&5
3084
echo "${ECHO_T}$STRIP" >&6
3085
else
3086
  echo "$as_me:$LINENO: result: no" >&5
3087
echo "${ECHO_T}no" >&6
3088
fi
3089
 
3090
fi
3091
if test -z "$ac_cv_prog_STRIP"; then
3092
  ac_ct_STRIP=$STRIP
3093
  # Extract the first word of "strip", so it can be a program name with args.
3094
set dummy strip; ac_word=$2
3095
echo "$as_me:$LINENO: checking for $ac_word" >&5
3096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3098
  echo $ECHO_N "(cached) $ECHO_C" >&6
3099
else
3100
  if test -n "$ac_ct_STRIP"; then
3101
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3102
else
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104
for as_dir in $PATH
3105
do
3106
  IFS=$as_save_IFS
3107
  test -z "$as_dir" && as_dir=.
3108
  for ac_exec_ext in '' $ac_executable_extensions; do
3109
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110
    ac_cv_prog_ac_ct_STRIP="strip"
3111
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112
    break 2
3113
  fi
3114
done
3115
done
3116
 
3117
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3118
fi
3119
fi
3120
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121
if test -n "$ac_ct_STRIP"; then
3122
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3123
echo "${ECHO_T}$ac_ct_STRIP" >&6
3124
else
3125
  echo "$as_me:$LINENO: result: no" >&5
3126
echo "${ECHO_T}no" >&6
3127
fi
3128
 
3129
  STRIP=$ac_ct_STRIP
3130
else
3131
  STRIP="$ac_cv_prog_STRIP"
3132
fi
3133
 
3134
fi
3135
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3136
 
3137
# We need awk for the "check" target.  The system "awk" is bad on
3138
# some platforms.
3139
# Always define AMTAR for backward compatibility.
3140
 
3141
AMTAR=${AMTAR-"${am_missing_run}tar"}
3142
 
3143
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3144
 
3145
 
3146
 
3147
 
3148
depcc="$CC"   am_compiler_list=
3149
 
3150
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3151
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3152
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3153
  echo $ECHO_N "(cached) $ECHO_C" >&6
3154
else
3155
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3156
  # We make a subdir and do the tests there.  Otherwise we can end up
3157
  # making bogus files that we don't know about and never remove.  For
3158
  # instance it was reported that on HP-UX the gcc test will end up
3159
  # making a dummy file named `D' -- because `-MD' means `put the output
3160
  # in D'.
3161
  mkdir conftest.dir
3162
  # Copy depcomp to subdir because otherwise we won't find it if we're
3163
  # using a relative directory.
3164
  cp "$am_depcomp" conftest.dir
3165
  cd conftest.dir
3166
  # We will build objects and dependencies in a subdirectory because
3167
  # it helps to detect inapplicable dependency modes.  For instance
3168
  # both Tru64's cc and ICC support -MD to output dependencies as a
3169
  # side effect of compilation, but ICC will put the dependencies in
3170
  # the current directory while Tru64 will put them in the object
3171
  # directory.
3172
  mkdir sub
3173
 
3174
  am_cv_CC_dependencies_compiler_type=none
3175
  if test "$am_compiler_list" = ""; then
3176
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3177
  fi
3178
  for depmode in $am_compiler_list; do
3179
    # Setup a source with many dependencies, because some compilers
3180
    # like to wrap large dependency lists on column 80 (with \), and
3181
    # we should not choose a depcomp mode which is confused by this.
3182
    #
3183
    # We need to recreate these files for each test, as the compiler may
3184
    # overwrite some of them when testing with obscure command lines.
3185
    # This happens at least with the AIX C compiler.
3186
    : > sub/conftest.c
3187
    for i in 1 2 3 4 5 6; do
3188
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3189
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3190
      # Solaris 8's {/usr,}/bin/sh.
3191
      touch sub/conftst$i.h
3192
    done
3193
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3194
 
3195
    case $depmode in
3196
    nosideeffect)
3197
      # after this tag, mechanisms are not by side-effect, so they'll
3198
      # only be used when explicitly requested
3199
      if test "x$enable_dependency_tracking" = xyes; then
3200
        continue
3201
      else
3202
        break
3203
      fi
3204
      ;;
3205
    none) break ;;
3206
    esac
3207
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3208
    # mode.  It turns out that the SunPro C++ compiler does not properly
3209
    # handle `-M -o', and we need to detect this.
3210
    if depmode=$depmode \
3211
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3212
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3213
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3214
         >/dev/null 2>conftest.err &&
3215
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3216
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3217
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3218
      # icc doesn't choke on unknown options, it will just issue warnings
3219
      # or remarks (even with -Werror).  So we grep stderr for any message
3220
      # that says an option was ignored or not supported.
3221
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3222
      #   icc: Command line warning: ignoring option '-M'; no argument required
3223
      # The diagnosis changed in icc 8.0:
3224
      #   icc: Command line remark: option '-MP' not supported
3225
      if (grep 'ignoring option' conftest.err ||
3226
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3227
        am_cv_CC_dependencies_compiler_type=$depmode
3228
        break
3229
      fi
3230
    fi
3231
  done
3232
 
3233
  cd ..
3234
  rm -rf conftest.dir
3235
else
3236
  am_cv_CC_dependencies_compiler_type=none
3237
fi
3238
 
3239
fi
3240
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3241
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3242
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3243
 
3244
 
3245
 
3246
if
3247
  test "x$enable_dependency_tracking" != xno \
3248
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3249
  am__fastdepCC_TRUE=
3250
  am__fastdepCC_FALSE='#'
3251
else
3252
  am__fastdepCC_TRUE='#'
3253
  am__fastdepCC_FALSE=
3254
fi
3255
 
3256
 
3257
 
3258
 
3259
if test -n "$ac_tool_prefix"; then
3260
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3261
set dummy ${ac_tool_prefix}ar; ac_word=$2
3262
echo "$as_me:$LINENO: checking for $ac_word" >&5
3263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264
if test "${ac_cv_prog_AR+set}" = set; then
3265
  echo $ECHO_N "(cached) $ECHO_C" >&6
3266
else
3267
  if test -n "$AR"; then
3268
  ac_cv_prog_AR="$AR" # Let the user override the test.
3269
else
3270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271
for as_dir in $PATH
3272
do
3273
  IFS=$as_save_IFS
3274
  test -z "$as_dir" && as_dir=.
3275
  for ac_exec_ext in '' $ac_executable_extensions; do
3276
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3278
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279
    break 2
3280
  fi
3281
done
3282
done
3283
 
3284
fi
3285
fi
3286
AR=$ac_cv_prog_AR
3287
if test -n "$AR"; then
3288
  echo "$as_me:$LINENO: result: $AR" >&5
3289
echo "${ECHO_T}$AR" >&6
3290
else
3291
  echo "$as_me:$LINENO: result: no" >&5
3292
echo "${ECHO_T}no" >&6
3293
fi
3294
 
3295
fi
3296
if test -z "$ac_cv_prog_AR"; then
3297
  ac_ct_AR=$AR
3298
  # Extract the first word of "ar", so it can be a program name with args.
3299
set dummy ar; ac_word=$2
3300
echo "$as_me:$LINENO: checking for $ac_word" >&5
3301
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3303
  echo $ECHO_N "(cached) $ECHO_C" >&6
3304
else
3305
  if test -n "$ac_ct_AR"; then
3306
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3307
else
3308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309
for as_dir in $PATH
3310
do
3311
  IFS=$as_save_IFS
3312
  test -z "$as_dir" && as_dir=.
3313
  for ac_exec_ext in '' $ac_executable_extensions; do
3314
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315
    ac_cv_prog_ac_ct_AR="ar"
3316
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317
    break 2
3318
  fi
3319
done
3320
done
3321
 
3322
fi
3323
fi
3324
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3325
if test -n "$ac_ct_AR"; then
3326
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3327
echo "${ECHO_T}$ac_ct_AR" >&6
3328
else
3329
  echo "$as_me:$LINENO: result: no" >&5
3330
echo "${ECHO_T}no" >&6
3331
fi
3332
 
3333
  AR=$ac_ct_AR
3334
else
3335
  AR="$ac_cv_prog_AR"
3336
fi
3337
 
3338
if test -n "$ac_tool_prefix"; then
3339
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341
echo "$as_me:$LINENO: checking for $ac_word" >&5
3342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343
if test "${ac_cv_prog_RANLIB+set}" = set; then
3344
  echo $ECHO_N "(cached) $ECHO_C" >&6
3345
else
3346
  if test -n "$RANLIB"; then
3347
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3348
else
3349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350
for as_dir in $PATH
3351
do
3352
  IFS=$as_save_IFS
3353
  test -z "$as_dir" && as_dir=.
3354
  for ac_exec_ext in '' $ac_executable_extensions; do
3355
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358
    break 2
3359
  fi
3360
done
3361
done
3362
 
3363
fi
3364
fi
3365
RANLIB=$ac_cv_prog_RANLIB
3366
if test -n "$RANLIB"; then
3367
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3368
echo "${ECHO_T}$RANLIB" >&6
3369
else
3370
  echo "$as_me:$LINENO: result: no" >&5
3371
echo "${ECHO_T}no" >&6
3372
fi
3373
 
3374
fi
3375
if test -z "$ac_cv_prog_RANLIB"; then
3376
  ac_ct_RANLIB=$RANLIB
3377
  # Extract the first word of "ranlib", so it can be a program name with args.
3378
set dummy ranlib; ac_word=$2
3379
echo "$as_me:$LINENO: checking for $ac_word" >&5
3380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382
  echo $ECHO_N "(cached) $ECHO_C" >&6
3383
else
3384
  if test -n "$ac_ct_RANLIB"; then
3385
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3386
else
3387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388
for as_dir in $PATH
3389
do
3390
  IFS=$as_save_IFS
3391
  test -z "$as_dir" && as_dir=.
3392
  for ac_exec_ext in '' $ac_executable_extensions; do
3393
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3395
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396
    break 2
3397
  fi
3398
done
3399
done
3400
 
3401
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402
fi
3403
fi
3404
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405
if test -n "$ac_ct_RANLIB"; then
3406
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3408
else
3409
  echo "$as_me:$LINENO: result: no" >&5
3410
echo "${ECHO_T}no" >&6
3411
fi
3412
 
3413
  RANLIB=$ac_ct_RANLIB
3414
else
3415
  RANLIB="$ac_cv_prog_RANLIB"
3416
fi
3417
 
3418
 
3419
# Check whether --enable-shared or --disable-shared was given.
3420
if test "${enable_shared+set}" = set; then
3421
  enableval="$enable_shared"
3422
  p=${PACKAGE-default}
3423
    case $enableval in
3424
    yes) enable_shared=yes ;;
3425
    no) enable_shared=no ;;
3426
    *)
3427
      enable_shared=no
3428
      # Look at the argument we got.  We use all the common list separators.
3429
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3430
      for pkg in $enableval; do
3431
        IFS="$lt_save_ifs"
3432
        if test "X$pkg" = "X$p"; then
3433
          enable_shared=yes
3434
        fi
3435
      done
3436
      IFS="$lt_save_ifs"
3437
      ;;
3438
    esac
3439
else
3440
  enable_shared=no
3441
fi;
3442
 
3443
 
3444
 
3445
 
3446
 
3447
 
3448
 
3449
 
3450
 
3451
ac_ext=c
3452
ac_cpp='$CPP $CPPFLAGS'
3453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
if test -n "$ac_tool_prefix"; then
3457
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3458
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3459
echo "$as_me:$LINENO: checking for $ac_word" >&5
3460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461
if test "${ac_cv_prog_CC+set}" = set; then
3462
  echo $ECHO_N "(cached) $ECHO_C" >&6
3463
else
3464
  if test -n "$CC"; then
3465
  ac_cv_prog_CC="$CC" # Let the user override the test.
3466
else
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468
for as_dir in $PATH
3469
do
3470
  IFS=$as_save_IFS
3471
  test -z "$as_dir" && as_dir=.
3472
  for ac_exec_ext in '' $ac_executable_extensions; do
3473
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476
    break 2
3477
  fi
3478
done
3479
done
3480
 
3481
fi
3482
fi
3483
CC=$ac_cv_prog_CC
3484
if test -n "$CC"; then
3485
  echo "$as_me:$LINENO: result: $CC" >&5
3486
echo "${ECHO_T}$CC" >&6
3487
else
3488
  echo "$as_me:$LINENO: result: no" >&5
3489
echo "${ECHO_T}no" >&6
3490
fi
3491
 
3492
fi
3493
if test -z "$ac_cv_prog_CC"; then
3494
  ac_ct_CC=$CC
3495
  # Extract the first word of "gcc", so it can be a program name with args.
3496
set dummy gcc; ac_word=$2
3497
echo "$as_me:$LINENO: checking for $ac_word" >&5
3498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
3501
else
3502
  if test -n "$ac_ct_CC"; then
3503
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504
else
3505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506
for as_dir in $PATH
3507
do
3508
  IFS=$as_save_IFS
3509
  test -z "$as_dir" && as_dir=.
3510
  for ac_exec_ext in '' $ac_executable_extensions; do
3511
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512
    ac_cv_prog_ac_ct_CC="gcc"
3513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514
    break 2
3515
  fi
3516
done
3517
done
3518
 
3519
fi
3520
fi
3521
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522
if test -n "$ac_ct_CC"; then
3523
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3524
echo "${ECHO_T}$ac_ct_CC" >&6
3525
else
3526
  echo "$as_me:$LINENO: result: no" >&5
3527
echo "${ECHO_T}no" >&6
3528
fi
3529
 
3530
  CC=$ac_ct_CC
3531
else
3532
  CC="$ac_cv_prog_CC"
3533
fi
3534
 
3535
if test -z "$CC"; then
3536
  if test -n "$ac_tool_prefix"; then
3537
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538
set dummy ${ac_tool_prefix}cc; ac_word=$2
3539
echo "$as_me:$LINENO: checking for $ac_word" >&5
3540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541
if test "${ac_cv_prog_CC+set}" = set; then
3542
  echo $ECHO_N "(cached) $ECHO_C" >&6
3543
else
3544
  if test -n "$CC"; then
3545
  ac_cv_prog_CC="$CC" # Let the user override the test.
3546
else
3547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548
for as_dir in $PATH
3549
do
3550
  IFS=$as_save_IFS
3551
  test -z "$as_dir" && as_dir=.
3552
  for ac_exec_ext in '' $ac_executable_extensions; do
3553
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3555
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556
    break 2
3557
  fi
3558
done
3559
done
3560
 
3561
fi
3562
fi
3563
CC=$ac_cv_prog_CC
3564
if test -n "$CC"; then
3565
  echo "$as_me:$LINENO: result: $CC" >&5
3566
echo "${ECHO_T}$CC" >&6
3567
else
3568
  echo "$as_me:$LINENO: result: no" >&5
3569
echo "${ECHO_T}no" >&6
3570
fi
3571
 
3572
fi
3573
if test -z "$ac_cv_prog_CC"; then
3574
  ac_ct_CC=$CC
3575
  # Extract the first word of "cc", so it can be a program name with args.
3576
set dummy cc; ac_word=$2
3577
echo "$as_me:$LINENO: checking for $ac_word" >&5
3578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3580
  echo $ECHO_N "(cached) $ECHO_C" >&6
3581
else
3582
  if test -n "$ac_ct_CC"; then
3583
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584
else
3585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586
for as_dir in $PATH
3587
do
3588
  IFS=$as_save_IFS
3589
  test -z "$as_dir" && as_dir=.
3590
  for ac_exec_ext in '' $ac_executable_extensions; do
3591
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592
    ac_cv_prog_ac_ct_CC="cc"
3593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594
    break 2
3595
  fi
3596
done
3597
done
3598
 
3599
fi
3600
fi
3601
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602
if test -n "$ac_ct_CC"; then
3603
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604
echo "${ECHO_T}$ac_ct_CC" >&6
3605
else
3606
  echo "$as_me:$LINENO: result: no" >&5
3607
echo "${ECHO_T}no" >&6
3608
fi
3609
 
3610
  CC=$ac_ct_CC
3611
else
3612
  CC="$ac_cv_prog_CC"
3613
fi
3614
 
3615
fi
3616
if test -z "$CC"; then
3617
  # Extract the first word of "cc", so it can be a program name with args.
3618
set dummy cc; ac_word=$2
3619
echo "$as_me:$LINENO: checking for $ac_word" >&5
3620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621
if test "${ac_cv_prog_CC+set}" = set; then
3622
  echo $ECHO_N "(cached) $ECHO_C" >&6
3623
else
3624
  if test -n "$CC"; then
3625
  ac_cv_prog_CC="$CC" # Let the user override the test.
3626
else
3627
  ac_prog_rejected=no
3628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629
for as_dir in $PATH
3630
do
3631
  IFS=$as_save_IFS
3632
  test -z "$as_dir" && as_dir=.
3633
  for ac_exec_ext in '' $ac_executable_extensions; do
3634
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3636
       ac_prog_rejected=yes
3637
       continue
3638
     fi
3639
    ac_cv_prog_CC="cc"
3640
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641
    break 2
3642
  fi
3643
done
3644
done
3645
 
3646
if test $ac_prog_rejected = yes; then
3647
  # We found a bogon in the path, so make sure we never use it.
3648
  set dummy $ac_cv_prog_CC
3649
  shift
3650
  if test $# != 0; then
3651
    # We chose a different compiler from the bogus one.
3652
    # However, it has the same basename, so the bogon will be chosen
3653
    # first if we set CC to just the basename; use the full file name.
3654
    shift
3655
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656
  fi
3657
fi
3658
fi
3659
fi
3660
CC=$ac_cv_prog_CC
3661
if test -n "$CC"; then
3662
  echo "$as_me:$LINENO: result: $CC" >&5
3663
echo "${ECHO_T}$CC" >&6
3664
else
3665
  echo "$as_me:$LINENO: result: no" >&5
3666
echo "${ECHO_T}no" >&6
3667
fi
3668
 
3669
fi
3670
if test -z "$CC"; then
3671
  if test -n "$ac_tool_prefix"; then
3672
  for ac_prog in cl
3673
  do
3674
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676
echo "$as_me:$LINENO: checking for $ac_word" >&5
3677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678
if test "${ac_cv_prog_CC+set}" = set; then
3679
  echo $ECHO_N "(cached) $ECHO_C" >&6
3680
else
3681
  if test -n "$CC"; then
3682
  ac_cv_prog_CC="$CC" # Let the user override the test.
3683
else
3684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685
for as_dir in $PATH
3686
do
3687
  IFS=$as_save_IFS
3688
  test -z "$as_dir" && as_dir=.
3689
  for ac_exec_ext in '' $ac_executable_extensions; do
3690
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693
    break 2
3694
  fi
3695
done
3696
done
3697
 
3698
fi
3699
fi
3700
CC=$ac_cv_prog_CC
3701
if test -n "$CC"; then
3702
  echo "$as_me:$LINENO: result: $CC" >&5
3703
echo "${ECHO_T}$CC" >&6
3704
else
3705
  echo "$as_me:$LINENO: result: no" >&5
3706
echo "${ECHO_T}no" >&6
3707
fi
3708
 
3709
    test -n "$CC" && break
3710
  done
3711
fi
3712
if test -z "$CC"; then
3713
  ac_ct_CC=$CC
3714
  for ac_prog in cl
3715
do
3716
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3717
set dummy $ac_prog; ac_word=$2
3718
echo "$as_me:$LINENO: checking for $ac_word" >&5
3719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3721
  echo $ECHO_N "(cached) $ECHO_C" >&6
3722
else
3723
  if test -n "$ac_ct_CC"; then
3724
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3725
else
3726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727
for as_dir in $PATH
3728
do
3729
  IFS=$as_save_IFS
3730
  test -z "$as_dir" && as_dir=.
3731
  for ac_exec_ext in '' $ac_executable_extensions; do
3732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733
    ac_cv_prog_ac_ct_CC="$ac_prog"
3734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735
    break 2
3736
  fi
3737
done
3738
done
3739
 
3740
fi
3741
fi
3742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743
if test -n "$ac_ct_CC"; then
3744
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3745
echo "${ECHO_T}$ac_ct_CC" >&6
3746
else
3747
  echo "$as_me:$LINENO: result: no" >&5
3748
echo "${ECHO_T}no" >&6
3749
fi
3750
 
3751
  test -n "$ac_ct_CC" && break
3752
done
3753
 
3754
  CC=$ac_ct_CC
3755
fi
3756
 
3757
fi
3758
 
3759
 
3760
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3761
See \`config.log' for more details." >&5
3762
echo "$as_me: error: no acceptable C compiler found in \$PATH
3763
See \`config.log' for more details." >&2;}
3764
   { (exit 1); exit 1; }; }
3765
 
3766
# Provide some information about the compiler.
3767
echo "$as_me:$LINENO:" \
3768
     "checking for C compiler version" >&5
3769
ac_compiler=`set X $ac_compile; echo $2`
3770
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3771
  (eval $ac_compiler --version &5) 2>&5
3772
  ac_status=$?
3773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774
  (exit $ac_status); }
3775
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3776
  (eval $ac_compiler -v &5) 2>&5
3777
  ac_status=$?
3778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
  (exit $ac_status); }
3780
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3781
  (eval $ac_compiler -V &5) 2>&5
3782
  ac_status=$?
3783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
  (exit $ac_status); }
3785
 
3786
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3787
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3788
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3789
  echo $ECHO_N "(cached) $ECHO_C" >&6
3790
else
3791
  cat >conftest.$ac_ext <<_ACEOF
3792
/* confdefs.h.  */
3793
_ACEOF
3794
cat confdefs.h >>conftest.$ac_ext
3795
cat >>conftest.$ac_ext <<_ACEOF
3796
/* end confdefs.h.  */
3797
 
3798
int
3799
main ()
3800
{
3801
#ifndef __GNUC__
3802
       choke me
3803
#endif
3804
 
3805
  ;
3806
  return 0;
3807
}
3808
_ACEOF
3809
rm -f conftest.$ac_objext
3810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811
  (eval $ac_compile) 2>conftest.er1
3812
  ac_status=$?
3813
  grep -v '^ *+' conftest.er1 >conftest.err
3814
  rm -f conftest.er1
3815
  cat conftest.err >&5
3816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817
  (exit $ac_status); } &&
3818
         { ac_try='test -z "$ac_c_werror_flag"
3819
                         || test ! -s conftest.err'
3820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821
  (eval $ac_try) 2>&5
3822
  ac_status=$?
3823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824
  (exit $ac_status); }; } &&
3825
         { ac_try='test -s conftest.$ac_objext'
3826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827
  (eval $ac_try) 2>&5
3828
  ac_status=$?
3829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830
  (exit $ac_status); }; }; then
3831
  ac_compiler_gnu=yes
3832
else
3833
  echo "$as_me: failed program was:" >&5
3834
sed 's/^/| /' conftest.$ac_ext >&5
3835
 
3836
ac_compiler_gnu=no
3837
fi
3838
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3839
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840
 
3841
fi
3842
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3843
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3844
GCC=`test $ac_compiler_gnu = yes && echo yes`
3845
ac_test_CFLAGS=${CFLAGS+set}
3846
ac_save_CFLAGS=$CFLAGS
3847
CFLAGS="-g"
3848
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3849
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3850
if test "${ac_cv_prog_cc_g+set}" = set; then
3851
  echo $ECHO_N "(cached) $ECHO_C" >&6
3852
else
3853
  cat >conftest.$ac_ext <<_ACEOF
3854
/* confdefs.h.  */
3855
_ACEOF
3856
cat confdefs.h >>conftest.$ac_ext
3857
cat >>conftest.$ac_ext <<_ACEOF
3858
/* end confdefs.h.  */
3859
 
3860
int
3861
main ()
3862
{
3863
 
3864
  ;
3865
  return 0;
3866
}
3867
_ACEOF
3868
rm -f conftest.$ac_objext
3869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870
  (eval $ac_compile) 2>conftest.er1
3871
  ac_status=$?
3872
  grep -v '^ *+' conftest.er1 >conftest.err
3873
  rm -f conftest.er1
3874
  cat conftest.err >&5
3875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
  (exit $ac_status); } &&
3877
         { ac_try='test -z "$ac_c_werror_flag"
3878
                         || test ! -s conftest.err'
3879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880
  (eval $ac_try) 2>&5
3881
  ac_status=$?
3882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883
  (exit $ac_status); }; } &&
3884
         { ac_try='test -s conftest.$ac_objext'
3885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886
  (eval $ac_try) 2>&5
3887
  ac_status=$?
3888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889
  (exit $ac_status); }; }; then
3890
  ac_cv_prog_cc_g=yes
3891
else
3892
  echo "$as_me: failed program was:" >&5
3893
sed 's/^/| /' conftest.$ac_ext >&5
3894
 
3895
ac_cv_prog_cc_g=no
3896
fi
3897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898
fi
3899
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3900
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3901
if test "$ac_test_CFLAGS" = set; then
3902
  CFLAGS=$ac_save_CFLAGS
3903
elif test $ac_cv_prog_cc_g = yes; then
3904
  if test "$GCC" = yes; then
3905
    CFLAGS="-g -O2"
3906
  else
3907
    CFLAGS="-g"
3908
  fi
3909
else
3910
  if test "$GCC" = yes; then
3911
    CFLAGS="-O2"
3912
  else
3913
    CFLAGS=
3914
  fi
3915
fi
3916
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3917
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3918
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3919
  echo $ECHO_N "(cached) $ECHO_C" >&6
3920
else
3921
  ac_cv_prog_cc_stdc=no
3922
ac_save_CC=$CC
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
#include 
3930
#include 
3931
#include 
3932
#include 
3933
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3934
struct buf { int x; };
3935
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936
static char *e (p, i)
3937
     char **p;
3938
     int i;
3939
{
3940
  return p[i];
3941
}
3942
static char *f (char * (*g) (char **, int), char **p, ...)
3943
{
3944
  char *s;
3945
  va_list v;
3946
  va_start (v,p);
3947
  s = g (p, va_arg (v,int));
3948
  va_end (v);
3949
  return s;
3950
}
3951
 
3952
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3953
   function prototypes and stuff, but not '\xHH' hex character constants.
3954
   These don't provoke an error unfortunately, instead are silently treated
3955
   as 'x'.  The following induces an error, until -std1 is added to get
3956
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3957
   array size at least.  It's necessary to write '\x00'==0 to get something
3958
   that's true only with -std1.  */
3959
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3960
 
3961
int test (int i, double x);
3962
struct s1 {int (*f) (int a);};
3963
struct s2 {int (*f) (double a);};
3964
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965
int argc;
3966
char **argv;
3967
int
3968
main ()
3969
{
3970
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3971
  ;
3972
  return 0;
3973
}
3974
_ACEOF
3975
# Don't try gcc -ansi; that turns off useful extensions and
3976
# breaks some systems' header files.
3977
# AIX                   -qlanglvl=ansi
3978
# Ultrix and OSF/1      -std1
3979
# HP-UX 10.20 and later -Ae
3980
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3981
# SVR4                  -Xc -D__EXTENSIONS__
3982
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983
do
3984
  CC="$ac_save_CC $ac_arg"
3985
  rm -f conftest.$ac_objext
3986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987
  (eval $ac_compile) 2>conftest.er1
3988
  ac_status=$?
3989
  grep -v '^ *+' conftest.er1 >conftest.err
3990
  rm -f conftest.er1
3991
  cat conftest.err >&5
3992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
  (exit $ac_status); } &&
3994
         { ac_try='test -z "$ac_c_werror_flag"
3995
                         || test ! -s conftest.err'
3996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997
  (eval $ac_try) 2>&5
3998
  ac_status=$?
3999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000
  (exit $ac_status); }; } &&
4001
         { ac_try='test -s conftest.$ac_objext'
4002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003
  (eval $ac_try) 2>&5
4004
  ac_status=$?
4005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006
  (exit $ac_status); }; }; then
4007
  ac_cv_prog_cc_stdc=$ac_arg
4008
break
4009
else
4010
  echo "$as_me: failed program was:" >&5
4011
sed 's/^/| /' conftest.$ac_ext >&5
4012
 
4013
fi
4014
rm -f conftest.err conftest.$ac_objext
4015
done
4016
rm -f conftest.$ac_ext conftest.$ac_objext
4017
CC=$ac_save_CC
4018
 
4019
fi
4020
 
4021
case "x$ac_cv_prog_cc_stdc" in
4022
  x|xno)
4023
    echo "$as_me:$LINENO: result: none needed" >&5
4024
echo "${ECHO_T}none needed" >&6 ;;
4025
  *)
4026
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4027
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4028
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4029
esac
4030
 
4031
# Some people use a C++ compiler to compile C.  Since we use `exit',
4032
# in C++ we need to declare it.  In case someone uses the same compiler
4033
# for both compiling C and C++ we need to have the C++ compiler decide
4034
# the declaration of exit, since it's the most demanding environment.
4035
cat >conftest.$ac_ext <<_ACEOF
4036
#ifndef __cplusplus
4037
  choke me
4038
#endif
4039
_ACEOF
4040
rm -f conftest.$ac_objext
4041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042
  (eval $ac_compile) 2>conftest.er1
4043
  ac_status=$?
4044
  grep -v '^ *+' conftest.er1 >conftest.err
4045
  rm -f conftest.er1
4046
  cat conftest.err >&5
4047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048
  (exit $ac_status); } &&
4049
         { ac_try='test -z "$ac_c_werror_flag"
4050
                         || test ! -s conftest.err'
4051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052
  (eval $ac_try) 2>&5
4053
  ac_status=$?
4054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055
  (exit $ac_status); }; } &&
4056
         { ac_try='test -s conftest.$ac_objext'
4057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058
  (eval $ac_try) 2>&5
4059
  ac_status=$?
4060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061
  (exit $ac_status); }; }; then
4062
  for ac_declaration in \
4063
   '' \
4064
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4065
   'extern "C" void std::exit (int); using std::exit;' \
4066
   'extern "C" void exit (int) throw ();' \
4067
   'extern "C" void exit (int);' \
4068
   'void exit (int);'
4069
do
4070
  cat >conftest.$ac_ext <<_ACEOF
4071
/* confdefs.h.  */
4072
_ACEOF
4073
cat confdefs.h >>conftest.$ac_ext
4074
cat >>conftest.$ac_ext <<_ACEOF
4075
/* end confdefs.h.  */
4076
$ac_declaration
4077
#include 
4078
int
4079
main ()
4080
{
4081
exit (42);
4082
  ;
4083
  return 0;
4084
}
4085
_ACEOF
4086
rm -f conftest.$ac_objext
4087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088
  (eval $ac_compile) 2>conftest.er1
4089
  ac_status=$?
4090
  grep -v '^ *+' conftest.er1 >conftest.err
4091
  rm -f conftest.er1
4092
  cat conftest.err >&5
4093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094
  (exit $ac_status); } &&
4095
         { ac_try='test -z "$ac_c_werror_flag"
4096
                         || test ! -s conftest.err'
4097
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098
  (eval $ac_try) 2>&5
4099
  ac_status=$?
4100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
  (exit $ac_status); }; } &&
4102
         { ac_try='test -s conftest.$ac_objext'
4103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104
  (eval $ac_try) 2>&5
4105
  ac_status=$?
4106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107
  (exit $ac_status); }; }; then
4108
  :
4109
else
4110
  echo "$as_me: failed program was:" >&5
4111
sed 's/^/| /' conftest.$ac_ext >&5
4112
 
4113
continue
4114
fi
4115
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116
  cat >conftest.$ac_ext <<_ACEOF
4117
/* confdefs.h.  */
4118
_ACEOF
4119
cat confdefs.h >>conftest.$ac_ext
4120
cat >>conftest.$ac_ext <<_ACEOF
4121
/* end confdefs.h.  */
4122
$ac_declaration
4123
int
4124
main ()
4125
{
4126
exit (42);
4127
  ;
4128
  return 0;
4129
}
4130
_ACEOF
4131
rm -f conftest.$ac_objext
4132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133
  (eval $ac_compile) 2>conftest.er1
4134
  ac_status=$?
4135
  grep -v '^ *+' conftest.er1 >conftest.err
4136
  rm -f conftest.er1
4137
  cat conftest.err >&5
4138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139
  (exit $ac_status); } &&
4140
         { ac_try='test -z "$ac_c_werror_flag"
4141
                         || test ! -s conftest.err'
4142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143
  (eval $ac_try) 2>&5
4144
  ac_status=$?
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146
  (exit $ac_status); }; } &&
4147
         { ac_try='test -s conftest.$ac_objext'
4148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149
  (eval $ac_try) 2>&5
4150
  ac_status=$?
4151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152
  (exit $ac_status); }; }; then
4153
  break
4154
else
4155
  echo "$as_me: failed program was:" >&5
4156
sed 's/^/| /' conftest.$ac_ext >&5
4157
 
4158
fi
4159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160
done
4161
rm -f conftest*
4162
if test -n "$ac_declaration"; then
4163
  echo '#ifdef __cplusplus' >>confdefs.h
4164
  echo $ac_declaration      >>confdefs.h
4165
  echo '#endif'             >>confdefs.h
4166
fi
4167
 
4168
else
4169
  echo "$as_me: failed program was:" >&5
4170
sed 's/^/| /' conftest.$ac_ext >&5
4171
 
4172
fi
4173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174
ac_ext=c
4175
ac_cpp='$CPP $CPPFLAGS'
4176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
 
4180
 
4181
cat >>confdefs.h <<\_ACEOF
4182
#define _GNU_SOURCE 1
4183
_ACEOF
4184
 
4185
 
4186
 
4187
 
4188
 
4189
macro_version='2.1a'
4190
macro_revision='1.2435'
4191
 
4192
 
4193
 
4194
 
4195
 
4196
 
4197
 
4198
 
4199
 
4200
 
4201
 
4202
 
4203
ltmain="$ac_aux_dir/ltmain.sh"
4204
 
4205
# Set options
4206
 
4207
enable_dlopen=no
4208
 
4209
 
4210
enable_win32_dll=no
4211
 
4212
 
4213
 
4214
# Check whether --enable-static or --disable-static was given.
4215
if test "${enable_static+set}" = set; then
4216
  enableval="$enable_static"
4217
  p=${PACKAGE-default}
4218
    case $enableval in
4219
    yes) enable_static=yes ;;
4220
    no) enable_static=no ;;
4221
    *)
4222
     enable_static=no
4223
      # Look at the argument we got.  We use all the common list separators.
4224
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4225
      for pkg in $enableval; do
4226
        IFS="$lt_save_ifs"
4227
        if test "X$pkg" = "X$p"; then
4228
          enable_static=yes
4229
        fi
4230
      done
4231
      IFS="$lt_save_ifs"
4232
      ;;
4233
    esac
4234
else
4235
  enable_static=yes
4236
fi;
4237
 
4238
 
4239
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
 
4246
# Check whether --with-pic or --without-pic was given.
4247
if test "${with_pic+set}" = set; then
4248
  withval="$with_pic"
4249
  pic_mode="$withval"
4250
else
4251
  pic_mode=default
4252
fi;
4253
 
4254
test -z "$pic_mode" && pic_mode=default
4255
 
4256
 
4257
 
4258
 
4259
 
4260
 
4261
 
4262
# Check whether --enable-fast-install or --disable-fast-install was given.
4263
if test "${enable_fast_install+set}" = set; then
4264
  enableval="$enable_fast_install"
4265
  p=${PACKAGE-default}
4266
    case $enableval in
4267
    yes) enable_fast_install=yes ;;
4268
    no) enable_fast_install=no ;;
4269
    *)
4270
      enable_fast_install=no
4271
      # Look at the argument we got.  We use all the common list separators.
4272
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273
      for pkg in $enableval; do
4274
        IFS="$lt_save_ifs"
4275
        if test "X$pkg" = "X$p"; then
4276
          enable_fast_install=yes
4277
        fi
4278
      done
4279
      IFS="$lt_save_ifs"
4280
      ;;
4281
    esac
4282
else
4283
  enable_fast_install=yes
4284
fi;
4285
 
4286
 
4287
 
4288
 
4289
 
4290
 
4291
 
4292
 
4293
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4294
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4295
if test "${lt_cv_path_SED+set}" = set; then
4296
  echo $ECHO_N "(cached) $ECHO_C" >&6
4297
else
4298
  # Loop through the user's path and test for sed and gsed.
4299
# Then use that list of sed's as ones to test for truncation.
4300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301
for as_dir in $PATH
4302
do
4303
  IFS=$as_save_IFS
4304
  test -z "$as_dir" && as_dir=.
4305
  for lt_ac_prog in sed gsed; do
4306
    for ac_exec_ext in '' $ac_executable_extensions; do
4307
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4308
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4309
      fi
4310
    done
4311
  done
4312
done
4313
IFS=$as_save_IFS
4314
lt_ac_max=0
4315
lt_ac_count=0
4316
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4317
# along with /bin/sed that truncates output.
4318
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4319
  test ! -f $lt_ac_sed && continue
4320
  cat /dev/null > conftest.in
4321
  lt_ac_count=0
4322
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4323
  # Check for GNU sed and select it if it is found.
4324
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4325
    lt_cv_path_SED=$lt_ac_sed
4326
    break
4327
  fi
4328
  while true; do
4329
    cat conftest.in conftest.in >conftest.tmp
4330
    mv conftest.tmp conftest.in
4331
    cp conftest.in conftest.nl
4332
    echo >>conftest.nl
4333
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4334
    cmp -s conftest.out conftest.nl || break
4335
    # 10000 chars as input seems more than enough
4336
    test $lt_ac_count -gt 10 && break
4337
    lt_ac_count=`expr $lt_ac_count + 1`
4338
    if test $lt_ac_count -gt $lt_ac_max; then
4339
      lt_ac_max=$lt_ac_count
4340
      lt_cv_path_SED=$lt_ac_sed
4341
    fi
4342
  done
4343
done
4344
 
4345
fi
4346
 
4347
SED=$lt_cv_path_SED
4348
 
4349
echo "$as_me:$LINENO: result: $SED" >&5
4350
echo "${ECHO_T}$SED" >&6
4351
 
4352
test -z "$SED" && SED=sed
4353
Xsed="$SED -e 1s/^X//"
4354
 
4355
 
4356
 
4357
 
4358
 
4359
 
4360
 
4361
 
4362
 
4363
 
4364
 
4365
echo "$as_me:$LINENO: checking for egrep" >&5
4366
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4367
if test "${ac_cv_prog_egrep+set}" = set; then
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
4369
else
4370
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4371
    then ac_cv_prog_egrep='grep -E'
4372
    else ac_cv_prog_egrep='egrep'
4373
    fi
4374
fi
4375
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4376
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4377
 EGREP=$ac_cv_prog_egrep
4378
 
4379
 
4380
echo "$as_me:$LINENO: checking for fgrep" >&5
4381
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4382
if test "${ac_cv_prog_fgrep+set}" = set; then
4383
  echo $ECHO_N "(cached) $ECHO_C" >&6
4384
else
4385
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4386
    then ac_cv_prog_fgrep='grep -F'
4387
    else ac_cv_prog_fgrep='fgrep'
4388
    fi
4389
fi
4390
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4391
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4392
 FGREP=$ac_cv_prog_fgrep
4393
 
4394
 
4395
test -z "$GREP" && GREP=grep
4396
 
4397
 
4398
 
4399
 
4400
 
4401
 
4402
 
4403
 
4404
 
4405
 
4406
 
4407
 
4408
 
4409
 
4410
 
4411
 
4412
 
4413
 
4414
 
4415
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4416
if test "${with_gnu_ld+set}" = set; then
4417
  withval="$with_gnu_ld"
4418
  test "$withval" = no || with_gnu_ld=yes
4419
else
4420
  with_gnu_ld=no
4421
fi;
4422
ac_prog=ld
4423
if test "$GCC" = yes; then
4424
  # Check if gcc -print-prog-name=ld gives a path.
4425
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4426
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4427
  case $host in
4428
  *-*-mingw*)
4429
    # gcc leaves a trailing carriage return which upsets mingw
4430
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4431
  *)
4432
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4433
  esac
4434
  case $ac_prog in
4435
    # Accept absolute paths.
4436
    [\\/]* | ?:[\\/]*)
4437
      re_direlt='/[^/][^/]*/\.\./'
4438
      # Canonicalize the pathname of ld
4439
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4440
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4441
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4442
      done
4443
      test -z "$LD" && LD="$ac_prog"
4444
      ;;
4445
  "")
4446
    # If it fails, then pretend we aren't using GCC.
4447
    ac_prog=ld
4448
    ;;
4449
  *)
4450
    # If it is relative, then search for the first ld in PATH.
4451
    with_gnu_ld=unknown
4452
    ;;
4453
  esac
4454
elif test "$with_gnu_ld" = yes; then
4455
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4456
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4457
else
4458
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4459
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4460
fi
4461
if test "${lt_cv_path_LD+set}" = set; then
4462
  echo $ECHO_N "(cached) $ECHO_C" >&6
4463
else
4464
  if test -z "$LD"; then
4465
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4466
  for ac_dir in $PATH; do
4467
    IFS="$lt_save_ifs"
4468
    test -z "$ac_dir" && ac_dir=.
4469
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4470
      lt_cv_path_LD="$ac_dir/$ac_prog"
4471
      # Check to see if the program is GNU ld.  I'd rather use --version,
4472
      # but apparently some variants of GNU ld only accept -v.
4473
      # Break only if it was the GNU/non-GNU ld that we prefer.
4474
      case `"$lt_cv_path_LD" -v 2>&1 
4475
      *GNU* | *'with BFD'*)
4476
        test "$with_gnu_ld" != no && break
4477
        ;;
4478
      *)
4479
        test "$with_gnu_ld" != yes && break
4480
        ;;
4481
      esac
4482
    fi
4483
  done
4484
  IFS="$lt_save_ifs"
4485
else
4486
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4487
fi
4488
fi
4489
 
4490
LD="$lt_cv_path_LD"
4491
if test -n "$LD"; then
4492
  echo "$as_me:$LINENO: result: $LD" >&5
4493
echo "${ECHO_T}$LD" >&6
4494
else
4495
  echo "$as_me:$LINENO: result: no" >&5
4496
echo "${ECHO_T}no" >&6
4497
fi
4498
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4499
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4500
   { (exit 1); exit 1; }; }
4501
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4502
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4503
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4504
  echo $ECHO_N "(cached) $ECHO_C" >&6
4505
else
4506
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4507
case `$LD -v 2>&1 
4508
*GNU* | *'with BFD'*)
4509
  lt_cv_prog_gnu_ld=yes
4510
  ;;
4511
*)
4512
  lt_cv_prog_gnu_ld=no
4513
  ;;
4514
esac
4515
fi
4516
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4517
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4518
with_gnu_ld=$lt_cv_prog_gnu_ld
4519
 
4520
 
4521
 
4522
 
4523
 
4524
 
4525
 
4526
 
4527
 
4528
 
4529
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4530
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4531
if test "${lt_cv_path_NM+set}" = set; then
4532
  echo $ECHO_N "(cached) $ECHO_C" >&6
4533
else
4534
  if test -n "$NM"; then
4535
  # Let the user override the test.
4536
  lt_cv_path_NM="$NM"
4537
else
4538
  lt_nm_to_check="${ac_tool_prefix}nm"
4539
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4540
    lt_nm_to_check="$lt_nm_to_check nm"
4541
  fi
4542
  for lt_tmp_nm in $lt_nm_to_check; do
4543
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4544
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4545
      IFS="$lt_save_ifs"
4546
      test -z "$ac_dir" && ac_dir=.
4547
      tmp_nm="$ac_dir/$lt_tmp_nm"
4548
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4549
        # Check to see if the nm accepts a BSD-compat flag.
4550
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4551
        #   nm: unknown option "B" ignored
4552
        # Tru64's nm complains that /dev/null is an invalid object file
4553
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4554
        */dev/null* | *'Invalid file or object type'*)
4555
          lt_cv_path_NM="$tmp_nm -B"
4556
          break
4557
          ;;
4558
        *)
4559
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4560
          */dev/null*)
4561
            lt_cv_path_NM="$tmp_nm -p"
4562
            break
4563
            ;;
4564
          *)
4565
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4566
            continue # so that we can try to find one that supports BSD flags
4567
            ;;
4568
          esac
4569
          ;;
4570
        esac
4571
      fi
4572
    done
4573
    IFS="$lt_save_ifs"
4574
  done
4575
  : ${lt_cv_path_NM=no}
4576
fi
4577
fi
4578
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4579
echo "${ECHO_T}$lt_cv_path_NM" >&6
4580
if test "$lt_cv_path_NM" != "no"; then
4581
  NM="$lt_cv_path_NM"
4582
else
4583
  # Didn't find any BSD compatible name lister, look for dumpbin.
4584
  if test -n "$ac_tool_prefix"; then
4585
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4586
  do
4587
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589
echo "$as_me:$LINENO: checking for $ac_word" >&5
4590
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4591
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4592
  echo $ECHO_N "(cached) $ECHO_C" >&6
4593
else
4594
  if test -n "$DUMPBIN"; then
4595
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4596
else
4597
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598
for as_dir in $PATH
4599
do
4600
  IFS=$as_save_IFS
4601
  test -z "$as_dir" && as_dir=.
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
4603
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4605
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606
    break 2
4607
  fi
4608
done
4609
done
4610
 
4611
fi
4612
fi
4613
DUMPBIN=$ac_cv_prog_DUMPBIN
4614
if test -n "$DUMPBIN"; then
4615
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4616
echo "${ECHO_T}$DUMPBIN" >&6
4617
else
4618
  echo "$as_me:$LINENO: result: no" >&5
4619
echo "${ECHO_T}no" >&6
4620
fi
4621
 
4622
    test -n "$DUMPBIN" && break
4623
  done
4624
fi
4625
if test -z "$DUMPBIN"; then
4626
  ac_ct_DUMPBIN=$DUMPBIN
4627
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4628
do
4629
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4630
set dummy $ac_prog; ac_word=$2
4631
echo "$as_me:$LINENO: checking for $ac_word" >&5
4632
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4634
  echo $ECHO_N "(cached) $ECHO_C" >&6
4635
else
4636
  if test -n "$ac_ct_DUMPBIN"; then
4637
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4638
else
4639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640
for as_dir in $PATH
4641
do
4642
  IFS=$as_save_IFS
4643
  test -z "$as_dir" && as_dir=.
4644
  for ac_exec_ext in '' $ac_executable_extensions; do
4645
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4647
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648
    break 2
4649
  fi
4650
done
4651
done
4652
 
4653
fi
4654
fi
4655
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4656
if test -n "$ac_ct_DUMPBIN"; then
4657
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4658
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4659
else
4660
  echo "$as_me:$LINENO: result: no" >&5
4661
echo "${ECHO_T}no" >&6
4662
fi
4663
 
4664
  test -n "$ac_ct_DUMPBIN" && break
4665
done
4666
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4667
 
4668
  DUMPBIN=$ac_ct_DUMPBIN
4669
fi
4670
 
4671
 
4672
  if test "$DUMPBIN" != ":"; then
4673
    NM="$DUMPBIN"
4674
  fi
4675
fi
4676
test -z "$NM" && NM=nm
4677
 
4678
 
4679
 
4680
 
4681
 
4682
 
4683
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4684
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4685
if test "${lt_cv_nm_interface+set}" = set; then
4686
  echo $ECHO_N "(cached) $ECHO_C" >&6
4687
else
4688
  lt_cv_nm_interface="BSD nm"
4689
  echo "int some_variable = 0;" > conftest.$ac_ext
4690
  (eval echo "\"\$as_me:4690: $ac_compile\"" >&5)
4691
  (eval "$ac_compile" 2>conftest.err)
4692
  cat conftest.err >&5
4693
  (eval echo "\"\$as_me:4693: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4694
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4695
  cat conftest.err >&5
4696
  (eval echo "\"\$as_me:4696: output\"" >&5)
4697
  cat conftest.out >&5
4698
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4699
    lt_cv_nm_interface="MS dumpbin"
4700
  fi
4701
  rm -f conftest*
4702
fi
4703
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4704
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4705
 
4706
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4708
LN_S=$as_ln_s
4709
if test "$LN_S" = "ln -s"; then
4710
  echo "$as_me:$LINENO: result: yes" >&5
4711
echo "${ECHO_T}yes" >&6
4712
else
4713
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714
echo "${ECHO_T}no, using $LN_S" >&6
4715
fi
4716
 
4717
# find the maximum length of command line arguments
4718
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4719
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4720
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4721
  echo $ECHO_N "(cached) $ECHO_C" >&6
4722
else
4723
    i=0
4724
  teststring="ABCD"
4725
 
4726
  case $build_os in
4727
  msdosdjgpp*)
4728
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4729
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4730
    # during glob expansion).  Even if it were fixed, the result of this
4731
    # check would be larger than it should be.
4732
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4733
    ;;
4734
 
4735
  gnu*)
4736
    # Under GNU Hurd, this test is not required because there is
4737
    # no limit to the length of command line arguments.
4738
    # Libtool will interpret -1 as no limit whatsoever
4739
    lt_cv_sys_max_cmd_len=-1;
4740
    ;;
4741
 
4742
  cygwin* | mingw*)
4743
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4744
    # about 5 minutes as the teststring grows exponentially.
4745
    # Worse, since 9x/ME are not pre-emptively multitasking,
4746
    # you end up with a "frozen" computer, even though with patience
4747
    # the test eventually succeeds (with a max line length of 256k).
4748
    # Instead, let's just punt: use the minimum linelength reported by
4749
    # all of the supported platforms: 8192 (on NT/2K/XP).
4750
    lt_cv_sys_max_cmd_len=8192;
4751
    ;;
4752
 
4753
  amigaos*)
4754
    # On AmigaOS with pdksh, this test takes hours, literally.
4755
    # So we just punt and use a minimum line length of 8192.
4756
    lt_cv_sys_max_cmd_len=8192;
4757
    ;;
4758
 
4759
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4760
    # This has been around since 386BSD, at least.  Likely further.
4761
    if test -x /sbin/sysctl; then
4762
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4763
    elif test -x /usr/sbin/sysctl; then
4764
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4765
    else
4766
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4767
    fi
4768
    # And add a safety zone
4769
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4770
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4771
    ;;
4772
 
4773
  interix*)
4774
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4775
    lt_cv_sys_max_cmd_len=196608
4776
    ;;
4777
 
4778
  osf*)
4779
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4780
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4781
    # nice to cause kernel panics so lets avoid the loop below.
4782
    # First set a reasonable default.
4783
    lt_cv_sys_max_cmd_len=16384
4784
    #
4785
    if test -x /sbin/sysconfig; then
4786
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4787
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4788
      esac
4789
    fi
4790
    ;;
4791
  sco3.2v5*)
4792
    lt_cv_sys_max_cmd_len=102400
4793
    ;;
4794
  sysv5* | sco5v6* | sysv4.2uw2*)
4795
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4796
    if test -n "$kargmax"; then
4797
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4798
    else
4799
      lt_cv_sys_max_cmd_len=32768
4800
    fi
4801
    ;;
4802
  *)
4803
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4804
    if test -n $lt_cv_sys_max_cmd_len; then
4805
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4806
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4807
    else
4808
      # Make teststring a little bigger before we do anything with it.
4809
      # a 1K string should be a reasonable start.
4810
      for i in 1 2 3 4 5 6 7 8 ; do
4811
        teststring=$teststring$teststring
4812
      done
4813
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4814
      # If test is not a shell built-in, we'll probably end up computing a
4815
      # maximum length that is only half of the actual maximum length, but
4816
      # we can't tell.
4817
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4818
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4819
              test $i != 17 # 1/2 MB should be enough
4820
      do
4821
        i=`expr $i + 1`
4822
        teststring=$teststring$teststring
4823
      done
4824
      # Only check the string length outside the loop.
4825
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4826
      teststring=
4827
      # Add a significant safety factor because C++ compilers can tack on
4828
      # massive amounts of additional arguments before passing them to the
4829
      # linker.  It appears as though 1/2 is a usable value.
4830
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4831
    fi
4832
    ;;
4833
  esac
4834
 
4835
fi
4836
 
4837
if test -n $lt_cv_sys_max_cmd_len ; then
4838
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4839
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4840
else
4841
  echo "$as_me:$LINENO: result: none" >&5
4842
echo "${ECHO_T}none" >&6
4843
fi
4844
max_cmd_len=$lt_cv_sys_max_cmd_len
4845
 
4846
 
4847
 
4848
 
4849
 
4850
 
4851
 
4852
: ${CP="cp -f"}
4853
: ${MV="mv -f"}
4854
: ${RM="rm -f"}
4855
 
4856
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4857
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4858
# Try some XSI features
4859
xsi_shell=no
4860
( _lt_dummy="a/b/c"
4861
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4862
      = c,a/b,, ) >/dev/null 2>&1 \
4863
  && xsi_shell=yes
4864
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4865
echo "${ECHO_T}$xsi_shell" >&6
4866
 
4867
 
4868
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4869
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4870
lt_shell_append=no
4871
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4872
    >/dev/null 2>&1 \
4873
  && lt_shell_append=yes
4874
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4875
echo "${ECHO_T}$lt_shell_append" >&6
4876
 
4877
 
4878
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879
  lt_unset=unset
4880
else
4881
  lt_unset=false
4882
fi
4883
 
4884
 
4885
 
4886
 
4887
 
4888
# test EBCDIC or ASCII
4889
case `echo X|tr X '\101'` in
4890
 A) # ASCII based system
4891
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4892
  lt_SP2NL='tr \040 \012'
4893
  lt_NL2SP='tr \015\012 \040\040'
4894
  ;;
4895
 *) # EBCDIC based system
4896
  lt_SP2NL='tr \100 \n'
4897
  lt_NL2SP='tr \r\n \100\100'
4898
  ;;
4899
esac
4900
 
4901
 
4902
 
4903
 
4904
 
4905
 
4906
 
4907
 
4908
 
4909
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4910
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4911
if test "${lt_cv_ld_reload_flag+set}" = set; then
4912
  echo $ECHO_N "(cached) $ECHO_C" >&6
4913
else
4914
  lt_cv_ld_reload_flag='-r'
4915
fi
4916
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4917
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4918
reload_flag=$lt_cv_ld_reload_flag
4919
case $reload_flag in
4920
"" | " "*) ;;
4921
*) reload_flag=" $reload_flag" ;;
4922
esac
4923
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4924
case $host_os in
4925
  darwin*)
4926
    if test "$GCC" = yes; then
4927
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4928
    else
4929
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4930
    fi
4931
    ;;
4932
esac
4933
 
4934
 
4935
 
4936
 
4937
 
4938
 
4939
 
4940
 
4941
 
4942
 
4943
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4944
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4945
if test "${lt_cv_deplibs_check_method+set}" = set; then
4946
  echo $ECHO_N "(cached) $ECHO_C" >&6
4947
else
4948
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4949
lt_cv_file_magic_test_file=
4950
lt_cv_deplibs_check_method='unknown'
4951
# Need to set the preceding variable on all platforms that support
4952
# interlibrary dependencies.
4953
# 'none' -- dependencies not supported.
4954
# `unknown' -- same as none, but documents that we really don't know.
4955
# 'pass_all' -- all dependencies passed with no checks.
4956
# 'test_compile' -- check by making test program.
4957
# 'file_magic [[regex]]' -- check by looking for files in library path
4958
# which responds to the $file_magic_cmd with a given extended regex.
4959
# If you have `file' or equivalent on your system and you're not sure
4960
# whether `pass_all' will *always* work, you probably want this one.
4961
 
4962
case $host_os in
4963
aix[4-9]*)
4964
  lt_cv_deplibs_check_method=pass_all
4965
  ;;
4966
 
4967
beos*)
4968
  lt_cv_deplibs_check_method=pass_all
4969
  ;;
4970
 
4971
bsdi[45]*)
4972
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4973
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4974
  lt_cv_file_magic_test_file=/shlib/libc.so
4975
  ;;
4976
 
4977
cygwin*)
4978
  # func_win32_libid is a shell function defined in ltmain.sh
4979
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4980
  lt_cv_file_magic_cmd='func_win32_libid'
4981
  ;;
4982
 
4983
mingw* | pw32*)
4984
  # Base MSYS/MinGW do not provide the 'file' command needed by
4985
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4986
  # unless we find 'file', for example because we are cross-compiling.
4987
  if ( file / ) >/dev/null 2>&1; then
4988
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989
    lt_cv_file_magic_cmd='func_win32_libid'
4990
  else
4991
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4992
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4993
  fi
4994
  ;;
4995
 
4996
darwin* | rhapsody*)
4997
  lt_cv_deplibs_check_method=pass_all
4998
  ;;
4999
 
5000
freebsd* | dragonfly*)
5001
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002
    case $host_cpu in
5003
    i*86 )
5004
      # Not sure whether the presence of OpenBSD here was a mistake.
5005
      # Let's accept both of them until this is cleared up.
5006
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5007
      lt_cv_file_magic_cmd=/usr/bin/file
5008
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5009
      ;;
5010
    esac
5011
  else
5012
    lt_cv_deplibs_check_method=pass_all
5013
  fi
5014
  ;;
5015
 
5016
gnu*)
5017
  lt_cv_deplibs_check_method=pass_all
5018
  ;;
5019
 
5020
hpux10.20* | hpux11*)
5021
  lt_cv_file_magic_cmd=/usr/bin/file
5022
  case $host_cpu in
5023
  ia64*)
5024
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5025
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026
    ;;
5027
  hppa*64*)
5028
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5029
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030
    ;;
5031
  *)
5032
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5033
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5034
    ;;
5035
  esac
5036
  ;;
5037
 
5038
interix[3-9]*)
5039
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5040
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5041
  ;;
5042
 
5043
irix5* | irix6* | nonstopux*)
5044
  case $LD in
5045
  *-32|*"-32 ") libmagic=32-bit;;
5046
  *-n32|*"-n32 ") libmagic=N32;;
5047
  *-64|*"-64 ") libmagic=64-bit;;
5048
  *) libmagic=never-match;;
5049
  esac
5050
  lt_cv_deplibs_check_method=pass_all
5051
  ;;
5052
 
5053
# This must be Linux ELF.
5054
linux* | k*bsd*-gnu)
5055
  lt_cv_deplibs_check_method=pass_all
5056
  ;;
5057
 
5058
netbsd*)
5059
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5060
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5061
  else
5062
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5063
  fi
5064
  ;;
5065
 
5066
newos6*)
5067
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5068
  lt_cv_file_magic_cmd=/usr/bin/file
5069
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5070
  ;;
5071
 
5072
*nto* | *qnx*)
5073
  lt_cv_deplibs_check_method=pass_all
5074
  ;;
5075
 
5076
openbsd*)
5077
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5078
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5079
  else
5080
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5081
  fi
5082
  ;;
5083
 
5084
osf3* | osf4* | osf5*)
5085
  lt_cv_deplibs_check_method=pass_all
5086
  ;;
5087
 
5088
rdos*)
5089
  lt_cv_deplibs_check_method=pass_all
5090
  ;;
5091
 
5092
solaris*)
5093
  lt_cv_deplibs_check_method=pass_all
5094
  ;;
5095
 
5096
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5097
  lt_cv_deplibs_check_method=pass_all
5098
  ;;
5099
 
5100
sysv4 | sysv4.3*)
5101
  case $host_vendor in
5102
  motorola)
5103
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5104
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5105
    ;;
5106
  ncr)
5107
    lt_cv_deplibs_check_method=pass_all
5108
    ;;
5109
  sequent)
5110
    lt_cv_file_magic_cmd='/bin/file'
5111
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5112
    ;;
5113
  sni)
5114
    lt_cv_file_magic_cmd='/bin/file'
5115
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5116
    lt_cv_file_magic_test_file=/lib/libc.so
5117
    ;;
5118
  siemens)
5119
    lt_cv_deplibs_check_method=pass_all
5120
    ;;
5121
  pc)
5122
    lt_cv_deplibs_check_method=pass_all
5123
    ;;
5124
  esac
5125
  ;;
5126
 
5127
tpf*)
5128
  lt_cv_deplibs_check_method=pass_all
5129
  ;;
5130
esac
5131
 
5132
fi
5133
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5134
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5135
file_magic_cmd=$lt_cv_file_magic_cmd
5136
deplibs_check_method=$lt_cv_deplibs_check_method
5137
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5138
 
5139
 
5140
 
5141
 
5142
 
5143
 
5144
 
5145
 
5146
 
5147
 
5148
 
5149
 
5150
if test -n "$ac_tool_prefix"; then
5151
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5152
set dummy ${ac_tool_prefix}ar; ac_word=$2
5153
echo "$as_me:$LINENO: checking for $ac_word" >&5
5154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155
if test "${ac_cv_prog_AR+set}" = set; then
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
5157
else
5158
  if test -n "$AR"; then
5159
  ac_cv_prog_AR="$AR" # Let the user override the test.
5160
else
5161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162
for as_dir in $PATH
5163
do
5164
  IFS=$as_save_IFS
5165
  test -z "$as_dir" && as_dir=.
5166
  for ac_exec_ext in '' $ac_executable_extensions; do
5167
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5169
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170
    break 2
5171
  fi
5172
done
5173
done
5174
 
5175
fi
5176
fi
5177
AR=$ac_cv_prog_AR
5178
if test -n "$AR"; then
5179
  echo "$as_me:$LINENO: result: $AR" >&5
5180
echo "${ECHO_T}$AR" >&6
5181
else
5182
  echo "$as_me:$LINENO: result: no" >&5
5183
echo "${ECHO_T}no" >&6
5184
fi
5185
 
5186
fi
5187
if test -z "$ac_cv_prog_AR"; then
5188
  ac_ct_AR=$AR
5189
  # Extract the first word of "ar", so it can be a program name with args.
5190
set dummy ar; ac_word=$2
5191
echo "$as_me:$LINENO: checking for $ac_word" >&5
5192
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5194
  echo $ECHO_N "(cached) $ECHO_C" >&6
5195
else
5196
  if test -n "$ac_ct_AR"; then
5197
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5198
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204
  for ac_exec_ext in '' $ac_executable_extensions; do
5205
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206
    ac_cv_prog_ac_ct_AR="ar"
5207
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208
    break 2
5209
  fi
5210
done
5211
done
5212
 
5213
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5214
fi
5215
fi
5216
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5217
if test -n "$ac_ct_AR"; then
5218
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5219
echo "${ECHO_T}$ac_ct_AR" >&6
5220
else
5221
  echo "$as_me:$LINENO: result: no" >&5
5222
echo "${ECHO_T}no" >&6
5223
fi
5224
 
5225
  AR=$ac_ct_AR
5226
else
5227
  AR="$ac_cv_prog_AR"
5228
fi
5229
 
5230
test -z "$AR" && AR=ar
5231
test -z "$AR_FLAGS" && AR_FLAGS=cru
5232
 
5233
 
5234
 
5235
 
5236
 
5237
 
5238
 
5239
 
5240
 
5241
 
5242
 
5243
if test -n "$ac_tool_prefix"; then
5244
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5245
set dummy ${ac_tool_prefix}strip; ac_word=$2
5246
echo "$as_me:$LINENO: checking for $ac_word" >&5
5247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248
if test "${ac_cv_prog_STRIP+set}" = set; then
5249
  echo $ECHO_N "(cached) $ECHO_C" >&6
5250
else
5251
  if test -n "$STRIP"; then
5252
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5253
else
5254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255
for as_dir in $PATH
5256
do
5257
  IFS=$as_save_IFS
5258
  test -z "$as_dir" && as_dir=.
5259
  for ac_exec_ext in '' $ac_executable_extensions; do
5260
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263
    break 2
5264
  fi
5265
done
5266
done
5267
 
5268
fi
5269
fi
5270
STRIP=$ac_cv_prog_STRIP
5271
if test -n "$STRIP"; then
5272
  echo "$as_me:$LINENO: result: $STRIP" >&5
5273
echo "${ECHO_T}$STRIP" >&6
5274
else
5275
  echo "$as_me:$LINENO: result: no" >&5
5276
echo "${ECHO_T}no" >&6
5277
fi
5278
 
5279
fi
5280
if test -z "$ac_cv_prog_STRIP"; then
5281
  ac_ct_STRIP=$STRIP
5282
  # Extract the first word of "strip", so it can be a program name with args.
5283
set dummy strip; ac_word=$2
5284
echo "$as_me:$LINENO: checking for $ac_word" >&5
5285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5287
  echo $ECHO_N "(cached) $ECHO_C" >&6
5288
else
5289
  if test -n "$ac_ct_STRIP"; then
5290
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5291
else
5292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293
for as_dir in $PATH
5294
do
5295
  IFS=$as_save_IFS
5296
  test -z "$as_dir" && as_dir=.
5297
  for ac_exec_ext in '' $ac_executable_extensions; do
5298
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299
    ac_cv_prog_ac_ct_STRIP="strip"
5300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301
    break 2
5302
  fi
5303
done
5304
done
5305
 
5306
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5307
fi
5308
fi
5309
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5310
if test -n "$ac_ct_STRIP"; then
5311
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5312
echo "${ECHO_T}$ac_ct_STRIP" >&6
5313
else
5314
  echo "$as_me:$LINENO: result: no" >&5
5315
echo "${ECHO_T}no" >&6
5316
fi
5317
 
5318
  STRIP=$ac_ct_STRIP
5319
else
5320
  STRIP="$ac_cv_prog_STRIP"
5321
fi
5322
 
5323
test -z "$STRIP" && STRIP=:
5324
 
5325
 
5326
 
5327
 
5328
 
5329
 
5330
if test -n "$ac_tool_prefix"; then
5331
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5333
echo "$as_me:$LINENO: checking for $ac_word" >&5
5334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5335
if test "${ac_cv_prog_RANLIB+set}" = set; then
5336
  echo $ECHO_N "(cached) $ECHO_C" >&6
5337
else
5338
  if test -n "$RANLIB"; then
5339
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5340
else
5341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342
for as_dir in $PATH
5343
do
5344
  IFS=$as_save_IFS
5345
  test -z "$as_dir" && as_dir=.
5346
  for ac_exec_ext in '' $ac_executable_extensions; do
5347
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350
    break 2
5351
  fi
5352
done
5353
done
5354
 
5355
fi
5356
fi
5357
RANLIB=$ac_cv_prog_RANLIB
5358
if test -n "$RANLIB"; then
5359
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5360
echo "${ECHO_T}$RANLIB" >&6
5361
else
5362
  echo "$as_me:$LINENO: result: no" >&5
5363
echo "${ECHO_T}no" >&6
5364
fi
5365
 
5366
fi
5367
if test -z "$ac_cv_prog_RANLIB"; then
5368
  ac_ct_RANLIB=$RANLIB
5369
  # Extract the first word of "ranlib", so it can be a program name with args.
5370
set dummy ranlib; ac_word=$2
5371
echo "$as_me:$LINENO: checking for $ac_word" >&5
5372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5374
  echo $ECHO_N "(cached) $ECHO_C" >&6
5375
else
5376
  if test -n "$ac_ct_RANLIB"; then
5377
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5378
else
5379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380
for as_dir in $PATH
5381
do
5382
  IFS=$as_save_IFS
5383
  test -z "$as_dir" && as_dir=.
5384
  for ac_exec_ext in '' $ac_executable_extensions; do
5385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388
    break 2
5389
  fi
5390
done
5391
done
5392
 
5393
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5394
fi
5395
fi
5396
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5397
if test -n "$ac_ct_RANLIB"; then
5398
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5399
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5400
else
5401
  echo "$as_me:$LINENO: result: no" >&5
5402
echo "${ECHO_T}no" >&6
5403
fi
5404
 
5405
  RANLIB=$ac_ct_RANLIB
5406
else
5407
  RANLIB="$ac_cv_prog_RANLIB"
5408
fi
5409
 
5410
test -z "$RANLIB" && RANLIB=:
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
# Determine commands to create old-style static archives.
5418
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5419
old_postinstall_cmds='chmod 644 $oldlib'
5420
old_postuninstall_cmds=
5421
 
5422
if test -n "$RANLIB"; then
5423
  case $host_os in
5424
  openbsd*)
5425
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5426
    ;;
5427
  *)
5428
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5429
    ;;
5430
  esac
5431
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5432
fi
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
 
5467
# If no C compiler was specified, use CC.
5468
LTCC=${LTCC-"$CC"}
5469
 
5470
# If no C compiler flags were specified, use CFLAGS.
5471
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5472
 
5473
# Allow CC to be a program name with arguments.
5474
compiler=$CC
5475
 
5476
 
5477
# Check for command to grab the raw symbol name followed by C symbol from nm.
5478
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5479
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5480
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5481
  echo $ECHO_N "(cached) $ECHO_C" >&6
5482
else
5483
 
5484
# These are sane defaults that work on at least a few old systems.
5485
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5486
 
5487
# Character class describing NM global symbol codes.
5488
symcode='[BCDEGRST]'
5489
 
5490
# Regexp to match symbols that can be accessed directly from C.
5491
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5492
 
5493
# Define system-specific variables.
5494
case $host_os in
5495
aix*)
5496
  symcode='[BCDT]'
5497
  ;;
5498
cygwin* | mingw* | pw32*)
5499
  symcode='[ABCDGISTW]'
5500
  ;;
5501
hpux*)
5502
  if test "$host_cpu" = ia64; then
5503
    symcode='[ABCDEGRST]'
5504
  fi
5505
  ;;
5506
irix* | nonstopux*)
5507
  symcode='[BCDEGRST]'
5508
  ;;
5509
osf*)
5510
  symcode='[BCDEGQRST]'
5511
  ;;
5512
solaris*)
5513
  symcode='[BDRT]'
5514
  ;;
5515
sco3.2v5*)
5516
  symcode='[DT]'
5517
  ;;
5518
sysv4.2uw2*)
5519
  symcode='[DT]'
5520
  ;;
5521
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5522
  symcode='[ABDT]'
5523
  ;;
5524
sysv4)
5525
  symcode='[DFNSTU]'
5526
  ;;
5527
esac
5528
 
5529
# If we're using GNU nm, then use its standard symbol codes.
5530
case `$NM -V 2>&1` in
5531
*GNU* | *'with BFD'*)
5532
  symcode='[ABCDGIRSTW]' ;;
5533
esac
5534
 
5535
# Transform an extracted symbol line into a proper C declaration.
5536
# Some systems (esp. on ia64) link data and code symbols differently,
5537
# so use this general approach.
5538
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5539
 
5540
# Transform an extracted symbol line into symbol name and symbol address
5541
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5542
 
5543
# Handle CRLF in mingw tool chain
5544
opt_cr=
5545
case $build_os in
5546
mingw*)
5547
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5548
  ;;
5549
esac
5550
 
5551
# Try without a prefix underscore, then with it.
5552
for ac_symprfx in "" "_"; do
5553
 
5554
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5555
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5556
 
5557
  # Write the raw and C identifiers.
5558
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5559
    # Fake it for dumpbin and say T for any non-static function
5560
    # and D for any global variable.
5561
    # Also find C++ and __fastcall symbols from MSVC++,
5562
    # which start with @ or ?.
5563
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5564
"     {last_section=section; section=\$ 3};"\
5565
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5566
"     \$ 0!~/External *\|/{next};"\
5567
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5568
"     {if(hide[section]) next};"\
5569
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5570
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5571
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5572
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5573
"     ' prfx=^$ac_symprfx"
5574
  else
5575
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5576
  fi
5577
 
5578
  # Check to see that the pipe works correctly.
5579
  pipe_works=no
5580
 
5581
  rm -f conftest*
5582
  cat > conftest.$ac_ext <<_LT_EOF
5583
#ifdef __cplusplus
5584
extern "C" {
5585
#endif
5586
char nm_test_var;
5587
void nm_test_func(void);
5588
void nm_test_func(void){}
5589
#ifdef __cplusplus
5590
}
5591
#endif
5592
int main(){nm_test_var='a';nm_test_func();return(0);}
5593
_LT_EOF
5594
 
5595
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596
  (eval $ac_compile) 2>&5
5597
  ac_status=$?
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599
  (exit $ac_status); }; then
5600
    # Now try to grab the symbols.
5601
    nlist=conftest.nm
5602
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5603
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5604
  ac_status=$?
5605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606
  (exit $ac_status); } && test -s "$nlist"; then
5607
      # Try sorting and uniquifying the output.
5608
      if sort "$nlist" | uniq > "$nlist"T; then
5609
        mv -f "$nlist"T "$nlist"
5610
      else
5611
        rm -f "$nlist"T
5612
      fi
5613
 
5614
      # Make sure that we snagged all the symbols we need.
5615
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5616
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5617
          cat <<_LT_EOF > conftest.$ac_ext
5618
#ifdef __cplusplus
5619
extern "C" {
5620
#endif
5621
 
5622
_LT_EOF
5623
          # Now generate the symbol file.
5624
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5625
 
5626
          cat <<_LT_EOF >> conftest.$ac_ext
5627
 
5628
/* The mapping between symbol names and symbols.  */
5629
const struct {
5630
  const char *name;
5631
  void       *address;
5632
}
5633
lt__PROGRAM__LTX_preloaded_symbols[] =
5634
{
5635
  { "@PROGRAM@", (void *) 0 },
5636
_LT_EOF
5637
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5638
          cat <<\_LT_EOF >> conftest.$ac_ext
5639
  {0, (void *) 0}
5640
};
5641
 
5642
/* This works around a problem in FreeBSD linker */
5643
#ifdef FREEBSD_WORKAROUND
5644
static const void *lt_preloaded_setup() {
5645
  return lt__PROGRAM__LTX_preloaded_symbols;
5646
}
5647
#endif
5648
 
5649
#ifdef __cplusplus
5650
}
5651
#endif
5652
_LT_EOF
5653
          # Now try linking the two files.
5654
          mv conftest.$ac_objext conftstm.$ac_objext
5655
          lt_save_LIBS="$LIBS"
5656
          lt_save_CFLAGS="$CFLAGS"
5657
          LIBS="conftstm.$ac_objext"
5658
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5659
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660
  (eval $ac_link) 2>&5
5661
  ac_status=$?
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5664
            pipe_works=yes
5665
          fi
5666
          LIBS="$lt_save_LIBS"
5667
          CFLAGS="$lt_save_CFLAGS"
5668
        else
5669
          echo "cannot find nm_test_func in $nlist" >&5
5670
        fi
5671
      else
5672
        echo "cannot find nm_test_var in $nlist" >&5
5673
      fi
5674
    else
5675
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5676
    fi
5677
  else
5678
    echo "$progname: failed program was:" >&5
5679
    cat conftest.$ac_ext >&5
5680
  fi
5681
  rm -f conftest* conftst*
5682
 
5683
  # Do not use the global_symbol_pipe unless it works.
5684
  if test "$pipe_works" = yes; then
5685
    break
5686
  else
5687
    lt_cv_sys_global_symbol_pipe=
5688
  fi
5689
done
5690
 
5691
fi
5692
 
5693
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5694
  lt_cv_sys_global_symbol_to_cdecl=
5695
fi
5696
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5697
  echo "$as_me:$LINENO: result: failed" >&5
5698
echo "${ECHO_T}failed" >&6
5699
else
5700
  echo "$as_me:$LINENO: result: ok" >&5
5701
echo "${ECHO_T}ok" >&6
5702
fi
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5721
if test "${enable_libtool_lock+set}" = set; then
5722
  enableval="$enable_libtool_lock"
5723
 
5724
fi;
5725
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5726
 
5727
# Some flags need to be propagated to the compiler or linker for good
5728
# libtool support.
5729
case $host in
5730
ia64-*-hpux*)
5731
  # Find out which ABI we are using.
5732
  echo 'int i;' > conftest.$ac_ext
5733
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734
  (eval $ac_compile) 2>&5
5735
  ac_status=$?
5736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
  (exit $ac_status); }; then
5738
    case `/usr/bin/file conftest.$ac_objext` in
5739
      *ELF-32*)
5740
        HPUX_IA64_MODE="32"
5741
        ;;
5742
      *ELF-64*)
5743
        HPUX_IA64_MODE="64"
5744
        ;;
5745
    esac
5746
  fi
5747
  rm -rf conftest*
5748
  ;;
5749
*-*-irix6*)
5750
  # Find out which ABI we are using.
5751
  echo '#line 5751 "configure"' > conftest.$ac_ext
5752
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753
  (eval $ac_compile) 2>&5
5754
  ac_status=$?
5755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
  (exit $ac_status); }; then
5757
    if test "$lt_cv_prog_gnu_ld" = yes; then
5758
      case `/usr/bin/file conftest.$ac_objext` in
5759
        *32-bit*)
5760
          LD="${LD-ld} -melf32bsmip"
5761
          ;;
5762
        *N32*)
5763
          LD="${LD-ld} -melf32bmipn32"
5764
          ;;
5765
        *64-bit*)
5766
          LD="${LD-ld} -melf64bmip"
5767
        ;;
5768
      esac
5769
    else
5770
      case `/usr/bin/file conftest.$ac_objext` in
5771
        *32-bit*)
5772
          LD="${LD-ld} -32"
5773
          ;;
5774
        *N32*)
5775
          LD="${LD-ld} -n32"
5776
          ;;
5777
        *64-bit*)
5778
          LD="${LD-ld} -64"
5779
          ;;
5780
      esac
5781
    fi
5782
  fi
5783
  rm -rf conftest*
5784
  ;;
5785
 
5786
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5787
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5788
  # Find out which ABI we are using.
5789
  echo 'int i;' > conftest.$ac_ext
5790
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5791
  (eval $ac_compile) 2>&5
5792
  ac_status=$?
5793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
  (exit $ac_status); }; then
5795
    case `/usr/bin/file conftest.o` in
5796
      *32-bit*)
5797
        case $host in
5798
          x86_64-*kfreebsd*-gnu)
5799
            LD="${LD-ld} -m elf_i386_fbsd"
5800
            ;;
5801
          x86_64-*linux*)
5802
            LD="${LD-ld} -m elf_i386"
5803
            ;;
5804
          ppc64-*linux*|powerpc64-*linux*)
5805
            LD="${LD-ld} -m elf32ppclinux"
5806
            ;;
5807
          s390x-*linux*)
5808
            LD="${LD-ld} -m elf_s390"
5809
            ;;
5810
          sparc64-*linux*)
5811
            LD="${LD-ld} -m elf32_sparc"
5812
            ;;
5813
        esac
5814
        ;;
5815
      *64-bit*)
5816
        case $host in
5817
          x86_64-*kfreebsd*-gnu)
5818
            LD="${LD-ld} -m elf_x86_64_fbsd"
5819
            ;;
5820
          x86_64-*linux*)
5821
            LD="${LD-ld} -m elf_x86_64"
5822
            ;;
5823
          ppc*-*linux*|powerpc*-*linux*)
5824
            LD="${LD-ld} -m elf64ppc"
5825
            ;;
5826
          s390*-*linux*|s390*-*tpf*)
5827
            LD="${LD-ld} -m elf64_s390"
5828
            ;;
5829
          sparc*-*linux*)
5830
            LD="${LD-ld} -m elf64_sparc"
5831
            ;;
5832
        esac
5833
        ;;
5834
    esac
5835
  fi
5836
  rm -rf conftest*
5837
  ;;
5838
 
5839
*-*-sco3.2v5*)
5840
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5841
  SAVE_CFLAGS="$CFLAGS"
5842
  CFLAGS="$CFLAGS -belf"
5843
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5844
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5845
if test "${lt_cv_cc_needs_belf+set}" = set; then
5846
  echo $ECHO_N "(cached) $ECHO_C" >&6
5847
else
5848
  ac_ext=c
5849
ac_cpp='$CPP $CPPFLAGS'
5850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
 
5854
     cat >conftest.$ac_ext <<_ACEOF
5855
/* confdefs.h.  */
5856
_ACEOF
5857
cat confdefs.h >>conftest.$ac_ext
5858
cat >>conftest.$ac_ext <<_ACEOF
5859
/* end confdefs.h.  */
5860
 
5861
int
5862
main ()
5863
{
5864
 
5865
  ;
5866
  return 0;
5867
}
5868
_ACEOF
5869
rm -f conftest.$ac_objext conftest$ac_exeext
5870
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871
  (eval $ac_link) 2>conftest.er1
5872
  ac_status=$?
5873
  grep -v '^ *+' conftest.er1 >conftest.err
5874
  rm -f conftest.er1
5875
  cat conftest.err >&5
5876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877
  (exit $ac_status); } &&
5878
         { ac_try='test -z "$ac_c_werror_flag"
5879
                         || test ! -s conftest.err'
5880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881
  (eval $ac_try) 2>&5
5882
  ac_status=$?
5883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884
  (exit $ac_status); }; } &&
5885
         { ac_try='test -s conftest$ac_exeext'
5886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887
  (eval $ac_try) 2>&5
5888
  ac_status=$?
5889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890
  (exit $ac_status); }; }; then
5891
  lt_cv_cc_needs_belf=yes
5892
else
5893
  echo "$as_me: failed program was:" >&5
5894
sed 's/^/| /' conftest.$ac_ext >&5
5895
 
5896
lt_cv_cc_needs_belf=no
5897
fi
5898
rm -f conftest.err conftest.$ac_objext \
5899
      conftest$ac_exeext conftest.$ac_ext
5900
     ac_ext=c
5901
ac_cpp='$CPP $CPPFLAGS'
5902
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
 
5906
fi
5907
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5908
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5909
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5910
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5911
    CFLAGS="$SAVE_CFLAGS"
5912
  fi
5913
  ;;
5914
sparc*-*solaris*)
5915
  # Find out which ABI we are using.
5916
  echo 'int i;' > conftest.$ac_ext
5917
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918
  (eval $ac_compile) 2>&5
5919
  ac_status=$?
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
  (exit $ac_status); }; then
5922
    case `/usr/bin/file conftest.o` in
5923
    *64-bit*)
5924
      case $lt_cv_prog_gnu_ld in
5925
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5926
      *)    LD="${LD-ld} -64" ;;
5927
      esac
5928
      ;;
5929
    esac
5930
  fi
5931
  rm -rf conftest*
5932
  ;;
5933
esac
5934
 
5935
need_locks="$enable_libtool_lock"
5936
 
5937
ac_ext=c
5938
ac_cpp='$CPP $CPPFLAGS'
5939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5943
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5944
# On Suns, sometimes $CPP names a directory.
5945
if test -n "$CPP" && test -d "$CPP"; then
5946
  CPP=
5947
fi
5948
if test -z "$CPP"; then
5949
  if test "${ac_cv_prog_CPP+set}" = set; then
5950
  echo $ECHO_N "(cached) $ECHO_C" >&6
5951
else
5952
      # Double quotes because CPP needs to be expanded
5953
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5954
    do
5955
      ac_preproc_ok=false
5956
for ac_c_preproc_warn_flag in '' yes
5957
do
5958
  # Use a header file that comes with gcc, so configuring glibc
5959
  # with a fresh cross-compiler works.
5960
  # Prefer  to  if __STDC__ is defined, since
5961
  #  exists even on freestanding compilers.
5962
  # On the NeXT, cc -E runs the code through the compiler's parser,
5963
  # not just through cpp. "Syntax error" is here to catch this case.
5964
  cat >conftest.$ac_ext <<_ACEOF
5965
/* confdefs.h.  */
5966
_ACEOF
5967
cat confdefs.h >>conftest.$ac_ext
5968
cat >>conftest.$ac_ext <<_ACEOF
5969
/* end confdefs.h.  */
5970
#ifdef __STDC__
5971
# include 
5972
#else
5973
# include 
5974
#endif
5975
                     Syntax error
5976
_ACEOF
5977
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979
  ac_status=$?
5980
  grep -v '^ *+' conftest.er1 >conftest.err
5981
  rm -f conftest.er1
5982
  cat conftest.err >&5
5983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984
  (exit $ac_status); } >/dev/null; then
5985
  if test -s conftest.err; then
5986
    ac_cpp_err=$ac_c_preproc_warn_flag
5987
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988
  else
5989
    ac_cpp_err=
5990
  fi
5991
else
5992
  ac_cpp_err=yes
5993
fi
5994
if test -z "$ac_cpp_err"; then
5995
  :
5996
else
5997
  echo "$as_me: failed program was:" >&5
5998
sed 's/^/| /' conftest.$ac_ext >&5
5999
 
6000
  # Broken: fails on valid input.
6001
continue
6002
fi
6003
rm -f conftest.err conftest.$ac_ext
6004
 
6005
  # OK, works on sane cases.  Now check whether non-existent headers
6006
  # can be detected and how.
6007
  cat >conftest.$ac_ext <<_ACEOF
6008
/* confdefs.h.  */
6009
_ACEOF
6010
cat confdefs.h >>conftest.$ac_ext
6011
cat >>conftest.$ac_ext <<_ACEOF
6012
/* end confdefs.h.  */
6013
#include 
6014
_ACEOF
6015
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017
  ac_status=$?
6018
  grep -v '^ *+' conftest.er1 >conftest.err
6019
  rm -f conftest.er1
6020
  cat conftest.err >&5
6021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022
  (exit $ac_status); } >/dev/null; then
6023
  if test -s conftest.err; then
6024
    ac_cpp_err=$ac_c_preproc_warn_flag
6025
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026
  else
6027
    ac_cpp_err=
6028
  fi
6029
else
6030
  ac_cpp_err=yes
6031
fi
6032
if test -z "$ac_cpp_err"; then
6033
  # Broken: success on invalid input.
6034
continue
6035
else
6036
  echo "$as_me: failed program was:" >&5
6037
sed 's/^/| /' conftest.$ac_ext >&5
6038
 
6039
  # Passes both tests.
6040
ac_preproc_ok=:
6041
break
6042
fi
6043
rm -f conftest.err conftest.$ac_ext
6044
 
6045
done
6046
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047
rm -f conftest.err conftest.$ac_ext
6048
if $ac_preproc_ok; then
6049
  break
6050
fi
6051
 
6052
    done
6053
    ac_cv_prog_CPP=$CPP
6054
 
6055
fi
6056
  CPP=$ac_cv_prog_CPP
6057
else
6058
  ac_cv_prog_CPP=$CPP
6059
fi
6060
echo "$as_me:$LINENO: result: $CPP" >&5
6061
echo "${ECHO_T}$CPP" >&6
6062
ac_preproc_ok=false
6063
for ac_c_preproc_warn_flag in '' yes
6064
do
6065
  # Use a header file that comes with gcc, so configuring glibc
6066
  # with a fresh cross-compiler works.
6067
  # Prefer  to  if __STDC__ is defined, since
6068
  #  exists even on freestanding compilers.
6069
  # On the NeXT, cc -E runs the code through the compiler's parser,
6070
  # not just through cpp. "Syntax error" is here to catch this case.
6071
  cat >conftest.$ac_ext <<_ACEOF
6072
/* confdefs.h.  */
6073
_ACEOF
6074
cat confdefs.h >>conftest.$ac_ext
6075
cat >>conftest.$ac_ext <<_ACEOF
6076
/* end confdefs.h.  */
6077
#ifdef __STDC__
6078
# include 
6079
#else
6080
# include 
6081
#endif
6082
                     Syntax error
6083
_ACEOF
6084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086
  ac_status=$?
6087
  grep -v '^ *+' conftest.er1 >conftest.err
6088
  rm -f conftest.er1
6089
  cat conftest.err >&5
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
  (exit $ac_status); } >/dev/null; then
6092
  if test -s conftest.err; then
6093
    ac_cpp_err=$ac_c_preproc_warn_flag
6094
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095
  else
6096
    ac_cpp_err=
6097
  fi
6098
else
6099
  ac_cpp_err=yes
6100
fi
6101
if test -z "$ac_cpp_err"; then
6102
  :
6103
else
6104
  echo "$as_me: failed program was:" >&5
6105
sed 's/^/| /' conftest.$ac_ext >&5
6106
 
6107
  # Broken: fails on valid input.
6108
continue
6109
fi
6110
rm -f conftest.err conftest.$ac_ext
6111
 
6112
  # OK, works on sane cases.  Now check whether non-existent headers
6113
  # can be detected and how.
6114
  cat >conftest.$ac_ext <<_ACEOF
6115
/* confdefs.h.  */
6116
_ACEOF
6117
cat confdefs.h >>conftest.$ac_ext
6118
cat >>conftest.$ac_ext <<_ACEOF
6119
/* end confdefs.h.  */
6120
#include 
6121
_ACEOF
6122
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6123
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124
  ac_status=$?
6125
  grep -v '^ *+' conftest.er1 >conftest.err
6126
  rm -f conftest.er1
6127
  cat conftest.err >&5
6128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129
  (exit $ac_status); } >/dev/null; then
6130
  if test -s conftest.err; then
6131
    ac_cpp_err=$ac_c_preproc_warn_flag
6132
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6133
  else
6134
    ac_cpp_err=
6135
  fi
6136
else
6137
  ac_cpp_err=yes
6138
fi
6139
if test -z "$ac_cpp_err"; then
6140
  # Broken: success on invalid input.
6141
continue
6142
else
6143
  echo "$as_me: failed program was:" >&5
6144
sed 's/^/| /' conftest.$ac_ext >&5
6145
 
6146
  # Passes both tests.
6147
ac_preproc_ok=:
6148
break
6149
fi
6150
rm -f conftest.err conftest.$ac_ext
6151
 
6152
done
6153
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6154
rm -f conftest.err conftest.$ac_ext
6155
if $ac_preproc_ok; then
6156
  :
6157
else
6158
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6159
See \`config.log' for more details." >&5
6160
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6161
See \`config.log' for more details." >&2;}
6162
   { (exit 1); exit 1; }; }
6163
fi
6164
 
6165
ac_ext=c
6166
ac_cpp='$CPP $CPPFLAGS'
6167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
 
6171
 
6172
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6173
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6174
if test "${ac_cv_header_stdc+set}" = set; then
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
6176
else
6177
  cat >conftest.$ac_ext <<_ACEOF
6178
/* confdefs.h.  */
6179
_ACEOF
6180
cat confdefs.h >>conftest.$ac_ext
6181
cat >>conftest.$ac_ext <<_ACEOF
6182
/* end confdefs.h.  */
6183
#include 
6184
#include 
6185
#include 
6186
#include 
6187
 
6188
int
6189
main ()
6190
{
6191
 
6192
  ;
6193
  return 0;
6194
}
6195
_ACEOF
6196
rm -f conftest.$ac_objext
6197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6198
  (eval $ac_compile) 2>conftest.er1
6199
  ac_status=$?
6200
  grep -v '^ *+' conftest.er1 >conftest.err
6201
  rm -f conftest.er1
6202
  cat conftest.err >&5
6203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
  (exit $ac_status); } &&
6205
         { ac_try='test -z "$ac_c_werror_flag"
6206
                         || test ! -s conftest.err'
6207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208
  (eval $ac_try) 2>&5
6209
  ac_status=$?
6210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211
  (exit $ac_status); }; } &&
6212
         { ac_try='test -s conftest.$ac_objext'
6213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214
  (eval $ac_try) 2>&5
6215
  ac_status=$?
6216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217
  (exit $ac_status); }; }; then
6218
  ac_cv_header_stdc=yes
6219
else
6220
  echo "$as_me: failed program was:" >&5
6221
sed 's/^/| /' conftest.$ac_ext >&5
6222
 
6223
ac_cv_header_stdc=no
6224
fi
6225
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226
 
6227
if test $ac_cv_header_stdc = yes; then
6228
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6229
  cat >conftest.$ac_ext <<_ACEOF
6230
/* confdefs.h.  */
6231
_ACEOF
6232
cat confdefs.h >>conftest.$ac_ext
6233
cat >>conftest.$ac_ext <<_ACEOF
6234
/* end confdefs.h.  */
6235
#include 
6236
 
6237
_ACEOF
6238
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239
  $EGREP "memchr" >/dev/null 2>&1; then
6240
  :
6241
else
6242
  ac_cv_header_stdc=no
6243
fi
6244
rm -f conftest*
6245
 
6246
fi
6247
 
6248
if test $ac_cv_header_stdc = yes; then
6249
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6250
  cat >conftest.$ac_ext <<_ACEOF
6251
/* confdefs.h.  */
6252
_ACEOF
6253
cat confdefs.h >>conftest.$ac_ext
6254
cat >>conftest.$ac_ext <<_ACEOF
6255
/* end confdefs.h.  */
6256
#include 
6257
 
6258
_ACEOF
6259
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260
  $EGREP "free" >/dev/null 2>&1; then
6261
  :
6262
else
6263
  ac_cv_header_stdc=no
6264
fi
6265
rm -f conftest*
6266
 
6267
fi
6268
 
6269
if test $ac_cv_header_stdc = yes; then
6270
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6271
  if test "$cross_compiling" = yes; then
6272
  :
6273
else
6274
  cat >conftest.$ac_ext <<_ACEOF
6275
/* confdefs.h.  */
6276
_ACEOF
6277
cat confdefs.h >>conftest.$ac_ext
6278
cat >>conftest.$ac_ext <<_ACEOF
6279
/* end confdefs.h.  */
6280
#include 
6281
#if ((' ' & 0x0FF) == 0x020)
6282
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6283
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6284
#else
6285
# define ISLOWER(c) \
6286
                   (('a' <= (c) && (c) <= 'i') \
6287
                     || ('j' <= (c) && (c) <= 'r') \
6288
                     || ('s' <= (c) && (c) <= 'z'))
6289
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6290
#endif
6291
 
6292
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6293
int
6294
main ()
6295
{
6296
  int i;
6297
  for (i = 0; i < 256; i++)
6298
    if (XOR (islower (i), ISLOWER (i))
6299
        || toupper (i) != TOUPPER (i))
6300
      exit(2);
6301
  exit (0);
6302
}
6303
_ACEOF
6304
rm -f conftest$ac_exeext
6305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306
  (eval $ac_link) 2>&5
6307
  ac_status=$?
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311
  (eval $ac_try) 2>&5
6312
  ac_status=$?
6313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314
  (exit $ac_status); }; }; then
6315
  :
6316
else
6317
  echo "$as_me: program exited with status $ac_status" >&5
6318
echo "$as_me: failed program was:" >&5
6319
sed 's/^/| /' conftest.$ac_ext >&5
6320
 
6321
( exit $ac_status )
6322
ac_cv_header_stdc=no
6323
fi
6324
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6325
fi
6326
fi
6327
fi
6328
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6329
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6330
if test $ac_cv_header_stdc = yes; then
6331
 
6332
cat >>confdefs.h <<\_ACEOF
6333
#define STDC_HEADERS 1
6334
_ACEOF
6335
 
6336
fi
6337
 
6338
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6349
                  inttypes.h stdint.h unistd.h
6350
do
6351
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352
echo "$as_me:$LINENO: checking for $ac_header" >&5
6353
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355
  echo $ECHO_N "(cached) $ECHO_C" >&6
6356
else
6357
  cat >conftest.$ac_ext <<_ACEOF
6358
/* confdefs.h.  */
6359
_ACEOF
6360
cat confdefs.h >>conftest.$ac_ext
6361
cat >>conftest.$ac_ext <<_ACEOF
6362
/* end confdefs.h.  */
6363
$ac_includes_default
6364
 
6365
#include <$ac_header>
6366
_ACEOF
6367
rm -f conftest.$ac_objext
6368
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369
  (eval $ac_compile) 2>conftest.er1
6370
  ac_status=$?
6371
  grep -v '^ *+' conftest.er1 >conftest.err
6372
  rm -f conftest.er1
6373
  cat conftest.err >&5
6374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375
  (exit $ac_status); } &&
6376
         { ac_try='test -z "$ac_c_werror_flag"
6377
                         || test ! -s conftest.err'
6378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379
  (eval $ac_try) 2>&5
6380
  ac_status=$?
6381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382
  (exit $ac_status); }; } &&
6383
         { ac_try='test -s conftest.$ac_objext'
6384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385
  (eval $ac_try) 2>&5
6386
  ac_status=$?
6387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
  (exit $ac_status); }; }; then
6389
  eval "$as_ac_Header=yes"
6390
else
6391
  echo "$as_me: failed program was:" >&5
6392
sed 's/^/| /' conftest.$ac_ext >&5
6393
 
6394
eval "$as_ac_Header=no"
6395
fi
6396
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397
fi
6398
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6401
  cat >>confdefs.h <<_ACEOF
6402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6403
_ACEOF
6404
 
6405
fi
6406
 
6407
done
6408
 
6409
 
6410
 
6411
for ac_header in dlfcn.h
6412
do
6413
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6414
echo "$as_me:$LINENO: checking for $ac_header" >&5
6415
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417
  echo $ECHO_N "(cached) $ECHO_C" >&6
6418
else
6419
  cat >conftest.$ac_ext <<_ACEOF
6420
/* confdefs.h.  */
6421
_ACEOF
6422
cat confdefs.h >>conftest.$ac_ext
6423
cat >>conftest.$ac_ext <<_ACEOF
6424
/* end confdefs.h.  */
6425
$ac_includes_default
6426
 
6427
#include <$ac_header>
6428
_ACEOF
6429
rm -f conftest.$ac_objext
6430
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431
  (eval $ac_compile) 2>conftest.er1
6432
  ac_status=$?
6433
  grep -v '^ *+' conftest.er1 >conftest.err
6434
  rm -f conftest.er1
6435
  cat conftest.err >&5
6436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437
  (exit $ac_status); } &&
6438
         { ac_try='test -z "$ac_c_werror_flag"
6439
                         || test ! -s conftest.err'
6440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441
  (eval $ac_try) 2>&5
6442
  ac_status=$?
6443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444
  (exit $ac_status); }; } &&
6445
         { ac_try='test -s conftest.$ac_objext'
6446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447
  (eval $ac_try) 2>&5
6448
  ac_status=$?
6449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450
  (exit $ac_status); }; }; then
6451
  eval "$as_ac_Header=yes"
6452
else
6453
  echo "$as_me: failed program was:" >&5
6454
sed 's/^/| /' conftest.$ac_ext >&5
6455
 
6456
eval "$as_ac_Header=no"
6457
fi
6458
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459
fi
6460
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6461
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6462
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6463
  cat >>confdefs.h <<_ACEOF
6464
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6465
_ACEOF
6466
 
6467
fi
6468
 
6469
done
6470
 
6471
 
6472
 
6473
# This can be used to rebuild libtool when needed
6474
LIBTOOL_DEPS="$ltmain"
6475
 
6476
# Always use our own libtool.
6477
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
 
6497
 
6498
 
6499
 
6500
 
6501
 
6502
 
6503
test -z "$LN_S" && LN_S="ln -s"
6504
 
6505
 
6506
 
6507
 
6508
 
6509
 
6510
 
6511
 
6512
 
6513
 
6514
 
6515
 
6516
 
6517
 
6518
if test -n "${ZSH_VERSION+set}" ; then
6519
   setopt NO_GLOB_SUBST
6520
fi
6521
 
6522
echo "$as_me:$LINENO: checking for objdir" >&5
6523
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6524
if test "${lt_cv_objdir+set}" = set; then
6525
  echo $ECHO_N "(cached) $ECHO_C" >&6
6526
else
6527
  rm -f .libs 2>/dev/null
6528
mkdir .libs 2>/dev/null
6529
if test -d .libs; then
6530
  lt_cv_objdir=.libs
6531
else
6532
  # MS-DOS does not allow filenames that begin with a dot.
6533
  lt_cv_objdir=_libs
6534
fi
6535
rmdir .libs 2>/dev/null
6536
fi
6537
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6538
echo "${ECHO_T}$lt_cv_objdir" >&6
6539
objdir=$lt_cv_objdir
6540
 
6541
 
6542
 
6543
 
6544
 
6545
cat >>confdefs.h <<_ACEOF
6546
#define LT_OBJDIR "$lt_cv_objdir/"
6547
_ACEOF
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
case $host_os in
6566
aix3*)
6567
  # AIX sometimes has problems with the GCC collect2 program.  For some
6568
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6569
  # vanish in a puff of smoke.
6570
  if test "X${COLLECT_NAMES+set}" != Xset; then
6571
    COLLECT_NAMES=
6572
    export COLLECT_NAMES
6573
  fi
6574
  ;;
6575
esac
6576
 
6577
# Sed substitution that helps us do robust quoting.  It backslashifies
6578
# metacharacters that are still active within double-quoted strings.
6579
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6580
 
6581
# Same as above, but do not quote variable references.
6582
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6583
 
6584
# Sed substitution to delay expansion of an escaped shell variable in a
6585
# double_quote_subst'ed string.
6586
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6587
 
6588
# Sed substitution to delay expansion of an escaped single quote.
6589
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6590
 
6591
# Sed substitution to avoid accidental globbing in evaled expressions
6592
no_glob_subst='s/\*/\\\*/g'
6593
 
6594
# Global variables:
6595
ofile=libtool
6596
can_build_shared=yes
6597
 
6598
# All known linkers require a `.a' archive for static linking (except MSVC,
6599
# which needs '.lib').
6600
libext=a
6601
 
6602
with_gnu_ld="$lt_cv_prog_gnu_ld"
6603
 
6604
old_CC="$CC"
6605
old_CFLAGS="$CFLAGS"
6606
 
6607
# Set sane defaults for various variables
6608
test -z "$CC" && CC=cc
6609
test -z "$LTCC" && LTCC=$CC
6610
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6611
test -z "$LD" && LD=ld
6612
test -z "$ac_objext" && ac_objext=o
6613
 
6614
for cc_temp in $compiler""; do
6615
  case $cc_temp in
6616
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6617
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6618
    \-*) ;;
6619
    *) break;;
6620
  esac
6621
done
6622
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6623
 
6624
 
6625
# Only perform the check for file, if the check method requires it
6626
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6627
case $deplibs_check_method in
6628
file_magic*)
6629
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6630
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6631
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6632
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6633
  echo $ECHO_N "(cached) $ECHO_C" >&6
6634
else
6635
  case $MAGIC_CMD in
6636
[\\/*] |  ?:[\\/]*)
6637
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6638
  ;;
6639
*)
6640
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6641
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6643
  for ac_dir in $ac_dummy; do
6644
    IFS="$lt_save_ifs"
6645
    test -z "$ac_dir" && ac_dir=.
6646
    if test -f $ac_dir/${ac_tool_prefix}file; then
6647
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6648
      if test -n "$file_magic_test_file"; then
6649
        case $deplibs_check_method in
6650
        "file_magic "*)
6651
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6652
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6654
            $EGREP "$file_magic_regex" > /dev/null; then
6655
            :
6656
          else
6657
            cat <<_LT_EOF 1>&2
6658
 
6659
*** Warning: the command libtool uses to detect shared libraries,
6660
*** $file_magic_cmd, produces output that libtool cannot recognize.
6661
*** The result is that libtool may fail to recognize shared libraries
6662
*** as such.  This will affect the creation of libtool libraries that
6663
*** depend on shared libraries, but programs linked with such libtool
6664
*** libraries will work regardless of this problem.  Nevertheless, you
6665
*** may want to report the problem to your system manager and/or to
6666
*** bug-libtool@gnu.org
6667
 
6668
_LT_EOF
6669
          fi ;;
6670
        esac
6671
      fi
6672
      break
6673
    fi
6674
  done
6675
  IFS="$lt_save_ifs"
6676
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6677
  ;;
6678
esac
6679
fi
6680
 
6681
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6682
if test -n "$MAGIC_CMD"; then
6683
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6684
echo "${ECHO_T}$MAGIC_CMD" >&6
6685
else
6686
  echo "$as_me:$LINENO: result: no" >&5
6687
echo "${ECHO_T}no" >&6
6688
fi
6689
 
6690
 
6691
 
6692
 
6693
 
6694
if test -z "$lt_cv_path_MAGIC_CMD"; then
6695
  if test -n "$ac_tool_prefix"; then
6696
    echo "$as_me:$LINENO: checking for file" >&5
6697
echo $ECHO_N "checking for file... $ECHO_C" >&6
6698
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6699
  echo $ECHO_N "(cached) $ECHO_C" >&6
6700
else
6701
  case $MAGIC_CMD in
6702
[\\/*] |  ?:[\\/]*)
6703
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6704
  ;;
6705
*)
6706
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6707
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6709
  for ac_dir in $ac_dummy; do
6710
    IFS="$lt_save_ifs"
6711
    test -z "$ac_dir" && ac_dir=.
6712
    if test -f $ac_dir/file; then
6713
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6714
      if test -n "$file_magic_test_file"; then
6715
        case $deplibs_check_method in
6716
        "file_magic "*)
6717
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6718
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6719
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6720
            $EGREP "$file_magic_regex" > /dev/null; then
6721
            :
6722
          else
6723
            cat <<_LT_EOF 1>&2
6724
 
6725
*** Warning: the command libtool uses to detect shared libraries,
6726
*** $file_magic_cmd, produces output that libtool cannot recognize.
6727
*** The result is that libtool may fail to recognize shared libraries
6728
*** as such.  This will affect the creation of libtool libraries that
6729
*** depend on shared libraries, but programs linked with such libtool
6730
*** libraries will work regardless of this problem.  Nevertheless, you
6731
*** may want to report the problem to your system manager and/or to
6732
*** bug-libtool@gnu.org
6733
 
6734
_LT_EOF
6735
          fi ;;
6736
        esac
6737
      fi
6738
      break
6739
    fi
6740
  done
6741
  IFS="$lt_save_ifs"
6742
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6743
  ;;
6744
esac
6745
fi
6746
 
6747
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6748
if test -n "$MAGIC_CMD"; then
6749
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6750
echo "${ECHO_T}$MAGIC_CMD" >&6
6751
else
6752
  echo "$as_me:$LINENO: result: no" >&5
6753
echo "${ECHO_T}no" >&6
6754
fi
6755
 
6756
 
6757
  else
6758
    MAGIC_CMD=:
6759
  fi
6760
fi
6761
 
6762
  fi
6763
  ;;
6764
esac
6765
 
6766
# Use C for the default configuration in the libtool script
6767
 
6768
lt_save_CC="$CC"
6769
ac_ext=c
6770
ac_cpp='$CPP $CPPFLAGS'
6771
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
 
6775
 
6776
# Source file extension for C test sources.
6777
ac_ext=c
6778
 
6779
# Object file extension for compiled C test sources.
6780
objext=o
6781
objext=$objext
6782
 
6783
# Code to be used in simple compile tests
6784
lt_simple_compile_test_code="int some_variable = 0;"
6785
 
6786
# Code to be used in simple link tests
6787
lt_simple_link_test_code='int main(){return(0);}'
6788
 
6789
 
6790
 
6791
 
6792
 
6793
 
6794
 
6795
# If no C compiler was specified, use CC.
6796
LTCC=${LTCC-"$CC"}
6797
 
6798
# If no C compiler flags were specified, use CFLAGS.
6799
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6800
 
6801
# Allow CC to be a program name with arguments.
6802
compiler=$CC
6803
 
6804
# Save the default compiler, since it gets overwritten when the other
6805
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6806
compiler_DEFAULT=$CC
6807
 
6808
# save warnings/boilerplate of simple test code
6809
ac_outfile=conftest.$ac_objext
6810
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6811
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6812
_lt_compiler_boilerplate=`cat conftest.err`
6813
$RM conftest*
6814
 
6815
ac_outfile=conftest.$ac_objext
6816
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6817
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6818
_lt_linker_boilerplate=`cat conftest.err`
6819
$RM conftest*
6820
 
6821
 
6822
## CAVEAT EMPTOR:
6823
## There is no encapsulation within the following macros, do not change
6824
## the running order or otherwise move them around unless you know exactly
6825
## what you are doing...
6826
if test -n "$compiler"; then
6827
 
6828
lt_prog_compiler_no_builtin_flag=
6829
 
6830
if test "$GCC" = yes; then
6831
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6832
 
6833
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6834
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6835
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6836
  echo $ECHO_N "(cached) $ECHO_C" >&6
6837
else
6838
  lt_cv_prog_compiler_rtti_exceptions=no
6839
   ac_outfile=conftest.$ac_objext
6840
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6841
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6842
   # Insert the option either (1) after the last *FLAGS variable, or
6843
   # (2) before a word containing "conftest.", or (3) at the end.
6844
   # Note that $ac_compile itself does not contain backslashes and begins
6845
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6846
   # The option is referenced via a variable to avoid confusing sed.
6847
   lt_compile=`echo "$ac_compile" | $SED \
6848
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6849
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850
   -e 's:$: $lt_compiler_flag:'`
6851
   (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
6852
   (eval "$lt_compile" 2>conftest.err)
6853
   ac_status=$?
6854
   cat conftest.err >&5
6855
   echo "$as_me:6855: \$? = $ac_status" >&5
6856
   if (exit $ac_status) && test -s "$ac_outfile"; then
6857
     # The compiler can only warn and ignore the option if not recognized
6858
     # So say no if there are warnings other than the usual output.
6859
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6860
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6861
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6862
       lt_cv_prog_compiler_rtti_exceptions=yes
6863
     fi
6864
   fi
6865
   $RM conftest*
6866
 
6867
fi
6868
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6869
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6870
 
6871
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6872
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6873
else
6874
    :
6875
fi
6876
 
6877
fi
6878
 
6879
 
6880
 
6881
 
6882
 
6883
 
6884
  lt_prog_compiler_wl=
6885
lt_prog_compiler_pic=
6886
lt_prog_compiler_static=
6887
 
6888
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6889
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6890
 
6891
  if test "$GCC" = yes; then
6892
    lt_prog_compiler_wl='-Wl,'
6893
    lt_prog_compiler_static='-static'
6894
 
6895
    case $host_os in
6896
      aix*)
6897
      # All AIX code is PIC.
6898
      if test "$host_cpu" = ia64; then
6899
        # AIX 5 now supports IA64 processor
6900
        lt_prog_compiler_static='-Bstatic'
6901
      fi
6902
      ;;
6903
 
6904
    amigaos*)
6905
      if test "$host_cpu" = m68k; then
6906
        # FIXME: we need at least 68020 code to build shared libraries, but
6907
        # adding the `-m68020' flag to GCC prevents building anything better,
6908
        # like `-m68040'.
6909
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6910
      fi
6911
      ;;
6912
 
6913
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6914
      # PIC is the default for these OSes.
6915
      ;;
6916
 
6917
    mingw* | cygwin* | pw32* | os2*)
6918
      # This hack is so that the source file can tell whether it is being
6919
      # built for inclusion in a dll (and should export symbols for example).
6920
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6921
      # (--disable-auto-import) libraries
6922
      lt_prog_compiler_pic='-DDLL_EXPORT'
6923
      ;;
6924
 
6925
    darwin* | rhapsody*)
6926
      # PIC is the default on this platform
6927
      # Common symbols not allowed in MH_DYLIB files
6928
      lt_prog_compiler_pic='-fno-common'
6929
      ;;
6930
 
6931
    hpux*)
6932
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6933
      # not for PA HP-UX.
6934
      case $host_cpu in
6935
      hppa*64*|ia64*)
6936
        # +Z the default
6937
        ;;
6938
      *)
6939
        lt_prog_compiler_pic='-fPIC'
6940
        ;;
6941
      esac
6942
      ;;
6943
 
6944
    interix[3-9]*)
6945
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6946
      # Instead, we relocate shared libraries at runtime.
6947
      ;;
6948
 
6949
    msdosdjgpp*)
6950
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6951
      # on systems that don't support them.
6952
      lt_prog_compiler_can_build_shared=no
6953
      enable_shared=no
6954
      ;;
6955
 
6956
    *nto* | *qnx*)
6957
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6958
      # it will coredump.
6959
      lt_prog_compiler_pic='-fPIC -shared'
6960
      ;;
6961
 
6962
    sysv4*MP*)
6963
      if test -d /usr/nec; then
6964
        lt_prog_compiler_pic=-Kconform_pic
6965
      fi
6966
      ;;
6967
 
6968
    *)
6969
      lt_prog_compiler_pic='-fPIC'
6970
      ;;
6971
    esac
6972
  else
6973
    # PORTME Check for flag to pass linker flags through the system compiler.
6974
    case $host_os in
6975
    aix*)
6976
      lt_prog_compiler_wl='-Wl,'
6977
      if test "$host_cpu" = ia64; then
6978
        # AIX 5 now supports IA64 processor
6979
        lt_prog_compiler_static='-Bstatic'
6980
      else
6981
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6982
      fi
6983
      ;;
6984
    darwin*)
6985
      # PIC is the default on this platform
6986
      # Common symbols not allowed in MH_DYLIB files
6987
      case $cc_basename in
6988
      xlc*)
6989
        lt_prog_compiler_pic='-qnocommon'
6990
        lt_prog_compiler_wl='-Wl,'
6991
        ;;
6992
      esac
6993
      ;;
6994
 
6995
    mingw* | cygwin* | pw32* | os2*)
6996
      # This hack is so that the source file can tell whether it is being
6997
      # built for inclusion in a dll (and should export symbols for example).
6998
      lt_prog_compiler_pic='-DDLL_EXPORT'
6999
      ;;
7000
 
7001
    hpux9* | hpux10* | hpux11*)
7002
      lt_prog_compiler_wl='-Wl,'
7003
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7004
      # not for PA HP-UX.
7005
      case $host_cpu in
7006
      hppa*64*|ia64*)
7007
        # +Z the default
7008
        ;;
7009
      *)
7010
        lt_prog_compiler_pic='+Z'
7011
        ;;
7012
      esac
7013
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7014
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7015
      ;;
7016
 
7017
    irix5* | irix6* | nonstopux*)
7018
      lt_prog_compiler_wl='-Wl,'
7019
      # PIC (with -KPIC) is the default.
7020
      lt_prog_compiler_static='-non_shared'
7021
      ;;
7022
 
7023
    linux* | k*bsd*-gnu)
7024
      case $cc_basename in
7025
      icc* | ecc*)
7026
        lt_prog_compiler_wl='-Wl,'
7027
        lt_prog_compiler_pic='-KPIC'
7028
        lt_prog_compiler_static='-static'
7029
        ;;
7030
      pgcc* | pgf77* | pgf90* | pgf95*)
7031
        # Portland Group compilers (*not* the Pentium gcc compiler,
7032
        # which looks to be a dead project)
7033
        lt_prog_compiler_wl='-Wl,'
7034
        lt_prog_compiler_pic='-fpic'
7035
        lt_prog_compiler_static='-Bstatic'
7036
        ;;
7037
      ccc*)
7038
        lt_prog_compiler_wl='-Wl,'
7039
        # All Alpha code is PIC.
7040
        lt_prog_compiler_static='-non_shared'
7041
        ;;
7042
      *)
7043
        case `$CC -V 2>&1 | sed 5q` in
7044
        *Sun\ C*)
7045
          # Sun C 5.9
7046
          lt_prog_compiler_pic='-KPIC'
7047
          lt_prog_compiler_static='-Bstatic'
7048
          lt_prog_compiler_wl='-Wl,'
7049
          ;;
7050
        *Sun\ F*)
7051
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7052
          lt_prog_compiler_pic='-KPIC'
7053
          lt_prog_compiler_static='-Bstatic'
7054
          lt_prog_compiler_wl=''
7055
          ;;
7056
        esac
7057
        ;;
7058
      esac
7059
      ;;
7060
 
7061
    newsos6)
7062
      lt_prog_compiler_pic='-KPIC'
7063
      lt_prog_compiler_static='-Bstatic'
7064
      ;;
7065
 
7066
    *nto* | *qnx*)
7067
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7068
      # it will coredump.
7069
      lt_prog_compiler_pic='-fPIC -shared'
7070
      ;;
7071
 
7072
    osf3* | osf4* | osf5*)
7073
      lt_prog_compiler_wl='-Wl,'
7074
      # All OSF/1 code is PIC.
7075
      lt_prog_compiler_static='-non_shared'
7076
      ;;
7077
 
7078
    rdos*)
7079
      lt_prog_compiler_static='-non_shared'
7080
      ;;
7081
 
7082
    solaris*)
7083
      lt_prog_compiler_pic='-KPIC'
7084
      lt_prog_compiler_static='-Bstatic'
7085
      case $cc_basename in
7086
      f77* | f90* | f95*)
7087
        lt_prog_compiler_wl='-Qoption ld ';;
7088
      *)
7089
        lt_prog_compiler_wl='-Wl,';;
7090
      esac
7091
      ;;
7092
 
7093
    sunos4*)
7094
      lt_prog_compiler_wl='-Qoption ld '
7095
      lt_prog_compiler_pic='-PIC'
7096
      lt_prog_compiler_static='-Bstatic'
7097
      ;;
7098
 
7099
    sysv4 | sysv4.2uw2* | sysv4.3*)
7100
      lt_prog_compiler_wl='-Wl,'
7101
      lt_prog_compiler_pic='-KPIC'
7102
      lt_prog_compiler_static='-Bstatic'
7103
      ;;
7104
 
7105
    sysv4*MP*)
7106
      if test -d /usr/nec ;then
7107
        lt_prog_compiler_pic='-Kconform_pic'
7108
        lt_prog_compiler_static='-Bstatic'
7109
      fi
7110
      ;;
7111
 
7112
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7113
      lt_prog_compiler_wl='-Wl,'
7114
      lt_prog_compiler_pic='-KPIC'
7115
      lt_prog_compiler_static='-Bstatic'
7116
      ;;
7117
 
7118
    unicos*)
7119
      lt_prog_compiler_wl='-Wl,'
7120
      lt_prog_compiler_can_build_shared=no
7121
      ;;
7122
 
7123
    uts4*)
7124
      lt_prog_compiler_pic='-pic'
7125
      lt_prog_compiler_static='-Bstatic'
7126
      ;;
7127
 
7128
    *)
7129
      lt_prog_compiler_can_build_shared=no
7130
      ;;
7131
    esac
7132
  fi
7133
 
7134
case $host_os in
7135
  # For platforms which do not support PIC, -DPIC is meaningless:
7136
  *djgpp*)
7137
    lt_prog_compiler_pic=
7138
    ;;
7139
  *)
7140
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141
    ;;
7142
esac
7143
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7144
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7145
 
7146
 
7147
 
7148
 
7149
 
7150
 
7151
#
7152
# Check to make sure the PIC flag actually works.
7153
#
7154
if test -n "$lt_prog_compiler_pic"; then
7155
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7156
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7157
if test "${lt_prog_compiler_pic_works+set}" = set; then
7158
  echo $ECHO_N "(cached) $ECHO_C" >&6
7159
else
7160
  lt_prog_compiler_pic_works=no
7161
   ac_outfile=conftest.$ac_objext
7162
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7164
   # Insert the option either (1) after the last *FLAGS variable, or
7165
   # (2) before a word containing "conftest.", or (3) at the end.
7166
   # Note that $ac_compile itself does not contain backslashes and begins
7167
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7168
   # The option is referenced via a variable to avoid confusing sed.
7169
   lt_compile=`echo "$ac_compile" | $SED \
7170
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172
   -e 's:$: $lt_compiler_flag:'`
7173
   (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174
   (eval "$lt_compile" 2>conftest.err)
7175
   ac_status=$?
7176
   cat conftest.err >&5
7177
   echo "$as_me:7177: \$? = $ac_status" >&5
7178
   if (exit $ac_status) && test -s "$ac_outfile"; then
7179
     # The compiler can only warn and ignore the option if not recognized
7180
     # So say no if there are warnings other than the usual output.
7181
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7182
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7184
       lt_prog_compiler_pic_works=yes
7185
     fi
7186
   fi
7187
   $RM conftest*
7188
 
7189
fi
7190
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7191
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7192
 
7193
if test x"$lt_prog_compiler_pic_works" = xyes; then
7194
    case $lt_prog_compiler_pic in
7195
     "" | " "*) ;;
7196
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7197
     esac
7198
else
7199
    lt_prog_compiler_pic=
7200
     lt_prog_compiler_can_build_shared=no
7201
fi
7202
 
7203
fi
7204
 
7205
 
7206
 
7207
 
7208
 
7209
 
7210
#
7211
# Check to make sure the static flag actually works.
7212
#
7213
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7214
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7215
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7216
if test "${lt_prog_compiler_static_works+set}" = set; then
7217
  echo $ECHO_N "(cached) $ECHO_C" >&6
7218
else
7219
  lt_prog_compiler_static_works=no
7220
   save_LDFLAGS="$LDFLAGS"
7221
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7222
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7223
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7224
     # The linker can only warn and ignore the option if not recognized
7225
     # So say no if there are warnings
7226
     if test -s conftest.err; then
7227
       # Append any errors to the config.log.
7228
       cat conftest.err 1>&5
7229
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7230
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231
       if diff conftest.exp conftest.er2 >/dev/null; then
7232
         lt_prog_compiler_static_works=yes
7233
       fi
7234
     else
7235
       lt_prog_compiler_static_works=yes
7236
     fi
7237
   fi
7238
   $RM conftest*
7239
   LDFLAGS="$save_LDFLAGS"
7240
 
7241
fi
7242
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7243
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7244
 
7245
if test x"$lt_prog_compiler_static_works" = xyes; then
7246
    :
7247
else
7248
    lt_prog_compiler_static=
7249
fi
7250
 
7251
 
7252
 
7253
 
7254
 
7255
 
7256
 
7257
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7258
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7259
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7260
  echo $ECHO_N "(cached) $ECHO_C" >&6
7261
else
7262
  lt_cv_prog_compiler_c_o=no
7263
   $RM -r conftest 2>/dev/null
7264
   mkdir conftest
7265
   cd conftest
7266
   mkdir out
7267
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268
 
7269
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7270
   # Insert the option either (1) after the last *FLAGS variable, or
7271
   # (2) before a word containing "conftest.", or (3) at the end.
7272
   # Note that $ac_compile itself does not contain backslashes and begins
7273
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7274
   lt_compile=`echo "$ac_compile" | $SED \
7275
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7276
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277
   -e 's:$: $lt_compiler_flag:'`
7278
   (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
7279
   (eval "$lt_compile" 2>out/conftest.err)
7280
   ac_status=$?
7281
   cat out/conftest.err >&5
7282
   echo "$as_me:7282: \$? = $ac_status" >&5
7283
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284
   then
7285
     # The compiler can only warn and ignore the option if not recognized
7286
     # So say no if there are warnings
7287
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7288
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7290
       lt_cv_prog_compiler_c_o=yes
7291
     fi
7292
   fi
7293
   chmod u+w . 2>&5
7294
   $RM conftest*
7295
   # SGI C++ compiler will create directory out/ii_files/ for
7296
   # template instantiation
7297
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298
   $RM out/* && rmdir out
7299
   cd ..
7300
   $RM -r conftest
7301
   $RM conftest*
7302
 
7303
fi
7304
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7305
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7306
 
7307
 
7308
 
7309
 
7310
 
7311
 
7312
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7313
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7314
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7315
  echo $ECHO_N "(cached) $ECHO_C" >&6
7316
else
7317
  lt_cv_prog_compiler_c_o=no
7318
   $RM -r conftest 2>/dev/null
7319
   mkdir conftest
7320
   cd conftest
7321
   mkdir out
7322
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323
 
7324
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7325
   # Insert the option either (1) after the last *FLAGS variable, or
7326
   # (2) before a word containing "conftest.", or (3) at the end.
7327
   # Note that $ac_compile itself does not contain backslashes and begins
7328
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7329
   lt_compile=`echo "$ac_compile" | $SED \
7330
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7331
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7332
   -e 's:$: $lt_compiler_flag:'`
7333
   (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
7334
   (eval "$lt_compile" 2>out/conftest.err)
7335
   ac_status=$?
7336
   cat out/conftest.err >&5
7337
   echo "$as_me:7337: \$? = $ac_status" >&5
7338
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7339
   then
7340
     # The compiler can only warn and ignore the option if not recognized
7341
     # So say no if there are warnings
7342
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7343
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7344
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7345
       lt_cv_prog_compiler_c_o=yes
7346
     fi
7347
   fi
7348
   chmod u+w . 2>&5
7349
   $RM conftest*
7350
   # SGI C++ compiler will create directory out/ii_files/ for
7351
   # template instantiation
7352
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7353
   $RM out/* && rmdir out
7354
   cd ..
7355
   $RM -r conftest
7356
   $RM conftest*
7357
 
7358
fi
7359
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7360
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7361
 
7362
 
7363
 
7364
 
7365
hard_links="nottested"
7366
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7367
  # do not overwrite the value of need_locks provided by the user
7368
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7369
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7370
  hard_links=yes
7371
  $RM conftest*
7372
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7373
  touch conftest.a
7374
  ln conftest.a conftest.b 2>&5 || hard_links=no
7375
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7376
  echo "$as_me:$LINENO: result: $hard_links" >&5
7377
echo "${ECHO_T}$hard_links" >&6
7378
  if test "$hard_links" = no; then
7379
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7380
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7381
    need_locks=warn
7382
  fi
7383
else
7384
  need_locks=no
7385
fi
7386
 
7387
 
7388
 
7389
 
7390
 
7391
 
7392
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7393
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7394
 
7395
  runpath_var=
7396
  allow_undefined_flag=
7397
  always_export_symbols=no
7398
  archive_cmds=
7399
  archive_expsym_cmds=
7400
  compiler_needs_object=no
7401
  enable_shared_with_static_runtimes=no
7402
  export_dynamic_flag_spec=
7403
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7404
  hardcode_automatic=no
7405
  hardcode_direct=no
7406
  hardcode_direct_absolute=no
7407
  hardcode_libdir_flag_spec=
7408
  hardcode_libdir_flag_spec_ld=
7409
  hardcode_libdir_separator=
7410
  hardcode_minus_L=no
7411
  hardcode_shlibpath_var=unsupported
7412
  inherit_rpath=no
7413
  link_all_deplibs=unknown
7414
  module_cmds=
7415
  module_expsym_cmds=
7416
  old_archive_from_new_cmds=
7417
  old_archive_from_expsyms_cmds=
7418
  thread_safe_flag_spec=
7419
  whole_archive_flag_spec=
7420
  # include_expsyms should be a list of space-separated symbols to be *always*
7421
  # included in the symbol list
7422
  include_expsyms=
7423
  # exclude_expsyms can be an extended regexp of symbols to exclude
7424
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426
  # as well as any symbol that contains `d'.
7427
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7428
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429
  # platforms (ab)use it in PIC code, but their linkers get confused if
7430
  # the symbol is explicitly referenced.  Since portable code cannot
7431
  # rely on this symbol name, it's probably fine to never include it in
7432
  # preloaded symbol tables.
7433
  extract_expsyms_cmds=
7434
 
7435
  case $host_os in
7436
  cygwin* | mingw* | pw32*)
7437
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7438
    # When not using gcc, we currently assume that we are using
7439
    # Microsoft Visual C++.
7440
    if test "$GCC" != yes; then
7441
      with_gnu_ld=no
7442
    fi
7443
    ;;
7444
  interix*)
7445
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7446
    with_gnu_ld=yes
7447
    ;;
7448
  openbsd*)
7449
    with_gnu_ld=no
7450
    ;;
7451
  esac
7452
 
7453
  ld_shlibs=yes
7454
  if test "$with_gnu_ld" = yes; then
7455
    # If archive_cmds runs LD, not CC, wlarc should be empty
7456
    wlarc='${wl}'
7457
 
7458
    # Set some defaults for GNU ld with shared library support. These
7459
    # are reset later if shared libraries are not supported. Putting them
7460
    # here allows them to be overridden if necessary.
7461
    runpath_var=LD_RUN_PATH
7462
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7463
    export_dynamic_flag_spec='${wl}--export-dynamic'
7464
    # ancient GNU ld didn't support --whole-archive et. al.
7465
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7466
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7467
    else
7468
      whole_archive_flag_spec=
7469
    fi
7470
    supports_anon_versioning=no
7471
    case `$LD -v 2>&1` in
7472
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7473
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7474
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7475
      *\ 2.11.*) ;; # other 2.11 versions
7476
      *) supports_anon_versioning=yes ;;
7477
    esac
7478
 
7479
    # See if GNU ld supports shared libraries.
7480
    case $host_os in
7481
    aix[3-9]*)
7482
      # On AIX/PPC, the GNU linker is very broken
7483
      if test "$host_cpu" != ia64; then
7484
        ld_shlibs=no
7485
        cat <<_LT_EOF 1>&2
7486
 
7487
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7488
*** to be unable to reliably create shared libraries on AIX.
7489
*** Therefore, libtool is disabling shared libraries support.  If you
7490
*** really care for shared libraries, you may want to modify your PATH
7491
*** so that a non-GNU linker is found, and then restart.
7492
 
7493
_LT_EOF
7494
      fi
7495
      ;;
7496
 
7497
    amigaos*)
7498
      if test "$host_cpu" = m68k; then
7499
        archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7500
        hardcode_libdir_flag_spec='-L$libdir'
7501
        hardcode_minus_L=yes
7502
      fi
7503
 
7504
      # Samuel A. Falvo II  reports
7505
      # that the semantics of dynamic libraries on AmigaOS, at least up
7506
      # to version 4, is to share data among multiple programs linked
7507
      # with the same dynamic library.  Since this doesn't match the
7508
      # behavior of shared libraries on other platforms, we can't use
7509
      # them.
7510
      ld_shlibs=no
7511
      ;;
7512
 
7513
    beos*)
7514
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515
        allow_undefined_flag=unsupported
7516
        # Joseph Beckenbach  says some releases of gcc
7517
        # support --undefined.  This deserves some investigation.  FIXME
7518
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519
      else
7520
        ld_shlibs=no
7521
      fi
7522
      ;;
7523
 
7524
    cygwin* | mingw* | pw32*)
7525
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7526
      # as there is no search path for DLLs.
7527
      hardcode_libdir_flag_spec='-L$libdir'
7528
      allow_undefined_flag=unsupported
7529
      always_export_symbols=no
7530
      enable_shared_with_static_runtimes=yes
7531
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7532
 
7533
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7534
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7535
        # If the export-symbols file already is a .def file (1st line
7536
        # is EXPORTS), use it as is; otherwise, prepend...
7537
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7538
          cp $export_symbols $output_objdir/$soname.def;
7539
        else
7540
          echo EXPORTS > $output_objdir/$soname.def;
7541
          cat $export_symbols >> $output_objdir/$soname.def;
7542
        fi~
7543
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7544
      else
7545
        ld_shlibs=no
7546
      fi
7547
      ;;
7548
 
7549
    interix[3-9]*)
7550
      hardcode_direct=no
7551
      hardcode_shlibpath_var=no
7552
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7553
      export_dynamic_flag_spec='${wl}-E'
7554
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7555
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7556
      # default) and relocated if they conflict, which is a slow very memory
7557
      # consuming and fragmenting process.  To avoid this, we pick a random,
7558
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7559
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7560
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7561
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7562
      ;;
7563
 
7564
    gnu* | linux* | tpf* | k*bsd*-gnu)
7565
      tmp_diet=no
7566
      if test "$host_os" = linux-dietlibc; then
7567
        case $cc_basename in
7568
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7569
        esac
7570
      fi
7571
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7572
         && test "$tmp_diet" = no
7573
      then
7574
        tmp_addflag=
7575
        case $cc_basename,$host_cpu in
7576
        pgcc*)                          # Portland Group C compiler
7577
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7578
          tmp_addflag=' $pic_flag'
7579
          ;;
7580
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7581
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7582
          tmp_addflag=' $pic_flag -Mnomain' ;;
7583
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7584
          tmp_addflag=' -i_dynamic' ;;
7585
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7586
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7587
        ifc* | ifort*)                  # Intel Fortran compiler
7588
          tmp_addflag=' -nofor_main' ;;
7589
        esac
7590
        case `$CC -V 2>&1 | sed 5q` in
7591
        *Sun\ C*)                       # Sun C 5.9
7592
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7593
          compiler_needs_object=yes
7594
          tmp_sharedflag='-G' ;;
7595
        *Sun\ F*)                       # Sun Fortran 8.3
7596
          tmp_sharedflag='-G' ;;
7597
        *)
7598
          tmp_sharedflag='-shared' ;;
7599
        esac
7600
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7601
 
7602
        if test "x$supports_anon_versioning" = xyes; then
7603
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7604
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7605
            echo "local: *; };" >> $output_objdir/$libname.ver~
7606
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7607
        fi
7608
      else
7609
        ld_shlibs=no
7610
      fi
7611
      ;;
7612
 
7613
    netbsd*)
7614
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7615
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7616
        wlarc=
7617
      else
7618
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7619
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7620
      fi
7621
      ;;
7622
 
7623
    solaris*)
7624
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7625
        ld_shlibs=no
7626
        cat <<_LT_EOF 1>&2
7627
 
7628
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7629
*** create shared libraries on Solaris systems.  Therefore, libtool
7630
*** is disabling shared libraries support.  We urge you to upgrade GNU
7631
*** binutils to release 2.9.1 or newer.  Another option is to modify
7632
*** your PATH or compiler configuration so that the native linker is
7633
*** used, and then restart.
7634
 
7635
_LT_EOF
7636
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7637
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7639
      else
7640
        ld_shlibs=no
7641
      fi
7642
      ;;
7643
 
7644
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7645
      case `$LD -v 2>&1` in
7646
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7647
        ld_shlibs=no
7648
        cat <<_LT_EOF 1>&2
7649
 
7650
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7651
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7652
*** is disabling shared libraries support.  We urge you to upgrade GNU
7653
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7654
*** your PATH or compiler configuration so that the native linker is
7655
*** used, and then restart.
7656
 
7657
_LT_EOF
7658
        ;;
7659
        *)
7660
          # For security reasons, it is highly recommended that you always
7661
          # use absolute paths for naming shared libraries, and exclude the
7662
          # DT_RUNPATH tag from executables and libraries.  But doing so
7663
          # requires that you compile everything twice, which is a pain.
7664
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7665
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7666
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668
          else
7669
            ld_shlibs=no
7670
          fi
7671
        ;;
7672
      esac
7673
      ;;
7674
 
7675
    sunos4*)
7676
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7677
      wlarc=
7678
      hardcode_direct=yes
7679
      hardcode_shlibpath_var=no
7680
      ;;
7681
 
7682
    *)
7683
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7684
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7685
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7686
      else
7687
        ld_shlibs=no
7688
      fi
7689
      ;;
7690
    esac
7691
 
7692
    if test "$ld_shlibs" = no; then
7693
      runpath_var=
7694
      hardcode_libdir_flag_spec=
7695
      export_dynamic_flag_spec=
7696
      whole_archive_flag_spec=
7697
    fi
7698
  else
7699
    # PORTME fill in a description of your system's linker (not GNU ld)
7700
    case $host_os in
7701
    aix3*)
7702
      allow_undefined_flag=unsupported
7703
      always_export_symbols=yes
7704
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7705
      # Note: this linker hardcodes the directories in LIBPATH if there
7706
      # are no directories specified by -L.
7707
      hardcode_minus_L=yes
7708
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7709
        # Neither direct hardcoding nor static linking is supported with a
7710
        # broken collect2.
7711
        hardcode_direct=unsupported
7712
      fi
7713
      ;;
7714
 
7715
    aix[4-9]*)
7716
      if test "$host_cpu" = ia64; then
7717
        # On IA64, the linker does run time linking by default, so we don't
7718
        # have to do anything special.
7719
        aix_use_runtimelinking=no
7720
        exp_sym_flag='-Bexport'
7721
        no_entry_flag=""
7722
      else
7723
        # If we're using GNU nm, then we don't want the "-C" option.
7724
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7725
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7726
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7727
        else
7728
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7729
        fi
7730
        aix_use_runtimelinking=no
7731
 
7732
        # Test if we are trying to use run time linking or normal
7733
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7734
        # need to do runtime linking.
7735
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7736
          for ld_flag in $LDFLAGS; do
7737
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7738
            aix_use_runtimelinking=yes
7739
            break
7740
          fi
7741
          done
7742
          ;;
7743
        esac
7744
 
7745
        exp_sym_flag='-bexport'
7746
        no_entry_flag='-bnoentry'
7747
      fi
7748
 
7749
      # When large executables or shared objects are built, AIX ld can
7750
      # have problems creating the table of contents.  If linking a library
7751
      # or program results in "error TOC overflow" add -mminimal-toc to
7752
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7753
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7754
 
7755
      archive_cmds=''
7756
      hardcode_direct=yes
7757
      hardcode_direct_absolute=yes
7758
      hardcode_libdir_separator=':'
7759
      link_all_deplibs=yes
7760
      file_list_spec='${wl}-f,'
7761
 
7762
      if test "$GCC" = yes; then
7763
        case $host_os in aix4.[012]|aix4.[012].*)
7764
        # We only want to do this on AIX 4.2 and lower, the check
7765
        # below for broken collect2 doesn't work under 4.3+
7766
          collect2name=`${CC} -print-prog-name=collect2`
7767
          if test -f "$collect2name" &&
7768
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7769
          then
7770
          # We have reworked collect2
7771
          :
7772
          else
7773
          # We have old collect2
7774
          hardcode_direct=unsupported
7775
          # It fails to find uninstalled libraries when the uninstalled
7776
          # path is not listed in the libpath.  Setting hardcode_minus_L
7777
          # to unsupported forces relinking
7778
          hardcode_minus_L=yes
7779
          hardcode_libdir_flag_spec='-L$libdir'
7780
          hardcode_libdir_separator=
7781
          fi
7782
          ;;
7783
        esac
7784
        shared_flag='-shared'
7785
        if test "$aix_use_runtimelinking" = yes; then
7786
          shared_flag="$shared_flag "'${wl}-G'
7787
        fi
7788
      else
7789
        # not using gcc
7790
        if test "$host_cpu" = ia64; then
7791
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7792
        # chokes on -Wl,-G. The following line is correct:
7793
          shared_flag='-G'
7794
        else
7795
          if test "$aix_use_runtimelinking" = yes; then
7796
            shared_flag='${wl}-G'
7797
          else
7798
            shared_flag='${wl}-bM:SRE'
7799
          fi
7800
        fi
7801
      fi
7802
 
7803
      # It seems that -bexpall does not export symbols beginning with
7804
      # underscore (_), so it is better to generate a list of symbols to export.
7805
      always_export_symbols=yes
7806
      if test "$aix_use_runtimelinking" = yes; then
7807
        # Warning - without using the other runtime loading flags (-brtl),
7808
        # -berok will link without error, but may produce a broken library.
7809
        allow_undefined_flag='-berok'
7810
        # Determine the default libpath from the value encoded in an
7811
        # empty executable.
7812
        cat >conftest.$ac_ext <<_ACEOF
7813
/* confdefs.h.  */
7814
_ACEOF
7815
cat confdefs.h >>conftest.$ac_ext
7816
cat >>conftest.$ac_ext <<_ACEOF
7817
/* end confdefs.h.  */
7818
 
7819
int
7820
main ()
7821
{
7822
 
7823
  ;
7824
  return 0;
7825
}
7826
_ACEOF
7827
rm -f conftest.$ac_objext conftest$ac_exeext
7828
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829
  (eval $ac_link) 2>conftest.er1
7830
  ac_status=$?
7831
  grep -v '^ *+' conftest.er1 >conftest.err
7832
  rm -f conftest.er1
7833
  cat conftest.err >&5
7834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835
  (exit $ac_status); } &&
7836
         { ac_try='test -z "$ac_c_werror_flag"
7837
                         || test ! -s conftest.err'
7838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839
  (eval $ac_try) 2>&5
7840
  ac_status=$?
7841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842
  (exit $ac_status); }; } &&
7843
         { ac_try='test -s conftest$ac_exeext'
7844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845
  (eval $ac_try) 2>&5
7846
  ac_status=$?
7847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848
  (exit $ac_status); }; }; then
7849
 
7850
lt_aix_libpath_sed='
7851
    /Import File Strings/,/^$/ {
7852
        /^0/ {
7853
            s/^0  *\(.*\)$/\1/
7854
            p
7855
        }
7856
    }'
7857
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7858
# Check for a 64-bit object if we didn't find anything.
7859
if test -z "$aix_libpath"; then
7860
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7861
fi
7862
else
7863
  echo "$as_me: failed program was:" >&5
7864
sed 's/^/| /' conftest.$ac_ext >&5
7865
 
7866
fi
7867
rm -f conftest.err conftest.$ac_objext \
7868
      conftest$ac_exeext conftest.$ac_ext
7869
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7870
 
7871
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7872
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7873
      else
7874
        if test "$host_cpu" = ia64; then
7875
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7876
          allow_undefined_flag="-z nodefs"
7877
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7878
        else
7879
         # Determine the default libpath from the value encoded in an
7880
         # empty executable.
7881
         cat >conftest.$ac_ext <<_ACEOF
7882
/* confdefs.h.  */
7883
_ACEOF
7884
cat confdefs.h >>conftest.$ac_ext
7885
cat >>conftest.$ac_ext <<_ACEOF
7886
/* end confdefs.h.  */
7887
 
7888
int
7889
main ()
7890
{
7891
 
7892
  ;
7893
  return 0;
7894
}
7895
_ACEOF
7896
rm -f conftest.$ac_objext conftest$ac_exeext
7897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898
  (eval $ac_link) 2>conftest.er1
7899
  ac_status=$?
7900
  grep -v '^ *+' conftest.er1 >conftest.err
7901
  rm -f conftest.er1
7902
  cat conftest.err >&5
7903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904
  (exit $ac_status); } &&
7905
         { ac_try='test -z "$ac_c_werror_flag"
7906
                         || test ! -s conftest.err'
7907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908
  (eval $ac_try) 2>&5
7909
  ac_status=$?
7910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911
  (exit $ac_status); }; } &&
7912
         { ac_try='test -s conftest$ac_exeext'
7913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914
  (eval $ac_try) 2>&5
7915
  ac_status=$?
7916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917
  (exit $ac_status); }; }; then
7918
 
7919
lt_aix_libpath_sed='
7920
    /Import File Strings/,/^$/ {
7921
        /^0/ {
7922
            s/^0  *\(.*\)$/\1/
7923
            p
7924
        }
7925
    }'
7926
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7927
# Check for a 64-bit object if we didn't find anything.
7928
if test -z "$aix_libpath"; then
7929
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7930
fi
7931
else
7932
  echo "$as_me: failed program was:" >&5
7933
sed 's/^/| /' conftest.$ac_ext >&5
7934
 
7935
fi
7936
rm -f conftest.err conftest.$ac_objext \
7937
      conftest$ac_exeext conftest.$ac_ext
7938
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7939
 
7940
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7941
          # Warning - without using the other run time loading flags,
7942
          # -berok will link without error, but may produce a broken library.
7943
          no_undefined_flag=' ${wl}-bernotok'
7944
          allow_undefined_flag=' ${wl}-berok'
7945
          # Exported symbols can be pulled into shared objects from archives
7946
          whole_archive_flag_spec='$convenience'
7947
          archive_cmds_need_lc=yes
7948
          # This is similar to how AIX traditionally builds its shared libraries.
7949
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7950
        fi
7951
      fi
7952
      ;;
7953
 
7954
    amigaos*)
7955
      if test "$host_cpu" = m68k; then
7956
        archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7957
        hardcode_libdir_flag_spec='-L$libdir'
7958
        hardcode_minus_L=yes
7959
      fi
7960
      # see comment about different semantics on the GNU ld section
7961
      ld_shlibs=no
7962
      ;;
7963
 
7964
    bsdi[45]*)
7965
      export_dynamic_flag_spec=-rdynamic
7966
      ;;
7967
 
7968
    cygwin* | mingw* | pw32*)
7969
      # When not using gcc, we currently assume that we are using
7970
      # Microsoft Visual C++.
7971
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7972
      # no search path for DLLs.
7973
      hardcode_libdir_flag_spec=' '
7974
      allow_undefined_flag=unsupported
7975
      # Tell ltmain to make .lib files, not .a files.
7976
      libext=lib
7977
      # Tell ltmain to make .dll files, not .so files.
7978
      shrext_cmds=".dll"
7979
      # FIXME: Setting linknames here is a bad hack.
7980
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7981
      # The linker will automatically build a .lib file if we build a DLL.
7982
      old_archive_from_new_cmds='true'
7983
      # FIXME: Should let the user specify the lib program.
7984
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7985
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7986
      enable_shared_with_static_runtimes=yes
7987
      ;;
7988
 
7989
    darwin* | rhapsody*)
7990
      case $host_os in
7991
      rhapsody* | darwin1.[012])
7992
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
7993
        ;;
7994
      *) # Darwin 1.3 on
7995
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7996
        10.[012])
7997
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7998
          ;;
7999
        10.*)
8000
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8001
          ;;
8002
        esac
8003
        ;;
8004
      esac
8005
      archive_cmds_need_lc=no
8006
      hardcode_direct=no
8007
      hardcode_automatic=yes
8008
      hardcode_shlibpath_var=unsupported
8009
      whole_archive_flag_spec=''
8010
      link_all_deplibs=yes
8011
      if test "$GCC" = yes ; then
8012
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8013
  echo $ECHO_N "(cached) $ECHO_C" >&6
8014
else
8015
  lt_cv_apple_cc_single_mod=no
8016
        if test -z "${LT_MULTI_MODULE}"; then
8017
          # By default we will add the -single_module flag. You can override
8018
          # by either setting the environment variable LT_MULTI_MODULE
8019
          # non-empty at configure time, or by adding -multi-module to the
8020
          # link flags.
8021
          echo "int foo(void){return 1;}" > conftest.c
8022
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8023
              -dynamiclib ${wl}-single_module conftest.c
8024
          if test -f libconftest.dylib; then
8025
              lt_cv_apple_cc_single_mod=yes
8026
              rm libconftest.dylib
8027
          fi
8028
          rm conftest.$ac_ext
8029
        fi
8030
fi
8031
 
8032
        output_verbose_link_cmd=echo
8033
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8034
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8035
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8036
        else
8037
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8038
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8039
        fi
8040
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8041
        module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8042
      else
8043
        case $cc_basename in
8044
        xlc*)
8045
          output_verbose_link_cmd=echo
8046
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8047
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8048
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8049
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8050
          module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8051
          ;;
8052
        *)
8053
          ld_shlibs=no
8054
          ;;
8055
        esac
8056
      fi
8057
      ;;
8058
 
8059
    dgux*)
8060
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061
      hardcode_libdir_flag_spec='-L$libdir'
8062
      hardcode_shlibpath_var=no
8063
      ;;
8064
 
8065
    freebsd1*)
8066
      ld_shlibs=no
8067
      ;;
8068
 
8069
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8070
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8071
    # does not break anything, and helps significantly (at the cost of a little
8072
    # extra space).
8073
    freebsd2.2*)
8074
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8075
      hardcode_libdir_flag_spec='-R$libdir'
8076
      hardcode_direct=yes
8077
      hardcode_shlibpath_var=no
8078
      ;;
8079
 
8080
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8081
    freebsd2*)
8082
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8083
      hardcode_direct=yes
8084
      hardcode_minus_L=yes
8085
      hardcode_shlibpath_var=no
8086
      ;;
8087
 
8088
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8089
    freebsd* | dragonfly*)
8090
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8091
      hardcode_libdir_flag_spec='-R$libdir'
8092
      hardcode_direct=yes
8093
      hardcode_shlibpath_var=no
8094
      ;;
8095
 
8096
    hpux9*)
8097
      if test "$GCC" = yes; then
8098
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8099
      else
8100
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8101
      fi
8102
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8103
      hardcode_libdir_separator=:
8104
      hardcode_direct=yes
8105
 
8106
      # hardcode_minus_L: Not really in the search PATH,
8107
      # but as the default location of the library.
8108
      hardcode_minus_L=yes
8109
      export_dynamic_flag_spec='${wl}-E'
8110
      ;;
8111
 
8112
    hpux10*)
8113
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8114
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8115
      else
8116
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8117
      fi
8118
      if test "$with_gnu_ld" = no; then
8119
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8120
        hardcode_libdir_flag_spec_ld='+b $libdir'
8121
        hardcode_libdir_separator=:
8122
        hardcode_direct=yes
8123
        hardcode_direct_absolute=yes
8124
        export_dynamic_flag_spec='${wl}-E'
8125
        # hardcode_minus_L: Not really in the search PATH,
8126
        # but as the default location of the library.
8127
        hardcode_minus_L=yes
8128
      fi
8129
      ;;
8130
 
8131
    hpux11*)
8132
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8133
        case $host_cpu in
8134
        hppa*64*)
8135
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136
          ;;
8137
        ia64*)
8138
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8139
          ;;
8140
        *)
8141
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8142
          ;;
8143
        esac
8144
      else
8145
        case $host_cpu in
8146
        hppa*64*)
8147
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8148
          ;;
8149
        ia64*)
8150
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8151
          ;;
8152
        *)
8153
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8154
          ;;
8155
        esac
8156
      fi
8157
      if test "$with_gnu_ld" = no; then
8158
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8159
        hardcode_libdir_separator=:
8160
 
8161
        case $host_cpu in
8162
        hppa*64*|ia64*)
8163
          hardcode_direct=no
8164
          hardcode_shlibpath_var=no
8165
          ;;
8166
        *)
8167
          hardcode_direct=yes
8168
          hardcode_direct_absolute=yes
8169
          export_dynamic_flag_spec='${wl}-E'
8170
 
8171
          # hardcode_minus_L: Not really in the search PATH,
8172
          # but as the default location of the library.
8173
          hardcode_minus_L=yes
8174
          ;;
8175
        esac
8176
      fi
8177
      ;;
8178
 
8179
    irix5* | irix6* | nonstopux*)
8180
      if test "$GCC" = yes; then
8181
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8182
        # Try to use the -exported_symbol ld option, if it does not
8183
        # work, assume that -exports_file does not work either and
8184
        # implicitly export all symbols.
8185
        save_LDFLAGS="$LDFLAGS"
8186
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8187
        cat >conftest.$ac_ext <<_ACEOF
8188
int foo(void) {}
8189
_ACEOF
8190
rm -f conftest.$ac_objext conftest$ac_exeext
8191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8192
  (eval $ac_link) 2>conftest.er1
8193
  ac_status=$?
8194
  grep -v '^ *+' conftest.er1 >conftest.err
8195
  rm -f conftest.er1
8196
  cat conftest.err >&5
8197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198
  (exit $ac_status); } &&
8199
         { ac_try='test -z "$ac_c_werror_flag"
8200
                         || test ! -s conftest.err'
8201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202
  (eval $ac_try) 2>&5
8203
  ac_status=$?
8204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205
  (exit $ac_status); }; } &&
8206
         { ac_try='test -s conftest$ac_exeext'
8207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208
  (eval $ac_try) 2>&5
8209
  ac_status=$?
8210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211
  (exit $ac_status); }; }; then
8212
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8213
 
8214
else
8215
  echo "$as_me: failed program was:" >&5
8216
sed 's/^/| /' conftest.$ac_ext >&5
8217
 
8218
fi
8219
rm -f conftest.err conftest.$ac_objext \
8220
      conftest$ac_exeext conftest.$ac_ext
8221
        LDFLAGS="$save_LDFLAGS"
8222
      else
8223
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8224
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8225
      fi
8226
      archive_cmds_need_lc='no'
8227
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228
      hardcode_libdir_separator=:
8229
      inherit_rpath=yes
8230
      link_all_deplibs=yes
8231
      ;;
8232
 
8233
    netbsd*)
8234
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8235
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8236
      else
8237
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8238
      fi
8239
      hardcode_libdir_flag_spec='-R$libdir'
8240
      hardcode_direct=yes
8241
      hardcode_shlibpath_var=no
8242
      ;;
8243
 
8244
    newsos6)
8245
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8246
      hardcode_direct=yes
8247
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248
      hardcode_libdir_separator=:
8249
      hardcode_shlibpath_var=no
8250
      ;;
8251
 
8252
    *nto* | *qnx*)
8253
      ;;
8254
 
8255
    openbsd*)
8256
      hardcode_direct=yes
8257
      hardcode_shlibpath_var=no
8258
      hardcode_direct_absolute=yes
8259
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8260
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8261
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8262
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8263
        export_dynamic_flag_spec='${wl}-E'
8264
      else
8265
        case $host_os in
8266
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8267
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8268
          hardcode_libdir_flag_spec='-R$libdir'
8269
          ;;
8270
        *)
8271
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8272
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8273
          ;;
8274
        esac
8275
      fi
8276
      ;;
8277
 
8278
    os2*)
8279
      hardcode_libdir_flag_spec='-L$libdir'
8280
      hardcode_minus_L=yes
8281
      allow_undefined_flag=unsupported
8282
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8283
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8284
      ;;
8285
 
8286
    osf3*)
8287
      if test "$GCC" = yes; then
8288
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8289
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8290
      else
8291
        allow_undefined_flag=' -expect_unresolved \*'
8292
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8293
      fi
8294
      archive_cmds_need_lc='no'
8295
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296
      hardcode_libdir_separator=:
8297
      ;;
8298
 
8299
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8300
      if test "$GCC" = yes; then
8301
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8302
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8303
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8304
      else
8305
        allow_undefined_flag=' -expect_unresolved \*'
8306
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8307
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8308
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8309
 
8310
        # Both c and cxx compiler support -rpath directly
8311
        hardcode_libdir_flag_spec='-rpath $libdir'
8312
      fi
8313
      archive_cmds_need_lc='no'
8314
      hardcode_libdir_separator=:
8315
      ;;
8316
 
8317
    solaris*)
8318
      no_undefined_flag=' -z defs'
8319
      if test "$GCC" = yes; then
8320
        wlarc='${wl}'
8321
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8322
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8323
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8324
      else
8325
        case `$CC -V 2>&1` in
8326
        *"Compilers 5.0"*)
8327
          wlarc=''
8328
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8330
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8331
          ;;
8332
        *)
8333
          wlarc='${wl}'
8334
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8335
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8336
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8337
          ;;
8338
        esac
8339
      fi
8340
      hardcode_libdir_flag_spec='-R$libdir'
8341
      hardcode_shlibpath_var=no
8342
      case $host_os in
8343
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8344
      *)
8345
        # The compiler driver will combine and reorder linker options,
8346
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8347
        # but is careful enough not to reorder.
8348
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8349
        if test "$GCC" = yes; then
8350
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8351
        else
8352
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8353
        fi
8354
        ;;
8355
      esac
8356
      link_all_deplibs=yes
8357
      ;;
8358
 
8359
    sunos4*)
8360
      if test "x$host_vendor" = xsequent; then
8361
        # Use $CC to link under sequent, because it throws in some extra .o
8362
        # files that make .init and .fini sections work.
8363
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8364
      else
8365
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8366
      fi
8367
      hardcode_libdir_flag_spec='-L$libdir'
8368
      hardcode_direct=yes
8369
      hardcode_minus_L=yes
8370
      hardcode_shlibpath_var=no
8371
      ;;
8372
 
8373
    sysv4)
8374
      case $host_vendor in
8375
        sni)
8376
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8377
          hardcode_direct=yes # is this really true???
8378
        ;;
8379
        siemens)
8380
          ## LD is ld it makes a PLAMLIB
8381
          ## CC just makes a GrossModule.
8382
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8383
          reload_cmds='$CC -r -o $output$reload_objs'
8384
          hardcode_direct=no
8385
        ;;
8386
        motorola)
8387
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8389
        ;;
8390
      esac
8391
      runpath_var='LD_RUN_PATH'
8392
      hardcode_shlibpath_var=no
8393
      ;;
8394
 
8395
    sysv4.3*)
8396
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397
      hardcode_shlibpath_var=no
8398
      export_dynamic_flag_spec='-Bexport'
8399
      ;;
8400
 
8401
    sysv4*MP*)
8402
      if test -d /usr/nec; then
8403
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8404
        hardcode_shlibpath_var=no
8405
        runpath_var=LD_RUN_PATH
8406
        hardcode_runpath_var=yes
8407
        ld_shlibs=yes
8408
      fi
8409
      ;;
8410
 
8411
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8412
      no_undefined_flag='${wl}-z,text'
8413
      archive_cmds_need_lc=no
8414
      hardcode_shlibpath_var=no
8415
      runpath_var='LD_RUN_PATH'
8416
 
8417
      if test "$GCC" = yes; then
8418
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420
      else
8421
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423
      fi
8424
      ;;
8425
 
8426
    sysv5* | sco3.2v5* | sco5v6*)
8427
      # Note: We can NOT use -z defs as we might desire, because we do not
8428
      # link with -lc, and that would cause any symbols used from libc to
8429
      # always be unresolved, which means just about no library would
8430
      # ever link correctly.  If we're not using GNU ld we use -z text
8431
      # though, which does catch some bad symbols but isn't as heavy-handed
8432
      # as -z defs.
8433
      no_undefined_flag='${wl}-z,text'
8434
      allow_undefined_flag='${wl}-z,nodefs'
8435
      archive_cmds_need_lc=no
8436
      hardcode_shlibpath_var=no
8437
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8438
      hardcode_libdir_separator=':'
8439
      link_all_deplibs=yes
8440
      export_dynamic_flag_spec='${wl}-Bexport'
8441
      runpath_var='LD_RUN_PATH'
8442
 
8443
      if test "$GCC" = yes; then
8444
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446
      else
8447
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8448
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449
      fi
8450
      ;;
8451
 
8452
    uts4*)
8453
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8454
      hardcode_libdir_flag_spec='-L$libdir'
8455
      hardcode_shlibpath_var=no
8456
      ;;
8457
 
8458
    *)
8459
      ld_shlibs=no
8460
      ;;
8461
    esac
8462
 
8463
    if test x$host_vendor = xsni; then
8464
      case $host in
8465
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8466
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8467
        ;;
8468
      esac
8469
    fi
8470
  fi
8471
 
8472
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8473
echo "${ECHO_T}$ld_shlibs" >&6
8474
test "$ld_shlibs" = no && can_build_shared=no
8475
 
8476
with_gnu_ld=$with_gnu_ld
8477
 
8478
 
8479
 
8480
 
8481
 
8482
 
8483
 
8484
 
8485
 
8486
 
8487
 
8488
 
8489
 
8490
 
8491
 
8492
#
8493
# Do we need to explicitly link libc?
8494
#
8495
case "x$archive_cmds_need_lc" in
8496
x|xyes)
8497
  # Assume -lc should be added
8498
  archive_cmds_need_lc=yes
8499
 
8500
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8501
    case $archive_cmds in
8502
    *'~'*)
8503
      # FIXME: we may have to deal with multi-command sequences.
8504
      ;;
8505
    '$CC '*)
8506
      # Test whether the compiler implicitly links with -lc since on some
8507
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8508
      # to ld, don't add -lc before -lgcc.
8509
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8510
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8511
      $RM conftest*
8512
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513
 
8514
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515
  (eval $ac_compile) 2>&5
8516
  ac_status=$?
8517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
  (exit $ac_status); } 2>conftest.err; then
8519
        soname=conftest
8520
        lib=conftest
8521
        libobjs=conftest.$ac_objext
8522
        deplibs=
8523
        wl=$lt_prog_compiler_wl
8524
        pic_flag=$lt_prog_compiler_pic
8525
        compiler_flags=-v
8526
        linker_flags=-v
8527
        verstring=
8528
        output_objdir=.
8529
        libname=conftest
8530
        lt_save_allow_undefined_flag=$allow_undefined_flag
8531
        allow_undefined_flag=
8532
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8533
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8534
  ac_status=$?
8535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536
  (exit $ac_status); }
8537
        then
8538
          archive_cmds_need_lc=no
8539
        else
8540
          archive_cmds_need_lc=yes
8541
        fi
8542
        allow_undefined_flag=$lt_save_allow_undefined_flag
8543
      else
8544
        cat conftest.err 1>&5
8545
      fi
8546
      $RM conftest*
8547
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8548
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8549
      ;;
8550
    esac
8551
  fi
8552
  ;;
8553
esac
8554
 
8555
 
8556
 
8557
 
8558
 
8559
 
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
 
8586
 
8587
 
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
 
8603
 
8604
 
8605
 
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8712
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8713
withGCC=$GCC
8714
if test "$withGCC" = yes; then
8715
  case $host_os in
8716
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8717
    *) lt_awk_arg="/^libraries:/" ;;
8718
  esac
8719
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8720
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8721
    # if the path contains ";" then we assume it to be the separator
8722
    # otherwise default to the standard path separator (i.e. ":") - it is
8723
    # assumed that no part of a normal pathname contains ";" but that should
8724
    # okay in the real world where ";" in dirpaths is itself problematic.
8725
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8726
  else
8727
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8728
  fi
8729
  # Ok, now we have the path, separated by spaces, we can step through it
8730
  # and add multilib dir if necessary.
8731
  lt_tmp_lt_search_path_spec=
8732
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8733
  for lt_sys_path in $lt_search_path_spec; do
8734
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8735
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8736
    else
8737
      test -d "$lt_sys_path" && \
8738
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8739
    fi
8740
  done
8741
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8742
BEGIN {RS=" "; FS="/|\n";} {
8743
  lt_foo="";
8744
  lt_count=0;
8745
  for (lt_i = NF; lt_i > 0; lt_i--) {
8746
    if ($lt_i != "" && $lt_i != ".") {
8747
      if ($lt_i == "..") {
8748
        lt_count++;
8749
      } else {
8750
        if (lt_count == 0) {
8751
          lt_foo="/" $lt_i lt_foo;
8752
        } else {
8753
          lt_count--;
8754
        }
8755
      }
8756
    }
8757
  }
8758
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8759
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8760
}'`
8761
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8762
else
8763
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8764
fi
8765
library_names_spec=
8766
libname_spec='lib$name'
8767
soname_spec=
8768
shrext_cmds=".so"
8769
postinstall_cmds=
8770
postuninstall_cmds=
8771
finish_cmds=
8772
finish_eval=
8773
shlibpath_var=
8774
shlibpath_overrides_runpath=unknown
8775
version_type=none
8776
dynamic_linker="$host_os ld.so"
8777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8778
need_lib_prefix=unknown
8779
hardcode_into_libs=no
8780
 
8781
# when you set need_version to no, make sure it does not cause -set_version
8782
# flags to be left without arguments
8783
need_version=unknown
8784
 
8785
case $host_os in
8786
aix3*)
8787
  version_type=linux
8788
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8789
  shlibpath_var=LIBPATH
8790
 
8791
  # AIX 3 has no versioning support, so we append a major version to the name.
8792
  soname_spec='${libname}${release}${shared_ext}$major'
8793
  ;;
8794
 
8795
aix[4-9]*)
8796
  version_type=linux
8797
  need_lib_prefix=no
8798
  need_version=no
8799
  hardcode_into_libs=yes
8800
  if test "$host_cpu" = ia64; then
8801
    # AIX 5 supports IA64
8802
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8803
    shlibpath_var=LD_LIBRARY_PATH
8804
  else
8805
    # With GCC up to 2.95.x, collect2 would create an import file
8806
    # for dependence libraries.  The import file would start with
8807
    # the line `#! .'.  This would cause the generated library to
8808
    # depend on `.', always an invalid library.  This was fixed in
8809
    # development snapshots of GCC prior to 3.0.
8810
    case $host_os in
8811
      aix4 | aix4.[01] | aix4.[01].*)
8812
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8813
           echo ' yes '
8814
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8815
        :
8816
      else
8817
        can_build_shared=no
8818
      fi
8819
      ;;
8820
    esac
8821
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8822
    # soname into executable. Probably we can add versioning support to
8823
    # collect2, so additional links can be useful in future.
8824
    if test "$aix_use_runtimelinking" = yes; then
8825
      # If using run time linking (on AIX 4.2 or later) use lib.so
8826
      # instead of lib.a to let people know that these are not
8827
      # typical AIX shared libraries.
8828
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829
    else
8830
      # We preserve .a as extension for shared libraries through AIX4.2
8831
      # and later when we are not doing run time linking.
8832
      library_names_spec='${libname}${release}.a $libname.a'
8833
      soname_spec='${libname}${release}${shared_ext}$major'
8834
    fi
8835
    shlibpath_var=LIBPATH
8836
  fi
8837
  ;;
8838
 
8839
amigaos*)
8840
  if test "$host_cpu" = m68k; then
8841
    library_names_spec='$libname.ixlibrary $libname.a'
8842
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8843
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8844
  else
8845
    dynamic_linker=no
8846
  fi
8847
  ;;
8848
 
8849
beos*)
8850
  library_names_spec='${libname}${shared_ext}'
8851
  dynamic_linker="$host_os ld.so"
8852
  shlibpath_var=LIBRARY_PATH
8853
  ;;
8854
 
8855
bsdi[45]*)
8856
  version_type=linux
8857
  need_version=no
8858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859
  soname_spec='${libname}${release}${shared_ext}$major'
8860
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8861
  shlibpath_var=LD_LIBRARY_PATH
8862
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8863
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8864
  # the default ld.so.conf also contains /usr/contrib/lib and
8865
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8866
  # libtool to hard-code these into programs
8867
  ;;
8868
 
8869
cygwin* | mingw* | pw32*)
8870
  version_type=windows
8871
  shrext_cmds=".dll"
8872
  need_version=no
8873
  need_lib_prefix=no
8874
 
8875
  case $withGCC,$host_os in
8876
  yes,cygwin* | yes,mingw* | yes,pw32*)
8877
    library_names_spec='$libname.dll.a'
8878
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8879
    postinstall_cmds='base_file=`basename \${file}`~
8880
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8881
      dldir=$destdir/`dirname \$dlpath`~
8882
      test -d \$dldir || mkdir -p \$dldir~
8883
      $install_prog $dir/$dlname \$dldir/$dlname~
8884
      chmod a+x \$dldir/$dlname~
8885
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8886
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8887
      fi'
8888
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8889
      dlpath=$dir/\$dldll~
8890
       $RM \$dlpath'
8891
    shlibpath_overrides_runpath=yes
8892
 
8893
    case $host_os in
8894
    cygwin*)
8895
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8896
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8897
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8898
      ;;
8899
    mingw*)
8900
      # MinGW DLLs use traditional 'lib' prefix
8901
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8902
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8903
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8904
        # It is most probably a Windows format PATH printed by
8905
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8906
        # path with ; separators, and with drive letters. We can handle the
8907
        # drive letters (cygwin fileutils understands them), so leave them,
8908
        # especially as we might pass files found there to a mingw objdump,
8909
        # which wouldn't understand a cygwinified path. Ahh.
8910
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8911
      else
8912
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8913
      fi
8914
      ;;
8915
    pw32*)
8916
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8917
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918
      ;;
8919
    esac
8920
    ;;
8921
 
8922
  *)
8923
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8924
    ;;
8925
  esac
8926
  dynamic_linker='Win32 ld.exe'
8927
  # FIXME: first we should search . and the directory the executable is in
8928
  shlibpath_var=PATH
8929
  ;;
8930
 
8931
darwin* | rhapsody*)
8932
  dynamic_linker="$host_os dyld"
8933
  version_type=darwin
8934
  need_lib_prefix=no
8935
  need_version=no
8936
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8937
  soname_spec='${libname}${release}${major}$shared_ext'
8938
  shlibpath_overrides_runpath=yes
8939
  shlibpath_var=DYLD_LIBRARY_PATH
8940
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8941
 
8942
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8943
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8944
  ;;
8945
 
8946
dgux*)
8947
  version_type=linux
8948
  need_lib_prefix=no
8949
  need_version=no
8950
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8951
  soname_spec='${libname}${release}${shared_ext}$major'
8952
  shlibpath_var=LD_LIBRARY_PATH
8953
  ;;
8954
 
8955
freebsd1*)
8956
  dynamic_linker=no
8957
  ;;
8958
 
8959
freebsd* | dragonfly*)
8960
  # DragonFly does not have aout.  When/if they implement a new
8961
  # versioning mechanism, adjust this.
8962
  if test -x /usr/bin/objformat; then
8963
    objformat=`/usr/bin/objformat`
8964
  else
8965
    case $host_os in
8966
    freebsd[123]*) objformat=aout ;;
8967
    *) objformat=elf ;;
8968
    esac
8969
  fi
8970
  version_type=freebsd-$objformat
8971
  case $version_type in
8972
    freebsd-elf*)
8973
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8974
      need_version=no
8975
      need_lib_prefix=no
8976
      ;;
8977
    freebsd-*)
8978
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8979
      need_version=yes
8980
      ;;
8981
  esac
8982
  shlibpath_var=LD_LIBRARY_PATH
8983
  case $host_os in
8984
  freebsd2*)
8985
    shlibpath_overrides_runpath=yes
8986
    ;;
8987
  freebsd3.[01]* | freebsdelf3.[01]*)
8988
    shlibpath_overrides_runpath=yes
8989
    hardcode_into_libs=yes
8990
    ;;
8991
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8992
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8993
    shlibpath_overrides_runpath=no
8994
    hardcode_into_libs=yes
8995
    ;;
8996
  *) # from 4.6 on, and DragonFly
8997
    shlibpath_overrides_runpath=yes
8998
    hardcode_into_libs=yes
8999
    ;;
9000
  esac
9001
  ;;
9002
 
9003
gnu*)
9004
  version_type=linux
9005
  need_lib_prefix=no
9006
  need_version=no
9007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9008
  soname_spec='${libname}${release}${shared_ext}$major'
9009
  shlibpath_var=LD_LIBRARY_PATH
9010
  hardcode_into_libs=yes
9011
  ;;
9012
 
9013
hpux9* | hpux10* | hpux11*)
9014
  # Give a soname corresponding to the major version so that dld.sl refuses to
9015
  # link against other versions.
9016
  version_type=sunos
9017
  need_lib_prefix=no
9018
  need_version=no
9019
  case $host_cpu in
9020
  ia64*)
9021
    shrext_cmds='.so'
9022
    hardcode_into_libs=yes
9023
    dynamic_linker="$host_os dld.so"
9024
    shlibpath_var=LD_LIBRARY_PATH
9025
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9026
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027
    soname_spec='${libname}${release}${shared_ext}$major'
9028
    if test "X$HPUX_IA64_MODE" = X32; then
9029
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030
    else
9031
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032
    fi
9033
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9034
    ;;
9035
  hppa*64*)
9036
    shrext_cmds='.sl'
9037
    hardcode_into_libs=yes
9038
    dynamic_linker="$host_os dld.sl"
9039
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9040
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9041
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042
    soname_spec='${libname}${release}${shared_ext}$major'
9043
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9044
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9045
    ;;
9046
  *)
9047
    shrext_cmds='.sl'
9048
    dynamic_linker="$host_os dld.sl"
9049
    shlibpath_var=SHLIB_PATH
9050
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9051
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052
    soname_spec='${libname}${release}${shared_ext}$major'
9053
    ;;
9054
  esac
9055
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9056
  postinstall_cmds='chmod 555 $lib'
9057
  ;;
9058
 
9059
interix[3-9]*)
9060
  version_type=linux
9061
  need_lib_prefix=no
9062
  need_version=no
9063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9064
  soname_spec='${libname}${release}${shared_ext}$major'
9065
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9066
  shlibpath_var=LD_LIBRARY_PATH
9067
  shlibpath_overrides_runpath=no
9068
  hardcode_into_libs=yes
9069
  ;;
9070
 
9071
irix5* | irix6* | nonstopux*)
9072
  case $host_os in
9073
    nonstopux*) version_type=nonstopux ;;
9074
    *)
9075
        if test "$lt_cv_prog_gnu_ld" = yes; then
9076
                version_type=linux
9077
        else
9078
                version_type=irix
9079
        fi ;;
9080
  esac
9081
  need_lib_prefix=no
9082
  need_version=no
9083
  soname_spec='${libname}${release}${shared_ext}$major'
9084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085
  case $host_os in
9086
  irix5* | nonstopux*)
9087
    libsuff= shlibsuff=
9088
    ;;
9089
  *)
9090
    case $LD in # libtool.m4 will add one of these switches to LD
9091
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9092
      libsuff= shlibsuff= libmagic=32-bit;;
9093
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9094
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9095
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9096
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9097
    *) libsuff= shlibsuff= libmagic=never-match;;
9098
    esac
9099
    ;;
9100
  esac
9101
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9102
  shlibpath_overrides_runpath=no
9103
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9105
  hardcode_into_libs=yes
9106
  ;;
9107
 
9108
# No shared lib support for Linux oldld, aout, or coff.
9109
linux*oldld* | linux*aout* | linux*coff*)
9110
  dynamic_linker=no
9111
  ;;
9112
 
9113
# This must be Linux ELF.
9114
linux* | k*bsd*-gnu)
9115
  version_type=linux
9116
  need_lib_prefix=no
9117
  need_version=no
9118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119
  soname_spec='${libname}${release}${shared_ext}$major'
9120
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9121
  shlibpath_var=LD_LIBRARY_PATH
9122
  shlibpath_overrides_runpath=no
9123
  # Some binutils ld are patched to set DT_RUNPATH
9124
  save_LDFLAGS=$LDFLAGS
9125
  save_libdir=$libdir
9126
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9127
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9128
  cat >conftest.$ac_ext <<_ACEOF
9129
/* confdefs.h.  */
9130
_ACEOF
9131
cat confdefs.h >>conftest.$ac_ext
9132
cat >>conftest.$ac_ext <<_ACEOF
9133
/* end confdefs.h.  */
9134
 
9135
int
9136
main ()
9137
{
9138
 
9139
  ;
9140
  return 0;
9141
}
9142
_ACEOF
9143
rm -f conftest.$ac_objext conftest$ac_exeext
9144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145
  (eval $ac_link) 2>conftest.er1
9146
  ac_status=$?
9147
  grep -v '^ *+' conftest.er1 >conftest.err
9148
  rm -f conftest.er1
9149
  cat conftest.err >&5
9150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151
  (exit $ac_status); } &&
9152
         { ac_try='test -z "$ac_c_werror_flag"
9153
                         || test ! -s conftest.err'
9154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155
  (eval $ac_try) 2>&5
9156
  ac_status=$?
9157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158
  (exit $ac_status); }; } &&
9159
         { ac_try='test -s conftest$ac_exeext'
9160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161
  (eval $ac_try) 2>&5
9162
  ac_status=$?
9163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164
  (exit $ac_status); }; }; then
9165
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9166
  shlibpath_overrides_runpath=yes
9167
fi
9168
 
9169
else
9170
  echo "$as_me: failed program was:" >&5
9171
sed 's/^/| /' conftest.$ac_ext >&5
9172
 
9173
fi
9174
rm -f conftest.err conftest.$ac_objext \
9175
      conftest$ac_exeext conftest.$ac_ext
9176
  LDFLAGS=$save_LDFLAGS
9177
  libdir=$save_libdir
9178
 
9179
  # This implies no fast_install, which is unacceptable.
9180
  # Some rework will be needed to allow for fast_install
9181
  # before this can be enabled.
9182
  hardcode_into_libs=yes
9183
 
9184
  # Append ld.so.conf contents to the search path
9185
  if test -f /etc/ld.so.conf; then
9186
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9187
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9188
  fi
9189
 
9190
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9191
  # powerpc, because MkLinux only supported shared libraries with the
9192
  # GNU dynamic linker.  Since this was broken with cross compilers,
9193
  # most powerpc-linux boxes support dynamic linking these days and
9194
  # people can always --disable-shared, the test was removed, and we
9195
  # assume the GNU/Linux dynamic linker is in use.
9196
  dynamic_linker='GNU/Linux ld.so'
9197
  ;;
9198
 
9199
netbsd*)
9200
  version_type=sunos
9201
  need_lib_prefix=no
9202
  need_version=no
9203
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206
    dynamic_linker='NetBSD (a.out) ld.so'
9207
  else
9208
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9209
    soname_spec='${libname}${release}${shared_ext}$major'
9210
    dynamic_linker='NetBSD ld.elf_so'
9211
  fi
9212
  shlibpath_var=LD_LIBRARY_PATH
9213
  shlibpath_overrides_runpath=yes
9214
  hardcode_into_libs=yes
9215
  ;;
9216
 
9217
newsos6)
9218
  version_type=linux
9219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220
  shlibpath_var=LD_LIBRARY_PATH
9221
  shlibpath_overrides_runpath=yes
9222
  ;;
9223
 
9224
*nto* | *qnx*)
9225
  version_type=qnx
9226
  need_lib_prefix=no
9227
  need_version=no
9228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229
  soname_spec='${libname}${release}${shared_ext}$major'
9230
  shlibpath_var=LD_LIBRARY_PATH
9231
  shlibpath_overrides_runpath=no
9232
  hardcode_into_libs=yes
9233
  dynamic_linker='ldqnx.so'
9234
  ;;
9235
 
9236
openbsd*)
9237
  version_type=sunos
9238
  sys_lib_dlsearch_path_spec="/usr/lib"
9239
  need_lib_prefix=no
9240
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9241
  case $host_os in
9242
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9243
    *)                          need_version=no  ;;
9244
  esac
9245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9247
  shlibpath_var=LD_LIBRARY_PATH
9248
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249
    case $host_os in
9250
      openbsd2.[89] | openbsd2.[89].*)
9251
        shlibpath_overrides_runpath=no
9252
        ;;
9253
      *)
9254
        shlibpath_overrides_runpath=yes
9255
        ;;
9256
      esac
9257
  else
9258
    shlibpath_overrides_runpath=yes
9259
  fi
9260
  ;;
9261
 
9262
os2*)
9263
  libname_spec='$name'
9264
  shrext_cmds=".dll"
9265
  need_lib_prefix=no
9266
  library_names_spec='$libname${shared_ext} $libname.a'
9267
  dynamic_linker='OS/2 ld.exe'
9268
  shlibpath_var=LIBPATH
9269
  ;;
9270
 
9271
osf3* | osf4* | osf5*)
9272
  version_type=osf
9273
  need_lib_prefix=no
9274
  need_version=no
9275
  soname_spec='${libname}${release}${shared_ext}$major'
9276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277
  shlibpath_var=LD_LIBRARY_PATH
9278
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9279
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9280
  ;;
9281
 
9282
rdos*)
9283
  dynamic_linker=no
9284
  ;;
9285
 
9286
solaris*)
9287
  version_type=linux
9288
  need_lib_prefix=no
9289
  need_version=no
9290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291
  soname_spec='${libname}${release}${shared_ext}$major'
9292
  shlibpath_var=LD_LIBRARY_PATH
9293
  shlibpath_overrides_runpath=yes
9294
  hardcode_into_libs=yes
9295
  # ldd complains unless libraries are executable
9296
  postinstall_cmds='chmod +x $lib'
9297
  ;;
9298
 
9299
sunos4*)
9300
  version_type=sunos
9301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9302
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9303
  shlibpath_var=LD_LIBRARY_PATH
9304
  shlibpath_overrides_runpath=yes
9305
  if test "$with_gnu_ld" = yes; then
9306
    need_lib_prefix=no
9307
  fi
9308
  need_version=yes
9309
  ;;
9310
 
9311
sysv4 | sysv4.3*)
9312
  version_type=linux
9313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314
  soname_spec='${libname}${release}${shared_ext}$major'
9315
  shlibpath_var=LD_LIBRARY_PATH
9316
  case $host_vendor in
9317
    sni)
9318
      shlibpath_overrides_runpath=no
9319
      need_lib_prefix=no
9320
      runpath_var=LD_RUN_PATH
9321
      ;;
9322
    siemens)
9323
      need_lib_prefix=no
9324
      ;;
9325
    motorola)
9326
      need_lib_prefix=no
9327
      need_version=no
9328
      shlibpath_overrides_runpath=no
9329
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330
      ;;
9331
  esac
9332
  ;;
9333
 
9334
sysv4*MP*)
9335
  if test -d /usr/nec ;then
9336
    version_type=linux
9337
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338
    soname_spec='$libname${shared_ext}.$major'
9339
    shlibpath_var=LD_LIBRARY_PATH
9340
  fi
9341
  ;;
9342
 
9343
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344
  version_type=freebsd-elf
9345
  need_lib_prefix=no
9346
  need_version=no
9347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348
  soname_spec='${libname}${release}${shared_ext}$major'
9349
  shlibpath_var=LD_LIBRARY_PATH
9350
  shlibpath_overrides_runpath=yes
9351
  hardcode_into_libs=yes
9352
  if test "$with_gnu_ld" = yes; then
9353
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9354
  else
9355
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356
    case $host_os in
9357
      sco3.2v5*)
9358
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9359
        ;;
9360
    esac
9361
  fi
9362
  sys_lib_dlsearch_path_spec='/usr/lib'
9363
  ;;
9364
 
9365
tpf*)
9366
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9367
  version_type=linux
9368
  need_lib_prefix=no
9369
  need_version=no
9370
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371
  shlibpath_var=LD_LIBRARY_PATH
9372
  shlibpath_overrides_runpath=no
9373
  hardcode_into_libs=yes
9374
  ;;
9375
 
9376
uts4*)
9377
  version_type=linux
9378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379
  soname_spec='${libname}${release}${shared_ext}$major'
9380
  shlibpath_var=LD_LIBRARY_PATH
9381
  ;;
9382
 
9383
*)
9384
  dynamic_linker=no
9385
  ;;
9386
esac
9387
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9388
echo "${ECHO_T}$dynamic_linker" >&6
9389
test "$dynamic_linker" = no && can_build_shared=no
9390
 
9391
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9392
if test "$GCC" = yes; then
9393
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9394
fi
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
 
9403
 
9404
 
9405
 
9406
 
9407
 
9408
 
9409
 
9410
 
9411
 
9412
 
9413
 
9414
 
9415
 
9416
 
9417
 
9418
 
9419
 
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9483
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9484
hardcode_action=
9485
if test -n "$hardcode_libdir_flag_spec" ||
9486
   test -n "$runpath_var" ||
9487
   test "X$hardcode_automatic" = "Xyes" ; then
9488
 
9489
  # We can hardcode non-existent directories.
9490
  if test "$hardcode_direct" != no &&
9491
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9492
     # have to relink, otherwise we might link with an installed library
9493
     # when we should be linking with a yet-to-be-installed one
9494
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9495
     test "$hardcode_minus_L" != no; then
9496
    # Linking always hardcodes the temporary library directory.
9497
    hardcode_action=relink
9498
  else
9499
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9500
    hardcode_action=immediate
9501
  fi
9502
else
9503
  # We cannot hardcode anything, or else we can only hardcode existing
9504
  # directories.
9505
  hardcode_action=unsupported
9506
fi
9507
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9508
echo "${ECHO_T}$hardcode_action" >&6
9509
 
9510
if test "$hardcode_action" = relink ||
9511
   test "$inherit_rpath" = yes; then
9512
  # Fast installation is not supported
9513
  enable_fast_install=no
9514
elif test "$shlibpath_overrides_runpath" = yes ||
9515
     test "$enable_shared" = no; then
9516
  # Fast installation is not necessary
9517
  enable_fast_install=needless
9518
fi
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
  if test "x$enable_dlopen" != xyes; then
9526
  enable_dlopen=unknown
9527
  enable_dlopen_self=unknown
9528
  enable_dlopen_self_static=unknown
9529
else
9530
  lt_cv_dlopen=no
9531
  lt_cv_dlopen_libs=
9532
 
9533
  case $host_os in
9534
  beos*)
9535
    lt_cv_dlopen="load_add_on"
9536
    lt_cv_dlopen_libs=
9537
    lt_cv_dlopen_self=yes
9538
    ;;
9539
 
9540
  mingw* | pw32*)
9541
    lt_cv_dlopen="LoadLibrary"
9542
    lt_cv_dlopen_libs=
9543
    ;;
9544
 
9545
  cygwin*)
9546
    lt_cv_dlopen="dlopen"
9547
    lt_cv_dlopen_libs=
9548
    ;;
9549
 
9550
  darwin*)
9551
  # if libdl is installed we need to link against it
9552
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9553
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9554
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9555
  echo $ECHO_N "(cached) $ECHO_C" >&6
9556
else
9557
  ac_check_lib_save_LIBS=$LIBS
9558
LIBS="-ldl  $LIBS"
9559
cat >conftest.$ac_ext <<_ACEOF
9560
/* confdefs.h.  */
9561
_ACEOF
9562
cat confdefs.h >>conftest.$ac_ext
9563
cat >>conftest.$ac_ext <<_ACEOF
9564
/* end confdefs.h.  */
9565
 
9566
/* Override any gcc2 internal prototype to avoid an error.  */
9567
#ifdef __cplusplus
9568
extern "C"
9569
#endif
9570
/* We use char because int might match the return type of a gcc2
9571
   builtin and then its argument prototype would still apply.  */
9572
char dlopen ();
9573
int
9574
main ()
9575
{
9576
dlopen ();
9577
  ;
9578
  return 0;
9579
}
9580
_ACEOF
9581
rm -f conftest.$ac_objext conftest$ac_exeext
9582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583
  (eval $ac_link) 2>conftest.er1
9584
  ac_status=$?
9585
  grep -v '^ *+' conftest.er1 >conftest.err
9586
  rm -f conftest.er1
9587
  cat conftest.err >&5
9588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589
  (exit $ac_status); } &&
9590
         { ac_try='test -z "$ac_c_werror_flag"
9591
                         || test ! -s conftest.err'
9592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593
  (eval $ac_try) 2>&5
9594
  ac_status=$?
9595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596
  (exit $ac_status); }; } &&
9597
         { ac_try='test -s conftest$ac_exeext'
9598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599
  (eval $ac_try) 2>&5
9600
  ac_status=$?
9601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602
  (exit $ac_status); }; }; then
9603
  ac_cv_lib_dl_dlopen=yes
9604
else
9605
  echo "$as_me: failed program was:" >&5
9606
sed 's/^/| /' conftest.$ac_ext >&5
9607
 
9608
ac_cv_lib_dl_dlopen=no
9609
fi
9610
rm -f conftest.err conftest.$ac_objext \
9611
      conftest$ac_exeext conftest.$ac_ext
9612
LIBS=$ac_check_lib_save_LIBS
9613
fi
9614
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9615
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9616
if test $ac_cv_lib_dl_dlopen = yes; then
9617
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9618
else
9619
 
9620
    lt_cv_dlopen="dyld"
9621
    lt_cv_dlopen_libs=
9622
    lt_cv_dlopen_self=yes
9623
 
9624
fi
9625
 
9626
    ;;
9627
 
9628
  *)
9629
    echo "$as_me:$LINENO: checking for shl_load" >&5
9630
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9631
if test "${ac_cv_func_shl_load+set}" = set; then
9632
  echo $ECHO_N "(cached) $ECHO_C" >&6
9633
else
9634
  cat >conftest.$ac_ext <<_ACEOF
9635
/* confdefs.h.  */
9636
_ACEOF
9637
cat confdefs.h >>conftest.$ac_ext
9638
cat >>conftest.$ac_ext <<_ACEOF
9639
/* end confdefs.h.  */
9640
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9641
   For example, HP-UX 11i  declares gettimeofday.  */
9642
#define shl_load innocuous_shl_load
9643
 
9644
/* System header to define __stub macros and hopefully few prototypes,
9645
    which can conflict with char shl_load (); below.
9646
    Prefer  to  if __STDC__ is defined, since
9647
     exists even on freestanding compilers.  */
9648
 
9649
#ifdef __STDC__
9650
# include 
9651
#else
9652
# include 
9653
#endif
9654
 
9655
#undef shl_load
9656
 
9657
/* Override any gcc2 internal prototype to avoid an error.  */
9658
#ifdef __cplusplus
9659
extern "C"
9660
{
9661
#endif
9662
/* We use char because int might match the return type of a gcc2
9663
   builtin and then its argument prototype would still apply.  */
9664
char shl_load ();
9665
/* The GNU C library defines this for functions which it implements
9666
    to always fail with ENOSYS.  Some functions are actually named
9667
    something starting with __ and the normal name is an alias.  */
9668
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9669
choke me
9670
#else
9671
char (*f) () = shl_load;
9672
#endif
9673
#ifdef __cplusplus
9674
}
9675
#endif
9676
 
9677
int
9678
main ()
9679
{
9680
return f != shl_load;
9681
  ;
9682
  return 0;
9683
}
9684
_ACEOF
9685
rm -f conftest.$ac_objext conftest$ac_exeext
9686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687
  (eval $ac_link) 2>conftest.er1
9688
  ac_status=$?
9689
  grep -v '^ *+' conftest.er1 >conftest.err
9690
  rm -f conftest.er1
9691
  cat conftest.err >&5
9692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693
  (exit $ac_status); } &&
9694
         { ac_try='test -z "$ac_c_werror_flag"
9695
                         || test ! -s conftest.err'
9696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697
  (eval $ac_try) 2>&5
9698
  ac_status=$?
9699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700
  (exit $ac_status); }; } &&
9701
         { ac_try='test -s conftest$ac_exeext'
9702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703
  (eval $ac_try) 2>&5
9704
  ac_status=$?
9705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706
  (exit $ac_status); }; }; then
9707
  ac_cv_func_shl_load=yes
9708
else
9709
  echo "$as_me: failed program was:" >&5
9710
sed 's/^/| /' conftest.$ac_ext >&5
9711
 
9712
ac_cv_func_shl_load=no
9713
fi
9714
rm -f conftest.err conftest.$ac_objext \
9715
      conftest$ac_exeext conftest.$ac_ext
9716
fi
9717
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9718
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9719
if test $ac_cv_func_shl_load = yes; then
9720
  lt_cv_dlopen="shl_load"
9721
else
9722
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9723
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9724
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9725
  echo $ECHO_N "(cached) $ECHO_C" >&6
9726
else
9727
  ac_check_lib_save_LIBS=$LIBS
9728
LIBS="-ldld  $LIBS"
9729
cat >conftest.$ac_ext <<_ACEOF
9730
/* confdefs.h.  */
9731
_ACEOF
9732
cat confdefs.h >>conftest.$ac_ext
9733
cat >>conftest.$ac_ext <<_ACEOF
9734
/* end confdefs.h.  */
9735
 
9736
/* Override any gcc2 internal prototype to avoid an error.  */
9737
#ifdef __cplusplus
9738
extern "C"
9739
#endif
9740
/* We use char because int might match the return type of a gcc2
9741
   builtin and then its argument prototype would still apply.  */
9742
char shl_load ();
9743
int
9744
main ()
9745
{
9746
shl_load ();
9747
  ;
9748
  return 0;
9749
}
9750
_ACEOF
9751
rm -f conftest.$ac_objext conftest$ac_exeext
9752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753
  (eval $ac_link) 2>conftest.er1
9754
  ac_status=$?
9755
  grep -v '^ *+' conftest.er1 >conftest.err
9756
  rm -f conftest.er1
9757
  cat conftest.err >&5
9758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759
  (exit $ac_status); } &&
9760
         { ac_try='test -z "$ac_c_werror_flag"
9761
                         || test ! -s conftest.err'
9762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763
  (eval $ac_try) 2>&5
9764
  ac_status=$?
9765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766
  (exit $ac_status); }; } &&
9767
         { ac_try='test -s conftest$ac_exeext'
9768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769
  (eval $ac_try) 2>&5
9770
  ac_status=$?
9771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772
  (exit $ac_status); }; }; then
9773
  ac_cv_lib_dld_shl_load=yes
9774
else
9775
  echo "$as_me: failed program was:" >&5
9776
sed 's/^/| /' conftest.$ac_ext >&5
9777
 
9778
ac_cv_lib_dld_shl_load=no
9779
fi
9780
rm -f conftest.err conftest.$ac_objext \
9781
      conftest$ac_exeext conftest.$ac_ext
9782
LIBS=$ac_check_lib_save_LIBS
9783
fi
9784
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9785
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9786
if test $ac_cv_lib_dld_shl_load = yes; then
9787
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9788
else
9789
  echo "$as_me:$LINENO: checking for dlopen" >&5
9790
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9791
if test "${ac_cv_func_dlopen+set}" = set; then
9792
  echo $ECHO_N "(cached) $ECHO_C" >&6
9793
else
9794
  cat >conftest.$ac_ext <<_ACEOF
9795
/* confdefs.h.  */
9796
_ACEOF
9797
cat confdefs.h >>conftest.$ac_ext
9798
cat >>conftest.$ac_ext <<_ACEOF
9799
/* end confdefs.h.  */
9800
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9801
   For example, HP-UX 11i  declares gettimeofday.  */
9802
#define dlopen innocuous_dlopen
9803
 
9804
/* System header to define __stub macros and hopefully few prototypes,
9805
    which can conflict with char dlopen (); below.
9806
    Prefer  to  if __STDC__ is defined, since
9807
     exists even on freestanding compilers.  */
9808
 
9809
#ifdef __STDC__
9810
# include 
9811
#else
9812
# include 
9813
#endif
9814
 
9815
#undef dlopen
9816
 
9817
/* Override any gcc2 internal prototype to avoid an error.  */
9818
#ifdef __cplusplus
9819
extern "C"
9820
{
9821
#endif
9822
/* We use char because int might match the return type of a gcc2
9823
   builtin and then its argument prototype would still apply.  */
9824
char dlopen ();
9825
/* The GNU C library defines this for functions which it implements
9826
    to always fail with ENOSYS.  Some functions are actually named
9827
    something starting with __ and the normal name is an alias.  */
9828
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9829
choke me
9830
#else
9831
char (*f) () = dlopen;
9832
#endif
9833
#ifdef __cplusplus
9834
}
9835
#endif
9836
 
9837
int
9838
main ()
9839
{
9840
return f != dlopen;
9841
  ;
9842
  return 0;
9843
}
9844
_ACEOF
9845
rm -f conftest.$ac_objext conftest$ac_exeext
9846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847
  (eval $ac_link) 2>conftest.er1
9848
  ac_status=$?
9849
  grep -v '^ *+' conftest.er1 >conftest.err
9850
  rm -f conftest.er1
9851
  cat conftest.err >&5
9852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853
  (exit $ac_status); } &&
9854
         { ac_try='test -z "$ac_c_werror_flag"
9855
                         || test ! -s conftest.err'
9856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857
  (eval $ac_try) 2>&5
9858
  ac_status=$?
9859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860
  (exit $ac_status); }; } &&
9861
         { ac_try='test -s conftest$ac_exeext'
9862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863
  (eval $ac_try) 2>&5
9864
  ac_status=$?
9865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866
  (exit $ac_status); }; }; then
9867
  ac_cv_func_dlopen=yes
9868
else
9869
  echo "$as_me: failed program was:" >&5
9870
sed 's/^/| /' conftest.$ac_ext >&5
9871
 
9872
ac_cv_func_dlopen=no
9873
fi
9874
rm -f conftest.err conftest.$ac_objext \
9875
      conftest$ac_exeext conftest.$ac_ext
9876
fi
9877
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9878
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9879
if test $ac_cv_func_dlopen = yes; then
9880
  lt_cv_dlopen="dlopen"
9881
else
9882
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9883
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9884
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9885
  echo $ECHO_N "(cached) $ECHO_C" >&6
9886
else
9887
  ac_check_lib_save_LIBS=$LIBS
9888
LIBS="-ldl  $LIBS"
9889
cat >conftest.$ac_ext <<_ACEOF
9890
/* confdefs.h.  */
9891
_ACEOF
9892
cat confdefs.h >>conftest.$ac_ext
9893
cat >>conftest.$ac_ext <<_ACEOF
9894
/* end confdefs.h.  */
9895
 
9896
/* Override any gcc2 internal prototype to avoid an error.  */
9897
#ifdef __cplusplus
9898
extern "C"
9899
#endif
9900
/* We use char because int might match the return type of a gcc2
9901
   builtin and then its argument prototype would still apply.  */
9902
char dlopen ();
9903
int
9904
main ()
9905
{
9906
dlopen ();
9907
  ;
9908
  return 0;
9909
}
9910
_ACEOF
9911
rm -f conftest.$ac_objext conftest$ac_exeext
9912
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913
  (eval $ac_link) 2>conftest.er1
9914
  ac_status=$?
9915
  grep -v '^ *+' conftest.er1 >conftest.err
9916
  rm -f conftest.er1
9917
  cat conftest.err >&5
9918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
  (exit $ac_status); } &&
9920
         { ac_try='test -z "$ac_c_werror_flag"
9921
                         || test ! -s conftest.err'
9922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923
  (eval $ac_try) 2>&5
9924
  ac_status=$?
9925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926
  (exit $ac_status); }; } &&
9927
         { ac_try='test -s conftest$ac_exeext'
9928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929
  (eval $ac_try) 2>&5
9930
  ac_status=$?
9931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932
  (exit $ac_status); }; }; then
9933
  ac_cv_lib_dl_dlopen=yes
9934
else
9935
  echo "$as_me: failed program was:" >&5
9936
sed 's/^/| /' conftest.$ac_ext >&5
9937
 
9938
ac_cv_lib_dl_dlopen=no
9939
fi
9940
rm -f conftest.err conftest.$ac_objext \
9941
      conftest$ac_exeext conftest.$ac_ext
9942
LIBS=$ac_check_lib_save_LIBS
9943
fi
9944
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9946
if test $ac_cv_lib_dl_dlopen = yes; then
9947
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948
else
9949
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9950
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9951
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9952
  echo $ECHO_N "(cached) $ECHO_C" >&6
9953
else
9954
  ac_check_lib_save_LIBS=$LIBS
9955
LIBS="-lsvld  $LIBS"
9956
cat >conftest.$ac_ext <<_ACEOF
9957
/* confdefs.h.  */
9958
_ACEOF
9959
cat confdefs.h >>conftest.$ac_ext
9960
cat >>conftest.$ac_ext <<_ACEOF
9961
/* end confdefs.h.  */
9962
 
9963
/* Override any gcc2 internal prototype to avoid an error.  */
9964
#ifdef __cplusplus
9965
extern "C"
9966
#endif
9967
/* We use char because int might match the return type of a gcc2
9968
   builtin and then its argument prototype would still apply.  */
9969
char dlopen ();
9970
int
9971
main ()
9972
{
9973
dlopen ();
9974
  ;
9975
  return 0;
9976
}
9977
_ACEOF
9978
rm -f conftest.$ac_objext conftest$ac_exeext
9979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980
  (eval $ac_link) 2>conftest.er1
9981
  ac_status=$?
9982
  grep -v '^ *+' conftest.er1 >conftest.err
9983
  rm -f conftest.er1
9984
  cat conftest.err >&5
9985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986
  (exit $ac_status); } &&
9987
         { ac_try='test -z "$ac_c_werror_flag"
9988
                         || test ! -s conftest.err'
9989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990
  (eval $ac_try) 2>&5
9991
  ac_status=$?
9992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993
  (exit $ac_status); }; } &&
9994
         { ac_try='test -s conftest$ac_exeext'
9995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996
  (eval $ac_try) 2>&5
9997
  ac_status=$?
9998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999
  (exit $ac_status); }; }; then
10000
  ac_cv_lib_svld_dlopen=yes
10001
else
10002
  echo "$as_me: failed program was:" >&5
10003
sed 's/^/| /' conftest.$ac_ext >&5
10004
 
10005
ac_cv_lib_svld_dlopen=no
10006
fi
10007
rm -f conftest.err conftest.$ac_objext \
10008
      conftest$ac_exeext conftest.$ac_ext
10009
LIBS=$ac_check_lib_save_LIBS
10010
fi
10011
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10012
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10013
if test $ac_cv_lib_svld_dlopen = yes; then
10014
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10015
else
10016
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10017
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10018
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10019
  echo $ECHO_N "(cached) $ECHO_C" >&6
10020
else
10021
  ac_check_lib_save_LIBS=$LIBS
10022
LIBS="-ldld  $LIBS"
10023
cat >conftest.$ac_ext <<_ACEOF
10024
/* confdefs.h.  */
10025
_ACEOF
10026
cat confdefs.h >>conftest.$ac_ext
10027
cat >>conftest.$ac_ext <<_ACEOF
10028
/* end confdefs.h.  */
10029
 
10030
/* Override any gcc2 internal prototype to avoid an error.  */
10031
#ifdef __cplusplus
10032
extern "C"
10033
#endif
10034
/* We use char because int might match the return type of a gcc2
10035
   builtin and then its argument prototype would still apply.  */
10036
char dld_link ();
10037
int
10038
main ()
10039
{
10040
dld_link ();
10041
  ;
10042
  return 0;
10043
}
10044
_ACEOF
10045
rm -f conftest.$ac_objext conftest$ac_exeext
10046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047
  (eval $ac_link) 2>conftest.er1
10048
  ac_status=$?
10049
  grep -v '^ *+' conftest.er1 >conftest.err
10050
  rm -f conftest.er1
10051
  cat conftest.err >&5
10052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053
  (exit $ac_status); } &&
10054
         { ac_try='test -z "$ac_c_werror_flag"
10055
                         || test ! -s conftest.err'
10056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057
  (eval $ac_try) 2>&5
10058
  ac_status=$?
10059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060
  (exit $ac_status); }; } &&
10061
         { ac_try='test -s conftest$ac_exeext'
10062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063
  (eval $ac_try) 2>&5
10064
  ac_status=$?
10065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066
  (exit $ac_status); }; }; then
10067
  ac_cv_lib_dld_dld_link=yes
10068
else
10069
  echo "$as_me: failed program was:" >&5
10070
sed 's/^/| /' conftest.$ac_ext >&5
10071
 
10072
ac_cv_lib_dld_dld_link=no
10073
fi
10074
rm -f conftest.err conftest.$ac_objext \
10075
      conftest$ac_exeext conftest.$ac_ext
10076
LIBS=$ac_check_lib_save_LIBS
10077
fi
10078
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10079
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10080
if test $ac_cv_lib_dld_dld_link = yes; then
10081
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10082
fi
10083
 
10084
 
10085
fi
10086
 
10087
 
10088
fi
10089
 
10090
 
10091
fi
10092
 
10093
 
10094
fi
10095
 
10096
 
10097
fi
10098
 
10099
    ;;
10100
  esac
10101
 
10102
  if test "x$lt_cv_dlopen" != xno; then
10103
    enable_dlopen=yes
10104
  else
10105
    enable_dlopen=no
10106
  fi
10107
 
10108
  case $lt_cv_dlopen in
10109
  dlopen)
10110
    save_CPPFLAGS="$CPPFLAGS"
10111
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10112
 
10113
    save_LDFLAGS="$LDFLAGS"
10114
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10115
 
10116
    save_LIBS="$LIBS"
10117
    LIBS="$lt_cv_dlopen_libs $LIBS"
10118
 
10119
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10120
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10121
if test "${lt_cv_dlopen_self+set}" = set; then
10122
  echo $ECHO_N "(cached) $ECHO_C" >&6
10123
else
10124
          if test "$cross_compiling" = yes; then :
10125
  lt_cv_dlopen_self=cross
10126
else
10127
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10128
  lt_status=$lt_dlunknown
10129
  cat > conftest.$ac_ext <<_LT_EOF
10130
#line 10130 "configure"
10131
#include "confdefs.h"
10132
 
10133
#if HAVE_DLFCN_H
10134
#include 
10135
#endif
10136
 
10137
#include 
10138
 
10139
#ifdef RTLD_GLOBAL
10140
#  define LT_DLGLOBAL           RTLD_GLOBAL
10141
#else
10142
#  ifdef DL_GLOBAL
10143
#    define LT_DLGLOBAL         DL_GLOBAL
10144
#  else
10145
#    define LT_DLGLOBAL         0
10146
#  endif
10147
#endif
10148
 
10149
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10150
   find out it does not work in some platform. */
10151
#ifndef LT_DLLAZY_OR_NOW
10152
#  ifdef RTLD_LAZY
10153
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10154
#  else
10155
#    ifdef DL_LAZY
10156
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10157
#    else
10158
#      ifdef RTLD_NOW
10159
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10160
#      else
10161
#        ifdef DL_NOW
10162
#          define LT_DLLAZY_OR_NOW      DL_NOW
10163
#        else
10164
#          define LT_DLLAZY_OR_NOW      0
10165
#        endif
10166
#      endif
10167
#    endif
10168
#  endif
10169
#endif
10170
 
10171
#ifdef __cplusplus
10172
extern "C" void exit (int);
10173
#endif
10174
 
10175
void fnord() { int i=42;}
10176
int main ()
10177
{
10178
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10179
  int status = $lt_dlunknown;
10180
 
10181
  if (self)
10182
    {
10183
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10184
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10185
      /* dlclose (self); */
10186
    }
10187
  else
10188
    puts (dlerror ());
10189
 
10190
    exit (status);
10191
}
10192
_LT_EOF
10193
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194
  (eval $ac_link) 2>&5
10195
  ac_status=$?
10196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10198
    (./conftest; exit; ) >&5 2>/dev/null
10199
    lt_status=$?
10200
    case x$lt_status in
10201
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10202
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10203
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10204
    esac
10205
  else :
10206
    # compilation failed
10207
    lt_cv_dlopen_self=no
10208
  fi
10209
fi
10210
rm -fr conftest*
10211
 
10212
 
10213
fi
10214
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10215
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10216
 
10217
    if test "x$lt_cv_dlopen_self" = xyes; then
10218
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10219
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10220
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10221
if test "${lt_cv_dlopen_self_static+set}" = set; then
10222
  echo $ECHO_N "(cached) $ECHO_C" >&6
10223
else
10224
          if test "$cross_compiling" = yes; then :
10225
  lt_cv_dlopen_self_static=cross
10226
else
10227
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10228
  lt_status=$lt_dlunknown
10229
  cat > conftest.$ac_ext <<_LT_EOF
10230
#line 10230 "configure"
10231
#include "confdefs.h"
10232
 
10233
#if HAVE_DLFCN_H
10234
#include 
10235
#endif
10236
 
10237
#include 
10238
 
10239
#ifdef RTLD_GLOBAL
10240
#  define LT_DLGLOBAL           RTLD_GLOBAL
10241
#else
10242
#  ifdef DL_GLOBAL
10243
#    define LT_DLGLOBAL         DL_GLOBAL
10244
#  else
10245
#    define LT_DLGLOBAL         0
10246
#  endif
10247
#endif
10248
 
10249
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10250
   find out it does not work in some platform. */
10251
#ifndef LT_DLLAZY_OR_NOW
10252
#  ifdef RTLD_LAZY
10253
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10254
#  else
10255
#    ifdef DL_LAZY
10256
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10257
#    else
10258
#      ifdef RTLD_NOW
10259
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10260
#      else
10261
#        ifdef DL_NOW
10262
#          define LT_DLLAZY_OR_NOW      DL_NOW
10263
#        else
10264
#          define LT_DLLAZY_OR_NOW      0
10265
#        endif
10266
#      endif
10267
#    endif
10268
#  endif
10269
#endif
10270
 
10271
#ifdef __cplusplus
10272
extern "C" void exit (int);
10273
#endif
10274
 
10275
void fnord() { int i=42;}
10276
int main ()
10277
{
10278
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10279
  int status = $lt_dlunknown;
10280
 
10281
  if (self)
10282
    {
10283
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10284
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10285
      /* dlclose (self); */
10286
    }
10287
  else
10288
    puts (dlerror ());
10289
 
10290
    exit (status);
10291
}
10292
_LT_EOF
10293
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10294
  (eval $ac_link) 2>&5
10295
  ac_status=$?
10296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10298
    (./conftest; exit; ) >&5 2>/dev/null
10299
    lt_status=$?
10300
    case x$lt_status in
10301
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10302
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10303
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10304
    esac
10305
  else :
10306
    # compilation failed
10307
    lt_cv_dlopen_self_static=no
10308
  fi
10309
fi
10310
rm -fr conftest*
10311
 
10312
 
10313
fi
10314
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10315
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10316
    fi
10317
 
10318
    CPPFLAGS="$save_CPPFLAGS"
10319
    LDFLAGS="$save_LDFLAGS"
10320
    LIBS="$save_LIBS"
10321
    ;;
10322
  esac
10323
 
10324
  case $lt_cv_dlopen_self in
10325
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10326
  *) enable_dlopen_self=unknown ;;
10327
  esac
10328
 
10329
  case $lt_cv_dlopen_self_static in
10330
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10331
  *) enable_dlopen_self_static=unknown ;;
10332
  esac
10333
fi
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
striplib=
10352
old_striplib=
10353
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10354
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10355
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10356
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10357
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10358
  echo "$as_me:$LINENO: result: yes" >&5
10359
echo "${ECHO_T}yes" >&6
10360
else
10361
# FIXME - insert some real tests, host_os isn't really good enough
10362
  case $host_os in
10363
  darwin*)
10364
    if test -n "$STRIP" ; then
10365
      striplib="$STRIP -x"
10366
      old_striplib="$STRIP -S"
10367
      echo "$as_me:$LINENO: result: yes" >&5
10368
echo "${ECHO_T}yes" >&6
10369
    else
10370
      echo "$as_me:$LINENO: result: no" >&5
10371
echo "${ECHO_T}no" >&6
10372
    fi
10373
    ;;
10374
  *)
10375
    echo "$as_me:$LINENO: result: no" >&5
10376
echo "${ECHO_T}no" >&6
10377
    ;;
10378
  esac
10379
fi
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
  # Report which library types will actually be built
10393
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10395
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396
echo "${ECHO_T}$can_build_shared" >&6
10397
 
10398
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10400
  test "$can_build_shared" = "no" && enable_shared=no
10401
 
10402
  # On AIX, shared libraries and static libraries use the same namespace, and
10403
  # are all built from PIC.
10404
  case $host_os in
10405
  aix3*)
10406
    test "$enable_shared" = yes && enable_static=no
10407
    if test -n "$RANLIB"; then
10408
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409
      postinstall_cmds='$RANLIB $lib'
10410
    fi
10411
    ;;
10412
 
10413
  aix[4-9]*)
10414
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415
      test "$enable_shared" = yes && enable_static=no
10416
    fi
10417
    ;;
10418
  esac
10419
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10420
echo "${ECHO_T}$enable_shared" >&6
10421
 
10422
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10423
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10424
  # Make sure either enable_shared or enable_static is yes.
10425
  test "$enable_shared" = yes || enable_static=yes
10426
  echo "$as_me:$LINENO: result: $enable_static" >&5
10427
echo "${ECHO_T}$enable_static" >&6
10428
 
10429
 
10430
 
10431
 
10432
fi
10433
ac_ext=c
10434
ac_cpp='$CPP $CPPFLAGS'
10435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10438
 
10439
CC="$lt_save_CC"
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
 
10450
 
10451
 
10452
 
10453
                  ac_config_commands="$ac_config_commands libtool"
10454
 
10455
 
10456
 
10457
 
10458
# Only expand once:
10459
 
10460
 
10461
 
10462
# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10463
if test "${enable_64_bit_bfd+set}" = set; then
10464
  enableval="$enable_64_bit_bfd"
10465
  case "${enableval}" in
10466
  yes)  want64=true  ;;
10467
  no)   want64=false ;;
10468
  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10469
echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10470
   { (exit 1); exit 1; }; } ;;
10471
esac
10472
else
10473
  want64=false
10474
fi;
10475
# Check whether --enable-targets or --disable-targets was given.
10476
if test "${enable_targets+set}" = set; then
10477
  enableval="$enable_targets"
10478
  case "${enableval}" in
10479
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10480
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10481
   { (exit 1); exit 1; }; }
10482
            ;;
10483
  no)       enable_targets= ;;
10484
  *)        enable_targets=$enableval ;;
10485
esac
10486
fi;
10487
# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10488
if test "${enable_commonbfdlib+set}" = set; then
10489
  enableval="$enable_commonbfdlib"
10490
  case "${enableval}" in
10491
  yes) commonbfdlib=true ;;
10492
  no)  commonbfdlib=false ;;
10493
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10494
echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10495
   { (exit 1); exit 1; }; } ;;
10496
esac
10497
fi;
10498
 
10499
# Check whether --with-mmap or --without-mmap was given.
10500
if test "${with_mmap+set}" = set; then
10501
  withval="$with_mmap"
10502
  case "${withval}" in
10503
  yes)  want_mmap=true ;;
10504
  no)   want_mmap=false ;;
10505
  *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10506
echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10507
   { (exit 1); exit 1; }; } ;;
10508
esac
10509
else
10510
  want_mmap=false
10511
fi;
10512
# Check whether --enable-secureplt or --disable-secureplt was given.
10513
if test "${enable_secureplt+set}" = set; then
10514
  enableval="$enable_secureplt"
10515
  case "${enableval}" in
10516
  yes)  use_secureplt=true  ;;
10517
  no)   use_secureplt=false ;;
10518
  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10519
echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10520
   { (exit 1); exit 1; }; } ;;
10521
esac
10522
else
10523
  use_secureplt=false
10524
fi; if test $use_secureplt = true; then
10525
 
10526
cat >>confdefs.h <<\_ACEOF
10527
#define USE_SECUREPLT 1
10528
_ACEOF
10529
 
10530
fi
10531
 
10532
DEBUGDIR=${libdir}/debug
10533
 
10534
# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10535
if test "${with_separate_debug_dir+set}" = set; then
10536
  withval="$with_separate_debug_dir"
10537
  DEBUGDIR="${withval}"
10538
fi;
10539
 
10540
 
10541
# Check to see if we should allow the generation of
10542
# symbols with the ELF standard's STT_COMMON type.
10543
# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10544
if test "${enable_elf_stt_common+set}" = set; then
10545
  enableval="$enable_elf_stt_common"
10546
  case "${enableval}" in
10547
  yes) want_elf_stt_common=true ;;
10548
  no)  want_elf_stt_common=false ;;
10549
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10550
echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10551
   { (exit 1); exit 1; }; } ;;
10552
 esac
10553
else
10554
  # We have to choose a default behaviour.  For native builds we could
10555
# test whether the loader supports the STT_COMMON type, but that would
10556
# mean that built binaries could not be exported to older systems where
10557
# the loader does not support it. So by default we always choose to
10558
# disable this feature.
10559
  want_elf_stt_common=false
10560
fi; if test $want_elf_stt_common = true; then
10561
 
10562
cat >>confdefs.h <<\_ACEOF
10563
#define USE_STT_COMMON 1
10564
_ACEOF
10565
 
10566
fi
10567
 
10568
 
10569
 
10570
# Check whether --with-pkgversion or --without-pkgversion was given.
10571
if test "${with_pkgversion+set}" = set; then
10572
  withval="$with_pkgversion"
10573
  case "$withval" in
10574
      yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10575
echo "$as_me: error: package version not specified" >&2;}
10576
   { (exit 1); exit 1; }; } ;;
10577
      no)  PKGVERSION= ;;
10578
      *)   PKGVERSION="($withval) " ;;
10579
     esac
10580
else
10581
  PKGVERSION="(GNU Binutils) "
10582
 
10583
fi;
10584
 
10585
 
10586
 
10587
 
10588
# Check whether --with-bugurl or --without-bugurl was given.
10589
if test "${with_bugurl+set}" = set; then
10590
  withval="$with_bugurl"
10591
  case "$withval" in
10592
      yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10593
echo "$as_me: error: bug URL not specified" >&2;}
10594
   { (exit 1); exit 1; }; } ;;
10595
      no)  BUGURL=
10596
           ;;
10597
      *)   BUGURL="$withval"
10598
           ;;
10599
     esac
10600
else
10601
  BUGURL="http://www.sourceware.org/bugzilla/"
10602
 
10603
fi;
10604
  case ${BUGURL} in
10605
  "")
10606
    REPORT_BUGS_TO=
10607
    REPORT_BUGS_TEXI=
10608
    ;;
10609
  *)
10610
    REPORT_BUGS_TO="<$BUGURL>"
10611
    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10612
    ;;
10613
  esac;
10614
 
10615
 
10616
 
10617
 
10618
 
10619
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10620
 
10621
# Check whether --enable-werror or --disable-werror was given.
10622
if test "${enable_werror+set}" = set; then
10623
  enableval="$enable_werror"
10624
  case "${enableval}" in
10625
     yes | y) ERROR_ON_WARNING="yes" ;;
10626
     no | n)  ERROR_ON_WARNING="no" ;;
10627
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10628
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10629
   { (exit 1); exit 1; }; } ;;
10630
   esac
10631
fi;
10632
 
10633
# Enable -Wno-format by default when using gcc on mingw
10634
case "${host}" in
10635
  *-*-mingw32*)
10636
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10637
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10638
    fi
10639
    ;;
10640
  *) ;;
10641
esac
10642
 
10643
# Enable -Werror by default when using gcc
10644
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10645
    ERROR_ON_WARNING=yes
10646
fi
10647
 
10648
NO_WERROR=
10649
if test "${ERROR_ON_WARNING}" = yes ; then
10650
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10651
    NO_WERROR="-Wno-error"
10652
fi
10653
 
10654
if test "${GCC}" = yes ; then
10655
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10656
fi
10657
 
10658
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10659
if test "${enable_build_warnings+set}" = set; then
10660
  enableval="$enable_build_warnings"
10661
  case "${enableval}" in
10662
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10663
  no)   if test "${GCC}" = yes ; then
10664
          WARN_CFLAGS="-w"
10665
        fi;;
10666
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10667
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10668
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10669
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10670
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10671
esac
10672
fi;
10673
 
10674
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10675
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10676
fi
10677
 
10678
 
10679
 
10680
 
10681
 
10682
          ac_config_headers="$ac_config_headers config.h:config.in"
10683
 
10684
 
10685
if test -z "$target" ; then
10686
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10687
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10688
   { (exit 1); exit 1; }; }
10689
fi
10690
 
10691
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10692
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10693
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10694
if test "${enable_maintainer_mode+set}" = set; then
10695
  enableval="$enable_maintainer_mode"
10696
  USE_MAINTAINER_MODE=$enableval
10697
else
10698
  USE_MAINTAINER_MODE=no
10699
fi;
10700
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10701
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10702
 
10703
 
10704
if test $USE_MAINTAINER_MODE = yes; then
10705
  MAINTAINER_MODE_TRUE=
10706
  MAINTAINER_MODE_FALSE='#'
10707
else
10708
  MAINTAINER_MODE_TRUE='#'
10709
  MAINTAINER_MODE_FALSE=
10710
fi
10711
 
10712
  MAINT=$MAINTAINER_MODE_TRUE
10713
 
10714
 
10715
 
10716
 
10717
if false; then
10718
  GENINSRC_NEVER_TRUE=
10719
  GENINSRC_NEVER_FALSE='#'
10720
else
10721
  GENINSRC_NEVER_TRUE='#'
10722
  GENINSRC_NEVER_FALSE=
10723
fi
10724
 
10725
 case ${build_alias} in
10726
  "") build_noncanonical=${build} ;;
10727
  *) build_noncanonical=${build_alias} ;;
10728
esac
10729
 
10730
 case ${host_alias} in
10731
  "") host_noncanonical=${build_noncanonical} ;;
10732
  *) host_noncanonical=${host_alias} ;;
10733
esac
10734
 
10735
 case ${target_alias} in
10736
  "") target_noncanonical=${host_noncanonical} ;;
10737
  *) target_noncanonical=${target_alias} ;;
10738
esac
10739
 
10740
echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10741
echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10742
  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10743
if test "${enable_install_libbfd+set}" = set; then
10744
  enableval="$enable_install_libbfd"
10745
  install_libbfd_p=$enableval
10746
else
10747
  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10748
        install_libbfd_p=yes
10749
      else
10750
        install_libbfd_p=no
10751
      fi
10752
fi;
10753
  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10754
echo "${ECHO_T}$install_libbfd_p" >&6
10755
 
10756
 
10757
if test $install_libbfd_p = yes; then
10758
  INSTALL_LIBBFD_TRUE=
10759
  INSTALL_LIBBFD_FALSE='#'
10760
else
10761
  INSTALL_LIBBFD_TRUE='#'
10762
  INSTALL_LIBBFD_FALSE=
10763
fi
10764
 
10765
  # Need _noncanonical variables for this.
10766
 
10767
 
10768
 
10769
 
10770
  # libbfd.a is a host library containing target dependent code
10771
  bfdlibdir='$(libdir)'
10772
  bfdincludedir='$(includedir)'
10773
  if test "${host}" != "${target}"; then
10774
    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10775
    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10776
  fi
10777
 
10778
 
10779
 
10780
 
10781
 
10782
 
10783
host64=false
10784
target64=false
10785
bfd_default_target_size=32
10786
 
10787
# host stuff:
10788
 
10789
ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
10790
# If we haven't got the data from the intl directory,
10791
# assume NLS is disabled.
10792
USE_NLS=no
10793
LIBINTL=
10794
LIBINTL_DEP=
10795
INCINTL=
10796
XGETTEXT=
10797
GMSGFMT=
10798
POSUB=
10799
 
10800
if test -f  ../intl/config.intl; then
10801
  .  ../intl/config.intl
10802
fi
10803
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10804
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10805
if test x"$USE_NLS" != xyes; then
10806
  echo "$as_me:$LINENO: result: no" >&5
10807
echo "${ECHO_T}no" >&6
10808
else
10809
  echo "$as_me:$LINENO: result: yes" >&5
10810
echo "${ECHO_T}yes" >&6
10811
 
10812
cat >>confdefs.h <<\_ACEOF
10813
#define ENABLE_NLS 1
10814
_ACEOF
10815
 
10816
 
10817
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10818
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10819
  # Look for .po and .gmo files in the source directory.
10820
  CATALOGS=
10821
  XLINGUAS=
10822
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10823
    # If there aren't any .gmo files the shell will give us the
10824
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10825
    # weeded out.
10826
    case "$cat" in *\**)
10827
      continue;;
10828
    esac
10829
    # The quadruple backslash is collapsed to a double backslash
10830
    # by the backticks, then collapsed again by the double quotes,
10831
    # leaving us with one backslash in the sed expression (right
10832
    # before the dot that mustn't act as a wildcard).
10833
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10834
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10835
    # The user is allowed to set LINGUAS to a list of languages to
10836
    # install catalogs for.  If it's empty that means "all of them."
10837
    if test "x$LINGUAS" = x; then
10838
      CATALOGS="$CATALOGS $cat"
10839
      XLINGUAS="$XLINGUAS $lang"
10840
    else
10841
      case "$LINGUAS" in *$lang*)
10842
        CATALOGS="$CATALOGS $cat"
10843
        XLINGUAS="$XLINGUAS $lang"
10844
        ;;
10845
      esac
10846
    fi
10847
  done
10848
  LINGUAS="$XLINGUAS"
10849
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10850
echo "${ECHO_T}$LINGUAS" >&6
10851
 
10852
 
10853
    DATADIRNAME=share
10854
 
10855
  INSTOBJEXT=.mo
10856
 
10857
  GENCAT=gencat
10858
 
10859
  CATOBJEXT=.gmo
10860
 
10861
fi
10862
 
10863
        MKINSTALLDIRS=
10864
  if test -n "$ac_aux_dir"; then
10865
    case "$ac_aux_dir" in
10866
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10867
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10868
    esac
10869
  fi
10870
  if test -z "$MKINSTALLDIRS"; then
10871
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10872
  fi
10873
 
10874
 
10875
 
10876
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10877
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10878
    # Check whether --enable-nls or --disable-nls was given.
10879
if test "${enable_nls+set}" = set; then
10880
  enableval="$enable_nls"
10881
  USE_NLS=$enableval
10882
else
10883
  USE_NLS=yes
10884
fi;
10885
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10886
echo "${ECHO_T}$USE_NLS" >&6
10887
 
10888
 
10889
 
10890
 
10891
 
10892
 
10893
# Prepare PATH_SEPARATOR.
10894
# The user is always right.
10895
if test "${PATH_SEPARATOR+set}" != set; then
10896
  echo "#! /bin/sh" >conf$$.sh
10897
  echo  "exit 0"   >>conf$$.sh
10898
  chmod +x conf$$.sh
10899
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10900
    PATH_SEPARATOR=';'
10901
  else
10902
    PATH_SEPARATOR=:
10903
  fi
10904
  rm -f conf$$.sh
10905
fi
10906
 
10907
# Find out how to test for executable files. Don't use a zero-byte file,
10908
# as systems may use methods other than mode bits to determine executability.
10909
cat >conf$$.file <<_ASEOF
10910
#! /bin/sh
10911
exit 0
10912
_ASEOF
10913
chmod +x conf$$.file
10914
if test -x conf$$.file >/dev/null 2>&1; then
10915
  ac_executable_p="test -x"
10916
else
10917
  ac_executable_p="test -f"
10918
fi
10919
rm -f conf$$.file
10920
 
10921
# Extract the first word of "msgfmt", so it can be a program name with args.
10922
set dummy msgfmt; ac_word=$2
10923
echo "$as_me:$LINENO: checking for $ac_word" >&5
10924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925
if test "${ac_cv_path_MSGFMT+set}" = set; then
10926
  echo $ECHO_N "(cached) $ECHO_C" >&6
10927
else
10928
  case "$MSGFMT" in
10929
  [\\/]* | ?:[\\/]*)
10930
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10931
    ;;
10932
  *)
10933
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10934
    for ac_dir in $PATH; do
10935
      IFS="$ac_save_IFS"
10936
      test -z "$ac_dir" && ac_dir=.
10937
      for ac_exec_ext in '' $ac_executable_extensions; do
10938
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10939
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10940
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10941
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10942
            break 2
10943
          fi
10944
        fi
10945
      done
10946
    done
10947
    IFS="$ac_save_IFS"
10948
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10949
    ;;
10950
esac
10951
fi
10952
MSGFMT="$ac_cv_path_MSGFMT"
10953
if test "$MSGFMT" != ":"; then
10954
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10955
echo "${ECHO_T}$MSGFMT" >&6
10956
else
10957
  echo "$as_me:$LINENO: result: no" >&5
10958
echo "${ECHO_T}no" >&6
10959
fi
10960
 
10961
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10962
set dummy gmsgfmt; ac_word=$2
10963
echo "$as_me:$LINENO: checking for $ac_word" >&5
10964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10965
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10966
  echo $ECHO_N "(cached) $ECHO_C" >&6
10967
else
10968
  case $GMSGFMT in
10969
  [\\/]* | ?:[\\/]*)
10970
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10971
  ;;
10972
  *)
10973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974
for as_dir in $PATH
10975
do
10976
  IFS=$as_save_IFS
10977
  test -z "$as_dir" && as_dir=.
10978
  for ac_exec_ext in '' $ac_executable_extensions; do
10979
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10980
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10981
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982
    break 2
10983
  fi
10984
done
10985
done
10986
 
10987
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10988
  ;;
10989
esac
10990
fi
10991
GMSGFMT=$ac_cv_path_GMSGFMT
10992
 
10993
if test -n "$GMSGFMT"; then
10994
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10995
echo "${ECHO_T}$GMSGFMT" >&6
10996
else
10997
  echo "$as_me:$LINENO: result: no" >&5
10998
echo "${ECHO_T}no" >&6
10999
fi
11000
 
11001
 
11002
 
11003
# Prepare PATH_SEPARATOR.
11004
# The user is always right.
11005
if test "${PATH_SEPARATOR+set}" != set; then
11006
  echo "#! /bin/sh" >conf$$.sh
11007
  echo  "exit 0"   >>conf$$.sh
11008
  chmod +x conf$$.sh
11009
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11010
    PATH_SEPARATOR=';'
11011
  else
11012
    PATH_SEPARATOR=:
11013
  fi
11014
  rm -f conf$$.sh
11015
fi
11016
 
11017
# Find out how to test for executable files. Don't use a zero-byte file,
11018
# as systems may use methods other than mode bits to determine executability.
11019
cat >conf$$.file <<_ASEOF
11020
#! /bin/sh
11021
exit 0
11022
_ASEOF
11023
chmod +x conf$$.file
11024
if test -x conf$$.file >/dev/null 2>&1; then
11025
  ac_executable_p="test -x"
11026
else
11027
  ac_executable_p="test -f"
11028
fi
11029
rm -f conf$$.file
11030
 
11031
# Extract the first word of "xgettext", so it can be a program name with args.
11032
set dummy xgettext; ac_word=$2
11033
echo "$as_me:$LINENO: checking for $ac_word" >&5
11034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11035
if test "${ac_cv_path_XGETTEXT+set}" = set; then
11036
  echo $ECHO_N "(cached) $ECHO_C" >&6
11037
else
11038
  case "$XGETTEXT" in
11039
  [\\/]* | ?:[\\/]*)
11040
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11041
    ;;
11042
  *)
11043
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11044
    for ac_dir in $PATH; do
11045
      IFS="$ac_save_IFS"
11046
      test -z "$ac_dir" && ac_dir=.
11047
      for ac_exec_ext in '' $ac_executable_extensions; do
11048
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11049
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11050
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11051
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11052
            break 2
11053
          fi
11054
        fi
11055
      done
11056
    done
11057
    IFS="$ac_save_IFS"
11058
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11059
    ;;
11060
esac
11061
fi
11062
XGETTEXT="$ac_cv_path_XGETTEXT"
11063
if test "$XGETTEXT" != ":"; then
11064
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11065
echo "${ECHO_T}$XGETTEXT" >&6
11066
else
11067
  echo "$as_me:$LINENO: result: no" >&5
11068
echo "${ECHO_T}no" >&6
11069
fi
11070
 
11071
    rm -f messages.po
11072
 
11073
 
11074
# Prepare PATH_SEPARATOR.
11075
# The user is always right.
11076
if test "${PATH_SEPARATOR+set}" != set; then
11077
  echo "#! /bin/sh" >conf$$.sh
11078
  echo  "exit 0"   >>conf$$.sh
11079
  chmod +x conf$$.sh
11080
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11081
    PATH_SEPARATOR=';'
11082
  else
11083
    PATH_SEPARATOR=:
11084
  fi
11085
  rm -f conf$$.sh
11086
fi
11087
 
11088
# Find out how to test for executable files. Don't use a zero-byte file,
11089
# as systems may use methods other than mode bits to determine executability.
11090
cat >conf$$.file <<_ASEOF
11091
#! /bin/sh
11092
exit 0
11093
_ASEOF
11094
chmod +x conf$$.file
11095
if test -x conf$$.file >/dev/null 2>&1; then
11096
  ac_executable_p="test -x"
11097
else
11098
  ac_executable_p="test -f"
11099
fi
11100
rm -f conf$$.file
11101
 
11102
# Extract the first word of "msgmerge", so it can be a program name with args.
11103
set dummy msgmerge; ac_word=$2
11104
echo "$as_me:$LINENO: checking for $ac_word" >&5
11105
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11106
if test "${ac_cv_path_MSGMERGE+set}" = set; then
11107
  echo $ECHO_N "(cached) $ECHO_C" >&6
11108
else
11109
  case "$MSGMERGE" in
11110
  [\\/]* | ?:[\\/]*)
11111
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11112
    ;;
11113
  *)
11114
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11115
    for ac_dir in $PATH; do
11116
      IFS="$ac_save_IFS"
11117
      test -z "$ac_dir" && ac_dir=.
11118
      for ac_exec_ext in '' $ac_executable_extensions; do
11119
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11120
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11121
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11122
            break 2
11123
          fi
11124
        fi
11125
      done
11126
    done
11127
    IFS="$ac_save_IFS"
11128
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11129
    ;;
11130
esac
11131
fi
11132
MSGMERGE="$ac_cv_path_MSGMERGE"
11133
if test "$MSGMERGE" != ":"; then
11134
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11135
echo "${ECHO_T}$MSGMERGE" >&6
11136
else
11137
  echo "$as_me:$LINENO: result: no" >&5
11138
echo "${ECHO_T}no" >&6
11139
fi
11140
 
11141
 
11142
      if test "$GMSGFMT" != ":"; then
11143
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11144
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11145
      : ;
11146
    else
11147
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11148
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11149
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11150
      GMSGFMT=":"
11151
    fi
11152
  fi
11153
 
11154
      if test "$XGETTEXT" != ":"; then
11155
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11156
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11157
      : ;
11158
    else
11159
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11160
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11161
      XGETTEXT=":"
11162
    fi
11163
        rm -f messages.po
11164
  fi
11165
 
11166
            ac_config_commands="$ac_config_commands default-1"
11167
 
11168
 
11169
 
11170
# Permit host specific settings.
11171
. ${srcdir}/configure.host
11172
 
11173
 
11174
# Find a good install program.  We prefer a C program (faster),
11175
# so one script is as good as another.  But avoid the broken or
11176
# incompatible versions:
11177
# SysV /etc/install, /usr/sbin/install
11178
# SunOS /usr/etc/install
11179
# IRIX /sbin/install
11180
# AIX /bin/install
11181
# AmigaOS /C/install, which installs bootblocks on floppy discs
11182
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11183
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11184
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11185
# OS/2's system install, which has a completely different semantic
11186
# ./install, which can be erroneously created by make from ./install.sh.
11187
# Reject install programs that cannot install multiple files.
11188
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11189
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11190
if test -z "$INSTALL"; then
11191
if test "${ac_cv_path_install+set}" = set; then
11192
  echo $ECHO_N "(cached) $ECHO_C" >&6
11193
else
11194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195
for as_dir in $PATH
11196
do
11197
  IFS=$as_save_IFS
11198
  test -z "$as_dir" && as_dir=.
11199
  # Account for people who put trailing slashes in PATH elements.
11200
case $as_dir/ in
11201
  ./ | .// | /cC/* | \
11202
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11203
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11204
  /usr/ucb/* ) ;;
11205
  *)
11206
    # OSF1 and SCO ODT 3.0 have their own names for install.
11207
    # Don't use installbsd from OSF since it installs stuff as root
11208
    # by default.
11209
    for ac_prog in ginstall scoinst install; do
11210
      for ac_exec_ext in '' $ac_executable_extensions; do
11211
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11212
          if test $ac_prog = install &&
11213
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11214
            # AIX install.  It has an incompatible calling convention.
11215
            :
11216
          elif test $ac_prog = install &&
11217
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11218
            # program-specific install script used by HP pwplus--don't use.
11219
            :
11220
          else
11221
            rm -rf conftest.one conftest.two conftest.dir
11222
            echo one > conftest.one
11223
            echo two > conftest.two
11224
            mkdir conftest.dir
11225
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11226
              test -s conftest.one && test -s conftest.two &&
11227
              test -s conftest.dir/conftest.one &&
11228
              test -s conftest.dir/conftest.two
11229
            then
11230
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11231
              break 3
11232
            fi
11233
          fi
11234
        fi
11235
      done
11236
    done
11237
    ;;
11238
esac
11239
done
11240
 
11241
rm -rf conftest.one conftest.two conftest.dir
11242
 
11243
fi
11244
  if test "${ac_cv_path_install+set}" = set; then
11245
    INSTALL=$ac_cv_path_install
11246
  else
11247
    # As a last resort, use the slow shell script.  Don't cache a
11248
    # value for INSTALL within a source directory, because that will
11249
    # break other packages using the cache if that directory is
11250
    # removed, or if the value is a relative name.
11251
    INSTALL=$ac_install_sh
11252
  fi
11253
fi
11254
echo "$as_me:$LINENO: result: $INSTALL" >&5
11255
echo "${ECHO_T}$INSTALL" >&6
11256
 
11257
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11258
# It thinks the first close brace ends the variable substitution.
11259
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11260
 
11261
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11262
 
11263
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11264
 
11265
 
11266
BFD_HOST_64BIT_LONG=0
11267
BFD_HOST_64BIT_LONG_LONG=0
11268
BFD_HOST_64_BIT_DEFINED=0
11269
BFD_HOST_64_BIT=
11270
BFD_HOST_U_64_BIT=
11271
BFD_HOSTPTR_T="unsigned long"
11272
 
11273
echo "$as_me:$LINENO: checking for long long" >&5
11274
echo $ECHO_N "checking for long long... $ECHO_C" >&6
11275
if test "${ac_cv_type_long_long+set}" = set; then
11276
  echo $ECHO_N "(cached) $ECHO_C" >&6
11277
else
11278
  cat >conftest.$ac_ext <<_ACEOF
11279
/* confdefs.h.  */
11280
_ACEOF
11281
cat confdefs.h >>conftest.$ac_ext
11282
cat >>conftest.$ac_ext <<_ACEOF
11283
/* end confdefs.h.  */
11284
$ac_includes_default
11285
int
11286
main ()
11287
{
11288
if ((long long *) 0)
11289
  return 0;
11290
if (sizeof (long long))
11291
  return 0;
11292
  ;
11293
  return 0;
11294
}
11295
_ACEOF
11296
rm -f conftest.$ac_objext
11297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298
  (eval $ac_compile) 2>conftest.er1
11299
  ac_status=$?
11300
  grep -v '^ *+' conftest.er1 >conftest.err
11301
  rm -f conftest.er1
11302
  cat conftest.err >&5
11303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304
  (exit $ac_status); } &&
11305
         { ac_try='test -z "$ac_c_werror_flag"
11306
                         || test ! -s conftest.err'
11307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308
  (eval $ac_try) 2>&5
11309
  ac_status=$?
11310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311
  (exit $ac_status); }; } &&
11312
         { ac_try='test -s conftest.$ac_objext'
11313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314
  (eval $ac_try) 2>&5
11315
  ac_status=$?
11316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317
  (exit $ac_status); }; }; then
11318
  ac_cv_type_long_long=yes
11319
else
11320
  echo "$as_me: failed program was:" >&5
11321
sed 's/^/| /' conftest.$ac_ext >&5
11322
 
11323
ac_cv_type_long_long=no
11324
fi
11325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326
fi
11327
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11328
echo "${ECHO_T}$ac_cv_type_long_long" >&6
11329
 
11330
echo "$as_me:$LINENO: checking size of long long" >&5
11331
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11332
if test "${ac_cv_sizeof_long_long+set}" = set; then
11333
  echo $ECHO_N "(cached) $ECHO_C" >&6
11334
else
11335
  if test "$ac_cv_type_long_long" = yes; then
11336
  # The cast to unsigned long works around a bug in the HP C Compiler
11337
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11338
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11339
  # This bug is HP SR number 8606223364.
11340
  if test "$cross_compiling" = yes; then
11341
  # Depending upon the size, compute the lo and hi bounds.
11342
cat >conftest.$ac_ext <<_ACEOF
11343
/* confdefs.h.  */
11344
_ACEOF
11345
cat confdefs.h >>conftest.$ac_ext
11346
cat >>conftest.$ac_ext <<_ACEOF
11347
/* end confdefs.h.  */
11348
$ac_includes_default
11349
int
11350
main ()
11351
{
11352
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11353
test_array [0] = 0
11354
 
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
  ac_lo=0 ac_mid=0
11382
  while :; do
11383
    cat >conftest.$ac_ext <<_ACEOF
11384
/* confdefs.h.  */
11385
_ACEOF
11386
cat confdefs.h >>conftest.$ac_ext
11387
cat >>conftest.$ac_ext <<_ACEOF
11388
/* end confdefs.h.  */
11389
$ac_includes_default
11390
int
11391
main ()
11392
{
11393
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11394
test_array [0] = 0
11395
 
11396
  ;
11397
  return 0;
11398
}
11399
_ACEOF
11400
rm -f conftest.$ac_objext
11401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402
  (eval $ac_compile) 2>conftest.er1
11403
  ac_status=$?
11404
  grep -v '^ *+' conftest.er1 >conftest.err
11405
  rm -f conftest.er1
11406
  cat conftest.err >&5
11407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408
  (exit $ac_status); } &&
11409
         { ac_try='test -z "$ac_c_werror_flag"
11410
                         || test ! -s conftest.err'
11411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412
  (eval $ac_try) 2>&5
11413
  ac_status=$?
11414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415
  (exit $ac_status); }; } &&
11416
         { ac_try='test -s conftest.$ac_objext'
11417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418
  (eval $ac_try) 2>&5
11419
  ac_status=$?
11420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421
  (exit $ac_status); }; }; then
11422
  ac_hi=$ac_mid; break
11423
else
11424
  echo "$as_me: failed program was:" >&5
11425
sed 's/^/| /' conftest.$ac_ext >&5
11426
 
11427
ac_lo=`expr $ac_mid + 1`
11428
                    if test $ac_lo -le $ac_mid; then
11429
                      ac_lo= ac_hi=
11430
                      break
11431
                    fi
11432
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11433
fi
11434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11435
  done
11436
else
11437
  echo "$as_me: failed program was:" >&5
11438
sed 's/^/| /' conftest.$ac_ext >&5
11439
 
11440
cat >conftest.$ac_ext <<_ACEOF
11441
/* confdefs.h.  */
11442
_ACEOF
11443
cat confdefs.h >>conftest.$ac_ext
11444
cat >>conftest.$ac_ext <<_ACEOF
11445
/* end confdefs.h.  */
11446
$ac_includes_default
11447
int
11448
main ()
11449
{
11450
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11451
test_array [0] = 0
11452
 
11453
  ;
11454
  return 0;
11455
}
11456
_ACEOF
11457
rm -f conftest.$ac_objext
11458
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459
  (eval $ac_compile) 2>conftest.er1
11460
  ac_status=$?
11461
  grep -v '^ *+' conftest.er1 >conftest.err
11462
  rm -f conftest.er1
11463
  cat conftest.err >&5
11464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465
  (exit $ac_status); } &&
11466
         { ac_try='test -z "$ac_c_werror_flag"
11467
                         || test ! -s conftest.err'
11468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469
  (eval $ac_try) 2>&5
11470
  ac_status=$?
11471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472
  (exit $ac_status); }; } &&
11473
         { ac_try='test -s conftest.$ac_objext'
11474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475
  (eval $ac_try) 2>&5
11476
  ac_status=$?
11477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478
  (exit $ac_status); }; }; then
11479
  ac_hi=-1 ac_mid=-1
11480
  while :; do
11481
    cat >conftest.$ac_ext <<_ACEOF
11482
/* confdefs.h.  */
11483
_ACEOF
11484
cat confdefs.h >>conftest.$ac_ext
11485
cat >>conftest.$ac_ext <<_ACEOF
11486
/* end confdefs.h.  */
11487
$ac_includes_default
11488
int
11489
main ()
11490
{
11491
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11492
test_array [0] = 0
11493
 
11494
  ;
11495
  return 0;
11496
}
11497
_ACEOF
11498
rm -f conftest.$ac_objext
11499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11500
  (eval $ac_compile) 2>conftest.er1
11501
  ac_status=$?
11502
  grep -v '^ *+' conftest.er1 >conftest.err
11503
  rm -f conftest.er1
11504
  cat conftest.err >&5
11505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506
  (exit $ac_status); } &&
11507
         { ac_try='test -z "$ac_c_werror_flag"
11508
                         || test ! -s conftest.err'
11509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510
  (eval $ac_try) 2>&5
11511
  ac_status=$?
11512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513
  (exit $ac_status); }; } &&
11514
         { ac_try='test -s conftest.$ac_objext'
11515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516
  (eval $ac_try) 2>&5
11517
  ac_status=$?
11518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519
  (exit $ac_status); }; }; then
11520
  ac_lo=$ac_mid; break
11521
else
11522
  echo "$as_me: failed program was:" >&5
11523
sed 's/^/| /' conftest.$ac_ext >&5
11524
 
11525
ac_hi=`expr '(' $ac_mid ')' - 1`
11526
                       if test $ac_mid -le $ac_hi; then
11527
                         ac_lo= ac_hi=
11528
                         break
11529
                       fi
11530
                       ac_mid=`expr 2 '*' $ac_mid`
11531
fi
11532
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11533
  done
11534
else
11535
  echo "$as_me: failed program was:" >&5
11536
sed 's/^/| /' conftest.$ac_ext >&5
11537
 
11538
ac_lo= ac_hi=
11539
fi
11540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541
fi
11542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11543
# Binary search between lo and hi bounds.
11544
while test "x$ac_lo" != "x$ac_hi"; do
11545
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11546
  cat >conftest.$ac_ext <<_ACEOF
11547
/* confdefs.h.  */
11548
_ACEOF
11549
cat confdefs.h >>conftest.$ac_ext
11550
cat >>conftest.$ac_ext <<_ACEOF
11551
/* end confdefs.h.  */
11552
$ac_includes_default
11553
int
11554
main ()
11555
{
11556
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11557
test_array [0] = 0
11558
 
11559
  ;
11560
  return 0;
11561
}
11562
_ACEOF
11563
rm -f conftest.$ac_objext
11564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565
  (eval $ac_compile) 2>conftest.er1
11566
  ac_status=$?
11567
  grep -v '^ *+' conftest.er1 >conftest.err
11568
  rm -f conftest.er1
11569
  cat conftest.err >&5
11570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571
  (exit $ac_status); } &&
11572
         { ac_try='test -z "$ac_c_werror_flag"
11573
                         || test ! -s conftest.err'
11574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575
  (eval $ac_try) 2>&5
11576
  ac_status=$?
11577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578
  (exit $ac_status); }; } &&
11579
         { ac_try='test -s conftest.$ac_objext'
11580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581
  (eval $ac_try) 2>&5
11582
  ac_status=$?
11583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584
  (exit $ac_status); }; }; then
11585
  ac_hi=$ac_mid
11586
else
11587
  echo "$as_me: failed program was:" >&5
11588
sed 's/^/| /' conftest.$ac_ext >&5
11589
 
11590
ac_lo=`expr '(' $ac_mid ')' + 1`
11591
fi
11592
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11593
done
11594
case $ac_lo in
11595
?*) ac_cv_sizeof_long_long=$ac_lo;;
11596
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11597
See \`config.log' for more details." >&5
11598
echo "$as_me: error: cannot compute sizeof (long long), 77
11599
See \`config.log' for more details." >&2;}
11600
   { (exit 1); exit 1; }; } ;;
11601
esac
11602
else
11603
  if test "$cross_compiling" = yes; then
11604
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11605
See \`config.log' for more details." >&5
11606
echo "$as_me: error: cannot run test program while cross compiling
11607
See \`config.log' for more details." >&2;}
11608
   { (exit 1); exit 1; }; }
11609
else
11610
  cat >conftest.$ac_ext <<_ACEOF
11611
/* confdefs.h.  */
11612
_ACEOF
11613
cat confdefs.h >>conftest.$ac_ext
11614
cat >>conftest.$ac_ext <<_ACEOF
11615
/* end confdefs.h.  */
11616
$ac_includes_default
11617
long longval () { return (long) (sizeof (long long)); }
11618
unsigned long ulongval () { return (long) (sizeof (long long)); }
11619
#include 
11620
#include 
11621
int
11622
main ()
11623
{
11624
 
11625
  FILE *f = fopen ("conftest.val", "w");
11626
  if (! f)
11627
    exit (1);
11628
  if (((long) (sizeof (long long))) < 0)
11629
    {
11630
      long i = longval ();
11631
      if (i != ((long) (sizeof (long long))))
11632
        exit (1);
11633
      fprintf (f, "%ld\n", i);
11634
    }
11635
  else
11636
    {
11637
      unsigned long i = ulongval ();
11638
      if (i != ((long) (sizeof (long long))))
11639
        exit (1);
11640
      fprintf (f, "%lu\n", i);
11641
    }
11642
  exit (ferror (f) || fclose (f) != 0);
11643
 
11644
  ;
11645
  return 0;
11646
}
11647
_ACEOF
11648
rm -f conftest$ac_exeext
11649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650
  (eval $ac_link) 2>&5
11651
  ac_status=$?
11652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655
  (eval $ac_try) 2>&5
11656
  ac_status=$?
11657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658
  (exit $ac_status); }; }; then
11659
  ac_cv_sizeof_long_long=`cat conftest.val`
11660
else
11661
  echo "$as_me: program exited with status $ac_status" >&5
11662
echo "$as_me: failed program was:" >&5
11663
sed 's/^/| /' conftest.$ac_ext >&5
11664
 
11665
( exit $ac_status )
11666
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11667
See \`config.log' for more details." >&5
11668
echo "$as_me: error: cannot compute sizeof (long long), 77
11669
See \`config.log' for more details." >&2;}
11670
   { (exit 1); exit 1; }; }
11671
fi
11672
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11673
fi
11674
fi
11675
rm -f conftest.val
11676
else
11677
  ac_cv_sizeof_long_long=0
11678
fi
11679
fi
11680
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11681
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11682
cat >>confdefs.h <<_ACEOF
11683
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11684
_ACEOF
11685
 
11686
 
11687
echo "$as_me:$LINENO: checking for void *" >&5
11688
echo $ECHO_N "checking for void *... $ECHO_C" >&6
11689
if test "${ac_cv_type_void_p+set}" = set; then
11690
  echo $ECHO_N "(cached) $ECHO_C" >&6
11691
else
11692
  cat >conftest.$ac_ext <<_ACEOF
11693
/* confdefs.h.  */
11694
_ACEOF
11695
cat confdefs.h >>conftest.$ac_ext
11696
cat >>conftest.$ac_ext <<_ACEOF
11697
/* end confdefs.h.  */
11698
$ac_includes_default
11699
int
11700
main ()
11701
{
11702
if ((void * *) 0)
11703
  return 0;
11704
if (sizeof (void *))
11705
  return 0;
11706
  ;
11707
  return 0;
11708
}
11709
_ACEOF
11710
rm -f conftest.$ac_objext
11711
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712
  (eval $ac_compile) 2>conftest.er1
11713
  ac_status=$?
11714
  grep -v '^ *+' conftest.er1 >conftest.err
11715
  rm -f conftest.er1
11716
  cat conftest.err >&5
11717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718
  (exit $ac_status); } &&
11719
         { ac_try='test -z "$ac_c_werror_flag"
11720
                         || test ! -s conftest.err'
11721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722
  (eval $ac_try) 2>&5
11723
  ac_status=$?
11724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725
  (exit $ac_status); }; } &&
11726
         { ac_try='test -s conftest.$ac_objext'
11727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728
  (eval $ac_try) 2>&5
11729
  ac_status=$?
11730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731
  (exit $ac_status); }; }; then
11732
  ac_cv_type_void_p=yes
11733
else
11734
  echo "$as_me: failed program was:" >&5
11735
sed 's/^/| /' conftest.$ac_ext >&5
11736
 
11737
ac_cv_type_void_p=no
11738
fi
11739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11740
fi
11741
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11742
echo "${ECHO_T}$ac_cv_type_void_p" >&6
11743
 
11744
echo "$as_me:$LINENO: checking size of void *" >&5
11745
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11746
if test "${ac_cv_sizeof_void_p+set}" = set; then
11747
  echo $ECHO_N "(cached) $ECHO_C" >&6
11748
else
11749
  if test "$ac_cv_type_void_p" = yes; then
11750
  # The cast to unsigned long works around a bug in the HP C Compiler
11751
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11752
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11753
  # This bug is HP SR number 8606223364.
11754
  if test "$cross_compiling" = yes; then
11755
  # Depending upon the size, compute the lo and hi bounds.
11756
cat >conftest.$ac_ext <<_ACEOF
11757
/* confdefs.h.  */
11758
_ACEOF
11759
cat confdefs.h >>conftest.$ac_ext
11760
cat >>conftest.$ac_ext <<_ACEOF
11761
/* end confdefs.h.  */
11762
$ac_includes_default
11763
int
11764
main ()
11765
{
11766
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11767
test_array [0] = 0
11768
 
11769
  ;
11770
  return 0;
11771
}
11772
_ACEOF
11773
rm -f conftest.$ac_objext
11774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775
  (eval $ac_compile) 2>conftest.er1
11776
  ac_status=$?
11777
  grep -v '^ *+' conftest.er1 >conftest.err
11778
  rm -f conftest.er1
11779
  cat conftest.err >&5
11780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
  (exit $ac_status); } &&
11782
         { ac_try='test -z "$ac_c_werror_flag"
11783
                         || test ! -s conftest.err'
11784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785
  (eval $ac_try) 2>&5
11786
  ac_status=$?
11787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788
  (exit $ac_status); }; } &&
11789
         { ac_try='test -s conftest.$ac_objext'
11790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791
  (eval $ac_try) 2>&5
11792
  ac_status=$?
11793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794
  (exit $ac_status); }; }; then
11795
  ac_lo=0 ac_mid=0
11796
  while :; do
11797
    cat >conftest.$ac_ext <<_ACEOF
11798
/* confdefs.h.  */
11799
_ACEOF
11800
cat confdefs.h >>conftest.$ac_ext
11801
cat >>conftest.$ac_ext <<_ACEOF
11802
/* end confdefs.h.  */
11803
$ac_includes_default
11804
int
11805
main ()
11806
{
11807
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11808
test_array [0] = 0
11809
 
11810
  ;
11811
  return 0;
11812
}
11813
_ACEOF
11814
rm -f conftest.$ac_objext
11815
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816
  (eval $ac_compile) 2>conftest.er1
11817
  ac_status=$?
11818
  grep -v '^ *+' conftest.er1 >conftest.err
11819
  rm -f conftest.er1
11820
  cat conftest.err >&5
11821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822
  (exit $ac_status); } &&
11823
         { ac_try='test -z "$ac_c_werror_flag"
11824
                         || test ! -s conftest.err'
11825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826
  (eval $ac_try) 2>&5
11827
  ac_status=$?
11828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829
  (exit $ac_status); }; } &&
11830
         { ac_try='test -s conftest.$ac_objext'
11831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832
  (eval $ac_try) 2>&5
11833
  ac_status=$?
11834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835
  (exit $ac_status); }; }; then
11836
  ac_hi=$ac_mid; break
11837
else
11838
  echo "$as_me: failed program was:" >&5
11839
sed 's/^/| /' conftest.$ac_ext >&5
11840
 
11841
ac_lo=`expr $ac_mid + 1`
11842
                    if test $ac_lo -le $ac_mid; then
11843
                      ac_lo= ac_hi=
11844
                      break
11845
                    fi
11846
                    ac_mid=`expr 2 '*' $ac_mid + 1`
11847
fi
11848
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849
  done
11850
else
11851
  echo "$as_me: failed program was:" >&5
11852
sed 's/^/| /' conftest.$ac_ext >&5
11853
 
11854
cat >conftest.$ac_ext <<_ACEOF
11855
/* confdefs.h.  */
11856
_ACEOF
11857
cat confdefs.h >>conftest.$ac_ext
11858
cat >>conftest.$ac_ext <<_ACEOF
11859
/* end confdefs.h.  */
11860
$ac_includes_default
11861
int
11862
main ()
11863
{
11864
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11865
test_array [0] = 0
11866
 
11867
  ;
11868
  return 0;
11869
}
11870
_ACEOF
11871
rm -f conftest.$ac_objext
11872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873
  (eval $ac_compile) 2>conftest.er1
11874
  ac_status=$?
11875
  grep -v '^ *+' conftest.er1 >conftest.err
11876
  rm -f conftest.er1
11877
  cat conftest.err >&5
11878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879
  (exit $ac_status); } &&
11880
         { ac_try='test -z "$ac_c_werror_flag"
11881
                         || test ! -s conftest.err'
11882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883
  (eval $ac_try) 2>&5
11884
  ac_status=$?
11885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
  (exit $ac_status); }; } &&
11887
         { ac_try='test -s conftest.$ac_objext'
11888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889
  (eval $ac_try) 2>&5
11890
  ac_status=$?
11891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
  (exit $ac_status); }; }; then
11893
  ac_hi=-1 ac_mid=-1
11894
  while :; do
11895
    cat >conftest.$ac_ext <<_ACEOF
11896
/* confdefs.h.  */
11897
_ACEOF
11898
cat confdefs.h >>conftest.$ac_ext
11899
cat >>conftest.$ac_ext <<_ACEOF
11900
/* end confdefs.h.  */
11901
$ac_includes_default
11902
int
11903
main ()
11904
{
11905
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11906
test_array [0] = 0
11907
 
11908
  ;
11909
  return 0;
11910
}
11911
_ACEOF
11912
rm -f conftest.$ac_objext
11913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914
  (eval $ac_compile) 2>conftest.er1
11915
  ac_status=$?
11916
  grep -v '^ *+' conftest.er1 >conftest.err
11917
  rm -f conftest.er1
11918
  cat conftest.err >&5
11919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
  (exit $ac_status); } &&
11921
         { ac_try='test -z "$ac_c_werror_flag"
11922
                         || test ! -s conftest.err'
11923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924
  (eval $ac_try) 2>&5
11925
  ac_status=$?
11926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927
  (exit $ac_status); }; } &&
11928
         { ac_try='test -s conftest.$ac_objext'
11929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930
  (eval $ac_try) 2>&5
11931
  ac_status=$?
11932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933
  (exit $ac_status); }; }; then
11934
  ac_lo=$ac_mid; break
11935
else
11936
  echo "$as_me: failed program was:" >&5
11937
sed 's/^/| /' conftest.$ac_ext >&5
11938
 
11939
ac_hi=`expr '(' $ac_mid ')' - 1`
11940
                       if test $ac_mid -le $ac_hi; then
11941
                         ac_lo= ac_hi=
11942
                         break
11943
                       fi
11944
                       ac_mid=`expr 2 '*' $ac_mid`
11945
fi
11946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11947
  done
11948
else
11949
  echo "$as_me: failed program was:" >&5
11950
sed 's/^/| /' conftest.$ac_ext >&5
11951
 
11952
ac_lo= ac_hi=
11953
fi
11954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955
fi
11956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957
# Binary search between lo and hi bounds.
11958
while test "x$ac_lo" != "x$ac_hi"; do
11959
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11960
  cat >conftest.$ac_ext <<_ACEOF
11961
/* confdefs.h.  */
11962
_ACEOF
11963
cat confdefs.h >>conftest.$ac_ext
11964
cat >>conftest.$ac_ext <<_ACEOF
11965
/* end confdefs.h.  */
11966
$ac_includes_default
11967
int
11968
main ()
11969
{
11970
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11971
test_array [0] = 0
11972
 
11973
  ;
11974
  return 0;
11975
}
11976
_ACEOF
11977
rm -f conftest.$ac_objext
11978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11979
  (eval $ac_compile) 2>conftest.er1
11980
  ac_status=$?
11981
  grep -v '^ *+' conftest.er1 >conftest.err
11982
  rm -f conftest.er1
11983
  cat conftest.err >&5
11984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985
  (exit $ac_status); } &&
11986
         { ac_try='test -z "$ac_c_werror_flag"
11987
                         || test ! -s conftest.err'
11988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989
  (eval $ac_try) 2>&5
11990
  ac_status=$?
11991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992
  (exit $ac_status); }; } &&
11993
         { ac_try='test -s conftest.$ac_objext'
11994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995
  (eval $ac_try) 2>&5
11996
  ac_status=$?
11997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998
  (exit $ac_status); }; }; then
11999
  ac_hi=$ac_mid
12000
else
12001
  echo "$as_me: failed program was:" >&5
12002
sed 's/^/| /' conftest.$ac_ext >&5
12003
 
12004
ac_lo=`expr '(' $ac_mid ')' + 1`
12005
fi
12006
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12007
done
12008
case $ac_lo in
12009
?*) ac_cv_sizeof_void_p=$ac_lo;;
12010
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12011
See \`config.log' for more details." >&5
12012
echo "$as_me: error: cannot compute sizeof (void *), 77
12013
See \`config.log' for more details." >&2;}
12014
   { (exit 1); exit 1; }; } ;;
12015
esac
12016
else
12017
  if test "$cross_compiling" = yes; then
12018
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12019
See \`config.log' for more details." >&5
12020
echo "$as_me: error: cannot run test program while cross compiling
12021
See \`config.log' for more details." >&2;}
12022
   { (exit 1); exit 1; }; }
12023
else
12024
  cat >conftest.$ac_ext <<_ACEOF
12025
/* confdefs.h.  */
12026
_ACEOF
12027
cat confdefs.h >>conftest.$ac_ext
12028
cat >>conftest.$ac_ext <<_ACEOF
12029
/* end confdefs.h.  */
12030
$ac_includes_default
12031
long longval () { return (long) (sizeof (void *)); }
12032
unsigned long ulongval () { return (long) (sizeof (void *)); }
12033
#include 
12034
#include 
12035
int
12036
main ()
12037
{
12038
 
12039
  FILE *f = fopen ("conftest.val", "w");
12040
  if (! f)
12041
    exit (1);
12042
  if (((long) (sizeof (void *))) < 0)
12043
    {
12044
      long i = longval ();
12045
      if (i != ((long) (sizeof (void *))))
12046
        exit (1);
12047
      fprintf (f, "%ld\n", i);
12048
    }
12049
  else
12050
    {
12051
      unsigned long i = ulongval ();
12052
      if (i != ((long) (sizeof (void *))))
12053
        exit (1);
12054
      fprintf (f, "%lu\n", i);
12055
    }
12056
  exit (ferror (f) || fclose (f) != 0);
12057
 
12058
  ;
12059
  return 0;
12060
}
12061
_ACEOF
12062
rm -f conftest$ac_exeext
12063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064
  (eval $ac_link) 2>&5
12065
  ac_status=$?
12066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069
  (eval $ac_try) 2>&5
12070
  ac_status=$?
12071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072
  (exit $ac_status); }; }; then
12073
  ac_cv_sizeof_void_p=`cat conftest.val`
12074
else
12075
  echo "$as_me: program exited with status $ac_status" >&5
12076
echo "$as_me: failed program was:" >&5
12077
sed 's/^/| /' conftest.$ac_ext >&5
12078
 
12079
( exit $ac_status )
12080
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12081
See \`config.log' for more details." >&5
12082
echo "$as_me: error: cannot compute sizeof (void *), 77
12083
See \`config.log' for more details." >&2;}
12084
   { (exit 1); exit 1; }; }
12085
fi
12086
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087
fi
12088
fi
12089
rm -f conftest.val
12090
else
12091
  ac_cv_sizeof_void_p=0
12092
fi
12093
fi
12094
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12095
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12096
cat >>confdefs.h <<_ACEOF
12097
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12098
_ACEOF
12099
 
12100
 
12101
echo "$as_me:$LINENO: checking for long" >&5
12102
echo $ECHO_N "checking for long... $ECHO_C" >&6
12103
if test "${ac_cv_type_long+set}" = set; then
12104
  echo $ECHO_N "(cached) $ECHO_C" >&6
12105
else
12106
  cat >conftest.$ac_ext <<_ACEOF
12107
/* confdefs.h.  */
12108
_ACEOF
12109
cat confdefs.h >>conftest.$ac_ext
12110
cat >>conftest.$ac_ext <<_ACEOF
12111
/* end confdefs.h.  */
12112
$ac_includes_default
12113
int
12114
main ()
12115
{
12116
if ((long *) 0)
12117
  return 0;
12118
if (sizeof (long))
12119
  return 0;
12120
  ;
12121
  return 0;
12122
}
12123
_ACEOF
12124
rm -f conftest.$ac_objext
12125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12126
  (eval $ac_compile) 2>conftest.er1
12127
  ac_status=$?
12128
  grep -v '^ *+' conftest.er1 >conftest.err
12129
  rm -f conftest.er1
12130
  cat conftest.err >&5
12131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132
  (exit $ac_status); } &&
12133
         { ac_try='test -z "$ac_c_werror_flag"
12134
                         || test ! -s conftest.err'
12135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136
  (eval $ac_try) 2>&5
12137
  ac_status=$?
12138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139
  (exit $ac_status); }; } &&
12140
         { ac_try='test -s conftest.$ac_objext'
12141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142
  (eval $ac_try) 2>&5
12143
  ac_status=$?
12144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145
  (exit $ac_status); }; }; then
12146
  ac_cv_type_long=yes
12147
else
12148
  echo "$as_me: failed program was:" >&5
12149
sed 's/^/| /' conftest.$ac_ext >&5
12150
 
12151
ac_cv_type_long=no
12152
fi
12153
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12154
fi
12155
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12156
echo "${ECHO_T}$ac_cv_type_long" >&6
12157
 
12158
echo "$as_me:$LINENO: checking size of long" >&5
12159
echo $ECHO_N "checking size of long... $ECHO_C" >&6
12160
if test "${ac_cv_sizeof_long+set}" = set; then
12161
  echo $ECHO_N "(cached) $ECHO_C" >&6
12162
else
12163
  if test "$ac_cv_type_long" = yes; then
12164
  # The cast to unsigned long works around a bug in the HP C Compiler
12165
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12166
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12167
  # This bug is HP SR number 8606223364.
12168
  if test "$cross_compiling" = yes; then
12169
  # Depending upon the size, compute the lo and hi bounds.
12170
cat >conftest.$ac_ext <<_ACEOF
12171
/* confdefs.h.  */
12172
_ACEOF
12173
cat confdefs.h >>conftest.$ac_ext
12174
cat >>conftest.$ac_ext <<_ACEOF
12175
/* end confdefs.h.  */
12176
$ac_includes_default
12177
int
12178
main ()
12179
{
12180
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12181
test_array [0] = 0
12182
 
12183
  ;
12184
  return 0;
12185
}
12186
_ACEOF
12187
rm -f conftest.$ac_objext
12188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12189
  (eval $ac_compile) 2>conftest.er1
12190
  ac_status=$?
12191
  grep -v '^ *+' conftest.er1 >conftest.err
12192
  rm -f conftest.er1
12193
  cat conftest.err >&5
12194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195
  (exit $ac_status); } &&
12196
         { ac_try='test -z "$ac_c_werror_flag"
12197
                         || test ! -s conftest.err'
12198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199
  (eval $ac_try) 2>&5
12200
  ac_status=$?
12201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202
  (exit $ac_status); }; } &&
12203
         { ac_try='test -s conftest.$ac_objext'
12204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205
  (eval $ac_try) 2>&5
12206
  ac_status=$?
12207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
  (exit $ac_status); }; }; then
12209
  ac_lo=0 ac_mid=0
12210
  while :; do
12211
    cat >conftest.$ac_ext <<_ACEOF
12212
/* confdefs.h.  */
12213
_ACEOF
12214
cat confdefs.h >>conftest.$ac_ext
12215
cat >>conftest.$ac_ext <<_ACEOF
12216
/* end confdefs.h.  */
12217
$ac_includes_default
12218
int
12219
main ()
12220
{
12221
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12222
test_array [0] = 0
12223
 
12224
  ;
12225
  return 0;
12226
}
12227
_ACEOF
12228
rm -f conftest.$ac_objext
12229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230
  (eval $ac_compile) 2>conftest.er1
12231
  ac_status=$?
12232
  grep -v '^ *+' conftest.er1 >conftest.err
12233
  rm -f conftest.er1
12234
  cat conftest.err >&5
12235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236
  (exit $ac_status); } &&
12237
         { ac_try='test -z "$ac_c_werror_flag"
12238
                         || test ! -s conftest.err'
12239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240
  (eval $ac_try) 2>&5
12241
  ac_status=$?
12242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243
  (exit $ac_status); }; } &&
12244
         { ac_try='test -s conftest.$ac_objext'
12245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246
  (eval $ac_try) 2>&5
12247
  ac_status=$?
12248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249
  (exit $ac_status); }; }; then
12250
  ac_hi=$ac_mid; break
12251
else
12252
  echo "$as_me: failed program was:" >&5
12253
sed 's/^/| /' conftest.$ac_ext >&5
12254
 
12255
ac_lo=`expr $ac_mid + 1`
12256
                    if test $ac_lo -le $ac_mid; then
12257
                      ac_lo= ac_hi=
12258
                      break
12259
                    fi
12260
                    ac_mid=`expr 2 '*' $ac_mid + 1`
12261
fi
12262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12263
  done
12264
else
12265
  echo "$as_me: failed program was:" >&5
12266
sed 's/^/| /' conftest.$ac_ext >&5
12267
 
12268
cat >conftest.$ac_ext <<_ACEOF
12269
/* confdefs.h.  */
12270
_ACEOF
12271
cat confdefs.h >>conftest.$ac_ext
12272
cat >>conftest.$ac_ext <<_ACEOF
12273
/* end confdefs.h.  */
12274
$ac_includes_default
12275
int
12276
main ()
12277
{
12278
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12279
test_array [0] = 0
12280
 
12281
  ;
12282
  return 0;
12283
}
12284
_ACEOF
12285
rm -f conftest.$ac_objext
12286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287
  (eval $ac_compile) 2>conftest.er1
12288
  ac_status=$?
12289
  grep -v '^ *+' conftest.er1 >conftest.err
12290
  rm -f conftest.er1
12291
  cat conftest.err >&5
12292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293
  (exit $ac_status); } &&
12294
         { ac_try='test -z "$ac_c_werror_flag"
12295
                         || test ! -s conftest.err'
12296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297
  (eval $ac_try) 2>&5
12298
  ac_status=$?
12299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300
  (exit $ac_status); }; } &&
12301
         { ac_try='test -s conftest.$ac_objext'
12302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303
  (eval $ac_try) 2>&5
12304
  ac_status=$?
12305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306
  (exit $ac_status); }; }; then
12307
  ac_hi=-1 ac_mid=-1
12308
  while :; do
12309
    cat >conftest.$ac_ext <<_ACEOF
12310
/* confdefs.h.  */
12311
_ACEOF
12312
cat confdefs.h >>conftest.$ac_ext
12313
cat >>conftest.$ac_ext <<_ACEOF
12314
/* end confdefs.h.  */
12315
$ac_includes_default
12316
int
12317
main ()
12318
{
12319
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12320
test_array [0] = 0
12321
 
12322
  ;
12323
  return 0;
12324
}
12325
_ACEOF
12326
rm -f conftest.$ac_objext
12327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12328
  (eval $ac_compile) 2>conftest.er1
12329
  ac_status=$?
12330
  grep -v '^ *+' conftest.er1 >conftest.err
12331
  rm -f conftest.er1
12332
  cat conftest.err >&5
12333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334
  (exit $ac_status); } &&
12335
         { ac_try='test -z "$ac_c_werror_flag"
12336
                         || test ! -s conftest.err'
12337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338
  (eval $ac_try) 2>&5
12339
  ac_status=$?
12340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341
  (exit $ac_status); }; } &&
12342
         { ac_try='test -s conftest.$ac_objext'
12343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344
  (eval $ac_try) 2>&5
12345
  ac_status=$?
12346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347
  (exit $ac_status); }; }; then
12348
  ac_lo=$ac_mid; break
12349
else
12350
  echo "$as_me: failed program was:" >&5
12351
sed 's/^/| /' conftest.$ac_ext >&5
12352
 
12353
ac_hi=`expr '(' $ac_mid ')' - 1`
12354
                       if test $ac_mid -le $ac_hi; then
12355
                         ac_lo= ac_hi=
12356
                         break
12357
                       fi
12358
                       ac_mid=`expr 2 '*' $ac_mid`
12359
fi
12360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12361
  done
12362
else
12363
  echo "$as_me: failed program was:" >&5
12364
sed 's/^/| /' conftest.$ac_ext >&5
12365
 
12366
ac_lo= ac_hi=
12367
fi
12368
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369
fi
12370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371
# Binary search between lo and hi bounds.
12372
while test "x$ac_lo" != "x$ac_hi"; do
12373
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12374
  cat >conftest.$ac_ext <<_ACEOF
12375
/* confdefs.h.  */
12376
_ACEOF
12377
cat confdefs.h >>conftest.$ac_ext
12378
cat >>conftest.$ac_ext <<_ACEOF
12379
/* end confdefs.h.  */
12380
$ac_includes_default
12381
int
12382
main ()
12383
{
12384
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12385
test_array [0] = 0
12386
 
12387
  ;
12388
  return 0;
12389
}
12390
_ACEOF
12391
rm -f conftest.$ac_objext
12392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393
  (eval $ac_compile) 2>conftest.er1
12394
  ac_status=$?
12395
  grep -v '^ *+' conftest.er1 >conftest.err
12396
  rm -f conftest.er1
12397
  cat conftest.err >&5
12398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399
  (exit $ac_status); } &&
12400
         { ac_try='test -z "$ac_c_werror_flag"
12401
                         || test ! -s conftest.err'
12402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403
  (eval $ac_try) 2>&5
12404
  ac_status=$?
12405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406
  (exit $ac_status); }; } &&
12407
         { ac_try='test -s conftest.$ac_objext'
12408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409
  (eval $ac_try) 2>&5
12410
  ac_status=$?
12411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412
  (exit $ac_status); }; }; then
12413
  ac_hi=$ac_mid
12414
else
12415
  echo "$as_me: failed program was:" >&5
12416
sed 's/^/| /' conftest.$ac_ext >&5
12417
 
12418
ac_lo=`expr '(' $ac_mid ')' + 1`
12419
fi
12420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12421
done
12422
case $ac_lo in
12423
?*) ac_cv_sizeof_long=$ac_lo;;
12424
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12425
See \`config.log' for more details." >&5
12426
echo "$as_me: error: cannot compute sizeof (long), 77
12427
See \`config.log' for more details." >&2;}
12428
   { (exit 1); exit 1; }; } ;;
12429
esac
12430
else
12431
  if test "$cross_compiling" = yes; then
12432
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12433
See \`config.log' for more details." >&5
12434
echo "$as_me: error: cannot run test program while cross compiling
12435
See \`config.log' for more details." >&2;}
12436
   { (exit 1); exit 1; }; }
12437
else
12438
  cat >conftest.$ac_ext <<_ACEOF
12439
/* confdefs.h.  */
12440
_ACEOF
12441
cat confdefs.h >>conftest.$ac_ext
12442
cat >>conftest.$ac_ext <<_ACEOF
12443
/* end confdefs.h.  */
12444
$ac_includes_default
12445
long longval () { return (long) (sizeof (long)); }
12446
unsigned long ulongval () { return (long) (sizeof (long)); }
12447
#include 
12448
#include 
12449
int
12450
main ()
12451
{
12452
 
12453
  FILE *f = fopen ("conftest.val", "w");
12454
  if (! f)
12455
    exit (1);
12456
  if (((long) (sizeof (long))) < 0)
12457
    {
12458
      long i = longval ();
12459
      if (i != ((long) (sizeof (long))))
12460
        exit (1);
12461
      fprintf (f, "%ld\n", i);
12462
    }
12463
  else
12464
    {
12465
      unsigned long i = ulongval ();
12466
      if (i != ((long) (sizeof (long))))
12467
        exit (1);
12468
      fprintf (f, "%lu\n", i);
12469
    }
12470
  exit (ferror (f) || fclose (f) != 0);
12471
 
12472
  ;
12473
  return 0;
12474
}
12475
_ACEOF
12476
rm -f conftest$ac_exeext
12477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12478
  (eval $ac_link) 2>&5
12479
  ac_status=$?
12480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483
  (eval $ac_try) 2>&5
12484
  ac_status=$?
12485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486
  (exit $ac_status); }; }; then
12487
  ac_cv_sizeof_long=`cat conftest.val`
12488
else
12489
  echo "$as_me: program exited with status $ac_status" >&5
12490
echo "$as_me: failed program was:" >&5
12491
sed 's/^/| /' conftest.$ac_ext >&5
12492
 
12493
( exit $ac_status )
12494
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12495
See \`config.log' for more details." >&5
12496
echo "$as_me: error: cannot compute sizeof (long), 77
12497
See \`config.log' for more details." >&2;}
12498
   { (exit 1); exit 1; }; }
12499
fi
12500
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12501
fi
12502
fi
12503
rm -f conftest.val
12504
else
12505
  ac_cv_sizeof_long=0
12506
fi
12507
fi
12508
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12509
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12510
cat >>confdefs.h <<_ACEOF
12511
#define SIZEOF_LONG $ac_cv_sizeof_long
12512
_ACEOF
12513
 
12514
 
12515
 
12516
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12517
  host64=true
12518
fi
12519
 
12520
if test "x${ac_cv_sizeof_long}" = "x8"; then
12521
  BFD_HOST_64BIT_LONG=1
12522
  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12523
  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12524
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12525
  BFD_HOST_64BIT_LONG_LONG=1
12526
  test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12527
  test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12528
  if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12529
    BFD_HOSTPTR_T="unsigned long long"
12530
  fi
12531
fi
12532
 
12533
if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12534
  BFD_HOST_64_BIT_DEFINED=1
12535
  BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12536
  BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12537
fi
12538
 
12539
 
12540
 
12541
 
12542
 
12543
 
12544
 
12545
 
12546
# Put a plausible default for CC_FOR_BUILD in Makefile.
12547
if test -z "$CC_FOR_BUILD"; then
12548
  if test "x$cross_compiling" = "xno"; then
12549
    CC_FOR_BUILD='$(CC)'
12550
  else
12551
    CC_FOR_BUILD=gcc
12552
  fi
12553
fi
12554
 
12555
# Also set EXEEXT_FOR_BUILD.
12556
if test "x$cross_compiling" = "xno"; then
12557
  EXEEXT_FOR_BUILD='$(EXEEXT)'
12558
else
12559
  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12560
echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12561
if test "${bfd_cv_build_exeext+set}" = set; then
12562
  echo $ECHO_N "(cached) $ECHO_C" >&6
12563
else
12564
  rm -f conftest*
12565
     echo 'int main () { return 0; }' > conftest.c
12566
     bfd_cv_build_exeext=
12567
     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12568
     for file in conftest.*; do
12569
       case $file in
12570
       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12571
       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12572
       esac
12573
     done
12574
     rm -f conftest*
12575
     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12576
fi
12577
echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12578
echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12579
  EXEEXT_FOR_BUILD=""
12580
  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12581
fi
12582
 
12583
 
12584
 
12585
 
12586
 
12587
 
12588
 
12589
 
12590
 
12591
for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12592
do
12593
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12594
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12595
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12596
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12597
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12598
  echo $ECHO_N "(cached) $ECHO_C" >&6
12599
fi
12600
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12601
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12602
else
12603
  # Is the header compilable?
12604
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12605
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12606
cat >conftest.$ac_ext <<_ACEOF
12607
/* confdefs.h.  */
12608
_ACEOF
12609
cat confdefs.h >>conftest.$ac_ext
12610
cat >>conftest.$ac_ext <<_ACEOF
12611
/* end confdefs.h.  */
12612
$ac_includes_default
12613
#include <$ac_header>
12614
_ACEOF
12615
rm -f conftest.$ac_objext
12616
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617
  (eval $ac_compile) 2>conftest.er1
12618
  ac_status=$?
12619
  grep -v '^ *+' conftest.er1 >conftest.err
12620
  rm -f conftest.er1
12621
  cat conftest.err >&5
12622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623
  (exit $ac_status); } &&
12624
         { ac_try='test -z "$ac_c_werror_flag"
12625
                         || test ! -s conftest.err'
12626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627
  (eval $ac_try) 2>&5
12628
  ac_status=$?
12629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630
  (exit $ac_status); }; } &&
12631
         { ac_try='test -s conftest.$ac_objext'
12632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633
  (eval $ac_try) 2>&5
12634
  ac_status=$?
12635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636
  (exit $ac_status); }; }; then
12637
  ac_header_compiler=yes
12638
else
12639
  echo "$as_me: failed program was:" >&5
12640
sed 's/^/| /' conftest.$ac_ext >&5
12641
 
12642
ac_header_compiler=no
12643
fi
12644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646
echo "${ECHO_T}$ac_header_compiler" >&6
12647
 
12648
# Is the header present?
12649
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12650
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12651
cat >conftest.$ac_ext <<_ACEOF
12652
/* confdefs.h.  */
12653
_ACEOF
12654
cat confdefs.h >>conftest.$ac_ext
12655
cat >>conftest.$ac_ext <<_ACEOF
12656
/* end confdefs.h.  */
12657
#include <$ac_header>
12658
_ACEOF
12659
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12660
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12661
  ac_status=$?
12662
  grep -v '^ *+' conftest.er1 >conftest.err
12663
  rm -f conftest.er1
12664
  cat conftest.err >&5
12665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666
  (exit $ac_status); } >/dev/null; then
12667
  if test -s conftest.err; then
12668
    ac_cpp_err=$ac_c_preproc_warn_flag
12669
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12670
  else
12671
    ac_cpp_err=
12672
  fi
12673
else
12674
  ac_cpp_err=yes
12675
fi
12676
if test -z "$ac_cpp_err"; then
12677
  ac_header_preproc=yes
12678
else
12679
  echo "$as_me: failed program was:" >&5
12680
sed 's/^/| /' conftest.$ac_ext >&5
12681
 
12682
  ac_header_preproc=no
12683
fi
12684
rm -f conftest.err conftest.$ac_ext
12685
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12686
echo "${ECHO_T}$ac_header_preproc" >&6
12687
 
12688
# So?  What about this header?
12689
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12690
  yes:no: )
12691
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12692
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12693
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12694
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12695
    ac_header_preproc=yes
12696
    ;;
12697
  no:yes:* )
12698
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12699
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12700
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12701
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12702
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12703
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12704
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12705
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12706
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12707
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12708
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12709
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12710
    (
12711
      cat <<\_ASBOX
12712
## ------------------------------------------ ##
12713
## Report this to the AC_PACKAGE_NAME lists.  ##
12714
## ------------------------------------------ ##
12715
_ASBOX
12716
    ) |
12717
      sed "s/^/$as_me: WARNING:     /" >&2
12718
    ;;
12719
esac
12720
echo "$as_me:$LINENO: checking for $ac_header" >&5
12721
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12722
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12723
  echo $ECHO_N "(cached) $ECHO_C" >&6
12724
else
12725
  eval "$as_ac_Header=\$ac_header_preproc"
12726
fi
12727
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12728
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12729
 
12730
fi
12731
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12732
  cat >>confdefs.h <<_ACEOF
12733
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12734
_ACEOF
12735
 
12736
fi
12737
 
12738
done
12739
 
12740
 
12741
 
12742
 
12743
for ac_header in fcntl.h sys/file.h sys/time.h
12744
do
12745
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12746
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12747
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12748
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12749
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12750
  echo $ECHO_N "(cached) $ECHO_C" >&6
12751
fi
12752
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12753
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12754
else
12755
  # Is the header compilable?
12756
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12757
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12758
cat >conftest.$ac_ext <<_ACEOF
12759
/* confdefs.h.  */
12760
_ACEOF
12761
cat confdefs.h >>conftest.$ac_ext
12762
cat >>conftest.$ac_ext <<_ACEOF
12763
/* end confdefs.h.  */
12764
$ac_includes_default
12765
#include <$ac_header>
12766
_ACEOF
12767
rm -f conftest.$ac_objext
12768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769
  (eval $ac_compile) 2>conftest.er1
12770
  ac_status=$?
12771
  grep -v '^ *+' conftest.er1 >conftest.err
12772
  rm -f conftest.er1
12773
  cat conftest.err >&5
12774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775
  (exit $ac_status); } &&
12776
         { ac_try='test -z "$ac_c_werror_flag"
12777
                         || test ! -s conftest.err'
12778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779
  (eval $ac_try) 2>&5
12780
  ac_status=$?
12781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782
  (exit $ac_status); }; } &&
12783
         { ac_try='test -s conftest.$ac_objext'
12784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785
  (eval $ac_try) 2>&5
12786
  ac_status=$?
12787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788
  (exit $ac_status); }; }; then
12789
  ac_header_compiler=yes
12790
else
12791
  echo "$as_me: failed program was:" >&5
12792
sed 's/^/| /' conftest.$ac_ext >&5
12793
 
12794
ac_header_compiler=no
12795
fi
12796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12797
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12798
echo "${ECHO_T}$ac_header_compiler" >&6
12799
 
12800
# Is the header present?
12801
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12802
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12803
cat >conftest.$ac_ext <<_ACEOF
12804
/* confdefs.h.  */
12805
_ACEOF
12806
cat confdefs.h >>conftest.$ac_ext
12807
cat >>conftest.$ac_ext <<_ACEOF
12808
/* end confdefs.h.  */
12809
#include <$ac_header>
12810
_ACEOF
12811
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12812
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12813
  ac_status=$?
12814
  grep -v '^ *+' conftest.er1 >conftest.err
12815
  rm -f conftest.er1
12816
  cat conftest.err >&5
12817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818
  (exit $ac_status); } >/dev/null; then
12819
  if test -s conftest.err; then
12820
    ac_cpp_err=$ac_c_preproc_warn_flag
12821
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12822
  else
12823
    ac_cpp_err=
12824
  fi
12825
else
12826
  ac_cpp_err=yes
12827
fi
12828
if test -z "$ac_cpp_err"; then
12829
  ac_header_preproc=yes
12830
else
12831
  echo "$as_me: failed program was:" >&5
12832
sed 's/^/| /' conftest.$ac_ext >&5
12833
 
12834
  ac_header_preproc=no
12835
fi
12836
rm -f conftest.err conftest.$ac_ext
12837
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838
echo "${ECHO_T}$ac_header_preproc" >&6
12839
 
12840
# So?  What about this header?
12841
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12842
  yes:no: )
12843
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12844
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12846
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12847
    ac_header_preproc=yes
12848
    ;;
12849
  no:yes:* )
12850
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12851
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12852
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12853
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12854
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12855
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12856
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12857
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12858
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12859
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12860
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12861
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12862
    (
12863
      cat <<\_ASBOX
12864
## ------------------------------------------ ##
12865
## Report this to the AC_PACKAGE_NAME lists.  ##
12866
## ------------------------------------------ ##
12867
_ASBOX
12868
    ) |
12869
      sed "s/^/$as_me: WARNING:     /" >&2
12870
    ;;
12871
esac
12872
echo "$as_me:$LINENO: checking for $ac_header" >&5
12873
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875
  echo $ECHO_N "(cached) $ECHO_C" >&6
12876
else
12877
  eval "$as_ac_Header=\$ac_header_preproc"
12878
fi
12879
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12880
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12881
 
12882
fi
12883
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12884
  cat >>confdefs.h <<_ACEOF
12885
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886
_ACEOF
12887
 
12888
fi
12889
 
12890
done
12891
 
12892
 
12893
 
12894
inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12895
 
12896
acx_cv_header_stdint=stddef.h
12897
acx_cv_header_stdint_kind="(already complete)"
12898
for i in stdint.h $inttype_headers; do
12899
  unset ac_cv_type_uintptr_t
12900
  unset ac_cv_type_uintmax_t
12901
  unset ac_cv_type_int_least32_t
12902
  unset ac_cv_type_int_fast32_t
12903
  unset ac_cv_type_uint64_t
12904
  echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12905
  echo "$as_me:$LINENO: checking for uintmax_t" >&5
12906
echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12907
if test "${ac_cv_type_uintmax_t+set}" = set; then
12908
  echo $ECHO_N "(cached) $ECHO_C" >&6
12909
else
12910
  cat >conftest.$ac_ext <<_ACEOF
12911
/* confdefs.h.  */
12912
_ACEOF
12913
cat confdefs.h >>conftest.$ac_ext
12914
cat >>conftest.$ac_ext <<_ACEOF
12915
/* end confdefs.h.  */
12916
#include 
12917
#include <$i>
12918
 
12919
int
12920
main ()
12921
{
12922
if ((uintmax_t *) 0)
12923
  return 0;
12924
if (sizeof (uintmax_t))
12925
  return 0;
12926
  ;
12927
  return 0;
12928
}
12929
_ACEOF
12930
rm -f conftest.$ac_objext
12931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932
  (eval $ac_compile) 2>conftest.er1
12933
  ac_status=$?
12934
  grep -v '^ *+' conftest.er1 >conftest.err
12935
  rm -f conftest.er1
12936
  cat conftest.err >&5
12937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938
  (exit $ac_status); } &&
12939
         { ac_try='test -z "$ac_c_werror_flag"
12940
                         || test ! -s conftest.err'
12941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942
  (eval $ac_try) 2>&5
12943
  ac_status=$?
12944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945
  (exit $ac_status); }; } &&
12946
         { ac_try='test -s conftest.$ac_objext'
12947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948
  (eval $ac_try) 2>&5
12949
  ac_status=$?
12950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951
  (exit $ac_status); }; }; then
12952
  ac_cv_type_uintmax_t=yes
12953
else
12954
  echo "$as_me: failed program was:" >&5
12955
sed 's/^/| /' conftest.$ac_ext >&5
12956
 
12957
ac_cv_type_uintmax_t=no
12958
fi
12959
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12960
fi
12961
echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12962
echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12963
if test $ac_cv_type_uintmax_t = yes; then
12964
  acx_cv_header_stdint=$i
12965
else
12966
  continue
12967
fi
12968
 
12969
  echo "$as_me:$LINENO: checking for uintptr_t" >&5
12970
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12971
if test "${ac_cv_type_uintptr_t+set}" = set; then
12972
  echo $ECHO_N "(cached) $ECHO_C" >&6
12973
else
12974
  cat >conftest.$ac_ext <<_ACEOF
12975
/* confdefs.h.  */
12976
_ACEOF
12977
cat confdefs.h >>conftest.$ac_ext
12978
cat >>conftest.$ac_ext <<_ACEOF
12979
/* end confdefs.h.  */
12980
#include 
12981
#include <$i>
12982
 
12983
int
12984
main ()
12985
{
12986
if ((uintptr_t *) 0)
12987
  return 0;
12988
if (sizeof (uintptr_t))
12989
  return 0;
12990
  ;
12991
  return 0;
12992
}
12993
_ACEOF
12994
rm -f conftest.$ac_objext
12995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996
  (eval $ac_compile) 2>conftest.er1
12997
  ac_status=$?
12998
  grep -v '^ *+' conftest.er1 >conftest.err
12999
  rm -f conftest.er1
13000
  cat conftest.err >&5
13001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002
  (exit $ac_status); } &&
13003
         { ac_try='test -z "$ac_c_werror_flag"
13004
                         || test ! -s conftest.err'
13005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006
  (eval $ac_try) 2>&5
13007
  ac_status=$?
13008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009
  (exit $ac_status); }; } &&
13010
         { ac_try='test -s conftest.$ac_objext'
13011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012
  (eval $ac_try) 2>&5
13013
  ac_status=$?
13014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015
  (exit $ac_status); }; }; then
13016
  ac_cv_type_uintptr_t=yes
13017
else
13018
  echo "$as_me: failed program was:" >&5
13019
sed 's/^/| /' conftest.$ac_ext >&5
13020
 
13021
ac_cv_type_uintptr_t=no
13022
fi
13023
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13024
fi
13025
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13026
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13027
if test $ac_cv_type_uintptr_t = yes; then
13028
  :
13029
else
13030
  acx_cv_header_stdint_kind="(mostly complete)"
13031
fi
13032
 
13033
  echo "$as_me:$LINENO: checking for int_least32_t" >&5
13034
echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13035
if test "${ac_cv_type_int_least32_t+set}" = set; then
13036
  echo $ECHO_N "(cached) $ECHO_C" >&6
13037
else
13038
  cat >conftest.$ac_ext <<_ACEOF
13039
/* confdefs.h.  */
13040
_ACEOF
13041
cat confdefs.h >>conftest.$ac_ext
13042
cat >>conftest.$ac_ext <<_ACEOF
13043
/* end confdefs.h.  */
13044
#include 
13045
#include <$i>
13046
 
13047
int
13048
main ()
13049
{
13050
if ((int_least32_t *) 0)
13051
  return 0;
13052
if (sizeof (int_least32_t))
13053
  return 0;
13054
  ;
13055
  return 0;
13056
}
13057
_ACEOF
13058
rm -f conftest.$ac_objext
13059
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13060
  (eval $ac_compile) 2>conftest.er1
13061
  ac_status=$?
13062
  grep -v '^ *+' conftest.er1 >conftest.err
13063
  rm -f conftest.er1
13064
  cat conftest.err >&5
13065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066
  (exit $ac_status); } &&
13067
         { ac_try='test -z "$ac_c_werror_flag"
13068
                         || test ! -s conftest.err'
13069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070
  (eval $ac_try) 2>&5
13071
  ac_status=$?
13072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073
  (exit $ac_status); }; } &&
13074
         { ac_try='test -s conftest.$ac_objext'
13075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076
  (eval $ac_try) 2>&5
13077
  ac_status=$?
13078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079
  (exit $ac_status); }; }; then
13080
  ac_cv_type_int_least32_t=yes
13081
else
13082
  echo "$as_me: failed program was:" >&5
13083
sed 's/^/| /' conftest.$ac_ext >&5
13084
 
13085
ac_cv_type_int_least32_t=no
13086
fi
13087
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13088
fi
13089
echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13090
echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13091
if test $ac_cv_type_int_least32_t = yes; then
13092
  :
13093
else
13094
  acx_cv_header_stdint_kind="(mostly complete)"
13095
fi
13096
 
13097
  echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13098
echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13099
if test "${ac_cv_type_int_fast32_t+set}" = set; then
13100
  echo $ECHO_N "(cached) $ECHO_C" >&6
13101
else
13102
  cat >conftest.$ac_ext <<_ACEOF
13103
/* confdefs.h.  */
13104
_ACEOF
13105
cat confdefs.h >>conftest.$ac_ext
13106
cat >>conftest.$ac_ext <<_ACEOF
13107
/* end confdefs.h.  */
13108
#include 
13109
#include <$i>
13110
 
13111
int
13112
main ()
13113
{
13114
if ((int_fast32_t *) 0)
13115
  return 0;
13116
if (sizeof (int_fast32_t))
13117
  return 0;
13118
  ;
13119
  return 0;
13120
}
13121
_ACEOF
13122
rm -f conftest.$ac_objext
13123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124
  (eval $ac_compile) 2>conftest.er1
13125
  ac_status=$?
13126
  grep -v '^ *+' conftest.er1 >conftest.err
13127
  rm -f conftest.er1
13128
  cat conftest.err >&5
13129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130
  (exit $ac_status); } &&
13131
         { ac_try='test -z "$ac_c_werror_flag"
13132
                         || test ! -s conftest.err'
13133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134
  (eval $ac_try) 2>&5
13135
  ac_status=$?
13136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137
  (exit $ac_status); }; } &&
13138
         { ac_try='test -s conftest.$ac_objext'
13139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140
  (eval $ac_try) 2>&5
13141
  ac_status=$?
13142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143
  (exit $ac_status); }; }; then
13144
  ac_cv_type_int_fast32_t=yes
13145
else
13146
  echo "$as_me: failed program was:" >&5
13147
sed 's/^/| /' conftest.$ac_ext >&5
13148
 
13149
ac_cv_type_int_fast32_t=no
13150
fi
13151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152
fi
13153
echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13154
echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13155
if test $ac_cv_type_int_fast32_t = yes; then
13156
  :
13157
else
13158
  acx_cv_header_stdint_kind="(mostly complete)"
13159
fi
13160
 
13161
  echo "$as_me:$LINENO: checking for uint64_t" >&5
13162
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13163
if test "${ac_cv_type_uint64_t+set}" = set; then
13164
  echo $ECHO_N "(cached) $ECHO_C" >&6
13165
else
13166
  cat >conftest.$ac_ext <<_ACEOF
13167
/* confdefs.h.  */
13168
_ACEOF
13169
cat confdefs.h >>conftest.$ac_ext
13170
cat >>conftest.$ac_ext <<_ACEOF
13171
/* end confdefs.h.  */
13172
#include 
13173
#include <$i>
13174
 
13175
int
13176
main ()
13177
{
13178
if ((uint64_t *) 0)
13179
  return 0;
13180
if (sizeof (uint64_t))
13181
  return 0;
13182
  ;
13183
  return 0;
13184
}
13185
_ACEOF
13186
rm -f conftest.$ac_objext
13187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188
  (eval $ac_compile) 2>conftest.er1
13189
  ac_status=$?
13190
  grep -v '^ *+' conftest.er1 >conftest.err
13191
  rm -f conftest.er1
13192
  cat conftest.err >&5
13193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194
  (exit $ac_status); } &&
13195
         { ac_try='test -z "$ac_c_werror_flag"
13196
                         || test ! -s conftest.err'
13197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198
  (eval $ac_try) 2>&5
13199
  ac_status=$?
13200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201
  (exit $ac_status); }; } &&
13202
         { ac_try='test -s conftest.$ac_objext'
13203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204
  (eval $ac_try) 2>&5
13205
  ac_status=$?
13206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207
  (exit $ac_status); }; }; then
13208
  ac_cv_type_uint64_t=yes
13209
else
13210
  echo "$as_me: failed program was:" >&5
13211
sed 's/^/| /' conftest.$ac_ext >&5
13212
 
13213
ac_cv_type_uint64_t=no
13214
fi
13215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216
fi
13217
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13218
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13219
if test $ac_cv_type_uint64_t = yes; then
13220
  :
13221
else
13222
  acx_cv_header_stdint_kind="(lacks uint64_t)"
13223
fi
13224
 
13225
  break
13226
done
13227
if test "$acx_cv_header_stdint" = stddef.h; then
13228
  acx_cv_header_stdint_kind="(lacks uintmax_t)"
13229
  for i in stdint.h $inttype_headers; do
13230
    unset ac_cv_type_uintptr_t
13231
    unset ac_cv_type_uint32_t
13232
    unset ac_cv_type_uint64_t
13233
    echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13234
    echo "$as_me:$LINENO: checking for uint32_t" >&5
13235
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13236
if test "${ac_cv_type_uint32_t+set}" = set; then
13237
  echo $ECHO_N "(cached) $ECHO_C" >&6
13238
else
13239
  cat >conftest.$ac_ext <<_ACEOF
13240
/* confdefs.h.  */
13241
_ACEOF
13242
cat confdefs.h >>conftest.$ac_ext
13243
cat >>conftest.$ac_ext <<_ACEOF
13244
/* end confdefs.h.  */
13245
#include 
13246
#include <$i>
13247
 
13248
int
13249
main ()
13250
{
13251
if ((uint32_t *) 0)
13252
  return 0;
13253
if (sizeof (uint32_t))
13254
  return 0;
13255
  ;
13256
  return 0;
13257
}
13258
_ACEOF
13259
rm -f conftest.$ac_objext
13260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261
  (eval $ac_compile) 2>conftest.er1
13262
  ac_status=$?
13263
  grep -v '^ *+' conftest.er1 >conftest.err
13264
  rm -f conftest.er1
13265
  cat conftest.err >&5
13266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267
  (exit $ac_status); } &&
13268
         { ac_try='test -z "$ac_c_werror_flag"
13269
                         || test ! -s conftest.err'
13270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271
  (eval $ac_try) 2>&5
13272
  ac_status=$?
13273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274
  (exit $ac_status); }; } &&
13275
         { ac_try='test -s conftest.$ac_objext'
13276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277
  (eval $ac_try) 2>&5
13278
  ac_status=$?
13279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280
  (exit $ac_status); }; }; then
13281
  ac_cv_type_uint32_t=yes
13282
else
13283
  echo "$as_me: failed program was:" >&5
13284
sed 's/^/| /' conftest.$ac_ext >&5
13285
 
13286
ac_cv_type_uint32_t=no
13287
fi
13288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289
fi
13290
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13291
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13292
if test $ac_cv_type_uint32_t = yes; then
13293
  acx_cv_header_stdint=$i
13294
else
13295
  continue
13296
fi
13297
 
13298
    echo "$as_me:$LINENO: checking for uint64_t" >&5
13299
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13300
if test "${ac_cv_type_uint64_t+set}" = set; then
13301
  echo $ECHO_N "(cached) $ECHO_C" >&6
13302
else
13303
  cat >conftest.$ac_ext <<_ACEOF
13304
/* confdefs.h.  */
13305
_ACEOF
13306
cat confdefs.h >>conftest.$ac_ext
13307
cat >>conftest.$ac_ext <<_ACEOF
13308
/* end confdefs.h.  */
13309
#include 
13310
#include <$i>
13311
 
13312
int
13313
main ()
13314
{
13315
if ((uint64_t *) 0)
13316
  return 0;
13317
if (sizeof (uint64_t))
13318
  return 0;
13319
  ;
13320
  return 0;
13321
}
13322
_ACEOF
13323
rm -f conftest.$ac_objext
13324
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325
  (eval $ac_compile) 2>conftest.er1
13326
  ac_status=$?
13327
  grep -v '^ *+' conftest.er1 >conftest.err
13328
  rm -f conftest.er1
13329
  cat conftest.err >&5
13330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331
  (exit $ac_status); } &&
13332
         { ac_try='test -z "$ac_c_werror_flag"
13333
                         || test ! -s conftest.err'
13334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335
  (eval $ac_try) 2>&5
13336
  ac_status=$?
13337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338
  (exit $ac_status); }; } &&
13339
         { ac_try='test -s conftest.$ac_objext'
13340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341
  (eval $ac_try) 2>&5
13342
  ac_status=$?
13343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344
  (exit $ac_status); }; }; then
13345
  ac_cv_type_uint64_t=yes
13346
else
13347
  echo "$as_me: failed program was:" >&5
13348
sed 's/^/| /' conftest.$ac_ext >&5
13349
 
13350
ac_cv_type_uint64_t=no
13351
fi
13352
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13353
fi
13354
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13355
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13356
 
13357
    echo "$as_me:$LINENO: checking for uintptr_t" >&5
13358
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13359
if test "${ac_cv_type_uintptr_t+set}" = set; then
13360
  echo $ECHO_N "(cached) $ECHO_C" >&6
13361
else
13362
  cat >conftest.$ac_ext <<_ACEOF
13363
/* confdefs.h.  */
13364
_ACEOF
13365
cat confdefs.h >>conftest.$ac_ext
13366
cat >>conftest.$ac_ext <<_ACEOF
13367
/* end confdefs.h.  */
13368
#include 
13369
#include <$i>
13370
 
13371
int
13372
main ()
13373
{
13374
if ((uintptr_t *) 0)
13375
  return 0;
13376
if (sizeof (uintptr_t))
13377
  return 0;
13378
  ;
13379
  return 0;
13380
}
13381
_ACEOF
13382
rm -f conftest.$ac_objext
13383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384
  (eval $ac_compile) 2>conftest.er1
13385
  ac_status=$?
13386
  grep -v '^ *+' conftest.er1 >conftest.err
13387
  rm -f conftest.er1
13388
  cat conftest.err >&5
13389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390
  (exit $ac_status); } &&
13391
         { ac_try='test -z "$ac_c_werror_flag"
13392
                         || test ! -s conftest.err'
13393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394
  (eval $ac_try) 2>&5
13395
  ac_status=$?
13396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397
  (exit $ac_status); }; } &&
13398
         { ac_try='test -s conftest.$ac_objext'
13399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400
  (eval $ac_try) 2>&5
13401
  ac_status=$?
13402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403
  (exit $ac_status); }; }; then
13404
  ac_cv_type_uintptr_t=yes
13405
else
13406
  echo "$as_me: failed program was:" >&5
13407
sed 's/^/| /' conftest.$ac_ext >&5
13408
 
13409
ac_cv_type_uintptr_t=no
13410
fi
13411
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412
fi
13413
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13414
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13415
 
13416
    break
13417
  done
13418
fi
13419
if test "$acx_cv_header_stdint" = stddef.h; then
13420
  acx_cv_header_stdint_kind="(u_intXX_t style)"
13421
  for i in sys/types.h $inttype_headers; do
13422
    unset ac_cv_type_u_int32_t
13423
    unset ac_cv_type_u_int64_t
13424
    echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13425
    echo "$as_me:$LINENO: checking for u_int32_t" >&5
13426
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13427
if test "${ac_cv_type_u_int32_t+set}" = set; then
13428
  echo $ECHO_N "(cached) $ECHO_C" >&6
13429
else
13430
  cat >conftest.$ac_ext <<_ACEOF
13431
/* confdefs.h.  */
13432
_ACEOF
13433
cat confdefs.h >>conftest.$ac_ext
13434
cat >>conftest.$ac_ext <<_ACEOF
13435
/* end confdefs.h.  */
13436
#include 
13437
#include <$i>
13438
 
13439
int
13440
main ()
13441
{
13442
if ((u_int32_t *) 0)
13443
  return 0;
13444
if (sizeof (u_int32_t))
13445
  return 0;
13446
  ;
13447
  return 0;
13448
}
13449
_ACEOF
13450
rm -f conftest.$ac_objext
13451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452
  (eval $ac_compile) 2>conftest.er1
13453
  ac_status=$?
13454
  grep -v '^ *+' conftest.er1 >conftest.err
13455
  rm -f conftest.er1
13456
  cat conftest.err >&5
13457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458
  (exit $ac_status); } &&
13459
         { ac_try='test -z "$ac_c_werror_flag"
13460
                         || test ! -s conftest.err'
13461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462
  (eval $ac_try) 2>&5
13463
  ac_status=$?
13464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465
  (exit $ac_status); }; } &&
13466
         { ac_try='test -s conftest.$ac_objext'
13467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468
  (eval $ac_try) 2>&5
13469
  ac_status=$?
13470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471
  (exit $ac_status); }; }; then
13472
  ac_cv_type_u_int32_t=yes
13473
else
13474
  echo "$as_me: failed program was:" >&5
13475
sed 's/^/| /' conftest.$ac_ext >&5
13476
 
13477
ac_cv_type_u_int32_t=no
13478
fi
13479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480
fi
13481
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13482
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13483
if test $ac_cv_type_u_int32_t = yes; then
13484
  acx_cv_header_stdint=$i
13485
else
13486
  continue
13487
fi
13488
 
13489
    echo "$as_me:$LINENO: checking for u_int64_t" >&5
13490
echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13491
if test "${ac_cv_type_u_int64_t+set}" = set; then
13492
  echo $ECHO_N "(cached) $ECHO_C" >&6
13493
else
13494
  cat >conftest.$ac_ext <<_ACEOF
13495
/* confdefs.h.  */
13496
_ACEOF
13497
cat confdefs.h >>conftest.$ac_ext
13498
cat >>conftest.$ac_ext <<_ACEOF
13499
/* end confdefs.h.  */
13500
#include 
13501
#include <$i>
13502
 
13503
int
13504
main ()
13505
{
13506
if ((u_int64_t *) 0)
13507
  return 0;
13508
if (sizeof (u_int64_t))
13509
  return 0;
13510
  ;
13511
  return 0;
13512
}
13513
_ACEOF
13514
rm -f conftest.$ac_objext
13515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13516
  (eval $ac_compile) 2>conftest.er1
13517
  ac_status=$?
13518
  grep -v '^ *+' conftest.er1 >conftest.err
13519
  rm -f conftest.er1
13520
  cat conftest.err >&5
13521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522
  (exit $ac_status); } &&
13523
         { ac_try='test -z "$ac_c_werror_flag"
13524
                         || test ! -s conftest.err'
13525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526
  (eval $ac_try) 2>&5
13527
  ac_status=$?
13528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529
  (exit $ac_status); }; } &&
13530
         { ac_try='test -s conftest.$ac_objext'
13531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532
  (eval $ac_try) 2>&5
13533
  ac_status=$?
13534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535
  (exit $ac_status); }; }; then
13536
  ac_cv_type_u_int64_t=yes
13537
else
13538
  echo "$as_me: failed program was:" >&5
13539
sed 's/^/| /' conftest.$ac_ext >&5
13540
 
13541
ac_cv_type_u_int64_t=no
13542
fi
13543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13544
fi
13545
echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13546
echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13547
 
13548
    break
13549
  done
13550
fi
13551
if test "$acx_cv_header_stdint" = stddef.h; then
13552
  acx_cv_header_stdint_kind="(using manual detection)"
13553
fi
13554
 
13555
test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13556
test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13557
test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13558
test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13559
test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13560
 
13561
# ----------------- Summarize what we found so far
13562
 
13563
echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13564
echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13565
 
13566
case `$as_basename bfd_stdint.h ||
13567
$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13568
         Xbfd_stdint.h : 'X\(//\)$' \| \
13569
         Xbfd_stdint.h : 'X\(/\)$' \| \
13570
         .     : '\(.\)' 2>/dev/null ||
13571
echo X/bfd_stdint.h |
13572
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13573
          /^X\/\(\/\/\)$/{ s//\1/; q; }
13574
          /^X\/\(\/\).*/{ s//\1/; q; }
13575
          s/.*/./; q'` in
13576
  stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13577
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13578
  inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13579
echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13580
  *) ;;
13581
esac
13582
 
13583
echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13584
echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13585
 
13586
# ----------------- done included file, check C basic types --------
13587
 
13588
# Lacking an uintptr_t?  Test size of void *
13589
case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13590
  stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13591
echo $ECHO_N "checking for void *... $ECHO_C" >&6
13592
if test "${ac_cv_type_void_p+set}" = set; then
13593
  echo $ECHO_N "(cached) $ECHO_C" >&6
13594
else
13595
  cat >conftest.$ac_ext <<_ACEOF
13596
/* confdefs.h.  */
13597
_ACEOF
13598
cat confdefs.h >>conftest.$ac_ext
13599
cat >>conftest.$ac_ext <<_ACEOF
13600
/* end confdefs.h.  */
13601
$ac_includes_default
13602
int
13603
main ()
13604
{
13605
if ((void * *) 0)
13606
  return 0;
13607
if (sizeof (void *))
13608
  return 0;
13609
  ;
13610
  return 0;
13611
}
13612
_ACEOF
13613
rm -f conftest.$ac_objext
13614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615
  (eval $ac_compile) 2>conftest.er1
13616
  ac_status=$?
13617
  grep -v '^ *+' conftest.er1 >conftest.err
13618
  rm -f conftest.er1
13619
  cat conftest.err >&5
13620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621
  (exit $ac_status); } &&
13622
         { ac_try='test -z "$ac_c_werror_flag"
13623
                         || test ! -s conftest.err'
13624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625
  (eval $ac_try) 2>&5
13626
  ac_status=$?
13627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628
  (exit $ac_status); }; } &&
13629
         { ac_try='test -s conftest.$ac_objext'
13630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631
  (eval $ac_try) 2>&5
13632
  ac_status=$?
13633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634
  (exit $ac_status); }; }; then
13635
  ac_cv_type_void_p=yes
13636
else
13637
  echo "$as_me: failed program was:" >&5
13638
sed 's/^/| /' conftest.$ac_ext >&5
13639
 
13640
ac_cv_type_void_p=no
13641
fi
13642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13643
fi
13644
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13645
echo "${ECHO_T}$ac_cv_type_void_p" >&6
13646
 
13647
echo "$as_me:$LINENO: checking size of void *" >&5
13648
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13649
if test "${ac_cv_sizeof_void_p+set}" = set; then
13650
  echo $ECHO_N "(cached) $ECHO_C" >&6
13651
else
13652
  if test "$ac_cv_type_void_p" = yes; then
13653
  # The cast to unsigned long works around a bug in the HP C Compiler
13654
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13655
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13656
  # This bug is HP SR number 8606223364.
13657
  if test "$cross_compiling" = yes; then
13658
  # Depending upon the size, compute the lo and hi bounds.
13659
cat >conftest.$ac_ext <<_ACEOF
13660
/* confdefs.h.  */
13661
_ACEOF
13662
cat confdefs.h >>conftest.$ac_ext
13663
cat >>conftest.$ac_ext <<_ACEOF
13664
/* end confdefs.h.  */
13665
$ac_includes_default
13666
int
13667
main ()
13668
{
13669
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13670
test_array [0] = 0
13671
 
13672
  ;
13673
  return 0;
13674
}
13675
_ACEOF
13676
rm -f conftest.$ac_objext
13677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678
  (eval $ac_compile) 2>conftest.er1
13679
  ac_status=$?
13680
  grep -v '^ *+' conftest.er1 >conftest.err
13681
  rm -f conftest.er1
13682
  cat conftest.err >&5
13683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684
  (exit $ac_status); } &&
13685
         { ac_try='test -z "$ac_c_werror_flag"
13686
                         || test ! -s conftest.err'
13687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688
  (eval $ac_try) 2>&5
13689
  ac_status=$?
13690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691
  (exit $ac_status); }; } &&
13692
         { ac_try='test -s conftest.$ac_objext'
13693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694
  (eval $ac_try) 2>&5
13695
  ac_status=$?
13696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697
  (exit $ac_status); }; }; then
13698
  ac_lo=0 ac_mid=0
13699
  while :; do
13700
    cat >conftest.$ac_ext <<_ACEOF
13701
/* confdefs.h.  */
13702
_ACEOF
13703
cat confdefs.h >>conftest.$ac_ext
13704
cat >>conftest.$ac_ext <<_ACEOF
13705
/* end confdefs.h.  */
13706
$ac_includes_default
13707
int
13708
main ()
13709
{
13710
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13711
test_array [0] = 0
13712
 
13713
  ;
13714
  return 0;
13715
}
13716
_ACEOF
13717
rm -f conftest.$ac_objext
13718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719
  (eval $ac_compile) 2>conftest.er1
13720
  ac_status=$?
13721
  grep -v '^ *+' conftest.er1 >conftest.err
13722
  rm -f conftest.er1
13723
  cat conftest.err >&5
13724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725
  (exit $ac_status); } &&
13726
         { ac_try='test -z "$ac_c_werror_flag"
13727
                         || test ! -s conftest.err'
13728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729
  (eval $ac_try) 2>&5
13730
  ac_status=$?
13731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732
  (exit $ac_status); }; } &&
13733
         { ac_try='test -s conftest.$ac_objext'
13734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735
  (eval $ac_try) 2>&5
13736
  ac_status=$?
13737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738
  (exit $ac_status); }; }; then
13739
  ac_hi=$ac_mid; break
13740
else
13741
  echo "$as_me: failed program was:" >&5
13742
sed 's/^/| /' conftest.$ac_ext >&5
13743
 
13744
ac_lo=`expr $ac_mid + 1`
13745
                    if test $ac_lo -le $ac_mid; then
13746
                      ac_lo= ac_hi=
13747
                      break
13748
                    fi
13749
                    ac_mid=`expr 2 '*' $ac_mid + 1`
13750
fi
13751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13752
  done
13753
else
13754
  echo "$as_me: failed program was:" >&5
13755
sed 's/^/| /' conftest.$ac_ext >&5
13756
 
13757
cat >conftest.$ac_ext <<_ACEOF
13758
/* confdefs.h.  */
13759
_ACEOF
13760
cat confdefs.h >>conftest.$ac_ext
13761
cat >>conftest.$ac_ext <<_ACEOF
13762
/* end confdefs.h.  */
13763
$ac_includes_default
13764
int
13765
main ()
13766
{
13767
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13768
test_array [0] = 0
13769
 
13770
  ;
13771
  return 0;
13772
}
13773
_ACEOF
13774
rm -f conftest.$ac_objext
13775
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776
  (eval $ac_compile) 2>conftest.er1
13777
  ac_status=$?
13778
  grep -v '^ *+' conftest.er1 >conftest.err
13779
  rm -f conftest.er1
13780
  cat conftest.err >&5
13781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782
  (exit $ac_status); } &&
13783
         { ac_try='test -z "$ac_c_werror_flag"
13784
                         || test ! -s conftest.err'
13785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786
  (eval $ac_try) 2>&5
13787
  ac_status=$?
13788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789
  (exit $ac_status); }; } &&
13790
         { ac_try='test -s conftest.$ac_objext'
13791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792
  (eval $ac_try) 2>&5
13793
  ac_status=$?
13794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795
  (exit $ac_status); }; }; then
13796
  ac_hi=-1 ac_mid=-1
13797
  while :; do
13798
    cat >conftest.$ac_ext <<_ACEOF
13799
/* confdefs.h.  */
13800
_ACEOF
13801
cat confdefs.h >>conftest.$ac_ext
13802
cat >>conftest.$ac_ext <<_ACEOF
13803
/* end confdefs.h.  */
13804
$ac_includes_default
13805
int
13806
main ()
13807
{
13808
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13809
test_array [0] = 0
13810
 
13811
  ;
13812
  return 0;
13813
}
13814
_ACEOF
13815
rm -f conftest.$ac_objext
13816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817
  (eval $ac_compile) 2>conftest.er1
13818
  ac_status=$?
13819
  grep -v '^ *+' conftest.er1 >conftest.err
13820
  rm -f conftest.er1
13821
  cat conftest.err >&5
13822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823
  (exit $ac_status); } &&
13824
         { ac_try='test -z "$ac_c_werror_flag"
13825
                         || test ! -s conftest.err'
13826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827
  (eval $ac_try) 2>&5
13828
  ac_status=$?
13829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830
  (exit $ac_status); }; } &&
13831
         { ac_try='test -s conftest.$ac_objext'
13832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833
  (eval $ac_try) 2>&5
13834
  ac_status=$?
13835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836
  (exit $ac_status); }; }; then
13837
  ac_lo=$ac_mid; break
13838
else
13839
  echo "$as_me: failed program was:" >&5
13840
sed 's/^/| /' conftest.$ac_ext >&5
13841
 
13842
ac_hi=`expr '(' $ac_mid ')' - 1`
13843
                       if test $ac_mid -le $ac_hi; then
13844
                         ac_lo= ac_hi=
13845
                         break
13846
                       fi
13847
                       ac_mid=`expr 2 '*' $ac_mid`
13848
fi
13849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13850
  done
13851
else
13852
  echo "$as_me: failed program was:" >&5
13853
sed 's/^/| /' conftest.$ac_ext >&5
13854
 
13855
ac_lo= ac_hi=
13856
fi
13857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13858
fi
13859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860
# Binary search between lo and hi bounds.
13861
while test "x$ac_lo" != "x$ac_hi"; do
13862
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13863
  cat >conftest.$ac_ext <<_ACEOF
13864
/* confdefs.h.  */
13865
_ACEOF
13866
cat confdefs.h >>conftest.$ac_ext
13867
cat >>conftest.$ac_ext <<_ACEOF
13868
/* end confdefs.h.  */
13869
$ac_includes_default
13870
int
13871
main ()
13872
{
13873
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13874
test_array [0] = 0
13875
 
13876
  ;
13877
  return 0;
13878
}
13879
_ACEOF
13880
rm -f conftest.$ac_objext
13881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882
  (eval $ac_compile) 2>conftest.er1
13883
  ac_status=$?
13884
  grep -v '^ *+' conftest.er1 >conftest.err
13885
  rm -f conftest.er1
13886
  cat conftest.err >&5
13887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888
  (exit $ac_status); } &&
13889
         { ac_try='test -z "$ac_c_werror_flag"
13890
                         || test ! -s conftest.err'
13891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892
  (eval $ac_try) 2>&5
13893
  ac_status=$?
13894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895
  (exit $ac_status); }; } &&
13896
         { ac_try='test -s conftest.$ac_objext'
13897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898
  (eval $ac_try) 2>&5
13899
  ac_status=$?
13900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901
  (exit $ac_status); }; }; then
13902
  ac_hi=$ac_mid
13903
else
13904
  echo "$as_me: failed program was:" >&5
13905
sed 's/^/| /' conftest.$ac_ext >&5
13906
 
13907
ac_lo=`expr '(' $ac_mid ')' + 1`
13908
fi
13909
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910
done
13911
case $ac_lo in
13912
?*) ac_cv_sizeof_void_p=$ac_lo;;
13913
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13914
See \`config.log' for more details." >&5
13915
echo "$as_me: error: cannot compute sizeof (void *), 77
13916
See \`config.log' for more details." >&2;}
13917
   { (exit 1); exit 1; }; } ;;
13918
esac
13919
else
13920
  if test "$cross_compiling" = yes; then
13921
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13922
See \`config.log' for more details." >&5
13923
echo "$as_me: error: cannot run test program while cross compiling
13924
See \`config.log' for more details." >&2;}
13925
   { (exit 1); exit 1; }; }
13926
else
13927
  cat >conftest.$ac_ext <<_ACEOF
13928
/* confdefs.h.  */
13929
_ACEOF
13930
cat confdefs.h >>conftest.$ac_ext
13931
cat >>conftest.$ac_ext <<_ACEOF
13932
/* end confdefs.h.  */
13933
$ac_includes_default
13934
long longval () { return (long) (sizeof (void *)); }
13935
unsigned long ulongval () { return (long) (sizeof (void *)); }
13936
#include 
13937
#include 
13938
int
13939
main ()
13940
{
13941
 
13942
  FILE *f = fopen ("conftest.val", "w");
13943
  if (! f)
13944
    exit (1);
13945
  if (((long) (sizeof (void *))) < 0)
13946
    {
13947
      long i = longval ();
13948
      if (i != ((long) (sizeof (void *))))
13949
        exit (1);
13950
      fprintf (f, "%ld\n", i);
13951
    }
13952
  else
13953
    {
13954
      unsigned long i = ulongval ();
13955
      if (i != ((long) (sizeof (void *))))
13956
        exit (1);
13957
      fprintf (f, "%lu\n", i);
13958
    }
13959
  exit (ferror (f) || fclose (f) != 0);
13960
 
13961
  ;
13962
  return 0;
13963
}
13964
_ACEOF
13965
rm -f conftest$ac_exeext
13966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967
  (eval $ac_link) 2>&5
13968
  ac_status=$?
13969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972
  (eval $ac_try) 2>&5
13973
  ac_status=$?
13974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975
  (exit $ac_status); }; }; then
13976
  ac_cv_sizeof_void_p=`cat conftest.val`
13977
else
13978
  echo "$as_me: program exited with status $ac_status" >&5
13979
echo "$as_me: failed program was:" >&5
13980
sed 's/^/| /' conftest.$ac_ext >&5
13981
 
13982
( exit $ac_status )
13983
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13984
See \`config.log' for more details." >&5
13985
echo "$as_me: error: cannot compute sizeof (void *), 77
13986
See \`config.log' for more details." >&2;}
13987
   { (exit 1); exit 1; }; }
13988
fi
13989
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13990
fi
13991
fi
13992
rm -f conftest.val
13993
else
13994
  ac_cv_sizeof_void_p=0
13995
fi
13996
fi
13997
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13998
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13999
cat >>confdefs.h <<_ACEOF
14000
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14001
_ACEOF
14002
 
14003
 ;;
14004
esac
14005
 
14006
# Lacking an uint64_t?  Test size of long
14007
case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14008
  stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14009
echo $ECHO_N "checking for long... $ECHO_C" >&6
14010
if test "${ac_cv_type_long+set}" = set; then
14011
  echo $ECHO_N "(cached) $ECHO_C" >&6
14012
else
14013
  cat >conftest.$ac_ext <<_ACEOF
14014
/* confdefs.h.  */
14015
_ACEOF
14016
cat confdefs.h >>conftest.$ac_ext
14017
cat >>conftest.$ac_ext <<_ACEOF
14018
/* end confdefs.h.  */
14019
$ac_includes_default
14020
int
14021
main ()
14022
{
14023
if ((long *) 0)
14024
  return 0;
14025
if (sizeof (long))
14026
  return 0;
14027
  ;
14028
  return 0;
14029
}
14030
_ACEOF
14031
rm -f conftest.$ac_objext
14032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14033
  (eval $ac_compile) 2>conftest.er1
14034
  ac_status=$?
14035
  grep -v '^ *+' conftest.er1 >conftest.err
14036
  rm -f conftest.er1
14037
  cat conftest.err >&5
14038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039
  (exit $ac_status); } &&
14040
         { ac_try='test -z "$ac_c_werror_flag"
14041
                         || test ! -s conftest.err'
14042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043
  (eval $ac_try) 2>&5
14044
  ac_status=$?
14045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046
  (exit $ac_status); }; } &&
14047
         { ac_try='test -s conftest.$ac_objext'
14048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049
  (eval $ac_try) 2>&5
14050
  ac_status=$?
14051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052
  (exit $ac_status); }; }; then
14053
  ac_cv_type_long=yes
14054
else
14055
  echo "$as_me: failed program was:" >&5
14056
sed 's/^/| /' conftest.$ac_ext >&5
14057
 
14058
ac_cv_type_long=no
14059
fi
14060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14061
fi
14062
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14063
echo "${ECHO_T}$ac_cv_type_long" >&6
14064
 
14065
echo "$as_me:$LINENO: checking size of long" >&5
14066
echo $ECHO_N "checking size of long... $ECHO_C" >&6
14067
if test "${ac_cv_sizeof_long+set}" = set; then
14068
  echo $ECHO_N "(cached) $ECHO_C" >&6
14069
else
14070
  if test "$ac_cv_type_long" = yes; then
14071
  # The cast to unsigned long works around a bug in the HP C Compiler
14072
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14073
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14074
  # This bug is HP SR number 8606223364.
14075
  if test "$cross_compiling" = yes; then
14076
  # Depending upon the size, compute the lo and hi bounds.
14077
cat >conftest.$ac_ext <<_ACEOF
14078
/* confdefs.h.  */
14079
_ACEOF
14080
cat confdefs.h >>conftest.$ac_ext
14081
cat >>conftest.$ac_ext <<_ACEOF
14082
/* end confdefs.h.  */
14083
$ac_includes_default
14084
int
14085
main ()
14086
{
14087
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14088
test_array [0] = 0
14089
 
14090
  ;
14091
  return 0;
14092
}
14093
_ACEOF
14094
rm -f conftest.$ac_objext
14095
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096
  (eval $ac_compile) 2>conftest.er1
14097
  ac_status=$?
14098
  grep -v '^ *+' conftest.er1 >conftest.err
14099
  rm -f conftest.er1
14100
  cat conftest.err >&5
14101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102
  (exit $ac_status); } &&
14103
         { ac_try='test -z "$ac_c_werror_flag"
14104
                         || test ! -s conftest.err'
14105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106
  (eval $ac_try) 2>&5
14107
  ac_status=$?
14108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109
  (exit $ac_status); }; } &&
14110
         { ac_try='test -s conftest.$ac_objext'
14111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112
  (eval $ac_try) 2>&5
14113
  ac_status=$?
14114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115
  (exit $ac_status); }; }; then
14116
  ac_lo=0 ac_mid=0
14117
  while :; do
14118
    cat >conftest.$ac_ext <<_ACEOF
14119
/* confdefs.h.  */
14120
_ACEOF
14121
cat confdefs.h >>conftest.$ac_ext
14122
cat >>conftest.$ac_ext <<_ACEOF
14123
/* end confdefs.h.  */
14124
$ac_includes_default
14125
int
14126
main ()
14127
{
14128
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14129
test_array [0] = 0
14130
 
14131
  ;
14132
  return 0;
14133
}
14134
_ACEOF
14135
rm -f conftest.$ac_objext
14136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137
  (eval $ac_compile) 2>conftest.er1
14138
  ac_status=$?
14139
  grep -v '^ *+' conftest.er1 >conftest.err
14140
  rm -f conftest.er1
14141
  cat conftest.err >&5
14142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143
  (exit $ac_status); } &&
14144
         { ac_try='test -z "$ac_c_werror_flag"
14145
                         || test ! -s conftest.err'
14146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147
  (eval $ac_try) 2>&5
14148
  ac_status=$?
14149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150
  (exit $ac_status); }; } &&
14151
         { ac_try='test -s conftest.$ac_objext'
14152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153
  (eval $ac_try) 2>&5
14154
  ac_status=$?
14155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156
  (exit $ac_status); }; }; then
14157
  ac_hi=$ac_mid; break
14158
else
14159
  echo "$as_me: failed program was:" >&5
14160
sed 's/^/| /' conftest.$ac_ext >&5
14161
 
14162
ac_lo=`expr $ac_mid + 1`
14163
                    if test $ac_lo -le $ac_mid; then
14164
                      ac_lo= ac_hi=
14165
                      break
14166
                    fi
14167
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14168
fi
14169
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170
  done
14171
else
14172
  echo "$as_me: failed program was:" >&5
14173
sed 's/^/| /' conftest.$ac_ext >&5
14174
 
14175
cat >conftest.$ac_ext <<_ACEOF
14176
/* confdefs.h.  */
14177
_ACEOF
14178
cat confdefs.h >>conftest.$ac_ext
14179
cat >>conftest.$ac_ext <<_ACEOF
14180
/* end confdefs.h.  */
14181
$ac_includes_default
14182
int
14183
main ()
14184
{
14185
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14186
test_array [0] = 0
14187
 
14188
  ;
14189
  return 0;
14190
}
14191
_ACEOF
14192
rm -f conftest.$ac_objext
14193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194
  (eval $ac_compile) 2>conftest.er1
14195
  ac_status=$?
14196
  grep -v '^ *+' conftest.er1 >conftest.err
14197
  rm -f conftest.er1
14198
  cat conftest.err >&5
14199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200
  (exit $ac_status); } &&
14201
         { ac_try='test -z "$ac_c_werror_flag"
14202
                         || test ! -s conftest.err'
14203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204
  (eval $ac_try) 2>&5
14205
  ac_status=$?
14206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207
  (exit $ac_status); }; } &&
14208
         { ac_try='test -s conftest.$ac_objext'
14209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210
  (eval $ac_try) 2>&5
14211
  ac_status=$?
14212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213
  (exit $ac_status); }; }; then
14214
  ac_hi=-1 ac_mid=-1
14215
  while :; do
14216
    cat >conftest.$ac_ext <<_ACEOF
14217
/* confdefs.h.  */
14218
_ACEOF
14219
cat confdefs.h >>conftest.$ac_ext
14220
cat >>conftest.$ac_ext <<_ACEOF
14221
/* end confdefs.h.  */
14222
$ac_includes_default
14223
int
14224
main ()
14225
{
14226
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14227
test_array [0] = 0
14228
 
14229
  ;
14230
  return 0;
14231
}
14232
_ACEOF
14233
rm -f conftest.$ac_objext
14234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14235
  (eval $ac_compile) 2>conftest.er1
14236
  ac_status=$?
14237
  grep -v '^ *+' conftest.er1 >conftest.err
14238
  rm -f conftest.er1
14239
  cat conftest.err >&5
14240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241
  (exit $ac_status); } &&
14242
         { ac_try='test -z "$ac_c_werror_flag"
14243
                         || test ! -s conftest.err'
14244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245
  (eval $ac_try) 2>&5
14246
  ac_status=$?
14247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248
  (exit $ac_status); }; } &&
14249
         { ac_try='test -s conftest.$ac_objext'
14250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251
  (eval $ac_try) 2>&5
14252
  ac_status=$?
14253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254
  (exit $ac_status); }; }; then
14255
  ac_lo=$ac_mid; break
14256
else
14257
  echo "$as_me: failed program was:" >&5
14258
sed 's/^/| /' conftest.$ac_ext >&5
14259
 
14260
ac_hi=`expr '(' $ac_mid ')' - 1`
14261
                       if test $ac_mid -le $ac_hi; then
14262
                         ac_lo= ac_hi=
14263
                         break
14264
                       fi
14265
                       ac_mid=`expr 2 '*' $ac_mid`
14266
fi
14267
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14268
  done
14269
else
14270
  echo "$as_me: failed program was:" >&5
14271
sed 's/^/| /' conftest.$ac_ext >&5
14272
 
14273
ac_lo= ac_hi=
14274
fi
14275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14276
fi
14277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14278
# Binary search between lo and hi bounds.
14279
while test "x$ac_lo" != "x$ac_hi"; do
14280
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14281
  cat >conftest.$ac_ext <<_ACEOF
14282
/* confdefs.h.  */
14283
_ACEOF
14284
cat confdefs.h >>conftest.$ac_ext
14285
cat >>conftest.$ac_ext <<_ACEOF
14286
/* end confdefs.h.  */
14287
$ac_includes_default
14288
int
14289
main ()
14290
{
14291
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14292
test_array [0] = 0
14293
 
14294
  ;
14295
  return 0;
14296
}
14297
_ACEOF
14298
rm -f conftest.$ac_objext
14299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300
  (eval $ac_compile) 2>conftest.er1
14301
  ac_status=$?
14302
  grep -v '^ *+' conftest.er1 >conftest.err
14303
  rm -f conftest.er1
14304
  cat conftest.err >&5
14305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306
  (exit $ac_status); } &&
14307
         { ac_try='test -z "$ac_c_werror_flag"
14308
                         || test ! -s conftest.err'
14309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310
  (eval $ac_try) 2>&5
14311
  ac_status=$?
14312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313
  (exit $ac_status); }; } &&
14314
         { ac_try='test -s conftest.$ac_objext'
14315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316
  (eval $ac_try) 2>&5
14317
  ac_status=$?
14318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319
  (exit $ac_status); }; }; then
14320
  ac_hi=$ac_mid
14321
else
14322
  echo "$as_me: failed program was:" >&5
14323
sed 's/^/| /' conftest.$ac_ext >&5
14324
 
14325
ac_lo=`expr '(' $ac_mid ')' + 1`
14326
fi
14327
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14328
done
14329
case $ac_lo in
14330
?*) ac_cv_sizeof_long=$ac_lo;;
14331
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14332
See \`config.log' for more details." >&5
14333
echo "$as_me: error: cannot compute sizeof (long), 77
14334
See \`config.log' for more details." >&2;}
14335
   { (exit 1); exit 1; }; } ;;
14336
esac
14337
else
14338
  if test "$cross_compiling" = yes; then
14339
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14340
See \`config.log' for more details." >&5
14341
echo "$as_me: error: cannot run test program while cross compiling
14342
See \`config.log' for more details." >&2;}
14343
   { (exit 1); exit 1; }; }
14344
else
14345
  cat >conftest.$ac_ext <<_ACEOF
14346
/* confdefs.h.  */
14347
_ACEOF
14348
cat confdefs.h >>conftest.$ac_ext
14349
cat >>conftest.$ac_ext <<_ACEOF
14350
/* end confdefs.h.  */
14351
$ac_includes_default
14352
long longval () { return (long) (sizeof (long)); }
14353
unsigned long ulongval () { return (long) (sizeof (long)); }
14354
#include 
14355
#include 
14356
int
14357
main ()
14358
{
14359
 
14360
  FILE *f = fopen ("conftest.val", "w");
14361
  if (! f)
14362
    exit (1);
14363
  if (((long) (sizeof (long))) < 0)
14364
    {
14365
      long i = longval ();
14366
      if (i != ((long) (sizeof (long))))
14367
        exit (1);
14368
      fprintf (f, "%ld\n", i);
14369
    }
14370
  else
14371
    {
14372
      unsigned long i = ulongval ();
14373
      if (i != ((long) (sizeof (long))))
14374
        exit (1);
14375
      fprintf (f, "%lu\n", i);
14376
    }
14377
  exit (ferror (f) || fclose (f) != 0);
14378
 
14379
  ;
14380
  return 0;
14381
}
14382
_ACEOF
14383
rm -f conftest$ac_exeext
14384
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14385
  (eval $ac_link) 2>&5
14386
  ac_status=$?
14387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390
  (eval $ac_try) 2>&5
14391
  ac_status=$?
14392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393
  (exit $ac_status); }; }; then
14394
  ac_cv_sizeof_long=`cat conftest.val`
14395
else
14396
  echo "$as_me: program exited with status $ac_status" >&5
14397
echo "$as_me: failed program was:" >&5
14398
sed 's/^/| /' conftest.$ac_ext >&5
14399
 
14400
( exit $ac_status )
14401
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14402
See \`config.log' for more details." >&5
14403
echo "$as_me: error: cannot compute sizeof (long), 77
14404
See \`config.log' for more details." >&2;}
14405
   { (exit 1); exit 1; }; }
14406
fi
14407
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14408
fi
14409
fi
14410
rm -f conftest.val
14411
else
14412
  ac_cv_sizeof_long=0
14413
fi
14414
fi
14415
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14416
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14417
cat >>confdefs.h <<_ACEOF
14418
#define SIZEOF_LONG $ac_cv_sizeof_long
14419
_ACEOF
14420
 
14421
 ;;
14422
esac
14423
 
14424
if test $acx_cv_header_stdint = stddef.h; then
14425
  # Lacking a good header?  Test size of everything and deduce all types.
14426
  echo "$as_me:$LINENO: checking for int" >&5
14427
echo $ECHO_N "checking for int... $ECHO_C" >&6
14428
if test "${ac_cv_type_int+set}" = set; then
14429
  echo $ECHO_N "(cached) $ECHO_C" >&6
14430
else
14431
  cat >conftest.$ac_ext <<_ACEOF
14432
/* confdefs.h.  */
14433
_ACEOF
14434
cat confdefs.h >>conftest.$ac_ext
14435
cat >>conftest.$ac_ext <<_ACEOF
14436
/* end confdefs.h.  */
14437
$ac_includes_default
14438
int
14439
main ()
14440
{
14441
if ((int *) 0)
14442
  return 0;
14443
if (sizeof (int))
14444
  return 0;
14445
  ;
14446
  return 0;
14447
}
14448
_ACEOF
14449
rm -f conftest.$ac_objext
14450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451
  (eval $ac_compile) 2>conftest.er1
14452
  ac_status=$?
14453
  grep -v '^ *+' conftest.er1 >conftest.err
14454
  rm -f conftest.er1
14455
  cat conftest.err >&5
14456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457
  (exit $ac_status); } &&
14458
         { ac_try='test -z "$ac_c_werror_flag"
14459
                         || test ! -s conftest.err'
14460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461
  (eval $ac_try) 2>&5
14462
  ac_status=$?
14463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464
  (exit $ac_status); }; } &&
14465
         { ac_try='test -s conftest.$ac_objext'
14466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467
  (eval $ac_try) 2>&5
14468
  ac_status=$?
14469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470
  (exit $ac_status); }; }; then
14471
  ac_cv_type_int=yes
14472
else
14473
  echo "$as_me: failed program was:" >&5
14474
sed 's/^/| /' conftest.$ac_ext >&5
14475
 
14476
ac_cv_type_int=no
14477
fi
14478
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479
fi
14480
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14481
echo "${ECHO_T}$ac_cv_type_int" >&6
14482
 
14483
echo "$as_me:$LINENO: checking size of int" >&5
14484
echo $ECHO_N "checking size of int... $ECHO_C" >&6
14485
if test "${ac_cv_sizeof_int+set}" = set; then
14486
  echo $ECHO_N "(cached) $ECHO_C" >&6
14487
else
14488
  if test "$ac_cv_type_int" = yes; then
14489
  # The cast to unsigned long works around a bug in the HP C Compiler
14490
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14491
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14492
  # This bug is HP SR number 8606223364.
14493
  if test "$cross_compiling" = yes; then
14494
  # Depending upon the size, compute the lo and hi bounds.
14495
cat >conftest.$ac_ext <<_ACEOF
14496
/* confdefs.h.  */
14497
_ACEOF
14498
cat confdefs.h >>conftest.$ac_ext
14499
cat >>conftest.$ac_ext <<_ACEOF
14500
/* end confdefs.h.  */
14501
$ac_includes_default
14502
int
14503
main ()
14504
{
14505
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14506
test_array [0] = 0
14507
 
14508
  ;
14509
  return 0;
14510
}
14511
_ACEOF
14512
rm -f conftest.$ac_objext
14513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514
  (eval $ac_compile) 2>conftest.er1
14515
  ac_status=$?
14516
  grep -v '^ *+' conftest.er1 >conftest.err
14517
  rm -f conftest.er1
14518
  cat conftest.err >&5
14519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520
  (exit $ac_status); } &&
14521
         { ac_try='test -z "$ac_c_werror_flag"
14522
                         || test ! -s conftest.err'
14523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524
  (eval $ac_try) 2>&5
14525
  ac_status=$?
14526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527
  (exit $ac_status); }; } &&
14528
         { ac_try='test -s conftest.$ac_objext'
14529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14530
  (eval $ac_try) 2>&5
14531
  ac_status=$?
14532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533
  (exit $ac_status); }; }; then
14534
  ac_lo=0 ac_mid=0
14535
  while :; do
14536
    cat >conftest.$ac_ext <<_ACEOF
14537
/* confdefs.h.  */
14538
_ACEOF
14539
cat confdefs.h >>conftest.$ac_ext
14540
cat >>conftest.$ac_ext <<_ACEOF
14541
/* end confdefs.h.  */
14542
$ac_includes_default
14543
int
14544
main ()
14545
{
14546
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14547
test_array [0] = 0
14548
 
14549
  ;
14550
  return 0;
14551
}
14552
_ACEOF
14553
rm -f conftest.$ac_objext
14554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555
  (eval $ac_compile) 2>conftest.er1
14556
  ac_status=$?
14557
  grep -v '^ *+' conftest.er1 >conftest.err
14558
  rm -f conftest.er1
14559
  cat conftest.err >&5
14560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561
  (exit $ac_status); } &&
14562
         { ac_try='test -z "$ac_c_werror_flag"
14563
                         || test ! -s conftest.err'
14564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565
  (eval $ac_try) 2>&5
14566
  ac_status=$?
14567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568
  (exit $ac_status); }; } &&
14569
         { ac_try='test -s conftest.$ac_objext'
14570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571
  (eval $ac_try) 2>&5
14572
  ac_status=$?
14573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574
  (exit $ac_status); }; }; then
14575
  ac_hi=$ac_mid; break
14576
else
14577
  echo "$as_me: failed program was:" >&5
14578
sed 's/^/| /' conftest.$ac_ext >&5
14579
 
14580
ac_lo=`expr $ac_mid + 1`
14581
                    if test $ac_lo -le $ac_mid; then
14582
                      ac_lo= ac_hi=
14583
                      break
14584
                    fi
14585
                    ac_mid=`expr 2 '*' $ac_mid + 1`
14586
fi
14587
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14588
  done
14589
else
14590
  echo "$as_me: failed program was:" >&5
14591
sed 's/^/| /' conftest.$ac_ext >&5
14592
 
14593
cat >conftest.$ac_ext <<_ACEOF
14594
/* confdefs.h.  */
14595
_ACEOF
14596
cat confdefs.h >>conftest.$ac_ext
14597
cat >>conftest.$ac_ext <<_ACEOF
14598
/* end confdefs.h.  */
14599
$ac_includes_default
14600
int
14601
main ()
14602
{
14603
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14604
test_array [0] = 0
14605
 
14606
  ;
14607
  return 0;
14608
}
14609
_ACEOF
14610
rm -f conftest.$ac_objext
14611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612
  (eval $ac_compile) 2>conftest.er1
14613
  ac_status=$?
14614
  grep -v '^ *+' conftest.er1 >conftest.err
14615
  rm -f conftest.er1
14616
  cat conftest.err >&5
14617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618
  (exit $ac_status); } &&
14619
         { ac_try='test -z "$ac_c_werror_flag"
14620
                         || test ! -s conftest.err'
14621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622
  (eval $ac_try) 2>&5
14623
  ac_status=$?
14624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625
  (exit $ac_status); }; } &&
14626
         { ac_try='test -s conftest.$ac_objext'
14627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628
  (eval $ac_try) 2>&5
14629
  ac_status=$?
14630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631
  (exit $ac_status); }; }; then
14632
  ac_hi=-1 ac_mid=-1
14633
  while :; do
14634
    cat >conftest.$ac_ext <<_ACEOF
14635
/* confdefs.h.  */
14636
_ACEOF
14637
cat confdefs.h >>conftest.$ac_ext
14638
cat >>conftest.$ac_ext <<_ACEOF
14639
/* end confdefs.h.  */
14640
$ac_includes_default
14641
int
14642
main ()
14643
{
14644
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14645
test_array [0] = 0
14646
 
14647
  ;
14648
  return 0;
14649
}
14650
_ACEOF
14651
rm -f conftest.$ac_objext
14652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653
  (eval $ac_compile) 2>conftest.er1
14654
  ac_status=$?
14655
  grep -v '^ *+' conftest.er1 >conftest.err
14656
  rm -f conftest.er1
14657
  cat conftest.err >&5
14658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659
  (exit $ac_status); } &&
14660
         { ac_try='test -z "$ac_c_werror_flag"
14661
                         || test ! -s conftest.err'
14662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663
  (eval $ac_try) 2>&5
14664
  ac_status=$?
14665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666
  (exit $ac_status); }; } &&
14667
         { ac_try='test -s conftest.$ac_objext'
14668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669
  (eval $ac_try) 2>&5
14670
  ac_status=$?
14671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672
  (exit $ac_status); }; }; then
14673
  ac_lo=$ac_mid; break
14674
else
14675
  echo "$as_me: failed program was:" >&5
14676
sed 's/^/| /' conftest.$ac_ext >&5
14677
 
14678
ac_hi=`expr '(' $ac_mid ')' - 1`
14679
                       if test $ac_mid -le $ac_hi; then
14680
                         ac_lo= ac_hi=
14681
                         break
14682
                       fi
14683
                       ac_mid=`expr 2 '*' $ac_mid`
14684
fi
14685
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14686
  done
14687
else
14688
  echo "$as_me: failed program was:" >&5
14689
sed 's/^/| /' conftest.$ac_ext >&5
14690
 
14691
ac_lo= ac_hi=
14692
fi
14693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14694
fi
14695
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696
# Binary search between lo and hi bounds.
14697
while test "x$ac_lo" != "x$ac_hi"; do
14698
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14699
  cat >conftest.$ac_ext <<_ACEOF
14700
/* confdefs.h.  */
14701
_ACEOF
14702
cat confdefs.h >>conftest.$ac_ext
14703
cat >>conftest.$ac_ext <<_ACEOF
14704
/* end confdefs.h.  */
14705
$ac_includes_default
14706
int
14707
main ()
14708
{
14709
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14710
test_array [0] = 0
14711
 
14712
  ;
14713
  return 0;
14714
}
14715
_ACEOF
14716
rm -f conftest.$ac_objext
14717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14718
  (eval $ac_compile) 2>conftest.er1
14719
  ac_status=$?
14720
  grep -v '^ *+' conftest.er1 >conftest.err
14721
  rm -f conftest.er1
14722
  cat conftest.err >&5
14723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724
  (exit $ac_status); } &&
14725
         { ac_try='test -z "$ac_c_werror_flag"
14726
                         || test ! -s conftest.err'
14727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728
  (eval $ac_try) 2>&5
14729
  ac_status=$?
14730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731
  (exit $ac_status); }; } &&
14732
         { ac_try='test -s conftest.$ac_objext'
14733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734
  (eval $ac_try) 2>&5
14735
  ac_status=$?
14736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737
  (exit $ac_status); }; }; then
14738
  ac_hi=$ac_mid
14739
else
14740
  echo "$as_me: failed program was:" >&5
14741
sed 's/^/| /' conftest.$ac_ext >&5
14742
 
14743
ac_lo=`expr '(' $ac_mid ')' + 1`
14744
fi
14745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746
done
14747
case $ac_lo in
14748
?*) ac_cv_sizeof_int=$ac_lo;;
14749
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14750
See \`config.log' for more details." >&5
14751
echo "$as_me: error: cannot compute sizeof (int), 77
14752
See \`config.log' for more details." >&2;}
14753
   { (exit 1); exit 1; }; } ;;
14754
esac
14755
else
14756
  if test "$cross_compiling" = yes; then
14757
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14758
See \`config.log' for more details." >&5
14759
echo "$as_me: error: cannot run test program while cross compiling
14760
See \`config.log' for more details." >&2;}
14761
   { (exit 1); exit 1; }; }
14762
else
14763
  cat >conftest.$ac_ext <<_ACEOF
14764
/* confdefs.h.  */
14765
_ACEOF
14766
cat confdefs.h >>conftest.$ac_ext
14767
cat >>conftest.$ac_ext <<_ACEOF
14768
/* end confdefs.h.  */
14769
$ac_includes_default
14770
long longval () { return (long) (sizeof (int)); }
14771
unsigned long ulongval () { return (long) (sizeof (int)); }
14772
#include 
14773
#include 
14774
int
14775
main ()
14776
{
14777
 
14778
  FILE *f = fopen ("conftest.val", "w");
14779
  if (! f)
14780
    exit (1);
14781
  if (((long) (sizeof (int))) < 0)
14782
    {
14783
      long i = longval ();
14784
      if (i != ((long) (sizeof (int))))
14785
        exit (1);
14786
      fprintf (f, "%ld\n", i);
14787
    }
14788
  else
14789
    {
14790
      unsigned long i = ulongval ();
14791
      if (i != ((long) (sizeof (int))))
14792
        exit (1);
14793
      fprintf (f, "%lu\n", i);
14794
    }
14795
  exit (ferror (f) || fclose (f) != 0);
14796
 
14797
  ;
14798
  return 0;
14799
}
14800
_ACEOF
14801
rm -f conftest$ac_exeext
14802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14803
  (eval $ac_link) 2>&5
14804
  ac_status=$?
14805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808
  (eval $ac_try) 2>&5
14809
  ac_status=$?
14810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811
  (exit $ac_status); }; }; then
14812
  ac_cv_sizeof_int=`cat conftest.val`
14813
else
14814
  echo "$as_me: program exited with status $ac_status" >&5
14815
echo "$as_me: failed program was:" >&5
14816
sed 's/^/| /' conftest.$ac_ext >&5
14817
 
14818
( exit $ac_status )
14819
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14820
See \`config.log' for more details." >&5
14821
echo "$as_me: error: cannot compute sizeof (int), 77
14822
See \`config.log' for more details." >&2;}
14823
   { (exit 1); exit 1; }; }
14824
fi
14825
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14826
fi
14827
fi
14828
rm -f conftest.val
14829
else
14830
  ac_cv_sizeof_int=0
14831
fi
14832
fi
14833
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14834
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14835
cat >>confdefs.h <<_ACEOF
14836
#define SIZEOF_INT $ac_cv_sizeof_int
14837
_ACEOF
14838
 
14839
 
14840
  echo "$as_me:$LINENO: checking for short" >&5
14841
echo $ECHO_N "checking for short... $ECHO_C" >&6
14842
if test "${ac_cv_type_short+set}" = set; then
14843
  echo $ECHO_N "(cached) $ECHO_C" >&6
14844
else
14845
  cat >conftest.$ac_ext <<_ACEOF
14846
/* confdefs.h.  */
14847
_ACEOF
14848
cat confdefs.h >>conftest.$ac_ext
14849
cat >>conftest.$ac_ext <<_ACEOF
14850
/* end confdefs.h.  */
14851
$ac_includes_default
14852
int
14853
main ()
14854
{
14855
if ((short *) 0)
14856
  return 0;
14857
if (sizeof (short))
14858
  return 0;
14859
  ;
14860
  return 0;
14861
}
14862
_ACEOF
14863
rm -f conftest.$ac_objext
14864
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865
  (eval $ac_compile) 2>conftest.er1
14866
  ac_status=$?
14867
  grep -v '^ *+' conftest.er1 >conftest.err
14868
  rm -f conftest.er1
14869
  cat conftest.err >&5
14870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871
  (exit $ac_status); } &&
14872
         { ac_try='test -z "$ac_c_werror_flag"
14873
                         || test ! -s conftest.err'
14874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875
  (eval $ac_try) 2>&5
14876
  ac_status=$?
14877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878
  (exit $ac_status); }; } &&
14879
         { ac_try='test -s conftest.$ac_objext'
14880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881
  (eval $ac_try) 2>&5
14882
  ac_status=$?
14883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884
  (exit $ac_status); }; }; then
14885
  ac_cv_type_short=yes
14886
else
14887
  echo "$as_me: failed program was:" >&5
14888
sed 's/^/| /' conftest.$ac_ext >&5
14889
 
14890
ac_cv_type_short=no
14891
fi
14892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893
fi
14894
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14895
echo "${ECHO_T}$ac_cv_type_short" >&6
14896
 
14897
echo "$as_me:$LINENO: checking size of short" >&5
14898
echo $ECHO_N "checking size of short... $ECHO_C" >&6
14899
if test "${ac_cv_sizeof_short+set}" = set; then
14900
  echo $ECHO_N "(cached) $ECHO_C" >&6
14901
else
14902
  if test "$ac_cv_type_short" = yes; then
14903
  # The cast to unsigned long works around a bug in the HP C Compiler
14904
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906
  # This bug is HP SR number 8606223364.
14907
  if test "$cross_compiling" = yes; then
14908
  # Depending upon the size, compute the lo and hi bounds.
14909
cat >conftest.$ac_ext <<_ACEOF
14910
/* confdefs.h.  */
14911
_ACEOF
14912
cat confdefs.h >>conftest.$ac_ext
14913
cat >>conftest.$ac_ext <<_ACEOF
14914
/* end confdefs.h.  */
14915
$ac_includes_default
14916
int
14917
main ()
14918
{
14919
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14920
test_array [0] = 0
14921
 
14922
  ;
14923
  return 0;
14924
}
14925
_ACEOF
14926
rm -f conftest.$ac_objext
14927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14928
  (eval $ac_compile) 2>conftest.er1
14929
  ac_status=$?
14930
  grep -v '^ *+' conftest.er1 >conftest.err
14931
  rm -f conftest.er1
14932
  cat conftest.err >&5
14933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934
  (exit $ac_status); } &&
14935
         { ac_try='test -z "$ac_c_werror_flag"
14936
                         || test ! -s conftest.err'
14937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938
  (eval $ac_try) 2>&5
14939
  ac_status=$?
14940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941
  (exit $ac_status); }; } &&
14942
         { ac_try='test -s conftest.$ac_objext'
14943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944
  (eval $ac_try) 2>&5
14945
  ac_status=$?
14946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947
  (exit $ac_status); }; }; then
14948
  ac_lo=0 ac_mid=0
14949
  while :; do
14950
    cat >conftest.$ac_ext <<_ACEOF
14951
/* confdefs.h.  */
14952
_ACEOF
14953
cat confdefs.h >>conftest.$ac_ext
14954
cat >>conftest.$ac_ext <<_ACEOF
14955
/* end confdefs.h.  */
14956
$ac_includes_default
14957
int
14958
main ()
14959
{
14960
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14961
test_array [0] = 0
14962
 
14963
  ;
14964
  return 0;
14965
}
14966
_ACEOF
14967
rm -f conftest.$ac_objext
14968
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969
  (eval $ac_compile) 2>conftest.er1
14970
  ac_status=$?
14971
  grep -v '^ *+' conftest.er1 >conftest.err
14972
  rm -f conftest.er1
14973
  cat conftest.err >&5
14974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975
  (exit $ac_status); } &&
14976
         { ac_try='test -z "$ac_c_werror_flag"
14977
                         || test ! -s conftest.err'
14978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979
  (eval $ac_try) 2>&5
14980
  ac_status=$?
14981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982
  (exit $ac_status); }; } &&
14983
         { ac_try='test -s conftest.$ac_objext'
14984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985
  (eval $ac_try) 2>&5
14986
  ac_status=$?
14987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988
  (exit $ac_status); }; }; then
14989
  ac_hi=$ac_mid; break
14990
else
14991
  echo "$as_me: failed program was:" >&5
14992
sed 's/^/| /' conftest.$ac_ext >&5
14993
 
14994
ac_lo=`expr $ac_mid + 1`
14995
                    if test $ac_lo -le $ac_mid; then
14996
                      ac_lo= ac_hi=
14997
                      break
14998
                    fi
14999
                    ac_mid=`expr 2 '*' $ac_mid + 1`
15000
fi
15001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15002
  done
15003
else
15004
  echo "$as_me: failed program was:" >&5
15005
sed 's/^/| /' conftest.$ac_ext >&5
15006
 
15007
cat >conftest.$ac_ext <<_ACEOF
15008
/* confdefs.h.  */
15009
_ACEOF
15010
cat confdefs.h >>conftest.$ac_ext
15011
cat >>conftest.$ac_ext <<_ACEOF
15012
/* end confdefs.h.  */
15013
$ac_includes_default
15014
int
15015
main ()
15016
{
15017
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15018
test_array [0] = 0
15019
 
15020
  ;
15021
  return 0;
15022
}
15023
_ACEOF
15024
rm -f conftest.$ac_objext
15025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026
  (eval $ac_compile) 2>conftest.er1
15027
  ac_status=$?
15028
  grep -v '^ *+' conftest.er1 >conftest.err
15029
  rm -f conftest.er1
15030
  cat conftest.err >&5
15031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032
  (exit $ac_status); } &&
15033
         { ac_try='test -z "$ac_c_werror_flag"
15034
                         || test ! -s conftest.err'
15035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036
  (eval $ac_try) 2>&5
15037
  ac_status=$?
15038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039
  (exit $ac_status); }; } &&
15040
         { ac_try='test -s conftest.$ac_objext'
15041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042
  (eval $ac_try) 2>&5
15043
  ac_status=$?
15044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045
  (exit $ac_status); }; }; then
15046
  ac_hi=-1 ac_mid=-1
15047
  while :; do
15048
    cat >conftest.$ac_ext <<_ACEOF
15049
/* confdefs.h.  */
15050
_ACEOF
15051
cat confdefs.h >>conftest.$ac_ext
15052
cat >>conftest.$ac_ext <<_ACEOF
15053
/* end confdefs.h.  */
15054
$ac_includes_default
15055
int
15056
main ()
15057
{
15058
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15059
test_array [0] = 0
15060
 
15061
  ;
15062
  return 0;
15063
}
15064
_ACEOF
15065
rm -f conftest.$ac_objext
15066
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067
  (eval $ac_compile) 2>conftest.er1
15068
  ac_status=$?
15069
  grep -v '^ *+' conftest.er1 >conftest.err
15070
  rm -f conftest.er1
15071
  cat conftest.err >&5
15072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073
  (exit $ac_status); } &&
15074
         { ac_try='test -z "$ac_c_werror_flag"
15075
                         || test ! -s conftest.err'
15076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077
  (eval $ac_try) 2>&5
15078
  ac_status=$?
15079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080
  (exit $ac_status); }; } &&
15081
         { ac_try='test -s conftest.$ac_objext'
15082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083
  (eval $ac_try) 2>&5
15084
  ac_status=$?
15085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086
  (exit $ac_status); }; }; then
15087
  ac_lo=$ac_mid; break
15088
else
15089
  echo "$as_me: failed program was:" >&5
15090
sed 's/^/| /' conftest.$ac_ext >&5
15091
 
15092
ac_hi=`expr '(' $ac_mid ')' - 1`
15093
                       if test $ac_mid -le $ac_hi; then
15094
                         ac_lo= ac_hi=
15095
                         break
15096
                       fi
15097
                       ac_mid=`expr 2 '*' $ac_mid`
15098
fi
15099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15100
  done
15101
else
15102
  echo "$as_me: failed program was:" >&5
15103
sed 's/^/| /' conftest.$ac_ext >&5
15104
 
15105
ac_lo= ac_hi=
15106
fi
15107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108
fi
15109
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15110
# Binary search between lo and hi bounds.
15111
while test "x$ac_lo" != "x$ac_hi"; do
15112
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15113
  cat >conftest.$ac_ext <<_ACEOF
15114
/* confdefs.h.  */
15115
_ACEOF
15116
cat confdefs.h >>conftest.$ac_ext
15117
cat >>conftest.$ac_ext <<_ACEOF
15118
/* end confdefs.h.  */
15119
$ac_includes_default
15120
int
15121
main ()
15122
{
15123
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15124
test_array [0] = 0
15125
 
15126
  ;
15127
  return 0;
15128
}
15129
_ACEOF
15130
rm -f conftest.$ac_objext
15131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15132
  (eval $ac_compile) 2>conftest.er1
15133
  ac_status=$?
15134
  grep -v '^ *+' conftest.er1 >conftest.err
15135
  rm -f conftest.er1
15136
  cat conftest.err >&5
15137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138
  (exit $ac_status); } &&
15139
         { ac_try='test -z "$ac_c_werror_flag"
15140
                         || test ! -s conftest.err'
15141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142
  (eval $ac_try) 2>&5
15143
  ac_status=$?
15144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145
  (exit $ac_status); }; } &&
15146
         { ac_try='test -s conftest.$ac_objext'
15147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148
  (eval $ac_try) 2>&5
15149
  ac_status=$?
15150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151
  (exit $ac_status); }; }; then
15152
  ac_hi=$ac_mid
15153
else
15154
  echo "$as_me: failed program was:" >&5
15155
sed 's/^/| /' conftest.$ac_ext >&5
15156
 
15157
ac_lo=`expr '(' $ac_mid ')' + 1`
15158
fi
15159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15160
done
15161
case $ac_lo in
15162
?*) ac_cv_sizeof_short=$ac_lo;;
15163
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15164
See \`config.log' for more details." >&5
15165
echo "$as_me: error: cannot compute sizeof (short), 77
15166
See \`config.log' for more details." >&2;}
15167
   { (exit 1); exit 1; }; } ;;
15168
esac
15169
else
15170
  if test "$cross_compiling" = yes; then
15171
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15172
See \`config.log' for more details." >&5
15173
echo "$as_me: error: cannot run test program while cross compiling
15174
See \`config.log' for more details." >&2;}
15175
   { (exit 1); exit 1; }; }
15176
else
15177
  cat >conftest.$ac_ext <<_ACEOF
15178
/* confdefs.h.  */
15179
_ACEOF
15180
cat confdefs.h >>conftest.$ac_ext
15181
cat >>conftest.$ac_ext <<_ACEOF
15182
/* end confdefs.h.  */
15183
$ac_includes_default
15184
long longval () { return (long) (sizeof (short)); }
15185
unsigned long ulongval () { return (long) (sizeof (short)); }
15186
#include 
15187
#include 
15188
int
15189
main ()
15190
{
15191
 
15192
  FILE *f = fopen ("conftest.val", "w");
15193
  if (! f)
15194
    exit (1);
15195
  if (((long) (sizeof (short))) < 0)
15196
    {
15197
      long i = longval ();
15198
      if (i != ((long) (sizeof (short))))
15199
        exit (1);
15200
      fprintf (f, "%ld\n", i);
15201
    }
15202
  else
15203
    {
15204
      unsigned long i = ulongval ();
15205
      if (i != ((long) (sizeof (short))))
15206
        exit (1);
15207
      fprintf (f, "%lu\n", i);
15208
    }
15209
  exit (ferror (f) || fclose (f) != 0);
15210
 
15211
  ;
15212
  return 0;
15213
}
15214
_ACEOF
15215
rm -f conftest$ac_exeext
15216
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217
  (eval $ac_link) 2>&5
15218
  ac_status=$?
15219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222
  (eval $ac_try) 2>&5
15223
  ac_status=$?
15224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225
  (exit $ac_status); }; }; then
15226
  ac_cv_sizeof_short=`cat conftest.val`
15227
else
15228
  echo "$as_me: program exited with status $ac_status" >&5
15229
echo "$as_me: failed program was:" >&5
15230
sed 's/^/| /' conftest.$ac_ext >&5
15231
 
15232
( exit $ac_status )
15233
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15234
See \`config.log' for more details." >&5
15235
echo "$as_me: error: cannot compute sizeof (short), 77
15236
See \`config.log' for more details." >&2;}
15237
   { (exit 1); exit 1; }; }
15238
fi
15239
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15240
fi
15241
fi
15242
rm -f conftest.val
15243
else
15244
  ac_cv_sizeof_short=0
15245
fi
15246
fi
15247
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15248
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15249
cat >>confdefs.h <<_ACEOF
15250
#define SIZEOF_SHORT $ac_cv_sizeof_short
15251
_ACEOF
15252
 
15253
 
15254
  echo "$as_me:$LINENO: checking for char" >&5
15255
echo $ECHO_N "checking for char... $ECHO_C" >&6
15256
if test "${ac_cv_type_char+set}" = set; then
15257
  echo $ECHO_N "(cached) $ECHO_C" >&6
15258
else
15259
  cat >conftest.$ac_ext <<_ACEOF
15260
/* confdefs.h.  */
15261
_ACEOF
15262
cat confdefs.h >>conftest.$ac_ext
15263
cat >>conftest.$ac_ext <<_ACEOF
15264
/* end confdefs.h.  */
15265
$ac_includes_default
15266
int
15267
main ()
15268
{
15269
if ((char *) 0)
15270
  return 0;
15271
if (sizeof (char))
15272
  return 0;
15273
  ;
15274
  return 0;
15275
}
15276
_ACEOF
15277
rm -f conftest.$ac_objext
15278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279
  (eval $ac_compile) 2>conftest.er1
15280
  ac_status=$?
15281
  grep -v '^ *+' conftest.er1 >conftest.err
15282
  rm -f conftest.er1
15283
  cat conftest.err >&5
15284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285
  (exit $ac_status); } &&
15286
         { ac_try='test -z "$ac_c_werror_flag"
15287
                         || test ! -s conftest.err'
15288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289
  (eval $ac_try) 2>&5
15290
  ac_status=$?
15291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292
  (exit $ac_status); }; } &&
15293
         { ac_try='test -s conftest.$ac_objext'
15294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295
  (eval $ac_try) 2>&5
15296
  ac_status=$?
15297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298
  (exit $ac_status); }; }; then
15299
  ac_cv_type_char=yes
15300
else
15301
  echo "$as_me: failed program was:" >&5
15302
sed 's/^/| /' conftest.$ac_ext >&5
15303
 
15304
ac_cv_type_char=no
15305
fi
15306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15307
fi
15308
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15309
echo "${ECHO_T}$ac_cv_type_char" >&6
15310
 
15311
echo "$as_me:$LINENO: checking size of char" >&5
15312
echo $ECHO_N "checking size of char... $ECHO_C" >&6
15313
if test "${ac_cv_sizeof_char+set}" = set; then
15314
  echo $ECHO_N "(cached) $ECHO_C" >&6
15315
else
15316
  if test "$ac_cv_type_char" = yes; then
15317
  # The cast to unsigned long works around a bug in the HP C Compiler
15318
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15319
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15320
  # This bug is HP SR number 8606223364.
15321
  if test "$cross_compiling" = yes; then
15322
  # Depending upon the size, compute the lo and hi bounds.
15323
cat >conftest.$ac_ext <<_ACEOF
15324
/* confdefs.h.  */
15325
_ACEOF
15326
cat confdefs.h >>conftest.$ac_ext
15327
cat >>conftest.$ac_ext <<_ACEOF
15328
/* end confdefs.h.  */
15329
$ac_includes_default
15330
int
15331
main ()
15332
{
15333
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15334
test_array [0] = 0
15335
 
15336
  ;
15337
  return 0;
15338
}
15339
_ACEOF
15340
rm -f conftest.$ac_objext
15341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342
  (eval $ac_compile) 2>conftest.er1
15343
  ac_status=$?
15344
  grep -v '^ *+' conftest.er1 >conftest.err
15345
  rm -f conftest.er1
15346
  cat conftest.err >&5
15347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348
  (exit $ac_status); } &&
15349
         { ac_try='test -z "$ac_c_werror_flag"
15350
                         || test ! -s conftest.err'
15351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352
  (eval $ac_try) 2>&5
15353
  ac_status=$?
15354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355
  (exit $ac_status); }; } &&
15356
         { ac_try='test -s conftest.$ac_objext'
15357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358
  (eval $ac_try) 2>&5
15359
  ac_status=$?
15360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361
  (exit $ac_status); }; }; then
15362
  ac_lo=0 ac_mid=0
15363
  while :; do
15364
    cat >conftest.$ac_ext <<_ACEOF
15365
/* confdefs.h.  */
15366
_ACEOF
15367
cat confdefs.h >>conftest.$ac_ext
15368
cat >>conftest.$ac_ext <<_ACEOF
15369
/* end confdefs.h.  */
15370
$ac_includes_default
15371
int
15372
main ()
15373
{
15374
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15375
test_array [0] = 0
15376
 
15377
  ;
15378
  return 0;
15379
}
15380
_ACEOF
15381
rm -f conftest.$ac_objext
15382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383
  (eval $ac_compile) 2>conftest.er1
15384
  ac_status=$?
15385
  grep -v '^ *+' conftest.er1 >conftest.err
15386
  rm -f conftest.er1
15387
  cat conftest.err >&5
15388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389
  (exit $ac_status); } &&
15390
         { ac_try='test -z "$ac_c_werror_flag"
15391
                         || test ! -s conftest.err'
15392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393
  (eval $ac_try) 2>&5
15394
  ac_status=$?
15395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396
  (exit $ac_status); }; } &&
15397
         { ac_try='test -s conftest.$ac_objext'
15398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399
  (eval $ac_try) 2>&5
15400
  ac_status=$?
15401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402
  (exit $ac_status); }; }; then
15403
  ac_hi=$ac_mid; break
15404
else
15405
  echo "$as_me: failed program was:" >&5
15406
sed 's/^/| /' conftest.$ac_ext >&5
15407
 
15408
ac_lo=`expr $ac_mid + 1`
15409
                    if test $ac_lo -le $ac_mid; then
15410
                      ac_lo= ac_hi=
15411
                      break
15412
                    fi
15413
                    ac_mid=`expr 2 '*' $ac_mid + 1`
15414
fi
15415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15416
  done
15417
else
15418
  echo "$as_me: failed program was:" >&5
15419
sed 's/^/| /' conftest.$ac_ext >&5
15420
 
15421
cat >conftest.$ac_ext <<_ACEOF
15422
/* confdefs.h.  */
15423
_ACEOF
15424
cat confdefs.h >>conftest.$ac_ext
15425
cat >>conftest.$ac_ext <<_ACEOF
15426
/* end confdefs.h.  */
15427
$ac_includes_default
15428
int
15429
main ()
15430
{
15431
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15432
test_array [0] = 0
15433
 
15434
  ;
15435
  return 0;
15436
}
15437
_ACEOF
15438
rm -f conftest.$ac_objext
15439
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440
  (eval $ac_compile) 2>conftest.er1
15441
  ac_status=$?
15442
  grep -v '^ *+' conftest.er1 >conftest.err
15443
  rm -f conftest.er1
15444
  cat conftest.err >&5
15445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446
  (exit $ac_status); } &&
15447
         { ac_try='test -z "$ac_c_werror_flag"
15448
                         || test ! -s conftest.err'
15449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450
  (eval $ac_try) 2>&5
15451
  ac_status=$?
15452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453
  (exit $ac_status); }; } &&
15454
         { ac_try='test -s conftest.$ac_objext'
15455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456
  (eval $ac_try) 2>&5
15457
  ac_status=$?
15458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459
  (exit $ac_status); }; }; then
15460
  ac_hi=-1 ac_mid=-1
15461
  while :; do
15462
    cat >conftest.$ac_ext <<_ACEOF
15463
/* confdefs.h.  */
15464
_ACEOF
15465
cat confdefs.h >>conftest.$ac_ext
15466
cat >>conftest.$ac_ext <<_ACEOF
15467
/* end confdefs.h.  */
15468
$ac_includes_default
15469
int
15470
main ()
15471
{
15472
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15473
test_array [0] = 0
15474
 
15475
  ;
15476
  return 0;
15477
}
15478
_ACEOF
15479
rm -f conftest.$ac_objext
15480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481
  (eval $ac_compile) 2>conftest.er1
15482
  ac_status=$?
15483
  grep -v '^ *+' conftest.er1 >conftest.err
15484
  rm -f conftest.er1
15485
  cat conftest.err >&5
15486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487
  (exit $ac_status); } &&
15488
         { ac_try='test -z "$ac_c_werror_flag"
15489
                         || test ! -s conftest.err'
15490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491
  (eval $ac_try) 2>&5
15492
  ac_status=$?
15493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494
  (exit $ac_status); }; } &&
15495
         { ac_try='test -s conftest.$ac_objext'
15496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497
  (eval $ac_try) 2>&5
15498
  ac_status=$?
15499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500
  (exit $ac_status); }; }; then
15501
  ac_lo=$ac_mid; break
15502
else
15503
  echo "$as_me: failed program was:" >&5
15504
sed 's/^/| /' conftest.$ac_ext >&5
15505
 
15506
ac_hi=`expr '(' $ac_mid ')' - 1`
15507
                       if test $ac_mid -le $ac_hi; then
15508
                         ac_lo= ac_hi=
15509
                         break
15510
                       fi
15511
                       ac_mid=`expr 2 '*' $ac_mid`
15512
fi
15513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514
  done
15515
else
15516
  echo "$as_me: failed program was:" >&5
15517
sed 's/^/| /' conftest.$ac_ext >&5
15518
 
15519
ac_lo= ac_hi=
15520
fi
15521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15522
fi
15523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15524
# Binary search between lo and hi bounds.
15525
while test "x$ac_lo" != "x$ac_hi"; do
15526
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15527
  cat >conftest.$ac_ext <<_ACEOF
15528
/* confdefs.h.  */
15529
_ACEOF
15530
cat confdefs.h >>conftest.$ac_ext
15531
cat >>conftest.$ac_ext <<_ACEOF
15532
/* end confdefs.h.  */
15533
$ac_includes_default
15534
int
15535
main ()
15536
{
15537
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15538
test_array [0] = 0
15539
 
15540
  ;
15541
  return 0;
15542
}
15543
_ACEOF
15544
rm -f conftest.$ac_objext
15545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546
  (eval $ac_compile) 2>conftest.er1
15547
  ac_status=$?
15548
  grep -v '^ *+' conftest.er1 >conftest.err
15549
  rm -f conftest.er1
15550
  cat conftest.err >&5
15551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552
  (exit $ac_status); } &&
15553
         { ac_try='test -z "$ac_c_werror_flag"
15554
                         || test ! -s conftest.err'
15555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556
  (eval $ac_try) 2>&5
15557
  ac_status=$?
15558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559
  (exit $ac_status); }; } &&
15560
         { ac_try='test -s conftest.$ac_objext'
15561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562
  (eval $ac_try) 2>&5
15563
  ac_status=$?
15564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565
  (exit $ac_status); }; }; then
15566
  ac_hi=$ac_mid
15567
else
15568
  echo "$as_me: failed program was:" >&5
15569
sed 's/^/| /' conftest.$ac_ext >&5
15570
 
15571
ac_lo=`expr '(' $ac_mid ')' + 1`
15572
fi
15573
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574
done
15575
case $ac_lo in
15576
?*) ac_cv_sizeof_char=$ac_lo;;
15577
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15578
See \`config.log' for more details." >&5
15579
echo "$as_me: error: cannot compute sizeof (char), 77
15580
See \`config.log' for more details." >&2;}
15581
   { (exit 1); exit 1; }; } ;;
15582
esac
15583
else
15584
  if test "$cross_compiling" = yes; then
15585
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15586
See \`config.log' for more details." >&5
15587
echo "$as_me: error: cannot run test program while cross compiling
15588
See \`config.log' for more details." >&2;}
15589
   { (exit 1); exit 1; }; }
15590
else
15591
  cat >conftest.$ac_ext <<_ACEOF
15592
/* confdefs.h.  */
15593
_ACEOF
15594
cat confdefs.h >>conftest.$ac_ext
15595
cat >>conftest.$ac_ext <<_ACEOF
15596
/* end confdefs.h.  */
15597
$ac_includes_default
15598
long longval () { return (long) (sizeof (char)); }
15599
unsigned long ulongval () { return (long) (sizeof (char)); }
15600
#include 
15601
#include 
15602
int
15603
main ()
15604
{
15605
 
15606
  FILE *f = fopen ("conftest.val", "w");
15607
  if (! f)
15608
    exit (1);
15609
  if (((long) (sizeof (char))) < 0)
15610
    {
15611
      long i = longval ();
15612
      if (i != ((long) (sizeof (char))))
15613
        exit (1);
15614
      fprintf (f, "%ld\n", i);
15615
    }
15616
  else
15617
    {
15618
      unsigned long i = ulongval ();
15619
      if (i != ((long) (sizeof (char))))
15620
        exit (1);
15621
      fprintf (f, "%lu\n", i);
15622
    }
15623
  exit (ferror (f) || fclose (f) != 0);
15624
 
15625
  ;
15626
  return 0;
15627
}
15628
_ACEOF
15629
rm -f conftest$ac_exeext
15630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631
  (eval $ac_link) 2>&5
15632
  ac_status=$?
15633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636
  (eval $ac_try) 2>&5
15637
  ac_status=$?
15638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639
  (exit $ac_status); }; }; then
15640
  ac_cv_sizeof_char=`cat conftest.val`
15641
else
15642
  echo "$as_me: program exited with status $ac_status" >&5
15643
echo "$as_me: failed program was:" >&5
15644
sed 's/^/| /' conftest.$ac_ext >&5
15645
 
15646
( exit $ac_status )
15647
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15648
See \`config.log' for more details." >&5
15649
echo "$as_me: error: cannot compute sizeof (char), 77
15650
See \`config.log' for more details." >&2;}
15651
   { (exit 1); exit 1; }; }
15652
fi
15653
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15654
fi
15655
fi
15656
rm -f conftest.val
15657
else
15658
  ac_cv_sizeof_char=0
15659
fi
15660
fi
15661
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15662
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15663
cat >>confdefs.h <<_ACEOF
15664
#define SIZEOF_CHAR $ac_cv_sizeof_char
15665
_ACEOF
15666
 
15667
 
15668
 
15669
  echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15670
echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15671
  case "$ac_cv_sizeof_char" in
15672
    1) acx_cv_type_int8_t=char ;;
15673
    *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15674
echo "$as_me: error: no 8-bit type" >&2;}
15675
   { (exit please report a bug); exit please report a bug; }; }
15676
  esac
15677
  echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15678
echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15679
 
15680
  echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15681
echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15682
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15683
    2:*) acx_cv_type_int16_t=int ;;
15684
    *:2) acx_cv_type_int16_t=short ;;
15685
    *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15686
echo "$as_me: error: no 16-bit type" >&2;}
15687
   { (exit please report a bug); exit please report a bug; }; }
15688
  esac
15689
  echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15690
echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15691
 
15692
  echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15693
echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15694
  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15695
    4:*) acx_cv_type_int32_t=int ;;
15696
    *:4) acx_cv_type_int32_t=long ;;
15697
    *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15698
echo "$as_me: error: no 32-bit type" >&2;}
15699
   { (exit please report a bug); exit please report a bug; }; }
15700
  esac
15701
  echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15702
echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15703
fi
15704
 
15705
# These tests are here to make the output prettier
15706
 
15707
if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15708
  case "$ac_cv_sizeof_long" in
15709
    8) acx_cv_type_int64_t=long ;;
15710
  esac
15711
  echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15712
echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15713
  echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15714
echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15715
fi
15716
 
15717
# Now we can use the above types
15718
 
15719
if test "$ac_cv_type_uintptr_t" != yes; then
15720
  echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15721
echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15722
  case $ac_cv_sizeof_void_p in
15723
    2) acx_cv_type_intptr_t=int16_t ;;
15724
    4) acx_cv_type_intptr_t=int32_t ;;
15725
    8) acx_cv_type_intptr_t=int64_t ;;
15726
    *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15727
echo "$as_me: error: no equivalent for intptr_t" >&2;}
15728
   { (exit please report a bug); exit please report a bug; }; }
15729
  esac
15730
  echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15731
echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15732
fi
15733
 
15734
# ----------------- done all checks, emit header -------------
15735
          ac_config_commands="$ac_config_commands bfd_stdint.h"
15736
 
15737
 
15738
 
15739
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15740
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15741
if test "${ac_cv_header_time+set}" = set; then
15742
  echo $ECHO_N "(cached) $ECHO_C" >&6
15743
else
15744
  cat >conftest.$ac_ext <<_ACEOF
15745
/* confdefs.h.  */
15746
_ACEOF
15747
cat confdefs.h >>conftest.$ac_ext
15748
cat >>conftest.$ac_ext <<_ACEOF
15749
/* end confdefs.h.  */
15750
#include 
15751
#include 
15752
#include 
15753
 
15754
int
15755
main ()
15756
{
15757
if ((struct tm *) 0)
15758
return 0;
15759
  ;
15760
  return 0;
15761
}
15762
_ACEOF
15763
rm -f conftest.$ac_objext
15764
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765
  (eval $ac_compile) 2>conftest.er1
15766
  ac_status=$?
15767
  grep -v '^ *+' conftest.er1 >conftest.err
15768
  rm -f conftest.er1
15769
  cat conftest.err >&5
15770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771
  (exit $ac_status); } &&
15772
         { ac_try='test -z "$ac_c_werror_flag"
15773
                         || test ! -s conftest.err'
15774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775
  (eval $ac_try) 2>&5
15776
  ac_status=$?
15777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778
  (exit $ac_status); }; } &&
15779
         { ac_try='test -s conftest.$ac_objext'
15780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781
  (eval $ac_try) 2>&5
15782
  ac_status=$?
15783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784
  (exit $ac_status); }; }; then
15785
  ac_cv_header_time=yes
15786
else
15787
  echo "$as_me: failed program was:" >&5
15788
sed 's/^/| /' conftest.$ac_ext >&5
15789
 
15790
ac_cv_header_time=no
15791
fi
15792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15793
fi
15794
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15795
echo "${ECHO_T}$ac_cv_header_time" >&6
15796
if test $ac_cv_header_time = yes; then
15797
 
15798
cat >>confdefs.h <<\_ACEOF
15799
#define TIME_WITH_SYS_TIME 1
15800
_ACEOF
15801
 
15802
fi
15803
 
15804
 
15805
 
15806
 
15807
 
15808
 
15809
ac_header_dirent=no
15810
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15811
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15812
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15813
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15814
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15815
  echo $ECHO_N "(cached) $ECHO_C" >&6
15816
else
15817
  cat >conftest.$ac_ext <<_ACEOF
15818
/* confdefs.h.  */
15819
_ACEOF
15820
cat confdefs.h >>conftest.$ac_ext
15821
cat >>conftest.$ac_ext <<_ACEOF
15822
/* end confdefs.h.  */
15823
#include 
15824
#include <$ac_hdr>
15825
 
15826
int
15827
main ()
15828
{
15829
if ((DIR *) 0)
15830
return 0;
15831
  ;
15832
  return 0;
15833
}
15834
_ACEOF
15835
rm -f conftest.$ac_objext
15836
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837
  (eval $ac_compile) 2>conftest.er1
15838
  ac_status=$?
15839
  grep -v '^ *+' conftest.er1 >conftest.err
15840
  rm -f conftest.er1
15841
  cat conftest.err >&5
15842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843
  (exit $ac_status); } &&
15844
         { ac_try='test -z "$ac_c_werror_flag"
15845
                         || test ! -s conftest.err'
15846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847
  (eval $ac_try) 2>&5
15848
  ac_status=$?
15849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850
  (exit $ac_status); }; } &&
15851
         { ac_try='test -s conftest.$ac_objext'
15852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853
  (eval $ac_try) 2>&5
15854
  ac_status=$?
15855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856
  (exit $ac_status); }; }; then
15857
  eval "$as_ac_Header=yes"
15858
else
15859
  echo "$as_me: failed program was:" >&5
15860
sed 's/^/| /' conftest.$ac_ext >&5
15861
 
15862
eval "$as_ac_Header=no"
15863
fi
15864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865
fi
15866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15868
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15869
  cat >>confdefs.h <<_ACEOF
15870
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15871
_ACEOF
15872
 
15873
ac_header_dirent=$ac_hdr; break
15874
fi
15875
 
15876
done
15877
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15878
if test $ac_header_dirent = dirent.h; then
15879
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
15880
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15881
if test "${ac_cv_search_opendir+set}" = set; then
15882
  echo $ECHO_N "(cached) $ECHO_C" >&6
15883
else
15884
  ac_func_search_save_LIBS=$LIBS
15885
ac_cv_search_opendir=no
15886
cat >conftest.$ac_ext <<_ACEOF
15887
/* confdefs.h.  */
15888
_ACEOF
15889
cat confdefs.h >>conftest.$ac_ext
15890
cat >>conftest.$ac_ext <<_ACEOF
15891
/* end confdefs.h.  */
15892
 
15893
/* Override any gcc2 internal prototype to avoid an error.  */
15894
#ifdef __cplusplus
15895
extern "C"
15896
#endif
15897
/* We use char because int might match the return type of a gcc2
15898
   builtin and then its argument prototype would still apply.  */
15899
char opendir ();
15900
int
15901
main ()
15902
{
15903
opendir ();
15904
  ;
15905
  return 0;
15906
}
15907
_ACEOF
15908
rm -f conftest.$ac_objext conftest$ac_exeext
15909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910
  (eval $ac_link) 2>conftest.er1
15911
  ac_status=$?
15912
  grep -v '^ *+' conftest.er1 >conftest.err
15913
  rm -f conftest.er1
15914
  cat conftest.err >&5
15915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916
  (exit $ac_status); } &&
15917
         { ac_try='test -z "$ac_c_werror_flag"
15918
                         || test ! -s conftest.err'
15919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920
  (eval $ac_try) 2>&5
15921
  ac_status=$?
15922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923
  (exit $ac_status); }; } &&
15924
         { ac_try='test -s conftest$ac_exeext'
15925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926
  (eval $ac_try) 2>&5
15927
  ac_status=$?
15928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929
  (exit $ac_status); }; }; then
15930
  ac_cv_search_opendir="none required"
15931
else
15932
  echo "$as_me: failed program was:" >&5
15933
sed 's/^/| /' conftest.$ac_ext >&5
15934
 
15935
fi
15936
rm -f conftest.err conftest.$ac_objext \
15937
      conftest$ac_exeext conftest.$ac_ext
15938
if test "$ac_cv_search_opendir" = no; then
15939
  for ac_lib in dir; do
15940
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15941
    cat >conftest.$ac_ext <<_ACEOF
15942
/* confdefs.h.  */
15943
_ACEOF
15944
cat confdefs.h >>conftest.$ac_ext
15945
cat >>conftest.$ac_ext <<_ACEOF
15946
/* end confdefs.h.  */
15947
 
15948
/* Override any gcc2 internal prototype to avoid an error.  */
15949
#ifdef __cplusplus
15950
extern "C"
15951
#endif
15952
/* We use char because int might match the return type of a gcc2
15953
   builtin and then its argument prototype would still apply.  */
15954
char opendir ();
15955
int
15956
main ()
15957
{
15958
opendir ();
15959
  ;
15960
  return 0;
15961
}
15962
_ACEOF
15963
rm -f conftest.$ac_objext conftest$ac_exeext
15964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15965
  (eval $ac_link) 2>conftest.er1
15966
  ac_status=$?
15967
  grep -v '^ *+' conftest.er1 >conftest.err
15968
  rm -f conftest.er1
15969
  cat conftest.err >&5
15970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971
  (exit $ac_status); } &&
15972
         { ac_try='test -z "$ac_c_werror_flag"
15973
                         || test ! -s conftest.err'
15974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975
  (eval $ac_try) 2>&5
15976
  ac_status=$?
15977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978
  (exit $ac_status); }; } &&
15979
         { ac_try='test -s conftest$ac_exeext'
15980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981
  (eval $ac_try) 2>&5
15982
  ac_status=$?
15983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984
  (exit $ac_status); }; }; then
15985
  ac_cv_search_opendir="-l$ac_lib"
15986
break
15987
else
15988
  echo "$as_me: failed program was:" >&5
15989
sed 's/^/| /' conftest.$ac_ext >&5
15990
 
15991
fi
15992
rm -f conftest.err conftest.$ac_objext \
15993
      conftest$ac_exeext conftest.$ac_ext
15994
  done
15995
fi
15996
LIBS=$ac_func_search_save_LIBS
15997
fi
15998
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15999
echo "${ECHO_T}$ac_cv_search_opendir" >&6
16000
if test "$ac_cv_search_opendir" != no; then
16001
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16002
 
16003
fi
16004
 
16005
else
16006
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
16007
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16008
if test "${ac_cv_search_opendir+set}" = set; then
16009
  echo $ECHO_N "(cached) $ECHO_C" >&6
16010
else
16011
  ac_func_search_save_LIBS=$LIBS
16012
ac_cv_search_opendir=no
16013
cat >conftest.$ac_ext <<_ACEOF
16014
/* confdefs.h.  */
16015
_ACEOF
16016
cat confdefs.h >>conftest.$ac_ext
16017
cat >>conftest.$ac_ext <<_ACEOF
16018
/* end confdefs.h.  */
16019
 
16020
/* Override any gcc2 internal prototype to avoid an error.  */
16021
#ifdef __cplusplus
16022
extern "C"
16023
#endif
16024
/* We use char because int might match the return type of a gcc2
16025
   builtin and then its argument prototype would still apply.  */
16026
char opendir ();
16027
int
16028
main ()
16029
{
16030
opendir ();
16031
  ;
16032
  return 0;
16033
}
16034
_ACEOF
16035
rm -f conftest.$ac_objext conftest$ac_exeext
16036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037
  (eval $ac_link) 2>conftest.er1
16038
  ac_status=$?
16039
  grep -v '^ *+' conftest.er1 >conftest.err
16040
  rm -f conftest.er1
16041
  cat conftest.err >&5
16042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043
  (exit $ac_status); } &&
16044
         { ac_try='test -z "$ac_c_werror_flag"
16045
                         || test ! -s conftest.err'
16046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047
  (eval $ac_try) 2>&5
16048
  ac_status=$?
16049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050
  (exit $ac_status); }; } &&
16051
         { ac_try='test -s conftest$ac_exeext'
16052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053
  (eval $ac_try) 2>&5
16054
  ac_status=$?
16055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056
  (exit $ac_status); }; }; then
16057
  ac_cv_search_opendir="none required"
16058
else
16059
  echo "$as_me: failed program was:" >&5
16060
sed 's/^/| /' conftest.$ac_ext >&5
16061
 
16062
fi
16063
rm -f conftest.err conftest.$ac_objext \
16064
      conftest$ac_exeext conftest.$ac_ext
16065
if test "$ac_cv_search_opendir" = no; then
16066
  for ac_lib in x; do
16067
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16068
    cat >conftest.$ac_ext <<_ACEOF
16069
/* confdefs.h.  */
16070
_ACEOF
16071
cat confdefs.h >>conftest.$ac_ext
16072
cat >>conftest.$ac_ext <<_ACEOF
16073
/* end confdefs.h.  */
16074
 
16075
/* Override any gcc2 internal prototype to avoid an error.  */
16076
#ifdef __cplusplus
16077
extern "C"
16078
#endif
16079
/* We use char because int might match the return type of a gcc2
16080
   builtin and then its argument prototype would still apply.  */
16081
char opendir ();
16082
int
16083
main ()
16084
{
16085
opendir ();
16086
  ;
16087
  return 0;
16088
}
16089
_ACEOF
16090
rm -f conftest.$ac_objext conftest$ac_exeext
16091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092
  (eval $ac_link) 2>conftest.er1
16093
  ac_status=$?
16094
  grep -v '^ *+' conftest.er1 >conftest.err
16095
  rm -f conftest.er1
16096
  cat conftest.err >&5
16097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098
  (exit $ac_status); } &&
16099
         { ac_try='test -z "$ac_c_werror_flag"
16100
                         || test ! -s conftest.err'
16101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102
  (eval $ac_try) 2>&5
16103
  ac_status=$?
16104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105
  (exit $ac_status); }; } &&
16106
         { ac_try='test -s conftest$ac_exeext'
16107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108
  (eval $ac_try) 2>&5
16109
  ac_status=$?
16110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111
  (exit $ac_status); }; }; then
16112
  ac_cv_search_opendir="-l$ac_lib"
16113
break
16114
else
16115
  echo "$as_me: failed program was:" >&5
16116
sed 's/^/| /' conftest.$ac_ext >&5
16117
 
16118
fi
16119
rm -f conftest.err conftest.$ac_objext \
16120
      conftest$ac_exeext conftest.$ac_ext
16121
  done
16122
fi
16123
LIBS=$ac_func_search_save_LIBS
16124
fi
16125
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16126
echo "${ECHO_T}$ac_cv_search_opendir" >&6
16127
if test "$ac_cv_search_opendir" != no; then
16128
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16129
 
16130
fi
16131
 
16132
fi
16133
 
16134
echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16135
echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16136
if test "${gcc_cv_header_string+set}" = set; then
16137
  echo $ECHO_N "(cached) $ECHO_C" >&6
16138
else
16139
  cat >conftest.$ac_ext <<_ACEOF
16140
/* confdefs.h.  */
16141
_ACEOF
16142
cat confdefs.h >>conftest.$ac_ext
16143
cat >>conftest.$ac_ext <<_ACEOF
16144
/* end confdefs.h.  */
16145
#include 
16146
#include 
16147
int
16148
main ()
16149
{
16150
 
16151
  ;
16152
  return 0;
16153
}
16154
_ACEOF
16155
rm -f conftest.$ac_objext
16156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16157
  (eval $ac_compile) 2>conftest.er1
16158
  ac_status=$?
16159
  grep -v '^ *+' conftest.er1 >conftest.err
16160
  rm -f conftest.er1
16161
  cat conftest.err >&5
16162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163
  (exit $ac_status); } &&
16164
         { ac_try='test -z "$ac_c_werror_flag"
16165
                         || test ! -s conftest.err'
16166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167
  (eval $ac_try) 2>&5
16168
  ac_status=$?
16169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170
  (exit $ac_status); }; } &&
16171
         { ac_try='test -s conftest.$ac_objext'
16172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173
  (eval $ac_try) 2>&5
16174
  ac_status=$?
16175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176
  (exit $ac_status); }; }; then
16177
  gcc_cv_header_string=yes
16178
else
16179
  echo "$as_me: failed program was:" >&5
16180
sed 's/^/| /' conftest.$ac_ext >&5
16181
 
16182
gcc_cv_header_string=no
16183
fi
16184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16185
fi
16186
echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16187
echo "${ECHO_T}$gcc_cv_header_string" >&6
16188
if test $gcc_cv_header_string = yes; then
16189
 
16190
cat >>confdefs.h <<\_ACEOF
16191
#define STRING_WITH_STRINGS 1
16192
_ACEOF
16193
 
16194
fi
16195
 
16196
 
16197
 
16198
 
16199
 
16200
 
16201
 
16202
 
16203
for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
16204
do
16205
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206
echo "$as_me:$LINENO: checking for $ac_func" >&5
16207
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16208
if eval "test \"\${$as_ac_var+set}\" = set"; then
16209
  echo $ECHO_N "(cached) $ECHO_C" >&6
16210
else
16211
  cat >conftest.$ac_ext <<_ACEOF
16212
/* confdefs.h.  */
16213
_ACEOF
16214
cat confdefs.h >>conftest.$ac_ext
16215
cat >>conftest.$ac_ext <<_ACEOF
16216
/* end confdefs.h.  */
16217
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
16218
   For example, HP-UX 11i  declares gettimeofday.  */
16219
#define $ac_func innocuous_$ac_func
16220
 
16221
/* System header to define __stub macros and hopefully few prototypes,
16222
    which can conflict with char $ac_func (); below.
16223
    Prefer  to  if __STDC__ is defined, since
16224
     exists even on freestanding compilers.  */
16225
 
16226
#ifdef __STDC__
16227
# include 
16228
#else
16229
# include 
16230
#endif
16231
 
16232
#undef $ac_func
16233
 
16234
/* Override any gcc2 internal prototype to avoid an error.  */
16235
#ifdef __cplusplus
16236
extern "C"
16237
{
16238
#endif
16239
/* We use char because int might match the return type of a gcc2
16240
   builtin and then its argument prototype would still apply.  */
16241
char $ac_func ();
16242
/* The GNU C library defines this for functions which it implements
16243
    to always fail with ENOSYS.  Some functions are actually named
16244
    something starting with __ and the normal name is an alias.  */
16245
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16246
choke me
16247
#else
16248
char (*f) () = $ac_func;
16249
#endif
16250
#ifdef __cplusplus
16251
}
16252
#endif
16253
 
16254
int
16255
main ()
16256
{
16257
return f != $ac_func;
16258
  ;
16259
  return 0;
16260
}
16261
_ACEOF
16262
rm -f conftest.$ac_objext conftest$ac_exeext
16263
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264
  (eval $ac_link) 2>conftest.er1
16265
  ac_status=$?
16266
  grep -v '^ *+' conftest.er1 >conftest.err
16267
  rm -f conftest.er1
16268
  cat conftest.err >&5
16269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270
  (exit $ac_status); } &&
16271
         { ac_try='test -z "$ac_c_werror_flag"
16272
                         || test ! -s conftest.err'
16273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274
  (eval $ac_try) 2>&5
16275
  ac_status=$?
16276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277
  (exit $ac_status); }; } &&
16278
         { ac_try='test -s conftest$ac_exeext'
16279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280
  (eval $ac_try) 2>&5
16281
  ac_status=$?
16282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283
  (exit $ac_status); }; }; then
16284
  eval "$as_ac_var=yes"
16285
else
16286
  echo "$as_me: failed program was:" >&5
16287
sed 's/^/| /' conftest.$ac_ext >&5
16288
 
16289
eval "$as_ac_var=no"
16290
fi
16291
rm -f conftest.err conftest.$ac_objext \
16292
      conftest$ac_exeext conftest.$ac_ext
16293
fi
16294
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16295
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16296
if test `eval echo '${'$as_ac_var'}'` = yes; then
16297
  cat >>confdefs.h <<_ACEOF
16298
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16299
_ACEOF
16300
 
16301
fi
16302
done
16303
 
16304
 
16305
for ac_func in strtoull
16306
do
16307
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16308
echo "$as_me:$LINENO: checking for $ac_func" >&5
16309
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16310
if eval "test \"\${$as_ac_var+set}\" = set"; then
16311
  echo $ECHO_N "(cached) $ECHO_C" >&6
16312
else
16313
  cat >conftest.$ac_ext <<_ACEOF
16314
/* confdefs.h.  */
16315
_ACEOF
16316
cat confdefs.h >>conftest.$ac_ext
16317
cat >>conftest.$ac_ext <<_ACEOF
16318
/* end confdefs.h.  */
16319
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
16320
   For example, HP-UX 11i  declares gettimeofday.  */
16321
#define $ac_func innocuous_$ac_func
16322
 
16323
/* System header to define __stub macros and hopefully few prototypes,
16324
    which can conflict with char $ac_func (); below.
16325
    Prefer  to  if __STDC__ is defined, since
16326
     exists even on freestanding compilers.  */
16327
 
16328
#ifdef __STDC__
16329
# include 
16330
#else
16331
# include 
16332
#endif
16333
 
16334
#undef $ac_func
16335
 
16336
/* Override any gcc2 internal prototype to avoid an error.  */
16337
#ifdef __cplusplus
16338
extern "C"
16339
{
16340
#endif
16341
/* We use char because int might match the return type of a gcc2
16342
   builtin and then its argument prototype would still apply.  */
16343
char $ac_func ();
16344
/* The GNU C library defines this for functions which it implements
16345
    to always fail with ENOSYS.  Some functions are actually named
16346
    something starting with __ and the normal name is an alias.  */
16347
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16348
choke me
16349
#else
16350
char (*f) () = $ac_func;
16351
#endif
16352
#ifdef __cplusplus
16353
}
16354
#endif
16355
 
16356
int
16357
main ()
16358
{
16359
return f != $ac_func;
16360
  ;
16361
  return 0;
16362
}
16363
_ACEOF
16364
rm -f conftest.$ac_objext conftest$ac_exeext
16365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366
  (eval $ac_link) 2>conftest.er1
16367
  ac_status=$?
16368
  grep -v '^ *+' conftest.er1 >conftest.err
16369
  rm -f conftest.er1
16370
  cat conftest.err >&5
16371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372
  (exit $ac_status); } &&
16373
         { ac_try='test -z "$ac_c_werror_flag"
16374
                         || test ! -s conftest.err'
16375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376
  (eval $ac_try) 2>&5
16377
  ac_status=$?
16378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379
  (exit $ac_status); }; } &&
16380
         { ac_try='test -s conftest$ac_exeext'
16381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382
  (eval $ac_try) 2>&5
16383
  ac_status=$?
16384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385
  (exit $ac_status); }; }; then
16386
  eval "$as_ac_var=yes"
16387
else
16388
  echo "$as_me: failed program was:" >&5
16389
sed 's/^/| /' conftest.$ac_ext >&5
16390
 
16391
eval "$as_ac_var=no"
16392
fi
16393
rm -f conftest.err conftest.$ac_objext \
16394
      conftest$ac_exeext conftest.$ac_ext
16395
fi
16396
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16397
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16398
if test `eval echo '${'$as_ac_var'}'` = yes; then
16399
  cat >>confdefs.h <<_ACEOF
16400
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16401
_ACEOF
16402
 
16403
fi
16404
done
16405
 
16406
 
16407
echo "$as_me:$LINENO: checking whether basename is declared" >&5
16408
echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16409
if test "${ac_cv_have_decl_basename+set}" = set; then
16410
  echo $ECHO_N "(cached) $ECHO_C" >&6
16411
else
16412
  cat >conftest.$ac_ext <<_ACEOF
16413
/* confdefs.h.  */
16414
_ACEOF
16415
cat confdefs.h >>conftest.$ac_ext
16416
cat >>conftest.$ac_ext <<_ACEOF
16417
/* end confdefs.h.  */
16418
$ac_includes_default
16419
int
16420
main ()
16421
{
16422
#ifndef basename
16423
  char *p = (char *) basename;
16424
#endif
16425
 
16426
  ;
16427
  return 0;
16428
}
16429
_ACEOF
16430
rm -f conftest.$ac_objext
16431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432
  (eval $ac_compile) 2>conftest.er1
16433
  ac_status=$?
16434
  grep -v '^ *+' conftest.er1 >conftest.err
16435
  rm -f conftest.er1
16436
  cat conftest.err >&5
16437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438
  (exit $ac_status); } &&
16439
         { ac_try='test -z "$ac_c_werror_flag"
16440
                         || test ! -s conftest.err'
16441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442
  (eval $ac_try) 2>&5
16443
  ac_status=$?
16444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445
  (exit $ac_status); }; } &&
16446
         { ac_try='test -s conftest.$ac_objext'
16447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448
  (eval $ac_try) 2>&5
16449
  ac_status=$?
16450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451
  (exit $ac_status); }; }; then
16452
  ac_cv_have_decl_basename=yes
16453
else
16454
  echo "$as_me: failed program was:" >&5
16455
sed 's/^/| /' conftest.$ac_ext >&5
16456
 
16457
ac_cv_have_decl_basename=no
16458
fi
16459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16460
fi
16461
echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16462
echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16463
if test $ac_cv_have_decl_basename = yes; then
16464
 
16465
cat >>confdefs.h <<_ACEOF
16466
#define HAVE_DECL_BASENAME 1
16467
_ACEOF
16468
 
16469
 
16470
else
16471
  cat >>confdefs.h <<_ACEOF
16472
#define HAVE_DECL_BASENAME 0
16473
_ACEOF
16474
 
16475
 
16476
fi
16477
 
16478
 
16479
echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16480
echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16481
if test "${ac_cv_have_decl_ftello+set}" = set; then
16482
  echo $ECHO_N "(cached) $ECHO_C" >&6
16483
else
16484
  cat >conftest.$ac_ext <<_ACEOF
16485
/* confdefs.h.  */
16486
_ACEOF
16487
cat confdefs.h >>conftest.$ac_ext
16488
cat >>conftest.$ac_ext <<_ACEOF
16489
/* end confdefs.h.  */
16490
$ac_includes_default
16491
int
16492
main ()
16493
{
16494
#ifndef ftello
16495
  char *p = (char *) ftello;
16496
#endif
16497
 
16498
  ;
16499
  return 0;
16500
}
16501
_ACEOF
16502
rm -f conftest.$ac_objext
16503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16504
  (eval $ac_compile) 2>conftest.er1
16505
  ac_status=$?
16506
  grep -v '^ *+' conftest.er1 >conftest.err
16507
  rm -f conftest.er1
16508
  cat conftest.err >&5
16509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510
  (exit $ac_status); } &&
16511
         { ac_try='test -z "$ac_c_werror_flag"
16512
                         || test ! -s conftest.err'
16513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514
  (eval $ac_try) 2>&5
16515
  ac_status=$?
16516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517
  (exit $ac_status); }; } &&
16518
         { ac_try='test -s conftest.$ac_objext'
16519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520
  (eval $ac_try) 2>&5
16521
  ac_status=$?
16522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523
  (exit $ac_status); }; }; then
16524
  ac_cv_have_decl_ftello=yes
16525
else
16526
  echo "$as_me: failed program was:" >&5
16527
sed 's/^/| /' conftest.$ac_ext >&5
16528
 
16529
ac_cv_have_decl_ftello=no
16530
fi
16531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16532
fi
16533
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16534
echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16535
if test $ac_cv_have_decl_ftello = yes; then
16536
 
16537
cat >>confdefs.h <<_ACEOF
16538
#define HAVE_DECL_FTELLO 1
16539
_ACEOF
16540
 
16541
 
16542
else
16543
  cat >>confdefs.h <<_ACEOF
16544
#define HAVE_DECL_FTELLO 0
16545
_ACEOF
16546
 
16547
 
16548
fi
16549
 
16550
 
16551
echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16552
echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16553
if test "${ac_cv_have_decl_ftello64+set}" = set; then
16554
  echo $ECHO_N "(cached) $ECHO_C" >&6
16555
else
16556
  cat >conftest.$ac_ext <<_ACEOF
16557
/* confdefs.h.  */
16558
_ACEOF
16559
cat confdefs.h >>conftest.$ac_ext
16560
cat >>conftest.$ac_ext <<_ACEOF
16561
/* end confdefs.h.  */
16562
$ac_includes_default
16563
int
16564
main ()
16565
{
16566
#ifndef ftello64
16567
  char *p = (char *) ftello64;
16568
#endif
16569
 
16570
  ;
16571
  return 0;
16572
}
16573
_ACEOF
16574
rm -f conftest.$ac_objext
16575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16576
  (eval $ac_compile) 2>conftest.er1
16577
  ac_status=$?
16578
  grep -v '^ *+' conftest.er1 >conftest.err
16579
  rm -f conftest.er1
16580
  cat conftest.err >&5
16581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582
  (exit $ac_status); } &&
16583
         { ac_try='test -z "$ac_c_werror_flag"
16584
                         || test ! -s conftest.err'
16585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586
  (eval $ac_try) 2>&5
16587
  ac_status=$?
16588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589
  (exit $ac_status); }; } &&
16590
         { ac_try='test -s conftest.$ac_objext'
16591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592
  (eval $ac_try) 2>&5
16593
  ac_status=$?
16594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595
  (exit $ac_status); }; }; then
16596
  ac_cv_have_decl_ftello64=yes
16597
else
16598
  echo "$as_me: failed program was:" >&5
16599
sed 's/^/| /' conftest.$ac_ext >&5
16600
 
16601
ac_cv_have_decl_ftello64=no
16602
fi
16603
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16604
fi
16605
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16606
echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16607
if test $ac_cv_have_decl_ftello64 = yes; then
16608
 
16609
cat >>confdefs.h <<_ACEOF
16610
#define HAVE_DECL_FTELLO64 1
16611
_ACEOF
16612
 
16613
 
16614
else
16615
  cat >>confdefs.h <<_ACEOF
16616
#define HAVE_DECL_FTELLO64 0
16617
_ACEOF
16618
 
16619
 
16620
fi
16621
 
16622
 
16623
echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16624
echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16625
if test "${ac_cv_have_decl_fseeko+set}" = set; then
16626
  echo $ECHO_N "(cached) $ECHO_C" >&6
16627
else
16628
  cat >conftest.$ac_ext <<_ACEOF
16629
/* confdefs.h.  */
16630
_ACEOF
16631
cat confdefs.h >>conftest.$ac_ext
16632
cat >>conftest.$ac_ext <<_ACEOF
16633
/* end confdefs.h.  */
16634
$ac_includes_default
16635
int
16636
main ()
16637
{
16638
#ifndef fseeko
16639
  char *p = (char *) fseeko;
16640
#endif
16641
 
16642
  ;
16643
  return 0;
16644
}
16645
_ACEOF
16646
rm -f conftest.$ac_objext
16647
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648
  (eval $ac_compile) 2>conftest.er1
16649
  ac_status=$?
16650
  grep -v '^ *+' conftest.er1 >conftest.err
16651
  rm -f conftest.er1
16652
  cat conftest.err >&5
16653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654
  (exit $ac_status); } &&
16655
         { ac_try='test -z "$ac_c_werror_flag"
16656
                         || test ! -s conftest.err'
16657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658
  (eval $ac_try) 2>&5
16659
  ac_status=$?
16660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661
  (exit $ac_status); }; } &&
16662
         { ac_try='test -s conftest.$ac_objext'
16663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664
  (eval $ac_try) 2>&5
16665
  ac_status=$?
16666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667
  (exit $ac_status); }; }; then
16668
  ac_cv_have_decl_fseeko=yes
16669
else
16670
  echo "$as_me: failed program was:" >&5
16671
sed 's/^/| /' conftest.$ac_ext >&5
16672
 
16673
ac_cv_have_decl_fseeko=no
16674
fi
16675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676
fi
16677
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16678
echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16679
if test $ac_cv_have_decl_fseeko = yes; then
16680
 
16681
cat >>confdefs.h <<_ACEOF
16682
#define HAVE_DECL_FSEEKO 1
16683
_ACEOF
16684
 
16685
 
16686
else
16687
  cat >>confdefs.h <<_ACEOF
16688
#define HAVE_DECL_FSEEKO 0
16689
_ACEOF
16690
 
16691
 
16692
fi
16693
 
16694
 
16695
echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16696
echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16697
if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16698
  echo $ECHO_N "(cached) $ECHO_C" >&6
16699
else
16700
  cat >conftest.$ac_ext <<_ACEOF
16701
/* confdefs.h.  */
16702
_ACEOF
16703
cat confdefs.h >>conftest.$ac_ext
16704
cat >>conftest.$ac_ext <<_ACEOF
16705
/* end confdefs.h.  */
16706
$ac_includes_default
16707
int
16708
main ()
16709
{
16710
#ifndef fseeko64
16711
  char *p = (char *) fseeko64;
16712
#endif
16713
 
16714
  ;
16715
  return 0;
16716
}
16717
_ACEOF
16718
rm -f conftest.$ac_objext
16719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16720
  (eval $ac_compile) 2>conftest.er1
16721
  ac_status=$?
16722
  grep -v '^ *+' conftest.er1 >conftest.err
16723
  rm -f conftest.er1
16724
  cat conftest.err >&5
16725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726
  (exit $ac_status); } &&
16727
         { ac_try='test -z "$ac_c_werror_flag"
16728
                         || test ! -s conftest.err'
16729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730
  (eval $ac_try) 2>&5
16731
  ac_status=$?
16732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733
  (exit $ac_status); }; } &&
16734
         { ac_try='test -s conftest.$ac_objext'
16735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736
  (eval $ac_try) 2>&5
16737
  ac_status=$?
16738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739
  (exit $ac_status); }; }; then
16740
  ac_cv_have_decl_fseeko64=yes
16741
else
16742
  echo "$as_me: failed program was:" >&5
16743
sed 's/^/| /' conftest.$ac_ext >&5
16744
 
16745
ac_cv_have_decl_fseeko64=no
16746
fi
16747
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16748
fi
16749
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16750
echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16751
if test $ac_cv_have_decl_fseeko64 = yes; then
16752
 
16753
cat >>confdefs.h <<_ACEOF
16754
#define HAVE_DECL_FSEEKO64 1
16755
_ACEOF
16756
 
16757
 
16758
else
16759
  cat >>confdefs.h <<_ACEOF
16760
#define HAVE_DECL_FSEEKO64 0
16761
_ACEOF
16762
 
16763
 
16764
fi
16765
 
16766
 
16767
 
16768
 
16769
case "${host}" in
16770
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16771
 
16772
cat >>confdefs.h <<\_ACEOF
16773
#define USE_BINARY_FOPEN 1
16774
_ACEOF
16775
 ;;
16776
esac
16777
 
16778
echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16779
echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16780
if test "${ac_cv_have_decl_ffs+set}" = set; then
16781
  echo $ECHO_N "(cached) $ECHO_C" >&6
16782
else
16783
  cat >conftest.$ac_ext <<_ACEOF
16784
/* confdefs.h.  */
16785
_ACEOF
16786
cat confdefs.h >>conftest.$ac_ext
16787
cat >>conftest.$ac_ext <<_ACEOF
16788
/* end confdefs.h.  */
16789
$ac_includes_default
16790
int
16791
main ()
16792
{
16793
#ifndef ffs
16794
  char *p = (char *) ffs;
16795
#endif
16796
 
16797
  ;
16798
  return 0;
16799
}
16800
_ACEOF
16801
rm -f conftest.$ac_objext
16802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803
  (eval $ac_compile) 2>conftest.er1
16804
  ac_status=$?
16805
  grep -v '^ *+' conftest.er1 >conftest.err
16806
  rm -f conftest.er1
16807
  cat conftest.err >&5
16808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809
  (exit $ac_status); } &&
16810
         { ac_try='test -z "$ac_c_werror_flag"
16811
                         || test ! -s conftest.err'
16812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813
  (eval $ac_try) 2>&5
16814
  ac_status=$?
16815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816
  (exit $ac_status); }; } &&
16817
         { ac_try='test -s conftest.$ac_objext'
16818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819
  (eval $ac_try) 2>&5
16820
  ac_status=$?
16821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822
  (exit $ac_status); }; }; then
16823
  ac_cv_have_decl_ffs=yes
16824
else
16825
  echo "$as_me: failed program was:" >&5
16826
sed 's/^/| /' conftest.$ac_ext >&5
16827
 
16828
ac_cv_have_decl_ffs=no
16829
fi
16830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831
fi
16832
echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16833
echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16834
if test $ac_cv_have_decl_ffs = yes; then
16835
 
16836
cat >>confdefs.h <<_ACEOF
16837
#define HAVE_DECL_FFS 1
16838
_ACEOF
16839
 
16840
 
16841
else
16842
  cat >>confdefs.h <<_ACEOF
16843
#define HAVE_DECL_FFS 0
16844
_ACEOF
16845
 
16846
 
16847
fi
16848
 
16849
 
16850
echo "$as_me:$LINENO: checking whether free is declared" >&5
16851
echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16852
if test "${ac_cv_have_decl_free+set}" = set; then
16853
  echo $ECHO_N "(cached) $ECHO_C" >&6
16854
else
16855
  cat >conftest.$ac_ext <<_ACEOF
16856
/* confdefs.h.  */
16857
_ACEOF
16858
cat confdefs.h >>conftest.$ac_ext
16859
cat >>conftest.$ac_ext <<_ACEOF
16860
/* end confdefs.h.  */
16861
$ac_includes_default
16862
int
16863
main ()
16864
{
16865
#ifndef free
16866
  char *p = (char *) free;
16867
#endif
16868
 
16869
  ;
16870
  return 0;
16871
}
16872
_ACEOF
16873
rm -f conftest.$ac_objext
16874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16875
  (eval $ac_compile) 2>conftest.er1
16876
  ac_status=$?
16877
  grep -v '^ *+' conftest.er1 >conftest.err
16878
  rm -f conftest.er1
16879
  cat conftest.err >&5
16880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881
  (exit $ac_status); } &&
16882
         { ac_try='test -z "$ac_c_werror_flag"
16883
                         || test ! -s conftest.err'
16884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885
  (eval $ac_try) 2>&5
16886
  ac_status=$?
16887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888
  (exit $ac_status); }; } &&
16889
         { ac_try='test -s conftest.$ac_objext'
16890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891
  (eval $ac_try) 2>&5
16892
  ac_status=$?
16893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894
  (exit $ac_status); }; }; then
16895
  ac_cv_have_decl_free=yes
16896
else
16897
  echo "$as_me: failed program was:" >&5
16898
sed 's/^/| /' conftest.$ac_ext >&5
16899
 
16900
ac_cv_have_decl_free=no
16901
fi
16902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16903
fi
16904
echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16905
echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16906
if test $ac_cv_have_decl_free = yes; then
16907
 
16908
cat >>confdefs.h <<_ACEOF
16909
#define HAVE_DECL_FREE 1
16910
_ACEOF
16911
 
16912
 
16913
else
16914
  cat >>confdefs.h <<_ACEOF
16915
#define HAVE_DECL_FREE 0
16916
_ACEOF
16917
 
16918
 
16919
fi
16920
 
16921
 
16922
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16923
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16924
if test "${ac_cv_have_decl_getenv+set}" = set; then
16925
  echo $ECHO_N "(cached) $ECHO_C" >&6
16926
else
16927
  cat >conftest.$ac_ext <<_ACEOF
16928
/* confdefs.h.  */
16929
_ACEOF
16930
cat confdefs.h >>conftest.$ac_ext
16931
cat >>conftest.$ac_ext <<_ACEOF
16932
/* end confdefs.h.  */
16933
$ac_includes_default
16934
int
16935
main ()
16936
{
16937
#ifndef getenv
16938
  char *p = (char *) getenv;
16939
#endif
16940
 
16941
  ;
16942
  return 0;
16943
}
16944
_ACEOF
16945
rm -f conftest.$ac_objext
16946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947
  (eval $ac_compile) 2>conftest.er1
16948
  ac_status=$?
16949
  grep -v '^ *+' conftest.er1 >conftest.err
16950
  rm -f conftest.er1
16951
  cat conftest.err >&5
16952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953
  (exit $ac_status); } &&
16954
         { ac_try='test -z "$ac_c_werror_flag"
16955
                         || test ! -s conftest.err'
16956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957
  (eval $ac_try) 2>&5
16958
  ac_status=$?
16959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960
  (exit $ac_status); }; } &&
16961
         { ac_try='test -s conftest.$ac_objext'
16962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963
  (eval $ac_try) 2>&5
16964
  ac_status=$?
16965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966
  (exit $ac_status); }; }; then
16967
  ac_cv_have_decl_getenv=yes
16968
else
16969
  echo "$as_me: failed program was:" >&5
16970
sed 's/^/| /' conftest.$ac_ext >&5
16971
 
16972
ac_cv_have_decl_getenv=no
16973
fi
16974
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16975
fi
16976
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16977
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16978
if test $ac_cv_have_decl_getenv = yes; then
16979
 
16980
cat >>confdefs.h <<_ACEOF
16981
#define HAVE_DECL_GETENV 1
16982
_ACEOF
16983
 
16984
 
16985
else
16986
  cat >>confdefs.h <<_ACEOF
16987
#define HAVE_DECL_GETENV 0
16988
_ACEOF
16989
 
16990
 
16991
fi
16992
 
16993
 
16994
echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16995
echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16996
if test "${ac_cv_have_decl_malloc+set}" = set; then
16997
  echo $ECHO_N "(cached) $ECHO_C" >&6
16998
else
16999
  cat >conftest.$ac_ext <<_ACEOF
17000
/* confdefs.h.  */
17001
_ACEOF
17002
cat confdefs.h >>conftest.$ac_ext
17003
cat >>conftest.$ac_ext <<_ACEOF
17004
/* end confdefs.h.  */
17005
$ac_includes_default
17006
int
17007
main ()
17008
{
17009
#ifndef malloc
17010
  char *p = (char *) malloc;
17011
#endif
17012
 
17013
  ;
17014
  return 0;
17015
}
17016
_ACEOF
17017
rm -f conftest.$ac_objext
17018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17019
  (eval $ac_compile) 2>conftest.er1
17020
  ac_status=$?
17021
  grep -v '^ *+' conftest.er1 >conftest.err
17022
  rm -f conftest.er1
17023
  cat conftest.err >&5
17024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025
  (exit $ac_status); } &&
17026
         { ac_try='test -z "$ac_c_werror_flag"
17027
                         || test ! -s conftest.err'
17028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029
  (eval $ac_try) 2>&5
17030
  ac_status=$?
17031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032
  (exit $ac_status); }; } &&
17033
         { ac_try='test -s conftest.$ac_objext'
17034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035
  (eval $ac_try) 2>&5
17036
  ac_status=$?
17037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038
  (exit $ac_status); }; }; then
17039
  ac_cv_have_decl_malloc=yes
17040
else
17041
  echo "$as_me: failed program was:" >&5
17042
sed 's/^/| /' conftest.$ac_ext >&5
17043
 
17044
ac_cv_have_decl_malloc=no
17045
fi
17046
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17047
fi
17048
echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17049
echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17050
if test $ac_cv_have_decl_malloc = yes; then
17051
 
17052
cat >>confdefs.h <<_ACEOF
17053
#define HAVE_DECL_MALLOC 1
17054
_ACEOF
17055
 
17056
 
17057
else
17058
  cat >>confdefs.h <<_ACEOF
17059
#define HAVE_DECL_MALLOC 0
17060
_ACEOF
17061
 
17062
 
17063
fi
17064
 
17065
 
17066
echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17067
echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17068
if test "${ac_cv_have_decl_realloc+set}" = set; then
17069
  echo $ECHO_N "(cached) $ECHO_C" >&6
17070
else
17071
  cat >conftest.$ac_ext <<_ACEOF
17072
/* confdefs.h.  */
17073
_ACEOF
17074
cat confdefs.h >>conftest.$ac_ext
17075
cat >>conftest.$ac_ext <<_ACEOF
17076
/* end confdefs.h.  */
17077
$ac_includes_default
17078
int
17079
main ()
17080
{
17081
#ifndef realloc
17082
  char *p = (char *) realloc;
17083
#endif
17084
 
17085
  ;
17086
  return 0;
17087
}
17088
_ACEOF
17089
rm -f conftest.$ac_objext
17090
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091
  (eval $ac_compile) 2>conftest.er1
17092
  ac_status=$?
17093
  grep -v '^ *+' conftest.er1 >conftest.err
17094
  rm -f conftest.er1
17095
  cat conftest.err >&5
17096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097
  (exit $ac_status); } &&
17098
         { ac_try='test -z "$ac_c_werror_flag"
17099
                         || test ! -s conftest.err'
17100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101
  (eval $ac_try) 2>&5
17102
  ac_status=$?
17103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104
  (exit $ac_status); }; } &&
17105
         { ac_try='test -s conftest.$ac_objext'
17106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107
  (eval $ac_try) 2>&5
17108
  ac_status=$?
17109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110
  (exit $ac_status); }; }; then
17111
  ac_cv_have_decl_realloc=yes
17112
else
17113
  echo "$as_me: failed program was:" >&5
17114
sed 's/^/| /' conftest.$ac_ext >&5
17115
 
17116
ac_cv_have_decl_realloc=no
17117
fi
17118
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17119
fi
17120
echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17121
echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17122
if test $ac_cv_have_decl_realloc = yes; then
17123
 
17124
cat >>confdefs.h <<_ACEOF
17125
#define HAVE_DECL_REALLOC 1
17126
_ACEOF
17127
 
17128
 
17129
else
17130
  cat >>confdefs.h <<_ACEOF
17131
#define HAVE_DECL_REALLOC 0
17132
_ACEOF
17133
 
17134
 
17135
fi
17136
 
17137
 
17138
echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17139
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17140
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17141
  echo $ECHO_N "(cached) $ECHO_C" >&6
17142
else
17143
  cat >conftest.$ac_ext <<_ACEOF
17144
/* confdefs.h.  */
17145
_ACEOF
17146
cat confdefs.h >>conftest.$ac_ext
17147
cat >>conftest.$ac_ext <<_ACEOF
17148
/* end confdefs.h.  */
17149
$ac_includes_default
17150
int
17151
main ()
17152
{
17153
#ifndef stpcpy
17154
  char *p = (char *) stpcpy;
17155
#endif
17156
 
17157
  ;
17158
  return 0;
17159
}
17160
_ACEOF
17161
rm -f conftest.$ac_objext
17162
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17163
  (eval $ac_compile) 2>conftest.er1
17164
  ac_status=$?
17165
  grep -v '^ *+' conftest.er1 >conftest.err
17166
  rm -f conftest.er1
17167
  cat conftest.err >&5
17168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169
  (exit $ac_status); } &&
17170
         { ac_try='test -z "$ac_c_werror_flag"
17171
                         || test ! -s conftest.err'
17172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173
  (eval $ac_try) 2>&5
17174
  ac_status=$?
17175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176
  (exit $ac_status); }; } &&
17177
         { ac_try='test -s conftest.$ac_objext'
17178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179
  (eval $ac_try) 2>&5
17180
  ac_status=$?
17181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182
  (exit $ac_status); }; }; then
17183
  ac_cv_have_decl_stpcpy=yes
17184
else
17185
  echo "$as_me: failed program was:" >&5
17186
sed 's/^/| /' conftest.$ac_ext >&5
17187
 
17188
ac_cv_have_decl_stpcpy=no
17189
fi
17190
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191
fi
17192
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17193
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17194
if test $ac_cv_have_decl_stpcpy = yes; then
17195
 
17196
cat >>confdefs.h <<_ACEOF
17197
#define HAVE_DECL_STPCPY 1
17198
_ACEOF
17199
 
17200
 
17201
else
17202
  cat >>confdefs.h <<_ACEOF
17203
#define HAVE_DECL_STPCPY 0
17204
_ACEOF
17205
 
17206
 
17207
fi
17208
 
17209
 
17210
echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17211
echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17212
if test "${ac_cv_have_decl_strstr+set}" = set; then
17213
  echo $ECHO_N "(cached) $ECHO_C" >&6
17214
else
17215
  cat >conftest.$ac_ext <<_ACEOF
17216
/* confdefs.h.  */
17217
_ACEOF
17218
cat confdefs.h >>conftest.$ac_ext
17219
cat >>conftest.$ac_ext <<_ACEOF
17220
/* end confdefs.h.  */
17221
$ac_includes_default
17222
int
17223
main ()
17224
{
17225
#ifndef strstr
17226
  char *p = (char *) strstr;
17227
#endif
17228
 
17229
  ;
17230
  return 0;
17231
}
17232
_ACEOF
17233
rm -f conftest.$ac_objext
17234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235
  (eval $ac_compile) 2>conftest.er1
17236
  ac_status=$?
17237
  grep -v '^ *+' conftest.er1 >conftest.err
17238
  rm -f conftest.er1
17239
  cat conftest.err >&5
17240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241
  (exit $ac_status); } &&
17242
         { ac_try='test -z "$ac_c_werror_flag"
17243
                         || test ! -s conftest.err'
17244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245
  (eval $ac_try) 2>&5
17246
  ac_status=$?
17247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248
  (exit $ac_status); }; } &&
17249
         { ac_try='test -s conftest.$ac_objext'
17250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251
  (eval $ac_try) 2>&5
17252
  ac_status=$?
17253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254
  (exit $ac_status); }; }; then
17255
  ac_cv_have_decl_strstr=yes
17256
else
17257
  echo "$as_me: failed program was:" >&5
17258
sed 's/^/| /' conftest.$ac_ext >&5
17259
 
17260
ac_cv_have_decl_strstr=no
17261
fi
17262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17263
fi
17264
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17265
echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17266
if test $ac_cv_have_decl_strstr = yes; then
17267
 
17268
cat >>confdefs.h <<_ACEOF
17269
#define HAVE_DECL_STRSTR 1
17270
_ACEOF
17271
 
17272
 
17273
else
17274
  cat >>confdefs.h <<_ACEOF
17275
#define HAVE_DECL_STRSTR 0
17276
_ACEOF
17277
 
17278
 
17279
fi
17280
 
17281
 
17282
echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17283
echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17284
if test "${ac_cv_have_decl_snprintf+set}" = set; then
17285
  echo $ECHO_N "(cached) $ECHO_C" >&6
17286
else
17287
  cat >conftest.$ac_ext <<_ACEOF
17288
/* confdefs.h.  */
17289
_ACEOF
17290
cat confdefs.h >>conftest.$ac_ext
17291
cat >>conftest.$ac_ext <<_ACEOF
17292
/* end confdefs.h.  */
17293
$ac_includes_default
17294
int
17295
main ()
17296
{
17297
#ifndef snprintf
17298
  char *p = (char *) snprintf;
17299
#endif
17300
 
17301
  ;
17302
  return 0;
17303
}
17304
_ACEOF
17305
rm -f conftest.$ac_objext
17306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307
  (eval $ac_compile) 2>conftest.er1
17308
  ac_status=$?
17309
  grep -v '^ *+' conftest.er1 >conftest.err
17310
  rm -f conftest.er1
17311
  cat conftest.err >&5
17312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313
  (exit $ac_status); } &&
17314
         { ac_try='test -z "$ac_c_werror_flag"
17315
                         || test ! -s conftest.err'
17316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317
  (eval $ac_try) 2>&5
17318
  ac_status=$?
17319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320
  (exit $ac_status); }; } &&
17321
         { ac_try='test -s conftest.$ac_objext'
17322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323
  (eval $ac_try) 2>&5
17324
  ac_status=$?
17325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326
  (exit $ac_status); }; }; then
17327
  ac_cv_have_decl_snprintf=yes
17328
else
17329
  echo "$as_me: failed program was:" >&5
17330
sed 's/^/| /' conftest.$ac_ext >&5
17331
 
17332
ac_cv_have_decl_snprintf=no
17333
fi
17334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17335
fi
17336
echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17337
echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17338
if test $ac_cv_have_decl_snprintf = yes; then
17339
 
17340
cat >>confdefs.h <<_ACEOF
17341
#define HAVE_DECL_SNPRINTF 1
17342
_ACEOF
17343
 
17344
 
17345
else
17346
  cat >>confdefs.h <<_ACEOF
17347
#define HAVE_DECL_SNPRINTF 0
17348
_ACEOF
17349
 
17350
 
17351
fi
17352
 
17353
 
17354
echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17355
echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17356
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17357
  echo $ECHO_N "(cached) $ECHO_C" >&6
17358
else
17359
  cat >conftest.$ac_ext <<_ACEOF
17360
/* confdefs.h.  */
17361
_ACEOF
17362
cat confdefs.h >>conftest.$ac_ext
17363
cat >>conftest.$ac_ext <<_ACEOF
17364
/* end confdefs.h.  */
17365
$ac_includes_default
17366
int
17367
main ()
17368
{
17369
#ifndef vsnprintf
17370
  char *p = (char *) vsnprintf;
17371
#endif
17372
 
17373
  ;
17374
  return 0;
17375
}
17376
_ACEOF
17377
rm -f conftest.$ac_objext
17378
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17379
  (eval $ac_compile) 2>conftest.er1
17380
  ac_status=$?
17381
  grep -v '^ *+' conftest.er1 >conftest.err
17382
  rm -f conftest.er1
17383
  cat conftest.err >&5
17384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385
  (exit $ac_status); } &&
17386
         { ac_try='test -z "$ac_c_werror_flag"
17387
                         || test ! -s conftest.err'
17388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389
  (eval $ac_try) 2>&5
17390
  ac_status=$?
17391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392
  (exit $ac_status); }; } &&
17393
         { ac_try='test -s conftest.$ac_objext'
17394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395
  (eval $ac_try) 2>&5
17396
  ac_status=$?
17397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398
  (exit $ac_status); }; }; then
17399
  ac_cv_have_decl_vsnprintf=yes
17400
else
17401
  echo "$as_me: failed program was:" >&5
17402
sed 's/^/| /' conftest.$ac_ext >&5
17403
 
17404
ac_cv_have_decl_vsnprintf=no
17405
fi
17406
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17407
fi
17408
echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17409
echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17410
if test $ac_cv_have_decl_vsnprintf = yes; then
17411
 
17412
cat >>confdefs.h <<_ACEOF
17413
#define HAVE_DECL_VSNPRINTF 1
17414
_ACEOF
17415
 
17416
 
17417
else
17418
  cat >>confdefs.h <<_ACEOF
17419
#define HAVE_DECL_VSNPRINTF 0
17420
_ACEOF
17421
 
17422
 
17423
fi
17424
 
17425
 
17426
 
17427
# If we are configured native, pick a core file support file.
17428
COREFILE=
17429
COREFLAG=
17430
TRAD_HEADER=
17431
if test "${target}" = "${host}"; then
17432
  case "${host}" in
17433
  alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
17434
        COREFILE=''
17435
        ;;
17436
  alpha*-*-linux-*)
17437
        COREFILE=trad-core.lo
17438
        TRAD_HEADER='"hosts/alphalinux.h"'
17439
        ;;
17440
  alpha*-*-netbsd* | alpha*-*-openbsd*)
17441
        COREFILE=netbsd-core.lo
17442
        ;;
17443
  alpha*-*-*)           COREFILE=osf-core.lo ;;
17444
  arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17445
                        COREFILE='' ;;
17446
  arm-*-netbsd* | arm-*-openbsd*)
17447
        COREFILE=netbsd-core.lo
17448
        ;;
17449
  arm-*-riscix)         COREFILE=trad-core.lo ;;
17450
  hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
17451
  hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
17452
  hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
17453
  hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
17454
                        COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
17455
  hppa*-*-netbsd* | hppa*-*-openbsd*)
17456
        COREFILE=netbsd-core.lo
17457
        ;;
17458
 
17459
  i370-*-*)
17460
        COREFILE=trad-core.lo
17461
        TRAD_HEADER='"hosts/i370linux.h"'
17462
        ;;
17463
 
17464
  i[3-7]86-sequent-bsd*)
17465
        COREFILE=trad-core.lo
17466
        TRAD_HEADER='"hosts/symmetry.h"'
17467
        ;;
17468
  i[3-7]86-sequent-sysv4*) ;;
17469
  i[3-7]86-sequent-sysv*)
17470
        COREFILE=trad-core.lo
17471
        TRAD_HEADER='"hosts/symmetry.h"'
17472
        ;;
17473
  i[3-7]86-*-bsdi)
17474
        COREFILE=
17475
        ;;
17476
  i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
17477
        COREFILE=trad-core.lo
17478
        TRAD_HEADER='"hosts/i386bsd.h"'
17479
        ;;
17480
  i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
17481
        COREFILE=''
17482
        TRAD_HEADER='"hosts/i386bsd.h"'
17483
        ;;
17484
  i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17485
        COREFILE=netbsd-core.lo
17486
        ;;
17487
  i[3-7]86-esix-sysv3*)
17488
        COREFILE=trad-core.lo
17489
        TRAD_HEADER='"hosts/esix.h"'
17490
        ;;
17491
  i[3-7]86-*-sco3.2v5*)
17492
        COREFILE=sco5-core.lo
17493
        ;;
17494
  i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17495
        COREFILE=trad-core.lo
17496
        TRAD_HEADER='"hosts/i386sco.h"'
17497
        ;;
17498
  i[3-7]86-*-mach3*)
17499
        COREFILE=trad-core.lo
17500
        TRAD_HEADER='"hosts/i386mach3.h"'
17501
        ;;
17502
  i[3-7]86-*-linux-*)
17503
        COREFILE=trad-core.lo
17504
        TRAD_HEADER='"hosts/i386linux.h"'
17505
        ;;
17506
  i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
17507
  i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
17508
  i860-*-mach3* | i860-*-osf1*)
17509
        COREFILE=trad-core.lo
17510
        TRAD_HEADER='"hosts/i860mach3.h"'
17511
        ;;
17512
  mips-*-netbsd* | mips*-*-openbsd*)
17513
        COREFILE=netbsd-core.lo
17514
        ;;
17515
  mips-dec-*)
17516
        COREFILE=trad-core.lo
17517
        TRAD_HEADER='"hosts/decstation.h"'
17518
        ;;
17519
  mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
17520
  mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
17521
  mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
17522
  mips-*-sysv4*)        ;;
17523
  mips-*-sysv* | mips-*-riscos*)
17524
        COREFILE=trad-core.lo
17525
        TRAD_HEADER='"hosts/riscos.h"'
17526
        ;;
17527
  mips-sony-bsd*)
17528
        COREFILE=trad-core.lo
17529
        TRAD_HEADER='"hosts/news-mips.h"'
17530
        ;;
17531
  m68*-bull*-sysv*)
17532
        COREFILE=trad-core.lo
17533
        TRAD_HEADER='"hosts/dpx2.h"'
17534
        ;;
17535
  m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
17536
  m68*-hp-bsd*)
17537
        COREFILE=trad-core.lo
17538
        TRAD_HEADER='"hosts/hp300bsd.h"'
17539
        ;;
17540
  m68*-*-linux-*)
17541
        COREFILE=trad-core.lo
17542
        TRAD_HEADER='"hosts/m68klinux.h"'
17543
        ;;
17544
  m68*-motorola-sysv*)
17545
        COREFILE=trad-core.lo
17546
        TRAD_HEADER='"hosts/delta68.h"'
17547
        ;;
17548
  m68*-sony-*)
17549
        COREFILE=trad-core.lo
17550
        TRAD_HEADER='"hosts/news.h"'
17551
        ;;
17552
  m68*-*-netbsd* | m68*-*-openbsd*)
17553
        COREFILE=netbsd-core.lo
17554
        ;;
17555
  m68*-apple-aux*)
17556
        COREFILE=trad-core.lo
17557
        TRAD_HEADER='"hosts/m68kaux.h"'
17558
        ;;
17559
  m88*-*-sysv4*)
17560
        ;;
17561
  m88*-motorola-sysv*)
17562
        COREFILE=ptrace-core.lo
17563
        ;;
17564
  m88*-*-mach3*)
17565
        COREFILE=trad-core.lo
17566
        TRAD_HEADER='"hosts/m88kmach3.h"'
17567
        ;;
17568
  m88*-*-openbsd*)
17569
        COREFILE=netbsd-core.lo
17570
        ;;
17571
  ns32k-pc532-mach)
17572
        COREFILE=trad-core.lo
17573
        TRAD_HEADER='"hosts/pc532mach.h"'
17574
        ;;
17575
  ns32k-*-netbsd* | ns32k-*-openbsd*)
17576
        COREFILE=netbsd-core.lo
17577
        ;;
17578
  rs6000-*-lynx*)
17579
        COREFILE=lynx-core.lo
17580
        ;;
17581
  rs6000-*-aix5.* | powerpc-*-aix5.*)
17582
        COREFILE=rs6000-core.lo
17583
        COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17584
        ;;
17585
  rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17586
        COREFILE=rs6000-core.lo
17587
        COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17588
        # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17589
        # have c_impl as a member of struct core_dumpx
17590
        echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17591
echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17592
        cat >conftest.$ac_ext <<_ACEOF
17593
/* confdefs.h.  */
17594
_ACEOF
17595
cat confdefs.h >>conftest.$ac_ext
17596
cat >>conftest.$ac_ext <<_ACEOF
17597
/* end confdefs.h.  */
17598
#include 
17599
int
17600
main ()
17601
{
17602
struct core_dumpx c; c.c_impl = 0;
17603
  ;
17604
  return 0;
17605
}
17606
_ACEOF
17607
rm -f conftest.$ac_objext
17608
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17609
  (eval $ac_compile) 2>conftest.er1
17610
  ac_status=$?
17611
  grep -v '^ *+' conftest.er1 >conftest.err
17612
  rm -f conftest.er1
17613
  cat conftest.err >&5
17614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615
  (exit $ac_status); } &&
17616
         { ac_try='test -z "$ac_c_werror_flag"
17617
                         || test ! -s conftest.err'
17618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619
  (eval $ac_try) 2>&5
17620
  ac_status=$?
17621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622
  (exit $ac_status); }; } &&
17623
         { ac_try='test -s conftest.$ac_objext'
17624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625
  (eval $ac_try) 2>&5
17626
  ac_status=$?
17627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628
  (exit $ac_status); }; }; then
17629
 
17630
cat >>confdefs.h <<\_ACEOF
17631
#define HAVE_ST_C_IMPL 1
17632
_ACEOF
17633
 
17634
          echo "$as_me:$LINENO: result: yes" >&5
17635
echo "${ECHO_T}yes" >&6
17636
else
17637
  echo "$as_me: failed program was:" >&5
17638
sed 's/^/| /' conftest.$ac_ext >&5
17639
 
17640
echo "$as_me:$LINENO: result: no" >&5
17641
echo "${ECHO_T}no" >&6
17642
fi
17643
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17644
        ;;
17645
  rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
17646
  rs6000-*-*)           COREFILE=rs6000-core.lo ;;
17647
  powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
17648
  powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
17649
  powerpc-*-beos*)      ;;
17650
  powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17651
                        COREFILE='' ;;
17652
  powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
17653
  powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
17654
  s390*-*-*)            COREFILE=trad-core.lo ;;
17655
  sh*-*-netbsd* | sh*-*-openbsd*)
17656
        COREFILE=netbsd-core.lo
17657
        ;;
17658
  sparc-*-netbsd* | sparc*-*-openbsd*)
17659
        COREFILE=netbsd-core.lo
17660
        ;;
17661
  tahoe-*-*)
17662
        COREFILE=trad-core.lo
17663
        TRAD_HEADER='"hosts/tahoe.h"'
17664
        ;;
17665
  vax-*-netbsd* | vax-*-openbsd*)
17666
        COREFILE=netbsd-core.lo
17667
        ;;
17668
  vax-*-ultrix2*)
17669
        COREFILE=trad-core.lo
17670
        TRAD_HEADER='"hosts/vaxult2.h"'
17671
        ;;
17672
  vax-*-ultrix*)
17673
        COREFILE=trad-core.lo
17674
        TRAD_HEADER='"hosts/vaxult2.h"'
17675
        ;;
17676
  vax-*-linux-*)
17677
        COREFILE=trad-core.lo
17678
        TRAD_HEADER='"hosts/vaxlinux.h"'
17679
        ;;
17680
  vax-*-*)
17681
        COREFILE=trad-core.lo
17682
        TRAD_HEADER='"hosts/vaxbsd.h"'
17683
        ;;
17684
  x86_64-*-netbsd* | x86_64-*-openbsd*)
17685
        COREFILE=netbsd-core.lo
17686
        ;;
17687
  esac
17688
 
17689
  case "$COREFILE" in
17690
  aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
17691
  hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
17692
  hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
17693
  irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
17694
  lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
17695
  netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
17696
  osf-core.lo)          COREFLAG=-DOSF_CORE ;;
17697
  ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
17698
  rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
17699
  sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17700
  trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17701
  esac
17702
 
17703
  # ELF corefile support has several flavors, but all of
17704
  # them use something called 
17705
 
17706
for ac_header in sys/procfs.h
17707
do
17708
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17710
  echo "$as_me:$LINENO: checking for $ac_header" >&5
17711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17713
  echo $ECHO_N "(cached) $ECHO_C" >&6
17714
fi
17715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17717
else
17718
  # Is the header compilable?
17719
echo "$as_me:$LINENO: checking $ac_header usability" >&5
17720
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17721
cat >conftest.$ac_ext <<_ACEOF
17722
/* confdefs.h.  */
17723
_ACEOF
17724
cat confdefs.h >>conftest.$ac_ext
17725
cat >>conftest.$ac_ext <<_ACEOF
17726
/* end confdefs.h.  */
17727
$ac_includes_default
17728
#include <$ac_header>
17729
_ACEOF
17730
rm -f conftest.$ac_objext
17731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732
  (eval $ac_compile) 2>conftest.er1
17733
  ac_status=$?
17734
  grep -v '^ *+' conftest.er1 >conftest.err
17735
  rm -f conftest.er1
17736
  cat conftest.err >&5
17737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738
  (exit $ac_status); } &&
17739
         { ac_try='test -z "$ac_c_werror_flag"
17740
                         || test ! -s conftest.err'
17741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742
  (eval $ac_try) 2>&5
17743
  ac_status=$?
17744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745
  (exit $ac_status); }; } &&
17746
         { ac_try='test -s conftest.$ac_objext'
17747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748
  (eval $ac_try) 2>&5
17749
  ac_status=$?
17750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751
  (exit $ac_status); }; }; then
17752
  ac_header_compiler=yes
17753
else
17754
  echo "$as_me: failed program was:" >&5
17755
sed 's/^/| /' conftest.$ac_ext >&5
17756
 
17757
ac_header_compiler=no
17758
fi
17759
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17761
echo "${ECHO_T}$ac_header_compiler" >&6
17762
 
17763
# Is the header present?
17764
echo "$as_me:$LINENO: checking $ac_header presence" >&5
17765
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17766
cat >conftest.$ac_ext <<_ACEOF
17767
/* confdefs.h.  */
17768
_ACEOF
17769
cat confdefs.h >>conftest.$ac_ext
17770
cat >>conftest.$ac_ext <<_ACEOF
17771
/* end confdefs.h.  */
17772
#include <$ac_header>
17773
_ACEOF
17774
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17775
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17776
  ac_status=$?
17777
  grep -v '^ *+' conftest.er1 >conftest.err
17778
  rm -f conftest.er1
17779
  cat conftest.err >&5
17780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781
  (exit $ac_status); } >/dev/null; then
17782
  if test -s conftest.err; then
17783
    ac_cpp_err=$ac_c_preproc_warn_flag
17784
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17785
  else
17786
    ac_cpp_err=
17787
  fi
17788
else
17789
  ac_cpp_err=yes
17790
fi
17791
if test -z "$ac_cpp_err"; then
17792
  ac_header_preproc=yes
17793
else
17794
  echo "$as_me: failed program was:" >&5
17795
sed 's/^/| /' conftest.$ac_ext >&5
17796
 
17797
  ac_header_preproc=no
17798
fi
17799
rm -f conftest.err conftest.$ac_ext
17800
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17801
echo "${ECHO_T}$ac_header_preproc" >&6
17802
 
17803
# So?  What about this header?
17804
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17805
  yes:no: )
17806
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17807
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17808
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17809
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17810
    ac_header_preproc=yes
17811
    ;;
17812
  no:yes:* )
17813
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17814
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17815
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17816
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17817
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17818
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17819
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17820
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17821
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17822
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17823
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17824
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17825
    (
17826
      cat <<\_ASBOX
17827
## ------------------------------------------ ##
17828
## Report this to the AC_PACKAGE_NAME lists.  ##
17829
## ------------------------------------------ ##
17830
_ASBOX
17831
    ) |
17832
      sed "s/^/$as_me: WARNING:     /" >&2
17833
    ;;
17834
esac
17835
echo "$as_me:$LINENO: checking for $ac_header" >&5
17836
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17837
if eval "test \"\${$as_ac_Header+set}\" = set"; then
17838
  echo $ECHO_N "(cached) $ECHO_C" >&6
17839
else
17840
  eval "$as_ac_Header=\$ac_header_preproc"
17841
fi
17842
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17843
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17844
 
17845
fi
17846
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17847
  cat >>confdefs.h <<_ACEOF
17848
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17849
_ACEOF
17850
 
17851
fi
17852
 
17853
done
17854
 
17855
  if test "$ac_cv_header_sys_procfs_h" = yes; then
17856
    echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17857
echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17858
 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17859
  echo $ECHO_N "(cached) $ECHO_C" >&6
17860
else
17861
  cat >conftest.$ac_ext <<_ACEOF
17862
/* confdefs.h.  */
17863
_ACEOF
17864
cat confdefs.h >>conftest.$ac_ext
17865
cat >>conftest.$ac_ext <<_ACEOF
17866
/* end confdefs.h.  */
17867
 
17868
#define _SYSCALL32
17869
#include 
17870
int
17871
main ()
17872
{
17873
prstatus_t avar
17874
  ;
17875
  return 0;
17876
}
17877
_ACEOF
17878
rm -f conftest.$ac_objext
17879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880
  (eval $ac_compile) 2>conftest.er1
17881
  ac_status=$?
17882
  grep -v '^ *+' conftest.er1 >conftest.err
17883
  rm -f conftest.er1
17884
  cat conftest.err >&5
17885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886
  (exit $ac_status); } &&
17887
         { ac_try='test -z "$ac_c_werror_flag"
17888
                         || test ! -s conftest.err'
17889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890
  (eval $ac_try) 2>&5
17891
  ac_status=$?
17892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893
  (exit $ac_status); }; } &&
17894
         { ac_try='test -s conftest.$ac_objext'
17895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896
  (eval $ac_try) 2>&5
17897
  ac_status=$?
17898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899
  (exit $ac_status); }; }; then
17900
  bfd_cv_have_sys_procfs_type_prstatus_t=yes
17901
else
17902
  echo "$as_me: failed program was:" >&5
17903
sed 's/^/| /' conftest.$ac_ext >&5
17904
 
17905
bfd_cv_have_sys_procfs_type_prstatus_t=no
17906
 
17907
fi
17908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17909
fi
17910
 
17911
 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17912
 
17913
cat >>confdefs.h <<\_ACEOF
17914
#define HAVE_PRSTATUS_T 1
17915
_ACEOF
17916
 
17917
 fi
17918
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17919
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17920
 
17921
    echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17922
echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17923
 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17924
  echo $ECHO_N "(cached) $ECHO_C" >&6
17925
else
17926
  cat >conftest.$ac_ext <<_ACEOF
17927
/* confdefs.h.  */
17928
_ACEOF
17929
cat confdefs.h >>conftest.$ac_ext
17930
cat >>conftest.$ac_ext <<_ACEOF
17931
/* end confdefs.h.  */
17932
 
17933
#define _SYSCALL32
17934
#include 
17935
int
17936
main ()
17937
{
17938
prstatus32_t avar
17939
  ;
17940
  return 0;
17941
}
17942
_ACEOF
17943
rm -f conftest.$ac_objext
17944
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945
  (eval $ac_compile) 2>conftest.er1
17946
  ac_status=$?
17947
  grep -v '^ *+' conftest.er1 >conftest.err
17948
  rm -f conftest.er1
17949
  cat conftest.err >&5
17950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951
  (exit $ac_status); } &&
17952
         { ac_try='test -z "$ac_c_werror_flag"
17953
                         || test ! -s conftest.err'
17954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955
  (eval $ac_try) 2>&5
17956
  ac_status=$?
17957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958
  (exit $ac_status); }; } &&
17959
         { ac_try='test -s conftest.$ac_objext'
17960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961
  (eval $ac_try) 2>&5
17962
  ac_status=$?
17963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964
  (exit $ac_status); }; }; then
17965
  bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17966
else
17967
  echo "$as_me: failed program was:" >&5
17968
sed 's/^/| /' conftest.$ac_ext >&5
17969
 
17970
bfd_cv_have_sys_procfs_type_prstatus32_t=no
17971
 
17972
fi
17973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974
fi
17975
 
17976
 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17977
 
17978
cat >>confdefs.h <<\_ACEOF
17979
#define HAVE_PRSTATUS32_T 1
17980
_ACEOF
17981
 
17982
 fi
17983
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17984
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17985
 
17986
    echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17987
echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17988
 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17989
  echo $ECHO_N "(cached) $ECHO_C" >&6
17990
else
17991
  cat >conftest.$ac_ext <<_ACEOF
17992
/* confdefs.h.  */
17993
_ACEOF
17994
cat confdefs.h >>conftest.$ac_ext
17995
cat >>conftest.$ac_ext <<_ACEOF
17996
/* end confdefs.h.  */
17997
 
17998
#define _SYSCALL32
17999
#include 
18000
int
18001
main ()
18002
{
18003
prstatus_t avar; void* aref = (void*) &avar.pr_who
18004
  ;
18005
  return 0;
18006
}
18007
_ACEOF
18008
rm -f conftest.$ac_objext
18009
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18010
  (eval $ac_compile) 2>conftest.er1
18011
  ac_status=$?
18012
  grep -v '^ *+' conftest.er1 >conftest.err
18013
  rm -f conftest.er1
18014
  cat conftest.err >&5
18015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016
  (exit $ac_status); } &&
18017
         { ac_try='test -z "$ac_c_werror_flag"
18018
                         || test ! -s conftest.err'
18019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020
  (eval $ac_try) 2>&5
18021
  ac_status=$?
18022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023
  (exit $ac_status); }; } &&
18024
         { ac_try='test -s conftest.$ac_objext'
18025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026
  (eval $ac_try) 2>&5
18027
  ac_status=$?
18028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029
  (exit $ac_status); }; }; then
18030
  bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18031
else
18032
  echo "$as_me: failed program was:" >&5
18033
sed 's/^/| /' conftest.$ac_ext >&5
18034
 
18035
bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18036
 
18037
fi
18038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18039
fi
18040
 
18041
 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
18042
 
18043
cat >>confdefs.h <<\_ACEOF
18044
#define HAVE_PRSTATUS_T_PR_WHO 1
18045
_ACEOF
18046
 
18047
 fi
18048
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18049
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
18050
 
18051
    echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18052
echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18053
 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18054
  echo $ECHO_N "(cached) $ECHO_C" >&6
18055
else
18056
  cat >conftest.$ac_ext <<_ACEOF
18057
/* confdefs.h.  */
18058
_ACEOF
18059
cat confdefs.h >>conftest.$ac_ext
18060
cat >>conftest.$ac_ext <<_ACEOF
18061
/* end confdefs.h.  */
18062
 
18063
#define _SYSCALL32
18064
#include 
18065
int
18066
main ()
18067
{
18068
prstatus32_t avar; void* aref = (void*) &avar.pr_who
18069
  ;
18070
  return 0;
18071
}
18072
_ACEOF
18073
rm -f conftest.$ac_objext
18074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18075
  (eval $ac_compile) 2>conftest.er1
18076
  ac_status=$?
18077
  grep -v '^ *+' conftest.er1 >conftest.err
18078
  rm -f conftest.er1
18079
  cat conftest.err >&5
18080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081
  (exit $ac_status); } &&
18082
         { ac_try='test -z "$ac_c_werror_flag"
18083
                         || test ! -s conftest.err'
18084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085
  (eval $ac_try) 2>&5
18086
  ac_status=$?
18087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088
  (exit $ac_status); }; } &&
18089
         { ac_try='test -s conftest.$ac_objext'
18090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091
  (eval $ac_try) 2>&5
18092
  ac_status=$?
18093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094
  (exit $ac_status); }; }; then
18095
  bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18096
else
18097
  echo "$as_me: failed program was:" >&5
18098
sed 's/^/| /' conftest.$ac_ext >&5
18099
 
18100
bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18101
 
18102
fi
18103
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18104
fi
18105
 
18106
 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
18107
 
18108
cat >>confdefs.h <<\_ACEOF
18109
#define HAVE_PRSTATUS32_T_PR_WHO 1
18110
_ACEOF
18111
 
18112
 fi
18113
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18114
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
18115
 
18116
    echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18117
echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18118
 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18119
  echo $ECHO_N "(cached) $ECHO_C" >&6
18120
else
18121
  cat >conftest.$ac_ext <<_ACEOF
18122
/* confdefs.h.  */
18123
_ACEOF
18124
cat confdefs.h >>conftest.$ac_ext
18125
cat >>conftest.$ac_ext <<_ACEOF
18126
/* end confdefs.h.  */
18127
 
18128
#define _SYSCALL32
18129
#include 
18130
int
18131
main ()
18132
{
18133
pstatus_t avar
18134
  ;
18135
  return 0;
18136
}
18137
_ACEOF
18138
rm -f conftest.$ac_objext
18139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140
  (eval $ac_compile) 2>conftest.er1
18141
  ac_status=$?
18142
  grep -v '^ *+' conftest.er1 >conftest.err
18143
  rm -f conftest.er1
18144
  cat conftest.err >&5
18145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146
  (exit $ac_status); } &&
18147
         { ac_try='test -z "$ac_c_werror_flag"
18148
                         || test ! -s conftest.err'
18149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150
  (eval $ac_try) 2>&5
18151
  ac_status=$?
18152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153
  (exit $ac_status); }; } &&
18154
         { ac_try='test -s conftest.$ac_objext'
18155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156
  (eval $ac_try) 2>&5
18157
  ac_status=$?
18158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159
  (exit $ac_status); }; }; then
18160
  bfd_cv_have_sys_procfs_type_pstatus_t=yes
18161
else
18162
  echo "$as_me: failed program was:" >&5
18163
sed 's/^/| /' conftest.$ac_ext >&5
18164
 
18165
bfd_cv_have_sys_procfs_type_pstatus_t=no
18166
 
18167
fi
18168
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18169
fi
18170
 
18171
 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18172
 
18173
cat >>confdefs.h <<\_ACEOF
18174
#define HAVE_PSTATUS_T 1
18175
_ACEOF
18176
 
18177
 fi
18178
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18179
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18180
 
18181
    echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18182
echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18183
 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18184
  echo $ECHO_N "(cached) $ECHO_C" >&6
18185
else
18186
  cat >conftest.$ac_ext <<_ACEOF
18187
/* confdefs.h.  */
18188
_ACEOF
18189
cat confdefs.h >>conftest.$ac_ext
18190
cat >>conftest.$ac_ext <<_ACEOF
18191
/* end confdefs.h.  */
18192
 
18193
#define _SYSCALL32
18194
#include 
18195
int
18196
main ()
18197
{
18198
pxstatus_t avar
18199
  ;
18200
  return 0;
18201
}
18202
_ACEOF
18203
rm -f conftest.$ac_objext
18204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18205
  (eval $ac_compile) 2>conftest.er1
18206
  ac_status=$?
18207
  grep -v '^ *+' conftest.er1 >conftest.err
18208
  rm -f conftest.er1
18209
  cat conftest.err >&5
18210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211
  (exit $ac_status); } &&
18212
         { ac_try='test -z "$ac_c_werror_flag"
18213
                         || test ! -s conftest.err'
18214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215
  (eval $ac_try) 2>&5
18216
  ac_status=$?
18217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218
  (exit $ac_status); }; } &&
18219
         { ac_try='test -s conftest.$ac_objext'
18220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221
  (eval $ac_try) 2>&5
18222
  ac_status=$?
18223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224
  (exit $ac_status); }; }; then
18225
  bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18226
else
18227
  echo "$as_me: failed program was:" >&5
18228
sed 's/^/| /' conftest.$ac_ext >&5
18229
 
18230
bfd_cv_have_sys_procfs_type_pxstatus_t=no
18231
 
18232
fi
18233
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18234
fi
18235
 
18236
 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
18237
 
18238
cat >>confdefs.h <<\_ACEOF
18239
#define HAVE_PXSTATUS_T 1
18240
_ACEOF
18241
 
18242
 fi
18243
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18244
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
18245
 
18246
    echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18247
echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18248
 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18249
  echo $ECHO_N "(cached) $ECHO_C" >&6
18250
else
18251
  cat >conftest.$ac_ext <<_ACEOF
18252
/* confdefs.h.  */
18253
_ACEOF
18254
cat confdefs.h >>conftest.$ac_ext
18255
cat >>conftest.$ac_ext <<_ACEOF
18256
/* end confdefs.h.  */
18257
 
18258
#define _SYSCALL32
18259
#include 
18260
int
18261
main ()
18262
{
18263
pstatus32_t avar
18264
  ;
18265
  return 0;
18266
}
18267
_ACEOF
18268
rm -f conftest.$ac_objext
18269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270
  (eval $ac_compile) 2>conftest.er1
18271
  ac_status=$?
18272
  grep -v '^ *+' conftest.er1 >conftest.err
18273
  rm -f conftest.er1
18274
  cat conftest.err >&5
18275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276
  (exit $ac_status); } &&
18277
         { ac_try='test -z "$ac_c_werror_flag"
18278
                         || test ! -s conftest.err'
18279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280
  (eval $ac_try) 2>&5
18281
  ac_status=$?
18282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283
  (exit $ac_status); }; } &&
18284
         { ac_try='test -s conftest.$ac_objext'
18285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286
  (eval $ac_try) 2>&5
18287
  ac_status=$?
18288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289
  (exit $ac_status); }; }; then
18290
  bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18291
else
18292
  echo "$as_me: failed program was:" >&5
18293
sed 's/^/| /' conftest.$ac_ext >&5
18294
 
18295
bfd_cv_have_sys_procfs_type_pstatus32_t=no
18296
 
18297
fi
18298
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299
fi
18300
 
18301
 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
18302
 
18303
cat >>confdefs.h <<\_ACEOF
18304
#define HAVE_PSTATUS32_T 1
18305
_ACEOF
18306
 
18307
 fi
18308
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18309
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
18310
 
18311
    echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18312
echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18313
 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18314
  echo $ECHO_N "(cached) $ECHO_C" >&6
18315
else
18316
  cat >conftest.$ac_ext <<_ACEOF
18317
/* confdefs.h.  */
18318
_ACEOF
18319
cat confdefs.h >>conftest.$ac_ext
18320
cat >>conftest.$ac_ext <<_ACEOF
18321
/* end confdefs.h.  */
18322
 
18323
#define _SYSCALL32
18324
#include 
18325
int
18326
main ()
18327
{
18328
prpsinfo_t avar
18329
  ;
18330
  return 0;
18331
}
18332
_ACEOF
18333
rm -f conftest.$ac_objext
18334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18335
  (eval $ac_compile) 2>conftest.er1
18336
  ac_status=$?
18337
  grep -v '^ *+' conftest.er1 >conftest.err
18338
  rm -f conftest.er1
18339
  cat conftest.err >&5
18340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341
  (exit $ac_status); } &&
18342
         { ac_try='test -z "$ac_c_werror_flag"
18343
                         || test ! -s conftest.err'
18344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345
  (eval $ac_try) 2>&5
18346
  ac_status=$?
18347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348
  (exit $ac_status); }; } &&
18349
         { ac_try='test -s conftest.$ac_objext'
18350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351
  (eval $ac_try) 2>&5
18352
  ac_status=$?
18353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354
  (exit $ac_status); }; }; then
18355
  bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18356
else
18357
  echo "$as_me: failed program was:" >&5
18358
sed 's/^/| /' conftest.$ac_ext >&5
18359
 
18360
bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18361
 
18362
fi
18363
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18364
fi
18365
 
18366
 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
18367
 
18368
cat >>confdefs.h <<\_ACEOF
18369
#define HAVE_PRPSINFO_T 1
18370
_ACEOF
18371
 
18372
 fi
18373
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18374
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
18375
 
18376
    echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18377
echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18378
 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18379
  echo $ECHO_N "(cached) $ECHO_C" >&6
18380
else
18381
  cat >conftest.$ac_ext <<_ACEOF
18382
/* confdefs.h.  */
18383
_ACEOF
18384
cat confdefs.h >>conftest.$ac_ext
18385
cat >>conftest.$ac_ext <<_ACEOF
18386
/* end confdefs.h.  */
18387
 
18388
#define _SYSCALL32
18389
#include 
18390
int
18391
main ()
18392
{
18393
prpsinfo32_t avar
18394
  ;
18395
  return 0;
18396
}
18397
_ACEOF
18398
rm -f conftest.$ac_objext
18399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18400
  (eval $ac_compile) 2>conftest.er1
18401
  ac_status=$?
18402
  grep -v '^ *+' conftest.er1 >conftest.err
18403
  rm -f conftest.er1
18404
  cat conftest.err >&5
18405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406
  (exit $ac_status); } &&
18407
         { ac_try='test -z "$ac_c_werror_flag"
18408
                         || test ! -s conftest.err'
18409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410
  (eval $ac_try) 2>&5
18411
  ac_status=$?
18412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413
  (exit $ac_status); }; } &&
18414
         { ac_try='test -s conftest.$ac_objext'
18415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416
  (eval $ac_try) 2>&5
18417
  ac_status=$?
18418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419
  (exit $ac_status); }; }; then
18420
  bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18421
else
18422
  echo "$as_me: failed program was:" >&5
18423
sed 's/^/| /' conftest.$ac_ext >&5
18424
 
18425
bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18426
 
18427
fi
18428
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18429
fi
18430
 
18431
 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
18432
 
18433
cat >>confdefs.h <<\_ACEOF
18434
#define HAVE_PRPSINFO32_T 1
18435
_ACEOF
18436
 
18437
 fi
18438
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18439
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
18440
 
18441
    echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18442
echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18443
 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18444
  echo $ECHO_N "(cached) $ECHO_C" >&6
18445
else
18446
  cat >conftest.$ac_ext <<_ACEOF
18447
/* confdefs.h.  */
18448
_ACEOF
18449
cat confdefs.h >>conftest.$ac_ext
18450
cat >>conftest.$ac_ext <<_ACEOF
18451
/* end confdefs.h.  */
18452
 
18453
#define _SYSCALL32
18454
#include 
18455
int
18456
main ()
18457
{
18458
psinfo_t avar
18459
  ;
18460
  return 0;
18461
}
18462
_ACEOF
18463
rm -f conftest.$ac_objext
18464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18465
  (eval $ac_compile) 2>conftest.er1
18466
  ac_status=$?
18467
  grep -v '^ *+' conftest.er1 >conftest.err
18468
  rm -f conftest.er1
18469
  cat conftest.err >&5
18470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471
  (exit $ac_status); } &&
18472
         { ac_try='test -z "$ac_c_werror_flag"
18473
                         || test ! -s conftest.err'
18474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475
  (eval $ac_try) 2>&5
18476
  ac_status=$?
18477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478
  (exit $ac_status); }; } &&
18479
         { ac_try='test -s conftest.$ac_objext'
18480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481
  (eval $ac_try) 2>&5
18482
  ac_status=$?
18483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484
  (exit $ac_status); }; }; then
18485
  bfd_cv_have_sys_procfs_type_psinfo_t=yes
18486
else
18487
  echo "$as_me: failed program was:" >&5
18488
sed 's/^/| /' conftest.$ac_ext >&5
18489
 
18490
bfd_cv_have_sys_procfs_type_psinfo_t=no
18491
 
18492
fi
18493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18494
fi
18495
 
18496
 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18497
 
18498
cat >>confdefs.h <<\_ACEOF
18499
#define HAVE_PSINFO_T 1
18500
_ACEOF
18501
 
18502
 fi
18503
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18504
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18505
 
18506
    echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18507
echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18508
 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18509
  echo $ECHO_N "(cached) $ECHO_C" >&6
18510
else
18511
  cat >conftest.$ac_ext <<_ACEOF
18512
/* confdefs.h.  */
18513
_ACEOF
18514
cat confdefs.h >>conftest.$ac_ext
18515
cat >>conftest.$ac_ext <<_ACEOF
18516
/* end confdefs.h.  */
18517
 
18518
#define _SYSCALL32
18519
#include 
18520
int
18521
main ()
18522
{
18523
psinfo32_t avar
18524
  ;
18525
  return 0;
18526
}
18527
_ACEOF
18528
rm -f conftest.$ac_objext
18529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530
  (eval $ac_compile) 2>conftest.er1
18531
  ac_status=$?
18532
  grep -v '^ *+' conftest.er1 >conftest.err
18533
  rm -f conftest.er1
18534
  cat conftest.err >&5
18535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536
  (exit $ac_status); } &&
18537
         { ac_try='test -z "$ac_c_werror_flag"
18538
                         || test ! -s conftest.err'
18539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540
  (eval $ac_try) 2>&5
18541
  ac_status=$?
18542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543
  (exit $ac_status); }; } &&
18544
         { ac_try='test -s conftest.$ac_objext'
18545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546
  (eval $ac_try) 2>&5
18547
  ac_status=$?
18548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549
  (exit $ac_status); }; }; then
18550
  bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18551
else
18552
  echo "$as_me: failed program was:" >&5
18553
sed 's/^/| /' conftest.$ac_ext >&5
18554
 
18555
bfd_cv_have_sys_procfs_type_psinfo32_t=no
18556
 
18557
fi
18558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18559
fi
18560
 
18561
 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18562
 
18563
cat >>confdefs.h <<\_ACEOF
18564
#define HAVE_PSINFO32_T 1
18565
_ACEOF
18566
 
18567
 fi
18568
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18569
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18570
 
18571
    echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18572
echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18573
 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18574
  echo $ECHO_N "(cached) $ECHO_C" >&6
18575
else
18576
  cat >conftest.$ac_ext <<_ACEOF
18577
/* confdefs.h.  */
18578
_ACEOF
18579
cat confdefs.h >>conftest.$ac_ext
18580
cat >>conftest.$ac_ext <<_ACEOF
18581
/* end confdefs.h.  */
18582
 
18583
#define _SYSCALL32
18584
#include 
18585
int
18586
main ()
18587
{
18588
lwpstatus_t avar
18589
  ;
18590
  return 0;
18591
}
18592
_ACEOF
18593
rm -f conftest.$ac_objext
18594
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595
  (eval $ac_compile) 2>conftest.er1
18596
  ac_status=$?
18597
  grep -v '^ *+' conftest.er1 >conftest.err
18598
  rm -f conftest.er1
18599
  cat conftest.err >&5
18600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601
  (exit $ac_status); } &&
18602
         { ac_try='test -z "$ac_c_werror_flag"
18603
                         || test ! -s conftest.err'
18604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605
  (eval $ac_try) 2>&5
18606
  ac_status=$?
18607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608
  (exit $ac_status); }; } &&
18609
         { ac_try='test -s conftest.$ac_objext'
18610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611
  (eval $ac_try) 2>&5
18612
  ac_status=$?
18613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614
  (exit $ac_status); }; }; then
18615
  bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18616
else
18617
  echo "$as_me: failed program was:" >&5
18618
sed 's/^/| /' conftest.$ac_ext >&5
18619
 
18620
bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18621
 
18622
fi
18623
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18624
fi
18625
 
18626
 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18627
 
18628
cat >>confdefs.h <<\_ACEOF
18629
#define HAVE_LWPSTATUS_T 1
18630
_ACEOF
18631
 
18632
 fi
18633
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18634
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18635
 
18636
    echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18637
echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18638
 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18639
  echo $ECHO_N "(cached) $ECHO_C" >&6
18640
else
18641
  cat >conftest.$ac_ext <<_ACEOF
18642
/* confdefs.h.  */
18643
_ACEOF
18644
cat confdefs.h >>conftest.$ac_ext
18645
cat >>conftest.$ac_ext <<_ACEOF
18646
/* end confdefs.h.  */
18647
 
18648
#define _SYSCALL32
18649
#include 
18650
int
18651
main ()
18652
{
18653
lwpxstatus_t avar
18654
  ;
18655
  return 0;
18656
}
18657
_ACEOF
18658
rm -f conftest.$ac_objext
18659
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18660
  (eval $ac_compile) 2>conftest.er1
18661
  ac_status=$?
18662
  grep -v '^ *+' conftest.er1 >conftest.err
18663
  rm -f conftest.er1
18664
  cat conftest.err >&5
18665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666
  (exit $ac_status); } &&
18667
         { ac_try='test -z "$ac_c_werror_flag"
18668
                         || test ! -s conftest.err'
18669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670
  (eval $ac_try) 2>&5
18671
  ac_status=$?
18672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673
  (exit $ac_status); }; } &&
18674
         { ac_try='test -s conftest.$ac_objext'
18675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676
  (eval $ac_try) 2>&5
18677
  ac_status=$?
18678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679
  (exit $ac_status); }; }; then
18680
  bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18681
else
18682
  echo "$as_me: failed program was:" >&5
18683
sed 's/^/| /' conftest.$ac_ext >&5
18684
 
18685
bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18686
 
18687
fi
18688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689
fi
18690
 
18691
 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18692
 
18693
cat >>confdefs.h <<\_ACEOF
18694
#define HAVE_LWPXSTATUS_T 1
18695
_ACEOF
18696
 
18697
 fi
18698
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18699
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18700
 
18701
    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18702
echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18703
 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18704
  echo $ECHO_N "(cached) $ECHO_C" >&6
18705
else
18706
  cat >conftest.$ac_ext <<_ACEOF
18707
/* confdefs.h.  */
18708
_ACEOF
18709
cat confdefs.h >>conftest.$ac_ext
18710
cat >>conftest.$ac_ext <<_ACEOF
18711
/* end confdefs.h.  */
18712
 
18713
#define _SYSCALL32
18714
#include 
18715
int
18716
main ()
18717
{
18718
lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18719
  ;
18720
  return 0;
18721
}
18722
_ACEOF
18723
rm -f conftest.$ac_objext
18724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18725
  (eval $ac_compile) 2>conftest.er1
18726
  ac_status=$?
18727
  grep -v '^ *+' conftest.er1 >conftest.err
18728
  rm -f conftest.er1
18729
  cat conftest.err >&5
18730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731
  (exit $ac_status); } &&
18732
         { ac_try='test -z "$ac_c_werror_flag"
18733
                         || test ! -s conftest.err'
18734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735
  (eval $ac_try) 2>&5
18736
  ac_status=$?
18737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738
  (exit $ac_status); }; } &&
18739
         { ac_try='test -s conftest.$ac_objext'
18740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741
  (eval $ac_try) 2>&5
18742
  ac_status=$?
18743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744
  (exit $ac_status); }; }; then
18745
  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18746
else
18747
  echo "$as_me: failed program was:" >&5
18748
sed 's/^/| /' conftest.$ac_ext >&5
18749
 
18750
bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18751
 
18752
fi
18753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18754
fi
18755
 
18756
 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18757
 
18758
cat >>confdefs.h <<\_ACEOF
18759
#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18760
_ACEOF
18761
 
18762
 fi
18763
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18764
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18765
 
18766
    echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18767
echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18768
 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18769
  echo $ECHO_N "(cached) $ECHO_C" >&6
18770
else
18771
  cat >conftest.$ac_ext <<_ACEOF
18772
/* confdefs.h.  */
18773
_ACEOF
18774
cat confdefs.h >>conftest.$ac_ext
18775
cat >>conftest.$ac_ext <<_ACEOF
18776
/* end confdefs.h.  */
18777
 
18778
#define _SYSCALL32
18779
#include 
18780
int
18781
main ()
18782
{
18783
lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
18784
  ;
18785
  return 0;
18786
}
18787
_ACEOF
18788
rm -f conftest.$ac_objext
18789
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790
  (eval $ac_compile) 2>conftest.er1
18791
  ac_status=$?
18792
  grep -v '^ *+' conftest.er1 >conftest.err
18793
  rm -f conftest.er1
18794
  cat conftest.err >&5
18795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796
  (exit $ac_status); } &&
18797
         { ac_try='test -z "$ac_c_werror_flag"
18798
                         || test ! -s conftest.err'
18799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800
  (eval $ac_try) 2>&5
18801
  ac_status=$?
18802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803
  (exit $ac_status); }; } &&
18804
         { ac_try='test -s conftest.$ac_objext'
18805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806
  (eval $ac_try) 2>&5
18807
  ac_status=$?
18808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809
  (exit $ac_status); }; }; then
18810
  bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18811
else
18812
  echo "$as_me: failed program was:" >&5
18813
sed 's/^/| /' conftest.$ac_ext >&5
18814
 
18815
bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18816
 
18817
fi
18818
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18819
fi
18820
 
18821
 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18822
 
18823
cat >>confdefs.h <<\_ACEOF
18824
#define HAVE_LWPSTATUS_T_PR_REG 1
18825
_ACEOF
18826
 
18827
 fi
18828
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18829
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18830
 
18831
    echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18832
echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18833
 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18834
  echo $ECHO_N "(cached) $ECHO_C" >&6
18835
else
18836
  cat >conftest.$ac_ext <<_ACEOF
18837
/* confdefs.h.  */
18838
_ACEOF
18839
cat confdefs.h >>conftest.$ac_ext
18840
cat >>conftest.$ac_ext <<_ACEOF
18841
/* end confdefs.h.  */
18842
 
18843
#define _SYSCALL32
18844
#include 
18845
int
18846
main ()
18847
{
18848
win32_pstatus_t avar
18849
  ;
18850
  return 0;
18851
}
18852
_ACEOF
18853
rm -f conftest.$ac_objext
18854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855
  (eval $ac_compile) 2>conftest.er1
18856
  ac_status=$?
18857
  grep -v '^ *+' conftest.er1 >conftest.err
18858
  rm -f conftest.er1
18859
  cat conftest.err >&5
18860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861
  (exit $ac_status); } &&
18862
         { ac_try='test -z "$ac_c_werror_flag"
18863
                         || test ! -s conftest.err'
18864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865
  (eval $ac_try) 2>&5
18866
  ac_status=$?
18867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868
  (exit $ac_status); }; } &&
18869
         { ac_try='test -s conftest.$ac_objext'
18870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871
  (eval $ac_try) 2>&5
18872
  ac_status=$?
18873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874
  (exit $ac_status); }; }; then
18875
  bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18876
else
18877
  echo "$as_me: failed program was:" >&5
18878
sed 's/^/| /' conftest.$ac_ext >&5
18879
 
18880
bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18881
 
18882
fi
18883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884
fi
18885
 
18886
 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18887
 
18888
cat >>confdefs.h <<\_ACEOF
18889
#define HAVE_WIN32_PSTATUS_T 1
18890
_ACEOF
18891
 
18892
 fi
18893
 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18894
echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18895
 
18896
  fi
18897
fi
18898
 
18899
 
18900
if test -n "$TRAD_HEADER"; then
18901
 
18902
cat >>confdefs.h <<_ACEOF
18903
#define TRAD_HEADER $TRAD_HEADER
18904
_ACEOF
18905
 
18906
fi
18907
 
18908
# Horrible hacks to build DLLs on Windows.
18909
WIN32LDFLAGS=
18910
WIN32LIBADD=
18911
case "${host}" in
18912
*-*-cygwin*)
18913
  if test "$enable_shared" = "yes"; then
18914
    WIN32LDFLAGS="-no-undefined"
18915
    WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18916
  fi
18917
  ;;
18918
*-*-linux*)
18919
  # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18920
  # libiberty.a.
18921
  x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18922
  if test -n "$x"; then
18923
    WIN32LIBADD="-L../libiberty/pic -liberty"
18924
  fi
18925
  ;;
18926
esac
18927
 
18928
 
18929
 
18930
# target stuff:
18931
 
18932
# Canonicalize the secondary target names.
18933
if test -n "$enable_targets" ; then
18934
    for targ in `echo $enable_targets | sed 's/,/ /g'`
18935
    do
18936
        result=`$ac_config_sub $targ 2>/dev/null`
18937
        if test -n "$result" ; then
18938
            canon_targets="$canon_targets $result"
18939
        else
18940
            # Allow targets that config.sub doesn't recognize, like "all".
18941
            canon_targets="$canon_targets $targ"
18942
        fi
18943
    done
18944
fi
18945
 
18946
all_targets=false
18947
defvec=
18948
selvecs=
18949
assocvecs=
18950
selarchs=
18951
TDEFINES=
18952
for targ in $target $canon_targets
18953
do
18954
    if test "x$targ" = "xall"; then
18955
        all_targets=true
18956
        assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18957
    else
18958
        . $srcdir/config.bfd
18959
        if test "x$targ" = "x$target"; then
18960
            defvec=$targ_defvec
18961
        fi
18962
        selvecs="$selvecs $targ_defvec $targ_selvecs"
18963
        selarchs="$selarchs $targ_archs"
18964
        TDEFINES="$TDEFINES $targ_cflags"
18965
    fi
18966
done
18967
 
18968
 
18969
# This processing still needs to be done if we're to decide properly whether
18970
# 64-bit support needs to be compiled in.  Currently, it will be included if
18971
# the default or any other explicitly requested target requires it; it
18972
# will not be included on a 32-bit host if no 64-bit target is requested, and
18973
# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18974
# used.
18975
 
18976
# uniq the default and selected vectors in all the configured targets.
18977
f=""
18978
for i in $selvecs ; do
18979
    case " $f " in
18980
    *" $i "*) ;;
18981
    *) f="$f $i" ;;
18982
    esac
18983
done
18984
selvecs="$f"
18985
 
18986
 
18987
# uniq the associated vectors in all the configured targets.
18988
f=""
18989
for i in $assocvecs ; do
18990
    case " $f " in
18991
    *" $i "*) ;;
18992
    *) f="$f $i" ;;
18993
    esac
18994
done
18995
assocvecs="$f"
18996
 
18997
 
18998
# uniq the architectures in all the configured targets.
18999
f=""
19000
for i in $selarchs ; do
19001
    case " $f " in
19002
    *" $i "*) ;;
19003
    *) f="$f $i" ;;
19004
    esac
19005
done
19006
selarchs="$f"
19007
 
19008
# Target backend .o files.
19009
tb=
19010
 
19011
elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
19012
 
19013
for vec in $selvecs
19014
do
19015
    target_size=32
19016
    case "$vec" in
19017
    # This list is alphabetized to make it easy to compare
19018
    # with the two vector lists in targets.c.  For the same reason,
19019
    # use one entry per line, even though this leads to long lines.
19020
    a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
19021
    aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19022
    aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
19023
    aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
19024
    aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
19025
    apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
19026
    arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19027
    arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19028
    arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19029
    arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19030
    arm_wince_pe_big_vec)       tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19031
    arm_wince_pe_little_vec)    tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19032
    arm_wince_pei_big_vec)      tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19033
    arm_wince_pei_little_vec)   tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19034
    armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
19035
    armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
19036
    armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
19037
    armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19038
    armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19039
    armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19040
    armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19041
    b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
19042
    b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
19043
    bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
19044
    bfd_efi_bsdrv_ia32_vec)     tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19045
    bfd_efi_rtdrv_ia32_vec)     tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
19046
    bfd_efi_app_x86_64_vec)     tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19047
    bfd_efi_bsdrv_x86_64_vec)   tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19048
    bfd_efi_rtdrv_x86_64_vec)   tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19049
    bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19050
    bfd_efi_bsdrv_ia64_vec)     tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19051
    bfd_efi_rtdrv_ia64_vec)     tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19052
    bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
19053
    bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
19054
    bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19055
    bfd_elf32_bfinfdpic_vec)    tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
19056
    bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19057
    bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19058
    bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19059
    bfd_elf32_bigarm_symbian_vec)
19060
                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19061
    bfd_elf32_bigarm_vxworks_vec)
19062
                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19063
    bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19064
    bfd_elf32_bigmips_vxworks_vec)
19065
                                tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19066
    bfd_elf32_cr16_vec)         tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
19067
    bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
19068
    bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19069
    bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
19070
    bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19071
    bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
19072
    bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
19073
    bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
19074
    bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19075
    bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
19076
    bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
19077
    bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19078
    bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19079
    bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
19080
    bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
19081
    bfd_elf32_i386_dragonfly_vec)
19082
                                tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19083
    bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19084
    bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19085
    bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19086
    bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19087
    bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
19088
    bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
19089
    bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
19090
    bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
19091
    bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
19092
    bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
19093
    bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
19094
    bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
19095
    bfd_elf32_littlearm_symbian_vec)
19096
                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19097
    bfd_elf32_littlearm_vxworks_vec)
19098
                                tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19099
    bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19100
    bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19101
    bfd_elf32_littlemips_vxworks_vec)
19102
                                tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19103
    bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
19104
    bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19105
    bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19106
    bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19107
    bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19108
    bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19109
    bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19110
    bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19111
    bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19112
    bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19113
    bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19114
    bfd_elf32_mep_vec)          tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19115
    bfd_elf32_mep_little_vec)   tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19116
    bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19117
    bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
19118
    bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
19119
    bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
19120
    bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19121
    bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19122
    bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19123
    bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19124
    bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
19125
    bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
19126
    bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
19127
    bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19128
    bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19129
    bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19130
    bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
19131
    bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32.lo $elf" ;;
19132
    bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32.lo $elf" ;;
19133
    # FIXME: We include cofflink.lo not because it's needed for
19134
    # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19135
    # which needs it but does not list it.  Should be fixed in right place.
19136
    bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19137
    bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19138
    bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19139
    bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19140
    bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19141
    bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19142
    bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19143
    bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19144
    bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19145
    bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19146
    bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19147
    bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19148
    bfd_elf32_shlvxworks_vec)   tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19149
    bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19150
    bfd_elf32_shvxworks_vec)    tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19151
    bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19152
    bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19153
    bfd_elf32_spu_vec)          tb="$tb elf32-spu.lo elf32.lo $elf" ;;
19154
    bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19155
    bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19156
    bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
19157
    bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
19158
    bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
19159
    bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
19160
    bfd_elf32_xc16x_vec)                tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
19161
    bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19162
    bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19163
    bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19164
    bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19165
    bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19166
    bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19167
    bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19168
    bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19169
    bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19170
    bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19171
    bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19172
    bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19173
    bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19174
    bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
19175
    bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19176
    bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19177
    bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
19178
    bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19179
    bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19180
    bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19181
    bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19182
    bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19183
    bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19184
    bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19185
    bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
19186
    bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19187
    bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19188
    bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19189
    bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
19190
    bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
19191
    bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19192
    bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19193
    bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19194
    bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19195
    cris_aout_vec)              tb="$tb aout-cris.lo" ;;
19196
    demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
19197
    ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19198
    ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19199
    ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19200
    ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
19201
    go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
19202
    go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
19203
    h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
19204
    h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
19205
    host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
19206
    hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
19207
    hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
19208
    i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
19209
    i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
19210
    i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
19211
    x86_64coff_vec)             tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
19212
    i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
19213
    i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
19214
    i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
19215
    i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19216
    i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19217
    i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
19218
    i386msdos_vec)              tb="$tb i386msdos.lo" ;;
19219
    i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
19220
    i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
19221
    i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19222
    i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
19223
    x86_64pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19224
    x86_64pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19225
    i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
19226
    icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
19227
    icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
19228
    ieee_vec)                   tb="$tb ieee.lo" ;;
19229
    m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19230
    m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
19231
    m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
19232
    m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19233
    m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
19234
    m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
19235
    m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
19236
    m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
19237
    m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
19238
    m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
19239
    maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
19240
    mach_o_be_vec)              tb="$tb mach-o.lo" ;;
19241
    mach_o_le_vec)              tb="$tb mach-o.lo" ;;
19242
    mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
19243
    mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19244
    mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19245
    mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19246
    mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19247
    mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19248
    mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
19249
    newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
19250
    nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
19251
    nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
19252
    nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
19253
    nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
19254
    or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
19255
    pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
19256
    pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
19257
    pef_vec)                    tb="$tb pef.lo" ;;
19258
    pef_xlib_vec)               tb="$tb pef.lo" ;;
19259
    pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
19260
    pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19261
    ppcboot_vec)                tb="$tb ppcboot.lo" ;;
19262
    riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
19263
    rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
19264
    rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
19265
    shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
19266
    shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
19267
    shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
19268
    shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
19269
    shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19270
    shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19271
    som_vec)                    tb="$tb som.lo" ;;
19272
    sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
19273
    sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
19274
    sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
19275
    sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19276
    sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19277
    sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
19278
    sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
19279
    sym_vec)                    tb="$tb xsym.lo" ;;
19280
    tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
19281
    tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
19282
    tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
19283
    tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19284
    tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
19285
    tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19286
    tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
19287
    tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
19288
    tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19289
    tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
19290
    tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19291
    tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
19292
    tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
19293
    tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
19294
    tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
19295
    vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
19296
    vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
19297
    vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
19298
    versados_vec)               tb="$tb versados.lo" ;;
19299
    vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
19300
    vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19301
    w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
19302
    we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
19303
    z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
19304
    z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
19305
 
19306
    # These appear out of order in targets.c
19307
    srec_vec)                   tb="$tb srec.lo" ;;
19308
    symbolsrec_vec)             tb="$tb srec.lo" ;;
19309
    tekhex_vec)                 tb="$tb tekhex.lo" ;;
19310
    cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
19311
    cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
19312
 
19313
    "")                 ;;
19314
    *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19315
echo "$as_me: error: *** unknown target vector $vec" >&2;}
19316
   { (exit 1); exit 1; }; } ;;
19317
    esac
19318
 
19319
    if test ${target_size} = 64; then
19320
        target64=true
19321
    fi
19322
    if test x"${vec}" = x"${defvec}"; then
19323
        bfd_default_target_size=${target_size}
19324
    fi
19325
done
19326
 
19327
# Target architecture .o files.
19328
# A couple of CPUs use shorter file names to avoid problems on DOS
19329
# filesystems.
19330
ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
19331
 
19332
# Weed out duplicate .o files.
19333
f=""
19334
for i in $tb ; do
19335
    case " $f " in
19336
    *" $i "*) ;;
19337
    *) f="$f $i" ;;
19338
    esac
19339
done
19340
tb="$f"
19341
 
19342
f=""
19343
for i in $ta ; do
19344
    case " $f " in
19345
    *" $i "*) ;;
19346
    *) f="$f $i" ;;
19347
    esac
19348
done
19349
ta="$f"
19350
 
19351
bfd_backends="$tb"
19352
bfd_machines="$ta"
19353
 
19354
if test x${all_targets} = xtrue ; then
19355
  bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19356
  bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19357
  selvecs=
19358
  havevecs=
19359
  selarchs=
19360
  test -n "$assocvecs" &&
19361
    assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19362
else    # all_targets is true
19363
  # Only set these if they will be nonempty, for the clever echo.
19364
  havevecs=
19365
  assocvecs=
19366
  test -n "$selvecs" &&
19367
    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19368
  test -n "$selvecs" &&
19369
    selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19370
  test -n "$selarchs" &&
19371
    selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19372
fi      # all_targets is true
19373
 
19374
case ${host64}-${target64}-${want64} in
19375
  *true*)
19376
    wordsize=64
19377
    bfd64_libs='$(BFD64_LIBS)'
19378
    all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
19379
    if test $BFD_HOST_64_BIT_DEFINED = 0; then
19380
      { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19381
echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19382
      { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19383
echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
19384
    fi
19385
    if test -n "$GCC" ; then
19386
       bad_64bit_gcc=no;
19387
       echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19388
echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
19389
       # Add more tests for gcc versions with non-working 64-bit support here.
19390
       cat >conftest.$ac_ext <<_ACEOF
19391
/* confdefs.h.  */
19392
_ACEOF
19393
cat confdefs.h >>conftest.$ac_ext
19394
cat >>conftest.$ac_ext <<_ACEOF
19395
/* end confdefs.h.  */
19396
:__GNUC__:__GNUC_MINOR__:__i386__:
19397
_ACEOF
19398
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19399
  $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
19400
  bad_64bit_gcc=yes;
19401
                    echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19402
echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
19403
else
19404
  echo "$as_me:$LINENO: result: no" >&5
19405
echo "${ECHO_T}no" >&6
19406
fi
19407
rm -f conftest*
19408
 
19409
       if test $bad_64bit_gcc = yes ; then
19410
         { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19411
echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19412
   { (exit 1); exit 1; }; }
19413
       fi
19414
    fi
19415
    ;;
19416
  false-false-false)
19417
    wordsize=32
19418
    all_backends='$(BFD32_BACKENDS)'
19419
    ;;
19420
esac
19421
 
19422
 
19423
 
19424
 
19425
 
19426
 
19427
 
19428
 
19429
# Determine the host dependant file_ptr a.k.a. off_t type.  In order
19430
# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19431
# fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
19432
# Hopefully a reasonable assumption since fseeko et.al. should be
19433
# upward compatible.
19434
 
19435
 
19436
 
19437
 
19438
 
19439
for ac_func in ftello ftello64 fseeko fseeko64 fopen64
19440
do
19441
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19442
echo "$as_me:$LINENO: checking for $ac_func" >&5
19443
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19444
if eval "test \"\${$as_ac_var+set}\" = set"; then
19445
  echo $ECHO_N "(cached) $ECHO_C" >&6
19446
else
19447
  cat >conftest.$ac_ext <<_ACEOF
19448
/* confdefs.h.  */
19449
_ACEOF
19450
cat confdefs.h >>conftest.$ac_ext
19451
cat >>conftest.$ac_ext <<_ACEOF
19452
/* end confdefs.h.  */
19453
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
19454
   For example, HP-UX 11i  declares gettimeofday.  */
19455
#define $ac_func innocuous_$ac_func
19456
 
19457
/* System header to define __stub macros and hopefully few prototypes,
19458
    which can conflict with char $ac_func (); below.
19459
    Prefer  to  if __STDC__ is defined, since
19460
     exists even on freestanding compilers.  */
19461
 
19462
#ifdef __STDC__
19463
# include 
19464
#else
19465
# include 
19466
#endif
19467
 
19468
#undef $ac_func
19469
 
19470
/* Override any gcc2 internal prototype to avoid an error.  */
19471
#ifdef __cplusplus
19472
extern "C"
19473
{
19474
#endif
19475
/* We use char because int might match the return type of a gcc2
19476
   builtin and then its argument prototype would still apply.  */
19477
char $ac_func ();
19478
/* The GNU C library defines this for functions which it implements
19479
    to always fail with ENOSYS.  Some functions are actually named
19480
    something starting with __ and the normal name is an alias.  */
19481
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19482
choke me
19483
#else
19484
char (*f) () = $ac_func;
19485
#endif
19486
#ifdef __cplusplus
19487
}
19488
#endif
19489
 
19490
int
19491
main ()
19492
{
19493
return f != $ac_func;
19494
  ;
19495
  return 0;
19496
}
19497
_ACEOF
19498
rm -f conftest.$ac_objext conftest$ac_exeext
19499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19500
  (eval $ac_link) 2>conftest.er1
19501
  ac_status=$?
19502
  grep -v '^ *+' conftest.er1 >conftest.err
19503
  rm -f conftest.er1
19504
  cat conftest.err >&5
19505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506
  (exit $ac_status); } &&
19507
         { ac_try='test -z "$ac_c_werror_flag"
19508
                         || test ! -s conftest.err'
19509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510
  (eval $ac_try) 2>&5
19511
  ac_status=$?
19512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513
  (exit $ac_status); }; } &&
19514
         { ac_try='test -s conftest$ac_exeext'
19515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516
  (eval $ac_try) 2>&5
19517
  ac_status=$?
19518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519
  (exit $ac_status); }; }; then
19520
  eval "$as_ac_var=yes"
19521
else
19522
  echo "$as_me: failed program was:" >&5
19523
sed 's/^/| /' conftest.$ac_ext >&5
19524
 
19525
eval "$as_ac_var=no"
19526
fi
19527
rm -f conftest.err conftest.$ac_objext \
19528
      conftest$ac_exeext conftest.$ac_ext
19529
fi
19530
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19531
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19532
if test `eval echo '${'$as_ac_var'}'` = yes; then
19533
  cat >>confdefs.h <<_ACEOF
19534
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19535
_ACEOF
19536
 
19537
fi
19538
done
19539
 
19540
if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19541
    echo "$as_me:$LINENO: checking for off_t" >&5
19542
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19543
if test "${ac_cv_type_off_t+set}" = set; then
19544
  echo $ECHO_N "(cached) $ECHO_C" >&6
19545
else
19546
  cat >conftest.$ac_ext <<_ACEOF
19547
/* confdefs.h.  */
19548
_ACEOF
19549
cat confdefs.h >>conftest.$ac_ext
19550
cat >>conftest.$ac_ext <<_ACEOF
19551
/* end confdefs.h.  */
19552
$ac_includes_default
19553
int
19554
main ()
19555
{
19556
if ((off_t *) 0)
19557
  return 0;
19558
if (sizeof (off_t))
19559
  return 0;
19560
  ;
19561
  return 0;
19562
}
19563
_ACEOF
19564
rm -f conftest.$ac_objext
19565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19566
  (eval $ac_compile) 2>conftest.er1
19567
  ac_status=$?
19568
  grep -v '^ *+' conftest.er1 >conftest.err
19569
  rm -f conftest.er1
19570
  cat conftest.err >&5
19571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572
  (exit $ac_status); } &&
19573
         { ac_try='test -z "$ac_c_werror_flag"
19574
                         || test ! -s conftest.err'
19575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576
  (eval $ac_try) 2>&5
19577
  ac_status=$?
19578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579
  (exit $ac_status); }; } &&
19580
         { ac_try='test -s conftest.$ac_objext'
19581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582
  (eval $ac_try) 2>&5
19583
  ac_status=$?
19584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585
  (exit $ac_status); }; }; then
19586
  ac_cv_type_off_t=yes
19587
else
19588
  echo "$as_me: failed program was:" >&5
19589
sed 's/^/| /' conftest.$ac_ext >&5
19590
 
19591
ac_cv_type_off_t=no
19592
fi
19593
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19594
fi
19595
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19596
echo "${ECHO_T}$ac_cv_type_off_t" >&6
19597
 
19598
echo "$as_me:$LINENO: checking size of off_t" >&5
19599
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19600
if test "${ac_cv_sizeof_off_t+set}" = set; then
19601
  echo $ECHO_N "(cached) $ECHO_C" >&6
19602
else
19603
  if test "$ac_cv_type_off_t" = yes; then
19604
  # The cast to unsigned long works around a bug in the HP C Compiler
19605
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19606
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19607
  # This bug is HP SR number 8606223364.
19608
  if test "$cross_compiling" = yes; then
19609
  # Depending upon the size, compute the lo and hi bounds.
19610
cat >conftest.$ac_ext <<_ACEOF
19611
/* confdefs.h.  */
19612
_ACEOF
19613
cat confdefs.h >>conftest.$ac_ext
19614
cat >>conftest.$ac_ext <<_ACEOF
19615
/* end confdefs.h.  */
19616
$ac_includes_default
19617
int
19618
main ()
19619
{
19620
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19621
test_array [0] = 0
19622
 
19623
  ;
19624
  return 0;
19625
}
19626
_ACEOF
19627
rm -f conftest.$ac_objext
19628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629
  (eval $ac_compile) 2>conftest.er1
19630
  ac_status=$?
19631
  grep -v '^ *+' conftest.er1 >conftest.err
19632
  rm -f conftest.er1
19633
  cat conftest.err >&5
19634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635
  (exit $ac_status); } &&
19636
         { ac_try='test -z "$ac_c_werror_flag"
19637
                         || test ! -s conftest.err'
19638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639
  (eval $ac_try) 2>&5
19640
  ac_status=$?
19641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642
  (exit $ac_status); }; } &&
19643
         { ac_try='test -s conftest.$ac_objext'
19644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645
  (eval $ac_try) 2>&5
19646
  ac_status=$?
19647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648
  (exit $ac_status); }; }; then
19649
  ac_lo=0 ac_mid=0
19650
  while :; do
19651
    cat >conftest.$ac_ext <<_ACEOF
19652
/* confdefs.h.  */
19653
_ACEOF
19654
cat confdefs.h >>conftest.$ac_ext
19655
cat >>conftest.$ac_ext <<_ACEOF
19656
/* end confdefs.h.  */
19657
$ac_includes_default
19658
int
19659
main ()
19660
{
19661
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19662
test_array [0] = 0
19663
 
19664
  ;
19665
  return 0;
19666
}
19667
_ACEOF
19668
rm -f conftest.$ac_objext
19669
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670
  (eval $ac_compile) 2>conftest.er1
19671
  ac_status=$?
19672
  grep -v '^ *+' conftest.er1 >conftest.err
19673
  rm -f conftest.er1
19674
  cat conftest.err >&5
19675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676
  (exit $ac_status); } &&
19677
         { ac_try='test -z "$ac_c_werror_flag"
19678
                         || test ! -s conftest.err'
19679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680
  (eval $ac_try) 2>&5
19681
  ac_status=$?
19682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
  (exit $ac_status); }; } &&
19684
         { ac_try='test -s conftest.$ac_objext'
19685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
  (eval $ac_try) 2>&5
19687
  ac_status=$?
19688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
  (exit $ac_status); }; }; then
19690
  ac_hi=$ac_mid; break
19691
else
19692
  echo "$as_me: failed program was:" >&5
19693
sed 's/^/| /' conftest.$ac_ext >&5
19694
 
19695
ac_lo=`expr $ac_mid + 1`
19696
                    if test $ac_lo -le $ac_mid; then
19697
                      ac_lo= ac_hi=
19698
                      break
19699
                    fi
19700
                    ac_mid=`expr 2 '*' $ac_mid + 1`
19701
fi
19702
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19703
  done
19704
else
19705
  echo "$as_me: failed program was:" >&5
19706
sed 's/^/| /' conftest.$ac_ext >&5
19707
 
19708
cat >conftest.$ac_ext <<_ACEOF
19709
/* confdefs.h.  */
19710
_ACEOF
19711
cat confdefs.h >>conftest.$ac_ext
19712
cat >>conftest.$ac_ext <<_ACEOF
19713
/* end confdefs.h.  */
19714
$ac_includes_default
19715
int
19716
main ()
19717
{
19718
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19719
test_array [0] = 0
19720
 
19721
  ;
19722
  return 0;
19723
}
19724
_ACEOF
19725
rm -f conftest.$ac_objext
19726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19727
  (eval $ac_compile) 2>conftest.er1
19728
  ac_status=$?
19729
  grep -v '^ *+' conftest.er1 >conftest.err
19730
  rm -f conftest.er1
19731
  cat conftest.err >&5
19732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733
  (exit $ac_status); } &&
19734
         { ac_try='test -z "$ac_c_werror_flag"
19735
                         || test ! -s conftest.err'
19736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737
  (eval $ac_try) 2>&5
19738
  ac_status=$?
19739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740
  (exit $ac_status); }; } &&
19741
         { ac_try='test -s conftest.$ac_objext'
19742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743
  (eval $ac_try) 2>&5
19744
  ac_status=$?
19745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746
  (exit $ac_status); }; }; then
19747
  ac_hi=-1 ac_mid=-1
19748
  while :; do
19749
    cat >conftest.$ac_ext <<_ACEOF
19750
/* confdefs.h.  */
19751
_ACEOF
19752
cat confdefs.h >>conftest.$ac_ext
19753
cat >>conftest.$ac_ext <<_ACEOF
19754
/* end confdefs.h.  */
19755
$ac_includes_default
19756
int
19757
main ()
19758
{
19759
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19760
test_array [0] = 0
19761
 
19762
  ;
19763
  return 0;
19764
}
19765
_ACEOF
19766
rm -f conftest.$ac_objext
19767
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768
  (eval $ac_compile) 2>conftest.er1
19769
  ac_status=$?
19770
  grep -v '^ *+' conftest.er1 >conftest.err
19771
  rm -f conftest.er1
19772
  cat conftest.err >&5
19773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774
  (exit $ac_status); } &&
19775
         { ac_try='test -z "$ac_c_werror_flag"
19776
                         || test ! -s conftest.err'
19777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778
  (eval $ac_try) 2>&5
19779
  ac_status=$?
19780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781
  (exit $ac_status); }; } &&
19782
         { ac_try='test -s conftest.$ac_objext'
19783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784
  (eval $ac_try) 2>&5
19785
  ac_status=$?
19786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787
  (exit $ac_status); }; }; then
19788
  ac_lo=$ac_mid; break
19789
else
19790
  echo "$as_me: failed program was:" >&5
19791
sed 's/^/| /' conftest.$ac_ext >&5
19792
 
19793
ac_hi=`expr '(' $ac_mid ')' - 1`
19794
                       if test $ac_mid -le $ac_hi; then
19795
                         ac_lo= ac_hi=
19796
                         break
19797
                       fi
19798
                       ac_mid=`expr 2 '*' $ac_mid`
19799
fi
19800
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19801
  done
19802
else
19803
  echo "$as_me: failed program was:" >&5
19804
sed 's/^/| /' conftest.$ac_ext >&5
19805
 
19806
ac_lo= ac_hi=
19807
fi
19808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19809
fi
19810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19811
# Binary search between lo and hi bounds.
19812
while test "x$ac_lo" != "x$ac_hi"; do
19813
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19814
  cat >conftest.$ac_ext <<_ACEOF
19815
/* confdefs.h.  */
19816
_ACEOF
19817
cat confdefs.h >>conftest.$ac_ext
19818
cat >>conftest.$ac_ext <<_ACEOF
19819
/* end confdefs.h.  */
19820
$ac_includes_default
19821
int
19822
main ()
19823
{
19824
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19825
test_array [0] = 0
19826
 
19827
  ;
19828
  return 0;
19829
}
19830
_ACEOF
19831
rm -f conftest.$ac_objext
19832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19833
  (eval $ac_compile) 2>conftest.er1
19834
  ac_status=$?
19835
  grep -v '^ *+' conftest.er1 >conftest.err
19836
  rm -f conftest.er1
19837
  cat conftest.err >&5
19838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839
  (exit $ac_status); } &&
19840
         { ac_try='test -z "$ac_c_werror_flag"
19841
                         || test ! -s conftest.err'
19842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843
  (eval $ac_try) 2>&5
19844
  ac_status=$?
19845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846
  (exit $ac_status); }; } &&
19847
         { ac_try='test -s conftest.$ac_objext'
19848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849
  (eval $ac_try) 2>&5
19850
  ac_status=$?
19851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852
  (exit $ac_status); }; }; then
19853
  ac_hi=$ac_mid
19854
else
19855
  echo "$as_me: failed program was:" >&5
19856
sed 's/^/| /' conftest.$ac_ext >&5
19857
 
19858
ac_lo=`expr '(' $ac_mid ')' + 1`
19859
fi
19860
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19861
done
19862
case $ac_lo in
19863
?*) ac_cv_sizeof_off_t=$ac_lo;;
19864
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19865
See \`config.log' for more details." >&5
19866
echo "$as_me: error: cannot compute sizeof (off_t), 77
19867
See \`config.log' for more details." >&2;}
19868
   { (exit 1); exit 1; }; } ;;
19869
esac
19870
else
19871
  if test "$cross_compiling" = yes; then
19872
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19873
See \`config.log' for more details." >&5
19874
echo "$as_me: error: cannot run test program while cross compiling
19875
See \`config.log' for more details." >&2;}
19876
   { (exit 1); exit 1; }; }
19877
else
19878
  cat >conftest.$ac_ext <<_ACEOF
19879
/* confdefs.h.  */
19880
_ACEOF
19881
cat confdefs.h >>conftest.$ac_ext
19882
cat >>conftest.$ac_ext <<_ACEOF
19883
/* end confdefs.h.  */
19884
$ac_includes_default
19885
long longval () { return (long) (sizeof (off_t)); }
19886
unsigned long ulongval () { return (long) (sizeof (off_t)); }
19887
#include 
19888
#include 
19889
int
19890
main ()
19891
{
19892
 
19893
  FILE *f = fopen ("conftest.val", "w");
19894
  if (! f)
19895
    exit (1);
19896
  if (((long) (sizeof (off_t))) < 0)
19897
    {
19898
      long i = longval ();
19899
      if (i != ((long) (sizeof (off_t))))
19900
        exit (1);
19901
      fprintf (f, "%ld\n", i);
19902
    }
19903
  else
19904
    {
19905
      unsigned long i = ulongval ();
19906
      if (i != ((long) (sizeof (off_t))))
19907
        exit (1);
19908
      fprintf (f, "%lu\n", i);
19909
    }
19910
  exit (ferror (f) || fclose (f) != 0);
19911
 
19912
  ;
19913
  return 0;
19914
}
19915
_ACEOF
19916
rm -f conftest$ac_exeext
19917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918
  (eval $ac_link) 2>&5
19919
  ac_status=$?
19920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923
  (eval $ac_try) 2>&5
19924
  ac_status=$?
19925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926
  (exit $ac_status); }; }; then
19927
  ac_cv_sizeof_off_t=`cat conftest.val`
19928
else
19929
  echo "$as_me: program exited with status $ac_status" >&5
19930
echo "$as_me: failed program was:" >&5
19931
sed 's/^/| /' conftest.$ac_ext >&5
19932
 
19933
( exit $ac_status )
19934
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19935
See \`config.log' for more details." >&5
19936
echo "$as_me: error: cannot compute sizeof (off_t), 77
19937
See \`config.log' for more details." >&2;}
19938
   { (exit 1); exit 1; }; }
19939
fi
19940
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941
fi
19942
fi
19943
rm -f conftest.val
19944
else
19945
  ac_cv_sizeof_off_t=0
19946
fi
19947
fi
19948
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19949
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19950
cat >>confdefs.h <<_ACEOF
19951
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19952
_ACEOF
19953
 
19954
 
19955
fi
19956
echo "$as_me:$LINENO: checking file_ptr type" >&5
19957
echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19958
bfd_file_ptr="long"
19959
bfd_ufile_ptr="unsigned long"
19960
if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19961
        -o x"${ac_cv_sizeof_off_t}" = x8; then
19962
    bfd_file_ptr=BFD_HOST_64_BIT
19963
    bfd_ufile_ptr=BFD_HOST_U_64_BIT
19964
fi
19965
echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19966
echo "${ECHO_T}$bfd_file_ptr" >&6
19967
 
19968
 
19969
 
19970
 
19971
tdefaults=""
19972
test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19973
test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19974
test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19975
test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19976
test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19977
 
19978
 
19979
 
19980
 
19981
for ac_header in stdlib.h unistd.h
19982
do
19983
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19984
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985
  echo "$as_me:$LINENO: checking for $ac_header" >&5
19986
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19987
if eval "test \"\${$as_ac_Header+set}\" = set"; then
19988
  echo $ECHO_N "(cached) $ECHO_C" >&6
19989
fi
19990
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19991
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19992
else
19993
  # Is the header compilable?
19994
echo "$as_me:$LINENO: checking $ac_header usability" >&5
19995
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19996
cat >conftest.$ac_ext <<_ACEOF
19997
/* confdefs.h.  */
19998
_ACEOF
19999
cat confdefs.h >>conftest.$ac_ext
20000
cat >>conftest.$ac_ext <<_ACEOF
20001
/* end confdefs.h.  */
20002
$ac_includes_default
20003
#include <$ac_header>
20004
_ACEOF
20005
rm -f conftest.$ac_objext
20006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007
  (eval $ac_compile) 2>conftest.er1
20008
  ac_status=$?
20009
  grep -v '^ *+' conftest.er1 >conftest.err
20010
  rm -f conftest.er1
20011
  cat conftest.err >&5
20012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013
  (exit $ac_status); } &&
20014
         { ac_try='test -z "$ac_c_werror_flag"
20015
                         || test ! -s conftest.err'
20016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017
  (eval $ac_try) 2>&5
20018
  ac_status=$?
20019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020
  (exit $ac_status); }; } &&
20021
         { ac_try='test -s conftest.$ac_objext'
20022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023
  (eval $ac_try) 2>&5
20024
  ac_status=$?
20025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026
  (exit $ac_status); }; }; then
20027
  ac_header_compiler=yes
20028
else
20029
  echo "$as_me: failed program was:" >&5
20030
sed 's/^/| /' conftest.$ac_ext >&5
20031
 
20032
ac_header_compiler=no
20033
fi
20034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20035
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20036
echo "${ECHO_T}$ac_header_compiler" >&6
20037
 
20038
# Is the header present?
20039
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20040
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20041
cat >conftest.$ac_ext <<_ACEOF
20042
/* confdefs.h.  */
20043
_ACEOF
20044
cat confdefs.h >>conftest.$ac_ext
20045
cat >>conftest.$ac_ext <<_ACEOF
20046
/* end confdefs.h.  */
20047
#include <$ac_header>
20048
_ACEOF
20049
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20050
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20051
  ac_status=$?
20052
  grep -v '^ *+' conftest.er1 >conftest.err
20053
  rm -f conftest.er1
20054
  cat conftest.err >&5
20055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056
  (exit $ac_status); } >/dev/null; then
20057
  if test -s conftest.err; then
20058
    ac_cpp_err=$ac_c_preproc_warn_flag
20059
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20060
  else
20061
    ac_cpp_err=
20062
  fi
20063
else
20064
  ac_cpp_err=yes
20065
fi
20066
if test -z "$ac_cpp_err"; then
20067
  ac_header_preproc=yes
20068
else
20069
  echo "$as_me: failed program was:" >&5
20070
sed 's/^/| /' conftest.$ac_ext >&5
20071
 
20072
  ac_header_preproc=no
20073
fi
20074
rm -f conftest.err conftest.$ac_ext
20075
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20076
echo "${ECHO_T}$ac_header_preproc" >&6
20077
 
20078
# So?  What about this header?
20079
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20080
  yes:no: )
20081
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20082
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20083
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20084
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20085
    ac_header_preproc=yes
20086
    ;;
20087
  no:yes:* )
20088
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20089
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20090
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20091
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20092
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20093
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20094
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20095
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20096
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20097
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20098
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20099
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20100
    (
20101
      cat <<\_ASBOX
20102
## ------------------------------------------ ##
20103
## Report this to the AC_PACKAGE_NAME lists.  ##
20104
## ------------------------------------------ ##
20105
_ASBOX
20106
    ) |
20107
      sed "s/^/$as_me: WARNING:     /" >&2
20108
    ;;
20109
esac
20110
echo "$as_me:$LINENO: checking for $ac_header" >&5
20111
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20112
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20113
  echo $ECHO_N "(cached) $ECHO_C" >&6
20114
else
20115
  eval "$as_ac_Header=\$ac_header_preproc"
20116
fi
20117
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20118
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20119
 
20120
fi
20121
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20122
  cat >>confdefs.h <<_ACEOF
20123
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20124
_ACEOF
20125
 
20126
fi
20127
 
20128
done
20129
 
20130
 
20131
for ac_func in getpagesize
20132
do
20133
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20134
echo "$as_me:$LINENO: checking for $ac_func" >&5
20135
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20136
if eval "test \"\${$as_ac_var+set}\" = set"; then
20137
  echo $ECHO_N "(cached) $ECHO_C" >&6
20138
else
20139
  cat >conftest.$ac_ext <<_ACEOF
20140
/* confdefs.h.  */
20141
_ACEOF
20142
cat confdefs.h >>conftest.$ac_ext
20143
cat >>conftest.$ac_ext <<_ACEOF
20144
/* end confdefs.h.  */
20145
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20146
   For example, HP-UX 11i  declares gettimeofday.  */
20147
#define $ac_func innocuous_$ac_func
20148
 
20149
/* System header to define __stub macros and hopefully few prototypes,
20150
    which can conflict with char $ac_func (); below.
20151
    Prefer  to  if __STDC__ is defined, since
20152
     exists even on freestanding compilers.  */
20153
 
20154
#ifdef __STDC__
20155
# include 
20156
#else
20157
# include 
20158
#endif
20159
 
20160
#undef $ac_func
20161
 
20162
/* Override any gcc2 internal prototype to avoid an error.  */
20163
#ifdef __cplusplus
20164
extern "C"
20165
{
20166
#endif
20167
/* We use char because int might match the return type of a gcc2
20168
   builtin and then its argument prototype would still apply.  */
20169
char $ac_func ();
20170
/* The GNU C library defines this for functions which it implements
20171
    to always fail with ENOSYS.  Some functions are actually named
20172
    something starting with __ and the normal name is an alias.  */
20173
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20174
choke me
20175
#else
20176
char (*f) () = $ac_func;
20177
#endif
20178
#ifdef __cplusplus
20179
}
20180
#endif
20181
 
20182
int
20183
main ()
20184
{
20185
return f != $ac_func;
20186
  ;
20187
  return 0;
20188
}
20189
_ACEOF
20190
rm -f conftest.$ac_objext conftest$ac_exeext
20191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20192
  (eval $ac_link) 2>conftest.er1
20193
  ac_status=$?
20194
  grep -v '^ *+' conftest.er1 >conftest.err
20195
  rm -f conftest.er1
20196
  cat conftest.err >&5
20197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198
  (exit $ac_status); } &&
20199
         { ac_try='test -z "$ac_c_werror_flag"
20200
                         || test ! -s conftest.err'
20201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202
  (eval $ac_try) 2>&5
20203
  ac_status=$?
20204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205
  (exit $ac_status); }; } &&
20206
         { ac_try='test -s conftest$ac_exeext'
20207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208
  (eval $ac_try) 2>&5
20209
  ac_status=$?
20210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211
  (exit $ac_status); }; }; then
20212
  eval "$as_ac_var=yes"
20213
else
20214
  echo "$as_me: failed program was:" >&5
20215
sed 's/^/| /' conftest.$ac_ext >&5
20216
 
20217
eval "$as_ac_var=no"
20218
fi
20219
rm -f conftest.err conftest.$ac_objext \
20220
      conftest$ac_exeext conftest.$ac_ext
20221
fi
20222
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20223
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20224
if test `eval echo '${'$as_ac_var'}'` = yes; then
20225
  cat >>confdefs.h <<_ACEOF
20226
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20227
_ACEOF
20228
 
20229
fi
20230
done
20231
 
20232
echo "$as_me:$LINENO: checking for working mmap" >&5
20233
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20234
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20235
  echo $ECHO_N "(cached) $ECHO_C" >&6
20236
else
20237
  if test "$cross_compiling" = yes; then
20238
  ac_cv_func_mmap_fixed_mapped=no
20239
else
20240
  cat >conftest.$ac_ext <<_ACEOF
20241
/* confdefs.h.  */
20242
_ACEOF
20243
cat confdefs.h >>conftest.$ac_ext
20244
cat >>conftest.$ac_ext <<_ACEOF
20245
/* end confdefs.h.  */
20246
$ac_includes_default
20247
/* malloc might have been renamed as rpl_malloc. */
20248
#undef malloc
20249
 
20250
/* Thanks to Mike Haertel and Jim Avera for this test.
20251
   Here is a matrix of mmap possibilities:
20252
        mmap private not fixed
20253
        mmap private fixed at somewhere currently unmapped
20254
        mmap private fixed at somewhere already mapped
20255
        mmap shared not fixed
20256
        mmap shared fixed at somewhere currently unmapped
20257
        mmap shared fixed at somewhere already mapped
20258
   For private mappings, we should verify that changes cannot be read()
20259
   back from the file, nor mmap's back from the file at a different
20260
   address.  (There have been systems where private was not correctly
20261
   implemented like the infamous i386 svr4.0, and systems where the
20262
   VM page cache was not coherent with the file system buffer cache
20263
   like early versions of FreeBSD and possibly contemporary NetBSD.)
20264
   For shared mappings, we should conversely verify that changes get
20265
   propagated back to all the places they're supposed to be.
20266
 
20267
   Grep wants private fixed already mapped.
20268
   The main things grep needs to know about mmap are:
20269
   * does it exist and is it safe to write into the mmap'd area
20270
   * how to use it (BSD variants)  */
20271
 
20272
#include 
20273
#include 
20274
 
20275
#if !STDC_HEADERS && !HAVE_STDLIB_H
20276
char *malloc ();
20277
#endif
20278
 
20279
/* This mess was copied from the GNU getpagesize.h.  */
20280
#if !HAVE_GETPAGESIZE
20281
/* Assume that all systems that can run configure have sys/param.h.  */
20282
# if !HAVE_SYS_PARAM_H
20283
#  define HAVE_SYS_PARAM_H 1
20284
# endif
20285
 
20286
# ifdef _SC_PAGESIZE
20287
#  define getpagesize() sysconf(_SC_PAGESIZE)
20288
# else /* no _SC_PAGESIZE */
20289
#  if HAVE_SYS_PARAM_H
20290
#   include 
20291
#   ifdef EXEC_PAGESIZE
20292
#    define getpagesize() EXEC_PAGESIZE
20293
#   else /* no EXEC_PAGESIZE */
20294
#    ifdef NBPG
20295
#     define getpagesize() NBPG * CLSIZE
20296
#     ifndef CLSIZE
20297
#      define CLSIZE 1
20298
#     endif /* no CLSIZE */
20299
#    else /* no NBPG */
20300
#     ifdef NBPC
20301
#      define getpagesize() NBPC
20302
#     else /* no NBPC */
20303
#      ifdef PAGESIZE
20304
#       define getpagesize() PAGESIZE
20305
#      endif /* PAGESIZE */
20306
#     endif /* no NBPC */
20307
#    endif /* no NBPG */
20308
#   endif /* no EXEC_PAGESIZE */
20309
#  else /* no HAVE_SYS_PARAM_H */
20310
#   define getpagesize() 8192   /* punt totally */
20311
#  endif /* no HAVE_SYS_PARAM_H */
20312
# endif /* no _SC_PAGESIZE */
20313
 
20314
#endif /* no HAVE_GETPAGESIZE */
20315
 
20316
int
20317
main ()
20318
{
20319
  char *data, *data2, *data3;
20320
  int i, pagesize;
20321
  int fd;
20322
 
20323
  pagesize = getpagesize ();
20324
 
20325
  /* First, make a file with some known garbage in it. */
20326
  data = (char *) malloc (pagesize);
20327
  if (!data)
20328
    exit (1);
20329
  for (i = 0; i < pagesize; ++i)
20330
    *(data + i) = rand ();
20331
  umask (0);
20332
  fd = creat ("conftest.mmap", 0600);
20333
  if (fd < 0)
20334
    exit (1);
20335
  if (write (fd, data, pagesize) != pagesize)
20336
    exit (1);
20337
  close (fd);
20338
 
20339
  /* Next, try to mmap the file at a fixed address which already has
20340
     something else allocated at it.  If we can, also make sure that
20341
     we see the same garbage.  */
20342
  fd = open ("conftest.mmap", O_RDWR);
20343
  if (fd < 0)
20344
    exit (1);
20345
  data2 = (char *) malloc (2 * pagesize);
20346
  if (!data2)
20347
    exit (1);
20348
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20349
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20350
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
20351
    exit (1);
20352
  for (i = 0; i < pagesize; ++i)
20353
    if (*(data + i) != *(data2 + i))
20354
      exit (1);
20355
 
20356
  /* Finally, make sure that changes to the mapped area do not
20357
     percolate back to the file as seen by read().  (This is a bug on
20358
     some variants of i386 svr4.0.)  */
20359
  for (i = 0; i < pagesize; ++i)
20360
    *(data2 + i) = *(data2 + i) + 1;
20361
  data3 = (char *) malloc (pagesize);
20362
  if (!data3)
20363
    exit (1);
20364
  if (read (fd, data3, pagesize) != pagesize)
20365
    exit (1);
20366
  for (i = 0; i < pagesize; ++i)
20367
    if (*(data + i) != *(data3 + i))
20368
      exit (1);
20369
  close (fd);
20370
  exit (0);
20371
}
20372
_ACEOF
20373
rm -f conftest$ac_exeext
20374
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375
  (eval $ac_link) 2>&5
20376
  ac_status=$?
20377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380
  (eval $ac_try) 2>&5
20381
  ac_status=$?
20382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383
  (exit $ac_status); }; }; then
20384
  ac_cv_func_mmap_fixed_mapped=yes
20385
else
20386
  echo "$as_me: program exited with status $ac_status" >&5
20387
echo "$as_me: failed program was:" >&5
20388
sed 's/^/| /' conftest.$ac_ext >&5
20389
 
20390
( exit $ac_status )
20391
ac_cv_func_mmap_fixed_mapped=no
20392
fi
20393
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20394
fi
20395
fi
20396
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20397
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20398
if test $ac_cv_func_mmap_fixed_mapped = yes; then
20399
 
20400
cat >>confdefs.h <<\_ACEOF
20401
#define HAVE_MMAP 1
20402
_ACEOF
20403
 
20404
fi
20405
rm -f conftest.mmap
20406
 
20407
 
20408
 
20409
for ac_func in madvise mprotect
20410
do
20411
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20412
echo "$as_me:$LINENO: checking for $ac_func" >&5
20413
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20414
if eval "test \"\${$as_ac_var+set}\" = set"; then
20415
  echo $ECHO_N "(cached) $ECHO_C" >&6
20416
else
20417
  cat >conftest.$ac_ext <<_ACEOF
20418
/* confdefs.h.  */
20419
_ACEOF
20420
cat confdefs.h >>conftest.$ac_ext
20421
cat >>conftest.$ac_ext <<_ACEOF
20422
/* end confdefs.h.  */
20423
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
20424
   For example, HP-UX 11i  declares gettimeofday.  */
20425
#define $ac_func innocuous_$ac_func
20426
 
20427
/* System header to define __stub macros and hopefully few prototypes,
20428
    which can conflict with char $ac_func (); below.
20429
    Prefer  to  if __STDC__ is defined, since
20430
     exists even on freestanding compilers.  */
20431
 
20432
#ifdef __STDC__
20433
# include 
20434
#else
20435
# include 
20436
#endif
20437
 
20438
#undef $ac_func
20439
 
20440
/* Override any gcc2 internal prototype to avoid an error.  */
20441
#ifdef __cplusplus
20442
extern "C"
20443
{
20444
#endif
20445
/* We use char because int might match the return type of a gcc2
20446
   builtin and then its argument prototype would still apply.  */
20447
char $ac_func ();
20448
/* The GNU C library defines this for functions which it implements
20449
    to always fail with ENOSYS.  Some functions are actually named
20450
    something starting with __ and the normal name is an alias.  */
20451
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20452
choke me
20453
#else
20454
char (*f) () = $ac_func;
20455
#endif
20456
#ifdef __cplusplus
20457
}
20458
#endif
20459
 
20460
int
20461
main ()
20462
{
20463
return f != $ac_func;
20464
  ;
20465
  return 0;
20466
}
20467
_ACEOF
20468
rm -f conftest.$ac_objext conftest$ac_exeext
20469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20470
  (eval $ac_link) 2>conftest.er1
20471
  ac_status=$?
20472
  grep -v '^ *+' conftest.er1 >conftest.err
20473
  rm -f conftest.er1
20474
  cat conftest.err >&5
20475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476
  (exit $ac_status); } &&
20477
         { ac_try='test -z "$ac_c_werror_flag"
20478
                         || test ! -s conftest.err'
20479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480
  (eval $ac_try) 2>&5
20481
  ac_status=$?
20482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483
  (exit $ac_status); }; } &&
20484
         { ac_try='test -s conftest$ac_exeext'
20485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486
  (eval $ac_try) 2>&5
20487
  ac_status=$?
20488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489
  (exit $ac_status); }; }; then
20490
  eval "$as_ac_var=yes"
20491
else
20492
  echo "$as_me: failed program was:" >&5
20493
sed 's/^/| /' conftest.$ac_ext >&5
20494
 
20495
eval "$as_ac_var=no"
20496
fi
20497
rm -f conftest.err conftest.$ac_objext \
20498
      conftest$ac_exeext conftest.$ac_ext
20499
fi
20500
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20501
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20502
if test `eval echo '${'$as_ac_var'}'` = yes; then
20503
  cat >>confdefs.h <<_ACEOF
20504
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20505
_ACEOF
20506
 
20507
fi
20508
done
20509
 
20510
case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20511
  true+yes )
20512
cat >>confdefs.h <<\_ACEOF
20513
#define USE_MMAP 1
20514
_ACEOF
20515
 ;;
20516
esac
20517
 
20518
rm -f doc/config.status
20519
                                        ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20520
 
20521
 
20522
          ac_config_commands="$ac_config_commands default"
20523
 
20524
 
20525
 
20526
 
20527
 
20528
 
20529
cat >confcache <<\_ACEOF
20530
# This file is a shell script that caches the results of configure
20531
# tests run on this system so they can be shared between configure
20532
# scripts and configure runs, see configure's option --config-cache.
20533
# It is not useful on other systems.  If it contains results you don't
20534
# want to keep, you may remove or edit it.
20535
#
20536
# config.status only pays attention to the cache file if you give it
20537
# the --recheck option to rerun configure.
20538
#
20539
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20540
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20541
# following values.
20542
 
20543
_ACEOF
20544
 
20545
# The following way of writing the cache mishandles newlines in values,
20546
# but we know of no workaround that is simple, portable, and efficient.
20547
# So, don't put newlines in cache variables' values.
20548
# Ultrix sh set writes to stderr and can't be redirected directly,
20549
# and sets the high bit in the cache file unless we assign to the vars.
20550
{
20551
  (set) 2>&1 |
20552
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20553
    *ac_space=\ *)
20554
      # `set' does not quote correctly, so add quotes (double-quote
20555
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20556
      sed -n \
20557
        "s/'/'\\\\''/g;
20558
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20559
      ;;
20560
    *)
20561
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20562
      sed -n \
20563
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20564
      ;;
20565
    esac;
20566
} |
20567
  sed '
20568
     t clear
20569
     : clear
20570
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20571
     t end
20572
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20573
     : end' >>confcache
20574
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20575
  if test -w $cache_file; then
20576
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20577
    cat confcache >$cache_file
20578
  else
20579
    echo "not updating unwritable cache $cache_file"
20580
  fi
20581
fi
20582
rm -f confcache
20583
 
20584
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20585
# Let make expand exec_prefix.
20586
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20587
 
20588
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20589
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20590
# trailing colons and then remove the whole line if VPATH becomes empty
20591
# (actually we leave an empty line to preserve line numbers).
20592
if test "x$srcdir" = x.; then
20593
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20594
s/:*\$(srcdir):*/:/;
20595
s/:*\${srcdir}:*/:/;
20596
s/:*@srcdir@:*/:/;
20597
s/^\([^=]*=[     ]*\):*/\1/;
20598
s/:*$//;
20599
s/^[^=]*=[       ]*$//;
20600
}'
20601
fi
20602
 
20603
DEFS=-DHAVE_CONFIG_H
20604
 
20605
ac_libobjs=
20606
ac_ltlibobjs=
20607
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20608
  # 1. Remove the extension, and $U if already installed.
20609
  ac_i=`echo "$ac_i" |
20610
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20611
  # 2. Add them.
20612
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20613
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20614
done
20615
LIBOBJS=$ac_libobjs
20616
 
20617
LTLIBOBJS=$ac_ltlibobjs
20618
 
20619
 
20620
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20621
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20622
Usually this means the macro was only invoked conditionally." >&5
20623
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20624
Usually this means the macro was only invoked conditionally." >&2;}
20625
   { (exit 1); exit 1; }; }
20626
fi
20627
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20628
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20629
Usually this means the macro was only invoked conditionally." >&5
20630
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20631
Usually this means the macro was only invoked conditionally." >&2;}
20632
   { (exit 1); exit 1; }; }
20633
fi
20634
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20635
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20636
Usually this means the macro was only invoked conditionally." >&5
20637
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20638
Usually this means the macro was only invoked conditionally." >&2;}
20639
   { (exit 1); exit 1; }; }
20640
fi
20641
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20642
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20643
Usually this means the macro was only invoked conditionally." >&5
20644
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20645
Usually this means the macro was only invoked conditionally." >&2;}
20646
   { (exit 1); exit 1; }; }
20647
fi
20648
if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20649
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20650
Usually this means the macro was only invoked conditionally." >&5
20651
echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20652
Usually this means the macro was only invoked conditionally." >&2;}
20653
   { (exit 1); exit 1; }; }
20654
fi
20655
 
20656
: ${CONFIG_STATUS=./config.status}
20657
ac_clean_files_save=$ac_clean_files
20658
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20659
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20660
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20661
cat >$CONFIG_STATUS <<_ACEOF
20662
#! $SHELL
20663
# Generated by $as_me.
20664
# Run this file to recreate the current configuration.
20665
# Compiler output produced by configure, useful for debugging
20666
# configure, is in config.log if it exists.
20667
 
20668
debug=false
20669
ac_cs_recheck=false
20670
ac_cs_silent=false
20671
SHELL=\${CONFIG_SHELL-$SHELL}
20672
_ACEOF
20673
 
20674
cat >>$CONFIG_STATUS <<\_ACEOF
20675
## --------------------- ##
20676
## M4sh Initialization.  ##
20677
## --------------------- ##
20678
 
20679
# Be Bourne compatible
20680
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20681
  emulate sh
20682
  NULLCMD=:
20683
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20684
  # is contrary to our usage.  Disable this feature.
20685
  alias -g '${1+"$@"}'='"$@"'
20686
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20687
  set -o posix
20688
fi
20689
DUALCASE=1; export DUALCASE # for MKS sh
20690
 
20691
# Support unset when possible.
20692
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20693
  as_unset=unset
20694
else
20695
  as_unset=false
20696
fi
20697
 
20698
 
20699
# Work around bugs in pre-3.0 UWIN ksh.
20700
$as_unset ENV MAIL MAILPATH
20701
PS1='$ '
20702
PS2='> '
20703
PS4='+ '
20704
 
20705
# NLS nuisances.
20706
for as_var in \
20707
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20708
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20709
  LC_TELEPHONE LC_TIME
20710
do
20711
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20712
    eval $as_var=C; export $as_var
20713
  else
20714
    $as_unset $as_var
20715
  fi
20716
done
20717
 
20718
# Required to use basename.
20719
if expr a : '\(a\)' >/dev/null 2>&1; then
20720
  as_expr=expr
20721
else
20722
  as_expr=false
20723
fi
20724
 
20725
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20726
  as_basename=basename
20727
else
20728
  as_basename=false
20729
fi
20730
 
20731
 
20732
# Name of the executable.
20733
as_me=`$as_basename "$0" ||
20734
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20735
         X"$0" : 'X\(//\)$' \| \
20736
         X"$0" : 'X\(/\)$' \| \
20737
         .     : '\(.\)' 2>/dev/null ||
20738
echo X/"$0" |
20739
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20740
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20741
          /^X\/\(\/\).*/{ s//\1/; q; }
20742
          s/.*/./; q'`
20743
 
20744
 
20745
# PATH needs CR, and LINENO needs CR and PATH.
20746
# Avoid depending upon Character Ranges.
20747
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20748
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20749
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20750
as_cr_digits='0123456789'
20751
as_cr_alnum=$as_cr_Letters$as_cr_digits
20752
 
20753
# The user is always right.
20754
if test "${PATH_SEPARATOR+set}" != set; then
20755
  echo "#! /bin/sh" >conf$$.sh
20756
  echo  "exit 0"   >>conf$$.sh
20757
  chmod +x conf$$.sh
20758
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20759
    PATH_SEPARATOR=';'
20760
  else
20761
    PATH_SEPARATOR=:
20762
  fi
20763
  rm -f conf$$.sh
20764
fi
20765
 
20766
 
20767
  as_lineno_1=$LINENO
20768
  as_lineno_2=$LINENO
20769
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20770
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20771
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20772
  # Find who we are.  Look in the path if we contain no path at all
20773
  # relative or not.
20774
  case $0 in
20775
    *[\\/]* ) as_myself=$0 ;;
20776
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20777
for as_dir in $PATH
20778
do
20779
  IFS=$as_save_IFS
20780
  test -z "$as_dir" && as_dir=.
20781
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20782
done
20783
 
20784
       ;;
20785
  esac
20786
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20787
  # in which case we are not to be found in the path.
20788
  if test "x$as_myself" = x; then
20789
    as_myself=$0
20790
  fi
20791
  if test ! -f "$as_myself"; then
20792
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20793
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20794
   { (exit 1); exit 1; }; }
20795
  fi
20796
  case $CONFIG_SHELL in
20797
  '')
20798
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20800
do
20801
  IFS=$as_save_IFS
20802
  test -z "$as_dir" && as_dir=.
20803
  for as_base in sh bash ksh sh5; do
20804
         case $as_dir in
20805
         /*)
20806
           if ("$as_dir/$as_base" -c '
20807
  as_lineno_1=$LINENO
20808
  as_lineno_2=$LINENO
20809
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20810
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20811
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20812
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20813
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20814
             CONFIG_SHELL=$as_dir/$as_base
20815
             export CONFIG_SHELL
20816
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20817
           fi;;
20818
         esac
20819
       done
20820
done
20821
;;
20822
  esac
20823
 
20824
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20825
  # uniformly replaced by the line number.  The first 'sed' inserts a
20826
  # line-number line before each line; the second 'sed' does the real
20827
  # work.  The second script uses 'N' to pair each line-number line
20828
  # with the numbered line, and appends trailing '-' during
20829
  # substitution so that $LINENO is not a special case at line end.
20830
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20831
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20832
  sed '=' <$as_myself |
20833
    sed '
20834
      N
20835
      s,$,-,
20836
      : loop
20837
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20838
      t loop
20839
      s,-$,,
20840
      s,^['$as_cr_digits']*\n,,
20841
    ' >$as_me.lineno &&
20842
  chmod +x $as_me.lineno ||
20843
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20844
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20845
   { (exit 1); exit 1; }; }
20846
 
20847
  # Don't try to exec as it changes $[0], causing all sort of problems
20848
  # (the dirname of $[0] is not the place where we might find the
20849
  # original and so on.  Autoconf is especially sensible to this).
20850
  . ./$as_me.lineno
20851
  # Exit status is that of the last command.
20852
  exit
20853
}
20854
 
20855
 
20856
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20857
  *c*,-n*) ECHO_N= ECHO_C='
20858
' ECHO_T='      ' ;;
20859
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20860
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20861
esac
20862
 
20863
if expr a : '\(a\)' >/dev/null 2>&1; then
20864
  as_expr=expr
20865
else
20866
  as_expr=false
20867
fi
20868
 
20869
rm -f conf$$ conf$$.exe conf$$.file
20870
echo >conf$$.file
20871
if ln -s conf$$.file conf$$ 2>/dev/null; then
20872
  # We could just check for DJGPP; but this test a) works b) is more generic
20873
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20874
  if test -f conf$$.exe; then
20875
    # Don't use ln at all; we don't have any links
20876
    as_ln_s='cp -p'
20877
  else
20878
    as_ln_s='ln -s'
20879
  fi
20880
elif ln conf$$.file conf$$ 2>/dev/null; then
20881
  as_ln_s=ln
20882
else
20883
  as_ln_s='cp -p'
20884
fi
20885
rm -f conf$$ conf$$.exe conf$$.file
20886
 
20887
if mkdir -p . 2>/dev/null; then
20888
  as_mkdir_p=:
20889
else
20890
  test -d ./-p && rmdir ./-p
20891
  as_mkdir_p=false
20892
fi
20893
 
20894
as_executable_p="test -f"
20895
 
20896
# Sed expression to map a string onto a valid CPP name.
20897
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20898
 
20899
# Sed expression to map a string onto a valid variable name.
20900
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20901
 
20902
 
20903
# IFS
20904
# We need space, tab and new line, in precisely that order.
20905
as_nl='
20906
'
20907
IFS="   $as_nl"
20908
 
20909
# CDPATH.
20910
$as_unset CDPATH
20911
 
20912
exec 6>&1
20913
 
20914
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20915
# report actual input values of CONFIG_FILES etc. instead of their
20916
# values after options handling.  Logging --version etc. is OK.
20917
exec 5>>config.log
20918
{
20919
  echo
20920
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20921
## Running $as_me. ##
20922
_ASBOX
20923
} >&5
20924
cat >&5 <<_CSEOF
20925
 
20926
This file was extended by $as_me, which was
20927
generated by GNU Autoconf 2.59.  Invocation command line was
20928
 
20929
  CONFIG_FILES    = $CONFIG_FILES
20930
  CONFIG_HEADERS  = $CONFIG_HEADERS
20931
  CONFIG_LINKS    = $CONFIG_LINKS
20932
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20933
  $ $0 $@
20934
 
20935
_CSEOF
20936
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20937
echo >&5
20938
_ACEOF
20939
 
20940
# Files that config.status was made for.
20941
if test -n "$ac_config_files"; then
20942
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20943
fi
20944
 
20945
if test -n "$ac_config_headers"; then
20946
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20947
fi
20948
 
20949
if test -n "$ac_config_links"; then
20950
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20951
fi
20952
 
20953
if test -n "$ac_config_commands"; then
20954
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20955
fi
20956
 
20957
cat >>$CONFIG_STATUS <<\_ACEOF
20958
 
20959
ac_cs_usage="\
20960
\`$as_me' instantiates files from templates according to the
20961
current configuration.
20962
 
20963
Usage: $0 [OPTIONS] [FILE]...
20964
 
20965
  -h, --help       print this help, then exit
20966
  -V, --version    print version number, then exit
20967
  -q, --quiet      do not print progress messages
20968
  -d, --debug      don't remove temporary files
20969
      --recheck    update $as_me by reconfiguring in the same conditions
20970
  --file=FILE[:TEMPLATE]
20971
                   instantiate the configuration file FILE
20972
  --header=FILE[:TEMPLATE]
20973
                   instantiate the configuration header FILE
20974
 
20975
Configuration files:
20976
$config_files
20977
 
20978
Configuration headers:
20979
$config_headers
20980
 
20981
Configuration commands:
20982
$config_commands
20983
 
20984
Report bugs to ."
20985
_ACEOF
20986
 
20987
cat >>$CONFIG_STATUS <<_ACEOF
20988
ac_cs_version="\\
20989
config.status
20990
configured by $0, generated by GNU Autoconf 2.59,
20991
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20992
 
20993
Copyright (C) 2003 Free Software Foundation, Inc.
20994
This config.status script is free software; the Free Software Foundation
20995
gives unlimited permission to copy, distribute and modify it."
20996
srcdir=$srcdir
20997
INSTALL="$INSTALL"
20998
_ACEOF
20999
 
21000
cat >>$CONFIG_STATUS <<\_ACEOF
21001
# If no file are specified by the user, then we need to provide default
21002
# value.  By we need to know if files were specified by the user.
21003
ac_need_defaults=:
21004
while test $# != 0
21005
do
21006
  case $1 in
21007
  --*=*)
21008
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21009
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21010
    ac_shift=:
21011
    ;;
21012
  -*)
21013
    ac_option=$1
21014
    ac_optarg=$2
21015
    ac_shift=shift
21016
    ;;
21017
  *) # This is not an option, so the user has probably given explicit
21018
     # arguments.
21019
     ac_option=$1
21020
     ac_need_defaults=false;;
21021
  esac
21022
 
21023
  case $ac_option in
21024
  # Handling of the options.
21025
_ACEOF
21026
cat >>$CONFIG_STATUS <<\_ACEOF
21027
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21028
    ac_cs_recheck=: ;;
21029
  --version | --vers* | -V )
21030
    echo "$ac_cs_version"; exit 0 ;;
21031
  --he | --h)
21032
    # Conflict between --help and --header
21033
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21034
Try \`$0 --help' for more information." >&5
21035
echo "$as_me: error: ambiguous option: $1
21036
Try \`$0 --help' for more information." >&2;}
21037
   { (exit 1); exit 1; }; };;
21038
  --help | --hel | -h )
21039
    echo "$ac_cs_usage"; exit 0 ;;
21040
  --debug | --d* | -d )
21041
    debug=: ;;
21042
  --file | --fil | --fi | --f )
21043
    $ac_shift
21044
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21045
    ac_need_defaults=false;;
21046
  --header | --heade | --head | --hea )
21047
    $ac_shift
21048
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21049
    ac_need_defaults=false;;
21050
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21051
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21052
    ac_cs_silent=: ;;
21053
 
21054
  # This is an error.
21055
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21056
Try \`$0 --help' for more information." >&5
21057
echo "$as_me: error: unrecognized option: $1
21058
Try \`$0 --help' for more information." >&2;}
21059
   { (exit 1); exit 1; }; } ;;
21060
 
21061
  *) ac_config_targets="$ac_config_targets $1" ;;
21062
 
21063
  esac
21064
  shift
21065
done
21066
 
21067
ac_configure_extra_args=
21068
 
21069
if $ac_cs_silent; then
21070
  exec 6>/dev/null
21071
  ac_configure_extra_args="$ac_configure_extra_args --silent"
21072
fi
21073
 
21074
_ACEOF
21075
cat >>$CONFIG_STATUS <<_ACEOF
21076
if \$ac_cs_recheck; then
21077
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21078
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21079
fi
21080
 
21081
_ACEOF
21082
 
21083
cat >>$CONFIG_STATUS <<_ACEOF
21084
#
21085
# INIT-COMMANDS section.
21086
#
21087
 
21088
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21089
 
21090
 
21091
# The HP-UX ksh and POSIX shell print the target directory to stdout
21092
# if CDPATH is set.
21093
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21094
 
21095
sed_quote_subst='$sed_quote_subst'
21096
double_quote_subst='$double_quote_subst'
21097
delay_variable_subst='$delay_variable_subst'
21098
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21099
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21100
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21101
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21102
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21103
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21104
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21105
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21106
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21107
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21108
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21109
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21110
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21111
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21112
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21113
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21114
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21115
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21116
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21117
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21118
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21119
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21120
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21121
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21122
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21123
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21124
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21125
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21126
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21127
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21128
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21129
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21130
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21131
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21132
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21133
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21134
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21135
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21136
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21137
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21138
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21139
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21140
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21141
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21142
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21143
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21144
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21145
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21146
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21147
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21148
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21149
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21150
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21151
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21152
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21153
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21154
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21155
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21156
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21157
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21158
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21159
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21160
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21161
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21162
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21163
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21164
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21165
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21166
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21167
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21168
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21169
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21170
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21171
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21172
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21173
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21174
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21175
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21176
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21177
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21178
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21179
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21180
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21181
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21182
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21183
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21184
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21185
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21186
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21187
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21188
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21189
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21190
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21191
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21192
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21193
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21194
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21195
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21196
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21197
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21198
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21199
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21200
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21201
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21202
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21203
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21204
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21205
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21206
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21207
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21208
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21209
 
21210
LTCC='$LTCC'
21211
LTCFLAGS='$LTCFLAGS'
21212
compiler='$compiler_DEFAULT'
21213
 
21214
# Quote evaled strings.
21215
for var in SED \
21216
GREP \
21217
EGREP \
21218
FGREP \
21219
LD \
21220
NM \
21221
LN_S \
21222
lt_SP2NL \
21223
lt_NL2SP \
21224
reload_flag \
21225
deplibs_check_method \
21226
file_magic_cmd \
21227
AR \
21228
AR_FLAGS \
21229
STRIP \
21230
RANLIB \
21231
CC \
21232
CFLAGS \
21233
compiler \
21234
lt_cv_sys_global_symbol_pipe \
21235
lt_cv_sys_global_symbol_to_cdecl \
21236
lt_cv_sys_global_symbol_to_c_name_address \
21237
SHELL \
21238
ECHO \
21239
lt_prog_compiler_no_builtin_flag \
21240
lt_prog_compiler_wl \
21241
lt_prog_compiler_pic \
21242
lt_prog_compiler_static \
21243
lt_cv_prog_compiler_c_o \
21244
need_locks \
21245
shrext_cmds \
21246
export_dynamic_flag_spec \
21247
whole_archive_flag_spec \
21248
compiler_needs_object \
21249
with_gnu_ld \
21250
allow_undefined_flag \
21251
no_undefined_flag \
21252
hardcode_libdir_flag_spec \
21253
hardcode_libdir_flag_spec_ld \
21254
hardcode_libdir_separator \
21255
fix_srcfile_path \
21256
exclude_expsyms \
21257
include_expsyms \
21258
file_list_spec \
21259
variables_saved_for_relink \
21260
libname_spec \
21261
library_names_spec \
21262
soname_spec \
21263
finish_eval \
21264
old_striplib \
21265
striplib; do
21266
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21267
    *[\\\\\\\`\\"\\\$]*)
21268
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21269
      ;;
21270
    *)
21271
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21272
      ;;
21273
    esac
21274
done
21275
 
21276
# Double-quote double-evaled strings.
21277
for var in reload_cmds \
21278
old_postinstall_cmds \
21279
old_postuninstall_cmds \
21280
old_archive_cmds \
21281
extract_expsyms_cmds \
21282
old_archive_from_new_cmds \
21283
old_archive_from_expsyms_cmds \
21284
archive_cmds \
21285
archive_expsym_cmds \
21286
module_cmds \
21287
module_expsym_cmds \
21288
export_symbols_cmds \
21289
prelink_cmds \
21290
postinstall_cmds \
21291
postuninstall_cmds \
21292
finish_cmds \
21293
sys_lib_search_path_spec \
21294
sys_lib_dlsearch_path_spec; do
21295
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21296
    *[\\\\\\\`\\"\\\$]*)
21297
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21298
      ;;
21299
    *)
21300
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21301
      ;;
21302
    esac
21303
done
21304
 
21305
# Fix-up fallback echo if it was mangled by the above quoting rules.
21306
case \$lt_ECHO in
21307
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21308
  ;;
21309
esac
21310
 
21311
ac_aux_dir='$ac_aux_dir'
21312
xsi_shell='$xsi_shell'
21313
lt_shell_append='$lt_shell_append'
21314
 
21315
# See if we are running on zsh, and set the options which allow our
21316
# commands through without removal of \ escapes INIT.
21317
if test -n "\${ZSH_VERSION+set}" ; then
21318
   setopt NO_GLOB_SUBST
21319
fi
21320
 
21321
 
21322
    PACKAGE='$PACKAGE'
21323
    VERSION='$VERSION'
21324
    TIMESTAMP='$TIMESTAMP'
21325
    RM='$RM'
21326
    ofile='$ofile'
21327
 
21328
 
21329
 
21330
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21331
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21332
    # from automake.
21333
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21334
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
21335
    LINGUAS="${LINGUAS-%UNSET%}"
21336
 
21337
 
21338
GCC="$GCC"
21339
CC="$CC"
21340
acx_cv_header_stdint="$acx_cv_header_stdint"
21341
acx_cv_type_int8_t="$acx_cv_type_int8_t"
21342
acx_cv_type_int16_t="$acx_cv_type_int16_t"
21343
acx_cv_type_int32_t="$acx_cv_type_int32_t"
21344
acx_cv_type_int64_t="$acx_cv_type_int64_t"
21345
acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21346
ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21347
ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21348
ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21349
ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21350
ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21351
ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21352
ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21353
ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21354
 
21355
 
21356
 
21357
_ACEOF
21358
 
21359
 
21360
 
21361
cat >>$CONFIG_STATUS <<\_ACEOF
21362
for ac_config_target in $ac_config_targets
21363
do
21364
  case "$ac_config_target" in
21365
  # Handling of arguments.
21366
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21367
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21368
  "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21369
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
21370
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21371
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21372
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21373
  "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
21374
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21375
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21376
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21377
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21378
   { (exit 1); exit 1; }; };;
21379
  esac
21380
done
21381
 
21382
# If the user did not use the arguments to specify the items to instantiate,
21383
# then the envvar interface is used.  Set only those that are not.
21384
# We use the long form for the default assignment because of an extremely
21385
# bizarre bug on SunOS 4.1.3.
21386
if $ac_need_defaults; then
21387
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21388
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21389
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21390
fi
21391
 
21392
# Have a temporary directory for convenience.  Make it in the build tree
21393
# simply because there is no reason to put it here, and in addition,
21394
# creating and moving files from /tmp can sometimes cause problems.
21395
# Create a temporary directory, and hook for its removal unless debugging.
21396
$debug ||
21397
{
21398
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21399
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21400
}
21401
 
21402
# Create a (secure) tmp directory for tmp files.
21403
 
21404
{
21405
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21406
  test -n "$tmp" && test -d "$tmp"
21407
}  ||
21408
{
21409
  tmp=./confstat$$-$RANDOM
21410
  (umask 077 && mkdir $tmp)
21411
} ||
21412
{
21413
   echo "$me: cannot create a temporary directory in ." >&2
21414
   { (exit 1); exit 1; }
21415
}
21416
 
21417
_ACEOF
21418
 
21419
cat >>$CONFIG_STATUS <<_ACEOF
21420
 
21421
#
21422
# CONFIG_FILES section.
21423
#
21424
 
21425
# No need to generate the scripts if there are no CONFIG_FILES.
21426
# This happens for instance when ./config.status config.h
21427
if test -n "\$CONFIG_FILES"; then
21428
  # Protect against being on the right side of a sed subst in config.status.
21429
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21430
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21431
s,@SHELL@,$SHELL,;t t
21432
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21433
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21434
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21435
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21436
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21437
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21438
s,@exec_prefix@,$exec_prefix,;t t
21439
s,@prefix@,$prefix,;t t
21440
s,@program_transform_name@,$program_transform_name,;t t
21441
s,@bindir@,$bindir,;t t
21442
s,@sbindir@,$sbindir,;t t
21443
s,@libexecdir@,$libexecdir,;t t
21444
s,@datadir@,$datadir,;t t
21445
s,@sysconfdir@,$sysconfdir,;t t
21446
s,@sharedstatedir@,$sharedstatedir,;t t
21447
s,@localstatedir@,$localstatedir,;t t
21448
s,@libdir@,$libdir,;t t
21449
s,@includedir@,$includedir,;t t
21450
s,@oldincludedir@,$oldincludedir,;t t
21451
s,@infodir@,$infodir,;t t
21452
s,@mandir@,$mandir,;t t
21453
s,@build_alias@,$build_alias,;t t
21454
s,@host_alias@,$host_alias,;t t
21455
s,@target_alias@,$target_alias,;t t
21456
s,@DEFS@,$DEFS,;t t
21457
s,@ECHO_C@,$ECHO_C,;t t
21458
s,@ECHO_N@,$ECHO_N,;t t
21459
s,@ECHO_T@,$ECHO_T,;t t
21460
s,@LIBS@,$LIBS,;t t
21461
s,@build@,$build,;t t
21462
s,@build_cpu@,$build_cpu,;t t
21463
s,@build_vendor@,$build_vendor,;t t
21464
s,@build_os@,$build_os,;t t
21465
s,@host@,$host,;t t
21466
s,@host_cpu@,$host_cpu,;t t
21467
s,@host_vendor@,$host_vendor,;t t
21468
s,@host_os@,$host_os,;t t
21469
s,@target@,$target,;t t
21470
s,@target_cpu@,$target_cpu,;t t
21471
s,@target_vendor@,$target_vendor,;t t
21472
s,@target_os@,$target_os,;t t
21473
s,@CC@,$CC,;t t
21474
s,@CFLAGS@,$CFLAGS,;t t
21475
s,@LDFLAGS@,$LDFLAGS,;t t
21476
s,@CPPFLAGS@,$CPPFLAGS,;t t
21477
s,@ac_ct_CC@,$ac_ct_CC,;t t
21478
s,@EXEEXT@,$EXEEXT,;t t
21479
s,@OBJEXT@,$OBJEXT,;t t
21480
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21481
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21482
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21483
s,@CYGPATH_W@,$CYGPATH_W,;t t
21484
s,@PACKAGE@,$PACKAGE,;t t
21485
s,@VERSION@,$VERSION,;t t
21486
s,@ACLOCAL@,$ACLOCAL,;t t
21487
s,@AUTOCONF@,$AUTOCONF,;t t
21488
s,@AUTOMAKE@,$AUTOMAKE,;t t
21489
s,@AUTOHEADER@,$AUTOHEADER,;t t
21490
s,@MAKEINFO@,$MAKEINFO,;t t
21491
s,@install_sh@,$install_sh,;t t
21492
s,@STRIP@,$STRIP,;t t
21493
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21494
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21495
s,@mkdir_p@,$mkdir_p,;t t
21496
s,@AWK@,$AWK,;t t
21497
s,@SET_MAKE@,$SET_MAKE,;t t
21498
s,@am__leading_dot@,$am__leading_dot,;t t
21499
s,@AMTAR@,$AMTAR,;t t
21500
s,@am__tar@,$am__tar,;t t
21501
s,@am__untar@,$am__untar,;t t
21502
s,@DEPDIR@,$DEPDIR,;t t
21503
s,@am__include@,$am__include,;t t
21504
s,@am__quote@,$am__quote,;t t
21505
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21506
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21507
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21508
s,@CCDEPMODE@,$CCDEPMODE,;t t
21509
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21510
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21511
s,@AR@,$AR,;t t
21512
s,@ac_ct_AR@,$ac_ct_AR,;t t
21513
s,@RANLIB@,$RANLIB,;t t
21514
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21515
s,@LIBTOOL@,$LIBTOOL,;t t
21516
s,@SED@,$SED,;t t
21517
s,@EGREP@,$EGREP,;t t
21518
s,@FGREP@,$FGREP,;t t
21519
s,@GREP@,$GREP,;t t
21520
s,@LD@,$LD,;t t
21521
s,@DUMPBIN@,$DUMPBIN,;t t
21522
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21523
s,@NM@,$NM,;t t
21524
s,@LN_S@,$LN_S,;t t
21525
s,@lt_ECHO@,$lt_ECHO,;t t
21526
s,@CPP@,$CPP,;t t
21527
s,@DEBUGDIR@,$DEBUGDIR,;t t
21528
s,@PKGVERSION@,$PKGVERSION,;t t
21529
s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21530
s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21531
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21532
s,@NO_WERROR@,$NO_WERROR,;t t
21533
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21534
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21535
s,@MAINT@,$MAINT,;t t
21536
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21537
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21538
s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21539
s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21540
s,@host_noncanonical@,$host_noncanonical,;t t
21541
s,@target_noncanonical@,$target_noncanonical,;t t
21542
s,@bfdlibdir@,$bfdlibdir,;t t
21543
s,@bfdincludedir@,$bfdincludedir,;t t
21544
s,@USE_NLS@,$USE_NLS,;t t
21545
s,@LIBINTL@,$LIBINTL,;t t
21546
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21547
s,@INCINTL@,$INCINTL,;t t
21548
s,@XGETTEXT@,$XGETTEXT,;t t
21549
s,@GMSGFMT@,$GMSGFMT,;t t
21550
s,@POSUB@,$POSUB,;t t
21551
s,@CATALOGS@,$CATALOGS,;t t
21552
s,@DATADIRNAME@,$DATADIRNAME,;t t
21553
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21554
s,@GENCAT@,$GENCAT,;t t
21555
s,@CATOBJEXT@,$CATOBJEXT,;t t
21556
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21557
s,@MSGFMT@,$MSGFMT,;t t
21558
s,@MSGMERGE@,$MSGMERGE,;t t
21559
s,@HDEFINES@,$HDEFINES,;t t
21560
s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21561
s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
21562
s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21563
s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21564
s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21565
s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
21566
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21567
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21568
s,@COREFILE@,$COREFILE,;t t
21569
s,@COREFLAG@,$COREFLAG,;t t
21570
s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21571
s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21572
s,@TDEFINES@,$TDEFINES,;t t
21573
s,@wordsize@,$wordsize,;t t
21574
s,@bfd64_libs@,$bfd64_libs,;t t
21575
s,@all_backends@,$all_backends,;t t
21576
s,@bfd_backends@,$bfd_backends,;t t
21577
s,@bfd_machines@,$bfd_machines,;t t
21578
s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21579
s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21580
s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21581
s,@tdefaults@,$tdefaults,;t t
21582
s,@datarootdir@,$datarootdir,;t t
21583
s,@docdir@,$docdir,;t t
21584
s,@htmldir@,$htmldir,;t t
21585
s,@LIBOBJS@,$LIBOBJS,;t t
21586
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21587
CEOF
21588
 
21589
_ACEOF
21590
 
21591
  cat >>$CONFIG_STATUS <<\_ACEOF
21592
  # Split the substitutions into bite-sized pieces for seds with
21593
  # small command number limits, like on Digital OSF/1 and HP-UX.
21594
  ac_max_sed_lines=48
21595
  ac_sed_frag=1 # Number of current file.
21596
  ac_beg=1 # First line for current file.
21597
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21598
  ac_more_lines=:
21599
  ac_sed_cmds=
21600
  while $ac_more_lines; do
21601
    if test $ac_beg -gt 1; then
21602
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21603
    else
21604
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21605
    fi
21606
    if test ! -s $tmp/subs.frag; then
21607
      ac_more_lines=false
21608
    else
21609
      # The purpose of the label and of the branching condition is to
21610
      # speed up the sed processing (if there are no `@' at all, there
21611
      # is no need to browse any of the substitutions).
21612
      # These are the two extra sed commands mentioned above.
21613
      (echo ':t
21614
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21615
      if test -z "$ac_sed_cmds"; then
21616
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21617
      else
21618
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21619
      fi
21620
      ac_sed_frag=`expr $ac_sed_frag + 1`
21621
      ac_beg=$ac_end
21622
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21623
    fi
21624
  done
21625
  if test -z "$ac_sed_cmds"; then
21626
    ac_sed_cmds=cat
21627
  fi
21628
fi # test -n "$CONFIG_FILES"
21629
 
21630
_ACEOF
21631
cat >>$CONFIG_STATUS <<\_ACEOF
21632
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21633
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21634
  case $ac_file in
21635
  - | *:- | *:-:* ) # input from stdin
21636
        cat >$tmp/stdin
21637
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21638
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21639
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21640
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21641
  * )   ac_file_in=$ac_file.in ;;
21642
  esac
21643
 
21644
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21645
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21646
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647
         X"$ac_file" : 'X\(//\)[^/]' \| \
21648
         X"$ac_file" : 'X\(//\)$' \| \
21649
         X"$ac_file" : 'X\(/\)' \| \
21650
         .     : '\(.\)' 2>/dev/null ||
21651
echo X"$ac_file" |
21652
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21653
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21654
          /^X\(\/\/\)$/{ s//\1/; q; }
21655
          /^X\(\/\).*/{ s//\1/; q; }
21656
          s/.*/./; q'`
21657
  { if $as_mkdir_p; then
21658
    mkdir -p "$ac_dir"
21659
  else
21660
    as_dir="$ac_dir"
21661
    as_dirs=
21662
    while test ! -d "$as_dir"; do
21663
      as_dirs="$as_dir $as_dirs"
21664
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21665
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21666
         X"$as_dir" : 'X\(//\)[^/]' \| \
21667
         X"$as_dir" : 'X\(//\)$' \| \
21668
         X"$as_dir" : 'X\(/\)' \| \
21669
         .     : '\(.\)' 2>/dev/null ||
21670
echo X"$as_dir" |
21671
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21672
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21673
          /^X\(\/\/\)$/{ s//\1/; q; }
21674
          /^X\(\/\).*/{ s//\1/; q; }
21675
          s/.*/./; q'`
21676
    done
21677
    test ! -n "$as_dirs" || mkdir $as_dirs
21678
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21679
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21680
   { (exit 1); exit 1; }; }; }
21681
 
21682
  ac_builddir=.
21683
 
21684
if test "$ac_dir" != .; then
21685
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21686
  # A "../" for each directory in $ac_dir_suffix.
21687
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21688
else
21689
  ac_dir_suffix= ac_top_builddir=
21690
fi
21691
 
21692
case $srcdir in
21693
  .)  # No --srcdir option.  We are building in place.
21694
    ac_srcdir=.
21695
    if test -z "$ac_top_builddir"; then
21696
       ac_top_srcdir=.
21697
    else
21698
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21699
    fi ;;
21700
  [\\/]* | ?:[\\/]* )  # Absolute path.
21701
    ac_srcdir=$srcdir$ac_dir_suffix;
21702
    ac_top_srcdir=$srcdir ;;
21703
  *) # Relative path.
21704
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21705
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21706
esac
21707
 
21708
# Do not use `cd foo && pwd` to compute absolute paths, because
21709
# the directories may not exist.
21710
case `pwd` in
21711
.) ac_abs_builddir="$ac_dir";;
21712
*)
21713
  case "$ac_dir" in
21714
  .) ac_abs_builddir=`pwd`;;
21715
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21716
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21717
  esac;;
21718
esac
21719
case $ac_abs_builddir in
21720
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21721
*)
21722
  case ${ac_top_builddir}. in
21723
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21724
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21725
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21726
  esac;;
21727
esac
21728
case $ac_abs_builddir in
21729
.) ac_abs_srcdir=$ac_srcdir;;
21730
*)
21731
  case $ac_srcdir in
21732
  .) ac_abs_srcdir=$ac_abs_builddir;;
21733
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21734
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21735
  esac;;
21736
esac
21737
case $ac_abs_builddir in
21738
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21739
*)
21740
  case $ac_top_srcdir in
21741
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21742
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21743
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21744
  esac;;
21745
esac
21746
 
21747
 
21748
  case $INSTALL in
21749
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21750
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21751
  esac
21752
 
21753
  if test x"$ac_file" != x-; then
21754
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21755
echo "$as_me: creating $ac_file" >&6;}
21756
    rm -f "$ac_file"
21757
  fi
21758
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21759
  # use $as_me), people would be surprised to read:
21760
  #    /* config.h.  Generated by config.status.  */
21761
  if test x"$ac_file" = x-; then
21762
    configure_input=
21763
  else
21764
    configure_input="$ac_file.  "
21765
  fi
21766
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21767
                                     sed 's,.*/,,'` by configure."
21768
 
21769
  # First look for the input files in the build tree, otherwise in the
21770
  # src tree.
21771
  ac_file_inputs=`IFS=:
21772
    for f in $ac_file_in; do
21773
      case $f in
21774
      -) echo $tmp/stdin ;;
21775
      [\\/$]*)
21776
         # Absolute (can't be DOS-style, as IFS=:)
21777
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21778
echo "$as_me: error: cannot find input file: $f" >&2;}
21779
   { (exit 1); exit 1; }; }
21780
         echo "$f";;
21781
      *) # Relative
21782
         if test -f "$f"; then
21783
           # Build tree
21784
           echo "$f"
21785
         elif test -f "$srcdir/$f"; then
21786
           # Source tree
21787
           echo "$srcdir/$f"
21788
         else
21789
           # /dev/null tree
21790
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21791
echo "$as_me: error: cannot find input file: $f" >&2;}
21792
   { (exit 1); exit 1; }; }
21793
         fi;;
21794
      esac
21795
    done` || { (exit 1); exit 1; }
21796
_ACEOF
21797
cat >>$CONFIG_STATUS <<_ACEOF
21798
  sed "$ac_vpsub
21799
$extrasub
21800
_ACEOF
21801
cat >>$CONFIG_STATUS <<\_ACEOF
21802
:t
21803
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21804
s,@configure_input@,$configure_input,;t t
21805
s,@srcdir@,$ac_srcdir,;t t
21806
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21807
s,@top_srcdir@,$ac_top_srcdir,;t t
21808
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21809
s,@builddir@,$ac_builddir,;t t
21810
s,@abs_builddir@,$ac_abs_builddir,;t t
21811
s,@top_builddir@,$ac_top_builddir,;t t
21812
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21813
s,@INSTALL@,$ac_INSTALL,;t t
21814
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21815
  rm -f $tmp/stdin
21816
  if test x"$ac_file" != x-; then
21817
    mv $tmp/out $ac_file
21818
  else
21819
    cat $tmp/out
21820
    rm -f $tmp/out
21821
  fi
21822
 
21823
done
21824
_ACEOF
21825
cat >>$CONFIG_STATUS <<\_ACEOF
21826
 
21827
#
21828
# CONFIG_HEADER section.
21829
#
21830
 
21831
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21832
# NAME is the cpp macro being defined and VALUE is the value it is being given.
21833
#
21834
# ac_d sets the value in "#define NAME VALUE" lines.
21835
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21836
ac_dB='[         ].*$,\1#\2'
21837
ac_dC=' '
21838
ac_dD=',;t'
21839
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21840
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21841
ac_uB='$,\1#\2define\3'
21842
ac_uC=' '
21843
ac_uD=',;t'
21844
 
21845
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21846
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21847
  case $ac_file in
21848
  - | *:- | *:-:* ) # input from stdin
21849
        cat >$tmp/stdin
21850
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21851
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21852
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21853
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21854
  * )   ac_file_in=$ac_file.in ;;
21855
  esac
21856
 
21857
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21858
echo "$as_me: creating $ac_file" >&6;}
21859
 
21860
  # First look for the input files in the build tree, otherwise in the
21861
  # src tree.
21862
  ac_file_inputs=`IFS=:
21863
    for f in $ac_file_in; do
21864
      case $f in
21865
      -) echo $tmp/stdin ;;
21866
      [\\/$]*)
21867
         # Absolute (can't be DOS-style, as IFS=:)
21868
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21869
echo "$as_me: error: cannot find input file: $f" >&2;}
21870
   { (exit 1); exit 1; }; }
21871
         # Do quote $f, to prevent DOS paths from being IFS'd.
21872
         echo "$f";;
21873
      *) # Relative
21874
         if test -f "$f"; then
21875
           # Build tree
21876
           echo "$f"
21877
         elif test -f "$srcdir/$f"; then
21878
           # Source tree
21879
           echo "$srcdir/$f"
21880
         else
21881
           # /dev/null tree
21882
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21883
echo "$as_me: error: cannot find input file: $f" >&2;}
21884
   { (exit 1); exit 1; }; }
21885
         fi;;
21886
      esac
21887
    done` || { (exit 1); exit 1; }
21888
  # Remove the trailing spaces.
21889
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21890
 
21891
_ACEOF
21892
 
21893
# Transform confdefs.h into two sed scripts, `conftest.defines' and
21894
# `conftest.undefs', that substitutes the proper values into
21895
# config.h.in to produce config.h.  The first handles `#define'
21896
# templates, and the second `#undef' templates.
21897
# And first: Protect against being on the right side of a sed subst in
21898
# config.status.  Protect against being in an unquoted here document
21899
# in config.status.
21900
rm -f conftest.defines conftest.undefs
21901
# Using a here document instead of a string reduces the quoting nightmare.
21902
# Putting comments in sed scripts is not portable.
21903
#
21904
# `end' is used to avoid that the second main sed command (meant for
21905
# 0-ary CPP macros) applies to n-ary macro definitions.
21906
# See the Autoconf documentation for `clear'.
21907
cat >confdef2sed.sed <<\_ACEOF
21908
s/[\\&,]/\\&/g
21909
s,[\\$`],\\&,g
21910
t clear
21911
: clear
21912
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21913
t end
21914
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21915
: end
21916
_ACEOF
21917
# If some macros were called several times there might be several times
21918
# the same #defines, which is useless.  Nevertheless, we may not want to
21919
# sort them, since we want the *last* AC-DEFINE to be honored.
21920
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21921
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21922
rm -f confdef2sed.sed
21923
 
21924
# This sed command replaces #undef with comments.  This is necessary, for
21925
# example, in the case of _POSIX_SOURCE, which is predefined and required
21926
# on some systems where configure will not decide to define it.
21927
cat >>conftest.undefs <<\_ACEOF
21928
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21929
_ACEOF
21930
 
21931
# Break up conftest.defines because some shells have a limit on the size
21932
# of here documents, and old seds have small limits too (100 cmds).
21933
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21934
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21935
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21936
echo '  :' >>$CONFIG_STATUS
21937
rm -f conftest.tail
21938
while grep . conftest.defines >/dev/null
21939
do
21940
  # Write a limited-size here document to $tmp/defines.sed.
21941
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
21942
  # Speed up: don't consider the non `#define' lines.
21943
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21944
  # Work around the forget-to-reset-the-flag bug.
21945
  echo 't clr' >>$CONFIG_STATUS
21946
  echo ': clr' >>$CONFIG_STATUS
21947
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21948
  echo 'CEOF
21949
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21950
  rm -f $tmp/in
21951
  mv $tmp/out $tmp/in
21952
' >>$CONFIG_STATUS
21953
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21954
  rm -f conftest.defines
21955
  mv conftest.tail conftest.defines
21956
done
21957
rm -f conftest.defines
21958
echo '  fi # grep' >>$CONFIG_STATUS
21959
echo >>$CONFIG_STATUS
21960
 
21961
# Break up conftest.undefs because some shells have a limit on the size
21962
# of here documents, and old seds have small limits too (100 cmds).
21963
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21964
rm -f conftest.tail
21965
while grep . conftest.undefs >/dev/null
21966
do
21967
  # Write a limited-size here document to $tmp/undefs.sed.
21968
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
21969
  # Speed up: don't consider the non `#undef'
21970
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21971
  # Work around the forget-to-reset-the-flag bug.
21972
  echo 't clr' >>$CONFIG_STATUS
21973
  echo ': clr' >>$CONFIG_STATUS
21974
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21975
  echo 'CEOF
21976
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21977
  rm -f $tmp/in
21978
  mv $tmp/out $tmp/in
21979
' >>$CONFIG_STATUS
21980
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21981
  rm -f conftest.undefs
21982
  mv conftest.tail conftest.undefs
21983
done
21984
rm -f conftest.undefs
21985
 
21986
cat >>$CONFIG_STATUS <<\_ACEOF
21987
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21988
  # use $as_me), people would be surprised to read:
21989
  #    /* config.h.  Generated by config.status.  */
21990
  if test x"$ac_file" = x-; then
21991
    echo "/* Generated by configure.  */" >$tmp/config.h
21992
  else
21993
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21994
  fi
21995
  cat $tmp/in >>$tmp/config.h
21996
  rm -f $tmp/in
21997
  if test x"$ac_file" != x-; then
21998
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21999
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22000
echo "$as_me: $ac_file is unchanged" >&6;}
22001
    else
22002
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22003
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22004
         X"$ac_file" : 'X\(//\)[^/]' \| \
22005
         X"$ac_file" : 'X\(//\)$' \| \
22006
         X"$ac_file" : 'X\(/\)' \| \
22007
         .     : '\(.\)' 2>/dev/null ||
22008
echo X"$ac_file" |
22009
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22010
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22011
          /^X\(\/\/\)$/{ s//\1/; q; }
22012
          /^X\(\/\).*/{ s//\1/; q; }
22013
          s/.*/./; q'`
22014
      { if $as_mkdir_p; then
22015
    mkdir -p "$ac_dir"
22016
  else
22017
    as_dir="$ac_dir"
22018
    as_dirs=
22019
    while test ! -d "$as_dir"; do
22020
      as_dirs="$as_dir $as_dirs"
22021
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22022
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22023
         X"$as_dir" : 'X\(//\)[^/]' \| \
22024
         X"$as_dir" : 'X\(//\)$' \| \
22025
         X"$as_dir" : 'X\(/\)' \| \
22026
         .     : '\(.\)' 2>/dev/null ||
22027
echo X"$as_dir" |
22028
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22029
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22030
          /^X\(\/\/\)$/{ s//\1/; q; }
22031
          /^X\(\/\).*/{ s//\1/; q; }
22032
          s/.*/./; q'`
22033
    done
22034
    test ! -n "$as_dirs" || mkdir $as_dirs
22035
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22036
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22037
   { (exit 1); exit 1; }; }; }
22038
 
22039
      rm -f $ac_file
22040
      mv $tmp/config.h $ac_file
22041
    fi
22042
  else
22043
    cat $tmp/config.h
22044
    rm -f $tmp/config.h
22045
  fi
22046
# Compute $ac_file's index in $config_headers.
22047
_am_stamp_count=1
22048
for _am_header in $config_headers :; do
22049
  case $_am_header in
22050
    $ac_file | $ac_file:* )
22051
      break ;;
22052
    * )
22053
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22054
  esac
22055
done
22056
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22057
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22058
         X$ac_file : 'X\(//\)[^/]' \| \
22059
         X$ac_file : 'X\(//\)$' \| \
22060
         X$ac_file : 'X\(/\)' \| \
22061
         .     : '\(.\)' 2>/dev/null ||
22062
echo X$ac_file |
22063
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22064
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22065
          /^X\(\/\/\)$/{ s//\1/; q; }
22066
          /^X\(\/\).*/{ s//\1/; q; }
22067
          s/.*/./; q'`/stamp-h$_am_stamp_count
22068
done
22069
_ACEOF
22070
cat >>$CONFIG_STATUS <<\_ACEOF
22071
 
22072
#
22073
# CONFIG_COMMANDS section.
22074
#
22075
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22076
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22077
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22078
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22079
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080
         X"$ac_dest" : 'X\(//\)[^/]' \| \
22081
         X"$ac_dest" : 'X\(//\)$' \| \
22082
         X"$ac_dest" : 'X\(/\)' \| \
22083
         .     : '\(.\)' 2>/dev/null ||
22084
echo X"$ac_dest" |
22085
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087
          /^X\(\/\/\)$/{ s//\1/; q; }
22088
          /^X\(\/\).*/{ s//\1/; q; }
22089
          s/.*/./; q'`
22090
  { if $as_mkdir_p; then
22091
    mkdir -p "$ac_dir"
22092
  else
22093
    as_dir="$ac_dir"
22094
    as_dirs=
22095
    while test ! -d "$as_dir"; do
22096
      as_dirs="$as_dir $as_dirs"
22097
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22098
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22099
         X"$as_dir" : 'X\(//\)[^/]' \| \
22100
         X"$as_dir" : 'X\(//\)$' \| \
22101
         X"$as_dir" : 'X\(/\)' \| \
22102
         .     : '\(.\)' 2>/dev/null ||
22103
echo X"$as_dir" |
22104
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22105
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22106
          /^X\(\/\/\)$/{ s//\1/; q; }
22107
          /^X\(\/\).*/{ s//\1/; q; }
22108
          s/.*/./; q'`
22109
    done
22110
    test ! -n "$as_dirs" || mkdir $as_dirs
22111
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22112
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22113
   { (exit 1); exit 1; }; }; }
22114
 
22115
  ac_builddir=.
22116
 
22117
if test "$ac_dir" != .; then
22118
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22119
  # A "../" for each directory in $ac_dir_suffix.
22120
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22121
else
22122
  ac_dir_suffix= ac_top_builddir=
22123
fi
22124
 
22125
case $srcdir in
22126
  .)  # No --srcdir option.  We are building in place.
22127
    ac_srcdir=.
22128
    if test -z "$ac_top_builddir"; then
22129
       ac_top_srcdir=.
22130
    else
22131
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22132
    fi ;;
22133
  [\\/]* | ?:[\\/]* )  # Absolute path.
22134
    ac_srcdir=$srcdir$ac_dir_suffix;
22135
    ac_top_srcdir=$srcdir ;;
22136
  *) # Relative path.
22137
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22138
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22139
esac
22140
 
22141
# Do not use `cd foo && pwd` to compute absolute paths, because
22142
# the directories may not exist.
22143
case `pwd` in
22144
.) ac_abs_builddir="$ac_dir";;
22145
*)
22146
  case "$ac_dir" in
22147
  .) ac_abs_builddir=`pwd`;;
22148
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22149
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22150
  esac;;
22151
esac
22152
case $ac_abs_builddir in
22153
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22154
*)
22155
  case ${ac_top_builddir}. in
22156
  .) ac_abs_top_builddir=$ac_abs_builddir;;
22157
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22158
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22159
  esac;;
22160
esac
22161
case $ac_abs_builddir in
22162
.) ac_abs_srcdir=$ac_srcdir;;
22163
*)
22164
  case $ac_srcdir in
22165
  .) ac_abs_srcdir=$ac_abs_builddir;;
22166
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22167
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22168
  esac;;
22169
esac
22170
case $ac_abs_builddir in
22171
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22172
*)
22173
  case $ac_top_srcdir in
22174
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22175
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22176
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22177
  esac;;
22178
esac
22179
 
22180
 
22181
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22182
echo "$as_me: executing $ac_dest commands" >&6;}
22183
  case $ac_dest in
22184
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22185
  # Strip MF so we end up with the name of the file.
22186
  mf=`echo "$mf" | sed -e 's/:.*$//'`
22187
  # Check whether this is an Automake generated Makefile or not.
22188
  # We used to match only the files named `Makefile.in', but
22189
  # some people rename them; so instead we look at the file content.
22190
  # Grep'ing the first line is not enough: some people post-process
22191
  # each Makefile.in and add a new line on top of each file to say so.
22192
  # So let's grep whole file.
22193
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22194
    dirpart=`(dirname "$mf") 2>/dev/null ||
22195
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196
         X"$mf" : 'X\(//\)[^/]' \| \
22197
         X"$mf" : 'X\(//\)$' \| \
22198
         X"$mf" : 'X\(/\)' \| \
22199
         .     : '\(.\)' 2>/dev/null ||
22200
echo X"$mf" |
22201
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22202
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22203
          /^X\(\/\/\)$/{ s//\1/; q; }
22204
          /^X\(\/\).*/{ s//\1/; q; }
22205
          s/.*/./; q'`
22206
  else
22207
    continue
22208
  fi
22209
  # Extract the definition of DEPDIR, am__include, and am__quote
22210
  # from the Makefile without running `make'.
22211
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22212
  test -z "$DEPDIR" && continue
22213
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22214
  test -z "am__include" && continue
22215
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22216
  # When using ansi2knr, U may be empty or an underscore; expand it
22217
  U=`sed -n 's/^U = //p' < "$mf"`
22218
  # Find all dependency output files, they are included files with
22219
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22220
  # simplest approach to changing $(DEPDIR) to its actual value in the
22221
  # expansion.
22222
  for file in `sed -n "
22223
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22224
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22225
    # Make sure the directory exists.
22226
    test -f "$dirpart/$file" && continue
22227
    fdir=`(dirname "$file") 2>/dev/null ||
22228
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22229
         X"$file" : 'X\(//\)[^/]' \| \
22230
         X"$file" : 'X\(//\)$' \| \
22231
         X"$file" : 'X\(/\)' \| \
22232
         .     : '\(.\)' 2>/dev/null ||
22233
echo X"$file" |
22234
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22235
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22236
          /^X\(\/\/\)$/{ s//\1/; q; }
22237
          /^X\(\/\).*/{ s//\1/; q; }
22238
          s/.*/./; q'`
22239
    { if $as_mkdir_p; then
22240
    mkdir -p $dirpart/$fdir
22241
  else
22242
    as_dir=$dirpart/$fdir
22243
    as_dirs=
22244
    while test ! -d "$as_dir"; do
22245
      as_dirs="$as_dir $as_dirs"
22246
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22247
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248
         X"$as_dir" : 'X\(//\)[^/]' \| \
22249
         X"$as_dir" : 'X\(//\)$' \| \
22250
         X"$as_dir" : 'X\(/\)' \| \
22251
         .     : '\(.\)' 2>/dev/null ||
22252
echo X"$as_dir" |
22253
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22254
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22255
          /^X\(\/\/\)$/{ s//\1/; q; }
22256
          /^X\(\/\).*/{ s//\1/; q; }
22257
          s/.*/./; q'`
22258
    done
22259
    test ! -n "$as_dirs" || mkdir $as_dirs
22260
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22261
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22262
   { (exit 1); exit 1; }; }; }
22263
 
22264
    # echo "creating $dirpart/$file"
22265
    echo '# dummy' > "$dirpart/$file"
22266
  done
22267
done
22268
 ;;
22269
    libtool )
22270
 
22271
    # See if we are running on zsh, and set the options which allow our
22272
    # commands through without removal of \ escapes.
22273
    if test -n "${ZSH_VERSION+set}" ; then
22274
      setopt NO_GLOB_SUBST
22275
    fi
22276
 
22277
    cfgfile="${ofile}T"
22278
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22279
    $RM "$cfgfile"
22280
 
22281
    cat <<_LT_EOF >> "$cfgfile"
22282
#! $SHELL
22283
 
22284
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22285
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22286
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22287
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22288
#
22289
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22290
# 2006, 2007 Free Software Foundation, Inc.
22291
#
22292
# This file is part of GNU Libtool:
22293
# Originally by Gordon Matzigkeit , 1996
22294
#
22295
# This program is free software; you can redistribute it and/or modify
22296
# it under the terms of the GNU General Public License as published by
22297
# the Free Software Foundation; either version 2 of the License, or
22298
# (at your option) any later version.
22299
#
22300
# This program is distributed in the hope that it will be useful, but
22301
# WITHOUT ANY WARRANTY; without even the implied warranty of
22302
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22303
# General Public License for more details.
22304
#
22305
# You should have received a copy of the GNU General Public License
22306
# along with this program; if not, a copy can be downloaded from
22307
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22308
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22309
# MA 02110-1301, USA.
22310
#
22311
# As a special exception to the GNU General Public License, if you
22312
# distribute this file as part of a program that contains a
22313
# configuration script generated by Autoconf, you may include it under
22314
# the same distribution terms that you use for the rest of that program.
22315
 
22316
 
22317
# The names of the tagged configurations supported by this script.
22318
available_tags=""
22319
 
22320
# ### BEGIN LIBTOOL CONFIG
22321
 
22322
# Whether or not to build shared libraries.
22323
build_libtool_libs=$enable_shared
22324
 
22325
# Which release of libtool.m4 was used?
22326
macro_version=$macro_version
22327
macro_revision=$macro_revision
22328
 
22329
# Whether or not to build static libraries.
22330
build_old_libs=$enable_static
22331
 
22332
# What type of objects to build.
22333
pic_mode=$pic_mode
22334
 
22335
# Whether or not to optimize for fast installation.
22336
fast_install=$enable_fast_install
22337
 
22338
# The host system.
22339
host_alias=$host_alias
22340
host=$host
22341
host_os=$host_os
22342
 
22343
# The build system.
22344
build_alias=$build_alias
22345
build=$build
22346
build_os=$build_os
22347
 
22348
# A sed program that does not truncate output.
22349
SED=$lt_SED
22350
 
22351
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22352
Xsed="\$SED -e 1s/^X//"
22353
 
22354
# A grep program that handles long lines.
22355
GREP=$lt_GREP
22356
 
22357
# An ERE matcher.
22358
EGREP=$lt_EGREP
22359
 
22360
# A literal string matcher.
22361
FGREP=$lt_FGREP
22362
 
22363
# A BSD- or MS-compatible name lister.
22364
NM=$lt_NM
22365
 
22366
# Whether we need soft or hard links.
22367
LN_S=$lt_LN_S
22368
 
22369
# What is the maximum length of a command?
22370
max_cmd_len=$max_cmd_len
22371
 
22372
# Object file suffix (normally "o").
22373
objext=$ac_objext
22374
 
22375
# Executable file suffix (normally "").
22376
exeext=$exeext
22377
 
22378
# whether the shell understands "unset".
22379
lt_unset=$lt_unset
22380
 
22381
# turn spaces into newlines.
22382
SP2NL=$lt_lt_SP2NL
22383
 
22384
# turn newlines into spaces.
22385
NL2SP=$lt_lt_NL2SP
22386
 
22387
# How to create reloadable object files.
22388
reload_flag=$lt_reload_flag
22389
reload_cmds=$lt_reload_cmds
22390
 
22391
# Method to check whether dependent libraries are shared objects.
22392
deplibs_check_method=$lt_deplibs_check_method
22393
 
22394
# Command to use when deplibs_check_method == "file_magic".
22395
file_magic_cmd=$lt_file_magic_cmd
22396
 
22397
# The archiver.
22398
AR=$lt_AR
22399
AR_FLAGS=$lt_AR_FLAGS
22400
 
22401
# A symbol stripping program.
22402
STRIP=$lt_STRIP
22403
 
22404
# Commands used to install an old-style archive.
22405
RANLIB=$lt_RANLIB
22406
old_postinstall_cmds=$lt_old_postinstall_cmds
22407
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22408
 
22409
# A C compiler.
22410
LTCC=$lt_CC
22411
 
22412
# LTCC compiler flags.
22413
LTCFLAGS=$lt_CFLAGS
22414
 
22415
# Take the output of nm and produce a listing of raw symbols and C names.
22416
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22417
 
22418
# Transform the output of nm in a proper C declaration.
22419
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22420
 
22421
# Transform the output of nm in a C name address pair.
22422
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22423
 
22424
# The name of the directory that contains temporary libtool files.
22425
objdir=$objdir
22426
 
22427
# Shell to use when invoking shell scripts.
22428
SHELL=$lt_SHELL
22429
 
22430
# An echo program that does not interpret backslashes.
22431
ECHO=$lt_ECHO
22432
 
22433
# Used to examine libraries when file_magic_cmd begins with "file".
22434
MAGIC_CMD=$MAGIC_CMD
22435
 
22436
# Must we lock files when doing compilation?
22437
need_locks=$lt_need_locks
22438
 
22439
# Old archive suffix (normally "a").
22440
libext=$libext
22441
 
22442
# Shared library suffix (normally ".so").
22443
shrext_cmds=$lt_shrext_cmds
22444
 
22445
# The commands to extract the exported symbol list from a shared archive.
22446
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22447
 
22448
# Variables whose values should be saved in libtool wrapper scripts and
22449
# restored at link time.
22450
variables_saved_for_relink=$lt_variables_saved_for_relink
22451
 
22452
# Do we need the "lib" prefix for modules?
22453
need_lib_prefix=$need_lib_prefix
22454
 
22455
# Do we need a version for libraries?
22456
need_version=$need_version
22457
 
22458
# Library versioning type.
22459
version_type=$version_type
22460
 
22461
# Shared library runtime path variable.
22462
runpath_var=$runpath_var
22463
 
22464
# Shared library path variable.
22465
shlibpath_var=$shlibpath_var
22466
 
22467
# Is shlibpath searched before the hard-coded library search path?
22468
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22469
 
22470
# Format of library name prefix.
22471
libname_spec=$lt_libname_spec
22472
 
22473
# List of archive names.  First name is the real one, the rest are links.
22474
# The last name is the one that the linker finds with -lNAME
22475
library_names_spec=$lt_library_names_spec
22476
 
22477
# The coded name of the library, if different from the real name.
22478
soname_spec=$lt_soname_spec
22479
 
22480
# Command to use after installation of a shared archive.
22481
postinstall_cmds=$lt_postinstall_cmds
22482
 
22483
# Command to use after uninstallation of a shared archive.
22484
postuninstall_cmds=$lt_postuninstall_cmds
22485
 
22486
# Commands used to finish a libtool library installation in a directory.
22487
finish_cmds=$lt_finish_cmds
22488
 
22489
# As "finish_cmds", except a single script fragment to be evaled but
22490
# not shown.
22491
finish_eval=$lt_finish_eval
22492
 
22493
# Whether we should hardcode library paths into libraries.
22494
hardcode_into_libs=$hardcode_into_libs
22495
 
22496
# Compile-time system search path for libraries.
22497
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22498
 
22499
# Run-time system search path for libraries.
22500
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22501
 
22502
# Whether dlopen is supported.
22503
dlopen_support=$enable_dlopen
22504
 
22505
# Whether dlopen of programs is supported.
22506
dlopen_self=$enable_dlopen_self
22507
 
22508
# Whether dlopen of statically linked programs is supported.
22509
dlopen_self_static=$enable_dlopen_self_static
22510
 
22511
# Commands to strip libraries.
22512
old_striplib=$lt_old_striplib
22513
striplib=$lt_striplib
22514
 
22515
 
22516
# The linker used to build libraries.
22517
LD=$lt_LD
22518
 
22519
# Commands used to build an old-style archive.
22520
old_archive_cmds=$lt_old_archive_cmds
22521
 
22522
# A language specific compiler.
22523
CC=$lt_compiler
22524
 
22525
# Is the compiler the GNU compiler?
22526
with_gcc=$GCC
22527
 
22528
# Compiler flag to turn off builtin functions.
22529
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22530
 
22531
# How to pass a linker flag through the compiler.
22532
wl=$lt_lt_prog_compiler_wl
22533
 
22534
# Additional compiler flags for building library objects.
22535
pic_flag=$lt_lt_prog_compiler_pic
22536
 
22537
# Compiler flag to prevent dynamic linking.
22538
link_static_flag=$lt_lt_prog_compiler_static
22539
 
22540
# Does compiler simultaneously support -c and -o options?
22541
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22542
 
22543
# Whether or not to add -lc for building shared libraries.
22544
build_libtool_need_lc=$archive_cmds_need_lc
22545
 
22546
# Whether or not to disallow shared libs when runtime libs are static.
22547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22548
 
22549
# Compiler flag to allow reflexive dlopens.
22550
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22551
 
22552
# Compiler flag to generate shared objects directly from archives.
22553
whole_archive_flag_spec=$lt_whole_archive_flag_spec
22554
 
22555
# Whether the compiler copes with passing no objects directly.
22556
compiler_needs_object=$lt_compiler_needs_object
22557
 
22558
# Create an old-style archive from a shared archive.
22559
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22560
 
22561
# Create a temporary old-style archive to link instead of a shared archive.
22562
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22563
 
22564
# Commands used to build a shared archive.
22565
archive_cmds=$lt_archive_cmds
22566
archive_expsym_cmds=$lt_archive_expsym_cmds
22567
 
22568
# Commands used to build a loadable module if different from building
22569
# a shared archive.
22570
module_cmds=$lt_module_cmds
22571
module_expsym_cmds=$lt_module_expsym_cmds
22572
 
22573
# Whether we are building with GNU ld or not.
22574
with_gnu_ld=$lt_with_gnu_ld
22575
 
22576
# Flag that allows shared libraries with undefined symbols to be built.
22577
allow_undefined_flag=$lt_allow_undefined_flag
22578
 
22579
# Flag that enforces no undefined symbols.
22580
no_undefined_flag=$lt_no_undefined_flag
22581
 
22582
# Flag to hardcode \$libdir into a binary during linking.
22583
# This must work even if \$libdir does not exist
22584
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22585
 
22586
# If ld is used when linking, flag to hardcode \$libdir into a binary
22587
# during linking.  This must work even if \$libdir does not exist.
22588
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22589
 
22590
# Whether we need a single "-rpath" flag with a separated argument.
22591
hardcode_libdir_separator=$lt_hardcode_libdir_separator
22592
 
22593
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22594
# DIR into the resulting binary.
22595
hardcode_direct=$hardcode_direct
22596
 
22597
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22598
# DIR into the resulting binary and the resulting library dependency is
22599
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22600
# library is relocated.
22601
hardcode_direct_absolute=$hardcode_direct_absolute
22602
 
22603
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22604
# into the resulting binary.
22605
hardcode_minus_L=$hardcode_minus_L
22606
 
22607
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22608
# into the resulting binary.
22609
hardcode_shlibpath_var=$hardcode_shlibpath_var
22610
 
22611
# Set to "yes" if building a shared library automatically hardcodes DIR
22612
# into the library and all subsequent libraries and executables linked
22613
# against it.
22614
hardcode_automatic=$hardcode_automatic
22615
 
22616
# Set to yes if linker adds runtime paths of dependent libraries
22617
# to runtime path list.
22618
inherit_rpath=$inherit_rpath
22619
 
22620
# Whether libtool must link a program against all its dependency libraries.
22621
link_all_deplibs=$link_all_deplibs
22622
 
22623
# Fix the shell variable \$srcfile for the compiler.
22624
fix_srcfile_path=$lt_fix_srcfile_path
22625
 
22626
# Set to "yes" if exported symbols are required.
22627
always_export_symbols=$always_export_symbols
22628
 
22629
# The commands to list exported symbols.
22630
export_symbols_cmds=$lt_export_symbols_cmds
22631
 
22632
# Symbols that should not be listed in the preloaded symbols.
22633
exclude_expsyms=$lt_exclude_expsyms
22634
 
22635
# Symbols that must always be exported.
22636
include_expsyms=$lt_include_expsyms
22637
 
22638
# Commands necessary for linking programs (against libraries) with templates.
22639
prelink_cmds=$lt_prelink_cmds
22640
 
22641
# Specify filename containing input files.
22642
file_list_spec=$lt_file_list_spec
22643
 
22644
# How to hardcode a shared library path into an executable.
22645
hardcode_action=$hardcode_action
22646
 
22647
# ### END LIBTOOL CONFIG
22648
 
22649
_LT_EOF
22650
 
22651
  case $host_os in
22652
  aix3*)
22653
    cat <<\_LT_EOF >> "$cfgfile"
22654
# AIX sometimes has problems with the GCC collect2 program.  For some
22655
# reason, if we set the COLLECT_NAMES environment variable, the problems
22656
# vanish in a puff of smoke.
22657
if test "X${COLLECT_NAMES+set}" != Xset; then
22658
  COLLECT_NAMES=
22659
  export COLLECT_NAMES
22660
fi
22661
_LT_EOF
22662
    ;;
22663
  esac
22664
 
22665
 
22666
ltmain="$ac_aux_dir/ltmain.sh"
22667
 
22668
 
22669
  # We use sed instead of cat because bash on DJGPP gets confused if
22670
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22671
  # text mode, it properly converts lines to CR/LF.  This bash problem
22672
  # is reportedly fixed, but why not run on old versions too?
22673
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22674
    || (rm -f "$cfgfile"; exit 1)
22675
 
22676
  case $xsi_shell in
22677
  yes)
22678
    cat << \_LT_EOF >> "$cfgfile"
22679
# func_dirname file append nondir_replacement
22680
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22681
# otherwise set result to NONDIR_REPLACEMENT.
22682
func_dirname ()
22683
{
22684
  case ${1} in
22685
    */*) func_dirname_result="${1%/*}${2}" ;;
22686
    *  ) func_dirname_result="${3}" ;;
22687
  esac
22688
}
22689
 
22690
# func_basename file
22691
func_basename ()
22692
{
22693
  func_basename_result="${1##*/}"
22694
}
22695
 
22696
# func_stripname prefix suffix name
22697
# strip PREFIX and SUFFIX off of NAME.
22698
# PREFIX and SUFFIX must not contain globbing or regex special
22699
# characters, hashes, percent signs, but SUFFIX may contain a leading
22700
# dot (in which case that matches only a dot).
22701
func_stripname ()
22702
{
22703
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22704
  # positional parameters, so assign one to ordinary parameter first.
22705
  func_stripname_result=${3}
22706
  func_stripname_result=${func_stripname_result#"${1}"}
22707
  func_stripname_result=${func_stripname_result%"${2}"}
22708
}
22709
 
22710
# func_opt_split
22711
func_opt_split ()
22712
{
22713
  func_opt_split_opt=${1%%=*}
22714
  func_opt_split_arg=${1#*=}
22715
}
22716
 
22717
# func_lo2o object
22718
func_lo2o ()
22719
{
22720
  case ${1} in
22721
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22722
    *)    func_lo2o_result=${1} ;;
22723
  esac
22724
}
22725
_LT_EOF
22726
    ;;
22727
  *) # Bourne compatible functions.
22728
    cat << \_LT_EOF >> "$cfgfile"
22729
# func_dirname file append nondir_replacement
22730
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22731
# otherwise set result to NONDIR_REPLACEMENT.
22732
func_dirname ()
22733
{
22734
  # Extract subdirectory from the argument.
22735
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22736
  if test "X$func_dirname_result" = "X${1}"; then
22737
    func_dirname_result="${3}"
22738
  else
22739
    func_dirname_result="$func_dirname_result${2}"
22740
  fi
22741
}
22742
 
22743
# func_basename file
22744
func_basename ()
22745
{
22746
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22747
}
22748
 
22749
# func_stripname prefix suffix name
22750
# strip PREFIX and SUFFIX off of NAME.
22751
# PREFIX and SUFFIX must not contain globbing or regex special
22752
# characters, hashes, percent signs, but SUFFIX may contain a leading
22753
# dot (in which case that matches only a dot).
22754
# func_strip_suffix prefix name
22755
func_stripname ()
22756
{
22757
  case ${2} in
22758
    .*) func_stripname_result=`$ECHO "X${3}" \
22759
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22760
    *)  func_stripname_result=`$ECHO "X${3}" \
22761
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22762
  esac
22763
}
22764
 
22765
# sed scripts:
22766
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22767
my_sed_long_arg='1s/^-[^=]*=//'
22768
 
22769
# func_opt_split
22770
func_opt_split ()
22771
{
22772
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22773
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22774
}
22775
 
22776
# func_lo2o object
22777
func_lo2o ()
22778
{
22779
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22780
}
22781
_LT_EOF
22782
esac
22783
 
22784
case $lt_shell_append in
22785
  yes)
22786
    cat << \_LT_EOF >> "$cfgfile"
22787
 
22788
# func_append var value
22789
# Append VALUE to the end of shell variable VAR.
22790
func_append ()
22791
{
22792
  eval "$1+=\$2"
22793
}
22794
_LT_EOF
22795
    ;;
22796
  *)
22797
    cat << \_LT_EOF >> "$cfgfile"
22798
 
22799
# func_append var value
22800
# Append VALUE to the end of shell variable VAR.
22801
func_append ()
22802
{
22803
  eval "$1=\$$1\$2"
22804
}
22805
_LT_EOF
22806
    ;;
22807
  esac
22808
 
22809
 
22810
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22811
    || (rm -f "$cfgfile"; exit 1)
22812
 
22813
  mv -f "$cfgfile" "$ofile" ||
22814
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22815
  chmod +x "$ofile"
22816
 
22817
 ;;
22818
    default-1 )
22819
    for ac_file in $CONFIG_FILES; do
22820
      # Support "outfile[:infile[:infile...]]"
22821
      case "$ac_file" in
22822
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22823
      esac
22824
      # PO directories have a Makefile.in generated from Makefile.in.in.
22825
      case "$ac_file" in */Makefile.in)
22826
        # Adjust a relative srcdir.
22827
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22828
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22829
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22830
        # In autoconf-2.13 it is called $ac_given_srcdir.
22831
        # In autoconf-2.50 it is called $srcdir.
22832
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22833
        case "$ac_given_srcdir" in
22834
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22835
          /*) top_srcdir="$ac_given_srcdir" ;;
22836
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
22837
        esac
22838
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22839
          rm -f "$ac_dir/POTFILES"
22840
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22841
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22842
          POMAKEFILEDEPS="POTFILES.in"
22843
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22844
          # on $ac_dir but don't depend on user-specified configuration
22845
          # parameters.
22846
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22847
            # The LINGUAS file contains the set of available languages.
22848
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
22849
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22850
            fi
22851
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22852
            # Hide the ALL_LINGUAS assigment from automake.
22853
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22854
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22855
          else
22856
            # The set of available languages was given in configure.in.
22857
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22858
          fi
22859
          case "$ac_given_srcdir" in
22860
            .) srcdirpre= ;;
22861
            *) srcdirpre='$(srcdir)/' ;;
22862
          esac
22863
          POFILES=
22864
          GMOFILES=
22865
          UPDATEPOFILES=
22866
          DUMMYPOFILES=
22867
          for lang in $ALL_LINGUAS; do
22868
            POFILES="$POFILES $srcdirpre$lang.po"
22869
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22870
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22871
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22872
          done
22873
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
22874
          # environment variable.
22875
          INST_LINGUAS=
22876
          if test -n "$ALL_LINGUAS"; then
22877
            for presentlang in $ALL_LINGUAS; do
22878
              useit=no
22879
              if test "%UNSET%" != "$LINGUAS"; then
22880
                desiredlanguages="$LINGUAS"
22881
              else
22882
                desiredlanguages="$ALL_LINGUAS"
22883
              fi
22884
              for desiredlang in $desiredlanguages; do
22885
                # Use the presentlang catalog if desiredlang is
22886
                #   a. equal to presentlang, or
22887
                #   b. a variant of presentlang (because in this case,
22888
                #      presentlang can be used as a fallback for messages
22889
                #      which are not translated in the desiredlang catalog).
22890
                case "$desiredlang" in
22891
                  "$presentlang"*) useit=yes;;
22892
                esac
22893
              done
22894
              if test $useit = yes; then
22895
                INST_LINGUAS="$INST_LINGUAS $presentlang"
22896
              fi
22897
            done
22898
          fi
22899
          CATALOGS=
22900
          if test -n "$INST_LINGUAS"; then
22901
            for lang in $INST_LINGUAS; do
22902
              CATALOGS="$CATALOGS $lang.gmo"
22903
            done
22904
          fi
22905
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22906
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22907
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22908
            if test -f "$f"; then
22909
              case "$f" in
22910
                *.orig | *.bak | *~) ;;
22911
                *) cat "$f" >> "$ac_dir/Makefile" ;;
22912
              esac
22913
            fi
22914
          done
22915
        fi
22916
        ;;
22917
      esac
22918
    done ;;
22919
    bfd_stdint.h )
22920
if test "$GCC" = yes; then
22921
  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22922
else
22923
  echo "/* generated for $CC */" > tmp-stdint.h
22924
fi
22925
 
22926
sed 's/^ *//' >> tmp-stdint.h <
22927
 
22928
  #ifndef GCC_GENERATED_STDINT_H
22929
  #define GCC_GENERATED_STDINT_H 1
22930
 
22931
  #include 
22932
EOF
22933
 
22934
if test "$acx_cv_header_stdint" != stdint.h; then
22935
  echo "#include " >> tmp-stdint.h
22936
fi
22937
if test "$acx_cv_header_stdint" != stddef.h; then
22938
  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22939
fi
22940
 
22941
sed 's/^ *//' >> tmp-stdint.h <
22942
  /* glibc uses these symbols as guards to prevent redefinitions.  */
22943
  #ifdef __int8_t_defined
22944
  #define _INT8_T
22945
  #define _INT16_T
22946
  #define _INT32_T
22947
  #endif
22948
  #ifdef __uint32_t_defined
22949
  #define _UINT32_T
22950
  #endif
22951
 
22952
EOF
22953
 
22954
# ----------------- done header, emit basic int types -------------
22955
if test "$acx_cv_header_stdint" = stddef.h; then
22956
  sed 's/^ *//' >> tmp-stdint.h <
22957
 
22958
    #ifndef _UINT8_T
22959
    #define _UINT8_T
22960
    #ifndef __uint8_t_defined
22961
    #define __uint8_t_defined
22962
    typedef unsigned $acx_cv_type_int8_t uint8_t;
22963
    #endif
22964
    #endif
22965
 
22966
    #ifndef _UINT16_T
22967
    #define _UINT16_T
22968
    #ifndef __uint16_t_defined
22969
    #define __uint16_t_defined
22970
    typedef unsigned $acx_cv_type_int16_t uint16_t;
22971
    #endif
22972
    #endif
22973
 
22974
    #ifndef _UINT32_T
22975
    #define _UINT32_T
22976
    #ifndef __uint32_t_defined
22977
    #define __uint32_t_defined
22978
    typedef unsigned $acx_cv_type_int32_t uint32_t;
22979
    #endif
22980
    #endif
22981
 
22982
    #ifndef _INT8_T
22983
    #define _INT8_T
22984
    #ifndef __int8_t_defined
22985
    #define __int8_t_defined
22986
    typedef $acx_cv_type_int8_t int8_t;
22987
    #endif
22988
    #endif
22989
 
22990
    #ifndef _INT16_T
22991
    #define _INT16_T
22992
    #ifndef __int16_t_defined
22993
    #define __int16_t_defined
22994
    typedef $acx_cv_type_int16_t int16_t;
22995
    #endif
22996
    #endif
22997
 
22998
    #ifndef _INT32_T
22999
    #define _INT32_T
23000
    #ifndef __int32_t_defined
23001
    #define __int32_t_defined
23002
    typedef $acx_cv_type_int32_t int32_t;
23003
    #endif
23004
    #endif
23005
EOF
23006
elif test "$ac_cv_type_u_int32_t" = yes; then
23007
  sed 's/^ *//' >> tmp-stdint.h <
23008
 
23009
    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23010
    #ifndef _INT8_T
23011
    #define _INT8_T
23012
    #endif
23013
    #ifndef _INT16_T
23014
    #define _INT16_T
23015
    #endif
23016
    #ifndef _INT32_T
23017
    #define _INT32_T
23018
    #endif
23019
 
23020
    #ifndef _UINT8_T
23021
    #define _UINT8_T
23022
    #ifndef __uint8_t_defined
23023
    #define __uint8_t_defined
23024
    typedef u_int8_t uint8_t;
23025
    #endif
23026
    #endif
23027
 
23028
    #ifndef _UINT16_T
23029
    #define _UINT16_T
23030
    #ifndef __uint16_t_defined
23031
    #define __uint16_t_defined
23032
    typedef u_int16_t uint16_t;
23033
    #endif
23034
    #endif
23035
 
23036
    #ifndef _UINT32_T
23037
    #define _UINT32_T
23038
    #ifndef __uint32_t_defined
23039
    #define __uint32_t_defined
23040
    typedef u_int32_t uint32_t;
23041
    #endif
23042
    #endif
23043
EOF
23044
else
23045
  sed 's/^ *//' >> tmp-stdint.h <
23046
 
23047
    /* Some systems have guard macros to prevent redefinitions, define them.  */
23048
    #ifndef _INT8_T
23049
    #define _INT8_T
23050
    #endif
23051
    #ifndef _INT16_T
23052
    #define _INT16_T
23053
    #endif
23054
    #ifndef _INT32_T
23055
    #define _INT32_T
23056
    #endif
23057
    #ifndef _UINT8_T
23058
    #define _UINT8_T
23059
    #endif
23060
    #ifndef _UINT16_T
23061
    #define _UINT16_T
23062
    #endif
23063
    #ifndef _UINT32_T
23064
    #define _UINT32_T
23065
    #endif
23066
EOF
23067
fi
23068
 
23069
# ------------- done basic int types, emit int64_t types ------------
23070
if test "$ac_cv_type_uint64_t" = yes; then
23071
  sed 's/^ *//' >> tmp-stdint.h <
23072
 
23073
    /* system headers have good uint64_t and int64_t */
23074
    #ifndef _INT64_T
23075
    #define _INT64_T
23076
    #endif
23077
    #ifndef _UINT64_T
23078
    #define _UINT64_T
23079
    #endif
23080
EOF
23081
elif test "$ac_cv_type_u_int64_t" = yes; then
23082
  sed 's/^ *//' >> tmp-stdint.h <
23083
 
23084
    /* system headers have an u_int64_t (and int64_t) */
23085
    #ifndef _INT64_T
23086
    #define _INT64_T
23087
    #endif
23088
    #ifndef _UINT64_T
23089
    #define _UINT64_T
23090
    #ifndef __uint64_t_defined
23091
    #define __uint64_t_defined
23092
    typedef u_int64_t uint64_t;
23093
    #endif
23094
    #endif
23095
EOF
23096
elif test -n "$acx_cv_type_int64_t"; then
23097
  sed 's/^ *//' >> tmp-stdint.h <
23098
 
23099
    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23100
    #ifndef _INT64_T
23101
    #define _INT64_T
23102
    typedef $acx_cv_type_int64_t int64_t;
23103
    #endif
23104
    #ifndef _UINT64_T
23105
    #define _UINT64_T
23106
    #ifndef __uint64_t_defined
23107
    #define __uint64_t_defined
23108
    typedef unsigned $acx_cv_type_int64_t uint64_t;
23109
    #endif
23110
    #endif
23111
EOF
23112
else
23113
  sed 's/^ *//' >> tmp-stdint.h <
23114
 
23115
    /* some common heuristics for int64_t, using compiler-specific tests */
23116
    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23117
    #ifndef _INT64_T
23118
    #define _INT64_T
23119
    #ifndef __int64_t_defined
23120
    typedef long long int64_t;
23121
    #endif
23122
    #endif
23123
    #ifndef _UINT64_T
23124
    #define _UINT64_T
23125
    typedef unsigned long long uint64_t;
23126
    #endif
23127
 
23128
    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23129
    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23130
       does not implement __extension__.  But that compiler doesn't define
23131
       __GNUC_MINOR__.  */
23132
    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23133
    # define __extension__
23134
    # endif
23135
 
23136
    # ifndef _INT64_T
23137
    # define _INT64_T
23138
    __extension__ typedef long long int64_t;
23139
    # endif
23140
    # ifndef _UINT64_T
23141
    # define _UINT64_T
23142
    __extension__ typedef unsigned long long uint64_t;
23143
    # endif
23144
 
23145
    #elif !defined __STRICT_ANSI__
23146
    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23147
 
23148
    #  ifndef _INT64_T
23149
    #  define _INT64_T
23150
    typedef __int64 int64_t;
23151
    #  endif
23152
    #  ifndef _UINT64_T
23153
    #  define _UINT64_T
23154
    typedef unsigned __int64 uint64_t;
23155
    #  endif
23156
    # endif /* compiler */
23157
 
23158
    #endif /* ANSI version */
23159
EOF
23160
fi
23161
 
23162
# ------------- done int64_t types, emit intptr types ------------
23163
if test "$ac_cv_type_uintptr_t" != yes; then
23164
  sed 's/^ *//' >> tmp-stdint.h <
23165
 
23166
    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23167
    #ifndef __uintptr_t_defined
23168
    typedef u$acx_cv_type_intptr_t uintptr_t;
23169
    #endif
23170
    #ifndef __intptr_t_defined
23171
    typedef $acx_cv_type_intptr_t  intptr_t;
23172
    #endif
23173
EOF
23174
fi
23175
 
23176
# ------------- done intptr types, emit int_least types ------------
23177
if test "$ac_cv_type_int_least32_t" != yes; then
23178
  sed 's/^ *//' >> tmp-stdint.h <
23179
 
23180
    /* Define int_least types */
23181
    typedef int8_t     int_least8_t;
23182
    typedef int16_t    int_least16_t;
23183
    typedef int32_t    int_least32_t;
23184
    #ifdef _INT64_T
23185
    typedef int64_t    int_least64_t;
23186
    #endif
23187
 
23188
    typedef uint8_t    uint_least8_t;
23189
    typedef uint16_t   uint_least16_t;
23190
    typedef uint32_t   uint_least32_t;
23191
    #ifdef _UINT64_T
23192
    typedef uint64_t   uint_least64_t;
23193
    #endif
23194
EOF
23195
fi
23196
 
23197
# ------------- done intptr types, emit int_fast types ------------
23198
if test "$ac_cv_type_int_fast32_t" != yes; then
23199
      sed 's/^ *//' >> tmp-stdint.h <
23200
 
23201
    /* Define int_fast types.  short is often slow */
23202
    typedef int8_t       int_fast8_t;
23203
    typedef int          int_fast16_t;
23204
    typedef int32_t      int_fast32_t;
23205
    #ifdef _INT64_T
23206
    typedef int64_t      int_fast64_t;
23207
    #endif
23208
 
23209
    typedef uint8_t      uint_fast8_t;
23210
    typedef unsigned int uint_fast16_t;
23211
    typedef uint32_t     uint_fast32_t;
23212
    #ifdef _UINT64_T
23213
    typedef uint64_t     uint_fast64_t;
23214
    #endif
23215
EOF
23216
fi
23217
 
23218
if test "$ac_cv_type_uintmax_t" != yes; then
23219
  sed 's/^ *//' >> tmp-stdint.h <
23220
 
23221
    /* Define intmax based on what we found */
23222
    #ifdef _INT64_T
23223
    typedef int64_t       intmax_t;
23224
    #else
23225
    typedef long          intmax_t;
23226
    #endif
23227
    #ifdef _UINT64_T
23228
    typedef uint64_t      uintmax_t;
23229
    #else
23230
    typedef unsigned long uintmax_t;
23231
    #endif
23232
EOF
23233
fi
23234
 
23235
sed 's/^ *//' >> tmp-stdint.h <
23236
 
23237
  #endif /* GCC_GENERATED_STDINT_H */
23238
EOF
23239
 
23240
if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23241
  rm -f tmp-stdint.h
23242
else
23243
  mv -f tmp-stdint.h bfd_stdint.h
23244
fi
23245
 
23246
 ;;
23247
    default )
23248
case "$srcdir" in
23249
  .) srcdirpre= ;;
23250
  *) srcdirpre='$(srcdir)/' ;;
23251
esac
23252
POFILES=
23253
GMOFILES=
23254
for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23255
  if test $lang != dummy; then
23256
    POFILES="$POFILES $srcdirpre$lang.po"
23257
    GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23258
  fi
23259
done
23260
sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23261
    -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23262
    -e "s,@POFILES@,$POFILES," \
23263
    -e "s,@GMOFILES@,$GMOFILES," \
23264
    po/Makefile.in > po/Makefile ;;
23265
  esac
23266
done
23267
_ACEOF
23268
 
23269
cat >>$CONFIG_STATUS <<\_ACEOF
23270
 
23271
{ (exit 0); exit 0; }
23272
_ACEOF
23273
chmod +x $CONFIG_STATUS
23274
ac_clean_files=$ac_clean_files_save
23275
 
23276
 
23277
# configure is writing to config.log, and then calls config.status.
23278
# config.status does its own redirection, appending to config.log.
23279
# Unfortunately, on DOS this fails, as config.log is still kept open
23280
# by configure, so config.status won't be able to write to it; its
23281
# output is simply discarded.  So we exec the FD to /dev/null,
23282
# effectively closing config.log, so it can be properly (re)opened and
23283
# appended to by config.status.  When coming back to configure, we
23284
# need to make the FD available again.
23285
if test "$no_create" != yes; then
23286
  ac_cs_success=:
23287
  ac_config_status_args=
23288
  test "$silent" = yes &&
23289
    ac_config_status_args="$ac_config_status_args --quiet"
23290
  exec 5>/dev/null
23291
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23292
  exec 5>>config.log
23293
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23294
  # would make configure fail if this is the last instruction.
23295
  $ac_cs_success || { (exit 1); exit 1; }
23296
fi
23297
 
23298
 

powered by: WebSVN 2.1.0

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