OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [opcodes/] [configure] - Blame information for rev 457

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

Line No. Rev Author Line
1 131 jeremybenn
#! /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="z8k-dis.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 WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES 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-targets        alternative target configurations
1012
  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013
  --enable-werror         treat compile warnings as errors
1014
  --enable-build-warnings enable build-time compiler warnings
1015
  --enable-maintainer-mode  enable make rules and dependencies not useful
1016
                          (and sometimes confusing) to the casual installer
1017
  --enable-install-libbfd controls installation of libbfd and related headers
1018
  --disable-nls           do not use Native Language Support
1019
  --enable-cgen-maint=dir    build cgen generated files
1020
 
1021
Optional Packages:
1022
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024
  --with-pic              try to use only PIC/non-PIC objects [default=use
1025
                          both]
1026
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027
 
1028
Some influential environment variables:
1029
  CC          C compiler command
1030
  CFLAGS      C compiler flags
1031
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1032
              nonstandard directory 
1033
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1034
              headers in a nonstandard directory 
1035
  CPP         C preprocessor
1036
 
1037
Use these variables to override the choices made by `configure' or to help
1038
it to find libraries and programs with nonstandard names/locations.
1039
 
1040
_ACEOF
1041
fi
1042
 
1043
if test "$ac_init_help" = "recursive"; then
1044
  # If there are subdirs, report their specific --help.
1045
  ac_popdir=`pwd`
1046
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047
    test -d $ac_dir || continue
1048
    ac_builddir=.
1049
 
1050
if test "$ac_dir" != .; then
1051
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052
  # A "../" for each directory in $ac_dir_suffix.
1053
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054
else
1055
  ac_dir_suffix= ac_top_builddir=
1056
fi
1057
 
1058
case $srcdir in
1059
  .)  # No --srcdir option.  We are building in place.
1060
    ac_srcdir=.
1061
    if test -z "$ac_top_builddir"; then
1062
       ac_top_srcdir=.
1063
    else
1064
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065
    fi ;;
1066
  [\\/]* | ?:[\\/]* )  # Absolute path.
1067
    ac_srcdir=$srcdir$ac_dir_suffix;
1068
    ac_top_srcdir=$srcdir ;;
1069
  *) # Relative path.
1070
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072
esac
1073
 
1074
# Do not use `cd foo && pwd` to compute absolute paths, because
1075
# the directories may not exist.
1076
case `pwd` in
1077
.) ac_abs_builddir="$ac_dir";;
1078
*)
1079
  case "$ac_dir" in
1080
  .) ac_abs_builddir=`pwd`;;
1081
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083
  esac;;
1084
esac
1085
case $ac_abs_builddir in
1086
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087
*)
1088
  case ${ac_top_builddir}. in
1089
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1090
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092
  esac;;
1093
esac
1094
case $ac_abs_builddir in
1095
.) ac_abs_srcdir=$ac_srcdir;;
1096
*)
1097
  case $ac_srcdir in
1098
  .) ac_abs_srcdir=$ac_abs_builddir;;
1099
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101
  esac;;
1102
esac
1103
case $ac_abs_builddir in
1104
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105
*)
1106
  case $ac_top_srcdir in
1107
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110
  esac;;
1111
esac
1112
 
1113
    cd $ac_dir
1114
    # Check for guested configure; otherwise get Cygnus style configure.
1115
    if test -f $ac_srcdir/configure.gnu; then
1116
      echo
1117
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118
    elif test -f $ac_srcdir/configure; then
1119
      echo
1120
      $SHELL $ac_srcdir/configure  --help=recursive
1121
    elif test -f $ac_srcdir/configure.ac ||
1122
           test -f $ac_srcdir/configure.in; then
1123
      echo
1124
      $ac_configure --help
1125
    else
1126
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127
    fi
1128
    cd $ac_popdir
1129
  done
1130
fi
1131
 
1132
test -n "$ac_init_help" && exit 0
1133
if $ac_init_version; then
1134
  cat <<\_ACEOF
1135
 
1136
Copyright (C) 2003 Free Software Foundation, Inc.
1137
This configure script is free software; the Free Software Foundation
1138
gives unlimited permission to copy, distribute and modify it.
1139
_ACEOF
1140
  exit 0
1141
fi
1142
exec 5>config.log
1143
cat >&5 <<_ACEOF
1144
This file contains any messages produced by compilers while
1145
running configure, to aid debugging if configure makes a mistake.
1146
 
1147
It was created by $as_me, which was
1148
generated by GNU Autoconf 2.59.  Invocation command line was
1149
 
1150
  $ $0 $@
1151
 
1152
_ACEOF
1153
{
1154
cat <<_ASUNAME
1155
## --------- ##
1156
## Platform. ##
1157
## --------- ##
1158
 
1159
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
 
1165
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
 
1168
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
 
1176
_ASUNAME
1177
 
1178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179
for as_dir in $PATH
1180
do
1181
  IFS=$as_save_IFS
1182
  test -z "$as_dir" && as_dir=.
1183
  echo "PATH: $as_dir"
1184
done
1185
 
1186
} >&5
1187
 
1188
cat >&5 <<_ACEOF
1189
 
1190
 
1191
## ----------- ##
1192
## Core tests. ##
1193
## ----------- ##
1194
 
1195
_ACEOF
1196
 
1197
 
1198
# Keep a trace of the command line.
1199
# Strip out --no-create and --no-recursion so they do not pile up.
1200
# Strip out --silent because we don't want to record it for future runs.
1201
# Also quote any args containing shell meta-characters.
1202
# Make two passes to allow for proper duplicate-argument suppression.
1203
ac_configure_args=
1204
ac_configure_args0=
1205
ac_configure_args1=
1206
ac_sep=
1207
ac_must_keep_next=false
1208
for ac_pass in 1 2
1209
do
1210
  for ac_arg
1211
  do
1212
    case $ac_arg in
1213
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215
    | -silent | --silent | --silen | --sile | --sil)
1216
      continue ;;
1217
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219
    esac
1220
    case $ac_pass in
1221
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222
    2)
1223
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224
      if test $ac_must_keep_next = true; then
1225
        ac_must_keep_next=false # Got value, back to normal.
1226
      else
1227
        case $ac_arg in
1228
          *=* | --config-cache | -C | -disable-* | --disable-* \
1229
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231
          | -with-* | --with-* | -without-* | --without-* | --x)
1232
            case "$ac_configure_args0 " in
1233
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234
            esac
1235
            ;;
1236
          -* ) ac_must_keep_next=true ;;
1237
        esac
1238
      fi
1239
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240
      # Get rid of the leading space.
1241
      ac_sep=" "
1242
      ;;
1243
    esac
1244
  done
1245
done
1246
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
 
1249
# When interrupted or exit'd, cleanup temporary files, and complete
1250
# config.log.  We remove comments because anyway the quotes in there
1251
# would cause problems or look ugly.
1252
# WARNING: Be sure not to use single quotes in there, as some shells,
1253
# such as our DU 5.0 friend, will then `close' the trap.
1254
trap 'exit_status=$?
1255
  # Save into config.log some information that might help in debugging.
1256
  {
1257
    echo
1258
 
1259
    cat <<\_ASBOX
1260
## ---------------- ##
1261
## Cache variables. ##
1262
## ---------------- ##
1263
_ASBOX
1264
    echo
1265
    # The following way of writing the cache mishandles newlines in values,
1266
{
1267
  (set) 2>&1 |
1268
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269
    *ac_space=\ *)
1270
      sed -n \
1271
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273
      ;;
1274
    *)
1275
      sed -n \
1276
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277
      ;;
1278
    esac;
1279
}
1280
    echo
1281
 
1282
    cat <<\_ASBOX
1283
## ----------------- ##
1284
## Output variables. ##
1285
## ----------------- ##
1286
_ASBOX
1287
    echo
1288
    for ac_var in $ac_subst_vars
1289
    do
1290
      eval ac_val=$`echo $ac_var`
1291
      echo "$ac_var='"'"'$ac_val'"'"'"
1292
    done | sort
1293
    echo
1294
 
1295
    if test -n "$ac_subst_files"; then
1296
      cat <<\_ASBOX
1297
## ------------- ##
1298
## Output files. ##
1299
## ------------- ##
1300
_ASBOX
1301
      echo
1302
      for ac_var in $ac_subst_files
1303
      do
1304
        eval ac_val=$`echo $ac_var`
1305
        echo "$ac_var='"'"'$ac_val'"'"'"
1306
      done | sort
1307
      echo
1308
    fi
1309
 
1310
    if test -s confdefs.h; then
1311
      cat <<\_ASBOX
1312
## ----------- ##
1313
## confdefs.h. ##
1314
## ----------- ##
1315
_ASBOX
1316
      echo
1317
      sed "/^$/d" confdefs.h | sort
1318
      echo
1319
    fi
1320
    test "$ac_signal" != 0 &&
1321
      echo "$as_me: caught signal $ac_signal"
1322
    echo "$as_me: exit $exit_status"
1323
  } >&5
1324
  rm -f core *.core &&
1325
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326
    exit $exit_status
1327
     ' 0
1328
for ac_signal in 1 2 13 15; do
1329
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330
done
1331
ac_signal=0
1332
 
1333
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334
rm -rf conftest* confdefs.h
1335
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336
echo >confdefs.h
1337
 
1338
# Predefined preprocessor variables.
1339
 
1340
cat >>confdefs.h <<_ACEOF
1341
#define PACKAGE_NAME "$PACKAGE_NAME"
1342
_ACEOF
1343
 
1344
 
1345
cat >>confdefs.h <<_ACEOF
1346
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347
_ACEOF
1348
 
1349
 
1350
cat >>confdefs.h <<_ACEOF
1351
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352
_ACEOF
1353
 
1354
 
1355
cat >>confdefs.h <<_ACEOF
1356
#define PACKAGE_STRING "$PACKAGE_STRING"
1357
_ACEOF
1358
 
1359
 
1360
cat >>confdefs.h <<_ACEOF
1361
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362
_ACEOF
1363
 
1364
 
1365
# Let the site file select an alternate cache file if it wants to.
1366
# Prefer explicitly selected file to automatically selected ones.
1367
if test -z "$CONFIG_SITE"; then
1368
  if test "x$prefix" != xNONE; then
1369
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370
  else
1371
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372
  fi
1373
fi
1374
for ac_site_file in $CONFIG_SITE; do
1375
  if test -r "$ac_site_file"; then
1376
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377
echo "$as_me: loading site script $ac_site_file" >&6;}
1378
    sed 's/^/| /' "$ac_site_file" >&5
1379
    . "$ac_site_file"
1380
  fi
1381
done
1382
 
1383
if test -r "$cache_file"; then
1384
  # Some versions of bash will fail to source /dev/null (special
1385
  # files actually), so we avoid doing that.
1386
  if test -f "$cache_file"; then
1387
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388
echo "$as_me: loading cache $cache_file" >&6;}
1389
    case $cache_file in
1390
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1391
      *)                      . ./$cache_file;;
1392
    esac
1393
  fi
1394
else
1395
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396
echo "$as_me: creating cache $cache_file" >&6;}
1397
  >$cache_file
1398
fi
1399
 
1400
# Check that the precious variables saved in the cache have kept the same
1401
# value.
1402
ac_cache_corrupted=false
1403
for ac_var in `(set) 2>&1 |
1404
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406
  eval ac_new_set=\$ac_env_${ac_var}_set
1407
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408
  eval ac_new_val="\$ac_env_${ac_var}_value"
1409
  case $ac_old_set,$ac_new_set in
1410
    set,)
1411
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413
      ac_cache_corrupted=: ;;
1414
    ,set)
1415
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417
      ac_cache_corrupted=: ;;
1418
    ,);;
1419
    *)
1420
      if test "x$ac_old_val" != "x$ac_new_val"; then
1421
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424
echo "$as_me:   former value:  $ac_old_val" >&2;}
1425
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426
echo "$as_me:   current value: $ac_new_val" >&2;}
1427
        ac_cache_corrupted=:
1428
      fi;;
1429
  esac
1430
  # Pass precious variables to config.status.
1431
  if test "$ac_new_set" = set; then
1432
    case $ac_new_val in
1433
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435
    *) ac_arg=$ac_var=$ac_new_val ;;
1436
    esac
1437
    case " $ac_configure_args " in
1438
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440
    esac
1441
  fi
1442
done
1443
if $ac_cache_corrupted; then
1444
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448
   { (exit 1); exit 1; }; }
1449
fi
1450
 
1451
ac_ext=c
1452
ac_cpp='$CPP $CPPFLAGS'
1453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
 
1457
 
1458
 
1459
 
1460
 
1461
 
1462
 
1463
 
1464
 
1465
 
1466
 
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
ac_aux_dir=
1478
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479
  if test -f $ac_dir/install-sh; then
1480
    ac_aux_dir=$ac_dir
1481
    ac_install_sh="$ac_aux_dir/install-sh -c"
1482
    break
1483
  elif test -f $ac_dir/install.sh; then
1484
    ac_aux_dir=$ac_dir
1485
    ac_install_sh="$ac_aux_dir/install.sh -c"
1486
    break
1487
  elif test -f $ac_dir/shtool; then
1488
    ac_aux_dir=$ac_dir
1489
    ac_install_sh="$ac_aux_dir/shtool install -c"
1490
    break
1491
  fi
1492
done
1493
if test -z "$ac_aux_dir"; then
1494
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496
   { (exit 1); exit 1; }; }
1497
fi
1498
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
 
1502
# Make sure we can run config.sub.
1503
$ac_config_sub sun4 >/dev/null 2>&1 ||
1504
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506
   { (exit 1); exit 1; }; }
1507
 
1508
echo "$as_me:$LINENO: checking build system type" >&5
1509
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510
if test "${ac_cv_build+set}" = set; then
1511
  echo $ECHO_N "(cached) $ECHO_C" >&6
1512
else
1513
  ac_cv_build_alias=$build_alias
1514
test -z "$ac_cv_build_alias" &&
1515
  ac_cv_build_alias=`$ac_config_guess`
1516
test -z "$ac_cv_build_alias" &&
1517
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519
   { (exit 1); exit 1; }; }
1520
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523
   { (exit 1); exit 1; }; }
1524
 
1525
fi
1526
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527
echo "${ECHO_T}$ac_cv_build" >&6
1528
build=$ac_cv_build
1529
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
 
1533
 
1534
echo "$as_me:$LINENO: checking host system type" >&5
1535
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536
if test "${ac_cv_host+set}" = set; then
1537
  echo $ECHO_N "(cached) $ECHO_C" >&6
1538
else
1539
  ac_cv_host_alias=$host_alias
1540
test -z "$ac_cv_host_alias" &&
1541
  ac_cv_host_alias=$ac_cv_build_alias
1542
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545
   { (exit 1); exit 1; }; }
1546
 
1547
fi
1548
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549
echo "${ECHO_T}$ac_cv_host" >&6
1550
host=$ac_cv_host
1551
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
 
1555
 
1556
echo "$as_me:$LINENO: checking target system type" >&5
1557
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558
if test "${ac_cv_target+set}" = set; then
1559
  echo $ECHO_N "(cached) $ECHO_C" >&6
1560
else
1561
  ac_cv_target_alias=$target_alias
1562
test "x$ac_cv_target_alias" = "x" &&
1563
  ac_cv_target_alias=$ac_cv_host_alias
1564
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567
   { (exit 1); exit 1; }; }
1568
 
1569
fi
1570
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571
echo "${ECHO_T}$ac_cv_target" >&6
1572
target=$ac_cv_target
1573
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
 
1577
 
1578
# The aliases save the names the user supplied, while $host etc.
1579
# will get canonicalized.
1580
test -n "$target_alias" &&
1581
  test "$program_prefix$program_suffix$program_transform_name" = \
1582
    NONENONEs,x,x, &&
1583
  program_prefix=${target_alias}-
1584
ac_ext=c
1585
ac_cpp='$CPP $CPPFLAGS'
1586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589
if test -n "$ac_tool_prefix"; then
1590
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592
echo "$as_me:$LINENO: checking for $ac_word" >&5
1593
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594
if test "${ac_cv_prog_CC+set}" = set; then
1595
  echo $ECHO_N "(cached) $ECHO_C" >&6
1596
else
1597
  if test -n "$CC"; then
1598
  ac_cv_prog_CC="$CC" # Let the user override the test.
1599
else
1600
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601
for as_dir in $PATH
1602
do
1603
  IFS=$as_save_IFS
1604
  test -z "$as_dir" && as_dir=.
1605
  for ac_exec_ext in '' $ac_executable_extensions; do
1606
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609
    break 2
1610
  fi
1611
done
1612
done
1613
 
1614
fi
1615
fi
1616
CC=$ac_cv_prog_CC
1617
if test -n "$CC"; then
1618
  echo "$as_me:$LINENO: result: $CC" >&5
1619
echo "${ECHO_T}$CC" >&6
1620
else
1621
  echo "$as_me:$LINENO: result: no" >&5
1622
echo "${ECHO_T}no" >&6
1623
fi
1624
 
1625
fi
1626
if test -z "$ac_cv_prog_CC"; then
1627
  ac_ct_CC=$CC
1628
  # Extract the first word of "gcc", so it can be a program name with args.
1629
set dummy gcc; ac_word=$2
1630
echo "$as_me:$LINENO: checking for $ac_word" >&5
1631
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633
  echo $ECHO_N "(cached) $ECHO_C" >&6
1634
else
1635
  if test -n "$ac_ct_CC"; then
1636
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637
else
1638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639
for as_dir in $PATH
1640
do
1641
  IFS=$as_save_IFS
1642
  test -z "$as_dir" && as_dir=.
1643
  for ac_exec_ext in '' $ac_executable_extensions; do
1644
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645
    ac_cv_prog_ac_ct_CC="gcc"
1646
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647
    break 2
1648
  fi
1649
done
1650
done
1651
 
1652
fi
1653
fi
1654
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655
if test -n "$ac_ct_CC"; then
1656
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657
echo "${ECHO_T}$ac_ct_CC" >&6
1658
else
1659
  echo "$as_me:$LINENO: result: no" >&5
1660
echo "${ECHO_T}no" >&6
1661
fi
1662
 
1663
  CC=$ac_ct_CC
1664
else
1665
  CC="$ac_cv_prog_CC"
1666
fi
1667
 
1668
if test -z "$CC"; then
1669
  if test -n "$ac_tool_prefix"; then
1670
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671
set dummy ${ac_tool_prefix}cc; ac_word=$2
1672
echo "$as_me:$LINENO: checking for $ac_word" >&5
1673
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674
if test "${ac_cv_prog_CC+set}" = set; then
1675
  echo $ECHO_N "(cached) $ECHO_C" >&6
1676
else
1677
  if test -n "$CC"; then
1678
  ac_cv_prog_CC="$CC" # Let the user override the test.
1679
else
1680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681
for as_dir in $PATH
1682
do
1683
  IFS=$as_save_IFS
1684
  test -z "$as_dir" && as_dir=.
1685
  for ac_exec_ext in '' $ac_executable_extensions; do
1686
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1688
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689
    break 2
1690
  fi
1691
done
1692
done
1693
 
1694
fi
1695
fi
1696
CC=$ac_cv_prog_CC
1697
if test -n "$CC"; then
1698
  echo "$as_me:$LINENO: result: $CC" >&5
1699
echo "${ECHO_T}$CC" >&6
1700
else
1701
  echo "$as_me:$LINENO: result: no" >&5
1702
echo "${ECHO_T}no" >&6
1703
fi
1704
 
1705
fi
1706
if test -z "$ac_cv_prog_CC"; then
1707
  ac_ct_CC=$CC
1708
  # Extract the first word of "cc", so it can be a program name with args.
1709
set dummy cc; ac_word=$2
1710
echo "$as_me:$LINENO: checking for $ac_word" >&5
1711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713
  echo $ECHO_N "(cached) $ECHO_C" >&6
1714
else
1715
  if test -n "$ac_ct_CC"; then
1716
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717
else
1718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719
for as_dir in $PATH
1720
do
1721
  IFS=$as_save_IFS
1722
  test -z "$as_dir" && as_dir=.
1723
  for ac_exec_ext in '' $ac_executable_extensions; do
1724
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725
    ac_cv_prog_ac_ct_CC="cc"
1726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727
    break 2
1728
  fi
1729
done
1730
done
1731
 
1732
fi
1733
fi
1734
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735
if test -n "$ac_ct_CC"; then
1736
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737
echo "${ECHO_T}$ac_ct_CC" >&6
1738
else
1739
  echo "$as_me:$LINENO: result: no" >&5
1740
echo "${ECHO_T}no" >&6
1741
fi
1742
 
1743
  CC=$ac_ct_CC
1744
else
1745
  CC="$ac_cv_prog_CC"
1746
fi
1747
 
1748
fi
1749
if test -z "$CC"; then
1750
  # Extract the first word of "cc", so it can be a program name with args.
1751
set dummy cc; ac_word=$2
1752
echo "$as_me:$LINENO: checking for $ac_word" >&5
1753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754
if test "${ac_cv_prog_CC+set}" = set; then
1755
  echo $ECHO_N "(cached) $ECHO_C" >&6
1756
else
1757
  if test -n "$CC"; then
1758
  ac_cv_prog_CC="$CC" # Let the user override the test.
1759
else
1760
  ac_prog_rejected=no
1761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762
for as_dir in $PATH
1763
do
1764
  IFS=$as_save_IFS
1765
  test -z "$as_dir" && as_dir=.
1766
  for ac_exec_ext in '' $ac_executable_extensions; do
1767
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769
       ac_prog_rejected=yes
1770
       continue
1771
     fi
1772
    ac_cv_prog_CC="cc"
1773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774
    break 2
1775
  fi
1776
done
1777
done
1778
 
1779
if test $ac_prog_rejected = yes; then
1780
  # We found a bogon in the path, so make sure we never use it.
1781
  set dummy $ac_cv_prog_CC
1782
  shift
1783
  if test $# != 0; then
1784
    # We chose a different compiler from the bogus one.
1785
    # However, it has the same basename, so the bogon will be chosen
1786
    # first if we set CC to just the basename; use the full file name.
1787
    shift
1788
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789
  fi
1790
fi
1791
fi
1792
fi
1793
CC=$ac_cv_prog_CC
1794
if test -n "$CC"; then
1795
  echo "$as_me:$LINENO: result: $CC" >&5
1796
echo "${ECHO_T}$CC" >&6
1797
else
1798
  echo "$as_me:$LINENO: result: no" >&5
1799
echo "${ECHO_T}no" >&6
1800
fi
1801
 
1802
fi
1803
if test -z "$CC"; then
1804
  if test -n "$ac_tool_prefix"; then
1805
  for ac_prog in cl
1806
  do
1807
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809
echo "$as_me:$LINENO: checking for $ac_word" >&5
1810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811
if test "${ac_cv_prog_CC+set}" = set; then
1812
  echo $ECHO_N "(cached) $ECHO_C" >&6
1813
else
1814
  if test -n "$CC"; then
1815
  ac_cv_prog_CC="$CC" # Let the user override the test.
1816
else
1817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818
for as_dir in $PATH
1819
do
1820
  IFS=$as_save_IFS
1821
  test -z "$as_dir" && as_dir=.
1822
  for ac_exec_ext in '' $ac_executable_extensions; do
1823
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826
    break 2
1827
  fi
1828
done
1829
done
1830
 
1831
fi
1832
fi
1833
CC=$ac_cv_prog_CC
1834
if test -n "$CC"; then
1835
  echo "$as_me:$LINENO: result: $CC" >&5
1836
echo "${ECHO_T}$CC" >&6
1837
else
1838
  echo "$as_me:$LINENO: result: no" >&5
1839
echo "${ECHO_T}no" >&6
1840
fi
1841
 
1842
    test -n "$CC" && break
1843
  done
1844
fi
1845
if test -z "$CC"; then
1846
  ac_ct_CC=$CC
1847
  for ac_prog in cl
1848
do
1849
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1850
set dummy $ac_prog; ac_word=$2
1851
echo "$as_me:$LINENO: checking for $ac_word" >&5
1852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854
  echo $ECHO_N "(cached) $ECHO_C" >&6
1855
else
1856
  if test -n "$ac_ct_CC"; then
1857
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858
else
1859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860
for as_dir in $PATH
1861
do
1862
  IFS=$as_save_IFS
1863
  test -z "$as_dir" && as_dir=.
1864
  for ac_exec_ext in '' $ac_executable_extensions; do
1865
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866
    ac_cv_prog_ac_ct_CC="$ac_prog"
1867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868
    break 2
1869
  fi
1870
done
1871
done
1872
 
1873
fi
1874
fi
1875
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876
if test -n "$ac_ct_CC"; then
1877
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878
echo "${ECHO_T}$ac_ct_CC" >&6
1879
else
1880
  echo "$as_me:$LINENO: result: no" >&5
1881
echo "${ECHO_T}no" >&6
1882
fi
1883
 
1884
  test -n "$ac_ct_CC" && break
1885
done
1886
 
1887
  CC=$ac_ct_CC
1888
fi
1889
 
1890
fi
1891
 
1892
 
1893
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894
See \`config.log' for more details." >&5
1895
echo "$as_me: error: no acceptable C compiler found in \$PATH
1896
See \`config.log' for more details." >&2;}
1897
   { (exit 1); exit 1; }; }
1898
 
1899
# Provide some information about the compiler.
1900
echo "$as_me:$LINENO:" \
1901
     "checking for C compiler version" >&5
1902
ac_compiler=`set X $ac_compile; echo $2`
1903
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1904
  (eval $ac_compiler --version &5) 2>&5
1905
  ac_status=$?
1906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907
  (exit $ac_status); }
1908
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1909
  (eval $ac_compiler -v &5) 2>&5
1910
  ac_status=$?
1911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912
  (exit $ac_status); }
1913
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1914
  (eval $ac_compiler -V &5) 2>&5
1915
  ac_status=$?
1916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917
  (exit $ac_status); }
1918
 
1919
cat >conftest.$ac_ext <<_ACEOF
1920
/* confdefs.h.  */
1921
_ACEOF
1922
cat confdefs.h >>conftest.$ac_ext
1923
cat >>conftest.$ac_ext <<_ACEOF
1924
/* end confdefs.h.  */
1925
 
1926
int
1927
main ()
1928
{
1929
 
1930
  ;
1931
  return 0;
1932
}
1933
_ACEOF
1934
ac_clean_files_save=$ac_clean_files
1935
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936
# Try to create an executable without -o first, disregard a.out.
1937
# It will help us diagnose broken compilers, and finding out an intuition
1938
# of exeext.
1939
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943
  (eval $ac_link_default) 2>&5
1944
  ac_status=$?
1945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946
  (exit $ac_status); }; then
1947
  # Find the output, starting from the most likely.  This scheme is
1948
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949
# resort.
1950
 
1951
# Be careful to initialize this variable, since it used to be cached.
1952
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953
ac_cv_exeext=
1954
# b.out is created by i960 compilers.
1955
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956
do
1957
  test -f "$ac_file" || continue
1958
  case $ac_file in
1959
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960
        ;;
1961
    conftest.$ac_ext )
1962
        # This is the source file.
1963
        ;;
1964
    [ab].out )
1965
        # We found the default executable, but exeext='' is most
1966
        # certainly right.
1967
        break;;
1968
    *.* )
1969
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1971
        # but it would be cool to find out if it's true.  Does anybody
1972
        # maintain Libtool? --akim.
1973
        export ac_cv_exeext
1974
        break;;
1975
    * )
1976
        break;;
1977
  esac
1978
done
1979
else
1980
  echo "$as_me: failed program was:" >&5
1981
sed 's/^/| /' conftest.$ac_ext >&5
1982
 
1983
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984
See \`config.log' for more details." >&5
1985
echo "$as_me: error: C compiler cannot create executables
1986
See \`config.log' for more details." >&2;}
1987
   { (exit 77); exit 77; }; }
1988
fi
1989
 
1990
ac_exeext=$ac_cv_exeext
1991
echo "$as_me:$LINENO: result: $ac_file" >&5
1992
echo "${ECHO_T}$ac_file" >&6
1993
 
1994
# Check the compiler produces executables we can run.  If not, either
1995
# the compiler is broken, or we cross compile.
1996
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999
# If not cross compiling, check that we can run a simple program.
2000
if test "$cross_compiling" != yes; then
2001
  if { ac_try='./$ac_file'
2002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003
  (eval $ac_try) 2>&5
2004
  ac_status=$?
2005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006
  (exit $ac_status); }; }; then
2007
    cross_compiling=no
2008
  else
2009
    if test "$cross_compiling" = maybe; then
2010
        cross_compiling=yes
2011
    else
2012
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013
If you meant to cross compile, use \`--host'.
2014
See \`config.log' for more details." >&5
2015
echo "$as_me: error: cannot run C compiled programs.
2016
If you meant to cross compile, use \`--host'.
2017
See \`config.log' for more details." >&2;}
2018
   { (exit 1); exit 1; }; }
2019
    fi
2020
  fi
2021
fi
2022
echo "$as_me:$LINENO: result: yes" >&5
2023
echo "${ECHO_T}yes" >&6
2024
 
2025
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026
ac_clean_files=$ac_clean_files_save
2027
# Check the compiler produces executables we can run.  If not, either
2028
# the compiler is broken, or we cross compile.
2029
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032
echo "${ECHO_T}$cross_compiling" >&6
2033
 
2034
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037
  (eval $ac_link) 2>&5
2038
  ac_status=$?
2039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040
  (exit $ac_status); }; then
2041
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2043
# work properly (i.e., refer to `conftest.exe'), while it won't with
2044
# `rm'.
2045
for ac_file in conftest.exe conftest conftest.*; do
2046
  test -f "$ac_file" || continue
2047
  case $ac_file in
2048
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050
          export ac_cv_exeext
2051
          break;;
2052
    * ) break;;
2053
  esac
2054
done
2055
else
2056
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057
See \`config.log' for more details." >&5
2058
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059
See \`config.log' for more details." >&2;}
2060
   { (exit 1); exit 1; }; }
2061
fi
2062
 
2063
rm -f conftest$ac_cv_exeext
2064
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065
echo "${ECHO_T}$ac_cv_exeext" >&6
2066
 
2067
rm -f conftest.$ac_ext
2068
EXEEXT=$ac_cv_exeext
2069
ac_exeext=$EXEEXT
2070
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072
if test "${ac_cv_objext+set}" = set; then
2073
  echo $ECHO_N "(cached) $ECHO_C" >&6
2074
else
2075
  cat >conftest.$ac_ext <<_ACEOF
2076
/* confdefs.h.  */
2077
_ACEOF
2078
cat confdefs.h >>conftest.$ac_ext
2079
cat >>conftest.$ac_ext <<_ACEOF
2080
/* end confdefs.h.  */
2081
 
2082
int
2083
main ()
2084
{
2085
 
2086
  ;
2087
  return 0;
2088
}
2089
_ACEOF
2090
rm -f conftest.o conftest.obj
2091
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092
  (eval $ac_compile) 2>&5
2093
  ac_status=$?
2094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
  (exit $ac_status); }; then
2096
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2097
  case $ac_file in
2098
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2100
       break;;
2101
  esac
2102
done
2103
else
2104
  echo "$as_me: failed program was:" >&5
2105
sed 's/^/| /' conftest.$ac_ext >&5
2106
 
2107
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108
See \`config.log' for more details." >&5
2109
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110
See \`config.log' for more details." >&2;}
2111
   { (exit 1); exit 1; }; }
2112
fi
2113
 
2114
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115
fi
2116
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117
echo "${ECHO_T}$ac_cv_objext" >&6
2118
OBJEXT=$ac_cv_objext
2119
ac_objext=$OBJEXT
2120
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123
  echo $ECHO_N "(cached) $ECHO_C" >&6
2124
else
2125
  cat >conftest.$ac_ext <<_ACEOF
2126
/* confdefs.h.  */
2127
_ACEOF
2128
cat confdefs.h >>conftest.$ac_ext
2129
cat >>conftest.$ac_ext <<_ACEOF
2130
/* end confdefs.h.  */
2131
 
2132
int
2133
main ()
2134
{
2135
#ifndef __GNUC__
2136
       choke me
2137
#endif
2138
 
2139
  ;
2140
  return 0;
2141
}
2142
_ACEOF
2143
rm -f conftest.$ac_objext
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145
  (eval $ac_compile) 2>conftest.er1
2146
  ac_status=$?
2147
  grep -v '^ *+' conftest.er1 >conftest.err
2148
  rm -f conftest.er1
2149
  cat conftest.err >&5
2150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151
  (exit $ac_status); } &&
2152
         { ac_try='test -z "$ac_c_werror_flag"
2153
                         || test ! -s conftest.err'
2154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155
  (eval $ac_try) 2>&5
2156
  ac_status=$?
2157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158
  (exit $ac_status); }; } &&
2159
         { ac_try='test -s conftest.$ac_objext'
2160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161
  (eval $ac_try) 2>&5
2162
  ac_status=$?
2163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
  (exit $ac_status); }; }; then
2165
  ac_compiler_gnu=yes
2166
else
2167
  echo "$as_me: failed program was:" >&5
2168
sed 's/^/| /' conftest.$ac_ext >&5
2169
 
2170
ac_compiler_gnu=no
2171
fi
2172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174
 
2175
fi
2176
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178
GCC=`test $ac_compiler_gnu = yes && echo yes`
2179
ac_test_CFLAGS=${CFLAGS+set}
2180
ac_save_CFLAGS=$CFLAGS
2181
CFLAGS="-g"
2182
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184
if test "${ac_cv_prog_cc_g+set}" = set; then
2185
  echo $ECHO_N "(cached) $ECHO_C" >&6
2186
else
2187
  cat >conftest.$ac_ext <<_ACEOF
2188
/* confdefs.h.  */
2189
_ACEOF
2190
cat confdefs.h >>conftest.$ac_ext
2191
cat >>conftest.$ac_ext <<_ACEOF
2192
/* end confdefs.h.  */
2193
 
2194
int
2195
main ()
2196
{
2197
 
2198
  ;
2199
  return 0;
2200
}
2201
_ACEOF
2202
rm -f conftest.$ac_objext
2203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204
  (eval $ac_compile) 2>conftest.er1
2205
  ac_status=$?
2206
  grep -v '^ *+' conftest.er1 >conftest.err
2207
  rm -f conftest.er1
2208
  cat conftest.err >&5
2209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210
  (exit $ac_status); } &&
2211
         { ac_try='test -z "$ac_c_werror_flag"
2212
                         || test ! -s conftest.err'
2213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214
  (eval $ac_try) 2>&5
2215
  ac_status=$?
2216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217
  (exit $ac_status); }; } &&
2218
         { ac_try='test -s conftest.$ac_objext'
2219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
  (eval $ac_try) 2>&5
2221
  ac_status=$?
2222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223
  (exit $ac_status); }; }; then
2224
  ac_cv_prog_cc_g=yes
2225
else
2226
  echo "$as_me: failed program was:" >&5
2227
sed 's/^/| /' conftest.$ac_ext >&5
2228
 
2229
ac_cv_prog_cc_g=no
2230
fi
2231
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232
fi
2233
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235
if test "$ac_test_CFLAGS" = set; then
2236
  CFLAGS=$ac_save_CFLAGS
2237
elif test $ac_cv_prog_cc_g = yes; then
2238
  if test "$GCC" = yes; then
2239
    CFLAGS="-g -O2"
2240
  else
2241
    CFLAGS="-g"
2242
  fi
2243
else
2244
  if test "$GCC" = yes; then
2245
    CFLAGS="-O2"
2246
  else
2247
    CFLAGS=
2248
  fi
2249
fi
2250
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253
  echo $ECHO_N "(cached) $ECHO_C" >&6
2254
else
2255
  ac_cv_prog_cc_stdc=no
2256
ac_save_CC=$CC
2257
cat >conftest.$ac_ext <<_ACEOF
2258
/* confdefs.h.  */
2259
_ACEOF
2260
cat confdefs.h >>conftest.$ac_ext
2261
cat >>conftest.$ac_ext <<_ACEOF
2262
/* end confdefs.h.  */
2263
#include 
2264
#include 
2265
#include 
2266
#include 
2267
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2268
struct buf { int x; };
2269
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270
static char *e (p, i)
2271
     char **p;
2272
     int i;
2273
{
2274
  return p[i];
2275
}
2276
static char *f (char * (*g) (char **, int), char **p, ...)
2277
{
2278
  char *s;
2279
  va_list v;
2280
  va_start (v,p);
2281
  s = g (p, va_arg (v,int));
2282
  va_end (v);
2283
  return s;
2284
}
2285
 
2286
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2287
   function prototypes and stuff, but not '\xHH' hex character constants.
2288
   These don't provoke an error unfortunately, instead are silently treated
2289
   as 'x'.  The following induces an error, until -std1 is added to get
2290
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2291
   array size at least.  It's necessary to write '\x00'==0 to get something
2292
   that's true only with -std1.  */
2293
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294
 
2295
int test (int i, double x);
2296
struct s1 {int (*f) (int a);};
2297
struct s2 {int (*f) (double a);};
2298
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2299
int argc;
2300
char **argv;
2301
int
2302
main ()
2303
{
2304
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2305
  ;
2306
  return 0;
2307
}
2308
_ACEOF
2309
# Don't try gcc -ansi; that turns off useful extensions and
2310
# breaks some systems' header files.
2311
# AIX                   -qlanglvl=ansi
2312
# Ultrix and OSF/1      -std1
2313
# HP-UX 10.20 and later -Ae
2314
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2315
# SVR4                  -Xc -D__EXTENSIONS__
2316
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317
do
2318
  CC="$ac_save_CC $ac_arg"
2319
  rm -f conftest.$ac_objext
2320
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321
  (eval $ac_compile) 2>conftest.er1
2322
  ac_status=$?
2323
  grep -v '^ *+' conftest.er1 >conftest.err
2324
  rm -f conftest.er1
2325
  cat conftest.err >&5
2326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327
  (exit $ac_status); } &&
2328
         { ac_try='test -z "$ac_c_werror_flag"
2329
                         || test ! -s conftest.err'
2330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331
  (eval $ac_try) 2>&5
2332
  ac_status=$?
2333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334
  (exit $ac_status); }; } &&
2335
         { ac_try='test -s conftest.$ac_objext'
2336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337
  (eval $ac_try) 2>&5
2338
  ac_status=$?
2339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340
  (exit $ac_status); }; }; then
2341
  ac_cv_prog_cc_stdc=$ac_arg
2342
break
2343
else
2344
  echo "$as_me: failed program was:" >&5
2345
sed 's/^/| /' conftest.$ac_ext >&5
2346
 
2347
fi
2348
rm -f conftest.err conftest.$ac_objext
2349
done
2350
rm -f conftest.$ac_ext conftest.$ac_objext
2351
CC=$ac_save_CC
2352
 
2353
fi
2354
 
2355
case "x$ac_cv_prog_cc_stdc" in
2356
  x|xno)
2357
    echo "$as_me:$LINENO: result: none needed" >&5
2358
echo "${ECHO_T}none needed" >&6 ;;
2359
  *)
2360
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2363
esac
2364
 
2365
# Some people use a C++ compiler to compile C.  Since we use `exit',
2366
# in C++ we need to declare it.  In case someone uses the same compiler
2367
# for both compiling C and C++ we need to have the C++ compiler decide
2368
# the declaration of exit, since it's the most demanding environment.
2369
cat >conftest.$ac_ext <<_ACEOF
2370
#ifndef __cplusplus
2371
  choke me
2372
#endif
2373
_ACEOF
2374
rm -f conftest.$ac_objext
2375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376
  (eval $ac_compile) 2>conftest.er1
2377
  ac_status=$?
2378
  grep -v '^ *+' conftest.er1 >conftest.err
2379
  rm -f conftest.er1
2380
  cat conftest.err >&5
2381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382
  (exit $ac_status); } &&
2383
         { ac_try='test -z "$ac_c_werror_flag"
2384
                         || test ! -s conftest.err'
2385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386
  (eval $ac_try) 2>&5
2387
  ac_status=$?
2388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389
  (exit $ac_status); }; } &&
2390
         { ac_try='test -s conftest.$ac_objext'
2391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392
  (eval $ac_try) 2>&5
2393
  ac_status=$?
2394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
  (exit $ac_status); }; }; then
2396
  for ac_declaration in \
2397
   '' \
2398
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2399
   'extern "C" void std::exit (int); using std::exit;' \
2400
   'extern "C" void exit (int) throw ();' \
2401
   'extern "C" void exit (int);' \
2402
   'void exit (int);'
2403
do
2404
  cat >conftest.$ac_ext <<_ACEOF
2405
/* confdefs.h.  */
2406
_ACEOF
2407
cat confdefs.h >>conftest.$ac_ext
2408
cat >>conftest.$ac_ext <<_ACEOF
2409
/* end confdefs.h.  */
2410
$ac_declaration
2411
#include 
2412
int
2413
main ()
2414
{
2415
exit (42);
2416
  ;
2417
  return 0;
2418
}
2419
_ACEOF
2420
rm -f conftest.$ac_objext
2421
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422
  (eval $ac_compile) 2>conftest.er1
2423
  ac_status=$?
2424
  grep -v '^ *+' conftest.er1 >conftest.err
2425
  rm -f conftest.er1
2426
  cat conftest.err >&5
2427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428
  (exit $ac_status); } &&
2429
         { ac_try='test -z "$ac_c_werror_flag"
2430
                         || test ! -s conftest.err'
2431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432
  (eval $ac_try) 2>&5
2433
  ac_status=$?
2434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
  (exit $ac_status); }; } &&
2436
         { ac_try='test -s conftest.$ac_objext'
2437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438
  (eval $ac_try) 2>&5
2439
  ac_status=$?
2440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441
  (exit $ac_status); }; }; then
2442
  :
2443
else
2444
  echo "$as_me: failed program was:" >&5
2445
sed 's/^/| /' conftest.$ac_ext >&5
2446
 
2447
continue
2448
fi
2449
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450
  cat >conftest.$ac_ext <<_ACEOF
2451
/* confdefs.h.  */
2452
_ACEOF
2453
cat confdefs.h >>conftest.$ac_ext
2454
cat >>conftest.$ac_ext <<_ACEOF
2455
/* end confdefs.h.  */
2456
$ac_declaration
2457
int
2458
main ()
2459
{
2460
exit (42);
2461
  ;
2462
  return 0;
2463
}
2464
_ACEOF
2465
rm -f conftest.$ac_objext
2466
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467
  (eval $ac_compile) 2>conftest.er1
2468
  ac_status=$?
2469
  grep -v '^ *+' conftest.er1 >conftest.err
2470
  rm -f conftest.er1
2471
  cat conftest.err >&5
2472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473
  (exit $ac_status); } &&
2474
         { ac_try='test -z "$ac_c_werror_flag"
2475
                         || test ! -s conftest.err'
2476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477
  (eval $ac_try) 2>&5
2478
  ac_status=$?
2479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480
  (exit $ac_status); }; } &&
2481
         { ac_try='test -s conftest.$ac_objext'
2482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483
  (eval $ac_try) 2>&5
2484
  ac_status=$?
2485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
  (exit $ac_status); }; }; then
2487
  break
2488
else
2489
  echo "$as_me: failed program was:" >&5
2490
sed 's/^/| /' conftest.$ac_ext >&5
2491
 
2492
fi
2493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494
done
2495
rm -f conftest*
2496
if test -n "$ac_declaration"; then
2497
  echo '#ifdef __cplusplus' >>confdefs.h
2498
  echo $ac_declaration      >>confdefs.h
2499
  echo '#endif'             >>confdefs.h
2500
fi
2501
 
2502
else
2503
  echo "$as_me: failed program was:" >&5
2504
sed 's/^/| /' conftest.$ac_ext >&5
2505
 
2506
fi
2507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508
ac_ext=c
2509
ac_cpp='$CPP $CPPFLAGS'
2510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
 
2514
 
2515
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517
if test "${ac_cv_search_strerror+set}" = set; then
2518
  echo $ECHO_N "(cached) $ECHO_C" >&6
2519
else
2520
  ac_func_search_save_LIBS=$LIBS
2521
ac_cv_search_strerror=no
2522
cat >conftest.$ac_ext <<_ACEOF
2523
/* confdefs.h.  */
2524
_ACEOF
2525
cat confdefs.h >>conftest.$ac_ext
2526
cat >>conftest.$ac_ext <<_ACEOF
2527
/* end confdefs.h.  */
2528
 
2529
/* Override any gcc2 internal prototype to avoid an error.  */
2530
#ifdef __cplusplus
2531
extern "C"
2532
#endif
2533
/* We use char because int might match the return type of a gcc2
2534
   builtin and then its argument prototype would still apply.  */
2535
char strerror ();
2536
int
2537
main ()
2538
{
2539
strerror ();
2540
  ;
2541
  return 0;
2542
}
2543
_ACEOF
2544
rm -f conftest.$ac_objext conftest$ac_exeext
2545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546
  (eval $ac_link) 2>conftest.er1
2547
  ac_status=$?
2548
  grep -v '^ *+' conftest.er1 >conftest.err
2549
  rm -f conftest.er1
2550
  cat conftest.err >&5
2551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552
  (exit $ac_status); } &&
2553
         { ac_try='test -z "$ac_c_werror_flag"
2554
                         || test ! -s conftest.err'
2555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556
  (eval $ac_try) 2>&5
2557
  ac_status=$?
2558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559
  (exit $ac_status); }; } &&
2560
         { ac_try='test -s conftest$ac_exeext'
2561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562
  (eval $ac_try) 2>&5
2563
  ac_status=$?
2564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565
  (exit $ac_status); }; }; then
2566
  ac_cv_search_strerror="none required"
2567
else
2568
  echo "$as_me: failed program was:" >&5
2569
sed 's/^/| /' conftest.$ac_ext >&5
2570
 
2571
fi
2572
rm -f conftest.err conftest.$ac_objext \
2573
      conftest$ac_exeext conftest.$ac_ext
2574
if test "$ac_cv_search_strerror" = no; then
2575
  for ac_lib in cposix; do
2576
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2577
    cat >conftest.$ac_ext <<_ACEOF
2578
/* confdefs.h.  */
2579
_ACEOF
2580
cat confdefs.h >>conftest.$ac_ext
2581
cat >>conftest.$ac_ext <<_ACEOF
2582
/* end confdefs.h.  */
2583
 
2584
/* Override any gcc2 internal prototype to avoid an error.  */
2585
#ifdef __cplusplus
2586
extern "C"
2587
#endif
2588
/* We use char because int might match the return type of a gcc2
2589
   builtin and then its argument prototype would still apply.  */
2590
char strerror ();
2591
int
2592
main ()
2593
{
2594
strerror ();
2595
  ;
2596
  return 0;
2597
}
2598
_ACEOF
2599
rm -f conftest.$ac_objext conftest$ac_exeext
2600
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601
  (eval $ac_link) 2>conftest.er1
2602
  ac_status=$?
2603
  grep -v '^ *+' conftest.er1 >conftest.err
2604
  rm -f conftest.er1
2605
  cat conftest.err >&5
2606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607
  (exit $ac_status); } &&
2608
         { ac_try='test -z "$ac_c_werror_flag"
2609
                         || test ! -s conftest.err'
2610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611
  (eval $ac_try) 2>&5
2612
  ac_status=$?
2613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614
  (exit $ac_status); }; } &&
2615
         { ac_try='test -s conftest$ac_exeext'
2616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617
  (eval $ac_try) 2>&5
2618
  ac_status=$?
2619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620
  (exit $ac_status); }; }; then
2621
  ac_cv_search_strerror="-l$ac_lib"
2622
break
2623
else
2624
  echo "$as_me: failed program was:" >&5
2625
sed 's/^/| /' conftest.$ac_ext >&5
2626
 
2627
fi
2628
rm -f conftest.err conftest.$ac_objext \
2629
      conftest$ac_exeext conftest.$ac_ext
2630
  done
2631
fi
2632
LIBS=$ac_func_search_save_LIBS
2633
fi
2634
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636
if test "$ac_cv_search_strerror" != no; then
2637
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2638
 
2639
fi
2640
 
2641
 
2642
# We currently only use the version number for the name of any shared
2643
# library.  For user convenience, we always use the same version
2644
# number that BFD is using.
2645
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2646
 
2647
am__api_version="1.9"
2648
# Find a good install program.  We prefer a C program (faster),
2649
# so one script is as good as another.  But avoid the broken or
2650
# incompatible versions:
2651
# SysV /etc/install, /usr/sbin/install
2652
# SunOS /usr/etc/install
2653
# IRIX /sbin/install
2654
# AIX /bin/install
2655
# AmigaOS /C/install, which installs bootblocks on floppy discs
2656
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659
# OS/2's system install, which has a completely different semantic
2660
# ./install, which can be erroneously created by make from ./install.sh.
2661
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663
if test -z "$INSTALL"; then
2664
if test "${ac_cv_path_install+set}" = set; then
2665
  echo $ECHO_N "(cached) $ECHO_C" >&6
2666
else
2667
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668
for as_dir in $PATH
2669
do
2670
  IFS=$as_save_IFS
2671
  test -z "$as_dir" && as_dir=.
2672
  # Account for people who put trailing slashes in PATH elements.
2673
case $as_dir/ in
2674
  ./ | .// | /cC/* | \
2675
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677
  /usr/ucb/* ) ;;
2678
  *)
2679
    # OSF1 and SCO ODT 3.0 have their own names for install.
2680
    # Don't use installbsd from OSF since it installs stuff as root
2681
    # by default.
2682
    for ac_prog in ginstall scoinst install; do
2683
      for ac_exec_ext in '' $ac_executable_extensions; do
2684
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685
          if test $ac_prog = install &&
2686
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687
            # AIX install.  It has an incompatible calling convention.
2688
            :
2689
          elif test $ac_prog = install &&
2690
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691
            # program-specific install script used by HP pwplus--don't use.
2692
            :
2693
          else
2694
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695
            break 3
2696
          fi
2697
        fi
2698
      done
2699
    done
2700
    ;;
2701
esac
2702
done
2703
 
2704
 
2705
fi
2706
  if test "${ac_cv_path_install+set}" = set; then
2707
    INSTALL=$ac_cv_path_install
2708
  else
2709
    # As a last resort, use the slow shell script.  We don't cache a
2710
    # path for INSTALL within a source directory, because that will
2711
    # break other packages using the cache if that directory is
2712
    # removed, or if the path is relative.
2713
    INSTALL=$ac_install_sh
2714
  fi
2715
fi
2716
echo "$as_me:$LINENO: result: $INSTALL" >&5
2717
echo "${ECHO_T}$INSTALL" >&6
2718
 
2719
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720
# It thinks the first close brace ends the variable substitution.
2721
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
 
2723
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
 
2725
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
 
2727
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2729
# Just in case
2730
sleep 1
2731
echo timestamp > conftest.file
2732
# Do `set' in a subshell so we don't clobber the current shell's
2733
# arguments.  Must try -L first in case configure is actually a
2734
# symlink; some systems play weird games with the mod time of symlinks
2735
# (eg FreeBSD returns the mod time of the symlink's containing
2736
# directory).
2737
if (
2738
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739
   if test "$*" = "X"; then
2740
      # -L didn't work.
2741
      set X `ls -t $srcdir/configure conftest.file`
2742
   fi
2743
   rm -f conftest.file
2744
   if test "$*" != "X $srcdir/configure conftest.file" \
2745
      && test "$*" != "X conftest.file $srcdir/configure"; then
2746
 
2747
      # If neither matched, then we have a broken ls.  This can happen
2748
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2749
      # broken ls alias from the environment.  This has actually
2750
      # happened.  Such a system could not be considered "sane".
2751
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2752
alias in your environment" >&5
2753
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2754
alias in your environment" >&2;}
2755
   { (exit 1); exit 1; }; }
2756
   fi
2757
 
2758
   test "$2" = conftest.file
2759
   )
2760
then
2761
   # Ok.
2762
   :
2763
else
2764
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765
Check your system clock" >&5
2766
echo "$as_me: error: newly created file is older than distributed files!
2767
Check your system clock" >&2;}
2768
   { (exit 1); exit 1; }; }
2769
fi
2770
echo "$as_me:$LINENO: result: yes" >&5
2771
echo "${ECHO_T}yes" >&6
2772
test "$program_prefix" != NONE &&
2773
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774
# Use a double $ so make ignores it.
2775
test "$program_suffix" != NONE &&
2776
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777
# Double any \ or $.  echo might interpret backslashes.
2778
# By default was `s,x,x', remove it if useless.
2779
cat <<\_ACEOF >conftest.sed
2780
s/[\\$]/&&/g;s/;s,x,x,$//
2781
_ACEOF
2782
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783
rm conftest.sed
2784
 
2785
# expand $ac_aux_dir to an absolute path
2786
am_aux_dir=`cd $ac_aux_dir && pwd`
2787
 
2788
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789
# Use eval to expand $SHELL
2790
if eval "$MISSING --run true"; then
2791
  am_missing_run="$MISSING --run "
2792
else
2793
  am_missing_run=
2794
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796
fi
2797
 
2798
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799
  # We used to keeping the `.' as first argument, in order to
2800
  # allow $(mkdir_p) to be used without argument.  As in
2801
  #   $(mkdir_p) $(somedir)
2802
  # where $(somedir) is conditionally defined.  However this is wrong
2803
  # for two reasons:
2804
  #  1. if the package is installed by a user who cannot write `.'
2805
  #     make install will fail,
2806
  #  2. the above comment should most certainly read
2807
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2808
  #     so it does not work when $(somedir) is undefined and
2809
  #     $(DESTDIR) is not.
2810
  #  To support the latter case, we have to write
2811
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812
  #  so the `.' trick is pointless.
2813
  mkdir_p='mkdir -p --'
2814
else
2815
  # On NextStep and OpenStep, the `mkdir' command does not
2816
  # recognize any option.  It will interpret all options as
2817
  # directories to create, and then abort because `.' already
2818
  # exists.
2819
  for d in ./-p ./--version;
2820
  do
2821
    test -d $d && rmdir $d
2822
  done
2823
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2825
    mkdir_p='$(mkinstalldirs)'
2826
  else
2827
    mkdir_p='$(install_sh) -d'
2828
  fi
2829
fi
2830
 
2831
for ac_prog in gawk mawk nawk awk
2832
do
2833
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2834
set dummy $ac_prog; ac_word=$2
2835
echo "$as_me:$LINENO: checking for $ac_word" >&5
2836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837
if test "${ac_cv_prog_AWK+set}" = set; then
2838
  echo $ECHO_N "(cached) $ECHO_C" >&6
2839
else
2840
  if test -n "$AWK"; then
2841
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842
else
2843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844
for as_dir in $PATH
2845
do
2846
  IFS=$as_save_IFS
2847
  test -z "$as_dir" && as_dir=.
2848
  for ac_exec_ext in '' $ac_executable_extensions; do
2849
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850
    ac_cv_prog_AWK="$ac_prog"
2851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852
    break 2
2853
  fi
2854
done
2855
done
2856
 
2857
fi
2858
fi
2859
AWK=$ac_cv_prog_AWK
2860
if test -n "$AWK"; then
2861
  echo "$as_me:$LINENO: result: $AWK" >&5
2862
echo "${ECHO_T}$AWK" >&6
2863
else
2864
  echo "$as_me:$LINENO: result: no" >&5
2865
echo "${ECHO_T}no" >&6
2866
fi
2867
 
2868
  test -n "$AWK" && break
2869
done
2870
 
2871
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875
  echo $ECHO_N "(cached) $ECHO_C" >&6
2876
else
2877
  cat >conftest.make <<\_ACEOF
2878
all:
2879
        @echo 'ac_maketemp="$(MAKE)"'
2880
_ACEOF
2881
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883
if test -n "$ac_maketemp"; then
2884
  eval ac_cv_prog_make_${ac_make}_set=yes
2885
else
2886
  eval ac_cv_prog_make_${ac_make}_set=no
2887
fi
2888
rm -f conftest.make
2889
fi
2890
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891
  echo "$as_me:$LINENO: result: yes" >&5
2892
echo "${ECHO_T}yes" >&6
2893
  SET_MAKE=
2894
else
2895
  echo "$as_me:$LINENO: result: no" >&5
2896
echo "${ECHO_T}no" >&6
2897
  SET_MAKE="MAKE=${MAKE-make}"
2898
fi
2899
 
2900
rm -rf .tst 2>/dev/null
2901
mkdir .tst 2>/dev/null
2902
if test -d .tst; then
2903
  am__leading_dot=.
2904
else
2905
  am__leading_dot=_
2906
fi
2907
rmdir .tst 2>/dev/null
2908
 
2909
DEPDIR="${am__leading_dot}deps"
2910
 
2911
          ac_config_commands="$ac_config_commands depfiles"
2912
 
2913
 
2914
am_make=${MAKE-make}
2915
cat > confinc << 'END'
2916
am__doit:
2917
        @echo done
2918
.PHONY: am__doit
2919
END
2920
# If we don't find an include directive, just comment out the code.
2921
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923
am__include="#"
2924
am__quote=
2925
_am_result=none
2926
# First try GNU make style include.
2927
echo "include confinc" > confmf
2928
# We grep out `Entering directory' and `Leaving directory'
2929
# messages which can occur if `w' ends up in MAKEFLAGS.
2930
# In particular we don't look at `^make:' because GNU make might
2931
# be invoked under some other name (usually "gmake"), in which
2932
# case it prints its new name instead of `make'.
2933
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934
   am__include=include
2935
   am__quote=
2936
   _am_result=GNU
2937
fi
2938
# Now try BSD make style include.
2939
if test "$am__include" = "#"; then
2940
   echo '.include "confinc"' > confmf
2941
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942
      am__include=.include
2943
      am__quote="\""
2944
      _am_result=BSD
2945
   fi
2946
fi
2947
 
2948
 
2949
echo "$as_me:$LINENO: result: $_am_result" >&5
2950
echo "${ECHO_T}$_am_result" >&6
2951
rm -f confinc confmf
2952
 
2953
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954
if test "${enable_dependency_tracking+set}" = set; then
2955
  enableval="$enable_dependency_tracking"
2956
 
2957
fi;
2958
if test "x$enable_dependency_tracking" != xno; then
2959
  am_depcomp="$ac_aux_dir/depcomp"
2960
  AMDEPBACKSLASH='\'
2961
fi
2962
 
2963
 
2964
if test "x$enable_dependency_tracking" != xno; then
2965
  AMDEP_TRUE=
2966
  AMDEP_FALSE='#'
2967
else
2968
  AMDEP_TRUE='#'
2969
  AMDEP_FALSE=
2970
fi
2971
 
2972
 
2973
 
2974
# test to see if srcdir already configured
2975
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976
   test -f $srcdir/config.status; then
2977
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979
   { (exit 1); exit 1; }; }
2980
fi
2981
 
2982
# test whether we have cygpath
2983
if test -z "$CYGPATH_W"; then
2984
  if (cygpath --version) >/dev/null 2>/dev/null; then
2985
    CYGPATH_W='cygpath -w'
2986
  else
2987
    CYGPATH_W=echo
2988
  fi
2989
fi
2990
 
2991
 
2992
# Define the identity of the package.
2993
 PACKAGE=opcodes
2994
 VERSION=${BFD_VERSION}
2995
 
2996
 
2997
cat >>confdefs.h <<_ACEOF
2998
#define PACKAGE "$PACKAGE"
2999
_ACEOF
3000
 
3001
 
3002
cat >>confdefs.h <<_ACEOF
3003
#define VERSION "$VERSION"
3004
_ACEOF
3005
 
3006
# Some tools Automake needs.
3007
 
3008
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
 
3010
 
3011
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
 
3013
 
3014
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
 
3016
 
3017
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
 
3019
 
3020
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
 
3022
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3023
 
3024
# Installed binaries are usually stripped using `strip' when the user
3025
# run `make install-strip'.  However `strip' might not be the right
3026
# tool to use in cross-compilation environments, therefore Automake
3027
# will honor the `STRIP' environment variable to overrule this program.
3028
if test "$cross_compiling" != no; then
3029
  if test -n "$ac_tool_prefix"; then
3030
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031
set dummy ${ac_tool_prefix}strip; ac_word=$2
3032
echo "$as_me:$LINENO: checking for $ac_word" >&5
3033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034
if test "${ac_cv_prog_STRIP+set}" = set; then
3035
  echo $ECHO_N "(cached) $ECHO_C" >&6
3036
else
3037
  if test -n "$STRIP"; then
3038
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039
else
3040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041
for as_dir in $PATH
3042
do
3043
  IFS=$as_save_IFS
3044
  test -z "$as_dir" && as_dir=.
3045
  for ac_exec_ext in '' $ac_executable_extensions; do
3046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049
    break 2
3050
  fi
3051
done
3052
done
3053
 
3054
fi
3055
fi
3056
STRIP=$ac_cv_prog_STRIP
3057
if test -n "$STRIP"; then
3058
  echo "$as_me:$LINENO: result: $STRIP" >&5
3059
echo "${ECHO_T}$STRIP" >&6
3060
else
3061
  echo "$as_me:$LINENO: result: no" >&5
3062
echo "${ECHO_T}no" >&6
3063
fi
3064
 
3065
fi
3066
if test -z "$ac_cv_prog_STRIP"; then
3067
  ac_ct_STRIP=$STRIP
3068
  # Extract the first word of "strip", so it can be a program name with args.
3069
set dummy strip; ac_word=$2
3070
echo "$as_me:$LINENO: checking for $ac_word" >&5
3071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073
  echo $ECHO_N "(cached) $ECHO_C" >&6
3074
else
3075
  if test -n "$ac_ct_STRIP"; then
3076
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077
else
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079
for as_dir in $PATH
3080
do
3081
  IFS=$as_save_IFS
3082
  test -z "$as_dir" && as_dir=.
3083
  for ac_exec_ext in '' $ac_executable_extensions; do
3084
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085
    ac_cv_prog_ac_ct_STRIP="strip"
3086
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087
    break 2
3088
  fi
3089
done
3090
done
3091
 
3092
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093
fi
3094
fi
3095
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096
if test -n "$ac_ct_STRIP"; then
3097
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098
echo "${ECHO_T}$ac_ct_STRIP" >&6
3099
else
3100
  echo "$as_me:$LINENO: result: no" >&5
3101
echo "${ECHO_T}no" >&6
3102
fi
3103
 
3104
  STRIP=$ac_ct_STRIP
3105
else
3106
  STRIP="$ac_cv_prog_STRIP"
3107
fi
3108
 
3109
fi
3110
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
 
3112
# We need awk for the "check" target.  The system "awk" is bad on
3113
# some platforms.
3114
# Always define AMTAR for backward compatibility.
3115
 
3116
AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
 
3118
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
 
3120
 
3121
 
3122
 
3123
depcc="$CC"   am_compiler_list=
3124
 
3125
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128
  echo $ECHO_N "(cached) $ECHO_C" >&6
3129
else
3130
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131
  # We make a subdir and do the tests there.  Otherwise we can end up
3132
  # making bogus files that we don't know about and never remove.  For
3133
  # instance it was reported that on HP-UX the gcc test will end up
3134
  # making a dummy file named `D' -- because `-MD' means `put the output
3135
  # in D'.
3136
  mkdir conftest.dir
3137
  # Copy depcomp to subdir because otherwise we won't find it if we're
3138
  # using a relative directory.
3139
  cp "$am_depcomp" conftest.dir
3140
  cd conftest.dir
3141
  # We will build objects and dependencies in a subdirectory because
3142
  # it helps to detect inapplicable dependency modes.  For instance
3143
  # both Tru64's cc and ICC support -MD to output dependencies as a
3144
  # side effect of compilation, but ICC will put the dependencies in
3145
  # the current directory while Tru64 will put them in the object
3146
  # directory.
3147
  mkdir sub
3148
 
3149
  am_cv_CC_dependencies_compiler_type=none
3150
  if test "$am_compiler_list" = ""; then
3151
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152
  fi
3153
  for depmode in $am_compiler_list; do
3154
    # Setup a source with many dependencies, because some compilers
3155
    # like to wrap large dependency lists on column 80 (with \), and
3156
    # we should not choose a depcomp mode which is confused by this.
3157
    #
3158
    # We need to recreate these files for each test, as the compiler may
3159
    # overwrite some of them when testing with obscure command lines.
3160
    # This happens at least with the AIX C compiler.
3161
    : > sub/conftest.c
3162
    for i in 1 2 3 4 5 6; do
3163
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165
      # Solaris 8's {/usr,}/bin/sh.
3166
      touch sub/conftst$i.h
3167
    done
3168
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
 
3170
    case $depmode in
3171
    nosideeffect)
3172
      # after this tag, mechanisms are not by side-effect, so they'll
3173
      # only be used when explicitly requested
3174
      if test "x$enable_dependency_tracking" = xyes; then
3175
        continue
3176
      else
3177
        break
3178
      fi
3179
      ;;
3180
    none) break ;;
3181
    esac
3182
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183
    # mode.  It turns out that the SunPro C++ compiler does not properly
3184
    # handle `-M -o', and we need to detect this.
3185
    if depmode=$depmode \
3186
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189
         >/dev/null 2>conftest.err &&
3190
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193
      # icc doesn't choke on unknown options, it will just issue warnings
3194
      # or remarks (even with -Werror).  So we grep stderr for any message
3195
      # that says an option was ignored or not supported.
3196
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3197
      #   icc: Command line warning: ignoring option '-M'; no argument required
3198
      # The diagnosis changed in icc 8.0:
3199
      #   icc: Command line remark: option '-MP' not supported
3200
      if (grep 'ignoring option' conftest.err ||
3201
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202
        am_cv_CC_dependencies_compiler_type=$depmode
3203
        break
3204
      fi
3205
    fi
3206
  done
3207
 
3208
  cd ..
3209
  rm -rf conftest.dir
3210
else
3211
  am_cv_CC_dependencies_compiler_type=none
3212
fi
3213
 
3214
fi
3215
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
 
3219
 
3220
 
3221
if
3222
  test "x$enable_dependency_tracking" != xno \
3223
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224
  am__fastdepCC_TRUE=
3225
  am__fastdepCC_FALSE='#'
3226
else
3227
  am__fastdepCC_TRUE='#'
3228
  am__fastdepCC_FALSE=
3229
fi
3230
 
3231
 
3232
 
3233
 
3234
ac_ext=c
3235
ac_cpp='$CPP $CPPFLAGS'
3236
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
if test -n "$ac_tool_prefix"; then
3240
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242
echo "$as_me:$LINENO: checking for $ac_word" >&5
3243
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244
if test "${ac_cv_prog_CC+set}" = set; then
3245
  echo $ECHO_N "(cached) $ECHO_C" >&6
3246
else
3247
  if test -n "$CC"; then
3248
  ac_cv_prog_CC="$CC" # Let the user override the test.
3249
else
3250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251
for as_dir in $PATH
3252
do
3253
  IFS=$as_save_IFS
3254
  test -z "$as_dir" && as_dir=.
3255
  for ac_exec_ext in '' $ac_executable_extensions; do
3256
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259
    break 2
3260
  fi
3261
done
3262
done
3263
 
3264
fi
3265
fi
3266
CC=$ac_cv_prog_CC
3267
if test -n "$CC"; then
3268
  echo "$as_me:$LINENO: result: $CC" >&5
3269
echo "${ECHO_T}$CC" >&6
3270
else
3271
  echo "$as_me:$LINENO: result: no" >&5
3272
echo "${ECHO_T}no" >&6
3273
fi
3274
 
3275
fi
3276
if test -z "$ac_cv_prog_CC"; then
3277
  ac_ct_CC=$CC
3278
  # Extract the first word of "gcc", so it can be a program name with args.
3279
set dummy gcc; ac_word=$2
3280
echo "$as_me:$LINENO: checking for $ac_word" >&5
3281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3283
  echo $ECHO_N "(cached) $ECHO_C" >&6
3284
else
3285
  if test -n "$ac_ct_CC"; then
3286
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3287
else
3288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289
for as_dir in $PATH
3290
do
3291
  IFS=$as_save_IFS
3292
  test -z "$as_dir" && as_dir=.
3293
  for ac_exec_ext in '' $ac_executable_extensions; do
3294
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295
    ac_cv_prog_ac_ct_CC="gcc"
3296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297
    break 2
3298
  fi
3299
done
3300
done
3301
 
3302
fi
3303
fi
3304
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305
if test -n "$ac_ct_CC"; then
3306
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3307
echo "${ECHO_T}$ac_ct_CC" >&6
3308
else
3309
  echo "$as_me:$LINENO: result: no" >&5
3310
echo "${ECHO_T}no" >&6
3311
fi
3312
 
3313
  CC=$ac_ct_CC
3314
else
3315
  CC="$ac_cv_prog_CC"
3316
fi
3317
 
3318
if test -z "$CC"; then
3319
  if test -n "$ac_tool_prefix"; then
3320
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321
set dummy ${ac_tool_prefix}cc; ac_word=$2
3322
echo "$as_me:$LINENO: checking for $ac_word" >&5
3323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324
if test "${ac_cv_prog_CC+set}" = set; then
3325
  echo $ECHO_N "(cached) $ECHO_C" >&6
3326
else
3327
  if test -n "$CC"; then
3328
  ac_cv_prog_CC="$CC" # Let the user override the test.
3329
else
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335
  for ac_exec_ext in '' $ac_executable_extensions; do
3336
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339
    break 2
3340
  fi
3341
done
3342
done
3343
 
3344
fi
3345
fi
3346
CC=$ac_cv_prog_CC
3347
if test -n "$CC"; then
3348
  echo "$as_me:$LINENO: result: $CC" >&5
3349
echo "${ECHO_T}$CC" >&6
3350
else
3351
  echo "$as_me:$LINENO: result: no" >&5
3352
echo "${ECHO_T}no" >&6
3353
fi
3354
 
3355
fi
3356
if test -z "$ac_cv_prog_CC"; then
3357
  ac_ct_CC=$CC
3358
  # Extract the first word of "cc", so it can be a program name with args.
3359
set dummy cc; ac_word=$2
3360
echo "$as_me:$LINENO: checking for $ac_word" >&5
3361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3363
  echo $ECHO_N "(cached) $ECHO_C" >&6
3364
else
3365
  if test -n "$ac_ct_CC"; then
3366
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367
else
3368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369
for as_dir in $PATH
3370
do
3371
  IFS=$as_save_IFS
3372
  test -z "$as_dir" && as_dir=.
3373
  for ac_exec_ext in '' $ac_executable_extensions; do
3374
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375
    ac_cv_prog_ac_ct_CC="cc"
3376
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377
    break 2
3378
  fi
3379
done
3380
done
3381
 
3382
fi
3383
fi
3384
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3385
if test -n "$ac_ct_CC"; then
3386
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3387
echo "${ECHO_T}$ac_ct_CC" >&6
3388
else
3389
  echo "$as_me:$LINENO: result: no" >&5
3390
echo "${ECHO_T}no" >&6
3391
fi
3392
 
3393
  CC=$ac_ct_CC
3394
else
3395
  CC="$ac_cv_prog_CC"
3396
fi
3397
 
3398
fi
3399
if test -z "$CC"; then
3400
  # Extract the first word of "cc", so it can be a program name with args.
3401
set dummy cc; ac_word=$2
3402
echo "$as_me:$LINENO: checking for $ac_word" >&5
3403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404
if test "${ac_cv_prog_CC+set}" = set; then
3405
  echo $ECHO_N "(cached) $ECHO_C" >&6
3406
else
3407
  if test -n "$CC"; then
3408
  ac_cv_prog_CC="$CC" # Let the user override the test.
3409
else
3410
  ac_prog_rejected=no
3411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412
for as_dir in $PATH
3413
do
3414
  IFS=$as_save_IFS
3415
  test -z "$as_dir" && as_dir=.
3416
  for ac_exec_ext in '' $ac_executable_extensions; do
3417
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3419
       ac_prog_rejected=yes
3420
       continue
3421
     fi
3422
    ac_cv_prog_CC="cc"
3423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424
    break 2
3425
  fi
3426
done
3427
done
3428
 
3429
if test $ac_prog_rejected = yes; then
3430
  # We found a bogon in the path, so make sure we never use it.
3431
  set dummy $ac_cv_prog_CC
3432
  shift
3433
  if test $# != 0; then
3434
    # We chose a different compiler from the bogus one.
3435
    # However, it has the same basename, so the bogon will be chosen
3436
    # first if we set CC to just the basename; use the full file name.
3437
    shift
3438
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3439
  fi
3440
fi
3441
fi
3442
fi
3443
CC=$ac_cv_prog_CC
3444
if test -n "$CC"; then
3445
  echo "$as_me:$LINENO: result: $CC" >&5
3446
echo "${ECHO_T}$CC" >&6
3447
else
3448
  echo "$as_me:$LINENO: result: no" >&5
3449
echo "${ECHO_T}no" >&6
3450
fi
3451
 
3452
fi
3453
if test -z "$CC"; then
3454
  if test -n "$ac_tool_prefix"; then
3455
  for ac_prog in cl
3456
  do
3457
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458
set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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
    test -n "$CC" && break
3493
  done
3494
fi
3495
if test -z "$CC"; then
3496
  ac_ct_CC=$CC
3497
  for ac_prog in cl
3498
do
3499
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3500
set dummy $ac_prog; ac_word=$2
3501
echo "$as_me:$LINENO: checking for $ac_word" >&5
3502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3504
  echo $ECHO_N "(cached) $ECHO_C" >&6
3505
else
3506
  if test -n "$ac_ct_CC"; then
3507
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508
else
3509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510
for as_dir in $PATH
3511
do
3512
  IFS=$as_save_IFS
3513
  test -z "$as_dir" && as_dir=.
3514
  for ac_exec_ext in '' $ac_executable_extensions; do
3515
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516
    ac_cv_prog_ac_ct_CC="$ac_prog"
3517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518
    break 2
3519
  fi
3520
done
3521
done
3522
 
3523
fi
3524
fi
3525
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526
if test -n "$ac_ct_CC"; then
3527
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3528
echo "${ECHO_T}$ac_ct_CC" >&6
3529
else
3530
  echo "$as_me:$LINENO: result: no" >&5
3531
echo "${ECHO_T}no" >&6
3532
fi
3533
 
3534
  test -n "$ac_ct_CC" && break
3535
done
3536
 
3537
  CC=$ac_ct_CC
3538
fi
3539
 
3540
fi
3541
 
3542
 
3543
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3544
See \`config.log' for more details." >&5
3545
echo "$as_me: error: no acceptable C compiler found in \$PATH
3546
See \`config.log' for more details." >&2;}
3547
   { (exit 1); exit 1; }; }
3548
 
3549
# Provide some information about the compiler.
3550
echo "$as_me:$LINENO:" \
3551
     "checking for C compiler version" >&5
3552
ac_compiler=`set X $ac_compile; echo $2`
3553
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3554
  (eval $ac_compiler --version &5) 2>&5
3555
  ac_status=$?
3556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557
  (exit $ac_status); }
3558
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3559
  (eval $ac_compiler -v &5) 2>&5
3560
  ac_status=$?
3561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562
  (exit $ac_status); }
3563
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3564
  (eval $ac_compiler -V &5) 2>&5
3565
  ac_status=$?
3566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567
  (exit $ac_status); }
3568
 
3569
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3570
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3571
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3572
  echo $ECHO_N "(cached) $ECHO_C" >&6
3573
else
3574
  cat >conftest.$ac_ext <<_ACEOF
3575
/* confdefs.h.  */
3576
_ACEOF
3577
cat confdefs.h >>conftest.$ac_ext
3578
cat >>conftest.$ac_ext <<_ACEOF
3579
/* end confdefs.h.  */
3580
 
3581
int
3582
main ()
3583
{
3584
#ifndef __GNUC__
3585
       choke me
3586
#endif
3587
 
3588
  ;
3589
  return 0;
3590
}
3591
_ACEOF
3592
rm -f conftest.$ac_objext
3593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594
  (eval $ac_compile) 2>conftest.er1
3595
  ac_status=$?
3596
  grep -v '^ *+' conftest.er1 >conftest.err
3597
  rm -f conftest.er1
3598
  cat conftest.err >&5
3599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600
  (exit $ac_status); } &&
3601
         { ac_try='test -z "$ac_c_werror_flag"
3602
                         || test ! -s conftest.err'
3603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604
  (eval $ac_try) 2>&5
3605
  ac_status=$?
3606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
  (exit $ac_status); }; } &&
3608
         { ac_try='test -s conftest.$ac_objext'
3609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610
  (eval $ac_try) 2>&5
3611
  ac_status=$?
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
  (exit $ac_status); }; }; then
3614
  ac_compiler_gnu=yes
3615
else
3616
  echo "$as_me: failed program was:" >&5
3617
sed 's/^/| /' conftest.$ac_ext >&5
3618
 
3619
ac_compiler_gnu=no
3620
fi
3621
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3623
 
3624
fi
3625
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3626
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3627
GCC=`test $ac_compiler_gnu = yes && echo yes`
3628
ac_test_CFLAGS=${CFLAGS+set}
3629
ac_save_CFLAGS=$CFLAGS
3630
CFLAGS="-g"
3631
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3632
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3633
if test "${ac_cv_prog_cc_g+set}" = set; then
3634
  echo $ECHO_N "(cached) $ECHO_C" >&6
3635
else
3636
  cat >conftest.$ac_ext <<_ACEOF
3637
/* confdefs.h.  */
3638
_ACEOF
3639
cat confdefs.h >>conftest.$ac_ext
3640
cat >>conftest.$ac_ext <<_ACEOF
3641
/* end confdefs.h.  */
3642
 
3643
int
3644
main ()
3645
{
3646
 
3647
  ;
3648
  return 0;
3649
}
3650
_ACEOF
3651
rm -f conftest.$ac_objext
3652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3653
  (eval $ac_compile) 2>conftest.er1
3654
  ac_status=$?
3655
  grep -v '^ *+' conftest.er1 >conftest.err
3656
  rm -f conftest.er1
3657
  cat conftest.err >&5
3658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659
  (exit $ac_status); } &&
3660
         { ac_try='test -z "$ac_c_werror_flag"
3661
                         || test ! -s conftest.err'
3662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663
  (eval $ac_try) 2>&5
3664
  ac_status=$?
3665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666
  (exit $ac_status); }; } &&
3667
         { ac_try='test -s conftest.$ac_objext'
3668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669
  (eval $ac_try) 2>&5
3670
  ac_status=$?
3671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672
  (exit $ac_status); }; }; then
3673
  ac_cv_prog_cc_g=yes
3674
else
3675
  echo "$as_me: failed program was:" >&5
3676
sed 's/^/| /' conftest.$ac_ext >&5
3677
 
3678
ac_cv_prog_cc_g=no
3679
fi
3680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681
fi
3682
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3683
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3684
if test "$ac_test_CFLAGS" = set; then
3685
  CFLAGS=$ac_save_CFLAGS
3686
elif test $ac_cv_prog_cc_g = yes; then
3687
  if test "$GCC" = yes; then
3688
    CFLAGS="-g -O2"
3689
  else
3690
    CFLAGS="-g"
3691
  fi
3692
else
3693
  if test "$GCC" = yes; then
3694
    CFLAGS="-O2"
3695
  else
3696
    CFLAGS=
3697
  fi
3698
fi
3699
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3700
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3701
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3702
  echo $ECHO_N "(cached) $ECHO_C" >&6
3703
else
3704
  ac_cv_prog_cc_stdc=no
3705
ac_save_CC=$CC
3706
cat >conftest.$ac_ext <<_ACEOF
3707
/* confdefs.h.  */
3708
_ACEOF
3709
cat confdefs.h >>conftest.$ac_ext
3710
cat >>conftest.$ac_ext <<_ACEOF
3711
/* end confdefs.h.  */
3712
#include 
3713
#include 
3714
#include 
3715
#include 
3716
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3717
struct buf { int x; };
3718
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719
static char *e (p, i)
3720
     char **p;
3721
     int i;
3722
{
3723
  return p[i];
3724
}
3725
static char *f (char * (*g) (char **, int), char **p, ...)
3726
{
3727
  char *s;
3728
  va_list v;
3729
  va_start (v,p);
3730
  s = g (p, va_arg (v,int));
3731
  va_end (v);
3732
  return s;
3733
}
3734
 
3735
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3736
   function prototypes and stuff, but not '\xHH' hex character constants.
3737
   These don't provoke an error unfortunately, instead are silently treated
3738
   as 'x'.  The following induces an error, until -std1 is added to get
3739
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3740
   array size at least.  It's necessary to write '\x00'==0 to get something
3741
   that's true only with -std1.  */
3742
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
 
3744
int test (int i, double x);
3745
struct s1 {int (*f) (int a);};
3746
struct s2 {int (*f) (double a);};
3747
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3748
int argc;
3749
char **argv;
3750
int
3751
main ()
3752
{
3753
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3754
  ;
3755
  return 0;
3756
}
3757
_ACEOF
3758
# Don't try gcc -ansi; that turns off useful extensions and
3759
# breaks some systems' header files.
3760
# AIX                   -qlanglvl=ansi
3761
# Ultrix and OSF/1      -std1
3762
# HP-UX 10.20 and later -Ae
3763
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3764
# SVR4                  -Xc -D__EXTENSIONS__
3765
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766
do
3767
  CC="$ac_save_CC $ac_arg"
3768
  rm -f conftest.$ac_objext
3769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770
  (eval $ac_compile) 2>conftest.er1
3771
  ac_status=$?
3772
  grep -v '^ *+' conftest.er1 >conftest.err
3773
  rm -f conftest.er1
3774
  cat conftest.err >&5
3775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776
  (exit $ac_status); } &&
3777
         { ac_try='test -z "$ac_c_werror_flag"
3778
                         || test ! -s conftest.err'
3779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780
  (eval $ac_try) 2>&5
3781
  ac_status=$?
3782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783
  (exit $ac_status); }; } &&
3784
         { ac_try='test -s conftest.$ac_objext'
3785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786
  (eval $ac_try) 2>&5
3787
  ac_status=$?
3788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789
  (exit $ac_status); }; }; then
3790
  ac_cv_prog_cc_stdc=$ac_arg
3791
break
3792
else
3793
  echo "$as_me: failed program was:" >&5
3794
sed 's/^/| /' conftest.$ac_ext >&5
3795
 
3796
fi
3797
rm -f conftest.err conftest.$ac_objext
3798
done
3799
rm -f conftest.$ac_ext conftest.$ac_objext
3800
CC=$ac_save_CC
3801
 
3802
fi
3803
 
3804
case "x$ac_cv_prog_cc_stdc" in
3805
  x|xno)
3806
    echo "$as_me:$LINENO: result: none needed" >&5
3807
echo "${ECHO_T}none needed" >&6 ;;
3808
  *)
3809
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3810
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3811
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3812
esac
3813
 
3814
# Some people use a C++ compiler to compile C.  Since we use `exit',
3815
# in C++ we need to declare it.  In case someone uses the same compiler
3816
# for both compiling C and C++ we need to have the C++ compiler decide
3817
# the declaration of exit, since it's the most demanding environment.
3818
cat >conftest.$ac_ext <<_ACEOF
3819
#ifndef __cplusplus
3820
  choke me
3821
#endif
3822
_ACEOF
3823
rm -f conftest.$ac_objext
3824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3825
  (eval $ac_compile) 2>conftest.er1
3826
  ac_status=$?
3827
  grep -v '^ *+' conftest.er1 >conftest.err
3828
  rm -f conftest.er1
3829
  cat conftest.err >&5
3830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831
  (exit $ac_status); } &&
3832
         { ac_try='test -z "$ac_c_werror_flag"
3833
                         || test ! -s conftest.err'
3834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835
  (eval $ac_try) 2>&5
3836
  ac_status=$?
3837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
  (exit $ac_status); }; } &&
3839
         { ac_try='test -s conftest.$ac_objext'
3840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841
  (eval $ac_try) 2>&5
3842
  ac_status=$?
3843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844
  (exit $ac_status); }; }; then
3845
  for ac_declaration in \
3846
   '' \
3847
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3848
   'extern "C" void std::exit (int); using std::exit;' \
3849
   'extern "C" void exit (int) throw ();' \
3850
   'extern "C" void exit (int);' \
3851
   'void exit (int);'
3852
do
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
$ac_declaration
3860
#include 
3861
int
3862
main ()
3863
{
3864
exit (42);
3865
  ;
3866
  return 0;
3867
}
3868
_ACEOF
3869
rm -f conftest.$ac_objext
3870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871
  (eval $ac_compile) 2>conftest.er1
3872
  ac_status=$?
3873
  grep -v '^ *+' conftest.er1 >conftest.err
3874
  rm -f conftest.er1
3875
  cat conftest.err >&5
3876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877
  (exit $ac_status); } &&
3878
         { ac_try='test -z "$ac_c_werror_flag"
3879
                         || test ! -s conftest.err'
3880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881
  (eval $ac_try) 2>&5
3882
  ac_status=$?
3883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884
  (exit $ac_status); }; } &&
3885
         { ac_try='test -s conftest.$ac_objext'
3886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887
  (eval $ac_try) 2>&5
3888
  ac_status=$?
3889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890
  (exit $ac_status); }; }; then
3891
  :
3892
else
3893
  echo "$as_me: failed program was:" >&5
3894
sed 's/^/| /' conftest.$ac_ext >&5
3895
 
3896
continue
3897
fi
3898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3899
  cat >conftest.$ac_ext <<_ACEOF
3900
/* confdefs.h.  */
3901
_ACEOF
3902
cat confdefs.h >>conftest.$ac_ext
3903
cat >>conftest.$ac_ext <<_ACEOF
3904
/* end confdefs.h.  */
3905
$ac_declaration
3906
int
3907
main ()
3908
{
3909
exit (42);
3910
  ;
3911
  return 0;
3912
}
3913
_ACEOF
3914
rm -f conftest.$ac_objext
3915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916
  (eval $ac_compile) 2>conftest.er1
3917
  ac_status=$?
3918
  grep -v '^ *+' conftest.er1 >conftest.err
3919
  rm -f conftest.er1
3920
  cat conftest.err >&5
3921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922
  (exit $ac_status); } &&
3923
         { ac_try='test -z "$ac_c_werror_flag"
3924
                         || test ! -s conftest.err'
3925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926
  (eval $ac_try) 2>&5
3927
  ac_status=$?
3928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929
  (exit $ac_status); }; } &&
3930
         { ac_try='test -s conftest.$ac_objext'
3931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932
  (eval $ac_try) 2>&5
3933
  ac_status=$?
3934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
  (exit $ac_status); }; }; then
3936
  break
3937
else
3938
  echo "$as_me: failed program was:" >&5
3939
sed 's/^/| /' conftest.$ac_ext >&5
3940
 
3941
fi
3942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943
done
3944
rm -f conftest*
3945
if test -n "$ac_declaration"; then
3946
  echo '#ifdef __cplusplus' >>confdefs.h
3947
  echo $ac_declaration      >>confdefs.h
3948
  echo '#endif'             >>confdefs.h
3949
fi
3950
 
3951
else
3952
  echo "$as_me: failed program was:" >&5
3953
sed 's/^/| /' conftest.$ac_ext >&5
3954
 
3955
fi
3956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3957
ac_ext=c
3958
ac_cpp='$CPP $CPPFLAGS'
3959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962
 
3963
 
3964
cat >>confdefs.h <<\_ACEOF
3965
#define _GNU_SOURCE 1
3966
_ACEOF
3967
 
3968
 
3969
 
3970
if test -n "$ac_tool_prefix"; then
3971
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3972
set dummy ${ac_tool_prefix}ar; ac_word=$2
3973
echo "$as_me:$LINENO: checking for $ac_word" >&5
3974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975
if test "${ac_cv_prog_AR+set}" = set; then
3976
  echo $ECHO_N "(cached) $ECHO_C" >&6
3977
else
3978
  if test -n "$AR"; then
3979
  ac_cv_prog_AR="$AR" # Let the user override the test.
3980
else
3981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982
for as_dir in $PATH
3983
do
3984
  IFS=$as_save_IFS
3985
  test -z "$as_dir" && as_dir=.
3986
  for ac_exec_ext in '' $ac_executable_extensions; do
3987
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988
    ac_cv_prog_AR="${ac_tool_prefix}ar"
3989
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990
    break 2
3991
  fi
3992
done
3993
done
3994
 
3995
fi
3996
fi
3997
AR=$ac_cv_prog_AR
3998
if test -n "$AR"; then
3999
  echo "$as_me:$LINENO: result: $AR" >&5
4000
echo "${ECHO_T}$AR" >&6
4001
else
4002
  echo "$as_me:$LINENO: result: no" >&5
4003
echo "${ECHO_T}no" >&6
4004
fi
4005
 
4006
fi
4007
if test -z "$ac_cv_prog_AR"; then
4008
  ac_ct_AR=$AR
4009
  # Extract the first word of "ar", so it can be a program name with args.
4010
set dummy ar; ac_word=$2
4011
echo "$as_me:$LINENO: checking for $ac_word" >&5
4012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4014
  echo $ECHO_N "(cached) $ECHO_C" >&6
4015
else
4016
  if test -n "$ac_ct_AR"; then
4017
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4018
else
4019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020
for as_dir in $PATH
4021
do
4022
  IFS=$as_save_IFS
4023
  test -z "$as_dir" && as_dir=.
4024
  for ac_exec_ext in '' $ac_executable_extensions; do
4025
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026
    ac_cv_prog_ac_ct_AR="ar"
4027
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028
    break 2
4029
  fi
4030
done
4031
done
4032
 
4033
fi
4034
fi
4035
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4036
if test -n "$ac_ct_AR"; then
4037
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4038
echo "${ECHO_T}$ac_ct_AR" >&6
4039
else
4040
  echo "$as_me:$LINENO: result: no" >&5
4041
echo "${ECHO_T}no" >&6
4042
fi
4043
 
4044
  AR=$ac_ct_AR
4045
else
4046
  AR="$ac_cv_prog_AR"
4047
fi
4048
 
4049
if test -n "$ac_tool_prefix"; then
4050
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4051
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4052
echo "$as_me:$LINENO: checking for $ac_word" >&5
4053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054
if test "${ac_cv_prog_RANLIB+set}" = set; then
4055
  echo $ECHO_N "(cached) $ECHO_C" >&6
4056
else
4057
  if test -n "$RANLIB"; then
4058
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4059
else
4060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061
for as_dir in $PATH
4062
do
4063
  IFS=$as_save_IFS
4064
  test -z "$as_dir" && as_dir=.
4065
  for ac_exec_ext in '' $ac_executable_extensions; do
4066
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4068
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069
    break 2
4070
  fi
4071
done
4072
done
4073
 
4074
fi
4075
fi
4076
RANLIB=$ac_cv_prog_RANLIB
4077
if test -n "$RANLIB"; then
4078
  echo "$as_me:$LINENO: result: $RANLIB" >&5
4079
echo "${ECHO_T}$RANLIB" >&6
4080
else
4081
  echo "$as_me:$LINENO: result: no" >&5
4082
echo "${ECHO_T}no" >&6
4083
fi
4084
 
4085
fi
4086
if test -z "$ac_cv_prog_RANLIB"; then
4087
  ac_ct_RANLIB=$RANLIB
4088
  # Extract the first word of "ranlib", so it can be a program name with args.
4089
set dummy ranlib; ac_word=$2
4090
echo "$as_me:$LINENO: checking for $ac_word" >&5
4091
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4093
  echo $ECHO_N "(cached) $ECHO_C" >&6
4094
else
4095
  if test -n "$ac_ct_RANLIB"; then
4096
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4097
else
4098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099
for as_dir in $PATH
4100
do
4101
  IFS=$as_save_IFS
4102
  test -z "$as_dir" && as_dir=.
4103
  for ac_exec_ext in '' $ac_executable_extensions; do
4104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4106
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107
    break 2
4108
  fi
4109
done
4110
done
4111
 
4112
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4113
fi
4114
fi
4115
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4116
if test -n "$ac_ct_RANLIB"; then
4117
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4118
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4119
else
4120
  echo "$as_me:$LINENO: result: no" >&5
4121
echo "${ECHO_T}no" >&6
4122
fi
4123
 
4124
  RANLIB=$ac_ct_RANLIB
4125
else
4126
  RANLIB="$ac_cv_prog_RANLIB"
4127
fi
4128
 
4129
 
4130
# Check whether --enable-shared or --disable-shared was given.
4131
if test "${enable_shared+set}" = set; then
4132
  enableval="$enable_shared"
4133
  p=${PACKAGE-default}
4134
    case $enableval in
4135
    yes) enable_shared=yes ;;
4136
    no) enable_shared=no ;;
4137
    *)
4138
      enable_shared=no
4139
      # Look at the argument we got.  We use all the common list separators.
4140
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4141
      for pkg in $enableval; do
4142
        IFS="$lt_save_ifs"
4143
        if test "X$pkg" = "X$p"; then
4144
          enable_shared=yes
4145
        fi
4146
      done
4147
      IFS="$lt_save_ifs"
4148
      ;;
4149
    esac
4150
else
4151
  enable_shared=no
4152
fi;
4153
 
4154
 
4155
 
4156
 
4157
 
4158
 
4159
 
4160
 
4161
 
4162
 
4163
 
4164
macro_version='2.1a'
4165
macro_revision='1.2435'
4166
 
4167
 
4168
 
4169
 
4170
 
4171
 
4172
 
4173
 
4174
 
4175
 
4176
 
4177
 
4178
ltmain="$ac_aux_dir/ltmain.sh"
4179
 
4180
# Set options
4181
 
4182
enable_dlopen=no
4183
 
4184
 
4185
enable_win32_dll=no
4186
 
4187
 
4188
 
4189
# Check whether --enable-static or --disable-static was given.
4190
if test "${enable_static+set}" = set; then
4191
  enableval="$enable_static"
4192
  p=${PACKAGE-default}
4193
    case $enableval in
4194
    yes) enable_static=yes ;;
4195
    no) enable_static=no ;;
4196
    *)
4197
     enable_static=no
4198
      # Look at the argument we got.  We use all the common list separators.
4199
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4200
      for pkg in $enableval; do
4201
        IFS="$lt_save_ifs"
4202
        if test "X$pkg" = "X$p"; then
4203
          enable_static=yes
4204
        fi
4205
      done
4206
      IFS="$lt_save_ifs"
4207
      ;;
4208
    esac
4209
else
4210
  enable_static=yes
4211
fi;
4212
 
4213
 
4214
 
4215
 
4216
 
4217
 
4218
 
4219
 
4220
 
4221
# Check whether --with-pic or --without-pic was given.
4222
if test "${with_pic+set}" = set; then
4223
  withval="$with_pic"
4224
  pic_mode="$withval"
4225
else
4226
  pic_mode=default
4227
fi;
4228
 
4229
test -z "$pic_mode" && pic_mode=default
4230
 
4231
 
4232
 
4233
 
4234
 
4235
 
4236
 
4237
# Check whether --enable-fast-install or --disable-fast-install was given.
4238
if test "${enable_fast_install+set}" = set; then
4239
  enableval="$enable_fast_install"
4240
  p=${PACKAGE-default}
4241
    case $enableval in
4242
    yes) enable_fast_install=yes ;;
4243
    no) enable_fast_install=no ;;
4244
    *)
4245
      enable_fast_install=no
4246
      # Look at the argument we got.  We use all the common list separators.
4247
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4248
      for pkg in $enableval; do
4249
        IFS="$lt_save_ifs"
4250
        if test "X$pkg" = "X$p"; then
4251
          enable_fast_install=yes
4252
        fi
4253
      done
4254
      IFS="$lt_save_ifs"
4255
      ;;
4256
    esac
4257
else
4258
  enable_fast_install=yes
4259
fi;
4260
 
4261
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4269
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4270
if test "${lt_cv_path_SED+set}" = set; then
4271
  echo $ECHO_N "(cached) $ECHO_C" >&6
4272
else
4273
  # Loop through the user's path and test for sed and gsed.
4274
# Then use that list of sed's as ones to test for truncation.
4275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276
for as_dir in $PATH
4277
do
4278
  IFS=$as_save_IFS
4279
  test -z "$as_dir" && as_dir=.
4280
  for lt_ac_prog in sed gsed; do
4281
    for ac_exec_ext in '' $ac_executable_extensions; do
4282
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4283
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4284
      fi
4285
    done
4286
  done
4287
done
4288
IFS=$as_save_IFS
4289
lt_ac_max=0
4290
lt_ac_count=0
4291
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4292
# along with /bin/sed that truncates output.
4293
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4294
  test ! -f $lt_ac_sed && continue
4295
  cat /dev/null > conftest.in
4296
  lt_ac_count=0
4297
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4298
  # Check for GNU sed and select it if it is found.
4299
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4300
    lt_cv_path_SED=$lt_ac_sed
4301
    break
4302
  fi
4303
  while true; do
4304
    cat conftest.in conftest.in >conftest.tmp
4305
    mv conftest.tmp conftest.in
4306
    cp conftest.in conftest.nl
4307
    echo >>conftest.nl
4308
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4309
    cmp -s conftest.out conftest.nl || break
4310
    # 10000 chars as input seems more than enough
4311
    test $lt_ac_count -gt 10 && break
4312
    lt_ac_count=`expr $lt_ac_count + 1`
4313
    if test $lt_ac_count -gt $lt_ac_max; then
4314
      lt_ac_max=$lt_ac_count
4315
      lt_cv_path_SED=$lt_ac_sed
4316
    fi
4317
  done
4318
done
4319
 
4320
fi
4321
 
4322
SED=$lt_cv_path_SED
4323
 
4324
echo "$as_me:$LINENO: result: $SED" >&5
4325
echo "${ECHO_T}$SED" >&6
4326
 
4327
test -z "$SED" && SED=sed
4328
Xsed="$SED -e 1s/^X//"
4329
 
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
 
4337
 
4338
 
4339
 
4340
echo "$as_me:$LINENO: checking for egrep" >&5
4341
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4342
if test "${ac_cv_prog_egrep+set}" = set; then
4343
  echo $ECHO_N "(cached) $ECHO_C" >&6
4344
else
4345
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4346
    then ac_cv_prog_egrep='grep -E'
4347
    else ac_cv_prog_egrep='egrep'
4348
    fi
4349
fi
4350
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4351
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4352
 EGREP=$ac_cv_prog_egrep
4353
 
4354
 
4355
echo "$as_me:$LINENO: checking for fgrep" >&5
4356
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4357
if test "${ac_cv_prog_fgrep+set}" = set; then
4358
  echo $ECHO_N "(cached) $ECHO_C" >&6
4359
else
4360
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4361
    then ac_cv_prog_fgrep='grep -F'
4362
    else ac_cv_prog_fgrep='fgrep'
4363
    fi
4364
fi
4365
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4366
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4367
 FGREP=$ac_cv_prog_fgrep
4368
 
4369
 
4370
test -z "$GREP" && GREP=grep
4371
 
4372
 
4373
 
4374
 
4375
 
4376
 
4377
 
4378
 
4379
 
4380
 
4381
 
4382
 
4383
 
4384
 
4385
 
4386
 
4387
 
4388
 
4389
 
4390
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4391
if test "${with_gnu_ld+set}" = set; then
4392
  withval="$with_gnu_ld"
4393
  test "$withval" = no || with_gnu_ld=yes
4394
else
4395
  with_gnu_ld=no
4396
fi;
4397
ac_prog=ld
4398
if test "$GCC" = yes; then
4399
  # Check if gcc -print-prog-name=ld gives a path.
4400
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4401
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4402
  case $host in
4403
  *-*-mingw*)
4404
    # gcc leaves a trailing carriage return which upsets mingw
4405
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4406
  *)
4407
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4408
  esac
4409
  case $ac_prog in
4410
    # Accept absolute paths.
4411
    [\\/]* | ?:[\\/]*)
4412
      re_direlt='/[^/][^/]*/\.\./'
4413
      # Canonicalize the pathname of ld
4414
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4415
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4416
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4417
      done
4418
      test -z "$LD" && LD="$ac_prog"
4419
      ;;
4420
  "")
4421
    # If it fails, then pretend we aren't using GCC.
4422
    ac_prog=ld
4423
    ;;
4424
  *)
4425
    # If it is relative, then search for the first ld in PATH.
4426
    with_gnu_ld=unknown
4427
    ;;
4428
  esac
4429
elif test "$with_gnu_ld" = yes; then
4430
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4431
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4432
else
4433
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4434
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4435
fi
4436
if test "${lt_cv_path_LD+set}" = set; then
4437
  echo $ECHO_N "(cached) $ECHO_C" >&6
4438
else
4439
  if test -z "$LD"; then
4440
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4441
  for ac_dir in $PATH; do
4442
    IFS="$lt_save_ifs"
4443
    test -z "$ac_dir" && ac_dir=.
4444
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4445
      lt_cv_path_LD="$ac_dir/$ac_prog"
4446
      # Check to see if the program is GNU ld.  I'd rather use --version,
4447
      # but apparently some variants of GNU ld only accept -v.
4448
      # Break only if it was the GNU/non-GNU ld that we prefer.
4449
      case `"$lt_cv_path_LD" -v 2>&1 
4450
      *GNU* | *'with BFD'*)
4451
        test "$with_gnu_ld" != no && break
4452
        ;;
4453
      *)
4454
        test "$with_gnu_ld" != yes && break
4455
        ;;
4456
      esac
4457
    fi
4458
  done
4459
  IFS="$lt_save_ifs"
4460
else
4461
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4462
fi
4463
fi
4464
 
4465
LD="$lt_cv_path_LD"
4466
if test -n "$LD"; then
4467
  echo "$as_me:$LINENO: result: $LD" >&5
4468
echo "${ECHO_T}$LD" >&6
4469
else
4470
  echo "$as_me:$LINENO: result: no" >&5
4471
echo "${ECHO_T}no" >&6
4472
fi
4473
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4474
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4475
   { (exit 1); exit 1; }; }
4476
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4477
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4478
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4479
  echo $ECHO_N "(cached) $ECHO_C" >&6
4480
else
4481
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482
case `$LD -v 2>&1 
4483
*GNU* | *'with BFD'*)
4484
  lt_cv_prog_gnu_ld=yes
4485
  ;;
4486
*)
4487
  lt_cv_prog_gnu_ld=no
4488
  ;;
4489
esac
4490
fi
4491
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4492
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4493
with_gnu_ld=$lt_cv_prog_gnu_ld
4494
 
4495
 
4496
 
4497
 
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4505
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4506
if test "${lt_cv_path_NM+set}" = set; then
4507
  echo $ECHO_N "(cached) $ECHO_C" >&6
4508
else
4509
  if test -n "$NM"; then
4510
  # Let the user override the test.
4511
  lt_cv_path_NM="$NM"
4512
else
4513
  lt_nm_to_check="${ac_tool_prefix}nm"
4514
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4515
    lt_nm_to_check="$lt_nm_to_check nm"
4516
  fi
4517
  for lt_tmp_nm in $lt_nm_to_check; do
4518
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4520
      IFS="$lt_save_ifs"
4521
      test -z "$ac_dir" && ac_dir=.
4522
      tmp_nm="$ac_dir/$lt_tmp_nm"
4523
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4524
        # Check to see if the nm accepts a BSD-compat flag.
4525
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4526
        #   nm: unknown option "B" ignored
4527
        # Tru64's nm complains that /dev/null is an invalid object file
4528
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4529
        */dev/null* | *'Invalid file or object type'*)
4530
          lt_cv_path_NM="$tmp_nm -B"
4531
          break
4532
          ;;
4533
        *)
4534
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4535
          */dev/null*)
4536
            lt_cv_path_NM="$tmp_nm -p"
4537
            break
4538
            ;;
4539
          *)
4540
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4541
            continue # so that we can try to find one that supports BSD flags
4542
            ;;
4543
          esac
4544
          ;;
4545
        esac
4546
      fi
4547
    done
4548
    IFS="$lt_save_ifs"
4549
  done
4550
  : ${lt_cv_path_NM=no}
4551
fi
4552
fi
4553
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4554
echo "${ECHO_T}$lt_cv_path_NM" >&6
4555
if test "$lt_cv_path_NM" != "no"; then
4556
  NM="$lt_cv_path_NM"
4557
else
4558
  # Didn't find any BSD compatible name lister, look for dumpbin.
4559
  if test -n "$ac_tool_prefix"; then
4560
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4561
  do
4562
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4563
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4564
echo "$as_me:$LINENO: checking for $ac_word" >&5
4565
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4567
  echo $ECHO_N "(cached) $ECHO_C" >&6
4568
else
4569
  if test -n "$DUMPBIN"; then
4570
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4571
else
4572
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573
for as_dir in $PATH
4574
do
4575
  IFS=$as_save_IFS
4576
  test -z "$as_dir" && as_dir=.
4577
  for ac_exec_ext in '' $ac_executable_extensions; do
4578
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4580
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581
    break 2
4582
  fi
4583
done
4584
done
4585
 
4586
fi
4587
fi
4588
DUMPBIN=$ac_cv_prog_DUMPBIN
4589
if test -n "$DUMPBIN"; then
4590
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4591
echo "${ECHO_T}$DUMPBIN" >&6
4592
else
4593
  echo "$as_me:$LINENO: result: no" >&5
4594
echo "${ECHO_T}no" >&6
4595
fi
4596
 
4597
    test -n "$DUMPBIN" && break
4598
  done
4599
fi
4600
if test -z "$DUMPBIN"; then
4601
  ac_ct_DUMPBIN=$DUMPBIN
4602
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4603
do
4604
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4605
set dummy $ac_prog; ac_word=$2
4606
echo "$as_me:$LINENO: checking for $ac_word" >&5
4607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4609
  echo $ECHO_N "(cached) $ECHO_C" >&6
4610
else
4611
  if test -n "$ac_ct_DUMPBIN"; then
4612
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4613
else
4614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615
for as_dir in $PATH
4616
do
4617
  IFS=$as_save_IFS
4618
  test -z "$as_dir" && as_dir=.
4619
  for ac_exec_ext in '' $ac_executable_extensions; do
4620
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623
    break 2
4624
  fi
4625
done
4626
done
4627
 
4628
fi
4629
fi
4630
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4631
if test -n "$ac_ct_DUMPBIN"; then
4632
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4633
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4634
else
4635
  echo "$as_me:$LINENO: result: no" >&5
4636
echo "${ECHO_T}no" >&6
4637
fi
4638
 
4639
  test -n "$ac_ct_DUMPBIN" && break
4640
done
4641
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4642
 
4643
  DUMPBIN=$ac_ct_DUMPBIN
4644
fi
4645
 
4646
 
4647
  if test "$DUMPBIN" != ":"; then
4648
    NM="$DUMPBIN"
4649
  fi
4650
fi
4651
test -z "$NM" && NM=nm
4652
 
4653
 
4654
 
4655
 
4656
 
4657
 
4658
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4659
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4660
if test "${lt_cv_nm_interface+set}" = set; then
4661
  echo $ECHO_N "(cached) $ECHO_C" >&6
4662
else
4663
  lt_cv_nm_interface="BSD nm"
4664
  echo "int some_variable = 0;" > conftest.$ac_ext
4665
  (eval echo "\"\$as_me:4665: $ac_compile\"" >&5)
4666
  (eval "$ac_compile" 2>conftest.err)
4667
  cat conftest.err >&5
4668
  (eval echo "\"\$as_me:4668: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670
  cat conftest.err >&5
4671
  (eval echo "\"\$as_me:4671: output\"" >&5)
4672
  cat conftest.out >&5
4673
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674
    lt_cv_nm_interface="MS dumpbin"
4675
  fi
4676
  rm -f conftest*
4677
fi
4678
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4679
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4680
 
4681
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4683
LN_S=$as_ln_s
4684
if test "$LN_S" = "ln -s"; then
4685
  echo "$as_me:$LINENO: result: yes" >&5
4686
echo "${ECHO_T}yes" >&6
4687
else
4688
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689
echo "${ECHO_T}no, using $LN_S" >&6
4690
fi
4691
 
4692
# find the maximum length of command line arguments
4693
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4694
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4695
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4696
  echo $ECHO_N "(cached) $ECHO_C" >&6
4697
else
4698
    i=0
4699
  teststring="ABCD"
4700
 
4701
  case $build_os in
4702
  msdosdjgpp*)
4703
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4704
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4705
    # during glob expansion).  Even if it were fixed, the result of this
4706
    # check would be larger than it should be.
4707
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4708
    ;;
4709
 
4710
  gnu*)
4711
    # Under GNU Hurd, this test is not required because there is
4712
    # no limit to the length of command line arguments.
4713
    # Libtool will interpret -1 as no limit whatsoever
4714
    lt_cv_sys_max_cmd_len=-1;
4715
    ;;
4716
 
4717
  cygwin* | mingw*)
4718
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4719
    # about 5 minutes as the teststring grows exponentially.
4720
    # Worse, since 9x/ME are not pre-emptively multitasking,
4721
    # you end up with a "frozen" computer, even though with patience
4722
    # the test eventually succeeds (with a max line length of 256k).
4723
    # Instead, let's just punt: use the minimum linelength reported by
4724
    # all of the supported platforms: 8192 (on NT/2K/XP).
4725
    lt_cv_sys_max_cmd_len=8192;
4726
    ;;
4727
 
4728
  amigaos*)
4729
    # On AmigaOS with pdksh, this test takes hours, literally.
4730
    # So we just punt and use a minimum line length of 8192.
4731
    lt_cv_sys_max_cmd_len=8192;
4732
    ;;
4733
 
4734
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735
    # This has been around since 386BSD, at least.  Likely further.
4736
    if test -x /sbin/sysctl; then
4737
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738
    elif test -x /usr/sbin/sysctl; then
4739
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4740
    else
4741
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4742
    fi
4743
    # And add a safety zone
4744
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746
    ;;
4747
 
4748
  interix*)
4749
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750
    lt_cv_sys_max_cmd_len=196608
4751
    ;;
4752
 
4753
  osf*)
4754
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4755
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4756
    # nice to cause kernel panics so lets avoid the loop below.
4757
    # First set a reasonable default.
4758
    lt_cv_sys_max_cmd_len=16384
4759
    #
4760
    if test -x /sbin/sysconfig; then
4761
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4762
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4763
      esac
4764
    fi
4765
    ;;
4766
  sco3.2v5*)
4767
    lt_cv_sys_max_cmd_len=102400
4768
    ;;
4769
  sysv5* | sco5v6* | sysv4.2uw2*)
4770
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4771
    if test -n "$kargmax"; then
4772
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4773
    else
4774
      lt_cv_sys_max_cmd_len=32768
4775
    fi
4776
    ;;
4777
  *)
4778
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4779
    if test -n $lt_cv_sys_max_cmd_len; then
4780
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4781
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4782
    else
4783
      # Make teststring a little bigger before we do anything with it.
4784
      # a 1K string should be a reasonable start.
4785
      for i in 1 2 3 4 5 6 7 8 ; do
4786
        teststring=$teststring$teststring
4787
      done
4788
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4789
      # If test is not a shell built-in, we'll probably end up computing a
4790
      # maximum length that is only half of the actual maximum length, but
4791
      # we can't tell.
4792
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4793
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4794
              test $i != 17 # 1/2 MB should be enough
4795
      do
4796
        i=`expr $i + 1`
4797
        teststring=$teststring$teststring
4798
      done
4799
      # Only check the string length outside the loop.
4800
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4801
      teststring=
4802
      # Add a significant safety factor because C++ compilers can tack on
4803
      # massive amounts of additional arguments before passing them to the
4804
      # linker.  It appears as though 1/2 is a usable value.
4805
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4806
    fi
4807
    ;;
4808
  esac
4809
 
4810
fi
4811
 
4812
if test -n $lt_cv_sys_max_cmd_len ; then
4813
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4814
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4815
else
4816
  echo "$as_me:$LINENO: result: none" >&5
4817
echo "${ECHO_T}none" >&6
4818
fi
4819
max_cmd_len=$lt_cv_sys_max_cmd_len
4820
 
4821
 
4822
 
4823
 
4824
 
4825
 
4826
 
4827
: ${CP="cp -f"}
4828
: ${MV="mv -f"}
4829
: ${RM="rm -f"}
4830
 
4831
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4832
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4833
# Try some XSI features
4834
xsi_shell=no
4835
( _lt_dummy="a/b/c"
4836
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4837
      = c,a/b,, ) >/dev/null 2>&1 \
4838
  && xsi_shell=yes
4839
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4840
echo "${ECHO_T}$xsi_shell" >&6
4841
 
4842
 
4843
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4844
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4845
lt_shell_append=no
4846
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4847
    >/dev/null 2>&1 \
4848
  && lt_shell_append=yes
4849
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4850
echo "${ECHO_T}$lt_shell_append" >&6
4851
 
4852
 
4853
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4854
  lt_unset=unset
4855
else
4856
  lt_unset=false
4857
fi
4858
 
4859
 
4860
 
4861
 
4862
 
4863
# test EBCDIC or ASCII
4864
case `echo X|tr X '\101'` in
4865
 A) # ASCII based system
4866
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4867
  lt_SP2NL='tr \040 \012'
4868
  lt_NL2SP='tr \015\012 \040\040'
4869
  ;;
4870
 *) # EBCDIC based system
4871
  lt_SP2NL='tr \100 \n'
4872
  lt_NL2SP='tr \r\n \100\100'
4873
  ;;
4874
esac
4875
 
4876
 
4877
 
4878
 
4879
 
4880
 
4881
 
4882
 
4883
 
4884
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4885
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4886
if test "${lt_cv_ld_reload_flag+set}" = set; then
4887
  echo $ECHO_N "(cached) $ECHO_C" >&6
4888
else
4889
  lt_cv_ld_reload_flag='-r'
4890
fi
4891
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4892
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4893
reload_flag=$lt_cv_ld_reload_flag
4894
case $reload_flag in
4895
"" | " "*) ;;
4896
*) reload_flag=" $reload_flag" ;;
4897
esac
4898
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4899
case $host_os in
4900
  darwin*)
4901
    if test "$GCC" = yes; then
4902
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4903
    else
4904
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905
    fi
4906
    ;;
4907
esac
4908
 
4909
 
4910
 
4911
 
4912
 
4913
 
4914
 
4915
 
4916
 
4917
 
4918
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4919
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4920
if test "${lt_cv_deplibs_check_method+set}" = set; then
4921
  echo $ECHO_N "(cached) $ECHO_C" >&6
4922
else
4923
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4924
lt_cv_file_magic_test_file=
4925
lt_cv_deplibs_check_method='unknown'
4926
# Need to set the preceding variable on all platforms that support
4927
# interlibrary dependencies.
4928
# 'none' -- dependencies not supported.
4929
# `unknown' -- same as none, but documents that we really don't know.
4930
# 'pass_all' -- all dependencies passed with no checks.
4931
# 'test_compile' -- check by making test program.
4932
# 'file_magic [[regex]]' -- check by looking for files in library path
4933
# which responds to the $file_magic_cmd with a given extended regex.
4934
# If you have `file' or equivalent on your system and you're not sure
4935
# whether `pass_all' will *always* work, you probably want this one.
4936
 
4937
case $host_os in
4938
aix4* | aix5*)
4939
  lt_cv_deplibs_check_method=pass_all
4940
  ;;
4941
 
4942
beos*)
4943
  lt_cv_deplibs_check_method=pass_all
4944
  ;;
4945
 
4946
bsdi[45]*)
4947
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4948
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4949
  lt_cv_file_magic_test_file=/shlib/libc.so
4950
  ;;
4951
 
4952
cygwin*)
4953
  # func_win32_libid is a shell function defined in ltmain.sh
4954
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955
  lt_cv_file_magic_cmd='func_win32_libid'
4956
  ;;
4957
 
4958
mingw* | pw32*)
4959
  # Base MSYS/MinGW do not provide the 'file' command needed by
4960
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4961
  # unless we find 'file', for example because we are cross-compiling.
4962
  if ( file / ) >/dev/null 2>&1; then
4963
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4964
    lt_cv_file_magic_cmd='func_win32_libid'
4965
  else
4966
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4967
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4968
  fi
4969
  ;;
4970
 
4971
darwin* | rhapsody*)
4972
  lt_cv_deplibs_check_method=pass_all
4973
  ;;
4974
 
4975
freebsd* | dragonfly*)
4976
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4977
    case $host_cpu in
4978
    i*86 )
4979
      # Not sure whether the presence of OpenBSD here was a mistake.
4980
      # Let's accept both of them until this is cleared up.
4981
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4982
      lt_cv_file_magic_cmd=/usr/bin/file
4983
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4984
      ;;
4985
    esac
4986
  else
4987
    lt_cv_deplibs_check_method=pass_all
4988
  fi
4989
  ;;
4990
 
4991
gnu*)
4992
  lt_cv_deplibs_check_method=pass_all
4993
  ;;
4994
 
4995
hpux10.20* | hpux11*)
4996
  lt_cv_file_magic_cmd=/usr/bin/file
4997
  case $host_cpu in
4998
  ia64*)
4999
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5000
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5001
    ;;
5002
  hppa*64*)
5003
    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]'
5004
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5005
    ;;
5006
  *)
5007
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5008
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5009
    ;;
5010
  esac
5011
  ;;
5012
 
5013
interix[3-9]*)
5014
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5015
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5016
  ;;
5017
 
5018
irix5* | irix6* | nonstopux*)
5019
  case $LD in
5020
  *-32|*"-32 ") libmagic=32-bit;;
5021
  *-n32|*"-n32 ") libmagic=N32;;
5022
  *-64|*"-64 ") libmagic=64-bit;;
5023
  *) libmagic=never-match;;
5024
  esac
5025
  lt_cv_deplibs_check_method=pass_all
5026
  ;;
5027
 
5028
# This must be Linux ELF.
5029
linux* | k*bsd*-gnu)
5030
  lt_cv_deplibs_check_method=pass_all
5031
  ;;
5032
 
5033
netbsd*)
5034
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5035
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5036
  else
5037
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5038
  fi
5039
  ;;
5040
 
5041
newos6*)
5042
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5043
  lt_cv_file_magic_cmd=/usr/bin/file
5044
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5045
  ;;
5046
 
5047
*nto* | *qnx*)
5048
  lt_cv_deplibs_check_method=pass_all
5049
  ;;
5050
 
5051
openbsd*)
5052
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5053
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5054
  else
5055
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5056
  fi
5057
  ;;
5058
 
5059
osf3* | osf4* | osf5*)
5060
  lt_cv_deplibs_check_method=pass_all
5061
  ;;
5062
 
5063
rdos*)
5064
  lt_cv_deplibs_check_method=pass_all
5065
  ;;
5066
 
5067
solaris*)
5068
  lt_cv_deplibs_check_method=pass_all
5069
  ;;
5070
 
5071
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072
  lt_cv_deplibs_check_method=pass_all
5073
  ;;
5074
 
5075
sysv4 | sysv4.3*)
5076
  case $host_vendor in
5077
  motorola)
5078
    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]'
5079
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5080
    ;;
5081
  ncr)
5082
    lt_cv_deplibs_check_method=pass_all
5083
    ;;
5084
  sequent)
5085
    lt_cv_file_magic_cmd='/bin/file'
5086
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5087
    ;;
5088
  sni)
5089
    lt_cv_file_magic_cmd='/bin/file'
5090
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5091
    lt_cv_file_magic_test_file=/lib/libc.so
5092
    ;;
5093
  siemens)
5094
    lt_cv_deplibs_check_method=pass_all
5095
    ;;
5096
  pc)
5097
    lt_cv_deplibs_check_method=pass_all
5098
    ;;
5099
  esac
5100
  ;;
5101
 
5102
tpf*)
5103
  lt_cv_deplibs_check_method=pass_all
5104
  ;;
5105
esac
5106
 
5107
fi
5108
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5109
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5110
file_magic_cmd=$lt_cv_file_magic_cmd
5111
deplibs_check_method=$lt_cv_deplibs_check_method
5112
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113
 
5114
 
5115
 
5116
 
5117
 
5118
 
5119
 
5120
 
5121
 
5122
 
5123
 
5124
 
5125
if test -n "$ac_tool_prefix"; then
5126
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5127
set dummy ${ac_tool_prefix}ar; ac_word=$2
5128
echo "$as_me:$LINENO: checking for $ac_word" >&5
5129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130
if test "${ac_cv_prog_AR+set}" = set; then
5131
  echo $ECHO_N "(cached) $ECHO_C" >&6
5132
else
5133
  if test -n "$AR"; then
5134
  ac_cv_prog_AR="$AR" # Let the user override the test.
5135
else
5136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137
for as_dir in $PATH
5138
do
5139
  IFS=$as_save_IFS
5140
  test -z "$as_dir" && as_dir=.
5141
  for ac_exec_ext in '' $ac_executable_extensions; do
5142
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5144
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145
    break 2
5146
  fi
5147
done
5148
done
5149
 
5150
fi
5151
fi
5152
AR=$ac_cv_prog_AR
5153
if test -n "$AR"; then
5154
  echo "$as_me:$LINENO: result: $AR" >&5
5155
echo "${ECHO_T}$AR" >&6
5156
else
5157
  echo "$as_me:$LINENO: result: no" >&5
5158
echo "${ECHO_T}no" >&6
5159
fi
5160
 
5161
fi
5162
if test -z "$ac_cv_prog_AR"; then
5163
  ac_ct_AR=$AR
5164
  # Extract the first word of "ar", so it can be a program name with args.
5165
set dummy ar; ac_word=$2
5166
echo "$as_me:$LINENO: checking for $ac_word" >&5
5167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5169
  echo $ECHO_N "(cached) $ECHO_C" >&6
5170
else
5171
  if test -n "$ac_ct_AR"; then
5172
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5173
else
5174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175
for as_dir in $PATH
5176
do
5177
  IFS=$as_save_IFS
5178
  test -z "$as_dir" && as_dir=.
5179
  for ac_exec_ext in '' $ac_executable_extensions; do
5180
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181
    ac_cv_prog_ac_ct_AR="ar"
5182
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183
    break 2
5184
  fi
5185
done
5186
done
5187
 
5188
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5189
fi
5190
fi
5191
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5192
if test -n "$ac_ct_AR"; then
5193
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5194
echo "${ECHO_T}$ac_ct_AR" >&6
5195
else
5196
  echo "$as_me:$LINENO: result: no" >&5
5197
echo "${ECHO_T}no" >&6
5198
fi
5199
 
5200
  AR=$ac_ct_AR
5201
else
5202
  AR="$ac_cv_prog_AR"
5203
fi
5204
 
5205
test -z "$AR" && AR=ar
5206
test -z "$AR_FLAGS" && AR_FLAGS=cru
5207
 
5208
 
5209
 
5210
 
5211
 
5212
 
5213
 
5214
 
5215
 
5216
 
5217
 
5218
if test -n "$ac_tool_prefix"; then
5219
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5220
set dummy ${ac_tool_prefix}strip; ac_word=$2
5221
echo "$as_me:$LINENO: checking for $ac_word" >&5
5222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223
if test "${ac_cv_prog_STRIP+set}" = set; then
5224
  echo $ECHO_N "(cached) $ECHO_C" >&6
5225
else
5226
  if test -n "$STRIP"; then
5227
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5228
else
5229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230
for as_dir in $PATH
5231
do
5232
  IFS=$as_save_IFS
5233
  test -z "$as_dir" && as_dir=.
5234
  for ac_exec_ext in '' $ac_executable_extensions; do
5235
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5237
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238
    break 2
5239
  fi
5240
done
5241
done
5242
 
5243
fi
5244
fi
5245
STRIP=$ac_cv_prog_STRIP
5246
if test -n "$STRIP"; then
5247
  echo "$as_me:$LINENO: result: $STRIP" >&5
5248
echo "${ECHO_T}$STRIP" >&6
5249
else
5250
  echo "$as_me:$LINENO: result: no" >&5
5251
echo "${ECHO_T}no" >&6
5252
fi
5253
 
5254
fi
5255
if test -z "$ac_cv_prog_STRIP"; then
5256
  ac_ct_STRIP=$STRIP
5257
  # Extract the first word of "strip", so it can be a program name with args.
5258
set dummy strip; ac_word=$2
5259
echo "$as_me:$LINENO: checking for $ac_word" >&5
5260
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5261
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5262
  echo $ECHO_N "(cached) $ECHO_C" >&6
5263
else
5264
  if test -n "$ac_ct_STRIP"; then
5265
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5266
else
5267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268
for as_dir in $PATH
5269
do
5270
  IFS=$as_save_IFS
5271
  test -z "$as_dir" && as_dir=.
5272
  for ac_exec_ext in '' $ac_executable_extensions; do
5273
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274
    ac_cv_prog_ac_ct_STRIP="strip"
5275
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276
    break 2
5277
  fi
5278
done
5279
done
5280
 
5281
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5282
fi
5283
fi
5284
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5285
if test -n "$ac_ct_STRIP"; then
5286
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5287
echo "${ECHO_T}$ac_ct_STRIP" >&6
5288
else
5289
  echo "$as_me:$LINENO: result: no" >&5
5290
echo "${ECHO_T}no" >&6
5291
fi
5292
 
5293
  STRIP=$ac_ct_STRIP
5294
else
5295
  STRIP="$ac_cv_prog_STRIP"
5296
fi
5297
 
5298
test -z "$STRIP" && STRIP=:
5299
 
5300
 
5301
 
5302
 
5303
 
5304
 
5305
if test -n "$ac_tool_prefix"; then
5306
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5307
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5308
echo "$as_me:$LINENO: checking for $ac_word" >&5
5309
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310
if test "${ac_cv_prog_RANLIB+set}" = set; then
5311
  echo $ECHO_N "(cached) $ECHO_C" >&6
5312
else
5313
  if test -n "$RANLIB"; then
5314
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5315
else
5316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317
for as_dir in $PATH
5318
do
5319
  IFS=$as_save_IFS
5320
  test -z "$as_dir" && as_dir=.
5321
  for ac_exec_ext in '' $ac_executable_extensions; do
5322
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5324
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325
    break 2
5326
  fi
5327
done
5328
done
5329
 
5330
fi
5331
fi
5332
RANLIB=$ac_cv_prog_RANLIB
5333
if test -n "$RANLIB"; then
5334
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5335
echo "${ECHO_T}$RANLIB" >&6
5336
else
5337
  echo "$as_me:$LINENO: result: no" >&5
5338
echo "${ECHO_T}no" >&6
5339
fi
5340
 
5341
fi
5342
if test -z "$ac_cv_prog_RANLIB"; then
5343
  ac_ct_RANLIB=$RANLIB
5344
  # Extract the first word of "ranlib", so it can be a program name with args.
5345
set dummy ranlib; ac_word=$2
5346
echo "$as_me:$LINENO: checking for $ac_word" >&5
5347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5349
  echo $ECHO_N "(cached) $ECHO_C" >&6
5350
else
5351
  if test -n "$ac_ct_RANLIB"; then
5352
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5353
else
5354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355
for as_dir in $PATH
5356
do
5357
  IFS=$as_save_IFS
5358
  test -z "$as_dir" && as_dir=.
5359
  for ac_exec_ext in '' $ac_executable_extensions; do
5360
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5362
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363
    break 2
5364
  fi
5365
done
5366
done
5367
 
5368
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5369
fi
5370
fi
5371
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5372
if test -n "$ac_ct_RANLIB"; then
5373
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5374
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5375
else
5376
  echo "$as_me:$LINENO: result: no" >&5
5377
echo "${ECHO_T}no" >&6
5378
fi
5379
 
5380
  RANLIB=$ac_ct_RANLIB
5381
else
5382
  RANLIB="$ac_cv_prog_RANLIB"
5383
fi
5384
 
5385
test -z "$RANLIB" && RANLIB=:
5386
 
5387
 
5388
 
5389
 
5390
 
5391
 
5392
# Determine commands to create old-style static archives.
5393
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5394
old_postinstall_cmds='chmod 644 $oldlib'
5395
old_postuninstall_cmds=
5396
 
5397
if test -n "$RANLIB"; then
5398
  case $host_os in
5399
  openbsd*)
5400
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5401
    ;;
5402
  *)
5403
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5404
    ;;
5405
  esac
5406
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5407
fi
5408
 
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
 
5421
 
5422
 
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
# If no C compiler was specified, use CC.
5443
LTCC=${LTCC-"$CC"}
5444
 
5445
# If no C compiler flags were specified, use CFLAGS.
5446
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5447
 
5448
# Allow CC to be a program name with arguments.
5449
compiler=$CC
5450
 
5451
 
5452
# Check for command to grab the raw symbol name followed by C symbol from nm.
5453
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5454
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5455
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5456
  echo $ECHO_N "(cached) $ECHO_C" >&6
5457
else
5458
 
5459
# These are sane defaults that work on at least a few old systems.
5460
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5461
 
5462
# Character class describing NM global symbol codes.
5463
symcode='[BCDEGRST]'
5464
 
5465
# Regexp to match symbols that can be accessed directly from C.
5466
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5467
 
5468
# Define system-specific variables.
5469
case $host_os in
5470
aix*)
5471
  symcode='[BCDT]'
5472
  ;;
5473
cygwin* | mingw* | pw32*)
5474
  symcode='[ABCDGISTW]'
5475
  ;;
5476
hpux*)
5477
  if test "$host_cpu" = ia64; then
5478
    symcode='[ABCDEGRST]'
5479
  fi
5480
  ;;
5481
irix* | nonstopux*)
5482
  symcode='[BCDEGRST]'
5483
  ;;
5484
osf*)
5485
  symcode='[BCDEGQRST]'
5486
  ;;
5487
solaris*)
5488
  symcode='[BDRT]'
5489
  ;;
5490
sco3.2v5*)
5491
  symcode='[DT]'
5492
  ;;
5493
sysv4.2uw2*)
5494
  symcode='[DT]'
5495
  ;;
5496
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5497
  symcode='[ABDT]'
5498
  ;;
5499
sysv4)
5500
  symcode='[DFNSTU]'
5501
  ;;
5502
esac
5503
 
5504
# If we're using GNU nm, then use its standard symbol codes.
5505
case `$NM -V 2>&1` in
5506
*GNU* | *'with BFD'*)
5507
  symcode='[ABCDGIRSTW]' ;;
5508
esac
5509
 
5510
# Transform an extracted symbol line into a proper C declaration.
5511
# Some systems (esp. on ia64) link data and code symbols differently,
5512
# so use this general approach.
5513
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5514
 
5515
# Transform an extracted symbol line into symbol name and symbol address
5516
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5517
 
5518
# Handle CRLF in mingw tool chain
5519
opt_cr=
5520
case $build_os in
5521
mingw*)
5522
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5523
  ;;
5524
esac
5525
 
5526
# Try without a prefix underscore, then with it.
5527
for ac_symprfx in "" "_"; do
5528
 
5529
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5530
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5531
 
5532
  # Write the raw and C identifiers.
5533
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5534
    # Fake it for dumpbin and say T for any non-static function
5535
    # and D for any global variable.
5536
    # Also find C++ and __fastcall symbols from MSVC++,
5537
    # which start with @ or ?.
5538
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5539
"     {last_section=section; section=\$ 3};"\
5540
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5541
"     \$ 0!~/External *\|/{next};"\
5542
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5543
"     {if(hide[section]) next};"\
5544
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5545
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5546
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5547
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5548
"     ' prfx=^$ac_symprfx"
5549
  else
5550
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5551
  fi
5552
 
5553
  # Check to see that the pipe works correctly.
5554
  pipe_works=no
5555
 
5556
  rm -f conftest*
5557
  cat > conftest.$ac_ext <<_LT_EOF
5558
#ifdef __cplusplus
5559
extern "C" {
5560
#endif
5561
char nm_test_var;
5562
void nm_test_func(void);
5563
void nm_test_func(void){}
5564
#ifdef __cplusplus
5565
}
5566
#endif
5567
int main(){nm_test_var='a';nm_test_func();return(0);}
5568
_LT_EOF
5569
 
5570
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571
  (eval $ac_compile) 2>&5
5572
  ac_status=$?
5573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574
  (exit $ac_status); }; then
5575
    # Now try to grab the symbols.
5576
    nlist=conftest.nm
5577
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5578
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5579
  ac_status=$?
5580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
  (exit $ac_status); } && test -s "$nlist"; then
5582
      # Try sorting and uniquifying the output.
5583
      if sort "$nlist" | uniq > "$nlist"T; then
5584
        mv -f "$nlist"T "$nlist"
5585
      else
5586
        rm -f "$nlist"T
5587
      fi
5588
 
5589
      # Make sure that we snagged all the symbols we need.
5590
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5591
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5592
          cat <<_LT_EOF > conftest.$ac_ext
5593
#ifdef __cplusplus
5594
extern "C" {
5595
#endif
5596
 
5597
_LT_EOF
5598
          # Now generate the symbol file.
5599
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5600
 
5601
          cat <<_LT_EOF >> conftest.$ac_ext
5602
 
5603
/* The mapping between symbol names and symbols.  */
5604
const struct {
5605
  const char *name;
5606
  void       *address;
5607
}
5608
lt__PROGRAM__LTX_preloaded_symbols[] =
5609
{
5610
  { "@PROGRAM@", (void *) 0 },
5611
_LT_EOF
5612
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5613
          cat <<\_LT_EOF >> conftest.$ac_ext
5614
  {0, (void *) 0}
5615
};
5616
 
5617
/* This works around a problem in FreeBSD linker */
5618
#ifdef FREEBSD_WORKAROUND
5619
static const void *lt_preloaded_setup() {
5620
  return lt__PROGRAM__LTX_preloaded_symbols;
5621
}
5622
#endif
5623
 
5624
#ifdef __cplusplus
5625
}
5626
#endif
5627
_LT_EOF
5628
          # Now try linking the two files.
5629
          mv conftest.$ac_objext conftstm.$ac_objext
5630
          lt_save_LIBS="$LIBS"
5631
          lt_save_CFLAGS="$CFLAGS"
5632
          LIBS="conftstm.$ac_objext"
5633
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5634
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635
  (eval $ac_link) 2>&5
5636
  ac_status=$?
5637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5639
            pipe_works=yes
5640
          fi
5641
          LIBS="$lt_save_LIBS"
5642
          CFLAGS="$lt_save_CFLAGS"
5643
        else
5644
          echo "cannot find nm_test_func in $nlist" >&5
5645
        fi
5646
      else
5647
        echo "cannot find nm_test_var in $nlist" >&5
5648
      fi
5649
    else
5650
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5651
    fi
5652
  else
5653
    echo "$progname: failed program was:" >&5
5654
    cat conftest.$ac_ext >&5
5655
  fi
5656
  rm -f conftest* conftst*
5657
 
5658
  # Do not use the global_symbol_pipe unless it works.
5659
  if test "$pipe_works" = yes; then
5660
    break
5661
  else
5662
    lt_cv_sys_global_symbol_pipe=
5663
  fi
5664
done
5665
 
5666
fi
5667
 
5668
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5669
  lt_cv_sys_global_symbol_to_cdecl=
5670
fi
5671
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5672
  echo "$as_me:$LINENO: result: failed" >&5
5673
echo "${ECHO_T}failed" >&6
5674
else
5675
  echo "$as_me:$LINENO: result: ok" >&5
5676
echo "${ECHO_T}ok" >&6
5677
fi
5678
 
5679
 
5680
 
5681
 
5682
 
5683
 
5684
 
5685
 
5686
 
5687
 
5688
 
5689
 
5690
 
5691
 
5692
 
5693
 
5694
 
5695
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5696
if test "${enable_libtool_lock+set}" = set; then
5697
  enableval="$enable_libtool_lock"
5698
 
5699
fi;
5700
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5701
 
5702
# Some flags need to be propagated to the compiler or linker for good
5703
# libtool support.
5704
case $host in
5705
ia64-*-hpux*)
5706
  # Find out which ABI we are using.
5707
  echo 'int i;' > conftest.$ac_ext
5708
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709
  (eval $ac_compile) 2>&5
5710
  ac_status=$?
5711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
  (exit $ac_status); }; then
5713
    case `/usr/bin/file conftest.$ac_objext` in
5714
      *ELF-32*)
5715
        HPUX_IA64_MODE="32"
5716
        ;;
5717
      *ELF-64*)
5718
        HPUX_IA64_MODE="64"
5719
        ;;
5720
    esac
5721
  fi
5722
  rm -rf conftest*
5723
  ;;
5724
*-*-irix6*)
5725
  # Find out which ABI we are using.
5726
  echo '#line 5726 "configure"' > conftest.$ac_ext
5727
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728
  (eval $ac_compile) 2>&5
5729
  ac_status=$?
5730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731
  (exit $ac_status); }; then
5732
    if test "$lt_cv_prog_gnu_ld" = yes; then
5733
      case `/usr/bin/file conftest.$ac_objext` in
5734
        *32-bit*)
5735
          LD="${LD-ld} -melf32bsmip"
5736
          ;;
5737
        *N32*)
5738
          LD="${LD-ld} -melf32bmipn32"
5739
          ;;
5740
        *64-bit*)
5741
          LD="${LD-ld} -melf64bmip"
5742
        ;;
5743
      esac
5744
    else
5745
      case `/usr/bin/file conftest.$ac_objext` in
5746
        *32-bit*)
5747
          LD="${LD-ld} -32"
5748
          ;;
5749
        *N32*)
5750
          LD="${LD-ld} -n32"
5751
          ;;
5752
        *64-bit*)
5753
          LD="${LD-ld} -64"
5754
          ;;
5755
      esac
5756
    fi
5757
  fi
5758
  rm -rf conftest*
5759
  ;;
5760
 
5761
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763
  # Find out which ABI we are using.
5764
  echo 'int i;' > conftest.$ac_ext
5765
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766
  (eval $ac_compile) 2>&5
5767
  ac_status=$?
5768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
  (exit $ac_status); }; then
5770
    case `/usr/bin/file conftest.o` in
5771
      *32-bit*)
5772
        case $host in
5773
          x86_64-*kfreebsd*-gnu)
5774
            LD="${LD-ld} -m elf_i386_fbsd"
5775
            ;;
5776
          x86_64-*linux*)
5777
            LD="${LD-ld} -m elf_i386"
5778
            ;;
5779
          ppc64-*linux*|powerpc64-*linux*)
5780
            LD="${LD-ld} -m elf32ppclinux"
5781
            ;;
5782
          s390x-*linux*)
5783
            LD="${LD-ld} -m elf_s390"
5784
            ;;
5785
          sparc64-*linux*)
5786
            LD="${LD-ld} -m elf32_sparc"
5787
            ;;
5788
        esac
5789
        ;;
5790
      *64-bit*)
5791
        case $host in
5792
          x86_64-*kfreebsd*-gnu)
5793
            LD="${LD-ld} -m elf_x86_64_fbsd"
5794
            ;;
5795
          x86_64-*linux*)
5796
            LD="${LD-ld} -m elf_x86_64"
5797
            ;;
5798
          ppc*-*linux*|powerpc*-*linux*)
5799
            LD="${LD-ld} -m elf64ppc"
5800
            ;;
5801
          s390*-*linux*|s390*-*tpf*)
5802
            LD="${LD-ld} -m elf64_s390"
5803
            ;;
5804
          sparc*-*linux*)
5805
            LD="${LD-ld} -m elf64_sparc"
5806
            ;;
5807
        esac
5808
        ;;
5809
    esac
5810
  fi
5811
  rm -rf conftest*
5812
  ;;
5813
 
5814
*-*-sco3.2v5*)
5815
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816
  SAVE_CFLAGS="$CFLAGS"
5817
  CFLAGS="$CFLAGS -belf"
5818
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5819
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5820
if test "${lt_cv_cc_needs_belf+set}" = set; then
5821
  echo $ECHO_N "(cached) $ECHO_C" >&6
5822
else
5823
  ac_ext=c
5824
ac_cpp='$CPP $CPPFLAGS'
5825
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
 
5829
     cat >conftest.$ac_ext <<_ACEOF
5830
/* confdefs.h.  */
5831
_ACEOF
5832
cat confdefs.h >>conftest.$ac_ext
5833
cat >>conftest.$ac_ext <<_ACEOF
5834
/* end confdefs.h.  */
5835
 
5836
int
5837
main ()
5838
{
5839
 
5840
  ;
5841
  return 0;
5842
}
5843
_ACEOF
5844
rm -f conftest.$ac_objext conftest$ac_exeext
5845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846
  (eval $ac_link) 2>conftest.er1
5847
  ac_status=$?
5848
  grep -v '^ *+' conftest.er1 >conftest.err
5849
  rm -f conftest.er1
5850
  cat conftest.err >&5
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852
  (exit $ac_status); } &&
5853
         { ac_try='test -z "$ac_c_werror_flag"
5854
                         || test ! -s conftest.err'
5855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856
  (eval $ac_try) 2>&5
5857
  ac_status=$?
5858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859
  (exit $ac_status); }; } &&
5860
         { ac_try='test -s conftest$ac_exeext'
5861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862
  (eval $ac_try) 2>&5
5863
  ac_status=$?
5864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865
  (exit $ac_status); }; }; then
5866
  lt_cv_cc_needs_belf=yes
5867
else
5868
  echo "$as_me: failed program was:" >&5
5869
sed 's/^/| /' conftest.$ac_ext >&5
5870
 
5871
lt_cv_cc_needs_belf=no
5872
fi
5873
rm -f conftest.err conftest.$ac_objext \
5874
      conftest$ac_exeext conftest.$ac_ext
5875
     ac_ext=c
5876
ac_cpp='$CPP $CPPFLAGS'
5877
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880
 
5881
fi
5882
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5883
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5884
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5885
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5886
    CFLAGS="$SAVE_CFLAGS"
5887
  fi
5888
  ;;
5889
sparc*-*solaris*)
5890
  # Find out which ABI we are using.
5891
  echo 'int i;' > conftest.$ac_ext
5892
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893
  (eval $ac_compile) 2>&5
5894
  ac_status=$?
5895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896
  (exit $ac_status); }; then
5897
    case `/usr/bin/file conftest.o` in
5898
    *64-bit*)
5899
      case $lt_cv_prog_gnu_ld in
5900
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5901
      *)    LD="${LD-ld} -64" ;;
5902
      esac
5903
      ;;
5904
    esac
5905
  fi
5906
  rm -rf conftest*
5907
  ;;
5908
esac
5909
 
5910
need_locks="$enable_libtool_lock"
5911
 
5912
ac_ext=c
5913
ac_cpp='$CPP $CPPFLAGS'
5914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5918
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5919
# On Suns, sometimes $CPP names a directory.
5920
if test -n "$CPP" && test -d "$CPP"; then
5921
  CPP=
5922
fi
5923
if test -z "$CPP"; then
5924
  if test "${ac_cv_prog_CPP+set}" = set; then
5925
  echo $ECHO_N "(cached) $ECHO_C" >&6
5926
else
5927
      # Double quotes because CPP needs to be expanded
5928
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5929
    do
5930
      ac_preproc_ok=false
5931
for ac_c_preproc_warn_flag in '' yes
5932
do
5933
  # Use a header file that comes with gcc, so configuring glibc
5934
  # with a fresh cross-compiler works.
5935
  # Prefer  to  if __STDC__ is defined, since
5936
  #  exists even on freestanding compilers.
5937
  # On the NeXT, cc -E runs the code through the compiler's parser,
5938
  # not just through cpp. "Syntax error" is here to catch this case.
5939
  cat >conftest.$ac_ext <<_ACEOF
5940
/* confdefs.h.  */
5941
_ACEOF
5942
cat confdefs.h >>conftest.$ac_ext
5943
cat >>conftest.$ac_ext <<_ACEOF
5944
/* end confdefs.h.  */
5945
#ifdef __STDC__
5946
# include 
5947
#else
5948
# include 
5949
#endif
5950
                     Syntax error
5951
_ACEOF
5952
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954
  ac_status=$?
5955
  grep -v '^ *+' conftest.er1 >conftest.err
5956
  rm -f conftest.er1
5957
  cat conftest.err >&5
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
  (exit $ac_status); } >/dev/null; then
5960
  if test -s conftest.err; then
5961
    ac_cpp_err=$ac_c_preproc_warn_flag
5962
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963
  else
5964
    ac_cpp_err=
5965
  fi
5966
else
5967
  ac_cpp_err=yes
5968
fi
5969
if test -z "$ac_cpp_err"; then
5970
  :
5971
else
5972
  echo "$as_me: failed program was:" >&5
5973
sed 's/^/| /' conftest.$ac_ext >&5
5974
 
5975
  # Broken: fails on valid input.
5976
continue
5977
fi
5978
rm -f conftest.err conftest.$ac_ext
5979
 
5980
  # OK, works on sane cases.  Now check whether non-existent headers
5981
  # can be detected and how.
5982
  cat >conftest.$ac_ext <<_ACEOF
5983
/* confdefs.h.  */
5984
_ACEOF
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h.  */
5988
#include 
5989
_ACEOF
5990
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992
  ac_status=$?
5993
  grep -v '^ *+' conftest.er1 >conftest.err
5994
  rm -f conftest.er1
5995
  cat conftest.err >&5
5996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997
  (exit $ac_status); } >/dev/null; then
5998
  if test -s conftest.err; then
5999
    ac_cpp_err=$ac_c_preproc_warn_flag
6000
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001
  else
6002
    ac_cpp_err=
6003
  fi
6004
else
6005
  ac_cpp_err=yes
6006
fi
6007
if test -z "$ac_cpp_err"; then
6008
  # Broken: success on invalid input.
6009
continue
6010
else
6011
  echo "$as_me: failed program was:" >&5
6012
sed 's/^/| /' conftest.$ac_ext >&5
6013
 
6014
  # Passes both tests.
6015
ac_preproc_ok=:
6016
break
6017
fi
6018
rm -f conftest.err conftest.$ac_ext
6019
 
6020
done
6021
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6022
rm -f conftest.err conftest.$ac_ext
6023
if $ac_preproc_ok; then
6024
  break
6025
fi
6026
 
6027
    done
6028
    ac_cv_prog_CPP=$CPP
6029
 
6030
fi
6031
  CPP=$ac_cv_prog_CPP
6032
else
6033
  ac_cv_prog_CPP=$CPP
6034
fi
6035
echo "$as_me:$LINENO: result: $CPP" >&5
6036
echo "${ECHO_T}$CPP" >&6
6037
ac_preproc_ok=false
6038
for ac_c_preproc_warn_flag in '' yes
6039
do
6040
  # Use a header file that comes with gcc, so configuring glibc
6041
  # with a fresh cross-compiler works.
6042
  # Prefer  to  if __STDC__ is defined, since
6043
  #  exists even on freestanding compilers.
6044
  # On the NeXT, cc -E runs the code through the compiler's parser,
6045
  # not just through cpp. "Syntax error" is here to catch this case.
6046
  cat >conftest.$ac_ext <<_ACEOF
6047
/* confdefs.h.  */
6048
_ACEOF
6049
cat confdefs.h >>conftest.$ac_ext
6050
cat >>conftest.$ac_ext <<_ACEOF
6051
/* end confdefs.h.  */
6052
#ifdef __STDC__
6053
# include 
6054
#else
6055
# include 
6056
#endif
6057
                     Syntax error
6058
_ACEOF
6059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061
  ac_status=$?
6062
  grep -v '^ *+' conftest.er1 >conftest.err
6063
  rm -f conftest.er1
6064
  cat conftest.err >&5
6065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
  (exit $ac_status); } >/dev/null; then
6067
  if test -s conftest.err; then
6068
    ac_cpp_err=$ac_c_preproc_warn_flag
6069
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6070
  else
6071
    ac_cpp_err=
6072
  fi
6073
else
6074
  ac_cpp_err=yes
6075
fi
6076
if test -z "$ac_cpp_err"; then
6077
  :
6078
else
6079
  echo "$as_me: failed program was:" >&5
6080
sed 's/^/| /' conftest.$ac_ext >&5
6081
 
6082
  # Broken: fails on valid input.
6083
continue
6084
fi
6085
rm -f conftest.err conftest.$ac_ext
6086
 
6087
  # OK, works on sane cases.  Now check whether non-existent headers
6088
  # can be detected and how.
6089
  cat >conftest.$ac_ext <<_ACEOF
6090
/* confdefs.h.  */
6091
_ACEOF
6092
cat confdefs.h >>conftest.$ac_ext
6093
cat >>conftest.$ac_ext <<_ACEOF
6094
/* end confdefs.h.  */
6095
#include 
6096
_ACEOF
6097
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6098
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099
  ac_status=$?
6100
  grep -v '^ *+' conftest.er1 >conftest.err
6101
  rm -f conftest.er1
6102
  cat conftest.err >&5
6103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104
  (exit $ac_status); } >/dev/null; then
6105
  if test -s conftest.err; then
6106
    ac_cpp_err=$ac_c_preproc_warn_flag
6107
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6108
  else
6109
    ac_cpp_err=
6110
  fi
6111
else
6112
  ac_cpp_err=yes
6113
fi
6114
if test -z "$ac_cpp_err"; then
6115
  # Broken: success on invalid input.
6116
continue
6117
else
6118
  echo "$as_me: failed program was:" >&5
6119
sed 's/^/| /' conftest.$ac_ext >&5
6120
 
6121
  # Passes both tests.
6122
ac_preproc_ok=:
6123
break
6124
fi
6125
rm -f conftest.err conftest.$ac_ext
6126
 
6127
done
6128
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6129
rm -f conftest.err conftest.$ac_ext
6130
if $ac_preproc_ok; then
6131
  :
6132
else
6133
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6134
See \`config.log' for more details." >&5
6135
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6136
See \`config.log' for more details." >&2;}
6137
   { (exit 1); exit 1; }; }
6138
fi
6139
 
6140
ac_ext=c
6141
ac_cpp='$CPP $CPPFLAGS'
6142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6145
 
6146
 
6147
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6148
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6149
if test "${ac_cv_header_stdc+set}" = set; then
6150
  echo $ECHO_N "(cached) $ECHO_C" >&6
6151
else
6152
  cat >conftest.$ac_ext <<_ACEOF
6153
/* confdefs.h.  */
6154
_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h.  */
6158
#include 
6159
#include 
6160
#include 
6161
#include 
6162
 
6163
int
6164
main ()
6165
{
6166
 
6167
  ;
6168
  return 0;
6169
}
6170
_ACEOF
6171
rm -f conftest.$ac_objext
6172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173
  (eval $ac_compile) 2>conftest.er1
6174
  ac_status=$?
6175
  grep -v '^ *+' conftest.er1 >conftest.err
6176
  rm -f conftest.er1
6177
  cat conftest.err >&5
6178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179
  (exit $ac_status); } &&
6180
         { ac_try='test -z "$ac_c_werror_flag"
6181
                         || test ! -s conftest.err'
6182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183
  (eval $ac_try) 2>&5
6184
  ac_status=$?
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
  (exit $ac_status); }; } &&
6187
         { ac_try='test -s conftest.$ac_objext'
6188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189
  (eval $ac_try) 2>&5
6190
  ac_status=$?
6191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192
  (exit $ac_status); }; }; then
6193
  ac_cv_header_stdc=yes
6194
else
6195
  echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6197
 
6198
ac_cv_header_stdc=no
6199
fi
6200
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201
 
6202
if test $ac_cv_header_stdc = yes; then
6203
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6204
  cat >conftest.$ac_ext <<_ACEOF
6205
/* confdefs.h.  */
6206
_ACEOF
6207
cat confdefs.h >>conftest.$ac_ext
6208
cat >>conftest.$ac_ext <<_ACEOF
6209
/* end confdefs.h.  */
6210
#include 
6211
 
6212
_ACEOF
6213
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214
  $EGREP "memchr" >/dev/null 2>&1; then
6215
  :
6216
else
6217
  ac_cv_header_stdc=no
6218
fi
6219
rm -f conftest*
6220
 
6221
fi
6222
 
6223
if test $ac_cv_header_stdc = yes; then
6224
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6225
  cat >conftest.$ac_ext <<_ACEOF
6226
/* confdefs.h.  */
6227
_ACEOF
6228
cat confdefs.h >>conftest.$ac_ext
6229
cat >>conftest.$ac_ext <<_ACEOF
6230
/* end confdefs.h.  */
6231
#include 
6232
 
6233
_ACEOF
6234
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235
  $EGREP "free" >/dev/null 2>&1; then
6236
  :
6237
else
6238
  ac_cv_header_stdc=no
6239
fi
6240
rm -f conftest*
6241
 
6242
fi
6243
 
6244
if test $ac_cv_header_stdc = yes; then
6245
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6246
  if test "$cross_compiling" = yes; then
6247
  :
6248
else
6249
  cat >conftest.$ac_ext <<_ACEOF
6250
/* confdefs.h.  */
6251
_ACEOF
6252
cat confdefs.h >>conftest.$ac_ext
6253
cat >>conftest.$ac_ext <<_ACEOF
6254
/* end confdefs.h.  */
6255
#include 
6256
#if ((' ' & 0x0FF) == 0x020)
6257
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6258
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6259
#else
6260
# define ISLOWER(c) \
6261
                   (('a' <= (c) && (c) <= 'i') \
6262
                     || ('j' <= (c) && (c) <= 'r') \
6263
                     || ('s' <= (c) && (c) <= 'z'))
6264
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6265
#endif
6266
 
6267
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6268
int
6269
main ()
6270
{
6271
  int i;
6272
  for (i = 0; i < 256; i++)
6273
    if (XOR (islower (i), ISLOWER (i))
6274
        || toupper (i) != TOUPPER (i))
6275
      exit(2);
6276
  exit (0);
6277
}
6278
_ACEOF
6279
rm -f conftest$ac_exeext
6280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281
  (eval $ac_link) 2>&5
6282
  ac_status=$?
6283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286
  (eval $ac_try) 2>&5
6287
  ac_status=$?
6288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
  (exit $ac_status); }; }; then
6290
  :
6291
else
6292
  echo "$as_me: program exited with status $ac_status" >&5
6293
echo "$as_me: failed program was:" >&5
6294
sed 's/^/| /' conftest.$ac_ext >&5
6295
 
6296
( exit $ac_status )
6297
ac_cv_header_stdc=no
6298
fi
6299
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300
fi
6301
fi
6302
fi
6303
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6304
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6305
if test $ac_cv_header_stdc = yes; then
6306
 
6307
cat >>confdefs.h <<\_ACEOF
6308
#define STDC_HEADERS 1
6309
_ACEOF
6310
 
6311
fi
6312
 
6313
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6314
 
6315
 
6316
 
6317
 
6318
 
6319
 
6320
 
6321
 
6322
 
6323
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6324
                  inttypes.h stdint.h unistd.h
6325
do
6326
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6327
echo "$as_me:$LINENO: checking for $ac_header" >&5
6328
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6329
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330
  echo $ECHO_N "(cached) $ECHO_C" >&6
6331
else
6332
  cat >conftest.$ac_ext <<_ACEOF
6333
/* confdefs.h.  */
6334
_ACEOF
6335
cat confdefs.h >>conftest.$ac_ext
6336
cat >>conftest.$ac_ext <<_ACEOF
6337
/* end confdefs.h.  */
6338
$ac_includes_default
6339
 
6340
#include <$ac_header>
6341
_ACEOF
6342
rm -f conftest.$ac_objext
6343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344
  (eval $ac_compile) 2>conftest.er1
6345
  ac_status=$?
6346
  grep -v '^ *+' conftest.er1 >conftest.err
6347
  rm -f conftest.er1
6348
  cat conftest.err >&5
6349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350
  (exit $ac_status); } &&
6351
         { ac_try='test -z "$ac_c_werror_flag"
6352
                         || test ! -s conftest.err'
6353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354
  (eval $ac_try) 2>&5
6355
  ac_status=$?
6356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
  (exit $ac_status); }; } &&
6358
         { ac_try='test -s conftest.$ac_objext'
6359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360
  (eval $ac_try) 2>&5
6361
  ac_status=$?
6362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363
  (exit $ac_status); }; }; then
6364
  eval "$as_ac_Header=yes"
6365
else
6366
  echo "$as_me: failed program was:" >&5
6367
sed 's/^/| /' conftest.$ac_ext >&5
6368
 
6369
eval "$as_ac_Header=no"
6370
fi
6371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372
fi
6373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6374
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376
  cat >>confdefs.h <<_ACEOF
6377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378
_ACEOF
6379
 
6380
fi
6381
 
6382
done
6383
 
6384
 
6385
 
6386
for ac_header in dlfcn.h
6387
do
6388
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389
echo "$as_me:$LINENO: checking for $ac_header" >&5
6390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392
  echo $ECHO_N "(cached) $ECHO_C" >&6
6393
else
6394
  cat >conftest.$ac_ext <<_ACEOF
6395
/* confdefs.h.  */
6396
_ACEOF
6397
cat confdefs.h >>conftest.$ac_ext
6398
cat >>conftest.$ac_ext <<_ACEOF
6399
/* end confdefs.h.  */
6400
$ac_includes_default
6401
 
6402
#include <$ac_header>
6403
_ACEOF
6404
rm -f conftest.$ac_objext
6405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406
  (eval $ac_compile) 2>conftest.er1
6407
  ac_status=$?
6408
  grep -v '^ *+' conftest.er1 >conftest.err
6409
  rm -f conftest.er1
6410
  cat conftest.err >&5
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
  (exit $ac_status); } &&
6413
         { ac_try='test -z "$ac_c_werror_flag"
6414
                         || test ! -s conftest.err'
6415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416
  (eval $ac_try) 2>&5
6417
  ac_status=$?
6418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
  (exit $ac_status); }; } &&
6420
         { ac_try='test -s conftest.$ac_objext'
6421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422
  (eval $ac_try) 2>&5
6423
  ac_status=$?
6424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425
  (exit $ac_status); }; }; then
6426
  eval "$as_ac_Header=yes"
6427
else
6428
  echo "$as_me: failed program was:" >&5
6429
sed 's/^/| /' conftest.$ac_ext >&5
6430
 
6431
eval "$as_ac_Header=no"
6432
fi
6433
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434
fi
6435
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438
  cat >>confdefs.h <<_ACEOF
6439
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440
_ACEOF
6441
 
6442
fi
6443
 
6444
done
6445
 
6446
 
6447
 
6448
# This can be used to rebuild libtool when needed
6449
LIBTOOL_DEPS="$ltmain"
6450
 
6451
# Always use our own libtool.
6452
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6453
 
6454
 
6455
 
6456
 
6457
 
6458
 
6459
 
6460
 
6461
 
6462
 
6463
 
6464
 
6465
 
6466
 
6467
 
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
test -z "$LN_S" && LN_S="ln -s"
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
if test -n "${ZSH_VERSION+set}" ; then
6494
   setopt NO_GLOB_SUBST
6495
fi
6496
 
6497
echo "$as_me:$LINENO: checking for objdir" >&5
6498
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6499
if test "${lt_cv_objdir+set}" = set; then
6500
  echo $ECHO_N "(cached) $ECHO_C" >&6
6501
else
6502
  rm -f .libs 2>/dev/null
6503
mkdir .libs 2>/dev/null
6504
if test -d .libs; then
6505
  lt_cv_objdir=.libs
6506
else
6507
  # MS-DOS does not allow filenames that begin with a dot.
6508
  lt_cv_objdir=_libs
6509
fi
6510
rmdir .libs 2>/dev/null
6511
fi
6512
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6513
echo "${ECHO_T}$lt_cv_objdir" >&6
6514
objdir=$lt_cv_objdir
6515
 
6516
 
6517
 
6518
 
6519
 
6520
cat >>confdefs.h <<_ACEOF
6521
#define LT_OBJDIR "$lt_cv_objdir/"
6522
_ACEOF
6523
 
6524
 
6525
 
6526
 
6527
 
6528
 
6529
 
6530
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
case $host_os in
6541
aix3*)
6542
  # AIX sometimes has problems with the GCC collect2 program.  For some
6543
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6544
  # vanish in a puff of smoke.
6545
  if test "X${COLLECT_NAMES+set}" != Xset; then
6546
    COLLECT_NAMES=
6547
    export COLLECT_NAMES
6548
  fi
6549
  ;;
6550
esac
6551
 
6552
# Sed substitution that helps us do robust quoting.  It backslashifies
6553
# metacharacters that are still active within double-quoted strings.
6554
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6555
 
6556
# Same as above, but do not quote variable references.
6557
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6558
 
6559
# Sed substitution to delay expansion of an escaped shell variable in a
6560
# double_quote_subst'ed string.
6561
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6562
 
6563
# Sed substitution to delay expansion of an escaped single quote.
6564
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6565
 
6566
# Sed substitution to avoid accidental globbing in evaled expressions
6567
no_glob_subst='s/\*/\\\*/g'
6568
 
6569
# Global variables:
6570
ofile=libtool
6571
can_build_shared=yes
6572
 
6573
# All known linkers require a `.a' archive for static linking (except MSVC,
6574
# which needs '.lib').
6575
libext=a
6576
 
6577
with_gnu_ld="$lt_cv_prog_gnu_ld"
6578
 
6579
old_CC="$CC"
6580
old_CFLAGS="$CFLAGS"
6581
 
6582
# Set sane defaults for various variables
6583
test -z "$CC" && CC=cc
6584
test -z "$LTCC" && LTCC=$CC
6585
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6586
test -z "$LD" && LD=ld
6587
test -z "$ac_objext" && ac_objext=o
6588
 
6589
for cc_temp in $compiler""; do
6590
  case $cc_temp in
6591
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6592
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6593
    \-*) ;;
6594
    *) break;;
6595
  esac
6596
done
6597
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6598
 
6599
 
6600
# Only perform the check for file, if the check method requires it
6601
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6602
case $deplibs_check_method in
6603
file_magic*)
6604
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6605
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6606
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6607
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6608
  echo $ECHO_N "(cached) $ECHO_C" >&6
6609
else
6610
  case $MAGIC_CMD in
6611
[\\/*] |  ?:[\\/]*)
6612
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6613
  ;;
6614
*)
6615
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6617
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6618
  for ac_dir in $ac_dummy; do
6619
    IFS="$lt_save_ifs"
6620
    test -z "$ac_dir" && ac_dir=.
6621
    if test -f $ac_dir/${ac_tool_prefix}file; then
6622
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6623
      if test -n "$file_magic_test_file"; then
6624
        case $deplibs_check_method in
6625
        "file_magic "*)
6626
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6627
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6629
            $EGREP "$file_magic_regex" > /dev/null; then
6630
            :
6631
          else
6632
            cat <<_LT_EOF 1>&2
6633
 
6634
*** Warning: the command libtool uses to detect shared libraries,
6635
*** $file_magic_cmd, produces output that libtool cannot recognize.
6636
*** The result is that libtool may fail to recognize shared libraries
6637
*** as such.  This will affect the creation of libtool libraries that
6638
*** depend on shared libraries, but programs linked with such libtool
6639
*** libraries will work regardless of this problem.  Nevertheless, you
6640
*** may want to report the problem to your system manager and/or to
6641
*** bug-libtool@gnu.org
6642
 
6643
_LT_EOF
6644
          fi ;;
6645
        esac
6646
      fi
6647
      break
6648
    fi
6649
  done
6650
  IFS="$lt_save_ifs"
6651
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6652
  ;;
6653
esac
6654
fi
6655
 
6656
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657
if test -n "$MAGIC_CMD"; then
6658
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6659
echo "${ECHO_T}$MAGIC_CMD" >&6
6660
else
6661
  echo "$as_me:$LINENO: result: no" >&5
6662
echo "${ECHO_T}no" >&6
6663
fi
6664
 
6665
 
6666
 
6667
 
6668
 
6669
if test -z "$lt_cv_path_MAGIC_CMD"; then
6670
  if test -n "$ac_tool_prefix"; then
6671
    echo "$as_me:$LINENO: checking for file" >&5
6672
echo $ECHO_N "checking for file... $ECHO_C" >&6
6673
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6674
  echo $ECHO_N "(cached) $ECHO_C" >&6
6675
else
6676
  case $MAGIC_CMD in
6677
[\\/*] |  ?:[\\/]*)
6678
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6679
  ;;
6680
*)
6681
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6682
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6683
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6684
  for ac_dir in $ac_dummy; do
6685
    IFS="$lt_save_ifs"
6686
    test -z "$ac_dir" && ac_dir=.
6687
    if test -f $ac_dir/file; then
6688
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6689
      if test -n "$file_magic_test_file"; then
6690
        case $deplibs_check_method in
6691
        "file_magic "*)
6692
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6693
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6694
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6695
            $EGREP "$file_magic_regex" > /dev/null; then
6696
            :
6697
          else
6698
            cat <<_LT_EOF 1>&2
6699
 
6700
*** Warning: the command libtool uses to detect shared libraries,
6701
*** $file_magic_cmd, produces output that libtool cannot recognize.
6702
*** The result is that libtool may fail to recognize shared libraries
6703
*** as such.  This will affect the creation of libtool libraries that
6704
*** depend on shared libraries, but programs linked with such libtool
6705
*** libraries will work regardless of this problem.  Nevertheless, you
6706
*** may want to report the problem to your system manager and/or to
6707
*** bug-libtool@gnu.org
6708
 
6709
_LT_EOF
6710
          fi ;;
6711
        esac
6712
      fi
6713
      break
6714
    fi
6715
  done
6716
  IFS="$lt_save_ifs"
6717
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6718
  ;;
6719
esac
6720
fi
6721
 
6722
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6723
if test -n "$MAGIC_CMD"; then
6724
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6725
echo "${ECHO_T}$MAGIC_CMD" >&6
6726
else
6727
  echo "$as_me:$LINENO: result: no" >&5
6728
echo "${ECHO_T}no" >&6
6729
fi
6730
 
6731
 
6732
  else
6733
    MAGIC_CMD=:
6734
  fi
6735
fi
6736
 
6737
  fi
6738
  ;;
6739
esac
6740
 
6741
# Use C for the default configuration in the libtool script
6742
 
6743
lt_save_CC="$CC"
6744
ac_ext=c
6745
ac_cpp='$CPP $CPPFLAGS'
6746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
 
6750
 
6751
# Source file extension for C test sources.
6752
ac_ext=c
6753
 
6754
# Object file extension for compiled C test sources.
6755
objext=o
6756
objext=$objext
6757
 
6758
# Code to be used in simple compile tests
6759
lt_simple_compile_test_code="int some_variable = 0;"
6760
 
6761
# Code to be used in simple link tests
6762
lt_simple_link_test_code='int main(){return(0);}'
6763
 
6764
 
6765
 
6766
 
6767
 
6768
 
6769
 
6770
# If no C compiler was specified, use CC.
6771
LTCC=${LTCC-"$CC"}
6772
 
6773
# If no C compiler flags were specified, use CFLAGS.
6774
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6775
 
6776
# Allow CC to be a program name with arguments.
6777
compiler=$CC
6778
 
6779
# Save the default compiler, since it gets overwritten when the other
6780
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6781
compiler_DEFAULT=$CC
6782
 
6783
# save warnings/boilerplate of simple test code
6784
ac_outfile=conftest.$ac_objext
6785
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6786
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787
_lt_compiler_boilerplate=`cat conftest.err`
6788
$RM conftest*
6789
 
6790
ac_outfile=conftest.$ac_objext
6791
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6792
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793
_lt_linker_boilerplate=`cat conftest.err`
6794
$RM conftest*
6795
 
6796
 
6797
## CAVEAT EMPTOR:
6798
## There is no encapsulation within the following macros, do not change
6799
## the running order or otherwise move them around unless you know exactly
6800
## what you are doing...
6801
if test -n "$compiler"; then
6802
 
6803
lt_prog_compiler_no_builtin_flag=
6804
 
6805
if test "$GCC" = yes; then
6806
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6807
 
6808
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6809
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6810
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6811
  echo $ECHO_N "(cached) $ECHO_C" >&6
6812
else
6813
  lt_cv_prog_compiler_rtti_exceptions=no
6814
   ac_outfile=conftest.$ac_objext
6815
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6816
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6817
   # Insert the option either (1) after the last *FLAGS variable, or
6818
   # (2) before a word containing "conftest.", or (3) at the end.
6819
   # Note that $ac_compile itself does not contain backslashes and begins
6820
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6821
   # The option is referenced via a variable to avoid confusing sed.
6822
   lt_compile=`echo "$ac_compile" | $SED \
6823
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6824
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6825
   -e 's:$: $lt_compiler_flag:'`
6826
   (eval echo "\"\$as_me:6826: $lt_compile\"" >&5)
6827
   (eval "$lt_compile" 2>conftest.err)
6828
   ac_status=$?
6829
   cat conftest.err >&5
6830
   echo "$as_me:6830: \$? = $ac_status" >&5
6831
   if (exit $ac_status) && test -s "$ac_outfile"; then
6832
     # The compiler can only warn and ignore the option if not recognized
6833
     # So say no if there are warnings other than the usual output.
6834
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6835
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6836
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6837
       lt_cv_prog_compiler_rtti_exceptions=yes
6838
     fi
6839
   fi
6840
   $RM conftest*
6841
 
6842
fi
6843
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6844
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6845
 
6846
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6847
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6848
else
6849
    :
6850
fi
6851
 
6852
fi
6853
 
6854
 
6855
 
6856
 
6857
 
6858
 
6859
  lt_prog_compiler_wl=
6860
lt_prog_compiler_pic=
6861
lt_prog_compiler_static=
6862
 
6863
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6864
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6865
 
6866
  if test "$GCC" = yes; then
6867
    lt_prog_compiler_wl='-Wl,'
6868
    lt_prog_compiler_static='-static'
6869
 
6870
    case $host_os in
6871
      aix*)
6872
      # All AIX code is PIC.
6873
      if test "$host_cpu" = ia64; then
6874
        # AIX 5 now supports IA64 processor
6875
        lt_prog_compiler_static='-Bstatic'
6876
      fi
6877
      ;;
6878
 
6879
    amigaos*)
6880
      if test "$host_cpu" = m68k; then
6881
        # FIXME: we need at least 68020 code to build shared libraries, but
6882
        # adding the `-m68020' flag to GCC prevents building anything better,
6883
        # like `-m68040'.
6884
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6885
      fi
6886
      ;;
6887
 
6888
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6889
      # PIC is the default for these OSes.
6890
      ;;
6891
 
6892
    mingw* | cygwin* | pw32* | os2*)
6893
      # This hack is so that the source file can tell whether it is being
6894
      # built for inclusion in a dll (and should export symbols for example).
6895
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6896
      # (--disable-auto-import) libraries
6897
      lt_prog_compiler_pic='-DDLL_EXPORT'
6898
      ;;
6899
 
6900
    darwin* | rhapsody*)
6901
      # PIC is the default on this platform
6902
      # Common symbols not allowed in MH_DYLIB files
6903
      lt_prog_compiler_pic='-fno-common'
6904
      ;;
6905
 
6906
    hpux*)
6907
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6908
      # not for PA HP-UX.
6909
      case $host_cpu in
6910
      hppa*64*|ia64*)
6911
        # +Z the default
6912
        ;;
6913
      *)
6914
        lt_prog_compiler_pic='-fPIC'
6915
        ;;
6916
      esac
6917
      ;;
6918
 
6919
    interix[3-9]*)
6920
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6921
      # Instead, we relocate shared libraries at runtime.
6922
      ;;
6923
 
6924
    msdosdjgpp*)
6925
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6926
      # on systems that don't support them.
6927
      lt_prog_compiler_can_build_shared=no
6928
      enable_shared=no
6929
      ;;
6930
 
6931
    *nto* | *qnx*)
6932
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6933
      # it will coredump.
6934
      lt_prog_compiler_pic='-fPIC -shared'
6935
      ;;
6936
 
6937
    sysv4*MP*)
6938
      if test -d /usr/nec; then
6939
        lt_prog_compiler_pic=-Kconform_pic
6940
      fi
6941
      ;;
6942
 
6943
    *)
6944
      lt_prog_compiler_pic='-fPIC'
6945
      ;;
6946
    esac
6947
  else
6948
    # PORTME Check for flag to pass linker flags through the system compiler.
6949
    case $host_os in
6950
    aix*)
6951
      lt_prog_compiler_wl='-Wl,'
6952
      if test "$host_cpu" = ia64; then
6953
        # AIX 5 now supports IA64 processor
6954
        lt_prog_compiler_static='-Bstatic'
6955
      else
6956
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6957
      fi
6958
      ;;
6959
    darwin*)
6960
      # PIC is the default on this platform
6961
      # Common symbols not allowed in MH_DYLIB files
6962
      case $cc_basename in
6963
      xlc*)
6964
        lt_prog_compiler_pic='-qnocommon'
6965
        lt_prog_compiler_wl='-Wl,'
6966
        ;;
6967
      esac
6968
      ;;
6969
 
6970
    mingw* | cygwin* | pw32* | os2*)
6971
      # This hack is so that the source file can tell whether it is being
6972
      # built for inclusion in a dll (and should export symbols for example).
6973
      lt_prog_compiler_pic='-DDLL_EXPORT'
6974
      ;;
6975
 
6976
    hpux9* | hpux10* | hpux11*)
6977
      lt_prog_compiler_wl='-Wl,'
6978
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6979
      # not for PA HP-UX.
6980
      case $host_cpu in
6981
      hppa*64*|ia64*)
6982
        # +Z the default
6983
        ;;
6984
      *)
6985
        lt_prog_compiler_pic='+Z'
6986
        ;;
6987
      esac
6988
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6989
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6990
      ;;
6991
 
6992
    irix5* | irix6* | nonstopux*)
6993
      lt_prog_compiler_wl='-Wl,'
6994
      # PIC (with -KPIC) is the default.
6995
      lt_prog_compiler_static='-non_shared'
6996
      ;;
6997
 
6998
    linux* | k*bsd*-gnu)
6999
      case $cc_basename in
7000
      icc* | ecc*)
7001
        lt_prog_compiler_wl='-Wl,'
7002
        lt_prog_compiler_pic='-KPIC'
7003
        lt_prog_compiler_static='-static'
7004
        ;;
7005
      pgcc* | pgf77* | pgf90* | pgf95*)
7006
        # Portland Group compilers (*not* the Pentium gcc compiler,
7007
        # which looks to be a dead project)
7008
        lt_prog_compiler_wl='-Wl,'
7009
        lt_prog_compiler_pic='-fpic'
7010
        lt_prog_compiler_static='-Bstatic'
7011
        ;;
7012
      ccc*)
7013
        lt_prog_compiler_wl='-Wl,'
7014
        # All Alpha code is PIC.
7015
        lt_prog_compiler_static='-non_shared'
7016
        ;;
7017
      *)
7018
        case `$CC -V 2>&1 | sed 5q` in
7019
        *Sun\ C*)
7020
          # Sun C 5.9
7021
          lt_prog_compiler_pic='-KPIC'
7022
          lt_prog_compiler_static='-Bstatic'
7023
          lt_prog_compiler_wl='-Wl,'
7024
          ;;
7025
        *Sun\ F*)
7026
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7027
          lt_prog_compiler_pic='-KPIC'
7028
          lt_prog_compiler_static='-Bstatic'
7029
          lt_prog_compiler_wl=''
7030
          ;;
7031
        esac
7032
        ;;
7033
      esac
7034
      ;;
7035
 
7036
    newsos6)
7037
      lt_prog_compiler_pic='-KPIC'
7038
      lt_prog_compiler_static='-Bstatic'
7039
      ;;
7040
 
7041
    *nto* | *qnx*)
7042
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7043
      # it will coredump.
7044
      lt_prog_compiler_pic='-fPIC -shared'
7045
      ;;
7046
 
7047
    osf3* | osf4* | osf5*)
7048
      lt_prog_compiler_wl='-Wl,'
7049
      # All OSF/1 code is PIC.
7050
      lt_prog_compiler_static='-non_shared'
7051
      ;;
7052
 
7053
    rdos*)
7054
      lt_prog_compiler_static='-non_shared'
7055
      ;;
7056
 
7057
    solaris*)
7058
      lt_prog_compiler_pic='-KPIC'
7059
      lt_prog_compiler_static='-Bstatic'
7060
      case $cc_basename in
7061
      f77* | f90* | f95*)
7062
        lt_prog_compiler_wl='-Qoption ld ';;
7063
      *)
7064
        lt_prog_compiler_wl='-Wl,';;
7065
      esac
7066
      ;;
7067
 
7068
    sunos4*)
7069
      lt_prog_compiler_wl='-Qoption ld '
7070
      lt_prog_compiler_pic='-PIC'
7071
      lt_prog_compiler_static='-Bstatic'
7072
      ;;
7073
 
7074
    sysv4 | sysv4.2uw2* | sysv4.3*)
7075
      lt_prog_compiler_wl='-Wl,'
7076
      lt_prog_compiler_pic='-KPIC'
7077
      lt_prog_compiler_static='-Bstatic'
7078
      ;;
7079
 
7080
    sysv4*MP*)
7081
      if test -d /usr/nec ;then
7082
        lt_prog_compiler_pic='-Kconform_pic'
7083
        lt_prog_compiler_static='-Bstatic'
7084
      fi
7085
      ;;
7086
 
7087
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7088
      lt_prog_compiler_wl='-Wl,'
7089
      lt_prog_compiler_pic='-KPIC'
7090
      lt_prog_compiler_static='-Bstatic'
7091
      ;;
7092
 
7093
    unicos*)
7094
      lt_prog_compiler_wl='-Wl,'
7095
      lt_prog_compiler_can_build_shared=no
7096
      ;;
7097
 
7098
    uts4*)
7099
      lt_prog_compiler_pic='-pic'
7100
      lt_prog_compiler_static='-Bstatic'
7101
      ;;
7102
 
7103
    *)
7104
      lt_prog_compiler_can_build_shared=no
7105
      ;;
7106
    esac
7107
  fi
7108
 
7109
case $host_os in
7110
  # For platforms which do not support PIC, -DPIC is meaningless:
7111
  *djgpp*)
7112
    lt_prog_compiler_pic=
7113
    ;;
7114
  *)
7115
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7116
    ;;
7117
esac
7118
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7119
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
#
7127
# Check to make sure the PIC flag actually works.
7128
#
7129
if test -n "$lt_prog_compiler_pic"; then
7130
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7131
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7132
if test "${lt_prog_compiler_pic_works+set}" = set; then
7133
  echo $ECHO_N "(cached) $ECHO_C" >&6
7134
else
7135
  lt_prog_compiler_pic_works=no
7136
   ac_outfile=conftest.$ac_objext
7137
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7138
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7139
   # Insert the option either (1) after the last *FLAGS variable, or
7140
   # (2) before a word containing "conftest.", or (3) at the end.
7141
   # Note that $ac_compile itself does not contain backslashes and begins
7142
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7143
   # The option is referenced via a variable to avoid confusing sed.
7144
   lt_compile=`echo "$ac_compile" | $SED \
7145
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7146
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7147
   -e 's:$: $lt_compiler_flag:'`
7148
   (eval echo "\"\$as_me:7148: $lt_compile\"" >&5)
7149
   (eval "$lt_compile" 2>conftest.err)
7150
   ac_status=$?
7151
   cat conftest.err >&5
7152
   echo "$as_me:7152: \$? = $ac_status" >&5
7153
   if (exit $ac_status) && test -s "$ac_outfile"; then
7154
     # The compiler can only warn and ignore the option if not recognized
7155
     # So say no if there are warnings other than the usual output.
7156
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7157
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7158
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7159
       lt_prog_compiler_pic_works=yes
7160
     fi
7161
   fi
7162
   $RM conftest*
7163
 
7164
fi
7165
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7166
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7167
 
7168
if test x"$lt_prog_compiler_pic_works" = xyes; then
7169
    case $lt_prog_compiler_pic in
7170
     "" | " "*) ;;
7171
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7172
     esac
7173
else
7174
    lt_prog_compiler_pic=
7175
     lt_prog_compiler_can_build_shared=no
7176
fi
7177
 
7178
fi
7179
 
7180
 
7181
 
7182
 
7183
 
7184
 
7185
#
7186
# Check to make sure the static flag actually works.
7187
#
7188
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7189
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7190
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7191
if test "${lt_prog_compiler_static_works+set}" = set; then
7192
  echo $ECHO_N "(cached) $ECHO_C" >&6
7193
else
7194
  lt_prog_compiler_static_works=no
7195
   save_LDFLAGS="$LDFLAGS"
7196
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7197
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7198
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7199
     # The linker can only warn and ignore the option if not recognized
7200
     # So say no if there are warnings
7201
     if test -s conftest.err; then
7202
       # Append any errors to the config.log.
7203
       cat conftest.err 1>&5
7204
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7205
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206
       if diff conftest.exp conftest.er2 >/dev/null; then
7207
         lt_prog_compiler_static_works=yes
7208
       fi
7209
     else
7210
       lt_prog_compiler_static_works=yes
7211
     fi
7212
   fi
7213
   $RM conftest*
7214
   LDFLAGS="$save_LDFLAGS"
7215
 
7216
fi
7217
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7218
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7219
 
7220
if test x"$lt_prog_compiler_static_works" = xyes; then
7221
    :
7222
else
7223
    lt_prog_compiler_static=
7224
fi
7225
 
7226
 
7227
 
7228
 
7229
 
7230
 
7231
 
7232
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7233
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7234
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7235
  echo $ECHO_N "(cached) $ECHO_C" >&6
7236
else
7237
  lt_cv_prog_compiler_c_o=no
7238
   $RM -r conftest 2>/dev/null
7239
   mkdir conftest
7240
   cd conftest
7241
   mkdir out
7242
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7243
 
7244
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7245
   # Insert the option either (1) after the last *FLAGS variable, or
7246
   # (2) before a word containing "conftest.", or (3) at the end.
7247
   # Note that $ac_compile itself does not contain backslashes and begins
7248
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7249
   lt_compile=`echo "$ac_compile" | $SED \
7250
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252
   -e 's:$: $lt_compiler_flag:'`
7253
   (eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
7254
   (eval "$lt_compile" 2>out/conftest.err)
7255
   ac_status=$?
7256
   cat out/conftest.err >&5
7257
   echo "$as_me:7257: \$? = $ac_status" >&5
7258
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7259
   then
7260
     # The compiler can only warn and ignore the option if not recognized
7261
     # So say no if there are warnings
7262
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7263
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7264
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7265
       lt_cv_prog_compiler_c_o=yes
7266
     fi
7267
   fi
7268
   chmod u+w . 2>&5
7269
   $RM conftest*
7270
   # SGI C++ compiler will create directory out/ii_files/ for
7271
   # template instantiation
7272
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7273
   $RM out/* && rmdir out
7274
   cd ..
7275
   $RM -r conftest
7276
   $RM conftest*
7277
 
7278
fi
7279
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7280
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7281
 
7282
 
7283
 
7284
 
7285
 
7286
 
7287
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7289
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7290
  echo $ECHO_N "(cached) $ECHO_C" >&6
7291
else
7292
  lt_cv_prog_compiler_c_o=no
7293
   $RM -r conftest 2>/dev/null
7294
   mkdir conftest
7295
   cd conftest
7296
   mkdir out
7297
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7298
 
7299
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7300
   # Insert the option either (1) after the last *FLAGS variable, or
7301
   # (2) before a word containing "conftest.", or (3) at the end.
7302
   # Note that $ac_compile itself does not contain backslashes and begins
7303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7304
   lt_compile=`echo "$ac_compile" | $SED \
7305
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7306
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7307
   -e 's:$: $lt_compiler_flag:'`
7308
   (eval echo "\"\$as_me:7308: $lt_compile\"" >&5)
7309
   (eval "$lt_compile" 2>out/conftest.err)
7310
   ac_status=$?
7311
   cat out/conftest.err >&5
7312
   echo "$as_me:7312: \$? = $ac_status" >&5
7313
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7314
   then
7315
     # The compiler can only warn and ignore the option if not recognized
7316
     # So say no if there are warnings
7317
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7318
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7319
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7320
       lt_cv_prog_compiler_c_o=yes
7321
     fi
7322
   fi
7323
   chmod u+w . 2>&5
7324
   $RM conftest*
7325
   # SGI C++ compiler will create directory out/ii_files/ for
7326
   # template instantiation
7327
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7328
   $RM out/* && rmdir out
7329
   cd ..
7330
   $RM -r conftest
7331
   $RM conftest*
7332
 
7333
fi
7334
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7335
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7336
 
7337
 
7338
 
7339
 
7340
hard_links="nottested"
7341
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7342
  # do not overwrite the value of need_locks provided by the user
7343
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7344
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7345
  hard_links=yes
7346
  $RM conftest*
7347
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7348
  touch conftest.a
7349
  ln conftest.a conftest.b 2>&5 || hard_links=no
7350
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351
  echo "$as_me:$LINENO: result: $hard_links" >&5
7352
echo "${ECHO_T}$hard_links" >&6
7353
  if test "$hard_links" = no; then
7354
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7355
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7356
    need_locks=warn
7357
  fi
7358
else
7359
  need_locks=no
7360
fi
7361
 
7362
 
7363
 
7364
 
7365
 
7366
 
7367
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7368
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7369
 
7370
  runpath_var=
7371
  allow_undefined_flag=
7372
  always_export_symbols=no
7373
  archive_cmds=
7374
  archive_expsym_cmds=
7375
  compiler_needs_object=no
7376
  enable_shared_with_static_runtimes=no
7377
  export_dynamic_flag_spec=
7378
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7379
  hardcode_automatic=no
7380
  hardcode_direct=no
7381
  hardcode_direct_absolute=no
7382
  hardcode_libdir_flag_spec=
7383
  hardcode_libdir_flag_spec_ld=
7384
  hardcode_libdir_separator=
7385
  hardcode_minus_L=no
7386
  hardcode_shlibpath_var=unsupported
7387
  inherit_rpath=no
7388
  link_all_deplibs=unknown
7389
  module_cmds=
7390
  module_expsym_cmds=
7391
  old_archive_from_new_cmds=
7392
  old_archive_from_expsyms_cmds=
7393
  thread_safe_flag_spec=
7394
  whole_archive_flag_spec=
7395
  # include_expsyms should be a list of space-separated symbols to be *always*
7396
  # included in the symbol list
7397
  include_expsyms=
7398
  # exclude_expsyms can be an extended regexp of symbols to exclude
7399
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7400
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7401
  # as well as any symbol that contains `d'.
7402
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7403
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7404
  # platforms (ab)use it in PIC code, but their linkers get confused if
7405
  # the symbol is explicitly referenced.  Since portable code cannot
7406
  # rely on this symbol name, it's probably fine to never include it in
7407
  # preloaded symbol tables.
7408
  extract_expsyms_cmds=
7409
 
7410
  case $host_os in
7411
  cygwin* | mingw* | pw32*)
7412
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7413
    # When not using gcc, we currently assume that we are using
7414
    # Microsoft Visual C++.
7415
    if test "$GCC" != yes; then
7416
      with_gnu_ld=no
7417
    fi
7418
    ;;
7419
  interix*)
7420
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7421
    with_gnu_ld=yes
7422
    ;;
7423
  openbsd*)
7424
    with_gnu_ld=no
7425
    ;;
7426
  esac
7427
 
7428
  ld_shlibs=yes
7429
  if test "$with_gnu_ld" = yes; then
7430
    # If archive_cmds runs LD, not CC, wlarc should be empty
7431
    wlarc='${wl}'
7432
 
7433
    # Set some defaults for GNU ld with shared library support. These
7434
    # are reset later if shared libraries are not supported. Putting them
7435
    # here allows them to be overridden if necessary.
7436
    runpath_var=LD_RUN_PATH
7437
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438
    export_dynamic_flag_spec='${wl}--export-dynamic'
7439
    # ancient GNU ld didn't support --whole-archive et. al.
7440
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7441
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7442
    else
7443
      whole_archive_flag_spec=
7444
    fi
7445
    supports_anon_versioning=no
7446
    case `$LD -v 2>&1` in
7447
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450
      *\ 2.11.*) ;; # other 2.11 versions
7451
      *) supports_anon_versioning=yes ;;
7452
    esac
7453
 
7454
    # See if GNU ld supports shared libraries.
7455
    case $host_os in
7456
    aix3* | aix4* | aix5*)
7457
      # On AIX/PPC, the GNU linker is very broken
7458
      if test "$host_cpu" != ia64; then
7459
        ld_shlibs=no
7460
        cat <<_LT_EOF 1>&2
7461
 
7462
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463
*** to be unable to reliably create shared libraries on AIX.
7464
*** Therefore, libtool is disabling shared libraries support.  If you
7465
*** really care for shared libraries, you may want to modify your PATH
7466
*** so that a non-GNU linker is found, and then restart.
7467
 
7468
_LT_EOF
7469
      fi
7470
      ;;
7471
 
7472
    amigaos*)
7473
      if test "$host_cpu" = m68k; then
7474
        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)'
7475
        hardcode_libdir_flag_spec='-L$libdir'
7476
        hardcode_minus_L=yes
7477
      fi
7478
 
7479
      # Samuel A. Falvo II  reports
7480
      # that the semantics of dynamic libraries on AmigaOS, at least up
7481
      # to version 4, is to share data among multiple programs linked
7482
      # with the same dynamic library.  Since this doesn't match the
7483
      # behavior of shared libraries on other platforms, we can't use
7484
      # them.
7485
      ld_shlibs=no
7486
      ;;
7487
 
7488
    beos*)
7489
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7490
        allow_undefined_flag=unsupported
7491
        # Joseph Beckenbach  says some releases of gcc
7492
        # support --undefined.  This deserves some investigation.  FIXME
7493
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494
      else
7495
        ld_shlibs=no
7496
      fi
7497
      ;;
7498
 
7499
    cygwin* | mingw* | pw32*)
7500
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7501
      # as there is no search path for DLLs.
7502
      hardcode_libdir_flag_spec='-L$libdir'
7503
      allow_undefined_flag=unsupported
7504
      always_export_symbols=no
7505
      enable_shared_with_static_runtimes=yes
7506
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7507
 
7508
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7509
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7510
        # If the export-symbols file already is a .def file (1st line
7511
        # is EXPORTS), use it as is; otherwise, prepend...
7512
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7513
          cp $export_symbols $output_objdir/$soname.def;
7514
        else
7515
          echo EXPORTS > $output_objdir/$soname.def;
7516
          cat $export_symbols >> $output_objdir/$soname.def;
7517
        fi~
7518
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7519
      else
7520
        ld_shlibs=no
7521
      fi
7522
      ;;
7523
 
7524
    interix[3-9]*)
7525
      hardcode_direct=no
7526
      hardcode_shlibpath_var=no
7527
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528
      export_dynamic_flag_spec='${wl}-E'
7529
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7530
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7531
      # default) and relocated if they conflict, which is a slow very memory
7532
      # consuming and fragmenting process.  To avoid this, we pick a random,
7533
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7534
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7535
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7536
      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'
7537
      ;;
7538
 
7539
    gnu* | linux* | tpf* | k*bsd*-gnu)
7540
      tmp_diet=no
7541
      if test "$host_os" = linux-dietlibc; then
7542
        case $cc_basename in
7543
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7544
        esac
7545
      fi
7546
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7547
         && test "$tmp_diet" = no
7548
      then
7549
        tmp_addflag=
7550
        case $cc_basename,$host_cpu in
7551
        pgcc*)                          # Portland Group C compiler
7552
          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'
7553
          tmp_addflag=' $pic_flag'
7554
          ;;
7555
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7556
          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'
7557
          tmp_addflag=' $pic_flag -Mnomain' ;;
7558
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7559
          tmp_addflag=' -i_dynamic' ;;
7560
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7561
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7562
        ifc* | ifort*)                  # Intel Fortran compiler
7563
          tmp_addflag=' -nofor_main' ;;
7564
        esac
7565
        case `$CC -V 2>&1 | sed 5q` in
7566
        *Sun\ C*)                       # Sun C 5.9
7567
          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'
7568
          compiler_needs_object=yes
7569
          tmp_sharedflag='-G' ;;
7570
        *Sun\ F*)                       # Sun Fortran 8.3
7571
          tmp_sharedflag='-G' ;;
7572
        *)
7573
          tmp_sharedflag='-shared' ;;
7574
        esac
7575
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7576
 
7577
        if test "x$supports_anon_versioning" = xyes; then
7578
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7579
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7580
            echo "local: *; };" >> $output_objdir/$libname.ver~
7581
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7582
        fi
7583
      else
7584
        ld_shlibs=no
7585
      fi
7586
      ;;
7587
 
7588
    netbsd*)
7589
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7590
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7591
        wlarc=
7592
      else
7593
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7594
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7595
      fi
7596
      ;;
7597
 
7598
    solaris*)
7599
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7600
        ld_shlibs=no
7601
        cat <<_LT_EOF 1>&2
7602
 
7603
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7604
*** create shared libraries on Solaris systems.  Therefore, libtool
7605
*** is disabling shared libraries support.  We urge you to upgrade GNU
7606
*** binutils to release 2.9.1 or newer.  Another option is to modify
7607
*** your PATH or compiler configuration so that the native linker is
7608
*** used, and then restart.
7609
 
7610
_LT_EOF
7611
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7612
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7613
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7614
      else
7615
        ld_shlibs=no
7616
      fi
7617
      ;;
7618
 
7619
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7620
      case `$LD -v 2>&1` in
7621
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7622
        ld_shlibs=no
7623
        cat <<_LT_EOF 1>&2
7624
 
7625
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7626
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7627
*** is disabling shared libraries support.  We urge you to upgrade GNU
7628
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7629
*** your PATH or compiler configuration so that the native linker is
7630
*** used, and then restart.
7631
 
7632
_LT_EOF
7633
        ;;
7634
        *)
7635
          # For security reasons, it is highly recommended that you always
7636
          # use absolute paths for naming shared libraries, and exclude the
7637
          # DT_RUNPATH tag from executables and libraries.  But doing so
7638
          # requires that you compile everything twice, which is a pain.
7639
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7640
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7641
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643
          else
7644
            ld_shlibs=no
7645
          fi
7646
        ;;
7647
      esac
7648
      ;;
7649
 
7650
    sunos4*)
7651
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7652
      wlarc=
7653
      hardcode_direct=yes
7654
      hardcode_shlibpath_var=no
7655
      ;;
7656
 
7657
    *)
7658
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7659
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661
      else
7662
        ld_shlibs=no
7663
      fi
7664
      ;;
7665
    esac
7666
 
7667
    if test "$ld_shlibs" = no; then
7668
      runpath_var=
7669
      hardcode_libdir_flag_spec=
7670
      export_dynamic_flag_spec=
7671
      whole_archive_flag_spec=
7672
    fi
7673
  else
7674
    # PORTME fill in a description of your system's linker (not GNU ld)
7675
    case $host_os in
7676
    aix3*)
7677
      allow_undefined_flag=unsupported
7678
      always_export_symbols=yes
7679
      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'
7680
      # Note: this linker hardcodes the directories in LIBPATH if there
7681
      # are no directories specified by -L.
7682
      hardcode_minus_L=yes
7683
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7684
        # Neither direct hardcoding nor static linking is supported with a
7685
        # broken collect2.
7686
        hardcode_direct=unsupported
7687
      fi
7688
      ;;
7689
 
7690
    aix4* | aix5*)
7691
      if test "$host_cpu" = ia64; then
7692
        # On IA64, the linker does run time linking by default, so we don't
7693
        # have to do anything special.
7694
        aix_use_runtimelinking=no
7695
        exp_sym_flag='-Bexport'
7696
        no_entry_flag=""
7697
      else
7698
        # If we're using GNU nm, then we don't want the "-C" option.
7699
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7700
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7701
          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'
7702
        else
7703
          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'
7704
        fi
7705
        aix_use_runtimelinking=no
7706
 
7707
        # Test if we are trying to use run time linking or normal
7708
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7709
        # need to do runtime linking.
7710
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7711
          for ld_flag in $LDFLAGS; do
7712
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7713
            aix_use_runtimelinking=yes
7714
            break
7715
          fi
7716
          done
7717
          ;;
7718
        esac
7719
 
7720
        exp_sym_flag='-bexport'
7721
        no_entry_flag='-bnoentry'
7722
      fi
7723
 
7724
      # When large executables or shared objects are built, AIX ld can
7725
      # have problems creating the table of contents.  If linking a library
7726
      # or program results in "error TOC overflow" add -mminimal-toc to
7727
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7728
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7729
 
7730
      archive_cmds=''
7731
      hardcode_direct=yes
7732
      hardcode_direct_absolute=yes
7733
      hardcode_libdir_separator=':'
7734
      link_all_deplibs=yes
7735
      file_list_spec='${wl}-f,'
7736
 
7737
      if test "$GCC" = yes; then
7738
        case $host_os in aix4.[012]|aix4.[012].*)
7739
        # We only want to do this on AIX 4.2 and lower, the check
7740
        # below for broken collect2 doesn't work under 4.3+
7741
          collect2name=`${CC} -print-prog-name=collect2`
7742
          if test -f "$collect2name" &&
7743
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7744
          then
7745
          # We have reworked collect2
7746
          :
7747
          else
7748
          # We have old collect2
7749
          hardcode_direct=unsupported
7750
          # It fails to find uninstalled libraries when the uninstalled
7751
          # path is not listed in the libpath.  Setting hardcode_minus_L
7752
          # to unsupported forces relinking
7753
          hardcode_minus_L=yes
7754
          hardcode_libdir_flag_spec='-L$libdir'
7755
          hardcode_libdir_separator=
7756
          fi
7757
          ;;
7758
        esac
7759
        shared_flag='-shared'
7760
        if test "$aix_use_runtimelinking" = yes; then
7761
          shared_flag="$shared_flag "'${wl}-G'
7762
        fi
7763
      else
7764
        # not using gcc
7765
        if test "$host_cpu" = ia64; then
7766
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7767
        # chokes on -Wl,-G. The following line is correct:
7768
          shared_flag='-G'
7769
        else
7770
          if test "$aix_use_runtimelinking" = yes; then
7771
            shared_flag='${wl}-G'
7772
          else
7773
            shared_flag='${wl}-bM:SRE'
7774
          fi
7775
        fi
7776
      fi
7777
 
7778
      # It seems that -bexpall does not export symbols beginning with
7779
      # underscore (_), so it is better to generate a list of symbols to export.
7780
      always_export_symbols=yes
7781
      if test "$aix_use_runtimelinking" = yes; then
7782
        # Warning - without using the other runtime loading flags (-brtl),
7783
        # -berok will link without error, but may produce a broken library.
7784
        allow_undefined_flag='-berok'
7785
        # Determine the default libpath from the value encoded in an
7786
        # empty executable.
7787
        cat >conftest.$ac_ext <<_ACEOF
7788
/* confdefs.h.  */
7789
_ACEOF
7790
cat confdefs.h >>conftest.$ac_ext
7791
cat >>conftest.$ac_ext <<_ACEOF
7792
/* end confdefs.h.  */
7793
 
7794
int
7795
main ()
7796
{
7797
 
7798
  ;
7799
  return 0;
7800
}
7801
_ACEOF
7802
rm -f conftest.$ac_objext conftest$ac_exeext
7803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804
  (eval $ac_link) 2>conftest.er1
7805
  ac_status=$?
7806
  grep -v '^ *+' conftest.er1 >conftest.err
7807
  rm -f conftest.er1
7808
  cat conftest.err >&5
7809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810
  (exit $ac_status); } &&
7811
         { ac_try='test -z "$ac_c_werror_flag"
7812
                         || test ! -s conftest.err'
7813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814
  (eval $ac_try) 2>&5
7815
  ac_status=$?
7816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817
  (exit $ac_status); }; } &&
7818
         { ac_try='test -s conftest$ac_exeext'
7819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820
  (eval $ac_try) 2>&5
7821
  ac_status=$?
7822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823
  (exit $ac_status); }; }; then
7824
 
7825
lt_aix_libpath_sed='
7826
    /Import File Strings/,/^$/ {
7827
        /^0/ {
7828
            s/^0  *\(.*\)$/\1/
7829
            p
7830
        }
7831
    }'
7832
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7833
# Check for a 64-bit object if we didn't find anything.
7834
if test -z "$aix_libpath"; then
7835
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7836
fi
7837
else
7838
  echo "$as_me: failed program was:" >&5
7839
sed 's/^/| /' conftest.$ac_ext >&5
7840
 
7841
fi
7842
rm -f conftest.err conftest.$ac_objext \
7843
      conftest$ac_exeext conftest.$ac_ext
7844
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7845
 
7846
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7847
        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"
7848
      else
7849
        if test "$host_cpu" = ia64; then
7850
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7851
          allow_undefined_flag="-z nodefs"
7852
          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"
7853
        else
7854
         # Determine the default libpath from the value encoded in an
7855
         # empty executable.
7856
         cat >conftest.$ac_ext <<_ACEOF
7857
/* confdefs.h.  */
7858
_ACEOF
7859
cat confdefs.h >>conftest.$ac_ext
7860
cat >>conftest.$ac_ext <<_ACEOF
7861
/* end confdefs.h.  */
7862
 
7863
int
7864
main ()
7865
{
7866
 
7867
  ;
7868
  return 0;
7869
}
7870
_ACEOF
7871
rm -f conftest.$ac_objext conftest$ac_exeext
7872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873
  (eval $ac_link) 2>conftest.er1
7874
  ac_status=$?
7875
  grep -v '^ *+' conftest.er1 >conftest.err
7876
  rm -f conftest.er1
7877
  cat conftest.err >&5
7878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
  (exit $ac_status); } &&
7880
         { ac_try='test -z "$ac_c_werror_flag"
7881
                         || test ! -s conftest.err'
7882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883
  (eval $ac_try) 2>&5
7884
  ac_status=$?
7885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
  (exit $ac_status); }; } &&
7887
         { ac_try='test -s conftest$ac_exeext'
7888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889
  (eval $ac_try) 2>&5
7890
  ac_status=$?
7891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
  (exit $ac_status); }; }; then
7893
 
7894
lt_aix_libpath_sed='
7895
    /Import File Strings/,/^$/ {
7896
        /^0/ {
7897
            s/^0  *\(.*\)$/\1/
7898
            p
7899
        }
7900
    }'
7901
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7902
# Check for a 64-bit object if we didn't find anything.
7903
if test -z "$aix_libpath"; then
7904
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7905
fi
7906
else
7907
  echo "$as_me: failed program was:" >&5
7908
sed 's/^/| /' conftest.$ac_ext >&5
7909
 
7910
fi
7911
rm -f conftest.err conftest.$ac_objext \
7912
      conftest$ac_exeext conftest.$ac_ext
7913
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7914
 
7915
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7916
          # Warning - without using the other run time loading flags,
7917
          # -berok will link without error, but may produce a broken library.
7918
          no_undefined_flag=' ${wl}-bernotok'
7919
          allow_undefined_flag=' ${wl}-berok'
7920
          # Exported symbols can be pulled into shared objects from archives
7921
          whole_archive_flag_spec='$convenience'
7922
          archive_cmds_need_lc=yes
7923
          # This is similar to how AIX traditionally builds its shared libraries.
7924
          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'
7925
        fi
7926
      fi
7927
      ;;
7928
 
7929
    amigaos*)
7930
      if test "$host_cpu" = m68k; then
7931
        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)'
7932
        hardcode_libdir_flag_spec='-L$libdir'
7933
        hardcode_minus_L=yes
7934
      fi
7935
      # see comment about different semantics on the GNU ld section
7936
      ld_shlibs=no
7937
      ;;
7938
 
7939
    bsdi[45]*)
7940
      export_dynamic_flag_spec=-rdynamic
7941
      ;;
7942
 
7943
    cygwin* | mingw* | pw32*)
7944
      # When not using gcc, we currently assume that we are using
7945
      # Microsoft Visual C++.
7946
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7947
      # no search path for DLLs.
7948
      hardcode_libdir_flag_spec=' '
7949
      allow_undefined_flag=unsupported
7950
      # Tell ltmain to make .lib files, not .a files.
7951
      libext=lib
7952
      # Tell ltmain to make .dll files, not .so files.
7953
      shrext_cmds=".dll"
7954
      # FIXME: Setting linknames here is a bad hack.
7955
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7956
      # The linker will automatically build a .lib file if we build a DLL.
7957
      old_archive_from_new_cmds='true'
7958
      # FIXME: Should let the user specify the lib program.
7959
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7960
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7961
      enable_shared_with_static_runtimes=yes
7962
      ;;
7963
 
7964
    darwin* | rhapsody*)
7965
      case $host_os in
7966
      rhapsody* | darwin1.[012])
7967
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
7968
        ;;
7969
      *) # Darwin 1.3 on
7970
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7971
        10.[012])
7972
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7973
          ;;
7974
        10.*)
7975
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7976
          ;;
7977
        esac
7978
        ;;
7979
      esac
7980
      archive_cmds_need_lc=no
7981
      hardcode_direct=no
7982
      hardcode_automatic=yes
7983
      hardcode_shlibpath_var=unsupported
7984
      whole_archive_flag_spec=''
7985
      link_all_deplibs=yes
7986
      if test "$GCC" = yes ; then
7987
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7988
  echo $ECHO_N "(cached) $ECHO_C" >&6
7989
else
7990
  lt_cv_apple_cc_single_mod=no
7991
        if test -z "${LT_MULTI_MODULE}"; then
7992
          # By default we will add the -single_module flag. You can override
7993
          # by either setting the environment variable LT_MULTI_MODULE
7994
          # non-empty at configure time, or by adding -multi-module to the
7995
          # link flags.
7996
          echo "int foo(void){return 1;}" > conftest.c
7997
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7998
              -dynamiclib ${wl}-single_module conftest.c
7999
          if test -f libconftest.dylib; then
8000
              lt_cv_apple_cc_single_mod=yes
8001
              rm libconftest.dylib
8002
          fi
8003
          rm conftest.$ac_ext
8004
        fi
8005
fi
8006
 
8007
        output_verbose_link_cmd=echo
8008
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8009
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8010
          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}'
8011
        else
8012
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013
          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}'
8014
        fi
8015
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8016
        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}'
8017
      else
8018
        case $cc_basename in
8019
        xlc*)
8020
          output_verbose_link_cmd=echo
8021
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8022
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024
          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}'
8025
          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}'
8026
          ;;
8027
        *)
8028
          ld_shlibs=no
8029
          ;;
8030
        esac
8031
      fi
8032
      ;;
8033
 
8034
    dgux*)
8035
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8036
      hardcode_libdir_flag_spec='-L$libdir'
8037
      hardcode_shlibpath_var=no
8038
      ;;
8039
 
8040
    freebsd1*)
8041
      ld_shlibs=no
8042
      ;;
8043
 
8044
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8045
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8046
    # does not break anything, and helps significantly (at the cost of a little
8047
    # extra space).
8048
    freebsd2.2*)
8049
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8050
      hardcode_libdir_flag_spec='-R$libdir'
8051
      hardcode_direct=yes
8052
      hardcode_shlibpath_var=no
8053
      ;;
8054
 
8055
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8056
    freebsd2*)
8057
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8058
      hardcode_direct=yes
8059
      hardcode_minus_L=yes
8060
      hardcode_shlibpath_var=no
8061
      ;;
8062
 
8063
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8064
    freebsd* | dragonfly*)
8065
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8066
      hardcode_libdir_flag_spec='-R$libdir'
8067
      hardcode_direct=yes
8068
      hardcode_shlibpath_var=no
8069
      ;;
8070
 
8071
    hpux9*)
8072
      if test "$GCC" = yes; then
8073
        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'
8074
      else
8075
        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'
8076
      fi
8077
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8078
      hardcode_libdir_separator=:
8079
      hardcode_direct=yes
8080
 
8081
      # hardcode_minus_L: Not really in the search PATH,
8082
      # but as the default location of the library.
8083
      hardcode_minus_L=yes
8084
      export_dynamic_flag_spec='${wl}-E'
8085
      ;;
8086
 
8087
    hpux10*)
8088
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8089
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8090
      else
8091
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8092
      fi
8093
      if test "$with_gnu_ld" = no; then
8094
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095
        hardcode_libdir_flag_spec_ld='+b $libdir'
8096
        hardcode_libdir_separator=:
8097
        hardcode_direct=yes
8098
        hardcode_direct_absolute=yes
8099
        export_dynamic_flag_spec='${wl}-E'
8100
        # hardcode_minus_L: Not really in the search PATH,
8101
        # but as the default location of the library.
8102
        hardcode_minus_L=yes
8103
      fi
8104
      ;;
8105
 
8106
    hpux11*)
8107
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8108
        case $host_cpu in
8109
        hppa*64*)
8110
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8111
          ;;
8112
        ia64*)
8113
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8114
          ;;
8115
        *)
8116
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8117
          ;;
8118
        esac
8119
      else
8120
        case $host_cpu in
8121
        hppa*64*)
8122
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123
          ;;
8124
        ia64*)
8125
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8126
          ;;
8127
        *)
8128
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129
          ;;
8130
        esac
8131
      fi
8132
      if test "$with_gnu_ld" = no; then
8133
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134
        hardcode_libdir_separator=:
8135
 
8136
        case $host_cpu in
8137
        hppa*64*|ia64*)
8138
          hardcode_direct=no
8139
          hardcode_shlibpath_var=no
8140
          ;;
8141
        *)
8142
          hardcode_direct=yes
8143
          hardcode_direct_absolute=yes
8144
          export_dynamic_flag_spec='${wl}-E'
8145
 
8146
          # hardcode_minus_L: Not really in the search PATH,
8147
          # but as the default location of the library.
8148
          hardcode_minus_L=yes
8149
          ;;
8150
        esac
8151
      fi
8152
      ;;
8153
 
8154
    irix5* | irix6* | nonstopux*)
8155
      if test "$GCC" = yes; then
8156
        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'
8157
        # Try to use the -exported_symbol ld option, if it does not
8158
        # work, assume that -exports_file does not work either and
8159
        # implicitly export all symbols.
8160
        save_LDFLAGS="$LDFLAGS"
8161
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8162
        cat >conftest.$ac_ext <<_ACEOF
8163
int foo(void) {}
8164
_ACEOF
8165
rm -f conftest.$ac_objext conftest$ac_exeext
8166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167
  (eval $ac_link) 2>conftest.er1
8168
  ac_status=$?
8169
  grep -v '^ *+' conftest.er1 >conftest.err
8170
  rm -f conftest.er1
8171
  cat conftest.err >&5
8172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
  (exit $ac_status); } &&
8174
         { ac_try='test -z "$ac_c_werror_flag"
8175
                         || test ! -s conftest.err'
8176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177
  (eval $ac_try) 2>&5
8178
  ac_status=$?
8179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180
  (exit $ac_status); }; } &&
8181
         { ac_try='test -s conftest$ac_exeext'
8182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183
  (eval $ac_try) 2>&5
8184
  ac_status=$?
8185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186
  (exit $ac_status); }; }; then
8187
  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'
8188
 
8189
else
8190
  echo "$as_me: failed program was:" >&5
8191
sed 's/^/| /' conftest.$ac_ext >&5
8192
 
8193
fi
8194
rm -f conftest.err conftest.$ac_objext \
8195
      conftest$ac_exeext conftest.$ac_ext
8196
        LDFLAGS="$save_LDFLAGS"
8197
      else
8198
        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'
8199
        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'
8200
      fi
8201
      archive_cmds_need_lc='no'
8202
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8203
      hardcode_libdir_separator=:
8204
      inherit_rpath=yes
8205
      link_all_deplibs=yes
8206
      ;;
8207
 
8208
    netbsd*)
8209
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8210
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8211
      else
8212
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8213
      fi
8214
      hardcode_libdir_flag_spec='-R$libdir'
8215
      hardcode_direct=yes
8216
      hardcode_shlibpath_var=no
8217
      ;;
8218
 
8219
    newsos6)
8220
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8221
      hardcode_direct=yes
8222
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8223
      hardcode_libdir_separator=:
8224
      hardcode_shlibpath_var=no
8225
      ;;
8226
 
8227
    *nto* | *qnx*)
8228
      ;;
8229
 
8230
    openbsd*)
8231
      hardcode_direct=yes
8232
      hardcode_shlibpath_var=no
8233
      hardcode_direct_absolute=yes
8234
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8235
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8237
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238
        export_dynamic_flag_spec='${wl}-E'
8239
      else
8240
        case $host_os in
8241
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8242
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243
          hardcode_libdir_flag_spec='-R$libdir'
8244
          ;;
8245
        *)
8246
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8247
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8248
          ;;
8249
        esac
8250
      fi
8251
      ;;
8252
 
8253
    os2*)
8254
      hardcode_libdir_flag_spec='-L$libdir'
8255
      hardcode_minus_L=yes
8256
      allow_undefined_flag=unsupported
8257
      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'
8258
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8259
      ;;
8260
 
8261
    osf3*)
8262
      if test "$GCC" = yes; then
8263
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8264
        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'
8265
      else
8266
        allow_undefined_flag=' -expect_unresolved \*'
8267
        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'
8268
      fi
8269
      archive_cmds_need_lc='no'
8270
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8271
      hardcode_libdir_separator=:
8272
      ;;
8273
 
8274
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8275
      if test "$GCC" = yes; then
8276
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8277
        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'
8278
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8279
      else
8280
        allow_undefined_flag=' -expect_unresolved \*'
8281
        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'
8282
        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~
8283
        $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'
8284
 
8285
        # Both c and cxx compiler support -rpath directly
8286
        hardcode_libdir_flag_spec='-rpath $libdir'
8287
      fi
8288
      archive_cmds_need_lc='no'
8289
      hardcode_libdir_separator=:
8290
      ;;
8291
 
8292
    solaris*)
8293
      no_undefined_flag=' -z defs'
8294
      if test "$GCC" = yes; then
8295
        wlarc='${wl}'
8296
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8297
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8298
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8299
      else
8300
        case `$CC -V 2>&1` in
8301
        *"Compilers 5.0"*)
8302
          wlarc=''
8303
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8306
          ;;
8307
        *)
8308
          wlarc='${wl}'
8309
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8310
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8311
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8312
          ;;
8313
        esac
8314
      fi
8315
      hardcode_libdir_flag_spec='-R$libdir'
8316
      hardcode_shlibpath_var=no
8317
      case $host_os in
8318
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8319
      *)
8320
        # The compiler driver will combine and reorder linker options,
8321
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8322
        # but is careful enough not to reorder.
8323
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8324
        if test "$GCC" = yes; then
8325
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8326
        else
8327
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8328
        fi
8329
        ;;
8330
      esac
8331
      link_all_deplibs=yes
8332
      ;;
8333
 
8334
    sunos4*)
8335
      if test "x$host_vendor" = xsequent; then
8336
        # Use $CC to link under sequent, because it throws in some extra .o
8337
        # files that make .init and .fini sections work.
8338
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8339
      else
8340
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8341
      fi
8342
      hardcode_libdir_flag_spec='-L$libdir'
8343
      hardcode_direct=yes
8344
      hardcode_minus_L=yes
8345
      hardcode_shlibpath_var=no
8346
      ;;
8347
 
8348
    sysv4)
8349
      case $host_vendor in
8350
        sni)
8351
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352
          hardcode_direct=yes # is this really true???
8353
        ;;
8354
        siemens)
8355
          ## LD is ld it makes a PLAMLIB
8356
          ## CC just makes a GrossModule.
8357
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8358
          reload_cmds='$CC -r -o $output$reload_objs'
8359
          hardcode_direct=no
8360
        ;;
8361
        motorola)
8362
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8364
        ;;
8365
      esac
8366
      runpath_var='LD_RUN_PATH'
8367
      hardcode_shlibpath_var=no
8368
      ;;
8369
 
8370
    sysv4.3*)
8371
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372
      hardcode_shlibpath_var=no
8373
      export_dynamic_flag_spec='-Bexport'
8374
      ;;
8375
 
8376
    sysv4*MP*)
8377
      if test -d /usr/nec; then
8378
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379
        hardcode_shlibpath_var=no
8380
        runpath_var=LD_RUN_PATH
8381
        hardcode_runpath_var=yes
8382
        ld_shlibs=yes
8383
      fi
8384
      ;;
8385
 
8386
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8387
      no_undefined_flag='${wl}-z,text'
8388
      archive_cmds_need_lc=no
8389
      hardcode_shlibpath_var=no
8390
      runpath_var='LD_RUN_PATH'
8391
 
8392
      if test "$GCC" = yes; then
8393
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8395
      else
8396
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398
      fi
8399
      ;;
8400
 
8401
    sysv5* | sco3.2v5* | sco5v6*)
8402
      # Note: We can NOT use -z defs as we might desire, because we do not
8403
      # link with -lc, and that would cause any symbols used from libc to
8404
      # always be unresolved, which means just about no library would
8405
      # ever link correctly.  If we're not using GNU ld we use -z text
8406
      # though, which does catch some bad symbols but isn't as heavy-handed
8407
      # as -z defs.
8408
      no_undefined_flag='${wl}-z,text'
8409
      allow_undefined_flag='${wl}-z,nodefs'
8410
      archive_cmds_need_lc=no
8411
      hardcode_shlibpath_var=no
8412
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8413
      hardcode_libdir_separator=':'
8414
      link_all_deplibs=yes
8415
      export_dynamic_flag_spec='${wl}-Bexport'
8416
      runpath_var='LD_RUN_PATH'
8417
 
8418
      if test "$GCC" = yes; then
8419
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8421
      else
8422
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424
      fi
8425
      ;;
8426
 
8427
    uts4*)
8428
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429
      hardcode_libdir_flag_spec='-L$libdir'
8430
      hardcode_shlibpath_var=no
8431
      ;;
8432
 
8433
    *)
8434
      ld_shlibs=no
8435
      ;;
8436
    esac
8437
 
8438
    if test x$host_vendor = xsni; then
8439
      case $host in
8440
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8441
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8442
        ;;
8443
      esac
8444
    fi
8445
  fi
8446
 
8447
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8448
echo "${ECHO_T}$ld_shlibs" >&6
8449
test "$ld_shlibs" = no && can_build_shared=no
8450
 
8451
with_gnu_ld=$with_gnu_ld
8452
 
8453
 
8454
 
8455
 
8456
 
8457
 
8458
 
8459
 
8460
 
8461
 
8462
 
8463
 
8464
 
8465
 
8466
 
8467
#
8468
# Do we need to explicitly link libc?
8469
#
8470
case "x$archive_cmds_need_lc" in
8471
x|xyes)
8472
  # Assume -lc should be added
8473
  archive_cmds_need_lc=yes
8474
 
8475
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8476
    case $archive_cmds in
8477
    *'~'*)
8478
      # FIXME: we may have to deal with multi-command sequences.
8479
      ;;
8480
    '$CC '*)
8481
      # Test whether the compiler implicitly links with -lc since on some
8482
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8483
      # to ld, don't add -lc before -lgcc.
8484
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8485
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8486
      $RM conftest*
8487
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488
 
8489
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490
  (eval $ac_compile) 2>&5
8491
  ac_status=$?
8492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493
  (exit $ac_status); } 2>conftest.err; then
8494
        soname=conftest
8495
        lib=conftest
8496
        libobjs=conftest.$ac_objext
8497
        deplibs=
8498
        wl=$lt_prog_compiler_wl
8499
        pic_flag=$lt_prog_compiler_pic
8500
        compiler_flags=-v
8501
        linker_flags=-v
8502
        verstring=
8503
        output_objdir=.
8504
        libname=conftest
8505
        lt_save_allow_undefined_flag=$allow_undefined_flag
8506
        allow_undefined_flag=
8507
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8508
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8509
  ac_status=$?
8510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511
  (exit $ac_status); }
8512
        then
8513
          archive_cmds_need_lc=no
8514
        else
8515
          archive_cmds_need_lc=yes
8516
        fi
8517
        allow_undefined_flag=$lt_save_allow_undefined_flag
8518
      else
8519
        cat conftest.err 1>&5
8520
      fi
8521
      $RM conftest*
8522
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8523
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8524
      ;;
8525
    esac
8526
  fi
8527
  ;;
8528
esac
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
 
8537
 
8538
 
8539
 
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
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
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8687
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8688
withGCC=$GCC
8689
if test "$withGCC" = yes; then
8690
  case $host_os in
8691
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8692
    *) lt_awk_arg="/^libraries:/" ;;
8693
  esac
8694
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8695
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8696
    # if the path contains ";" then we assume it to be the separator
8697
    # otherwise default to the standard path separator (i.e. ":") - it is
8698
    # assumed that no part of a normal pathname contains ";" but that should
8699
    # okay in the real world where ";" in dirpaths is itself problematic.
8700
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8701
  else
8702
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8703
  fi
8704
  # Ok, now we have the path, separated by spaces, we can step through it
8705
  # and add multilib dir if necessary.
8706
  lt_tmp_lt_search_path_spec=
8707
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8708
  for lt_sys_path in $lt_search_path_spec; do
8709
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8710
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8711
    else
8712
      test -d "$lt_sys_path" && \
8713
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8714
    fi
8715
  done
8716
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8717
BEGIN {RS=" "; FS="/|\n";} {
8718
  lt_foo="";
8719
  lt_count=0;
8720
  for (lt_i = NF; lt_i > 0; lt_i--) {
8721
    if ($lt_i != "" && $lt_i != ".") {
8722
      if ($lt_i == "..") {
8723
        lt_count++;
8724
      } else {
8725
        if (lt_count == 0) {
8726
          lt_foo="/" $lt_i lt_foo;
8727
        } else {
8728
          lt_count--;
8729
        }
8730
      }
8731
    }
8732
  }
8733
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8734
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8735
}'`
8736
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8737
else
8738
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739
fi
8740
library_names_spec=
8741
libname_spec='lib$name'
8742
soname_spec=
8743
shrext_cmds=".so"
8744
postinstall_cmds=
8745
postuninstall_cmds=
8746
finish_cmds=
8747
finish_eval=
8748
shlibpath_var=
8749
shlibpath_overrides_runpath=unknown
8750
version_type=none
8751
dynamic_linker="$host_os ld.so"
8752
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8753
need_lib_prefix=unknown
8754
hardcode_into_libs=no
8755
 
8756
# when you set need_version to no, make sure it does not cause -set_version
8757
# flags to be left without arguments
8758
need_version=unknown
8759
 
8760
case $host_os in
8761
aix3*)
8762
  version_type=linux
8763
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8764
  shlibpath_var=LIBPATH
8765
 
8766
  # AIX 3 has no versioning support, so we append a major version to the name.
8767
  soname_spec='${libname}${release}${shared_ext}$major'
8768
  ;;
8769
 
8770
aix4* | aix5*)
8771
  version_type=linux
8772
  need_lib_prefix=no
8773
  need_version=no
8774
  hardcode_into_libs=yes
8775
  if test "$host_cpu" = ia64; then
8776
    # AIX 5 supports IA64
8777
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8778
    shlibpath_var=LD_LIBRARY_PATH
8779
  else
8780
    # With GCC up to 2.95.x, collect2 would create an import file
8781
    # for dependence libraries.  The import file would start with
8782
    # the line `#! .'.  This would cause the generated library to
8783
    # depend on `.', always an invalid library.  This was fixed in
8784
    # development snapshots of GCC prior to 3.0.
8785
    case $host_os in
8786
      aix4 | aix4.[01] | aix4.[01].*)
8787
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8788
           echo ' yes '
8789
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8790
        :
8791
      else
8792
        can_build_shared=no
8793
      fi
8794
      ;;
8795
    esac
8796
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8797
    # soname into executable. Probably we can add versioning support to
8798
    # collect2, so additional links can be useful in future.
8799
    if test "$aix_use_runtimelinking" = yes; then
8800
      # If using run time linking (on AIX 4.2 or later) use lib.so
8801
      # instead of lib.a to let people know that these are not
8802
      # typical AIX shared libraries.
8803
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804
    else
8805
      # We preserve .a as extension for shared libraries through AIX4.2
8806
      # and later when we are not doing run time linking.
8807
      library_names_spec='${libname}${release}.a $libname.a'
8808
      soname_spec='${libname}${release}${shared_ext}$major'
8809
    fi
8810
    shlibpath_var=LIBPATH
8811
  fi
8812
  ;;
8813
 
8814
amigaos*)
8815
  if test "$host_cpu" = m68k; then
8816
    library_names_spec='$libname.ixlibrary $libname.a'
8817
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8818
    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'
8819
  else
8820
    dynamic_linker=no
8821
  fi
8822
  ;;
8823
 
8824
beos*)
8825
  library_names_spec='${libname}${shared_ext}'
8826
  dynamic_linker="$host_os ld.so"
8827
  shlibpath_var=LIBRARY_PATH
8828
  ;;
8829
 
8830
bsdi[45]*)
8831
  version_type=linux
8832
  need_version=no
8833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834
  soname_spec='${libname}${release}${shared_ext}$major'
8835
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8836
  shlibpath_var=LD_LIBRARY_PATH
8837
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8838
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8839
  # the default ld.so.conf also contains /usr/contrib/lib and
8840
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8841
  # libtool to hard-code these into programs
8842
  ;;
8843
 
8844
cygwin* | mingw* | pw32*)
8845
  version_type=windows
8846
  shrext_cmds=".dll"
8847
  need_version=no
8848
  need_lib_prefix=no
8849
 
8850
  case $withGCC,$host_os in
8851
  yes,cygwin* | yes,mingw* | yes,pw32*)
8852
    library_names_spec='$libname.dll.a'
8853
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8854
    postinstall_cmds='base_file=`basename \${file}`~
8855
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8856
      dldir=$destdir/`dirname \$dlpath`~
8857
      test -d \$dldir || mkdir -p \$dldir~
8858
      $install_prog $dir/$dlname \$dldir/$dlname~
8859
      chmod a+x \$dldir/$dlname~
8860
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8861
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8862
      fi'
8863
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8864
      dlpath=$dir/\$dldll~
8865
       $RM \$dlpath'
8866
    shlibpath_overrides_runpath=yes
8867
 
8868
    case $host_os in
8869
    cygwin*)
8870
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8871
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8872
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8873
      ;;
8874
    mingw*)
8875
      # MinGW DLLs use traditional 'lib' prefix
8876
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8877
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8878
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8879
        # It is most probably a Windows format PATH printed by
8880
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8881
        # path with ; separators, and with drive letters. We can handle the
8882
        # drive letters (cygwin fileutils understands them), so leave them,
8883
        # especially as we might pass files found there to a mingw objdump,
8884
        # which wouldn't understand a cygwinified path. Ahh.
8885
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8886
      else
8887
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8888
      fi
8889
      ;;
8890
    pw32*)
8891
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8892
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893
      ;;
8894
    esac
8895
    ;;
8896
 
8897
  *)
8898
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8899
    ;;
8900
  esac
8901
  dynamic_linker='Win32 ld.exe'
8902
  # FIXME: first we should search . and the directory the executable is in
8903
  shlibpath_var=PATH
8904
  ;;
8905
 
8906
darwin* | rhapsody*)
8907
  dynamic_linker="$host_os dyld"
8908
  version_type=darwin
8909
  need_lib_prefix=no
8910
  need_version=no
8911
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8912
  soname_spec='${libname}${release}${major}$shared_ext'
8913
  shlibpath_overrides_runpath=yes
8914
  shlibpath_var=DYLD_LIBRARY_PATH
8915
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8916
 
8917
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8918
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8919
  ;;
8920
 
8921
dgux*)
8922
  version_type=linux
8923
  need_lib_prefix=no
8924
  need_version=no
8925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8926
  soname_spec='${libname}${release}${shared_ext}$major'
8927
  shlibpath_var=LD_LIBRARY_PATH
8928
  ;;
8929
 
8930
freebsd1*)
8931
  dynamic_linker=no
8932
  ;;
8933
 
8934
freebsd* | dragonfly*)
8935
  # DragonFly does not have aout.  When/if they implement a new
8936
  # versioning mechanism, adjust this.
8937
  if test -x /usr/bin/objformat; then
8938
    objformat=`/usr/bin/objformat`
8939
  else
8940
    case $host_os in
8941
    freebsd[123]*) objformat=aout ;;
8942
    *) objformat=elf ;;
8943
    esac
8944
  fi
8945
  version_type=freebsd-$objformat
8946
  case $version_type in
8947
    freebsd-elf*)
8948
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8949
      need_version=no
8950
      need_lib_prefix=no
8951
      ;;
8952
    freebsd-*)
8953
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8954
      need_version=yes
8955
      ;;
8956
  esac
8957
  shlibpath_var=LD_LIBRARY_PATH
8958
  case $host_os in
8959
  freebsd2*)
8960
    shlibpath_overrides_runpath=yes
8961
    ;;
8962
  freebsd3.[01]* | freebsdelf3.[01]*)
8963
    shlibpath_overrides_runpath=yes
8964
    hardcode_into_libs=yes
8965
    ;;
8966
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8967
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8968
    shlibpath_overrides_runpath=no
8969
    hardcode_into_libs=yes
8970
    ;;
8971
  *) # from 4.6 on, and DragonFly
8972
    shlibpath_overrides_runpath=yes
8973
    hardcode_into_libs=yes
8974
    ;;
8975
  esac
8976
  ;;
8977
 
8978
gnu*)
8979
  version_type=linux
8980
  need_lib_prefix=no
8981
  need_version=no
8982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8983
  soname_spec='${libname}${release}${shared_ext}$major'
8984
  shlibpath_var=LD_LIBRARY_PATH
8985
  hardcode_into_libs=yes
8986
  ;;
8987
 
8988
hpux9* | hpux10* | hpux11*)
8989
  # Give a soname corresponding to the major version so that dld.sl refuses to
8990
  # link against other versions.
8991
  version_type=sunos
8992
  need_lib_prefix=no
8993
  need_version=no
8994
  case $host_cpu in
8995
  ia64*)
8996
    shrext_cmds='.so'
8997
    hardcode_into_libs=yes
8998
    dynamic_linker="$host_os dld.so"
8999
    shlibpath_var=LD_LIBRARY_PATH
9000
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002
    soname_spec='${libname}${release}${shared_ext}$major'
9003
    if test "X$HPUX_IA64_MODE" = X32; then
9004
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9005
    else
9006
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9007
    fi
9008
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9009
    ;;
9010
  hppa*64*)
9011
    shrext_cmds='.sl'
9012
    hardcode_into_libs=yes
9013
    dynamic_linker="$host_os dld.sl"
9014
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9015
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017
    soname_spec='${libname}${release}${shared_ext}$major'
9018
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9019
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9020
    ;;
9021
  *)
9022
    shrext_cmds='.sl'
9023
    dynamic_linker="$host_os dld.sl"
9024
    shlibpath_var=SHLIB_PATH
9025
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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
    ;;
9029
  esac
9030
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9031
  postinstall_cmds='chmod 555 $lib'
9032
  ;;
9033
 
9034
interix[3-9]*)
9035
  version_type=linux
9036
  need_lib_prefix=no
9037
  need_version=no
9038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039
  soname_spec='${libname}${release}${shared_ext}$major'
9040
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9041
  shlibpath_var=LD_LIBRARY_PATH
9042
  shlibpath_overrides_runpath=no
9043
  hardcode_into_libs=yes
9044
  ;;
9045
 
9046
irix5* | irix6* | nonstopux*)
9047
  case $host_os in
9048
    nonstopux*) version_type=nonstopux ;;
9049
    *)
9050
        if test "$lt_cv_prog_gnu_ld" = yes; then
9051
                version_type=linux
9052
        else
9053
                version_type=irix
9054
        fi ;;
9055
  esac
9056
  need_lib_prefix=no
9057
  need_version=no
9058
  soname_spec='${libname}${release}${shared_ext}$major'
9059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9060
  case $host_os in
9061
  irix5* | nonstopux*)
9062
    libsuff= shlibsuff=
9063
    ;;
9064
  *)
9065
    case $LD in # libtool.m4 will add one of these switches to LD
9066
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9067
      libsuff= shlibsuff= libmagic=32-bit;;
9068
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9069
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9070
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9071
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9072
    *) libsuff= shlibsuff= libmagic=never-match;;
9073
    esac
9074
    ;;
9075
  esac
9076
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9077
  shlibpath_overrides_runpath=no
9078
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9079
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9080
  hardcode_into_libs=yes
9081
  ;;
9082
 
9083
# No shared lib support for Linux oldld, aout, or coff.
9084
linux*oldld* | linux*aout* | linux*coff*)
9085
  dynamic_linker=no
9086
  ;;
9087
 
9088
# This must be Linux ELF.
9089
linux* | k*bsd*-gnu)
9090
  version_type=linux
9091
  need_lib_prefix=no
9092
  need_version=no
9093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094
  soname_spec='${libname}${release}${shared_ext}$major'
9095
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9096
  shlibpath_var=LD_LIBRARY_PATH
9097
  shlibpath_overrides_runpath=no
9098
  # Some binutils ld are patched to set DT_RUNPATH
9099
  save_LDFLAGS=$LDFLAGS
9100
  save_libdir=$libdir
9101
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9102
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9103
  cat >conftest.$ac_ext <<_ACEOF
9104
/* confdefs.h.  */
9105
_ACEOF
9106
cat confdefs.h >>conftest.$ac_ext
9107
cat >>conftest.$ac_ext <<_ACEOF
9108
/* end confdefs.h.  */
9109
 
9110
int
9111
main ()
9112
{
9113
 
9114
  ;
9115
  return 0;
9116
}
9117
_ACEOF
9118
rm -f conftest.$ac_objext conftest$ac_exeext
9119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120
  (eval $ac_link) 2>conftest.er1
9121
  ac_status=$?
9122
  grep -v '^ *+' conftest.er1 >conftest.err
9123
  rm -f conftest.er1
9124
  cat conftest.err >&5
9125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126
  (exit $ac_status); } &&
9127
         { ac_try='test -z "$ac_c_werror_flag"
9128
                         || test ! -s conftest.err'
9129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130
  (eval $ac_try) 2>&5
9131
  ac_status=$?
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
  (exit $ac_status); }; } &&
9134
         { ac_try='test -s conftest$ac_exeext'
9135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136
  (eval $ac_try) 2>&5
9137
  ac_status=$?
9138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139
  (exit $ac_status); }; }; then
9140
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9141
  shlibpath_overrides_runpath=yes
9142
fi
9143
 
9144
else
9145
  echo "$as_me: failed program was:" >&5
9146
sed 's/^/| /' conftest.$ac_ext >&5
9147
 
9148
fi
9149
rm -f conftest.err conftest.$ac_objext \
9150
      conftest$ac_exeext conftest.$ac_ext
9151
  LDFLAGS=$save_LDFLAGS
9152
  libdir=$save_libdir
9153
 
9154
  # This implies no fast_install, which is unacceptable.
9155
  # Some rework will be needed to allow for fast_install
9156
  # before this can be enabled.
9157
  hardcode_into_libs=yes
9158
 
9159
  # Append ld.so.conf contents to the search path
9160
  if test -f /etc/ld.so.conf; then
9161
    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' ' '`
9162
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163
  fi
9164
 
9165
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9166
  # powerpc, because MkLinux only supported shared libraries with the
9167
  # GNU dynamic linker.  Since this was broken with cross compilers,
9168
  # most powerpc-linux boxes support dynamic linking these days and
9169
  # people can always --disable-shared, the test was removed, and we
9170
  # assume the GNU/Linux dynamic linker is in use.
9171
  dynamic_linker='GNU/Linux ld.so'
9172
  ;;
9173
 
9174
netbsd*)
9175
  version_type=sunos
9176
  need_lib_prefix=no
9177
  need_version=no
9178
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9179
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9180
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9181
    dynamic_linker='NetBSD (a.out) ld.so'
9182
  else
9183
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184
    soname_spec='${libname}${release}${shared_ext}$major'
9185
    dynamic_linker='NetBSD ld.elf_so'
9186
  fi
9187
  shlibpath_var=LD_LIBRARY_PATH
9188
  shlibpath_overrides_runpath=yes
9189
  hardcode_into_libs=yes
9190
  ;;
9191
 
9192
newsos6)
9193
  version_type=linux
9194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195
  shlibpath_var=LD_LIBRARY_PATH
9196
  shlibpath_overrides_runpath=yes
9197
  ;;
9198
 
9199
*nto* | *qnx*)
9200
  version_type=qnx
9201
  need_lib_prefix=no
9202
  need_version=no
9203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204
  soname_spec='${libname}${release}${shared_ext}$major'
9205
  shlibpath_var=LD_LIBRARY_PATH
9206
  shlibpath_overrides_runpath=no
9207
  hardcode_into_libs=yes
9208
  dynamic_linker='ldqnx.so'
9209
  ;;
9210
 
9211
openbsd*)
9212
  version_type=sunos
9213
  sys_lib_dlsearch_path_spec="/usr/lib"
9214
  need_lib_prefix=no
9215
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9216
  case $host_os in
9217
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9218
    *)                          need_version=no  ;;
9219
  esac
9220
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9222
  shlibpath_var=LD_LIBRARY_PATH
9223
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9224
    case $host_os in
9225
      openbsd2.[89] | openbsd2.[89].*)
9226
        shlibpath_overrides_runpath=no
9227
        ;;
9228
      *)
9229
        shlibpath_overrides_runpath=yes
9230
        ;;
9231
      esac
9232
  else
9233
    shlibpath_overrides_runpath=yes
9234
  fi
9235
  ;;
9236
 
9237
os2*)
9238
  libname_spec='$name'
9239
  shrext_cmds=".dll"
9240
  need_lib_prefix=no
9241
  library_names_spec='$libname${shared_ext} $libname.a'
9242
  dynamic_linker='OS/2 ld.exe'
9243
  shlibpath_var=LIBPATH
9244
  ;;
9245
 
9246
osf3* | osf4* | osf5*)
9247
  version_type=osf
9248
  need_lib_prefix=no
9249
  need_version=no
9250
  soname_spec='${libname}${release}${shared_ext}$major'
9251
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252
  shlibpath_var=LD_LIBRARY_PATH
9253
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9254
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9255
  ;;
9256
 
9257
rdos*)
9258
  dynamic_linker=no
9259
  ;;
9260
 
9261
solaris*)
9262
  version_type=linux
9263
  need_lib_prefix=no
9264
  need_version=no
9265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266
  soname_spec='${libname}${release}${shared_ext}$major'
9267
  shlibpath_var=LD_LIBRARY_PATH
9268
  shlibpath_overrides_runpath=yes
9269
  hardcode_into_libs=yes
9270
  # ldd complains unless libraries are executable
9271
  postinstall_cmds='chmod +x $lib'
9272
  ;;
9273
 
9274
sunos4*)
9275
  version_type=sunos
9276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9277
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9278
  shlibpath_var=LD_LIBRARY_PATH
9279
  shlibpath_overrides_runpath=yes
9280
  if test "$with_gnu_ld" = yes; then
9281
    need_lib_prefix=no
9282
  fi
9283
  need_version=yes
9284
  ;;
9285
 
9286
sysv4 | sysv4.3*)
9287
  version_type=linux
9288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289
  soname_spec='${libname}${release}${shared_ext}$major'
9290
  shlibpath_var=LD_LIBRARY_PATH
9291
  case $host_vendor in
9292
    sni)
9293
      shlibpath_overrides_runpath=no
9294
      need_lib_prefix=no
9295
      runpath_var=LD_RUN_PATH
9296
      ;;
9297
    siemens)
9298
      need_lib_prefix=no
9299
      ;;
9300
    motorola)
9301
      need_lib_prefix=no
9302
      need_version=no
9303
      shlibpath_overrides_runpath=no
9304
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9305
      ;;
9306
  esac
9307
  ;;
9308
 
9309
sysv4*MP*)
9310
  if test -d /usr/nec ;then
9311
    version_type=linux
9312
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9313
    soname_spec='$libname${shared_ext}.$major'
9314
    shlibpath_var=LD_LIBRARY_PATH
9315
  fi
9316
  ;;
9317
 
9318
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9319
  version_type=freebsd-elf
9320
  need_lib_prefix=no
9321
  need_version=no
9322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9323
  soname_spec='${libname}${release}${shared_ext}$major'
9324
  shlibpath_var=LD_LIBRARY_PATH
9325
  shlibpath_overrides_runpath=yes
9326
  hardcode_into_libs=yes
9327
  if test "$with_gnu_ld" = yes; then
9328
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9329
  else
9330
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9331
    case $host_os in
9332
      sco3.2v5*)
9333
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9334
        ;;
9335
    esac
9336
  fi
9337
  sys_lib_dlsearch_path_spec='/usr/lib'
9338
  ;;
9339
 
9340
tpf*)
9341
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9342
  version_type=linux
9343
  need_lib_prefix=no
9344
  need_version=no
9345
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346
  shlibpath_var=LD_LIBRARY_PATH
9347
  shlibpath_overrides_runpath=no
9348
  hardcode_into_libs=yes
9349
  ;;
9350
 
9351
uts4*)
9352
  version_type=linux
9353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354
  soname_spec='${libname}${release}${shared_ext}$major'
9355
  shlibpath_var=LD_LIBRARY_PATH
9356
  ;;
9357
 
9358
*)
9359
  dynamic_linker=no
9360
  ;;
9361
esac
9362
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363
echo "${ECHO_T}$dynamic_linker" >&6
9364
test "$dynamic_linker" = no && can_build_shared=no
9365
 
9366
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367
if test "$GCC" = yes; then
9368
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369
fi
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
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
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9458
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9459
hardcode_action=
9460
if test -n "$hardcode_libdir_flag_spec" ||
9461
   test -n "$runpath_var" ||
9462
   test "X$hardcode_automatic" = "Xyes" ; then
9463
 
9464
  # We can hardcode non-existent directories.
9465
  if test "$hardcode_direct" != no &&
9466
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9467
     # have to relink, otherwise we might link with an installed library
9468
     # when we should be linking with a yet-to-be-installed one
9469
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9470
     test "$hardcode_minus_L" != no; then
9471
    # Linking always hardcodes the temporary library directory.
9472
    hardcode_action=relink
9473
  else
9474
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9475
    hardcode_action=immediate
9476
  fi
9477
else
9478
  # We cannot hardcode anything, or else we can only hardcode existing
9479
  # directories.
9480
  hardcode_action=unsupported
9481
fi
9482
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9483
echo "${ECHO_T}$hardcode_action" >&6
9484
 
9485
if test "$hardcode_action" = relink ||
9486
   test "$inherit_rpath" = yes; then
9487
  # Fast installation is not supported
9488
  enable_fast_install=no
9489
elif test "$shlibpath_overrides_runpath" = yes ||
9490
     test "$enable_shared" = no; then
9491
  # Fast installation is not necessary
9492
  enable_fast_install=needless
9493
fi
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
  if test "x$enable_dlopen" != xyes; then
9501
  enable_dlopen=unknown
9502
  enable_dlopen_self=unknown
9503
  enable_dlopen_self_static=unknown
9504
else
9505
  lt_cv_dlopen=no
9506
  lt_cv_dlopen_libs=
9507
 
9508
  case $host_os in
9509
  beos*)
9510
    lt_cv_dlopen="load_add_on"
9511
    lt_cv_dlopen_libs=
9512
    lt_cv_dlopen_self=yes
9513
    ;;
9514
 
9515
  mingw* | pw32*)
9516
    lt_cv_dlopen="LoadLibrary"
9517
    lt_cv_dlopen_libs=
9518
    ;;
9519
 
9520
  cygwin*)
9521
    lt_cv_dlopen="dlopen"
9522
    lt_cv_dlopen_libs=
9523
    ;;
9524
 
9525
  darwin*)
9526
  # if libdl is installed we need to link against it
9527
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9529
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530
  echo $ECHO_N "(cached) $ECHO_C" >&6
9531
else
9532
  ac_check_lib_save_LIBS=$LIBS
9533
LIBS="-ldl  $LIBS"
9534
cat >conftest.$ac_ext <<_ACEOF
9535
/* confdefs.h.  */
9536
_ACEOF
9537
cat confdefs.h >>conftest.$ac_ext
9538
cat >>conftest.$ac_ext <<_ACEOF
9539
/* end confdefs.h.  */
9540
 
9541
/* Override any gcc2 internal prototype to avoid an error.  */
9542
#ifdef __cplusplus
9543
extern "C"
9544
#endif
9545
/* We use char because int might match the return type of a gcc2
9546
   builtin and then its argument prototype would still apply.  */
9547
char dlopen ();
9548
int
9549
main ()
9550
{
9551
dlopen ();
9552
  ;
9553
  return 0;
9554
}
9555
_ACEOF
9556
rm -f conftest.$ac_objext conftest$ac_exeext
9557
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558
  (eval $ac_link) 2>conftest.er1
9559
  ac_status=$?
9560
  grep -v '^ *+' conftest.er1 >conftest.err
9561
  rm -f conftest.er1
9562
  cat conftest.err >&5
9563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564
  (exit $ac_status); } &&
9565
         { ac_try='test -z "$ac_c_werror_flag"
9566
                         || test ! -s conftest.err'
9567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568
  (eval $ac_try) 2>&5
9569
  ac_status=$?
9570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571
  (exit $ac_status); }; } &&
9572
         { ac_try='test -s conftest$ac_exeext'
9573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574
  (eval $ac_try) 2>&5
9575
  ac_status=$?
9576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577
  (exit $ac_status); }; }; then
9578
  ac_cv_lib_dl_dlopen=yes
9579
else
9580
  echo "$as_me: failed program was:" >&5
9581
sed 's/^/| /' conftest.$ac_ext >&5
9582
 
9583
ac_cv_lib_dl_dlopen=no
9584
fi
9585
rm -f conftest.err conftest.$ac_objext \
9586
      conftest$ac_exeext conftest.$ac_ext
9587
LIBS=$ac_check_lib_save_LIBS
9588
fi
9589
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9590
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9591
if test $ac_cv_lib_dl_dlopen = yes; then
9592
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9593
else
9594
 
9595
    lt_cv_dlopen="dyld"
9596
    lt_cv_dlopen_libs=
9597
    lt_cv_dlopen_self=yes
9598
 
9599
fi
9600
 
9601
    ;;
9602
 
9603
  *)
9604
    echo "$as_me:$LINENO: checking for shl_load" >&5
9605
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9606
if test "${ac_cv_func_shl_load+set}" = set; then
9607
  echo $ECHO_N "(cached) $ECHO_C" >&6
9608
else
9609
  cat >conftest.$ac_ext <<_ACEOF
9610
/* confdefs.h.  */
9611
_ACEOF
9612
cat confdefs.h >>conftest.$ac_ext
9613
cat >>conftest.$ac_ext <<_ACEOF
9614
/* end confdefs.h.  */
9615
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9616
   For example, HP-UX 11i  declares gettimeofday.  */
9617
#define shl_load innocuous_shl_load
9618
 
9619
/* System header to define __stub macros and hopefully few prototypes,
9620
    which can conflict with char shl_load (); below.
9621
    Prefer  to  if __STDC__ is defined, since
9622
     exists even on freestanding compilers.  */
9623
 
9624
#ifdef __STDC__
9625
# include 
9626
#else
9627
# include 
9628
#endif
9629
 
9630
#undef shl_load
9631
 
9632
/* Override any gcc2 internal prototype to avoid an error.  */
9633
#ifdef __cplusplus
9634
extern "C"
9635
{
9636
#endif
9637
/* We use char because int might match the return type of a gcc2
9638
   builtin and then its argument prototype would still apply.  */
9639
char shl_load ();
9640
/* The GNU C library defines this for functions which it implements
9641
    to always fail with ENOSYS.  Some functions are actually named
9642
    something starting with __ and the normal name is an alias.  */
9643
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9644
choke me
9645
#else
9646
char (*f) () = shl_load;
9647
#endif
9648
#ifdef __cplusplus
9649
}
9650
#endif
9651
 
9652
int
9653
main ()
9654
{
9655
return f != shl_load;
9656
  ;
9657
  return 0;
9658
}
9659
_ACEOF
9660
rm -f conftest.$ac_objext conftest$ac_exeext
9661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662
  (eval $ac_link) 2>conftest.er1
9663
  ac_status=$?
9664
  grep -v '^ *+' conftest.er1 >conftest.err
9665
  rm -f conftest.er1
9666
  cat conftest.err >&5
9667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668
  (exit $ac_status); } &&
9669
         { ac_try='test -z "$ac_c_werror_flag"
9670
                         || test ! -s conftest.err'
9671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672
  (eval $ac_try) 2>&5
9673
  ac_status=$?
9674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
  (exit $ac_status); }; } &&
9676
         { ac_try='test -s conftest$ac_exeext'
9677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678
  (eval $ac_try) 2>&5
9679
  ac_status=$?
9680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681
  (exit $ac_status); }; }; then
9682
  ac_cv_func_shl_load=yes
9683
else
9684
  echo "$as_me: failed program was:" >&5
9685
sed 's/^/| /' conftest.$ac_ext >&5
9686
 
9687
ac_cv_func_shl_load=no
9688
fi
9689
rm -f conftest.err conftest.$ac_objext \
9690
      conftest$ac_exeext conftest.$ac_ext
9691
fi
9692
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9693
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9694
if test $ac_cv_func_shl_load = yes; then
9695
  lt_cv_dlopen="shl_load"
9696
else
9697
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9698
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9699
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9700
  echo $ECHO_N "(cached) $ECHO_C" >&6
9701
else
9702
  ac_check_lib_save_LIBS=$LIBS
9703
LIBS="-ldld  $LIBS"
9704
cat >conftest.$ac_ext <<_ACEOF
9705
/* confdefs.h.  */
9706
_ACEOF
9707
cat confdefs.h >>conftest.$ac_ext
9708
cat >>conftest.$ac_ext <<_ACEOF
9709
/* end confdefs.h.  */
9710
 
9711
/* Override any gcc2 internal prototype to avoid an error.  */
9712
#ifdef __cplusplus
9713
extern "C"
9714
#endif
9715
/* We use char because int might match the return type of a gcc2
9716
   builtin and then its argument prototype would still apply.  */
9717
char shl_load ();
9718
int
9719
main ()
9720
{
9721
shl_load ();
9722
  ;
9723
  return 0;
9724
}
9725
_ACEOF
9726
rm -f conftest.$ac_objext conftest$ac_exeext
9727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728
  (eval $ac_link) 2>conftest.er1
9729
  ac_status=$?
9730
  grep -v '^ *+' conftest.er1 >conftest.err
9731
  rm -f conftest.er1
9732
  cat conftest.err >&5
9733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734
  (exit $ac_status); } &&
9735
         { ac_try='test -z "$ac_c_werror_flag"
9736
                         || test ! -s conftest.err'
9737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738
  (eval $ac_try) 2>&5
9739
  ac_status=$?
9740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741
  (exit $ac_status); }; } &&
9742
         { ac_try='test -s conftest$ac_exeext'
9743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744
  (eval $ac_try) 2>&5
9745
  ac_status=$?
9746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747
  (exit $ac_status); }; }; then
9748
  ac_cv_lib_dld_shl_load=yes
9749
else
9750
  echo "$as_me: failed program was:" >&5
9751
sed 's/^/| /' conftest.$ac_ext >&5
9752
 
9753
ac_cv_lib_dld_shl_load=no
9754
fi
9755
rm -f conftest.err conftest.$ac_objext \
9756
      conftest$ac_exeext conftest.$ac_ext
9757
LIBS=$ac_check_lib_save_LIBS
9758
fi
9759
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9761
if test $ac_cv_lib_dld_shl_load = yes; then
9762
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9763
else
9764
  echo "$as_me:$LINENO: checking for dlopen" >&5
9765
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9766
if test "${ac_cv_func_dlopen+set}" = set; then
9767
  echo $ECHO_N "(cached) $ECHO_C" >&6
9768
else
9769
  cat >conftest.$ac_ext <<_ACEOF
9770
/* confdefs.h.  */
9771
_ACEOF
9772
cat confdefs.h >>conftest.$ac_ext
9773
cat >>conftest.$ac_ext <<_ACEOF
9774
/* end confdefs.h.  */
9775
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9776
   For example, HP-UX 11i  declares gettimeofday.  */
9777
#define dlopen innocuous_dlopen
9778
 
9779
/* System header to define __stub macros and hopefully few prototypes,
9780
    which can conflict with char dlopen (); below.
9781
    Prefer  to  if __STDC__ is defined, since
9782
     exists even on freestanding compilers.  */
9783
 
9784
#ifdef __STDC__
9785
# include 
9786
#else
9787
# include 
9788
#endif
9789
 
9790
#undef dlopen
9791
 
9792
/* Override any gcc2 internal prototype to avoid an error.  */
9793
#ifdef __cplusplus
9794
extern "C"
9795
{
9796
#endif
9797
/* We use char because int might match the return type of a gcc2
9798
   builtin and then its argument prototype would still apply.  */
9799
char dlopen ();
9800
/* The GNU C library defines this for functions which it implements
9801
    to always fail with ENOSYS.  Some functions are actually named
9802
    something starting with __ and the normal name is an alias.  */
9803
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9804
choke me
9805
#else
9806
char (*f) () = dlopen;
9807
#endif
9808
#ifdef __cplusplus
9809
}
9810
#endif
9811
 
9812
int
9813
main ()
9814
{
9815
return f != dlopen;
9816
  ;
9817
  return 0;
9818
}
9819
_ACEOF
9820
rm -f conftest.$ac_objext conftest$ac_exeext
9821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822
  (eval $ac_link) 2>conftest.er1
9823
  ac_status=$?
9824
  grep -v '^ *+' conftest.er1 >conftest.err
9825
  rm -f conftest.er1
9826
  cat conftest.err >&5
9827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828
  (exit $ac_status); } &&
9829
         { ac_try='test -z "$ac_c_werror_flag"
9830
                         || test ! -s conftest.err'
9831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832
  (eval $ac_try) 2>&5
9833
  ac_status=$?
9834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835
  (exit $ac_status); }; } &&
9836
         { ac_try='test -s conftest$ac_exeext'
9837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838
  (eval $ac_try) 2>&5
9839
  ac_status=$?
9840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841
  (exit $ac_status); }; }; then
9842
  ac_cv_func_dlopen=yes
9843
else
9844
  echo "$as_me: failed program was:" >&5
9845
sed 's/^/| /' conftest.$ac_ext >&5
9846
 
9847
ac_cv_func_dlopen=no
9848
fi
9849
rm -f conftest.err conftest.$ac_objext \
9850
      conftest$ac_exeext conftest.$ac_ext
9851
fi
9852
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9853
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9854
if test $ac_cv_func_dlopen = yes; then
9855
  lt_cv_dlopen="dlopen"
9856
else
9857
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9859
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860
  echo $ECHO_N "(cached) $ECHO_C" >&6
9861
else
9862
  ac_check_lib_save_LIBS=$LIBS
9863
LIBS="-ldl  $LIBS"
9864
cat >conftest.$ac_ext <<_ACEOF
9865
/* confdefs.h.  */
9866
_ACEOF
9867
cat confdefs.h >>conftest.$ac_ext
9868
cat >>conftest.$ac_ext <<_ACEOF
9869
/* end confdefs.h.  */
9870
 
9871
/* Override any gcc2 internal prototype to avoid an error.  */
9872
#ifdef __cplusplus
9873
extern "C"
9874
#endif
9875
/* We use char because int might match the return type of a gcc2
9876
   builtin and then its argument prototype would still apply.  */
9877
char dlopen ();
9878
int
9879
main ()
9880
{
9881
dlopen ();
9882
  ;
9883
  return 0;
9884
}
9885
_ACEOF
9886
rm -f conftest.$ac_objext conftest$ac_exeext
9887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888
  (eval $ac_link) 2>conftest.er1
9889
  ac_status=$?
9890
  grep -v '^ *+' conftest.er1 >conftest.err
9891
  rm -f conftest.er1
9892
  cat conftest.err >&5
9893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894
  (exit $ac_status); } &&
9895
         { ac_try='test -z "$ac_c_werror_flag"
9896
                         || test ! -s conftest.err'
9897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898
  (eval $ac_try) 2>&5
9899
  ac_status=$?
9900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901
  (exit $ac_status); }; } &&
9902
         { ac_try='test -s conftest$ac_exeext'
9903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904
  (eval $ac_try) 2>&5
9905
  ac_status=$?
9906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907
  (exit $ac_status); }; }; then
9908
  ac_cv_lib_dl_dlopen=yes
9909
else
9910
  echo "$as_me: failed program was:" >&5
9911
sed 's/^/| /' conftest.$ac_ext >&5
9912
 
9913
ac_cv_lib_dl_dlopen=no
9914
fi
9915
rm -f conftest.err conftest.$ac_objext \
9916
      conftest$ac_exeext conftest.$ac_ext
9917
LIBS=$ac_check_lib_save_LIBS
9918
fi
9919
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9920
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9921
if test $ac_cv_lib_dl_dlopen = yes; then
9922
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9923
else
9924
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9925
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9926
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9927
  echo $ECHO_N "(cached) $ECHO_C" >&6
9928
else
9929
  ac_check_lib_save_LIBS=$LIBS
9930
LIBS="-lsvld  $LIBS"
9931
cat >conftest.$ac_ext <<_ACEOF
9932
/* confdefs.h.  */
9933
_ACEOF
9934
cat confdefs.h >>conftest.$ac_ext
9935
cat >>conftest.$ac_ext <<_ACEOF
9936
/* end confdefs.h.  */
9937
 
9938
/* Override any gcc2 internal prototype to avoid an error.  */
9939
#ifdef __cplusplus
9940
extern "C"
9941
#endif
9942
/* We use char because int might match the return type of a gcc2
9943
   builtin and then its argument prototype would still apply.  */
9944
char dlopen ();
9945
int
9946
main ()
9947
{
9948
dlopen ();
9949
  ;
9950
  return 0;
9951
}
9952
_ACEOF
9953
rm -f conftest.$ac_objext conftest$ac_exeext
9954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955
  (eval $ac_link) 2>conftest.er1
9956
  ac_status=$?
9957
  grep -v '^ *+' conftest.er1 >conftest.err
9958
  rm -f conftest.er1
9959
  cat conftest.err >&5
9960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961
  (exit $ac_status); } &&
9962
         { ac_try='test -z "$ac_c_werror_flag"
9963
                         || test ! -s conftest.err'
9964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965
  (eval $ac_try) 2>&5
9966
  ac_status=$?
9967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968
  (exit $ac_status); }; } &&
9969
         { ac_try='test -s conftest$ac_exeext'
9970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971
  (eval $ac_try) 2>&5
9972
  ac_status=$?
9973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974
  (exit $ac_status); }; }; then
9975
  ac_cv_lib_svld_dlopen=yes
9976
else
9977
  echo "$as_me: failed program was:" >&5
9978
sed 's/^/| /' conftest.$ac_ext >&5
9979
 
9980
ac_cv_lib_svld_dlopen=no
9981
fi
9982
rm -f conftest.err conftest.$ac_objext \
9983
      conftest$ac_exeext conftest.$ac_ext
9984
LIBS=$ac_check_lib_save_LIBS
9985
fi
9986
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9987
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9988
if test $ac_cv_lib_svld_dlopen = yes; then
9989
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9990
else
9991
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9993
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994
  echo $ECHO_N "(cached) $ECHO_C" >&6
9995
else
9996
  ac_check_lib_save_LIBS=$LIBS
9997
LIBS="-ldld  $LIBS"
9998
cat >conftest.$ac_ext <<_ACEOF
9999
/* confdefs.h.  */
10000
_ACEOF
10001
cat confdefs.h >>conftest.$ac_ext
10002
cat >>conftest.$ac_ext <<_ACEOF
10003
/* end confdefs.h.  */
10004
 
10005
/* Override any gcc2 internal prototype to avoid an error.  */
10006
#ifdef __cplusplus
10007
extern "C"
10008
#endif
10009
/* We use char because int might match the return type of a gcc2
10010
   builtin and then its argument prototype would still apply.  */
10011
char dld_link ();
10012
int
10013
main ()
10014
{
10015
dld_link ();
10016
  ;
10017
  return 0;
10018
}
10019
_ACEOF
10020
rm -f conftest.$ac_objext conftest$ac_exeext
10021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022
  (eval $ac_link) 2>conftest.er1
10023
  ac_status=$?
10024
  grep -v '^ *+' conftest.er1 >conftest.err
10025
  rm -f conftest.er1
10026
  cat conftest.err >&5
10027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
  (exit $ac_status); } &&
10029
         { ac_try='test -z "$ac_c_werror_flag"
10030
                         || test ! -s conftest.err'
10031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032
  (eval $ac_try) 2>&5
10033
  ac_status=$?
10034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035
  (exit $ac_status); }; } &&
10036
         { ac_try='test -s conftest$ac_exeext'
10037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038
  (eval $ac_try) 2>&5
10039
  ac_status=$?
10040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041
  (exit $ac_status); }; }; then
10042
  ac_cv_lib_dld_dld_link=yes
10043
else
10044
  echo "$as_me: failed program was:" >&5
10045
sed 's/^/| /' conftest.$ac_ext >&5
10046
 
10047
ac_cv_lib_dld_dld_link=no
10048
fi
10049
rm -f conftest.err conftest.$ac_objext \
10050
      conftest$ac_exeext conftest.$ac_ext
10051
LIBS=$ac_check_lib_save_LIBS
10052
fi
10053
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10054
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10055
if test $ac_cv_lib_dld_dld_link = yes; then
10056
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10057
fi
10058
 
10059
 
10060
fi
10061
 
10062
 
10063
fi
10064
 
10065
 
10066
fi
10067
 
10068
 
10069
fi
10070
 
10071
 
10072
fi
10073
 
10074
    ;;
10075
  esac
10076
 
10077
  if test "x$lt_cv_dlopen" != xno; then
10078
    enable_dlopen=yes
10079
  else
10080
    enable_dlopen=no
10081
  fi
10082
 
10083
  case $lt_cv_dlopen in
10084
  dlopen)
10085
    save_CPPFLAGS="$CPPFLAGS"
10086
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10087
 
10088
    save_LDFLAGS="$LDFLAGS"
10089
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10090
 
10091
    save_LIBS="$LIBS"
10092
    LIBS="$lt_cv_dlopen_libs $LIBS"
10093
 
10094
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10095
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10096
if test "${lt_cv_dlopen_self+set}" = set; then
10097
  echo $ECHO_N "(cached) $ECHO_C" >&6
10098
else
10099
          if test "$cross_compiling" = yes; then :
10100
  lt_cv_dlopen_self=cross
10101
else
10102
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103
  lt_status=$lt_dlunknown
10104
  cat > conftest.$ac_ext <<_LT_EOF
10105
#line 10105 "configure"
10106
#include "confdefs.h"
10107
 
10108
#if HAVE_DLFCN_H
10109
#include 
10110
#endif
10111
 
10112
#include 
10113
 
10114
#ifdef RTLD_GLOBAL
10115
#  define LT_DLGLOBAL           RTLD_GLOBAL
10116
#else
10117
#  ifdef DL_GLOBAL
10118
#    define LT_DLGLOBAL         DL_GLOBAL
10119
#  else
10120
#    define LT_DLGLOBAL         0
10121
#  endif
10122
#endif
10123
 
10124
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125
   find out it does not work in some platform. */
10126
#ifndef LT_DLLAZY_OR_NOW
10127
#  ifdef RTLD_LAZY
10128
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10129
#  else
10130
#    ifdef DL_LAZY
10131
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10132
#    else
10133
#      ifdef RTLD_NOW
10134
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10135
#      else
10136
#        ifdef DL_NOW
10137
#          define LT_DLLAZY_OR_NOW      DL_NOW
10138
#        else
10139
#          define LT_DLLAZY_OR_NOW      0
10140
#        endif
10141
#      endif
10142
#    endif
10143
#  endif
10144
#endif
10145
 
10146
#ifdef __cplusplus
10147
extern "C" void exit (int);
10148
#endif
10149
 
10150
void fnord() { int i=42;}
10151
int main ()
10152
{
10153
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10154
  int status = $lt_dlunknown;
10155
 
10156
  if (self)
10157
    {
10158
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10159
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10160
      /* dlclose (self); */
10161
    }
10162
  else
10163
    puts (dlerror ());
10164
 
10165
    exit (status);
10166
}
10167
_LT_EOF
10168
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169
  (eval $ac_link) 2>&5
10170
  ac_status=$?
10171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10173
    (./conftest; exit; ) >&5 2>/dev/null
10174
    lt_status=$?
10175
    case x$lt_status in
10176
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10177
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10178
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10179
    esac
10180
  else :
10181
    # compilation failed
10182
    lt_cv_dlopen_self=no
10183
  fi
10184
fi
10185
rm -fr conftest*
10186
 
10187
 
10188
fi
10189
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10190
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10191
 
10192
    if test "x$lt_cv_dlopen_self" = xyes; then
10193
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10194
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10195
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10196
if test "${lt_cv_dlopen_self_static+set}" = set; then
10197
  echo $ECHO_N "(cached) $ECHO_C" >&6
10198
else
10199
          if test "$cross_compiling" = yes; then :
10200
  lt_cv_dlopen_self_static=cross
10201
else
10202
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10203
  lt_status=$lt_dlunknown
10204
  cat > conftest.$ac_ext <<_LT_EOF
10205
#line 10205 "configure"
10206
#include "confdefs.h"
10207
 
10208
#if HAVE_DLFCN_H
10209
#include 
10210
#endif
10211
 
10212
#include 
10213
 
10214
#ifdef RTLD_GLOBAL
10215
#  define LT_DLGLOBAL           RTLD_GLOBAL
10216
#else
10217
#  ifdef DL_GLOBAL
10218
#    define LT_DLGLOBAL         DL_GLOBAL
10219
#  else
10220
#    define LT_DLGLOBAL         0
10221
#  endif
10222
#endif
10223
 
10224
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10225
   find out it does not work in some platform. */
10226
#ifndef LT_DLLAZY_OR_NOW
10227
#  ifdef RTLD_LAZY
10228
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10229
#  else
10230
#    ifdef DL_LAZY
10231
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10232
#    else
10233
#      ifdef RTLD_NOW
10234
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10235
#      else
10236
#        ifdef DL_NOW
10237
#          define LT_DLLAZY_OR_NOW      DL_NOW
10238
#        else
10239
#          define LT_DLLAZY_OR_NOW      0
10240
#        endif
10241
#      endif
10242
#    endif
10243
#  endif
10244
#endif
10245
 
10246
#ifdef __cplusplus
10247
extern "C" void exit (int);
10248
#endif
10249
 
10250
void fnord() { int i=42;}
10251
int main ()
10252
{
10253
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10254
  int status = $lt_dlunknown;
10255
 
10256
  if (self)
10257
    {
10258
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10259
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10260
      /* dlclose (self); */
10261
    }
10262
  else
10263
    puts (dlerror ());
10264
 
10265
    exit (status);
10266
}
10267
_LT_EOF
10268
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269
  (eval $ac_link) 2>&5
10270
  ac_status=$?
10271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10273
    (./conftest; exit; ) >&5 2>/dev/null
10274
    lt_status=$?
10275
    case x$lt_status in
10276
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10277
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10278
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10279
    esac
10280
  else :
10281
    # compilation failed
10282
    lt_cv_dlopen_self_static=no
10283
  fi
10284
fi
10285
rm -fr conftest*
10286
 
10287
 
10288
fi
10289
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10290
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10291
    fi
10292
 
10293
    CPPFLAGS="$save_CPPFLAGS"
10294
    LDFLAGS="$save_LDFLAGS"
10295
    LIBS="$save_LIBS"
10296
    ;;
10297
  esac
10298
 
10299
  case $lt_cv_dlopen_self in
10300
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10301
  *) enable_dlopen_self=unknown ;;
10302
  esac
10303
 
10304
  case $lt_cv_dlopen_self_static in
10305
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10306
  *) enable_dlopen_self_static=unknown ;;
10307
  esac
10308
fi
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
striplib=
10327
old_striplib=
10328
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10329
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10330
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10331
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10332
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10333
  echo "$as_me:$LINENO: result: yes" >&5
10334
echo "${ECHO_T}yes" >&6
10335
else
10336
# FIXME - insert some real tests, host_os isn't really good enough
10337
  case $host_os in
10338
  darwin*)
10339
    if test -n "$STRIP" ; then
10340
      striplib="$STRIP -x"
10341
      old_striplib="$STRIP -S"
10342
      echo "$as_me:$LINENO: result: yes" >&5
10343
echo "${ECHO_T}yes" >&6
10344
    else
10345
      echo "$as_me:$LINENO: result: no" >&5
10346
echo "${ECHO_T}no" >&6
10347
    fi
10348
    ;;
10349
  *)
10350
    echo "$as_me:$LINENO: result: no" >&5
10351
echo "${ECHO_T}no" >&6
10352
    ;;
10353
  esac
10354
fi
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
  # Report which library types will actually be built
10368
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10369
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10370
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10371
echo "${ECHO_T}$can_build_shared" >&6
10372
 
10373
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10374
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10375
  test "$can_build_shared" = "no" && enable_shared=no
10376
 
10377
  # On AIX, shared libraries and static libraries use the same namespace, and
10378
  # are all built from PIC.
10379
  case $host_os in
10380
  aix3*)
10381
    test "$enable_shared" = yes && enable_static=no
10382
    if test -n "$RANLIB"; then
10383
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10384
      postinstall_cmds='$RANLIB $lib'
10385
    fi
10386
    ;;
10387
 
10388
  aix4* | aix5*)
10389
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10390
      test "$enable_shared" = yes && enable_static=no
10391
    fi
10392
    ;;
10393
  esac
10394
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10395
echo "${ECHO_T}$enable_shared" >&6
10396
 
10397
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10398
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10399
  # Make sure either enable_shared or enable_static is yes.
10400
  test "$enable_shared" = yes || enable_static=yes
10401
  echo "$as_me:$LINENO: result: $enable_static" >&5
10402
echo "${ECHO_T}$enable_static" >&6
10403
 
10404
 
10405
 
10406
 
10407
fi
10408
ac_ext=c
10409
ac_cpp='$CPP $CPPFLAGS'
10410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413
 
10414
CC="$lt_save_CC"
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
                  ac_config_commands="$ac_config_commands libtool"
10429
 
10430
 
10431
 
10432
 
10433
# Only expand once:
10434
 
10435
 
10436
 
10437
# Check whether --enable-targets or --disable-targets was given.
10438
if test "${enable_targets+set}" = set; then
10439
  enableval="$enable_targets"
10440
  case "${enableval}" in
10441
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10442
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10443
   { (exit 1); exit 1; }; }
10444
            ;;
10445
  no)       enable_targets= ;;
10446
  *)        enable_targets=$enableval ;;
10447
esac
10448
fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10449
if test "${enable_commonbfdlib+set}" = set; then
10450
  enableval="$enable_commonbfdlib"
10451
  case "${enableval}" in
10452
  yes) commonbfdlib=true ;;
10453
  no)  commonbfdlib=false ;;
10454
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10455
echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10456
   { (exit 1); exit 1; }; } ;;
10457
esac
10458
fi;
10459
 
10460
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10461
 
10462
# Check whether --enable-werror or --disable-werror was given.
10463
if test "${enable_werror+set}" = set; then
10464
  enableval="$enable_werror"
10465
  case "${enableval}" in
10466
     yes | y) ERROR_ON_WARNING="yes" ;;
10467
     no | n)  ERROR_ON_WARNING="no" ;;
10468
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10469
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10470
   { (exit 1); exit 1; }; } ;;
10471
   esac
10472
fi;
10473
 
10474
# Enable -Wno-format by default when using gcc on mingw
10475
case "${host}" in
10476
  *-*-mingw32*)
10477
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10478
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10479
    fi
10480
    ;;
10481
  *) ;;
10482
esac
10483
 
10484
# Enable -Werror by default when using gcc
10485
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10486
    ERROR_ON_WARNING=yes
10487
fi
10488
 
10489
NO_WERROR=
10490
if test "${ERROR_ON_WARNING}" = yes ; then
10491
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10492
    NO_WERROR="-Wno-error"
10493
fi
10494
 
10495
if test "${GCC}" = yes ; then
10496
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10497
fi
10498
 
10499
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10500
if test "${enable_build_warnings+set}" = set; then
10501
  enableval="$enable_build_warnings"
10502
  case "${enableval}" in
10503
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10504
  no)   if test "${GCC}" = yes ; then
10505
          WARN_CFLAGS="-w"
10506
        fi;;
10507
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10508
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10509
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10510
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10511
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10512
esac
10513
fi;
10514
 
10515
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10516
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10517
fi
10518
 
10519
 
10520
 
10521
 
10522
 
10523
          ac_config_headers="$ac_config_headers config.h:config.in"
10524
 
10525
 
10526
if test -z "$target" ; then
10527
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10528
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10529
   { (exit 1); exit 1; }; }
10530
fi
10531
 
10532
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10533
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10534
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10535
if test "${enable_maintainer_mode+set}" = set; then
10536
  enableval="$enable_maintainer_mode"
10537
  USE_MAINTAINER_MODE=$enableval
10538
else
10539
  USE_MAINTAINER_MODE=no
10540
fi;
10541
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10542
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10543
 
10544
 
10545
if test $USE_MAINTAINER_MODE = yes; then
10546
  MAINTAINER_MODE_TRUE=
10547
  MAINTAINER_MODE_FALSE='#'
10548
else
10549
  MAINTAINER_MODE_TRUE='#'
10550
  MAINTAINER_MODE_FALSE=
10551
fi
10552
 
10553
  MAINT=$MAINTAINER_MODE_TRUE
10554
 
10555
 
10556
 case ${build_alias} in
10557
  "") build_noncanonical=${build} ;;
10558
  *) build_noncanonical=${build_alias} ;;
10559
esac
10560
 
10561
 case ${host_alias} in
10562
  "") host_noncanonical=${build_noncanonical} ;;
10563
  *) host_noncanonical=${host_alias} ;;
10564
esac
10565
 
10566
 case ${target_alias} in
10567
  "") target_noncanonical=${host_noncanonical} ;;
10568
  *) target_noncanonical=${target_alias} ;;
10569
esac
10570
 
10571
echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10572
echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10573
  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10574
if test "${enable_install_libbfd+set}" = set; then
10575
  enableval="$enable_install_libbfd"
10576
  install_libbfd_p=$enableval
10577
else
10578
  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10579
        install_libbfd_p=yes
10580
      else
10581
        install_libbfd_p=no
10582
      fi
10583
fi;
10584
  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10585
echo "${ECHO_T}$install_libbfd_p" >&6
10586
 
10587
 
10588
if test $install_libbfd_p = yes; then
10589
  INSTALL_LIBBFD_TRUE=
10590
  INSTALL_LIBBFD_FALSE='#'
10591
else
10592
  INSTALL_LIBBFD_TRUE='#'
10593
  INSTALL_LIBBFD_FALSE=
10594
fi
10595
 
10596
  # Need _noncanonical variables for this.
10597
 
10598
 
10599
 
10600
 
10601
  # libbfd.a is a host library containing target dependent code
10602
  bfdlibdir='$(libdir)'
10603
  bfdincludedir='$(includedir)'
10604
  if test "${host}" != "${target}"; then
10605
    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10606
    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10607
  fi
10608
 
10609
 
10610
 
10611
 
10612
 
10613
 
10614
# host-specific stuff:
10615
 
10616
ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10617
# If we haven't got the data from the intl directory,
10618
# assume NLS is disabled.
10619
USE_NLS=no
10620
LIBINTL=
10621
LIBINTL_DEP=
10622
INCINTL=
10623
XGETTEXT=
10624
GMSGFMT=
10625
POSUB=
10626
 
10627
if test -f  ../intl/config.intl; then
10628
  .  ../intl/config.intl
10629
fi
10630
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10631
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10632
if test x"$USE_NLS" != xyes; then
10633
  echo "$as_me:$LINENO: result: no" >&5
10634
echo "${ECHO_T}no" >&6
10635
else
10636
  echo "$as_me:$LINENO: result: yes" >&5
10637
echo "${ECHO_T}yes" >&6
10638
 
10639
cat >>confdefs.h <<\_ACEOF
10640
#define ENABLE_NLS 1
10641
_ACEOF
10642
 
10643
 
10644
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10645
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10646
  # Look for .po and .gmo files in the source directory.
10647
  CATALOGS=
10648
  XLINGUAS=
10649
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10650
    # If there aren't any .gmo files the shell will give us the
10651
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10652
    # weeded out.
10653
    case "$cat" in *\**)
10654
      continue;;
10655
    esac
10656
    # The quadruple backslash is collapsed to a double backslash
10657
    # by the backticks, then collapsed again by the double quotes,
10658
    # leaving us with one backslash in the sed expression (right
10659
    # before the dot that mustn't act as a wildcard).
10660
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10661
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10662
    # The user is allowed to set LINGUAS to a list of languages to
10663
    # install catalogs for.  If it's empty that means "all of them."
10664
    if test "x$LINGUAS" = x; then
10665
      CATALOGS="$CATALOGS $cat"
10666
      XLINGUAS="$XLINGUAS $lang"
10667
    else
10668
      case "$LINGUAS" in *$lang*)
10669
        CATALOGS="$CATALOGS $cat"
10670
        XLINGUAS="$XLINGUAS $lang"
10671
        ;;
10672
      esac
10673
    fi
10674
  done
10675
  LINGUAS="$XLINGUAS"
10676
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10677
echo "${ECHO_T}$LINGUAS" >&6
10678
 
10679
 
10680
    DATADIRNAME=share
10681
 
10682
  INSTOBJEXT=.mo
10683
 
10684
  GENCAT=gencat
10685
 
10686
  CATOBJEXT=.gmo
10687
 
10688
fi
10689
 
10690
        MKINSTALLDIRS=
10691
  if test -n "$ac_aux_dir"; then
10692
    case "$ac_aux_dir" in
10693
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10694
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10695
    esac
10696
  fi
10697
  if test -z "$MKINSTALLDIRS"; then
10698
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10699
  fi
10700
 
10701
 
10702
 
10703
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10704
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10705
    # Check whether --enable-nls or --disable-nls was given.
10706
if test "${enable_nls+set}" = set; then
10707
  enableval="$enable_nls"
10708
  USE_NLS=$enableval
10709
else
10710
  USE_NLS=yes
10711
fi;
10712
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10713
echo "${ECHO_T}$USE_NLS" >&6
10714
 
10715
 
10716
 
10717
 
10718
 
10719
 
10720
# Prepare PATH_SEPARATOR.
10721
# The user is always right.
10722
if test "${PATH_SEPARATOR+set}" != set; then
10723
  echo "#! /bin/sh" >conf$$.sh
10724
  echo  "exit 0"   >>conf$$.sh
10725
  chmod +x conf$$.sh
10726
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10727
    PATH_SEPARATOR=';'
10728
  else
10729
    PATH_SEPARATOR=:
10730
  fi
10731
  rm -f conf$$.sh
10732
fi
10733
 
10734
# Find out how to test for executable files. Don't use a zero-byte file,
10735
# as systems may use methods other than mode bits to determine executability.
10736
cat >conf$$.file <<_ASEOF
10737
#! /bin/sh
10738
exit 0
10739
_ASEOF
10740
chmod +x conf$$.file
10741
if test -x conf$$.file >/dev/null 2>&1; then
10742
  ac_executable_p="test -x"
10743
else
10744
  ac_executable_p="test -f"
10745
fi
10746
rm -f conf$$.file
10747
 
10748
# Extract the first word of "msgfmt", so it can be a program name with args.
10749
set dummy msgfmt; ac_word=$2
10750
echo "$as_me:$LINENO: checking for $ac_word" >&5
10751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752
if test "${ac_cv_path_MSGFMT+set}" = set; then
10753
  echo $ECHO_N "(cached) $ECHO_C" >&6
10754
else
10755
  case "$MSGFMT" in
10756
  [\\/]* | ?:[\\/]*)
10757
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10758
    ;;
10759
  *)
10760
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10761
    for ac_dir in $PATH; do
10762
      IFS="$ac_save_IFS"
10763
      test -z "$ac_dir" && ac_dir=.
10764
      for ac_exec_ext in '' $ac_executable_extensions; do
10765
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10766
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10767
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10768
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10769
            break 2
10770
          fi
10771
        fi
10772
      done
10773
    done
10774
    IFS="$ac_save_IFS"
10775
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10776
    ;;
10777
esac
10778
fi
10779
MSGFMT="$ac_cv_path_MSGFMT"
10780
if test "$MSGFMT" != ":"; then
10781
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10782
echo "${ECHO_T}$MSGFMT" >&6
10783
else
10784
  echo "$as_me:$LINENO: result: no" >&5
10785
echo "${ECHO_T}no" >&6
10786
fi
10787
 
10788
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10789
set dummy gmsgfmt; ac_word=$2
10790
echo "$as_me:$LINENO: checking for $ac_word" >&5
10791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10793
  echo $ECHO_N "(cached) $ECHO_C" >&6
10794
else
10795
  case $GMSGFMT in
10796
  [\\/]* | ?:[\\/]*)
10797
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10798
  ;;
10799
  *)
10800
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801
for as_dir in $PATH
10802
do
10803
  IFS=$as_save_IFS
10804
  test -z "$as_dir" && as_dir=.
10805
  for ac_exec_ext in '' $ac_executable_extensions; do
10806
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10807
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10809
    break 2
10810
  fi
10811
done
10812
done
10813
 
10814
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10815
  ;;
10816
esac
10817
fi
10818
GMSGFMT=$ac_cv_path_GMSGFMT
10819
 
10820
if test -n "$GMSGFMT"; then
10821
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10822
echo "${ECHO_T}$GMSGFMT" >&6
10823
else
10824
  echo "$as_me:$LINENO: result: no" >&5
10825
echo "${ECHO_T}no" >&6
10826
fi
10827
 
10828
 
10829
 
10830
# Prepare PATH_SEPARATOR.
10831
# The user is always right.
10832
if test "${PATH_SEPARATOR+set}" != set; then
10833
  echo "#! /bin/sh" >conf$$.sh
10834
  echo  "exit 0"   >>conf$$.sh
10835
  chmod +x conf$$.sh
10836
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10837
    PATH_SEPARATOR=';'
10838
  else
10839
    PATH_SEPARATOR=:
10840
  fi
10841
  rm -f conf$$.sh
10842
fi
10843
 
10844
# Find out how to test for executable files. Don't use a zero-byte file,
10845
# as systems may use methods other than mode bits to determine executability.
10846
cat >conf$$.file <<_ASEOF
10847
#! /bin/sh
10848
exit 0
10849
_ASEOF
10850
chmod +x conf$$.file
10851
if test -x conf$$.file >/dev/null 2>&1; then
10852
  ac_executable_p="test -x"
10853
else
10854
  ac_executable_p="test -f"
10855
fi
10856
rm -f conf$$.file
10857
 
10858
# Extract the first word of "xgettext", so it can be a program name with args.
10859
set dummy xgettext; ac_word=$2
10860
echo "$as_me:$LINENO: checking for $ac_word" >&5
10861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10862
if test "${ac_cv_path_XGETTEXT+set}" = set; then
10863
  echo $ECHO_N "(cached) $ECHO_C" >&6
10864
else
10865
  case "$XGETTEXT" in
10866
  [\\/]* | ?:[\\/]*)
10867
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10868
    ;;
10869
  *)
10870
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10871
    for ac_dir in $PATH; do
10872
      IFS="$ac_save_IFS"
10873
      test -z "$ac_dir" && ac_dir=.
10874
      for ac_exec_ext in '' $ac_executable_extensions; do
10875
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10876
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10877
     (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
10878
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10879
            break 2
10880
          fi
10881
        fi
10882
      done
10883
    done
10884
    IFS="$ac_save_IFS"
10885
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10886
    ;;
10887
esac
10888
fi
10889
XGETTEXT="$ac_cv_path_XGETTEXT"
10890
if test "$XGETTEXT" != ":"; then
10891
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10892
echo "${ECHO_T}$XGETTEXT" >&6
10893
else
10894
  echo "$as_me:$LINENO: result: no" >&5
10895
echo "${ECHO_T}no" >&6
10896
fi
10897
 
10898
    rm -f messages.po
10899
 
10900
 
10901
# Prepare PATH_SEPARATOR.
10902
# The user is always right.
10903
if test "${PATH_SEPARATOR+set}" != set; then
10904
  echo "#! /bin/sh" >conf$$.sh
10905
  echo  "exit 0"   >>conf$$.sh
10906
  chmod +x conf$$.sh
10907
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10908
    PATH_SEPARATOR=';'
10909
  else
10910
    PATH_SEPARATOR=:
10911
  fi
10912
  rm -f conf$$.sh
10913
fi
10914
 
10915
# Find out how to test for executable files. Don't use a zero-byte file,
10916
# as systems may use methods other than mode bits to determine executability.
10917
cat >conf$$.file <<_ASEOF
10918
#! /bin/sh
10919
exit 0
10920
_ASEOF
10921
chmod +x conf$$.file
10922
if test -x conf$$.file >/dev/null 2>&1; then
10923
  ac_executable_p="test -x"
10924
else
10925
  ac_executable_p="test -f"
10926
fi
10927
rm -f conf$$.file
10928
 
10929
# Extract the first word of "msgmerge", so it can be a program name with args.
10930
set dummy msgmerge; ac_word=$2
10931
echo "$as_me:$LINENO: checking for $ac_word" >&5
10932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10933
if test "${ac_cv_path_MSGMERGE+set}" = set; then
10934
  echo $ECHO_N "(cached) $ECHO_C" >&6
10935
else
10936
  case "$MSGMERGE" in
10937
  [\\/]* | ?:[\\/]*)
10938
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10939
    ;;
10940
  *)
10941
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10942
    for ac_dir in $PATH; do
10943
      IFS="$ac_save_IFS"
10944
      test -z "$ac_dir" && ac_dir=.
10945
      for ac_exec_ext in '' $ac_executable_extensions; do
10946
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10947
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10948
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10949
            break 2
10950
          fi
10951
        fi
10952
      done
10953
    done
10954
    IFS="$ac_save_IFS"
10955
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10956
    ;;
10957
esac
10958
fi
10959
MSGMERGE="$ac_cv_path_MSGMERGE"
10960
if test "$MSGMERGE" != ":"; then
10961
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10962
echo "${ECHO_T}$MSGMERGE" >&6
10963
else
10964
  echo "$as_me:$LINENO: result: no" >&5
10965
echo "${ECHO_T}no" >&6
10966
fi
10967
 
10968
 
10969
      if test "$GMSGFMT" != ":"; then
10970
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10971
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10972
      : ;
10973
    else
10974
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10975
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10976
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10977
      GMSGFMT=":"
10978
    fi
10979
  fi
10980
 
10981
      if test "$XGETTEXT" != ":"; then
10982
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10983
       (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
10984
      : ;
10985
    else
10986
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10987
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10988
      XGETTEXT=":"
10989
    fi
10990
        rm -f messages.po
10991
  fi
10992
 
10993
            ac_config_commands="$ac_config_commands default-1"
10994
 
10995
 
10996
 
10997
. ${srcdir}/../bfd/configure.host
10998
 
10999
# Put a plausible default for CC_FOR_BUILD in Makefile.
11000
if test -z "$CC_FOR_BUILD"; then
11001
  if test "x$cross_compiling" = "xno"; then
11002
    CC_FOR_BUILD='$(CC)'
11003
  else
11004
    CC_FOR_BUILD=gcc
11005
  fi
11006
fi
11007
 
11008
# Also set EXEEXT_FOR_BUILD.
11009
if test "x$cross_compiling" = "xno"; then
11010
  EXEEXT_FOR_BUILD='$(EXEEXT)'
11011
else
11012
  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11013
echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11014
if test "${bfd_cv_build_exeext+set}" = set; then
11015
  echo $ECHO_N "(cached) $ECHO_C" >&6
11016
else
11017
  rm -f conftest*
11018
     echo 'int main () { return 0; }' > conftest.c
11019
     bfd_cv_build_exeext=
11020
     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11021
     for file in conftest.*; do
11022
       case $file in
11023
       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11024
       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11025
       esac
11026
     done
11027
     rm -f conftest*
11028
     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11029
fi
11030
echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11031
echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11032
  EXEEXT_FOR_BUILD=""
11033
  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11034
fi
11035
 
11036
 
11037
 
11038
# Find a good install program.  We prefer a C program (faster),
11039
# so one script is as good as another.  But avoid the broken or
11040
# incompatible versions:
11041
# SysV /etc/install, /usr/sbin/install
11042
# SunOS /usr/etc/install
11043
# IRIX /sbin/install
11044
# AIX /bin/install
11045
# AmigaOS /C/install, which installs bootblocks on floppy discs
11046
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11047
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11048
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11049
# OS/2's system install, which has a completely different semantic
11050
# ./install, which can be erroneously created by make from ./install.sh.
11051
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11052
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11053
if test -z "$INSTALL"; then
11054
if test "${ac_cv_path_install+set}" = set; then
11055
  echo $ECHO_N "(cached) $ECHO_C" >&6
11056
else
11057
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058
for as_dir in $PATH
11059
do
11060
  IFS=$as_save_IFS
11061
  test -z "$as_dir" && as_dir=.
11062
  # Account for people who put trailing slashes in PATH elements.
11063
case $as_dir/ in
11064
  ./ | .// | /cC/* | \
11065
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11066
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11067
  /usr/ucb/* ) ;;
11068
  *)
11069
    # OSF1 and SCO ODT 3.0 have their own names for install.
11070
    # Don't use installbsd from OSF since it installs stuff as root
11071
    # by default.
11072
    for ac_prog in ginstall scoinst install; do
11073
      for ac_exec_ext in '' $ac_executable_extensions; do
11074
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11075
          if test $ac_prog = install &&
11076
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11077
            # AIX install.  It has an incompatible calling convention.
11078
            :
11079
          elif test $ac_prog = install &&
11080
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11081
            # program-specific install script used by HP pwplus--don't use.
11082
            :
11083
          else
11084
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11085
            break 3
11086
          fi
11087
        fi
11088
      done
11089
    done
11090
    ;;
11091
esac
11092
done
11093
 
11094
 
11095
fi
11096
  if test "${ac_cv_path_install+set}" = set; then
11097
    INSTALL=$ac_cv_path_install
11098
  else
11099
    # As a last resort, use the slow shell script.  We don't cache a
11100
    # path for INSTALL within a source directory, because that will
11101
    # break other packages using the cache if that directory is
11102
    # removed, or if the path is relative.
11103
    INSTALL=$ac_install_sh
11104
  fi
11105
fi
11106
echo "$as_me:$LINENO: result: $INSTALL" >&5
11107
echo "${ECHO_T}$INSTALL" >&6
11108
 
11109
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11110
# It thinks the first close brace ends the variable substitution.
11111
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11112
 
11113
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11114
 
11115
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11116
 
11117
 
11118
 
11119
 
11120
 
11121
 
11122
for ac_header in string.h strings.h stdlib.h limits.h
11123
do
11124
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11125
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11126
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11127
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11128
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11129
  echo $ECHO_N "(cached) $ECHO_C" >&6
11130
fi
11131
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11133
else
11134
  # Is the header compilable?
11135
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11136
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11137
cat >conftest.$ac_ext <<_ACEOF
11138
/* confdefs.h.  */
11139
_ACEOF
11140
cat confdefs.h >>conftest.$ac_ext
11141
cat >>conftest.$ac_ext <<_ACEOF
11142
/* end confdefs.h.  */
11143
$ac_includes_default
11144
#include <$ac_header>
11145
_ACEOF
11146
rm -f conftest.$ac_objext
11147
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148
  (eval $ac_compile) 2>conftest.er1
11149
  ac_status=$?
11150
  grep -v '^ *+' conftest.er1 >conftest.err
11151
  rm -f conftest.er1
11152
  cat conftest.err >&5
11153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154
  (exit $ac_status); } &&
11155
         { ac_try='test -z "$ac_c_werror_flag"
11156
                         || test ! -s conftest.err'
11157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158
  (eval $ac_try) 2>&5
11159
  ac_status=$?
11160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161
  (exit $ac_status); }; } &&
11162
         { ac_try='test -s conftest.$ac_objext'
11163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164
  (eval $ac_try) 2>&5
11165
  ac_status=$?
11166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167
  (exit $ac_status); }; }; then
11168
  ac_header_compiler=yes
11169
else
11170
  echo "$as_me: failed program was:" >&5
11171
sed 's/^/| /' conftest.$ac_ext >&5
11172
 
11173
ac_header_compiler=no
11174
fi
11175
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11176
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11177
echo "${ECHO_T}$ac_header_compiler" >&6
11178
 
11179
# Is the header present?
11180
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11181
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11182
cat >conftest.$ac_ext <<_ACEOF
11183
/* confdefs.h.  */
11184
_ACEOF
11185
cat confdefs.h >>conftest.$ac_ext
11186
cat >>conftest.$ac_ext <<_ACEOF
11187
/* end confdefs.h.  */
11188
#include <$ac_header>
11189
_ACEOF
11190
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11191
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11192
  ac_status=$?
11193
  grep -v '^ *+' conftest.er1 >conftest.err
11194
  rm -f conftest.er1
11195
  cat conftest.err >&5
11196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197
  (exit $ac_status); } >/dev/null; then
11198
  if test -s conftest.err; then
11199
    ac_cpp_err=$ac_c_preproc_warn_flag
11200
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11201
  else
11202
    ac_cpp_err=
11203
  fi
11204
else
11205
  ac_cpp_err=yes
11206
fi
11207
if test -z "$ac_cpp_err"; then
11208
  ac_header_preproc=yes
11209
else
11210
  echo "$as_me: failed program was:" >&5
11211
sed 's/^/| /' conftest.$ac_ext >&5
11212
 
11213
  ac_header_preproc=no
11214
fi
11215
rm -f conftest.err conftest.$ac_ext
11216
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11217
echo "${ECHO_T}$ac_header_preproc" >&6
11218
 
11219
# So?  What about this header?
11220
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11221
  yes:no: )
11222
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11223
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11224
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11225
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11226
    ac_header_preproc=yes
11227
    ;;
11228
  no:yes:* )
11229
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11230
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11231
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11232
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11233
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11234
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11235
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11236
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11237
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11238
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11240
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11241
    (
11242
      cat <<\_ASBOX
11243
## ------------------------------------------ ##
11244
## Report this to the AC_PACKAGE_NAME lists.  ##
11245
## ------------------------------------------ ##
11246
_ASBOX
11247
    ) |
11248
      sed "s/^/$as_me: WARNING:     /" >&2
11249
    ;;
11250
esac
11251
echo "$as_me:$LINENO: checking for $ac_header" >&5
11252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11253
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11254
  echo $ECHO_N "(cached) $ECHO_C" >&6
11255
else
11256
  eval "$as_ac_Header=\$ac_header_preproc"
11257
fi
11258
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11259
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11260
 
11261
fi
11262
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11263
  cat >>confdefs.h <<_ACEOF
11264
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265
_ACEOF
11266
 
11267
fi
11268
 
11269
done
11270
 
11271
 
11272
echo "$as_me:$LINENO: checking whether basename is declared" >&5
11273
echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11274
if test "${ac_cv_have_decl_basename+set}" = set; then
11275
  echo $ECHO_N "(cached) $ECHO_C" >&6
11276
else
11277
  cat >conftest.$ac_ext <<_ACEOF
11278
/* confdefs.h.  */
11279
_ACEOF
11280
cat confdefs.h >>conftest.$ac_ext
11281
cat >>conftest.$ac_ext <<_ACEOF
11282
/* end confdefs.h.  */
11283
$ac_includes_default
11284
int
11285
main ()
11286
{
11287
#ifndef basename
11288
  char *p = (char *) basename;
11289
#endif
11290
 
11291
  ;
11292
  return 0;
11293
}
11294
_ACEOF
11295
rm -f conftest.$ac_objext
11296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297
  (eval $ac_compile) 2>conftest.er1
11298
  ac_status=$?
11299
  grep -v '^ *+' conftest.er1 >conftest.err
11300
  rm -f conftest.er1
11301
  cat conftest.err >&5
11302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303
  (exit $ac_status); } &&
11304
         { ac_try='test -z "$ac_c_werror_flag"
11305
                         || test ! -s conftest.err'
11306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307
  (eval $ac_try) 2>&5
11308
  ac_status=$?
11309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310
  (exit $ac_status); }; } &&
11311
         { ac_try='test -s conftest.$ac_objext'
11312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313
  (eval $ac_try) 2>&5
11314
  ac_status=$?
11315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316
  (exit $ac_status); }; }; then
11317
  ac_cv_have_decl_basename=yes
11318
else
11319
  echo "$as_me: failed program was:" >&5
11320
sed 's/^/| /' conftest.$ac_ext >&5
11321
 
11322
ac_cv_have_decl_basename=no
11323
fi
11324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325
fi
11326
echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11327
echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11328
if test $ac_cv_have_decl_basename = yes; then
11329
 
11330
cat >>confdefs.h <<_ACEOF
11331
#define HAVE_DECL_BASENAME 1
11332
_ACEOF
11333
 
11334
 
11335
else
11336
  cat >>confdefs.h <<_ACEOF
11337
#define HAVE_DECL_BASENAME 0
11338
_ACEOF
11339
 
11340
 
11341
fi
11342
echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11343
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11344
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11345
  echo $ECHO_N "(cached) $ECHO_C" >&6
11346
else
11347
  cat >conftest.$ac_ext <<_ACEOF
11348
/* confdefs.h.  */
11349
_ACEOF
11350
cat confdefs.h >>conftest.$ac_ext
11351
cat >>conftest.$ac_ext <<_ACEOF
11352
/* end confdefs.h.  */
11353
$ac_includes_default
11354
int
11355
main ()
11356
{
11357
#ifndef stpcpy
11358
  char *p = (char *) stpcpy;
11359
#endif
11360
 
11361
  ;
11362
  return 0;
11363
}
11364
_ACEOF
11365
rm -f conftest.$ac_objext
11366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367
  (eval $ac_compile) 2>conftest.er1
11368
  ac_status=$?
11369
  grep -v '^ *+' conftest.er1 >conftest.err
11370
  rm -f conftest.er1
11371
  cat conftest.err >&5
11372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373
  (exit $ac_status); } &&
11374
         { ac_try='test -z "$ac_c_werror_flag"
11375
                         || test ! -s conftest.err'
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); }; } &&
11381
         { ac_try='test -s conftest.$ac_objext'
11382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383
  (eval $ac_try) 2>&5
11384
  ac_status=$?
11385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386
  (exit $ac_status); }; }; then
11387
  ac_cv_have_decl_stpcpy=yes
11388
else
11389
  echo "$as_me: failed program was:" >&5
11390
sed 's/^/| /' conftest.$ac_ext >&5
11391
 
11392
ac_cv_have_decl_stpcpy=no
11393
fi
11394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11395
fi
11396
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11397
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11398
if test $ac_cv_have_decl_stpcpy = yes; then
11399
 
11400
cat >>confdefs.h <<_ACEOF
11401
#define HAVE_DECL_STPCPY 1
11402
_ACEOF
11403
 
11404
 
11405
else
11406
  cat >>confdefs.h <<_ACEOF
11407
#define HAVE_DECL_STPCPY 0
11408
_ACEOF
11409
 
11410
 
11411
fi
11412
 
11413
 
11414
 
11415
cgen_maint=no
11416
cgendir='$(srcdir)/../cgen'
11417
 
11418
# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11419
if test "${enable_cgen_maint+set}" = set; then
11420
  enableval="$enable_cgen_maint"
11421
  case "${enableval}" in
11422
  yes)  cgen_maint=yes ;;
11423
  no)   cgen_maint=no ;;
11424
  *)
11425
        # argument is cgen install directory (not implemented yet).
11426
        # Having a `share' directory might be more appropriate for the .scm,
11427
        # .cpu, etc. files.
11428
        cgen_maint=yes
11429
        cgendir=${cgen_maint}/lib/cgen
11430
        ;;
11431
esac
11432
fi;
11433
 
11434
if test x${cgen_maint} = xyes; then
11435
  CGEN_MAINT_TRUE=
11436
  CGEN_MAINT_FALSE='#'
11437
else
11438
  CGEN_MAINT_TRUE='#'
11439
  CGEN_MAINT_FALSE=
11440
fi
11441
 
11442
 
11443
 
11444
using_cgen=no
11445
 
11446
# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11447
SHARED_LDFLAGS=
11448
SHARED_LIBADD=
11449
SHARED_DEPENDENCIES=
11450
if test "$enable_shared" = "yes"; then
11451
  case "${host}" in
11452
    *-*-cygwin*)
11453
      SHARED_LDFLAGS="-no-undefined"
11454
      SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11455
      ;;
11456
   *-*-darwin*)
11457
     SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11458
     SHARED_DEPENDENCIES="../bfd/libbfd.la"
11459
     ;;
11460
    *)
11461
      case "$host_vendor" in
11462
        hp)
11463
          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11464
          ;;
11465
        *)
11466
          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11467
          ;;
11468
      esac
11469
      SHARED_DEPENDENCIES="../bfd/libbfd.la"
11470
      ;;
11471
  esac
11472
fi
11473
 
11474
 
11475
 
11476
 
11477
# target-specific stuff:
11478
 
11479
# Canonicalize the secondary target names.
11480
if test -n "$enable_targets" ; then
11481
    for targ in `echo $enable_targets | sed 's/,/ /g'`
11482
    do
11483
        result=`$ac_config_sub $targ 2>/dev/null`
11484
        if test -n "$result" ; then
11485
            canon_targets="$canon_targets $result"
11486
        else
11487
            # Allow targets that config.sub doesn't recognize, like "all".
11488
            canon_targets="$canon_targets $targ"
11489
        fi
11490
    done
11491
fi
11492
 
11493
all_targets=false
11494
selarchs=
11495
for targ in $target $canon_targets
11496
do
11497
    if test "x$targ" = "xall" ; then
11498
        all_targets=true
11499
    else
11500
        . $srcdir/../bfd/config.bfd
11501
        selarchs="$selarchs $targ_archs"
11502
    fi
11503
done
11504
 
11505
# Utility var, documents generic cgen support files.
11506
 
11507
cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11508
 
11509
# We don't do any links based on the target system, just makefile config.
11510
 
11511
if test x${all_targets} = xfalse ; then
11512
 
11513
    # Target architecture .o files.
11514
    ta=
11515
 
11516
    for arch in $selarchs
11517
    do
11518
        ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11519
        archdefs="$archdefs -DARCH_$ad"
11520
        case "$arch" in
11521
        bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11522
        bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11523
        bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
11524
        bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
11525
        bfd_bfin_arch)          ta="$ta bfin-dis.lo" ;;
11526
        bfd_cr16_arch)          ta="$ta cr16-dis.lo cr16-opc.lo" ;;
11527
        bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11528
        bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
11529
        bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11530
        bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11531
        bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
11532
        bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11533
        bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11534
        bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
11535
        bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
11536
        bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
11537
        bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
11538
        bfd_i386_arch)          ta="$ta i386-dis.lo i386-opc.lo" ;;
11539
        bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
11540
        bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
11541
        bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11542
        bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11543
        bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11544
        bfd_m32c_arch)          ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11545
        bfd_m32r_arch)          ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
11546
        bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11547
        bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11548
        bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11549
        bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
11550
        bfd_maxq_arch)          ta="$ta maxq-dis.lo" ;;
11551
        bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
11552
        bfd_mep_arch)           ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11553
        bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11554
        bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11555
        bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11556
        bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11557
        bfd_mt_arch)            ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11558
        bfd_msp430_arch)        ta="$ta msp430-dis.lo" ;;
11559
        bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
11560
        bfd_openrisc_arch)      ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11561
        bfd_or32_arch)          ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11562
        bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11563
        bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
11564
        bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11565
        bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11566
        bfd_pyramid_arch)       ;;
11567
        bfd_romp_arch)          ;;
11568
        bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11569
        bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
11570
        bfd_score_arch)         ta="$ta score-dis.lo" ;;
11571
        bfd_sh_arch)
11572
          # We can't decide what we want just from the CPU family.
11573
          # We want SH5 support unless a specific version of sh is
11574
          # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11575
          # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11576
          for t in $target $canon_targets; do
11577
            case $t in
11578
              all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11579
              sh-*-linux* | shl-*-linux*)
11580
                                ta="$ta sh64-dis.lo sh64-opc.lo"
11581
                                archdefs="$archdefs -DINCLUDE_SHMEDIA"
11582
                                break;;
11583
            esac;
11584
          done
11585
                                ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11586
        bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11587
        bfd_spu_arch)           ta="$ta spu-dis.lo spu-opc.lo" ;;
11588
        bfd_tahoe_arch)         ;;
11589
        bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
11590
        bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
11591
        bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11592
        bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11593
        bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
11594
        bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
11595
        bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
11596
        bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
11597
        bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
11598
        bfd_we32k_arch)         ;;
11599
        bfd_xc16x_arch)         ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11600
        bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11601
        bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
11602
        bfd_z80_arch)           ta="$ta z80-dis.lo" ;;
11603
        bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
11604
 
11605
        "")                     ;;
11606
        *)              { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11607
echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11608
   { (exit 1); exit 1; }; } ;;
11609
        esac
11610
    done
11611
 
11612
    if test $using_cgen = yes ; then
11613
        ta="$ta $cgen_files"
11614
    fi
11615
 
11616
    # Weed out duplicate .o files.
11617
    f=""
11618
    for i in $ta ; do
11619
        case " $f " in
11620
        *" $i "*) ;;
11621
        *) f="$f $i" ;;
11622
        esac
11623
    done
11624
    ta="$f"
11625
 
11626
    # And duplicate -D flags.
11627
    f=""
11628
    for i in $archdefs ; do
11629
        case " $f " in
11630
        *" $i "*) ;;
11631
        *) f="$f $i" ;;
11632
        esac
11633
    done
11634
    archdefs="$f"
11635
 
11636
    BFD_MACHINES="$ta"
11637
 
11638
else    # all_targets is true
11639
    archdefs=-DARCH_all
11640
    BFD_MACHINES='$(ALL_MACHINES)'
11641
fi
11642
 
11643
 
11644
 
11645
 
11646
                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11647
 
11648
cat >confcache <<\_ACEOF
11649
# This file is a shell script that caches the results of configure
11650
# tests run on this system so they can be shared between configure
11651
# scripts and configure runs, see configure's option --config-cache.
11652
# It is not useful on other systems.  If it contains results you don't
11653
# want to keep, you may remove or edit it.
11654
#
11655
# config.status only pays attention to the cache file if you give it
11656
# the --recheck option to rerun configure.
11657
#
11658
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11659
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11660
# following values.
11661
 
11662
_ACEOF
11663
 
11664
# The following way of writing the cache mishandles newlines in values,
11665
# but we know of no workaround that is simple, portable, and efficient.
11666
# So, don't put newlines in cache variables' values.
11667
# Ultrix sh set writes to stderr and can't be redirected directly,
11668
# and sets the high bit in the cache file unless we assign to the vars.
11669
{
11670
  (set) 2>&1 |
11671
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11672
    *ac_space=\ *)
11673
      # `set' does not quote correctly, so add quotes (double-quote
11674
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11675
      sed -n \
11676
        "s/'/'\\\\''/g;
11677
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11678
      ;;
11679
    *)
11680
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11681
      sed -n \
11682
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11683
      ;;
11684
    esac;
11685
} |
11686
  sed '
11687
     t clear
11688
     : clear
11689
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11690
     t end
11691
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11692
     : end' >>confcache
11693
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11694
  if test -w $cache_file; then
11695
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11696
    cat confcache >$cache_file
11697
  else
11698
    echo "not updating unwritable cache $cache_file"
11699
  fi
11700
fi
11701
rm -f confcache
11702
 
11703
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11704
# Let make expand exec_prefix.
11705
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11706
 
11707
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11708
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11709
# trailing colons and then remove the whole line if VPATH becomes empty
11710
# (actually we leave an empty line to preserve line numbers).
11711
if test "x$srcdir" = x.; then
11712
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11713
s/:*\$(srcdir):*/:/;
11714
s/:*\${srcdir}:*/:/;
11715
s/:*@srcdir@:*/:/;
11716
s/^\([^=]*=[     ]*\):*/\1/;
11717
s/:*$//;
11718
s/^[^=]*=[       ]*$//;
11719
}'
11720
fi
11721
 
11722
DEFS=-DHAVE_CONFIG_H
11723
 
11724
ac_libobjs=
11725
ac_ltlibobjs=
11726
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11727
  # 1. Remove the extension, and $U if already installed.
11728
  ac_i=`echo "$ac_i" |
11729
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11730
  # 2. Add them.
11731
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11732
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11733
done
11734
LIBOBJS=$ac_libobjs
11735
 
11736
LTLIBOBJS=$ac_ltlibobjs
11737
 
11738
 
11739
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11740
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11741
Usually this means the macro was only invoked conditionally." >&5
11742
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11743
Usually this means the macro was only invoked conditionally." >&2;}
11744
   { (exit 1); exit 1; }; }
11745
fi
11746
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11747
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11748
Usually this means the macro was only invoked conditionally." >&5
11749
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11750
Usually this means the macro was only invoked conditionally." >&2;}
11751
   { (exit 1); exit 1; }; }
11752
fi
11753
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11754
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11755
Usually this means the macro was only invoked conditionally." >&5
11756
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11757
Usually this means the macro was only invoked conditionally." >&2;}
11758
   { (exit 1); exit 1; }; }
11759
fi
11760
if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11761
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11762
Usually this means the macro was only invoked conditionally." >&5
11763
echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11764
Usually this means the macro was only invoked conditionally." >&2;}
11765
   { (exit 1); exit 1; }; }
11766
fi
11767
if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11768
  { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11769
Usually this means the macro was only invoked conditionally." >&5
11770
echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11771
Usually this means the macro was only invoked conditionally." >&2;}
11772
   { (exit 1); exit 1; }; }
11773
fi
11774
 
11775
: ${CONFIG_STATUS=./config.status}
11776
ac_clean_files_save=$ac_clean_files
11777
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11778
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11779
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11780
cat >$CONFIG_STATUS <<_ACEOF
11781
#! $SHELL
11782
# Generated by $as_me.
11783
# Run this file to recreate the current configuration.
11784
# Compiler output produced by configure, useful for debugging
11785
# configure, is in config.log if it exists.
11786
 
11787
debug=false
11788
ac_cs_recheck=false
11789
ac_cs_silent=false
11790
SHELL=\${CONFIG_SHELL-$SHELL}
11791
_ACEOF
11792
 
11793
cat >>$CONFIG_STATUS <<\_ACEOF
11794
## --------------------- ##
11795
## M4sh Initialization.  ##
11796
## --------------------- ##
11797
 
11798
# Be Bourne compatible
11799
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11800
  emulate sh
11801
  NULLCMD=:
11802
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11803
  # is contrary to our usage.  Disable this feature.
11804
  alias -g '${1+"$@"}'='"$@"'
11805
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11806
  set -o posix
11807
fi
11808
DUALCASE=1; export DUALCASE # for MKS sh
11809
 
11810
# Support unset when possible.
11811
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11812
  as_unset=unset
11813
else
11814
  as_unset=false
11815
fi
11816
 
11817
 
11818
# Work around bugs in pre-3.0 UWIN ksh.
11819
$as_unset ENV MAIL MAILPATH
11820
PS1='$ '
11821
PS2='> '
11822
PS4='+ '
11823
 
11824
# NLS nuisances.
11825
for as_var in \
11826
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11827
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11828
  LC_TELEPHONE LC_TIME
11829
do
11830
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11831
    eval $as_var=C; export $as_var
11832
  else
11833
    $as_unset $as_var
11834
  fi
11835
done
11836
 
11837
# Required to use basename.
11838
if expr a : '\(a\)' >/dev/null 2>&1; then
11839
  as_expr=expr
11840
else
11841
  as_expr=false
11842
fi
11843
 
11844
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11845
  as_basename=basename
11846
else
11847
  as_basename=false
11848
fi
11849
 
11850
 
11851
# Name of the executable.
11852
as_me=`$as_basename "$0" ||
11853
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11854
         X"$0" : 'X\(//\)$' \| \
11855
         X"$0" : 'X\(/\)$' \| \
11856
         .     : '\(.\)' 2>/dev/null ||
11857
echo X/"$0" |
11858
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11859
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11860
          /^X\/\(\/\).*/{ s//\1/; q; }
11861
          s/.*/./; q'`
11862
 
11863
 
11864
# PATH needs CR, and LINENO needs CR and PATH.
11865
# Avoid depending upon Character Ranges.
11866
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11867
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11868
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11869
as_cr_digits='0123456789'
11870
as_cr_alnum=$as_cr_Letters$as_cr_digits
11871
 
11872
# The user is always right.
11873
if test "${PATH_SEPARATOR+set}" != set; then
11874
  echo "#! /bin/sh" >conf$$.sh
11875
  echo  "exit 0"   >>conf$$.sh
11876
  chmod +x conf$$.sh
11877
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11878
    PATH_SEPARATOR=';'
11879
  else
11880
    PATH_SEPARATOR=:
11881
  fi
11882
  rm -f conf$$.sh
11883
fi
11884
 
11885
 
11886
  as_lineno_1=$LINENO
11887
  as_lineno_2=$LINENO
11888
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11889
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11890
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11891
  # Find who we are.  Look in the path if we contain no path at all
11892
  # relative or not.
11893
  case $0 in
11894
    *[\\/]* ) as_myself=$0 ;;
11895
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896
for as_dir in $PATH
11897
do
11898
  IFS=$as_save_IFS
11899
  test -z "$as_dir" && as_dir=.
11900
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11901
done
11902
 
11903
       ;;
11904
  esac
11905
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11906
  # in which case we are not to be found in the path.
11907
  if test "x$as_myself" = x; then
11908
    as_myself=$0
11909
  fi
11910
  if test ! -f "$as_myself"; then
11911
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11912
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11913
   { (exit 1); exit 1; }; }
11914
  fi
11915
  case $CONFIG_SHELL in
11916
  '')
11917
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11919
do
11920
  IFS=$as_save_IFS
11921
  test -z "$as_dir" && as_dir=.
11922
  for as_base in sh bash ksh sh5; do
11923
         case $as_dir in
11924
         /*)
11925
           if ("$as_dir/$as_base" -c '
11926
  as_lineno_1=$LINENO
11927
  as_lineno_2=$LINENO
11928
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11929
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11930
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11931
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11932
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11933
             CONFIG_SHELL=$as_dir/$as_base
11934
             export CONFIG_SHELL
11935
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11936
           fi;;
11937
         esac
11938
       done
11939
done
11940
;;
11941
  esac
11942
 
11943
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11944
  # uniformly replaced by the line number.  The first 'sed' inserts a
11945
  # line-number line before each line; the second 'sed' does the real
11946
  # work.  The second script uses 'N' to pair each line-number line
11947
  # with the numbered line, and appends trailing '-' during
11948
  # substitution so that $LINENO is not a special case at line end.
11949
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11950
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11951
  sed '=' <$as_myself |
11952
    sed '
11953
      N
11954
      s,$,-,
11955
      : loop
11956
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11957
      t loop
11958
      s,-$,,
11959
      s,^['$as_cr_digits']*\n,,
11960
    ' >$as_me.lineno &&
11961
  chmod +x $as_me.lineno ||
11962
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11963
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11964
   { (exit 1); exit 1; }; }
11965
 
11966
  # Don't try to exec as it changes $[0], causing all sort of problems
11967
  # (the dirname of $[0] is not the place where we might find the
11968
  # original and so on.  Autoconf is especially sensible to this).
11969
  . ./$as_me.lineno
11970
  # Exit status is that of the last command.
11971
  exit
11972
}
11973
 
11974
 
11975
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11976
  *c*,-n*) ECHO_N= ECHO_C='
11977
' ECHO_T='      ' ;;
11978
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11979
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11980
esac
11981
 
11982
if expr a : '\(a\)' >/dev/null 2>&1; then
11983
  as_expr=expr
11984
else
11985
  as_expr=false
11986
fi
11987
 
11988
rm -f conf$$ conf$$.exe conf$$.file
11989
echo >conf$$.file
11990
if ln -s conf$$.file conf$$ 2>/dev/null; then
11991
  # We could just check for DJGPP; but this test a) works b) is more generic
11992
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11993
  if test -f conf$$.exe; then
11994
    # Don't use ln at all; we don't have any links
11995
    as_ln_s='cp -p'
11996
  else
11997
    as_ln_s='ln -s'
11998
  fi
11999
elif ln conf$$.file conf$$ 2>/dev/null; then
12000
  as_ln_s=ln
12001
else
12002
  as_ln_s='cp -p'
12003
fi
12004
rm -f conf$$ conf$$.exe conf$$.file
12005
 
12006
if mkdir -p . 2>/dev/null; then
12007
  as_mkdir_p=:
12008
else
12009
  test -d ./-p && rmdir ./-p
12010
  as_mkdir_p=false
12011
fi
12012
 
12013
as_executable_p="test -f"
12014
 
12015
# Sed expression to map a string onto a valid CPP name.
12016
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12017
 
12018
# Sed expression to map a string onto a valid variable name.
12019
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12020
 
12021
 
12022
# IFS
12023
# We need space, tab and new line, in precisely that order.
12024
as_nl='
12025
'
12026
IFS="   $as_nl"
12027
 
12028
# CDPATH.
12029
$as_unset CDPATH
12030
 
12031
exec 6>&1
12032
 
12033
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12034
# report actual input values of CONFIG_FILES etc. instead of their
12035
# values after options handling.  Logging --version etc. is OK.
12036
exec 5>>config.log
12037
{
12038
  echo
12039
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12040
## Running $as_me. ##
12041
_ASBOX
12042
} >&5
12043
cat >&5 <<_CSEOF
12044
 
12045
This file was extended by $as_me, which was
12046
generated by GNU Autoconf 2.59.  Invocation command line was
12047
 
12048
  CONFIG_FILES    = $CONFIG_FILES
12049
  CONFIG_HEADERS  = $CONFIG_HEADERS
12050
  CONFIG_LINKS    = $CONFIG_LINKS
12051
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12052
  $ $0 $@
12053
 
12054
_CSEOF
12055
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12056
echo >&5
12057
_ACEOF
12058
 
12059
# Files that config.status was made for.
12060
if test -n "$ac_config_files"; then
12061
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12062
fi
12063
 
12064
if test -n "$ac_config_headers"; then
12065
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12066
fi
12067
 
12068
if test -n "$ac_config_links"; then
12069
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12070
fi
12071
 
12072
if test -n "$ac_config_commands"; then
12073
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12074
fi
12075
 
12076
cat >>$CONFIG_STATUS <<\_ACEOF
12077
 
12078
ac_cs_usage="\
12079
\`$as_me' instantiates files from templates according to the
12080
current configuration.
12081
 
12082
Usage: $0 [OPTIONS] [FILE]...
12083
 
12084
  -h, --help       print this help, then exit
12085
  -V, --version    print version number, then exit
12086
  -q, --quiet      do not print progress messages
12087
  -d, --debug      don't remove temporary files
12088
      --recheck    update $as_me by reconfiguring in the same conditions
12089
  --file=FILE[:TEMPLATE]
12090
                   instantiate the configuration file FILE
12091
  --header=FILE[:TEMPLATE]
12092
                   instantiate the configuration header FILE
12093
 
12094
Configuration files:
12095
$config_files
12096
 
12097
Configuration headers:
12098
$config_headers
12099
 
12100
Configuration commands:
12101
$config_commands
12102
 
12103
Report bugs to ."
12104
_ACEOF
12105
 
12106
cat >>$CONFIG_STATUS <<_ACEOF
12107
ac_cs_version="\\
12108
config.status
12109
configured by $0, generated by GNU Autoconf 2.59,
12110
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12111
 
12112
Copyright (C) 2003 Free Software Foundation, Inc.
12113
This config.status script is free software; the Free Software Foundation
12114
gives unlimited permission to copy, distribute and modify it."
12115
srcdir=$srcdir
12116
INSTALL="$INSTALL"
12117
_ACEOF
12118
 
12119
cat >>$CONFIG_STATUS <<\_ACEOF
12120
# If no file are specified by the user, then we need to provide default
12121
# value.  By we need to know if files were specified by the user.
12122
ac_need_defaults=:
12123
while test $# != 0
12124
do
12125
  case $1 in
12126
  --*=*)
12127
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12128
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12129
    ac_shift=:
12130
    ;;
12131
  -*)
12132
    ac_option=$1
12133
    ac_optarg=$2
12134
    ac_shift=shift
12135
    ;;
12136
  *) # This is not an option, so the user has probably given explicit
12137
     # arguments.
12138
     ac_option=$1
12139
     ac_need_defaults=false;;
12140
  esac
12141
 
12142
  case $ac_option in
12143
  # Handling of the options.
12144
_ACEOF
12145
cat >>$CONFIG_STATUS <<\_ACEOF
12146
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12147
    ac_cs_recheck=: ;;
12148
  --version | --vers* | -V )
12149
    echo "$ac_cs_version"; exit 0 ;;
12150
  --he | --h)
12151
    # Conflict between --help and --header
12152
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12153
Try \`$0 --help' for more information." >&5
12154
echo "$as_me: error: ambiguous option: $1
12155
Try \`$0 --help' for more information." >&2;}
12156
   { (exit 1); exit 1; }; };;
12157
  --help | --hel | -h )
12158
    echo "$ac_cs_usage"; exit 0 ;;
12159
  --debug | --d* | -d )
12160
    debug=: ;;
12161
  --file | --fil | --fi | --f )
12162
    $ac_shift
12163
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12164
    ac_need_defaults=false;;
12165
  --header | --heade | --head | --hea )
12166
    $ac_shift
12167
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12168
    ac_need_defaults=false;;
12169
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12170
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12171
    ac_cs_silent=: ;;
12172
 
12173
  # This is an error.
12174
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12175
Try \`$0 --help' for more information." >&5
12176
echo "$as_me: error: unrecognized option: $1
12177
Try \`$0 --help' for more information." >&2;}
12178
   { (exit 1); exit 1; }; } ;;
12179
 
12180
  *) ac_config_targets="$ac_config_targets $1" ;;
12181
 
12182
  esac
12183
  shift
12184
done
12185
 
12186
ac_configure_extra_args=
12187
 
12188
if $ac_cs_silent; then
12189
  exec 6>/dev/null
12190
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12191
fi
12192
 
12193
_ACEOF
12194
cat >>$CONFIG_STATUS <<_ACEOF
12195
if \$ac_cs_recheck; then
12196
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12197
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12198
fi
12199
 
12200
_ACEOF
12201
 
12202
cat >>$CONFIG_STATUS <<_ACEOF
12203
#
12204
# INIT-COMMANDS section.
12205
#
12206
 
12207
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12208
 
12209
 
12210
# The HP-UX ksh and POSIX shell print the target directory to stdout
12211
# if CDPATH is set.
12212
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12213
 
12214
sed_quote_subst='$sed_quote_subst'
12215
double_quote_subst='$double_quote_subst'
12216
delay_variable_subst='$delay_variable_subst'
12217
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12218
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12219
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12220
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12221
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12222
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12223
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12224
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12225
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12226
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12227
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12228
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12229
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12230
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12231
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12232
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12233
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12234
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12235
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12236
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12237
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12238
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12239
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12240
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12241
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12242
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12243
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12244
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12245
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12246
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12247
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12248
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12249
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12250
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12251
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12252
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12253
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12254
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12255
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12256
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12257
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12258
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12259
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12260
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"`'
12261
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12262
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12263
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12264
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12265
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12266
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12267
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12268
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12269
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12270
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12271
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12272
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12273
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12274
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12275
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12276
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12277
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12278
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12279
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12280
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12281
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12282
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12283
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12286
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12287
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12288
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12290
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12291
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12292
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12293
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12294
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12295
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12296
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12297
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12298
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12299
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12300
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12301
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12302
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12303
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12304
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12305
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12306
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12307
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12308
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12309
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12310
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12311
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12312
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12313
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12314
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12315
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12316
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12317
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12318
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12319
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12320
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12321
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12322
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12323
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12324
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12325
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12326
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12327
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12328
 
12329
LTCC='$LTCC'
12330
LTCFLAGS='$LTCFLAGS'
12331
compiler='$compiler_DEFAULT'
12332
 
12333
# Quote evaled strings.
12334
for var in SED \
12335
GREP \
12336
EGREP \
12337
FGREP \
12338
LD \
12339
NM \
12340
LN_S \
12341
lt_SP2NL \
12342
lt_NL2SP \
12343
reload_flag \
12344
deplibs_check_method \
12345
file_magic_cmd \
12346
AR \
12347
AR_FLAGS \
12348
STRIP \
12349
RANLIB \
12350
CC \
12351
CFLAGS \
12352
compiler \
12353
lt_cv_sys_global_symbol_pipe \
12354
lt_cv_sys_global_symbol_to_cdecl \
12355
lt_cv_sys_global_symbol_to_c_name_address \
12356
SHELL \
12357
ECHO \
12358
lt_prog_compiler_no_builtin_flag \
12359
lt_prog_compiler_wl \
12360
lt_prog_compiler_pic \
12361
lt_prog_compiler_static \
12362
lt_cv_prog_compiler_c_o \
12363
need_locks \
12364
shrext_cmds \
12365
export_dynamic_flag_spec \
12366
whole_archive_flag_spec \
12367
compiler_needs_object \
12368
with_gnu_ld \
12369
allow_undefined_flag \
12370
no_undefined_flag \
12371
hardcode_libdir_flag_spec \
12372
hardcode_libdir_flag_spec_ld \
12373
hardcode_libdir_separator \
12374
fix_srcfile_path \
12375
exclude_expsyms \
12376
include_expsyms \
12377
file_list_spec \
12378
variables_saved_for_relink \
12379
libname_spec \
12380
library_names_spec \
12381
soname_spec \
12382
finish_eval \
12383
old_striplib \
12384
striplib; do
12385
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12386
    *[\\\\\\\`\\"\\\$]*)
12387
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12388
      ;;
12389
    *)
12390
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12391
      ;;
12392
    esac
12393
done
12394
 
12395
# Double-quote double-evaled strings.
12396
for var in reload_cmds \
12397
old_postinstall_cmds \
12398
old_postuninstall_cmds \
12399
old_archive_cmds \
12400
extract_expsyms_cmds \
12401
old_archive_from_new_cmds \
12402
old_archive_from_expsyms_cmds \
12403
archive_cmds \
12404
archive_expsym_cmds \
12405
module_cmds \
12406
module_expsym_cmds \
12407
export_symbols_cmds \
12408
prelink_cmds \
12409
postinstall_cmds \
12410
postuninstall_cmds \
12411
finish_cmds \
12412
sys_lib_search_path_spec \
12413
sys_lib_dlsearch_path_spec; do
12414
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12415
    *[\\\\\\\`\\"\\\$]*)
12416
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12417
      ;;
12418
    *)
12419
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12420
      ;;
12421
    esac
12422
done
12423
 
12424
# Fix-up fallback echo if it was mangled by the above quoting rules.
12425
case \$lt_ECHO in
12426
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12427
  ;;
12428
esac
12429
 
12430
ac_aux_dir='$ac_aux_dir'
12431
xsi_shell='$xsi_shell'
12432
lt_shell_append='$lt_shell_append'
12433
 
12434
# See if we are running on zsh, and set the options which allow our
12435
# commands through without removal of \ escapes INIT.
12436
if test -n "\${ZSH_VERSION+set}" ; then
12437
   setopt NO_GLOB_SUBST
12438
fi
12439
 
12440
 
12441
    PACKAGE='$PACKAGE'
12442
    VERSION='$VERSION'
12443
    TIMESTAMP='$TIMESTAMP'
12444
    RM='$RM'
12445
    ofile='$ofile'
12446
 
12447
 
12448
 
12449
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12450
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12451
    # from automake.
12452
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12453
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12454
    LINGUAS="${LINGUAS-%UNSET%}"
12455
 
12456
 
12457
_ACEOF
12458
 
12459
 
12460
 
12461
cat >>$CONFIG_STATUS <<\_ACEOF
12462
for ac_config_target in $ac_config_targets
12463
do
12464
  case "$ac_config_target" in
12465
  # Handling of arguments.
12466
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12467
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12468
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12469
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12470
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12471
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12472
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12473
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12474
   { (exit 1); exit 1; }; };;
12475
  esac
12476
done
12477
 
12478
# If the user did not use the arguments to specify the items to instantiate,
12479
# then the envvar interface is used.  Set only those that are not.
12480
# We use the long form for the default assignment because of an extremely
12481
# bizarre bug on SunOS 4.1.3.
12482
if $ac_need_defaults; then
12483
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12484
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12485
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12486
fi
12487
 
12488
# Have a temporary directory for convenience.  Make it in the build tree
12489
# simply because there is no reason to put it here, and in addition,
12490
# creating and moving files from /tmp can sometimes cause problems.
12491
# Create a temporary directory, and hook for its removal unless debugging.
12492
$debug ||
12493
{
12494
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12495
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12496
}
12497
 
12498
# Create a (secure) tmp directory for tmp files.
12499
 
12500
{
12501
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12502
  test -n "$tmp" && test -d "$tmp"
12503
}  ||
12504
{
12505
  tmp=./confstat$$-$RANDOM
12506
  (umask 077 && mkdir $tmp)
12507
} ||
12508
{
12509
   echo "$me: cannot create a temporary directory in ." >&2
12510
   { (exit 1); exit 1; }
12511
}
12512
 
12513
_ACEOF
12514
 
12515
cat >>$CONFIG_STATUS <<_ACEOF
12516
 
12517
#
12518
# CONFIG_FILES section.
12519
#
12520
 
12521
# No need to generate the scripts if there are no CONFIG_FILES.
12522
# This happens for instance when ./config.status config.h
12523
if test -n "\$CONFIG_FILES"; then
12524
  # Protect against being on the right side of a sed subst in config.status.
12525
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12526
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12527
s,@SHELL@,$SHELL,;t t
12528
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12529
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12530
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12531
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12532
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12533
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12534
s,@exec_prefix@,$exec_prefix,;t t
12535
s,@prefix@,$prefix,;t t
12536
s,@program_transform_name@,$program_transform_name,;t t
12537
s,@bindir@,$bindir,;t t
12538
s,@sbindir@,$sbindir,;t t
12539
s,@libexecdir@,$libexecdir,;t t
12540
s,@datadir@,$datadir,;t t
12541
s,@sysconfdir@,$sysconfdir,;t t
12542
s,@sharedstatedir@,$sharedstatedir,;t t
12543
s,@localstatedir@,$localstatedir,;t t
12544
s,@libdir@,$libdir,;t t
12545
s,@includedir@,$includedir,;t t
12546
s,@oldincludedir@,$oldincludedir,;t t
12547
s,@infodir@,$infodir,;t t
12548
s,@mandir@,$mandir,;t t
12549
s,@build_alias@,$build_alias,;t t
12550
s,@host_alias@,$host_alias,;t t
12551
s,@target_alias@,$target_alias,;t t
12552
s,@DEFS@,$DEFS,;t t
12553
s,@ECHO_C@,$ECHO_C,;t t
12554
s,@ECHO_N@,$ECHO_N,;t t
12555
s,@ECHO_T@,$ECHO_T,;t t
12556
s,@LIBS@,$LIBS,;t t
12557
s,@build@,$build,;t t
12558
s,@build_cpu@,$build_cpu,;t t
12559
s,@build_vendor@,$build_vendor,;t t
12560
s,@build_os@,$build_os,;t t
12561
s,@host@,$host,;t t
12562
s,@host_cpu@,$host_cpu,;t t
12563
s,@host_vendor@,$host_vendor,;t t
12564
s,@host_os@,$host_os,;t t
12565
s,@target@,$target,;t t
12566
s,@target_cpu@,$target_cpu,;t t
12567
s,@target_vendor@,$target_vendor,;t t
12568
s,@target_os@,$target_os,;t t
12569
s,@CC@,$CC,;t t
12570
s,@CFLAGS@,$CFLAGS,;t t
12571
s,@LDFLAGS@,$LDFLAGS,;t t
12572
s,@CPPFLAGS@,$CPPFLAGS,;t t
12573
s,@ac_ct_CC@,$ac_ct_CC,;t t
12574
s,@EXEEXT@,$EXEEXT,;t t
12575
s,@OBJEXT@,$OBJEXT,;t t
12576
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12577
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12578
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12579
s,@CYGPATH_W@,$CYGPATH_W,;t t
12580
s,@PACKAGE@,$PACKAGE,;t t
12581
s,@VERSION@,$VERSION,;t t
12582
s,@ACLOCAL@,$ACLOCAL,;t t
12583
s,@AUTOCONF@,$AUTOCONF,;t t
12584
s,@AUTOMAKE@,$AUTOMAKE,;t t
12585
s,@AUTOHEADER@,$AUTOHEADER,;t t
12586
s,@MAKEINFO@,$MAKEINFO,;t t
12587
s,@install_sh@,$install_sh,;t t
12588
s,@STRIP@,$STRIP,;t t
12589
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12590
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12591
s,@mkdir_p@,$mkdir_p,;t t
12592
s,@AWK@,$AWK,;t t
12593
s,@SET_MAKE@,$SET_MAKE,;t t
12594
s,@am__leading_dot@,$am__leading_dot,;t t
12595
s,@AMTAR@,$AMTAR,;t t
12596
s,@am__tar@,$am__tar,;t t
12597
s,@am__untar@,$am__untar,;t t
12598
s,@DEPDIR@,$DEPDIR,;t t
12599
s,@am__include@,$am__include,;t t
12600
s,@am__quote@,$am__quote,;t t
12601
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12602
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12603
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12604
s,@CCDEPMODE@,$CCDEPMODE,;t t
12605
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12606
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12607
s,@AR@,$AR,;t t
12608
s,@ac_ct_AR@,$ac_ct_AR,;t t
12609
s,@RANLIB@,$RANLIB,;t t
12610
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12611
s,@LIBTOOL@,$LIBTOOL,;t t
12612
s,@SED@,$SED,;t t
12613
s,@EGREP@,$EGREP,;t t
12614
s,@FGREP@,$FGREP,;t t
12615
s,@GREP@,$GREP,;t t
12616
s,@LD@,$LD,;t t
12617
s,@DUMPBIN@,$DUMPBIN,;t t
12618
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12619
s,@NM@,$NM,;t t
12620
s,@LN_S@,$LN_S,;t t
12621
s,@lt_ECHO@,$lt_ECHO,;t t
12622
s,@CPP@,$CPP,;t t
12623
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12624
s,@NO_WERROR@,$NO_WERROR,;t t
12625
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12626
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12627
s,@MAINT@,$MAINT,;t t
12628
s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12629
s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12630
s,@host_noncanonical@,$host_noncanonical,;t t
12631
s,@target_noncanonical@,$target_noncanonical,;t t
12632
s,@bfdlibdir@,$bfdlibdir,;t t
12633
s,@bfdincludedir@,$bfdincludedir,;t t
12634
s,@USE_NLS@,$USE_NLS,;t t
12635
s,@LIBINTL@,$LIBINTL,;t t
12636
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12637
s,@INCINTL@,$INCINTL,;t t
12638
s,@XGETTEXT@,$XGETTEXT,;t t
12639
s,@GMSGFMT@,$GMSGFMT,;t t
12640
s,@POSUB@,$POSUB,;t t
12641
s,@CATALOGS@,$CATALOGS,;t t
12642
s,@DATADIRNAME@,$DATADIRNAME,;t t
12643
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12644
s,@GENCAT@,$GENCAT,;t t
12645
s,@CATOBJEXT@,$CATOBJEXT,;t t
12646
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12647
s,@MSGFMT@,$MSGFMT,;t t
12648
s,@MSGMERGE@,$MSGMERGE,;t t
12649
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12650
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12651
s,@HDEFINES@,$HDEFINES,;t t
12652
s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12653
s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12654
s,@cgendir@,$cgendir,;t t
12655
s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12656
s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12657
s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
12658
s,@archdefs@,$archdefs,;t t
12659
s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12660
s,@LIBOBJS@,$LIBOBJS,;t t
12661
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12662
CEOF
12663
 
12664
_ACEOF
12665
 
12666
  cat >>$CONFIG_STATUS <<\_ACEOF
12667
  # Split the substitutions into bite-sized pieces for seds with
12668
  # small command number limits, like on Digital OSF/1 and HP-UX.
12669
  ac_max_sed_lines=48
12670
  ac_sed_frag=1 # Number of current file.
12671
  ac_beg=1 # First line for current file.
12672
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12673
  ac_more_lines=:
12674
  ac_sed_cmds=
12675
  while $ac_more_lines; do
12676
    if test $ac_beg -gt 1; then
12677
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12678
    else
12679
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12680
    fi
12681
    if test ! -s $tmp/subs.frag; then
12682
      ac_more_lines=false
12683
    else
12684
      # The purpose of the label and of the branching condition is to
12685
      # speed up the sed processing (if there are no `@' at all, there
12686
      # is no need to browse any of the substitutions).
12687
      # These are the two extra sed commands mentioned above.
12688
      (echo ':t
12689
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12690
      if test -z "$ac_sed_cmds"; then
12691
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12692
      else
12693
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12694
      fi
12695
      ac_sed_frag=`expr $ac_sed_frag + 1`
12696
      ac_beg=$ac_end
12697
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12698
    fi
12699
  done
12700
  if test -z "$ac_sed_cmds"; then
12701
    ac_sed_cmds=cat
12702
  fi
12703
fi # test -n "$CONFIG_FILES"
12704
 
12705
_ACEOF
12706
cat >>$CONFIG_STATUS <<\_ACEOF
12707
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12708
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12709
  case $ac_file in
12710
  - | *:- | *:-:* ) # input from stdin
12711
        cat >$tmp/stdin
12712
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12713
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12714
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12715
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12716
  * )   ac_file_in=$ac_file.in ;;
12717
  esac
12718
 
12719
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12720
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12721
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12722
         X"$ac_file" : 'X\(//\)[^/]' \| \
12723
         X"$ac_file" : 'X\(//\)$' \| \
12724
         X"$ac_file" : 'X\(/\)' \| \
12725
         .     : '\(.\)' 2>/dev/null ||
12726
echo X"$ac_file" |
12727
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12728
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12729
          /^X\(\/\/\)$/{ s//\1/; q; }
12730
          /^X\(\/\).*/{ s//\1/; q; }
12731
          s/.*/./; q'`
12732
  { if $as_mkdir_p; then
12733
    mkdir -p "$ac_dir"
12734
  else
12735
    as_dir="$ac_dir"
12736
    as_dirs=
12737
    while test ! -d "$as_dir"; do
12738
      as_dirs="$as_dir $as_dirs"
12739
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12740
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12741
         X"$as_dir" : 'X\(//\)[^/]' \| \
12742
         X"$as_dir" : 'X\(//\)$' \| \
12743
         X"$as_dir" : 'X\(/\)' \| \
12744
         .     : '\(.\)' 2>/dev/null ||
12745
echo X"$as_dir" |
12746
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12747
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12748
          /^X\(\/\/\)$/{ s//\1/; q; }
12749
          /^X\(\/\).*/{ s//\1/; q; }
12750
          s/.*/./; q'`
12751
    done
12752
    test ! -n "$as_dirs" || mkdir $as_dirs
12753
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12754
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12755
   { (exit 1); exit 1; }; }; }
12756
 
12757
  ac_builddir=.
12758
 
12759
if test "$ac_dir" != .; then
12760
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12761
  # A "../" for each directory in $ac_dir_suffix.
12762
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12763
else
12764
  ac_dir_suffix= ac_top_builddir=
12765
fi
12766
 
12767
case $srcdir in
12768
  .)  # No --srcdir option.  We are building in place.
12769
    ac_srcdir=.
12770
    if test -z "$ac_top_builddir"; then
12771
       ac_top_srcdir=.
12772
    else
12773
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12774
    fi ;;
12775
  [\\/]* | ?:[\\/]* )  # Absolute path.
12776
    ac_srcdir=$srcdir$ac_dir_suffix;
12777
    ac_top_srcdir=$srcdir ;;
12778
  *) # Relative path.
12779
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12780
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12781
esac
12782
 
12783
# Do not use `cd foo && pwd` to compute absolute paths, because
12784
# the directories may not exist.
12785
case `pwd` in
12786
.) ac_abs_builddir="$ac_dir";;
12787
*)
12788
  case "$ac_dir" in
12789
  .) ac_abs_builddir=`pwd`;;
12790
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12791
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12792
  esac;;
12793
esac
12794
case $ac_abs_builddir in
12795
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12796
*)
12797
  case ${ac_top_builddir}. in
12798
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12799
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12800
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12801
  esac;;
12802
esac
12803
case $ac_abs_builddir in
12804
.) ac_abs_srcdir=$ac_srcdir;;
12805
*)
12806
  case $ac_srcdir in
12807
  .) ac_abs_srcdir=$ac_abs_builddir;;
12808
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12809
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12810
  esac;;
12811
esac
12812
case $ac_abs_builddir in
12813
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12814
*)
12815
  case $ac_top_srcdir in
12816
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12817
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12818
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12819
  esac;;
12820
esac
12821
 
12822
 
12823
  case $INSTALL in
12824
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12825
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12826
  esac
12827
 
12828
  if test x"$ac_file" != x-; then
12829
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12830
echo "$as_me: creating $ac_file" >&6;}
12831
    rm -f "$ac_file"
12832
  fi
12833
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12834
  # use $as_me), people would be surprised to read:
12835
  #    /* config.h.  Generated by config.status.  */
12836
  if test x"$ac_file" = x-; then
12837
    configure_input=
12838
  else
12839
    configure_input="$ac_file.  "
12840
  fi
12841
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12842
                                     sed 's,.*/,,'` by configure."
12843
 
12844
  # First look for the input files in the build tree, otherwise in the
12845
  # src tree.
12846
  ac_file_inputs=`IFS=:
12847
    for f in $ac_file_in; do
12848
      case $f in
12849
      -) echo $tmp/stdin ;;
12850
      [\\/$]*)
12851
         # Absolute (can't be DOS-style, as IFS=:)
12852
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12853
echo "$as_me: error: cannot find input file: $f" >&2;}
12854
   { (exit 1); exit 1; }; }
12855
         echo "$f";;
12856
      *) # Relative
12857
         if test -f "$f"; then
12858
           # Build tree
12859
           echo "$f"
12860
         elif test -f "$srcdir/$f"; then
12861
           # Source tree
12862
           echo "$srcdir/$f"
12863
         else
12864
           # /dev/null tree
12865
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12866
echo "$as_me: error: cannot find input file: $f" >&2;}
12867
   { (exit 1); exit 1; }; }
12868
         fi;;
12869
      esac
12870
    done` || { (exit 1); exit 1; }
12871
_ACEOF
12872
cat >>$CONFIG_STATUS <<_ACEOF
12873
  sed "$ac_vpsub
12874
$extrasub
12875
_ACEOF
12876
cat >>$CONFIG_STATUS <<\_ACEOF
12877
:t
12878
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12879
s,@configure_input@,$configure_input,;t t
12880
s,@srcdir@,$ac_srcdir,;t t
12881
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12882
s,@top_srcdir@,$ac_top_srcdir,;t t
12883
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12884
s,@builddir@,$ac_builddir,;t t
12885
s,@abs_builddir@,$ac_abs_builddir,;t t
12886
s,@top_builddir@,$ac_top_builddir,;t t
12887
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12888
s,@INSTALL@,$ac_INSTALL,;t t
12889
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12890
  rm -f $tmp/stdin
12891
  if test x"$ac_file" != x-; then
12892
    mv $tmp/out $ac_file
12893
  else
12894
    cat $tmp/out
12895
    rm -f $tmp/out
12896
  fi
12897
 
12898
done
12899
_ACEOF
12900
cat >>$CONFIG_STATUS <<\_ACEOF
12901
 
12902
#
12903
# CONFIG_HEADER section.
12904
#
12905
 
12906
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12907
# NAME is the cpp macro being defined and VALUE is the value it is being given.
12908
#
12909
# ac_d sets the value in "#define NAME VALUE" lines.
12910
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12911
ac_dB='[         ].*$,\1#\2'
12912
ac_dC=' '
12913
ac_dD=',;t'
12914
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12915
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12916
ac_uB='$,\1#\2define\3'
12917
ac_uC=' '
12918
ac_uD=',;t'
12919
 
12920
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12921
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12922
  case $ac_file in
12923
  - | *:- | *:-:* ) # input from stdin
12924
        cat >$tmp/stdin
12925
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12926
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12927
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12928
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12929
  * )   ac_file_in=$ac_file.in ;;
12930
  esac
12931
 
12932
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12933
echo "$as_me: creating $ac_file" >&6;}
12934
 
12935
  # First look for the input files in the build tree, otherwise in the
12936
  # src tree.
12937
  ac_file_inputs=`IFS=:
12938
    for f in $ac_file_in; do
12939
      case $f in
12940
      -) echo $tmp/stdin ;;
12941
      [\\/$]*)
12942
         # Absolute (can't be DOS-style, as IFS=:)
12943
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12944
echo "$as_me: error: cannot find input file: $f" >&2;}
12945
   { (exit 1); exit 1; }; }
12946
         # Do quote $f, to prevent DOS paths from being IFS'd.
12947
         echo "$f";;
12948
      *) # Relative
12949
         if test -f "$f"; then
12950
           # Build tree
12951
           echo "$f"
12952
         elif test -f "$srcdir/$f"; then
12953
           # Source tree
12954
           echo "$srcdir/$f"
12955
         else
12956
           # /dev/null tree
12957
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12958
echo "$as_me: error: cannot find input file: $f" >&2;}
12959
   { (exit 1); exit 1; }; }
12960
         fi;;
12961
      esac
12962
    done` || { (exit 1); exit 1; }
12963
  # Remove the trailing spaces.
12964
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12965
 
12966
_ACEOF
12967
 
12968
# Transform confdefs.h into two sed scripts, `conftest.defines' and
12969
# `conftest.undefs', that substitutes the proper values into
12970
# config.h.in to produce config.h.  The first handles `#define'
12971
# templates, and the second `#undef' templates.
12972
# And first: Protect against being on the right side of a sed subst in
12973
# config.status.  Protect against being in an unquoted here document
12974
# in config.status.
12975
rm -f conftest.defines conftest.undefs
12976
# Using a here document instead of a string reduces the quoting nightmare.
12977
# Putting comments in sed scripts is not portable.
12978
#
12979
# `end' is used to avoid that the second main sed command (meant for
12980
# 0-ary CPP macros) applies to n-ary macro definitions.
12981
# See the Autoconf documentation for `clear'.
12982
cat >confdef2sed.sed <<\_ACEOF
12983
s/[\\&,]/\\&/g
12984
s,[\\$`],\\&,g
12985
t clear
12986
: clear
12987
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12988
t end
12989
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12990
: end
12991
_ACEOF
12992
# If some macros were called several times there might be several times
12993
# the same #defines, which is useless.  Nevertheless, we may not want to
12994
# sort them, since we want the *last* AC-DEFINE to be honored.
12995
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12996
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12997
rm -f confdef2sed.sed
12998
 
12999
# This sed command replaces #undef with comments.  This is necessary, for
13000
# example, in the case of _POSIX_SOURCE, which is predefined and required
13001
# on some systems where configure will not decide to define it.
13002
cat >>conftest.undefs <<\_ACEOF
13003
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13004
_ACEOF
13005
 
13006
# Break up conftest.defines because some shells have a limit on the size
13007
# of here documents, and old seds have small limits too (100 cmds).
13008
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13009
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13010
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13011
echo '  :' >>$CONFIG_STATUS
13012
rm -f conftest.tail
13013
while grep . conftest.defines >/dev/null
13014
do
13015
  # Write a limited-size here document to $tmp/defines.sed.
13016
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
13017
  # Speed up: don't consider the non `#define' lines.
13018
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13019
  # Work around the forget-to-reset-the-flag bug.
13020
  echo 't clr' >>$CONFIG_STATUS
13021
  echo ': clr' >>$CONFIG_STATUS
13022
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13023
  echo 'CEOF
13024
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13025
  rm -f $tmp/in
13026
  mv $tmp/out $tmp/in
13027
' >>$CONFIG_STATUS
13028
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13029
  rm -f conftest.defines
13030
  mv conftest.tail conftest.defines
13031
done
13032
rm -f conftest.defines
13033
echo '  fi # grep' >>$CONFIG_STATUS
13034
echo >>$CONFIG_STATUS
13035
 
13036
# Break up conftest.undefs because some shells have a limit on the size
13037
# of here documents, and old seds have small limits too (100 cmds).
13038
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13039
rm -f conftest.tail
13040
while grep . conftest.undefs >/dev/null
13041
do
13042
  # Write a limited-size here document to $tmp/undefs.sed.
13043
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
13044
  # Speed up: don't consider the non `#undef'
13045
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13046
  # Work around the forget-to-reset-the-flag bug.
13047
  echo 't clr' >>$CONFIG_STATUS
13048
  echo ': clr' >>$CONFIG_STATUS
13049
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13050
  echo 'CEOF
13051
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13052
  rm -f $tmp/in
13053
  mv $tmp/out $tmp/in
13054
' >>$CONFIG_STATUS
13055
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13056
  rm -f conftest.undefs
13057
  mv conftest.tail conftest.undefs
13058
done
13059
rm -f conftest.undefs
13060
 
13061
cat >>$CONFIG_STATUS <<\_ACEOF
13062
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13063
  # use $as_me), people would be surprised to read:
13064
  #    /* config.h.  Generated by config.status.  */
13065
  if test x"$ac_file" = x-; then
13066
    echo "/* Generated by configure.  */" >$tmp/config.h
13067
  else
13068
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13069
  fi
13070
  cat $tmp/in >>$tmp/config.h
13071
  rm -f $tmp/in
13072
  if test x"$ac_file" != x-; then
13073
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13074
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13075
echo "$as_me: $ac_file is unchanged" >&6;}
13076
    else
13077
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13078
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13079
         X"$ac_file" : 'X\(//\)[^/]' \| \
13080
         X"$ac_file" : 'X\(//\)$' \| \
13081
         X"$ac_file" : 'X\(/\)' \| \
13082
         .     : '\(.\)' 2>/dev/null ||
13083
echo X"$ac_file" |
13084
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13085
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13086
          /^X\(\/\/\)$/{ s//\1/; q; }
13087
          /^X\(\/\).*/{ s//\1/; q; }
13088
          s/.*/./; q'`
13089
      { if $as_mkdir_p; then
13090
    mkdir -p "$ac_dir"
13091
  else
13092
    as_dir="$ac_dir"
13093
    as_dirs=
13094
    while test ! -d "$as_dir"; do
13095
      as_dirs="$as_dir $as_dirs"
13096
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13097
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13098
         X"$as_dir" : 'X\(//\)[^/]' \| \
13099
         X"$as_dir" : 'X\(//\)$' \| \
13100
         X"$as_dir" : 'X\(/\)' \| \
13101
         .     : '\(.\)' 2>/dev/null ||
13102
echo X"$as_dir" |
13103
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13104
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13105
          /^X\(\/\/\)$/{ s//\1/; q; }
13106
          /^X\(\/\).*/{ s//\1/; q; }
13107
          s/.*/./; q'`
13108
    done
13109
    test ! -n "$as_dirs" || mkdir $as_dirs
13110
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13111
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13112
   { (exit 1); exit 1; }; }; }
13113
 
13114
      rm -f $ac_file
13115
      mv $tmp/config.h $ac_file
13116
    fi
13117
  else
13118
    cat $tmp/config.h
13119
    rm -f $tmp/config.h
13120
  fi
13121
# Compute $ac_file's index in $config_headers.
13122
_am_stamp_count=1
13123
for _am_header in $config_headers :; do
13124
  case $_am_header in
13125
    $ac_file | $ac_file:* )
13126
      break ;;
13127
    * )
13128
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13129
  esac
13130
done
13131
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13132
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133
         X$ac_file : 'X\(//\)[^/]' \| \
13134
         X$ac_file : 'X\(//\)$' \| \
13135
         X$ac_file : 'X\(/\)' \| \
13136
         .     : '\(.\)' 2>/dev/null ||
13137
echo X$ac_file |
13138
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140
          /^X\(\/\/\)$/{ s//\1/; q; }
13141
          /^X\(\/\).*/{ s//\1/; q; }
13142
          s/.*/./; q'`/stamp-h$_am_stamp_count
13143
done
13144
_ACEOF
13145
cat >>$CONFIG_STATUS <<\_ACEOF
13146
 
13147
#
13148
# CONFIG_COMMANDS section.
13149
#
13150
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13151
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13152
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13153
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13154
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13156
         X"$ac_dest" : 'X\(//\)$' \| \
13157
         X"$ac_dest" : 'X\(/\)' \| \
13158
         .     : '\(.\)' 2>/dev/null ||
13159
echo X"$ac_dest" |
13160
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13161
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13162
          /^X\(\/\/\)$/{ s//\1/; q; }
13163
          /^X\(\/\).*/{ s//\1/; q; }
13164
          s/.*/./; q'`
13165
  { if $as_mkdir_p; then
13166
    mkdir -p "$ac_dir"
13167
  else
13168
    as_dir="$ac_dir"
13169
    as_dirs=
13170
    while test ! -d "$as_dir"; do
13171
      as_dirs="$as_dir $as_dirs"
13172
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13173
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13174
         X"$as_dir" : 'X\(//\)[^/]' \| \
13175
         X"$as_dir" : 'X\(//\)$' \| \
13176
         X"$as_dir" : 'X\(/\)' \| \
13177
         .     : '\(.\)' 2>/dev/null ||
13178
echo X"$as_dir" |
13179
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13180
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13181
          /^X\(\/\/\)$/{ s//\1/; q; }
13182
          /^X\(\/\).*/{ s//\1/; q; }
13183
          s/.*/./; q'`
13184
    done
13185
    test ! -n "$as_dirs" || mkdir $as_dirs
13186
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13187
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13188
   { (exit 1); exit 1; }; }; }
13189
 
13190
  ac_builddir=.
13191
 
13192
if test "$ac_dir" != .; then
13193
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13194
  # A "../" for each directory in $ac_dir_suffix.
13195
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13196
else
13197
  ac_dir_suffix= ac_top_builddir=
13198
fi
13199
 
13200
case $srcdir in
13201
  .)  # No --srcdir option.  We are building in place.
13202
    ac_srcdir=.
13203
    if test -z "$ac_top_builddir"; then
13204
       ac_top_srcdir=.
13205
    else
13206
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13207
    fi ;;
13208
  [\\/]* | ?:[\\/]* )  # Absolute path.
13209
    ac_srcdir=$srcdir$ac_dir_suffix;
13210
    ac_top_srcdir=$srcdir ;;
13211
  *) # Relative path.
13212
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13213
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13214
esac
13215
 
13216
# Do not use `cd foo && pwd` to compute absolute paths, because
13217
# the directories may not exist.
13218
case `pwd` in
13219
.) ac_abs_builddir="$ac_dir";;
13220
*)
13221
  case "$ac_dir" in
13222
  .) ac_abs_builddir=`pwd`;;
13223
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13224
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13225
  esac;;
13226
esac
13227
case $ac_abs_builddir in
13228
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13229
*)
13230
  case ${ac_top_builddir}. in
13231
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13232
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13233
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13234
  esac;;
13235
esac
13236
case $ac_abs_builddir in
13237
.) ac_abs_srcdir=$ac_srcdir;;
13238
*)
13239
  case $ac_srcdir in
13240
  .) ac_abs_srcdir=$ac_abs_builddir;;
13241
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13242
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13243
  esac;;
13244
esac
13245
case $ac_abs_builddir in
13246
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13247
*)
13248
  case $ac_top_srcdir in
13249
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13250
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13251
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13252
  esac;;
13253
esac
13254
 
13255
 
13256
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13257
echo "$as_me: executing $ac_dest commands" >&6;}
13258
  case $ac_dest in
13259
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13260
  # Strip MF so we end up with the name of the file.
13261
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13262
  # Check whether this is an Automake generated Makefile or not.
13263
  # We used to match only the files named `Makefile.in', but
13264
  # some people rename them; so instead we look at the file content.
13265
  # Grep'ing the first line is not enough: some people post-process
13266
  # each Makefile.in and add a new line on top of each file to say so.
13267
  # So let's grep whole file.
13268
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13269
    dirpart=`(dirname "$mf") 2>/dev/null ||
13270
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13271
         X"$mf" : 'X\(//\)[^/]' \| \
13272
         X"$mf" : 'X\(//\)$' \| \
13273
         X"$mf" : 'X\(/\)' \| \
13274
         .     : '\(.\)' 2>/dev/null ||
13275
echo X"$mf" |
13276
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13277
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13278
          /^X\(\/\/\)$/{ s//\1/; q; }
13279
          /^X\(\/\).*/{ s//\1/; q; }
13280
          s/.*/./; q'`
13281
  else
13282
    continue
13283
  fi
13284
  # Extract the definition of DEPDIR, am__include, and am__quote
13285
  # from the Makefile without running `make'.
13286
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13287
  test -z "$DEPDIR" && continue
13288
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13289
  test -z "am__include" && continue
13290
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13291
  # When using ansi2knr, U may be empty or an underscore; expand it
13292
  U=`sed -n 's/^U = //p' < "$mf"`
13293
  # Find all dependency output files, they are included files with
13294
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13295
  # simplest approach to changing $(DEPDIR) to its actual value in the
13296
  # expansion.
13297
  for file in `sed -n "
13298
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13299
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13300
    # Make sure the directory exists.
13301
    test -f "$dirpart/$file" && continue
13302
    fdir=`(dirname "$file") 2>/dev/null ||
13303
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304
         X"$file" : 'X\(//\)[^/]' \| \
13305
         X"$file" : 'X\(//\)$' \| \
13306
         X"$file" : 'X\(/\)' \| \
13307
         .     : '\(.\)' 2>/dev/null ||
13308
echo X"$file" |
13309
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13310
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13311
          /^X\(\/\/\)$/{ s//\1/; q; }
13312
          /^X\(\/\).*/{ s//\1/; q; }
13313
          s/.*/./; q'`
13314
    { if $as_mkdir_p; then
13315
    mkdir -p $dirpart/$fdir
13316
  else
13317
    as_dir=$dirpart/$fdir
13318
    as_dirs=
13319
    while test ! -d "$as_dir"; do
13320
      as_dirs="$as_dir $as_dirs"
13321
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13322
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13323
         X"$as_dir" : 'X\(//\)[^/]' \| \
13324
         X"$as_dir" : 'X\(//\)$' \| \
13325
         X"$as_dir" : 'X\(/\)' \| \
13326
         .     : '\(.\)' 2>/dev/null ||
13327
echo X"$as_dir" |
13328
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13329
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13330
          /^X\(\/\/\)$/{ s//\1/; q; }
13331
          /^X\(\/\).*/{ s//\1/; q; }
13332
          s/.*/./; q'`
13333
    done
13334
    test ! -n "$as_dirs" || mkdir $as_dirs
13335
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13336
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13337
   { (exit 1); exit 1; }; }; }
13338
 
13339
    # echo "creating $dirpart/$file"
13340
    echo '# dummy' > "$dirpart/$file"
13341
  done
13342
done
13343
 ;;
13344
    libtool )
13345
 
13346
    # See if we are running on zsh, and set the options which allow our
13347
    # commands through without removal of \ escapes.
13348
    if test -n "${ZSH_VERSION+set}" ; then
13349
      setopt NO_GLOB_SUBST
13350
    fi
13351
 
13352
    cfgfile="${ofile}T"
13353
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13354
    $RM "$cfgfile"
13355
 
13356
    cat <<_LT_EOF >> "$cfgfile"
13357
#! $SHELL
13358
 
13359
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13360
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13361
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13362
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13363
#
13364
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13365
# 2006, 2007 Free Software Foundation, Inc.
13366
#
13367
# This file is part of GNU Libtool:
13368
# Originally by Gordon Matzigkeit , 1996
13369
#
13370
# This program is free software; you can redistribute it and/or modify
13371
# it under the terms of the GNU General Public License as published by
13372
# the Free Software Foundation; either version 2 of the License, or
13373
# (at your option) any later version.
13374
#
13375
# This program is distributed in the hope that it will be useful, but
13376
# WITHOUT ANY WARRANTY; without even the implied warranty of
13377
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13378
# General Public License for more details.
13379
#
13380
# You should have received a copy of the GNU General Public License
13381
# along with this program; if not, a copy can be downloaded from
13382
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13383
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13384
# MA 02110-1301, USA.
13385
#
13386
# As a special exception to the GNU General Public License, if you
13387
# distribute this file as part of a program that contains a
13388
# configuration script generated by Autoconf, you may include it under
13389
# the same distribution terms that you use for the rest of that program.
13390
 
13391
 
13392
# The names of the tagged configurations supported by this script.
13393
available_tags=""
13394
 
13395
# ### BEGIN LIBTOOL CONFIG
13396
 
13397
# Whether or not to build shared libraries.
13398
build_libtool_libs=$enable_shared
13399
 
13400
# Which release of libtool.m4 was used?
13401
macro_version=$macro_version
13402
macro_revision=$macro_revision
13403
 
13404
# Whether or not to build static libraries.
13405
build_old_libs=$enable_static
13406
 
13407
# What type of objects to build.
13408
pic_mode=$pic_mode
13409
 
13410
# Whether or not to optimize for fast installation.
13411
fast_install=$enable_fast_install
13412
 
13413
# The host system.
13414
host_alias=$host_alias
13415
host=$host
13416
host_os=$host_os
13417
 
13418
# The build system.
13419
build_alias=$build_alias
13420
build=$build
13421
build_os=$build_os
13422
 
13423
# A sed program that does not truncate output.
13424
SED=$lt_SED
13425
 
13426
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13427
Xsed="\$SED -e 1s/^X//"
13428
 
13429
# A grep program that handles long lines.
13430
GREP=$lt_GREP
13431
 
13432
# An ERE matcher.
13433
EGREP=$lt_EGREP
13434
 
13435
# A literal string matcher.
13436
FGREP=$lt_FGREP
13437
 
13438
# A BSD- or MS-compatible name lister.
13439
NM=$lt_NM
13440
 
13441
# Whether we need soft or hard links.
13442
LN_S=$lt_LN_S
13443
 
13444
# What is the maximum length of a command?
13445
max_cmd_len=$max_cmd_len
13446
 
13447
# Object file suffix (normally "o").
13448
objext=$ac_objext
13449
 
13450
# Executable file suffix (normally "").
13451
exeext=$exeext
13452
 
13453
# whether the shell understands "unset".
13454
lt_unset=$lt_unset
13455
 
13456
# turn spaces into newlines.
13457
SP2NL=$lt_lt_SP2NL
13458
 
13459
# turn newlines into spaces.
13460
NL2SP=$lt_lt_NL2SP
13461
 
13462
# How to create reloadable object files.
13463
reload_flag=$lt_reload_flag
13464
reload_cmds=$lt_reload_cmds
13465
 
13466
# Method to check whether dependent libraries are shared objects.
13467
deplibs_check_method=$lt_deplibs_check_method
13468
 
13469
# Command to use when deplibs_check_method == "file_magic".
13470
file_magic_cmd=$lt_file_magic_cmd
13471
 
13472
# The archiver.
13473
AR=$lt_AR
13474
AR_FLAGS=$lt_AR_FLAGS
13475
 
13476
# A symbol stripping program.
13477
STRIP=$lt_STRIP
13478
 
13479
# Commands used to install an old-style archive.
13480
RANLIB=$lt_RANLIB
13481
old_postinstall_cmds=$lt_old_postinstall_cmds
13482
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13483
 
13484
# A C compiler.
13485
LTCC=$lt_CC
13486
 
13487
# LTCC compiler flags.
13488
LTCFLAGS=$lt_CFLAGS
13489
 
13490
# Take the output of nm and produce a listing of raw symbols and C names.
13491
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13492
 
13493
# Transform the output of nm in a proper C declaration.
13494
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13495
 
13496
# Transform the output of nm in a C name address pair.
13497
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13498
 
13499
# The name of the directory that contains temporary libtool files.
13500
objdir=$objdir
13501
 
13502
# Shell to use when invoking shell scripts.
13503
SHELL=$lt_SHELL
13504
 
13505
# An echo program that does not interpret backslashes.
13506
ECHO=$lt_ECHO
13507
 
13508
# Used to examine libraries when file_magic_cmd begins with "file".
13509
MAGIC_CMD=$MAGIC_CMD
13510
 
13511
# Must we lock files when doing compilation?
13512
need_locks=$lt_need_locks
13513
 
13514
# Old archive suffix (normally "a").
13515
libext=$libext
13516
 
13517
# Shared library suffix (normally ".so").
13518
shrext_cmds=$lt_shrext_cmds
13519
 
13520
# The commands to extract the exported symbol list from a shared archive.
13521
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13522
 
13523
# Variables whose values should be saved in libtool wrapper scripts and
13524
# restored at link time.
13525
variables_saved_for_relink=$lt_variables_saved_for_relink
13526
 
13527
# Do we need the "lib" prefix for modules?
13528
need_lib_prefix=$need_lib_prefix
13529
 
13530
# Do we need a version for libraries?
13531
need_version=$need_version
13532
 
13533
# Library versioning type.
13534
version_type=$version_type
13535
 
13536
# Shared library runtime path variable.
13537
runpath_var=$runpath_var
13538
 
13539
# Shared library path variable.
13540
shlibpath_var=$shlibpath_var
13541
 
13542
# Is shlibpath searched before the hard-coded library search path?
13543
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13544
 
13545
# Format of library name prefix.
13546
libname_spec=$lt_libname_spec
13547
 
13548
# List of archive names.  First name is the real one, the rest are links.
13549
# The last name is the one that the linker finds with -lNAME
13550
library_names_spec=$lt_library_names_spec
13551
 
13552
# The coded name of the library, if different from the real name.
13553
soname_spec=$lt_soname_spec
13554
 
13555
# Command to use after installation of a shared archive.
13556
postinstall_cmds=$lt_postinstall_cmds
13557
 
13558
# Command to use after uninstallation of a shared archive.
13559
postuninstall_cmds=$lt_postuninstall_cmds
13560
 
13561
# Commands used to finish a libtool library installation in a directory.
13562
finish_cmds=$lt_finish_cmds
13563
 
13564
# As "finish_cmds", except a single script fragment to be evaled but
13565
# not shown.
13566
finish_eval=$lt_finish_eval
13567
 
13568
# Whether we should hardcode library paths into libraries.
13569
hardcode_into_libs=$hardcode_into_libs
13570
 
13571
# Compile-time system search path for libraries.
13572
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13573
 
13574
# Run-time system search path for libraries.
13575
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13576
 
13577
# Whether dlopen is supported.
13578
dlopen_support=$enable_dlopen
13579
 
13580
# Whether dlopen of programs is supported.
13581
dlopen_self=$enable_dlopen_self
13582
 
13583
# Whether dlopen of statically linked programs is supported.
13584
dlopen_self_static=$enable_dlopen_self_static
13585
 
13586
# Commands to strip libraries.
13587
old_striplib=$lt_old_striplib
13588
striplib=$lt_striplib
13589
 
13590
 
13591
# The linker used to build libraries.
13592
LD=$lt_LD
13593
 
13594
# Commands used to build an old-style archive.
13595
old_archive_cmds=$lt_old_archive_cmds
13596
 
13597
# A language specific compiler.
13598
CC=$lt_compiler
13599
 
13600
# Is the compiler the GNU compiler?
13601
with_gcc=$GCC
13602
 
13603
# Compiler flag to turn off builtin functions.
13604
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13605
 
13606
# How to pass a linker flag through the compiler.
13607
wl=$lt_lt_prog_compiler_wl
13608
 
13609
# Additional compiler flags for building library objects.
13610
pic_flag=$lt_lt_prog_compiler_pic
13611
 
13612
# Compiler flag to prevent dynamic linking.
13613
link_static_flag=$lt_lt_prog_compiler_static
13614
 
13615
# Does compiler simultaneously support -c and -o options?
13616
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13617
 
13618
# Whether or not to add -lc for building shared libraries.
13619
build_libtool_need_lc=$archive_cmds_need_lc
13620
 
13621
# Whether or not to disallow shared libs when runtime libs are static.
13622
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13623
 
13624
# Compiler flag to allow reflexive dlopens.
13625
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13626
 
13627
# Compiler flag to generate shared objects directly from archives.
13628
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13629
 
13630
# Whether the compiler copes with passing no objects directly.
13631
compiler_needs_object=$lt_compiler_needs_object
13632
 
13633
# Create an old-style archive from a shared archive.
13634
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13635
 
13636
# Create a temporary old-style archive to link instead of a shared archive.
13637
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13638
 
13639
# Commands used to build a shared archive.
13640
archive_cmds=$lt_archive_cmds
13641
archive_expsym_cmds=$lt_archive_expsym_cmds
13642
 
13643
# Commands used to build a loadable module if different from building
13644
# a shared archive.
13645
module_cmds=$lt_module_cmds
13646
module_expsym_cmds=$lt_module_expsym_cmds
13647
 
13648
# Whether we are building with GNU ld or not.
13649
with_gnu_ld=$lt_with_gnu_ld
13650
 
13651
# Flag that allows shared libraries with undefined symbols to be built.
13652
allow_undefined_flag=$lt_allow_undefined_flag
13653
 
13654
# Flag that enforces no undefined symbols.
13655
no_undefined_flag=$lt_no_undefined_flag
13656
 
13657
# Flag to hardcode \$libdir into a binary during linking.
13658
# This must work even if \$libdir does not exist
13659
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13660
 
13661
# If ld is used when linking, flag to hardcode \$libdir into a binary
13662
# during linking.  This must work even if \$libdir does not exist.
13663
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13664
 
13665
# Whether we need a single "-rpath" flag with a separated argument.
13666
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13667
 
13668
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13669
# DIR into the resulting binary.
13670
hardcode_direct=$hardcode_direct
13671
 
13672
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13673
# DIR into the resulting binary and the resulting library dependency is
13674
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13675
# library is relocated.
13676
hardcode_direct_absolute=$hardcode_direct_absolute
13677
 
13678
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13679
# into the resulting binary.
13680
hardcode_minus_L=$hardcode_minus_L
13681
 
13682
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13683
# into the resulting binary.
13684
hardcode_shlibpath_var=$hardcode_shlibpath_var
13685
 
13686
# Set to "yes" if building a shared library automatically hardcodes DIR
13687
# into the library and all subsequent libraries and executables linked
13688
# against it.
13689
hardcode_automatic=$hardcode_automatic
13690
 
13691
# Set to yes if linker adds runtime paths of dependent libraries
13692
# to runtime path list.
13693
inherit_rpath=$inherit_rpath
13694
 
13695
# Whether libtool must link a program against all its dependency libraries.
13696
link_all_deplibs=$link_all_deplibs
13697
 
13698
# Fix the shell variable \$srcfile for the compiler.
13699
fix_srcfile_path=$lt_fix_srcfile_path
13700
 
13701
# Set to "yes" if exported symbols are required.
13702
always_export_symbols=$always_export_symbols
13703
 
13704
# The commands to list exported symbols.
13705
export_symbols_cmds=$lt_export_symbols_cmds
13706
 
13707
# Symbols that should not be listed in the preloaded symbols.
13708
exclude_expsyms=$lt_exclude_expsyms
13709
 
13710
# Symbols that must always be exported.
13711
include_expsyms=$lt_include_expsyms
13712
 
13713
# Commands necessary for linking programs (against libraries) with templates.
13714
prelink_cmds=$lt_prelink_cmds
13715
 
13716
# Specify filename containing input files.
13717
file_list_spec=$lt_file_list_spec
13718
 
13719
# How to hardcode a shared library path into an executable.
13720
hardcode_action=$hardcode_action
13721
 
13722
# ### END LIBTOOL CONFIG
13723
 
13724
_LT_EOF
13725
 
13726
  case $host_os in
13727
  aix3*)
13728
    cat <<\_LT_EOF >> "$cfgfile"
13729
# AIX sometimes has problems with the GCC collect2 program.  For some
13730
# reason, if we set the COLLECT_NAMES environment variable, the problems
13731
# vanish in a puff of smoke.
13732
if test "X${COLLECT_NAMES+set}" != Xset; then
13733
  COLLECT_NAMES=
13734
  export COLLECT_NAMES
13735
fi
13736
_LT_EOF
13737
    ;;
13738
  esac
13739
 
13740
 
13741
ltmain="$ac_aux_dir/ltmain.sh"
13742
 
13743
 
13744
  # We use sed instead of cat because bash on DJGPP gets confused if
13745
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13746
  # text mode, it properly converts lines to CR/LF.  This bash problem
13747
  # is reportedly fixed, but why not run on old versions too?
13748
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13749
    || (rm -f "$cfgfile"; exit 1)
13750
 
13751
  case $xsi_shell in
13752
  yes)
13753
    cat << \_LT_EOF >> "$cfgfile"
13754
# func_dirname file append nondir_replacement
13755
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13756
# otherwise set result to NONDIR_REPLACEMENT.
13757
func_dirname ()
13758
{
13759
  case ${1} in
13760
    */*) func_dirname_result="${1%/*}${2}" ;;
13761
    *  ) func_dirname_result="${3}" ;;
13762
  esac
13763
}
13764
 
13765
# func_basename file
13766
func_basename ()
13767
{
13768
  func_basename_result="${1##*/}"
13769
}
13770
 
13771
# func_stripname prefix suffix name
13772
# strip PREFIX and SUFFIX off of NAME.
13773
# PREFIX and SUFFIX must not contain globbing or regex special
13774
# characters, hashes, percent signs, but SUFFIX may contain a leading
13775
# dot (in which case that matches only a dot).
13776
func_stripname ()
13777
{
13778
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13779
  # positional parameters, so assign one to ordinary parameter first.
13780
  func_stripname_result=${3}
13781
  func_stripname_result=${func_stripname_result#"${1}"}
13782
  func_stripname_result=${func_stripname_result%"${2}"}
13783
}
13784
 
13785
# func_opt_split
13786
func_opt_split ()
13787
{
13788
  func_opt_split_opt=${1%%=*}
13789
  func_opt_split_arg=${1#*=}
13790
}
13791
 
13792
# func_lo2o object
13793
func_lo2o ()
13794
{
13795
  case ${1} in
13796
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13797
    *)    func_lo2o_result=${1} ;;
13798
  esac
13799
}
13800
_LT_EOF
13801
    ;;
13802
  *) # Bourne compatible functions.
13803
    cat << \_LT_EOF >> "$cfgfile"
13804
# func_dirname file append nondir_replacement
13805
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13806
# otherwise set result to NONDIR_REPLACEMENT.
13807
func_dirname ()
13808
{
13809
  # Extract subdirectory from the argument.
13810
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13811
  if test "X$func_dirname_result" = "X${1}"; then
13812
    func_dirname_result="${3}"
13813
  else
13814
    func_dirname_result="$func_dirname_result${2}"
13815
  fi
13816
}
13817
 
13818
# func_basename file
13819
func_basename ()
13820
{
13821
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13822
}
13823
 
13824
# func_stripname prefix suffix name
13825
# strip PREFIX and SUFFIX off of NAME.
13826
# PREFIX and SUFFIX must not contain globbing or regex special
13827
# characters, hashes, percent signs, but SUFFIX may contain a leading
13828
# dot (in which case that matches only a dot).
13829
# func_strip_suffix prefix name
13830
func_stripname ()
13831
{
13832
  case ${2} in
13833
    .*) func_stripname_result=`$ECHO "X${3}" \
13834
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13835
    *)  func_stripname_result=`$ECHO "X${3}" \
13836
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13837
  esac
13838
}
13839
 
13840
# sed scripts:
13841
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13842
my_sed_long_arg='1s/^-[^=]*=//'
13843
 
13844
# func_opt_split
13845
func_opt_split ()
13846
{
13847
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13848
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13849
}
13850
 
13851
# func_lo2o object
13852
func_lo2o ()
13853
{
13854
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13855
}
13856
_LT_EOF
13857
esac
13858
 
13859
case $lt_shell_append in
13860
  yes)
13861
    cat << \_LT_EOF >> "$cfgfile"
13862
 
13863
# func_append var value
13864
# Append VALUE to the end of shell variable VAR.
13865
func_append ()
13866
{
13867
  eval "$1+=\$2"
13868
}
13869
_LT_EOF
13870
    ;;
13871
  *)
13872
    cat << \_LT_EOF >> "$cfgfile"
13873
 
13874
# func_append var value
13875
# Append VALUE to the end of shell variable VAR.
13876
func_append ()
13877
{
13878
  eval "$1=\$$1\$2"
13879
}
13880
_LT_EOF
13881
    ;;
13882
  esac
13883
 
13884
 
13885
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13886
    || (rm -f "$cfgfile"; exit 1)
13887
 
13888
  mv -f "$cfgfile" "$ofile" ||
13889
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13890
  chmod +x "$ofile"
13891
 
13892
 ;;
13893
    default-1 )
13894
    for ac_file in $CONFIG_FILES; do
13895
      # Support "outfile[:infile[:infile...]]"
13896
      case "$ac_file" in
13897
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13898
      esac
13899
      # PO directories have a Makefile.in generated from Makefile.in.in.
13900
      case "$ac_file" in */Makefile.in)
13901
        # Adjust a relative srcdir.
13902
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13903
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13904
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13905
        # In autoconf-2.13 it is called $ac_given_srcdir.
13906
        # In autoconf-2.50 it is called $srcdir.
13907
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13908
        case "$ac_given_srcdir" in
13909
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13910
          /*) top_srcdir="$ac_given_srcdir" ;;
13911
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13912
        esac
13913
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13914
          rm -f "$ac_dir/POTFILES"
13915
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13916
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13917
          POMAKEFILEDEPS="POTFILES.in"
13918
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13919
          # on $ac_dir but don't depend on user-specified configuration
13920
          # parameters.
13921
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13922
            # The LINGUAS file contains the set of available languages.
13923
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
13924
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13925
            fi
13926
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13927
            # Hide the ALL_LINGUAS assigment from automake.
13928
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13929
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13930
          else
13931
            # The set of available languages was given in configure.in.
13932
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13933
          fi
13934
          case "$ac_given_srcdir" in
13935
            .) srcdirpre= ;;
13936
            *) srcdirpre='$(srcdir)/' ;;
13937
          esac
13938
          POFILES=
13939
          GMOFILES=
13940
          UPDATEPOFILES=
13941
          DUMMYPOFILES=
13942
          for lang in $ALL_LINGUAS; do
13943
            POFILES="$POFILES $srcdirpre$lang.po"
13944
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13945
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13946
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13947
          done
13948
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13949
          # environment variable.
13950
          INST_LINGUAS=
13951
          if test -n "$ALL_LINGUAS"; then
13952
            for presentlang in $ALL_LINGUAS; do
13953
              useit=no
13954
              if test "%UNSET%" != "$LINGUAS"; then
13955
                desiredlanguages="$LINGUAS"
13956
              else
13957
                desiredlanguages="$ALL_LINGUAS"
13958
              fi
13959
              for desiredlang in $desiredlanguages; do
13960
                # Use the presentlang catalog if desiredlang is
13961
                #   a. equal to presentlang, or
13962
                #   b. a variant of presentlang (because in this case,
13963
                #      presentlang can be used as a fallback for messages
13964
                #      which are not translated in the desiredlang catalog).
13965
                case "$desiredlang" in
13966
                  "$presentlang"*) useit=yes;;
13967
                esac
13968
              done
13969
              if test $useit = yes; then
13970
                INST_LINGUAS="$INST_LINGUAS $presentlang"
13971
              fi
13972
            done
13973
          fi
13974
          CATALOGS=
13975
          if test -n "$INST_LINGUAS"; then
13976
            for lang in $INST_LINGUAS; do
13977
              CATALOGS="$CATALOGS $lang.gmo"
13978
            done
13979
          fi
13980
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13981
          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"
13982
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13983
            if test -f "$f"; then
13984
              case "$f" in
13985
                *.orig | *.bak | *~) ;;
13986
                *) cat "$f" >> "$ac_dir/Makefile" ;;
13987
              esac
13988
            fi
13989
          done
13990
        fi
13991
        ;;
13992
      esac
13993
    done ;;
13994
  esac
13995
done
13996
_ACEOF
13997
 
13998
cat >>$CONFIG_STATUS <<\_ACEOF
13999
 
14000
{ (exit 0); exit 0; }
14001
_ACEOF
14002
chmod +x $CONFIG_STATUS
14003
ac_clean_files=$ac_clean_files_save
14004
 
14005
 
14006
# configure is writing to config.log, and then calls config.status.
14007
# config.status does its own redirection, appending to config.log.
14008
# Unfortunately, on DOS this fails, as config.log is still kept open
14009
# by configure, so config.status won't be able to write to it; its
14010
# output is simply discarded.  So we exec the FD to /dev/null,
14011
# effectively closing config.log, so it can be properly (re)opened and
14012
# appended to by config.status.  When coming back to configure, we
14013
# need to make the FD available again.
14014
if test "$no_create" != yes; then
14015
  ac_cs_success=:
14016
  ac_config_status_args=
14017
  test "$silent" = yes &&
14018
    ac_config_status_args="$ac_config_status_args --quiet"
14019
  exec 5>/dev/null
14020
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14021
  exec 5>>config.log
14022
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14023
  # would make configure fail if this is the last instruction.
14024
  $ac_cs_success || { (exit 1); exit 1; }
14025
fi
14026
 

powered by: WebSVN 2.1.0

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