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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [opcodes/] [configure] - Blame information for rev 833

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

Line No. Rev Author Line
1 38 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME=
418
PACKAGE_TARNAME=
419
PACKAGE_VERSION=
420
PACKAGE_STRING=
421
PACKAGE_BUGREPORT=
422
 
423
ac_unique_file="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
        # differences in whitespace do not lead to failure.
1422
        ac_old_val_w=`echo x $ac_old_val`
1423
        ac_new_val_w=`echo x $ac_new_val`
1424
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427
          ac_cache_corrupted=:
1428
        else
1429
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431
          eval $ac_var=\$ac_old_val
1432
        fi
1433
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1434
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1435
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1436
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1437
      fi;;
1438
  esac
1439
  # Pass precious variables to config.status.
1440
  if test "$ac_new_set" = set; then
1441
    case $ac_new_val in
1442
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444
    *) ac_arg=$ac_var=$ac_new_val ;;
1445
    esac
1446
    case " $ac_configure_args " in
1447
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1448
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449
    esac
1450
  fi
1451
done
1452
if $ac_cache_corrupted; then
1453
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1454
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457
   { (exit 1); exit 1; }; }
1458
fi
1459
 
1460
ac_ext=c
1461
ac_cpp='$CPP $CPPFLAGS'
1462
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
 
1466
 
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
ac_aux_dir=
1487
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1488
  if test -f $ac_dir/install-sh; then
1489
    ac_aux_dir=$ac_dir
1490
    ac_install_sh="$ac_aux_dir/install-sh -c"
1491
    break
1492
  elif test -f $ac_dir/install.sh; then
1493
    ac_aux_dir=$ac_dir
1494
    ac_install_sh="$ac_aux_dir/install.sh -c"
1495
    break
1496
  elif test -f $ac_dir/shtool; then
1497
    ac_aux_dir=$ac_dir
1498
    ac_install_sh="$ac_aux_dir/shtool install -c"
1499
    break
1500
  fi
1501
done
1502
if test -z "$ac_aux_dir"; then
1503
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1504
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1505
   { (exit 1); exit 1; }; }
1506
fi
1507
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
 
1511
# Make sure we can run config.sub.
1512
$ac_config_sub sun4 >/dev/null 2>&1 ||
1513
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1514
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1515
   { (exit 1); exit 1; }; }
1516
 
1517
echo "$as_me:$LINENO: checking build system type" >&5
1518
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1519
if test "${ac_cv_build+set}" = set; then
1520
  echo $ECHO_N "(cached) $ECHO_C" >&6
1521
else
1522
  ac_cv_build_alias=$build_alias
1523
test -z "$ac_cv_build_alias" &&
1524
  ac_cv_build_alias=`$ac_config_guess`
1525
test -z "$ac_cv_build_alias" &&
1526
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1527
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1528
   { (exit 1); exit 1; }; }
1529
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1530
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1531
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1532
   { (exit 1); exit 1; }; }
1533
 
1534
fi
1535
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1536
echo "${ECHO_T}$ac_cv_build" >&6
1537
build=$ac_cv_build
1538
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
 
1542
 
1543
echo "$as_me:$LINENO: checking host system type" >&5
1544
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1545
if test "${ac_cv_host+set}" = set; then
1546
  echo $ECHO_N "(cached) $ECHO_C" >&6
1547
else
1548
  ac_cv_host_alias=$host_alias
1549
test -z "$ac_cv_host_alias" &&
1550
  ac_cv_host_alias=$ac_cv_build_alias
1551
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1552
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1553
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1554
   { (exit 1); exit 1; }; }
1555
 
1556
fi
1557
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1558
echo "${ECHO_T}$ac_cv_host" >&6
1559
host=$ac_cv_host
1560
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
 
1564
 
1565
echo "$as_me:$LINENO: checking target system type" >&5
1566
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1567
if test "${ac_cv_target+set}" = set; then
1568
  echo $ECHO_N "(cached) $ECHO_C" >&6
1569
else
1570
  ac_cv_target_alias=$target_alias
1571
test "x$ac_cv_target_alias" = "x" &&
1572
  ac_cv_target_alias=$ac_cv_host_alias
1573
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1574
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1575
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1576
   { (exit 1); exit 1; }; }
1577
 
1578
fi
1579
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1580
echo "${ECHO_T}$ac_cv_target" >&6
1581
target=$ac_cv_target
1582
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
 
1586
 
1587
# The aliases save the names the user supplied, while $host etc.
1588
# will get canonicalized.
1589
test -n "$target_alias" &&
1590
  test "$program_prefix$program_suffix$program_transform_name" = \
1591
    NONENONEs,x,x, &&
1592
  program_prefix=${target_alias}-
1593
ac_ext=c
1594
ac_cpp='$CPP $CPPFLAGS'
1595
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1596
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1597
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1598
if test -n "$ac_tool_prefix"; then
1599
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1600
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1601
echo "$as_me:$LINENO: checking for $ac_word" >&5
1602
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603
if test "${ac_cv_prog_CC+set}" = set; then
1604
  echo $ECHO_N "(cached) $ECHO_C" >&6
1605
else
1606
  if test -n "$CC"; then
1607
  ac_cv_prog_CC="$CC" # Let the user override the test.
1608
else
1609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610
for as_dir in $PATH
1611
do
1612
  IFS=$as_save_IFS
1613
  test -z "$as_dir" && as_dir=.
1614
  for ac_exec_ext in '' $ac_executable_extensions; do
1615
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1617
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618
    break 2
1619
  fi
1620
done
1621
done
1622
 
1623
fi
1624
fi
1625
CC=$ac_cv_prog_CC
1626
if test -n "$CC"; then
1627
  echo "$as_me:$LINENO: result: $CC" >&5
1628
echo "${ECHO_T}$CC" >&6
1629
else
1630
  echo "$as_me:$LINENO: result: no" >&5
1631
echo "${ECHO_T}no" >&6
1632
fi
1633
 
1634
fi
1635
if test -z "$ac_cv_prog_CC"; then
1636
  ac_ct_CC=$CC
1637
  # Extract the first word of "gcc", so it can be a program name with args.
1638
set dummy gcc; ac_word=$2
1639
echo "$as_me:$LINENO: checking for $ac_word" >&5
1640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642
  echo $ECHO_N "(cached) $ECHO_C" >&6
1643
else
1644
  if test -n "$ac_ct_CC"; then
1645
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646
else
1647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648
for as_dir in $PATH
1649
do
1650
  IFS=$as_save_IFS
1651
  test -z "$as_dir" && as_dir=.
1652
  for ac_exec_ext in '' $ac_executable_extensions; do
1653
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654
    ac_cv_prog_ac_ct_CC="gcc"
1655
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656
    break 2
1657
  fi
1658
done
1659
done
1660
 
1661
fi
1662
fi
1663
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664
if test -n "$ac_ct_CC"; then
1665
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666
echo "${ECHO_T}$ac_ct_CC" >&6
1667
else
1668
  echo "$as_me:$LINENO: result: no" >&5
1669
echo "${ECHO_T}no" >&6
1670
fi
1671
 
1672
  CC=$ac_ct_CC
1673
else
1674
  CC="$ac_cv_prog_CC"
1675
fi
1676
 
1677
if test -z "$CC"; then
1678
  if test -n "$ac_tool_prefix"; then
1679
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1680
set dummy ${ac_tool_prefix}cc; ac_word=$2
1681
echo "$as_me:$LINENO: checking for $ac_word" >&5
1682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683
if test "${ac_cv_prog_CC+set}" = set; then
1684
  echo $ECHO_N "(cached) $ECHO_C" >&6
1685
else
1686
  if test -n "$CC"; then
1687
  ac_cv_prog_CC="$CC" # Let the user override the test.
1688
else
1689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690
for as_dir in $PATH
1691
do
1692
  IFS=$as_save_IFS
1693
  test -z "$as_dir" && as_dir=.
1694
  for ac_exec_ext in '' $ac_executable_extensions; do
1695
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1697
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698
    break 2
1699
  fi
1700
done
1701
done
1702
 
1703
fi
1704
fi
1705
CC=$ac_cv_prog_CC
1706
if test -n "$CC"; then
1707
  echo "$as_me:$LINENO: result: $CC" >&5
1708
echo "${ECHO_T}$CC" >&6
1709
else
1710
  echo "$as_me:$LINENO: result: no" >&5
1711
echo "${ECHO_T}no" >&6
1712
fi
1713
 
1714
fi
1715
if test -z "$ac_cv_prog_CC"; then
1716
  ac_ct_CC=$CC
1717
  # Extract the first word of "cc", so it can be a program name with args.
1718
set dummy cc; ac_word=$2
1719
echo "$as_me:$LINENO: checking for $ac_word" >&5
1720
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1722
  echo $ECHO_N "(cached) $ECHO_C" >&6
1723
else
1724
  if test -n "$ac_ct_CC"; then
1725
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1726
else
1727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728
for as_dir in $PATH
1729
do
1730
  IFS=$as_save_IFS
1731
  test -z "$as_dir" && as_dir=.
1732
  for ac_exec_ext in '' $ac_executable_extensions; do
1733
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734
    ac_cv_prog_ac_ct_CC="cc"
1735
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736
    break 2
1737
  fi
1738
done
1739
done
1740
 
1741
fi
1742
fi
1743
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1744
if test -n "$ac_ct_CC"; then
1745
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1746
echo "${ECHO_T}$ac_ct_CC" >&6
1747
else
1748
  echo "$as_me:$LINENO: result: no" >&5
1749
echo "${ECHO_T}no" >&6
1750
fi
1751
 
1752
  CC=$ac_ct_CC
1753
else
1754
  CC="$ac_cv_prog_CC"
1755
fi
1756
 
1757
fi
1758
if test -z "$CC"; then
1759
  # Extract the first word of "cc", so it can be a program name with args.
1760
set dummy cc; ac_word=$2
1761
echo "$as_me:$LINENO: checking for $ac_word" >&5
1762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763
if test "${ac_cv_prog_CC+set}" = set; then
1764
  echo $ECHO_N "(cached) $ECHO_C" >&6
1765
else
1766
  if test -n "$CC"; then
1767
  ac_cv_prog_CC="$CC" # Let the user override the test.
1768
else
1769
  ac_prog_rejected=no
1770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771
for as_dir in $PATH
1772
do
1773
  IFS=$as_save_IFS
1774
  test -z "$as_dir" && as_dir=.
1775
  for ac_exec_ext in '' $ac_executable_extensions; do
1776
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1778
       ac_prog_rejected=yes
1779
       continue
1780
     fi
1781
    ac_cv_prog_CC="cc"
1782
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783
    break 2
1784
  fi
1785
done
1786
done
1787
 
1788
if test $ac_prog_rejected = yes; then
1789
  # We found a bogon in the path, so make sure we never use it.
1790
  set dummy $ac_cv_prog_CC
1791
  shift
1792
  if test $# != 0; then
1793
    # We chose a different compiler from the bogus one.
1794
    # However, it has the same basename, so the bogon will be chosen
1795
    # first if we set CC to just the basename; use the full file name.
1796
    shift
1797
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1798
  fi
1799
fi
1800
fi
1801
fi
1802
CC=$ac_cv_prog_CC
1803
if test -n "$CC"; then
1804
  echo "$as_me:$LINENO: result: $CC" >&5
1805
echo "${ECHO_T}$CC" >&6
1806
else
1807
  echo "$as_me:$LINENO: result: no" >&5
1808
echo "${ECHO_T}no" >&6
1809
fi
1810
 
1811
fi
1812
if test -z "$CC"; then
1813
  if test -n "$ac_tool_prefix"; then
1814
  for ac_prog in cl
1815
  do
1816
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1817
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1818
echo "$as_me:$LINENO: checking for $ac_word" >&5
1819
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820
if test "${ac_cv_prog_CC+set}" = set; then
1821
  echo $ECHO_N "(cached) $ECHO_C" >&6
1822
else
1823
  if test -n "$CC"; then
1824
  ac_cv_prog_CC="$CC" # Let the user override the test.
1825
else
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827
for as_dir in $PATH
1828
do
1829
  IFS=$as_save_IFS
1830
  test -z "$as_dir" && as_dir=.
1831
  for ac_exec_ext in '' $ac_executable_extensions; do
1832
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1834
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835
    break 2
1836
  fi
1837
done
1838
done
1839
 
1840
fi
1841
fi
1842
CC=$ac_cv_prog_CC
1843
if test -n "$CC"; then
1844
  echo "$as_me:$LINENO: result: $CC" >&5
1845
echo "${ECHO_T}$CC" >&6
1846
else
1847
  echo "$as_me:$LINENO: result: no" >&5
1848
echo "${ECHO_T}no" >&6
1849
fi
1850
 
1851
    test -n "$CC" && break
1852
  done
1853
fi
1854
if test -z "$CC"; then
1855
  ac_ct_CC=$CC
1856
  for ac_prog in cl
1857
do
1858
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1859
set dummy $ac_prog; ac_word=$2
1860
echo "$as_me:$LINENO: checking for $ac_word" >&5
1861
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863
  echo $ECHO_N "(cached) $ECHO_C" >&6
1864
else
1865
  if test -n "$ac_ct_CC"; then
1866
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1867
else
1868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
for as_dir in $PATH
1870
do
1871
  IFS=$as_save_IFS
1872
  test -z "$as_dir" && as_dir=.
1873
  for ac_exec_ext in '' $ac_executable_extensions; do
1874
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875
    ac_cv_prog_ac_ct_CC="$ac_prog"
1876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877
    break 2
1878
  fi
1879
done
1880
done
1881
 
1882
fi
1883
fi
1884
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1885
if test -n "$ac_ct_CC"; then
1886
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887
echo "${ECHO_T}$ac_ct_CC" >&6
1888
else
1889
  echo "$as_me:$LINENO: result: no" >&5
1890
echo "${ECHO_T}no" >&6
1891
fi
1892
 
1893
  test -n "$ac_ct_CC" && break
1894
done
1895
 
1896
  CC=$ac_ct_CC
1897
fi
1898
 
1899
fi
1900
 
1901
 
1902
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1903
See \`config.log' for more details." >&5
1904
echo "$as_me: error: no acceptable C compiler found in \$PATH
1905
See \`config.log' for more details." >&2;}
1906
   { (exit 1); exit 1; }; }
1907
 
1908
# Provide some information about the compiler.
1909
echo "$as_me:$LINENO:" \
1910
     "checking for C compiler version" >&5
1911
ac_compiler=`set X $ac_compile; echo $2`
1912
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1913
  (eval $ac_compiler --version &5) 2>&5
1914
  ac_status=$?
1915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916
  (exit $ac_status); }
1917
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1918
  (eval $ac_compiler -v &5) 2>&5
1919
  ac_status=$?
1920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921
  (exit $ac_status); }
1922
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1923
  (eval $ac_compiler -V &5) 2>&5
1924
  ac_status=$?
1925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
  (exit $ac_status); }
1927
 
1928
cat >conftest.$ac_ext <<_ACEOF
1929
/* confdefs.h.  */
1930
_ACEOF
1931
cat confdefs.h >>conftest.$ac_ext
1932
cat >>conftest.$ac_ext <<_ACEOF
1933
/* end confdefs.h.  */
1934
 
1935
int
1936
main ()
1937
{
1938
 
1939
  ;
1940
  return 0;
1941
}
1942
_ACEOF
1943
ac_clean_files_save=$ac_clean_files
1944
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1945
# Try to create an executable without -o first, disregard a.out.
1946
# It will help us diagnose broken compilers, and finding out an intuition
1947
# of exeext.
1948
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1949
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1950
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1951
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1952
  (eval $ac_link_default) 2>&5
1953
  ac_status=$?
1954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955
  (exit $ac_status); }; then
1956
  # Find the output, starting from the most likely.  This scheme is
1957
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1958
# resort.
1959
 
1960
# Be careful to initialize this variable, since it used to be cached.
1961
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1962
ac_cv_exeext=
1963
# b.out is created by i960 compilers.
1964
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1965
do
1966
  test -f "$ac_file" || continue
1967
  case $ac_file in
1968
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1969
        ;;
1970
    conftest.$ac_ext )
1971
        # This is the source file.
1972
        ;;
1973
    [ab].out )
1974
        # We found the default executable, but exeext='' is most
1975
        # certainly right.
1976
        break;;
1977
    *.* )
1978
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1980
        # but it would be cool to find out if it's true.  Does anybody
1981
        # maintain Libtool? --akim.
1982
        export ac_cv_exeext
1983
        break;;
1984
    * )
1985
        break;;
1986
  esac
1987
done
1988
else
1989
  echo "$as_me: failed program was:" >&5
1990
sed 's/^/| /' conftest.$ac_ext >&5
1991
 
1992
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1993
See \`config.log' for more details." >&5
1994
echo "$as_me: error: C compiler cannot create executables
1995
See \`config.log' for more details." >&2;}
1996
   { (exit 77); exit 77; }; }
1997
fi
1998
 
1999
ac_exeext=$ac_cv_exeext
2000
echo "$as_me:$LINENO: result: $ac_file" >&5
2001
echo "${ECHO_T}$ac_file" >&6
2002
 
2003
# Check the compiler produces executables we can run.  If not, either
2004
# the compiler is broken, or we cross compile.
2005
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2006
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2007
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2008
# If not cross compiling, check that we can run a simple program.
2009
if test "$cross_compiling" != yes; then
2010
  if { ac_try='./$ac_file'
2011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012
  (eval $ac_try) 2>&5
2013
  ac_status=$?
2014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015
  (exit $ac_status); }; }; then
2016
    cross_compiling=no
2017
  else
2018
    if test "$cross_compiling" = maybe; then
2019
        cross_compiling=yes
2020
    else
2021
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2022
If you meant to cross compile, use \`--host'.
2023
See \`config.log' for more details." >&5
2024
echo "$as_me: error: cannot run C compiled programs.
2025
If you meant to cross compile, use \`--host'.
2026
See \`config.log' for more details." >&2;}
2027
   { (exit 1); exit 1; }; }
2028
    fi
2029
  fi
2030
fi
2031
echo "$as_me:$LINENO: result: yes" >&5
2032
echo "${ECHO_T}yes" >&6
2033
 
2034
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2035
ac_clean_files=$ac_clean_files_save
2036
# Check the compiler produces executables we can run.  If not, either
2037
# the compiler is broken, or we cross compile.
2038
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2039
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2040
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2041
echo "${ECHO_T}$cross_compiling" >&6
2042
 
2043
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2044
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2046
  (eval $ac_link) 2>&5
2047
  ac_status=$?
2048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
  (exit $ac_status); }; then
2050
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2051
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2052
# work properly (i.e., refer to `conftest.exe'), while it won't with
2053
# `rm'.
2054
for ac_file in conftest.exe conftest conftest.*; do
2055
  test -f "$ac_file" || continue
2056
  case $ac_file in
2057
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2058
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059
          export ac_cv_exeext
2060
          break;;
2061
    * ) break;;
2062
  esac
2063
done
2064
else
2065
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2066
See \`config.log' for more details." >&5
2067
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2068
See \`config.log' for more details." >&2;}
2069
   { (exit 1); exit 1; }; }
2070
fi
2071
 
2072
rm -f conftest$ac_cv_exeext
2073
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2074
echo "${ECHO_T}$ac_cv_exeext" >&6
2075
 
2076
rm -f conftest.$ac_ext
2077
EXEEXT=$ac_cv_exeext
2078
ac_exeext=$EXEEXT
2079
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2080
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2081
if test "${ac_cv_objext+set}" = set; then
2082
  echo $ECHO_N "(cached) $ECHO_C" >&6
2083
else
2084
  cat >conftest.$ac_ext <<_ACEOF
2085
/* confdefs.h.  */
2086
_ACEOF
2087
cat confdefs.h >>conftest.$ac_ext
2088
cat >>conftest.$ac_ext <<_ACEOF
2089
/* end confdefs.h.  */
2090
 
2091
int
2092
main ()
2093
{
2094
 
2095
  ;
2096
  return 0;
2097
}
2098
_ACEOF
2099
rm -f conftest.o conftest.obj
2100
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101
  (eval $ac_compile) 2>&5
2102
  ac_status=$?
2103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104
  (exit $ac_status); }; then
2105
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2106
  case $ac_file in
2107
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2108
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2109
       break;;
2110
  esac
2111
done
2112
else
2113
  echo "$as_me: failed program was:" >&5
2114
sed 's/^/| /' conftest.$ac_ext >&5
2115
 
2116
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2117
See \`config.log' for more details." >&5
2118
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2119
See \`config.log' for more details." >&2;}
2120
   { (exit 1); exit 1; }; }
2121
fi
2122
 
2123
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2124
fi
2125
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2126
echo "${ECHO_T}$ac_cv_objext" >&6
2127
OBJEXT=$ac_cv_objext
2128
ac_objext=$OBJEXT
2129
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2130
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2131
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2132
  echo $ECHO_N "(cached) $ECHO_C" >&6
2133
else
2134
  cat >conftest.$ac_ext <<_ACEOF
2135
/* confdefs.h.  */
2136
_ACEOF
2137
cat confdefs.h >>conftest.$ac_ext
2138
cat >>conftest.$ac_ext <<_ACEOF
2139
/* end confdefs.h.  */
2140
 
2141
int
2142
main ()
2143
{
2144
#ifndef __GNUC__
2145
       choke me
2146
#endif
2147
 
2148
  ;
2149
  return 0;
2150
}
2151
_ACEOF
2152
rm -f conftest.$ac_objext
2153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154
  (eval $ac_compile) 2>conftest.er1
2155
  ac_status=$?
2156
  grep -v '^ *+' conftest.er1 >conftest.err
2157
  rm -f conftest.er1
2158
  cat conftest.err >&5
2159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160
  (exit $ac_status); } &&
2161
         { ac_try='test -z "$ac_c_werror_flag"
2162
                         || test ! -s conftest.err'
2163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164
  (eval $ac_try) 2>&5
2165
  ac_status=$?
2166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167
  (exit $ac_status); }; } &&
2168
         { ac_try='test -s conftest.$ac_objext'
2169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170
  (eval $ac_try) 2>&5
2171
  ac_status=$?
2172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173
  (exit $ac_status); }; }; then
2174
  ac_compiler_gnu=yes
2175
else
2176
  echo "$as_me: failed program was:" >&5
2177
sed 's/^/| /' conftest.$ac_ext >&5
2178
 
2179
ac_compiler_gnu=no
2180
fi
2181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2183
 
2184
fi
2185
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2186
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2187
GCC=`test $ac_compiler_gnu = yes && echo yes`
2188
ac_test_CFLAGS=${CFLAGS+set}
2189
ac_save_CFLAGS=$CFLAGS
2190
CFLAGS="-g"
2191
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2192
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2193
if test "${ac_cv_prog_cc_g+set}" = set; then
2194
  echo $ECHO_N "(cached) $ECHO_C" >&6
2195
else
2196
  cat >conftest.$ac_ext <<_ACEOF
2197
/* confdefs.h.  */
2198
_ACEOF
2199
cat confdefs.h >>conftest.$ac_ext
2200
cat >>conftest.$ac_ext <<_ACEOF
2201
/* end confdefs.h.  */
2202
 
2203
int
2204
main ()
2205
{
2206
 
2207
  ;
2208
  return 0;
2209
}
2210
_ACEOF
2211
rm -f conftest.$ac_objext
2212
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213
  (eval $ac_compile) 2>conftest.er1
2214
  ac_status=$?
2215
  grep -v '^ *+' conftest.er1 >conftest.err
2216
  rm -f conftest.er1
2217
  cat conftest.err >&5
2218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219
  (exit $ac_status); } &&
2220
         { ac_try='test -z "$ac_c_werror_flag"
2221
                         || test ! -s conftest.err'
2222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223
  (eval $ac_try) 2>&5
2224
  ac_status=$?
2225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226
  (exit $ac_status); }; } &&
2227
         { ac_try='test -s conftest.$ac_objext'
2228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229
  (eval $ac_try) 2>&5
2230
  ac_status=$?
2231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232
  (exit $ac_status); }; }; then
2233
  ac_cv_prog_cc_g=yes
2234
else
2235
  echo "$as_me: failed program was:" >&5
2236
sed 's/^/| /' conftest.$ac_ext >&5
2237
 
2238
ac_cv_prog_cc_g=no
2239
fi
2240
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2241
fi
2242
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2243
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2244
if test "$ac_test_CFLAGS" = set; then
2245
  CFLAGS=$ac_save_CFLAGS
2246
elif test $ac_cv_prog_cc_g = yes; then
2247
  if test "$GCC" = yes; then
2248
    CFLAGS="-g -O2"
2249
  else
2250
    CFLAGS="-g"
2251
  fi
2252
else
2253
  if test "$GCC" = yes; then
2254
    CFLAGS="-O2"
2255
  else
2256
    CFLAGS=
2257
  fi
2258
fi
2259
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2260
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2261
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2262
  echo $ECHO_N "(cached) $ECHO_C" >&6
2263
else
2264
  ac_cv_prog_cc_stdc=no
2265
ac_save_CC=$CC
2266
cat >conftest.$ac_ext <<_ACEOF
2267
/* confdefs.h.  */
2268
_ACEOF
2269
cat confdefs.h >>conftest.$ac_ext
2270
cat >>conftest.$ac_ext <<_ACEOF
2271
/* end confdefs.h.  */
2272
#include 
2273
#include 
2274
#include 
2275
#include 
2276
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2277
struct buf { int x; };
2278
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2279
static char *e (p, i)
2280
     char **p;
2281
     int i;
2282
{
2283
  return p[i];
2284
}
2285
static char *f (char * (*g) (char **, int), char **p, ...)
2286
{
2287
  char *s;
2288
  va_list v;
2289
  va_start (v,p);
2290
  s = g (p, va_arg (v,int));
2291
  va_end (v);
2292
  return s;
2293
}
2294
 
2295
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2296
   function prototypes and stuff, but not '\xHH' hex character constants.
2297
   These don't provoke an error unfortunately, instead are silently treated
2298
   as 'x'.  The following induces an error, until -std1 is added to get
2299
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2300
   array size at least.  It's necessary to write '\x00'==0 to get something
2301
   that's true only with -std1.  */
2302
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2303
 
2304
int test (int i, double x);
2305
struct s1 {int (*f) (int a);};
2306
struct s2 {int (*f) (double a);};
2307
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2308
int argc;
2309
char **argv;
2310
int
2311
main ()
2312
{
2313
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2314
  ;
2315
  return 0;
2316
}
2317
_ACEOF
2318
# Don't try gcc -ansi; that turns off useful extensions and
2319
# breaks some systems' header files.
2320
# AIX                   -qlanglvl=ansi
2321
# Ultrix and OSF/1      -std1
2322
# HP-UX 10.20 and later -Ae
2323
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2324
# SVR4                  -Xc -D__EXTENSIONS__
2325
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2326
do
2327
  CC="$ac_save_CC $ac_arg"
2328
  rm -f conftest.$ac_objext
2329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330
  (eval $ac_compile) 2>conftest.er1
2331
  ac_status=$?
2332
  grep -v '^ *+' conftest.er1 >conftest.err
2333
  rm -f conftest.er1
2334
  cat conftest.err >&5
2335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336
  (exit $ac_status); } &&
2337
         { ac_try='test -z "$ac_c_werror_flag"
2338
                         || test ! -s conftest.err'
2339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340
  (eval $ac_try) 2>&5
2341
  ac_status=$?
2342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343
  (exit $ac_status); }; } &&
2344
         { ac_try='test -s conftest.$ac_objext'
2345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346
  (eval $ac_try) 2>&5
2347
  ac_status=$?
2348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349
  (exit $ac_status); }; }; then
2350
  ac_cv_prog_cc_stdc=$ac_arg
2351
break
2352
else
2353
  echo "$as_me: failed program was:" >&5
2354
sed 's/^/| /' conftest.$ac_ext >&5
2355
 
2356
fi
2357
rm -f conftest.err conftest.$ac_objext
2358
done
2359
rm -f conftest.$ac_ext conftest.$ac_objext
2360
CC=$ac_save_CC
2361
 
2362
fi
2363
 
2364
case "x$ac_cv_prog_cc_stdc" in
2365
  x|xno)
2366
    echo "$as_me:$LINENO: result: none needed" >&5
2367
echo "${ECHO_T}none needed" >&6 ;;
2368
  *)
2369
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2370
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2371
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2372
esac
2373
 
2374
# Some people use a C++ compiler to compile C.  Since we use `exit',
2375
# in C++ we need to declare it.  In case someone uses the same compiler
2376
# for both compiling C and C++ we need to have the C++ compiler decide
2377
# the declaration of exit, since it's the most demanding environment.
2378
cat >conftest.$ac_ext <<_ACEOF
2379
#ifndef __cplusplus
2380
  choke me
2381
#endif
2382
_ACEOF
2383
rm -f conftest.$ac_objext
2384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385
  (eval $ac_compile) 2>conftest.er1
2386
  ac_status=$?
2387
  grep -v '^ *+' conftest.er1 >conftest.err
2388
  rm -f conftest.er1
2389
  cat conftest.err >&5
2390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391
  (exit $ac_status); } &&
2392
         { ac_try='test -z "$ac_c_werror_flag"
2393
                         || test ! -s conftest.err'
2394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395
  (eval $ac_try) 2>&5
2396
  ac_status=$?
2397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398
  (exit $ac_status); }; } &&
2399
         { ac_try='test -s conftest.$ac_objext'
2400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401
  (eval $ac_try) 2>&5
2402
  ac_status=$?
2403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404
  (exit $ac_status); }; }; then
2405
  for ac_declaration in \
2406
   '' \
2407
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2408
   'extern "C" void std::exit (int); using std::exit;' \
2409
   'extern "C" void exit (int) throw ();' \
2410
   'extern "C" void exit (int);' \
2411
   'void exit (int);'
2412
do
2413
  cat >conftest.$ac_ext <<_ACEOF
2414
/* confdefs.h.  */
2415
_ACEOF
2416
cat confdefs.h >>conftest.$ac_ext
2417
cat >>conftest.$ac_ext <<_ACEOF
2418
/* end confdefs.h.  */
2419
$ac_declaration
2420
#include 
2421
int
2422
main ()
2423
{
2424
exit (42);
2425
  ;
2426
  return 0;
2427
}
2428
_ACEOF
2429
rm -f conftest.$ac_objext
2430
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431
  (eval $ac_compile) 2>conftest.er1
2432
  ac_status=$?
2433
  grep -v '^ *+' conftest.er1 >conftest.err
2434
  rm -f conftest.er1
2435
  cat conftest.err >&5
2436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
  (exit $ac_status); } &&
2438
         { ac_try='test -z "$ac_c_werror_flag"
2439
                         || test ! -s conftest.err'
2440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441
  (eval $ac_try) 2>&5
2442
  ac_status=$?
2443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444
  (exit $ac_status); }; } &&
2445
         { ac_try='test -s conftest.$ac_objext'
2446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447
  (eval $ac_try) 2>&5
2448
  ac_status=$?
2449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
  (exit $ac_status); }; }; then
2451
  :
2452
else
2453
  echo "$as_me: failed program was:" >&5
2454
sed 's/^/| /' conftest.$ac_ext >&5
2455
 
2456
continue
2457
fi
2458
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459
  cat >conftest.$ac_ext <<_ACEOF
2460
/* confdefs.h.  */
2461
_ACEOF
2462
cat confdefs.h >>conftest.$ac_ext
2463
cat >>conftest.$ac_ext <<_ACEOF
2464
/* end confdefs.h.  */
2465
$ac_declaration
2466
int
2467
main ()
2468
{
2469
exit (42);
2470
  ;
2471
  return 0;
2472
}
2473
_ACEOF
2474
rm -f conftest.$ac_objext
2475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476
  (eval $ac_compile) 2>conftest.er1
2477
  ac_status=$?
2478
  grep -v '^ *+' conftest.er1 >conftest.err
2479
  rm -f conftest.er1
2480
  cat conftest.err >&5
2481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482
  (exit $ac_status); } &&
2483
         { ac_try='test -z "$ac_c_werror_flag"
2484
                         || test ! -s conftest.err'
2485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486
  (eval $ac_try) 2>&5
2487
  ac_status=$?
2488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489
  (exit $ac_status); }; } &&
2490
         { ac_try='test -s conftest.$ac_objext'
2491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492
  (eval $ac_try) 2>&5
2493
  ac_status=$?
2494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
  (exit $ac_status); }; }; then
2496
  break
2497
else
2498
  echo "$as_me: failed program was:" >&5
2499
sed 's/^/| /' conftest.$ac_ext >&5
2500
 
2501
fi
2502
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503
done
2504
rm -f conftest*
2505
if test -n "$ac_declaration"; then
2506
  echo '#ifdef __cplusplus' >>confdefs.h
2507
  echo $ac_declaration      >>confdefs.h
2508
  echo '#endif'             >>confdefs.h
2509
fi
2510
 
2511
else
2512
  echo "$as_me: failed program was:" >&5
2513
sed 's/^/| /' conftest.$ac_ext >&5
2514
 
2515
fi
2516
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2517
ac_ext=c
2518
ac_cpp='$CPP $CPPFLAGS'
2519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522
 
2523
 
2524
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2525
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2526
if test "${ac_cv_search_strerror+set}" = set; then
2527
  echo $ECHO_N "(cached) $ECHO_C" >&6
2528
else
2529
  ac_func_search_save_LIBS=$LIBS
2530
ac_cv_search_strerror=no
2531
cat >conftest.$ac_ext <<_ACEOF
2532
/* confdefs.h.  */
2533
_ACEOF
2534
cat confdefs.h >>conftest.$ac_ext
2535
cat >>conftest.$ac_ext <<_ACEOF
2536
/* end confdefs.h.  */
2537
 
2538
/* Override any gcc2 internal prototype to avoid an error.  */
2539
#ifdef __cplusplus
2540
extern "C"
2541
#endif
2542
/* We use char because int might match the return type of a gcc2
2543
   builtin and then its argument prototype would still apply.  */
2544
char strerror ();
2545
int
2546
main ()
2547
{
2548
strerror ();
2549
  ;
2550
  return 0;
2551
}
2552
_ACEOF
2553
rm -f conftest.$ac_objext conftest$ac_exeext
2554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2555
  (eval $ac_link) 2>conftest.er1
2556
  ac_status=$?
2557
  grep -v '^ *+' conftest.er1 >conftest.err
2558
  rm -f conftest.er1
2559
  cat conftest.err >&5
2560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561
  (exit $ac_status); } &&
2562
         { ac_try='test -z "$ac_c_werror_flag"
2563
                         || test ! -s conftest.err'
2564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565
  (eval $ac_try) 2>&5
2566
  ac_status=$?
2567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568
  (exit $ac_status); }; } &&
2569
         { ac_try='test -s conftest$ac_exeext'
2570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571
  (eval $ac_try) 2>&5
2572
  ac_status=$?
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
  (exit $ac_status); }; }; then
2575
  ac_cv_search_strerror="none required"
2576
else
2577
  echo "$as_me: failed program was:" >&5
2578
sed 's/^/| /' conftest.$ac_ext >&5
2579
 
2580
fi
2581
rm -f conftest.err conftest.$ac_objext \
2582
      conftest$ac_exeext conftest.$ac_ext
2583
if test "$ac_cv_search_strerror" = no; then
2584
  for ac_lib in cposix; do
2585
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2586
    cat >conftest.$ac_ext <<_ACEOF
2587
/* confdefs.h.  */
2588
_ACEOF
2589
cat confdefs.h >>conftest.$ac_ext
2590
cat >>conftest.$ac_ext <<_ACEOF
2591
/* end confdefs.h.  */
2592
 
2593
/* Override any gcc2 internal prototype to avoid an error.  */
2594
#ifdef __cplusplus
2595
extern "C"
2596
#endif
2597
/* We use char because int might match the return type of a gcc2
2598
   builtin and then its argument prototype would still apply.  */
2599
char strerror ();
2600
int
2601
main ()
2602
{
2603
strerror ();
2604
  ;
2605
  return 0;
2606
}
2607
_ACEOF
2608
rm -f conftest.$ac_objext conftest$ac_exeext
2609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610
  (eval $ac_link) 2>conftest.er1
2611
  ac_status=$?
2612
  grep -v '^ *+' conftest.er1 >conftest.err
2613
  rm -f conftest.er1
2614
  cat conftest.err >&5
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616
  (exit $ac_status); } &&
2617
         { ac_try='test -z "$ac_c_werror_flag"
2618
                         || test ! -s conftest.err'
2619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620
  (eval $ac_try) 2>&5
2621
  ac_status=$?
2622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623
  (exit $ac_status); }; } &&
2624
         { ac_try='test -s conftest$ac_exeext'
2625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626
  (eval $ac_try) 2>&5
2627
  ac_status=$?
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
  (exit $ac_status); }; }; then
2630
  ac_cv_search_strerror="-l$ac_lib"
2631
break
2632
else
2633
  echo "$as_me: failed program was:" >&5
2634
sed 's/^/| /' conftest.$ac_ext >&5
2635
 
2636
fi
2637
rm -f conftest.err conftest.$ac_objext \
2638
      conftest$ac_exeext conftest.$ac_ext
2639
  done
2640
fi
2641
LIBS=$ac_func_search_save_LIBS
2642
fi
2643
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2644
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2645
if test "$ac_cv_search_strerror" != no; then
2646
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2647
 
2648
fi
2649
 
2650
 
2651
# We currently only use the version number for the name of any shared
2652
# library.  For user convenience, we always use the same version
2653
# number that BFD is using.
2654
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2655
 
2656
am__api_version="1.9"
2657
# Find a good install program.  We prefer a C program (faster),
2658
# so one script is as good as another.  But avoid the broken or
2659
# incompatible versions:
2660
# SysV /etc/install, /usr/sbin/install
2661
# SunOS /usr/etc/install
2662
# IRIX /sbin/install
2663
# AIX /bin/install
2664
# AmigaOS /C/install, which installs bootblocks on floppy discs
2665
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668
# OS/2's system install, which has a completely different semantic
2669
# ./install, which can be erroneously created by make from ./install.sh.
2670
# Reject install programs that cannot install multiple files.
2671
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2672
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2673
if test -z "$INSTALL"; then
2674
if test "${ac_cv_path_install+set}" = set; then
2675
  echo $ECHO_N "(cached) $ECHO_C" >&6
2676
else
2677
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678
for as_dir in $PATH
2679
do
2680
  IFS=$as_save_IFS
2681
  test -z "$as_dir" && as_dir=.
2682
  # Account for people who put trailing slashes in PATH elements.
2683
case $as_dir/ in
2684
  ./ | .// | /cC/* | \
2685
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2687
  /usr/ucb/* ) ;;
2688
  *)
2689
    # OSF1 and SCO ODT 3.0 have their own names for install.
2690
    # Don't use installbsd from OSF since it installs stuff as root
2691
    # by default.
2692
    for ac_prog in ginstall scoinst install; do
2693
      for ac_exec_ext in '' $ac_executable_extensions; do
2694
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2695
          if test $ac_prog = install &&
2696
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697
            # AIX install.  It has an incompatible calling convention.
2698
            :
2699
          elif test $ac_prog = install &&
2700
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701
            # program-specific install script used by HP pwplus--don't use.
2702
            :
2703
          else
2704
            rm -rf conftest.one conftest.two conftest.dir
2705
            echo one > conftest.one
2706
            echo two > conftest.two
2707
            mkdir conftest.dir
2708
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2709
              test -s conftest.one && test -s conftest.two &&
2710
              test -s conftest.dir/conftest.one &&
2711
              test -s conftest.dir/conftest.two
2712
            then
2713
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2714
              break 3
2715
            fi
2716
          fi
2717
        fi
2718
      done
2719
    done
2720
    ;;
2721
esac
2722
done
2723
 
2724
rm -rf conftest.one conftest.two conftest.dir
2725
 
2726
fi
2727
  if test "${ac_cv_path_install+set}" = set; then
2728
    INSTALL=$ac_cv_path_install
2729
  else
2730
    # As a last resort, use the slow shell script.  Don't cache a
2731
    # value for INSTALL within a source directory, because that will
2732
    # break other packages using the cache if that directory is
2733
    # removed, or if the value is a relative name.
2734
    INSTALL=$ac_install_sh
2735
  fi
2736
fi
2737
echo "$as_me:$LINENO: result: $INSTALL" >&5
2738
echo "${ECHO_T}$INSTALL" >&6
2739
 
2740
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2741
# It thinks the first close brace ends the variable substitution.
2742
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2743
 
2744
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2745
 
2746
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2747
 
2748
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2749
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2750
# Just in case
2751
sleep 1
2752
echo timestamp > conftest.file
2753
# Do `set' in a subshell so we don't clobber the current shell's
2754
# arguments.  Must try -L first in case configure is actually a
2755
# symlink; some systems play weird games with the mod time of symlinks
2756
# (eg FreeBSD returns the mod time of the symlink's containing
2757
# directory).
2758
if (
2759
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2760
   if test "$*" = "X"; then
2761
      # -L didn't work.
2762
      set X `ls -t $srcdir/configure conftest.file`
2763
   fi
2764
   rm -f conftest.file
2765
   if test "$*" != "X $srcdir/configure conftest.file" \
2766
      && test "$*" != "X conftest.file $srcdir/configure"; then
2767
 
2768
      # If neither matched, then we have a broken ls.  This can happen
2769
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2770
      # broken ls alias from the environment.  This has actually
2771
      # happened.  Such a system could not be considered "sane".
2772
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2773
alias in your environment" >&5
2774
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2775
alias in your environment" >&2;}
2776
   { (exit 1); exit 1; }; }
2777
   fi
2778
 
2779
   test "$2" = conftest.file
2780
   )
2781
then
2782
   # Ok.
2783
   :
2784
else
2785
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2786
Check your system clock" >&5
2787
echo "$as_me: error: newly created file is older than distributed files!
2788
Check your system clock" >&2;}
2789
   { (exit 1); exit 1; }; }
2790
fi
2791
echo "$as_me:$LINENO: result: yes" >&5
2792
echo "${ECHO_T}yes" >&6
2793
test "$program_prefix" != NONE &&
2794
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2795
# Use a double $ so make ignores it.
2796
test "$program_suffix" != NONE &&
2797
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2798
# Double any \ or $.  echo might interpret backslashes.
2799
# By default was `s,x,x', remove it if useless.
2800
cat <<\_ACEOF >conftest.sed
2801
s/[\\$]/&&/g;s/;s,x,x,$//
2802
_ACEOF
2803
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2804
rm conftest.sed
2805
 
2806
# expand $ac_aux_dir to an absolute path
2807
am_aux_dir=`cd $ac_aux_dir && pwd`
2808
 
2809
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2810
# Use eval to expand $SHELL
2811
if eval "$MISSING --run true"; then
2812
  am_missing_run="$MISSING --run "
2813
else
2814
  am_missing_run=
2815
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2816
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2817
fi
2818
 
2819
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2820
  # We used to keeping the `.' as first argument, in order to
2821
  # allow $(mkdir_p) to be used without argument.  As in
2822
  #   $(mkdir_p) $(somedir)
2823
  # where $(somedir) is conditionally defined.  However this is wrong
2824
  # for two reasons:
2825
  #  1. if the package is installed by a user who cannot write `.'
2826
  #     make install will fail,
2827
  #  2. the above comment should most certainly read
2828
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2829
  #     so it does not work when $(somedir) is undefined and
2830
  #     $(DESTDIR) is not.
2831
  #  To support the latter case, we have to write
2832
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2833
  #  so the `.' trick is pointless.
2834
  mkdir_p='mkdir -p --'
2835
else
2836
  # On NextStep and OpenStep, the `mkdir' command does not
2837
  # recognize any option.  It will interpret all options as
2838
  # directories to create, and then abort because `.' already
2839
  # exists.
2840
  for d in ./-p ./--version;
2841
  do
2842
    test -d $d && rmdir $d
2843
  done
2844
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2845
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2846
    mkdir_p='$(mkinstalldirs)'
2847
  else
2848
    mkdir_p='$(install_sh) -d'
2849
  fi
2850
fi
2851
 
2852
for ac_prog in gawk mawk nawk awk
2853
do
2854
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2855
set dummy $ac_prog; ac_word=$2
2856
echo "$as_me:$LINENO: checking for $ac_word" >&5
2857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858
if test "${ac_cv_prog_AWK+set}" = set; then
2859
  echo $ECHO_N "(cached) $ECHO_C" >&6
2860
else
2861
  if test -n "$AWK"; then
2862
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2863
else
2864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865
for as_dir in $PATH
2866
do
2867
  IFS=$as_save_IFS
2868
  test -z "$as_dir" && as_dir=.
2869
  for ac_exec_ext in '' $ac_executable_extensions; do
2870
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871
    ac_cv_prog_AWK="$ac_prog"
2872
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873
    break 2
2874
  fi
2875
done
2876
done
2877
 
2878
fi
2879
fi
2880
AWK=$ac_cv_prog_AWK
2881
if test -n "$AWK"; then
2882
  echo "$as_me:$LINENO: result: $AWK" >&5
2883
echo "${ECHO_T}$AWK" >&6
2884
else
2885
  echo "$as_me:$LINENO: result: no" >&5
2886
echo "${ECHO_T}no" >&6
2887
fi
2888
 
2889
  test -n "$AWK" && break
2890
done
2891
 
2892
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2893
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2894
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2895
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2896
  echo $ECHO_N "(cached) $ECHO_C" >&6
2897
else
2898
  cat >conftest.make <<\_ACEOF
2899
all:
2900
        @echo 'ac_maketemp="$(MAKE)"'
2901
_ACEOF
2902
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2903
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2904
if test -n "$ac_maketemp"; then
2905
  eval ac_cv_prog_make_${ac_make}_set=yes
2906
else
2907
  eval ac_cv_prog_make_${ac_make}_set=no
2908
fi
2909
rm -f conftest.make
2910
fi
2911
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2912
  echo "$as_me:$LINENO: result: yes" >&5
2913
echo "${ECHO_T}yes" >&6
2914
  SET_MAKE=
2915
else
2916
  echo "$as_me:$LINENO: result: no" >&5
2917
echo "${ECHO_T}no" >&6
2918
  SET_MAKE="MAKE=${MAKE-make}"
2919
fi
2920
 
2921
rm -rf .tst 2>/dev/null
2922
mkdir .tst 2>/dev/null
2923
if test -d .tst; then
2924
  am__leading_dot=.
2925
else
2926
  am__leading_dot=_
2927
fi
2928
rmdir .tst 2>/dev/null
2929
 
2930
DEPDIR="${am__leading_dot}deps"
2931
 
2932
          ac_config_commands="$ac_config_commands depfiles"
2933
 
2934
 
2935
am_make=${MAKE-make}
2936
cat > confinc << 'END'
2937
am__doit:
2938
        @echo done
2939
.PHONY: am__doit
2940
END
2941
# If we don't find an include directive, just comment out the code.
2942
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2943
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2944
am__include="#"
2945
am__quote=
2946
_am_result=none
2947
# First try GNU make style include.
2948
echo "include confinc" > confmf
2949
# We grep out `Entering directory' and `Leaving directory'
2950
# messages which can occur if `w' ends up in MAKEFLAGS.
2951
# In particular we don't look at `^make:' because GNU make might
2952
# be invoked under some other name (usually "gmake"), in which
2953
# case it prints its new name instead of `make'.
2954
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2955
   am__include=include
2956
   am__quote=
2957
   _am_result=GNU
2958
fi
2959
# Now try BSD make style include.
2960
if test "$am__include" = "#"; then
2961
   echo '.include "confinc"' > confmf
2962
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2963
      am__include=.include
2964
      am__quote="\""
2965
      _am_result=BSD
2966
   fi
2967
fi
2968
 
2969
 
2970
echo "$as_me:$LINENO: result: $_am_result" >&5
2971
echo "${ECHO_T}$_am_result" >&6
2972
rm -f confinc confmf
2973
 
2974
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2975
if test "${enable_dependency_tracking+set}" = set; then
2976
  enableval="$enable_dependency_tracking"
2977
 
2978
fi;
2979
if test "x$enable_dependency_tracking" != xno; then
2980
  am_depcomp="$ac_aux_dir/depcomp"
2981
  AMDEPBACKSLASH='\'
2982
fi
2983
 
2984
 
2985
if test "x$enable_dependency_tracking" != xno; then
2986
  AMDEP_TRUE=
2987
  AMDEP_FALSE='#'
2988
else
2989
  AMDEP_TRUE='#'
2990
  AMDEP_FALSE=
2991
fi
2992
 
2993
 
2994
 
2995
# test to see if srcdir already configured
2996
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2997
   test -f $srcdir/config.status; then
2998
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2999
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3000
   { (exit 1); exit 1; }; }
3001
fi
3002
 
3003
# test whether we have cygpath
3004
if test -z "$CYGPATH_W"; then
3005
  if (cygpath --version) >/dev/null 2>/dev/null; then
3006
    CYGPATH_W='cygpath -w'
3007
  else
3008
    CYGPATH_W=echo
3009
  fi
3010
fi
3011
 
3012
 
3013
# Define the identity of the package.
3014
 PACKAGE=opcodes
3015
 VERSION=${BFD_VERSION}
3016
 
3017
 
3018
cat >>confdefs.h <<_ACEOF
3019
#define PACKAGE "$PACKAGE"
3020
_ACEOF
3021
 
3022
 
3023
cat >>confdefs.h <<_ACEOF
3024
#define VERSION "$VERSION"
3025
_ACEOF
3026
 
3027
# Some tools Automake needs.
3028
 
3029
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3030
 
3031
 
3032
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3033
 
3034
 
3035
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3036
 
3037
 
3038
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3039
 
3040
 
3041
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3042
 
3043
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3044
 
3045
# Installed binaries are usually stripped using `strip' when the user
3046
# run `make install-strip'.  However `strip' might not be the right
3047
# tool to use in cross-compilation environments, therefore Automake
3048
# will honor the `STRIP' environment variable to overrule this program.
3049
if test "$cross_compiling" != no; then
3050
  if test -n "$ac_tool_prefix"; then
3051
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3052
set dummy ${ac_tool_prefix}strip; ac_word=$2
3053
echo "$as_me:$LINENO: checking for $ac_word" >&5
3054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055
if test "${ac_cv_prog_STRIP+set}" = set; then
3056
  echo $ECHO_N "(cached) $ECHO_C" >&6
3057
else
3058
  if test -n "$STRIP"; then
3059
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3060
else
3061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062
for as_dir in $PATH
3063
do
3064
  IFS=$as_save_IFS
3065
  test -z "$as_dir" && as_dir=.
3066
  for ac_exec_ext in '' $ac_executable_extensions; do
3067
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3069
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070
    break 2
3071
  fi
3072
done
3073
done
3074
 
3075
fi
3076
fi
3077
STRIP=$ac_cv_prog_STRIP
3078
if test -n "$STRIP"; then
3079
  echo "$as_me:$LINENO: result: $STRIP" >&5
3080
echo "${ECHO_T}$STRIP" >&6
3081
else
3082
  echo "$as_me:$LINENO: result: no" >&5
3083
echo "${ECHO_T}no" >&6
3084
fi
3085
 
3086
fi
3087
if test -z "$ac_cv_prog_STRIP"; then
3088
  ac_ct_STRIP=$STRIP
3089
  # Extract the first word of "strip", so it can be a program name with args.
3090
set dummy strip; ac_word=$2
3091
echo "$as_me:$LINENO: checking for $ac_word" >&5
3092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3094
  echo $ECHO_N "(cached) $ECHO_C" >&6
3095
else
3096
  if test -n "$ac_ct_STRIP"; then
3097
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098
else
3099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100
for as_dir in $PATH
3101
do
3102
  IFS=$as_save_IFS
3103
  test -z "$as_dir" && as_dir=.
3104
  for ac_exec_ext in '' $ac_executable_extensions; do
3105
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106
    ac_cv_prog_ac_ct_STRIP="strip"
3107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108
    break 2
3109
  fi
3110
done
3111
done
3112
 
3113
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3114
fi
3115
fi
3116
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3117
if test -n "$ac_ct_STRIP"; then
3118
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3119
echo "${ECHO_T}$ac_ct_STRIP" >&6
3120
else
3121
  echo "$as_me:$LINENO: result: no" >&5
3122
echo "${ECHO_T}no" >&6
3123
fi
3124
 
3125
  STRIP=$ac_ct_STRIP
3126
else
3127
  STRIP="$ac_cv_prog_STRIP"
3128
fi
3129
 
3130
fi
3131
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3132
 
3133
# We need awk for the "check" target.  The system "awk" is bad on
3134
# some platforms.
3135
# Always define AMTAR for backward compatibility.
3136
 
3137
AMTAR=${AMTAR-"${am_missing_run}tar"}
3138
 
3139
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3140
 
3141
 
3142
 
3143
 
3144
depcc="$CC"   am_compiler_list=
3145
 
3146
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3147
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3148
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3149
  echo $ECHO_N "(cached) $ECHO_C" >&6
3150
else
3151
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3152
  # We make a subdir and do the tests there.  Otherwise we can end up
3153
  # making bogus files that we don't know about and never remove.  For
3154
  # instance it was reported that on HP-UX the gcc test will end up
3155
  # making a dummy file named `D' -- because `-MD' means `put the output
3156
  # in D'.
3157
  mkdir conftest.dir
3158
  # Copy depcomp to subdir because otherwise we won't find it if we're
3159
  # using a relative directory.
3160
  cp "$am_depcomp" conftest.dir
3161
  cd conftest.dir
3162
  # We will build objects and dependencies in a subdirectory because
3163
  # it helps to detect inapplicable dependency modes.  For instance
3164
  # both Tru64's cc and ICC support -MD to output dependencies as a
3165
  # side effect of compilation, but ICC will put the dependencies in
3166
  # the current directory while Tru64 will put them in the object
3167
  # directory.
3168
  mkdir sub
3169
 
3170
  am_cv_CC_dependencies_compiler_type=none
3171
  if test "$am_compiler_list" = ""; then
3172
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3173
  fi
3174
  for depmode in $am_compiler_list; do
3175
    # Setup a source with many dependencies, because some compilers
3176
    # like to wrap large dependency lists on column 80 (with \), and
3177
    # we should not choose a depcomp mode which is confused by this.
3178
    #
3179
    # We need to recreate these files for each test, as the compiler may
3180
    # overwrite some of them when testing with obscure command lines.
3181
    # This happens at least with the AIX C compiler.
3182
    : > sub/conftest.c
3183
    for i in 1 2 3 4 5 6; do
3184
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3185
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3186
      # Solaris 8's {/usr,}/bin/sh.
3187
      touch sub/conftst$i.h
3188
    done
3189
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3190
 
3191
    case $depmode in
3192
    nosideeffect)
3193
      # after this tag, mechanisms are not by side-effect, so they'll
3194
      # only be used when explicitly requested
3195
      if test "x$enable_dependency_tracking" = xyes; then
3196
        continue
3197
      else
3198
        break
3199
      fi
3200
      ;;
3201
    none) break ;;
3202
    esac
3203
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3204
    # mode.  It turns out that the SunPro C++ compiler does not properly
3205
    # handle `-M -o', and we need to detect this.
3206
    if depmode=$depmode \
3207
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3208
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3209
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3210
         >/dev/null 2>conftest.err &&
3211
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3212
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3213
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3214
      # icc doesn't choke on unknown options, it will just issue warnings
3215
      # or remarks (even with -Werror).  So we grep stderr for any message
3216
      # that says an option was ignored or not supported.
3217
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3218
      #   icc: Command line warning: ignoring option '-M'; no argument required
3219
      # The diagnosis changed in icc 8.0:
3220
      #   icc: Command line remark: option '-MP' not supported
3221
      if (grep 'ignoring option' conftest.err ||
3222
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3223
        am_cv_CC_dependencies_compiler_type=$depmode
3224
        break
3225
      fi
3226
    fi
3227
  done
3228
 
3229
  cd ..
3230
  rm -rf conftest.dir
3231
else
3232
  am_cv_CC_dependencies_compiler_type=none
3233
fi
3234
 
3235
fi
3236
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3237
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3238
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3239
 
3240
 
3241
 
3242
if
3243
  test "x$enable_dependency_tracking" != xno \
3244
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3245
  am__fastdepCC_TRUE=
3246
  am__fastdepCC_FALSE='#'
3247
else
3248
  am__fastdepCC_TRUE='#'
3249
  am__fastdepCC_FALSE=
3250
fi
3251
 
3252
 
3253
 
3254
 
3255
ac_ext=c
3256
ac_cpp='$CPP $CPPFLAGS'
3257
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
if test -n "$ac_tool_prefix"; then
3261
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263
echo "$as_me:$LINENO: checking for $ac_word" >&5
3264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265
if test "${ac_cv_prog_CC+set}" = set; then
3266
  echo $ECHO_N "(cached) $ECHO_C" >&6
3267
else
3268
  if test -n "$CC"; then
3269
  ac_cv_prog_CC="$CC" # Let the user override the test.
3270
else
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272
for as_dir in $PATH
3273
do
3274
  IFS=$as_save_IFS
3275
  test -z "$as_dir" && as_dir=.
3276
  for ac_exec_ext in '' $ac_executable_extensions; do
3277
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280
    break 2
3281
  fi
3282
done
3283
done
3284
 
3285
fi
3286
fi
3287
CC=$ac_cv_prog_CC
3288
if test -n "$CC"; then
3289
  echo "$as_me:$LINENO: result: $CC" >&5
3290
echo "${ECHO_T}$CC" >&6
3291
else
3292
  echo "$as_me:$LINENO: result: no" >&5
3293
echo "${ECHO_T}no" >&6
3294
fi
3295
 
3296
fi
3297
if test -z "$ac_cv_prog_CC"; then
3298
  ac_ct_CC=$CC
3299
  # Extract the first word of "gcc", so it can be a program name with args.
3300
set dummy gcc; ac_word=$2
3301
echo "$as_me:$LINENO: checking for $ac_word" >&5
3302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3303
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3304
  echo $ECHO_N "(cached) $ECHO_C" >&6
3305
else
3306
  if test -n "$ac_ct_CC"; then
3307
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308
else
3309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310
for as_dir in $PATH
3311
do
3312
  IFS=$as_save_IFS
3313
  test -z "$as_dir" && as_dir=.
3314
  for ac_exec_ext in '' $ac_executable_extensions; do
3315
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316
    ac_cv_prog_ac_ct_CC="gcc"
3317
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318
    break 2
3319
  fi
3320
done
3321
done
3322
 
3323
fi
3324
fi
3325
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326
if test -n "$ac_ct_CC"; then
3327
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3328
echo "${ECHO_T}$ac_ct_CC" >&6
3329
else
3330
  echo "$as_me:$LINENO: result: no" >&5
3331
echo "${ECHO_T}no" >&6
3332
fi
3333
 
3334
  CC=$ac_ct_CC
3335
else
3336
  CC="$ac_cv_prog_CC"
3337
fi
3338
 
3339
if test -z "$CC"; then
3340
  if test -n "$ac_tool_prefix"; then
3341
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342
set dummy ${ac_tool_prefix}cc; ac_word=$2
3343
echo "$as_me:$LINENO: checking for $ac_word" >&5
3344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345
if test "${ac_cv_prog_CC+set}" = set; then
3346
  echo $ECHO_N "(cached) $ECHO_C" >&6
3347
else
3348
  if test -n "$CC"; then
3349
  ac_cv_prog_CC="$CC" # Let the user override the test.
3350
else
3351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352
for as_dir in $PATH
3353
do
3354
  IFS=$as_save_IFS
3355
  test -z "$as_dir" && as_dir=.
3356
  for ac_exec_ext in '' $ac_executable_extensions; do
3357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360
    break 2
3361
  fi
3362
done
3363
done
3364
 
3365
fi
3366
fi
3367
CC=$ac_cv_prog_CC
3368
if test -n "$CC"; then
3369
  echo "$as_me:$LINENO: result: $CC" >&5
3370
echo "${ECHO_T}$CC" >&6
3371
else
3372
  echo "$as_me:$LINENO: result: no" >&5
3373
echo "${ECHO_T}no" >&6
3374
fi
3375
 
3376
fi
3377
if test -z "$ac_cv_prog_CC"; then
3378
  ac_ct_CC=$CC
3379
  # Extract the first word of "cc", so it can be a program name with args.
3380
set dummy cc; ac_word=$2
3381
echo "$as_me:$LINENO: checking for $ac_word" >&5
3382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384
  echo $ECHO_N "(cached) $ECHO_C" >&6
3385
else
3386
  if test -n "$ac_ct_CC"; then
3387
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388
else
3389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390
for as_dir in $PATH
3391
do
3392
  IFS=$as_save_IFS
3393
  test -z "$as_dir" && as_dir=.
3394
  for ac_exec_ext in '' $ac_executable_extensions; do
3395
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396
    ac_cv_prog_ac_ct_CC="cc"
3397
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398
    break 2
3399
  fi
3400
done
3401
done
3402
 
3403
fi
3404
fi
3405
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406
if test -n "$ac_ct_CC"; then
3407
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408
echo "${ECHO_T}$ac_ct_CC" >&6
3409
else
3410
  echo "$as_me:$LINENO: result: no" >&5
3411
echo "${ECHO_T}no" >&6
3412
fi
3413
 
3414
  CC=$ac_ct_CC
3415
else
3416
  CC="$ac_cv_prog_CC"
3417
fi
3418
 
3419
fi
3420
if test -z "$CC"; then
3421
  # Extract the first word of "cc", so it can be a program name with args.
3422
set dummy cc; ac_word=$2
3423
echo "$as_me:$LINENO: checking for $ac_word" >&5
3424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425
if test "${ac_cv_prog_CC+set}" = set; then
3426
  echo $ECHO_N "(cached) $ECHO_C" >&6
3427
else
3428
  if test -n "$CC"; then
3429
  ac_cv_prog_CC="$CC" # Let the user override the test.
3430
else
3431
  ac_prog_rejected=no
3432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433
for as_dir in $PATH
3434
do
3435
  IFS=$as_save_IFS
3436
  test -z "$as_dir" && as_dir=.
3437
  for ac_exec_ext in '' $ac_executable_extensions; do
3438
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3440
       ac_prog_rejected=yes
3441
       continue
3442
     fi
3443
    ac_cv_prog_CC="cc"
3444
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445
    break 2
3446
  fi
3447
done
3448
done
3449
 
3450
if test $ac_prog_rejected = yes; then
3451
  # We found a bogon in the path, so make sure we never use it.
3452
  set dummy $ac_cv_prog_CC
3453
  shift
3454
  if test $# != 0; then
3455
    # We chose a different compiler from the bogus one.
3456
    # However, it has the same basename, so the bogon will be chosen
3457
    # first if we set CC to just the basename; use the full file name.
3458
    shift
3459
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3460
  fi
3461
fi
3462
fi
3463
fi
3464
CC=$ac_cv_prog_CC
3465
if test -n "$CC"; then
3466
  echo "$as_me:$LINENO: result: $CC" >&5
3467
echo "${ECHO_T}$CC" >&6
3468
else
3469
  echo "$as_me:$LINENO: result: no" >&5
3470
echo "${ECHO_T}no" >&6
3471
fi
3472
 
3473
fi
3474
if test -z "$CC"; then
3475
  if test -n "$ac_tool_prefix"; then
3476
  for ac_prog in cl
3477
  do
3478
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480
echo "$as_me:$LINENO: checking for $ac_word" >&5
3481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482
if test "${ac_cv_prog_CC+set}" = set; then
3483
  echo $ECHO_N "(cached) $ECHO_C" >&6
3484
else
3485
  if test -n "$CC"; then
3486
  ac_cv_prog_CC="$CC" # Let the user override the test.
3487
else
3488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489
for as_dir in $PATH
3490
do
3491
  IFS=$as_save_IFS
3492
  test -z "$as_dir" && as_dir=.
3493
  for ac_exec_ext in '' $ac_executable_extensions; do
3494
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497
    break 2
3498
  fi
3499
done
3500
done
3501
 
3502
fi
3503
fi
3504
CC=$ac_cv_prog_CC
3505
if test -n "$CC"; then
3506
  echo "$as_me:$LINENO: result: $CC" >&5
3507
echo "${ECHO_T}$CC" >&6
3508
else
3509
  echo "$as_me:$LINENO: result: no" >&5
3510
echo "${ECHO_T}no" >&6
3511
fi
3512
 
3513
    test -n "$CC" && break
3514
  done
3515
fi
3516
if test -z "$CC"; then
3517
  ac_ct_CC=$CC
3518
  for ac_prog in cl
3519
do
3520
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3521
set dummy $ac_prog; ac_word=$2
3522
echo "$as_me:$LINENO: checking for $ac_word" >&5
3523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525
  echo $ECHO_N "(cached) $ECHO_C" >&6
3526
else
3527
  if test -n "$ac_ct_CC"; then
3528
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3529
else
3530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531
for as_dir in $PATH
3532
do
3533
  IFS=$as_save_IFS
3534
  test -z "$as_dir" && as_dir=.
3535
  for ac_exec_ext in '' $ac_executable_extensions; do
3536
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537
    ac_cv_prog_ac_ct_CC="$ac_prog"
3538
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539
    break 2
3540
  fi
3541
done
3542
done
3543
 
3544
fi
3545
fi
3546
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547
if test -n "$ac_ct_CC"; then
3548
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3549
echo "${ECHO_T}$ac_ct_CC" >&6
3550
else
3551
  echo "$as_me:$LINENO: result: no" >&5
3552
echo "${ECHO_T}no" >&6
3553
fi
3554
 
3555
  test -n "$ac_ct_CC" && break
3556
done
3557
 
3558
  CC=$ac_ct_CC
3559
fi
3560
 
3561
fi
3562
 
3563
 
3564
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3565
See \`config.log' for more details." >&5
3566
echo "$as_me: error: no acceptable C compiler found in \$PATH
3567
See \`config.log' for more details." >&2;}
3568
   { (exit 1); exit 1; }; }
3569
 
3570
# Provide some information about the compiler.
3571
echo "$as_me:$LINENO:" \
3572
     "checking for C compiler version" >&5
3573
ac_compiler=`set X $ac_compile; echo $2`
3574
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3575
  (eval $ac_compiler --version &5) 2>&5
3576
  ac_status=$?
3577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
  (exit $ac_status); }
3579
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3580
  (eval $ac_compiler -v &5) 2>&5
3581
  ac_status=$?
3582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583
  (exit $ac_status); }
3584
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3585
  (eval $ac_compiler -V &5) 2>&5
3586
  ac_status=$?
3587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588
  (exit $ac_status); }
3589
 
3590
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3591
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3592
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3593
  echo $ECHO_N "(cached) $ECHO_C" >&6
3594
else
3595
  cat >conftest.$ac_ext <<_ACEOF
3596
/* confdefs.h.  */
3597
_ACEOF
3598
cat confdefs.h >>conftest.$ac_ext
3599
cat >>conftest.$ac_ext <<_ACEOF
3600
/* end confdefs.h.  */
3601
 
3602
int
3603
main ()
3604
{
3605
#ifndef __GNUC__
3606
       choke me
3607
#endif
3608
 
3609
  ;
3610
  return 0;
3611
}
3612
_ACEOF
3613
rm -f conftest.$ac_objext
3614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615
  (eval $ac_compile) 2>conftest.er1
3616
  ac_status=$?
3617
  grep -v '^ *+' conftest.er1 >conftest.err
3618
  rm -f conftest.er1
3619
  cat conftest.err >&5
3620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
  (exit $ac_status); } &&
3622
         { ac_try='test -z "$ac_c_werror_flag"
3623
                         || test ! -s conftest.err'
3624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625
  (eval $ac_try) 2>&5
3626
  ac_status=$?
3627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628
  (exit $ac_status); }; } &&
3629
         { ac_try='test -s conftest.$ac_objext'
3630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631
  (eval $ac_try) 2>&5
3632
  ac_status=$?
3633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634
  (exit $ac_status); }; }; then
3635
  ac_compiler_gnu=yes
3636
else
3637
  echo "$as_me: failed program was:" >&5
3638
sed 's/^/| /' conftest.$ac_ext >&5
3639
 
3640
ac_compiler_gnu=no
3641
fi
3642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644
 
3645
fi
3646
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3647
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3648
GCC=`test $ac_compiler_gnu = yes && echo yes`
3649
ac_test_CFLAGS=${CFLAGS+set}
3650
ac_save_CFLAGS=$CFLAGS
3651
CFLAGS="-g"
3652
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3653
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3654
if test "${ac_cv_prog_cc_g+set}" = set; then
3655
  echo $ECHO_N "(cached) $ECHO_C" >&6
3656
else
3657
  cat >conftest.$ac_ext <<_ACEOF
3658
/* confdefs.h.  */
3659
_ACEOF
3660
cat confdefs.h >>conftest.$ac_ext
3661
cat >>conftest.$ac_ext <<_ACEOF
3662
/* end confdefs.h.  */
3663
 
3664
int
3665
main ()
3666
{
3667
 
3668
  ;
3669
  return 0;
3670
}
3671
_ACEOF
3672
rm -f conftest.$ac_objext
3673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674
  (eval $ac_compile) 2>conftest.er1
3675
  ac_status=$?
3676
  grep -v '^ *+' conftest.er1 >conftest.err
3677
  rm -f conftest.er1
3678
  cat conftest.err >&5
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680
  (exit $ac_status); } &&
3681
         { ac_try='test -z "$ac_c_werror_flag"
3682
                         || test ! -s conftest.err'
3683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684
  (eval $ac_try) 2>&5
3685
  ac_status=$?
3686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687
  (exit $ac_status); }; } &&
3688
         { ac_try='test -s conftest.$ac_objext'
3689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690
  (eval $ac_try) 2>&5
3691
  ac_status=$?
3692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693
  (exit $ac_status); }; }; then
3694
  ac_cv_prog_cc_g=yes
3695
else
3696
  echo "$as_me: failed program was:" >&5
3697
sed 's/^/| /' conftest.$ac_ext >&5
3698
 
3699
ac_cv_prog_cc_g=no
3700
fi
3701
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702
fi
3703
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3704
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3705
if test "$ac_test_CFLAGS" = set; then
3706
  CFLAGS=$ac_save_CFLAGS
3707
elif test $ac_cv_prog_cc_g = yes; then
3708
  if test "$GCC" = yes; then
3709
    CFLAGS="-g -O2"
3710
  else
3711
    CFLAGS="-g"
3712
  fi
3713
else
3714
  if test "$GCC" = yes; then
3715
    CFLAGS="-O2"
3716
  else
3717
    CFLAGS=
3718
  fi
3719
fi
3720
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3721
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3722
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3723
  echo $ECHO_N "(cached) $ECHO_C" >&6
3724
else
3725
  ac_cv_prog_cc_stdc=no
3726
ac_save_CC=$CC
3727
cat >conftest.$ac_ext <<_ACEOF
3728
/* confdefs.h.  */
3729
_ACEOF
3730
cat confdefs.h >>conftest.$ac_ext
3731
cat >>conftest.$ac_ext <<_ACEOF
3732
/* end confdefs.h.  */
3733
#include 
3734
#include 
3735
#include 
3736
#include 
3737
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3738
struct buf { int x; };
3739
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740
static char *e (p, i)
3741
     char **p;
3742
     int i;
3743
{
3744
  return p[i];
3745
}
3746
static char *f (char * (*g) (char **, int), char **p, ...)
3747
{
3748
  char *s;
3749
  va_list v;
3750
  va_start (v,p);
3751
  s = g (p, va_arg (v,int));
3752
  va_end (v);
3753
  return s;
3754
}
3755
 
3756
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3757
   function prototypes and stuff, but not '\xHH' hex character constants.
3758
   These don't provoke an error unfortunately, instead are silently treated
3759
   as 'x'.  The following induces an error, until -std1 is added to get
3760
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3761
   array size at least.  It's necessary to write '\x00'==0 to get something
3762
   that's true only with -std1.  */
3763
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764
 
3765
int test (int i, double x);
3766
struct s1 {int (*f) (int a);};
3767
struct s2 {int (*f) (double a);};
3768
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3769
int argc;
3770
char **argv;
3771
int
3772
main ()
3773
{
3774
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3775
  ;
3776
  return 0;
3777
}
3778
_ACEOF
3779
# Don't try gcc -ansi; that turns off useful extensions and
3780
# breaks some systems' header files.
3781
# AIX                   -qlanglvl=ansi
3782
# Ultrix and OSF/1      -std1
3783
# HP-UX 10.20 and later -Ae
3784
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3785
# SVR4                  -Xc -D__EXTENSIONS__
3786
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787
do
3788
  CC="$ac_save_CC $ac_arg"
3789
  rm -f conftest.$ac_objext
3790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791
  (eval $ac_compile) 2>conftest.er1
3792
  ac_status=$?
3793
  grep -v '^ *+' conftest.er1 >conftest.err
3794
  rm -f conftest.er1
3795
  cat conftest.err >&5
3796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797
  (exit $ac_status); } &&
3798
         { ac_try='test -z "$ac_c_werror_flag"
3799
                         || test ! -s conftest.err'
3800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801
  (eval $ac_try) 2>&5
3802
  ac_status=$?
3803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804
  (exit $ac_status); }; } &&
3805
         { ac_try='test -s conftest.$ac_objext'
3806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807
  (eval $ac_try) 2>&5
3808
  ac_status=$?
3809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
  (exit $ac_status); }; }; then
3811
  ac_cv_prog_cc_stdc=$ac_arg
3812
break
3813
else
3814
  echo "$as_me: failed program was:" >&5
3815
sed 's/^/| /' conftest.$ac_ext >&5
3816
 
3817
fi
3818
rm -f conftest.err conftest.$ac_objext
3819
done
3820
rm -f conftest.$ac_ext conftest.$ac_objext
3821
CC=$ac_save_CC
3822
 
3823
fi
3824
 
3825
case "x$ac_cv_prog_cc_stdc" in
3826
  x|xno)
3827
    echo "$as_me:$LINENO: result: none needed" >&5
3828
echo "${ECHO_T}none needed" >&6 ;;
3829
  *)
3830
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3831
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3832
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3833
esac
3834
 
3835
# Some people use a C++ compiler to compile C.  Since we use `exit',
3836
# in C++ we need to declare it.  In case someone uses the same compiler
3837
# for both compiling C and C++ we need to have the C++ compiler decide
3838
# the declaration of exit, since it's the most demanding environment.
3839
cat >conftest.$ac_ext <<_ACEOF
3840
#ifndef __cplusplus
3841
  choke me
3842
#endif
3843
_ACEOF
3844
rm -f conftest.$ac_objext
3845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846
  (eval $ac_compile) 2>conftest.er1
3847
  ac_status=$?
3848
  grep -v '^ *+' conftest.er1 >conftest.err
3849
  rm -f conftest.er1
3850
  cat conftest.err >&5
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852
  (exit $ac_status); } &&
3853
         { ac_try='test -z "$ac_c_werror_flag"
3854
                         || test ! -s conftest.err'
3855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856
  (eval $ac_try) 2>&5
3857
  ac_status=$?
3858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859
  (exit $ac_status); }; } &&
3860
         { ac_try='test -s conftest.$ac_objext'
3861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862
  (eval $ac_try) 2>&5
3863
  ac_status=$?
3864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865
  (exit $ac_status); }; }; then
3866
  for ac_declaration in \
3867
   '' \
3868
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3869
   'extern "C" void std::exit (int); using std::exit;' \
3870
   'extern "C" void exit (int) throw ();' \
3871
   'extern "C" void exit (int);' \
3872
   'void exit (int);'
3873
do
3874
  cat >conftest.$ac_ext <<_ACEOF
3875
/* confdefs.h.  */
3876
_ACEOF
3877
cat confdefs.h >>conftest.$ac_ext
3878
cat >>conftest.$ac_ext <<_ACEOF
3879
/* end confdefs.h.  */
3880
$ac_declaration
3881
#include 
3882
int
3883
main ()
3884
{
3885
exit (42);
3886
  ;
3887
  return 0;
3888
}
3889
_ACEOF
3890
rm -f conftest.$ac_objext
3891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892
  (eval $ac_compile) 2>conftest.er1
3893
  ac_status=$?
3894
  grep -v '^ *+' conftest.er1 >conftest.err
3895
  rm -f conftest.er1
3896
  cat conftest.err >&5
3897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898
  (exit $ac_status); } &&
3899
         { ac_try='test -z "$ac_c_werror_flag"
3900
                         || test ! -s conftest.err'
3901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902
  (eval $ac_try) 2>&5
3903
  ac_status=$?
3904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905
  (exit $ac_status); }; } &&
3906
         { ac_try='test -s conftest.$ac_objext'
3907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908
  (eval $ac_try) 2>&5
3909
  ac_status=$?
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
  (exit $ac_status); }; }; then
3912
  :
3913
else
3914
  echo "$as_me: failed program was:" >&5
3915
sed 's/^/| /' conftest.$ac_ext >&5
3916
 
3917
continue
3918
fi
3919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920
  cat >conftest.$ac_ext <<_ACEOF
3921
/* confdefs.h.  */
3922
_ACEOF
3923
cat confdefs.h >>conftest.$ac_ext
3924
cat >>conftest.$ac_ext <<_ACEOF
3925
/* end confdefs.h.  */
3926
$ac_declaration
3927
int
3928
main ()
3929
{
3930
exit (42);
3931
  ;
3932
  return 0;
3933
}
3934
_ACEOF
3935
rm -f conftest.$ac_objext
3936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937
  (eval $ac_compile) 2>conftest.er1
3938
  ac_status=$?
3939
  grep -v '^ *+' conftest.er1 >conftest.err
3940
  rm -f conftest.er1
3941
  cat conftest.err >&5
3942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
  (exit $ac_status); } &&
3944
         { ac_try='test -z "$ac_c_werror_flag"
3945
                         || test ! -s conftest.err'
3946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947
  (eval $ac_try) 2>&5
3948
  ac_status=$?
3949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
  (exit $ac_status); }; } &&
3951
         { ac_try='test -s conftest.$ac_objext'
3952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953
  (eval $ac_try) 2>&5
3954
  ac_status=$?
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
  (exit $ac_status); }; }; then
3957
  break
3958
else
3959
  echo "$as_me: failed program was:" >&5
3960
sed 's/^/| /' conftest.$ac_ext >&5
3961
 
3962
fi
3963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3964
done
3965
rm -f conftest*
3966
if test -n "$ac_declaration"; then
3967
  echo '#ifdef __cplusplus' >>confdefs.h
3968
  echo $ac_declaration      >>confdefs.h
3969
  echo '#endif'             >>confdefs.h
3970
fi
3971
 
3972
else
3973
  echo "$as_me: failed program was:" >&5
3974
sed 's/^/| /' conftest.$ac_ext >&5
3975
 
3976
fi
3977
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978
ac_ext=c
3979
ac_cpp='$CPP $CPPFLAGS'
3980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983
 
3984
 
3985
cat >>confdefs.h <<\_ACEOF
3986
#define _GNU_SOURCE 1
3987
_ACEOF
3988
 
3989
 
3990
 
3991
if test -n "$ac_tool_prefix"; then
3992
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3993
set dummy ${ac_tool_prefix}ar; ac_word=$2
3994
echo "$as_me:$LINENO: checking for $ac_word" >&5
3995
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996
if test "${ac_cv_prog_AR+set}" = set; then
3997
  echo $ECHO_N "(cached) $ECHO_C" >&6
3998
else
3999
  if test -n "$AR"; then
4000
  ac_cv_prog_AR="$AR" # Let the user override the test.
4001
else
4002
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003
for as_dir in $PATH
4004
do
4005
  IFS=$as_save_IFS
4006
  test -z "$as_dir" && as_dir=.
4007
  for ac_exec_ext in '' $ac_executable_extensions; do
4008
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4010
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011
    break 2
4012
  fi
4013
done
4014
done
4015
 
4016
fi
4017
fi
4018
AR=$ac_cv_prog_AR
4019
if test -n "$AR"; then
4020
  echo "$as_me:$LINENO: result: $AR" >&5
4021
echo "${ECHO_T}$AR" >&6
4022
else
4023
  echo "$as_me:$LINENO: result: no" >&5
4024
echo "${ECHO_T}no" >&6
4025
fi
4026
 
4027
fi
4028
if test -z "$ac_cv_prog_AR"; then
4029
  ac_ct_AR=$AR
4030
  # Extract the first word of "ar", so it can be a program name with args.
4031
set dummy ar; ac_word=$2
4032
echo "$as_me:$LINENO: checking for $ac_word" >&5
4033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
4036
else
4037
  if test -n "$ac_ct_AR"; then
4038
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4039
else
4040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041
for as_dir in $PATH
4042
do
4043
  IFS=$as_save_IFS
4044
  test -z "$as_dir" && as_dir=.
4045
  for ac_exec_ext in '' $ac_executable_extensions; do
4046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047
    ac_cv_prog_ac_ct_AR="ar"
4048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049
    break 2
4050
  fi
4051
done
4052
done
4053
 
4054
fi
4055
fi
4056
ac_ct_AR=$ac_cv_prog_ac_ct_AR
4057
if test -n "$ac_ct_AR"; then
4058
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4059
echo "${ECHO_T}$ac_ct_AR" >&6
4060
else
4061
  echo "$as_me:$LINENO: result: no" >&5
4062
echo "${ECHO_T}no" >&6
4063
fi
4064
 
4065
  AR=$ac_ct_AR
4066
else
4067
  AR="$ac_cv_prog_AR"
4068
fi
4069
 
4070
if test -n "$ac_tool_prefix"; then
4071
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4072
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4073
echo "$as_me:$LINENO: checking for $ac_word" >&5
4074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075
if test "${ac_cv_prog_RANLIB+set}" = set; then
4076
  echo $ECHO_N "(cached) $ECHO_C" >&6
4077
else
4078
  if test -n "$RANLIB"; then
4079
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4080
else
4081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082
for as_dir in $PATH
4083
do
4084
  IFS=$as_save_IFS
4085
  test -z "$as_dir" && as_dir=.
4086
  for ac_exec_ext in '' $ac_executable_extensions; do
4087
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090
    break 2
4091
  fi
4092
done
4093
done
4094
 
4095
fi
4096
fi
4097
RANLIB=$ac_cv_prog_RANLIB
4098
if test -n "$RANLIB"; then
4099
  echo "$as_me:$LINENO: result: $RANLIB" >&5
4100
echo "${ECHO_T}$RANLIB" >&6
4101
else
4102
  echo "$as_me:$LINENO: result: no" >&5
4103
echo "${ECHO_T}no" >&6
4104
fi
4105
 
4106
fi
4107
if test -z "$ac_cv_prog_RANLIB"; then
4108
  ac_ct_RANLIB=$RANLIB
4109
  # Extract the first word of "ranlib", so it can be a program name with args.
4110
set dummy ranlib; ac_word=$2
4111
echo "$as_me:$LINENO: checking for $ac_word" >&5
4112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4114
  echo $ECHO_N "(cached) $ECHO_C" >&6
4115
else
4116
  if test -n "$ac_ct_RANLIB"; then
4117
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4118
else
4119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120
for as_dir in $PATH
4121
do
4122
  IFS=$as_save_IFS
4123
  test -z "$as_dir" && as_dir=.
4124
  for ac_exec_ext in '' $ac_executable_extensions; do
4125
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4127
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128
    break 2
4129
  fi
4130
done
4131
done
4132
 
4133
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4134
fi
4135
fi
4136
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4137
if test -n "$ac_ct_RANLIB"; then
4138
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4139
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4140
else
4141
  echo "$as_me:$LINENO: result: no" >&5
4142
echo "${ECHO_T}no" >&6
4143
fi
4144
 
4145
  RANLIB=$ac_ct_RANLIB
4146
else
4147
  RANLIB="$ac_cv_prog_RANLIB"
4148
fi
4149
 
4150
 
4151
# Check whether --enable-shared or --disable-shared was given.
4152
if test "${enable_shared+set}" = set; then
4153
  enableval="$enable_shared"
4154
  p=${PACKAGE-default}
4155
    case $enableval in
4156
    yes) enable_shared=yes ;;
4157
    no) enable_shared=no ;;
4158
    *)
4159
      enable_shared=no
4160
      # Look at the argument we got.  We use all the common list separators.
4161
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162
      for pkg in $enableval; do
4163
        IFS="$lt_save_ifs"
4164
        if test "X$pkg" = "X$p"; then
4165
          enable_shared=yes
4166
        fi
4167
      done
4168
      IFS="$lt_save_ifs"
4169
      ;;
4170
    esac
4171
else
4172
  enable_shared=no
4173
fi;
4174
 
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181
 
4182
 
4183
 
4184
 
4185
macro_version='2.1a'
4186
macro_revision='1.2435'
4187
 
4188
 
4189
 
4190
 
4191
 
4192
 
4193
 
4194
 
4195
 
4196
 
4197
 
4198
 
4199
ltmain="$ac_aux_dir/ltmain.sh"
4200
 
4201
# Set options
4202
 
4203
enable_dlopen=no
4204
 
4205
 
4206
enable_win32_dll=no
4207
 
4208
 
4209
 
4210
# Check whether --enable-static or --disable-static was given.
4211
if test "${enable_static+set}" = set; then
4212
  enableval="$enable_static"
4213
  p=${PACKAGE-default}
4214
    case $enableval in
4215
    yes) enable_static=yes ;;
4216
    no) enable_static=no ;;
4217
    *)
4218
     enable_static=no
4219
      # Look at the argument we got.  We use all the common list separators.
4220
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4221
      for pkg in $enableval; do
4222
        IFS="$lt_save_ifs"
4223
        if test "X$pkg" = "X$p"; then
4224
          enable_static=yes
4225
        fi
4226
      done
4227
      IFS="$lt_save_ifs"
4228
      ;;
4229
    esac
4230
else
4231
  enable_static=yes
4232
fi;
4233
 
4234
 
4235
 
4236
 
4237
 
4238
 
4239
 
4240
 
4241
 
4242
# Check whether --with-pic or --without-pic was given.
4243
if test "${with_pic+set}" = set; then
4244
  withval="$with_pic"
4245
  pic_mode="$withval"
4246
else
4247
  pic_mode=default
4248
fi;
4249
 
4250
test -z "$pic_mode" && pic_mode=default
4251
 
4252
 
4253
 
4254
 
4255
 
4256
 
4257
 
4258
# Check whether --enable-fast-install or --disable-fast-install was given.
4259
if test "${enable_fast_install+set}" = set; then
4260
  enableval="$enable_fast_install"
4261
  p=${PACKAGE-default}
4262
    case $enableval in
4263
    yes) enable_fast_install=yes ;;
4264
    no) enable_fast_install=no ;;
4265
    *)
4266
      enable_fast_install=no
4267
      # Look at the argument we got.  We use all the common list separators.
4268
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269
      for pkg in $enableval; do
4270
        IFS="$lt_save_ifs"
4271
        if test "X$pkg" = "X$p"; then
4272
          enable_fast_install=yes
4273
        fi
4274
      done
4275
      IFS="$lt_save_ifs"
4276
      ;;
4277
    esac
4278
else
4279
  enable_fast_install=yes
4280
fi;
4281
 
4282
 
4283
 
4284
 
4285
 
4286
 
4287
 
4288
 
4289
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4290
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4291
if test "${lt_cv_path_SED+set}" = set; then
4292
  echo $ECHO_N "(cached) $ECHO_C" >&6
4293
else
4294
  # Loop through the user's path and test for sed and gsed.
4295
# Then use that list of sed's as ones to test for truncation.
4296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297
for as_dir in $PATH
4298
do
4299
  IFS=$as_save_IFS
4300
  test -z "$as_dir" && as_dir=.
4301
  for lt_ac_prog in sed gsed; do
4302
    for ac_exec_ext in '' $ac_executable_extensions; do
4303
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4304
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4305
      fi
4306
    done
4307
  done
4308
done
4309
IFS=$as_save_IFS
4310
lt_ac_max=0
4311
lt_ac_count=0
4312
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4313
# along with /bin/sed that truncates output.
4314
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4315
  test ! -f $lt_ac_sed && continue
4316
  cat /dev/null > conftest.in
4317
  lt_ac_count=0
4318
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4319
  # Check for GNU sed and select it if it is found.
4320
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4321
    lt_cv_path_SED=$lt_ac_sed
4322
    break
4323
  fi
4324
  while true; do
4325
    cat conftest.in conftest.in >conftest.tmp
4326
    mv conftest.tmp conftest.in
4327
    cp conftest.in conftest.nl
4328
    echo >>conftest.nl
4329
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4330
    cmp -s conftest.out conftest.nl || break
4331
    # 10000 chars as input seems more than enough
4332
    test $lt_ac_count -gt 10 && break
4333
    lt_ac_count=`expr $lt_ac_count + 1`
4334
    if test $lt_ac_count -gt $lt_ac_max; then
4335
      lt_ac_max=$lt_ac_count
4336
      lt_cv_path_SED=$lt_ac_sed
4337
    fi
4338
  done
4339
done
4340
 
4341
fi
4342
 
4343
SED=$lt_cv_path_SED
4344
 
4345
echo "$as_me:$LINENO: result: $SED" >&5
4346
echo "${ECHO_T}$SED" >&6
4347
 
4348
test -z "$SED" && SED=sed
4349
Xsed="$SED -e 1s/^X//"
4350
 
4351
 
4352
 
4353
 
4354
 
4355
 
4356
 
4357
 
4358
 
4359
 
4360
 
4361
echo "$as_me:$LINENO: checking for egrep" >&5
4362
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4363
if test "${ac_cv_prog_egrep+set}" = set; then
4364
  echo $ECHO_N "(cached) $ECHO_C" >&6
4365
else
4366
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4367
    then ac_cv_prog_egrep='grep -E'
4368
    else ac_cv_prog_egrep='egrep'
4369
    fi
4370
fi
4371
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4372
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4373
 EGREP=$ac_cv_prog_egrep
4374
 
4375
 
4376
echo "$as_me:$LINENO: checking for fgrep" >&5
4377
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4378
if test "${ac_cv_prog_fgrep+set}" = set; then
4379
  echo $ECHO_N "(cached) $ECHO_C" >&6
4380
else
4381
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4382
    then ac_cv_prog_fgrep='grep -F'
4383
    else ac_cv_prog_fgrep='fgrep'
4384
    fi
4385
fi
4386
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4387
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4388
 FGREP=$ac_cv_prog_fgrep
4389
 
4390
 
4391
test -z "$GREP" && GREP=grep
4392
 
4393
 
4394
 
4395
 
4396
 
4397
 
4398
 
4399
 
4400
 
4401
 
4402
 
4403
 
4404
 
4405
 
4406
 
4407
 
4408
 
4409
 
4410
 
4411
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4412
if test "${with_gnu_ld+set}" = set; then
4413
  withval="$with_gnu_ld"
4414
  test "$withval" = no || with_gnu_ld=yes
4415
else
4416
  with_gnu_ld=no
4417
fi;
4418
ac_prog=ld
4419
if test "$GCC" = yes; then
4420
  # Check if gcc -print-prog-name=ld gives a path.
4421
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4422
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4423
  case $host in
4424
  *-*-mingw*)
4425
    # gcc leaves a trailing carriage return which upsets mingw
4426
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4427
  *)
4428
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4429
  esac
4430
  case $ac_prog in
4431
    # Accept absolute paths.
4432
    [\\/]* | ?:[\\/]*)
4433
      re_direlt='/[^/][^/]*/\.\./'
4434
      # Canonicalize the pathname of ld
4435
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4436
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4437
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4438
      done
4439
      test -z "$LD" && LD="$ac_prog"
4440
      ;;
4441
  "")
4442
    # If it fails, then pretend we aren't using GCC.
4443
    ac_prog=ld
4444
    ;;
4445
  *)
4446
    # If it is relative, then search for the first ld in PATH.
4447
    with_gnu_ld=unknown
4448
    ;;
4449
  esac
4450
elif test "$with_gnu_ld" = yes; then
4451
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4452
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4453
else
4454
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4455
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4456
fi
4457
if test "${lt_cv_path_LD+set}" = set; then
4458
  echo $ECHO_N "(cached) $ECHO_C" >&6
4459
else
4460
  if test -z "$LD"; then
4461
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462
  for ac_dir in $PATH; do
4463
    IFS="$lt_save_ifs"
4464
    test -z "$ac_dir" && ac_dir=.
4465
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4466
      lt_cv_path_LD="$ac_dir/$ac_prog"
4467
      # Check to see if the program is GNU ld.  I'd rather use --version,
4468
      # but apparently some variants of GNU ld only accept -v.
4469
      # Break only if it was the GNU/non-GNU ld that we prefer.
4470
      case `"$lt_cv_path_LD" -v 2>&1 
4471
      *GNU* | *'with BFD'*)
4472
        test "$with_gnu_ld" != no && break
4473
        ;;
4474
      *)
4475
        test "$with_gnu_ld" != yes && break
4476
        ;;
4477
      esac
4478
    fi
4479
  done
4480
  IFS="$lt_save_ifs"
4481
else
4482
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483
fi
4484
fi
4485
 
4486
LD="$lt_cv_path_LD"
4487
if test -n "$LD"; then
4488
  echo "$as_me:$LINENO: result: $LD" >&5
4489
echo "${ECHO_T}$LD" >&6
4490
else
4491
  echo "$as_me:$LINENO: result: no" >&5
4492
echo "${ECHO_T}no" >&6
4493
fi
4494
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4495
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4496
   { (exit 1); exit 1; }; }
4497
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4498
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4499
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4500
  echo $ECHO_N "(cached) $ECHO_C" >&6
4501
else
4502
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503
case `$LD -v 2>&1 
4504
*GNU* | *'with BFD'*)
4505
  lt_cv_prog_gnu_ld=yes
4506
  ;;
4507
*)
4508
  lt_cv_prog_gnu_ld=no
4509
  ;;
4510
esac
4511
fi
4512
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4513
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4514
with_gnu_ld=$lt_cv_prog_gnu_ld
4515
 
4516
 
4517
 
4518
 
4519
 
4520
 
4521
 
4522
 
4523
 
4524
 
4525
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4526
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4527
if test "${lt_cv_path_NM+set}" = set; then
4528
  echo $ECHO_N "(cached) $ECHO_C" >&6
4529
else
4530
  if test -n "$NM"; then
4531
  # Let the user override the test.
4532
  lt_cv_path_NM="$NM"
4533
else
4534
  lt_nm_to_check="${ac_tool_prefix}nm"
4535
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4536
    lt_nm_to_check="$lt_nm_to_check nm"
4537
  fi
4538
  for lt_tmp_nm in $lt_nm_to_check; do
4539
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4541
      IFS="$lt_save_ifs"
4542
      test -z "$ac_dir" && ac_dir=.
4543
      tmp_nm="$ac_dir/$lt_tmp_nm"
4544
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4545
        # Check to see if the nm accepts a BSD-compat flag.
4546
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4547
        #   nm: unknown option "B" ignored
4548
        # Tru64's nm complains that /dev/null is an invalid object file
4549
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4550
        */dev/null* | *'Invalid file or object type'*)
4551
          lt_cv_path_NM="$tmp_nm -B"
4552
          break
4553
          ;;
4554
        *)
4555
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4556
          */dev/null*)
4557
            lt_cv_path_NM="$tmp_nm -p"
4558
            break
4559
            ;;
4560
          *)
4561
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4562
            continue # so that we can try to find one that supports BSD flags
4563
            ;;
4564
          esac
4565
          ;;
4566
        esac
4567
      fi
4568
    done
4569
    IFS="$lt_save_ifs"
4570
  done
4571
  : ${lt_cv_path_NM=no}
4572
fi
4573
fi
4574
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4575
echo "${ECHO_T}$lt_cv_path_NM" >&6
4576
if test "$lt_cv_path_NM" != "no"; then
4577
  NM="$lt_cv_path_NM"
4578
else
4579
  # Didn't find any BSD compatible name lister, look for dumpbin.
4580
  if test -n "$ac_tool_prefix"; then
4581
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4582
  do
4583
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4584
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4585
echo "$as_me:$LINENO: checking for $ac_word" >&5
4586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4588
  echo $ECHO_N "(cached) $ECHO_C" >&6
4589
else
4590
  if test -n "$DUMPBIN"; then
4591
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4592
else
4593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594
for as_dir in $PATH
4595
do
4596
  IFS=$as_save_IFS
4597
  test -z "$as_dir" && as_dir=.
4598
  for ac_exec_ext in '' $ac_executable_extensions; do
4599
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4601
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602
    break 2
4603
  fi
4604
done
4605
done
4606
 
4607
fi
4608
fi
4609
DUMPBIN=$ac_cv_prog_DUMPBIN
4610
if test -n "$DUMPBIN"; then
4611
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4612
echo "${ECHO_T}$DUMPBIN" >&6
4613
else
4614
  echo "$as_me:$LINENO: result: no" >&5
4615
echo "${ECHO_T}no" >&6
4616
fi
4617
 
4618
    test -n "$DUMPBIN" && break
4619
  done
4620
fi
4621
if test -z "$DUMPBIN"; then
4622
  ac_ct_DUMPBIN=$DUMPBIN
4623
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4624
do
4625
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4626
set dummy $ac_prog; ac_word=$2
4627
echo "$as_me:$LINENO: checking for $ac_word" >&5
4628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4630
  echo $ECHO_N "(cached) $ECHO_C" >&6
4631
else
4632
  if test -n "$ac_ct_DUMPBIN"; then
4633
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4634
else
4635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636
for as_dir in $PATH
4637
do
4638
  IFS=$as_save_IFS
4639
  test -z "$as_dir" && as_dir=.
4640
  for ac_exec_ext in '' $ac_executable_extensions; do
4641
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4643
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644
    break 2
4645
  fi
4646
done
4647
done
4648
 
4649
fi
4650
fi
4651
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4652
if test -n "$ac_ct_DUMPBIN"; then
4653
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4654
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4655
else
4656
  echo "$as_me:$LINENO: result: no" >&5
4657
echo "${ECHO_T}no" >&6
4658
fi
4659
 
4660
  test -n "$ac_ct_DUMPBIN" && break
4661
done
4662
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4663
 
4664
  DUMPBIN=$ac_ct_DUMPBIN
4665
fi
4666
 
4667
 
4668
  if test "$DUMPBIN" != ":"; then
4669
    NM="$DUMPBIN"
4670
  fi
4671
fi
4672
test -z "$NM" && NM=nm
4673
 
4674
 
4675
 
4676
 
4677
 
4678
 
4679
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4680
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4681
if test "${lt_cv_nm_interface+set}" = set; then
4682
  echo $ECHO_N "(cached) $ECHO_C" >&6
4683
else
4684
  lt_cv_nm_interface="BSD nm"
4685
  echo "int some_variable = 0;" > conftest.$ac_ext
4686
  (eval echo "\"\$as_me:4686: $ac_compile\"" >&5)
4687
  (eval "$ac_compile" 2>conftest.err)
4688
  cat conftest.err >&5
4689
  (eval echo "\"\$as_me:4689: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4690
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4691
  cat conftest.err >&5
4692
  (eval echo "\"\$as_me:4692: output\"" >&5)
4693
  cat conftest.out >&5
4694
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4695
    lt_cv_nm_interface="MS dumpbin"
4696
  fi
4697
  rm -f conftest*
4698
fi
4699
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4700
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4701
 
4702
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4703
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4704
LN_S=$as_ln_s
4705
if test "$LN_S" = "ln -s"; then
4706
  echo "$as_me:$LINENO: result: yes" >&5
4707
echo "${ECHO_T}yes" >&6
4708
else
4709
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4710
echo "${ECHO_T}no, using $LN_S" >&6
4711
fi
4712
 
4713
# find the maximum length of command line arguments
4714
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4715
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4716
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4717
  echo $ECHO_N "(cached) $ECHO_C" >&6
4718
else
4719
    i=0
4720
  teststring="ABCD"
4721
 
4722
  case $build_os in
4723
  msdosdjgpp*)
4724
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4725
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4726
    # during glob expansion).  Even if it were fixed, the result of this
4727
    # check would be larger than it should be.
4728
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4729
    ;;
4730
 
4731
  gnu*)
4732
    # Under GNU Hurd, this test is not required because there is
4733
    # no limit to the length of command line arguments.
4734
    # Libtool will interpret -1 as no limit whatsoever
4735
    lt_cv_sys_max_cmd_len=-1;
4736
    ;;
4737
 
4738
  cygwin* | mingw*)
4739
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4740
    # about 5 minutes as the teststring grows exponentially.
4741
    # Worse, since 9x/ME are not pre-emptively multitasking,
4742
    # you end up with a "frozen" computer, even though with patience
4743
    # the test eventually succeeds (with a max line length of 256k).
4744
    # Instead, let's just punt: use the minimum linelength reported by
4745
    # all of the supported platforms: 8192 (on NT/2K/XP).
4746
    lt_cv_sys_max_cmd_len=8192;
4747
    ;;
4748
 
4749
  amigaos*)
4750
    # On AmigaOS with pdksh, this test takes hours, literally.
4751
    # So we just punt and use a minimum line length of 8192.
4752
    lt_cv_sys_max_cmd_len=8192;
4753
    ;;
4754
 
4755
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4756
    # This has been around since 386BSD, at least.  Likely further.
4757
    if test -x /sbin/sysctl; then
4758
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4759
    elif test -x /usr/sbin/sysctl; then
4760
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4761
    else
4762
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4763
    fi
4764
    # And add a safety zone
4765
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4766
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4767
    ;;
4768
 
4769
  interix*)
4770
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4771
    lt_cv_sys_max_cmd_len=196608
4772
    ;;
4773
 
4774
  osf*)
4775
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4776
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4777
    # nice to cause kernel panics so lets avoid the loop below.
4778
    # First set a reasonable default.
4779
    lt_cv_sys_max_cmd_len=16384
4780
    #
4781
    if test -x /sbin/sysconfig; then
4782
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4783
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4784
      esac
4785
    fi
4786
    ;;
4787
  sco3.2v5*)
4788
    lt_cv_sys_max_cmd_len=102400
4789
    ;;
4790
  sysv5* | sco5v6* | sysv4.2uw2*)
4791
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4792
    if test -n "$kargmax"; then
4793
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4794
    else
4795
      lt_cv_sys_max_cmd_len=32768
4796
    fi
4797
    ;;
4798
  *)
4799
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4800
    if test -n $lt_cv_sys_max_cmd_len; then
4801
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4802
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4803
    else
4804
      # Make teststring a little bigger before we do anything with it.
4805
      # a 1K string should be a reasonable start.
4806
      for i in 1 2 3 4 5 6 7 8 ; do
4807
        teststring=$teststring$teststring
4808
      done
4809
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4810
      # If test is not a shell built-in, we'll probably end up computing a
4811
      # maximum length that is only half of the actual maximum length, but
4812
      # we can't tell.
4813
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4814
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4815
              test $i != 17 # 1/2 MB should be enough
4816
      do
4817
        i=`expr $i + 1`
4818
        teststring=$teststring$teststring
4819
      done
4820
      # Only check the string length outside the loop.
4821
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4822
      teststring=
4823
      # Add a significant safety factor because C++ compilers can tack on
4824
      # massive amounts of additional arguments before passing them to the
4825
      # linker.  It appears as though 1/2 is a usable value.
4826
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4827
    fi
4828
    ;;
4829
  esac
4830
 
4831
fi
4832
 
4833
if test -n $lt_cv_sys_max_cmd_len ; then
4834
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4835
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4836
else
4837
  echo "$as_me:$LINENO: result: none" >&5
4838
echo "${ECHO_T}none" >&6
4839
fi
4840
max_cmd_len=$lt_cv_sys_max_cmd_len
4841
 
4842
 
4843
 
4844
 
4845
 
4846
 
4847
 
4848
: ${CP="cp -f"}
4849
: ${MV="mv -f"}
4850
: ${RM="rm -f"}
4851
 
4852
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4853
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4854
# Try some XSI features
4855
xsi_shell=no
4856
( _lt_dummy="a/b/c"
4857
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4858
      = c,a/b,, ) >/dev/null 2>&1 \
4859
  && xsi_shell=yes
4860
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4861
echo "${ECHO_T}$xsi_shell" >&6
4862
 
4863
 
4864
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4865
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4866
lt_shell_append=no
4867
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4868
    >/dev/null 2>&1 \
4869
  && lt_shell_append=yes
4870
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4871
echo "${ECHO_T}$lt_shell_append" >&6
4872
 
4873
 
4874
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4875
  lt_unset=unset
4876
else
4877
  lt_unset=false
4878
fi
4879
 
4880
 
4881
 
4882
 
4883
 
4884
# test EBCDIC or ASCII
4885
case `echo X|tr X '\101'` in
4886
 A) # ASCII based system
4887
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4888
  lt_SP2NL='tr \040 \012'
4889
  lt_NL2SP='tr \015\012 \040\040'
4890
  ;;
4891
 *) # EBCDIC based system
4892
  lt_SP2NL='tr \100 \n'
4893
  lt_NL2SP='tr \r\n \100\100'
4894
  ;;
4895
esac
4896
 
4897
 
4898
 
4899
 
4900
 
4901
 
4902
 
4903
 
4904
 
4905
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4906
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4907
if test "${lt_cv_ld_reload_flag+set}" = set; then
4908
  echo $ECHO_N "(cached) $ECHO_C" >&6
4909
else
4910
  lt_cv_ld_reload_flag='-r'
4911
fi
4912
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4913
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4914
reload_flag=$lt_cv_ld_reload_flag
4915
case $reload_flag in
4916
"" | " "*) ;;
4917
*) reload_flag=" $reload_flag" ;;
4918
esac
4919
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920
case $host_os in
4921
  darwin*)
4922
    if test "$GCC" = yes; then
4923
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4924
    else
4925
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4926
    fi
4927
    ;;
4928
esac
4929
 
4930
 
4931
 
4932
 
4933
 
4934
 
4935
 
4936
 
4937
 
4938
 
4939
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4940
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4941
if test "${lt_cv_deplibs_check_method+set}" = set; then
4942
  echo $ECHO_N "(cached) $ECHO_C" >&6
4943
else
4944
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4945
lt_cv_file_magic_test_file=
4946
lt_cv_deplibs_check_method='unknown'
4947
# Need to set the preceding variable on all platforms that support
4948
# interlibrary dependencies.
4949
# 'none' -- dependencies not supported.
4950
# `unknown' -- same as none, but documents that we really don't know.
4951
# 'pass_all' -- all dependencies passed with no checks.
4952
# 'test_compile' -- check by making test program.
4953
# 'file_magic [[regex]]' -- check by looking for files in library path
4954
# which responds to the $file_magic_cmd with a given extended regex.
4955
# If you have `file' or equivalent on your system and you're not sure
4956
# whether `pass_all' will *always* work, you probably want this one.
4957
 
4958
case $host_os in
4959
aix[4-9]*)
4960
  lt_cv_deplibs_check_method=pass_all
4961
  ;;
4962
 
4963
beos*)
4964
  lt_cv_deplibs_check_method=pass_all
4965
  ;;
4966
 
4967
bsdi[45]*)
4968
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4969
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4970
  lt_cv_file_magic_test_file=/shlib/libc.so
4971
  ;;
4972
 
4973
cygwin*)
4974
  # func_win32_libid is a shell function defined in ltmain.sh
4975
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4976
  lt_cv_file_magic_cmd='func_win32_libid'
4977
  ;;
4978
 
4979
mingw* | pw32*)
4980
  # Base MSYS/MinGW do not provide the 'file' command needed by
4981
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4982
  # unless we find 'file', for example because we are cross-compiling.
4983
  if ( file / ) >/dev/null 2>&1; then
4984
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4985
    lt_cv_file_magic_cmd='func_win32_libid'
4986
  else
4987
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4988
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4989
  fi
4990
  ;;
4991
 
4992
darwin* | rhapsody*)
4993
  lt_cv_deplibs_check_method=pass_all
4994
  ;;
4995
 
4996
freebsd* | dragonfly*)
4997
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998
    case $host_cpu in
4999
    i*86 )
5000
      # Not sure whether the presence of OpenBSD here was a mistake.
5001
      # Let's accept both of them until this is cleared up.
5002
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5003
      lt_cv_file_magic_cmd=/usr/bin/file
5004
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5005
      ;;
5006
    esac
5007
  else
5008
    lt_cv_deplibs_check_method=pass_all
5009
  fi
5010
  ;;
5011
 
5012
gnu*)
5013
  lt_cv_deplibs_check_method=pass_all
5014
  ;;
5015
 
5016
hpux10.20* | hpux11*)
5017
  lt_cv_file_magic_cmd=/usr/bin/file
5018
  case $host_cpu in
5019
  ia64*)
5020
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5021
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5022
    ;;
5023
  hppa*64*)
5024
    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]'
5025
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5026
    ;;
5027
  *)
5028
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5029
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5030
    ;;
5031
  esac
5032
  ;;
5033
 
5034
interix[3-9]*)
5035
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5036
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5037
  ;;
5038
 
5039
irix5* | irix6* | nonstopux*)
5040
  case $LD in
5041
  *-32|*"-32 ") libmagic=32-bit;;
5042
  *-n32|*"-n32 ") libmagic=N32;;
5043
  *-64|*"-64 ") libmagic=64-bit;;
5044
  *) libmagic=never-match;;
5045
  esac
5046
  lt_cv_deplibs_check_method=pass_all
5047
  ;;
5048
 
5049
# This must be Linux ELF.
5050
linux* | k*bsd*-gnu)
5051
  lt_cv_deplibs_check_method=pass_all
5052
  ;;
5053
 
5054
netbsd*)
5055
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5056
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057
  else
5058
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5059
  fi
5060
  ;;
5061
 
5062
newos6*)
5063
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5064
  lt_cv_file_magic_cmd=/usr/bin/file
5065
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5066
  ;;
5067
 
5068
*nto* | *qnx*)
5069
  lt_cv_deplibs_check_method=pass_all
5070
  ;;
5071
 
5072
openbsd*)
5073
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5074
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5075
  else
5076
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5077
  fi
5078
  ;;
5079
 
5080
osf3* | osf4* | osf5*)
5081
  lt_cv_deplibs_check_method=pass_all
5082
  ;;
5083
 
5084
rdos*)
5085
  lt_cv_deplibs_check_method=pass_all
5086
  ;;
5087
 
5088
solaris*)
5089
  lt_cv_deplibs_check_method=pass_all
5090
  ;;
5091
 
5092
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5093
  lt_cv_deplibs_check_method=pass_all
5094
  ;;
5095
 
5096
sysv4 | sysv4.3*)
5097
  case $host_vendor in
5098
  motorola)
5099
    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]'
5100
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5101
    ;;
5102
  ncr)
5103
    lt_cv_deplibs_check_method=pass_all
5104
    ;;
5105
  sequent)
5106
    lt_cv_file_magic_cmd='/bin/file'
5107
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5108
    ;;
5109
  sni)
5110
    lt_cv_file_magic_cmd='/bin/file'
5111
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5112
    lt_cv_file_magic_test_file=/lib/libc.so
5113
    ;;
5114
  siemens)
5115
    lt_cv_deplibs_check_method=pass_all
5116
    ;;
5117
  pc)
5118
    lt_cv_deplibs_check_method=pass_all
5119
    ;;
5120
  esac
5121
  ;;
5122
 
5123
tpf*)
5124
  lt_cv_deplibs_check_method=pass_all
5125
  ;;
5126
esac
5127
 
5128
fi
5129
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5130
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5131
file_magic_cmd=$lt_cv_file_magic_cmd
5132
deplibs_check_method=$lt_cv_deplibs_check_method
5133
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5134
 
5135
 
5136
 
5137
 
5138
 
5139
 
5140
 
5141
 
5142
 
5143
 
5144
 
5145
 
5146
if test -n "$ac_tool_prefix"; then
5147
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5148
set dummy ${ac_tool_prefix}ar; ac_word=$2
5149
echo "$as_me:$LINENO: checking for $ac_word" >&5
5150
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5151
if test "${ac_cv_prog_AR+set}" = set; then
5152
  echo $ECHO_N "(cached) $ECHO_C" >&6
5153
else
5154
  if test -n "$AR"; then
5155
  ac_cv_prog_AR="$AR" # Let the user override the test.
5156
else
5157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158
for as_dir in $PATH
5159
do
5160
  IFS=$as_save_IFS
5161
  test -z "$as_dir" && as_dir=.
5162
  for ac_exec_ext in '' $ac_executable_extensions; do
5163
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5165
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166
    break 2
5167
  fi
5168
done
5169
done
5170
 
5171
fi
5172
fi
5173
AR=$ac_cv_prog_AR
5174
if test -n "$AR"; then
5175
  echo "$as_me:$LINENO: result: $AR" >&5
5176
echo "${ECHO_T}$AR" >&6
5177
else
5178
  echo "$as_me:$LINENO: result: no" >&5
5179
echo "${ECHO_T}no" >&6
5180
fi
5181
 
5182
fi
5183
if test -z "$ac_cv_prog_AR"; then
5184
  ac_ct_AR=$AR
5185
  # Extract the first word of "ar", so it can be a program name with args.
5186
set dummy ar; ac_word=$2
5187
echo "$as_me:$LINENO: checking for $ac_word" >&5
5188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5190
  echo $ECHO_N "(cached) $ECHO_C" >&6
5191
else
5192
  if test -n "$ac_ct_AR"; then
5193
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5194
else
5195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196
for as_dir in $PATH
5197
do
5198
  IFS=$as_save_IFS
5199
  test -z "$as_dir" && as_dir=.
5200
  for ac_exec_ext in '' $ac_executable_extensions; do
5201
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202
    ac_cv_prog_ac_ct_AR="ar"
5203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204
    break 2
5205
  fi
5206
done
5207
done
5208
 
5209
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5210
fi
5211
fi
5212
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213
if test -n "$ac_ct_AR"; then
5214
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5215
echo "${ECHO_T}$ac_ct_AR" >&6
5216
else
5217
  echo "$as_me:$LINENO: result: no" >&5
5218
echo "${ECHO_T}no" >&6
5219
fi
5220
 
5221
  AR=$ac_ct_AR
5222
else
5223
  AR="$ac_cv_prog_AR"
5224
fi
5225
 
5226
test -z "$AR" && AR=ar
5227
test -z "$AR_FLAGS" && AR_FLAGS=cru
5228
 
5229
 
5230
 
5231
 
5232
 
5233
 
5234
 
5235
 
5236
 
5237
 
5238
 
5239
if test -n "$ac_tool_prefix"; then
5240
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5241
set dummy ${ac_tool_prefix}strip; ac_word=$2
5242
echo "$as_me:$LINENO: checking for $ac_word" >&5
5243
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244
if test "${ac_cv_prog_STRIP+set}" = set; then
5245
  echo $ECHO_N "(cached) $ECHO_C" >&6
5246
else
5247
  if test -n "$STRIP"; then
5248
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5249
else
5250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251
for as_dir in $PATH
5252
do
5253
  IFS=$as_save_IFS
5254
  test -z "$as_dir" && as_dir=.
5255
  for ac_exec_ext in '' $ac_executable_extensions; do
5256
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5258
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259
    break 2
5260
  fi
5261
done
5262
done
5263
 
5264
fi
5265
fi
5266
STRIP=$ac_cv_prog_STRIP
5267
if test -n "$STRIP"; then
5268
  echo "$as_me:$LINENO: result: $STRIP" >&5
5269
echo "${ECHO_T}$STRIP" >&6
5270
else
5271
  echo "$as_me:$LINENO: result: no" >&5
5272
echo "${ECHO_T}no" >&6
5273
fi
5274
 
5275
fi
5276
if test -z "$ac_cv_prog_STRIP"; then
5277
  ac_ct_STRIP=$STRIP
5278
  # Extract the first word of "strip", so it can be a program name with args.
5279
set dummy strip; ac_word=$2
5280
echo "$as_me:$LINENO: checking for $ac_word" >&5
5281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5283
  echo $ECHO_N "(cached) $ECHO_C" >&6
5284
else
5285
  if test -n "$ac_ct_STRIP"; then
5286
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5287
else
5288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289
for as_dir in $PATH
5290
do
5291
  IFS=$as_save_IFS
5292
  test -z "$as_dir" && as_dir=.
5293
  for ac_exec_ext in '' $ac_executable_extensions; do
5294
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295
    ac_cv_prog_ac_ct_STRIP="strip"
5296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297
    break 2
5298
  fi
5299
done
5300
done
5301
 
5302
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5303
fi
5304
fi
5305
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5306
if test -n "$ac_ct_STRIP"; then
5307
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5308
echo "${ECHO_T}$ac_ct_STRIP" >&6
5309
else
5310
  echo "$as_me:$LINENO: result: no" >&5
5311
echo "${ECHO_T}no" >&6
5312
fi
5313
 
5314
  STRIP=$ac_ct_STRIP
5315
else
5316
  STRIP="$ac_cv_prog_STRIP"
5317
fi
5318
 
5319
test -z "$STRIP" && STRIP=:
5320
 
5321
 
5322
 
5323
 
5324
 
5325
 
5326
if test -n "$ac_tool_prefix"; then
5327
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329
echo "$as_me:$LINENO: checking for $ac_word" >&5
5330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331
if test "${ac_cv_prog_RANLIB+set}" = set; then
5332
  echo $ECHO_N "(cached) $ECHO_C" >&6
5333
else
5334
  if test -n "$RANLIB"; then
5335
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5336
else
5337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338
for as_dir in $PATH
5339
do
5340
  IFS=$as_save_IFS
5341
  test -z "$as_dir" && as_dir=.
5342
  for ac_exec_ext in '' $ac_executable_extensions; do
5343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5345
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346
    break 2
5347
  fi
5348
done
5349
done
5350
 
5351
fi
5352
fi
5353
RANLIB=$ac_cv_prog_RANLIB
5354
if test -n "$RANLIB"; then
5355
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5356
echo "${ECHO_T}$RANLIB" >&6
5357
else
5358
  echo "$as_me:$LINENO: result: no" >&5
5359
echo "${ECHO_T}no" >&6
5360
fi
5361
 
5362
fi
5363
if test -z "$ac_cv_prog_RANLIB"; then
5364
  ac_ct_RANLIB=$RANLIB
5365
  # Extract the first word of "ranlib", so it can be a program name with args.
5366
set dummy ranlib; ac_word=$2
5367
echo "$as_me:$LINENO: checking for $ac_word" >&5
5368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5370
  echo $ECHO_N "(cached) $ECHO_C" >&6
5371
else
5372
  if test -n "$ac_ct_RANLIB"; then
5373
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5374
else
5375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376
for as_dir in $PATH
5377
do
5378
  IFS=$as_save_IFS
5379
  test -z "$as_dir" && as_dir=.
5380
  for ac_exec_ext in '' $ac_executable_extensions; do
5381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384
    break 2
5385
  fi
5386
done
5387
done
5388
 
5389
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5390
fi
5391
fi
5392
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393
if test -n "$ac_ct_RANLIB"; then
5394
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5395
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5396
else
5397
  echo "$as_me:$LINENO: result: no" >&5
5398
echo "${ECHO_T}no" >&6
5399
fi
5400
 
5401
  RANLIB=$ac_ct_RANLIB
5402
else
5403
  RANLIB="$ac_cv_prog_RANLIB"
5404
fi
5405
 
5406
test -z "$RANLIB" && RANLIB=:
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
# Determine commands to create old-style static archives.
5414
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415
old_postinstall_cmds='chmod 644 $oldlib'
5416
old_postuninstall_cmds=
5417
 
5418
if test -n "$RANLIB"; then
5419
  case $host_os in
5420
  openbsd*)
5421
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5422
    ;;
5423
  *)
5424
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5425
    ;;
5426
  esac
5427
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5428
fi
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
# If no C compiler was specified, use CC.
5464
LTCC=${LTCC-"$CC"}
5465
 
5466
# If no C compiler flags were specified, use CFLAGS.
5467
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5468
 
5469
# Allow CC to be a program name with arguments.
5470
compiler=$CC
5471
 
5472
 
5473
# Check for command to grab the raw symbol name followed by C symbol from nm.
5474
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5475
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5476
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5477
  echo $ECHO_N "(cached) $ECHO_C" >&6
5478
else
5479
 
5480
# These are sane defaults that work on at least a few old systems.
5481
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5482
 
5483
# Character class describing NM global symbol codes.
5484
symcode='[BCDEGRST]'
5485
 
5486
# Regexp to match symbols that can be accessed directly from C.
5487
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5488
 
5489
# Define system-specific variables.
5490
case $host_os in
5491
aix*)
5492
  symcode='[BCDT]'
5493
  ;;
5494
cygwin* | mingw* | pw32*)
5495
  symcode='[ABCDGISTW]'
5496
  ;;
5497
hpux*)
5498
  if test "$host_cpu" = ia64; then
5499
    symcode='[ABCDEGRST]'
5500
  fi
5501
  ;;
5502
irix* | nonstopux*)
5503
  symcode='[BCDEGRST]'
5504
  ;;
5505
osf*)
5506
  symcode='[BCDEGQRST]'
5507
  ;;
5508
solaris*)
5509
  symcode='[BDRT]'
5510
  ;;
5511
sco3.2v5*)
5512
  symcode='[DT]'
5513
  ;;
5514
sysv4.2uw2*)
5515
  symcode='[DT]'
5516
  ;;
5517
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5518
  symcode='[ABDT]'
5519
  ;;
5520
sysv4)
5521
  symcode='[DFNSTU]'
5522
  ;;
5523
esac
5524
 
5525
# If we're using GNU nm, then use its standard symbol codes.
5526
case `$NM -V 2>&1` in
5527
*GNU* | *'with BFD'*)
5528
  symcode='[ABCDGIRSTW]' ;;
5529
esac
5530
 
5531
# Transform an extracted symbol line into a proper C declaration.
5532
# Some systems (esp. on ia64) link data and code symbols differently,
5533
# so use this general approach.
5534
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5535
 
5536
# Transform an extracted symbol line into symbol name and symbol address
5537
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5538
 
5539
# Handle CRLF in mingw tool chain
5540
opt_cr=
5541
case $build_os in
5542
mingw*)
5543
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5544
  ;;
5545
esac
5546
 
5547
# Try without a prefix underscore, then with it.
5548
for ac_symprfx in "" "_"; do
5549
 
5550
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5551
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5552
 
5553
  # Write the raw and C identifiers.
5554
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5555
    # Fake it for dumpbin and say T for any non-static function
5556
    # and D for any global variable.
5557
    # Also find C++ and __fastcall symbols from MSVC++,
5558
    # which start with @ or ?.
5559
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5560
"     {last_section=section; section=\$ 3};"\
5561
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5562
"     \$ 0!~/External *\|/{next};"\
5563
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5564
"     {if(hide[section]) next};"\
5565
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5566
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5567
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5568
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5569
"     ' prfx=^$ac_symprfx"
5570
  else
5571
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5572
  fi
5573
 
5574
  # Check to see that the pipe works correctly.
5575
  pipe_works=no
5576
 
5577
  rm -f conftest*
5578
  cat > conftest.$ac_ext <<_LT_EOF
5579
#ifdef __cplusplus
5580
extern "C" {
5581
#endif
5582
char nm_test_var;
5583
void nm_test_func(void);
5584
void nm_test_func(void){}
5585
#ifdef __cplusplus
5586
}
5587
#endif
5588
int main(){nm_test_var='a';nm_test_func();return(0);}
5589
_LT_EOF
5590
 
5591
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592
  (eval $ac_compile) 2>&5
5593
  ac_status=$?
5594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595
  (exit $ac_status); }; then
5596
    # Now try to grab the symbols.
5597
    nlist=conftest.nm
5598
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5599
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5600
  ac_status=$?
5601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602
  (exit $ac_status); } && test -s "$nlist"; then
5603
      # Try sorting and uniquifying the output.
5604
      if sort "$nlist" | uniq > "$nlist"T; then
5605
        mv -f "$nlist"T "$nlist"
5606
      else
5607
        rm -f "$nlist"T
5608
      fi
5609
 
5610
      # Make sure that we snagged all the symbols we need.
5611
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5612
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5613
          cat <<_LT_EOF > conftest.$ac_ext
5614
#ifdef __cplusplus
5615
extern "C" {
5616
#endif
5617
 
5618
_LT_EOF
5619
          # Now generate the symbol file.
5620
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5621
 
5622
          cat <<_LT_EOF >> conftest.$ac_ext
5623
 
5624
/* The mapping between symbol names and symbols.  */
5625
const struct {
5626
  const char *name;
5627
  void       *address;
5628
}
5629
lt__PROGRAM__LTX_preloaded_symbols[] =
5630
{
5631
  { "@PROGRAM@", (void *) 0 },
5632
_LT_EOF
5633
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5634
          cat <<\_LT_EOF >> conftest.$ac_ext
5635
  {0, (void *) 0}
5636
};
5637
 
5638
/* This works around a problem in FreeBSD linker */
5639
#ifdef FREEBSD_WORKAROUND
5640
static const void *lt_preloaded_setup() {
5641
  return lt__PROGRAM__LTX_preloaded_symbols;
5642
}
5643
#endif
5644
 
5645
#ifdef __cplusplus
5646
}
5647
#endif
5648
_LT_EOF
5649
          # Now try linking the two files.
5650
          mv conftest.$ac_objext conftstm.$ac_objext
5651
          lt_save_LIBS="$LIBS"
5652
          lt_save_CFLAGS="$CFLAGS"
5653
          LIBS="conftstm.$ac_objext"
5654
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5655
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656
  (eval $ac_link) 2>&5
5657
  ac_status=$?
5658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5660
            pipe_works=yes
5661
          fi
5662
          LIBS="$lt_save_LIBS"
5663
          CFLAGS="$lt_save_CFLAGS"
5664
        else
5665
          echo "cannot find nm_test_func in $nlist" >&5
5666
        fi
5667
      else
5668
        echo "cannot find nm_test_var in $nlist" >&5
5669
      fi
5670
    else
5671
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5672
    fi
5673
  else
5674
    echo "$progname: failed program was:" >&5
5675
    cat conftest.$ac_ext >&5
5676
  fi
5677
  rm -f conftest* conftst*
5678
 
5679
  # Do not use the global_symbol_pipe unless it works.
5680
  if test "$pipe_works" = yes; then
5681
    break
5682
  else
5683
    lt_cv_sys_global_symbol_pipe=
5684
  fi
5685
done
5686
 
5687
fi
5688
 
5689
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5690
  lt_cv_sys_global_symbol_to_cdecl=
5691
fi
5692
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5693
  echo "$as_me:$LINENO: result: failed" >&5
5694
echo "${ECHO_T}failed" >&6
5695
else
5696
  echo "$as_me:$LINENO: result: ok" >&5
5697
echo "${ECHO_T}ok" >&6
5698
fi
5699
 
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5717
if test "${enable_libtool_lock+set}" = set; then
5718
  enableval="$enable_libtool_lock"
5719
 
5720
fi;
5721
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5722
 
5723
# Some flags need to be propagated to the compiler or linker for good
5724
# libtool support.
5725
case $host in
5726
ia64-*-hpux*)
5727
  # Find out which ABI we are using.
5728
  echo 'int i;' > conftest.$ac_ext
5729
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730
  (eval $ac_compile) 2>&5
5731
  ac_status=$?
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733
  (exit $ac_status); }; then
5734
    case `/usr/bin/file conftest.$ac_objext` in
5735
      *ELF-32*)
5736
        HPUX_IA64_MODE="32"
5737
        ;;
5738
      *ELF-64*)
5739
        HPUX_IA64_MODE="64"
5740
        ;;
5741
    esac
5742
  fi
5743
  rm -rf conftest*
5744
  ;;
5745
*-*-irix6*)
5746
  # Find out which ABI we are using.
5747
  echo '#line 5747 "configure"' > conftest.$ac_ext
5748
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749
  (eval $ac_compile) 2>&5
5750
  ac_status=$?
5751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752
  (exit $ac_status); }; then
5753
    if test "$lt_cv_prog_gnu_ld" = yes; then
5754
      case `/usr/bin/file conftest.$ac_objext` in
5755
        *32-bit*)
5756
          LD="${LD-ld} -melf32bsmip"
5757
          ;;
5758
        *N32*)
5759
          LD="${LD-ld} -melf32bmipn32"
5760
          ;;
5761
        *64-bit*)
5762
          LD="${LD-ld} -melf64bmip"
5763
        ;;
5764
      esac
5765
    else
5766
      case `/usr/bin/file conftest.$ac_objext` in
5767
        *32-bit*)
5768
          LD="${LD-ld} -32"
5769
          ;;
5770
        *N32*)
5771
          LD="${LD-ld} -n32"
5772
          ;;
5773
        *64-bit*)
5774
          LD="${LD-ld} -64"
5775
          ;;
5776
      esac
5777
    fi
5778
  fi
5779
  rm -rf conftest*
5780
  ;;
5781
 
5782
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5783
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5784
  # Find out which ABI we are using.
5785
  echo 'int i;' > conftest.$ac_ext
5786
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787
  (eval $ac_compile) 2>&5
5788
  ac_status=$?
5789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790
  (exit $ac_status); }; then
5791
    case `/usr/bin/file conftest.o` in
5792
      *32-bit*)
5793
        case $host in
5794
          x86_64-*kfreebsd*-gnu)
5795
            LD="${LD-ld} -m elf_i386_fbsd"
5796
            ;;
5797
          x86_64-*linux*)
5798
            LD="${LD-ld} -m elf_i386"
5799
            ;;
5800
          ppc64-*linux*|powerpc64-*linux*)
5801
            LD="${LD-ld} -m elf32ppclinux"
5802
            ;;
5803
          s390x-*linux*)
5804
            LD="${LD-ld} -m elf_s390"
5805
            ;;
5806
          sparc64-*linux*)
5807
            LD="${LD-ld} -m elf32_sparc"
5808
            ;;
5809
        esac
5810
        ;;
5811
      *64-bit*)
5812
        case $host in
5813
          x86_64-*kfreebsd*-gnu)
5814
            LD="${LD-ld} -m elf_x86_64_fbsd"
5815
            ;;
5816
          x86_64-*linux*)
5817
            LD="${LD-ld} -m elf_x86_64"
5818
            ;;
5819
          ppc*-*linux*|powerpc*-*linux*)
5820
            LD="${LD-ld} -m elf64ppc"
5821
            ;;
5822
          s390*-*linux*|s390*-*tpf*)
5823
            LD="${LD-ld} -m elf64_s390"
5824
            ;;
5825
          sparc*-*linux*)
5826
            LD="${LD-ld} -m elf64_sparc"
5827
            ;;
5828
        esac
5829
        ;;
5830
    esac
5831
  fi
5832
  rm -rf conftest*
5833
  ;;
5834
 
5835
*-*-sco3.2v5*)
5836
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5837
  SAVE_CFLAGS="$CFLAGS"
5838
  CFLAGS="$CFLAGS -belf"
5839
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5840
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5841
if test "${lt_cv_cc_needs_belf+set}" = set; then
5842
  echo $ECHO_N "(cached) $ECHO_C" >&6
5843
else
5844
  ac_ext=c
5845
ac_cpp='$CPP $CPPFLAGS'
5846
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849
 
5850
     cat >conftest.$ac_ext <<_ACEOF
5851
/* confdefs.h.  */
5852
_ACEOF
5853
cat confdefs.h >>conftest.$ac_ext
5854
cat >>conftest.$ac_ext <<_ACEOF
5855
/* end confdefs.h.  */
5856
 
5857
int
5858
main ()
5859
{
5860
 
5861
  ;
5862
  return 0;
5863
}
5864
_ACEOF
5865
rm -f conftest.$ac_objext conftest$ac_exeext
5866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867
  (eval $ac_link) 2>conftest.er1
5868
  ac_status=$?
5869
  grep -v '^ *+' conftest.er1 >conftest.err
5870
  rm -f conftest.er1
5871
  cat conftest.err >&5
5872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873
  (exit $ac_status); } &&
5874
         { ac_try='test -z "$ac_c_werror_flag"
5875
                         || test ! -s conftest.err'
5876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877
  (eval $ac_try) 2>&5
5878
  ac_status=$?
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
  (exit $ac_status); }; } &&
5881
         { ac_try='test -s conftest$ac_exeext'
5882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883
  (eval $ac_try) 2>&5
5884
  ac_status=$?
5885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
  (exit $ac_status); }; }; then
5887
  lt_cv_cc_needs_belf=yes
5888
else
5889
  echo "$as_me: failed program was:" >&5
5890
sed 's/^/| /' conftest.$ac_ext >&5
5891
 
5892
lt_cv_cc_needs_belf=no
5893
fi
5894
rm -f conftest.err conftest.$ac_objext \
5895
      conftest$ac_exeext conftest.$ac_ext
5896
     ac_ext=c
5897
ac_cpp='$CPP $CPPFLAGS'
5898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901
 
5902
fi
5903
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5904
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5905
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5906
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5907
    CFLAGS="$SAVE_CFLAGS"
5908
  fi
5909
  ;;
5910
sparc*-*solaris*)
5911
  # Find out which ABI we are using.
5912
  echo 'int i;' > conftest.$ac_ext
5913
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914
  (eval $ac_compile) 2>&5
5915
  ac_status=$?
5916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917
  (exit $ac_status); }; then
5918
    case `/usr/bin/file conftest.o` in
5919
    *64-bit*)
5920
      case $lt_cv_prog_gnu_ld in
5921
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5922
      *)    LD="${LD-ld} -64" ;;
5923
      esac
5924
      ;;
5925
    esac
5926
  fi
5927
  rm -rf conftest*
5928
  ;;
5929
esac
5930
 
5931
need_locks="$enable_libtool_lock"
5932
 
5933
ac_ext=c
5934
ac_cpp='$CPP $CPPFLAGS'
5935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5939
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5940
# On Suns, sometimes $CPP names a directory.
5941
if test -n "$CPP" && test -d "$CPP"; then
5942
  CPP=
5943
fi
5944
if test -z "$CPP"; then
5945
  if test "${ac_cv_prog_CPP+set}" = set; then
5946
  echo $ECHO_N "(cached) $ECHO_C" >&6
5947
else
5948
      # Double quotes because CPP needs to be expanded
5949
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5950
    do
5951
      ac_preproc_ok=false
5952
for ac_c_preproc_warn_flag in '' yes
5953
do
5954
  # Use a header file that comes with gcc, so configuring glibc
5955
  # with a fresh cross-compiler works.
5956
  # Prefer  to  if __STDC__ is defined, since
5957
  #  exists even on freestanding compilers.
5958
  # On the NeXT, cc -E runs the code through the compiler's parser,
5959
  # not just through cpp. "Syntax error" is here to catch this case.
5960
  cat >conftest.$ac_ext <<_ACEOF
5961
/* confdefs.h.  */
5962
_ACEOF
5963
cat confdefs.h >>conftest.$ac_ext
5964
cat >>conftest.$ac_ext <<_ACEOF
5965
/* end confdefs.h.  */
5966
#ifdef __STDC__
5967
# include 
5968
#else
5969
# include 
5970
#endif
5971
                     Syntax error
5972
_ACEOF
5973
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975
  ac_status=$?
5976
  grep -v '^ *+' conftest.er1 >conftest.err
5977
  rm -f conftest.er1
5978
  cat conftest.err >&5
5979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
  (exit $ac_status); } >/dev/null; then
5981
  if test -s conftest.err; then
5982
    ac_cpp_err=$ac_c_preproc_warn_flag
5983
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984
  else
5985
    ac_cpp_err=
5986
  fi
5987
else
5988
  ac_cpp_err=yes
5989
fi
5990
if test -z "$ac_cpp_err"; then
5991
  :
5992
else
5993
  echo "$as_me: failed program was:" >&5
5994
sed 's/^/| /' conftest.$ac_ext >&5
5995
 
5996
  # Broken: fails on valid input.
5997
continue
5998
fi
5999
rm -f conftest.err conftest.$ac_ext
6000
 
6001
  # OK, works on sane cases.  Now check whether non-existent headers
6002
  # can be detected and how.
6003
  cat >conftest.$ac_ext <<_ACEOF
6004
/* confdefs.h.  */
6005
_ACEOF
6006
cat confdefs.h >>conftest.$ac_ext
6007
cat >>conftest.$ac_ext <<_ACEOF
6008
/* end confdefs.h.  */
6009
#include 
6010
_ACEOF
6011
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013
  ac_status=$?
6014
  grep -v '^ *+' conftest.er1 >conftest.err
6015
  rm -f conftest.er1
6016
  cat conftest.err >&5
6017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018
  (exit $ac_status); } >/dev/null; then
6019
  if test -s conftest.err; then
6020
    ac_cpp_err=$ac_c_preproc_warn_flag
6021
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022
  else
6023
    ac_cpp_err=
6024
  fi
6025
else
6026
  ac_cpp_err=yes
6027
fi
6028
if test -z "$ac_cpp_err"; then
6029
  # Broken: success on invalid input.
6030
continue
6031
else
6032
  echo "$as_me: failed program was:" >&5
6033
sed 's/^/| /' conftest.$ac_ext >&5
6034
 
6035
  # Passes both tests.
6036
ac_preproc_ok=:
6037
break
6038
fi
6039
rm -f conftest.err conftest.$ac_ext
6040
 
6041
done
6042
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6043
rm -f conftest.err conftest.$ac_ext
6044
if $ac_preproc_ok; then
6045
  break
6046
fi
6047
 
6048
    done
6049
    ac_cv_prog_CPP=$CPP
6050
 
6051
fi
6052
  CPP=$ac_cv_prog_CPP
6053
else
6054
  ac_cv_prog_CPP=$CPP
6055
fi
6056
echo "$as_me:$LINENO: result: $CPP" >&5
6057
echo "${ECHO_T}$CPP" >&6
6058
ac_preproc_ok=false
6059
for ac_c_preproc_warn_flag in '' yes
6060
do
6061
  # Use a header file that comes with gcc, so configuring glibc
6062
  # with a fresh cross-compiler works.
6063
  # Prefer  to  if __STDC__ is defined, since
6064
  #  exists even on freestanding compilers.
6065
  # On the NeXT, cc -E runs the code through the compiler's parser,
6066
  # not just through cpp. "Syntax error" is here to catch this case.
6067
  cat >conftest.$ac_ext <<_ACEOF
6068
/* confdefs.h.  */
6069
_ACEOF
6070
cat confdefs.h >>conftest.$ac_ext
6071
cat >>conftest.$ac_ext <<_ACEOF
6072
/* end confdefs.h.  */
6073
#ifdef __STDC__
6074
# include 
6075
#else
6076
# include 
6077
#endif
6078
                     Syntax error
6079
_ACEOF
6080
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6081
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082
  ac_status=$?
6083
  grep -v '^ *+' conftest.er1 >conftest.err
6084
  rm -f conftest.er1
6085
  cat conftest.err >&5
6086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087
  (exit $ac_status); } >/dev/null; then
6088
  if test -s conftest.err; then
6089
    ac_cpp_err=$ac_c_preproc_warn_flag
6090
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6091
  else
6092
    ac_cpp_err=
6093
  fi
6094
else
6095
  ac_cpp_err=yes
6096
fi
6097
if test -z "$ac_cpp_err"; then
6098
  :
6099
else
6100
  echo "$as_me: failed program was:" >&5
6101
sed 's/^/| /' conftest.$ac_ext >&5
6102
 
6103
  # Broken: fails on valid input.
6104
continue
6105
fi
6106
rm -f conftest.err conftest.$ac_ext
6107
 
6108
  # OK, works on sane cases.  Now check whether non-existent headers
6109
  # can be detected and how.
6110
  cat >conftest.$ac_ext <<_ACEOF
6111
/* confdefs.h.  */
6112
_ACEOF
6113
cat confdefs.h >>conftest.$ac_ext
6114
cat >>conftest.$ac_ext <<_ACEOF
6115
/* end confdefs.h.  */
6116
#include 
6117
_ACEOF
6118
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120
  ac_status=$?
6121
  grep -v '^ *+' conftest.er1 >conftest.err
6122
  rm -f conftest.er1
6123
  cat conftest.err >&5
6124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125
  (exit $ac_status); } >/dev/null; then
6126
  if test -s conftest.err; then
6127
    ac_cpp_err=$ac_c_preproc_warn_flag
6128
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129
  else
6130
    ac_cpp_err=
6131
  fi
6132
else
6133
  ac_cpp_err=yes
6134
fi
6135
if test -z "$ac_cpp_err"; then
6136
  # Broken: success on invalid input.
6137
continue
6138
else
6139
  echo "$as_me: failed program was:" >&5
6140
sed 's/^/| /' conftest.$ac_ext >&5
6141
 
6142
  # Passes both tests.
6143
ac_preproc_ok=:
6144
break
6145
fi
6146
rm -f conftest.err conftest.$ac_ext
6147
 
6148
done
6149
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6150
rm -f conftest.err conftest.$ac_ext
6151
if $ac_preproc_ok; then
6152
  :
6153
else
6154
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6155
See \`config.log' for more details." >&5
6156
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6157
See \`config.log' for more details." >&2;}
6158
   { (exit 1); exit 1; }; }
6159
fi
6160
 
6161
ac_ext=c
6162
ac_cpp='$CPP $CPPFLAGS'
6163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6166
 
6167
 
6168
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6169
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6170
if test "${ac_cv_header_stdc+set}" = set; then
6171
  echo $ECHO_N "(cached) $ECHO_C" >&6
6172
else
6173
  cat >conftest.$ac_ext <<_ACEOF
6174
/* confdefs.h.  */
6175
_ACEOF
6176
cat confdefs.h >>conftest.$ac_ext
6177
cat >>conftest.$ac_ext <<_ACEOF
6178
/* end confdefs.h.  */
6179
#include 
6180
#include 
6181
#include 
6182
#include 
6183
 
6184
int
6185
main ()
6186
{
6187
 
6188
  ;
6189
  return 0;
6190
}
6191
_ACEOF
6192
rm -f conftest.$ac_objext
6193
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194
  (eval $ac_compile) 2>conftest.er1
6195
  ac_status=$?
6196
  grep -v '^ *+' conftest.er1 >conftest.err
6197
  rm -f conftest.er1
6198
  cat conftest.err >&5
6199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200
  (exit $ac_status); } &&
6201
         { ac_try='test -z "$ac_c_werror_flag"
6202
                         || test ! -s conftest.err'
6203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204
  (eval $ac_try) 2>&5
6205
  ac_status=$?
6206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207
  (exit $ac_status); }; } &&
6208
         { ac_try='test -s conftest.$ac_objext'
6209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210
  (eval $ac_try) 2>&5
6211
  ac_status=$?
6212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213
  (exit $ac_status); }; }; then
6214
  ac_cv_header_stdc=yes
6215
else
6216
  echo "$as_me: failed program was:" >&5
6217
sed 's/^/| /' conftest.$ac_ext >&5
6218
 
6219
ac_cv_header_stdc=no
6220
fi
6221
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6222
 
6223
if test $ac_cv_header_stdc = yes; then
6224
  # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/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
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6246
  cat >conftest.$ac_ext <<_ACEOF
6247
/* confdefs.h.  */
6248
_ACEOF
6249
cat confdefs.h >>conftest.$ac_ext
6250
cat >>conftest.$ac_ext <<_ACEOF
6251
/* end confdefs.h.  */
6252
#include 
6253
 
6254
_ACEOF
6255
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6256
  $EGREP "free" >/dev/null 2>&1; then
6257
  :
6258
else
6259
  ac_cv_header_stdc=no
6260
fi
6261
rm -f conftest*
6262
 
6263
fi
6264
 
6265
if test $ac_cv_header_stdc = yes; then
6266
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6267
  if test "$cross_compiling" = yes; then
6268
  :
6269
else
6270
  cat >conftest.$ac_ext <<_ACEOF
6271
/* confdefs.h.  */
6272
_ACEOF
6273
cat confdefs.h >>conftest.$ac_ext
6274
cat >>conftest.$ac_ext <<_ACEOF
6275
/* end confdefs.h.  */
6276
#include 
6277
#if ((' ' & 0x0FF) == 0x020)
6278
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6279
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6280
#else
6281
# define ISLOWER(c) \
6282
                   (('a' <= (c) && (c) <= 'i') \
6283
                     || ('j' <= (c) && (c) <= 'r') \
6284
                     || ('s' <= (c) && (c) <= 'z'))
6285
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6286
#endif
6287
 
6288
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6289
int
6290
main ()
6291
{
6292
  int i;
6293
  for (i = 0; i < 256; i++)
6294
    if (XOR (islower (i), ISLOWER (i))
6295
        || toupper (i) != TOUPPER (i))
6296
      exit(2);
6297
  exit (0);
6298
}
6299
_ACEOF
6300
rm -f conftest$ac_exeext
6301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302
  (eval $ac_link) 2>&5
6303
  ac_status=$?
6304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307
  (eval $ac_try) 2>&5
6308
  ac_status=$?
6309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310
  (exit $ac_status); }; }; then
6311
  :
6312
else
6313
  echo "$as_me: program exited with status $ac_status" >&5
6314
echo "$as_me: failed program was:" >&5
6315
sed 's/^/| /' conftest.$ac_ext >&5
6316
 
6317
( exit $ac_status )
6318
ac_cv_header_stdc=no
6319
fi
6320
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6321
fi
6322
fi
6323
fi
6324
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6325
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6326
if test $ac_cv_header_stdc = yes; then
6327
 
6328
cat >>confdefs.h <<\_ACEOF
6329
#define STDC_HEADERS 1
6330
_ACEOF
6331
 
6332
fi
6333
 
6334
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345
                  inttypes.h stdint.h unistd.h
6346
do
6347
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348
echo "$as_me:$LINENO: checking for $ac_header" >&5
6349
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351
  echo $ECHO_N "(cached) $ECHO_C" >&6
6352
else
6353
  cat >conftest.$ac_ext <<_ACEOF
6354
/* confdefs.h.  */
6355
_ACEOF
6356
cat confdefs.h >>conftest.$ac_ext
6357
cat >>conftest.$ac_ext <<_ACEOF
6358
/* end confdefs.h.  */
6359
$ac_includes_default
6360
 
6361
#include <$ac_header>
6362
_ACEOF
6363
rm -f conftest.$ac_objext
6364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365
  (eval $ac_compile) 2>conftest.er1
6366
  ac_status=$?
6367
  grep -v '^ *+' conftest.er1 >conftest.err
6368
  rm -f conftest.er1
6369
  cat conftest.err >&5
6370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
  (exit $ac_status); } &&
6372
         { ac_try='test -z "$ac_c_werror_flag"
6373
                         || test ! -s conftest.err'
6374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375
  (eval $ac_try) 2>&5
6376
  ac_status=$?
6377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378
  (exit $ac_status); }; } &&
6379
         { ac_try='test -s conftest.$ac_objext'
6380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381
  (eval $ac_try) 2>&5
6382
  ac_status=$?
6383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384
  (exit $ac_status); }; }; then
6385
  eval "$as_ac_Header=yes"
6386
else
6387
  echo "$as_me: failed program was:" >&5
6388
sed 's/^/| /' conftest.$ac_ext >&5
6389
 
6390
eval "$as_ac_Header=no"
6391
fi
6392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393
fi
6394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397
  cat >>confdefs.h <<_ACEOF
6398
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399
_ACEOF
6400
 
6401
fi
6402
 
6403
done
6404
 
6405
 
6406
 
6407
for ac_header in dlfcn.h
6408
do
6409
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410
echo "$as_me:$LINENO: checking for $ac_header" >&5
6411
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413
  echo $ECHO_N "(cached) $ECHO_C" >&6
6414
else
6415
  cat >conftest.$ac_ext <<_ACEOF
6416
/* confdefs.h.  */
6417
_ACEOF
6418
cat confdefs.h >>conftest.$ac_ext
6419
cat >>conftest.$ac_ext <<_ACEOF
6420
/* end confdefs.h.  */
6421
$ac_includes_default
6422
 
6423
#include <$ac_header>
6424
_ACEOF
6425
rm -f conftest.$ac_objext
6426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427
  (eval $ac_compile) 2>conftest.er1
6428
  ac_status=$?
6429
  grep -v '^ *+' conftest.er1 >conftest.err
6430
  rm -f conftest.er1
6431
  cat conftest.err >&5
6432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433
  (exit $ac_status); } &&
6434
         { ac_try='test -z "$ac_c_werror_flag"
6435
                         || test ! -s conftest.err'
6436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437
  (eval $ac_try) 2>&5
6438
  ac_status=$?
6439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440
  (exit $ac_status); }; } &&
6441
         { ac_try='test -s conftest.$ac_objext'
6442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443
  (eval $ac_try) 2>&5
6444
  ac_status=$?
6445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446
  (exit $ac_status); }; }; then
6447
  eval "$as_ac_Header=yes"
6448
else
6449
  echo "$as_me: failed program was:" >&5
6450
sed 's/^/| /' conftest.$ac_ext >&5
6451
 
6452
eval "$as_ac_Header=no"
6453
fi
6454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455
fi
6456
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6457
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6458
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459
  cat >>confdefs.h <<_ACEOF
6460
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461
_ACEOF
6462
 
6463
fi
6464
 
6465
done
6466
 
6467
 
6468
 
6469
# This can be used to rebuild libtool when needed
6470
LIBTOOL_DEPS="$ltmain"
6471
 
6472
# Always use our own libtool.
6473
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
 
6486
 
6487
 
6488
 
6489
 
6490
 
6491
 
6492
 
6493
 
6494
 
6495
 
6496
 
6497
 
6498
 
6499
test -z "$LN_S" && LN_S="ln -s"
6500
 
6501
 
6502
 
6503
 
6504
 
6505
 
6506
 
6507
 
6508
 
6509
 
6510
 
6511
 
6512
 
6513
 
6514
if test -n "${ZSH_VERSION+set}" ; then
6515
   setopt NO_GLOB_SUBST
6516
fi
6517
 
6518
echo "$as_me:$LINENO: checking for objdir" >&5
6519
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6520
if test "${lt_cv_objdir+set}" = set; then
6521
  echo $ECHO_N "(cached) $ECHO_C" >&6
6522
else
6523
  rm -f .libs 2>/dev/null
6524
mkdir .libs 2>/dev/null
6525
if test -d .libs; then
6526
  lt_cv_objdir=.libs
6527
else
6528
  # MS-DOS does not allow filenames that begin with a dot.
6529
  lt_cv_objdir=_libs
6530
fi
6531
rmdir .libs 2>/dev/null
6532
fi
6533
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6534
echo "${ECHO_T}$lt_cv_objdir" >&6
6535
objdir=$lt_cv_objdir
6536
 
6537
 
6538
 
6539
 
6540
 
6541
cat >>confdefs.h <<_ACEOF
6542
#define LT_OBJDIR "$lt_cv_objdir/"
6543
_ACEOF
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
case $host_os in
6562
aix3*)
6563
  # AIX sometimes has problems with the GCC collect2 program.  For some
6564
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6565
  # vanish in a puff of smoke.
6566
  if test "X${COLLECT_NAMES+set}" != Xset; then
6567
    COLLECT_NAMES=
6568
    export COLLECT_NAMES
6569
  fi
6570
  ;;
6571
esac
6572
 
6573
# Sed substitution that helps us do robust quoting.  It backslashifies
6574
# metacharacters that are still active within double-quoted strings.
6575
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6576
 
6577
# Same as above, but do not quote variable references.
6578
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6579
 
6580
# Sed substitution to delay expansion of an escaped shell variable in a
6581
# double_quote_subst'ed string.
6582
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6583
 
6584
# Sed substitution to delay expansion of an escaped single quote.
6585
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6586
 
6587
# Sed substitution to avoid accidental globbing in evaled expressions
6588
no_glob_subst='s/\*/\\\*/g'
6589
 
6590
# Global variables:
6591
ofile=libtool
6592
can_build_shared=yes
6593
 
6594
# All known linkers require a `.a' archive for static linking (except MSVC,
6595
# which needs '.lib').
6596
libext=a
6597
 
6598
with_gnu_ld="$lt_cv_prog_gnu_ld"
6599
 
6600
old_CC="$CC"
6601
old_CFLAGS="$CFLAGS"
6602
 
6603
# Set sane defaults for various variables
6604
test -z "$CC" && CC=cc
6605
test -z "$LTCC" && LTCC=$CC
6606
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6607
test -z "$LD" && LD=ld
6608
test -z "$ac_objext" && ac_objext=o
6609
 
6610
for cc_temp in $compiler""; do
6611
  case $cc_temp in
6612
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6613
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6614
    \-*) ;;
6615
    *) break;;
6616
  esac
6617
done
6618
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6619
 
6620
 
6621
# Only perform the check for file, if the check method requires it
6622
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6623
case $deplibs_check_method in
6624
file_magic*)
6625
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6626
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6627
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6628
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6629
  echo $ECHO_N "(cached) $ECHO_C" >&6
6630
else
6631
  case $MAGIC_CMD in
6632
[\\/*] |  ?:[\\/]*)
6633
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6634
  ;;
6635
*)
6636
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6637
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6638
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6639
  for ac_dir in $ac_dummy; do
6640
    IFS="$lt_save_ifs"
6641
    test -z "$ac_dir" && ac_dir=.
6642
    if test -f $ac_dir/${ac_tool_prefix}file; then
6643
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6644
      if test -n "$file_magic_test_file"; then
6645
        case $deplibs_check_method in
6646
        "file_magic "*)
6647
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6648
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6649
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6650
            $EGREP "$file_magic_regex" > /dev/null; then
6651
            :
6652
          else
6653
            cat <<_LT_EOF 1>&2
6654
 
6655
*** Warning: the command libtool uses to detect shared libraries,
6656
*** $file_magic_cmd, produces output that libtool cannot recognize.
6657
*** The result is that libtool may fail to recognize shared libraries
6658
*** as such.  This will affect the creation of libtool libraries that
6659
*** depend on shared libraries, but programs linked with such libtool
6660
*** libraries will work regardless of this problem.  Nevertheless, you
6661
*** may want to report the problem to your system manager and/or to
6662
*** bug-libtool@gnu.org
6663
 
6664
_LT_EOF
6665
          fi ;;
6666
        esac
6667
      fi
6668
      break
6669
    fi
6670
  done
6671
  IFS="$lt_save_ifs"
6672
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6673
  ;;
6674
esac
6675
fi
6676
 
6677
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6678
if test -n "$MAGIC_CMD"; then
6679
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6680
echo "${ECHO_T}$MAGIC_CMD" >&6
6681
else
6682
  echo "$as_me:$LINENO: result: no" >&5
6683
echo "${ECHO_T}no" >&6
6684
fi
6685
 
6686
 
6687
 
6688
 
6689
 
6690
if test -z "$lt_cv_path_MAGIC_CMD"; then
6691
  if test -n "$ac_tool_prefix"; then
6692
    echo "$as_me:$LINENO: checking for file" >&5
6693
echo $ECHO_N "checking for file... $ECHO_C" >&6
6694
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6695
  echo $ECHO_N "(cached) $ECHO_C" >&6
6696
else
6697
  case $MAGIC_CMD in
6698
[\\/*] |  ?:[\\/]*)
6699
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6700
  ;;
6701
*)
6702
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6703
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6704
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6705
  for ac_dir in $ac_dummy; do
6706
    IFS="$lt_save_ifs"
6707
    test -z "$ac_dir" && ac_dir=.
6708
    if test -f $ac_dir/file; then
6709
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6710
      if test -n "$file_magic_test_file"; then
6711
        case $deplibs_check_method in
6712
        "file_magic "*)
6713
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6714
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6715
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6716
            $EGREP "$file_magic_regex" > /dev/null; then
6717
            :
6718
          else
6719
            cat <<_LT_EOF 1>&2
6720
 
6721
*** Warning: the command libtool uses to detect shared libraries,
6722
*** $file_magic_cmd, produces output that libtool cannot recognize.
6723
*** The result is that libtool may fail to recognize shared libraries
6724
*** as such.  This will affect the creation of libtool libraries that
6725
*** depend on shared libraries, but programs linked with such libtool
6726
*** libraries will work regardless of this problem.  Nevertheless, you
6727
*** may want to report the problem to your system manager and/or to
6728
*** bug-libtool@gnu.org
6729
 
6730
_LT_EOF
6731
          fi ;;
6732
        esac
6733
      fi
6734
      break
6735
    fi
6736
  done
6737
  IFS="$lt_save_ifs"
6738
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6739
  ;;
6740
esac
6741
fi
6742
 
6743
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744
if test -n "$MAGIC_CMD"; then
6745
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6746
echo "${ECHO_T}$MAGIC_CMD" >&6
6747
else
6748
  echo "$as_me:$LINENO: result: no" >&5
6749
echo "${ECHO_T}no" >&6
6750
fi
6751
 
6752
 
6753
  else
6754
    MAGIC_CMD=:
6755
  fi
6756
fi
6757
 
6758
  fi
6759
  ;;
6760
esac
6761
 
6762
# Use C for the default configuration in the libtool script
6763
 
6764
lt_save_CC="$CC"
6765
ac_ext=c
6766
ac_cpp='$CPP $CPPFLAGS'
6767
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
 
6771
 
6772
# Source file extension for C test sources.
6773
ac_ext=c
6774
 
6775
# Object file extension for compiled C test sources.
6776
objext=o
6777
objext=$objext
6778
 
6779
# Code to be used in simple compile tests
6780
lt_simple_compile_test_code="int some_variable = 0;"
6781
 
6782
# Code to be used in simple link tests
6783
lt_simple_link_test_code='int main(){return(0);}'
6784
 
6785
 
6786
 
6787
 
6788
 
6789
 
6790
 
6791
# If no C compiler was specified, use CC.
6792
LTCC=${LTCC-"$CC"}
6793
 
6794
# If no C compiler flags were specified, use CFLAGS.
6795
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6796
 
6797
# Allow CC to be a program name with arguments.
6798
compiler=$CC
6799
 
6800
# Save the default compiler, since it gets overwritten when the other
6801
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6802
compiler_DEFAULT=$CC
6803
 
6804
# save warnings/boilerplate of simple test code
6805
ac_outfile=conftest.$ac_objext
6806
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6807
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6808
_lt_compiler_boilerplate=`cat conftest.err`
6809
$RM conftest*
6810
 
6811
ac_outfile=conftest.$ac_objext
6812
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6813
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6814
_lt_linker_boilerplate=`cat conftest.err`
6815
$RM conftest*
6816
 
6817
 
6818
## CAVEAT EMPTOR:
6819
## There is no encapsulation within the following macros, do not change
6820
## the running order or otherwise move them around unless you know exactly
6821
## what you are doing...
6822
if test -n "$compiler"; then
6823
 
6824
lt_prog_compiler_no_builtin_flag=
6825
 
6826
if test "$GCC" = yes; then
6827
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6828
 
6829
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6830
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6831
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6832
  echo $ECHO_N "(cached) $ECHO_C" >&6
6833
else
6834
  lt_cv_prog_compiler_rtti_exceptions=no
6835
   ac_outfile=conftest.$ac_objext
6836
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6837
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6838
   # Insert the option either (1) after the last *FLAGS variable, or
6839
   # (2) before a word containing "conftest.", or (3) at the end.
6840
   # Note that $ac_compile itself does not contain backslashes and begins
6841
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6842
   # The option is referenced via a variable to avoid confusing sed.
6843
   lt_compile=`echo "$ac_compile" | $SED \
6844
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6845
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6846
   -e 's:$: $lt_compiler_flag:'`
6847
   (eval echo "\"\$as_me:6847: $lt_compile\"" >&5)
6848
   (eval "$lt_compile" 2>conftest.err)
6849
   ac_status=$?
6850
   cat conftest.err >&5
6851
   echo "$as_me:6851: \$? = $ac_status" >&5
6852
   if (exit $ac_status) && test -s "$ac_outfile"; then
6853
     # The compiler can only warn and ignore the option if not recognized
6854
     # So say no if there are warnings other than the usual output.
6855
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6856
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6857
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6858
       lt_cv_prog_compiler_rtti_exceptions=yes
6859
     fi
6860
   fi
6861
   $RM conftest*
6862
 
6863
fi
6864
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6865
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6866
 
6867
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6868
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6869
else
6870
    :
6871
fi
6872
 
6873
fi
6874
 
6875
 
6876
 
6877
 
6878
 
6879
 
6880
  lt_prog_compiler_wl=
6881
lt_prog_compiler_pic=
6882
lt_prog_compiler_static=
6883
 
6884
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6885
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6886
 
6887
  if test "$GCC" = yes; then
6888
    lt_prog_compiler_wl='-Wl,'
6889
    lt_prog_compiler_static='-static'
6890
 
6891
    case $host_os in
6892
      aix*)
6893
      # All AIX code is PIC.
6894
      if test "$host_cpu" = ia64; then
6895
        # AIX 5 now supports IA64 processor
6896
        lt_prog_compiler_static='-Bstatic'
6897
      fi
6898
      ;;
6899
 
6900
    amigaos*)
6901
      if test "$host_cpu" = m68k; then
6902
        # FIXME: we need at least 68020 code to build shared libraries, but
6903
        # adding the `-m68020' flag to GCC prevents building anything better,
6904
        # like `-m68040'.
6905
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6906
      fi
6907
      ;;
6908
 
6909
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6910
      # PIC is the default for these OSes.
6911
      ;;
6912
 
6913
    mingw* | cygwin* | pw32* | os2*)
6914
      # This hack is so that the source file can tell whether it is being
6915
      # built for inclusion in a dll (and should export symbols for example).
6916
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6917
      # (--disable-auto-import) libraries
6918
      lt_prog_compiler_pic='-DDLL_EXPORT'
6919
      ;;
6920
 
6921
    darwin* | rhapsody*)
6922
      # PIC is the default on this platform
6923
      # Common symbols not allowed in MH_DYLIB files
6924
      lt_prog_compiler_pic='-fno-common'
6925
      ;;
6926
 
6927
    hpux*)
6928
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6929
      # not for PA HP-UX.
6930
      case $host_cpu in
6931
      hppa*64*|ia64*)
6932
        # +Z the default
6933
        ;;
6934
      *)
6935
        lt_prog_compiler_pic='-fPIC'
6936
        ;;
6937
      esac
6938
      ;;
6939
 
6940
    interix[3-9]*)
6941
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6942
      # Instead, we relocate shared libraries at runtime.
6943
      ;;
6944
 
6945
    msdosdjgpp*)
6946
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6947
      # on systems that don't support them.
6948
      lt_prog_compiler_can_build_shared=no
6949
      enable_shared=no
6950
      ;;
6951
 
6952
    *nto* | *qnx*)
6953
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6954
      # it will coredump.
6955
      lt_prog_compiler_pic='-fPIC -shared'
6956
      ;;
6957
 
6958
    sysv4*MP*)
6959
      if test -d /usr/nec; then
6960
        lt_prog_compiler_pic=-Kconform_pic
6961
      fi
6962
      ;;
6963
 
6964
    *)
6965
      lt_prog_compiler_pic='-fPIC'
6966
      ;;
6967
    esac
6968
  else
6969
    # PORTME Check for flag to pass linker flags through the system compiler.
6970
    case $host_os in
6971
    aix*)
6972
      lt_prog_compiler_wl='-Wl,'
6973
      if test "$host_cpu" = ia64; then
6974
        # AIX 5 now supports IA64 processor
6975
        lt_prog_compiler_static='-Bstatic'
6976
      else
6977
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6978
      fi
6979
      ;;
6980
    darwin*)
6981
      # PIC is the default on this platform
6982
      # Common symbols not allowed in MH_DYLIB files
6983
      case $cc_basename in
6984
      xlc*)
6985
        lt_prog_compiler_pic='-qnocommon'
6986
        lt_prog_compiler_wl='-Wl,'
6987
        ;;
6988
      esac
6989
      ;;
6990
 
6991
    mingw* | cygwin* | pw32* | os2*)
6992
      # This hack is so that the source file can tell whether it is being
6993
      # built for inclusion in a dll (and should export symbols for example).
6994
      lt_prog_compiler_pic='-DDLL_EXPORT'
6995
      ;;
6996
 
6997
    hpux9* | hpux10* | hpux11*)
6998
      lt_prog_compiler_wl='-Wl,'
6999
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7000
      # not for PA HP-UX.
7001
      case $host_cpu in
7002
      hppa*64*|ia64*)
7003
        # +Z the default
7004
        ;;
7005
      *)
7006
        lt_prog_compiler_pic='+Z'
7007
        ;;
7008
      esac
7009
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7010
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7011
      ;;
7012
 
7013
    irix5* | irix6* | nonstopux*)
7014
      lt_prog_compiler_wl='-Wl,'
7015
      # PIC (with -KPIC) is the default.
7016
      lt_prog_compiler_static='-non_shared'
7017
      ;;
7018
 
7019
    linux* | k*bsd*-gnu)
7020
      case $cc_basename in
7021
      icc* | ecc*)
7022
        lt_prog_compiler_wl='-Wl,'
7023
        lt_prog_compiler_pic='-KPIC'
7024
        lt_prog_compiler_static='-static'
7025
        ;;
7026
      pgcc* | pgf77* | pgf90* | pgf95*)
7027
        # Portland Group compilers (*not* the Pentium gcc compiler,
7028
        # which looks to be a dead project)
7029
        lt_prog_compiler_wl='-Wl,'
7030
        lt_prog_compiler_pic='-fpic'
7031
        lt_prog_compiler_static='-Bstatic'
7032
        ;;
7033
      ccc*)
7034
        lt_prog_compiler_wl='-Wl,'
7035
        # All Alpha code is PIC.
7036
        lt_prog_compiler_static='-non_shared'
7037
        ;;
7038
      *)
7039
        case `$CC -V 2>&1 | sed 5q` in
7040
        *Sun\ C*)
7041
          # Sun C 5.9
7042
          lt_prog_compiler_pic='-KPIC'
7043
          lt_prog_compiler_static='-Bstatic'
7044
          lt_prog_compiler_wl='-Wl,'
7045
          ;;
7046
        *Sun\ F*)
7047
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7048
          lt_prog_compiler_pic='-KPIC'
7049
          lt_prog_compiler_static='-Bstatic'
7050
          lt_prog_compiler_wl=''
7051
          ;;
7052
        esac
7053
        ;;
7054
      esac
7055
      ;;
7056
 
7057
    newsos6)
7058
      lt_prog_compiler_pic='-KPIC'
7059
      lt_prog_compiler_static='-Bstatic'
7060
      ;;
7061
 
7062
    *nto* | *qnx*)
7063
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7064
      # it will coredump.
7065
      lt_prog_compiler_pic='-fPIC -shared'
7066
      ;;
7067
 
7068
    osf3* | osf4* | osf5*)
7069
      lt_prog_compiler_wl='-Wl,'
7070
      # All OSF/1 code is PIC.
7071
      lt_prog_compiler_static='-non_shared'
7072
      ;;
7073
 
7074
    rdos*)
7075
      lt_prog_compiler_static='-non_shared'
7076
      ;;
7077
 
7078
    solaris*)
7079
      lt_prog_compiler_pic='-KPIC'
7080
      lt_prog_compiler_static='-Bstatic'
7081
      case $cc_basename in
7082
      f77* | f90* | f95*)
7083
        lt_prog_compiler_wl='-Qoption ld ';;
7084
      *)
7085
        lt_prog_compiler_wl='-Wl,';;
7086
      esac
7087
      ;;
7088
 
7089
    sunos4*)
7090
      lt_prog_compiler_wl='-Qoption ld '
7091
      lt_prog_compiler_pic='-PIC'
7092
      lt_prog_compiler_static='-Bstatic'
7093
      ;;
7094
 
7095
    sysv4 | sysv4.2uw2* | sysv4.3*)
7096
      lt_prog_compiler_wl='-Wl,'
7097
      lt_prog_compiler_pic='-KPIC'
7098
      lt_prog_compiler_static='-Bstatic'
7099
      ;;
7100
 
7101
    sysv4*MP*)
7102
      if test -d /usr/nec ;then
7103
        lt_prog_compiler_pic='-Kconform_pic'
7104
        lt_prog_compiler_static='-Bstatic'
7105
      fi
7106
      ;;
7107
 
7108
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7109
      lt_prog_compiler_wl='-Wl,'
7110
      lt_prog_compiler_pic='-KPIC'
7111
      lt_prog_compiler_static='-Bstatic'
7112
      ;;
7113
 
7114
    unicos*)
7115
      lt_prog_compiler_wl='-Wl,'
7116
      lt_prog_compiler_can_build_shared=no
7117
      ;;
7118
 
7119
    uts4*)
7120
      lt_prog_compiler_pic='-pic'
7121
      lt_prog_compiler_static='-Bstatic'
7122
      ;;
7123
 
7124
    *)
7125
      lt_prog_compiler_can_build_shared=no
7126
      ;;
7127
    esac
7128
  fi
7129
 
7130
case $host_os in
7131
  # For platforms which do not support PIC, -DPIC is meaningless:
7132
  *djgpp*)
7133
    lt_prog_compiler_pic=
7134
    ;;
7135
  *)
7136
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7137
    ;;
7138
esac
7139
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7140
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7141
 
7142
 
7143
 
7144
 
7145
 
7146
 
7147
#
7148
# Check to make sure the PIC flag actually works.
7149
#
7150
if test -n "$lt_prog_compiler_pic"; then
7151
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7152
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7153
if test "${lt_prog_compiler_pic_works+set}" = set; then
7154
  echo $ECHO_N "(cached) $ECHO_C" >&6
7155
else
7156
  lt_prog_compiler_pic_works=no
7157
   ac_outfile=conftest.$ac_objext
7158
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7159
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7160
   # Insert the option either (1) after the last *FLAGS variable, or
7161
   # (2) before a word containing "conftest.", or (3) at the end.
7162
   # Note that $ac_compile itself does not contain backslashes and begins
7163
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7164
   # The option is referenced via a variable to avoid confusing sed.
7165
   lt_compile=`echo "$ac_compile" | $SED \
7166
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7167
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7168
   -e 's:$: $lt_compiler_flag:'`
7169
   (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
7170
   (eval "$lt_compile" 2>conftest.err)
7171
   ac_status=$?
7172
   cat conftest.err >&5
7173
   echo "$as_me:7173: \$? = $ac_status" >&5
7174
   if (exit $ac_status) && test -s "$ac_outfile"; then
7175
     # The compiler can only warn and ignore the option if not recognized
7176
     # So say no if there are warnings other than the usual output.
7177
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7178
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7179
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7180
       lt_prog_compiler_pic_works=yes
7181
     fi
7182
   fi
7183
   $RM conftest*
7184
 
7185
fi
7186
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7187
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7188
 
7189
if test x"$lt_prog_compiler_pic_works" = xyes; then
7190
    case $lt_prog_compiler_pic in
7191
     "" | " "*) ;;
7192
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7193
     esac
7194
else
7195
    lt_prog_compiler_pic=
7196
     lt_prog_compiler_can_build_shared=no
7197
fi
7198
 
7199
fi
7200
 
7201
 
7202
 
7203
 
7204
 
7205
 
7206
#
7207
# Check to make sure the static flag actually works.
7208
#
7209
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7210
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7211
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7212
if test "${lt_prog_compiler_static_works+set}" = set; then
7213
  echo $ECHO_N "(cached) $ECHO_C" >&6
7214
else
7215
  lt_prog_compiler_static_works=no
7216
   save_LDFLAGS="$LDFLAGS"
7217
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7218
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7219
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7220
     # The linker can only warn and ignore the option if not recognized
7221
     # So say no if there are warnings
7222
     if test -s conftest.err; then
7223
       # Append any errors to the config.log.
7224
       cat conftest.err 1>&5
7225
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7226
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227
       if diff conftest.exp conftest.er2 >/dev/null; then
7228
         lt_prog_compiler_static_works=yes
7229
       fi
7230
     else
7231
       lt_prog_compiler_static_works=yes
7232
     fi
7233
   fi
7234
   $RM conftest*
7235
   LDFLAGS="$save_LDFLAGS"
7236
 
7237
fi
7238
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7239
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7240
 
7241
if test x"$lt_prog_compiler_static_works" = xyes; then
7242
    :
7243
else
7244
    lt_prog_compiler_static=
7245
fi
7246
 
7247
 
7248
 
7249
 
7250
 
7251
 
7252
 
7253
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7254
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7255
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7256
  echo $ECHO_N "(cached) $ECHO_C" >&6
7257
else
7258
  lt_cv_prog_compiler_c_o=no
7259
   $RM -r conftest 2>/dev/null
7260
   mkdir conftest
7261
   cd conftest
7262
   mkdir out
7263
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7264
 
7265
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7266
   # Insert the option either (1) after the last *FLAGS variable, or
7267
   # (2) before a word containing "conftest.", or (3) at the end.
7268
   # Note that $ac_compile itself does not contain backslashes and begins
7269
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7270
   lt_compile=`echo "$ac_compile" | $SED \
7271
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7272
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7273
   -e 's:$: $lt_compiler_flag:'`
7274
   (eval echo "\"\$as_me:7274: $lt_compile\"" >&5)
7275
   (eval "$lt_compile" 2>out/conftest.err)
7276
   ac_status=$?
7277
   cat out/conftest.err >&5
7278
   echo "$as_me:7278: \$? = $ac_status" >&5
7279
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7280
   then
7281
     # The compiler can only warn and ignore the option if not recognized
7282
     # So say no if there are warnings
7283
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7284
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7285
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7286
       lt_cv_prog_compiler_c_o=yes
7287
     fi
7288
   fi
7289
   chmod u+w . 2>&5
7290
   $RM conftest*
7291
   # SGI C++ compiler will create directory out/ii_files/ for
7292
   # template instantiation
7293
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7294
   $RM out/* && rmdir out
7295
   cd ..
7296
   $RM -r conftest
7297
   $RM conftest*
7298
 
7299
fi
7300
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7301
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7302
 
7303
 
7304
 
7305
 
7306
 
7307
 
7308
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7309
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7310
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7311
  echo $ECHO_N "(cached) $ECHO_C" >&6
7312
else
7313
  lt_cv_prog_compiler_c_o=no
7314
   $RM -r conftest 2>/dev/null
7315
   mkdir conftest
7316
   cd conftest
7317
   mkdir out
7318
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7319
 
7320
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7321
   # Insert the option either (1) after the last *FLAGS variable, or
7322
   # (2) before a word containing "conftest.", or (3) at the end.
7323
   # Note that $ac_compile itself does not contain backslashes and begins
7324
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7325
   lt_compile=`echo "$ac_compile" | $SED \
7326
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328
   -e 's:$: $lt_compiler_flag:'`
7329
   (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
7330
   (eval "$lt_compile" 2>out/conftest.err)
7331
   ac_status=$?
7332
   cat out/conftest.err >&5
7333
   echo "$as_me:7333: \$? = $ac_status" >&5
7334
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7335
   then
7336
     # The compiler can only warn and ignore the option if not recognized
7337
     # So say no if there are warnings
7338
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7339
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7340
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7341
       lt_cv_prog_compiler_c_o=yes
7342
     fi
7343
   fi
7344
   chmod u+w . 2>&5
7345
   $RM conftest*
7346
   # SGI C++ compiler will create directory out/ii_files/ for
7347
   # template instantiation
7348
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7349
   $RM out/* && rmdir out
7350
   cd ..
7351
   $RM -r conftest
7352
   $RM conftest*
7353
 
7354
fi
7355
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7356
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7357
 
7358
 
7359
 
7360
 
7361
hard_links="nottested"
7362
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7363
  # do not overwrite the value of need_locks provided by the user
7364
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7365
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7366
  hard_links=yes
7367
  $RM conftest*
7368
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7369
  touch conftest.a
7370
  ln conftest.a conftest.b 2>&5 || hard_links=no
7371
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7372
  echo "$as_me:$LINENO: result: $hard_links" >&5
7373
echo "${ECHO_T}$hard_links" >&6
7374
  if test "$hard_links" = no; then
7375
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7376
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7377
    need_locks=warn
7378
  fi
7379
else
7380
  need_locks=no
7381
fi
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7389
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7390
 
7391
  runpath_var=
7392
  allow_undefined_flag=
7393
  always_export_symbols=no
7394
  archive_cmds=
7395
  archive_expsym_cmds=
7396
  compiler_needs_object=no
7397
  enable_shared_with_static_runtimes=no
7398
  export_dynamic_flag_spec=
7399
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7400
  hardcode_automatic=no
7401
  hardcode_direct=no
7402
  hardcode_direct_absolute=no
7403
  hardcode_libdir_flag_spec=
7404
  hardcode_libdir_flag_spec_ld=
7405
  hardcode_libdir_separator=
7406
  hardcode_minus_L=no
7407
  hardcode_shlibpath_var=unsupported
7408
  inherit_rpath=no
7409
  link_all_deplibs=unknown
7410
  module_cmds=
7411
  module_expsym_cmds=
7412
  old_archive_from_new_cmds=
7413
  old_archive_from_expsyms_cmds=
7414
  thread_safe_flag_spec=
7415
  whole_archive_flag_spec=
7416
  # include_expsyms should be a list of space-separated symbols to be *always*
7417
  # included in the symbol list
7418
  include_expsyms=
7419
  # exclude_expsyms can be an extended regexp of symbols to exclude
7420
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7421
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7422
  # as well as any symbol that contains `d'.
7423
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7424
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7425
  # platforms (ab)use it in PIC code, but their linkers get confused if
7426
  # the symbol is explicitly referenced.  Since portable code cannot
7427
  # rely on this symbol name, it's probably fine to never include it in
7428
  # preloaded symbol tables.
7429
  extract_expsyms_cmds=
7430
 
7431
  case $host_os in
7432
  cygwin* | mingw* | pw32*)
7433
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7434
    # When not using gcc, we currently assume that we are using
7435
    # Microsoft Visual C++.
7436
    if test "$GCC" != yes; then
7437
      with_gnu_ld=no
7438
    fi
7439
    ;;
7440
  interix*)
7441
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7442
    with_gnu_ld=yes
7443
    ;;
7444
  openbsd*)
7445
    with_gnu_ld=no
7446
    ;;
7447
  esac
7448
 
7449
  ld_shlibs=yes
7450
  if test "$with_gnu_ld" = yes; then
7451
    # If archive_cmds runs LD, not CC, wlarc should be empty
7452
    wlarc='${wl}'
7453
 
7454
    # Set some defaults for GNU ld with shared library support. These
7455
    # are reset later if shared libraries are not supported. Putting them
7456
    # here allows them to be overridden if necessary.
7457
    runpath_var=LD_RUN_PATH
7458
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459
    export_dynamic_flag_spec='${wl}--export-dynamic'
7460
    # ancient GNU ld didn't support --whole-archive et. al.
7461
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7462
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7463
    else
7464
      whole_archive_flag_spec=
7465
    fi
7466
    supports_anon_versioning=no
7467
    case `$LD -v 2>&1` in
7468
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7469
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7470
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7471
      *\ 2.11.*) ;; # other 2.11 versions
7472
      *) supports_anon_versioning=yes ;;
7473
    esac
7474
 
7475
    # See if GNU ld supports shared libraries.
7476
    case $host_os in
7477
    aix[3-9]*)
7478
      # On AIX/PPC, the GNU linker is very broken
7479
      if test "$host_cpu" != ia64; then
7480
        ld_shlibs=no
7481
        cat <<_LT_EOF 1>&2
7482
 
7483
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7484
*** to be unable to reliably create shared libraries on AIX.
7485
*** Therefore, libtool is disabling shared libraries support.  If you
7486
*** really care for shared libraries, you may want to modify your PATH
7487
*** so that a non-GNU linker is found, and then restart.
7488
 
7489
_LT_EOF
7490
      fi
7491
      ;;
7492
 
7493
    amigaos*)
7494
      if test "$host_cpu" = m68k; then
7495
        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)'
7496
        hardcode_libdir_flag_spec='-L$libdir'
7497
        hardcode_minus_L=yes
7498
      fi
7499
 
7500
      # Samuel A. Falvo II  reports
7501
      # that the semantics of dynamic libraries on AmigaOS, at least up
7502
      # to version 4, is to share data among multiple programs linked
7503
      # with the same dynamic library.  Since this doesn't match the
7504
      # behavior of shared libraries on other platforms, we can't use
7505
      # them.
7506
      ld_shlibs=no
7507
      ;;
7508
 
7509
    beos*)
7510
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7511
        allow_undefined_flag=unsupported
7512
        # Joseph Beckenbach  says some releases of gcc
7513
        # support --undefined.  This deserves some investigation.  FIXME
7514
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515
      else
7516
        ld_shlibs=no
7517
      fi
7518
      ;;
7519
 
7520
    cygwin* | mingw* | pw32*)
7521
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7522
      # as there is no search path for DLLs.
7523
      hardcode_libdir_flag_spec='-L$libdir'
7524
      allow_undefined_flag=unsupported
7525
      always_export_symbols=no
7526
      enable_shared_with_static_runtimes=yes
7527
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7528
 
7529
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7530
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7531
        # If the export-symbols file already is a .def file (1st line
7532
        # is EXPORTS), use it as is; otherwise, prepend...
7533
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7534
          cp $export_symbols $output_objdir/$soname.def;
7535
        else
7536
          echo EXPORTS > $output_objdir/$soname.def;
7537
          cat $export_symbols >> $output_objdir/$soname.def;
7538
        fi~
7539
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7540
      else
7541
        ld_shlibs=no
7542
      fi
7543
      ;;
7544
 
7545
    interix[3-9]*)
7546
      hardcode_direct=no
7547
      hardcode_shlibpath_var=no
7548
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7549
      export_dynamic_flag_spec='${wl}-E'
7550
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7551
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7552
      # default) and relocated if they conflict, which is a slow very memory
7553
      # consuming and fragmenting process.  To avoid this, we pick a random,
7554
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7555
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7556
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7557
      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'
7558
      ;;
7559
 
7560
    gnu* | linux* | tpf* | k*bsd*-gnu)
7561
      tmp_diet=no
7562
      if test "$host_os" = linux-dietlibc; then
7563
        case $cc_basename in
7564
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7565
        esac
7566
      fi
7567
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7568
         && test "$tmp_diet" = no
7569
      then
7570
        tmp_addflag=
7571
        case $cc_basename,$host_cpu in
7572
        pgcc*)                          # Portland Group C compiler
7573
          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'
7574
          tmp_addflag=' $pic_flag'
7575
          ;;
7576
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7577
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7578
          tmp_addflag=' $pic_flag -Mnomain' ;;
7579
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7580
          tmp_addflag=' -i_dynamic' ;;
7581
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7582
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7583
        ifc* | ifort*)                  # Intel Fortran compiler
7584
          tmp_addflag=' -nofor_main' ;;
7585
        esac
7586
        case `$CC -V 2>&1 | sed 5q` in
7587
        *Sun\ C*)                       # Sun C 5.9
7588
          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'
7589
          compiler_needs_object=yes
7590
          tmp_sharedflag='-G' ;;
7591
        *Sun\ F*)                       # Sun Fortran 8.3
7592
          tmp_sharedflag='-G' ;;
7593
        *)
7594
          tmp_sharedflag='-shared' ;;
7595
        esac
7596
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7597
 
7598
        if test "x$supports_anon_versioning" = xyes; then
7599
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7600
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7601
            echo "local: *; };" >> $output_objdir/$libname.ver~
7602
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7603
        fi
7604
      else
7605
        ld_shlibs=no
7606
      fi
7607
      ;;
7608
 
7609
    netbsd*)
7610
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7611
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7612
        wlarc=
7613
      else
7614
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7615
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7616
      fi
7617
      ;;
7618
 
7619
    solaris*)
7620
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7621
        ld_shlibs=no
7622
        cat <<_LT_EOF 1>&2
7623
 
7624
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7625
*** create shared libraries on Solaris systems.  Therefore, libtool
7626
*** is disabling shared libraries support.  We urge you to upgrade GNU
7627
*** binutils to release 2.9.1 or newer.  Another option is to modify
7628
*** your PATH or compiler configuration so that the native linker is
7629
*** used, and then restart.
7630
 
7631
_LT_EOF
7632
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7633
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7634
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7635
      else
7636
        ld_shlibs=no
7637
      fi
7638
      ;;
7639
 
7640
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7641
      case `$LD -v 2>&1` in
7642
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7643
        ld_shlibs=no
7644
        cat <<_LT_EOF 1>&2
7645
 
7646
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7647
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7648
*** is disabling shared libraries support.  We urge you to upgrade GNU
7649
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7650
*** your PATH or compiler configuration so that the native linker is
7651
*** used, and then restart.
7652
 
7653
_LT_EOF
7654
        ;;
7655
        *)
7656
          # For security reasons, it is highly recommended that you always
7657
          # use absolute paths for naming shared libraries, and exclude the
7658
          # DT_RUNPATH tag from executables and libraries.  But doing so
7659
          # requires that you compile everything twice, which is a pain.
7660
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7661
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7662
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664
          else
7665
            ld_shlibs=no
7666
          fi
7667
        ;;
7668
      esac
7669
      ;;
7670
 
7671
    sunos4*)
7672
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7673
      wlarc=
7674
      hardcode_direct=yes
7675
      hardcode_shlibpath_var=no
7676
      ;;
7677
 
7678
    *)
7679
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7680
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7681
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7682
      else
7683
        ld_shlibs=no
7684
      fi
7685
      ;;
7686
    esac
7687
 
7688
    if test "$ld_shlibs" = no; then
7689
      runpath_var=
7690
      hardcode_libdir_flag_spec=
7691
      export_dynamic_flag_spec=
7692
      whole_archive_flag_spec=
7693
    fi
7694
  else
7695
    # PORTME fill in a description of your system's linker (not GNU ld)
7696
    case $host_os in
7697
    aix3*)
7698
      allow_undefined_flag=unsupported
7699
      always_export_symbols=yes
7700
      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'
7701
      # Note: this linker hardcodes the directories in LIBPATH if there
7702
      # are no directories specified by -L.
7703
      hardcode_minus_L=yes
7704
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7705
        # Neither direct hardcoding nor static linking is supported with a
7706
        # broken collect2.
7707
        hardcode_direct=unsupported
7708
      fi
7709
      ;;
7710
 
7711
    aix[4-9]*)
7712
      if test "$host_cpu" = ia64; then
7713
        # On IA64, the linker does run time linking by default, so we don't
7714
        # have to do anything special.
7715
        aix_use_runtimelinking=no
7716
        exp_sym_flag='-Bexport'
7717
        no_entry_flag=""
7718
      else
7719
        # If we're using GNU nm, then we don't want the "-C" option.
7720
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7721
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7722
          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'
7723
        else
7724
          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'
7725
        fi
7726
        aix_use_runtimelinking=no
7727
 
7728
        # Test if we are trying to use run time linking or normal
7729
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7730
        # need to do runtime linking.
7731
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7732
          for ld_flag in $LDFLAGS; do
7733
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7734
            aix_use_runtimelinking=yes
7735
            break
7736
          fi
7737
          done
7738
          ;;
7739
        esac
7740
 
7741
        exp_sym_flag='-bexport'
7742
        no_entry_flag='-bnoentry'
7743
      fi
7744
 
7745
      # When large executables or shared objects are built, AIX ld can
7746
      # have problems creating the table of contents.  If linking a library
7747
      # or program results in "error TOC overflow" add -mminimal-toc to
7748
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7749
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7750
 
7751
      archive_cmds=''
7752
      hardcode_direct=yes
7753
      hardcode_direct_absolute=yes
7754
      hardcode_libdir_separator=':'
7755
      link_all_deplibs=yes
7756
      file_list_spec='${wl}-f,'
7757
 
7758
      if test "$GCC" = yes; then
7759
        case $host_os in aix4.[012]|aix4.[012].*)
7760
        # We only want to do this on AIX 4.2 and lower, the check
7761
        # below for broken collect2 doesn't work under 4.3+
7762
          collect2name=`${CC} -print-prog-name=collect2`
7763
          if test -f "$collect2name" &&
7764
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7765
          then
7766
          # We have reworked collect2
7767
          :
7768
          else
7769
          # We have old collect2
7770
          hardcode_direct=unsupported
7771
          # It fails to find uninstalled libraries when the uninstalled
7772
          # path is not listed in the libpath.  Setting hardcode_minus_L
7773
          # to unsupported forces relinking
7774
          hardcode_minus_L=yes
7775
          hardcode_libdir_flag_spec='-L$libdir'
7776
          hardcode_libdir_separator=
7777
          fi
7778
          ;;
7779
        esac
7780
        shared_flag='-shared'
7781
        if test "$aix_use_runtimelinking" = yes; then
7782
          shared_flag="$shared_flag "'${wl}-G'
7783
        fi
7784
      else
7785
        # not using gcc
7786
        if test "$host_cpu" = ia64; then
7787
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7788
        # chokes on -Wl,-G. The following line is correct:
7789
          shared_flag='-G'
7790
        else
7791
          if test "$aix_use_runtimelinking" = yes; then
7792
            shared_flag='${wl}-G'
7793
          else
7794
            shared_flag='${wl}-bM:SRE'
7795
          fi
7796
        fi
7797
      fi
7798
 
7799
      # It seems that -bexpall does not export symbols beginning with
7800
      # underscore (_), so it is better to generate a list of symbols to export.
7801
      always_export_symbols=yes
7802
      if test "$aix_use_runtimelinking" = yes; then
7803
        # Warning - without using the other runtime loading flags (-brtl),
7804
        # -berok will link without error, but may produce a broken library.
7805
        allow_undefined_flag='-berok'
7806
        # Determine the default libpath from the value encoded in an
7807
        # empty executable.
7808
        cat >conftest.$ac_ext <<_ACEOF
7809
/* confdefs.h.  */
7810
_ACEOF
7811
cat confdefs.h >>conftest.$ac_ext
7812
cat >>conftest.$ac_ext <<_ACEOF
7813
/* end confdefs.h.  */
7814
 
7815
int
7816
main ()
7817
{
7818
 
7819
  ;
7820
  return 0;
7821
}
7822
_ACEOF
7823
rm -f conftest.$ac_objext conftest$ac_exeext
7824
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825
  (eval $ac_link) 2>conftest.er1
7826
  ac_status=$?
7827
  grep -v '^ *+' conftest.er1 >conftest.err
7828
  rm -f conftest.er1
7829
  cat conftest.err >&5
7830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831
  (exit $ac_status); } &&
7832
         { ac_try='test -z "$ac_c_werror_flag"
7833
                         || test ! -s conftest.err'
7834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835
  (eval $ac_try) 2>&5
7836
  ac_status=$?
7837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838
  (exit $ac_status); }; } &&
7839
         { ac_try='test -s conftest$ac_exeext'
7840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841
  (eval $ac_try) 2>&5
7842
  ac_status=$?
7843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844
  (exit $ac_status); }; }; then
7845
 
7846
lt_aix_libpath_sed='
7847
    /Import File Strings/,/^$/ {
7848
        /^0/ {
7849
            s/^0  *\(.*\)$/\1/
7850
            p
7851
        }
7852
    }'
7853
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7854
# Check for a 64-bit object if we didn't find anything.
7855
if test -z "$aix_libpath"; then
7856
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7857
fi
7858
else
7859
  echo "$as_me: failed program was:" >&5
7860
sed 's/^/| /' conftest.$ac_ext >&5
7861
 
7862
fi
7863
rm -f conftest.err conftest.$ac_objext \
7864
      conftest$ac_exeext conftest.$ac_ext
7865
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7866
 
7867
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7868
        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"
7869
      else
7870
        if test "$host_cpu" = ia64; then
7871
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7872
          allow_undefined_flag="-z nodefs"
7873
          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"
7874
        else
7875
         # Determine the default libpath from the value encoded in an
7876
         # empty executable.
7877
         cat >conftest.$ac_ext <<_ACEOF
7878
/* confdefs.h.  */
7879
_ACEOF
7880
cat confdefs.h >>conftest.$ac_ext
7881
cat >>conftest.$ac_ext <<_ACEOF
7882
/* end confdefs.h.  */
7883
 
7884
int
7885
main ()
7886
{
7887
 
7888
  ;
7889
  return 0;
7890
}
7891
_ACEOF
7892
rm -f conftest.$ac_objext conftest$ac_exeext
7893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894
  (eval $ac_link) 2>conftest.er1
7895
  ac_status=$?
7896
  grep -v '^ *+' conftest.er1 >conftest.err
7897
  rm -f conftest.er1
7898
  cat conftest.err >&5
7899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900
  (exit $ac_status); } &&
7901
         { ac_try='test -z "$ac_c_werror_flag"
7902
                         || test ! -s conftest.err'
7903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904
  (eval $ac_try) 2>&5
7905
  ac_status=$?
7906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907
  (exit $ac_status); }; } &&
7908
         { ac_try='test -s conftest$ac_exeext'
7909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910
  (eval $ac_try) 2>&5
7911
  ac_status=$?
7912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913
  (exit $ac_status); }; }; then
7914
 
7915
lt_aix_libpath_sed='
7916
    /Import File Strings/,/^$/ {
7917
        /^0/ {
7918
            s/^0  *\(.*\)$/\1/
7919
            p
7920
        }
7921
    }'
7922
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7923
# Check for a 64-bit object if we didn't find anything.
7924
if test -z "$aix_libpath"; then
7925
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7926
fi
7927
else
7928
  echo "$as_me: failed program was:" >&5
7929
sed 's/^/| /' conftest.$ac_ext >&5
7930
 
7931
fi
7932
rm -f conftest.err conftest.$ac_objext \
7933
      conftest$ac_exeext conftest.$ac_ext
7934
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7935
 
7936
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7937
          # Warning - without using the other run time loading flags,
7938
          # -berok will link without error, but may produce a broken library.
7939
          no_undefined_flag=' ${wl}-bernotok'
7940
          allow_undefined_flag=' ${wl}-berok'
7941
          # Exported symbols can be pulled into shared objects from archives
7942
          whole_archive_flag_spec='$convenience'
7943
          archive_cmds_need_lc=yes
7944
          # This is similar to how AIX traditionally builds its shared libraries.
7945
          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'
7946
        fi
7947
      fi
7948
      ;;
7949
 
7950
    amigaos*)
7951
      if test "$host_cpu" = m68k; then
7952
        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)'
7953
        hardcode_libdir_flag_spec='-L$libdir'
7954
        hardcode_minus_L=yes
7955
      fi
7956
      # see comment about different semantics on the GNU ld section
7957
      ld_shlibs=no
7958
      ;;
7959
 
7960
    bsdi[45]*)
7961
      export_dynamic_flag_spec=-rdynamic
7962
      ;;
7963
 
7964
    cygwin* | mingw* | pw32*)
7965
      # When not using gcc, we currently assume that we are using
7966
      # Microsoft Visual C++.
7967
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7968
      # no search path for DLLs.
7969
      hardcode_libdir_flag_spec=' '
7970
      allow_undefined_flag=unsupported
7971
      # Tell ltmain to make .lib files, not .a files.
7972
      libext=lib
7973
      # Tell ltmain to make .dll files, not .so files.
7974
      shrext_cmds=".dll"
7975
      # FIXME: Setting linknames here is a bad hack.
7976
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7977
      # The linker will automatically build a .lib file if we build a DLL.
7978
      old_archive_from_new_cmds='true'
7979
      # FIXME: Should let the user specify the lib program.
7980
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7981
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7982
      enable_shared_with_static_runtimes=yes
7983
      ;;
7984
 
7985
    darwin* | rhapsody*)
7986
      case $host_os in
7987
      rhapsody* | darwin1.[012])
7988
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
7989
        ;;
7990
      *) # Darwin 1.3 on
7991
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7992
        10.[012])
7993
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7994
          ;;
7995
        10.*)
7996
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7997
          ;;
7998
        esac
7999
        ;;
8000
      esac
8001
      archive_cmds_need_lc=no
8002
      hardcode_direct=no
8003
      hardcode_automatic=yes
8004
      hardcode_shlibpath_var=unsupported
8005
      whole_archive_flag_spec=''
8006
      link_all_deplibs=yes
8007
      if test "$GCC" = yes ; then
8008
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8009
  echo $ECHO_N "(cached) $ECHO_C" >&6
8010
else
8011
  lt_cv_apple_cc_single_mod=no
8012
        if test -z "${LT_MULTI_MODULE}"; then
8013
          # By default we will add the -single_module flag. You can override
8014
          # by either setting the environment variable LT_MULTI_MODULE
8015
          # non-empty at configure time, or by adding -multi-module to the
8016
          # link flags.
8017
          echo "int foo(void){return 1;}" > conftest.c
8018
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8019
              -dynamiclib ${wl}-single_module conftest.c
8020
          if test -f libconftest.dylib; then
8021
              lt_cv_apple_cc_single_mod=yes
8022
              rm libconftest.dylib
8023
          fi
8024
          rm conftest.$ac_ext
8025
        fi
8026
fi
8027
 
8028
        output_verbose_link_cmd=echo
8029
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8030
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8031
          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}'
8032
        else
8033
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8034
          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}'
8035
        fi
8036
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8037
        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}'
8038
      else
8039
        case $cc_basename in
8040
        xlc*)
8041
          output_verbose_link_cmd=echo
8042
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8043
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8044
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8045
          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}'
8046
          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}'
8047
          ;;
8048
        *)
8049
          ld_shlibs=no
8050
          ;;
8051
        esac
8052
      fi
8053
      ;;
8054
 
8055
    dgux*)
8056
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8057
      hardcode_libdir_flag_spec='-L$libdir'
8058
      hardcode_shlibpath_var=no
8059
      ;;
8060
 
8061
    freebsd1*)
8062
      ld_shlibs=no
8063
      ;;
8064
 
8065
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8066
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8067
    # does not break anything, and helps significantly (at the cost of a little
8068
    # extra space).
8069
    freebsd2.2*)
8070
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8071
      hardcode_libdir_flag_spec='-R$libdir'
8072
      hardcode_direct=yes
8073
      hardcode_shlibpath_var=no
8074
      ;;
8075
 
8076
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8077
    freebsd2*)
8078
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8079
      hardcode_direct=yes
8080
      hardcode_minus_L=yes
8081
      hardcode_shlibpath_var=no
8082
      ;;
8083
 
8084
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8085
    freebsd* | dragonfly*)
8086
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8087
      hardcode_libdir_flag_spec='-R$libdir'
8088
      hardcode_direct=yes
8089
      hardcode_shlibpath_var=no
8090
      ;;
8091
 
8092
    hpux9*)
8093
      if test "$GCC" = yes; then
8094
        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'
8095
      else
8096
        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'
8097
      fi
8098
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8099
      hardcode_libdir_separator=:
8100
      hardcode_direct=yes
8101
 
8102
      # hardcode_minus_L: Not really in the search PATH,
8103
      # but as the default location of the library.
8104
      hardcode_minus_L=yes
8105
      export_dynamic_flag_spec='${wl}-E'
8106
      ;;
8107
 
8108
    hpux10*)
8109
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8110
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8111
      else
8112
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8113
      fi
8114
      if test "$with_gnu_ld" = no; then
8115
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8116
        hardcode_libdir_flag_spec_ld='+b $libdir'
8117
        hardcode_libdir_separator=:
8118
        hardcode_direct=yes
8119
        hardcode_direct_absolute=yes
8120
        export_dynamic_flag_spec='${wl}-E'
8121
        # hardcode_minus_L: Not really in the search PATH,
8122
        # but as the default location of the library.
8123
        hardcode_minus_L=yes
8124
      fi
8125
      ;;
8126
 
8127
    hpux11*)
8128
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8129
        case $host_cpu in
8130
        hppa*64*)
8131
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8132
          ;;
8133
        ia64*)
8134
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8135
          ;;
8136
        *)
8137
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8138
          ;;
8139
        esac
8140
      else
8141
        case $host_cpu in
8142
        hppa*64*)
8143
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8144
          ;;
8145
        ia64*)
8146
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8147
          ;;
8148
        *)
8149
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8150
          ;;
8151
        esac
8152
      fi
8153
      if test "$with_gnu_ld" = no; then
8154
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8155
        hardcode_libdir_separator=:
8156
 
8157
        case $host_cpu in
8158
        hppa*64*|ia64*)
8159
          hardcode_direct=no
8160
          hardcode_shlibpath_var=no
8161
          ;;
8162
        *)
8163
          hardcode_direct=yes
8164
          hardcode_direct_absolute=yes
8165
          export_dynamic_flag_spec='${wl}-E'
8166
 
8167
          # hardcode_minus_L: Not really in the search PATH,
8168
          # but as the default location of the library.
8169
          hardcode_minus_L=yes
8170
          ;;
8171
        esac
8172
      fi
8173
      ;;
8174
 
8175
    irix5* | irix6* | nonstopux*)
8176
      if test "$GCC" = yes; then
8177
        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'
8178
        # Try to use the -exported_symbol ld option, if it does not
8179
        # work, assume that -exports_file does not work either and
8180
        # implicitly export all symbols.
8181
        save_LDFLAGS="$LDFLAGS"
8182
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8183
        cat >conftest.$ac_ext <<_ACEOF
8184
int foo(void) {}
8185
_ACEOF
8186
rm -f conftest.$ac_objext conftest$ac_exeext
8187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188
  (eval $ac_link) 2>conftest.er1
8189
  ac_status=$?
8190
  grep -v '^ *+' conftest.er1 >conftest.err
8191
  rm -f conftest.er1
8192
  cat conftest.err >&5
8193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194
  (exit $ac_status); } &&
8195
         { ac_try='test -z "$ac_c_werror_flag"
8196
                         || test ! -s conftest.err'
8197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198
  (eval $ac_try) 2>&5
8199
  ac_status=$?
8200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201
  (exit $ac_status); }; } &&
8202
         { ac_try='test -s conftest$ac_exeext'
8203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204
  (eval $ac_try) 2>&5
8205
  ac_status=$?
8206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207
  (exit $ac_status); }; }; then
8208
  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'
8209
 
8210
else
8211
  echo "$as_me: failed program was:" >&5
8212
sed 's/^/| /' conftest.$ac_ext >&5
8213
 
8214
fi
8215
rm -f conftest.err conftest.$ac_objext \
8216
      conftest$ac_exeext conftest.$ac_ext
8217
        LDFLAGS="$save_LDFLAGS"
8218
      else
8219
        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'
8220
        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'
8221
      fi
8222
      archive_cmds_need_lc='no'
8223
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8224
      hardcode_libdir_separator=:
8225
      inherit_rpath=yes
8226
      link_all_deplibs=yes
8227
      ;;
8228
 
8229
    netbsd*)
8230
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8231
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8232
      else
8233
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8234
      fi
8235
      hardcode_libdir_flag_spec='-R$libdir'
8236
      hardcode_direct=yes
8237
      hardcode_shlibpath_var=no
8238
      ;;
8239
 
8240
    newsos6)
8241
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8242
      hardcode_direct=yes
8243
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8244
      hardcode_libdir_separator=:
8245
      hardcode_shlibpath_var=no
8246
      ;;
8247
 
8248
    *nto* | *qnx*)
8249
      ;;
8250
 
8251
    openbsd*)
8252
      hardcode_direct=yes
8253
      hardcode_shlibpath_var=no
8254
      hardcode_direct_absolute=yes
8255
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8256
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8257
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8258
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8259
        export_dynamic_flag_spec='${wl}-E'
8260
      else
8261
        case $host_os in
8262
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8263
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8264
          hardcode_libdir_flag_spec='-R$libdir'
8265
          ;;
8266
        *)
8267
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8268
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8269
          ;;
8270
        esac
8271
      fi
8272
      ;;
8273
 
8274
    os2*)
8275
      hardcode_libdir_flag_spec='-L$libdir'
8276
      hardcode_minus_L=yes
8277
      allow_undefined_flag=unsupported
8278
      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'
8279
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8280
      ;;
8281
 
8282
    osf3*)
8283
      if test "$GCC" = yes; then
8284
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8285
        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'
8286
      else
8287
        allow_undefined_flag=' -expect_unresolved \*'
8288
        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'
8289
      fi
8290
      archive_cmds_need_lc='no'
8291
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8292
      hardcode_libdir_separator=:
8293
      ;;
8294
 
8295
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8296
      if test "$GCC" = yes; then
8297
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8298
        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'
8299
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300
      else
8301
        allow_undefined_flag=' -expect_unresolved \*'
8302
        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'
8303
        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~
8304
        $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'
8305
 
8306
        # Both c and cxx compiler support -rpath directly
8307
        hardcode_libdir_flag_spec='-rpath $libdir'
8308
      fi
8309
      archive_cmds_need_lc='no'
8310
      hardcode_libdir_separator=:
8311
      ;;
8312
 
8313
    solaris*)
8314
      no_undefined_flag=' -z defs'
8315
      if test "$GCC" = yes; then
8316
        wlarc='${wl}'
8317
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8318
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8319
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8320
      else
8321
        case `$CC -V 2>&1` in
8322
        *"Compilers 5.0"*)
8323
          wlarc=''
8324
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8325
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8326
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8327
          ;;
8328
        *)
8329
          wlarc='${wl}'
8330
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8331
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8332
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8333
          ;;
8334
        esac
8335
      fi
8336
      hardcode_libdir_flag_spec='-R$libdir'
8337
      hardcode_shlibpath_var=no
8338
      case $host_os in
8339
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8340
      *)
8341
        # The compiler driver will combine and reorder linker options,
8342
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8343
        # but is careful enough not to reorder.
8344
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8345
        if test "$GCC" = yes; then
8346
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8347
        else
8348
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8349
        fi
8350
        ;;
8351
      esac
8352
      link_all_deplibs=yes
8353
      ;;
8354
 
8355
    sunos4*)
8356
      if test "x$host_vendor" = xsequent; then
8357
        # Use $CC to link under sequent, because it throws in some extra .o
8358
        # files that make .init and .fini sections work.
8359
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8360
      else
8361
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8362
      fi
8363
      hardcode_libdir_flag_spec='-L$libdir'
8364
      hardcode_direct=yes
8365
      hardcode_minus_L=yes
8366
      hardcode_shlibpath_var=no
8367
      ;;
8368
 
8369
    sysv4)
8370
      case $host_vendor in
8371
        sni)
8372
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373
          hardcode_direct=yes # is this really true???
8374
        ;;
8375
        siemens)
8376
          ## LD is ld it makes a PLAMLIB
8377
          ## CC just makes a GrossModule.
8378
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8379
          reload_cmds='$CC -r -o $output$reload_objs'
8380
          hardcode_direct=no
8381
        ;;
8382
        motorola)
8383
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8385
        ;;
8386
      esac
8387
      runpath_var='LD_RUN_PATH'
8388
      hardcode_shlibpath_var=no
8389
      ;;
8390
 
8391
    sysv4.3*)
8392
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
      hardcode_shlibpath_var=no
8394
      export_dynamic_flag_spec='-Bexport'
8395
      ;;
8396
 
8397
    sysv4*MP*)
8398
      if test -d /usr/nec; then
8399
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400
        hardcode_shlibpath_var=no
8401
        runpath_var=LD_RUN_PATH
8402
        hardcode_runpath_var=yes
8403
        ld_shlibs=yes
8404
      fi
8405
      ;;
8406
 
8407
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8408
      no_undefined_flag='${wl}-z,text'
8409
      archive_cmds_need_lc=no
8410
      hardcode_shlibpath_var=no
8411
      runpath_var='LD_RUN_PATH'
8412
 
8413
      if test "$GCC" = yes; then
8414
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416
      else
8417
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419
      fi
8420
      ;;
8421
 
8422
    sysv5* | sco3.2v5* | sco5v6*)
8423
      # Note: We can NOT use -z defs as we might desire, because we do not
8424
      # link with -lc, and that would cause any symbols used from libc to
8425
      # always be unresolved, which means just about no library would
8426
      # ever link correctly.  If we're not using GNU ld we use -z text
8427
      # though, which does catch some bad symbols but isn't as heavy-handed
8428
      # as -z defs.
8429
      no_undefined_flag='${wl}-z,text'
8430
      allow_undefined_flag='${wl}-z,nodefs'
8431
      archive_cmds_need_lc=no
8432
      hardcode_shlibpath_var=no
8433
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8434
      hardcode_libdir_separator=':'
8435
      link_all_deplibs=yes
8436
      export_dynamic_flag_spec='${wl}-Bexport'
8437
      runpath_var='LD_RUN_PATH'
8438
 
8439
      if test "$GCC" = yes; then
8440
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8441
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442
      else
8443
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8444
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445
      fi
8446
      ;;
8447
 
8448
    uts4*)
8449
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450
      hardcode_libdir_flag_spec='-L$libdir'
8451
      hardcode_shlibpath_var=no
8452
      ;;
8453
 
8454
    *)
8455
      ld_shlibs=no
8456
      ;;
8457
    esac
8458
 
8459
    if test x$host_vendor = xsni; then
8460
      case $host in
8461
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8462
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8463
        ;;
8464
      esac
8465
    fi
8466
  fi
8467
 
8468
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8469
echo "${ECHO_T}$ld_shlibs" >&6
8470
test "$ld_shlibs" = no && can_build_shared=no
8471
 
8472
with_gnu_ld=$with_gnu_ld
8473
 
8474
 
8475
 
8476
 
8477
 
8478
 
8479
 
8480
 
8481
 
8482
 
8483
 
8484
 
8485
 
8486
 
8487
 
8488
#
8489
# Do we need to explicitly link libc?
8490
#
8491
case "x$archive_cmds_need_lc" in
8492
x|xyes)
8493
  # Assume -lc should be added
8494
  archive_cmds_need_lc=yes
8495
 
8496
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8497
    case $archive_cmds in
8498
    *'~'*)
8499
      # FIXME: we may have to deal with multi-command sequences.
8500
      ;;
8501
    '$CC '*)
8502
      # Test whether the compiler implicitly links with -lc since on some
8503
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8504
      # to ld, don't add -lc before -lgcc.
8505
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8506
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8507
      $RM conftest*
8508
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8509
 
8510
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511
  (eval $ac_compile) 2>&5
8512
  ac_status=$?
8513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514
  (exit $ac_status); } 2>conftest.err; then
8515
        soname=conftest
8516
        lib=conftest
8517
        libobjs=conftest.$ac_objext
8518
        deplibs=
8519
        wl=$lt_prog_compiler_wl
8520
        pic_flag=$lt_prog_compiler_pic
8521
        compiler_flags=-v
8522
        linker_flags=-v
8523
        verstring=
8524
        output_objdir=.
8525
        libname=conftest
8526
        lt_save_allow_undefined_flag=$allow_undefined_flag
8527
        allow_undefined_flag=
8528
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8529
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8530
  ac_status=$?
8531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532
  (exit $ac_status); }
8533
        then
8534
          archive_cmds_need_lc=no
8535
        else
8536
          archive_cmds_need_lc=yes
8537
        fi
8538
        allow_undefined_flag=$lt_save_allow_undefined_flag
8539
      else
8540
        cat conftest.err 1>&5
8541
      fi
8542
      $RM conftest*
8543
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8544
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8545
      ;;
8546
    esac
8547
  fi
8548
  ;;
8549
esac
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
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8708
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8709
withGCC=$GCC
8710
if test "$withGCC" = yes; then
8711
  case $host_os in
8712
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8713
    *) lt_awk_arg="/^libraries:/" ;;
8714
  esac
8715
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8717
    # if the path contains ";" then we assume it to be the separator
8718
    # otherwise default to the standard path separator (i.e. ":") - it is
8719
    # assumed that no part of a normal pathname contains ";" but that should
8720
    # okay in the real world where ";" in dirpaths is itself problematic.
8721
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8722
  else
8723
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8724
  fi
8725
  # Ok, now we have the path, separated by spaces, we can step through it
8726
  # and add multilib dir if necessary.
8727
  lt_tmp_lt_search_path_spec=
8728
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8729
  for lt_sys_path in $lt_search_path_spec; do
8730
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8731
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8732
    else
8733
      test -d "$lt_sys_path" && \
8734
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8735
    fi
8736
  done
8737
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8738
BEGIN {RS=" "; FS="/|\n";} {
8739
  lt_foo="";
8740
  lt_count=0;
8741
  for (lt_i = NF; lt_i > 0; lt_i--) {
8742
    if ($lt_i != "" && $lt_i != ".") {
8743
      if ($lt_i == "..") {
8744
        lt_count++;
8745
      } else {
8746
        if (lt_count == 0) {
8747
          lt_foo="/" $lt_i lt_foo;
8748
        } else {
8749
          lt_count--;
8750
        }
8751
      }
8752
    }
8753
  }
8754
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8755
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8756
}'`
8757
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8758
else
8759
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8760
fi
8761
library_names_spec=
8762
libname_spec='lib$name'
8763
soname_spec=
8764
shrext_cmds=".so"
8765
postinstall_cmds=
8766
postuninstall_cmds=
8767
finish_cmds=
8768
finish_eval=
8769
shlibpath_var=
8770
shlibpath_overrides_runpath=unknown
8771
version_type=none
8772
dynamic_linker="$host_os ld.so"
8773
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8774
need_lib_prefix=unknown
8775
hardcode_into_libs=no
8776
 
8777
# when you set need_version to no, make sure it does not cause -set_version
8778
# flags to be left without arguments
8779
need_version=unknown
8780
 
8781
case $host_os in
8782
aix3*)
8783
  version_type=linux
8784
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785
  shlibpath_var=LIBPATH
8786
 
8787
  # AIX 3 has no versioning support, so we append a major version to the name.
8788
  soname_spec='${libname}${release}${shared_ext}$major'
8789
  ;;
8790
 
8791
aix[4-9]*)
8792
  version_type=linux
8793
  need_lib_prefix=no
8794
  need_version=no
8795
  hardcode_into_libs=yes
8796
  if test "$host_cpu" = ia64; then
8797
    # AIX 5 supports IA64
8798
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799
    shlibpath_var=LD_LIBRARY_PATH
8800
  else
8801
    # With GCC up to 2.95.x, collect2 would create an import file
8802
    # for dependence libraries.  The import file would start with
8803
    # the line `#! .'.  This would cause the generated library to
8804
    # depend on `.', always an invalid library.  This was fixed in
8805
    # development snapshots of GCC prior to 3.0.
8806
    case $host_os in
8807
      aix4 | aix4.[01] | aix4.[01].*)
8808
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809
           echo ' yes '
8810
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8811
        :
8812
      else
8813
        can_build_shared=no
8814
      fi
8815
      ;;
8816
    esac
8817
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818
    # soname into executable. Probably we can add versioning support to
8819
    # collect2, so additional links can be useful in future.
8820
    if test "$aix_use_runtimelinking" = yes; then
8821
      # If using run time linking (on AIX 4.2 or later) use lib.so
8822
      # instead of lib.a to let people know that these are not
8823
      # typical AIX shared libraries.
8824
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825
    else
8826
      # We preserve .a as extension for shared libraries through AIX4.2
8827
      # and later when we are not doing run time linking.
8828
      library_names_spec='${libname}${release}.a $libname.a'
8829
      soname_spec='${libname}${release}${shared_ext}$major'
8830
    fi
8831
    shlibpath_var=LIBPATH
8832
  fi
8833
  ;;
8834
 
8835
amigaos*)
8836
  if test "$host_cpu" = m68k; then
8837
    library_names_spec='$libname.ixlibrary $libname.a'
8838
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8839
    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'
8840
  else
8841
    dynamic_linker=no
8842
  fi
8843
  ;;
8844
 
8845
beos*)
8846
  library_names_spec='${libname}${shared_ext}'
8847
  dynamic_linker="$host_os ld.so"
8848
  shlibpath_var=LIBRARY_PATH
8849
  ;;
8850
 
8851
bsdi[45]*)
8852
  version_type=linux
8853
  need_version=no
8854
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855
  soname_spec='${libname}${release}${shared_ext}$major'
8856
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8857
  shlibpath_var=LD_LIBRARY_PATH
8858
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8859
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8860
  # the default ld.so.conf also contains /usr/contrib/lib and
8861
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8862
  # libtool to hard-code these into programs
8863
  ;;
8864
 
8865
cygwin* | mingw* | pw32*)
8866
  version_type=windows
8867
  shrext_cmds=".dll"
8868
  need_version=no
8869
  need_lib_prefix=no
8870
 
8871
  case $withGCC,$host_os in
8872
  yes,cygwin* | yes,mingw* | yes,pw32*)
8873
    library_names_spec='$libname.dll.a'
8874
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8875
    postinstall_cmds='base_file=`basename \${file}`~
8876
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8877
      dldir=$destdir/`dirname \$dlpath`~
8878
      test -d \$dldir || mkdir -p \$dldir~
8879
      $install_prog $dir/$dlname \$dldir/$dlname~
8880
      chmod a+x \$dldir/$dlname~
8881
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8882
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8883
      fi'
8884
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8885
      dlpath=$dir/\$dldll~
8886
       $RM \$dlpath'
8887
    shlibpath_overrides_runpath=yes
8888
 
8889
    case $host_os in
8890
    cygwin*)
8891
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8892
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8894
      ;;
8895
    mingw*)
8896
      # MinGW DLLs use traditional 'lib' prefix
8897
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8898
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8899
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8900
        # It is most probably a Windows format PATH printed by
8901
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8902
        # path with ; separators, and with drive letters. We can handle the
8903
        # drive letters (cygwin fileutils understands them), so leave them,
8904
        # especially as we might pass files found there to a mingw objdump,
8905
        # which wouldn't understand a cygwinified path. Ahh.
8906
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8907
      else
8908
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8909
      fi
8910
      ;;
8911
    pw32*)
8912
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8913
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8914
      ;;
8915
    esac
8916
    ;;
8917
 
8918
  *)
8919
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8920
    ;;
8921
  esac
8922
  dynamic_linker='Win32 ld.exe'
8923
  # FIXME: first we should search . and the directory the executable is in
8924
  shlibpath_var=PATH
8925
  ;;
8926
 
8927
darwin* | rhapsody*)
8928
  dynamic_linker="$host_os dyld"
8929
  version_type=darwin
8930
  need_lib_prefix=no
8931
  need_version=no
8932
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8933
  soname_spec='${libname}${release}${major}$shared_ext'
8934
  shlibpath_overrides_runpath=yes
8935
  shlibpath_var=DYLD_LIBRARY_PATH
8936
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8937
 
8938
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8939
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8940
  ;;
8941
 
8942
dgux*)
8943
  version_type=linux
8944
  need_lib_prefix=no
8945
  need_version=no
8946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8947
  soname_spec='${libname}${release}${shared_ext}$major'
8948
  shlibpath_var=LD_LIBRARY_PATH
8949
  ;;
8950
 
8951
freebsd1*)
8952
  dynamic_linker=no
8953
  ;;
8954
 
8955
freebsd* | dragonfly*)
8956
  # DragonFly does not have aout.  When/if they implement a new
8957
  # versioning mechanism, adjust this.
8958
  if test -x /usr/bin/objformat; then
8959
    objformat=`/usr/bin/objformat`
8960
  else
8961
    case $host_os in
8962
    freebsd[123]*) objformat=aout ;;
8963
    *) objformat=elf ;;
8964
    esac
8965
  fi
8966
  version_type=freebsd-$objformat
8967
  case $version_type in
8968
    freebsd-elf*)
8969
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8970
      need_version=no
8971
      need_lib_prefix=no
8972
      ;;
8973
    freebsd-*)
8974
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8975
      need_version=yes
8976
      ;;
8977
  esac
8978
  shlibpath_var=LD_LIBRARY_PATH
8979
  case $host_os in
8980
  freebsd2*)
8981
    shlibpath_overrides_runpath=yes
8982
    ;;
8983
  freebsd3.[01]* | freebsdelf3.[01]*)
8984
    shlibpath_overrides_runpath=yes
8985
    hardcode_into_libs=yes
8986
    ;;
8987
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8988
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8989
    shlibpath_overrides_runpath=no
8990
    hardcode_into_libs=yes
8991
    ;;
8992
  *) # from 4.6 on, and DragonFly
8993
    shlibpath_overrides_runpath=yes
8994
    hardcode_into_libs=yes
8995
    ;;
8996
  esac
8997
  ;;
8998
 
8999
gnu*)
9000
  version_type=linux
9001
  need_lib_prefix=no
9002
  need_version=no
9003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9004
  soname_spec='${libname}${release}${shared_ext}$major'
9005
  shlibpath_var=LD_LIBRARY_PATH
9006
  hardcode_into_libs=yes
9007
  ;;
9008
 
9009
hpux9* | hpux10* | hpux11*)
9010
  # Give a soname corresponding to the major version so that dld.sl refuses to
9011
  # link against other versions.
9012
  version_type=sunos
9013
  need_lib_prefix=no
9014
  need_version=no
9015
  case $host_cpu in
9016
  ia64*)
9017
    shrext_cmds='.so'
9018
    hardcode_into_libs=yes
9019
    dynamic_linker="$host_os dld.so"
9020
    shlibpath_var=LD_LIBRARY_PATH
9021
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9022
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023
    soname_spec='${libname}${release}${shared_ext}$major'
9024
    if test "X$HPUX_IA64_MODE" = X32; then
9025
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9026
    else
9027
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9028
    fi
9029
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9030
    ;;
9031
  hppa*64*)
9032
    shrext_cmds='.sl'
9033
    hardcode_into_libs=yes
9034
    dynamic_linker="$host_os dld.sl"
9035
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9036
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038
    soname_spec='${libname}${release}${shared_ext}$major'
9039
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9040
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9041
    ;;
9042
  *)
9043
    shrext_cmds='.sl'
9044
    dynamic_linker="$host_os dld.sl"
9045
    shlibpath_var=SHLIB_PATH
9046
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9047
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048
    soname_spec='${libname}${release}${shared_ext}$major'
9049
    ;;
9050
  esac
9051
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9052
  postinstall_cmds='chmod 555 $lib'
9053
  ;;
9054
 
9055
interix[3-9]*)
9056
  version_type=linux
9057
  need_lib_prefix=no
9058
  need_version=no
9059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060
  soname_spec='${libname}${release}${shared_ext}$major'
9061
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9062
  shlibpath_var=LD_LIBRARY_PATH
9063
  shlibpath_overrides_runpath=no
9064
  hardcode_into_libs=yes
9065
  ;;
9066
 
9067
irix5* | irix6* | nonstopux*)
9068
  case $host_os in
9069
    nonstopux*) version_type=nonstopux ;;
9070
    *)
9071
        if test "$lt_cv_prog_gnu_ld" = yes; then
9072
                version_type=linux
9073
        else
9074
                version_type=irix
9075
        fi ;;
9076
  esac
9077
  need_lib_prefix=no
9078
  need_version=no
9079
  soname_spec='${libname}${release}${shared_ext}$major'
9080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9081
  case $host_os in
9082
  irix5* | nonstopux*)
9083
    libsuff= shlibsuff=
9084
    ;;
9085
  *)
9086
    case $LD in # libtool.m4 will add one of these switches to LD
9087
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9088
      libsuff= shlibsuff= libmagic=32-bit;;
9089
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9090
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9091
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9092
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9093
    *) libsuff= shlibsuff= libmagic=never-match;;
9094
    esac
9095
    ;;
9096
  esac
9097
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9098
  shlibpath_overrides_runpath=no
9099
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9100
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9101
  hardcode_into_libs=yes
9102
  ;;
9103
 
9104
# No shared lib support for Linux oldld, aout, or coff.
9105
linux*oldld* | linux*aout* | linux*coff*)
9106
  dynamic_linker=no
9107
  ;;
9108
 
9109
# This must be Linux ELF.
9110
linux* | k*bsd*-gnu)
9111
  version_type=linux
9112
  need_lib_prefix=no
9113
  need_version=no
9114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115
  soname_spec='${libname}${release}${shared_ext}$major'
9116
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9117
  shlibpath_var=LD_LIBRARY_PATH
9118
  shlibpath_overrides_runpath=no
9119
  # Some binutils ld are patched to set DT_RUNPATH
9120
  save_LDFLAGS=$LDFLAGS
9121
  save_libdir=$libdir
9122
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9123
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9124
  cat >conftest.$ac_ext <<_ACEOF
9125
/* confdefs.h.  */
9126
_ACEOF
9127
cat confdefs.h >>conftest.$ac_ext
9128
cat >>conftest.$ac_ext <<_ACEOF
9129
/* end confdefs.h.  */
9130
 
9131
int
9132
main ()
9133
{
9134
 
9135
  ;
9136
  return 0;
9137
}
9138
_ACEOF
9139
rm -f conftest.$ac_objext conftest$ac_exeext
9140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141
  (eval $ac_link) 2>conftest.er1
9142
  ac_status=$?
9143
  grep -v '^ *+' conftest.er1 >conftest.err
9144
  rm -f conftest.er1
9145
  cat conftest.err >&5
9146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147
  (exit $ac_status); } &&
9148
         { ac_try='test -z "$ac_c_werror_flag"
9149
                         || test ! -s conftest.err'
9150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151
  (eval $ac_try) 2>&5
9152
  ac_status=$?
9153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154
  (exit $ac_status); }; } &&
9155
         { ac_try='test -s conftest$ac_exeext'
9156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157
  (eval $ac_try) 2>&5
9158
  ac_status=$?
9159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160
  (exit $ac_status); }; }; then
9161
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9162
  shlibpath_overrides_runpath=yes
9163
fi
9164
 
9165
else
9166
  echo "$as_me: failed program was:" >&5
9167
sed 's/^/| /' conftest.$ac_ext >&5
9168
 
9169
fi
9170
rm -f conftest.err conftest.$ac_objext \
9171
      conftest$ac_exeext conftest.$ac_ext
9172
  LDFLAGS=$save_LDFLAGS
9173
  libdir=$save_libdir
9174
 
9175
  # This implies no fast_install, which is unacceptable.
9176
  # Some rework will be needed to allow for fast_install
9177
  # before this can be enabled.
9178
  hardcode_into_libs=yes
9179
 
9180
  # Append ld.so.conf contents to the search path
9181
  if test -f /etc/ld.so.conf; then
9182
    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' ' '`
9183
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9184
  fi
9185
 
9186
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9187
  # powerpc, because MkLinux only supported shared libraries with the
9188
  # GNU dynamic linker.  Since this was broken with cross compilers,
9189
  # most powerpc-linux boxes support dynamic linking these days and
9190
  # people can always --disable-shared, the test was removed, and we
9191
  # assume the GNU/Linux dynamic linker is in use.
9192
  dynamic_linker='GNU/Linux ld.so'
9193
  ;;
9194
 
9195
netbsd*)
9196
  version_type=sunos
9197
  need_lib_prefix=no
9198
  need_version=no
9199
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9201
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9202
    dynamic_linker='NetBSD (a.out) ld.so'
9203
  else
9204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9205
    soname_spec='${libname}${release}${shared_ext}$major'
9206
    dynamic_linker='NetBSD ld.elf_so'
9207
  fi
9208
  shlibpath_var=LD_LIBRARY_PATH
9209
  shlibpath_overrides_runpath=yes
9210
  hardcode_into_libs=yes
9211
  ;;
9212
 
9213
newsos6)
9214
  version_type=linux
9215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216
  shlibpath_var=LD_LIBRARY_PATH
9217
  shlibpath_overrides_runpath=yes
9218
  ;;
9219
 
9220
*nto* | *qnx*)
9221
  version_type=qnx
9222
  need_lib_prefix=no
9223
  need_version=no
9224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225
  soname_spec='${libname}${release}${shared_ext}$major'
9226
  shlibpath_var=LD_LIBRARY_PATH
9227
  shlibpath_overrides_runpath=no
9228
  hardcode_into_libs=yes
9229
  dynamic_linker='ldqnx.so'
9230
  ;;
9231
 
9232
openbsd*)
9233
  version_type=sunos
9234
  sys_lib_dlsearch_path_spec="/usr/lib"
9235
  need_lib_prefix=no
9236
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237
  case $host_os in
9238
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9239
    *)                          need_version=no  ;;
9240
  esac
9241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9243
  shlibpath_var=LD_LIBRARY_PATH
9244
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245
    case $host_os in
9246
      openbsd2.[89] | openbsd2.[89].*)
9247
        shlibpath_overrides_runpath=no
9248
        ;;
9249
      *)
9250
        shlibpath_overrides_runpath=yes
9251
        ;;
9252
      esac
9253
  else
9254
    shlibpath_overrides_runpath=yes
9255
  fi
9256
  ;;
9257
 
9258
os2*)
9259
  libname_spec='$name'
9260
  shrext_cmds=".dll"
9261
  need_lib_prefix=no
9262
  library_names_spec='$libname${shared_ext} $libname.a'
9263
  dynamic_linker='OS/2 ld.exe'
9264
  shlibpath_var=LIBPATH
9265
  ;;
9266
 
9267
osf3* | osf4* | osf5*)
9268
  version_type=osf
9269
  need_lib_prefix=no
9270
  need_version=no
9271
  soname_spec='${libname}${release}${shared_ext}$major'
9272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273
  shlibpath_var=LD_LIBRARY_PATH
9274
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9275
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9276
  ;;
9277
 
9278
rdos*)
9279
  dynamic_linker=no
9280
  ;;
9281
 
9282
solaris*)
9283
  version_type=linux
9284
  need_lib_prefix=no
9285
  need_version=no
9286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287
  soname_spec='${libname}${release}${shared_ext}$major'
9288
  shlibpath_var=LD_LIBRARY_PATH
9289
  shlibpath_overrides_runpath=yes
9290
  hardcode_into_libs=yes
9291
  # ldd complains unless libraries are executable
9292
  postinstall_cmds='chmod +x $lib'
9293
  ;;
9294
 
9295
sunos4*)
9296
  version_type=sunos
9297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9299
  shlibpath_var=LD_LIBRARY_PATH
9300
  shlibpath_overrides_runpath=yes
9301
  if test "$with_gnu_ld" = yes; then
9302
    need_lib_prefix=no
9303
  fi
9304
  need_version=yes
9305
  ;;
9306
 
9307
sysv4 | sysv4.3*)
9308
  version_type=linux
9309
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310
  soname_spec='${libname}${release}${shared_ext}$major'
9311
  shlibpath_var=LD_LIBRARY_PATH
9312
  case $host_vendor in
9313
    sni)
9314
      shlibpath_overrides_runpath=no
9315
      need_lib_prefix=no
9316
      runpath_var=LD_RUN_PATH
9317
      ;;
9318
    siemens)
9319
      need_lib_prefix=no
9320
      ;;
9321
    motorola)
9322
      need_lib_prefix=no
9323
      need_version=no
9324
      shlibpath_overrides_runpath=no
9325
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9326
      ;;
9327
  esac
9328
  ;;
9329
 
9330
sysv4*MP*)
9331
  if test -d /usr/nec ;then
9332
    version_type=linux
9333
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9334
    soname_spec='$libname${shared_ext}.$major'
9335
    shlibpath_var=LD_LIBRARY_PATH
9336
  fi
9337
  ;;
9338
 
9339
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9340
  version_type=freebsd-elf
9341
  need_lib_prefix=no
9342
  need_version=no
9343
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9344
  soname_spec='${libname}${release}${shared_ext}$major'
9345
  shlibpath_var=LD_LIBRARY_PATH
9346
  shlibpath_overrides_runpath=yes
9347
  hardcode_into_libs=yes
9348
  if test "$with_gnu_ld" = yes; then
9349
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9350
  else
9351
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9352
    case $host_os in
9353
      sco3.2v5*)
9354
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9355
        ;;
9356
    esac
9357
  fi
9358
  sys_lib_dlsearch_path_spec='/usr/lib'
9359
  ;;
9360
 
9361
tpf*)
9362
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9363
  version_type=linux
9364
  need_lib_prefix=no
9365
  need_version=no
9366
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367
  shlibpath_var=LD_LIBRARY_PATH
9368
  shlibpath_overrides_runpath=no
9369
  hardcode_into_libs=yes
9370
  ;;
9371
 
9372
uts4*)
9373
  version_type=linux
9374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375
  soname_spec='${libname}${release}${shared_ext}$major'
9376
  shlibpath_var=LD_LIBRARY_PATH
9377
  ;;
9378
 
9379
*)
9380
  dynamic_linker=no
9381
  ;;
9382
esac
9383
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9384
echo "${ECHO_T}$dynamic_linker" >&6
9385
test "$dynamic_linker" = no && can_build_shared=no
9386
 
9387
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9388
if test "$GCC" = yes; then
9389
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9390
fi
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
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9479
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9480
hardcode_action=
9481
if test -n "$hardcode_libdir_flag_spec" ||
9482
   test -n "$runpath_var" ||
9483
   test "X$hardcode_automatic" = "Xyes" ; then
9484
 
9485
  # We can hardcode non-existent directories.
9486
  if test "$hardcode_direct" != no &&
9487
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9488
     # have to relink, otherwise we might link with an installed library
9489
     # when we should be linking with a yet-to-be-installed one
9490
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9491
     test "$hardcode_minus_L" != no; then
9492
    # Linking always hardcodes the temporary library directory.
9493
    hardcode_action=relink
9494
  else
9495
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9496
    hardcode_action=immediate
9497
  fi
9498
else
9499
  # We cannot hardcode anything, or else we can only hardcode existing
9500
  # directories.
9501
  hardcode_action=unsupported
9502
fi
9503
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9504
echo "${ECHO_T}$hardcode_action" >&6
9505
 
9506
if test "$hardcode_action" = relink ||
9507
   test "$inherit_rpath" = yes; then
9508
  # Fast installation is not supported
9509
  enable_fast_install=no
9510
elif test "$shlibpath_overrides_runpath" = yes ||
9511
     test "$enable_shared" = no; then
9512
  # Fast installation is not necessary
9513
  enable_fast_install=needless
9514
fi
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
  if test "x$enable_dlopen" != xyes; then
9522
  enable_dlopen=unknown
9523
  enable_dlopen_self=unknown
9524
  enable_dlopen_self_static=unknown
9525
else
9526
  lt_cv_dlopen=no
9527
  lt_cv_dlopen_libs=
9528
 
9529
  case $host_os in
9530
  beos*)
9531
    lt_cv_dlopen="load_add_on"
9532
    lt_cv_dlopen_libs=
9533
    lt_cv_dlopen_self=yes
9534
    ;;
9535
 
9536
  mingw* | pw32*)
9537
    lt_cv_dlopen="LoadLibrary"
9538
    lt_cv_dlopen_libs=
9539
    ;;
9540
 
9541
  cygwin*)
9542
    lt_cv_dlopen="dlopen"
9543
    lt_cv_dlopen_libs=
9544
    ;;
9545
 
9546
  darwin*)
9547
  # if libdl is installed we need to link against it
9548
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9549
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9550
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9551
  echo $ECHO_N "(cached) $ECHO_C" >&6
9552
else
9553
  ac_check_lib_save_LIBS=$LIBS
9554
LIBS="-ldl  $LIBS"
9555
cat >conftest.$ac_ext <<_ACEOF
9556
/* confdefs.h.  */
9557
_ACEOF
9558
cat confdefs.h >>conftest.$ac_ext
9559
cat >>conftest.$ac_ext <<_ACEOF
9560
/* end confdefs.h.  */
9561
 
9562
/* Override any gcc2 internal prototype to avoid an error.  */
9563
#ifdef __cplusplus
9564
extern "C"
9565
#endif
9566
/* We use char because int might match the return type of a gcc2
9567
   builtin and then its argument prototype would still apply.  */
9568
char dlopen ();
9569
int
9570
main ()
9571
{
9572
dlopen ();
9573
  ;
9574
  return 0;
9575
}
9576
_ACEOF
9577
rm -f conftest.$ac_objext conftest$ac_exeext
9578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9579
  (eval $ac_link) 2>conftest.er1
9580
  ac_status=$?
9581
  grep -v '^ *+' conftest.er1 >conftest.err
9582
  rm -f conftest.er1
9583
  cat conftest.err >&5
9584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585
  (exit $ac_status); } &&
9586
         { ac_try='test -z "$ac_c_werror_flag"
9587
                         || test ! -s conftest.err'
9588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589
  (eval $ac_try) 2>&5
9590
  ac_status=$?
9591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592
  (exit $ac_status); }; } &&
9593
         { ac_try='test -s conftest$ac_exeext'
9594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595
  (eval $ac_try) 2>&5
9596
  ac_status=$?
9597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598
  (exit $ac_status); }; }; then
9599
  ac_cv_lib_dl_dlopen=yes
9600
else
9601
  echo "$as_me: failed program was:" >&5
9602
sed 's/^/| /' conftest.$ac_ext >&5
9603
 
9604
ac_cv_lib_dl_dlopen=no
9605
fi
9606
rm -f conftest.err conftest.$ac_objext \
9607
      conftest$ac_exeext conftest.$ac_ext
9608
LIBS=$ac_check_lib_save_LIBS
9609
fi
9610
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9611
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9612
if test $ac_cv_lib_dl_dlopen = yes; then
9613
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9614
else
9615
 
9616
    lt_cv_dlopen="dyld"
9617
    lt_cv_dlopen_libs=
9618
    lt_cv_dlopen_self=yes
9619
 
9620
fi
9621
 
9622
    ;;
9623
 
9624
  *)
9625
    echo "$as_me:$LINENO: checking for shl_load" >&5
9626
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9627
if test "${ac_cv_func_shl_load+set}" = set; then
9628
  echo $ECHO_N "(cached) $ECHO_C" >&6
9629
else
9630
  cat >conftest.$ac_ext <<_ACEOF
9631
/* confdefs.h.  */
9632
_ACEOF
9633
cat confdefs.h >>conftest.$ac_ext
9634
cat >>conftest.$ac_ext <<_ACEOF
9635
/* end confdefs.h.  */
9636
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9637
   For example, HP-UX 11i  declares gettimeofday.  */
9638
#define shl_load innocuous_shl_load
9639
 
9640
/* System header to define __stub macros and hopefully few prototypes,
9641
    which can conflict with char shl_load (); below.
9642
    Prefer  to  if __STDC__ is defined, since
9643
     exists even on freestanding compilers.  */
9644
 
9645
#ifdef __STDC__
9646
# include 
9647
#else
9648
# include 
9649
#endif
9650
 
9651
#undef shl_load
9652
 
9653
/* Override any gcc2 internal prototype to avoid an error.  */
9654
#ifdef __cplusplus
9655
extern "C"
9656
{
9657
#endif
9658
/* We use char because int might match the return type of a gcc2
9659
   builtin and then its argument prototype would still apply.  */
9660
char shl_load ();
9661
/* The GNU C library defines this for functions which it implements
9662
    to always fail with ENOSYS.  Some functions are actually named
9663
    something starting with __ and the normal name is an alias.  */
9664
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9665
choke me
9666
#else
9667
char (*f) () = shl_load;
9668
#endif
9669
#ifdef __cplusplus
9670
}
9671
#endif
9672
 
9673
int
9674
main ()
9675
{
9676
return f != shl_load;
9677
  ;
9678
  return 0;
9679
}
9680
_ACEOF
9681
rm -f conftest.$ac_objext conftest$ac_exeext
9682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683
  (eval $ac_link) 2>conftest.er1
9684
  ac_status=$?
9685
  grep -v '^ *+' conftest.er1 >conftest.err
9686
  rm -f conftest.er1
9687
  cat conftest.err >&5
9688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689
  (exit $ac_status); } &&
9690
         { ac_try='test -z "$ac_c_werror_flag"
9691
                         || test ! -s conftest.err'
9692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693
  (eval $ac_try) 2>&5
9694
  ac_status=$?
9695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696
  (exit $ac_status); }; } &&
9697
         { ac_try='test -s conftest$ac_exeext'
9698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699
  (eval $ac_try) 2>&5
9700
  ac_status=$?
9701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702
  (exit $ac_status); }; }; then
9703
  ac_cv_func_shl_load=yes
9704
else
9705
  echo "$as_me: failed program was:" >&5
9706
sed 's/^/| /' conftest.$ac_ext >&5
9707
 
9708
ac_cv_func_shl_load=no
9709
fi
9710
rm -f conftest.err conftest.$ac_objext \
9711
      conftest$ac_exeext conftest.$ac_ext
9712
fi
9713
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9714
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9715
if test $ac_cv_func_shl_load = yes; then
9716
  lt_cv_dlopen="shl_load"
9717
else
9718
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9719
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9720
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9721
  echo $ECHO_N "(cached) $ECHO_C" >&6
9722
else
9723
  ac_check_lib_save_LIBS=$LIBS
9724
LIBS="-ldld  $LIBS"
9725
cat >conftest.$ac_ext <<_ACEOF
9726
/* confdefs.h.  */
9727
_ACEOF
9728
cat confdefs.h >>conftest.$ac_ext
9729
cat >>conftest.$ac_ext <<_ACEOF
9730
/* end confdefs.h.  */
9731
 
9732
/* Override any gcc2 internal prototype to avoid an error.  */
9733
#ifdef __cplusplus
9734
extern "C"
9735
#endif
9736
/* We use char because int might match the return type of a gcc2
9737
   builtin and then its argument prototype would still apply.  */
9738
char shl_load ();
9739
int
9740
main ()
9741
{
9742
shl_load ();
9743
  ;
9744
  return 0;
9745
}
9746
_ACEOF
9747
rm -f conftest.$ac_objext conftest$ac_exeext
9748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749
  (eval $ac_link) 2>conftest.er1
9750
  ac_status=$?
9751
  grep -v '^ *+' conftest.er1 >conftest.err
9752
  rm -f conftest.er1
9753
  cat conftest.err >&5
9754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755
  (exit $ac_status); } &&
9756
         { ac_try='test -z "$ac_c_werror_flag"
9757
                         || test ! -s conftest.err'
9758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759
  (eval $ac_try) 2>&5
9760
  ac_status=$?
9761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
  (exit $ac_status); }; } &&
9763
         { ac_try='test -s conftest$ac_exeext'
9764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765
  (eval $ac_try) 2>&5
9766
  ac_status=$?
9767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768
  (exit $ac_status); }; }; then
9769
  ac_cv_lib_dld_shl_load=yes
9770
else
9771
  echo "$as_me: failed program was:" >&5
9772
sed 's/^/| /' conftest.$ac_ext >&5
9773
 
9774
ac_cv_lib_dld_shl_load=no
9775
fi
9776
rm -f conftest.err conftest.$ac_objext \
9777
      conftest$ac_exeext conftest.$ac_ext
9778
LIBS=$ac_check_lib_save_LIBS
9779
fi
9780
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9781
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9782
if test $ac_cv_lib_dld_shl_load = yes; then
9783
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9784
else
9785
  echo "$as_me:$LINENO: checking for dlopen" >&5
9786
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9787
if test "${ac_cv_func_dlopen+set}" = set; then
9788
  echo $ECHO_N "(cached) $ECHO_C" >&6
9789
else
9790
  cat >conftest.$ac_ext <<_ACEOF
9791
/* confdefs.h.  */
9792
_ACEOF
9793
cat confdefs.h >>conftest.$ac_ext
9794
cat >>conftest.$ac_ext <<_ACEOF
9795
/* end confdefs.h.  */
9796
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9797
   For example, HP-UX 11i  declares gettimeofday.  */
9798
#define dlopen innocuous_dlopen
9799
 
9800
/* System header to define __stub macros and hopefully few prototypes,
9801
    which can conflict with char dlopen (); below.
9802
    Prefer  to  if __STDC__ is defined, since
9803
     exists even on freestanding compilers.  */
9804
 
9805
#ifdef __STDC__
9806
# include 
9807
#else
9808
# include 
9809
#endif
9810
 
9811
#undef dlopen
9812
 
9813
/* Override any gcc2 internal prototype to avoid an error.  */
9814
#ifdef __cplusplus
9815
extern "C"
9816
{
9817
#endif
9818
/* We use char because int might match the return type of a gcc2
9819
   builtin and then its argument prototype would still apply.  */
9820
char dlopen ();
9821
/* The GNU C library defines this for functions which it implements
9822
    to always fail with ENOSYS.  Some functions are actually named
9823
    something starting with __ and the normal name is an alias.  */
9824
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9825
choke me
9826
#else
9827
char (*f) () = dlopen;
9828
#endif
9829
#ifdef __cplusplus
9830
}
9831
#endif
9832
 
9833
int
9834
main ()
9835
{
9836
return f != dlopen;
9837
  ;
9838
  return 0;
9839
}
9840
_ACEOF
9841
rm -f conftest.$ac_objext conftest$ac_exeext
9842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9843
  (eval $ac_link) 2>conftest.er1
9844
  ac_status=$?
9845
  grep -v '^ *+' conftest.er1 >conftest.err
9846
  rm -f conftest.er1
9847
  cat conftest.err >&5
9848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849
  (exit $ac_status); } &&
9850
         { ac_try='test -z "$ac_c_werror_flag"
9851
                         || test ! -s conftest.err'
9852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853
  (eval $ac_try) 2>&5
9854
  ac_status=$?
9855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856
  (exit $ac_status); }; } &&
9857
         { ac_try='test -s conftest$ac_exeext'
9858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859
  (eval $ac_try) 2>&5
9860
  ac_status=$?
9861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862
  (exit $ac_status); }; }; then
9863
  ac_cv_func_dlopen=yes
9864
else
9865
  echo "$as_me: failed program was:" >&5
9866
sed 's/^/| /' conftest.$ac_ext >&5
9867
 
9868
ac_cv_func_dlopen=no
9869
fi
9870
rm -f conftest.err conftest.$ac_objext \
9871
      conftest$ac_exeext conftest.$ac_ext
9872
fi
9873
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9874
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9875
if test $ac_cv_func_dlopen = yes; then
9876
  lt_cv_dlopen="dlopen"
9877
else
9878
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9879
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9880
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9881
  echo $ECHO_N "(cached) $ECHO_C" >&6
9882
else
9883
  ac_check_lib_save_LIBS=$LIBS
9884
LIBS="-ldl  $LIBS"
9885
cat >conftest.$ac_ext <<_ACEOF
9886
/* confdefs.h.  */
9887
_ACEOF
9888
cat confdefs.h >>conftest.$ac_ext
9889
cat >>conftest.$ac_ext <<_ACEOF
9890
/* end confdefs.h.  */
9891
 
9892
/* Override any gcc2 internal prototype to avoid an error.  */
9893
#ifdef __cplusplus
9894
extern "C"
9895
#endif
9896
/* We use char because int might match the return type of a gcc2
9897
   builtin and then its argument prototype would still apply.  */
9898
char dlopen ();
9899
int
9900
main ()
9901
{
9902
dlopen ();
9903
  ;
9904
  return 0;
9905
}
9906
_ACEOF
9907
rm -f conftest.$ac_objext conftest$ac_exeext
9908
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909
  (eval $ac_link) 2>conftest.er1
9910
  ac_status=$?
9911
  grep -v '^ *+' conftest.er1 >conftest.err
9912
  rm -f conftest.er1
9913
  cat conftest.err >&5
9914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915
  (exit $ac_status); } &&
9916
         { ac_try='test -z "$ac_c_werror_flag"
9917
                         || test ! -s conftest.err'
9918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919
  (eval $ac_try) 2>&5
9920
  ac_status=$?
9921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922
  (exit $ac_status); }; } &&
9923
         { ac_try='test -s conftest$ac_exeext'
9924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925
  (eval $ac_try) 2>&5
9926
  ac_status=$?
9927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928
  (exit $ac_status); }; }; then
9929
  ac_cv_lib_dl_dlopen=yes
9930
else
9931
  echo "$as_me: failed program was:" >&5
9932
sed 's/^/| /' conftest.$ac_ext >&5
9933
 
9934
ac_cv_lib_dl_dlopen=no
9935
fi
9936
rm -f conftest.err conftest.$ac_objext \
9937
      conftest$ac_exeext conftest.$ac_ext
9938
LIBS=$ac_check_lib_save_LIBS
9939
fi
9940
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9942
if test $ac_cv_lib_dl_dlopen = yes; then
9943
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9944
else
9945
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9946
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9947
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9948
  echo $ECHO_N "(cached) $ECHO_C" >&6
9949
else
9950
  ac_check_lib_save_LIBS=$LIBS
9951
LIBS="-lsvld  $LIBS"
9952
cat >conftest.$ac_ext <<_ACEOF
9953
/* confdefs.h.  */
9954
_ACEOF
9955
cat confdefs.h >>conftest.$ac_ext
9956
cat >>conftest.$ac_ext <<_ACEOF
9957
/* end confdefs.h.  */
9958
 
9959
/* Override any gcc2 internal prototype to avoid an error.  */
9960
#ifdef __cplusplus
9961
extern "C"
9962
#endif
9963
/* We use char because int might match the return type of a gcc2
9964
   builtin and then its argument prototype would still apply.  */
9965
char dlopen ();
9966
int
9967
main ()
9968
{
9969
dlopen ();
9970
  ;
9971
  return 0;
9972
}
9973
_ACEOF
9974
rm -f conftest.$ac_objext conftest$ac_exeext
9975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976
  (eval $ac_link) 2>conftest.er1
9977
  ac_status=$?
9978
  grep -v '^ *+' conftest.er1 >conftest.err
9979
  rm -f conftest.er1
9980
  cat conftest.err >&5
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
  (exit $ac_status); } &&
9983
         { ac_try='test -z "$ac_c_werror_flag"
9984
                         || test ! -s conftest.err'
9985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986
  (eval $ac_try) 2>&5
9987
  ac_status=$?
9988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989
  (exit $ac_status); }; } &&
9990
         { ac_try='test -s conftest$ac_exeext'
9991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992
  (eval $ac_try) 2>&5
9993
  ac_status=$?
9994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995
  (exit $ac_status); }; }; then
9996
  ac_cv_lib_svld_dlopen=yes
9997
else
9998
  echo "$as_me: failed program was:" >&5
9999
sed 's/^/| /' conftest.$ac_ext >&5
10000
 
10001
ac_cv_lib_svld_dlopen=no
10002
fi
10003
rm -f conftest.err conftest.$ac_objext \
10004
      conftest$ac_exeext conftest.$ac_ext
10005
LIBS=$ac_check_lib_save_LIBS
10006
fi
10007
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10008
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10009
if test $ac_cv_lib_svld_dlopen = yes; then
10010
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10011
else
10012
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10013
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10014
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10015
  echo $ECHO_N "(cached) $ECHO_C" >&6
10016
else
10017
  ac_check_lib_save_LIBS=$LIBS
10018
LIBS="-ldld  $LIBS"
10019
cat >conftest.$ac_ext <<_ACEOF
10020
/* confdefs.h.  */
10021
_ACEOF
10022
cat confdefs.h >>conftest.$ac_ext
10023
cat >>conftest.$ac_ext <<_ACEOF
10024
/* end confdefs.h.  */
10025
 
10026
/* Override any gcc2 internal prototype to avoid an error.  */
10027
#ifdef __cplusplus
10028
extern "C"
10029
#endif
10030
/* We use char because int might match the return type of a gcc2
10031
   builtin and then its argument prototype would still apply.  */
10032
char dld_link ();
10033
int
10034
main ()
10035
{
10036
dld_link ();
10037
  ;
10038
  return 0;
10039
}
10040
_ACEOF
10041
rm -f conftest.$ac_objext conftest$ac_exeext
10042
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043
  (eval $ac_link) 2>conftest.er1
10044
  ac_status=$?
10045
  grep -v '^ *+' conftest.er1 >conftest.err
10046
  rm -f conftest.er1
10047
  cat conftest.err >&5
10048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049
  (exit $ac_status); } &&
10050
         { ac_try='test -z "$ac_c_werror_flag"
10051
                         || test ! -s conftest.err'
10052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053
  (eval $ac_try) 2>&5
10054
  ac_status=$?
10055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056
  (exit $ac_status); }; } &&
10057
         { ac_try='test -s conftest$ac_exeext'
10058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059
  (eval $ac_try) 2>&5
10060
  ac_status=$?
10061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062
  (exit $ac_status); }; }; then
10063
  ac_cv_lib_dld_dld_link=yes
10064
else
10065
  echo "$as_me: failed program was:" >&5
10066
sed 's/^/| /' conftest.$ac_ext >&5
10067
 
10068
ac_cv_lib_dld_dld_link=no
10069
fi
10070
rm -f conftest.err conftest.$ac_objext \
10071
      conftest$ac_exeext conftest.$ac_ext
10072
LIBS=$ac_check_lib_save_LIBS
10073
fi
10074
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10075
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10076
if test $ac_cv_lib_dld_dld_link = yes; then
10077
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10078
fi
10079
 
10080
 
10081
fi
10082
 
10083
 
10084
fi
10085
 
10086
 
10087
fi
10088
 
10089
 
10090
fi
10091
 
10092
 
10093
fi
10094
 
10095
    ;;
10096
  esac
10097
 
10098
  if test "x$lt_cv_dlopen" != xno; then
10099
    enable_dlopen=yes
10100
  else
10101
    enable_dlopen=no
10102
  fi
10103
 
10104
  case $lt_cv_dlopen in
10105
  dlopen)
10106
    save_CPPFLAGS="$CPPFLAGS"
10107
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10108
 
10109
    save_LDFLAGS="$LDFLAGS"
10110
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10111
 
10112
    save_LIBS="$LIBS"
10113
    LIBS="$lt_cv_dlopen_libs $LIBS"
10114
 
10115
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10116
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10117
if test "${lt_cv_dlopen_self+set}" = set; then
10118
  echo $ECHO_N "(cached) $ECHO_C" >&6
10119
else
10120
          if test "$cross_compiling" = yes; then :
10121
  lt_cv_dlopen_self=cross
10122
else
10123
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10124
  lt_status=$lt_dlunknown
10125
  cat > conftest.$ac_ext <<_LT_EOF
10126
#line 10126 "configure"
10127
#include "confdefs.h"
10128
 
10129
#if HAVE_DLFCN_H
10130
#include 
10131
#endif
10132
 
10133
#include 
10134
 
10135
#ifdef RTLD_GLOBAL
10136
#  define LT_DLGLOBAL           RTLD_GLOBAL
10137
#else
10138
#  ifdef DL_GLOBAL
10139
#    define LT_DLGLOBAL         DL_GLOBAL
10140
#  else
10141
#    define LT_DLGLOBAL         0
10142
#  endif
10143
#endif
10144
 
10145
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10146
   find out it does not work in some platform. */
10147
#ifndef LT_DLLAZY_OR_NOW
10148
#  ifdef RTLD_LAZY
10149
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10150
#  else
10151
#    ifdef DL_LAZY
10152
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10153
#    else
10154
#      ifdef RTLD_NOW
10155
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10156
#      else
10157
#        ifdef DL_NOW
10158
#          define LT_DLLAZY_OR_NOW      DL_NOW
10159
#        else
10160
#          define LT_DLLAZY_OR_NOW      0
10161
#        endif
10162
#      endif
10163
#    endif
10164
#  endif
10165
#endif
10166
 
10167
#ifdef __cplusplus
10168
extern "C" void exit (int);
10169
#endif
10170
 
10171
void fnord() { int i=42;}
10172
int main ()
10173
{
10174
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10175
  int status = $lt_dlunknown;
10176
 
10177
  if (self)
10178
    {
10179
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10180
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10181
      /* dlclose (self); */
10182
    }
10183
  else
10184
    puts (dlerror ());
10185
 
10186
    exit (status);
10187
}
10188
_LT_EOF
10189
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190
  (eval $ac_link) 2>&5
10191
  ac_status=$?
10192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10194
    (./conftest; exit; ) >&5 2>/dev/null
10195
    lt_status=$?
10196
    case x$lt_status in
10197
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10198
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10199
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10200
    esac
10201
  else :
10202
    # compilation failed
10203
    lt_cv_dlopen_self=no
10204
  fi
10205
fi
10206
rm -fr conftest*
10207
 
10208
 
10209
fi
10210
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10211
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10212
 
10213
    if test "x$lt_cv_dlopen_self" = xyes; then
10214
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10215
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10216
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10217
if test "${lt_cv_dlopen_self_static+set}" = set; then
10218
  echo $ECHO_N "(cached) $ECHO_C" >&6
10219
else
10220
          if test "$cross_compiling" = yes; then :
10221
  lt_cv_dlopen_self_static=cross
10222
else
10223
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10224
  lt_status=$lt_dlunknown
10225
  cat > conftest.$ac_ext <<_LT_EOF
10226
#line 10226 "configure"
10227
#include "confdefs.h"
10228
 
10229
#if HAVE_DLFCN_H
10230
#include 
10231
#endif
10232
 
10233
#include 
10234
 
10235
#ifdef RTLD_GLOBAL
10236
#  define LT_DLGLOBAL           RTLD_GLOBAL
10237
#else
10238
#  ifdef DL_GLOBAL
10239
#    define LT_DLGLOBAL         DL_GLOBAL
10240
#  else
10241
#    define LT_DLGLOBAL         0
10242
#  endif
10243
#endif
10244
 
10245
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10246
   find out it does not work in some platform. */
10247
#ifndef LT_DLLAZY_OR_NOW
10248
#  ifdef RTLD_LAZY
10249
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10250
#  else
10251
#    ifdef DL_LAZY
10252
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10253
#    else
10254
#      ifdef RTLD_NOW
10255
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10256
#      else
10257
#        ifdef DL_NOW
10258
#          define LT_DLLAZY_OR_NOW      DL_NOW
10259
#        else
10260
#          define LT_DLLAZY_OR_NOW      0
10261
#        endif
10262
#      endif
10263
#    endif
10264
#  endif
10265
#endif
10266
 
10267
#ifdef __cplusplus
10268
extern "C" void exit (int);
10269
#endif
10270
 
10271
void fnord() { int i=42;}
10272
int main ()
10273
{
10274
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10275
  int status = $lt_dlunknown;
10276
 
10277
  if (self)
10278
    {
10279
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10280
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10281
      /* dlclose (self); */
10282
    }
10283
  else
10284
    puts (dlerror ());
10285
 
10286
    exit (status);
10287
}
10288
_LT_EOF
10289
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290
  (eval $ac_link) 2>&5
10291
  ac_status=$?
10292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10294
    (./conftest; exit; ) >&5 2>/dev/null
10295
    lt_status=$?
10296
    case x$lt_status in
10297
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10298
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10299
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10300
    esac
10301
  else :
10302
    # compilation failed
10303
    lt_cv_dlopen_self_static=no
10304
  fi
10305
fi
10306
rm -fr conftest*
10307
 
10308
 
10309
fi
10310
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10311
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10312
    fi
10313
 
10314
    CPPFLAGS="$save_CPPFLAGS"
10315
    LDFLAGS="$save_LDFLAGS"
10316
    LIBS="$save_LIBS"
10317
    ;;
10318
  esac
10319
 
10320
  case $lt_cv_dlopen_self in
10321
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10322
  *) enable_dlopen_self=unknown ;;
10323
  esac
10324
 
10325
  case $lt_cv_dlopen_self_static in
10326
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10327
  *) enable_dlopen_self_static=unknown ;;
10328
  esac
10329
fi
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
striplib=
10348
old_striplib=
10349
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10350
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10351
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10352
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10353
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10354
  echo "$as_me:$LINENO: result: yes" >&5
10355
echo "${ECHO_T}yes" >&6
10356
else
10357
# FIXME - insert some real tests, host_os isn't really good enough
10358
  case $host_os in
10359
  darwin*)
10360
    if test -n "$STRIP" ; then
10361
      striplib="$STRIP -x"
10362
      old_striplib="$STRIP -S"
10363
      echo "$as_me:$LINENO: result: yes" >&5
10364
echo "${ECHO_T}yes" >&6
10365
    else
10366
      echo "$as_me:$LINENO: result: no" >&5
10367
echo "${ECHO_T}no" >&6
10368
    fi
10369
    ;;
10370
  *)
10371
    echo "$as_me:$LINENO: result: no" >&5
10372
echo "${ECHO_T}no" >&6
10373
    ;;
10374
  esac
10375
fi
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
  # Report which library types will actually be built
10389
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10390
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10391
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10392
echo "${ECHO_T}$can_build_shared" >&6
10393
 
10394
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10395
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10396
  test "$can_build_shared" = "no" && enable_shared=no
10397
 
10398
  # On AIX, shared libraries and static libraries use the same namespace, and
10399
  # are all built from PIC.
10400
  case $host_os in
10401
  aix3*)
10402
    test "$enable_shared" = yes && enable_static=no
10403
    if test -n "$RANLIB"; then
10404
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10405
      postinstall_cmds='$RANLIB $lib'
10406
    fi
10407
    ;;
10408
 
10409
  aix[4-9]*)
10410
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10411
      test "$enable_shared" = yes && enable_static=no
10412
    fi
10413
    ;;
10414
  esac
10415
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10416
echo "${ECHO_T}$enable_shared" >&6
10417
 
10418
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10419
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10420
  # Make sure either enable_shared or enable_static is yes.
10421
  test "$enable_shared" = yes || enable_static=yes
10422
  echo "$as_me:$LINENO: result: $enable_static" >&5
10423
echo "${ECHO_T}$enable_static" >&6
10424
 
10425
 
10426
 
10427
 
10428
fi
10429
ac_ext=c
10430
ac_cpp='$CPP $CPPFLAGS'
10431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
 
10435
CC="$lt_save_CC"
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
                  ac_config_commands="$ac_config_commands libtool"
10450
 
10451
 
10452
 
10453
 
10454
# Only expand once:
10455
 
10456
 
10457
 
10458
# Check whether --enable-targets or --disable-targets was given.
10459
if test "${enable_targets+set}" = set; then
10460
  enableval="$enable_targets"
10461
  case "${enableval}" in
10462
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10463
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10464
   { (exit 1); exit 1; }; }
10465
            ;;
10466
  no)       enable_targets= ;;
10467
  *)        enable_targets=$enableval ;;
10468
esac
10469
fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10470
if test "${enable_commonbfdlib+set}" = set; then
10471
  enableval="$enable_commonbfdlib"
10472
  case "${enableval}" in
10473
  yes) commonbfdlib=true ;;
10474
  no)  commonbfdlib=false ;;
10475
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
10476
echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
10477
   { (exit 1); exit 1; }; } ;;
10478
esac
10479
fi;
10480
 
10481
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10482
 
10483
# Check whether --enable-werror or --disable-werror was given.
10484
if test "${enable_werror+set}" = set; then
10485
  enableval="$enable_werror"
10486
  case "${enableval}" in
10487
     yes | y) ERROR_ON_WARNING="yes" ;;
10488
     no | n)  ERROR_ON_WARNING="no" ;;
10489
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10490
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10491
   { (exit 1); exit 1; }; } ;;
10492
   esac
10493
fi;
10494
 
10495
# Enable -Wno-format by default when using gcc on mingw
10496
case "${host}" in
10497
  *-*-mingw32*)
10498
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10499
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10500
    fi
10501
    ;;
10502
  *) ;;
10503
esac
10504
 
10505
# Enable -Werror by default when using gcc
10506
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10507
    ERROR_ON_WARNING=yes
10508
fi
10509
 
10510
NO_WERROR=
10511
if test "${ERROR_ON_WARNING}" = yes ; then
10512
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10513
    NO_WERROR="-Wno-error"
10514
fi
10515
 
10516
if test "${GCC}" = yes ; then
10517
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10518
fi
10519
 
10520
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10521
if test "${enable_build_warnings+set}" = set; then
10522
  enableval="$enable_build_warnings"
10523
  case "${enableval}" in
10524
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10525
  no)   if test "${GCC}" = yes ; then
10526
          WARN_CFLAGS="-w"
10527
        fi;;
10528
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10529
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10530
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10531
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10532
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10533
esac
10534
fi;
10535
 
10536
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10537
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10538
fi
10539
 
10540
 
10541
 
10542
 
10543
 
10544
          ac_config_headers="$ac_config_headers config.h:config.in"
10545
 
10546
 
10547
if test -z "$target" ; then
10548
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10549
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10550
   { (exit 1); exit 1; }; }
10551
fi
10552
 
10553
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10554
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10555
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10556
if test "${enable_maintainer_mode+set}" = set; then
10557
  enableval="$enable_maintainer_mode"
10558
  USE_MAINTAINER_MODE=$enableval
10559
else
10560
  USE_MAINTAINER_MODE=no
10561
fi;
10562
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10563
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10564
 
10565
 
10566
if test $USE_MAINTAINER_MODE = yes; then
10567
  MAINTAINER_MODE_TRUE=
10568
  MAINTAINER_MODE_FALSE='#'
10569
else
10570
  MAINTAINER_MODE_TRUE='#'
10571
  MAINTAINER_MODE_FALSE=
10572
fi
10573
 
10574
  MAINT=$MAINTAINER_MODE_TRUE
10575
 
10576
 
10577
 case ${build_alias} in
10578
  "") build_noncanonical=${build} ;;
10579
  *) build_noncanonical=${build_alias} ;;
10580
esac
10581
 
10582
 case ${host_alias} in
10583
  "") host_noncanonical=${build_noncanonical} ;;
10584
  *) host_noncanonical=${host_alias} ;;
10585
esac
10586
 
10587
 case ${target_alias} in
10588
  "") target_noncanonical=${host_noncanonical} ;;
10589
  *) target_noncanonical=${target_alias} ;;
10590
esac
10591
 
10592
echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10593
echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10594
  # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10595
if test "${enable_install_libbfd+set}" = set; then
10596
  enableval="$enable_install_libbfd"
10597
  install_libbfd_p=$enableval
10598
else
10599
  if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10600
        install_libbfd_p=yes
10601
      else
10602
        install_libbfd_p=no
10603
      fi
10604
fi;
10605
  echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10606
echo "${ECHO_T}$install_libbfd_p" >&6
10607
 
10608
 
10609
if test $install_libbfd_p = yes; then
10610
  INSTALL_LIBBFD_TRUE=
10611
  INSTALL_LIBBFD_FALSE='#'
10612
else
10613
  INSTALL_LIBBFD_TRUE='#'
10614
  INSTALL_LIBBFD_FALSE=
10615
fi
10616
 
10617
  # Need _noncanonical variables for this.
10618
 
10619
 
10620
 
10621
 
10622
  # libbfd.a is a host library containing target dependent code
10623
  bfdlibdir='$(libdir)'
10624
  bfdincludedir='$(includedir)'
10625
  if test "${host}" != "${target}"; then
10626
    bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10627
    bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10628
  fi
10629
 
10630
 
10631
 
10632
 
10633
 
10634
 
10635
# host-specific stuff:
10636
 
10637
ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10638
# If we haven't got the data from the intl directory,
10639
# assume NLS is disabled.
10640
USE_NLS=no
10641
LIBINTL=
10642
LIBINTL_DEP=
10643
INCINTL=
10644
XGETTEXT=
10645
GMSGFMT=
10646
POSUB=
10647
 
10648
if test -f  ../intl/config.intl; then
10649
  .  ../intl/config.intl
10650
fi
10651
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10652
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10653
if test x"$USE_NLS" != xyes; then
10654
  echo "$as_me:$LINENO: result: no" >&5
10655
echo "${ECHO_T}no" >&6
10656
else
10657
  echo "$as_me:$LINENO: result: yes" >&5
10658
echo "${ECHO_T}yes" >&6
10659
 
10660
cat >>confdefs.h <<\_ACEOF
10661
#define ENABLE_NLS 1
10662
_ACEOF
10663
 
10664
 
10665
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10666
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10667
  # Look for .po and .gmo files in the source directory.
10668
  CATALOGS=
10669
  XLINGUAS=
10670
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10671
    # If there aren't any .gmo files the shell will give us the
10672
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10673
    # weeded out.
10674
    case "$cat" in *\**)
10675
      continue;;
10676
    esac
10677
    # The quadruple backslash is collapsed to a double backslash
10678
    # by the backticks, then collapsed again by the double quotes,
10679
    # leaving us with one backslash in the sed expression (right
10680
    # before the dot that mustn't act as a wildcard).
10681
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10682
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10683
    # The user is allowed to set LINGUAS to a list of languages to
10684
    # install catalogs for.  If it's empty that means "all of them."
10685
    if test "x$LINGUAS" = x; then
10686
      CATALOGS="$CATALOGS $cat"
10687
      XLINGUAS="$XLINGUAS $lang"
10688
    else
10689
      case "$LINGUAS" in *$lang*)
10690
        CATALOGS="$CATALOGS $cat"
10691
        XLINGUAS="$XLINGUAS $lang"
10692
        ;;
10693
      esac
10694
    fi
10695
  done
10696
  LINGUAS="$XLINGUAS"
10697
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10698
echo "${ECHO_T}$LINGUAS" >&6
10699
 
10700
 
10701
    DATADIRNAME=share
10702
 
10703
  INSTOBJEXT=.mo
10704
 
10705
  GENCAT=gencat
10706
 
10707
  CATOBJEXT=.gmo
10708
 
10709
fi
10710
 
10711
        MKINSTALLDIRS=
10712
  if test -n "$ac_aux_dir"; then
10713
    case "$ac_aux_dir" in
10714
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10715
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10716
    esac
10717
  fi
10718
  if test -z "$MKINSTALLDIRS"; then
10719
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10720
  fi
10721
 
10722
 
10723
 
10724
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10725
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10726
    # Check whether --enable-nls or --disable-nls was given.
10727
if test "${enable_nls+set}" = set; then
10728
  enableval="$enable_nls"
10729
  USE_NLS=$enableval
10730
else
10731
  USE_NLS=yes
10732
fi;
10733
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10734
echo "${ECHO_T}$USE_NLS" >&6
10735
 
10736
 
10737
 
10738
 
10739
 
10740
 
10741
# Prepare PATH_SEPARATOR.
10742
# The user is always right.
10743
if test "${PATH_SEPARATOR+set}" != set; then
10744
  echo "#! /bin/sh" >conf$$.sh
10745
  echo  "exit 0"   >>conf$$.sh
10746
  chmod +x conf$$.sh
10747
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10748
    PATH_SEPARATOR=';'
10749
  else
10750
    PATH_SEPARATOR=:
10751
  fi
10752
  rm -f conf$$.sh
10753
fi
10754
 
10755
# Find out how to test for executable files. Don't use a zero-byte file,
10756
# as systems may use methods other than mode bits to determine executability.
10757
cat >conf$$.file <<_ASEOF
10758
#! /bin/sh
10759
exit 0
10760
_ASEOF
10761
chmod +x conf$$.file
10762
if test -x conf$$.file >/dev/null 2>&1; then
10763
  ac_executable_p="test -x"
10764
else
10765
  ac_executable_p="test -f"
10766
fi
10767
rm -f conf$$.file
10768
 
10769
# Extract the first word of "msgfmt", so it can be a program name with args.
10770
set dummy msgfmt; ac_word=$2
10771
echo "$as_me:$LINENO: checking for $ac_word" >&5
10772
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10773
if test "${ac_cv_path_MSGFMT+set}" = set; then
10774
  echo $ECHO_N "(cached) $ECHO_C" >&6
10775
else
10776
  case "$MSGFMT" in
10777
  [\\/]* | ?:[\\/]*)
10778
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10779
    ;;
10780
  *)
10781
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10782
    for ac_dir in $PATH; do
10783
      IFS="$ac_save_IFS"
10784
      test -z "$ac_dir" && ac_dir=.
10785
      for ac_exec_ext in '' $ac_executable_extensions; do
10786
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10787
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10788
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10789
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10790
            break 2
10791
          fi
10792
        fi
10793
      done
10794
    done
10795
    IFS="$ac_save_IFS"
10796
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10797
    ;;
10798
esac
10799
fi
10800
MSGFMT="$ac_cv_path_MSGFMT"
10801
if test "$MSGFMT" != ":"; then
10802
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10803
echo "${ECHO_T}$MSGFMT" >&6
10804
else
10805
  echo "$as_me:$LINENO: result: no" >&5
10806
echo "${ECHO_T}no" >&6
10807
fi
10808
 
10809
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10810
set dummy gmsgfmt; ac_word=$2
10811
echo "$as_me:$LINENO: checking for $ac_word" >&5
10812
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10814
  echo $ECHO_N "(cached) $ECHO_C" >&6
10815
else
10816
  case $GMSGFMT in
10817
  [\\/]* | ?:[\\/]*)
10818
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10819
  ;;
10820
  *)
10821
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822
for as_dir in $PATH
10823
do
10824
  IFS=$as_save_IFS
10825
  test -z "$as_dir" && as_dir=.
10826
  for ac_exec_ext in '' $ac_executable_extensions; do
10827
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10829
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830
    break 2
10831
  fi
10832
done
10833
done
10834
 
10835
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10836
  ;;
10837
esac
10838
fi
10839
GMSGFMT=$ac_cv_path_GMSGFMT
10840
 
10841
if test -n "$GMSGFMT"; then
10842
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10843
echo "${ECHO_T}$GMSGFMT" >&6
10844
else
10845
  echo "$as_me:$LINENO: result: no" >&5
10846
echo "${ECHO_T}no" >&6
10847
fi
10848
 
10849
 
10850
 
10851
# Prepare PATH_SEPARATOR.
10852
# The user is always right.
10853
if test "${PATH_SEPARATOR+set}" != set; then
10854
  echo "#! /bin/sh" >conf$$.sh
10855
  echo  "exit 0"   >>conf$$.sh
10856
  chmod +x conf$$.sh
10857
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10858
    PATH_SEPARATOR=';'
10859
  else
10860
    PATH_SEPARATOR=:
10861
  fi
10862
  rm -f conf$$.sh
10863
fi
10864
 
10865
# Find out how to test for executable files. Don't use a zero-byte file,
10866
# as systems may use methods other than mode bits to determine executability.
10867
cat >conf$$.file <<_ASEOF
10868
#! /bin/sh
10869
exit 0
10870
_ASEOF
10871
chmod +x conf$$.file
10872
if test -x conf$$.file >/dev/null 2>&1; then
10873
  ac_executable_p="test -x"
10874
else
10875
  ac_executable_p="test -f"
10876
fi
10877
rm -f conf$$.file
10878
 
10879
# Extract the first word of "xgettext", so it can be a program name with args.
10880
set dummy xgettext; ac_word=$2
10881
echo "$as_me:$LINENO: checking for $ac_word" >&5
10882
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10883
if test "${ac_cv_path_XGETTEXT+set}" = set; then
10884
  echo $ECHO_N "(cached) $ECHO_C" >&6
10885
else
10886
  case "$XGETTEXT" in
10887
  [\\/]* | ?:[\\/]*)
10888
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10889
    ;;
10890
  *)
10891
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10892
    for ac_dir in $PATH; do
10893
      IFS="$ac_save_IFS"
10894
      test -z "$ac_dir" && ac_dir=.
10895
      for ac_exec_ext in '' $ac_executable_extensions; do
10896
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10897
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10898
     (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
10899
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10900
            break 2
10901
          fi
10902
        fi
10903
      done
10904
    done
10905
    IFS="$ac_save_IFS"
10906
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10907
    ;;
10908
esac
10909
fi
10910
XGETTEXT="$ac_cv_path_XGETTEXT"
10911
if test "$XGETTEXT" != ":"; then
10912
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10913
echo "${ECHO_T}$XGETTEXT" >&6
10914
else
10915
  echo "$as_me:$LINENO: result: no" >&5
10916
echo "${ECHO_T}no" >&6
10917
fi
10918
 
10919
    rm -f messages.po
10920
 
10921
 
10922
# Prepare PATH_SEPARATOR.
10923
# The user is always right.
10924
if test "${PATH_SEPARATOR+set}" != set; then
10925
  echo "#! /bin/sh" >conf$$.sh
10926
  echo  "exit 0"   >>conf$$.sh
10927
  chmod +x conf$$.sh
10928
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10929
    PATH_SEPARATOR=';'
10930
  else
10931
    PATH_SEPARATOR=:
10932
  fi
10933
  rm -f conf$$.sh
10934
fi
10935
 
10936
# Find out how to test for executable files. Don't use a zero-byte file,
10937
# as systems may use methods other than mode bits to determine executability.
10938
cat >conf$$.file <<_ASEOF
10939
#! /bin/sh
10940
exit 0
10941
_ASEOF
10942
chmod +x conf$$.file
10943
if test -x conf$$.file >/dev/null 2>&1; then
10944
  ac_executable_p="test -x"
10945
else
10946
  ac_executable_p="test -f"
10947
fi
10948
rm -f conf$$.file
10949
 
10950
# Extract the first word of "msgmerge", so it can be a program name with args.
10951
set dummy msgmerge; ac_word=$2
10952
echo "$as_me:$LINENO: checking for $ac_word" >&5
10953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10954
if test "${ac_cv_path_MSGMERGE+set}" = set; then
10955
  echo $ECHO_N "(cached) $ECHO_C" >&6
10956
else
10957
  case "$MSGMERGE" in
10958
  [\\/]* | ?:[\\/]*)
10959
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10960
    ;;
10961
  *)
10962
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10963
    for ac_dir in $PATH; do
10964
      IFS="$ac_save_IFS"
10965
      test -z "$ac_dir" && ac_dir=.
10966
      for ac_exec_ext in '' $ac_executable_extensions; do
10967
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10968
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10969
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10970
            break 2
10971
          fi
10972
        fi
10973
      done
10974
    done
10975
    IFS="$ac_save_IFS"
10976
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10977
    ;;
10978
esac
10979
fi
10980
MSGMERGE="$ac_cv_path_MSGMERGE"
10981
if test "$MSGMERGE" != ":"; then
10982
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10983
echo "${ECHO_T}$MSGMERGE" >&6
10984
else
10985
  echo "$as_me:$LINENO: result: no" >&5
10986
echo "${ECHO_T}no" >&6
10987
fi
10988
 
10989
 
10990
      if test "$GMSGFMT" != ":"; then
10991
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10992
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10993
      : ;
10994
    else
10995
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10996
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10997
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10998
      GMSGFMT=":"
10999
    fi
11000
  fi
11001
 
11002
      if test "$XGETTEXT" != ":"; then
11003
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11004
       (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
11005
      : ;
11006
    else
11007
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11008
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11009
      XGETTEXT=":"
11010
    fi
11011
        rm -f messages.po
11012
  fi
11013
 
11014
            ac_config_commands="$ac_config_commands default-1"
11015
 
11016
 
11017
 
11018
. ${srcdir}/../bfd/configure.host
11019
 
11020
# Put a plausible default for CC_FOR_BUILD in Makefile.
11021
if test -z "$CC_FOR_BUILD"; then
11022
  if test "x$cross_compiling" = "xno"; then
11023
    CC_FOR_BUILD='$(CC)'
11024
  else
11025
    CC_FOR_BUILD=gcc
11026
  fi
11027
fi
11028
 
11029
# Also set EXEEXT_FOR_BUILD.
11030
if test "x$cross_compiling" = "xno"; then
11031
  EXEEXT_FOR_BUILD='$(EXEEXT)'
11032
else
11033
  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11034
echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11035
if test "${bfd_cv_build_exeext+set}" = set; then
11036
  echo $ECHO_N "(cached) $ECHO_C" >&6
11037
else
11038
  rm -f conftest*
11039
     echo 'int main () { return 0; }' > conftest.c
11040
     bfd_cv_build_exeext=
11041
     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11042
     for file in conftest.*; do
11043
       case $file in
11044
       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11045
       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11046
       esac
11047
     done
11048
     rm -f conftest*
11049
     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11050
fi
11051
echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11052
echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11053
  EXEEXT_FOR_BUILD=""
11054
  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11055
fi
11056
 
11057
 
11058
 
11059
# Find a good install program.  We prefer a C program (faster),
11060
# so one script is as good as another.  But avoid the broken or
11061
# incompatible versions:
11062
# SysV /etc/install, /usr/sbin/install
11063
# SunOS /usr/etc/install
11064
# IRIX /sbin/install
11065
# AIX /bin/install
11066
# AmigaOS /C/install, which installs bootblocks on floppy discs
11067
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11068
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11069
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11070
# OS/2's system install, which has a completely different semantic
11071
# ./install, which can be erroneously created by make from ./install.sh.
11072
# Reject install programs that cannot install multiple files.
11073
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11074
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11075
if test -z "$INSTALL"; then
11076
if test "${ac_cv_path_install+set}" = set; then
11077
  echo $ECHO_N "(cached) $ECHO_C" >&6
11078
else
11079
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080
for as_dir in $PATH
11081
do
11082
  IFS=$as_save_IFS
11083
  test -z "$as_dir" && as_dir=.
11084
  # Account for people who put trailing slashes in PATH elements.
11085
case $as_dir/ in
11086
  ./ | .// | /cC/* | \
11087
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11088
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11089
  /usr/ucb/* ) ;;
11090
  *)
11091
    # OSF1 and SCO ODT 3.0 have their own names for install.
11092
    # Don't use installbsd from OSF since it installs stuff as root
11093
    # by default.
11094
    for ac_prog in ginstall scoinst install; do
11095
      for ac_exec_ext in '' $ac_executable_extensions; do
11096
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11097
          if test $ac_prog = install &&
11098
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11099
            # AIX install.  It has an incompatible calling convention.
11100
            :
11101
          elif test $ac_prog = install &&
11102
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11103
            # program-specific install script used by HP pwplus--don't use.
11104
            :
11105
          else
11106
            rm -rf conftest.one conftest.two conftest.dir
11107
            echo one > conftest.one
11108
            echo two > conftest.two
11109
            mkdir conftest.dir
11110
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11111
              test -s conftest.one && test -s conftest.two &&
11112
              test -s conftest.dir/conftest.one &&
11113
              test -s conftest.dir/conftest.two
11114
            then
11115
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11116
              break 3
11117
            fi
11118
          fi
11119
        fi
11120
      done
11121
    done
11122
    ;;
11123
esac
11124
done
11125
 
11126
rm -rf conftest.one conftest.two conftest.dir
11127
 
11128
fi
11129
  if test "${ac_cv_path_install+set}" = set; then
11130
    INSTALL=$ac_cv_path_install
11131
  else
11132
    # As a last resort, use the slow shell script.  Don't cache a
11133
    # value for INSTALL within a source directory, because that will
11134
    # break other packages using the cache if that directory is
11135
    # removed, or if the value is a relative name.
11136
    INSTALL=$ac_install_sh
11137
  fi
11138
fi
11139
echo "$as_me:$LINENO: result: $INSTALL" >&5
11140
echo "${ECHO_T}$INSTALL" >&6
11141
 
11142
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11143
# It thinks the first close brace ends the variable substitution.
11144
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11145
 
11146
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11147
 
11148
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11149
 
11150
 
11151
 
11152
 
11153
 
11154
 
11155
for ac_header in string.h strings.h stdlib.h limits.h
11156
do
11157
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11158
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11159
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11160
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11161
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11162
  echo $ECHO_N "(cached) $ECHO_C" >&6
11163
fi
11164
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11165
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11166
else
11167
  # Is the header compilable?
11168
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11169
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11170
cat >conftest.$ac_ext <<_ACEOF
11171
/* confdefs.h.  */
11172
_ACEOF
11173
cat confdefs.h >>conftest.$ac_ext
11174
cat >>conftest.$ac_ext <<_ACEOF
11175
/* end confdefs.h.  */
11176
$ac_includes_default
11177
#include <$ac_header>
11178
_ACEOF
11179
rm -f conftest.$ac_objext
11180
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181
  (eval $ac_compile) 2>conftest.er1
11182
  ac_status=$?
11183
  grep -v '^ *+' conftest.er1 >conftest.err
11184
  rm -f conftest.er1
11185
  cat conftest.err >&5
11186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187
  (exit $ac_status); } &&
11188
         { ac_try='test -z "$ac_c_werror_flag"
11189
                         || test ! -s conftest.err'
11190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191
  (eval $ac_try) 2>&5
11192
  ac_status=$?
11193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194
  (exit $ac_status); }; } &&
11195
         { ac_try='test -s conftest.$ac_objext'
11196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197
  (eval $ac_try) 2>&5
11198
  ac_status=$?
11199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200
  (exit $ac_status); }; }; then
11201
  ac_header_compiler=yes
11202
else
11203
  echo "$as_me: failed program was:" >&5
11204
sed 's/^/| /' conftest.$ac_ext >&5
11205
 
11206
ac_header_compiler=no
11207
fi
11208
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11209
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11210
echo "${ECHO_T}$ac_header_compiler" >&6
11211
 
11212
# Is the header present?
11213
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11214
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11215
cat >conftest.$ac_ext <<_ACEOF
11216
/* confdefs.h.  */
11217
_ACEOF
11218
cat confdefs.h >>conftest.$ac_ext
11219
cat >>conftest.$ac_ext <<_ACEOF
11220
/* end confdefs.h.  */
11221
#include <$ac_header>
11222
_ACEOF
11223
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11224
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225
  ac_status=$?
11226
  grep -v '^ *+' conftest.er1 >conftest.err
11227
  rm -f conftest.er1
11228
  cat conftest.err >&5
11229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230
  (exit $ac_status); } >/dev/null; then
11231
  if test -s conftest.err; then
11232
    ac_cpp_err=$ac_c_preproc_warn_flag
11233
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11234
  else
11235
    ac_cpp_err=
11236
  fi
11237
else
11238
  ac_cpp_err=yes
11239
fi
11240
if test -z "$ac_cpp_err"; then
11241
  ac_header_preproc=yes
11242
else
11243
  echo "$as_me: failed program was:" >&5
11244
sed 's/^/| /' conftest.$ac_ext >&5
11245
 
11246
  ac_header_preproc=no
11247
fi
11248
rm -f conftest.err conftest.$ac_ext
11249
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11250
echo "${ECHO_T}$ac_header_preproc" >&6
11251
 
11252
# So?  What about this header?
11253
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11254
  yes:no: )
11255
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11256
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11257
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11258
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11259
    ac_header_preproc=yes
11260
    ;;
11261
  no:yes:* )
11262
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11263
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11264
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11265
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11266
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11267
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11268
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11269
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11270
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11271
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11272
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11273
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11274
    (
11275
      cat <<\_ASBOX
11276
## ------------------------------------------ ##
11277
## Report this to the AC_PACKAGE_NAME lists.  ##
11278
## ------------------------------------------ ##
11279
_ASBOX
11280
    ) |
11281
      sed "s/^/$as_me: WARNING:     /" >&2
11282
    ;;
11283
esac
11284
echo "$as_me:$LINENO: checking for $ac_header" >&5
11285
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11286
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287
  echo $ECHO_N "(cached) $ECHO_C" >&6
11288
else
11289
  eval "$as_ac_Header=\$ac_header_preproc"
11290
fi
11291
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11292
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11293
 
11294
fi
11295
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11296
  cat >>confdefs.h <<_ACEOF
11297
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11298
_ACEOF
11299
 
11300
fi
11301
 
11302
done
11303
 
11304
 
11305
echo "$as_me:$LINENO: checking whether basename is declared" >&5
11306
echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11307
if test "${ac_cv_have_decl_basename+set}" = set; then
11308
  echo $ECHO_N "(cached) $ECHO_C" >&6
11309
else
11310
  cat >conftest.$ac_ext <<_ACEOF
11311
/* confdefs.h.  */
11312
_ACEOF
11313
cat confdefs.h >>conftest.$ac_ext
11314
cat >>conftest.$ac_ext <<_ACEOF
11315
/* end confdefs.h.  */
11316
$ac_includes_default
11317
int
11318
main ()
11319
{
11320
#ifndef basename
11321
  char *p = (char *) basename;
11322
#endif
11323
 
11324
  ;
11325
  return 0;
11326
}
11327
_ACEOF
11328
rm -f conftest.$ac_objext
11329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330
  (eval $ac_compile) 2>conftest.er1
11331
  ac_status=$?
11332
  grep -v '^ *+' conftest.er1 >conftest.err
11333
  rm -f conftest.er1
11334
  cat conftest.err >&5
11335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336
  (exit $ac_status); } &&
11337
         { ac_try='test -z "$ac_c_werror_flag"
11338
                         || test ! -s conftest.err'
11339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340
  (eval $ac_try) 2>&5
11341
  ac_status=$?
11342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343
  (exit $ac_status); }; } &&
11344
         { ac_try='test -s conftest.$ac_objext'
11345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346
  (eval $ac_try) 2>&5
11347
  ac_status=$?
11348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349
  (exit $ac_status); }; }; then
11350
  ac_cv_have_decl_basename=yes
11351
else
11352
  echo "$as_me: failed program was:" >&5
11353
sed 's/^/| /' conftest.$ac_ext >&5
11354
 
11355
ac_cv_have_decl_basename=no
11356
fi
11357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11358
fi
11359
echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11360
echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11361
if test $ac_cv_have_decl_basename = yes; then
11362
 
11363
cat >>confdefs.h <<_ACEOF
11364
#define HAVE_DECL_BASENAME 1
11365
_ACEOF
11366
 
11367
 
11368
else
11369
  cat >>confdefs.h <<_ACEOF
11370
#define HAVE_DECL_BASENAME 0
11371
_ACEOF
11372
 
11373
 
11374
fi
11375
echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11376
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11377
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11378
  echo $ECHO_N "(cached) $ECHO_C" >&6
11379
else
11380
  cat >conftest.$ac_ext <<_ACEOF
11381
/* confdefs.h.  */
11382
_ACEOF
11383
cat confdefs.h >>conftest.$ac_ext
11384
cat >>conftest.$ac_ext <<_ACEOF
11385
/* end confdefs.h.  */
11386
$ac_includes_default
11387
int
11388
main ()
11389
{
11390
#ifndef stpcpy
11391
  char *p = (char *) stpcpy;
11392
#endif
11393
 
11394
  ;
11395
  return 0;
11396
}
11397
_ACEOF
11398
rm -f conftest.$ac_objext
11399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400
  (eval $ac_compile) 2>conftest.er1
11401
  ac_status=$?
11402
  grep -v '^ *+' conftest.er1 >conftest.err
11403
  rm -f conftest.er1
11404
  cat conftest.err >&5
11405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406
  (exit $ac_status); } &&
11407
         { ac_try='test -z "$ac_c_werror_flag"
11408
                         || test ! -s conftest.err'
11409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410
  (eval $ac_try) 2>&5
11411
  ac_status=$?
11412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413
  (exit $ac_status); }; } &&
11414
         { ac_try='test -s conftest.$ac_objext'
11415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416
  (eval $ac_try) 2>&5
11417
  ac_status=$?
11418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419
  (exit $ac_status); }; }; then
11420
  ac_cv_have_decl_stpcpy=yes
11421
else
11422
  echo "$as_me: failed program was:" >&5
11423
sed 's/^/| /' conftest.$ac_ext >&5
11424
 
11425
ac_cv_have_decl_stpcpy=no
11426
fi
11427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428
fi
11429
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11430
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11431
if test $ac_cv_have_decl_stpcpy = yes; then
11432
 
11433
cat >>confdefs.h <<_ACEOF
11434
#define HAVE_DECL_STPCPY 1
11435
_ACEOF
11436
 
11437
 
11438
else
11439
  cat >>confdefs.h <<_ACEOF
11440
#define HAVE_DECL_STPCPY 0
11441
_ACEOF
11442
 
11443
 
11444
fi
11445
 
11446
 
11447
 
11448
cgen_maint=no
11449
cgendir='$(srcdir)/../cgen'
11450
 
11451
# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11452
if test "${enable_cgen_maint+set}" = set; then
11453
  enableval="$enable_cgen_maint"
11454
  case "${enableval}" in
11455
  yes)  cgen_maint=yes ;;
11456
  no)   cgen_maint=no ;;
11457
  *)
11458
        # argument is cgen install directory (not implemented yet).
11459
        # Having a `share' directory might be more appropriate for the .scm,
11460
        # .cpu, etc. files.
11461
        cgen_maint=yes
11462
        cgendir=${cgen_maint}/lib/cgen
11463
        ;;
11464
esac
11465
fi;
11466
 
11467
if test x${cgen_maint} = xyes; then
11468
  CGEN_MAINT_TRUE=
11469
  CGEN_MAINT_FALSE='#'
11470
else
11471
  CGEN_MAINT_TRUE='#'
11472
  CGEN_MAINT_FALSE=
11473
fi
11474
 
11475
 
11476
 
11477
using_cgen=no
11478
 
11479
# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
11480
SHARED_LDFLAGS=
11481
SHARED_LIBADD=
11482
SHARED_DEPENDENCIES=
11483
if test "$enable_shared" = "yes"; then
11484
  case "${host}" in
11485
    *-*-cygwin*)
11486
      SHARED_LDFLAGS="-no-undefined"
11487
      SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11488
      ;;
11489
   *-*-darwin*)
11490
     SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib"
11491
     SHARED_DEPENDENCIES="../bfd/libbfd.la"
11492
     ;;
11493
    *)
11494
      case "$host_vendor" in
11495
        hp)
11496
          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl"
11497
          ;;
11498
        *)
11499
          SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so"
11500
          ;;
11501
      esac
11502
      SHARED_DEPENDENCIES="../bfd/libbfd.la"
11503
      ;;
11504
  esac
11505
fi
11506
 
11507
 
11508
 
11509
 
11510
# target-specific stuff:
11511
 
11512
# Canonicalize the secondary target names.
11513
if test -n "$enable_targets" ; then
11514
    for targ in `echo $enable_targets | sed 's/,/ /g'`
11515
    do
11516
        result=`$ac_config_sub $targ 2>/dev/null`
11517
        if test -n "$result" ; then
11518
            canon_targets="$canon_targets $result"
11519
        else
11520
            # Allow targets that config.sub doesn't recognize, like "all".
11521
            canon_targets="$canon_targets $targ"
11522
        fi
11523
    done
11524
fi
11525
 
11526
all_targets=false
11527
selarchs=
11528
for targ in $target $canon_targets
11529
do
11530
    if test "x$targ" = "xall" ; then
11531
        all_targets=true
11532
    else
11533
        . $srcdir/../bfd/config.bfd
11534
        selarchs="$selarchs $targ_archs"
11535
    fi
11536
done
11537
 
11538
# Utility var, documents generic cgen support files.
11539
 
11540
cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11541
 
11542
# We don't do any links based on the target system, just makefile config.
11543
 
11544
if test x${all_targets} = xfalse ; then
11545
 
11546
    # Target architecture .o files.
11547
    ta=
11548
 
11549
    for arch in $selarchs
11550
    do
11551
        ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11552
        archdefs="$archdefs -DARCH_$ad"
11553
        case "$arch" in
11554
        bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11555
        bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11556
        bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
11557
        bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
11558
        bfd_bfin_arch)          ta="$ta bfin-dis.lo" ;;
11559
        bfd_cr16_arch)          ta="$ta cr16-dis.lo cr16-opc.lo" ;;
11560
        bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11561
        bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
11562
        bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11563
        bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11564
        bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
11565
        bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11566
        bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11567
        bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
11568
        bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
11569
        bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
11570
        bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
11571
        bfd_i386_arch)          ta="$ta i386-dis.lo i386-opc.lo" ;;
11572
        bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
11573
        bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
11574
        bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11575
        bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11576
        bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11577
        bfd_m32c_arch)          ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11578
        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 ;;
11579
        bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11580
        bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11581
        bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11582
        bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
11583
        bfd_maxq_arch)          ta="$ta maxq-dis.lo" ;;
11584
        bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
11585
        bfd_mep_arch)           ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11586
        bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11587
        bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11588
        bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11589
        bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11590
        bfd_mt_arch)            ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11591
        bfd_msp430_arch)        ta="$ta msp430-dis.lo" ;;
11592
        bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
11593
        bfd_or32_arch)          ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11594
        bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11595
        bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
11596
        bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11597
        bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11598
        bfd_pyramid_arch)       ;;
11599
        bfd_romp_arch)          ;;
11600
        bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11601
        bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
11602
        bfd_score_arch)         ta="$ta score-dis.lo" ;;
11603
        bfd_sh_arch)
11604
          # We can't decide what we want just from the CPU family.
11605
          # We want SH5 support unless a specific version of sh is
11606
          # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11607
          # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11608
          for t in $target $canon_targets; do
11609
            case $t in
11610
              all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11611
              sh-*-linux* | shl-*-linux*)
11612
                                ta="$ta sh64-dis.lo sh64-opc.lo"
11613
                                archdefs="$archdefs -DINCLUDE_SHMEDIA"
11614
                                break;;
11615
            esac;
11616
          done
11617
                                ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11618
        bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11619
        bfd_spu_arch)           ta="$ta spu-dis.lo spu-opc.lo" ;;
11620
        bfd_tahoe_arch)         ;;
11621
        bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
11622
        bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
11623
        bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11624
        bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11625
        bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
11626
        bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
11627
        bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
11628
        bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
11629
        bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
11630
        bfd_we32k_arch)         ;;
11631
        bfd_xc16x_arch)         ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11632
        bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11633
        bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
11634
        bfd_z80_arch)           ta="$ta z80-dis.lo" ;;
11635
        bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
11636
 
11637
        "")                     ;;
11638
        *)              { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11639
echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11640
   { (exit 1); exit 1; }; } ;;
11641
        esac
11642
    done
11643
 
11644
    if test $using_cgen = yes ; then
11645
        ta="$ta $cgen_files"
11646
    fi
11647
 
11648
    # Weed out duplicate .o files.
11649
    f=""
11650
    for i in $ta ; do
11651
        case " $f " in
11652
        *" $i "*) ;;
11653
        *) f="$f $i" ;;
11654
        esac
11655
    done
11656
    ta="$f"
11657
 
11658
    # And duplicate -D flags.
11659
    f=""
11660
    for i in $archdefs ; do
11661
        case " $f " in
11662
        *" $i "*) ;;
11663
        *) f="$f $i" ;;
11664
        esac
11665
    done
11666
    archdefs="$f"
11667
 
11668
    BFD_MACHINES="$ta"
11669
 
11670
else    # all_targets is true
11671
    archdefs=-DARCH_all
11672
    BFD_MACHINES='$(ALL_MACHINES)'
11673
fi
11674
 
11675
 
11676
 
11677
 
11678
                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11679
 
11680
cat >confcache <<\_ACEOF
11681
# This file is a shell script that caches the results of configure
11682
# tests run on this system so they can be shared between configure
11683
# scripts and configure runs, see configure's option --config-cache.
11684
# It is not useful on other systems.  If it contains results you don't
11685
# want to keep, you may remove or edit it.
11686
#
11687
# config.status only pays attention to the cache file if you give it
11688
# the --recheck option to rerun configure.
11689
#
11690
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11691
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11692
# following values.
11693
 
11694
_ACEOF
11695
 
11696
# The following way of writing the cache mishandles newlines in values,
11697
# but we know of no workaround that is simple, portable, and efficient.
11698
# So, don't put newlines in cache variables' values.
11699
# Ultrix sh set writes to stderr and can't be redirected directly,
11700
# and sets the high bit in the cache file unless we assign to the vars.
11701
{
11702
  (set) 2>&1 |
11703
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11704
    *ac_space=\ *)
11705
      # `set' does not quote correctly, so add quotes (double-quote
11706
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11707
      sed -n \
11708
        "s/'/'\\\\''/g;
11709
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11710
      ;;
11711
    *)
11712
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11713
      sed -n \
11714
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11715
      ;;
11716
    esac;
11717
} |
11718
  sed '
11719
     t clear
11720
     : clear
11721
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11722
     t end
11723
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11724
     : end' >>confcache
11725
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11726
  if test -w $cache_file; then
11727
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11728
    cat confcache >$cache_file
11729
  else
11730
    echo "not updating unwritable cache $cache_file"
11731
  fi
11732
fi
11733
rm -f confcache
11734
 
11735
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11736
# Let make expand exec_prefix.
11737
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11738
 
11739
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11740
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11741
# trailing colons and then remove the whole line if VPATH becomes empty
11742
# (actually we leave an empty line to preserve line numbers).
11743
if test "x$srcdir" = x.; then
11744
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11745
s/:*\$(srcdir):*/:/;
11746
s/:*\${srcdir}:*/:/;
11747
s/:*@srcdir@:*/:/;
11748
s/^\([^=]*=[     ]*\):*/\1/;
11749
s/:*$//;
11750
s/^[^=]*=[       ]*$//;
11751
}'
11752
fi
11753
 
11754
DEFS=-DHAVE_CONFIG_H
11755
 
11756
ac_libobjs=
11757
ac_ltlibobjs=
11758
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11759
  # 1. Remove the extension, and $U if already installed.
11760
  ac_i=`echo "$ac_i" |
11761
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11762
  # 2. Add them.
11763
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11764
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11765
done
11766
LIBOBJS=$ac_libobjs
11767
 
11768
LTLIBOBJS=$ac_ltlibobjs
11769
 
11770
 
11771
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11772
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11773
Usually this means the macro was only invoked conditionally." >&5
11774
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11775
Usually this means the macro was only invoked conditionally." >&2;}
11776
   { (exit 1); exit 1; }; }
11777
fi
11778
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11779
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11780
Usually this means the macro was only invoked conditionally." >&5
11781
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11782
Usually this means the macro was only invoked conditionally." >&2;}
11783
   { (exit 1); exit 1; }; }
11784
fi
11785
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11786
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11787
Usually this means the macro was only invoked conditionally." >&5
11788
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11789
Usually this means the macro was only invoked conditionally." >&2;}
11790
   { (exit 1); exit 1; }; }
11791
fi
11792
if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11793
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11794
Usually this means the macro was only invoked conditionally." >&5
11795
echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11796
Usually this means the macro was only invoked conditionally." >&2;}
11797
   { (exit 1); exit 1; }; }
11798
fi
11799
if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11800
  { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11801
Usually this means the macro was only invoked conditionally." >&5
11802
echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11803
Usually this means the macro was only invoked conditionally." >&2;}
11804
   { (exit 1); exit 1; }; }
11805
fi
11806
 
11807
: ${CONFIG_STATUS=./config.status}
11808
ac_clean_files_save=$ac_clean_files
11809
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11810
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11811
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11812
cat >$CONFIG_STATUS <<_ACEOF
11813
#! $SHELL
11814
# Generated by $as_me.
11815
# Run this file to recreate the current configuration.
11816
# Compiler output produced by configure, useful for debugging
11817
# configure, is in config.log if it exists.
11818
 
11819
debug=false
11820
ac_cs_recheck=false
11821
ac_cs_silent=false
11822
SHELL=\${CONFIG_SHELL-$SHELL}
11823
_ACEOF
11824
 
11825
cat >>$CONFIG_STATUS <<\_ACEOF
11826
## --------------------- ##
11827
## M4sh Initialization.  ##
11828
## --------------------- ##
11829
 
11830
# Be Bourne compatible
11831
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11832
  emulate sh
11833
  NULLCMD=:
11834
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11835
  # is contrary to our usage.  Disable this feature.
11836
  alias -g '${1+"$@"}'='"$@"'
11837
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11838
  set -o posix
11839
fi
11840
DUALCASE=1; export DUALCASE # for MKS sh
11841
 
11842
# Support unset when possible.
11843
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11844
  as_unset=unset
11845
else
11846
  as_unset=false
11847
fi
11848
 
11849
 
11850
# Work around bugs in pre-3.0 UWIN ksh.
11851
$as_unset ENV MAIL MAILPATH
11852
PS1='$ '
11853
PS2='> '
11854
PS4='+ '
11855
 
11856
# NLS nuisances.
11857
for as_var in \
11858
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11859
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11860
  LC_TELEPHONE LC_TIME
11861
do
11862
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11863
    eval $as_var=C; export $as_var
11864
  else
11865
    $as_unset $as_var
11866
  fi
11867
done
11868
 
11869
# Required to use basename.
11870
if expr a : '\(a\)' >/dev/null 2>&1; then
11871
  as_expr=expr
11872
else
11873
  as_expr=false
11874
fi
11875
 
11876
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11877
  as_basename=basename
11878
else
11879
  as_basename=false
11880
fi
11881
 
11882
 
11883
# Name of the executable.
11884
as_me=`$as_basename "$0" ||
11885
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11886
         X"$0" : 'X\(//\)$' \| \
11887
         X"$0" : 'X\(/\)$' \| \
11888
         .     : '\(.\)' 2>/dev/null ||
11889
echo X/"$0" |
11890
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11891
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11892
          /^X\/\(\/\).*/{ s//\1/; q; }
11893
          s/.*/./; q'`
11894
 
11895
 
11896
# PATH needs CR, and LINENO needs CR and PATH.
11897
# Avoid depending upon Character Ranges.
11898
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11899
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11900
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11901
as_cr_digits='0123456789'
11902
as_cr_alnum=$as_cr_Letters$as_cr_digits
11903
 
11904
# The user is always right.
11905
if test "${PATH_SEPARATOR+set}" != set; then
11906
  echo "#! /bin/sh" >conf$$.sh
11907
  echo  "exit 0"   >>conf$$.sh
11908
  chmod +x conf$$.sh
11909
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11910
    PATH_SEPARATOR=';'
11911
  else
11912
    PATH_SEPARATOR=:
11913
  fi
11914
  rm -f conf$$.sh
11915
fi
11916
 
11917
 
11918
  as_lineno_1=$LINENO
11919
  as_lineno_2=$LINENO
11920
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11921
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11922
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11923
  # Find who we are.  Look in the path if we contain no path at all
11924
  # relative or not.
11925
  case $0 in
11926
    *[\\/]* ) as_myself=$0 ;;
11927
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928
for as_dir in $PATH
11929
do
11930
  IFS=$as_save_IFS
11931
  test -z "$as_dir" && as_dir=.
11932
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11933
done
11934
 
11935
       ;;
11936
  esac
11937
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11938
  # in which case we are not to be found in the path.
11939
  if test "x$as_myself" = x; then
11940
    as_myself=$0
11941
  fi
11942
  if test ! -f "$as_myself"; then
11943
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11944
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11945
   { (exit 1); exit 1; }; }
11946
  fi
11947
  case $CONFIG_SHELL in
11948
  '')
11949
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11951
do
11952
  IFS=$as_save_IFS
11953
  test -z "$as_dir" && as_dir=.
11954
  for as_base in sh bash ksh sh5; do
11955
         case $as_dir in
11956
         /*)
11957
           if ("$as_dir/$as_base" -c '
11958
  as_lineno_1=$LINENO
11959
  as_lineno_2=$LINENO
11960
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11961
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11962
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11963
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11964
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11965
             CONFIG_SHELL=$as_dir/$as_base
11966
             export CONFIG_SHELL
11967
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11968
           fi;;
11969
         esac
11970
       done
11971
done
11972
;;
11973
  esac
11974
 
11975
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11976
  # uniformly replaced by the line number.  The first 'sed' inserts a
11977
  # line-number line before each line; the second 'sed' does the real
11978
  # work.  The second script uses 'N' to pair each line-number line
11979
  # with the numbered line, and appends trailing '-' during
11980
  # substitution so that $LINENO is not a special case at line end.
11981
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11982
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11983
  sed '=' <$as_myself |
11984
    sed '
11985
      N
11986
      s,$,-,
11987
      : loop
11988
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11989
      t loop
11990
      s,-$,,
11991
      s,^['$as_cr_digits']*\n,,
11992
    ' >$as_me.lineno &&
11993
  chmod +x $as_me.lineno ||
11994
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11995
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11996
   { (exit 1); exit 1; }; }
11997
 
11998
  # Don't try to exec as it changes $[0], causing all sort of problems
11999
  # (the dirname of $[0] is not the place where we might find the
12000
  # original and so on.  Autoconf is especially sensible to this).
12001
  . ./$as_me.lineno
12002
  # Exit status is that of the last command.
12003
  exit
12004
}
12005
 
12006
 
12007
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12008
  *c*,-n*) ECHO_N= ECHO_C='
12009
' ECHO_T='      ' ;;
12010
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12011
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12012
esac
12013
 
12014
if expr a : '\(a\)' >/dev/null 2>&1; then
12015
  as_expr=expr
12016
else
12017
  as_expr=false
12018
fi
12019
 
12020
rm -f conf$$ conf$$.exe conf$$.file
12021
echo >conf$$.file
12022
if ln -s conf$$.file conf$$ 2>/dev/null; then
12023
  # We could just check for DJGPP; but this test a) works b) is more generic
12024
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12025
  if test -f conf$$.exe; then
12026
    # Don't use ln at all; we don't have any links
12027
    as_ln_s='cp -p'
12028
  else
12029
    as_ln_s='ln -s'
12030
  fi
12031
elif ln conf$$.file conf$$ 2>/dev/null; then
12032
  as_ln_s=ln
12033
else
12034
  as_ln_s='cp -p'
12035
fi
12036
rm -f conf$$ conf$$.exe conf$$.file
12037
 
12038
if mkdir -p . 2>/dev/null; then
12039
  as_mkdir_p=:
12040
else
12041
  test -d ./-p && rmdir ./-p
12042
  as_mkdir_p=false
12043
fi
12044
 
12045
as_executable_p="test -f"
12046
 
12047
# Sed expression to map a string onto a valid CPP name.
12048
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12049
 
12050
# Sed expression to map a string onto a valid variable name.
12051
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12052
 
12053
 
12054
# IFS
12055
# We need space, tab and new line, in precisely that order.
12056
as_nl='
12057
'
12058
IFS="   $as_nl"
12059
 
12060
# CDPATH.
12061
$as_unset CDPATH
12062
 
12063
exec 6>&1
12064
 
12065
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12066
# report actual input values of CONFIG_FILES etc. instead of their
12067
# values after options handling.  Logging --version etc. is OK.
12068
exec 5>>config.log
12069
{
12070
  echo
12071
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12072
## Running $as_me. ##
12073
_ASBOX
12074
} >&5
12075
cat >&5 <<_CSEOF
12076
 
12077
This file was extended by $as_me, which was
12078
generated by GNU Autoconf 2.59.  Invocation command line was
12079
 
12080
  CONFIG_FILES    = $CONFIG_FILES
12081
  CONFIG_HEADERS  = $CONFIG_HEADERS
12082
  CONFIG_LINKS    = $CONFIG_LINKS
12083
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12084
  $ $0 $@
12085
 
12086
_CSEOF
12087
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12088
echo >&5
12089
_ACEOF
12090
 
12091
# Files that config.status was made for.
12092
if test -n "$ac_config_files"; then
12093
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12094
fi
12095
 
12096
if test -n "$ac_config_headers"; then
12097
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12098
fi
12099
 
12100
if test -n "$ac_config_links"; then
12101
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12102
fi
12103
 
12104
if test -n "$ac_config_commands"; then
12105
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12106
fi
12107
 
12108
cat >>$CONFIG_STATUS <<\_ACEOF
12109
 
12110
ac_cs_usage="\
12111
\`$as_me' instantiates files from templates according to the
12112
current configuration.
12113
 
12114
Usage: $0 [OPTIONS] [FILE]...
12115
 
12116
  -h, --help       print this help, then exit
12117
  -V, --version    print version number, then exit
12118
  -q, --quiet      do not print progress messages
12119
  -d, --debug      don't remove temporary files
12120
      --recheck    update $as_me by reconfiguring in the same conditions
12121
  --file=FILE[:TEMPLATE]
12122
                   instantiate the configuration file FILE
12123
  --header=FILE[:TEMPLATE]
12124
                   instantiate the configuration header FILE
12125
 
12126
Configuration files:
12127
$config_files
12128
 
12129
Configuration headers:
12130
$config_headers
12131
 
12132
Configuration commands:
12133
$config_commands
12134
 
12135
Report bugs to ."
12136
_ACEOF
12137
 
12138
cat >>$CONFIG_STATUS <<_ACEOF
12139
ac_cs_version="\\
12140
config.status
12141
configured by $0, generated by GNU Autoconf 2.59,
12142
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12143
 
12144
Copyright (C) 2003 Free Software Foundation, Inc.
12145
This config.status script is free software; the Free Software Foundation
12146
gives unlimited permission to copy, distribute and modify it."
12147
srcdir=$srcdir
12148
INSTALL="$INSTALL"
12149
_ACEOF
12150
 
12151
cat >>$CONFIG_STATUS <<\_ACEOF
12152
# If no file are specified by the user, then we need to provide default
12153
# value.  By we need to know if files were specified by the user.
12154
ac_need_defaults=:
12155
while test $# != 0
12156
do
12157
  case $1 in
12158
  --*=*)
12159
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12160
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12161
    ac_shift=:
12162
    ;;
12163
  -*)
12164
    ac_option=$1
12165
    ac_optarg=$2
12166
    ac_shift=shift
12167
    ;;
12168
  *) # This is not an option, so the user has probably given explicit
12169
     # arguments.
12170
     ac_option=$1
12171
     ac_need_defaults=false;;
12172
  esac
12173
 
12174
  case $ac_option in
12175
  # Handling of the options.
12176
_ACEOF
12177
cat >>$CONFIG_STATUS <<\_ACEOF
12178
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12179
    ac_cs_recheck=: ;;
12180
  --version | --vers* | -V )
12181
    echo "$ac_cs_version"; exit 0 ;;
12182
  --he | --h)
12183
    # Conflict between --help and --header
12184
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12185
Try \`$0 --help' for more information." >&5
12186
echo "$as_me: error: ambiguous option: $1
12187
Try \`$0 --help' for more information." >&2;}
12188
   { (exit 1); exit 1; }; };;
12189
  --help | --hel | -h )
12190
    echo "$ac_cs_usage"; exit 0 ;;
12191
  --debug | --d* | -d )
12192
    debug=: ;;
12193
  --file | --fil | --fi | --f )
12194
    $ac_shift
12195
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12196
    ac_need_defaults=false;;
12197
  --header | --heade | --head | --hea )
12198
    $ac_shift
12199
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12200
    ac_need_defaults=false;;
12201
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12202
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12203
    ac_cs_silent=: ;;
12204
 
12205
  # This is an error.
12206
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12207
Try \`$0 --help' for more information." >&5
12208
echo "$as_me: error: unrecognized option: $1
12209
Try \`$0 --help' for more information." >&2;}
12210
   { (exit 1); exit 1; }; } ;;
12211
 
12212
  *) ac_config_targets="$ac_config_targets $1" ;;
12213
 
12214
  esac
12215
  shift
12216
done
12217
 
12218
ac_configure_extra_args=
12219
 
12220
if $ac_cs_silent; then
12221
  exec 6>/dev/null
12222
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12223
fi
12224
 
12225
_ACEOF
12226
cat >>$CONFIG_STATUS <<_ACEOF
12227
if \$ac_cs_recheck; then
12228
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12229
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12230
fi
12231
 
12232
_ACEOF
12233
 
12234
cat >>$CONFIG_STATUS <<_ACEOF
12235
#
12236
# INIT-COMMANDS section.
12237
#
12238
 
12239
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12240
 
12241
 
12242
# The HP-UX ksh and POSIX shell print the target directory to stdout
12243
# if CDPATH is set.
12244
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12245
 
12246
sed_quote_subst='$sed_quote_subst'
12247
double_quote_subst='$double_quote_subst'
12248
delay_variable_subst='$delay_variable_subst'
12249
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12250
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12251
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12252
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12253
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12254
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12255
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12256
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12257
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12258
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12259
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12260
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12261
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12262
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12263
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12264
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12265
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12266
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12267
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12268
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12269
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12270
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12271
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12272
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12273
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12274
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12275
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12276
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12277
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12278
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12279
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12280
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12281
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12282
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12283
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12286
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12287
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12288
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12289
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12290
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12291
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12292
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"`'
12293
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12294
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12295
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12296
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12297
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12298
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12299
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12300
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12301
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12302
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12303
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12304
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12305
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12306
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12307
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12308
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12309
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12310
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12311
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12313
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12314
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12315
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12316
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12317
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12318
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12319
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12320
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12321
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12322
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12323
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12324
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12325
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12326
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12327
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12328
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12329
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12330
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12331
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12332
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12333
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12334
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12335
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12336
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12337
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12338
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12339
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12340
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12341
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12342
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12343
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12344
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12345
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12346
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12347
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12348
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12349
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12350
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12351
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12352
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12353
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12354
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12355
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12356
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12357
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12358
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12359
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12360
 
12361
LTCC='$LTCC'
12362
LTCFLAGS='$LTCFLAGS'
12363
compiler='$compiler_DEFAULT'
12364
 
12365
# Quote evaled strings.
12366
for var in SED \
12367
GREP \
12368
EGREP \
12369
FGREP \
12370
LD \
12371
NM \
12372
LN_S \
12373
lt_SP2NL \
12374
lt_NL2SP \
12375
reload_flag \
12376
deplibs_check_method \
12377
file_magic_cmd \
12378
AR \
12379
AR_FLAGS \
12380
STRIP \
12381
RANLIB \
12382
CC \
12383
CFLAGS \
12384
compiler \
12385
lt_cv_sys_global_symbol_pipe \
12386
lt_cv_sys_global_symbol_to_cdecl \
12387
lt_cv_sys_global_symbol_to_c_name_address \
12388
SHELL \
12389
ECHO \
12390
lt_prog_compiler_no_builtin_flag \
12391
lt_prog_compiler_wl \
12392
lt_prog_compiler_pic \
12393
lt_prog_compiler_static \
12394
lt_cv_prog_compiler_c_o \
12395
need_locks \
12396
shrext_cmds \
12397
export_dynamic_flag_spec \
12398
whole_archive_flag_spec \
12399
compiler_needs_object \
12400
with_gnu_ld \
12401
allow_undefined_flag \
12402
no_undefined_flag \
12403
hardcode_libdir_flag_spec \
12404
hardcode_libdir_flag_spec_ld \
12405
hardcode_libdir_separator \
12406
fix_srcfile_path \
12407
exclude_expsyms \
12408
include_expsyms \
12409
file_list_spec \
12410
variables_saved_for_relink \
12411
libname_spec \
12412
library_names_spec \
12413
soname_spec \
12414
finish_eval \
12415
old_striplib \
12416
striplib; do
12417
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12418
    *[\\\\\\\`\\"\\\$]*)
12419
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12420
      ;;
12421
    *)
12422
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12423
      ;;
12424
    esac
12425
done
12426
 
12427
# Double-quote double-evaled strings.
12428
for var in reload_cmds \
12429
old_postinstall_cmds \
12430
old_postuninstall_cmds \
12431
old_archive_cmds \
12432
extract_expsyms_cmds \
12433
old_archive_from_new_cmds \
12434
old_archive_from_expsyms_cmds \
12435
archive_cmds \
12436
archive_expsym_cmds \
12437
module_cmds \
12438
module_expsym_cmds \
12439
export_symbols_cmds \
12440
prelink_cmds \
12441
postinstall_cmds \
12442
postuninstall_cmds \
12443
finish_cmds \
12444
sys_lib_search_path_spec \
12445
sys_lib_dlsearch_path_spec; do
12446
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12447
    *[\\\\\\\`\\"\\\$]*)
12448
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12449
      ;;
12450
    *)
12451
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12452
      ;;
12453
    esac
12454
done
12455
 
12456
# Fix-up fallback echo if it was mangled by the above quoting rules.
12457
case \$lt_ECHO in
12458
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12459
  ;;
12460
esac
12461
 
12462
ac_aux_dir='$ac_aux_dir'
12463
xsi_shell='$xsi_shell'
12464
lt_shell_append='$lt_shell_append'
12465
 
12466
# See if we are running on zsh, and set the options which allow our
12467
# commands through without removal of \ escapes INIT.
12468
if test -n "\${ZSH_VERSION+set}" ; then
12469
   setopt NO_GLOB_SUBST
12470
fi
12471
 
12472
 
12473
    PACKAGE='$PACKAGE'
12474
    VERSION='$VERSION'
12475
    TIMESTAMP='$TIMESTAMP'
12476
    RM='$RM'
12477
    ofile='$ofile'
12478
 
12479
 
12480
 
12481
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12482
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12483
    # from automake.
12484
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12485
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12486
    LINGUAS="${LINGUAS-%UNSET%}"
12487
 
12488
 
12489
_ACEOF
12490
 
12491
 
12492
 
12493
cat >>$CONFIG_STATUS <<\_ACEOF
12494
for ac_config_target in $ac_config_targets
12495
do
12496
  case "$ac_config_target" in
12497
  # Handling of arguments.
12498
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12499
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12500
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12501
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12502
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12503
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12504
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12505
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12506
   { (exit 1); exit 1; }; };;
12507
  esac
12508
done
12509
 
12510
# If the user did not use the arguments to specify the items to instantiate,
12511
# then the envvar interface is used.  Set only those that are not.
12512
# We use the long form for the default assignment because of an extremely
12513
# bizarre bug on SunOS 4.1.3.
12514
if $ac_need_defaults; then
12515
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12516
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12517
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12518
fi
12519
 
12520
# Have a temporary directory for convenience.  Make it in the build tree
12521
# simply because there is no reason to put it here, and in addition,
12522
# creating and moving files from /tmp can sometimes cause problems.
12523
# Create a temporary directory, and hook for its removal unless debugging.
12524
$debug ||
12525
{
12526
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12527
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12528
}
12529
 
12530
# Create a (secure) tmp directory for tmp files.
12531
 
12532
{
12533
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12534
  test -n "$tmp" && test -d "$tmp"
12535
}  ||
12536
{
12537
  tmp=./confstat$$-$RANDOM
12538
  (umask 077 && mkdir $tmp)
12539
} ||
12540
{
12541
   echo "$me: cannot create a temporary directory in ." >&2
12542
   { (exit 1); exit 1; }
12543
}
12544
 
12545
_ACEOF
12546
 
12547
cat >>$CONFIG_STATUS <<_ACEOF
12548
 
12549
#
12550
# CONFIG_FILES section.
12551
#
12552
 
12553
# No need to generate the scripts if there are no CONFIG_FILES.
12554
# This happens for instance when ./config.status config.h
12555
if test -n "\$CONFIG_FILES"; then
12556
  # Protect against being on the right side of a sed subst in config.status.
12557
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12558
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12559
s,@SHELL@,$SHELL,;t t
12560
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12561
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12562
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12563
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12564
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12565
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12566
s,@exec_prefix@,$exec_prefix,;t t
12567
s,@prefix@,$prefix,;t t
12568
s,@program_transform_name@,$program_transform_name,;t t
12569
s,@bindir@,$bindir,;t t
12570
s,@sbindir@,$sbindir,;t t
12571
s,@libexecdir@,$libexecdir,;t t
12572
s,@datadir@,$datadir,;t t
12573
s,@sysconfdir@,$sysconfdir,;t t
12574
s,@sharedstatedir@,$sharedstatedir,;t t
12575
s,@localstatedir@,$localstatedir,;t t
12576
s,@libdir@,$libdir,;t t
12577
s,@includedir@,$includedir,;t t
12578
s,@oldincludedir@,$oldincludedir,;t t
12579
s,@infodir@,$infodir,;t t
12580
s,@mandir@,$mandir,;t t
12581
s,@build_alias@,$build_alias,;t t
12582
s,@host_alias@,$host_alias,;t t
12583
s,@target_alias@,$target_alias,;t t
12584
s,@DEFS@,$DEFS,;t t
12585
s,@ECHO_C@,$ECHO_C,;t t
12586
s,@ECHO_N@,$ECHO_N,;t t
12587
s,@ECHO_T@,$ECHO_T,;t t
12588
s,@LIBS@,$LIBS,;t t
12589
s,@build@,$build,;t t
12590
s,@build_cpu@,$build_cpu,;t t
12591
s,@build_vendor@,$build_vendor,;t t
12592
s,@build_os@,$build_os,;t t
12593
s,@host@,$host,;t t
12594
s,@host_cpu@,$host_cpu,;t t
12595
s,@host_vendor@,$host_vendor,;t t
12596
s,@host_os@,$host_os,;t t
12597
s,@target@,$target,;t t
12598
s,@target_cpu@,$target_cpu,;t t
12599
s,@target_vendor@,$target_vendor,;t t
12600
s,@target_os@,$target_os,;t t
12601
s,@CC@,$CC,;t t
12602
s,@CFLAGS@,$CFLAGS,;t t
12603
s,@LDFLAGS@,$LDFLAGS,;t t
12604
s,@CPPFLAGS@,$CPPFLAGS,;t t
12605
s,@ac_ct_CC@,$ac_ct_CC,;t t
12606
s,@EXEEXT@,$EXEEXT,;t t
12607
s,@OBJEXT@,$OBJEXT,;t t
12608
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12609
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12610
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12611
s,@CYGPATH_W@,$CYGPATH_W,;t t
12612
s,@PACKAGE@,$PACKAGE,;t t
12613
s,@VERSION@,$VERSION,;t t
12614
s,@ACLOCAL@,$ACLOCAL,;t t
12615
s,@AUTOCONF@,$AUTOCONF,;t t
12616
s,@AUTOMAKE@,$AUTOMAKE,;t t
12617
s,@AUTOHEADER@,$AUTOHEADER,;t t
12618
s,@MAKEINFO@,$MAKEINFO,;t t
12619
s,@install_sh@,$install_sh,;t t
12620
s,@STRIP@,$STRIP,;t t
12621
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12622
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12623
s,@mkdir_p@,$mkdir_p,;t t
12624
s,@AWK@,$AWK,;t t
12625
s,@SET_MAKE@,$SET_MAKE,;t t
12626
s,@am__leading_dot@,$am__leading_dot,;t t
12627
s,@AMTAR@,$AMTAR,;t t
12628
s,@am__tar@,$am__tar,;t t
12629
s,@am__untar@,$am__untar,;t t
12630
s,@DEPDIR@,$DEPDIR,;t t
12631
s,@am__include@,$am__include,;t t
12632
s,@am__quote@,$am__quote,;t t
12633
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12634
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12635
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12636
s,@CCDEPMODE@,$CCDEPMODE,;t t
12637
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12638
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12639
s,@AR@,$AR,;t t
12640
s,@ac_ct_AR@,$ac_ct_AR,;t t
12641
s,@RANLIB@,$RANLIB,;t t
12642
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12643
s,@LIBTOOL@,$LIBTOOL,;t t
12644
s,@SED@,$SED,;t t
12645
s,@EGREP@,$EGREP,;t t
12646
s,@FGREP@,$FGREP,;t t
12647
s,@GREP@,$GREP,;t t
12648
s,@LD@,$LD,;t t
12649
s,@DUMPBIN@,$DUMPBIN,;t t
12650
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12651
s,@NM@,$NM,;t t
12652
s,@LN_S@,$LN_S,;t t
12653
s,@lt_ECHO@,$lt_ECHO,;t t
12654
s,@CPP@,$CPP,;t t
12655
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12656
s,@NO_WERROR@,$NO_WERROR,;t t
12657
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12658
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12659
s,@MAINT@,$MAINT,;t t
12660
s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12661
s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12662
s,@host_noncanonical@,$host_noncanonical,;t t
12663
s,@target_noncanonical@,$target_noncanonical,;t t
12664
s,@bfdlibdir@,$bfdlibdir,;t t
12665
s,@bfdincludedir@,$bfdincludedir,;t t
12666
s,@USE_NLS@,$USE_NLS,;t t
12667
s,@LIBINTL@,$LIBINTL,;t t
12668
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12669
s,@INCINTL@,$INCINTL,;t t
12670
s,@XGETTEXT@,$XGETTEXT,;t t
12671
s,@GMSGFMT@,$GMSGFMT,;t t
12672
s,@POSUB@,$POSUB,;t t
12673
s,@CATALOGS@,$CATALOGS,;t t
12674
s,@DATADIRNAME@,$DATADIRNAME,;t t
12675
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12676
s,@GENCAT@,$GENCAT,;t t
12677
s,@CATOBJEXT@,$CATOBJEXT,;t t
12678
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12679
s,@MSGFMT@,$MSGFMT,;t t
12680
s,@MSGMERGE@,$MSGMERGE,;t t
12681
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12682
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12683
s,@HDEFINES@,$HDEFINES,;t t
12684
s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12685
s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12686
s,@cgendir@,$cgendir,;t t
12687
s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
12688
s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
12689
s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
12690
s,@archdefs@,$archdefs,;t t
12691
s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12692
s,@LIBOBJS@,$LIBOBJS,;t t
12693
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12694
CEOF
12695
 
12696
_ACEOF
12697
 
12698
  cat >>$CONFIG_STATUS <<\_ACEOF
12699
  # Split the substitutions into bite-sized pieces for seds with
12700
  # small command number limits, like on Digital OSF/1 and HP-UX.
12701
  ac_max_sed_lines=48
12702
  ac_sed_frag=1 # Number of current file.
12703
  ac_beg=1 # First line for current file.
12704
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12705
  ac_more_lines=:
12706
  ac_sed_cmds=
12707
  while $ac_more_lines; do
12708
    if test $ac_beg -gt 1; then
12709
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12710
    else
12711
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12712
    fi
12713
    if test ! -s $tmp/subs.frag; then
12714
      ac_more_lines=false
12715
    else
12716
      # The purpose of the label and of the branching condition is to
12717
      # speed up the sed processing (if there are no `@' at all, there
12718
      # is no need to browse any of the substitutions).
12719
      # These are the two extra sed commands mentioned above.
12720
      (echo ':t
12721
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12722
      if test -z "$ac_sed_cmds"; then
12723
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12724
      else
12725
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12726
      fi
12727
      ac_sed_frag=`expr $ac_sed_frag + 1`
12728
      ac_beg=$ac_end
12729
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12730
    fi
12731
  done
12732
  if test -z "$ac_sed_cmds"; then
12733
    ac_sed_cmds=cat
12734
  fi
12735
fi # test -n "$CONFIG_FILES"
12736
 
12737
_ACEOF
12738
cat >>$CONFIG_STATUS <<\_ACEOF
12739
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12740
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12741
  case $ac_file in
12742
  - | *:- | *:-:* ) # input from stdin
12743
        cat >$tmp/stdin
12744
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12745
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12746
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12747
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12748
  * )   ac_file_in=$ac_file.in ;;
12749
  esac
12750
 
12751
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12752
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12753
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12754
         X"$ac_file" : 'X\(//\)[^/]' \| \
12755
         X"$ac_file" : 'X\(//\)$' \| \
12756
         X"$ac_file" : 'X\(/\)' \| \
12757
         .     : '\(.\)' 2>/dev/null ||
12758
echo X"$ac_file" |
12759
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12760
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12761
          /^X\(\/\/\)$/{ s//\1/; q; }
12762
          /^X\(\/\).*/{ s//\1/; q; }
12763
          s/.*/./; q'`
12764
  { if $as_mkdir_p; then
12765
    mkdir -p "$ac_dir"
12766
  else
12767
    as_dir="$ac_dir"
12768
    as_dirs=
12769
    while test ! -d "$as_dir"; do
12770
      as_dirs="$as_dir $as_dirs"
12771
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12772
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12773
         X"$as_dir" : 'X\(//\)[^/]' \| \
12774
         X"$as_dir" : 'X\(//\)$' \| \
12775
         X"$as_dir" : 'X\(/\)' \| \
12776
         .     : '\(.\)' 2>/dev/null ||
12777
echo X"$as_dir" |
12778
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12779
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12780
          /^X\(\/\/\)$/{ s//\1/; q; }
12781
          /^X\(\/\).*/{ s//\1/; q; }
12782
          s/.*/./; q'`
12783
    done
12784
    test ! -n "$as_dirs" || mkdir $as_dirs
12785
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12786
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12787
   { (exit 1); exit 1; }; }; }
12788
 
12789
  ac_builddir=.
12790
 
12791
if test "$ac_dir" != .; then
12792
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12793
  # A "../" for each directory in $ac_dir_suffix.
12794
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12795
else
12796
  ac_dir_suffix= ac_top_builddir=
12797
fi
12798
 
12799
case $srcdir in
12800
  .)  # No --srcdir option.  We are building in place.
12801
    ac_srcdir=.
12802
    if test -z "$ac_top_builddir"; then
12803
       ac_top_srcdir=.
12804
    else
12805
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12806
    fi ;;
12807
  [\\/]* | ?:[\\/]* )  # Absolute path.
12808
    ac_srcdir=$srcdir$ac_dir_suffix;
12809
    ac_top_srcdir=$srcdir ;;
12810
  *) # Relative path.
12811
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12812
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12813
esac
12814
 
12815
# Do not use `cd foo && pwd` to compute absolute paths, because
12816
# the directories may not exist.
12817
case `pwd` in
12818
.) ac_abs_builddir="$ac_dir";;
12819
*)
12820
  case "$ac_dir" in
12821
  .) ac_abs_builddir=`pwd`;;
12822
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12823
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12824
  esac;;
12825
esac
12826
case $ac_abs_builddir in
12827
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12828
*)
12829
  case ${ac_top_builddir}. in
12830
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12831
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12832
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12833
  esac;;
12834
esac
12835
case $ac_abs_builddir in
12836
.) ac_abs_srcdir=$ac_srcdir;;
12837
*)
12838
  case $ac_srcdir in
12839
  .) ac_abs_srcdir=$ac_abs_builddir;;
12840
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12841
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12842
  esac;;
12843
esac
12844
case $ac_abs_builddir in
12845
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12846
*)
12847
  case $ac_top_srcdir in
12848
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12849
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12850
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12851
  esac;;
12852
esac
12853
 
12854
 
12855
  case $INSTALL in
12856
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12857
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12858
  esac
12859
 
12860
  if test x"$ac_file" != x-; then
12861
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12862
echo "$as_me: creating $ac_file" >&6;}
12863
    rm -f "$ac_file"
12864
  fi
12865
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12866
  # use $as_me), people would be surprised to read:
12867
  #    /* config.h.  Generated by config.status.  */
12868
  if test x"$ac_file" = x-; then
12869
    configure_input=
12870
  else
12871
    configure_input="$ac_file.  "
12872
  fi
12873
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12874
                                     sed 's,.*/,,'` by configure."
12875
 
12876
  # First look for the input files in the build tree, otherwise in the
12877
  # src tree.
12878
  ac_file_inputs=`IFS=:
12879
    for f in $ac_file_in; do
12880
      case $f in
12881
      -) echo $tmp/stdin ;;
12882
      [\\/$]*)
12883
         # Absolute (can't be DOS-style, as IFS=:)
12884
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12885
echo "$as_me: error: cannot find input file: $f" >&2;}
12886
   { (exit 1); exit 1; }; }
12887
         echo "$f";;
12888
      *) # Relative
12889
         if test -f "$f"; then
12890
           # Build tree
12891
           echo "$f"
12892
         elif test -f "$srcdir/$f"; then
12893
           # Source tree
12894
           echo "$srcdir/$f"
12895
         else
12896
           # /dev/null tree
12897
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12898
echo "$as_me: error: cannot find input file: $f" >&2;}
12899
   { (exit 1); exit 1; }; }
12900
         fi;;
12901
      esac
12902
    done` || { (exit 1); exit 1; }
12903
_ACEOF
12904
cat >>$CONFIG_STATUS <<_ACEOF
12905
  sed "$ac_vpsub
12906
$extrasub
12907
_ACEOF
12908
cat >>$CONFIG_STATUS <<\_ACEOF
12909
:t
12910
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12911
s,@configure_input@,$configure_input,;t t
12912
s,@srcdir@,$ac_srcdir,;t t
12913
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12914
s,@top_srcdir@,$ac_top_srcdir,;t t
12915
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12916
s,@builddir@,$ac_builddir,;t t
12917
s,@abs_builddir@,$ac_abs_builddir,;t t
12918
s,@top_builddir@,$ac_top_builddir,;t t
12919
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12920
s,@INSTALL@,$ac_INSTALL,;t t
12921
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12922
  rm -f $tmp/stdin
12923
  if test x"$ac_file" != x-; then
12924
    mv $tmp/out $ac_file
12925
  else
12926
    cat $tmp/out
12927
    rm -f $tmp/out
12928
  fi
12929
 
12930
done
12931
_ACEOF
12932
cat >>$CONFIG_STATUS <<\_ACEOF
12933
 
12934
#
12935
# CONFIG_HEADER section.
12936
#
12937
 
12938
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12939
# NAME is the cpp macro being defined and VALUE is the value it is being given.
12940
#
12941
# ac_d sets the value in "#define NAME VALUE" lines.
12942
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12943
ac_dB='[         ].*$,\1#\2'
12944
ac_dC=' '
12945
ac_dD=',;t'
12946
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12947
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12948
ac_uB='$,\1#\2define\3'
12949
ac_uC=' '
12950
ac_uD=',;t'
12951
 
12952
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12953
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12954
  case $ac_file in
12955
  - | *:- | *:-:* ) # input from stdin
12956
        cat >$tmp/stdin
12957
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12958
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12959
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12960
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12961
  * )   ac_file_in=$ac_file.in ;;
12962
  esac
12963
 
12964
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12965
echo "$as_me: creating $ac_file" >&6;}
12966
 
12967
  # First look for the input files in the build tree, otherwise in the
12968
  # src tree.
12969
  ac_file_inputs=`IFS=:
12970
    for f in $ac_file_in; do
12971
      case $f in
12972
      -) echo $tmp/stdin ;;
12973
      [\\/$]*)
12974
         # Absolute (can't be DOS-style, as IFS=:)
12975
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12976
echo "$as_me: error: cannot find input file: $f" >&2;}
12977
   { (exit 1); exit 1; }; }
12978
         # Do quote $f, to prevent DOS paths from being IFS'd.
12979
         echo "$f";;
12980
      *) # Relative
12981
         if test -f "$f"; then
12982
           # Build tree
12983
           echo "$f"
12984
         elif test -f "$srcdir/$f"; then
12985
           # Source tree
12986
           echo "$srcdir/$f"
12987
         else
12988
           # /dev/null tree
12989
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12990
echo "$as_me: error: cannot find input file: $f" >&2;}
12991
   { (exit 1); exit 1; }; }
12992
         fi;;
12993
      esac
12994
    done` || { (exit 1); exit 1; }
12995
  # Remove the trailing spaces.
12996
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12997
 
12998
_ACEOF
12999
 
13000
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13001
# `conftest.undefs', that substitutes the proper values into
13002
# config.h.in to produce config.h.  The first handles `#define'
13003
# templates, and the second `#undef' templates.
13004
# And first: Protect against being on the right side of a sed subst in
13005
# config.status.  Protect against being in an unquoted here document
13006
# in config.status.
13007
rm -f conftest.defines conftest.undefs
13008
# Using a here document instead of a string reduces the quoting nightmare.
13009
# Putting comments in sed scripts is not portable.
13010
#
13011
# `end' is used to avoid that the second main sed command (meant for
13012
# 0-ary CPP macros) applies to n-ary macro definitions.
13013
# See the Autoconf documentation for `clear'.
13014
cat >confdef2sed.sed <<\_ACEOF
13015
s/[\\&,]/\\&/g
13016
s,[\\$`],\\&,g
13017
t clear
13018
: clear
13019
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13020
t end
13021
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13022
: end
13023
_ACEOF
13024
# If some macros were called several times there might be several times
13025
# the same #defines, which is useless.  Nevertheless, we may not want to
13026
# sort them, since we want the *last* AC-DEFINE to be honored.
13027
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13028
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13029
rm -f confdef2sed.sed
13030
 
13031
# This sed command replaces #undef with comments.  This is necessary, for
13032
# example, in the case of _POSIX_SOURCE, which is predefined and required
13033
# on some systems where configure will not decide to define it.
13034
cat >>conftest.undefs <<\_ACEOF
13035
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13036
_ACEOF
13037
 
13038
# Break up conftest.defines because some shells have a limit on the size
13039
# of here documents, and old seds have small limits too (100 cmds).
13040
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13041
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13042
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13043
echo '  :' >>$CONFIG_STATUS
13044
rm -f conftest.tail
13045
while grep . conftest.defines >/dev/null
13046
do
13047
  # Write a limited-size here document to $tmp/defines.sed.
13048
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
13049
  # Speed up: don't consider the non `#define' lines.
13050
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13051
  # Work around the forget-to-reset-the-flag bug.
13052
  echo 't clr' >>$CONFIG_STATUS
13053
  echo ': clr' >>$CONFIG_STATUS
13054
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13055
  echo 'CEOF
13056
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13057
  rm -f $tmp/in
13058
  mv $tmp/out $tmp/in
13059
' >>$CONFIG_STATUS
13060
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13061
  rm -f conftest.defines
13062
  mv conftest.tail conftest.defines
13063
done
13064
rm -f conftest.defines
13065
echo '  fi # grep' >>$CONFIG_STATUS
13066
echo >>$CONFIG_STATUS
13067
 
13068
# Break up conftest.undefs because some shells have a limit on the size
13069
# of here documents, and old seds have small limits too (100 cmds).
13070
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13071
rm -f conftest.tail
13072
while grep . conftest.undefs >/dev/null
13073
do
13074
  # Write a limited-size here document to $tmp/undefs.sed.
13075
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
13076
  # Speed up: don't consider the non `#undef'
13077
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13078
  # Work around the forget-to-reset-the-flag bug.
13079
  echo 't clr' >>$CONFIG_STATUS
13080
  echo ': clr' >>$CONFIG_STATUS
13081
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13082
  echo 'CEOF
13083
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13084
  rm -f $tmp/in
13085
  mv $tmp/out $tmp/in
13086
' >>$CONFIG_STATUS
13087
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13088
  rm -f conftest.undefs
13089
  mv conftest.tail conftest.undefs
13090
done
13091
rm -f conftest.undefs
13092
 
13093
cat >>$CONFIG_STATUS <<\_ACEOF
13094
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13095
  # use $as_me), people would be surprised to read:
13096
  #    /* config.h.  Generated by config.status.  */
13097
  if test x"$ac_file" = x-; then
13098
    echo "/* Generated by configure.  */" >$tmp/config.h
13099
  else
13100
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13101
  fi
13102
  cat $tmp/in >>$tmp/config.h
13103
  rm -f $tmp/in
13104
  if test x"$ac_file" != x-; then
13105
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13106
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13107
echo "$as_me: $ac_file is unchanged" >&6;}
13108
    else
13109
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13110
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13111
         X"$ac_file" : 'X\(//\)[^/]' \| \
13112
         X"$ac_file" : 'X\(//\)$' \| \
13113
         X"$ac_file" : 'X\(/\)' \| \
13114
         .     : '\(.\)' 2>/dev/null ||
13115
echo X"$ac_file" |
13116
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13117
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13118
          /^X\(\/\/\)$/{ s//\1/; q; }
13119
          /^X\(\/\).*/{ s//\1/; q; }
13120
          s/.*/./; q'`
13121
      { if $as_mkdir_p; then
13122
    mkdir -p "$ac_dir"
13123
  else
13124
    as_dir="$ac_dir"
13125
    as_dirs=
13126
    while test ! -d "$as_dir"; do
13127
      as_dirs="$as_dir $as_dirs"
13128
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13129
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13130
         X"$as_dir" : 'X\(//\)[^/]' \| \
13131
         X"$as_dir" : 'X\(//\)$' \| \
13132
         X"$as_dir" : 'X\(/\)' \| \
13133
         .     : '\(.\)' 2>/dev/null ||
13134
echo X"$as_dir" |
13135
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13136
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13137
          /^X\(\/\/\)$/{ s//\1/; q; }
13138
          /^X\(\/\).*/{ s//\1/; q; }
13139
          s/.*/./; q'`
13140
    done
13141
    test ! -n "$as_dirs" || mkdir $as_dirs
13142
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13143
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13144
   { (exit 1); exit 1; }; }; }
13145
 
13146
      rm -f $ac_file
13147
      mv $tmp/config.h $ac_file
13148
    fi
13149
  else
13150
    cat $tmp/config.h
13151
    rm -f $tmp/config.h
13152
  fi
13153
# Compute $ac_file's index in $config_headers.
13154
_am_stamp_count=1
13155
for _am_header in $config_headers :; do
13156
  case $_am_header in
13157
    $ac_file | $ac_file:* )
13158
      break ;;
13159
    * )
13160
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13161
  esac
13162
done
13163
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13164
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13165
         X$ac_file : 'X\(//\)[^/]' \| \
13166
         X$ac_file : 'X\(//\)$' \| \
13167
         X$ac_file : 'X\(/\)' \| \
13168
         .     : '\(.\)' 2>/dev/null ||
13169
echo X$ac_file |
13170
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13171
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13172
          /^X\(\/\/\)$/{ s//\1/; q; }
13173
          /^X\(\/\).*/{ s//\1/; q; }
13174
          s/.*/./; q'`/stamp-h$_am_stamp_count
13175
done
13176
_ACEOF
13177
cat >>$CONFIG_STATUS <<\_ACEOF
13178
 
13179
#
13180
# CONFIG_COMMANDS section.
13181
#
13182
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13183
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13184
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13185
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13186
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13187
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13188
         X"$ac_dest" : 'X\(//\)$' \| \
13189
         X"$ac_dest" : 'X\(/\)' \| \
13190
         .     : '\(.\)' 2>/dev/null ||
13191
echo X"$ac_dest" |
13192
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13193
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13194
          /^X\(\/\/\)$/{ s//\1/; q; }
13195
          /^X\(\/\).*/{ s//\1/; q; }
13196
          s/.*/./; q'`
13197
  { if $as_mkdir_p; then
13198
    mkdir -p "$ac_dir"
13199
  else
13200
    as_dir="$ac_dir"
13201
    as_dirs=
13202
    while test ! -d "$as_dir"; do
13203
      as_dirs="$as_dir $as_dirs"
13204
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13205
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13206
         X"$as_dir" : 'X\(//\)[^/]' \| \
13207
         X"$as_dir" : 'X\(//\)$' \| \
13208
         X"$as_dir" : 'X\(/\)' \| \
13209
         .     : '\(.\)' 2>/dev/null ||
13210
echo X"$as_dir" |
13211
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13212
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13213
          /^X\(\/\/\)$/{ s//\1/; q; }
13214
          /^X\(\/\).*/{ s//\1/; q; }
13215
          s/.*/./; q'`
13216
    done
13217
    test ! -n "$as_dirs" || mkdir $as_dirs
13218
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13219
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13220
   { (exit 1); exit 1; }; }; }
13221
 
13222
  ac_builddir=.
13223
 
13224
if test "$ac_dir" != .; then
13225
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13226
  # A "../" for each directory in $ac_dir_suffix.
13227
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13228
else
13229
  ac_dir_suffix= ac_top_builddir=
13230
fi
13231
 
13232
case $srcdir in
13233
  .)  # No --srcdir option.  We are building in place.
13234
    ac_srcdir=.
13235
    if test -z "$ac_top_builddir"; then
13236
       ac_top_srcdir=.
13237
    else
13238
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13239
    fi ;;
13240
  [\\/]* | ?:[\\/]* )  # Absolute path.
13241
    ac_srcdir=$srcdir$ac_dir_suffix;
13242
    ac_top_srcdir=$srcdir ;;
13243
  *) # Relative path.
13244
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13245
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13246
esac
13247
 
13248
# Do not use `cd foo && pwd` to compute absolute paths, because
13249
# the directories may not exist.
13250
case `pwd` in
13251
.) ac_abs_builddir="$ac_dir";;
13252
*)
13253
  case "$ac_dir" in
13254
  .) ac_abs_builddir=`pwd`;;
13255
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13256
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13257
  esac;;
13258
esac
13259
case $ac_abs_builddir in
13260
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13261
*)
13262
  case ${ac_top_builddir}. in
13263
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13264
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13265
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13266
  esac;;
13267
esac
13268
case $ac_abs_builddir in
13269
.) ac_abs_srcdir=$ac_srcdir;;
13270
*)
13271
  case $ac_srcdir in
13272
  .) ac_abs_srcdir=$ac_abs_builddir;;
13273
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13274
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13275
  esac;;
13276
esac
13277
case $ac_abs_builddir in
13278
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13279
*)
13280
  case $ac_top_srcdir in
13281
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13282
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13283
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13284
  esac;;
13285
esac
13286
 
13287
 
13288
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13289
echo "$as_me: executing $ac_dest commands" >&6;}
13290
  case $ac_dest in
13291
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13292
  # Strip MF so we end up with the name of the file.
13293
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13294
  # Check whether this is an Automake generated Makefile or not.
13295
  # We used to match only the files named `Makefile.in', but
13296
  # some people rename them; so instead we look at the file content.
13297
  # Grep'ing the first line is not enough: some people post-process
13298
  # each Makefile.in and add a new line on top of each file to say so.
13299
  # So let's grep whole file.
13300
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13301
    dirpart=`(dirname "$mf") 2>/dev/null ||
13302
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13303
         X"$mf" : 'X\(//\)[^/]' \| \
13304
         X"$mf" : 'X\(//\)$' \| \
13305
         X"$mf" : 'X\(/\)' \| \
13306
         .     : '\(.\)' 2>/dev/null ||
13307
echo X"$mf" |
13308
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13309
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13310
          /^X\(\/\/\)$/{ s//\1/; q; }
13311
          /^X\(\/\).*/{ s//\1/; q; }
13312
          s/.*/./; q'`
13313
  else
13314
    continue
13315
  fi
13316
  # Extract the definition of DEPDIR, am__include, and am__quote
13317
  # from the Makefile without running `make'.
13318
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13319
  test -z "$DEPDIR" && continue
13320
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13321
  test -z "am__include" && continue
13322
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13323
  # When using ansi2knr, U may be empty or an underscore; expand it
13324
  U=`sed -n 's/^U = //p' < "$mf"`
13325
  # Find all dependency output files, they are included files with
13326
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13327
  # simplest approach to changing $(DEPDIR) to its actual value in the
13328
  # expansion.
13329
  for file in `sed -n "
13330
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13331
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13332
    # Make sure the directory exists.
13333
    test -f "$dirpart/$file" && continue
13334
    fdir=`(dirname "$file") 2>/dev/null ||
13335
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13336
         X"$file" : 'X\(//\)[^/]' \| \
13337
         X"$file" : 'X\(//\)$' \| \
13338
         X"$file" : 'X\(/\)' \| \
13339
         .     : '\(.\)' 2>/dev/null ||
13340
echo X"$file" |
13341
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13342
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13343
          /^X\(\/\/\)$/{ s//\1/; q; }
13344
          /^X\(\/\).*/{ s//\1/; q; }
13345
          s/.*/./; q'`
13346
    { if $as_mkdir_p; then
13347
    mkdir -p $dirpart/$fdir
13348
  else
13349
    as_dir=$dirpart/$fdir
13350
    as_dirs=
13351
    while test ! -d "$as_dir"; do
13352
      as_dirs="$as_dir $as_dirs"
13353
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13354
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13355
         X"$as_dir" : 'X\(//\)[^/]' \| \
13356
         X"$as_dir" : 'X\(//\)$' \| \
13357
         X"$as_dir" : 'X\(/\)' \| \
13358
         .     : '\(.\)' 2>/dev/null ||
13359
echo X"$as_dir" |
13360
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13361
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13362
          /^X\(\/\/\)$/{ s//\1/; q; }
13363
          /^X\(\/\).*/{ s//\1/; q; }
13364
          s/.*/./; q'`
13365
    done
13366
    test ! -n "$as_dirs" || mkdir $as_dirs
13367
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13368
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13369
   { (exit 1); exit 1; }; }; }
13370
 
13371
    # echo "creating $dirpart/$file"
13372
    echo '# dummy' > "$dirpart/$file"
13373
  done
13374
done
13375
 ;;
13376
    libtool )
13377
 
13378
    # See if we are running on zsh, and set the options which allow our
13379
    # commands through without removal of \ escapes.
13380
    if test -n "${ZSH_VERSION+set}" ; then
13381
      setopt NO_GLOB_SUBST
13382
    fi
13383
 
13384
    cfgfile="${ofile}T"
13385
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13386
    $RM "$cfgfile"
13387
 
13388
    cat <<_LT_EOF >> "$cfgfile"
13389
#! $SHELL
13390
 
13391
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13392
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13393
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13394
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13395
#
13396
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13397
# 2006, 2007 Free Software Foundation, Inc.
13398
#
13399
# This file is part of GNU Libtool:
13400
# Originally by Gordon Matzigkeit , 1996
13401
#
13402
# This program is free software; you can redistribute it and/or modify
13403
# it under the terms of the GNU General Public License as published by
13404
# the Free Software Foundation; either version 2 of the License, or
13405
# (at your option) any later version.
13406
#
13407
# This program is distributed in the hope that it will be useful, but
13408
# WITHOUT ANY WARRANTY; without even the implied warranty of
13409
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13410
# General Public License for more details.
13411
#
13412
# You should have received a copy of the GNU General Public License
13413
# along with this program; if not, a copy can be downloaded from
13414
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13415
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13416
# MA 02110-1301, USA.
13417
#
13418
# As a special exception to the GNU General Public License, if you
13419
# distribute this file as part of a program that contains a
13420
# configuration script generated by Autoconf, you may include it under
13421
# the same distribution terms that you use for the rest of that program.
13422
 
13423
 
13424
# The names of the tagged configurations supported by this script.
13425
available_tags=""
13426
 
13427
# ### BEGIN LIBTOOL CONFIG
13428
 
13429
# Whether or not to build shared libraries.
13430
build_libtool_libs=$enable_shared
13431
 
13432
# Which release of libtool.m4 was used?
13433
macro_version=$macro_version
13434
macro_revision=$macro_revision
13435
 
13436
# Whether or not to build static libraries.
13437
build_old_libs=$enable_static
13438
 
13439
# What type of objects to build.
13440
pic_mode=$pic_mode
13441
 
13442
# Whether or not to optimize for fast installation.
13443
fast_install=$enable_fast_install
13444
 
13445
# The host system.
13446
host_alias=$host_alias
13447
host=$host
13448
host_os=$host_os
13449
 
13450
# The build system.
13451
build_alias=$build_alias
13452
build=$build
13453
build_os=$build_os
13454
 
13455
# A sed program that does not truncate output.
13456
SED=$lt_SED
13457
 
13458
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13459
Xsed="\$SED -e 1s/^X//"
13460
 
13461
# A grep program that handles long lines.
13462
GREP=$lt_GREP
13463
 
13464
# An ERE matcher.
13465
EGREP=$lt_EGREP
13466
 
13467
# A literal string matcher.
13468
FGREP=$lt_FGREP
13469
 
13470
# A BSD- or MS-compatible name lister.
13471
NM=$lt_NM
13472
 
13473
# Whether we need soft or hard links.
13474
LN_S=$lt_LN_S
13475
 
13476
# What is the maximum length of a command?
13477
max_cmd_len=$max_cmd_len
13478
 
13479
# Object file suffix (normally "o").
13480
objext=$ac_objext
13481
 
13482
# Executable file suffix (normally "").
13483
exeext=$exeext
13484
 
13485
# whether the shell understands "unset".
13486
lt_unset=$lt_unset
13487
 
13488
# turn spaces into newlines.
13489
SP2NL=$lt_lt_SP2NL
13490
 
13491
# turn newlines into spaces.
13492
NL2SP=$lt_lt_NL2SP
13493
 
13494
# How to create reloadable object files.
13495
reload_flag=$lt_reload_flag
13496
reload_cmds=$lt_reload_cmds
13497
 
13498
# Method to check whether dependent libraries are shared objects.
13499
deplibs_check_method=$lt_deplibs_check_method
13500
 
13501
# Command to use when deplibs_check_method == "file_magic".
13502
file_magic_cmd=$lt_file_magic_cmd
13503
 
13504
# The archiver.
13505
AR=$lt_AR
13506
AR_FLAGS=$lt_AR_FLAGS
13507
 
13508
# A symbol stripping program.
13509
STRIP=$lt_STRIP
13510
 
13511
# Commands used to install an old-style archive.
13512
RANLIB=$lt_RANLIB
13513
old_postinstall_cmds=$lt_old_postinstall_cmds
13514
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13515
 
13516
# A C compiler.
13517
LTCC=$lt_CC
13518
 
13519
# LTCC compiler flags.
13520
LTCFLAGS=$lt_CFLAGS
13521
 
13522
# Take the output of nm and produce a listing of raw symbols and C names.
13523
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13524
 
13525
# Transform the output of nm in a proper C declaration.
13526
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13527
 
13528
# Transform the output of nm in a C name address pair.
13529
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13530
 
13531
# The name of the directory that contains temporary libtool files.
13532
objdir=$objdir
13533
 
13534
# Shell to use when invoking shell scripts.
13535
SHELL=$lt_SHELL
13536
 
13537
# An echo program that does not interpret backslashes.
13538
ECHO=$lt_ECHO
13539
 
13540
# Used to examine libraries when file_magic_cmd begins with "file".
13541
MAGIC_CMD=$MAGIC_CMD
13542
 
13543
# Must we lock files when doing compilation?
13544
need_locks=$lt_need_locks
13545
 
13546
# Old archive suffix (normally "a").
13547
libext=$libext
13548
 
13549
# Shared library suffix (normally ".so").
13550
shrext_cmds=$lt_shrext_cmds
13551
 
13552
# The commands to extract the exported symbol list from a shared archive.
13553
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13554
 
13555
# Variables whose values should be saved in libtool wrapper scripts and
13556
# restored at link time.
13557
variables_saved_for_relink=$lt_variables_saved_for_relink
13558
 
13559
# Do we need the "lib" prefix for modules?
13560
need_lib_prefix=$need_lib_prefix
13561
 
13562
# Do we need a version for libraries?
13563
need_version=$need_version
13564
 
13565
# Library versioning type.
13566
version_type=$version_type
13567
 
13568
# Shared library runtime path variable.
13569
runpath_var=$runpath_var
13570
 
13571
# Shared library path variable.
13572
shlibpath_var=$shlibpath_var
13573
 
13574
# Is shlibpath searched before the hard-coded library search path?
13575
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13576
 
13577
# Format of library name prefix.
13578
libname_spec=$lt_libname_spec
13579
 
13580
# List of archive names.  First name is the real one, the rest are links.
13581
# The last name is the one that the linker finds with -lNAME
13582
library_names_spec=$lt_library_names_spec
13583
 
13584
# The coded name of the library, if different from the real name.
13585
soname_spec=$lt_soname_spec
13586
 
13587
# Command to use after installation of a shared archive.
13588
postinstall_cmds=$lt_postinstall_cmds
13589
 
13590
# Command to use after uninstallation of a shared archive.
13591
postuninstall_cmds=$lt_postuninstall_cmds
13592
 
13593
# Commands used to finish a libtool library installation in a directory.
13594
finish_cmds=$lt_finish_cmds
13595
 
13596
# As "finish_cmds", except a single script fragment to be evaled but
13597
# not shown.
13598
finish_eval=$lt_finish_eval
13599
 
13600
# Whether we should hardcode library paths into libraries.
13601
hardcode_into_libs=$hardcode_into_libs
13602
 
13603
# Compile-time system search path for libraries.
13604
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13605
 
13606
# Run-time system search path for libraries.
13607
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13608
 
13609
# Whether dlopen is supported.
13610
dlopen_support=$enable_dlopen
13611
 
13612
# Whether dlopen of programs is supported.
13613
dlopen_self=$enable_dlopen_self
13614
 
13615
# Whether dlopen of statically linked programs is supported.
13616
dlopen_self_static=$enable_dlopen_self_static
13617
 
13618
# Commands to strip libraries.
13619
old_striplib=$lt_old_striplib
13620
striplib=$lt_striplib
13621
 
13622
 
13623
# The linker used to build libraries.
13624
LD=$lt_LD
13625
 
13626
# Commands used to build an old-style archive.
13627
old_archive_cmds=$lt_old_archive_cmds
13628
 
13629
# A language specific compiler.
13630
CC=$lt_compiler
13631
 
13632
# Is the compiler the GNU compiler?
13633
with_gcc=$GCC
13634
 
13635
# Compiler flag to turn off builtin functions.
13636
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13637
 
13638
# How to pass a linker flag through the compiler.
13639
wl=$lt_lt_prog_compiler_wl
13640
 
13641
# Additional compiler flags for building library objects.
13642
pic_flag=$lt_lt_prog_compiler_pic
13643
 
13644
# Compiler flag to prevent dynamic linking.
13645
link_static_flag=$lt_lt_prog_compiler_static
13646
 
13647
# Does compiler simultaneously support -c and -o options?
13648
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13649
 
13650
# Whether or not to add -lc for building shared libraries.
13651
build_libtool_need_lc=$archive_cmds_need_lc
13652
 
13653
# Whether or not to disallow shared libs when runtime libs are static.
13654
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13655
 
13656
# Compiler flag to allow reflexive dlopens.
13657
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13658
 
13659
# Compiler flag to generate shared objects directly from archives.
13660
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13661
 
13662
# Whether the compiler copes with passing no objects directly.
13663
compiler_needs_object=$lt_compiler_needs_object
13664
 
13665
# Create an old-style archive from a shared archive.
13666
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13667
 
13668
# Create a temporary old-style archive to link instead of a shared archive.
13669
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13670
 
13671
# Commands used to build a shared archive.
13672
archive_cmds=$lt_archive_cmds
13673
archive_expsym_cmds=$lt_archive_expsym_cmds
13674
 
13675
# Commands used to build a loadable module if different from building
13676
# a shared archive.
13677
module_cmds=$lt_module_cmds
13678
module_expsym_cmds=$lt_module_expsym_cmds
13679
 
13680
# Whether we are building with GNU ld or not.
13681
with_gnu_ld=$lt_with_gnu_ld
13682
 
13683
# Flag that allows shared libraries with undefined symbols to be built.
13684
allow_undefined_flag=$lt_allow_undefined_flag
13685
 
13686
# Flag that enforces no undefined symbols.
13687
no_undefined_flag=$lt_no_undefined_flag
13688
 
13689
# Flag to hardcode \$libdir into a binary during linking.
13690
# This must work even if \$libdir does not exist
13691
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13692
 
13693
# If ld is used when linking, flag to hardcode \$libdir into a binary
13694
# during linking.  This must work even if \$libdir does not exist.
13695
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13696
 
13697
# Whether we need a single "-rpath" flag with a separated argument.
13698
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13699
 
13700
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13701
# DIR into the resulting binary.
13702
hardcode_direct=$hardcode_direct
13703
 
13704
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13705
# DIR into the resulting binary and the resulting library dependency is
13706
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13707
# library is relocated.
13708
hardcode_direct_absolute=$hardcode_direct_absolute
13709
 
13710
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13711
# into the resulting binary.
13712
hardcode_minus_L=$hardcode_minus_L
13713
 
13714
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13715
# into the resulting binary.
13716
hardcode_shlibpath_var=$hardcode_shlibpath_var
13717
 
13718
# Set to "yes" if building a shared library automatically hardcodes DIR
13719
# into the library and all subsequent libraries and executables linked
13720
# against it.
13721
hardcode_automatic=$hardcode_automatic
13722
 
13723
# Set to yes if linker adds runtime paths of dependent libraries
13724
# to runtime path list.
13725
inherit_rpath=$inherit_rpath
13726
 
13727
# Whether libtool must link a program against all its dependency libraries.
13728
link_all_deplibs=$link_all_deplibs
13729
 
13730
# Fix the shell variable \$srcfile for the compiler.
13731
fix_srcfile_path=$lt_fix_srcfile_path
13732
 
13733
# Set to "yes" if exported symbols are required.
13734
always_export_symbols=$always_export_symbols
13735
 
13736
# The commands to list exported symbols.
13737
export_symbols_cmds=$lt_export_symbols_cmds
13738
 
13739
# Symbols that should not be listed in the preloaded symbols.
13740
exclude_expsyms=$lt_exclude_expsyms
13741
 
13742
# Symbols that must always be exported.
13743
include_expsyms=$lt_include_expsyms
13744
 
13745
# Commands necessary for linking programs (against libraries) with templates.
13746
prelink_cmds=$lt_prelink_cmds
13747
 
13748
# Specify filename containing input files.
13749
file_list_spec=$lt_file_list_spec
13750
 
13751
# How to hardcode a shared library path into an executable.
13752
hardcode_action=$hardcode_action
13753
 
13754
# ### END LIBTOOL CONFIG
13755
 
13756
_LT_EOF
13757
 
13758
  case $host_os in
13759
  aix3*)
13760
    cat <<\_LT_EOF >> "$cfgfile"
13761
# AIX sometimes has problems with the GCC collect2 program.  For some
13762
# reason, if we set the COLLECT_NAMES environment variable, the problems
13763
# vanish in a puff of smoke.
13764
if test "X${COLLECT_NAMES+set}" != Xset; then
13765
  COLLECT_NAMES=
13766
  export COLLECT_NAMES
13767
fi
13768
_LT_EOF
13769
    ;;
13770
  esac
13771
 
13772
 
13773
ltmain="$ac_aux_dir/ltmain.sh"
13774
 
13775
 
13776
  # We use sed instead of cat because bash on DJGPP gets confused if
13777
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13778
  # text mode, it properly converts lines to CR/LF.  This bash problem
13779
  # is reportedly fixed, but why not run on old versions too?
13780
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13781
    || (rm -f "$cfgfile"; exit 1)
13782
 
13783
  case $xsi_shell in
13784
  yes)
13785
    cat << \_LT_EOF >> "$cfgfile"
13786
# func_dirname file append nondir_replacement
13787
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13788
# otherwise set result to NONDIR_REPLACEMENT.
13789
func_dirname ()
13790
{
13791
  case ${1} in
13792
    */*) func_dirname_result="${1%/*}${2}" ;;
13793
    *  ) func_dirname_result="${3}" ;;
13794
  esac
13795
}
13796
 
13797
# func_basename file
13798
func_basename ()
13799
{
13800
  func_basename_result="${1##*/}"
13801
}
13802
 
13803
# func_stripname prefix suffix name
13804
# strip PREFIX and SUFFIX off of NAME.
13805
# PREFIX and SUFFIX must not contain globbing or regex special
13806
# characters, hashes, percent signs, but SUFFIX may contain a leading
13807
# dot (in which case that matches only a dot).
13808
func_stripname ()
13809
{
13810
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13811
  # positional parameters, so assign one to ordinary parameter first.
13812
  func_stripname_result=${3}
13813
  func_stripname_result=${func_stripname_result#"${1}"}
13814
  func_stripname_result=${func_stripname_result%"${2}"}
13815
}
13816
 
13817
# func_opt_split
13818
func_opt_split ()
13819
{
13820
  func_opt_split_opt=${1%%=*}
13821
  func_opt_split_arg=${1#*=}
13822
}
13823
 
13824
# func_lo2o object
13825
func_lo2o ()
13826
{
13827
  case ${1} in
13828
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13829
    *)    func_lo2o_result=${1} ;;
13830
  esac
13831
}
13832
_LT_EOF
13833
    ;;
13834
  *) # Bourne compatible functions.
13835
    cat << \_LT_EOF >> "$cfgfile"
13836
# func_dirname file append nondir_replacement
13837
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13838
# otherwise set result to NONDIR_REPLACEMENT.
13839
func_dirname ()
13840
{
13841
  # Extract subdirectory from the argument.
13842
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13843
  if test "X$func_dirname_result" = "X${1}"; then
13844
    func_dirname_result="${3}"
13845
  else
13846
    func_dirname_result="$func_dirname_result${2}"
13847
  fi
13848
}
13849
 
13850
# func_basename file
13851
func_basename ()
13852
{
13853
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13854
}
13855
 
13856
# func_stripname prefix suffix name
13857
# strip PREFIX and SUFFIX off of NAME.
13858
# PREFIX and SUFFIX must not contain globbing or regex special
13859
# characters, hashes, percent signs, but SUFFIX may contain a leading
13860
# dot (in which case that matches only a dot).
13861
# func_strip_suffix prefix name
13862
func_stripname ()
13863
{
13864
  case ${2} in
13865
    .*) func_stripname_result=`$ECHO "X${3}" \
13866
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13867
    *)  func_stripname_result=`$ECHO "X${3}" \
13868
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13869
  esac
13870
}
13871
 
13872
# sed scripts:
13873
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13874
my_sed_long_arg='1s/^-[^=]*=//'
13875
 
13876
# func_opt_split
13877
func_opt_split ()
13878
{
13879
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13880
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13881
}
13882
 
13883
# func_lo2o object
13884
func_lo2o ()
13885
{
13886
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13887
}
13888
_LT_EOF
13889
esac
13890
 
13891
case $lt_shell_append in
13892
  yes)
13893
    cat << \_LT_EOF >> "$cfgfile"
13894
 
13895
# func_append var value
13896
# Append VALUE to the end of shell variable VAR.
13897
func_append ()
13898
{
13899
  eval "$1+=\$2"
13900
}
13901
_LT_EOF
13902
    ;;
13903
  *)
13904
    cat << \_LT_EOF >> "$cfgfile"
13905
 
13906
# func_append var value
13907
# Append VALUE to the end of shell variable VAR.
13908
func_append ()
13909
{
13910
  eval "$1=\$$1\$2"
13911
}
13912
_LT_EOF
13913
    ;;
13914
  esac
13915
 
13916
 
13917
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13918
    || (rm -f "$cfgfile"; exit 1)
13919
 
13920
  mv -f "$cfgfile" "$ofile" ||
13921
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13922
  chmod +x "$ofile"
13923
 
13924
 ;;
13925
    default-1 )
13926
    for ac_file in $CONFIG_FILES; do
13927
      # Support "outfile[:infile[:infile...]]"
13928
      case "$ac_file" in
13929
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13930
      esac
13931
      # PO directories have a Makefile.in generated from Makefile.in.in.
13932
      case "$ac_file" in */Makefile.in)
13933
        # Adjust a relative srcdir.
13934
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13935
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13936
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13937
        # In autoconf-2.13 it is called $ac_given_srcdir.
13938
        # In autoconf-2.50 it is called $srcdir.
13939
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13940
        case "$ac_given_srcdir" in
13941
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13942
          /*) top_srcdir="$ac_given_srcdir" ;;
13943
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13944
        esac
13945
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13946
          rm -f "$ac_dir/POTFILES"
13947
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13948
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13949
          POMAKEFILEDEPS="POTFILES.in"
13950
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13951
          # on $ac_dir but don't depend on user-specified configuration
13952
          # parameters.
13953
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13954
            # The LINGUAS file contains the set of available languages.
13955
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
13956
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13957
            fi
13958
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13959
            # Hide the ALL_LINGUAS assigment from automake.
13960
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13961
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13962
          else
13963
            # The set of available languages was given in configure.in.
13964
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13965
          fi
13966
          case "$ac_given_srcdir" in
13967
            .) srcdirpre= ;;
13968
            *) srcdirpre='$(srcdir)/' ;;
13969
          esac
13970
          POFILES=
13971
          GMOFILES=
13972
          UPDATEPOFILES=
13973
          DUMMYPOFILES=
13974
          for lang in $ALL_LINGUAS; do
13975
            POFILES="$POFILES $srcdirpre$lang.po"
13976
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13977
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13978
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13979
          done
13980
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13981
          # environment variable.
13982
          INST_LINGUAS=
13983
          if test -n "$ALL_LINGUAS"; then
13984
            for presentlang in $ALL_LINGUAS; do
13985
              useit=no
13986
              if test "%UNSET%" != "$LINGUAS"; then
13987
                desiredlanguages="$LINGUAS"
13988
              else
13989
                desiredlanguages="$ALL_LINGUAS"
13990
              fi
13991
              for desiredlang in $desiredlanguages; do
13992
                # Use the presentlang catalog if desiredlang is
13993
                #   a. equal to presentlang, or
13994
                #   b. a variant of presentlang (because in this case,
13995
                #      presentlang can be used as a fallback for messages
13996
                #      which are not translated in the desiredlang catalog).
13997
                case "$desiredlang" in
13998
                  "$presentlang"*) useit=yes;;
13999
                esac
14000
              done
14001
              if test $useit = yes; then
14002
                INST_LINGUAS="$INST_LINGUAS $presentlang"
14003
              fi
14004
            done
14005
          fi
14006
          CATALOGS=
14007
          if test -n "$INST_LINGUAS"; then
14008
            for lang in $INST_LINGUAS; do
14009
              CATALOGS="$CATALOGS $lang.gmo"
14010
            done
14011
          fi
14012
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14013
          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"
14014
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14015
            if test -f "$f"; then
14016
              case "$f" in
14017
                *.orig | *.bak | *~) ;;
14018
                *) cat "$f" >> "$ac_dir/Makefile" ;;
14019
              esac
14020
            fi
14021
          done
14022
        fi
14023
        ;;
14024
      esac
14025
    done ;;
14026
  esac
14027
done
14028
_ACEOF
14029
 
14030
cat >>$CONFIG_STATUS <<\_ACEOF
14031
 
14032
{ (exit 0); exit 0; }
14033
_ACEOF
14034
chmod +x $CONFIG_STATUS
14035
ac_clean_files=$ac_clean_files_save
14036
 
14037
 
14038
# configure is writing to config.log, and then calls config.status.
14039
# config.status does its own redirection, appending to config.log.
14040
# Unfortunately, on DOS this fails, as config.log is still kept open
14041
# by configure, so config.status won't be able to write to it; its
14042
# output is simply discarded.  So we exec the FD to /dev/null,
14043
# effectively closing config.log, so it can be properly (re)opened and
14044
# appended to by config.status.  When coming back to configure, we
14045
# need to make the FD available again.
14046
if test "$no_create" != yes; then
14047
  ac_cs_success=:
14048
  ac_config_status_args=
14049
  test "$silent" = yes &&
14050
    ac_config_status_args="$ac_config_status_args --quiet"
14051
  exec 5>/dev/null
14052
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14053
  exec 5>>config.log
14054
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14055
  # would make configure fail if this is the last instruction.
14056
  $ac_cs_success || { (exit 1); exit 1; }
14057
fi
14058
 

powered by: WebSVN 2.1.0

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