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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [machine/] [i386/] [configure] - Blame information for rev 438

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

Line No. Rev Author Line
1 148 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
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='newlib'
418
PACKAGE_TARNAME='newlib'
419
PACKAGE_VERSION='1.17.0'
420
PACKAGE_STRING='newlib 1.17.0'
421
PACKAGE_BUGREPORT=''
422
 
423
ac_unique_file="crt0.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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP 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_CCAS_set=${CCAS+set}
903
ac_env_CCAS_value=$CCAS
904
ac_cv_env_CCAS_set=${CCAS+set}
905
ac_cv_env_CCAS_value=$CCAS
906
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
907
ac_env_CCASFLAGS_value=$CCASFLAGS
908
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
909
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
910
ac_env_CC_set=${CC+set}
911
ac_env_CC_value=$CC
912
ac_cv_env_CC_set=${CC+set}
913
ac_cv_env_CC_value=$CC
914
ac_env_CFLAGS_set=${CFLAGS+set}
915
ac_env_CFLAGS_value=$CFLAGS
916
ac_cv_env_CFLAGS_set=${CFLAGS+set}
917
ac_cv_env_CFLAGS_value=$CFLAGS
918
ac_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_env_LDFLAGS_value=$LDFLAGS
920
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921
ac_cv_env_LDFLAGS_value=$LDFLAGS
922
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_env_CPPFLAGS_value=$CPPFLAGS
924
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926
ac_env_CPP_set=${CPP+set}
927
ac_env_CPP_value=$CPP
928
ac_cv_env_CPP_set=${CPP+set}
929
ac_cv_env_CPP_value=$CPP
930
 
931
#
932
# Report the --help message.
933
#
934
if test "$ac_init_help" = "long"; then
935
  # Omit some internal or obsolete options to make the list less imposing.
936
  # This message is too long to be a string in the A/UX 3.1 sh.
937
  cat <<_ACEOF
938
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
939
 
940
Usage: $0 [OPTION]... [VAR=VALUE]...
941
 
942
To assign environment variables (e.g., CC, CFLAGS...), specify them as
943
VAR=VALUE.  See below for descriptions of some of the useful variables.
944
 
945
Defaults for the options are specified in brackets.
946
 
947
Configuration:
948
  -h, --help              display this help and exit
949
      --help=short        display options specific to this package
950
      --help=recursive    display the short help of all the included packages
951
  -V, --version           display version information and exit
952
  -q, --quiet, --silent   do not print \`checking...' messages
953
      --cache-file=FILE   cache test results in FILE [disabled]
954
  -C, --config-cache      alias for \`--cache-file=config.cache'
955
  -n, --no-create         do not create output files
956
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
957
 
958
_ACEOF
959
 
960
  cat <<_ACEOF
961
Installation directories:
962
  --prefix=PREFIX         install architecture-independent files in PREFIX
963
                          [$ac_default_prefix]
964
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
965
                          [PREFIX]
966
 
967
By default, \`make install' will install all the files in
968
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
969
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970
for instance \`--prefix=\$HOME'.
971
 
972
For better control, use the options below.
973
 
974
Fine tuning of the installation directories:
975
  --bindir=DIR           user executables [EPREFIX/bin]
976
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
977
  --libexecdir=DIR       program executables [EPREFIX/libexec]
978
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
979
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
980
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
981
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
982
  --libdir=DIR           object code libraries [EPREFIX/lib]
983
  --includedir=DIR       C header files [PREFIX/include]
984
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
985
  --infodir=DIR          info documentation [PREFIX/info]
986
  --mandir=DIR           man documentation [PREFIX/man]
987
_ACEOF
988
 
989
  cat <<\_ACEOF
990
 
991
Program names:
992
  --program-prefix=PREFIX            prepend PREFIX to installed program names
993
  --program-suffix=SUFFIX            append SUFFIX to installed program names
994
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
995
 
996
System types:
997
  --build=BUILD     configure for building on BUILD [guessed]
998
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
999
_ACEOF
1000
fi
1001
 
1002
if test -n "$ac_init_help"; then
1003
  case $ac_init_help in
1004
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1005
   esac
1006
  cat <<\_ACEOF
1007
 
1008
Optional Features:
1009
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011
  --enable-multilib         build many library versions (default)
1012
  --enable-target-optspace  optimize for space
1013
  --enable-malloc-debugging indicate malloc debugging requested
1014
  --enable-newlib-multithread        enable support for multiple threads
1015
  --enable-newlib-iconv     enable iconv library support
1016
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1017
  --disable-newlib-io-float disable printf/scanf family float support
1018
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1019
  --disable-dependency-tracking  speeds up one-time build
1020
  --enable-dependency-tracking   do not reject slow dependency extractors
1021
  --enable-maintainer-mode  enable make rules and dependencies not useful
1022
                          (and sometimes confusing) to the casual installer
1023
  --enable-shared[=PKGS]
1024
                          build shared libraries [default=yes]
1025
  --enable-static[=PKGS]
1026
                          build static libraries [default=yes]
1027
  --enable-fast-install[=PKGS]
1028
                          optimize for fast installation [default=yes]
1029
  --disable-libtool-lock  avoid locking (might break parallel builds)
1030
 
1031
Optional Packages:
1032
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034
  --with-pic              try to use only PIC/non-PIC objects [default=use
1035
                          both]
1036
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037
 
1038
Some influential environment variables:
1039
  CCAS        assembler compiler command (defaults to CC)
1040
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1041
  CC          C compiler command
1042
  CFLAGS      C compiler flags
1043
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1044
              nonstandard directory 
1045
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1046
              headers in a nonstandard directory 
1047
  CPP         C preprocessor
1048
 
1049
Use these variables to override the choices made by `configure' or to help
1050
it to find libraries and programs with nonstandard names/locations.
1051
 
1052
_ACEOF
1053
fi
1054
 
1055
if test "$ac_init_help" = "recursive"; then
1056
  # If there are subdirs, report their specific --help.
1057
  ac_popdir=`pwd`
1058
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059
    test -d $ac_dir || continue
1060
    ac_builddir=.
1061
 
1062
if test "$ac_dir" != .; then
1063
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064
  # A "../" for each directory in $ac_dir_suffix.
1065
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066
else
1067
  ac_dir_suffix= ac_top_builddir=
1068
fi
1069
 
1070
case $srcdir in
1071
  .)  # No --srcdir option.  We are building in place.
1072
    ac_srcdir=.
1073
    if test -z "$ac_top_builddir"; then
1074
       ac_top_srcdir=.
1075
    else
1076
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077
    fi ;;
1078
  [\\/]* | ?:[\\/]* )  # Absolute path.
1079
    ac_srcdir=$srcdir$ac_dir_suffix;
1080
    ac_top_srcdir=$srcdir ;;
1081
  *) # Relative path.
1082
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084
esac
1085
 
1086
# Do not use `cd foo && pwd` to compute absolute paths, because
1087
# the directories may not exist.
1088
case `pwd` in
1089
.) ac_abs_builddir="$ac_dir";;
1090
*)
1091
  case "$ac_dir" in
1092
  .) ac_abs_builddir=`pwd`;;
1093
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095
  esac;;
1096
esac
1097
case $ac_abs_builddir in
1098
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099
*)
1100
  case ${ac_top_builddir}. in
1101
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1102
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104
  esac;;
1105
esac
1106
case $ac_abs_builddir in
1107
.) ac_abs_srcdir=$ac_srcdir;;
1108
*)
1109
  case $ac_srcdir in
1110
  .) ac_abs_srcdir=$ac_abs_builddir;;
1111
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113
  esac;;
1114
esac
1115
case $ac_abs_builddir in
1116
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117
*)
1118
  case $ac_top_srcdir in
1119
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122
  esac;;
1123
esac
1124
 
1125
    cd $ac_dir
1126
    # Check for guested configure; otherwise get Cygnus style configure.
1127
    if test -f $ac_srcdir/configure.gnu; then
1128
      echo
1129
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1130
    elif test -f $ac_srcdir/configure; then
1131
      echo
1132
      $SHELL $ac_srcdir/configure  --help=recursive
1133
    elif test -f $ac_srcdir/configure.ac ||
1134
           test -f $ac_srcdir/configure.in; then
1135
      echo
1136
      $ac_configure --help
1137
    else
1138
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139
    fi
1140
    cd $ac_popdir
1141
  done
1142
fi
1143
 
1144
test -n "$ac_init_help" && exit 0
1145
if $ac_init_version; then
1146
  cat <<\_ACEOF
1147
newlib configure 1.17.0
1148
generated by GNU Autoconf 2.59
1149
 
1150
Copyright (C) 2003 Free Software Foundation, Inc.
1151
This configure script is free software; the Free Software Foundation
1152
gives unlimited permission to copy, distribute and modify it.
1153
_ACEOF
1154
  exit 0
1155
fi
1156
exec 5>config.log
1157
cat >&5 <<_ACEOF
1158
This file contains any messages produced by compilers while
1159
running configure, to aid debugging if configure makes a mistake.
1160
 
1161
It was created by newlib $as_me 1.17.0, which was
1162
generated by GNU Autoconf 2.59.  Invocation command line was
1163
 
1164
  $ $0 $@
1165
 
1166
_ACEOF
1167
{
1168
cat <<_ASUNAME
1169
## --------- ##
1170
## Platform. ##
1171
## --------- ##
1172
 
1173
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1174
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1175
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1176
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1177
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1178
 
1179
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1180
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1181
 
1182
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1183
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1184
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1185
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1186
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1187
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1188
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1189
 
1190
_ASUNAME
1191
 
1192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193
for as_dir in $PATH
1194
do
1195
  IFS=$as_save_IFS
1196
  test -z "$as_dir" && as_dir=.
1197
  echo "PATH: $as_dir"
1198
done
1199
 
1200
} >&5
1201
 
1202
cat >&5 <<_ACEOF
1203
 
1204
 
1205
## ----------- ##
1206
## Core tests. ##
1207
## ----------- ##
1208
 
1209
_ACEOF
1210
 
1211
 
1212
# Keep a trace of the command line.
1213
# Strip out --no-create and --no-recursion so they do not pile up.
1214
# Strip out --silent because we don't want to record it for future runs.
1215
# Also quote any args containing shell meta-characters.
1216
# Make two passes to allow for proper duplicate-argument suppression.
1217
ac_configure_args=
1218
ac_configure_args0=
1219
ac_configure_args1=
1220
ac_sep=
1221
ac_must_keep_next=false
1222
for ac_pass in 1 2
1223
do
1224
  for ac_arg
1225
  do
1226
    case $ac_arg in
1227
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1228
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229
    | -silent | --silent | --silen | --sile | --sil)
1230
      continue ;;
1231
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1233
    esac
1234
    case $ac_pass in
1235
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1236
    2)
1237
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1238
      if test $ac_must_keep_next = true; then
1239
        ac_must_keep_next=false # Got value, back to normal.
1240
      else
1241
        case $ac_arg in
1242
          *=* | --config-cache | -C | -disable-* | --disable-* \
1243
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1244
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1245
          | -with-* | --with-* | -without-* | --without-* | --x)
1246
            case "$ac_configure_args0 " in
1247
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1248
            esac
1249
            ;;
1250
          -* ) ac_must_keep_next=true ;;
1251
        esac
1252
      fi
1253
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1254
      # Get rid of the leading space.
1255
      ac_sep=" "
1256
      ;;
1257
    esac
1258
  done
1259
done
1260
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1261
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1262
 
1263
# When interrupted or exit'd, cleanup temporary files, and complete
1264
# config.log.  We remove comments because anyway the quotes in there
1265
# would cause problems or look ugly.
1266
# WARNING: Be sure not to use single quotes in there, as some shells,
1267
# such as our DU 5.0 friend, will then `close' the trap.
1268
trap 'exit_status=$?
1269
  # Save into config.log some information that might help in debugging.
1270
  {
1271
    echo
1272
 
1273
    cat <<\_ASBOX
1274
## ---------------- ##
1275
## Cache variables. ##
1276
## ---------------- ##
1277
_ASBOX
1278
    echo
1279
    # The following way of writing the cache mishandles newlines in values,
1280
{
1281
  (set) 2>&1 |
1282
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1283
    *ac_space=\ *)
1284
      sed -n \
1285
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1286
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287
      ;;
1288
    *)
1289
      sed -n \
1290
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291
      ;;
1292
    esac;
1293
}
1294
    echo
1295
 
1296
    cat <<\_ASBOX
1297
## ----------------- ##
1298
## Output variables. ##
1299
## ----------------- ##
1300
_ASBOX
1301
    echo
1302
    for ac_var in $ac_subst_vars
1303
    do
1304
      eval ac_val=$`echo $ac_var`
1305
      echo "$ac_var='"'"'$ac_val'"'"'"
1306
    done | sort
1307
    echo
1308
 
1309
    if test -n "$ac_subst_files"; then
1310
      cat <<\_ASBOX
1311
## ------------- ##
1312
## Output files. ##
1313
## ------------- ##
1314
_ASBOX
1315
      echo
1316
      for ac_var in $ac_subst_files
1317
      do
1318
        eval ac_val=$`echo $ac_var`
1319
        echo "$ac_var='"'"'$ac_val'"'"'"
1320
      done | sort
1321
      echo
1322
    fi
1323
 
1324
    if test -s confdefs.h; then
1325
      cat <<\_ASBOX
1326
## ----------- ##
1327
## confdefs.h. ##
1328
## ----------- ##
1329
_ASBOX
1330
      echo
1331
      sed "/^$/d" confdefs.h | sort
1332
      echo
1333
    fi
1334
    test "$ac_signal" != 0 &&
1335
      echo "$as_me: caught signal $ac_signal"
1336
    echo "$as_me: exit $exit_status"
1337
  } >&5
1338
  rm -f core *.core &&
1339
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1340
    exit $exit_status
1341
     ' 0
1342
for ac_signal in 1 2 13 15; do
1343
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344
done
1345
ac_signal=0
1346
 
1347
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1348
rm -rf conftest* confdefs.h
1349
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1350
echo >confdefs.h
1351
 
1352
# Predefined preprocessor variables.
1353
 
1354
cat >>confdefs.h <<_ACEOF
1355
#define PACKAGE_NAME "$PACKAGE_NAME"
1356
_ACEOF
1357
 
1358
 
1359
cat >>confdefs.h <<_ACEOF
1360
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361
_ACEOF
1362
 
1363
 
1364
cat >>confdefs.h <<_ACEOF
1365
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1366
_ACEOF
1367
 
1368
 
1369
cat >>confdefs.h <<_ACEOF
1370
#define PACKAGE_STRING "$PACKAGE_STRING"
1371
_ACEOF
1372
 
1373
 
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376
_ACEOF
1377
 
1378
 
1379
# Let the site file select an alternate cache file if it wants to.
1380
# Prefer explicitly selected file to automatically selected ones.
1381
if test -z "$CONFIG_SITE"; then
1382
  if test "x$prefix" != xNONE; then
1383
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1384
  else
1385
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1386
  fi
1387
fi
1388
for ac_site_file in $CONFIG_SITE; do
1389
  if test -r "$ac_site_file"; then
1390
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1391
echo "$as_me: loading site script $ac_site_file" >&6;}
1392
    sed 's/^/| /' "$ac_site_file" >&5
1393
    . "$ac_site_file"
1394
  fi
1395
done
1396
 
1397
if test -r "$cache_file"; then
1398
  # Some versions of bash will fail to source /dev/null (special
1399
  # files actually), so we avoid doing that.
1400
  if test -f "$cache_file"; then
1401
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1402
echo "$as_me: loading cache $cache_file" >&6;}
1403
    case $cache_file in
1404
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1405
      *)                      . ./$cache_file;;
1406
    esac
1407
  fi
1408
else
1409
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1410
echo "$as_me: creating cache $cache_file" >&6;}
1411
  >$cache_file
1412
fi
1413
 
1414
# Check that the precious variables saved in the cache have kept the same
1415
# value.
1416
ac_cache_corrupted=false
1417
for ac_var in `(set) 2>&1 |
1418
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1419
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1420
  eval ac_new_set=\$ac_env_${ac_var}_set
1421
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1422
  eval ac_new_val="\$ac_env_${ac_var}_value"
1423
  case $ac_old_set,$ac_new_set in
1424
    set,)
1425
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1426
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1427
      ac_cache_corrupted=: ;;
1428
    ,set)
1429
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1430
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1431
      ac_cache_corrupted=: ;;
1432
    ,);;
1433
    *)
1434
      if test "x$ac_old_val" != "x$ac_new_val"; then
1435
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1438
echo "$as_me:   former value:  $ac_old_val" >&2;}
1439
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1440
echo "$as_me:   current value: $ac_new_val" >&2;}
1441
        ac_cache_corrupted=:
1442
      fi;;
1443
  esac
1444
  # Pass precious variables to config.status.
1445
  if test "$ac_new_set" = set; then
1446
    case $ac_new_val in
1447
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1448
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1449
    *) ac_arg=$ac_var=$ac_new_val ;;
1450
    esac
1451
    case " $ac_configure_args " in
1452
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1453
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454
    esac
1455
  fi
1456
done
1457
if $ac_cache_corrupted; then
1458
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462
   { (exit 1); exit 1; }; }
1463
fi
1464
 
1465
ac_ext=c
1466
ac_cpp='$CPP $CPPFLAGS'
1467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
ac_aux_dir=
1500
for ac_dir in ../../../../../.. $srcdir/../../../../../..; do
1501
  if test -f $ac_dir/install-sh; then
1502
    ac_aux_dir=$ac_dir
1503
    ac_install_sh="$ac_aux_dir/install-sh -c"
1504
    break
1505
  elif test -f $ac_dir/install.sh; then
1506
    ac_aux_dir=$ac_dir
1507
    ac_install_sh="$ac_aux_dir/install.sh -c"
1508
    break
1509
  elif test -f $ac_dir/shtool; then
1510
    ac_aux_dir=$ac_dir
1511
    ac_install_sh="$ac_aux_dir/shtool install -c"
1512
    break
1513
  fi
1514
done
1515
if test -z "$ac_aux_dir"; then
1516
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&5
1517
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. $srcdir/../../../../../.." >&2;}
1518
   { (exit 1); exit 1; }; }
1519
fi
1520
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1521
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1522
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1523
 
1524
 
1525
 
1526
# Make sure we can run config.sub.
1527
$ac_config_sub sun4 >/dev/null 2>&1 ||
1528
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530
   { (exit 1); exit 1; }; }
1531
 
1532
echo "$as_me:$LINENO: checking build system type" >&5
1533
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534
if test "${ac_cv_build+set}" = set; then
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
1536
else
1537
  ac_cv_build_alias=$build_alias
1538
test -z "$ac_cv_build_alias" &&
1539
  ac_cv_build_alias=`$ac_config_guess`
1540
test -z "$ac_cv_build_alias" &&
1541
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543
   { (exit 1); exit 1; }; }
1544
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547
   { (exit 1); exit 1; }; }
1548
 
1549
fi
1550
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551
echo "${ECHO_T}$ac_cv_build" >&6
1552
build=$ac_cv_build
1553
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
 
1557
 
1558
am__api_version="1.9"
1559
# Find a good install program.  We prefer a C program (faster),
1560
# so one script is as good as another.  But avoid the broken or
1561
# incompatible versions:
1562
# SysV /etc/install, /usr/sbin/install
1563
# SunOS /usr/etc/install
1564
# IRIX /sbin/install
1565
# AIX /bin/install
1566
# AmigaOS /C/install, which installs bootblocks on floppy discs
1567
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570
# OS/2's system install, which has a completely different semantic
1571
# ./install, which can be erroneously created by make from ./install.sh.
1572
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574
if test -z "$INSTALL"; then
1575
if test "${ac_cv_path_install+set}" = set; then
1576
  echo $ECHO_N "(cached) $ECHO_C" >&6
1577
else
1578
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579
for as_dir in $PATH
1580
do
1581
  IFS=$as_save_IFS
1582
  test -z "$as_dir" && as_dir=.
1583
  # Account for people who put trailing slashes in PATH elements.
1584
case $as_dir/ in
1585
  ./ | .// | /cC/* | \
1586
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1588
  /usr/ucb/* ) ;;
1589
  *)
1590
    # OSF1 and SCO ODT 3.0 have their own names for install.
1591
    # Don't use installbsd from OSF since it installs stuff as root
1592
    # by default.
1593
    for ac_prog in ginstall scoinst install; do
1594
      for ac_exec_ext in '' $ac_executable_extensions; do
1595
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1596
          if test $ac_prog = install &&
1597
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598
            # AIX install.  It has an incompatible calling convention.
1599
            :
1600
          elif test $ac_prog = install &&
1601
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602
            # program-specific install script used by HP pwplus--don't use.
1603
            :
1604
          else
1605
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1606
            break 3
1607
          fi
1608
        fi
1609
      done
1610
    done
1611
    ;;
1612
esac
1613
done
1614
 
1615
 
1616
fi
1617
  if test "${ac_cv_path_install+set}" = set; then
1618
    INSTALL=$ac_cv_path_install
1619
  else
1620
    # As a last resort, use the slow shell script.  We don't cache a
1621
    # path for INSTALL within a source directory, because that will
1622
    # break other packages using the cache if that directory is
1623
    # removed, or if the path is relative.
1624
    INSTALL=$ac_install_sh
1625
  fi
1626
fi
1627
echo "$as_me:$LINENO: result: $INSTALL" >&5
1628
echo "${ECHO_T}$INSTALL" >&6
1629
 
1630
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1631
# It thinks the first close brace ends the variable substitution.
1632
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633
 
1634
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635
 
1636
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637
 
1638
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1639
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1640
# Just in case
1641
sleep 1
1642
echo timestamp > conftest.file
1643
# Do `set' in a subshell so we don't clobber the current shell's
1644
# arguments.  Must try -L first in case configure is actually a
1645
# symlink; some systems play weird games with the mod time of symlinks
1646
# (eg FreeBSD returns the mod time of the symlink's containing
1647
# directory).
1648
if (
1649
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1650
   if test "$*" = "X"; then
1651
      # -L didn't work.
1652
      set X `ls -t $srcdir/configure conftest.file`
1653
   fi
1654
   rm -f conftest.file
1655
   if test "$*" != "X $srcdir/configure conftest.file" \
1656
      && test "$*" != "X conftest.file $srcdir/configure"; then
1657
 
1658
      # If neither matched, then we have a broken ls.  This can happen
1659
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1660
      # broken ls alias from the environment.  This has actually
1661
      # happened.  Such a system could not be considered "sane".
1662
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1663
alias in your environment" >&5
1664
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1665
alias in your environment" >&2;}
1666
   { (exit 1); exit 1; }; }
1667
   fi
1668
 
1669
   test "$2" = conftest.file
1670
   )
1671
then
1672
   # Ok.
1673
   :
1674
else
1675
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1676
Check your system clock" >&5
1677
echo "$as_me: error: newly created file is older than distributed files!
1678
Check your system clock" >&2;}
1679
   { (exit 1); exit 1; }; }
1680
fi
1681
echo "$as_me:$LINENO: result: yes" >&5
1682
echo "${ECHO_T}yes" >&6
1683
test "$program_prefix" != NONE &&
1684
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1685
# Use a double $ so make ignores it.
1686
test "$program_suffix" != NONE &&
1687
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1688
# Double any \ or $.  echo might interpret backslashes.
1689
# By default was `s,x,x', remove it if useless.
1690
cat <<\_ACEOF >conftest.sed
1691
s/[\\$]/&&/g;s/;s,x,x,$//
1692
_ACEOF
1693
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1694
rm conftest.sed
1695
 
1696
# expand $ac_aux_dir to an absolute path
1697
am_aux_dir=`cd $ac_aux_dir && pwd`
1698
 
1699
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700
# Use eval to expand $SHELL
1701
if eval "$MISSING --run true"; then
1702
  am_missing_run="$MISSING --run "
1703
else
1704
  am_missing_run=
1705
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1707
fi
1708
 
1709
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1710
  # We used to keeping the `.' as first argument, in order to
1711
  # allow $(mkdir_p) to be used without argument.  As in
1712
  #   $(mkdir_p) $(somedir)
1713
  # where $(somedir) is conditionally defined.  However this is wrong
1714
  # for two reasons:
1715
  #  1. if the package is installed by a user who cannot write `.'
1716
  #     make install will fail,
1717
  #  2. the above comment should most certainly read
1718
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1719
  #     so it does not work when $(somedir) is undefined and
1720
  #     $(DESTDIR) is not.
1721
  #  To support the latter case, we have to write
1722
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1723
  #  so the `.' trick is pointless.
1724
  mkdir_p='mkdir -p --'
1725
else
1726
  # On NextStep and OpenStep, the `mkdir' command does not
1727
  # recognize any option.  It will interpret all options as
1728
  # directories to create, and then abort because `.' already
1729
  # exists.
1730
  for d in ./-p ./--version;
1731
  do
1732
    test -d $d && rmdir $d
1733
  done
1734
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1735
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1736
    mkdir_p='$(mkinstalldirs)'
1737
  else
1738
    mkdir_p='$(install_sh) -d'
1739
  fi
1740
fi
1741
 
1742
for ac_prog in gawk mawk nawk awk
1743
do
1744
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1745
set dummy $ac_prog; ac_word=$2
1746
echo "$as_me:$LINENO: checking for $ac_word" >&5
1747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748
if test "${ac_cv_prog_AWK+set}" = set; then
1749
  echo $ECHO_N "(cached) $ECHO_C" >&6
1750
else
1751
  if test -n "$AWK"; then
1752
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1753
else
1754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755
for as_dir in $PATH
1756
do
1757
  IFS=$as_save_IFS
1758
  test -z "$as_dir" && as_dir=.
1759
  for ac_exec_ext in '' $ac_executable_extensions; do
1760
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761
    ac_cv_prog_AWK="$ac_prog"
1762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763
    break 2
1764
  fi
1765
done
1766
done
1767
 
1768
fi
1769
fi
1770
AWK=$ac_cv_prog_AWK
1771
if test -n "$AWK"; then
1772
  echo "$as_me:$LINENO: result: $AWK" >&5
1773
echo "${ECHO_T}$AWK" >&6
1774
else
1775
  echo "$as_me:$LINENO: result: no" >&5
1776
echo "${ECHO_T}no" >&6
1777
fi
1778
 
1779
  test -n "$AWK" && break
1780
done
1781
 
1782
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1783
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1784
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1785
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1786
  echo $ECHO_N "(cached) $ECHO_C" >&6
1787
else
1788
  cat >conftest.make <<\_ACEOF
1789
all:
1790
        @echo 'ac_maketemp="$(MAKE)"'
1791
_ACEOF
1792
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1793
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1794
if test -n "$ac_maketemp"; then
1795
  eval ac_cv_prog_make_${ac_make}_set=yes
1796
else
1797
  eval ac_cv_prog_make_${ac_make}_set=no
1798
fi
1799
rm -f conftest.make
1800
fi
1801
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1802
  echo "$as_me:$LINENO: result: yes" >&5
1803
echo "${ECHO_T}yes" >&6
1804
  SET_MAKE=
1805
else
1806
  echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1808
  SET_MAKE="MAKE=${MAKE-make}"
1809
fi
1810
 
1811
rm -rf .tst 2>/dev/null
1812
mkdir .tst 2>/dev/null
1813
if test -d .tst; then
1814
  am__leading_dot=.
1815
else
1816
  am__leading_dot=_
1817
fi
1818
rmdir .tst 2>/dev/null
1819
 
1820
DEPDIR="${am__leading_dot}deps"
1821
 
1822
          ac_config_commands="$ac_config_commands depfiles"
1823
 
1824
 
1825
am_make=${MAKE-make}
1826
cat > confinc << 'END'
1827
am__doit:
1828
        @echo done
1829
.PHONY: am__doit
1830
END
1831
# If we don't find an include directive, just comment out the code.
1832
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1833
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1834
am__include="#"
1835
am__quote=
1836
_am_result=none
1837
# First try GNU make style include.
1838
echo "include confinc" > confmf
1839
# We grep out `Entering directory' and `Leaving directory'
1840
# messages which can occur if `w' ends up in MAKEFLAGS.
1841
# In particular we don't look at `^make:' because GNU make might
1842
# be invoked under some other name (usually "gmake"), in which
1843
# case it prints its new name instead of `make'.
1844
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1845
   am__include=include
1846
   am__quote=
1847
   _am_result=GNU
1848
fi
1849
# Now try BSD make style include.
1850
if test "$am__include" = "#"; then
1851
   echo '.include "confinc"' > confmf
1852
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1853
      am__include=.include
1854
      am__quote="\""
1855
      _am_result=BSD
1856
   fi
1857
fi
1858
 
1859
 
1860
echo "$as_me:$LINENO: result: $_am_result" >&5
1861
echo "${ECHO_T}$_am_result" >&6
1862
rm -f confinc confmf
1863
 
1864
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1865
if test "${enable_dependency_tracking+set}" = set; then
1866
  enableval="$enable_dependency_tracking"
1867
 
1868
fi;
1869
if test "x$enable_dependency_tracking" != xno; then
1870
  am_depcomp="$ac_aux_dir/depcomp"
1871
  AMDEPBACKSLASH='\'
1872
fi
1873
 
1874
 
1875
if test "x$enable_dependency_tracking" != xno; then
1876
  AMDEP_TRUE=
1877
  AMDEP_FALSE='#'
1878
else
1879
  AMDEP_TRUE='#'
1880
  AMDEP_FALSE=
1881
fi
1882
 
1883
 
1884
 
1885
 
1886
# Check whether --enable-multilib or --disable-multilib was given.
1887
if test "${enable_multilib+set}" = set; then
1888
  enableval="$enable_multilib"
1889
  case "${enableval}" in
1890
  yes) multilib=yes ;;
1891
  no)  multilib=no ;;
1892
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1893
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1894
   { (exit 1); exit 1; }; } ;;
1895
 esac
1896
else
1897
  multilib=yes
1898
fi;
1899
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1900
if test "${enable_target_optspace+set}" = set; then
1901
  enableval="$enable_target_optspace"
1902
  case "${enableval}" in
1903
  yes) target_optspace=yes ;;
1904
  no)  target_optspace=no ;;
1905
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1906
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1907
   { (exit 1); exit 1; }; } ;;
1908
 esac
1909
else
1910
  target_optspace=
1911
fi;
1912
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1913
if test "${enable_malloc_debugging+set}" = set; then
1914
  enableval="$enable_malloc_debugging"
1915
  case "${enableval}" in
1916
  yes) malloc_debugging=yes ;;
1917
  no)  malloc_debugging=no ;;
1918
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1919
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1920
   { (exit 1); exit 1; }; } ;;
1921
 esac
1922
else
1923
  malloc_debugging=
1924
fi;
1925
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1926
if test "${enable_newlib_multithread+set}" = set; then
1927
  enableval="$enable_newlib_multithread"
1928
  case "${enableval}" in
1929
  yes) newlib_multithread=yes ;;
1930
  no)  newlib_multithread=no ;;
1931
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1932
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1933
   { (exit 1); exit 1; }; } ;;
1934
 esac
1935
else
1936
  newlib_multithread=yes
1937
fi;
1938
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1939
if test "${enable_newlib_iconv+set}" = set; then
1940
  enableval="$enable_newlib_iconv"
1941
  if test "${newlib_iconv+set}" != set; then
1942
   case "${enableval}" in
1943
     yes) newlib_iconv=yes ;;
1944
     no)  newlib_iconv=no ;;
1945
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1946
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1947
   { (exit 1); exit 1; }; } ;;
1948
   esac
1949
 fi
1950
else
1951
  newlib_iconv=${newlib_iconv}
1952
fi;
1953
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1954
if test "${enable_newlib_elix_level+set}" = set; then
1955
  enableval="$enable_newlib_elix_level"
1956
  case "${enableval}" in
1957
  0)   newlib_elix_level=0 ;;
1958
  1)   newlib_elix_level=1 ;;
1959
  2)   newlib_elix_level=2 ;;
1960
  3)   newlib_elix_level=3 ;;
1961
  4)   newlib_elix_level=4 ;;
1962
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1963
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1964
   { (exit 1); exit 1; }; } ;;
1965
 esac
1966
else
1967
  newlib_elix_level=0
1968
fi;
1969
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1970
if test "${enable_newlib_io_float+set}" = set; then
1971
  enableval="$enable_newlib_io_float"
1972
  case "${enableval}" in
1973
  yes) newlib_io_float=yes ;;
1974
  no)  newlib_io_float=no ;;
1975
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1976
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1977
   { (exit 1); exit 1; }; } ;;
1978
 esac
1979
else
1980
  newlib_io_float=yes
1981
fi;
1982
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1983
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1984
  enableval="$enable_newlib_supplied_syscalls"
1985
  case "${enableval}" in
1986
  yes) newlib_may_supply_syscalls=yes ;;
1987
  no)  newlib_may_supply_syscalls=no ;;
1988
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1989
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1990
   { (exit 1); exit 1; }; } ;;
1991
 esac
1992
else
1993
  newlib_may_supply_syscalls=yes
1994
fi;
1995
 
1996
 
1997
if test x${newlib_may_supply_syscalls} = xyes; then
1998
  MAY_SUPPLY_SYSCALLS_TRUE=
1999
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2000
else
2001
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2002
  MAY_SUPPLY_SYSCALLS_FALSE=
2003
fi
2004
 
2005
 
2006
 
2007
test -z "${with_target_subdir}" && with_target_subdir=.
2008
 
2009
if test "${srcdir}" = "."; then
2010
  if test "${with_target_subdir}" != "."; then
2011
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
2012
  else
2013
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2014
  fi
2015
else
2016
  newlib_basedir="${srcdir}/../../../../.."
2017
fi
2018
 
2019
 
2020
echo "$as_me:$LINENO: checking host system type" >&5
2021
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2022
if test "${ac_cv_host+set}" = set; then
2023
  echo $ECHO_N "(cached) $ECHO_C" >&6
2024
else
2025
  ac_cv_host_alias=$host_alias
2026
test -z "$ac_cv_host_alias" &&
2027
  ac_cv_host_alias=$ac_cv_build_alias
2028
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2029
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2030
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2031
   { (exit 1); exit 1; }; }
2032
 
2033
fi
2034
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2035
echo "${ECHO_T}$ac_cv_host" >&6
2036
host=$ac_cv_host
2037
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2038
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2039
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2040
 
2041
 
2042
 
2043
# test to see if srcdir already configured
2044
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2045
   test -f $srcdir/config.status; then
2046
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2047
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2048
   { (exit 1); exit 1; }; }
2049
fi
2050
 
2051
# test whether we have cygpath
2052
if test -z "$CYGPATH_W"; then
2053
  if (cygpath --version) >/dev/null 2>/dev/null; then
2054
    CYGPATH_W='cygpath -w'
2055
  else
2056
    CYGPATH_W=echo
2057
  fi
2058
fi
2059
 
2060
 
2061
# Define the identity of the package.
2062
 PACKAGE='newlib'
2063
 VERSION='1.17.0'
2064
 
2065
 
2066
# Some tools Automake needs.
2067
 
2068
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2069
 
2070
 
2071
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2072
 
2073
 
2074
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2075
 
2076
 
2077
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2078
 
2079
 
2080
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2081
 
2082
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2083
 
2084
# Installed binaries are usually stripped using `strip' when the user
2085
# run `make install-strip'.  However `strip' might not be the right
2086
# tool to use in cross-compilation environments, therefore Automake
2087
# will honor the `STRIP' environment variable to overrule this program.
2088
if test "$cross_compiling" != no; then
2089
  if test -n "$ac_tool_prefix"; then
2090
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2091
set dummy ${ac_tool_prefix}strip; ac_word=$2
2092
echo "$as_me:$LINENO: checking for $ac_word" >&5
2093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094
if test "${ac_cv_prog_STRIP+set}" = set; then
2095
  echo $ECHO_N "(cached) $ECHO_C" >&6
2096
else
2097
  if test -n "$STRIP"; then
2098
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2099
else
2100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101
for as_dir in $PATH
2102
do
2103
  IFS=$as_save_IFS
2104
  test -z "$as_dir" && as_dir=.
2105
  for ac_exec_ext in '' $ac_executable_extensions; do
2106
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109
    break 2
2110
  fi
2111
done
2112
done
2113
 
2114
fi
2115
fi
2116
STRIP=$ac_cv_prog_STRIP
2117
if test -n "$STRIP"; then
2118
  echo "$as_me:$LINENO: result: $STRIP" >&5
2119
echo "${ECHO_T}$STRIP" >&6
2120
else
2121
  echo "$as_me:$LINENO: result: no" >&5
2122
echo "${ECHO_T}no" >&6
2123
fi
2124
 
2125
fi
2126
if test -z "$ac_cv_prog_STRIP"; then
2127
  ac_ct_STRIP=$STRIP
2128
  # Extract the first word of "strip", so it can be a program name with args.
2129
set dummy strip; ac_word=$2
2130
echo "$as_me:$LINENO: checking for $ac_word" >&5
2131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2133
  echo $ECHO_N "(cached) $ECHO_C" >&6
2134
else
2135
  if test -n "$ac_ct_STRIP"; then
2136
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2137
else
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139
for as_dir in $PATH
2140
do
2141
  IFS=$as_save_IFS
2142
  test -z "$as_dir" && as_dir=.
2143
  for ac_exec_ext in '' $ac_executable_extensions; do
2144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145
    ac_cv_prog_ac_ct_STRIP="strip"
2146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147
    break 2
2148
  fi
2149
done
2150
done
2151
 
2152
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2153
fi
2154
fi
2155
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2156
if test -n "$ac_ct_STRIP"; then
2157
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2158
echo "${ECHO_T}$ac_ct_STRIP" >&6
2159
else
2160
  echo "$as_me:$LINENO: result: no" >&5
2161
echo "${ECHO_T}no" >&6
2162
fi
2163
 
2164
  STRIP=$ac_ct_STRIP
2165
else
2166
  STRIP="$ac_cv_prog_STRIP"
2167
fi
2168
 
2169
fi
2170
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2171
 
2172
# We need awk for the "check" target.  The system "awk" is bad on
2173
# some platforms.
2174
# Always define AMTAR for backward compatibility.
2175
 
2176
AMTAR=${AMTAR-"${am_missing_run}tar"}
2177
 
2178
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2179
 
2180
 
2181
 
2182
 
2183
 
2184
 
2185
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2186
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2187
# are probably using a cross compiler, which will not be able to fully
2188
# link an executable.  This should really be fixed in autoconf
2189
# itself.
2190
 
2191
 
2192
 
2193
 
2194
 
2195
 
2196
 
2197
# Extract the first word of "gcc", so it can be a program name with args.
2198
set dummy gcc; ac_word=$2
2199
echo "$as_me:$LINENO: checking for $ac_word" >&5
2200
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201
if test "${ac_cv_prog_CC+set}" = set; then
2202
  echo $ECHO_N "(cached) $ECHO_C" >&6
2203
else
2204
  if test -n "$CC"; then
2205
  ac_cv_prog_CC="$CC" # Let the user override the test.
2206
else
2207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208
for as_dir in $PATH
2209
do
2210
  IFS=$as_save_IFS
2211
  test -z "$as_dir" && as_dir=.
2212
  for ac_exec_ext in '' $ac_executable_extensions; do
2213
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214
    ac_cv_prog_CC="gcc"
2215
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216
    break 2
2217
  fi
2218
done
2219
done
2220
 
2221
fi
2222
fi
2223
CC=$ac_cv_prog_CC
2224
if test -n "$CC"; then
2225
  echo "$as_me:$LINENO: result: $CC" >&5
2226
echo "${ECHO_T}$CC" >&6
2227
else
2228
  echo "$as_me:$LINENO: result: no" >&5
2229
echo "${ECHO_T}no" >&6
2230
fi
2231
 
2232
 
2233
depcc="$CC"   am_compiler_list=
2234
 
2235
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2236
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2237
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2238
  echo $ECHO_N "(cached) $ECHO_C" >&6
2239
else
2240
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2241
  # We make a subdir and do the tests there.  Otherwise we can end up
2242
  # making bogus files that we don't know about and never remove.  For
2243
  # instance it was reported that on HP-UX the gcc test will end up
2244
  # making a dummy file named `D' -- because `-MD' means `put the output
2245
  # in D'.
2246
  mkdir conftest.dir
2247
  # Copy depcomp to subdir because otherwise we won't find it if we're
2248
  # using a relative directory.
2249
  cp "$am_depcomp" conftest.dir
2250
  cd conftest.dir
2251
  # We will build objects and dependencies in a subdirectory because
2252
  # it helps to detect inapplicable dependency modes.  For instance
2253
  # both Tru64's cc and ICC support -MD to output dependencies as a
2254
  # side effect of compilation, but ICC will put the dependencies in
2255
  # the current directory while Tru64 will put them in the object
2256
  # directory.
2257
  mkdir sub
2258
 
2259
  am_cv_CC_dependencies_compiler_type=none
2260
  if test "$am_compiler_list" = ""; then
2261
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2262
  fi
2263
  for depmode in $am_compiler_list; do
2264
    # Setup a source with many dependencies, because some compilers
2265
    # like to wrap large dependency lists on column 80 (with \), and
2266
    # we should not choose a depcomp mode which is confused by this.
2267
    #
2268
    # We need to recreate these files for each test, as the compiler may
2269
    # overwrite some of them when testing with obscure command lines.
2270
    # This happens at least with the AIX C compiler.
2271
    : > sub/conftest.c
2272
    for i in 1 2 3 4 5 6; do
2273
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2274
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2275
      # Solaris 8's {/usr,}/bin/sh.
2276
      touch sub/conftst$i.h
2277
    done
2278
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2279
 
2280
    case $depmode in
2281
    nosideeffect)
2282
      # after this tag, mechanisms are not by side-effect, so they'll
2283
      # only be used when explicitly requested
2284
      if test "x$enable_dependency_tracking" = xyes; then
2285
        continue
2286
      else
2287
        break
2288
      fi
2289
      ;;
2290
    none) break ;;
2291
    esac
2292
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2293
    # mode.  It turns out that the SunPro C++ compiler does not properly
2294
    # handle `-M -o', and we need to detect this.
2295
    if depmode=$depmode \
2296
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2297
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2298
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2299
         >/dev/null 2>conftest.err &&
2300
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2301
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2302
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2303
      # icc doesn't choke on unknown options, it will just issue warnings
2304
      # or remarks (even with -Werror).  So we grep stderr for any message
2305
      # that says an option was ignored or not supported.
2306
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2307
      #   icc: Command line warning: ignoring option '-M'; no argument required
2308
      # The diagnosis changed in icc 8.0:
2309
      #   icc: Command line remark: option '-MP' not supported
2310
      if (grep 'ignoring option' conftest.err ||
2311
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2312
        am_cv_CC_dependencies_compiler_type=$depmode
2313
        break
2314
      fi
2315
    fi
2316
  done
2317
 
2318
  cd ..
2319
  rm -rf conftest.dir
2320
else
2321
  am_cv_CC_dependencies_compiler_type=none
2322
fi
2323
 
2324
fi
2325
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2326
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2327
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2328
 
2329
 
2330
 
2331
if
2332
  test "x$enable_dependency_tracking" != xno \
2333
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2334
  am__fastdepCC_TRUE=
2335
  am__fastdepCC_FALSE='#'
2336
else
2337
  am__fastdepCC_TRUE='#'
2338
  am__fastdepCC_FALSE=
2339
fi
2340
 
2341
 
2342
if test -z "$CC"; then
2343
  # Extract the first word of "cc", so it can be a program name with args.
2344
set dummy cc; ac_word=$2
2345
echo "$as_me:$LINENO: checking for $ac_word" >&5
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347
if test "${ac_cv_prog_CC+set}" = set; then
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
2349
else
2350
  if test -n "$CC"; then
2351
  ac_cv_prog_CC="$CC" # Let the user override the test.
2352
else
2353
  ac_prog_rejected=no
2354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355
for as_dir in $PATH
2356
do
2357
  IFS=$as_save_IFS
2358
  test -z "$as_dir" && as_dir=.
2359
  for ac_exec_ext in '' $ac_executable_extensions; do
2360
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2362
       ac_prog_rejected=yes
2363
       continue
2364
     fi
2365
    ac_cv_prog_CC="cc"
2366
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367
    break 2
2368
  fi
2369
done
2370
done
2371
 
2372
if test $ac_prog_rejected = yes; then
2373
  # We found a bogon in the path, so make sure we never use it.
2374
  set dummy $ac_cv_prog_CC
2375
  shift
2376
  if test $# != 0; then
2377
    # We chose a different compiler from the bogus one.
2378
    # However, it has the same basename, so the bogon will be chosen
2379
    # first if we set CC to just the basename; use the full file name.
2380
    shift
2381
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382
  fi
2383
fi
2384
fi
2385
fi
2386
CC=$ac_cv_prog_CC
2387
if test -n "$CC"; then
2388
  echo "$as_me:$LINENO: result: $CC" >&5
2389
echo "${ECHO_T}$CC" >&6
2390
else
2391
  echo "$as_me:$LINENO: result: no" >&5
2392
echo "${ECHO_T}no" >&6
2393
fi
2394
 
2395
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2396
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2397
   { (exit 1); exit 1; }; }
2398
fi
2399
 
2400
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2401
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2402
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403
  echo $ECHO_N "(cached) $ECHO_C" >&6
2404
else
2405
  cat > conftest.c <
2406
#ifdef __GNUC__
2407
  yes;
2408
#endif
2409
EOF
2410
if { ac_try='${CC-cc} -E conftest.c'
2411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412
  (eval $ac_try) 2>&5
2413
  ac_status=$?
2414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2416
  ac_cv_c_compiler_gnu=yes
2417
else
2418
  ac_cv_c_compiler_gnu=no
2419
fi
2420
fi
2421
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423
 
2424
if test $ac_cv_c_compiler_gnu = yes; then
2425
  GCC=yes
2426
  ac_test_CFLAGS="${CFLAGS+set}"
2427
  ac_save_CFLAGS="$CFLAGS"
2428
  CFLAGS=
2429
  ac_test_CFLAGS=${CFLAGS+set}
2430
ac_save_CFLAGS=$CFLAGS
2431
CFLAGS="-g"
2432
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434
if test "${ac_cv_prog_cc_g+set}" = set; then
2435
  echo $ECHO_N "(cached) $ECHO_C" >&6
2436
else
2437
  cat >conftest.$ac_ext <<_ACEOF
2438
/* confdefs.h.  */
2439
_ACEOF
2440
cat confdefs.h >>conftest.$ac_ext
2441
cat >>conftest.$ac_ext <<_ACEOF
2442
/* end confdefs.h.  */
2443
 
2444
int
2445
main ()
2446
{
2447
 
2448
  ;
2449
  return 0;
2450
}
2451
_ACEOF
2452
rm -f conftest.$ac_objext
2453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454
  (eval $ac_compile) 2>conftest.er1
2455
  ac_status=$?
2456
  grep -v '^ *+' conftest.er1 >conftest.err
2457
  rm -f conftest.er1
2458
  cat conftest.err >&5
2459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460
  (exit $ac_status); } &&
2461
         { ac_try='test -z "$ac_c_werror_flag"
2462
                         || test ! -s conftest.err'
2463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464
  (eval $ac_try) 2>&5
2465
  ac_status=$?
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467
  (exit $ac_status); }; } &&
2468
         { ac_try='test -s conftest.$ac_objext'
2469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470
  (eval $ac_try) 2>&5
2471
  ac_status=$?
2472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473
  (exit $ac_status); }; }; then
2474
  ac_cv_prog_cc_g=yes
2475
else
2476
  echo "$as_me: failed program was:" >&5
2477
sed 's/^/| /' conftest.$ac_ext >&5
2478
 
2479
ac_cv_prog_cc_g=no
2480
fi
2481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482
fi
2483
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485
if test "$ac_test_CFLAGS" = set; then
2486
  CFLAGS=$ac_save_CFLAGS
2487
elif test $ac_cv_prog_cc_g = yes; then
2488
  if test "$GCC" = yes; then
2489
    CFLAGS="-g -O2"
2490
  else
2491
    CFLAGS="-g"
2492
  fi
2493
else
2494
  if test "$GCC" = yes; then
2495
    CFLAGS="-O2"
2496
  else
2497
    CFLAGS=
2498
  fi
2499
fi
2500
  if test "$ac_test_CFLAGS" = set; then
2501
    CFLAGS="$ac_save_CFLAGS"
2502
  elif test $ac_cv_prog_cc_g = yes; then
2503
    CFLAGS="-g -O2"
2504
  else
2505
    CFLAGS="-O2"
2506
  fi
2507
else
2508
  GCC=
2509
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2510
fi
2511
 
2512
 
2513
if test -n "$ac_tool_prefix"; then
2514
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2515
set dummy ${ac_tool_prefix}as; ac_word=$2
2516
echo "$as_me:$LINENO: checking for $ac_word" >&5
2517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518
if test "${ac_cv_prog_AS+set}" = set; then
2519
  echo $ECHO_N "(cached) $ECHO_C" >&6
2520
else
2521
  if test -n "$AS"; then
2522
  ac_cv_prog_AS="$AS" # Let the user override the test.
2523
else
2524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
for as_dir in $PATH
2526
do
2527
  IFS=$as_save_IFS
2528
  test -z "$as_dir" && as_dir=.
2529
  for ac_exec_ext in '' $ac_executable_extensions; do
2530
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531
    ac_cv_prog_AS="${ac_tool_prefix}as"
2532
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533
    break 2
2534
  fi
2535
done
2536
done
2537
 
2538
fi
2539
fi
2540
AS=$ac_cv_prog_AS
2541
if test -n "$AS"; then
2542
  echo "$as_me:$LINENO: result: $AS" >&5
2543
echo "${ECHO_T}$AS" >&6
2544
else
2545
  echo "$as_me:$LINENO: result: no" >&5
2546
echo "${ECHO_T}no" >&6
2547
fi
2548
 
2549
fi
2550
if test -z "$ac_cv_prog_AS"; then
2551
  ac_ct_AS=$AS
2552
  # Extract the first word of "as", so it can be a program name with args.
2553
set dummy as; ac_word=$2
2554
echo "$as_me:$LINENO: checking for $ac_word" >&5
2555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2557
  echo $ECHO_N "(cached) $ECHO_C" >&6
2558
else
2559
  if test -n "$ac_ct_AS"; then
2560
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2561
else
2562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563
for as_dir in $PATH
2564
do
2565
  IFS=$as_save_IFS
2566
  test -z "$as_dir" && as_dir=.
2567
  for ac_exec_ext in '' $ac_executable_extensions; do
2568
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569
    ac_cv_prog_ac_ct_AS="as"
2570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571
    break 2
2572
  fi
2573
done
2574
done
2575
 
2576
fi
2577
fi
2578
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2579
if test -n "$ac_ct_AS"; then
2580
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2581
echo "${ECHO_T}$ac_ct_AS" >&6
2582
else
2583
  echo "$as_me:$LINENO: result: no" >&5
2584
echo "${ECHO_T}no" >&6
2585
fi
2586
 
2587
  AS=$ac_ct_AS
2588
else
2589
  AS="$ac_cv_prog_AS"
2590
fi
2591
 
2592
if test -n "$ac_tool_prefix"; then
2593
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2594
set dummy ${ac_tool_prefix}ar; ac_word=$2
2595
echo "$as_me:$LINENO: checking for $ac_word" >&5
2596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597
if test "${ac_cv_prog_AR+set}" = set; then
2598
  echo $ECHO_N "(cached) $ECHO_C" >&6
2599
else
2600
  if test -n "$AR"; then
2601
  ac_cv_prog_AR="$AR" # Let the user override the test.
2602
else
2603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604
for as_dir in $PATH
2605
do
2606
  IFS=$as_save_IFS
2607
  test -z "$as_dir" && as_dir=.
2608
  for ac_exec_ext in '' $ac_executable_extensions; do
2609
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2611
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612
    break 2
2613
  fi
2614
done
2615
done
2616
 
2617
fi
2618
fi
2619
AR=$ac_cv_prog_AR
2620
if test -n "$AR"; then
2621
  echo "$as_me:$LINENO: result: $AR" >&5
2622
echo "${ECHO_T}$AR" >&6
2623
else
2624
  echo "$as_me:$LINENO: result: no" >&5
2625
echo "${ECHO_T}no" >&6
2626
fi
2627
 
2628
fi
2629
if test -z "$ac_cv_prog_AR"; then
2630
  ac_ct_AR=$AR
2631
  # Extract the first word of "ar", so it can be a program name with args.
2632
set dummy ar; ac_word=$2
2633
echo "$as_me:$LINENO: checking for $ac_word" >&5
2634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2636
  echo $ECHO_N "(cached) $ECHO_C" >&6
2637
else
2638
  if test -n "$ac_ct_AR"; then
2639
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2640
else
2641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642
for as_dir in $PATH
2643
do
2644
  IFS=$as_save_IFS
2645
  test -z "$as_dir" && as_dir=.
2646
  for ac_exec_ext in '' $ac_executable_extensions; do
2647
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648
    ac_cv_prog_ac_ct_AR="ar"
2649
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650
    break 2
2651
  fi
2652
done
2653
done
2654
 
2655
fi
2656
fi
2657
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2658
if test -n "$ac_ct_AR"; then
2659
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2660
echo "${ECHO_T}$ac_ct_AR" >&6
2661
else
2662
  echo "$as_me:$LINENO: result: no" >&5
2663
echo "${ECHO_T}no" >&6
2664
fi
2665
 
2666
  AR=$ac_ct_AR
2667
else
2668
  AR="$ac_cv_prog_AR"
2669
fi
2670
 
2671
if test -n "$ac_tool_prefix"; then
2672
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2673
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2674
echo "$as_me:$LINENO: checking for $ac_word" >&5
2675
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676
if test "${ac_cv_prog_RANLIB+set}" = set; then
2677
  echo $ECHO_N "(cached) $ECHO_C" >&6
2678
else
2679
  if test -n "$RANLIB"; then
2680
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
2687
  for ac_exec_ext in '' $ac_executable_extensions; do
2688
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2690
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691
    break 2
2692
  fi
2693
done
2694
done
2695
 
2696
fi
2697
fi
2698
RANLIB=$ac_cv_prog_RANLIB
2699
if test -n "$RANLIB"; then
2700
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2701
echo "${ECHO_T}$RANLIB" >&6
2702
else
2703
  echo "$as_me:$LINENO: result: no" >&5
2704
echo "${ECHO_T}no" >&6
2705
fi
2706
 
2707
fi
2708
if test -z "$ac_cv_prog_RANLIB"; then
2709
  ac_ct_RANLIB=$RANLIB
2710
  # Extract the first word of "ranlib", so it can be a program name with args.
2711
set dummy ranlib; ac_word=$2
2712
echo "$as_me:$LINENO: checking for $ac_word" >&5
2713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2715
  echo $ECHO_N "(cached) $ECHO_C" >&6
2716
else
2717
  if test -n "$ac_ct_RANLIB"; then
2718
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2719
else
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
for as_dir in $PATH
2722
do
2723
  IFS=$as_save_IFS
2724
  test -z "$as_dir" && as_dir=.
2725
  for ac_exec_ext in '' $ac_executable_extensions; do
2726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729
    break 2
2730
  fi
2731
done
2732
done
2733
 
2734
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2735
fi
2736
fi
2737
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2738
if test -n "$ac_ct_RANLIB"; then
2739
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2740
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2741
else
2742
  echo "$as_me:$LINENO: result: no" >&5
2743
echo "${ECHO_T}no" >&6
2744
fi
2745
 
2746
  RANLIB=$ac_ct_RANLIB
2747
else
2748
  RANLIB="$ac_cv_prog_RANLIB"
2749
fi
2750
 
2751
if test -n "$ac_tool_prefix"; then
2752
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2753
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2754
echo "$as_me:$LINENO: checking for $ac_word" >&5
2755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756
if test "${ac_cv_prog_READELF+set}" = set; then
2757
  echo $ECHO_N "(cached) $ECHO_C" >&6
2758
else
2759
  if test -n "$READELF"; then
2760
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2761
else
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763
for as_dir in $PATH
2764
do
2765
  IFS=$as_save_IFS
2766
  test -z "$as_dir" && as_dir=.
2767
  for ac_exec_ext in '' $ac_executable_extensions; do
2768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771
    break 2
2772
  fi
2773
done
2774
done
2775
 
2776
fi
2777
fi
2778
READELF=$ac_cv_prog_READELF
2779
if test -n "$READELF"; then
2780
  echo "$as_me:$LINENO: result: $READELF" >&5
2781
echo "${ECHO_T}$READELF" >&6
2782
else
2783
  echo "$as_me:$LINENO: result: no" >&5
2784
echo "${ECHO_T}no" >&6
2785
fi
2786
 
2787
fi
2788
if test -z "$ac_cv_prog_READELF"; then
2789
  ac_ct_READELF=$READELF
2790
  # Extract the first word of "readelf", so it can be a program name with args.
2791
set dummy readelf; ac_word=$2
2792
echo "$as_me:$LINENO: checking for $ac_word" >&5
2793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2795
  echo $ECHO_N "(cached) $ECHO_C" >&6
2796
else
2797
  if test -n "$ac_ct_READELF"; then
2798
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2799
else
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801
for as_dir in $PATH
2802
do
2803
  IFS=$as_save_IFS
2804
  test -z "$as_dir" && as_dir=.
2805
  for ac_exec_ext in '' $ac_executable_extensions; do
2806
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807
    ac_cv_prog_ac_ct_READELF="readelf"
2808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809
    break 2
2810
  fi
2811
done
2812
done
2813
 
2814
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2815
fi
2816
fi
2817
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2818
if test -n "$ac_ct_READELF"; then
2819
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2820
echo "${ECHO_T}$ac_ct_READELF" >&6
2821
else
2822
  echo "$as_me:$LINENO: result: no" >&5
2823
echo "${ECHO_T}no" >&6
2824
fi
2825
 
2826
  READELF=$ac_ct_READELF
2827
else
2828
  READELF="$ac_cv_prog_READELF"
2829
fi
2830
 
2831
 
2832
# Find a good install program.  We prefer a C program (faster),
2833
# so one script is as good as another.  But avoid the broken or
2834
# incompatible versions:
2835
# SysV /etc/install, /usr/sbin/install
2836
# SunOS /usr/etc/install
2837
# IRIX /sbin/install
2838
# AIX /bin/install
2839
# AmigaOS /C/install, which installs bootblocks on floppy discs
2840
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2841
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2842
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2843
# OS/2's system install, which has a completely different semantic
2844
# ./install, which can be erroneously created by make from ./install.sh.
2845
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2846
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2847
if test -z "$INSTALL"; then
2848
if test "${ac_cv_path_install+set}" = set; then
2849
  echo $ECHO_N "(cached) $ECHO_C" >&6
2850
else
2851
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
for as_dir in $PATH
2853
do
2854
  IFS=$as_save_IFS
2855
  test -z "$as_dir" && as_dir=.
2856
  # Account for people who put trailing slashes in PATH elements.
2857
case $as_dir/ in
2858
  ./ | .// | /cC/* | \
2859
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2860
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2861
  /usr/ucb/* ) ;;
2862
  *)
2863
    # OSF1 and SCO ODT 3.0 have their own names for install.
2864
    # Don't use installbsd from OSF since it installs stuff as root
2865
    # by default.
2866
    for ac_prog in ginstall scoinst install; do
2867
      for ac_exec_ext in '' $ac_executable_extensions; do
2868
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2869
          if test $ac_prog = install &&
2870
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871
            # AIX install.  It has an incompatible calling convention.
2872
            :
2873
          elif test $ac_prog = install &&
2874
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875
            # program-specific install script used by HP pwplus--don't use.
2876
            :
2877
          else
2878
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2879
            break 3
2880
          fi
2881
        fi
2882
      done
2883
    done
2884
    ;;
2885
esac
2886
done
2887
 
2888
 
2889
fi
2890
  if test "${ac_cv_path_install+set}" = set; then
2891
    INSTALL=$ac_cv_path_install
2892
  else
2893
    # As a last resort, use the slow shell script.  We don't cache a
2894
    # path for INSTALL within a source directory, because that will
2895
    # break other packages using the cache if that directory is
2896
    # removed, or if the path is relative.
2897
    INSTALL=$ac_install_sh
2898
  fi
2899
fi
2900
echo "$as_me:$LINENO: result: $INSTALL" >&5
2901
echo "${ECHO_T}$INSTALL" >&6
2902
 
2903
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2904
# It thinks the first close brace ends the variable substitution.
2905
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2906
 
2907
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2908
 
2909
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2910
 
2911
 
2912
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2913
ac_given_INSTALL=$INSTALL
2914
 
2915
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2916
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2917
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2918
if test "${enable_maintainer_mode+set}" = set; then
2919
  enableval="$enable_maintainer_mode"
2920
  USE_MAINTAINER_MODE=$enableval
2921
else
2922
  USE_MAINTAINER_MODE=no
2923
fi;
2924
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2925
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2926
 
2927
 
2928
if test $USE_MAINTAINER_MODE = yes; then
2929
  MAINTAINER_MODE_TRUE=
2930
  MAINTAINER_MODE_FALSE='#'
2931
else
2932
  MAINTAINER_MODE_TRUE='#'
2933
  MAINTAINER_MODE_FALSE=
2934
fi
2935
 
2936
  MAINT=$MAINTAINER_MODE_TRUE
2937
 
2938
 
2939
# By default we simply use the C compiler to build assembly code.
2940
 
2941
test "${CCAS+set}" = set || CCAS=$CC
2942
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2943
 
2944
 
2945
 
2946
 
2947
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2948
# at least currently, we never actually build a program, so we never
2949
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2950
# fails, because we are probably configuring with a cross compiler
2951
# which can't create executables.  So we include AC_EXEEXT to keep
2952
# automake happy, but we don't execute it, since we don't care about
2953
# the result.
2954
if false; then
2955
 
2956
  dummy_var=1
2957
fi
2958
 
2959
. ${newlib_basedir}/configure.host
2960
 
2961
newlib_cflags="${newlib_cflags} -fno-builtin"
2962
 
2963
NEWLIB_CFLAGS=${newlib_cflags}
2964
 
2965
 
2966
LDFLAGS=${ldflags}
2967
 
2968
 
2969
 
2970
 
2971
if test x${newlib_elix_level} = x0; then
2972
  ELIX_LEVEL_0_TRUE=
2973
  ELIX_LEVEL_0_FALSE='#'
2974
else
2975
  ELIX_LEVEL_0_TRUE='#'
2976
  ELIX_LEVEL_0_FALSE=
2977
fi
2978
 
2979
 
2980
 
2981
if test x${newlib_elix_level} = x1; then
2982
  ELIX_LEVEL_1_TRUE=
2983
  ELIX_LEVEL_1_FALSE='#'
2984
else
2985
  ELIX_LEVEL_1_TRUE='#'
2986
  ELIX_LEVEL_1_FALSE=
2987
fi
2988
 
2989
 
2990
 
2991
if test x${newlib_elix_level} = x2; then
2992
  ELIX_LEVEL_2_TRUE=
2993
  ELIX_LEVEL_2_FALSE='#'
2994
else
2995
  ELIX_LEVEL_2_TRUE='#'
2996
  ELIX_LEVEL_2_FALSE=
2997
fi
2998
 
2999
 
3000
 
3001
if test x${newlib_elix_level} = x3; then
3002
  ELIX_LEVEL_3_TRUE=
3003
  ELIX_LEVEL_3_FALSE='#'
3004
else
3005
  ELIX_LEVEL_3_TRUE='#'
3006
  ELIX_LEVEL_3_FALSE=
3007
fi
3008
 
3009
 
3010
 
3011
if test x${newlib_elix_level} = x4; then
3012
  ELIX_LEVEL_4_TRUE=
3013
  ELIX_LEVEL_4_FALSE='#'
3014
else
3015
  ELIX_LEVEL_4_TRUE='#'
3016
  ELIX_LEVEL_4_FALSE=
3017
fi
3018
 
3019
 
3020
 
3021
 
3022
if test x${use_libtool} = xyes; then
3023
  USE_LIBTOOL_TRUE=
3024
  USE_LIBTOOL_FALSE='#'
3025
else
3026
  USE_LIBTOOL_TRUE='#'
3027
  USE_LIBTOOL_FALSE=
3028
fi
3029
 
3030
 
3031
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3032
# use oext, which is set in configure.host based on the target platform.
3033
OBJEXT=${oext}
3034
 
3035
 
3036
 
3037
 
3038
 
3039
 
3040
 
3041
 
3042
 
3043
 
3044
 
3045
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3046
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3047
if test "${lt_cv_path_SED+set}" = set; then
3048
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
else
3050
  # Loop through the user's path and test for sed and gsed.
3051
# Then use that list of sed's as ones to test for truncation.
3052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053
for as_dir in $PATH
3054
do
3055
  IFS=$as_save_IFS
3056
  test -z "$as_dir" && as_dir=.
3057
  for lt_ac_prog in sed gsed; do
3058
    for ac_exec_ext in '' $ac_executable_extensions; do
3059
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3060
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3061
      fi
3062
    done
3063
  done
3064
done
3065
IFS=$as_save_IFS
3066
lt_ac_max=0
3067
lt_ac_count=0
3068
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3069
# along with /bin/sed that truncates output.
3070
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3071
  test ! -f $lt_ac_sed && continue
3072
  cat /dev/null > conftest.in
3073
  lt_ac_count=0
3074
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3075
  # Check for GNU sed and select it if it is found.
3076
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3077
    lt_cv_path_SED=$lt_ac_sed
3078
    break
3079
  fi
3080
  while true; do
3081
    cat conftest.in conftest.in >conftest.tmp
3082
    mv conftest.tmp conftest.in
3083
    cp conftest.in conftest.nl
3084
    echo >>conftest.nl
3085
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3086
    cmp -s conftest.out conftest.nl || break
3087
    # 10000 chars as input seems more than enough
3088
    test $lt_ac_count -gt 10 && break
3089
    lt_ac_count=`expr $lt_ac_count + 1`
3090
    if test $lt_ac_count -gt $lt_ac_max; then
3091
      lt_ac_max=$lt_ac_count
3092
      lt_cv_path_SED=$lt_ac_sed
3093
    fi
3094
  done
3095
done
3096
 
3097
fi
3098
 
3099
SED=$lt_cv_path_SED
3100
 
3101
echo "$as_me:$LINENO: result: $SED" >&5
3102
echo "${ECHO_T}$SED" >&6
3103
 
3104
test -z "$SED" && SED=sed
3105
Xsed="$SED -e 1s/^X//"
3106
 
3107
 
3108
 
3109
 
3110
 
3111
 
3112
 
3113
 
3114
 
3115
 
3116
 
3117
for ac_prog in gawk mawk nawk awk
3118
do
3119
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3120
set dummy $ac_prog; ac_word=$2
3121
echo "$as_me:$LINENO: checking for $ac_word" >&5
3122
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123
if test "${ac_cv_prog_AWK+set}" = set; then
3124
  echo $ECHO_N "(cached) $ECHO_C" >&6
3125
else
3126
  if test -n "$AWK"; then
3127
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3128
else
3129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130
for as_dir in $PATH
3131
do
3132
  IFS=$as_save_IFS
3133
  test -z "$as_dir" && as_dir=.
3134
  for ac_exec_ext in '' $ac_executable_extensions; do
3135
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136
    ac_cv_prog_AWK="$ac_prog"
3137
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138
    break 2
3139
  fi
3140
done
3141
done
3142
 
3143
fi
3144
fi
3145
AWK=$ac_cv_prog_AWK
3146
if test -n "$AWK"; then
3147
  echo "$as_me:$LINENO: result: $AWK" >&5
3148
echo "${ECHO_T}$AWK" >&6
3149
else
3150
  echo "$as_me:$LINENO: result: no" >&5
3151
echo "${ECHO_T}no" >&6
3152
fi
3153
 
3154
  test -n "$AWK" && break
3155
done
3156
 
3157
if test "${use_libtool}" = "yes"; then
3158
enable_win32_dll=yes
3159
 
3160
case $host in
3161
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3162
  if test -n "$ac_tool_prefix"; then
3163
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3164
set dummy ${ac_tool_prefix}as; ac_word=$2
3165
echo "$as_me:$LINENO: checking for $ac_word" >&5
3166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167
if test "${ac_cv_prog_AS+set}" = set; then
3168
  echo $ECHO_N "(cached) $ECHO_C" >&6
3169
else
3170
  if test -n "$AS"; then
3171
  ac_cv_prog_AS="$AS" # Let the user override the test.
3172
else
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174
for as_dir in $PATH
3175
do
3176
  IFS=$as_save_IFS
3177
  test -z "$as_dir" && as_dir=.
3178
  for ac_exec_ext in '' $ac_executable_extensions; do
3179
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180
    ac_cv_prog_AS="${ac_tool_prefix}as"
3181
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
    break 2
3183
  fi
3184
done
3185
done
3186
 
3187
fi
3188
fi
3189
AS=$ac_cv_prog_AS
3190
if test -n "$AS"; then
3191
  echo "$as_me:$LINENO: result: $AS" >&5
3192
echo "${ECHO_T}$AS" >&6
3193
else
3194
  echo "$as_me:$LINENO: result: no" >&5
3195
echo "${ECHO_T}no" >&6
3196
fi
3197
 
3198
fi
3199
if test -z "$ac_cv_prog_AS"; then
3200
  ac_ct_AS=$AS
3201
  # Extract the first word of "as", so it can be a program name with args.
3202
set dummy as; ac_word=$2
3203
echo "$as_me:$LINENO: checking for $ac_word" >&5
3204
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
3207
else
3208
  if test -n "$ac_ct_AS"; then
3209
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3210
else
3211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212
for as_dir in $PATH
3213
do
3214
  IFS=$as_save_IFS
3215
  test -z "$as_dir" && as_dir=.
3216
  for ac_exec_ext in '' $ac_executable_extensions; do
3217
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218
    ac_cv_prog_ac_ct_AS="as"
3219
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220
    break 2
3221
  fi
3222
done
3223
done
3224
 
3225
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3226
fi
3227
fi
3228
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3229
if test -n "$ac_ct_AS"; then
3230
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3231
echo "${ECHO_T}$ac_ct_AS" >&6
3232
else
3233
  echo "$as_me:$LINENO: result: no" >&5
3234
echo "${ECHO_T}no" >&6
3235
fi
3236
 
3237
  AS=$ac_ct_AS
3238
else
3239
  AS="$ac_cv_prog_AS"
3240
fi
3241
 
3242
  if test -n "$ac_tool_prefix"; then
3243
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3244
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3245
echo "$as_me:$LINENO: checking for $ac_word" >&5
3246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
3249
else
3250
  if test -n "$DLLTOOL"; then
3251
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3252
else
3253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254
for as_dir in $PATH
3255
do
3256
  IFS=$as_save_IFS
3257
  test -z "$as_dir" && as_dir=.
3258
  for ac_exec_ext in '' $ac_executable_extensions; do
3259
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3261
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262
    break 2
3263
  fi
3264
done
3265
done
3266
 
3267
fi
3268
fi
3269
DLLTOOL=$ac_cv_prog_DLLTOOL
3270
if test -n "$DLLTOOL"; then
3271
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3272
echo "${ECHO_T}$DLLTOOL" >&6
3273
else
3274
  echo "$as_me:$LINENO: result: no" >&5
3275
echo "${ECHO_T}no" >&6
3276
fi
3277
 
3278
fi
3279
if test -z "$ac_cv_prog_DLLTOOL"; then
3280
  ac_ct_DLLTOOL=$DLLTOOL
3281
  # Extract the first word of "dlltool", so it can be a program name with args.
3282
set dummy dlltool; ac_word=$2
3283
echo "$as_me:$LINENO: checking for $ac_word" >&5
3284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3286
  echo $ECHO_N "(cached) $ECHO_C" >&6
3287
else
3288
  if test -n "$ac_ct_DLLTOOL"; then
3289
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3290
else
3291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292
for as_dir in $PATH
3293
do
3294
  IFS=$as_save_IFS
3295
  test -z "$as_dir" && as_dir=.
3296
  for ac_exec_ext in '' $ac_executable_extensions; do
3297
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3299
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300
    break 2
3301
  fi
3302
done
3303
done
3304
 
3305
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3306
fi
3307
fi
3308
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3309
if test -n "$ac_ct_DLLTOOL"; then
3310
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3311
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3312
else
3313
  echo "$as_me:$LINENO: result: no" >&5
3314
echo "${ECHO_T}no" >&6
3315
fi
3316
 
3317
  DLLTOOL=$ac_ct_DLLTOOL
3318
else
3319
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3320
fi
3321
 
3322
  if test -n "$ac_tool_prefix"; then
3323
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3324
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3325
echo "$as_me:$LINENO: checking for $ac_word" >&5
3326
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3328
  echo $ECHO_N "(cached) $ECHO_C" >&6
3329
else
3330
  if test -n "$OBJDUMP"; then
3331
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3332
else
3333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
for as_dir in $PATH
3335
do
3336
  IFS=$as_save_IFS
3337
  test -z "$as_dir" && as_dir=.
3338
  for ac_exec_ext in '' $ac_executable_extensions; do
3339
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3341
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342
    break 2
3343
  fi
3344
done
3345
done
3346
 
3347
fi
3348
fi
3349
OBJDUMP=$ac_cv_prog_OBJDUMP
3350
if test -n "$OBJDUMP"; then
3351
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3352
echo "${ECHO_T}$OBJDUMP" >&6
3353
else
3354
  echo "$as_me:$LINENO: result: no" >&5
3355
echo "${ECHO_T}no" >&6
3356
fi
3357
 
3358
fi
3359
if test -z "$ac_cv_prog_OBJDUMP"; then
3360
  ac_ct_OBJDUMP=$OBJDUMP
3361
  # Extract the first word of "objdump", so it can be a program name with args.
3362
set dummy objdump; ac_word=$2
3363
echo "$as_me:$LINENO: checking for $ac_word" >&5
3364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3366
  echo $ECHO_N "(cached) $ECHO_C" >&6
3367
else
3368
  if test -n "$ac_ct_OBJDUMP"; then
3369
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3370
else
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
for as_dir in $PATH
3373
do
3374
  IFS=$as_save_IFS
3375
  test -z "$as_dir" && as_dir=.
3376
  for ac_exec_ext in '' $ac_executable_extensions; do
3377
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3379
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380
    break 2
3381
  fi
3382
done
3383
done
3384
 
3385
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3386
fi
3387
fi
3388
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3389
if test -n "$ac_ct_OBJDUMP"; then
3390
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3391
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3392
else
3393
  echo "$as_me:$LINENO: result: no" >&5
3394
echo "${ECHO_T}no" >&6
3395
fi
3396
 
3397
  OBJDUMP=$ac_ct_OBJDUMP
3398
else
3399
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3400
fi
3401
 
3402
  ;;
3403
esac
3404
 
3405
test -z "$AS" && AS=as
3406
 
3407
 
3408
 
3409
 
3410
 
3411
test -z "$DLLTOOL" && DLLTOOL=dlltool
3412
 
3413
 
3414
 
3415
 
3416
 
3417
test -z "$OBJDUMP" && OBJDUMP=objdump
3418
 
3419
 
3420
 
3421
 
3422
 
3423
 
3424
 
3425
case `pwd` in
3426
  *\ * | *\     *)
3427
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3428
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3429
esac
3430
 
3431
 
3432
 
3433
macro_version='2.2.6'
3434
macro_revision='1.3012'
3435
 
3436
 
3437
 
3438
 
3439
 
3440
 
3441
 
3442
 
3443
 
3444
 
3445
 
3446
 
3447
 
3448
ltmain="$ac_aux_dir/ltmain.sh"
3449
 
3450
ac_ext=c
3451
ac_cpp='$CPP $CPPFLAGS'
3452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
if test -n "$ac_tool_prefix"; then
3456
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3458
echo "$as_me:$LINENO: checking for $ac_word" >&5
3459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460
if test "${ac_cv_prog_CC+set}" = set; then
3461
  echo $ECHO_N "(cached) $ECHO_C" >&6
3462
else
3463
  if test -n "$CC"; then
3464
  ac_cv_prog_CC="$CC" # Let the user override the test.
3465
else
3466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467
for as_dir in $PATH
3468
do
3469
  IFS=$as_save_IFS
3470
  test -z "$as_dir" && as_dir=.
3471
  for ac_exec_ext in '' $ac_executable_extensions; do
3472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475
    break 2
3476
  fi
3477
done
3478
done
3479
 
3480
fi
3481
fi
3482
CC=$ac_cv_prog_CC
3483
if test -n "$CC"; then
3484
  echo "$as_me:$LINENO: result: $CC" >&5
3485
echo "${ECHO_T}$CC" >&6
3486
else
3487
  echo "$as_me:$LINENO: result: no" >&5
3488
echo "${ECHO_T}no" >&6
3489
fi
3490
 
3491
fi
3492
if test -z "$ac_cv_prog_CC"; then
3493
  ac_ct_CC=$CC
3494
  # Extract the first word of "gcc", so it can be a program name with args.
3495
set dummy gcc; ac_word=$2
3496
echo "$as_me:$LINENO: checking for $ac_word" >&5
3497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3499
  echo $ECHO_N "(cached) $ECHO_C" >&6
3500
else
3501
  if test -n "$ac_ct_CC"; then
3502
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503
else
3504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505
for as_dir in $PATH
3506
do
3507
  IFS=$as_save_IFS
3508
  test -z "$as_dir" && as_dir=.
3509
  for ac_exec_ext in '' $ac_executable_extensions; do
3510
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511
    ac_cv_prog_ac_ct_CC="gcc"
3512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513
    break 2
3514
  fi
3515
done
3516
done
3517
 
3518
fi
3519
fi
3520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521
if test -n "$ac_ct_CC"; then
3522
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3523
echo "${ECHO_T}$ac_ct_CC" >&6
3524
else
3525
  echo "$as_me:$LINENO: result: no" >&5
3526
echo "${ECHO_T}no" >&6
3527
fi
3528
 
3529
  CC=$ac_ct_CC
3530
else
3531
  CC="$ac_cv_prog_CC"
3532
fi
3533
 
3534
if test -z "$CC"; then
3535
  if test -n "$ac_tool_prefix"; then
3536
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537
set dummy ${ac_tool_prefix}cc; ac_word=$2
3538
echo "$as_me:$LINENO: checking for $ac_word" >&5
3539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540
if test "${ac_cv_prog_CC+set}" = set; then
3541
  echo $ECHO_N "(cached) $ECHO_C" >&6
3542
else
3543
  if test -n "$CC"; then
3544
  ac_cv_prog_CC="$CC" # Let the user override the test.
3545
else
3546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547
for as_dir in $PATH
3548
do
3549
  IFS=$as_save_IFS
3550
  test -z "$as_dir" && as_dir=.
3551
  for ac_exec_ext in '' $ac_executable_extensions; do
3552
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3554
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555
    break 2
3556
  fi
3557
done
3558
done
3559
 
3560
fi
3561
fi
3562
CC=$ac_cv_prog_CC
3563
if test -n "$CC"; then
3564
  echo "$as_me:$LINENO: result: $CC" >&5
3565
echo "${ECHO_T}$CC" >&6
3566
else
3567
  echo "$as_me:$LINENO: result: no" >&5
3568
echo "${ECHO_T}no" >&6
3569
fi
3570
 
3571
fi
3572
if test -z "$ac_cv_prog_CC"; then
3573
  ac_ct_CC=$CC
3574
  # Extract the first word of "cc", so it can be a program name with args.
3575
set dummy cc; ac_word=$2
3576
echo "$as_me:$LINENO: checking for $ac_word" >&5
3577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579
  echo $ECHO_N "(cached) $ECHO_C" >&6
3580
else
3581
  if test -n "$ac_ct_CC"; then
3582
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583
else
3584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585
for as_dir in $PATH
3586
do
3587
  IFS=$as_save_IFS
3588
  test -z "$as_dir" && as_dir=.
3589
  for ac_exec_ext in '' $ac_executable_extensions; do
3590
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591
    ac_cv_prog_ac_ct_CC="cc"
3592
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593
    break 2
3594
  fi
3595
done
3596
done
3597
 
3598
fi
3599
fi
3600
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601
if test -n "$ac_ct_CC"; then
3602
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3603
echo "${ECHO_T}$ac_ct_CC" >&6
3604
else
3605
  echo "$as_me:$LINENO: result: no" >&5
3606
echo "${ECHO_T}no" >&6
3607
fi
3608
 
3609
  CC=$ac_ct_CC
3610
else
3611
  CC="$ac_cv_prog_CC"
3612
fi
3613
 
3614
fi
3615
if test -z "$CC"; then
3616
  # Extract the first word of "cc", so it can be a program name with args.
3617
set dummy cc; ac_word=$2
3618
echo "$as_me:$LINENO: checking for $ac_word" >&5
3619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620
if test "${ac_cv_prog_CC+set}" = set; then
3621
  echo $ECHO_N "(cached) $ECHO_C" >&6
3622
else
3623
  if test -n "$CC"; then
3624
  ac_cv_prog_CC="$CC" # Let the user override the test.
3625
else
3626
  ac_prog_rejected=no
3627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628
for as_dir in $PATH
3629
do
3630
  IFS=$as_save_IFS
3631
  test -z "$as_dir" && as_dir=.
3632
  for ac_exec_ext in '' $ac_executable_extensions; do
3633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635
       ac_prog_rejected=yes
3636
       continue
3637
     fi
3638
    ac_cv_prog_CC="cc"
3639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640
    break 2
3641
  fi
3642
done
3643
done
3644
 
3645
if test $ac_prog_rejected = yes; then
3646
  # We found a bogon in the path, so make sure we never use it.
3647
  set dummy $ac_cv_prog_CC
3648
  shift
3649
  if test $# != 0; then
3650
    # We chose a different compiler from the bogus one.
3651
    # However, it has the same basename, so the bogon will be chosen
3652
    # first if we set CC to just the basename; use the full file name.
3653
    shift
3654
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655
  fi
3656
fi
3657
fi
3658
fi
3659
CC=$ac_cv_prog_CC
3660
if test -n "$CC"; then
3661
  echo "$as_me:$LINENO: result: $CC" >&5
3662
echo "${ECHO_T}$CC" >&6
3663
else
3664
  echo "$as_me:$LINENO: result: no" >&5
3665
echo "${ECHO_T}no" >&6
3666
fi
3667
 
3668
fi
3669
if test -z "$CC"; then
3670
  if test -n "$ac_tool_prefix"; then
3671
  for ac_prog in cl
3672
  do
3673
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675
echo "$as_me:$LINENO: checking for $ac_word" >&5
3676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3677
if test "${ac_cv_prog_CC+set}" = set; then
3678
  echo $ECHO_N "(cached) $ECHO_C" >&6
3679
else
3680
  if test -n "$CC"; then
3681
  ac_cv_prog_CC="$CC" # Let the user override the test.
3682
else
3683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684
for as_dir in $PATH
3685
do
3686
  IFS=$as_save_IFS
3687
  test -z "$as_dir" && as_dir=.
3688
  for ac_exec_ext in '' $ac_executable_extensions; do
3689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692
    break 2
3693
  fi
3694
done
3695
done
3696
 
3697
fi
3698
fi
3699
CC=$ac_cv_prog_CC
3700
if test -n "$CC"; then
3701
  echo "$as_me:$LINENO: result: $CC" >&5
3702
echo "${ECHO_T}$CC" >&6
3703
else
3704
  echo "$as_me:$LINENO: result: no" >&5
3705
echo "${ECHO_T}no" >&6
3706
fi
3707
 
3708
    test -n "$CC" && break
3709
  done
3710
fi
3711
if test -z "$CC"; then
3712
  ac_ct_CC=$CC
3713
  for ac_prog in cl
3714
do
3715
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3716
set dummy $ac_prog; ac_word=$2
3717
echo "$as_me:$LINENO: checking for $ac_word" >&5
3718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3720
  echo $ECHO_N "(cached) $ECHO_C" >&6
3721
else
3722
  if test -n "$ac_ct_CC"; then
3723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724
else
3725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726
for as_dir in $PATH
3727
do
3728
  IFS=$as_save_IFS
3729
  test -z "$as_dir" && as_dir=.
3730
  for ac_exec_ext in '' $ac_executable_extensions; do
3731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732
    ac_cv_prog_ac_ct_CC="$ac_prog"
3733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734
    break 2
3735
  fi
3736
done
3737
done
3738
 
3739
fi
3740
fi
3741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742
if test -n "$ac_ct_CC"; then
3743
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3744
echo "${ECHO_T}$ac_ct_CC" >&6
3745
else
3746
  echo "$as_me:$LINENO: result: no" >&5
3747
echo "${ECHO_T}no" >&6
3748
fi
3749
 
3750
  test -n "$ac_ct_CC" && break
3751
done
3752
 
3753
  CC=$ac_ct_CC
3754
fi
3755
 
3756
fi
3757
 
3758
 
3759
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3760
See \`config.log' for more details." >&5
3761
echo "$as_me: error: no acceptable C compiler found in \$PATH
3762
See \`config.log' for more details." >&2;}
3763
   { (exit 1); exit 1; }; }
3764
 
3765
# Provide some information about the compiler.
3766
echo "$as_me:$LINENO:" \
3767
     "checking for C compiler version" >&5
3768
ac_compiler=`set X $ac_compile; echo $2`
3769
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3770
  (eval $ac_compiler --version &5) 2>&5
3771
  ac_status=$?
3772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
  (exit $ac_status); }
3774
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3775
  (eval $ac_compiler -v &5) 2>&5
3776
  ac_status=$?
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
  (exit $ac_status); }
3779
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3780
  (eval $ac_compiler -V &5) 2>&5
3781
  ac_status=$?
3782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783
  (exit $ac_status); }
3784
 
3785
cat >conftest.$ac_ext <<_ACEOF
3786
/* confdefs.h.  */
3787
_ACEOF
3788
cat confdefs.h >>conftest.$ac_ext
3789
cat >>conftest.$ac_ext <<_ACEOF
3790
/* end confdefs.h.  */
3791
 
3792
int
3793
main ()
3794
{
3795
 
3796
  ;
3797
  return 0;
3798
}
3799
_ACEOF
3800
ac_clean_files_save=$ac_clean_files
3801
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3802
# Try to create an executable without -o first, disregard a.out.
3803
# It will help us diagnose broken compilers, and finding out an intuition
3804
# of exeext.
3805
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3806
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3807
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3809
  (eval $ac_link_default) 2>&5
3810
  ac_status=$?
3811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812
  (exit $ac_status); }; then
3813
  # Find the output, starting from the most likely.  This scheme is
3814
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3815
# resort.
3816
 
3817
# Be careful to initialize this variable, since it used to be cached.
3818
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3819
ac_cv_exeext=
3820
# b.out is created by i960 compilers.
3821
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3822
do
3823
  test -f "$ac_file" || continue
3824
  case $ac_file in
3825
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3826
        ;;
3827
    conftest.$ac_ext )
3828
        # This is the source file.
3829
        ;;
3830
    [ab].out )
3831
        # We found the default executable, but exeext='' is most
3832
        # certainly right.
3833
        break;;
3834
    *.* )
3835
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3837
        # but it would be cool to find out if it's true.  Does anybody
3838
        # maintain Libtool? --akim.
3839
        export ac_cv_exeext
3840
        break;;
3841
    * )
3842
        break;;
3843
  esac
3844
done
3845
else
3846
  echo "$as_me: failed program was:" >&5
3847
sed 's/^/| /' conftest.$ac_ext >&5
3848
 
3849
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3850
See \`config.log' for more details." >&5
3851
echo "$as_me: error: C compiler cannot create executables
3852
See \`config.log' for more details." >&2;}
3853
   { (exit 77); exit 77; }; }
3854
fi
3855
 
3856
ac_exeext=$ac_cv_exeext
3857
echo "$as_me:$LINENO: result: $ac_file" >&5
3858
echo "${ECHO_T}$ac_file" >&6
3859
 
3860
# Check the compiler produces executables we can run.  If not, either
3861
# the compiler is broken, or we cross compile.
3862
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3863
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3864
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3865
# If not cross compiling, check that we can run a simple program.
3866
if test "$cross_compiling" != yes; then
3867
  if { ac_try='./$ac_file'
3868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
  (eval $ac_try) 2>&5
3870
  ac_status=$?
3871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
  (exit $ac_status); }; }; then
3873
    cross_compiling=no
3874
  else
3875
    if test "$cross_compiling" = maybe; then
3876
        cross_compiling=yes
3877
    else
3878
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3879
If you meant to cross compile, use \`--host'.
3880
See \`config.log' for more details." >&5
3881
echo "$as_me: error: cannot run C compiled programs.
3882
If you meant to cross compile, use \`--host'.
3883
See \`config.log' for more details." >&2;}
3884
   { (exit 1); exit 1; }; }
3885
    fi
3886
  fi
3887
fi
3888
echo "$as_me:$LINENO: result: yes" >&5
3889
echo "${ECHO_T}yes" >&6
3890
 
3891
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3892
ac_clean_files=$ac_clean_files_save
3893
# Check the compiler produces executables we can run.  If not, either
3894
# the compiler is broken, or we cross compile.
3895
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3896
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3897
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3898
echo "${ECHO_T}$cross_compiling" >&6
3899
 
3900
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3901
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903
  (eval $ac_link) 2>&5
3904
  ac_status=$?
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906
  (exit $ac_status); }; then
3907
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3908
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3909
# work properly (i.e., refer to `conftest.exe'), while it won't with
3910
# `rm'.
3911
for ac_file in conftest.exe conftest conftest.*; do
3912
  test -f "$ac_file" || continue
3913
  case $ac_file in
3914
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3915
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3916
          export ac_cv_exeext
3917
          break;;
3918
    * ) break;;
3919
  esac
3920
done
3921
else
3922
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3923
See \`config.log' for more details." >&5
3924
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3925
See \`config.log' for more details." >&2;}
3926
   { (exit 1); exit 1; }; }
3927
fi
3928
 
3929
rm -f conftest$ac_cv_exeext
3930
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3931
echo "${ECHO_T}$ac_cv_exeext" >&6
3932
 
3933
rm -f conftest.$ac_ext
3934
EXEEXT=$ac_cv_exeext
3935
ac_exeext=$EXEEXT
3936
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3937
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3938
if test "${ac_cv_objext+set}" = set; then
3939
  echo $ECHO_N "(cached) $ECHO_C" >&6
3940
else
3941
  cat >conftest.$ac_ext <<_ACEOF
3942
/* confdefs.h.  */
3943
_ACEOF
3944
cat confdefs.h >>conftest.$ac_ext
3945
cat >>conftest.$ac_ext <<_ACEOF
3946
/* end confdefs.h.  */
3947
 
3948
int
3949
main ()
3950
{
3951
 
3952
  ;
3953
  return 0;
3954
}
3955
_ACEOF
3956
rm -f conftest.o conftest.obj
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
  (eval $ac_compile) 2>&5
3959
  ac_status=$?
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
  (exit $ac_status); }; then
3962
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3963
  case $ac_file in
3964
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3965
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3966
       break;;
3967
  esac
3968
done
3969
else
3970
  echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3972
 
3973
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3974
See \`config.log' for more details." >&5
3975
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3976
See \`config.log' for more details." >&2;}
3977
   { (exit 1); exit 1; }; }
3978
fi
3979
 
3980
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3981
fi
3982
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3983
echo "${ECHO_T}$ac_cv_objext" >&6
3984
OBJEXT=$ac_cv_objext
3985
ac_objext=$OBJEXT
3986
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3987
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3988
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3989
  echo $ECHO_N "(cached) $ECHO_C" >&6
3990
else
3991
  cat >conftest.$ac_ext <<_ACEOF
3992
/* confdefs.h.  */
3993
_ACEOF
3994
cat confdefs.h >>conftest.$ac_ext
3995
cat >>conftest.$ac_ext <<_ACEOF
3996
/* end confdefs.h.  */
3997
 
3998
int
3999
main ()
4000
{
4001
#ifndef __GNUC__
4002
       choke me
4003
#endif
4004
 
4005
  ;
4006
  return 0;
4007
}
4008
_ACEOF
4009
rm -f conftest.$ac_objext
4010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011
  (eval $ac_compile) 2>conftest.er1
4012
  ac_status=$?
4013
  grep -v '^ *+' conftest.er1 >conftest.err
4014
  rm -f conftest.er1
4015
  cat conftest.err >&5
4016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017
  (exit $ac_status); } &&
4018
         { ac_try='test -z "$ac_c_werror_flag"
4019
                         || test ! -s conftest.err'
4020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021
  (eval $ac_try) 2>&5
4022
  ac_status=$?
4023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
  (exit $ac_status); }; } &&
4025
         { ac_try='test -s conftest.$ac_objext'
4026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027
  (eval $ac_try) 2>&5
4028
  ac_status=$?
4029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
  (exit $ac_status); }; }; then
4031
  ac_compiler_gnu=yes
4032
else
4033
  echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4035
 
4036
ac_compiler_gnu=no
4037
fi
4038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4039
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4040
 
4041
fi
4042
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4043
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4044
GCC=`test $ac_compiler_gnu = yes && echo yes`
4045
ac_test_CFLAGS=${CFLAGS+set}
4046
ac_save_CFLAGS=$CFLAGS
4047
CFLAGS="-g"
4048
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4049
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4050
if test "${ac_cv_prog_cc_g+set}" = set; then
4051
  echo $ECHO_N "(cached) $ECHO_C" >&6
4052
else
4053
  cat >conftest.$ac_ext <<_ACEOF
4054
/* confdefs.h.  */
4055
_ACEOF
4056
cat confdefs.h >>conftest.$ac_ext
4057
cat >>conftest.$ac_ext <<_ACEOF
4058
/* end confdefs.h.  */
4059
 
4060
int
4061
main ()
4062
{
4063
 
4064
  ;
4065
  return 0;
4066
}
4067
_ACEOF
4068
rm -f conftest.$ac_objext
4069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070
  (eval $ac_compile) 2>conftest.er1
4071
  ac_status=$?
4072
  grep -v '^ *+' conftest.er1 >conftest.err
4073
  rm -f conftest.er1
4074
  cat conftest.err >&5
4075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
  (exit $ac_status); } &&
4077
         { ac_try='test -z "$ac_c_werror_flag"
4078
                         || test ! -s conftest.err'
4079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080
  (eval $ac_try) 2>&5
4081
  ac_status=$?
4082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083
  (exit $ac_status); }; } &&
4084
         { ac_try='test -s conftest.$ac_objext'
4085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086
  (eval $ac_try) 2>&5
4087
  ac_status=$?
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
  (exit $ac_status); }; }; then
4090
  ac_cv_prog_cc_g=yes
4091
else
4092
  echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4094
 
4095
ac_cv_prog_cc_g=no
4096
fi
4097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098
fi
4099
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4100
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4101
if test "$ac_test_CFLAGS" = set; then
4102
  CFLAGS=$ac_save_CFLAGS
4103
elif test $ac_cv_prog_cc_g = yes; then
4104
  if test "$GCC" = yes; then
4105
    CFLAGS="-g -O2"
4106
  else
4107
    CFLAGS="-g"
4108
  fi
4109
else
4110
  if test "$GCC" = yes; then
4111
    CFLAGS="-O2"
4112
  else
4113
    CFLAGS=
4114
  fi
4115
fi
4116
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4117
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4118
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
4120
else
4121
  ac_cv_prog_cc_stdc=no
4122
ac_save_CC=$CC
4123
cat >conftest.$ac_ext <<_ACEOF
4124
/* confdefs.h.  */
4125
_ACEOF
4126
cat confdefs.h >>conftest.$ac_ext
4127
cat >>conftest.$ac_ext <<_ACEOF
4128
/* end confdefs.h.  */
4129
#include 
4130
#include 
4131
#include 
4132
#include 
4133
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134
struct buf { int x; };
4135
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136
static char *e (p, i)
4137
     char **p;
4138
     int i;
4139
{
4140
  return p[i];
4141
}
4142
static char *f (char * (*g) (char **, int), char **p, ...)
4143
{
4144
  char *s;
4145
  va_list v;
4146
  va_start (v,p);
4147
  s = g (p, va_arg (v,int));
4148
  va_end (v);
4149
  return s;
4150
}
4151
 
4152
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153
   function prototypes and stuff, but not '\xHH' hex character constants.
4154
   These don't provoke an error unfortunately, instead are silently treated
4155
   as 'x'.  The following induces an error, until -std1 is added to get
4156
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157
   array size at least.  It's necessary to write '\x00'==0 to get something
4158
   that's true only with -std1.  */
4159
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
 
4161
int test (int i, double x);
4162
struct s1 {int (*f) (int a);};
4163
struct s2 {int (*f) (double a);};
4164
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4165
int argc;
4166
char **argv;
4167
int
4168
main ()
4169
{
4170
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4171
  ;
4172
  return 0;
4173
}
4174
_ACEOF
4175
# Don't try gcc -ansi; that turns off useful extensions and
4176
# breaks some systems' header files.
4177
# AIX                   -qlanglvl=ansi
4178
# Ultrix and OSF/1      -std1
4179
# HP-UX 10.20 and later -Ae
4180
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4181
# SVR4                  -Xc -D__EXTENSIONS__
4182
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183
do
4184
  CC="$ac_save_CC $ac_arg"
4185
  rm -f conftest.$ac_objext
4186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187
  (eval $ac_compile) 2>conftest.er1
4188
  ac_status=$?
4189
  grep -v '^ *+' conftest.er1 >conftest.err
4190
  rm -f conftest.er1
4191
  cat conftest.err >&5
4192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193
  (exit $ac_status); } &&
4194
         { ac_try='test -z "$ac_c_werror_flag"
4195
                         || test ! -s conftest.err'
4196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197
  (eval $ac_try) 2>&5
4198
  ac_status=$?
4199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
  (exit $ac_status); }; } &&
4201
         { ac_try='test -s conftest.$ac_objext'
4202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203
  (eval $ac_try) 2>&5
4204
  ac_status=$?
4205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
  (exit $ac_status); }; }; then
4207
  ac_cv_prog_cc_stdc=$ac_arg
4208
break
4209
else
4210
  echo "$as_me: failed program was:" >&5
4211
sed 's/^/| /' conftest.$ac_ext >&5
4212
 
4213
fi
4214
rm -f conftest.err conftest.$ac_objext
4215
done
4216
rm -f conftest.$ac_ext conftest.$ac_objext
4217
CC=$ac_save_CC
4218
 
4219
fi
4220
 
4221
case "x$ac_cv_prog_cc_stdc" in
4222
  x|xno)
4223
    echo "$as_me:$LINENO: result: none needed" >&5
4224
echo "${ECHO_T}none needed" >&6 ;;
4225
  *)
4226
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4227
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4228
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4229
esac
4230
 
4231
# Some people use a C++ compiler to compile C.  Since we use `exit',
4232
# in C++ we need to declare it.  In case someone uses the same compiler
4233
# for both compiling C and C++ we need to have the C++ compiler decide
4234
# the declaration of exit, since it's the most demanding environment.
4235
cat >conftest.$ac_ext <<_ACEOF
4236
#ifndef __cplusplus
4237
  choke me
4238
#endif
4239
_ACEOF
4240
rm -f conftest.$ac_objext
4241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242
  (eval $ac_compile) 2>conftest.er1
4243
  ac_status=$?
4244
  grep -v '^ *+' conftest.er1 >conftest.err
4245
  rm -f conftest.er1
4246
  cat conftest.err >&5
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
  (exit $ac_status); } &&
4249
         { ac_try='test -z "$ac_c_werror_flag"
4250
                         || test ! -s conftest.err'
4251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252
  (eval $ac_try) 2>&5
4253
  ac_status=$?
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
  (exit $ac_status); }; } &&
4256
         { ac_try='test -s conftest.$ac_objext'
4257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258
  (eval $ac_try) 2>&5
4259
  ac_status=$?
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
  (exit $ac_status); }; }; then
4262
  for ac_declaration in \
4263
   '' \
4264
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4265
   'extern "C" void std::exit (int); using std::exit;' \
4266
   'extern "C" void exit (int) throw ();' \
4267
   'extern "C" void exit (int);' \
4268
   'void exit (int);'
4269
do
4270
  cat >conftest.$ac_ext <<_ACEOF
4271
/* confdefs.h.  */
4272
_ACEOF
4273
cat confdefs.h >>conftest.$ac_ext
4274
cat >>conftest.$ac_ext <<_ACEOF
4275
/* end confdefs.h.  */
4276
$ac_declaration
4277
#include 
4278
int
4279
main ()
4280
{
4281
exit (42);
4282
  ;
4283
  return 0;
4284
}
4285
_ACEOF
4286
rm -f conftest.$ac_objext
4287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288
  (eval $ac_compile) 2>conftest.er1
4289
  ac_status=$?
4290
  grep -v '^ *+' conftest.er1 >conftest.err
4291
  rm -f conftest.er1
4292
  cat conftest.err >&5
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
  (exit $ac_status); } &&
4295
         { ac_try='test -z "$ac_c_werror_flag"
4296
                         || test ! -s conftest.err'
4297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298
  (eval $ac_try) 2>&5
4299
  ac_status=$?
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
  (exit $ac_status); }; } &&
4302
         { ac_try='test -s conftest.$ac_objext'
4303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304
  (eval $ac_try) 2>&5
4305
  ac_status=$?
4306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307
  (exit $ac_status); }; }; then
4308
  :
4309
else
4310
  echo "$as_me: failed program was:" >&5
4311
sed 's/^/| /' conftest.$ac_ext >&5
4312
 
4313
continue
4314
fi
4315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316
  cat >conftest.$ac_ext <<_ACEOF
4317
/* confdefs.h.  */
4318
_ACEOF
4319
cat confdefs.h >>conftest.$ac_ext
4320
cat >>conftest.$ac_ext <<_ACEOF
4321
/* end confdefs.h.  */
4322
$ac_declaration
4323
int
4324
main ()
4325
{
4326
exit (42);
4327
  ;
4328
  return 0;
4329
}
4330
_ACEOF
4331
rm -f conftest.$ac_objext
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333
  (eval $ac_compile) 2>conftest.er1
4334
  ac_status=$?
4335
  grep -v '^ *+' conftest.er1 >conftest.err
4336
  rm -f conftest.er1
4337
  cat conftest.err >&5
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
  (exit $ac_status); } &&
4340
         { ac_try='test -z "$ac_c_werror_flag"
4341
                         || test ! -s conftest.err'
4342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343
  (eval $ac_try) 2>&5
4344
  ac_status=$?
4345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
  (exit $ac_status); }; } &&
4347
         { ac_try='test -s conftest.$ac_objext'
4348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349
  (eval $ac_try) 2>&5
4350
  ac_status=$?
4351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352
  (exit $ac_status); }; }; then
4353
  break
4354
else
4355
  echo "$as_me: failed program was:" >&5
4356
sed 's/^/| /' conftest.$ac_ext >&5
4357
 
4358
fi
4359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360
done
4361
rm -f conftest*
4362
if test -n "$ac_declaration"; then
4363
  echo '#ifdef __cplusplus' >>confdefs.h
4364
  echo $ac_declaration      >>confdefs.h
4365
  echo '#endif'             >>confdefs.h
4366
fi
4367
 
4368
else
4369
  echo "$as_me: failed program was:" >&5
4370
sed 's/^/| /' conftest.$ac_ext >&5
4371
 
4372
fi
4373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374
ac_ext=c
4375
ac_cpp='$CPP $CPPFLAGS'
4376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
 
4380
depcc="$CC"   am_compiler_list=
4381
 
4382
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4383
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4384
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4385
  echo $ECHO_N "(cached) $ECHO_C" >&6
4386
else
4387
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388
  # We make a subdir and do the tests there.  Otherwise we can end up
4389
  # making bogus files that we don't know about and never remove.  For
4390
  # instance it was reported that on HP-UX the gcc test will end up
4391
  # making a dummy file named `D' -- because `-MD' means `put the output
4392
  # in D'.
4393
  mkdir conftest.dir
4394
  # Copy depcomp to subdir because otherwise we won't find it if we're
4395
  # using a relative directory.
4396
  cp "$am_depcomp" conftest.dir
4397
  cd conftest.dir
4398
  # We will build objects and dependencies in a subdirectory because
4399
  # it helps to detect inapplicable dependency modes.  For instance
4400
  # both Tru64's cc and ICC support -MD to output dependencies as a
4401
  # side effect of compilation, but ICC will put the dependencies in
4402
  # the current directory while Tru64 will put them in the object
4403
  # directory.
4404
  mkdir sub
4405
 
4406
  am_cv_CC_dependencies_compiler_type=none
4407
  if test "$am_compiler_list" = ""; then
4408
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409
  fi
4410
  for depmode in $am_compiler_list; do
4411
    # Setup a source with many dependencies, because some compilers
4412
    # like to wrap large dependency lists on column 80 (with \), and
4413
    # we should not choose a depcomp mode which is confused by this.
4414
    #
4415
    # We need to recreate these files for each test, as the compiler may
4416
    # overwrite some of them when testing with obscure command lines.
4417
    # This happens at least with the AIX C compiler.
4418
    : > sub/conftest.c
4419
    for i in 1 2 3 4 5 6; do
4420
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4421
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4422
      # Solaris 8's {/usr,}/bin/sh.
4423
      touch sub/conftst$i.h
4424
    done
4425
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4426
 
4427
    case $depmode in
4428
    nosideeffect)
4429
      # after this tag, mechanisms are not by side-effect, so they'll
4430
      # only be used when explicitly requested
4431
      if test "x$enable_dependency_tracking" = xyes; then
4432
        continue
4433
      else
4434
        break
4435
      fi
4436
      ;;
4437
    none) break ;;
4438
    esac
4439
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4440
    # mode.  It turns out that the SunPro C++ compiler does not properly
4441
    # handle `-M -o', and we need to detect this.
4442
    if depmode=$depmode \
4443
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4444
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4445
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4446
         >/dev/null 2>conftest.err &&
4447
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4448
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4449
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4450
      # icc doesn't choke on unknown options, it will just issue warnings
4451
      # or remarks (even with -Werror).  So we grep stderr for any message
4452
      # that says an option was ignored or not supported.
4453
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4454
      #   icc: Command line warning: ignoring option '-M'; no argument required
4455
      # The diagnosis changed in icc 8.0:
4456
      #   icc: Command line remark: option '-MP' not supported
4457
      if (grep 'ignoring option' conftest.err ||
4458
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4459
        am_cv_CC_dependencies_compiler_type=$depmode
4460
        break
4461
      fi
4462
    fi
4463
  done
4464
 
4465
  cd ..
4466
  rm -rf conftest.dir
4467
else
4468
  am_cv_CC_dependencies_compiler_type=none
4469
fi
4470
 
4471
fi
4472
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4473
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4474
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4475
 
4476
 
4477
 
4478
if
4479
  test "x$enable_dependency_tracking" != xno \
4480
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4481
  am__fastdepCC_TRUE=
4482
  am__fastdepCC_FALSE='#'
4483
else
4484
  am__fastdepCC_TRUE='#'
4485
  am__fastdepCC_FALSE=
4486
fi
4487
 
4488
 
4489
echo "$as_me:$LINENO: checking for egrep" >&5
4490
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4491
if test "${ac_cv_prog_egrep+set}" = set; then
4492
  echo $ECHO_N "(cached) $ECHO_C" >&6
4493
else
4494
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4495
    then ac_cv_prog_egrep='grep -E'
4496
    else ac_cv_prog_egrep='egrep'
4497
    fi
4498
fi
4499
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4500
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4501
 EGREP=$ac_cv_prog_egrep
4502
 
4503
 
4504
echo "$as_me:$LINENO: checking for fgrep" >&5
4505
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4506
if test "${ac_cv_prog_fgrep+set}" = set; then
4507
  echo $ECHO_N "(cached) $ECHO_C" >&6
4508
else
4509
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4510
    then ac_cv_prog_fgrep='grep -F'
4511
    else ac_cv_prog_fgrep='fgrep'
4512
    fi
4513
fi
4514
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4515
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4516
 FGREP=$ac_cv_prog_fgrep
4517
 
4518
 
4519
test -z "$GREP" && GREP=grep
4520
 
4521
 
4522
 
4523
 
4524
 
4525
 
4526
 
4527
 
4528
 
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537
 
4538
 
4539
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4540
if test "${with_gnu_ld+set}" = set; then
4541
  withval="$with_gnu_ld"
4542
  test "$withval" = no || with_gnu_ld=yes
4543
else
4544
  with_gnu_ld=no
4545
fi;
4546
ac_prog=ld
4547
if test "$GCC" = yes; then
4548
  # Check if gcc -print-prog-name=ld gives a path.
4549
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4550
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4551
  case $host in
4552
  *-*-mingw*)
4553
    # gcc leaves a trailing carriage return which upsets mingw
4554
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555
  *)
4556
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4557
  esac
4558
  case $ac_prog in
4559
    # Accept absolute paths.
4560
    [\\/]* | ?:[\\/]*)
4561
      re_direlt='/[^/][^/]*/\.\./'
4562
      # Canonicalize the pathname of ld
4563
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4564
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4565
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566
      done
4567
      test -z "$LD" && LD="$ac_prog"
4568
      ;;
4569
  "")
4570
    # If it fails, then pretend we aren't using GCC.
4571
    ac_prog=ld
4572
    ;;
4573
  *)
4574
    # If it is relative, then search for the first ld in PATH.
4575
    with_gnu_ld=unknown
4576
    ;;
4577
  esac
4578
elif test "$with_gnu_ld" = yes; then
4579
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4580
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4581
else
4582
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4583
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4584
fi
4585
if test "${lt_cv_path_LD+set}" = set; then
4586
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
else
4588
  if test -z "$LD"; then
4589
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4590
  for ac_dir in $PATH; do
4591
    IFS="$lt_save_ifs"
4592
    test -z "$ac_dir" && ac_dir=.
4593
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4594
      lt_cv_path_LD="$ac_dir/$ac_prog"
4595
      # Check to see if the program is GNU ld.  I'd rather use --version,
4596
      # but apparently some variants of GNU ld only accept -v.
4597
      # Break only if it was the GNU/non-GNU ld that we prefer.
4598
      case `"$lt_cv_path_LD" -v 2>&1 
4599
      *GNU* | *'with BFD'*)
4600
        test "$with_gnu_ld" != no && break
4601
        ;;
4602
      *)
4603
        test "$with_gnu_ld" != yes && break
4604
        ;;
4605
      esac
4606
    fi
4607
  done
4608
  IFS="$lt_save_ifs"
4609
else
4610
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4611
fi
4612
fi
4613
 
4614
LD="$lt_cv_path_LD"
4615
if test -n "$LD"; then
4616
  echo "$as_me:$LINENO: result: $LD" >&5
4617
echo "${ECHO_T}$LD" >&6
4618
else
4619
  echo "$as_me:$LINENO: result: no" >&5
4620
echo "${ECHO_T}no" >&6
4621
fi
4622
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4623
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4624
   { (exit 1); exit 1; }; }
4625
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4626
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4627
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4628
  echo $ECHO_N "(cached) $ECHO_C" >&6
4629
else
4630
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631
case `$LD -v 2>&1 
4632
*GNU* | *'with BFD'*)
4633
  lt_cv_prog_gnu_ld=yes
4634
  ;;
4635
*)
4636
  lt_cv_prog_gnu_ld=no
4637
  ;;
4638
esac
4639
fi
4640
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4641
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4642
with_gnu_ld=$lt_cv_prog_gnu_ld
4643
 
4644
 
4645
 
4646
 
4647
 
4648
 
4649
 
4650
 
4651
 
4652
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4654
if test "${lt_cv_path_NM+set}" = set; then
4655
  echo $ECHO_N "(cached) $ECHO_C" >&6
4656
else
4657
  if test -n "$NM"; then
4658
  # Let the user override the test.
4659
  lt_cv_path_NM="$NM"
4660
else
4661
  lt_nm_to_check="${ac_tool_prefix}nm"
4662
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663
    lt_nm_to_check="$lt_nm_to_check nm"
4664
  fi
4665
  for lt_tmp_nm in $lt_nm_to_check; do
4666
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668
      IFS="$lt_save_ifs"
4669
      test -z "$ac_dir" && ac_dir=.
4670
      tmp_nm="$ac_dir/$lt_tmp_nm"
4671
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672
        # Check to see if the nm accepts a BSD-compat flag.
4673
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674
        #   nm: unknown option "B" ignored
4675
        # Tru64's nm complains that /dev/null is an invalid object file
4676
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677
        */dev/null* | *'Invalid file or object type'*)
4678
          lt_cv_path_NM="$tmp_nm -B"
4679
          break
4680
          ;;
4681
        *)
4682
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683
          */dev/null*)
4684
            lt_cv_path_NM="$tmp_nm -p"
4685
            break
4686
            ;;
4687
          *)
4688
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689
            continue # so that we can try to find one that supports BSD flags
4690
            ;;
4691
          esac
4692
          ;;
4693
        esac
4694
      fi
4695
    done
4696
    IFS="$lt_save_ifs"
4697
  done
4698
  : ${lt_cv_path_NM=no}
4699
fi
4700
fi
4701
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702
echo "${ECHO_T}$lt_cv_path_NM" >&6
4703
if test "$lt_cv_path_NM" != "no"; then
4704
  NM="$lt_cv_path_NM"
4705
else
4706
  # Didn't find any BSD compatible name lister, look for dumpbin.
4707
  if test -n "$ac_tool_prefix"; then
4708
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4709
  do
4710
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712
echo "$as_me:$LINENO: checking for $ac_word" >&5
4713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715
  echo $ECHO_N "(cached) $ECHO_C" >&6
4716
else
4717
  if test -n "$DUMPBIN"; then
4718
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719
else
4720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721
for as_dir in $PATH
4722
do
4723
  IFS=$as_save_IFS
4724
  test -z "$as_dir" && as_dir=.
4725
  for ac_exec_ext in '' $ac_executable_extensions; do
4726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729
    break 2
4730
  fi
4731
done
4732
done
4733
 
4734
fi
4735
fi
4736
DUMPBIN=$ac_cv_prog_DUMPBIN
4737
if test -n "$DUMPBIN"; then
4738
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739
echo "${ECHO_T}$DUMPBIN" >&6
4740
else
4741
  echo "$as_me:$LINENO: result: no" >&5
4742
echo "${ECHO_T}no" >&6
4743
fi
4744
 
4745
    test -n "$DUMPBIN" && break
4746
  done
4747
fi
4748
if test -z "$DUMPBIN"; then
4749
  ac_ct_DUMPBIN=$DUMPBIN
4750
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751
do
4752
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4753
set dummy $ac_prog; ac_word=$2
4754
echo "$as_me:$LINENO: checking for $ac_word" >&5
4755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757
  echo $ECHO_N "(cached) $ECHO_C" >&6
4758
else
4759
  if test -n "$ac_ct_DUMPBIN"; then
4760
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761
else
4762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763
for as_dir in $PATH
4764
do
4765
  IFS=$as_save_IFS
4766
  test -z "$as_dir" && as_dir=.
4767
  for ac_exec_ext in '' $ac_executable_extensions; do
4768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771
    break 2
4772
  fi
4773
done
4774
done
4775
 
4776
fi
4777
fi
4778
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779
if test -n "$ac_ct_DUMPBIN"; then
4780
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4782
else
4783
  echo "$as_me:$LINENO: result: no" >&5
4784
echo "${ECHO_T}no" >&6
4785
fi
4786
 
4787
  test -n "$ac_ct_DUMPBIN" && break
4788
done
4789
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4790
 
4791
  DUMPBIN=$ac_ct_DUMPBIN
4792
fi
4793
 
4794
 
4795
  if test "$DUMPBIN" != ":"; then
4796
    NM="$DUMPBIN"
4797
  fi
4798
fi
4799
test -z "$NM" && NM=nm
4800
 
4801
 
4802
 
4803
 
4804
 
4805
 
4806
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4807
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4808
if test "${lt_cv_nm_interface+set}" = set; then
4809
  echo $ECHO_N "(cached) $ECHO_C" >&6
4810
else
4811
  lt_cv_nm_interface="BSD nm"
4812
  echo "int some_variable = 0;" > conftest.$ac_ext
4813
  (eval echo "\"\$as_me:4813: $ac_compile\"" >&5)
4814
  (eval "$ac_compile" 2>conftest.err)
4815
  cat conftest.err >&5
4816
  (eval echo "\"\$as_me:4816: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4817
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4818
  cat conftest.err >&5
4819
  (eval echo "\"\$as_me:4819: output\"" >&5)
4820
  cat conftest.out >&5
4821
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4822
    lt_cv_nm_interface="MS dumpbin"
4823
  fi
4824
  rm -f conftest*
4825
fi
4826
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4827
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4828
 
4829
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4830
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4831
LN_S=$as_ln_s
4832
if test "$LN_S" = "ln -s"; then
4833
  echo "$as_me:$LINENO: result: yes" >&5
4834
echo "${ECHO_T}yes" >&6
4835
else
4836
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4837
echo "${ECHO_T}no, using $LN_S" >&6
4838
fi
4839
 
4840
# find the maximum length of command line arguments
4841
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4843
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844
  echo $ECHO_N "(cached) $ECHO_C" >&6
4845
else
4846
    i=0
4847
  teststring="ABCD"
4848
 
4849
  case $build_os in
4850
  msdosdjgpp*)
4851
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4852
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4853
    # during glob expansion).  Even if it were fixed, the result of this
4854
    # check would be larger than it should be.
4855
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4856
    ;;
4857
 
4858
  gnu*)
4859
    # Under GNU Hurd, this test is not required because there is
4860
    # no limit to the length of command line arguments.
4861
    # Libtool will interpret -1 as no limit whatsoever
4862
    lt_cv_sys_max_cmd_len=-1;
4863
    ;;
4864
 
4865
  cygwin* | mingw* | cegcc*)
4866
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4867
    # about 5 minutes as the teststring grows exponentially.
4868
    # Worse, since 9x/ME are not pre-emptively multitasking,
4869
    # you end up with a "frozen" computer, even though with patience
4870
    # the test eventually succeeds (with a max line length of 256k).
4871
    # Instead, let's just punt: use the minimum linelength reported by
4872
    # all of the supported platforms: 8192 (on NT/2K/XP).
4873
    lt_cv_sys_max_cmd_len=8192;
4874
    ;;
4875
 
4876
  amigaos*)
4877
    # On AmigaOS with pdksh, this test takes hours, literally.
4878
    # So we just punt and use a minimum line length of 8192.
4879
    lt_cv_sys_max_cmd_len=8192;
4880
    ;;
4881
 
4882
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883
    # This has been around since 386BSD, at least.  Likely further.
4884
    if test -x /sbin/sysctl; then
4885
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886
    elif test -x /usr/sbin/sysctl; then
4887
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888
    else
4889
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4890
    fi
4891
    # And add a safety zone
4892
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894
    ;;
4895
 
4896
  interix*)
4897
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898
    lt_cv_sys_max_cmd_len=196608
4899
    ;;
4900
 
4901
  osf*)
4902
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904
    # nice to cause kernel panics so lets avoid the loop below.
4905
    # First set a reasonable default.
4906
    lt_cv_sys_max_cmd_len=16384
4907
    #
4908
    if test -x /sbin/sysconfig; then
4909
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4911
      esac
4912
    fi
4913
    ;;
4914
  sco3.2v5*)
4915
    lt_cv_sys_max_cmd_len=102400
4916
    ;;
4917
  sysv5* | sco5v6* | sysv4.2uw2*)
4918
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919
    if test -n "$kargmax"; then
4920
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4921
    else
4922
      lt_cv_sys_max_cmd_len=32768
4923
    fi
4924
    ;;
4925
  *)
4926
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4927
    if test -n "$lt_cv_sys_max_cmd_len"; then
4928
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4929
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4930
    else
4931
      # Make teststring a little bigger before we do anything with it.
4932
      # a 1K string should be a reasonable start.
4933
      for i in 1 2 3 4 5 6 7 8 ; do
4934
        teststring=$teststring$teststring
4935
      done
4936
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4937
      # If test is not a shell built-in, we'll probably end up computing a
4938
      # maximum length that is only half of the actual maximum length, but
4939
      # we can't tell.
4940
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4941
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4942
              test $i != 17 # 1/2 MB should be enough
4943
      do
4944
        i=`expr $i + 1`
4945
        teststring=$teststring$teststring
4946
      done
4947
      # Only check the string length outside the loop.
4948
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4949
      teststring=
4950
      # Add a significant safety factor because C++ compilers can tack on
4951
      # massive amounts of additional arguments before passing them to the
4952
      # linker.  It appears as though 1/2 is a usable value.
4953
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4954
    fi
4955
    ;;
4956
  esac
4957
 
4958
fi
4959
 
4960
if test -n $lt_cv_sys_max_cmd_len ; then
4961
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4962
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4963
else
4964
  echo "$as_me:$LINENO: result: none" >&5
4965
echo "${ECHO_T}none" >&6
4966
fi
4967
max_cmd_len=$lt_cv_sys_max_cmd_len
4968
 
4969
 
4970
 
4971
 
4972
 
4973
 
4974
: ${CP="cp -f"}
4975
: ${MV="mv -f"}
4976
: ${RM="rm -f"}
4977
 
4978
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4979
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4980
# Try some XSI features
4981
xsi_shell=no
4982
( _lt_dummy="a/b/c"
4983
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4984
      = c,a/b,, \
4985
    && eval 'test $(( 1 + 1 )) -eq 2 \
4986
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4987
  && xsi_shell=yes
4988
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4989
echo "${ECHO_T}$xsi_shell" >&6
4990
 
4991
 
4992
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4993
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4994
lt_shell_append=no
4995
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4996
    >/dev/null 2>&1 \
4997
  && lt_shell_append=yes
4998
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4999
echo "${ECHO_T}$lt_shell_append" >&6
5000
 
5001
 
5002
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5003
  lt_unset=unset
5004
else
5005
  lt_unset=false
5006
fi
5007
 
5008
 
5009
 
5010
 
5011
 
5012
# test EBCDIC or ASCII
5013
case `echo X|tr X '\101'` in
5014
 A) # ASCII based system
5015
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5016
  lt_SP2NL='tr \040 \012'
5017
  lt_NL2SP='tr \015\012 \040\040'
5018
  ;;
5019
 *) # EBCDIC based system
5020
  lt_SP2NL='tr \100 \n'
5021
  lt_NL2SP='tr \r\n \100\100'
5022
  ;;
5023
esac
5024
 
5025
 
5026
 
5027
 
5028
 
5029
 
5030
 
5031
 
5032
 
5033
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5034
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5035
if test "${lt_cv_ld_reload_flag+set}" = set; then
5036
  echo $ECHO_N "(cached) $ECHO_C" >&6
5037
else
5038
  lt_cv_ld_reload_flag='-r'
5039
fi
5040
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5041
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5042
reload_flag=$lt_cv_ld_reload_flag
5043
case $reload_flag in
5044
"" | " "*) ;;
5045
*) reload_flag=" $reload_flag" ;;
5046
esac
5047
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048
case $host_os in
5049
  darwin*)
5050
    if test "$GCC" = yes; then
5051
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5052
    else
5053
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054
    fi
5055
    ;;
5056
esac
5057
 
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
if test -n "$ac_tool_prefix"; then
5067
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5068
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5069
echo "$as_me:$LINENO: checking for $ac_word" >&5
5070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
5073
else
5074
  if test -n "$OBJDUMP"; then
5075
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5076
else
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
5082
  for ac_exec_ext in '' $ac_executable_extensions; do
5083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086
    break 2
5087
  fi
5088
done
5089
done
5090
 
5091
fi
5092
fi
5093
OBJDUMP=$ac_cv_prog_OBJDUMP
5094
if test -n "$OBJDUMP"; then
5095
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5096
echo "${ECHO_T}$OBJDUMP" >&6
5097
else
5098
  echo "$as_me:$LINENO: result: no" >&5
5099
echo "${ECHO_T}no" >&6
5100
fi
5101
 
5102
fi
5103
if test -z "$ac_cv_prog_OBJDUMP"; then
5104
  ac_ct_OBJDUMP=$OBJDUMP
5105
  # Extract the first word of "objdump", so it can be a program name with args.
5106
set dummy objdump; ac_word=$2
5107
echo "$as_me:$LINENO: checking for $ac_word" >&5
5108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5110
  echo $ECHO_N "(cached) $ECHO_C" >&6
5111
else
5112
  if test -n "$ac_ct_OBJDUMP"; then
5113
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5114
else
5115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116
for as_dir in $PATH
5117
do
5118
  IFS=$as_save_IFS
5119
  test -z "$as_dir" && as_dir=.
5120
  for ac_exec_ext in '' $ac_executable_extensions; do
5121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124
    break 2
5125
  fi
5126
done
5127
done
5128
 
5129
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5130
fi
5131
fi
5132
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5133
if test -n "$ac_ct_OBJDUMP"; then
5134
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5135
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5136
else
5137
  echo "$as_me:$LINENO: result: no" >&5
5138
echo "${ECHO_T}no" >&6
5139
fi
5140
 
5141
  OBJDUMP=$ac_ct_OBJDUMP
5142
else
5143
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5144
fi
5145
 
5146
test -z "$OBJDUMP" && OBJDUMP=objdump
5147
 
5148
 
5149
 
5150
 
5151
 
5152
 
5153
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5154
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5155
if test "${lt_cv_deplibs_check_method+set}" = set; then
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
5157
else
5158
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5159
lt_cv_file_magic_test_file=
5160
lt_cv_deplibs_check_method='unknown'
5161
# Need to set the preceding variable on all platforms that support
5162
# interlibrary dependencies.
5163
# 'none' -- dependencies not supported.
5164
# `unknown' -- same as none, but documents that we really don't know.
5165
# 'pass_all' -- all dependencies passed with no checks.
5166
# 'test_compile' -- check by making test program.
5167
# 'file_magic [[regex]]' -- check by looking for files in library path
5168
# which responds to the $file_magic_cmd with a given extended regex.
5169
# If you have `file' or equivalent on your system and you're not sure
5170
# whether `pass_all' will *always* work, you probably want this one.
5171
 
5172
case $host_os in
5173
aix[4-9]*)
5174
  lt_cv_deplibs_check_method=pass_all
5175
  ;;
5176
 
5177
beos*)
5178
  lt_cv_deplibs_check_method=pass_all
5179
  ;;
5180
 
5181
bsdi[45]*)
5182
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5183
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5184
  lt_cv_file_magic_test_file=/shlib/libc.so
5185
  ;;
5186
 
5187
cygwin*)
5188
  # func_win32_libid is a shell function defined in ltmain.sh
5189
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190
  lt_cv_file_magic_cmd='func_win32_libid'
5191
  ;;
5192
 
5193
mingw* | pw32*)
5194
  # Base MSYS/MinGW do not provide the 'file' command needed by
5195
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5196
  # unless we find 'file', for example because we are cross-compiling.
5197
  if ( file / ) >/dev/null 2>&1; then
5198
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5199
    lt_cv_file_magic_cmd='func_win32_libid'
5200
  else
5201
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5202
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5203
  fi
5204
  ;;
5205
 
5206
cegcc)
5207
  # use the weaker test based on 'objdump'. See mingw*.
5208
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5210
  ;;
5211
 
5212
darwin* | rhapsody*)
5213
  lt_cv_deplibs_check_method=pass_all
5214
  ;;
5215
 
5216
freebsd* | dragonfly*)
5217
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218
    case $host_cpu in
5219
    i*86 )
5220
      # Not sure whether the presence of OpenBSD here was a mistake.
5221
      # Let's accept both of them until this is cleared up.
5222
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223
      lt_cv_file_magic_cmd=/usr/bin/file
5224
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225
      ;;
5226
    esac
5227
  else
5228
    lt_cv_deplibs_check_method=pass_all
5229
  fi
5230
  ;;
5231
 
5232
gnu*)
5233
  lt_cv_deplibs_check_method=pass_all
5234
  ;;
5235
 
5236
hpux10.20* | hpux11*)
5237
  lt_cv_file_magic_cmd=/usr/bin/file
5238
  case $host_cpu in
5239
  ia64*)
5240
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5241
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242
    ;;
5243
  hppa*64*)
5244
    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]'
5245
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5246
    ;;
5247
  *)
5248
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5249
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5250
    ;;
5251
  esac
5252
  ;;
5253
 
5254
interix[3-9]*)
5255
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5256
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5257
  ;;
5258
 
5259
irix5* | irix6* | nonstopux*)
5260
  case $LD in
5261
  *-32|*"-32 ") libmagic=32-bit;;
5262
  *-n32|*"-n32 ") libmagic=N32;;
5263
  *-64|*"-64 ") libmagic=64-bit;;
5264
  *) libmagic=never-match;;
5265
  esac
5266
  lt_cv_deplibs_check_method=pass_all
5267
  ;;
5268
 
5269
# This must be Linux ELF.
5270
linux* | k*bsd*-gnu)
5271
  lt_cv_deplibs_check_method=pass_all
5272
  ;;
5273
 
5274
netbsd*)
5275
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5277
  else
5278
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5279
  fi
5280
  ;;
5281
 
5282
newos6*)
5283
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5284
  lt_cv_file_magic_cmd=/usr/bin/file
5285
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5286
  ;;
5287
 
5288
*nto* | *qnx*)
5289
  lt_cv_deplibs_check_method=pass_all
5290
  ;;
5291
 
5292
openbsd*)
5293
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5294
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5295
  else
5296
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5297
  fi
5298
  ;;
5299
 
5300
osf3* | osf4* | osf5*)
5301
  lt_cv_deplibs_check_method=pass_all
5302
  ;;
5303
 
5304
rdos*)
5305
  lt_cv_deplibs_check_method=pass_all
5306
  ;;
5307
 
5308
solaris*)
5309
  lt_cv_deplibs_check_method=pass_all
5310
  ;;
5311
 
5312
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313
  lt_cv_deplibs_check_method=pass_all
5314
  ;;
5315
 
5316
sysv4 | sysv4.3*)
5317
  case $host_vendor in
5318
  motorola)
5319
    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]'
5320
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5321
    ;;
5322
  ncr)
5323
    lt_cv_deplibs_check_method=pass_all
5324
    ;;
5325
  sequent)
5326
    lt_cv_file_magic_cmd='/bin/file'
5327
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5328
    ;;
5329
  sni)
5330
    lt_cv_file_magic_cmd='/bin/file'
5331
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5332
    lt_cv_file_magic_test_file=/lib/libc.so
5333
    ;;
5334
  siemens)
5335
    lt_cv_deplibs_check_method=pass_all
5336
    ;;
5337
  pc)
5338
    lt_cv_deplibs_check_method=pass_all
5339
    ;;
5340
  esac
5341
  ;;
5342
 
5343
tpf*)
5344
  lt_cv_deplibs_check_method=pass_all
5345
  ;;
5346
esac
5347
 
5348
fi
5349
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5350
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5351
file_magic_cmd=$lt_cv_file_magic_cmd
5352
deplibs_check_method=$lt_cv_deplibs_check_method
5353
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5354
 
5355
 
5356
 
5357
 
5358
 
5359
 
5360
 
5361
 
5362
 
5363
 
5364
 
5365
 
5366
if test -n "$ac_tool_prefix"; then
5367
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5368
set dummy ${ac_tool_prefix}ar; ac_word=$2
5369
echo "$as_me:$LINENO: checking for $ac_word" >&5
5370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371
if test "${ac_cv_prog_AR+set}" = set; then
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
5373
else
5374
  if test -n "$AR"; then
5375
  ac_cv_prog_AR="$AR" # Let the user override the test.
5376
else
5377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378
for as_dir in $PATH
5379
do
5380
  IFS=$as_save_IFS
5381
  test -z "$as_dir" && as_dir=.
5382
  for ac_exec_ext in '' $ac_executable_extensions; do
5383
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386
    break 2
5387
  fi
5388
done
5389
done
5390
 
5391
fi
5392
fi
5393
AR=$ac_cv_prog_AR
5394
if test -n "$AR"; then
5395
  echo "$as_me:$LINENO: result: $AR" >&5
5396
echo "${ECHO_T}$AR" >&6
5397
else
5398
  echo "$as_me:$LINENO: result: no" >&5
5399
echo "${ECHO_T}no" >&6
5400
fi
5401
 
5402
fi
5403
if test -z "$ac_cv_prog_AR"; then
5404
  ac_ct_AR=$AR
5405
  # Extract the first word of "ar", so it can be a program name with args.
5406
set dummy ar; ac_word=$2
5407
echo "$as_me:$LINENO: checking for $ac_word" >&5
5408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5410
  echo $ECHO_N "(cached) $ECHO_C" >&6
5411
else
5412
  if test -n "$ac_ct_AR"; then
5413
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414
else
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416
for as_dir in $PATH
5417
do
5418
  IFS=$as_save_IFS
5419
  test -z "$as_dir" && as_dir=.
5420
  for ac_exec_ext in '' $ac_executable_extensions; do
5421
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422
    ac_cv_prog_ac_ct_AR="ar"
5423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424
    break 2
5425
  fi
5426
done
5427
done
5428
 
5429
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5430
fi
5431
fi
5432
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433
if test -n "$ac_ct_AR"; then
5434
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5435
echo "${ECHO_T}$ac_ct_AR" >&6
5436
else
5437
  echo "$as_me:$LINENO: result: no" >&5
5438
echo "${ECHO_T}no" >&6
5439
fi
5440
 
5441
  AR=$ac_ct_AR
5442
else
5443
  AR="$ac_cv_prog_AR"
5444
fi
5445
 
5446
test -z "$AR" && AR=ar
5447
test -z "$AR_FLAGS" && AR_FLAGS=cru
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
if test -n "$ac_tool_prefix"; then
5460
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461
set dummy ${ac_tool_prefix}strip; ac_word=$2
5462
echo "$as_me:$LINENO: checking for $ac_word" >&5
5463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464
if test "${ac_cv_prog_STRIP+set}" = set; then
5465
  echo $ECHO_N "(cached) $ECHO_C" >&6
5466
else
5467
  if test -n "$STRIP"; then
5468
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469
else
5470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471
for as_dir in $PATH
5472
do
5473
  IFS=$as_save_IFS
5474
  test -z "$as_dir" && as_dir=.
5475
  for ac_exec_ext in '' $ac_executable_extensions; do
5476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479
    break 2
5480
  fi
5481
done
5482
done
5483
 
5484
fi
5485
fi
5486
STRIP=$ac_cv_prog_STRIP
5487
if test -n "$STRIP"; then
5488
  echo "$as_me:$LINENO: result: $STRIP" >&5
5489
echo "${ECHO_T}$STRIP" >&6
5490
else
5491
  echo "$as_me:$LINENO: result: no" >&5
5492
echo "${ECHO_T}no" >&6
5493
fi
5494
 
5495
fi
5496
if test -z "$ac_cv_prog_STRIP"; then
5497
  ac_ct_STRIP=$STRIP
5498
  # Extract the first word of "strip", so it can be a program name with args.
5499
set dummy strip; ac_word=$2
5500
echo "$as_me:$LINENO: checking for $ac_word" >&5
5501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5503
  echo $ECHO_N "(cached) $ECHO_C" >&6
5504
else
5505
  if test -n "$ac_ct_STRIP"; then
5506
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5507
else
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509
for as_dir in $PATH
5510
do
5511
  IFS=$as_save_IFS
5512
  test -z "$as_dir" && as_dir=.
5513
  for ac_exec_ext in '' $ac_executable_extensions; do
5514
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515
    ac_cv_prog_ac_ct_STRIP="strip"
5516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517
    break 2
5518
  fi
5519
done
5520
done
5521
 
5522
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5523
fi
5524
fi
5525
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5526
if test -n "$ac_ct_STRIP"; then
5527
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5528
echo "${ECHO_T}$ac_ct_STRIP" >&6
5529
else
5530
  echo "$as_me:$LINENO: result: no" >&5
5531
echo "${ECHO_T}no" >&6
5532
fi
5533
 
5534
  STRIP=$ac_ct_STRIP
5535
else
5536
  STRIP="$ac_cv_prog_STRIP"
5537
fi
5538
 
5539
test -z "$STRIP" && STRIP=:
5540
 
5541
 
5542
 
5543
 
5544
 
5545
 
5546
if test -n "$ac_tool_prefix"; then
5547
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5548
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5549
echo "$as_me:$LINENO: checking for $ac_word" >&5
5550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551
if test "${ac_cv_prog_RANLIB+set}" = set; then
5552
  echo $ECHO_N "(cached) $ECHO_C" >&6
5553
else
5554
  if test -n "$RANLIB"; then
5555
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5556
else
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558
for as_dir in $PATH
5559
do
5560
  IFS=$as_save_IFS
5561
  test -z "$as_dir" && as_dir=.
5562
  for ac_exec_ext in '' $ac_executable_extensions; do
5563
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5565
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566
    break 2
5567
  fi
5568
done
5569
done
5570
 
5571
fi
5572
fi
5573
RANLIB=$ac_cv_prog_RANLIB
5574
if test -n "$RANLIB"; then
5575
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5576
echo "${ECHO_T}$RANLIB" >&6
5577
else
5578
  echo "$as_me:$LINENO: result: no" >&5
5579
echo "${ECHO_T}no" >&6
5580
fi
5581
 
5582
fi
5583
if test -z "$ac_cv_prog_RANLIB"; then
5584
  ac_ct_RANLIB=$RANLIB
5585
  # Extract the first word of "ranlib", so it can be a program name with args.
5586
set dummy ranlib; ac_word=$2
5587
echo "$as_me:$LINENO: checking for $ac_word" >&5
5588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5590
  echo $ECHO_N "(cached) $ECHO_C" >&6
5591
else
5592
  if test -n "$ac_ct_RANLIB"; then
5593
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5594
else
5595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596
for as_dir in $PATH
5597
do
5598
  IFS=$as_save_IFS
5599
  test -z "$as_dir" && as_dir=.
5600
  for ac_exec_ext in '' $ac_executable_extensions; do
5601
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5603
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604
    break 2
5605
  fi
5606
done
5607
done
5608
 
5609
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5610
fi
5611
fi
5612
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5613
if test -n "$ac_ct_RANLIB"; then
5614
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5615
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5616
else
5617
  echo "$as_me:$LINENO: result: no" >&5
5618
echo "${ECHO_T}no" >&6
5619
fi
5620
 
5621
  RANLIB=$ac_ct_RANLIB
5622
else
5623
  RANLIB="$ac_cv_prog_RANLIB"
5624
fi
5625
 
5626
test -z "$RANLIB" && RANLIB=:
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
# Determine commands to create old-style static archives.
5634
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635
old_postinstall_cmds='chmod 644 $oldlib'
5636
old_postuninstall_cmds=
5637
 
5638
if test -n "$RANLIB"; then
5639
  case $host_os in
5640
  openbsd*)
5641
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5642
    ;;
5643
  *)
5644
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5645
    ;;
5646
  esac
5647
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5648
fi
5649
 
5650
 
5651
 
5652
 
5653
 
5654
 
5655
 
5656
 
5657
 
5658
 
5659
 
5660
 
5661
 
5662
 
5663
 
5664
 
5665
 
5666
 
5667
 
5668
 
5669
 
5670
 
5671
 
5672
 
5673
 
5674
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
# If no C compiler was specified, use CC.
5684
LTCC=${LTCC-"$CC"}
5685
 
5686
# If no C compiler flags were specified, use CFLAGS.
5687
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5688
 
5689
# Allow CC to be a program name with arguments.
5690
compiler=$CC
5691
 
5692
 
5693
# Check for command to grab the raw symbol name followed by C symbol from nm.
5694
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5695
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5696
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5697
  echo $ECHO_N "(cached) $ECHO_C" >&6
5698
else
5699
 
5700
# These are sane defaults that work on at least a few old systems.
5701
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5702
 
5703
# Character class describing NM global symbol codes.
5704
symcode='[BCDEGRST]'
5705
 
5706
# Regexp to match symbols that can be accessed directly from C.
5707
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5708
 
5709
# Define system-specific variables.
5710
case $host_os in
5711
aix*)
5712
  symcode='[BCDT]'
5713
  ;;
5714
cygwin* | mingw* | pw32* | cegcc*)
5715
  symcode='[ABCDGISTW]'
5716
  ;;
5717
hpux*)
5718
  if test "$host_cpu" = ia64; then
5719
    symcode='[ABCDEGRST]'
5720
  fi
5721
  ;;
5722
irix* | nonstopux*)
5723
  symcode='[BCDEGRST]'
5724
  ;;
5725
osf*)
5726
  symcode='[BCDEGQRST]'
5727
  ;;
5728
solaris*)
5729
  symcode='[BDRT]'
5730
  ;;
5731
sco3.2v5*)
5732
  symcode='[DT]'
5733
  ;;
5734
sysv4.2uw2*)
5735
  symcode='[DT]'
5736
  ;;
5737
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5738
  symcode='[ABDT]'
5739
  ;;
5740
sysv4)
5741
  symcode='[DFNSTU]'
5742
  ;;
5743
esac
5744
 
5745
# If we're using GNU nm, then use its standard symbol codes.
5746
case `$NM -V 2>&1` in
5747
*GNU* | *'with BFD'*)
5748
  symcode='[ABCDGIRSTW]' ;;
5749
esac
5750
 
5751
# Transform an extracted symbol line into a proper C declaration.
5752
# Some systems (esp. on ia64) link data and code symbols differently,
5753
# so use this general approach.
5754
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5755
 
5756
# Transform an extracted symbol line into symbol name and symbol address
5757
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5758
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5759
 
5760
# Handle CRLF in mingw tool chain
5761
opt_cr=
5762
case $build_os in
5763
mingw*)
5764
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5765
  ;;
5766
esac
5767
 
5768
# Try without a prefix underscore, then with it.
5769
for ac_symprfx in "" "_"; do
5770
 
5771
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5773
 
5774
  # Write the raw and C identifiers.
5775
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5776
    # Fake it for dumpbin and say T for any non-static function
5777
    # and D for any global variable.
5778
    # Also find C++ and __fastcall symbols from MSVC++,
5779
    # which start with @ or ?.
5780
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5781
"     {last_section=section; section=\$ 3};"\
5782
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5783
"     \$ 0!~/External *\|/{next};"\
5784
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5785
"     {if(hide[section]) next};"\
5786
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5787
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5788
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5789
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5790
"     ' prfx=^$ac_symprfx"
5791
  else
5792
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5793
  fi
5794
 
5795
  # Check to see that the pipe works correctly.
5796
  pipe_works=no
5797
 
5798
  rm -f conftest*
5799
  cat > conftest.$ac_ext <<_LT_EOF
5800
#ifdef __cplusplus
5801
extern "C" {
5802
#endif
5803
char nm_test_var;
5804
void nm_test_func(void);
5805
void nm_test_func(void){}
5806
#ifdef __cplusplus
5807
}
5808
#endif
5809
int main(){nm_test_var='a';nm_test_func();return(0);}
5810
_LT_EOF
5811
 
5812
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813
  (eval $ac_compile) 2>&5
5814
  ac_status=$?
5815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816
  (exit $ac_status); }; then
5817
    # Now try to grab the symbols.
5818
    nlist=conftest.nm
5819
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5820
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5821
  ac_status=$?
5822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823
  (exit $ac_status); } && test -s "$nlist"; then
5824
      # Try sorting and uniquifying the output.
5825
      if sort "$nlist" | uniq > "$nlist"T; then
5826
        mv -f "$nlist"T "$nlist"
5827
      else
5828
        rm -f "$nlist"T
5829
      fi
5830
 
5831
      # Make sure that we snagged all the symbols we need.
5832
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5833
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5834
          cat <<_LT_EOF > conftest.$ac_ext
5835
#ifdef __cplusplus
5836
extern "C" {
5837
#endif
5838
 
5839
_LT_EOF
5840
          # Now generate the symbol file.
5841
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5842
 
5843
          cat <<_LT_EOF >> conftest.$ac_ext
5844
 
5845
/* The mapping between symbol names and symbols.  */
5846
const struct {
5847
  const char *name;
5848
  void       *address;
5849
}
5850
lt__PROGRAM__LTX_preloaded_symbols[] =
5851
{
5852
  { "@PROGRAM@", (void *) 0 },
5853
_LT_EOF
5854
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855
          cat <<\_LT_EOF >> conftest.$ac_ext
5856
  {0, (void *) 0}
5857
};
5858
 
5859
/* This works around a problem in FreeBSD linker */
5860
#ifdef FREEBSD_WORKAROUND
5861
static const void *lt_preloaded_setup() {
5862
  return lt__PROGRAM__LTX_preloaded_symbols;
5863
}
5864
#endif
5865
 
5866
#ifdef __cplusplus
5867
}
5868
#endif
5869
_LT_EOF
5870
          # Now try linking the two files.
5871
          mv conftest.$ac_objext conftstm.$ac_objext
5872
          lt_save_LIBS="$LIBS"
5873
          lt_save_CFLAGS="$CFLAGS"
5874
          LIBS="conftstm.$ac_objext"
5875
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877
  (eval $ac_link) 2>&5
5878
  ac_status=$?
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5881
            pipe_works=yes
5882
          fi
5883
          LIBS="$lt_save_LIBS"
5884
          CFLAGS="$lt_save_CFLAGS"
5885
        else
5886
          echo "cannot find nm_test_func in $nlist" >&5
5887
        fi
5888
      else
5889
        echo "cannot find nm_test_var in $nlist" >&5
5890
      fi
5891
    else
5892
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5893
    fi
5894
  else
5895
    echo "$progname: failed program was:" >&5
5896
    cat conftest.$ac_ext >&5
5897
  fi
5898
  rm -rf conftest* conftst*
5899
 
5900
  # Do not use the global_symbol_pipe unless it works.
5901
  if test "$pipe_works" = yes; then
5902
    break
5903
  else
5904
    lt_cv_sys_global_symbol_pipe=
5905
  fi
5906
done
5907
 
5908
fi
5909
 
5910
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911
  lt_cv_sys_global_symbol_to_cdecl=
5912
fi
5913
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914
  echo "$as_me:$LINENO: result: failed" >&5
5915
echo "${ECHO_T}failed" >&6
5916
else
5917
  echo "$as_me:$LINENO: result: ok" >&5
5918
echo "${ECHO_T}ok" >&6
5919
fi
5920
 
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
 
5930
 
5931
 
5932
 
5933
 
5934
 
5935
 
5936
 
5937
 
5938
 
5939
 
5940
 
5941
 
5942
 
5943
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5944
if test "${enable_libtool_lock+set}" = set; then
5945
  enableval="$enable_libtool_lock"
5946
 
5947
fi;
5948
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5949
 
5950
# Some flags need to be propagated to the compiler or linker for good
5951
# libtool support.
5952
case $host in
5953
ia64-*-hpux*)
5954
  # Find out which ABI we are using.
5955
  echo 'int i;' > conftest.$ac_ext
5956
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957
  (eval $ac_compile) 2>&5
5958
  ac_status=$?
5959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960
  (exit $ac_status); }; then
5961
    case `/usr/bin/file conftest.$ac_objext` in
5962
      *ELF-32*)
5963
        HPUX_IA64_MODE="32"
5964
        ;;
5965
      *ELF-64*)
5966
        HPUX_IA64_MODE="64"
5967
        ;;
5968
    esac
5969
  fi
5970
  rm -rf conftest*
5971
  ;;
5972
*-*-irix6*)
5973
  # Find out which ABI we are using.
5974
  echo '#line 5974 "configure"' > conftest.$ac_ext
5975
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
  (eval $ac_compile) 2>&5
5977
  ac_status=$?
5978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979
  (exit $ac_status); }; then
5980
    if test "$lt_cv_prog_gnu_ld" = yes; then
5981
      case `/usr/bin/file conftest.$ac_objext` in
5982
        *32-bit*)
5983
          LD="${LD-ld} -melf32bsmip"
5984
          ;;
5985
        *N32*)
5986
          LD="${LD-ld} -melf32bmipn32"
5987
          ;;
5988
        *64-bit*)
5989
          LD="${LD-ld} -melf64bmip"
5990
        ;;
5991
      esac
5992
    else
5993
      case `/usr/bin/file conftest.$ac_objext` in
5994
        *32-bit*)
5995
          LD="${LD-ld} -32"
5996
          ;;
5997
        *N32*)
5998
          LD="${LD-ld} -n32"
5999
          ;;
6000
        *64-bit*)
6001
          LD="${LD-ld} -64"
6002
          ;;
6003
      esac
6004
    fi
6005
  fi
6006
  rm -rf conftest*
6007
  ;;
6008
 
6009
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6010
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6011
  # Find out which ABI we are using.
6012
  echo 'int i;' > conftest.$ac_ext
6013
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014
  (eval $ac_compile) 2>&5
6015
  ac_status=$?
6016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
  (exit $ac_status); }; then
6018
    case `/usr/bin/file conftest.o` in
6019
      *32-bit*)
6020
        case $host in
6021
          x86_64-*kfreebsd*-gnu)
6022
            LD="${LD-ld} -m elf_i386_fbsd"
6023
            ;;
6024
          x86_64-*linux*)
6025
            LD="${LD-ld} -m elf_i386"
6026
            ;;
6027
          ppc64-*linux*|powerpc64-*linux*)
6028
            LD="${LD-ld} -m elf32ppclinux"
6029
            ;;
6030
          s390x-*linux*)
6031
            LD="${LD-ld} -m elf_s390"
6032
            ;;
6033
          sparc64-*linux*)
6034
            LD="${LD-ld} -m elf32_sparc"
6035
            ;;
6036
        esac
6037
        ;;
6038
      *64-bit*)
6039
        case $host in
6040
          x86_64-*kfreebsd*-gnu)
6041
            LD="${LD-ld} -m elf_x86_64_fbsd"
6042
            ;;
6043
          x86_64-*linux*)
6044
            LD="${LD-ld} -m elf_x86_64"
6045
            ;;
6046
          ppc*-*linux*|powerpc*-*linux*)
6047
            LD="${LD-ld} -m elf64ppc"
6048
            ;;
6049
          s390*-*linux*|s390*-*tpf*)
6050
            LD="${LD-ld} -m elf64_s390"
6051
            ;;
6052
          sparc*-*linux*)
6053
            LD="${LD-ld} -m elf64_sparc"
6054
            ;;
6055
        esac
6056
        ;;
6057
    esac
6058
  fi
6059
  rm -rf conftest*
6060
  ;;
6061
 
6062
*-*-sco3.2v5*)
6063
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6064
  SAVE_CFLAGS="$CFLAGS"
6065
  CFLAGS="$CFLAGS -belf"
6066
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6067
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6068
if test "${lt_cv_cc_needs_belf+set}" = set; then
6069
  echo $ECHO_N "(cached) $ECHO_C" >&6
6070
else
6071
  ac_ext=c
6072
ac_cpp='$CPP $CPPFLAGS'
6073
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
 
6077
     cat >conftest.$ac_ext <<_ACEOF
6078
/* confdefs.h.  */
6079
_ACEOF
6080
cat confdefs.h >>conftest.$ac_ext
6081
cat >>conftest.$ac_ext <<_ACEOF
6082
/* end confdefs.h.  */
6083
 
6084
int
6085
main ()
6086
{
6087
 
6088
  ;
6089
  return 0;
6090
}
6091
_ACEOF
6092
rm -f conftest.$ac_objext conftest$ac_exeext
6093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094
  (eval $ac_link) 2>conftest.er1
6095
  ac_status=$?
6096
  grep -v '^ *+' conftest.er1 >conftest.err
6097
  rm -f conftest.er1
6098
  cat conftest.err >&5
6099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100
  (exit $ac_status); } &&
6101
         { ac_try='test -z "$ac_c_werror_flag"
6102
                         || test ! -s conftest.err'
6103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104
  (eval $ac_try) 2>&5
6105
  ac_status=$?
6106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
  (exit $ac_status); }; } &&
6108
         { ac_try='test -s conftest$ac_exeext'
6109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110
  (eval $ac_try) 2>&5
6111
  ac_status=$?
6112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113
  (exit $ac_status); }; }; then
6114
  lt_cv_cc_needs_belf=yes
6115
else
6116
  echo "$as_me: failed program was:" >&5
6117
sed 's/^/| /' conftest.$ac_ext >&5
6118
 
6119
lt_cv_cc_needs_belf=no
6120
fi
6121
rm -f conftest.err conftest.$ac_objext \
6122
      conftest$ac_exeext conftest.$ac_ext
6123
     ac_ext=c
6124
ac_cpp='$CPP $CPPFLAGS'
6125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
 
6129
fi
6130
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6131
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6132
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6133
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6134
    CFLAGS="$SAVE_CFLAGS"
6135
  fi
6136
  ;;
6137
sparc*-*solaris*)
6138
  # Find out which ABI we are using.
6139
  echo 'int i;' > conftest.$ac_ext
6140
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141
  (eval $ac_compile) 2>&5
6142
  ac_status=$?
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
  (exit $ac_status); }; then
6145
    case `/usr/bin/file conftest.o` in
6146
    *64-bit*)
6147
      case $lt_cv_prog_gnu_ld in
6148
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6149
      *)
6150
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6151
          LD="${LD-ld} -64"
6152
        fi
6153
        ;;
6154
      esac
6155
      ;;
6156
    esac
6157
  fi
6158
  rm -rf conftest*
6159
  ;;
6160
esac
6161
 
6162
need_locks="$enable_libtool_lock"
6163
 
6164
 
6165
  case $host_os in
6166
    rhapsody* | darwin*)
6167
    if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6170
echo "$as_me:$LINENO: checking for $ac_word" >&5
6171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6173
  echo $ECHO_N "(cached) $ECHO_C" >&6
6174
else
6175
  if test -n "$DSYMUTIL"; then
6176
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183
  for ac_exec_ext in '' $ac_executable_extensions; do
6184
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187
    break 2
6188
  fi
6189
done
6190
done
6191
 
6192
fi
6193
fi
6194
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6195
if test -n "$DSYMUTIL"; then
6196
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6197
echo "${ECHO_T}$DSYMUTIL" >&6
6198
else
6199
  echo "$as_me:$LINENO: result: no" >&5
6200
echo "${ECHO_T}no" >&6
6201
fi
6202
 
6203
fi
6204
if test -z "$ac_cv_prog_DSYMUTIL"; then
6205
  ac_ct_DSYMUTIL=$DSYMUTIL
6206
  # Extract the first word of "dsymutil", so it can be a program name with args.
6207
set dummy dsymutil; ac_word=$2
6208
echo "$as_me:$LINENO: checking for $ac_word" >&5
6209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6211
  echo $ECHO_N "(cached) $ECHO_C" >&6
6212
else
6213
  if test -n "$ac_ct_DSYMUTIL"; then
6214
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6215
else
6216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217
for as_dir in $PATH
6218
do
6219
  IFS=$as_save_IFS
6220
  test -z "$as_dir" && as_dir=.
6221
  for ac_exec_ext in '' $ac_executable_extensions; do
6222
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6224
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225
    break 2
6226
  fi
6227
done
6228
done
6229
 
6230
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6231
fi
6232
fi
6233
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6234
if test -n "$ac_ct_DSYMUTIL"; then
6235
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6236
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6237
else
6238
  echo "$as_me:$LINENO: result: no" >&5
6239
echo "${ECHO_T}no" >&6
6240
fi
6241
 
6242
  DSYMUTIL=$ac_ct_DSYMUTIL
6243
else
6244
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6245
fi
6246
 
6247
    if test -n "$ac_tool_prefix"; then
6248
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6249
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6250
echo "$as_me:$LINENO: checking for $ac_word" >&5
6251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6253
  echo $ECHO_N "(cached) $ECHO_C" >&6
6254
else
6255
  if test -n "$NMEDIT"; then
6256
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6257
else
6258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259
for as_dir in $PATH
6260
do
6261
  IFS=$as_save_IFS
6262
  test -z "$as_dir" && as_dir=.
6263
  for ac_exec_ext in '' $ac_executable_extensions; do
6264
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267
    break 2
6268
  fi
6269
done
6270
done
6271
 
6272
fi
6273
fi
6274
NMEDIT=$ac_cv_prog_NMEDIT
6275
if test -n "$NMEDIT"; then
6276
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6277
echo "${ECHO_T}$NMEDIT" >&6
6278
else
6279
  echo "$as_me:$LINENO: result: no" >&5
6280
echo "${ECHO_T}no" >&6
6281
fi
6282
 
6283
fi
6284
if test -z "$ac_cv_prog_NMEDIT"; then
6285
  ac_ct_NMEDIT=$NMEDIT
6286
  # Extract the first word of "nmedit", so it can be a program name with args.
6287
set dummy nmedit; ac_word=$2
6288
echo "$as_me:$LINENO: checking for $ac_word" >&5
6289
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6291
  echo $ECHO_N "(cached) $ECHO_C" >&6
6292
else
6293
  if test -n "$ac_ct_NMEDIT"; then
6294
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6295
else
6296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297
for as_dir in $PATH
6298
do
6299
  IFS=$as_save_IFS
6300
  test -z "$as_dir" && as_dir=.
6301
  for ac_exec_ext in '' $ac_executable_extensions; do
6302
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6304
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305
    break 2
6306
  fi
6307
done
6308
done
6309
 
6310
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6311
fi
6312
fi
6313
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6314
if test -n "$ac_ct_NMEDIT"; then
6315
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6316
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6317
else
6318
  echo "$as_me:$LINENO: result: no" >&5
6319
echo "${ECHO_T}no" >&6
6320
fi
6321
 
6322
  NMEDIT=$ac_ct_NMEDIT
6323
else
6324
  NMEDIT="$ac_cv_prog_NMEDIT"
6325
fi
6326
 
6327
    if test -n "$ac_tool_prefix"; then
6328
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6329
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6330
echo "$as_me:$LINENO: checking for $ac_word" >&5
6331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332
if test "${ac_cv_prog_LIPO+set}" = set; then
6333
  echo $ECHO_N "(cached) $ECHO_C" >&6
6334
else
6335
  if test -n "$LIPO"; then
6336
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6337
else
6338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339
for as_dir in $PATH
6340
do
6341
  IFS=$as_save_IFS
6342
  test -z "$as_dir" && as_dir=.
6343
  for ac_exec_ext in '' $ac_executable_extensions; do
6344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347
    break 2
6348
  fi
6349
done
6350
done
6351
 
6352
fi
6353
fi
6354
LIPO=$ac_cv_prog_LIPO
6355
if test -n "$LIPO"; then
6356
  echo "$as_me:$LINENO: result: $LIPO" >&5
6357
echo "${ECHO_T}$LIPO" >&6
6358
else
6359
  echo "$as_me:$LINENO: result: no" >&5
6360
echo "${ECHO_T}no" >&6
6361
fi
6362
 
6363
fi
6364
if test -z "$ac_cv_prog_LIPO"; then
6365
  ac_ct_LIPO=$LIPO
6366
  # Extract the first word of "lipo", so it can be a program name with args.
6367
set dummy lipo; ac_word=$2
6368
echo "$as_me:$LINENO: checking for $ac_word" >&5
6369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6370
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6371
  echo $ECHO_N "(cached) $ECHO_C" >&6
6372
else
6373
  if test -n "$ac_ct_LIPO"; then
6374
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6375
else
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377
for as_dir in $PATH
6378
do
6379
  IFS=$as_save_IFS
6380
  test -z "$as_dir" && as_dir=.
6381
  for ac_exec_ext in '' $ac_executable_extensions; do
6382
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383
    ac_cv_prog_ac_ct_LIPO="lipo"
6384
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385
    break 2
6386
  fi
6387
done
6388
done
6389
 
6390
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6391
fi
6392
fi
6393
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6394
if test -n "$ac_ct_LIPO"; then
6395
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6396
echo "${ECHO_T}$ac_ct_LIPO" >&6
6397
else
6398
  echo "$as_me:$LINENO: result: no" >&5
6399
echo "${ECHO_T}no" >&6
6400
fi
6401
 
6402
  LIPO=$ac_ct_LIPO
6403
else
6404
  LIPO="$ac_cv_prog_LIPO"
6405
fi
6406
 
6407
    if test -n "$ac_tool_prefix"; then
6408
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6409
set dummy ${ac_tool_prefix}otool; ac_word=$2
6410
echo "$as_me:$LINENO: checking for $ac_word" >&5
6411
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412
if test "${ac_cv_prog_OTOOL+set}" = set; then
6413
  echo $ECHO_N "(cached) $ECHO_C" >&6
6414
else
6415
  if test -n "$OTOOL"; then
6416
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6417
else
6418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419
for as_dir in $PATH
6420
do
6421
  IFS=$as_save_IFS
6422
  test -z "$as_dir" && as_dir=.
6423
  for ac_exec_ext in '' $ac_executable_extensions; do
6424
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6426
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427
    break 2
6428
  fi
6429
done
6430
done
6431
 
6432
fi
6433
fi
6434
OTOOL=$ac_cv_prog_OTOOL
6435
if test -n "$OTOOL"; then
6436
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6437
echo "${ECHO_T}$OTOOL" >&6
6438
else
6439
  echo "$as_me:$LINENO: result: no" >&5
6440
echo "${ECHO_T}no" >&6
6441
fi
6442
 
6443
fi
6444
if test -z "$ac_cv_prog_OTOOL"; then
6445
  ac_ct_OTOOL=$OTOOL
6446
  # Extract the first word of "otool", so it can be a program name with args.
6447
set dummy otool; ac_word=$2
6448
echo "$as_me:$LINENO: checking for $ac_word" >&5
6449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6450
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6451
  echo $ECHO_N "(cached) $ECHO_C" >&6
6452
else
6453
  if test -n "$ac_ct_OTOOL"; then
6454
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6455
else
6456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457
for as_dir in $PATH
6458
do
6459
  IFS=$as_save_IFS
6460
  test -z "$as_dir" && as_dir=.
6461
  for ac_exec_ext in '' $ac_executable_extensions; do
6462
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463
    ac_cv_prog_ac_ct_OTOOL="otool"
6464
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
    break 2
6466
  fi
6467
done
6468
done
6469
 
6470
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6471
fi
6472
fi
6473
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6474
if test -n "$ac_ct_OTOOL"; then
6475
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6476
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6477
else
6478
  echo "$as_me:$LINENO: result: no" >&5
6479
echo "${ECHO_T}no" >&6
6480
fi
6481
 
6482
  OTOOL=$ac_ct_OTOOL
6483
else
6484
  OTOOL="$ac_cv_prog_OTOOL"
6485
fi
6486
 
6487
    if test -n "$ac_tool_prefix"; then
6488
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6489
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6490
echo "$as_me:$LINENO: checking for $ac_word" >&5
6491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6492
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
6494
else
6495
  if test -n "$OTOOL64"; then
6496
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6497
else
6498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499
for as_dir in $PATH
6500
do
6501
  IFS=$as_save_IFS
6502
  test -z "$as_dir" && as_dir=.
6503
  for ac_exec_ext in '' $ac_executable_extensions; do
6504
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6506
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507
    break 2
6508
  fi
6509
done
6510
done
6511
 
6512
fi
6513
fi
6514
OTOOL64=$ac_cv_prog_OTOOL64
6515
if test -n "$OTOOL64"; then
6516
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6517
echo "${ECHO_T}$OTOOL64" >&6
6518
else
6519
  echo "$as_me:$LINENO: result: no" >&5
6520
echo "${ECHO_T}no" >&6
6521
fi
6522
 
6523
fi
6524
if test -z "$ac_cv_prog_OTOOL64"; then
6525
  ac_ct_OTOOL64=$OTOOL64
6526
  # Extract the first word of "otool64", so it can be a program name with args.
6527
set dummy otool64; ac_word=$2
6528
echo "$as_me:$LINENO: checking for $ac_word" >&5
6529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6531
  echo $ECHO_N "(cached) $ECHO_C" >&6
6532
else
6533
  if test -n "$ac_ct_OTOOL64"; then
6534
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6535
else
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537
for as_dir in $PATH
6538
do
6539
  IFS=$as_save_IFS
6540
  test -z "$as_dir" && as_dir=.
6541
  for ac_exec_ext in '' $ac_executable_extensions; do
6542
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545
    break 2
6546
  fi
6547
done
6548
done
6549
 
6550
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6551
fi
6552
fi
6553
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6554
if test -n "$ac_ct_OTOOL64"; then
6555
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6556
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6557
else
6558
  echo "$as_me:$LINENO: result: no" >&5
6559
echo "${ECHO_T}no" >&6
6560
fi
6561
 
6562
  OTOOL64=$ac_ct_OTOOL64
6563
else
6564
  OTOOL64="$ac_cv_prog_OTOOL64"
6565
fi
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
 
6592
 
6593
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6594
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6595
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6596
  echo $ECHO_N "(cached) $ECHO_C" >&6
6597
else
6598
  lt_cv_apple_cc_single_mod=no
6599
      if test -z "${LT_MULTI_MODULE}"; then
6600
        # By default we will add the -single_module flag. You can override
6601
        # by either setting the environment variable LT_MULTI_MODULE
6602
        # non-empty at configure time, or by adding -multi_module to the
6603
        # link flags.
6604
        rm -rf libconftest.dylib*
6605
        echo "int foo(void){return 1;}" > conftest.c
6606
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6607
-dynamiclib -Wl,-single_module conftest.c" >&5
6608
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6609
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6610
        _lt_result=$?
6611
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6612
          lt_cv_apple_cc_single_mod=yes
6613
        else
6614
          cat conftest.err >&5
6615
        fi
6616
        rm -rf libconftest.dylib*
6617
        rm -f conftest.*
6618
      fi
6619
fi
6620
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6621
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6622
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6623
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6624
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6625
  echo $ECHO_N "(cached) $ECHO_C" >&6
6626
else
6627
  lt_cv_ld_exported_symbols_list=no
6628
      save_LDFLAGS=$LDFLAGS
6629
      echo "_main" > conftest.sym
6630
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6631
      cat >conftest.$ac_ext <<_ACEOF
6632
/* confdefs.h.  */
6633
_ACEOF
6634
cat confdefs.h >>conftest.$ac_ext
6635
cat >>conftest.$ac_ext <<_ACEOF
6636
/* end confdefs.h.  */
6637
 
6638
int
6639
main ()
6640
{
6641
 
6642
  ;
6643
  return 0;
6644
}
6645
_ACEOF
6646
rm -f conftest.$ac_objext conftest$ac_exeext
6647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648
  (eval $ac_link) 2>conftest.er1
6649
  ac_status=$?
6650
  grep -v '^ *+' conftest.er1 >conftest.err
6651
  rm -f conftest.er1
6652
  cat conftest.err >&5
6653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654
  (exit $ac_status); } &&
6655
         { ac_try='test -z "$ac_c_werror_flag"
6656
                         || test ! -s conftest.err'
6657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658
  (eval $ac_try) 2>&5
6659
  ac_status=$?
6660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661
  (exit $ac_status); }; } &&
6662
         { ac_try='test -s conftest$ac_exeext'
6663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664
  (eval $ac_try) 2>&5
6665
  ac_status=$?
6666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667
  (exit $ac_status); }; }; then
6668
  lt_cv_ld_exported_symbols_list=yes
6669
else
6670
  echo "$as_me: failed program was:" >&5
6671
sed 's/^/| /' conftest.$ac_ext >&5
6672
 
6673
lt_cv_ld_exported_symbols_list=no
6674
fi
6675
rm -f conftest.err conftest.$ac_objext \
6676
      conftest$ac_exeext conftest.$ac_ext
6677
        LDFLAGS="$save_LDFLAGS"
6678
 
6679
fi
6680
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6681
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6682
    case $host_os in
6683
    rhapsody* | darwin1.[012])
6684
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6685
    darwin1.*)
6686
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6687
    darwin*) # darwin 5.x on
6688
      # if running on 10.5 or later, the deployment target defaults
6689
      # to the OS version, if on x86, and 10.4, the deployment
6690
      # target defaults to 10.4. Don't you love it?
6691
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6692
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6693
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6694
        10.[012]*)
6695
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6696
        10.*)
6697
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6698
      esac
6699
    ;;
6700
  esac
6701
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6702
      _lt_dar_single_mod='$single_module'
6703
    fi
6704
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6705
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6706
    else
6707
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6708
    fi
6709
    if test "$DSYMUTIL" != ":"; then
6710
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6711
    else
6712
      _lt_dsymutil=
6713
    fi
6714
    ;;
6715
  esac
6716
 
6717
ac_ext=c
6718
ac_cpp='$CPP $CPPFLAGS'
6719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6723
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6724
# On Suns, sometimes $CPP names a directory.
6725
if test -n "$CPP" && test -d "$CPP"; then
6726
  CPP=
6727
fi
6728
if test -z "$CPP"; then
6729
  if test "${ac_cv_prog_CPP+set}" = set; then
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
6731
else
6732
      # Double quotes because CPP needs to be expanded
6733
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6734
    do
6735
      ac_preproc_ok=false
6736
for ac_c_preproc_warn_flag in '' yes
6737
do
6738
  # Use a header file that comes with gcc, so configuring glibc
6739
  # with a fresh cross-compiler works.
6740
  # Prefer  to  if __STDC__ is defined, since
6741
  #  exists even on freestanding compilers.
6742
  # On the NeXT, cc -E runs the code through the compiler's parser,
6743
  # not just through cpp. "Syntax error" is here to catch this case.
6744
  cat >conftest.$ac_ext <<_ACEOF
6745
/* confdefs.h.  */
6746
_ACEOF
6747
cat confdefs.h >>conftest.$ac_ext
6748
cat >>conftest.$ac_ext <<_ACEOF
6749
/* end confdefs.h.  */
6750
#ifdef __STDC__
6751
# include 
6752
#else
6753
# include 
6754
#endif
6755
                     Syntax error
6756
_ACEOF
6757
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6759
  ac_status=$?
6760
  grep -v '^ *+' conftest.er1 >conftest.err
6761
  rm -f conftest.er1
6762
  cat conftest.err >&5
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
  (exit $ac_status); } >/dev/null; then
6765
  if test -s conftest.err; then
6766
    ac_cpp_err=$ac_c_preproc_warn_flag
6767
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6768
  else
6769
    ac_cpp_err=
6770
  fi
6771
else
6772
  ac_cpp_err=yes
6773
fi
6774
if test -z "$ac_cpp_err"; then
6775
  :
6776
else
6777
  echo "$as_me: failed program was:" >&5
6778
sed 's/^/| /' conftest.$ac_ext >&5
6779
 
6780
  # Broken: fails on valid input.
6781
continue
6782
fi
6783
rm -f conftest.err conftest.$ac_ext
6784
 
6785
  # OK, works on sane cases.  Now check whether non-existent headers
6786
  # can be detected and how.
6787
  cat >conftest.$ac_ext <<_ACEOF
6788
/* confdefs.h.  */
6789
_ACEOF
6790
cat confdefs.h >>conftest.$ac_ext
6791
cat >>conftest.$ac_ext <<_ACEOF
6792
/* end confdefs.h.  */
6793
#include 
6794
_ACEOF
6795
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797
  ac_status=$?
6798
  grep -v '^ *+' conftest.er1 >conftest.err
6799
  rm -f conftest.er1
6800
  cat conftest.err >&5
6801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802
  (exit $ac_status); } >/dev/null; then
6803
  if test -s conftest.err; then
6804
    ac_cpp_err=$ac_c_preproc_warn_flag
6805
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6806
  else
6807
    ac_cpp_err=
6808
  fi
6809
else
6810
  ac_cpp_err=yes
6811
fi
6812
if test -z "$ac_cpp_err"; then
6813
  # Broken: success on invalid input.
6814
continue
6815
else
6816
  echo "$as_me: failed program was:" >&5
6817
sed 's/^/| /' conftest.$ac_ext >&5
6818
 
6819
  # Passes both tests.
6820
ac_preproc_ok=:
6821
break
6822
fi
6823
rm -f conftest.err conftest.$ac_ext
6824
 
6825
done
6826
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6827
rm -f conftest.err conftest.$ac_ext
6828
if $ac_preproc_ok; then
6829
  break
6830
fi
6831
 
6832
    done
6833
    ac_cv_prog_CPP=$CPP
6834
 
6835
fi
6836
  CPP=$ac_cv_prog_CPP
6837
else
6838
  ac_cv_prog_CPP=$CPP
6839
fi
6840
echo "$as_me:$LINENO: result: $CPP" >&5
6841
echo "${ECHO_T}$CPP" >&6
6842
ac_preproc_ok=false
6843
for ac_c_preproc_warn_flag in '' yes
6844
do
6845
  # Use a header file that comes with gcc, so configuring glibc
6846
  # with a fresh cross-compiler works.
6847
  # Prefer  to  if __STDC__ is defined, since
6848
  #  exists even on freestanding compilers.
6849
  # On the NeXT, cc -E runs the code through the compiler's parser,
6850
  # not just through cpp. "Syntax error" is here to catch this case.
6851
  cat >conftest.$ac_ext <<_ACEOF
6852
/* confdefs.h.  */
6853
_ACEOF
6854
cat confdefs.h >>conftest.$ac_ext
6855
cat >>conftest.$ac_ext <<_ACEOF
6856
/* end confdefs.h.  */
6857
#ifdef __STDC__
6858
# include 
6859
#else
6860
# include 
6861
#endif
6862
                     Syntax error
6863
_ACEOF
6864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866
  ac_status=$?
6867
  grep -v '^ *+' conftest.er1 >conftest.err
6868
  rm -f conftest.er1
6869
  cat conftest.err >&5
6870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871
  (exit $ac_status); } >/dev/null; then
6872
  if test -s conftest.err; then
6873
    ac_cpp_err=$ac_c_preproc_warn_flag
6874
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875
  else
6876
    ac_cpp_err=
6877
  fi
6878
else
6879
  ac_cpp_err=yes
6880
fi
6881
if test -z "$ac_cpp_err"; then
6882
  :
6883
else
6884
  echo "$as_me: failed program was:" >&5
6885
sed 's/^/| /' conftest.$ac_ext >&5
6886
 
6887
  # Broken: fails on valid input.
6888
continue
6889
fi
6890
rm -f conftest.err conftest.$ac_ext
6891
 
6892
  # OK, works on sane cases.  Now check whether non-existent headers
6893
  # can be detected and how.
6894
  cat >conftest.$ac_ext <<_ACEOF
6895
/* confdefs.h.  */
6896
_ACEOF
6897
cat confdefs.h >>conftest.$ac_ext
6898
cat >>conftest.$ac_ext <<_ACEOF
6899
/* end confdefs.h.  */
6900
#include 
6901
_ACEOF
6902
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6903
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6904
  ac_status=$?
6905
  grep -v '^ *+' conftest.er1 >conftest.err
6906
  rm -f conftest.er1
6907
  cat conftest.err >&5
6908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909
  (exit $ac_status); } >/dev/null; then
6910
  if test -s conftest.err; then
6911
    ac_cpp_err=$ac_c_preproc_warn_flag
6912
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6913
  else
6914
    ac_cpp_err=
6915
  fi
6916
else
6917
  ac_cpp_err=yes
6918
fi
6919
if test -z "$ac_cpp_err"; then
6920
  # Broken: success on invalid input.
6921
continue
6922
else
6923
  echo "$as_me: failed program was:" >&5
6924
sed 's/^/| /' conftest.$ac_ext >&5
6925
 
6926
  # Passes both tests.
6927
ac_preproc_ok=:
6928
break
6929
fi
6930
rm -f conftest.err conftest.$ac_ext
6931
 
6932
done
6933
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934
rm -f conftest.err conftest.$ac_ext
6935
if $ac_preproc_ok; then
6936
  :
6937
else
6938
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6939
See \`config.log' for more details." >&5
6940
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6941
See \`config.log' for more details." >&2;}
6942
   { (exit 1); exit 1; }; }
6943
fi
6944
 
6945
ac_ext=c
6946
ac_cpp='$CPP $CPPFLAGS'
6947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
 
6951
 
6952
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6953
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6954
if test "${ac_cv_header_stdc+set}" = set; then
6955
  echo $ECHO_N "(cached) $ECHO_C" >&6
6956
else
6957
  cat >conftest.$ac_ext <<_ACEOF
6958
/* confdefs.h.  */
6959
_ACEOF
6960
cat confdefs.h >>conftest.$ac_ext
6961
cat >>conftest.$ac_ext <<_ACEOF
6962
/* end confdefs.h.  */
6963
#include 
6964
#include 
6965
#include 
6966
#include 
6967
 
6968
int
6969
main ()
6970
{
6971
 
6972
  ;
6973
  return 0;
6974
}
6975
_ACEOF
6976
rm -f conftest.$ac_objext
6977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978
  (eval $ac_compile) 2>conftest.er1
6979
  ac_status=$?
6980
  grep -v '^ *+' conftest.er1 >conftest.err
6981
  rm -f conftest.er1
6982
  cat conftest.err >&5
6983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984
  (exit $ac_status); } &&
6985
         { ac_try='test -z "$ac_c_werror_flag"
6986
                         || test ! -s conftest.err'
6987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988
  (eval $ac_try) 2>&5
6989
  ac_status=$?
6990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991
  (exit $ac_status); }; } &&
6992
         { ac_try='test -s conftest.$ac_objext'
6993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994
  (eval $ac_try) 2>&5
6995
  ac_status=$?
6996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997
  (exit $ac_status); }; }; then
6998
  ac_cv_header_stdc=yes
6999
else
7000
  echo "$as_me: failed program was:" >&5
7001
sed 's/^/| /' conftest.$ac_ext >&5
7002
 
7003
ac_cv_header_stdc=no
7004
fi
7005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006
 
7007
if test $ac_cv_header_stdc = yes; then
7008
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009
  cat >conftest.$ac_ext <<_ACEOF
7010
/* confdefs.h.  */
7011
_ACEOF
7012
cat confdefs.h >>conftest.$ac_ext
7013
cat >>conftest.$ac_ext <<_ACEOF
7014
/* end confdefs.h.  */
7015
#include 
7016
 
7017
_ACEOF
7018
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019
  $EGREP "memchr" >/dev/null 2>&1; then
7020
  :
7021
else
7022
  ac_cv_header_stdc=no
7023
fi
7024
rm -f conftest*
7025
 
7026
fi
7027
 
7028
if test $ac_cv_header_stdc = yes; then
7029
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030
  cat >conftest.$ac_ext <<_ACEOF
7031
/* confdefs.h.  */
7032
_ACEOF
7033
cat confdefs.h >>conftest.$ac_ext
7034
cat >>conftest.$ac_ext <<_ACEOF
7035
/* end confdefs.h.  */
7036
#include 
7037
 
7038
_ACEOF
7039
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040
  $EGREP "free" >/dev/null 2>&1; then
7041
  :
7042
else
7043
  ac_cv_header_stdc=no
7044
fi
7045
rm -f conftest*
7046
 
7047
fi
7048
 
7049
if test $ac_cv_header_stdc = yes; then
7050
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7051
  if test "$cross_compiling" = yes; then
7052
  :
7053
else
7054
  cat >conftest.$ac_ext <<_ACEOF
7055
/* confdefs.h.  */
7056
_ACEOF
7057
cat confdefs.h >>conftest.$ac_ext
7058
cat >>conftest.$ac_ext <<_ACEOF
7059
/* end confdefs.h.  */
7060
#include 
7061
#if ((' ' & 0x0FF) == 0x020)
7062
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064
#else
7065
# define ISLOWER(c) \
7066
                   (('a' <= (c) && (c) <= 'i') \
7067
                     || ('j' <= (c) && (c) <= 'r') \
7068
                     || ('s' <= (c) && (c) <= 'z'))
7069
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070
#endif
7071
 
7072
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073
int
7074
main ()
7075
{
7076
  int i;
7077
  for (i = 0; i < 256; i++)
7078
    if (XOR (islower (i), ISLOWER (i))
7079
        || toupper (i) != TOUPPER (i))
7080
      exit(2);
7081
  exit (0);
7082
}
7083
_ACEOF
7084
rm -f conftest$ac_exeext
7085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086
  (eval $ac_link) 2>&5
7087
  ac_status=$?
7088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091
  (eval $ac_try) 2>&5
7092
  ac_status=$?
7093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094
  (exit $ac_status); }; }; then
7095
  :
7096
else
7097
  echo "$as_me: program exited with status $ac_status" >&5
7098
echo "$as_me: failed program was:" >&5
7099
sed 's/^/| /' conftest.$ac_ext >&5
7100
 
7101
( exit $ac_status )
7102
ac_cv_header_stdc=no
7103
fi
7104
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7105
fi
7106
fi
7107
fi
7108
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7109
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7110
if test $ac_cv_header_stdc = yes; then
7111
 
7112
cat >>confdefs.h <<\_ACEOF
7113
#define STDC_HEADERS 1
7114
_ACEOF
7115
 
7116
fi
7117
 
7118
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119
 
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
 
7127
 
7128
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7129
                  inttypes.h stdint.h unistd.h
7130
do
7131
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132
echo "$as_me:$LINENO: checking for $ac_header" >&5
7133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135
  echo $ECHO_N "(cached) $ECHO_C" >&6
7136
else
7137
  cat >conftest.$ac_ext <<_ACEOF
7138
/* confdefs.h.  */
7139
_ACEOF
7140
cat confdefs.h >>conftest.$ac_ext
7141
cat >>conftest.$ac_ext <<_ACEOF
7142
/* end confdefs.h.  */
7143
$ac_includes_default
7144
 
7145
#include <$ac_header>
7146
_ACEOF
7147
rm -f conftest.$ac_objext
7148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149
  (eval $ac_compile) 2>conftest.er1
7150
  ac_status=$?
7151
  grep -v '^ *+' conftest.er1 >conftest.err
7152
  rm -f conftest.er1
7153
  cat conftest.err >&5
7154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155
  (exit $ac_status); } &&
7156
         { ac_try='test -z "$ac_c_werror_flag"
7157
                         || test ! -s conftest.err'
7158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159
  (eval $ac_try) 2>&5
7160
  ac_status=$?
7161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162
  (exit $ac_status); }; } &&
7163
         { ac_try='test -s conftest.$ac_objext'
7164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165
  (eval $ac_try) 2>&5
7166
  ac_status=$?
7167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168
  (exit $ac_status); }; }; then
7169
  eval "$as_ac_Header=yes"
7170
else
7171
  echo "$as_me: failed program was:" >&5
7172
sed 's/^/| /' conftest.$ac_ext >&5
7173
 
7174
eval "$as_ac_Header=no"
7175
fi
7176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177
fi
7178
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181
  cat >>confdefs.h <<_ACEOF
7182
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183
_ACEOF
7184
 
7185
fi
7186
 
7187
done
7188
 
7189
 
7190
 
7191
for ac_header in dlfcn.h
7192
do
7193
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7194
echo "$as_me:$LINENO: checking for $ac_header" >&5
7195
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197
  echo $ECHO_N "(cached) $ECHO_C" >&6
7198
else
7199
  cat >conftest.$ac_ext <<_ACEOF
7200
/* confdefs.h.  */
7201
_ACEOF
7202
cat confdefs.h >>conftest.$ac_ext
7203
cat >>conftest.$ac_ext <<_ACEOF
7204
/* end confdefs.h.  */
7205
$ac_includes_default
7206
 
7207
#include <$ac_header>
7208
_ACEOF
7209
rm -f conftest.$ac_objext
7210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211
  (eval $ac_compile) 2>conftest.er1
7212
  ac_status=$?
7213
  grep -v '^ *+' conftest.er1 >conftest.err
7214
  rm -f conftest.er1
7215
  cat conftest.err >&5
7216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217
  (exit $ac_status); } &&
7218
         { ac_try='test -z "$ac_c_werror_flag"
7219
                         || test ! -s conftest.err'
7220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221
  (eval $ac_try) 2>&5
7222
  ac_status=$?
7223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224
  (exit $ac_status); }; } &&
7225
         { ac_try='test -s conftest.$ac_objext'
7226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227
  (eval $ac_try) 2>&5
7228
  ac_status=$?
7229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230
  (exit $ac_status); }; }; then
7231
  eval "$as_ac_Header=yes"
7232
else
7233
  echo "$as_me: failed program was:" >&5
7234
sed 's/^/| /' conftest.$ac_ext >&5
7235
 
7236
eval "$as_ac_Header=no"
7237
fi
7238
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239
fi
7240
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7241
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7242
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7243
  cat >>confdefs.h <<_ACEOF
7244
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245
_ACEOF
7246
 
7247
fi
7248
 
7249
done
7250
 
7251
 
7252
 
7253
# Set options
7254
 
7255
 
7256
 
7257
        enable_dlopen=no
7258
 
7259
 
7260
 
7261
            # Check whether --enable-shared or --disable-shared was given.
7262
if test "${enable_shared+set}" = set; then
7263
  enableval="$enable_shared"
7264
  p=${PACKAGE-default}
7265
    case $enableval in
7266
    yes) enable_shared=yes ;;
7267
    no) enable_shared=no ;;
7268
    *)
7269
      enable_shared=no
7270
      # Look at the argument we got.  We use all the common list separators.
7271
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7272
      for pkg in $enableval; do
7273
        IFS="$lt_save_ifs"
7274
        if test "X$pkg" = "X$p"; then
7275
          enable_shared=yes
7276
        fi
7277
      done
7278
      IFS="$lt_save_ifs"
7279
      ;;
7280
    esac
7281
else
7282
  enable_shared=yes
7283
fi;
7284
 
7285
 
7286
 
7287
 
7288
 
7289
 
7290
 
7291
 
7292
  # Check whether --enable-static or --disable-static was given.
7293
if test "${enable_static+set}" = set; then
7294
  enableval="$enable_static"
7295
  p=${PACKAGE-default}
7296
    case $enableval in
7297
    yes) enable_static=yes ;;
7298
    no) enable_static=no ;;
7299
    *)
7300
     enable_static=no
7301
      # Look at the argument we got.  We use all the common list separators.
7302
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7303
      for pkg in $enableval; do
7304
        IFS="$lt_save_ifs"
7305
        if test "X$pkg" = "X$p"; then
7306
          enable_static=yes
7307
        fi
7308
      done
7309
      IFS="$lt_save_ifs"
7310
      ;;
7311
    esac
7312
else
7313
  enable_static=yes
7314
fi;
7315
 
7316
 
7317
 
7318
 
7319
 
7320
 
7321
 
7322
 
7323
 
7324
# Check whether --with-pic or --without-pic was given.
7325
if test "${with_pic+set}" = set; then
7326
  withval="$with_pic"
7327
  pic_mode="$withval"
7328
else
7329
  pic_mode=default
7330
fi;
7331
 
7332
test -z "$pic_mode" && pic_mode=default
7333
 
7334
 
7335
 
7336
 
7337
 
7338
 
7339
 
7340
  # Check whether --enable-fast-install or --disable-fast-install was given.
7341
if test "${enable_fast_install+set}" = set; then
7342
  enableval="$enable_fast_install"
7343
  p=${PACKAGE-default}
7344
    case $enableval in
7345
    yes) enable_fast_install=yes ;;
7346
    no) enable_fast_install=no ;;
7347
    *)
7348
      enable_fast_install=no
7349
      # Look at the argument we got.  We use all the common list separators.
7350
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7351
      for pkg in $enableval; do
7352
        IFS="$lt_save_ifs"
7353
        if test "X$pkg" = "X$p"; then
7354
          enable_fast_install=yes
7355
        fi
7356
      done
7357
      IFS="$lt_save_ifs"
7358
      ;;
7359
    esac
7360
else
7361
  enable_fast_install=yes
7362
fi;
7363
 
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
# This can be used to rebuild libtool when needed
7374
LIBTOOL_DEPS="$ltmain"
7375
 
7376
# Always use our own libtool.
7377
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7378
 
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
 
7389
 
7390
 
7391
 
7392
 
7393
 
7394
 
7395
 
7396
 
7397
 
7398
 
7399
 
7400
 
7401
 
7402
 
7403
test -z "$LN_S" && LN_S="ln -s"
7404
 
7405
 
7406
 
7407
 
7408
 
7409
 
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
if test -n "${ZSH_VERSION+set}" ; then
7419
   setopt NO_GLOB_SUBST
7420
fi
7421
 
7422
echo "$as_me:$LINENO: checking for objdir" >&5
7423
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424
if test "${lt_cv_objdir+set}" = set; then
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
7426
else
7427
  rm -f .libs 2>/dev/null
7428
mkdir .libs 2>/dev/null
7429
if test -d .libs; then
7430
  lt_cv_objdir=.libs
7431
else
7432
  # MS-DOS does not allow filenames that begin with a dot.
7433
  lt_cv_objdir=_libs
7434
fi
7435
rmdir .libs 2>/dev/null
7436
fi
7437
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7438
echo "${ECHO_T}$lt_cv_objdir" >&6
7439
objdir=$lt_cv_objdir
7440
 
7441
 
7442
 
7443
 
7444
 
7445
cat >>confdefs.h <<_ACEOF
7446
#define LT_OBJDIR "$lt_cv_objdir/"
7447
_ACEOF
7448
 
7449
 
7450
 
7451
 
7452
 
7453
 
7454
 
7455
 
7456
 
7457
 
7458
 
7459
 
7460
 
7461
 
7462
 
7463
 
7464
 
7465
case $host_os in
7466
aix3*)
7467
  # AIX sometimes has problems with the GCC collect2 program.  For some
7468
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7469
  # vanish in a puff of smoke.
7470
  if test "X${COLLECT_NAMES+set}" != Xset; then
7471
    COLLECT_NAMES=
7472
    export COLLECT_NAMES
7473
  fi
7474
  ;;
7475
esac
7476
 
7477
# Sed substitution that helps us do robust quoting.  It backslashifies
7478
# metacharacters that are still active within double-quoted strings.
7479
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7480
 
7481
# Same as above, but do not quote variable references.
7482
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7483
 
7484
# Sed substitution to delay expansion of an escaped shell variable in a
7485
# double_quote_subst'ed string.
7486
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7487
 
7488
# Sed substitution to delay expansion of an escaped single quote.
7489
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7490
 
7491
# Sed substitution to avoid accidental globbing in evaled expressions
7492
no_glob_subst='s/\*/\\\*/g'
7493
 
7494
# Global variables:
7495
ofile=libtool
7496
can_build_shared=yes
7497
 
7498
# All known linkers require a `.a' archive for static linking (except MSVC,
7499
# which needs '.lib').
7500
libext=a
7501
 
7502
with_gnu_ld="$lt_cv_prog_gnu_ld"
7503
 
7504
old_CC="$CC"
7505
old_CFLAGS="$CFLAGS"
7506
 
7507
# Set sane defaults for various variables
7508
test -z "$CC" && CC=cc
7509
test -z "$LTCC" && LTCC=$CC
7510
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7511
test -z "$LD" && LD=ld
7512
test -z "$ac_objext" && ac_objext=o
7513
 
7514
for cc_temp in $compiler""; do
7515
  case $cc_temp in
7516
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518
    \-*) ;;
7519
    *) break;;
7520
  esac
7521
done
7522
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7523
 
7524
 
7525
# Only perform the check for file, if the check method requires it
7526
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7527
case $deplibs_check_method in
7528
file_magic*)
7529
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7530
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7531
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7532
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7533
  echo $ECHO_N "(cached) $ECHO_C" >&6
7534
else
7535
  case $MAGIC_CMD in
7536
[\\/*] |  ?:[\\/]*)
7537
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7538
  ;;
7539
*)
7540
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7541
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7542
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7543
  for ac_dir in $ac_dummy; do
7544
    IFS="$lt_save_ifs"
7545
    test -z "$ac_dir" && ac_dir=.
7546
    if test -f $ac_dir/${ac_tool_prefix}file; then
7547
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7548
      if test -n "$file_magic_test_file"; then
7549
        case $deplibs_check_method in
7550
        "file_magic "*)
7551
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7552
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7554
            $EGREP "$file_magic_regex" > /dev/null; then
7555
            :
7556
          else
7557
            cat <<_LT_EOF 1>&2
7558
 
7559
*** Warning: the command libtool uses to detect shared libraries,
7560
*** $file_magic_cmd, produces output that libtool cannot recognize.
7561
*** The result is that libtool may fail to recognize shared libraries
7562
*** as such.  This will affect the creation of libtool libraries that
7563
*** depend on shared libraries, but programs linked with such libtool
7564
*** libraries will work regardless of this problem.  Nevertheless, you
7565
*** may want to report the problem to your system manager and/or to
7566
*** bug-libtool@gnu.org
7567
 
7568
_LT_EOF
7569
          fi ;;
7570
        esac
7571
      fi
7572
      break
7573
    fi
7574
  done
7575
  IFS="$lt_save_ifs"
7576
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7577
  ;;
7578
esac
7579
fi
7580
 
7581
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7582
if test -n "$MAGIC_CMD"; then
7583
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7584
echo "${ECHO_T}$MAGIC_CMD" >&6
7585
else
7586
  echo "$as_me:$LINENO: result: no" >&5
7587
echo "${ECHO_T}no" >&6
7588
fi
7589
 
7590
 
7591
 
7592
 
7593
 
7594
if test -z "$lt_cv_path_MAGIC_CMD"; then
7595
  if test -n "$ac_tool_prefix"; then
7596
    echo "$as_me:$LINENO: checking for file" >&5
7597
echo $ECHO_N "checking for file... $ECHO_C" >&6
7598
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7599
  echo $ECHO_N "(cached) $ECHO_C" >&6
7600
else
7601
  case $MAGIC_CMD in
7602
[\\/*] |  ?:[\\/]*)
7603
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604
  ;;
7605
*)
7606
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7607
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7608
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7609
  for ac_dir in $ac_dummy; do
7610
    IFS="$lt_save_ifs"
7611
    test -z "$ac_dir" && ac_dir=.
7612
    if test -f $ac_dir/file; then
7613
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7614
      if test -n "$file_magic_test_file"; then
7615
        case $deplibs_check_method in
7616
        "file_magic "*)
7617
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7618
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7620
            $EGREP "$file_magic_regex" > /dev/null; then
7621
            :
7622
          else
7623
            cat <<_LT_EOF 1>&2
7624
 
7625
*** Warning: the command libtool uses to detect shared libraries,
7626
*** $file_magic_cmd, produces output that libtool cannot recognize.
7627
*** The result is that libtool may fail to recognize shared libraries
7628
*** as such.  This will affect the creation of libtool libraries that
7629
*** depend on shared libraries, but programs linked with such libtool
7630
*** libraries will work regardless of this problem.  Nevertheless, you
7631
*** may want to report the problem to your system manager and/or to
7632
*** bug-libtool@gnu.org
7633
 
7634
_LT_EOF
7635
          fi ;;
7636
        esac
7637
      fi
7638
      break
7639
    fi
7640
  done
7641
  IFS="$lt_save_ifs"
7642
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7643
  ;;
7644
esac
7645
fi
7646
 
7647
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648
if test -n "$MAGIC_CMD"; then
7649
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7650
echo "${ECHO_T}$MAGIC_CMD" >&6
7651
else
7652
  echo "$as_me:$LINENO: result: no" >&5
7653
echo "${ECHO_T}no" >&6
7654
fi
7655
 
7656
 
7657
  else
7658
    MAGIC_CMD=:
7659
  fi
7660
fi
7661
 
7662
  fi
7663
  ;;
7664
esac
7665
 
7666
# Use C for the default configuration in the libtool script
7667
 
7668
lt_save_CC="$CC"
7669
ac_ext=c
7670
ac_cpp='$CPP $CPPFLAGS'
7671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674
 
7675
 
7676
# Source file extension for C test sources.
7677
ac_ext=c
7678
 
7679
# Object file extension for compiled C test sources.
7680
objext=o
7681
objext=$objext
7682
 
7683
# Code to be used in simple compile tests
7684
lt_simple_compile_test_code="int some_variable = 0;"
7685
 
7686
# Code to be used in simple link tests
7687
lt_simple_link_test_code='int main(){return(0);}'
7688
 
7689
 
7690
 
7691
 
7692
 
7693
 
7694
 
7695
# If no C compiler was specified, use CC.
7696
LTCC=${LTCC-"$CC"}
7697
 
7698
# If no C compiler flags were specified, use CFLAGS.
7699
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7700
 
7701
# Allow CC to be a program name with arguments.
7702
compiler=$CC
7703
 
7704
# Save the default compiler, since it gets overwritten when the other
7705
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7706
compiler_DEFAULT=$CC
7707
 
7708
# save warnings/boilerplate of simple test code
7709
ac_outfile=conftest.$ac_objext
7710
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7711
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7712
_lt_compiler_boilerplate=`cat conftest.err`
7713
$RM conftest*
7714
 
7715
ac_outfile=conftest.$ac_objext
7716
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7717
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7718
_lt_linker_boilerplate=`cat conftest.err`
7719
$RM -r conftest*
7720
 
7721
 
7722
## CAVEAT EMPTOR:
7723
## There is no encapsulation within the following macros, do not change
7724
## the running order or otherwise move them around unless you know exactly
7725
## what you are doing...
7726
if test -n "$compiler"; then
7727
 
7728
lt_prog_compiler_no_builtin_flag=
7729
 
7730
if test "$GCC" = yes; then
7731
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7732
 
7733
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7734
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7735
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7736
  echo $ECHO_N "(cached) $ECHO_C" >&6
7737
else
7738
  lt_cv_prog_compiler_rtti_exceptions=no
7739
   ac_outfile=conftest.$ac_objext
7740
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7741
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7742
   # Insert the option either (1) after the last *FLAGS variable, or
7743
   # (2) before a word containing "conftest.", or (3) at the end.
7744
   # Note that $ac_compile itself does not contain backslashes and begins
7745
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7746
   # The option is referenced via a variable to avoid confusing sed.
7747
   lt_compile=`echo "$ac_compile" | $SED \
7748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7750
   -e 's:$: $lt_compiler_flag:'`
7751
   (eval echo "\"\$as_me:7751: $lt_compile\"" >&5)
7752
   (eval "$lt_compile" 2>conftest.err)
7753
   ac_status=$?
7754
   cat conftest.err >&5
7755
   echo "$as_me:7755: \$? = $ac_status" >&5
7756
   if (exit $ac_status) && test -s "$ac_outfile"; then
7757
     # The compiler can only warn and ignore the option if not recognized
7758
     # So say no if there are warnings other than the usual output.
7759
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7760
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7761
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7762
       lt_cv_prog_compiler_rtti_exceptions=yes
7763
     fi
7764
   fi
7765
   $RM conftest*
7766
 
7767
fi
7768
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7769
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7770
 
7771
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7772
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7773
else
7774
    :
7775
fi
7776
 
7777
fi
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
  lt_prog_compiler_wl=
7785
lt_prog_compiler_pic=
7786
lt_prog_compiler_static=
7787
 
7788
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7789
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7790
 
7791
  if test "$GCC" = yes; then
7792
    lt_prog_compiler_wl='-Wl,'
7793
    lt_prog_compiler_static='-static'
7794
 
7795
    case $host_os in
7796
      aix*)
7797
      # All AIX code is PIC.
7798
      if test "$host_cpu" = ia64; then
7799
        # AIX 5 now supports IA64 processor
7800
        lt_prog_compiler_static='-Bstatic'
7801
      fi
7802
      ;;
7803
 
7804
    amigaos*)
7805
      case $host_cpu in
7806
      powerpc)
7807
            # see comment about AmigaOS4 .so support
7808
            lt_prog_compiler_pic='-fPIC'
7809
        ;;
7810
      m68k)
7811
            # FIXME: we need at least 68020 code to build shared libraries, but
7812
            # adding the `-m68020' flag to GCC prevents building anything better,
7813
            # like `-m68040'.
7814
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7815
        ;;
7816
      esac
7817
      ;;
7818
 
7819
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7820
      # PIC is the default for these OSes.
7821
      ;;
7822
 
7823
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7824
      # This hack is so that the source file can tell whether it is being
7825
      # built for inclusion in a dll (and should export symbols for example).
7826
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7827
      # (--disable-auto-import) libraries
7828
      lt_prog_compiler_pic='-DDLL_EXPORT'
7829
      ;;
7830
 
7831
    darwin* | rhapsody*)
7832
      # PIC is the default on this platform
7833
      # Common symbols not allowed in MH_DYLIB files
7834
      lt_prog_compiler_pic='-fno-common'
7835
      ;;
7836
 
7837
    hpux*)
7838
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7839
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7840
      # sets the default TLS model and affects inlining.
7841
      case $host_cpu in
7842
      hppa*64*)
7843
        # +Z the default
7844
        ;;
7845
      *)
7846
        lt_prog_compiler_pic='-fPIC'
7847
        ;;
7848
      esac
7849
      ;;
7850
 
7851
    interix[3-9]*)
7852
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7853
      # Instead, we relocate shared libraries at runtime.
7854
      ;;
7855
 
7856
    msdosdjgpp*)
7857
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7858
      # on systems that don't support them.
7859
      lt_prog_compiler_can_build_shared=no
7860
      enable_shared=no
7861
      ;;
7862
 
7863
    *nto* | *qnx*)
7864
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7865
      # it will coredump.
7866
      lt_prog_compiler_pic='-fPIC -shared'
7867
      ;;
7868
 
7869
    sysv4*MP*)
7870
      if test -d /usr/nec; then
7871
        lt_prog_compiler_pic=-Kconform_pic
7872
      fi
7873
      ;;
7874
 
7875
    *)
7876
      lt_prog_compiler_pic='-fPIC'
7877
      ;;
7878
    esac
7879
  else
7880
    # PORTME Check for flag to pass linker flags through the system compiler.
7881
    case $host_os in
7882
    aix*)
7883
      lt_prog_compiler_wl='-Wl,'
7884
      if test "$host_cpu" = ia64; then
7885
        # AIX 5 now supports IA64 processor
7886
        lt_prog_compiler_static='-Bstatic'
7887
      else
7888
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7889
      fi
7890
      ;;
7891
 
7892
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7893
      # This hack is so that the source file can tell whether it is being
7894
      # built for inclusion in a dll (and should export symbols for example).
7895
      lt_prog_compiler_pic='-DDLL_EXPORT'
7896
      ;;
7897
 
7898
    hpux9* | hpux10* | hpux11*)
7899
      lt_prog_compiler_wl='-Wl,'
7900
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7901
      # not for PA HP-UX.
7902
      case $host_cpu in
7903
      hppa*64*|ia64*)
7904
        # +Z the default
7905
        ;;
7906
      *)
7907
        lt_prog_compiler_pic='+Z'
7908
        ;;
7909
      esac
7910
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7911
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7912
      ;;
7913
 
7914
    irix5* | irix6* | nonstopux*)
7915
      lt_prog_compiler_wl='-Wl,'
7916
      # PIC (with -KPIC) is the default.
7917
      lt_prog_compiler_static='-non_shared'
7918
      ;;
7919
 
7920
    linux* | k*bsd*-gnu)
7921
      case $cc_basename in
7922
      # old Intel for x86_64 which still supported -KPIC.
7923
      ecc*)
7924
        lt_prog_compiler_wl='-Wl,'
7925
        lt_prog_compiler_pic='-KPIC'
7926
        lt_prog_compiler_static='-static'
7927
        ;;
7928
      # icc used to be incompatible with GCC.
7929
      # ICC 10 doesn't accept -KPIC any more.
7930
      icc* | ifort*)
7931
        lt_prog_compiler_wl='-Wl,'
7932
        lt_prog_compiler_pic='-fPIC'
7933
        lt_prog_compiler_static='-static'
7934
        ;;
7935
      # Lahey Fortran 8.1.
7936
      lf95*)
7937
        lt_prog_compiler_wl='-Wl,'
7938
        lt_prog_compiler_pic='--shared'
7939
        lt_prog_compiler_static='--static'
7940
        ;;
7941
      pgcc* | pgf77* | pgf90* | pgf95*)
7942
        # Portland Group compilers (*not* the Pentium gcc compiler,
7943
        # which looks to be a dead project)
7944
        lt_prog_compiler_wl='-Wl,'
7945
        lt_prog_compiler_pic='-fpic'
7946
        lt_prog_compiler_static='-Bstatic'
7947
        ;;
7948
      ccc*)
7949
        lt_prog_compiler_wl='-Wl,'
7950
        # All Alpha code is PIC.
7951
        lt_prog_compiler_static='-non_shared'
7952
        ;;
7953
      xl*)
7954
        # IBM XL C 8.0/Fortran 10.1 on PPC
7955
        lt_prog_compiler_wl='-Wl,'
7956
        lt_prog_compiler_pic='-qpic'
7957
        lt_prog_compiler_static='-qstaticlink'
7958
        ;;
7959
      *)
7960
        case `$CC -V 2>&1 | sed 5q` in
7961
        *Sun\ C*)
7962
          # Sun C 5.9
7963
          lt_prog_compiler_pic='-KPIC'
7964
          lt_prog_compiler_static='-Bstatic'
7965
          lt_prog_compiler_wl='-Wl,'
7966
          ;;
7967
        *Sun\ F*)
7968
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7969
          lt_prog_compiler_pic='-KPIC'
7970
          lt_prog_compiler_static='-Bstatic'
7971
          lt_prog_compiler_wl=''
7972
          ;;
7973
        esac
7974
        ;;
7975
      esac
7976
      ;;
7977
 
7978
    newsos6)
7979
      lt_prog_compiler_pic='-KPIC'
7980
      lt_prog_compiler_static='-Bstatic'
7981
      ;;
7982
 
7983
    *nto* | *qnx*)
7984
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7985
      # it will coredump.
7986
      lt_prog_compiler_pic='-fPIC -shared'
7987
      ;;
7988
 
7989
    osf3* | osf4* | osf5*)
7990
      lt_prog_compiler_wl='-Wl,'
7991
      # All OSF/1 code is PIC.
7992
      lt_prog_compiler_static='-non_shared'
7993
      ;;
7994
 
7995
    rdos*)
7996
      lt_prog_compiler_static='-non_shared'
7997
      ;;
7998
 
7999
    solaris*)
8000
      lt_prog_compiler_pic='-KPIC'
8001
      lt_prog_compiler_static='-Bstatic'
8002
      case $cc_basename in
8003
      f77* | f90* | f95*)
8004
        lt_prog_compiler_wl='-Qoption ld ';;
8005
      *)
8006
        lt_prog_compiler_wl='-Wl,';;
8007
      esac
8008
      ;;
8009
 
8010
    sunos4*)
8011
      lt_prog_compiler_wl='-Qoption ld '
8012
      lt_prog_compiler_pic='-PIC'
8013
      lt_prog_compiler_static='-Bstatic'
8014
      ;;
8015
 
8016
    sysv4 | sysv4.2uw2* | sysv4.3*)
8017
      lt_prog_compiler_wl='-Wl,'
8018
      lt_prog_compiler_pic='-KPIC'
8019
      lt_prog_compiler_static='-Bstatic'
8020
      ;;
8021
 
8022
    sysv4*MP*)
8023
      if test -d /usr/nec ;then
8024
        lt_prog_compiler_pic='-Kconform_pic'
8025
        lt_prog_compiler_static='-Bstatic'
8026
      fi
8027
      ;;
8028
 
8029
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8030
      lt_prog_compiler_wl='-Wl,'
8031
      lt_prog_compiler_pic='-KPIC'
8032
      lt_prog_compiler_static='-Bstatic'
8033
      ;;
8034
 
8035
    unicos*)
8036
      lt_prog_compiler_wl='-Wl,'
8037
      lt_prog_compiler_can_build_shared=no
8038
      ;;
8039
 
8040
    uts4*)
8041
      lt_prog_compiler_pic='-pic'
8042
      lt_prog_compiler_static='-Bstatic'
8043
      ;;
8044
 
8045
    *)
8046
      lt_prog_compiler_can_build_shared=no
8047
      ;;
8048
    esac
8049
  fi
8050
 
8051
case $host_os in
8052
  # For platforms which do not support PIC, -DPIC is meaningless:
8053
  *djgpp*)
8054
    lt_prog_compiler_pic=
8055
    ;;
8056
  *)
8057
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8058
    ;;
8059
esac
8060
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8061
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8062
 
8063
 
8064
 
8065
 
8066
 
8067
 
8068
#
8069
# Check to make sure the PIC flag actually works.
8070
#
8071
if test -n "$lt_prog_compiler_pic"; then
8072
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8073
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8074
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8075
  echo $ECHO_N "(cached) $ECHO_C" >&6
8076
else
8077
  lt_cv_prog_compiler_pic_works=no
8078
   ac_outfile=conftest.$ac_objext
8079
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8081
   # Insert the option either (1) after the last *FLAGS variable, or
8082
   # (2) before a word containing "conftest.", or (3) at the end.
8083
   # Note that $ac_compile itself does not contain backslashes and begins
8084
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8085
   # The option is referenced via a variable to avoid confusing sed.
8086
   lt_compile=`echo "$ac_compile" | $SED \
8087
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089
   -e 's:$: $lt_compiler_flag:'`
8090
   (eval echo "\"\$as_me:8090: $lt_compile\"" >&5)
8091
   (eval "$lt_compile" 2>conftest.err)
8092
   ac_status=$?
8093
   cat conftest.err >&5
8094
   echo "$as_me:8094: \$? = $ac_status" >&5
8095
   if (exit $ac_status) && test -s "$ac_outfile"; then
8096
     # The compiler can only warn and ignore the option if not recognized
8097
     # So say no if there are warnings other than the usual output.
8098
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8099
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8100
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8101
       lt_cv_prog_compiler_pic_works=yes
8102
     fi
8103
   fi
8104
   $RM conftest*
8105
 
8106
fi
8107
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8108
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8109
 
8110
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8111
    case $lt_prog_compiler_pic in
8112
     "" | " "*) ;;
8113
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8114
     esac
8115
else
8116
    lt_prog_compiler_pic=
8117
     lt_prog_compiler_can_build_shared=no
8118
fi
8119
 
8120
fi
8121
 
8122
 
8123
 
8124
 
8125
 
8126
 
8127
#
8128
# Check to make sure the static flag actually works.
8129
#
8130
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8131
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8132
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8133
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8134
  echo $ECHO_N "(cached) $ECHO_C" >&6
8135
else
8136
  lt_cv_prog_compiler_static_works=no
8137
   save_LDFLAGS="$LDFLAGS"
8138
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8139
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8140
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8141
     # The linker can only warn and ignore the option if not recognized
8142
     # So say no if there are warnings
8143
     if test -s conftest.err; then
8144
       # Append any errors to the config.log.
8145
       cat conftest.err 1>&5
8146
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8147
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148
       if diff conftest.exp conftest.er2 >/dev/null; then
8149
         lt_cv_prog_compiler_static_works=yes
8150
       fi
8151
     else
8152
       lt_cv_prog_compiler_static_works=yes
8153
     fi
8154
   fi
8155
   $RM -r conftest*
8156
   LDFLAGS="$save_LDFLAGS"
8157
 
8158
fi
8159
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8160
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8161
 
8162
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8163
    :
8164
else
8165
    lt_prog_compiler_static=
8166
fi
8167
 
8168
 
8169
 
8170
 
8171
 
8172
 
8173
 
8174
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8175
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8176
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8177
  echo $ECHO_N "(cached) $ECHO_C" >&6
8178
else
8179
  lt_cv_prog_compiler_c_o=no
8180
   $RM -r conftest 2>/dev/null
8181
   mkdir conftest
8182
   cd conftest
8183
   mkdir out
8184
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185
 
8186
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8187
   # Insert the option either (1) after the last *FLAGS variable, or
8188
   # (2) before a word containing "conftest.", or (3) at the end.
8189
   # Note that $ac_compile itself does not contain backslashes and begins
8190
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8191
   lt_compile=`echo "$ac_compile" | $SED \
8192
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194
   -e 's:$: $lt_compiler_flag:'`
8195
   (eval echo "\"\$as_me:8195: $lt_compile\"" >&5)
8196
   (eval "$lt_compile" 2>out/conftest.err)
8197
   ac_status=$?
8198
   cat out/conftest.err >&5
8199
   echo "$as_me:8199: \$? = $ac_status" >&5
8200
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8201
   then
8202
     # The compiler can only warn and ignore the option if not recognized
8203
     # So say no if there are warnings
8204
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8205
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8206
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8207
       lt_cv_prog_compiler_c_o=yes
8208
     fi
8209
   fi
8210
   chmod u+w . 2>&5
8211
   $RM conftest*
8212
   # SGI C++ compiler will create directory out/ii_files/ for
8213
   # template instantiation
8214
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8215
   $RM out/* && rmdir out
8216
   cd ..
8217
   $RM -r conftest
8218
   $RM conftest*
8219
 
8220
fi
8221
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8222
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8223
 
8224
 
8225
 
8226
 
8227
 
8228
 
8229
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8230
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8231
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8232
  echo $ECHO_N "(cached) $ECHO_C" >&6
8233
else
8234
  lt_cv_prog_compiler_c_o=no
8235
   $RM -r conftest 2>/dev/null
8236
   mkdir conftest
8237
   cd conftest
8238
   mkdir out
8239
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
 
8241
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8242
   # Insert the option either (1) after the last *FLAGS variable, or
8243
   # (2) before a word containing "conftest.", or (3) at the end.
8244
   # Note that $ac_compile itself does not contain backslashes and begins
8245
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8246
   lt_compile=`echo "$ac_compile" | $SED \
8247
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249
   -e 's:$: $lt_compiler_flag:'`
8250
   (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
8251
   (eval "$lt_compile" 2>out/conftest.err)
8252
   ac_status=$?
8253
   cat out/conftest.err >&5
8254
   echo "$as_me:8254: \$? = $ac_status" >&5
8255
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256
   then
8257
     # The compiler can only warn and ignore the option if not recognized
8258
     # So say no if there are warnings
8259
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8260
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262
       lt_cv_prog_compiler_c_o=yes
8263
     fi
8264
   fi
8265
   chmod u+w . 2>&5
8266
   $RM conftest*
8267
   # SGI C++ compiler will create directory out/ii_files/ for
8268
   # template instantiation
8269
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270
   $RM out/* && rmdir out
8271
   cd ..
8272
   $RM -r conftest
8273
   $RM conftest*
8274
 
8275
fi
8276
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8277
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8278
 
8279
 
8280
 
8281
 
8282
hard_links="nottested"
8283
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284
  # do not overwrite the value of need_locks provided by the user
8285
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8286
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8287
  hard_links=yes
8288
  $RM conftest*
8289
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8290
  touch conftest.a
8291
  ln conftest.a conftest.b 2>&5 || hard_links=no
8292
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293
  echo "$as_me:$LINENO: result: $hard_links" >&5
8294
echo "${ECHO_T}$hard_links" >&6
8295
  if test "$hard_links" = no; then
8296
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8298
    need_locks=warn
8299
  fi
8300
else
8301
  need_locks=no
8302
fi
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8310
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8311
 
8312
  runpath_var=
8313
  allow_undefined_flag=
8314
  always_export_symbols=no
8315
  archive_cmds=
8316
  archive_expsym_cmds=
8317
  compiler_needs_object=no
8318
  enable_shared_with_static_runtimes=no
8319
  export_dynamic_flag_spec=
8320
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321
  hardcode_automatic=no
8322
  hardcode_direct=no
8323
  hardcode_direct_absolute=no
8324
  hardcode_libdir_flag_spec=
8325
  hardcode_libdir_flag_spec_ld=
8326
  hardcode_libdir_separator=
8327
  hardcode_minus_L=no
8328
  hardcode_shlibpath_var=unsupported
8329
  inherit_rpath=no
8330
  link_all_deplibs=unknown
8331
  module_cmds=
8332
  module_expsym_cmds=
8333
  old_archive_from_new_cmds=
8334
  old_archive_from_expsyms_cmds=
8335
  thread_safe_flag_spec=
8336
  whole_archive_flag_spec=
8337
  # include_expsyms should be a list of space-separated symbols to be *always*
8338
  # included in the symbol list
8339
  include_expsyms=
8340
  # exclude_expsyms can be an extended regexp of symbols to exclude
8341
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8342
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8343
  # as well as any symbol that contains `d'.
8344
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8345
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8346
  # platforms (ab)use it in PIC code, but their linkers get confused if
8347
  # the symbol is explicitly referenced.  Since portable code cannot
8348
  # rely on this symbol name, it's probably fine to never include it in
8349
  # preloaded symbol tables.
8350
  # Exclude shared library initialization/finalization symbols.
8351
  extract_expsyms_cmds=
8352
 
8353
  case $host_os in
8354
  cygwin* | mingw* | pw32* | cegcc*)
8355
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8356
    # When not using gcc, we currently assume that we are using
8357
    # Microsoft Visual C++.
8358
    if test "$GCC" != yes; then
8359
      with_gnu_ld=no
8360
    fi
8361
    ;;
8362
  interix*)
8363
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8364
    with_gnu_ld=yes
8365
    ;;
8366
  openbsd*)
8367
    with_gnu_ld=no
8368
    ;;
8369
  esac
8370
 
8371
  ld_shlibs=yes
8372
  if test "$with_gnu_ld" = yes; then
8373
    # If archive_cmds runs LD, not CC, wlarc should be empty
8374
    wlarc='${wl}'
8375
 
8376
    # Set some defaults for GNU ld with shared library support. These
8377
    # are reset later if shared libraries are not supported. Putting them
8378
    # here allows them to be overridden if necessary.
8379
    runpath_var=LD_RUN_PATH
8380
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381
    export_dynamic_flag_spec='${wl}--export-dynamic'
8382
    # ancient GNU ld didn't support --whole-archive et. al.
8383
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8384
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8385
    else
8386
      whole_archive_flag_spec=
8387
    fi
8388
    supports_anon_versioning=no
8389
    case `$LD -v 2>&1` in
8390
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8391
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8392
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8393
      *\ 2.11.*) ;; # other 2.11 versions
8394
      *) supports_anon_versioning=yes ;;
8395
    esac
8396
 
8397
    # See if GNU ld supports shared libraries.
8398
    case $host_os in
8399
    aix[3-9]*)
8400
      # On AIX/PPC, the GNU linker is very broken
8401
      if test "$host_cpu" != ia64; then
8402
        ld_shlibs=no
8403
        cat <<_LT_EOF 1>&2
8404
 
8405
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8406
*** to be unable to reliably create shared libraries on AIX.
8407
*** Therefore, libtool is disabling shared libraries support.  If you
8408
*** really care for shared libraries, you may want to modify your PATH
8409
*** so that a non-GNU linker is found, and then restart.
8410
 
8411
_LT_EOF
8412
      fi
8413
      ;;
8414
 
8415
    amigaos*)
8416
      case $host_cpu in
8417
      powerpc)
8418
            # see comment about AmigaOS4 .so support
8419
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420
            archive_expsym_cmds=''
8421
        ;;
8422
      m68k)
8423
            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)'
8424
            hardcode_libdir_flag_spec='-L$libdir'
8425
            hardcode_minus_L=yes
8426
        ;;
8427
      esac
8428
      ;;
8429
 
8430
    beos*)
8431
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8432
        allow_undefined_flag=unsupported
8433
        # Joseph Beckenbach  says some releases of gcc
8434
        # support --undefined.  This deserves some investigation.  FIXME
8435
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436
      else
8437
        ld_shlibs=no
8438
      fi
8439
      ;;
8440
 
8441
    cygwin* | mingw* | pw32* | cegcc*)
8442
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8443
      # as there is no search path for DLLs.
8444
      hardcode_libdir_flag_spec='-L$libdir'
8445
      allow_undefined_flag=unsupported
8446
      always_export_symbols=no
8447
      enable_shared_with_static_runtimes=yes
8448
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8449
 
8450
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8451
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452
        # If the export-symbols file already is a .def file (1st line
8453
        # is EXPORTS), use it as is; otherwise, prepend...
8454
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8455
          cp $export_symbols $output_objdir/$soname.def;
8456
        else
8457
          echo EXPORTS > $output_objdir/$soname.def;
8458
          cat $export_symbols >> $output_objdir/$soname.def;
8459
        fi~
8460
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8461
      else
8462
        ld_shlibs=no
8463
      fi
8464
      ;;
8465
 
8466
    interix[3-9]*)
8467
      hardcode_direct=no
8468
      hardcode_shlibpath_var=no
8469
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8470
      export_dynamic_flag_spec='${wl}-E'
8471
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8472
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8473
      # default) and relocated if they conflict, which is a slow very memory
8474
      # consuming and fragmenting process.  To avoid this, we pick a random,
8475
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8476
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8477
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8478
      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'
8479
      ;;
8480
 
8481
    gnu* | linux* | tpf* | k*bsd*-gnu)
8482
      tmp_diet=no
8483
      if test "$host_os" = linux-dietlibc; then
8484
        case $cc_basename in
8485
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8486
        esac
8487
      fi
8488
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8489
         && test "$tmp_diet" = no
8490
      then
8491
        tmp_addflag=
8492
        tmp_sharedflag='-shared'
8493
        case $cc_basename,$host_cpu in
8494
        pgcc*)                          # Portland Group C compiler
8495
          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'
8496
          tmp_addflag=' $pic_flag'
8497
          ;;
8498
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8499
          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'
8500
          tmp_addflag=' $pic_flag -Mnomain' ;;
8501
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8502
          tmp_addflag=' -i_dynamic' ;;
8503
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8504
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8505
        ifc* | ifort*)                  # Intel Fortran compiler
8506
          tmp_addflag=' -nofor_main' ;;
8507
        lf95*)                          # Lahey Fortran 8.1
8508
          whole_archive_flag_spec=
8509
          tmp_sharedflag='--shared' ;;
8510
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8511
          tmp_sharedflag='-qmkshrobj'
8512
          tmp_addflag= ;;
8513
        esac
8514
        case `$CC -V 2>&1 | sed 5q` in
8515
        *Sun\ C*)                       # Sun C 5.9
8516
          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'
8517
          compiler_needs_object=yes
8518
          tmp_sharedflag='-G' ;;
8519
        *Sun\ F*)                       # Sun Fortran 8.3
8520
          tmp_sharedflag='-G' ;;
8521
        esac
8522
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523
 
8524
        if test "x$supports_anon_versioning" = xyes; then
8525
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8526
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8527
            echo "local: *; };" >> $output_objdir/$libname.ver~
8528
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8529
        fi
8530
 
8531
        case $cc_basename in
8532
        xlf*)
8533
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8534
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8535
          hardcode_libdir_flag_spec=
8536
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8537
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8538
          if test "x$supports_anon_versioning" = xyes; then
8539
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8540
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8541
              echo "local: *; };" >> $output_objdir/$libname.ver~
8542
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8543
          fi
8544
          ;;
8545
        esac
8546
      else
8547
        ld_shlibs=no
8548
      fi
8549
      ;;
8550
 
8551
    netbsd*)
8552
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8553
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8554
        wlarc=
8555
      else
8556
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8558
      fi
8559
      ;;
8560
 
8561
    solaris*)
8562
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8563
        ld_shlibs=no
8564
        cat <<_LT_EOF 1>&2
8565
 
8566
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8567
*** create shared libraries on Solaris systems.  Therefore, libtool
8568
*** is disabling shared libraries support.  We urge you to upgrade GNU
8569
*** binutils to release 2.9.1 or newer.  Another option is to modify
8570
*** your PATH or compiler configuration so that the native linker is
8571
*** used, and then restart.
8572
 
8573
_LT_EOF
8574
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8575
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8577
      else
8578
        ld_shlibs=no
8579
      fi
8580
      ;;
8581
 
8582
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8583
      case `$LD -v 2>&1` in
8584
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8585
        ld_shlibs=no
8586
        cat <<_LT_EOF 1>&2
8587
 
8588
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8589
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8590
*** is disabling shared libraries support.  We urge you to upgrade GNU
8591
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8592
*** your PATH or compiler configuration so that the native linker is
8593
*** used, and then restart.
8594
 
8595
_LT_EOF
8596
        ;;
8597
        *)
8598
          # For security reasons, it is highly recommended that you always
8599
          # use absolute paths for naming shared libraries, and exclude the
8600
          # DT_RUNPATH tag from executables and libraries.  But doing so
8601
          # requires that you compile everything twice, which is a pain.
8602
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8603
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606
          else
8607
            ld_shlibs=no
8608
          fi
8609
        ;;
8610
      esac
8611
      ;;
8612
 
8613
    sunos4*)
8614
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8615
      wlarc=
8616
      hardcode_direct=yes
8617
      hardcode_shlibpath_var=no
8618
      ;;
8619
 
8620
    *)
8621
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624
      else
8625
        ld_shlibs=no
8626
      fi
8627
      ;;
8628
    esac
8629
 
8630
    if test "$ld_shlibs" = no; then
8631
      runpath_var=
8632
      hardcode_libdir_flag_spec=
8633
      export_dynamic_flag_spec=
8634
      whole_archive_flag_spec=
8635
    fi
8636
  else
8637
    # PORTME fill in a description of your system's linker (not GNU ld)
8638
    case $host_os in
8639
    aix3*)
8640
      allow_undefined_flag=unsupported
8641
      always_export_symbols=yes
8642
      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'
8643
      # Note: this linker hardcodes the directories in LIBPATH if there
8644
      # are no directories specified by -L.
8645
      hardcode_minus_L=yes
8646
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8647
        # Neither direct hardcoding nor static linking is supported with a
8648
        # broken collect2.
8649
        hardcode_direct=unsupported
8650
      fi
8651
      ;;
8652
 
8653
    aix[4-9]*)
8654
      if test "$host_cpu" = ia64; then
8655
        # On IA64, the linker does run time linking by default, so we don't
8656
        # have to do anything special.
8657
        aix_use_runtimelinking=no
8658
        exp_sym_flag='-Bexport'
8659
        no_entry_flag=""
8660
      else
8661
        # If we're using GNU nm, then we don't want the "-C" option.
8662
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8663
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8664
          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'
8665
        else
8666
          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'
8667
        fi
8668
        aix_use_runtimelinking=no
8669
 
8670
        # Test if we are trying to use run time linking or normal
8671
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8672
        # need to do runtime linking.
8673
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8674
          for ld_flag in $LDFLAGS; do
8675
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8676
            aix_use_runtimelinking=yes
8677
            break
8678
          fi
8679
          done
8680
          ;;
8681
        esac
8682
 
8683
        exp_sym_flag='-bexport'
8684
        no_entry_flag='-bnoentry'
8685
      fi
8686
 
8687
      # When large executables or shared objects are built, AIX ld can
8688
      # have problems creating the table of contents.  If linking a library
8689
      # or program results in "error TOC overflow" add -mminimal-toc to
8690
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8691
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8692
 
8693
      archive_cmds=''
8694
      hardcode_direct=yes
8695
      hardcode_direct_absolute=yes
8696
      hardcode_libdir_separator=':'
8697
      link_all_deplibs=yes
8698
      file_list_spec='${wl}-f,'
8699
 
8700
      if test "$GCC" = yes; then
8701
        case $host_os in aix4.[012]|aix4.[012].*)
8702
        # We only want to do this on AIX 4.2 and lower, the check
8703
        # below for broken collect2 doesn't work under 4.3+
8704
          collect2name=`${CC} -print-prog-name=collect2`
8705
          if test -f "$collect2name" &&
8706
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8707
          then
8708
          # We have reworked collect2
8709
          :
8710
          else
8711
          # We have old collect2
8712
          hardcode_direct=unsupported
8713
          # It fails to find uninstalled libraries when the uninstalled
8714
          # path is not listed in the libpath.  Setting hardcode_minus_L
8715
          # to unsupported forces relinking
8716
          hardcode_minus_L=yes
8717
          hardcode_libdir_flag_spec='-L$libdir'
8718
          hardcode_libdir_separator=
8719
          fi
8720
          ;;
8721
        esac
8722
        shared_flag='-shared'
8723
        if test "$aix_use_runtimelinking" = yes; then
8724
          shared_flag="$shared_flag "'${wl}-G'
8725
        fi
8726
      else
8727
        # not using gcc
8728
        if test "$host_cpu" = ia64; then
8729
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8730
        # chokes on -Wl,-G. The following line is correct:
8731
          shared_flag='-G'
8732
        else
8733
          if test "$aix_use_runtimelinking" = yes; then
8734
            shared_flag='${wl}-G'
8735
          else
8736
            shared_flag='${wl}-bM:SRE'
8737
          fi
8738
        fi
8739
      fi
8740
 
8741
      export_dynamic_flag_spec='${wl}-bexpall'
8742
      # It seems that -bexpall does not export symbols beginning with
8743
      # underscore (_), so it is better to generate a list of symbols to export.
8744
      always_export_symbols=yes
8745
      if test "$aix_use_runtimelinking" = yes; then
8746
        # Warning - without using the other runtime loading flags (-brtl),
8747
        # -berok will link without error, but may produce a broken library.
8748
        allow_undefined_flag='-berok'
8749
        # Determine the default libpath from the value encoded in an
8750
        # empty executable.
8751
        cat >conftest.$ac_ext <<_ACEOF
8752
/* confdefs.h.  */
8753
_ACEOF
8754
cat confdefs.h >>conftest.$ac_ext
8755
cat >>conftest.$ac_ext <<_ACEOF
8756
/* end confdefs.h.  */
8757
 
8758
int
8759
main ()
8760
{
8761
 
8762
  ;
8763
  return 0;
8764
}
8765
_ACEOF
8766
rm -f conftest.$ac_objext conftest$ac_exeext
8767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768
  (eval $ac_link) 2>conftest.er1
8769
  ac_status=$?
8770
  grep -v '^ *+' conftest.er1 >conftest.err
8771
  rm -f conftest.er1
8772
  cat conftest.err >&5
8773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774
  (exit $ac_status); } &&
8775
         { ac_try='test -z "$ac_c_werror_flag"
8776
                         || test ! -s conftest.err'
8777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778
  (eval $ac_try) 2>&5
8779
  ac_status=$?
8780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
  (exit $ac_status); }; } &&
8782
         { ac_try='test -s conftest$ac_exeext'
8783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784
  (eval $ac_try) 2>&5
8785
  ac_status=$?
8786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787
  (exit $ac_status); }; }; then
8788
 
8789
lt_aix_libpath_sed='
8790
    /Import File Strings/,/^$/ {
8791
        /^0/ {
8792
            s/^0  *\(.*\)$/\1/
8793
            p
8794
        }
8795
    }'
8796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8797
# Check for a 64-bit object if we didn't find anything.
8798
if test -z "$aix_libpath"; then
8799
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8800
fi
8801
else
8802
  echo "$as_me: failed program was:" >&5
8803
sed 's/^/| /' conftest.$ac_ext >&5
8804
 
8805
fi
8806
rm -f conftest.err conftest.$ac_objext \
8807
      conftest$ac_exeext conftest.$ac_ext
8808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8809
 
8810
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8811
        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"
8812
      else
8813
        if test "$host_cpu" = ia64; then
8814
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8815
          allow_undefined_flag="-z nodefs"
8816
          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"
8817
        else
8818
         # Determine the default libpath from the value encoded in an
8819
         # empty executable.
8820
         cat >conftest.$ac_ext <<_ACEOF
8821
/* confdefs.h.  */
8822
_ACEOF
8823
cat confdefs.h >>conftest.$ac_ext
8824
cat >>conftest.$ac_ext <<_ACEOF
8825
/* end confdefs.h.  */
8826
 
8827
int
8828
main ()
8829
{
8830
 
8831
  ;
8832
  return 0;
8833
}
8834
_ACEOF
8835
rm -f conftest.$ac_objext conftest$ac_exeext
8836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837
  (eval $ac_link) 2>conftest.er1
8838
  ac_status=$?
8839
  grep -v '^ *+' conftest.er1 >conftest.err
8840
  rm -f conftest.er1
8841
  cat conftest.err >&5
8842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843
  (exit $ac_status); } &&
8844
         { ac_try='test -z "$ac_c_werror_flag"
8845
                         || test ! -s conftest.err'
8846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847
  (eval $ac_try) 2>&5
8848
  ac_status=$?
8849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850
  (exit $ac_status); }; } &&
8851
         { ac_try='test -s conftest$ac_exeext'
8852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853
  (eval $ac_try) 2>&5
8854
  ac_status=$?
8855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856
  (exit $ac_status); }; }; then
8857
 
8858
lt_aix_libpath_sed='
8859
    /Import File Strings/,/^$/ {
8860
        /^0/ {
8861
            s/^0  *\(.*\)$/\1/
8862
            p
8863
        }
8864
    }'
8865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866
# Check for a 64-bit object if we didn't find anything.
8867
if test -z "$aix_libpath"; then
8868
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8869
fi
8870
else
8871
  echo "$as_me: failed program was:" >&5
8872
sed 's/^/| /' conftest.$ac_ext >&5
8873
 
8874
fi
8875
rm -f conftest.err conftest.$ac_objext \
8876
      conftest$ac_exeext conftest.$ac_ext
8877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8878
 
8879
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8880
          # Warning - without using the other run time loading flags,
8881
          # -berok will link without error, but may produce a broken library.
8882
          no_undefined_flag=' ${wl}-bernotok'
8883
          allow_undefined_flag=' ${wl}-berok'
8884
          # Exported symbols can be pulled into shared objects from archives
8885
          whole_archive_flag_spec='$convenience'
8886
          archive_cmds_need_lc=yes
8887
          # This is similar to how AIX traditionally builds its shared libraries.
8888
          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'
8889
        fi
8890
      fi
8891
      ;;
8892
 
8893
    amigaos*)
8894
      case $host_cpu in
8895
      powerpc)
8896
            # see comment about AmigaOS4 .so support
8897
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898
            archive_expsym_cmds=''
8899
        ;;
8900
      m68k)
8901
            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)'
8902
            hardcode_libdir_flag_spec='-L$libdir'
8903
            hardcode_minus_L=yes
8904
        ;;
8905
      esac
8906
      ;;
8907
 
8908
    bsdi[45]*)
8909
      export_dynamic_flag_spec=-rdynamic
8910
      ;;
8911
 
8912
    cygwin* | mingw* | pw32* | cegcc*)
8913
      # When not using gcc, we currently assume that we are using
8914
      # Microsoft Visual C++.
8915
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8916
      # no search path for DLLs.
8917
      hardcode_libdir_flag_spec=' '
8918
      allow_undefined_flag=unsupported
8919
      # Tell ltmain to make .lib files, not .a files.
8920
      libext=lib
8921
      # Tell ltmain to make .dll files, not .so files.
8922
      shrext_cmds=".dll"
8923
      # FIXME: Setting linknames here is a bad hack.
8924
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8925
      # The linker will automatically build a .lib file if we build a DLL.
8926
      old_archive_from_new_cmds='true'
8927
      # FIXME: Should let the user specify the lib program.
8928
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8929
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8930
      enable_shared_with_static_runtimes=yes
8931
      ;;
8932
 
8933
    darwin* | rhapsody*)
8934
 
8935
 
8936
  archive_cmds_need_lc=no
8937
  hardcode_direct=no
8938
  hardcode_automatic=yes
8939
  hardcode_shlibpath_var=unsupported
8940
  whole_archive_flag_spec=''
8941
  link_all_deplibs=yes
8942
  allow_undefined_flag="$_lt_dar_allow_undefined"
8943
  case $cc_basename in
8944
     ifort*) _lt_dar_can_shared=yes ;;
8945
     *) _lt_dar_can_shared=$GCC ;;
8946
  esac
8947
  if test "$_lt_dar_can_shared" = "yes"; then
8948
    output_verbose_link_cmd=echo
8949
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8950
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8951
    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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8952
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8953
 
8954
  else
8955
  ld_shlibs=no
8956
  fi
8957
 
8958
      ;;
8959
 
8960
    dgux*)
8961
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962
      hardcode_libdir_flag_spec='-L$libdir'
8963
      hardcode_shlibpath_var=no
8964
      ;;
8965
 
8966
    freebsd1*)
8967
      ld_shlibs=no
8968
      ;;
8969
 
8970
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8971
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8972
    # does not break anything, and helps significantly (at the cost of a little
8973
    # extra space).
8974
    freebsd2.2*)
8975
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8976
      hardcode_libdir_flag_spec='-R$libdir'
8977
      hardcode_direct=yes
8978
      hardcode_shlibpath_var=no
8979
      ;;
8980
 
8981
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8982
    freebsd2*)
8983
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8984
      hardcode_direct=yes
8985
      hardcode_minus_L=yes
8986
      hardcode_shlibpath_var=no
8987
      ;;
8988
 
8989
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8990
    freebsd* | dragonfly*)
8991
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8992
      hardcode_libdir_flag_spec='-R$libdir'
8993
      hardcode_direct=yes
8994
      hardcode_shlibpath_var=no
8995
      ;;
8996
 
8997
    hpux9*)
8998
      if test "$GCC" = yes; then
8999
        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'
9000
      else
9001
        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'
9002
      fi
9003
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9004
      hardcode_libdir_separator=:
9005
      hardcode_direct=yes
9006
 
9007
      # hardcode_minus_L: Not really in the search PATH,
9008
      # but as the default location of the library.
9009
      hardcode_minus_L=yes
9010
      export_dynamic_flag_spec='${wl}-E'
9011
      ;;
9012
 
9013
    hpux10*)
9014
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9015
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9016
      else
9017
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9018
      fi
9019
      if test "$with_gnu_ld" = no; then
9020
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9021
        hardcode_libdir_flag_spec_ld='+b $libdir'
9022
        hardcode_libdir_separator=:
9023
        hardcode_direct=yes
9024
        hardcode_direct_absolute=yes
9025
        export_dynamic_flag_spec='${wl}-E'
9026
        # hardcode_minus_L: Not really in the search PATH,
9027
        # but as the default location of the library.
9028
        hardcode_minus_L=yes
9029
      fi
9030
      ;;
9031
 
9032
    hpux11*)
9033
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9034
        case $host_cpu in
9035
        hppa*64*)
9036
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037
          ;;
9038
        ia64*)
9039
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9040
          ;;
9041
        *)
9042
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9043
          ;;
9044
        esac
9045
      else
9046
        case $host_cpu in
9047
        hppa*64*)
9048
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049
          ;;
9050
        ia64*)
9051
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9052
          ;;
9053
        *)
9054
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055
          ;;
9056
        esac
9057
      fi
9058
      if test "$with_gnu_ld" = no; then
9059
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060
        hardcode_libdir_separator=:
9061
 
9062
        case $host_cpu in
9063
        hppa*64*|ia64*)
9064
          hardcode_direct=no
9065
          hardcode_shlibpath_var=no
9066
          ;;
9067
        *)
9068
          hardcode_direct=yes
9069
          hardcode_direct_absolute=yes
9070
          export_dynamic_flag_spec='${wl}-E'
9071
 
9072
          # hardcode_minus_L: Not really in the search PATH,
9073
          # but as the default location of the library.
9074
          hardcode_minus_L=yes
9075
          ;;
9076
        esac
9077
      fi
9078
      ;;
9079
 
9080
    irix5* | irix6* | nonstopux*)
9081
      if test "$GCC" = yes; then
9082
        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'
9083
        # Try to use the -exported_symbol ld option, if it does not
9084
        # work, assume that -exports_file does not work either and
9085
        # implicitly export all symbols.
9086
        save_LDFLAGS="$LDFLAGS"
9087
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9088
        cat >conftest.$ac_ext <<_ACEOF
9089
int foo(void) {}
9090
_ACEOF
9091
rm -f conftest.$ac_objext conftest$ac_exeext
9092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093
  (eval $ac_link) 2>conftest.er1
9094
  ac_status=$?
9095
  grep -v '^ *+' conftest.er1 >conftest.err
9096
  rm -f conftest.er1
9097
  cat conftest.err >&5
9098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
  (exit $ac_status); } &&
9100
         { ac_try='test -z "$ac_c_werror_flag"
9101
                         || test ! -s conftest.err'
9102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103
  (eval $ac_try) 2>&5
9104
  ac_status=$?
9105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106
  (exit $ac_status); }; } &&
9107
         { ac_try='test -s conftest$ac_exeext'
9108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109
  (eval $ac_try) 2>&5
9110
  ac_status=$?
9111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112
  (exit $ac_status); }; }; then
9113
  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'
9114
 
9115
else
9116
  echo "$as_me: failed program was:" >&5
9117
sed 's/^/| /' conftest.$ac_ext >&5
9118
 
9119
fi
9120
rm -f conftest.err conftest.$ac_objext \
9121
      conftest$ac_exeext conftest.$ac_ext
9122
        LDFLAGS="$save_LDFLAGS"
9123
      else
9124
        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'
9125
        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'
9126
      fi
9127
      archive_cmds_need_lc='no'
9128
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129
      hardcode_libdir_separator=:
9130
      inherit_rpath=yes
9131
      link_all_deplibs=yes
9132
      ;;
9133
 
9134
    netbsd*)
9135
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9136
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9137
      else
9138
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9139
      fi
9140
      hardcode_libdir_flag_spec='-R$libdir'
9141
      hardcode_direct=yes
9142
      hardcode_shlibpath_var=no
9143
      ;;
9144
 
9145
    newsos6)
9146
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147
      hardcode_direct=yes
9148
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9149
      hardcode_libdir_separator=:
9150
      hardcode_shlibpath_var=no
9151
      ;;
9152
 
9153
    *nto* | *qnx*)
9154
      ;;
9155
 
9156
    openbsd*)
9157
      if test -f /usr/libexec/ld.so; then
9158
        hardcode_direct=yes
9159
        hardcode_shlibpath_var=no
9160
        hardcode_direct_absolute=yes
9161
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9162
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9163
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9164
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9165
          export_dynamic_flag_spec='${wl}-E'
9166
        else
9167
          case $host_os in
9168
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9169
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9170
             hardcode_libdir_flag_spec='-R$libdir'
9171
             ;;
9172
           *)
9173
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9174
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9175
             ;;
9176
          esac
9177
        fi
9178
      else
9179
        ld_shlibs=no
9180
      fi
9181
      ;;
9182
 
9183
    os2*)
9184
      hardcode_libdir_flag_spec='-L$libdir'
9185
      hardcode_minus_L=yes
9186
      allow_undefined_flag=unsupported
9187
      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'
9188
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9189
      ;;
9190
 
9191
    osf3*)
9192
      if test "$GCC" = yes; then
9193
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9194
        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'
9195
      else
9196
        allow_undefined_flag=' -expect_unresolved \*'
9197
        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'
9198
      fi
9199
      archive_cmds_need_lc='no'
9200
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9201
      hardcode_libdir_separator=:
9202
      ;;
9203
 
9204
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9205
      if test "$GCC" = yes; then
9206
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9207
        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'
9208
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209
      else
9210
        allow_undefined_flag=' -expect_unresolved \*'
9211
        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'
9212
        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~
9213
        $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'
9214
 
9215
        # Both c and cxx compiler support -rpath directly
9216
        hardcode_libdir_flag_spec='-rpath $libdir'
9217
      fi
9218
      archive_cmds_need_lc='no'
9219
      hardcode_libdir_separator=:
9220
      ;;
9221
 
9222
    solaris*)
9223
      no_undefined_flag=' -z defs'
9224
      if test "$GCC" = yes; then
9225
        wlarc='${wl}'
9226
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9228
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9229
      else
9230
        case `$CC -V 2>&1` in
9231
        *"Compilers 5.0"*)
9232
          wlarc=''
9233
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9235
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9236
          ;;
9237
        *)
9238
          wlarc='${wl}'
9239
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9240
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9241
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9242
          ;;
9243
        esac
9244
      fi
9245
      hardcode_libdir_flag_spec='-R$libdir'
9246
      hardcode_shlibpath_var=no
9247
      case $host_os in
9248
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9249
      *)
9250
        # The compiler driver will combine and reorder linker options,
9251
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9252
        # but is careful enough not to reorder.
9253
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9254
        if test "$GCC" = yes; then
9255
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9256
        else
9257
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9258
        fi
9259
        ;;
9260
      esac
9261
      link_all_deplibs=yes
9262
      ;;
9263
 
9264
    sunos4*)
9265
      if test "x$host_vendor" = xsequent; then
9266
        # Use $CC to link under sequent, because it throws in some extra .o
9267
        # files that make .init and .fini sections work.
9268
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9269
      else
9270
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9271
      fi
9272
      hardcode_libdir_flag_spec='-L$libdir'
9273
      hardcode_direct=yes
9274
      hardcode_minus_L=yes
9275
      hardcode_shlibpath_var=no
9276
      ;;
9277
 
9278
    sysv4)
9279
      case $host_vendor in
9280
        sni)
9281
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282
          hardcode_direct=yes # is this really true???
9283
        ;;
9284
        siemens)
9285
          ## LD is ld it makes a PLAMLIB
9286
          ## CC just makes a GrossModule.
9287
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9288
          reload_cmds='$CC -r -o $output$reload_objs'
9289
          hardcode_direct=no
9290
        ;;
9291
        motorola)
9292
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9294
        ;;
9295
      esac
9296
      runpath_var='LD_RUN_PATH'
9297
      hardcode_shlibpath_var=no
9298
      ;;
9299
 
9300
    sysv4.3*)
9301
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302
      hardcode_shlibpath_var=no
9303
      export_dynamic_flag_spec='-Bexport'
9304
      ;;
9305
 
9306
    sysv4*MP*)
9307
      if test -d /usr/nec; then
9308
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309
        hardcode_shlibpath_var=no
9310
        runpath_var=LD_RUN_PATH
9311
        hardcode_runpath_var=yes
9312
        ld_shlibs=yes
9313
      fi
9314
      ;;
9315
 
9316
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9317
      no_undefined_flag='${wl}-z,text'
9318
      archive_cmds_need_lc=no
9319
      hardcode_shlibpath_var=no
9320
      runpath_var='LD_RUN_PATH'
9321
 
9322
      if test "$GCC" = yes; then
9323
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9324
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325
      else
9326
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328
      fi
9329
      ;;
9330
 
9331
    sysv5* | sco3.2v5* | sco5v6*)
9332
      # Note: We can NOT use -z defs as we might desire, because we do not
9333
      # link with -lc, and that would cause any symbols used from libc to
9334
      # always be unresolved, which means just about no library would
9335
      # ever link correctly.  If we're not using GNU ld we use -z text
9336
      # though, which does catch some bad symbols but isn't as heavy-handed
9337
      # as -z defs.
9338
      no_undefined_flag='${wl}-z,text'
9339
      allow_undefined_flag='${wl}-z,nodefs'
9340
      archive_cmds_need_lc=no
9341
      hardcode_shlibpath_var=no
9342
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9343
      hardcode_libdir_separator=':'
9344
      link_all_deplibs=yes
9345
      export_dynamic_flag_spec='${wl}-Bexport'
9346
      runpath_var='LD_RUN_PATH'
9347
 
9348
      if test "$GCC" = yes; then
9349
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351
      else
9352
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354
      fi
9355
      ;;
9356
 
9357
    uts4*)
9358
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359
      hardcode_libdir_flag_spec='-L$libdir'
9360
      hardcode_shlibpath_var=no
9361
      ;;
9362
 
9363
    *)
9364
      ld_shlibs=no
9365
      ;;
9366
    esac
9367
 
9368
    if test x$host_vendor = xsni; then
9369
      case $host in
9370
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9371
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9372
        ;;
9373
      esac
9374
    fi
9375
  fi
9376
 
9377
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9378
echo "${ECHO_T}$ld_shlibs" >&6
9379
test "$ld_shlibs" = no && can_build_shared=no
9380
 
9381
with_gnu_ld=$with_gnu_ld
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
#
9398
# Do we need to explicitly link libc?
9399
#
9400
case "x$archive_cmds_need_lc" in
9401
x|xyes)
9402
  # Assume -lc should be added
9403
  archive_cmds_need_lc=yes
9404
 
9405
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9406
    case $archive_cmds in
9407
    *'~'*)
9408
      # FIXME: we may have to deal with multi-command sequences.
9409
      ;;
9410
    '$CC '*)
9411
      # Test whether the compiler implicitly links with -lc since on some
9412
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9413
      # to ld, don't add -lc before -lgcc.
9414
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9415
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9416
      $RM conftest*
9417
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
 
9419
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420
  (eval $ac_compile) 2>&5
9421
  ac_status=$?
9422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423
  (exit $ac_status); } 2>conftest.err; then
9424
        soname=conftest
9425
        lib=conftest
9426
        libobjs=conftest.$ac_objext
9427
        deplibs=
9428
        wl=$lt_prog_compiler_wl
9429
        pic_flag=$lt_prog_compiler_pic
9430
        compiler_flags=-v
9431
        linker_flags=-v
9432
        verstring=
9433
        output_objdir=.
9434
        libname=conftest
9435
        lt_save_allow_undefined_flag=$allow_undefined_flag
9436
        allow_undefined_flag=
9437
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9438
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9439
  ac_status=$?
9440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
  (exit $ac_status); }
9442
        then
9443
          archive_cmds_need_lc=no
9444
        else
9445
          archive_cmds_need_lc=yes
9446
        fi
9447
        allow_undefined_flag=$lt_save_allow_undefined_flag
9448
      else
9449
        cat conftest.err 1>&5
9450
      fi
9451
      $RM conftest*
9452
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9453
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9454
      ;;
9455
    esac
9456
  fi
9457
  ;;
9458
esac
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
 
9578
 
9579
 
9580
 
9581
 
9582
 
9583
 
9584
 
9585
 
9586
 
9587
 
9588
 
9589
 
9590
 
9591
 
9592
 
9593
 
9594
 
9595
 
9596
 
9597
 
9598
 
9599
 
9600
 
9601
 
9602
 
9603
 
9604
 
9605
 
9606
 
9607
 
9608
 
9609
 
9610
 
9611
 
9612
 
9613
 
9614
 
9615
 
9616
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9617
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9618
 
9619
if test "$GCC" = yes; then
9620
  case $host_os in
9621
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9622
    *) lt_awk_arg="/^libraries:/" ;;
9623
  esac
9624
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9625
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9626
    # if the path contains ";" then we assume it to be the separator
9627
    # otherwise default to the standard path separator (i.e. ":") - it is
9628
    # assumed that no part of a normal pathname contains ";" but that should
9629
    # okay in the real world where ";" in dirpaths is itself problematic.
9630
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9631
  else
9632
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9633
  fi
9634
  # Ok, now we have the path, separated by spaces, we can step through it
9635
  # and add multilib dir if necessary.
9636
  lt_tmp_lt_search_path_spec=
9637
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9638
  for lt_sys_path in $lt_search_path_spec; do
9639
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9640
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9641
    else
9642
      test -d "$lt_sys_path" && \
9643
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9644
    fi
9645
  done
9646
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9647
BEGIN {RS=" "; FS="/|\n";} {
9648
  lt_foo="";
9649
  lt_count=0;
9650
  for (lt_i = NF; lt_i > 0; lt_i--) {
9651
    if ($lt_i != "" && $lt_i != ".") {
9652
      if ($lt_i == "..") {
9653
        lt_count++;
9654
      } else {
9655
        if (lt_count == 0) {
9656
          lt_foo="/" $lt_i lt_foo;
9657
        } else {
9658
          lt_count--;
9659
        }
9660
      }
9661
    }
9662
  }
9663
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9664
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9665
}'`
9666
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9667
else
9668
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9669
fi
9670
library_names_spec=
9671
libname_spec='lib$name'
9672
soname_spec=
9673
shrext_cmds=".so"
9674
postinstall_cmds=
9675
postuninstall_cmds=
9676
finish_cmds=
9677
finish_eval=
9678
shlibpath_var=
9679
shlibpath_overrides_runpath=unknown
9680
version_type=none
9681
dynamic_linker="$host_os ld.so"
9682
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9683
need_lib_prefix=unknown
9684
hardcode_into_libs=no
9685
 
9686
# when you set need_version to no, make sure it does not cause -set_version
9687
# flags to be left without arguments
9688
need_version=unknown
9689
 
9690
case $host_os in
9691
aix3*)
9692
  version_type=linux
9693
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9694
  shlibpath_var=LIBPATH
9695
 
9696
  # AIX 3 has no versioning support, so we append a major version to the name.
9697
  soname_spec='${libname}${release}${shared_ext}$major'
9698
  ;;
9699
 
9700
aix[4-9]*)
9701
  version_type=linux
9702
  need_lib_prefix=no
9703
  need_version=no
9704
  hardcode_into_libs=yes
9705
  if test "$host_cpu" = ia64; then
9706
    # AIX 5 supports IA64
9707
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9708
    shlibpath_var=LD_LIBRARY_PATH
9709
  else
9710
    # With GCC up to 2.95.x, collect2 would create an import file
9711
    # for dependence libraries.  The import file would start with
9712
    # the line `#! .'.  This would cause the generated library to
9713
    # depend on `.', always an invalid library.  This was fixed in
9714
    # development snapshots of GCC prior to 3.0.
9715
    case $host_os in
9716
      aix4 | aix4.[01] | aix4.[01].*)
9717
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9718
           echo ' yes '
9719
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9720
        :
9721
      else
9722
        can_build_shared=no
9723
      fi
9724
      ;;
9725
    esac
9726
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9727
    # soname into executable. Probably we can add versioning support to
9728
    # collect2, so additional links can be useful in future.
9729
    if test "$aix_use_runtimelinking" = yes; then
9730
      # If using run time linking (on AIX 4.2 or later) use lib.so
9731
      # instead of lib.a to let people know that these are not
9732
      # typical AIX shared libraries.
9733
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734
    else
9735
      # We preserve .a as extension for shared libraries through AIX4.2
9736
      # and later when we are not doing run time linking.
9737
      library_names_spec='${libname}${release}.a $libname.a'
9738
      soname_spec='${libname}${release}${shared_ext}$major'
9739
    fi
9740
    shlibpath_var=LIBPATH
9741
  fi
9742
  ;;
9743
 
9744
amigaos*)
9745
  case $host_cpu in
9746
  powerpc)
9747
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9748
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9749
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750
    ;;
9751
  m68k)
9752
    library_names_spec='$libname.ixlibrary $libname.a'
9753
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9754
    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'
9755
    ;;
9756
  esac
9757
  ;;
9758
 
9759
beos*)
9760
  library_names_spec='${libname}${shared_ext}'
9761
  dynamic_linker="$host_os ld.so"
9762
  shlibpath_var=LIBRARY_PATH
9763
  ;;
9764
 
9765
bsdi[45]*)
9766
  version_type=linux
9767
  need_version=no
9768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769
  soname_spec='${libname}${release}${shared_ext}$major'
9770
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9771
  shlibpath_var=LD_LIBRARY_PATH
9772
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9773
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9774
  # the default ld.so.conf also contains /usr/contrib/lib and
9775
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9776
  # libtool to hard-code these into programs
9777
  ;;
9778
 
9779
cygwin* | mingw* | pw32* | cegcc*)
9780
  version_type=windows
9781
  shrext_cmds=".dll"
9782
  need_version=no
9783
  need_lib_prefix=no
9784
 
9785
  case $GCC,$host_os in
9786
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9787
    library_names_spec='$libname.dll.a'
9788
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9789
    postinstall_cmds='base_file=`basename \${file}`~
9790
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9791
      dldir=$destdir/`dirname \$dlpath`~
9792
      test -d \$dldir || mkdir -p \$dldir~
9793
      $install_prog $dir/$dlname \$dldir/$dlname~
9794
      chmod a+x \$dldir/$dlname~
9795
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9796
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9797
      fi'
9798
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9799
      dlpath=$dir/\$dldll~
9800
       $RM \$dlpath'
9801
    shlibpath_overrides_runpath=yes
9802
 
9803
    case $host_os in
9804
    cygwin*)
9805
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9806
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9807
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9808
      ;;
9809
    mingw* | cegcc*)
9810
      # MinGW DLLs use traditional 'lib' prefix
9811
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9813
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9814
        # It is most probably a Windows format PATH printed by
9815
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9816
        # path with ; separators, and with drive letters. We can handle the
9817
        # drive letters (cygwin fileutils understands them), so leave them,
9818
        # especially as we might pass files found there to a mingw objdump,
9819
        # which wouldn't understand a cygwinified path. Ahh.
9820
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9821
      else
9822
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9823
      fi
9824
      ;;
9825
    pw32*)
9826
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9827
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9828
      ;;
9829
    esac
9830
    ;;
9831
 
9832
  *)
9833
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9834
    ;;
9835
  esac
9836
  dynamic_linker='Win32 ld.exe'
9837
  # FIXME: first we should search . and the directory the executable is in
9838
  shlibpath_var=PATH
9839
  ;;
9840
 
9841
darwin* | rhapsody*)
9842
  dynamic_linker="$host_os dyld"
9843
  version_type=darwin
9844
  need_lib_prefix=no
9845
  need_version=no
9846
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9847
  soname_spec='${libname}${release}${major}$shared_ext'
9848
  shlibpath_overrides_runpath=yes
9849
  shlibpath_var=DYLD_LIBRARY_PATH
9850
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9851
 
9852
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9853
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9854
  ;;
9855
 
9856
dgux*)
9857
  version_type=linux
9858
  need_lib_prefix=no
9859
  need_version=no
9860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9861
  soname_spec='${libname}${release}${shared_ext}$major'
9862
  shlibpath_var=LD_LIBRARY_PATH
9863
  ;;
9864
 
9865
freebsd1*)
9866
  dynamic_linker=no
9867
  ;;
9868
 
9869
freebsd* | dragonfly*)
9870
  # DragonFly does not have aout.  When/if they implement a new
9871
  # versioning mechanism, adjust this.
9872
  if test -x /usr/bin/objformat; then
9873
    objformat=`/usr/bin/objformat`
9874
  else
9875
    case $host_os in
9876
    freebsd[123]*) objformat=aout ;;
9877
    *) objformat=elf ;;
9878
    esac
9879
  fi
9880
  version_type=freebsd-$objformat
9881
  case $version_type in
9882
    freebsd-elf*)
9883
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9884
      need_version=no
9885
      need_lib_prefix=no
9886
      ;;
9887
    freebsd-*)
9888
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9889
      need_version=yes
9890
      ;;
9891
  esac
9892
  shlibpath_var=LD_LIBRARY_PATH
9893
  case $host_os in
9894
  freebsd2*)
9895
    shlibpath_overrides_runpath=yes
9896
    ;;
9897
  freebsd3.[01]* | freebsdelf3.[01]*)
9898
    shlibpath_overrides_runpath=yes
9899
    hardcode_into_libs=yes
9900
    ;;
9901
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9902
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9903
    shlibpath_overrides_runpath=no
9904
    hardcode_into_libs=yes
9905
    ;;
9906
  *) # from 4.6 on, and DragonFly
9907
    shlibpath_overrides_runpath=yes
9908
    hardcode_into_libs=yes
9909
    ;;
9910
  esac
9911
  ;;
9912
 
9913
gnu*)
9914
  version_type=linux
9915
  need_lib_prefix=no
9916
  need_version=no
9917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9918
  soname_spec='${libname}${release}${shared_ext}$major'
9919
  shlibpath_var=LD_LIBRARY_PATH
9920
  hardcode_into_libs=yes
9921
  ;;
9922
 
9923
hpux9* | hpux10* | hpux11*)
9924
  # Give a soname corresponding to the major version so that dld.sl refuses to
9925
  # link against other versions.
9926
  version_type=sunos
9927
  need_lib_prefix=no
9928
  need_version=no
9929
  case $host_cpu in
9930
  ia64*)
9931
    shrext_cmds='.so'
9932
    hardcode_into_libs=yes
9933
    dynamic_linker="$host_os dld.so"
9934
    shlibpath_var=LD_LIBRARY_PATH
9935
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937
    soname_spec='${libname}${release}${shared_ext}$major'
9938
    if test "X$HPUX_IA64_MODE" = X32; then
9939
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9940
    else
9941
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9942
    fi
9943
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944
    ;;
9945
  hppa*64*)
9946
    shrext_cmds='.sl'
9947
    hardcode_into_libs=yes
9948
    dynamic_linker="$host_os dld.sl"
9949
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9950
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952
    soname_spec='${libname}${release}${shared_ext}$major'
9953
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9954
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9955
    ;;
9956
  *)
9957
    shrext_cmds='.sl'
9958
    dynamic_linker="$host_os dld.sl"
9959
    shlibpath_var=SHLIB_PATH
9960
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9961
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962
    soname_spec='${libname}${release}${shared_ext}$major'
9963
    ;;
9964
  esac
9965
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9966
  postinstall_cmds='chmod 555 $lib'
9967
  ;;
9968
 
9969
interix[3-9]*)
9970
  version_type=linux
9971
  need_lib_prefix=no
9972
  need_version=no
9973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974
  soname_spec='${libname}${release}${shared_ext}$major'
9975
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9976
  shlibpath_var=LD_LIBRARY_PATH
9977
  shlibpath_overrides_runpath=no
9978
  hardcode_into_libs=yes
9979
  ;;
9980
 
9981
irix5* | irix6* | nonstopux*)
9982
  case $host_os in
9983
    nonstopux*) version_type=nonstopux ;;
9984
    *)
9985
        if test "$lt_cv_prog_gnu_ld" = yes; then
9986
                version_type=linux
9987
        else
9988
                version_type=irix
9989
        fi ;;
9990
  esac
9991
  need_lib_prefix=no
9992
  need_version=no
9993
  soname_spec='${libname}${release}${shared_ext}$major'
9994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9995
  case $host_os in
9996
  irix5* | nonstopux*)
9997
    libsuff= shlibsuff=
9998
    ;;
9999
  *)
10000
    case $LD in # libtool.m4 will add one of these switches to LD
10001
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10002
      libsuff= shlibsuff= libmagic=32-bit;;
10003
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10004
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10005
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10006
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10007
    *) libsuff= shlibsuff= libmagic=never-match;;
10008
    esac
10009
    ;;
10010
  esac
10011
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10012
  shlibpath_overrides_runpath=no
10013
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10014
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10015
  hardcode_into_libs=yes
10016
  ;;
10017
 
10018
# No shared lib support for Linux oldld, aout, or coff.
10019
linux*oldld* | linux*aout* | linux*coff*)
10020
  dynamic_linker=no
10021
  ;;
10022
 
10023
# This must be Linux ELF.
10024
linux* | k*bsd*-gnu)
10025
  version_type=linux
10026
  need_lib_prefix=no
10027
  need_version=no
10028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029
  soname_spec='${libname}${release}${shared_ext}$major'
10030
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10031
  shlibpath_var=LD_LIBRARY_PATH
10032
  shlibpath_overrides_runpath=no
10033
  # Some binutils ld are patched to set DT_RUNPATH
10034
  save_LDFLAGS=$LDFLAGS
10035
  save_libdir=$libdir
10036
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10037
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10038
  cat >conftest.$ac_ext <<_ACEOF
10039
/* confdefs.h.  */
10040
_ACEOF
10041
cat confdefs.h >>conftest.$ac_ext
10042
cat >>conftest.$ac_ext <<_ACEOF
10043
/* end confdefs.h.  */
10044
 
10045
int
10046
main ()
10047
{
10048
 
10049
  ;
10050
  return 0;
10051
}
10052
_ACEOF
10053
rm -f conftest.$ac_objext conftest$ac_exeext
10054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055
  (eval $ac_link) 2>conftest.er1
10056
  ac_status=$?
10057
  grep -v '^ *+' conftest.er1 >conftest.err
10058
  rm -f conftest.er1
10059
  cat conftest.err >&5
10060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061
  (exit $ac_status); } &&
10062
         { ac_try='test -z "$ac_c_werror_flag"
10063
                         || test ! -s conftest.err'
10064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065
  (eval $ac_try) 2>&5
10066
  ac_status=$?
10067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068
  (exit $ac_status); }; } &&
10069
         { ac_try='test -s conftest$ac_exeext'
10070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071
  (eval $ac_try) 2>&5
10072
  ac_status=$?
10073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074
  (exit $ac_status); }; }; then
10075
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10076
  shlibpath_overrides_runpath=yes
10077
fi
10078
 
10079
else
10080
  echo "$as_me: failed program was:" >&5
10081
sed 's/^/| /' conftest.$ac_ext >&5
10082
 
10083
fi
10084
rm -f conftest.err conftest.$ac_objext \
10085
      conftest$ac_exeext conftest.$ac_ext
10086
  LDFLAGS=$save_LDFLAGS
10087
  libdir=$save_libdir
10088
 
10089
  # This implies no fast_install, which is unacceptable.
10090
  # Some rework will be needed to allow for fast_install
10091
  # before this can be enabled.
10092
  hardcode_into_libs=yes
10093
 
10094
  # Append ld.so.conf contents to the search path
10095
  if test -f /etc/ld.so.conf; then
10096
    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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10097
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10098
  fi
10099
 
10100
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10101
  # powerpc, because MkLinux only supported shared libraries with the
10102
  # GNU dynamic linker.  Since this was broken with cross compilers,
10103
  # most powerpc-linux boxes support dynamic linking these days and
10104
  # people can always --disable-shared, the test was removed, and we
10105
  # assume the GNU/Linux dynamic linker is in use.
10106
  dynamic_linker='GNU/Linux ld.so'
10107
  ;;
10108
 
10109
netbsd*)
10110
  version_type=sunos
10111
  need_lib_prefix=no
10112
  need_version=no
10113
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10114
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10115
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10116
    dynamic_linker='NetBSD (a.out) ld.so'
10117
  else
10118
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10119
    soname_spec='${libname}${release}${shared_ext}$major'
10120
    dynamic_linker='NetBSD ld.elf_so'
10121
  fi
10122
  shlibpath_var=LD_LIBRARY_PATH
10123
  shlibpath_overrides_runpath=yes
10124
  hardcode_into_libs=yes
10125
  ;;
10126
 
10127
newsos6)
10128
  version_type=linux
10129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130
  shlibpath_var=LD_LIBRARY_PATH
10131
  shlibpath_overrides_runpath=yes
10132
  ;;
10133
 
10134
*nto* | *qnx*)
10135
  version_type=qnx
10136
  need_lib_prefix=no
10137
  need_version=no
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139
  soname_spec='${libname}${release}${shared_ext}$major'
10140
  shlibpath_var=LD_LIBRARY_PATH
10141
  shlibpath_overrides_runpath=no
10142
  hardcode_into_libs=yes
10143
  dynamic_linker='ldqnx.so'
10144
  ;;
10145
 
10146
openbsd*)
10147
  version_type=sunos
10148
  sys_lib_dlsearch_path_spec="/usr/lib"
10149
  need_lib_prefix=no
10150
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151
  case $host_os in
10152
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10153
    *)                          need_version=no  ;;
10154
  esac
10155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157
  shlibpath_var=LD_LIBRARY_PATH
10158
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159
    case $host_os in
10160
      openbsd2.[89] | openbsd2.[89].*)
10161
        shlibpath_overrides_runpath=no
10162
        ;;
10163
      *)
10164
        shlibpath_overrides_runpath=yes
10165
        ;;
10166
      esac
10167
  else
10168
    shlibpath_overrides_runpath=yes
10169
  fi
10170
  ;;
10171
 
10172
os2*)
10173
  libname_spec='$name'
10174
  shrext_cmds=".dll"
10175
  need_lib_prefix=no
10176
  library_names_spec='$libname${shared_ext} $libname.a'
10177
  dynamic_linker='OS/2 ld.exe'
10178
  shlibpath_var=LIBPATH
10179
  ;;
10180
 
10181
osf3* | osf4* | osf5*)
10182
  version_type=osf
10183
  need_lib_prefix=no
10184
  need_version=no
10185
  soname_spec='${libname}${release}${shared_ext}$major'
10186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187
  shlibpath_var=LD_LIBRARY_PATH
10188
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190
  ;;
10191
 
10192
rdos*)
10193
  dynamic_linker=no
10194
  ;;
10195
 
10196
solaris*)
10197
  version_type=linux
10198
  need_lib_prefix=no
10199
  need_version=no
10200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201
  soname_spec='${libname}${release}${shared_ext}$major'
10202
  shlibpath_var=LD_LIBRARY_PATH
10203
  shlibpath_overrides_runpath=yes
10204
  hardcode_into_libs=yes
10205
  # ldd complains unless libraries are executable
10206
  postinstall_cmds='chmod +x $lib'
10207
  ;;
10208
 
10209
sunos4*)
10210
  version_type=sunos
10211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10213
  shlibpath_var=LD_LIBRARY_PATH
10214
  shlibpath_overrides_runpath=yes
10215
  if test "$with_gnu_ld" = yes; then
10216
    need_lib_prefix=no
10217
  fi
10218
  need_version=yes
10219
  ;;
10220
 
10221
sysv4 | sysv4.3*)
10222
  version_type=linux
10223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224
  soname_spec='${libname}${release}${shared_ext}$major'
10225
  shlibpath_var=LD_LIBRARY_PATH
10226
  case $host_vendor in
10227
    sni)
10228
      shlibpath_overrides_runpath=no
10229
      need_lib_prefix=no
10230
      runpath_var=LD_RUN_PATH
10231
      ;;
10232
    siemens)
10233
      need_lib_prefix=no
10234
      ;;
10235
    motorola)
10236
      need_lib_prefix=no
10237
      need_version=no
10238
      shlibpath_overrides_runpath=no
10239
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10240
      ;;
10241
  esac
10242
  ;;
10243
 
10244
sysv4*MP*)
10245
  if test -d /usr/nec ;then
10246
    version_type=linux
10247
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10248
    soname_spec='$libname${shared_ext}.$major'
10249
    shlibpath_var=LD_LIBRARY_PATH
10250
  fi
10251
  ;;
10252
 
10253
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10254
  version_type=freebsd-elf
10255
  need_lib_prefix=no
10256
  need_version=no
10257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258
  soname_spec='${libname}${release}${shared_ext}$major'
10259
  shlibpath_var=LD_LIBRARY_PATH
10260
  shlibpath_overrides_runpath=yes
10261
  hardcode_into_libs=yes
10262
  if test "$with_gnu_ld" = yes; then
10263
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10264
  else
10265
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10266
    case $host_os in
10267
      sco3.2v5*)
10268
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10269
        ;;
10270
    esac
10271
  fi
10272
  sys_lib_dlsearch_path_spec='/usr/lib'
10273
  ;;
10274
 
10275
tpf*)
10276
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10277
  version_type=linux
10278
  need_lib_prefix=no
10279
  need_version=no
10280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281
  shlibpath_var=LD_LIBRARY_PATH
10282
  shlibpath_overrides_runpath=no
10283
  hardcode_into_libs=yes
10284
  ;;
10285
 
10286
uts4*)
10287
  version_type=linux
10288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289
  soname_spec='${libname}${release}${shared_ext}$major'
10290
  shlibpath_var=LD_LIBRARY_PATH
10291
  ;;
10292
 
10293
*)
10294
  dynamic_linker=no
10295
  ;;
10296
esac
10297
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10298
echo "${ECHO_T}$dynamic_linker" >&6
10299
test "$dynamic_linker" = no && can_build_shared=no
10300
 
10301
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10302
if test "$GCC" = yes; then
10303
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10304
fi
10305
 
10306
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10307
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10308
fi
10309
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10310
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10311
fi
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10400
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10401
hardcode_action=
10402
if test -n "$hardcode_libdir_flag_spec" ||
10403
   test -n "$runpath_var" ||
10404
   test "X$hardcode_automatic" = "Xyes" ; then
10405
 
10406
  # We can hardcode non-existent directories.
10407
  if test "$hardcode_direct" != no &&
10408
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10409
     # have to relink, otherwise we might link with an installed library
10410
     # when we should be linking with a yet-to-be-installed one
10411
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10412
     test "$hardcode_minus_L" != no; then
10413
    # Linking always hardcodes the temporary library directory.
10414
    hardcode_action=relink
10415
  else
10416
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10417
    hardcode_action=immediate
10418
  fi
10419
else
10420
  # We cannot hardcode anything, or else we can only hardcode existing
10421
  # directories.
10422
  hardcode_action=unsupported
10423
fi
10424
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10425
echo "${ECHO_T}$hardcode_action" >&6
10426
 
10427
if test "$hardcode_action" = relink ||
10428
   test "$inherit_rpath" = yes; then
10429
  # Fast installation is not supported
10430
  enable_fast_install=no
10431
elif test "$shlibpath_overrides_runpath" = yes ||
10432
     test "$enable_shared" = no; then
10433
  # Fast installation is not necessary
10434
  enable_fast_install=needless
10435
fi
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
  if test "x$enable_dlopen" != xyes; then
10443
  enable_dlopen=unknown
10444
  enable_dlopen_self=unknown
10445
  enable_dlopen_self_static=unknown
10446
else
10447
  lt_cv_dlopen=no
10448
  lt_cv_dlopen_libs=
10449
 
10450
  case $host_os in
10451
  beos*)
10452
    lt_cv_dlopen="load_add_on"
10453
    lt_cv_dlopen_libs=
10454
    lt_cv_dlopen_self=yes
10455
    ;;
10456
 
10457
  mingw* | pw32* | cegcc*)
10458
    lt_cv_dlopen="LoadLibrary"
10459
    lt_cv_dlopen_libs=
10460
    ;;
10461
 
10462
  cygwin*)
10463
    lt_cv_dlopen="dlopen"
10464
    lt_cv_dlopen_libs=
10465
    ;;
10466
 
10467
  darwin*)
10468
  # if libdl is installed we need to link against it
10469
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10470
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10471
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10472
  echo $ECHO_N "(cached) $ECHO_C" >&6
10473
else
10474
  ac_check_lib_save_LIBS=$LIBS
10475
LIBS="-ldl  $LIBS"
10476
cat >conftest.$ac_ext <<_ACEOF
10477
/* confdefs.h.  */
10478
_ACEOF
10479
cat confdefs.h >>conftest.$ac_ext
10480
cat >>conftest.$ac_ext <<_ACEOF
10481
/* end confdefs.h.  */
10482
 
10483
/* Override any gcc2 internal prototype to avoid an error.  */
10484
#ifdef __cplusplus
10485
extern "C"
10486
#endif
10487
/* We use char because int might match the return type of a gcc2
10488
   builtin and then its argument prototype would still apply.  */
10489
char dlopen ();
10490
int
10491
main ()
10492
{
10493
dlopen ();
10494
  ;
10495
  return 0;
10496
}
10497
_ACEOF
10498
rm -f conftest.$ac_objext conftest$ac_exeext
10499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500
  (eval $ac_link) 2>conftest.er1
10501
  ac_status=$?
10502
  grep -v '^ *+' conftest.er1 >conftest.err
10503
  rm -f conftest.er1
10504
  cat conftest.err >&5
10505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506
  (exit $ac_status); } &&
10507
         { ac_try='test -z "$ac_c_werror_flag"
10508
                         || test ! -s conftest.err'
10509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510
  (eval $ac_try) 2>&5
10511
  ac_status=$?
10512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513
  (exit $ac_status); }; } &&
10514
         { ac_try='test -s conftest$ac_exeext'
10515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516
  (eval $ac_try) 2>&5
10517
  ac_status=$?
10518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519
  (exit $ac_status); }; }; then
10520
  ac_cv_lib_dl_dlopen=yes
10521
else
10522
  echo "$as_me: failed program was:" >&5
10523
sed 's/^/| /' conftest.$ac_ext >&5
10524
 
10525
ac_cv_lib_dl_dlopen=no
10526
fi
10527
rm -f conftest.err conftest.$ac_objext \
10528
      conftest$ac_exeext conftest.$ac_ext
10529
LIBS=$ac_check_lib_save_LIBS
10530
fi
10531
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10532
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10533
if test $ac_cv_lib_dl_dlopen = yes; then
10534
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10535
else
10536
 
10537
    lt_cv_dlopen="dyld"
10538
    lt_cv_dlopen_libs=
10539
    lt_cv_dlopen_self=yes
10540
 
10541
fi
10542
 
10543
    ;;
10544
 
10545
  *)
10546
    echo "$as_me:$LINENO: checking for shl_load" >&5
10547
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10548
if test "${ac_cv_func_shl_load+set}" = set; then
10549
  echo $ECHO_N "(cached) $ECHO_C" >&6
10550
else
10551
  cat >conftest.$ac_ext <<_ACEOF
10552
/* confdefs.h.  */
10553
_ACEOF
10554
cat confdefs.h >>conftest.$ac_ext
10555
cat >>conftest.$ac_ext <<_ACEOF
10556
/* end confdefs.h.  */
10557
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10558
   For example, HP-UX 11i  declares gettimeofday.  */
10559
#define shl_load innocuous_shl_load
10560
 
10561
/* System header to define __stub macros and hopefully few prototypes,
10562
    which can conflict with char shl_load (); below.
10563
    Prefer  to  if __STDC__ is defined, since
10564
     exists even on freestanding compilers.  */
10565
 
10566
#ifdef __STDC__
10567
# include 
10568
#else
10569
# include 
10570
#endif
10571
 
10572
#undef shl_load
10573
 
10574
/* Override any gcc2 internal prototype to avoid an error.  */
10575
#ifdef __cplusplus
10576
extern "C"
10577
{
10578
#endif
10579
/* We use char because int might match the return type of a gcc2
10580
   builtin and then its argument prototype would still apply.  */
10581
char shl_load ();
10582
/* The GNU C library defines this for functions which it implements
10583
    to always fail with ENOSYS.  Some functions are actually named
10584
    something starting with __ and the normal name is an alias.  */
10585
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10586
choke me
10587
#else
10588
char (*f) () = shl_load;
10589
#endif
10590
#ifdef __cplusplus
10591
}
10592
#endif
10593
 
10594
int
10595
main ()
10596
{
10597
return f != shl_load;
10598
  ;
10599
  return 0;
10600
}
10601
_ACEOF
10602
rm -f conftest.$ac_objext conftest$ac_exeext
10603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604
  (eval $ac_link) 2>conftest.er1
10605
  ac_status=$?
10606
  grep -v '^ *+' conftest.er1 >conftest.err
10607
  rm -f conftest.er1
10608
  cat conftest.err >&5
10609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610
  (exit $ac_status); } &&
10611
         { ac_try='test -z "$ac_c_werror_flag"
10612
                         || test ! -s conftest.err'
10613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
  (eval $ac_try) 2>&5
10615
  ac_status=$?
10616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
  (exit $ac_status); }; } &&
10618
         { ac_try='test -s conftest$ac_exeext'
10619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620
  (eval $ac_try) 2>&5
10621
  ac_status=$?
10622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623
  (exit $ac_status); }; }; then
10624
  ac_cv_func_shl_load=yes
10625
else
10626
  echo "$as_me: failed program was:" >&5
10627
sed 's/^/| /' conftest.$ac_ext >&5
10628
 
10629
ac_cv_func_shl_load=no
10630
fi
10631
rm -f conftest.err conftest.$ac_objext \
10632
      conftest$ac_exeext conftest.$ac_ext
10633
fi
10634
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10635
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10636
if test $ac_cv_func_shl_load = yes; then
10637
  lt_cv_dlopen="shl_load"
10638
else
10639
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10640
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10641
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10642
  echo $ECHO_N "(cached) $ECHO_C" >&6
10643
else
10644
  ac_check_lib_save_LIBS=$LIBS
10645
LIBS="-ldld  $LIBS"
10646
cat >conftest.$ac_ext <<_ACEOF
10647
/* confdefs.h.  */
10648
_ACEOF
10649
cat confdefs.h >>conftest.$ac_ext
10650
cat >>conftest.$ac_ext <<_ACEOF
10651
/* end confdefs.h.  */
10652
 
10653
/* Override any gcc2 internal prototype to avoid an error.  */
10654
#ifdef __cplusplus
10655
extern "C"
10656
#endif
10657
/* We use char because int might match the return type of a gcc2
10658
   builtin and then its argument prototype would still apply.  */
10659
char shl_load ();
10660
int
10661
main ()
10662
{
10663
shl_load ();
10664
  ;
10665
  return 0;
10666
}
10667
_ACEOF
10668
rm -f conftest.$ac_objext conftest$ac_exeext
10669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670
  (eval $ac_link) 2>conftest.er1
10671
  ac_status=$?
10672
  grep -v '^ *+' conftest.er1 >conftest.err
10673
  rm -f conftest.er1
10674
  cat conftest.err >&5
10675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676
  (exit $ac_status); } &&
10677
         { ac_try='test -z "$ac_c_werror_flag"
10678
                         || test ! -s conftest.err'
10679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680
  (eval $ac_try) 2>&5
10681
  ac_status=$?
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
  (exit $ac_status); }; } &&
10684
         { ac_try='test -s conftest$ac_exeext'
10685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686
  (eval $ac_try) 2>&5
10687
  ac_status=$?
10688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689
  (exit $ac_status); }; }; then
10690
  ac_cv_lib_dld_shl_load=yes
10691
else
10692
  echo "$as_me: failed program was:" >&5
10693
sed 's/^/| /' conftest.$ac_ext >&5
10694
 
10695
ac_cv_lib_dld_shl_load=no
10696
fi
10697
rm -f conftest.err conftest.$ac_objext \
10698
      conftest$ac_exeext conftest.$ac_ext
10699
LIBS=$ac_check_lib_save_LIBS
10700
fi
10701
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10702
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10703
if test $ac_cv_lib_dld_shl_load = yes; then
10704
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10705
else
10706
  echo "$as_me:$LINENO: checking for dlopen" >&5
10707
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10708
if test "${ac_cv_func_dlopen+set}" = set; then
10709
  echo $ECHO_N "(cached) $ECHO_C" >&6
10710
else
10711
  cat >conftest.$ac_ext <<_ACEOF
10712
/* confdefs.h.  */
10713
_ACEOF
10714
cat confdefs.h >>conftest.$ac_ext
10715
cat >>conftest.$ac_ext <<_ACEOF
10716
/* end confdefs.h.  */
10717
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10718
   For example, HP-UX 11i  declares gettimeofday.  */
10719
#define dlopen innocuous_dlopen
10720
 
10721
/* System header to define __stub macros and hopefully few prototypes,
10722
    which can conflict with char dlopen (); below.
10723
    Prefer  to  if __STDC__ is defined, since
10724
     exists even on freestanding compilers.  */
10725
 
10726
#ifdef __STDC__
10727
# include 
10728
#else
10729
# include 
10730
#endif
10731
 
10732
#undef dlopen
10733
 
10734
/* Override any gcc2 internal prototype to avoid an error.  */
10735
#ifdef __cplusplus
10736
extern "C"
10737
{
10738
#endif
10739
/* We use char because int might match the return type of a gcc2
10740
   builtin and then its argument prototype would still apply.  */
10741
char dlopen ();
10742
/* The GNU C library defines this for functions which it implements
10743
    to always fail with ENOSYS.  Some functions are actually named
10744
    something starting with __ and the normal name is an alias.  */
10745
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10746
choke me
10747
#else
10748
char (*f) () = dlopen;
10749
#endif
10750
#ifdef __cplusplus
10751
}
10752
#endif
10753
 
10754
int
10755
main ()
10756
{
10757
return f != dlopen;
10758
  ;
10759
  return 0;
10760
}
10761
_ACEOF
10762
rm -f conftest.$ac_objext conftest$ac_exeext
10763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764
  (eval $ac_link) 2>conftest.er1
10765
  ac_status=$?
10766
  grep -v '^ *+' conftest.er1 >conftest.err
10767
  rm -f conftest.er1
10768
  cat conftest.err >&5
10769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770
  (exit $ac_status); } &&
10771
         { ac_try='test -z "$ac_c_werror_flag"
10772
                         || test ! -s conftest.err'
10773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774
  (eval $ac_try) 2>&5
10775
  ac_status=$?
10776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
  (exit $ac_status); }; } &&
10778
         { ac_try='test -s conftest$ac_exeext'
10779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780
  (eval $ac_try) 2>&5
10781
  ac_status=$?
10782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783
  (exit $ac_status); }; }; then
10784
  ac_cv_func_dlopen=yes
10785
else
10786
  echo "$as_me: failed program was:" >&5
10787
sed 's/^/| /' conftest.$ac_ext >&5
10788
 
10789
ac_cv_func_dlopen=no
10790
fi
10791
rm -f conftest.err conftest.$ac_objext \
10792
      conftest$ac_exeext conftest.$ac_ext
10793
fi
10794
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10795
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10796
if test $ac_cv_func_dlopen = yes; then
10797
  lt_cv_dlopen="dlopen"
10798
else
10799
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10800
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10801
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10802
  echo $ECHO_N "(cached) $ECHO_C" >&6
10803
else
10804
  ac_check_lib_save_LIBS=$LIBS
10805
LIBS="-ldl  $LIBS"
10806
cat >conftest.$ac_ext <<_ACEOF
10807
/* confdefs.h.  */
10808
_ACEOF
10809
cat confdefs.h >>conftest.$ac_ext
10810
cat >>conftest.$ac_ext <<_ACEOF
10811
/* end confdefs.h.  */
10812
 
10813
/* Override any gcc2 internal prototype to avoid an error.  */
10814
#ifdef __cplusplus
10815
extern "C"
10816
#endif
10817
/* We use char because int might match the return type of a gcc2
10818
   builtin and then its argument prototype would still apply.  */
10819
char dlopen ();
10820
int
10821
main ()
10822
{
10823
dlopen ();
10824
  ;
10825
  return 0;
10826
}
10827
_ACEOF
10828
rm -f conftest.$ac_objext conftest$ac_exeext
10829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830
  (eval $ac_link) 2>conftest.er1
10831
  ac_status=$?
10832
  grep -v '^ *+' conftest.er1 >conftest.err
10833
  rm -f conftest.er1
10834
  cat conftest.err >&5
10835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836
  (exit $ac_status); } &&
10837
         { ac_try='test -z "$ac_c_werror_flag"
10838
                         || test ! -s conftest.err'
10839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840
  (eval $ac_try) 2>&5
10841
  ac_status=$?
10842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843
  (exit $ac_status); }; } &&
10844
         { ac_try='test -s conftest$ac_exeext'
10845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846
  (eval $ac_try) 2>&5
10847
  ac_status=$?
10848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849
  (exit $ac_status); }; }; then
10850
  ac_cv_lib_dl_dlopen=yes
10851
else
10852
  echo "$as_me: failed program was:" >&5
10853
sed 's/^/| /' conftest.$ac_ext >&5
10854
 
10855
ac_cv_lib_dl_dlopen=no
10856
fi
10857
rm -f conftest.err conftest.$ac_objext \
10858
      conftest$ac_exeext conftest.$ac_ext
10859
LIBS=$ac_check_lib_save_LIBS
10860
fi
10861
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10862
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10863
if test $ac_cv_lib_dl_dlopen = yes; then
10864
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865
else
10866
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10867
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10868
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10869
  echo $ECHO_N "(cached) $ECHO_C" >&6
10870
else
10871
  ac_check_lib_save_LIBS=$LIBS
10872
LIBS="-lsvld  $LIBS"
10873
cat >conftest.$ac_ext <<_ACEOF
10874
/* confdefs.h.  */
10875
_ACEOF
10876
cat confdefs.h >>conftest.$ac_ext
10877
cat >>conftest.$ac_ext <<_ACEOF
10878
/* end confdefs.h.  */
10879
 
10880
/* Override any gcc2 internal prototype to avoid an error.  */
10881
#ifdef __cplusplus
10882
extern "C"
10883
#endif
10884
/* We use char because int might match the return type of a gcc2
10885
   builtin and then its argument prototype would still apply.  */
10886
char dlopen ();
10887
int
10888
main ()
10889
{
10890
dlopen ();
10891
  ;
10892
  return 0;
10893
}
10894
_ACEOF
10895
rm -f conftest.$ac_objext conftest$ac_exeext
10896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897
  (eval $ac_link) 2>conftest.er1
10898
  ac_status=$?
10899
  grep -v '^ *+' conftest.er1 >conftest.err
10900
  rm -f conftest.er1
10901
  cat conftest.err >&5
10902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903
  (exit $ac_status); } &&
10904
         { ac_try='test -z "$ac_c_werror_flag"
10905
                         || test ! -s conftest.err'
10906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907
  (eval $ac_try) 2>&5
10908
  ac_status=$?
10909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
  (exit $ac_status); }; } &&
10911
         { ac_try='test -s conftest$ac_exeext'
10912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913
  (eval $ac_try) 2>&5
10914
  ac_status=$?
10915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916
  (exit $ac_status); }; }; then
10917
  ac_cv_lib_svld_dlopen=yes
10918
else
10919
  echo "$as_me: failed program was:" >&5
10920
sed 's/^/| /' conftest.$ac_ext >&5
10921
 
10922
ac_cv_lib_svld_dlopen=no
10923
fi
10924
rm -f conftest.err conftest.$ac_objext \
10925
      conftest$ac_exeext conftest.$ac_ext
10926
LIBS=$ac_check_lib_save_LIBS
10927
fi
10928
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10929
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10930
if test $ac_cv_lib_svld_dlopen = yes; then
10931
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10932
else
10933
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10934
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10935
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10936
  echo $ECHO_N "(cached) $ECHO_C" >&6
10937
else
10938
  ac_check_lib_save_LIBS=$LIBS
10939
LIBS="-ldld  $LIBS"
10940
cat >conftest.$ac_ext <<_ACEOF
10941
/* confdefs.h.  */
10942
_ACEOF
10943
cat confdefs.h >>conftest.$ac_ext
10944
cat >>conftest.$ac_ext <<_ACEOF
10945
/* end confdefs.h.  */
10946
 
10947
/* Override any gcc2 internal prototype to avoid an error.  */
10948
#ifdef __cplusplus
10949
extern "C"
10950
#endif
10951
/* We use char because int might match the return type of a gcc2
10952
   builtin and then its argument prototype would still apply.  */
10953
char dld_link ();
10954
int
10955
main ()
10956
{
10957
dld_link ();
10958
  ;
10959
  return 0;
10960
}
10961
_ACEOF
10962
rm -f conftest.$ac_objext conftest$ac_exeext
10963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964
  (eval $ac_link) 2>conftest.er1
10965
  ac_status=$?
10966
  grep -v '^ *+' conftest.er1 >conftest.err
10967
  rm -f conftest.er1
10968
  cat conftest.err >&5
10969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970
  (exit $ac_status); } &&
10971
         { ac_try='test -z "$ac_c_werror_flag"
10972
                         || test ! -s conftest.err'
10973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974
  (eval $ac_try) 2>&5
10975
  ac_status=$?
10976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977
  (exit $ac_status); }; } &&
10978
         { ac_try='test -s conftest$ac_exeext'
10979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980
  (eval $ac_try) 2>&5
10981
  ac_status=$?
10982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983
  (exit $ac_status); }; }; then
10984
  ac_cv_lib_dld_dld_link=yes
10985
else
10986
  echo "$as_me: failed program was:" >&5
10987
sed 's/^/| /' conftest.$ac_ext >&5
10988
 
10989
ac_cv_lib_dld_dld_link=no
10990
fi
10991
rm -f conftest.err conftest.$ac_objext \
10992
      conftest$ac_exeext conftest.$ac_ext
10993
LIBS=$ac_check_lib_save_LIBS
10994
fi
10995
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10996
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10997
if test $ac_cv_lib_dld_dld_link = yes; then
10998
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10999
fi
11000
 
11001
 
11002
fi
11003
 
11004
 
11005
fi
11006
 
11007
 
11008
fi
11009
 
11010
 
11011
fi
11012
 
11013
 
11014
fi
11015
 
11016
    ;;
11017
  esac
11018
 
11019
  if test "x$lt_cv_dlopen" != xno; then
11020
    enable_dlopen=yes
11021
  else
11022
    enable_dlopen=no
11023
  fi
11024
 
11025
  case $lt_cv_dlopen in
11026
  dlopen)
11027
    save_CPPFLAGS="$CPPFLAGS"
11028
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11029
 
11030
    save_LDFLAGS="$LDFLAGS"
11031
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11032
 
11033
    save_LIBS="$LIBS"
11034
    LIBS="$lt_cv_dlopen_libs $LIBS"
11035
 
11036
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11037
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11038
if test "${lt_cv_dlopen_self+set}" = set; then
11039
  echo $ECHO_N "(cached) $ECHO_C" >&6
11040
else
11041
          if test "$cross_compiling" = yes; then :
11042
  lt_cv_dlopen_self=cross
11043
else
11044
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11045
  lt_status=$lt_dlunknown
11046
  cat > conftest.$ac_ext <<_LT_EOF
11047
#line 11047 "configure"
11048
#include "confdefs.h"
11049
 
11050
#if HAVE_DLFCN_H
11051
#include 
11052
#endif
11053
 
11054
#include 
11055
 
11056
#ifdef RTLD_GLOBAL
11057
#  define LT_DLGLOBAL           RTLD_GLOBAL
11058
#else
11059
#  ifdef DL_GLOBAL
11060
#    define LT_DLGLOBAL         DL_GLOBAL
11061
#  else
11062
#    define LT_DLGLOBAL         0
11063
#  endif
11064
#endif
11065
 
11066
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11067
   find out it does not work in some platform. */
11068
#ifndef LT_DLLAZY_OR_NOW
11069
#  ifdef RTLD_LAZY
11070
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11071
#  else
11072
#    ifdef DL_LAZY
11073
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11074
#    else
11075
#      ifdef RTLD_NOW
11076
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11077
#      else
11078
#        ifdef DL_NOW
11079
#          define LT_DLLAZY_OR_NOW      DL_NOW
11080
#        else
11081
#          define LT_DLLAZY_OR_NOW      0
11082
#        endif
11083
#      endif
11084
#    endif
11085
#  endif
11086
#endif
11087
 
11088
void fnord() { int i=42;}
11089
int main ()
11090
{
11091
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092
  int status = $lt_dlunknown;
11093
 
11094
  if (self)
11095
    {
11096
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098
      /* dlclose (self); */
11099
    }
11100
  else
11101
    puts (dlerror ());
11102
 
11103
  return status;
11104
}
11105
_LT_EOF
11106
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107
  (eval $ac_link) 2>&5
11108
  ac_status=$?
11109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11111
    (./conftest; exit; ) >&5 2>/dev/null
11112
    lt_status=$?
11113
    case x$lt_status in
11114
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11115
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11116
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11117
    esac
11118
  else :
11119
    # compilation failed
11120
    lt_cv_dlopen_self=no
11121
  fi
11122
fi
11123
rm -fr conftest*
11124
 
11125
 
11126
fi
11127
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11128
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11129
 
11130
    if test "x$lt_cv_dlopen_self" = xyes; then
11131
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11132
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11133
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11134
if test "${lt_cv_dlopen_self_static+set}" = set; then
11135
  echo $ECHO_N "(cached) $ECHO_C" >&6
11136
else
11137
          if test "$cross_compiling" = yes; then :
11138
  lt_cv_dlopen_self_static=cross
11139
else
11140
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11141
  lt_status=$lt_dlunknown
11142
  cat > conftest.$ac_ext <<_LT_EOF
11143
#line 11143 "configure"
11144
#include "confdefs.h"
11145
 
11146
#if HAVE_DLFCN_H
11147
#include 
11148
#endif
11149
 
11150
#include 
11151
 
11152
#ifdef RTLD_GLOBAL
11153
#  define LT_DLGLOBAL           RTLD_GLOBAL
11154
#else
11155
#  ifdef DL_GLOBAL
11156
#    define LT_DLGLOBAL         DL_GLOBAL
11157
#  else
11158
#    define LT_DLGLOBAL         0
11159
#  endif
11160
#endif
11161
 
11162
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11163
   find out it does not work in some platform. */
11164
#ifndef LT_DLLAZY_OR_NOW
11165
#  ifdef RTLD_LAZY
11166
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11167
#  else
11168
#    ifdef DL_LAZY
11169
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11170
#    else
11171
#      ifdef RTLD_NOW
11172
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11173
#      else
11174
#        ifdef DL_NOW
11175
#          define LT_DLLAZY_OR_NOW      DL_NOW
11176
#        else
11177
#          define LT_DLLAZY_OR_NOW      0
11178
#        endif
11179
#      endif
11180
#    endif
11181
#  endif
11182
#endif
11183
 
11184
void fnord() { int i=42;}
11185
int main ()
11186
{
11187
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188
  int status = $lt_dlunknown;
11189
 
11190
  if (self)
11191
    {
11192
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11193
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194
      /* dlclose (self); */
11195
    }
11196
  else
11197
    puts (dlerror ());
11198
 
11199
  return status;
11200
}
11201
_LT_EOF
11202
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203
  (eval $ac_link) 2>&5
11204
  ac_status=$?
11205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207
    (./conftest; exit; ) >&5 2>/dev/null
11208
    lt_status=$?
11209
    case x$lt_status in
11210
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11213
    esac
11214
  else :
11215
    # compilation failed
11216
    lt_cv_dlopen_self_static=no
11217
  fi
11218
fi
11219
rm -fr conftest*
11220
 
11221
 
11222
fi
11223
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11225
    fi
11226
 
11227
    CPPFLAGS="$save_CPPFLAGS"
11228
    LDFLAGS="$save_LDFLAGS"
11229
    LIBS="$save_LIBS"
11230
    ;;
11231
  esac
11232
 
11233
  case $lt_cv_dlopen_self in
11234
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235
  *) enable_dlopen_self=unknown ;;
11236
  esac
11237
 
11238
  case $lt_cv_dlopen_self_static in
11239
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240
  *) enable_dlopen_self_static=unknown ;;
11241
  esac
11242
fi
11243
 
11244
 
11245
 
11246
 
11247
 
11248
 
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
striplib=
11261
old_striplib=
11262
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11263
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11264
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11265
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11266
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11267
  echo "$as_me:$LINENO: result: yes" >&5
11268
echo "${ECHO_T}yes" >&6
11269
else
11270
# FIXME - insert some real tests, host_os isn't really good enough
11271
  case $host_os in
11272
  darwin*)
11273
    if test -n "$STRIP" ; then
11274
      striplib="$STRIP -x"
11275
      old_striplib="$STRIP -S"
11276
      echo "$as_me:$LINENO: result: yes" >&5
11277
echo "${ECHO_T}yes" >&6
11278
    else
11279
      echo "$as_me:$LINENO: result: no" >&5
11280
echo "${ECHO_T}no" >&6
11281
    fi
11282
    ;;
11283
  *)
11284
    echo "$as_me:$LINENO: result: no" >&5
11285
echo "${ECHO_T}no" >&6
11286
    ;;
11287
  esac
11288
fi
11289
 
11290
 
11291
 
11292
 
11293
 
11294
 
11295
 
11296
 
11297
 
11298
 
11299
 
11300
 
11301
  # Report which library types will actually be built
11302
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11303
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11304
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11305
echo "${ECHO_T}$can_build_shared" >&6
11306
 
11307
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11308
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11309
  test "$can_build_shared" = "no" && enable_shared=no
11310
 
11311
  # On AIX, shared libraries and static libraries use the same namespace, and
11312
  # are all built from PIC.
11313
  case $host_os in
11314
  aix3*)
11315
    test "$enable_shared" = yes && enable_static=no
11316
    if test -n "$RANLIB"; then
11317
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11318
      postinstall_cmds='$RANLIB $lib'
11319
    fi
11320
    ;;
11321
 
11322
  aix[4-9]*)
11323
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11324
      test "$enable_shared" = yes && enable_static=no
11325
    fi
11326
    ;;
11327
  esac
11328
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11329
echo "${ECHO_T}$enable_shared" >&6
11330
 
11331
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11332
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11333
  # Make sure either enable_shared or enable_static is yes.
11334
  test "$enable_shared" = yes || enable_static=yes
11335
  echo "$as_me:$LINENO: result: $enable_static" >&5
11336
echo "${ECHO_T}$enable_static" >&6
11337
 
11338
 
11339
 
11340
 
11341
fi
11342
ac_ext=c
11343
ac_cpp='$CPP $CPPFLAGS'
11344
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11347
 
11348
CC="$lt_save_CC"
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
                  ac_config_commands="$ac_config_commands libtool"
11363
 
11364
 
11365
 
11366
 
11367
# Only expand once:
11368
 
11369
 
11370
fi
11371
 
11372
          ac_config_files="$ac_config_files Makefile"
11373
 
11374
cat >confcache <<\_ACEOF
11375
# This file is a shell script that caches the results of configure
11376
# tests run on this system so they can be shared between configure
11377
# scripts and configure runs, see configure's option --config-cache.
11378
# It is not useful on other systems.  If it contains results you don't
11379
# want to keep, you may remove or edit it.
11380
#
11381
# config.status only pays attention to the cache file if you give it
11382
# the --recheck option to rerun configure.
11383
#
11384
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11385
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11386
# following values.
11387
 
11388
_ACEOF
11389
 
11390
# The following way of writing the cache mishandles newlines in values,
11391
# but we know of no workaround that is simple, portable, and efficient.
11392
# So, don't put newlines in cache variables' values.
11393
# Ultrix sh set writes to stderr and can't be redirected directly,
11394
# and sets the high bit in the cache file unless we assign to the vars.
11395
{
11396
  (set) 2>&1 |
11397
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11398
    *ac_space=\ *)
11399
      # `set' does not quote correctly, so add quotes (double-quote
11400
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11401
      sed -n \
11402
        "s/'/'\\\\''/g;
11403
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11404
      ;;
11405
    *)
11406
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11407
      sed -n \
11408
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11409
      ;;
11410
    esac;
11411
} |
11412
  sed '
11413
     t clear
11414
     : clear
11415
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11416
     t end
11417
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11418
     : end' >>confcache
11419
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11420
  if test -w $cache_file; then
11421
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11422
    cat confcache >$cache_file
11423
  else
11424
    echo "not updating unwritable cache $cache_file"
11425
  fi
11426
fi
11427
rm -f confcache
11428
 
11429
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11430
# Let make expand exec_prefix.
11431
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11432
 
11433
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11434
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11435
# trailing colons and then remove the whole line if VPATH becomes empty
11436
# (actually we leave an empty line to preserve line numbers).
11437
if test "x$srcdir" = x.; then
11438
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11439
s/:*\$(srcdir):*/:/;
11440
s/:*\${srcdir}:*/:/;
11441
s/:*@srcdir@:*/:/;
11442
s/^\([^=]*=[     ]*\):*/\1/;
11443
s/:*$//;
11444
s/^[^=]*=[       ]*$//;
11445
}'
11446
fi
11447
 
11448
# Transform confdefs.h into DEFS.
11449
# Protect against shell expansion while executing Makefile rules.
11450
# Protect against Makefile macro expansion.
11451
#
11452
# If the first sed substitution is executed (which looks for macros that
11453
# take arguments), then we branch to the quote section.  Otherwise,
11454
# look for a macro that doesn't take arguments.
11455
cat >confdef2opt.sed <<\_ACEOF
11456
t clear
11457
: clear
11458
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11459
t quote
11460
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11461
t quote
11462
d
11463
: quote
11464
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11465
s,\[,\\&,g
11466
s,\],\\&,g
11467
s,\$,$$,g
11468
p
11469
_ACEOF
11470
# We use echo to avoid assuming a particular line-breaking character.
11471
# The extra dot is to prevent the shell from consuming trailing
11472
# line-breaks from the sub-command output.  A line-break within
11473
# single-quotes doesn't work because, if this script is created in a
11474
# platform that uses two characters for line-breaks (e.g., DOS), tr
11475
# would break.
11476
ac_LF_and_DOT=`echo; echo .`
11477
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11478
rm -f confdef2opt.sed
11479
 
11480
 
11481
ac_libobjs=
11482
ac_ltlibobjs=
11483
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11484
  # 1. Remove the extension, and $U if already installed.
11485
  ac_i=`echo "$ac_i" |
11486
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11487
  # 2. Add them.
11488
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11489
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11490
done
11491
LIBOBJS=$ac_libobjs
11492
 
11493
LTLIBOBJS=$ac_ltlibobjs
11494
 
11495
 
11496
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11497
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11498
Usually this means the macro was only invoked conditionally." >&5
11499
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11500
Usually this means the macro was only invoked conditionally." >&2;}
11501
   { (exit 1); exit 1; }; }
11502
fi
11503
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11504
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11505
Usually this means the macro was only invoked conditionally." >&5
11506
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11507
Usually this means the macro was only invoked conditionally." >&2;}
11508
   { (exit 1); exit 1; }; }
11509
fi
11510
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11511
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11512
Usually this means the macro was only invoked conditionally." >&5
11513
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11514
Usually this means the macro was only invoked conditionally." >&2;}
11515
   { (exit 1); exit 1; }; }
11516
fi
11517
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11518
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11519
Usually this means the macro was only invoked conditionally." >&5
11520
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11521
Usually this means the macro was only invoked conditionally." >&2;}
11522
   { (exit 1); exit 1; }; }
11523
fi
11524
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11525
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11526
Usually this means the macro was only invoked conditionally." >&5
11527
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11528
Usually this means the macro was only invoked conditionally." >&2;}
11529
   { (exit 1); exit 1; }; }
11530
fi
11531
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11532
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11533
Usually this means the macro was only invoked conditionally." >&5
11534
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11535
Usually this means the macro was only invoked conditionally." >&2;}
11536
   { (exit 1); exit 1; }; }
11537
fi
11538
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11539
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11540
Usually this means the macro was only invoked conditionally." >&5
11541
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11542
Usually this means the macro was only invoked conditionally." >&2;}
11543
   { (exit 1); exit 1; }; }
11544
fi
11545
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11546
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11547
Usually this means the macro was only invoked conditionally." >&5
11548
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11549
Usually this means the macro was only invoked conditionally." >&2;}
11550
   { (exit 1); exit 1; }; }
11551
fi
11552
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11553
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11554
Usually this means the macro was only invoked conditionally." >&5
11555
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11556
Usually this means the macro was only invoked conditionally." >&2;}
11557
   { (exit 1); exit 1; }; }
11558
fi
11559
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11560
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11561
Usually this means the macro was only invoked conditionally." >&5
11562
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11563
Usually this means the macro was only invoked conditionally." >&2;}
11564
   { (exit 1); exit 1; }; }
11565
fi
11566
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11567
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11568
Usually this means the macro was only invoked conditionally." >&5
11569
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11570
Usually this means the macro was only invoked conditionally." >&2;}
11571
   { (exit 1); exit 1; }; }
11572
fi
11573
 
11574
: ${CONFIG_STATUS=./config.status}
11575
ac_clean_files_save=$ac_clean_files
11576
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11577
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11578
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11579
cat >$CONFIG_STATUS <<_ACEOF
11580
#! $SHELL
11581
# Generated by $as_me.
11582
# Run this file to recreate the current configuration.
11583
# Compiler output produced by configure, useful for debugging
11584
# configure, is in config.log if it exists.
11585
 
11586
debug=false
11587
ac_cs_recheck=false
11588
ac_cs_silent=false
11589
SHELL=\${CONFIG_SHELL-$SHELL}
11590
_ACEOF
11591
 
11592
cat >>$CONFIG_STATUS <<\_ACEOF
11593
## --------------------- ##
11594
## M4sh Initialization.  ##
11595
## --------------------- ##
11596
 
11597
# Be Bourne compatible
11598
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11599
  emulate sh
11600
  NULLCMD=:
11601
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11602
  # is contrary to our usage.  Disable this feature.
11603
  alias -g '${1+"$@"}'='"$@"'
11604
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11605
  set -o posix
11606
fi
11607
DUALCASE=1; export DUALCASE # for MKS sh
11608
 
11609
# Support unset when possible.
11610
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11611
  as_unset=unset
11612
else
11613
  as_unset=false
11614
fi
11615
 
11616
 
11617
# Work around bugs in pre-3.0 UWIN ksh.
11618
$as_unset ENV MAIL MAILPATH
11619
PS1='$ '
11620
PS2='> '
11621
PS4='+ '
11622
 
11623
# NLS nuisances.
11624
for as_var in \
11625
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11626
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11627
  LC_TELEPHONE LC_TIME
11628
do
11629
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11630
    eval $as_var=C; export $as_var
11631
  else
11632
    $as_unset $as_var
11633
  fi
11634
done
11635
 
11636
# Required to use basename.
11637
if expr a : '\(a\)' >/dev/null 2>&1; then
11638
  as_expr=expr
11639
else
11640
  as_expr=false
11641
fi
11642
 
11643
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11644
  as_basename=basename
11645
else
11646
  as_basename=false
11647
fi
11648
 
11649
 
11650
# Name of the executable.
11651
as_me=`$as_basename "$0" ||
11652
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11653
         X"$0" : 'X\(//\)$' \| \
11654
         X"$0" : 'X\(/\)$' \| \
11655
         .     : '\(.\)' 2>/dev/null ||
11656
echo X/"$0" |
11657
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11658
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11659
          /^X\/\(\/\).*/{ s//\1/; q; }
11660
          s/.*/./; q'`
11661
 
11662
 
11663
# PATH needs CR, and LINENO needs CR and PATH.
11664
# Avoid depending upon Character Ranges.
11665
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11666
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11667
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11668
as_cr_digits='0123456789'
11669
as_cr_alnum=$as_cr_Letters$as_cr_digits
11670
 
11671
# The user is always right.
11672
if test "${PATH_SEPARATOR+set}" != set; then
11673
  echo "#! /bin/sh" >conf$$.sh
11674
  echo  "exit 0"   >>conf$$.sh
11675
  chmod +x conf$$.sh
11676
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11677
    PATH_SEPARATOR=';'
11678
  else
11679
    PATH_SEPARATOR=:
11680
  fi
11681
  rm -f conf$$.sh
11682
fi
11683
 
11684
 
11685
  as_lineno_1=$LINENO
11686
  as_lineno_2=$LINENO
11687
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11688
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11689
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11690
  # Find who we are.  Look in the path if we contain no path at all
11691
  # relative or not.
11692
  case $0 in
11693
    *[\\/]* ) as_myself=$0 ;;
11694
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695
for as_dir in $PATH
11696
do
11697
  IFS=$as_save_IFS
11698
  test -z "$as_dir" && as_dir=.
11699
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11700
done
11701
 
11702
       ;;
11703
  esac
11704
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11705
  # in which case we are not to be found in the path.
11706
  if test "x$as_myself" = x; then
11707
    as_myself=$0
11708
  fi
11709
  if test ! -f "$as_myself"; then
11710
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11711
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11712
   { (exit 1); exit 1; }; }
11713
  fi
11714
  case $CONFIG_SHELL in
11715
  '')
11716
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11718
do
11719
  IFS=$as_save_IFS
11720
  test -z "$as_dir" && as_dir=.
11721
  for as_base in sh bash ksh sh5; do
11722
         case $as_dir in
11723
         /*)
11724
           if ("$as_dir/$as_base" -c '
11725
  as_lineno_1=$LINENO
11726
  as_lineno_2=$LINENO
11727
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11728
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11729
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11730
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11731
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11732
             CONFIG_SHELL=$as_dir/$as_base
11733
             export CONFIG_SHELL
11734
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11735
           fi;;
11736
         esac
11737
       done
11738
done
11739
;;
11740
  esac
11741
 
11742
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11743
  # uniformly replaced by the line number.  The first 'sed' inserts a
11744
  # line-number line before each line; the second 'sed' does the real
11745
  # work.  The second script uses 'N' to pair each line-number line
11746
  # with the numbered line, and appends trailing '-' during
11747
  # substitution so that $LINENO is not a special case at line end.
11748
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11749
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11750
  sed '=' <$as_myself |
11751
    sed '
11752
      N
11753
      s,$,-,
11754
      : loop
11755
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11756
      t loop
11757
      s,-$,,
11758
      s,^['$as_cr_digits']*\n,,
11759
    ' >$as_me.lineno &&
11760
  chmod +x $as_me.lineno ||
11761
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11762
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11763
   { (exit 1); exit 1; }; }
11764
 
11765
  # Don't try to exec as it changes $[0], causing all sort of problems
11766
  # (the dirname of $[0] is not the place where we might find the
11767
  # original and so on.  Autoconf is especially sensible to this).
11768
  . ./$as_me.lineno
11769
  # Exit status is that of the last command.
11770
  exit
11771
}
11772
 
11773
 
11774
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11775
  *c*,-n*) ECHO_N= ECHO_C='
11776
' ECHO_T='      ' ;;
11777
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11778
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11779
esac
11780
 
11781
if expr a : '\(a\)' >/dev/null 2>&1; then
11782
  as_expr=expr
11783
else
11784
  as_expr=false
11785
fi
11786
 
11787
rm -f conf$$ conf$$.exe conf$$.file
11788
echo >conf$$.file
11789
if ln -s conf$$.file conf$$ 2>/dev/null; then
11790
  # We could just check for DJGPP; but this test a) works b) is more generic
11791
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11792
  if test -f conf$$.exe; then
11793
    # Don't use ln at all; we don't have any links
11794
    as_ln_s='cp -p'
11795
  else
11796
    as_ln_s='ln -s'
11797
  fi
11798
elif ln conf$$.file conf$$ 2>/dev/null; then
11799
  as_ln_s=ln
11800
else
11801
  as_ln_s='cp -p'
11802
fi
11803
rm -f conf$$ conf$$.exe conf$$.file
11804
 
11805
if mkdir -p . 2>/dev/null; then
11806
  as_mkdir_p=:
11807
else
11808
  test -d ./-p && rmdir ./-p
11809
  as_mkdir_p=false
11810
fi
11811
 
11812
as_executable_p="test -f"
11813
 
11814
# Sed expression to map a string onto a valid CPP name.
11815
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11816
 
11817
# Sed expression to map a string onto a valid variable name.
11818
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11819
 
11820
 
11821
# IFS
11822
# We need space, tab and new line, in precisely that order.
11823
as_nl='
11824
'
11825
IFS="   $as_nl"
11826
 
11827
# CDPATH.
11828
$as_unset CDPATH
11829
 
11830
exec 6>&1
11831
 
11832
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11833
# report actual input values of CONFIG_FILES etc. instead of their
11834
# values after options handling.  Logging --version etc. is OK.
11835
exec 5>>config.log
11836
{
11837
  echo
11838
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11839
## Running $as_me. ##
11840
_ASBOX
11841
} >&5
11842
cat >&5 <<_CSEOF
11843
 
11844
This file was extended by newlib $as_me 1.17.0, which was
11845
generated by GNU Autoconf 2.59.  Invocation command line was
11846
 
11847
  CONFIG_FILES    = $CONFIG_FILES
11848
  CONFIG_HEADERS  = $CONFIG_HEADERS
11849
  CONFIG_LINKS    = $CONFIG_LINKS
11850
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11851
  $ $0 $@
11852
 
11853
_CSEOF
11854
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11855
echo >&5
11856
_ACEOF
11857
 
11858
# Files that config.status was made for.
11859
if test -n "$ac_config_files"; then
11860
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11861
fi
11862
 
11863
if test -n "$ac_config_headers"; then
11864
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11865
fi
11866
 
11867
if test -n "$ac_config_links"; then
11868
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11869
fi
11870
 
11871
if test -n "$ac_config_commands"; then
11872
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11873
fi
11874
 
11875
cat >>$CONFIG_STATUS <<\_ACEOF
11876
 
11877
ac_cs_usage="\
11878
\`$as_me' instantiates files from templates according to the
11879
current configuration.
11880
 
11881
Usage: $0 [OPTIONS] [FILE]...
11882
 
11883
  -h, --help       print this help, then exit
11884
  -V, --version    print version number, then exit
11885
  -q, --quiet      do not print progress messages
11886
  -d, --debug      don't remove temporary files
11887
      --recheck    update $as_me by reconfiguring in the same conditions
11888
  --file=FILE[:TEMPLATE]
11889
                   instantiate the configuration file FILE
11890
 
11891
Configuration files:
11892
$config_files
11893
 
11894
Configuration commands:
11895
$config_commands
11896
 
11897
Report bugs to ."
11898
_ACEOF
11899
 
11900
cat >>$CONFIG_STATUS <<_ACEOF
11901
ac_cs_version="\\
11902
newlib config.status 1.17.0
11903
configured by $0, generated by GNU Autoconf 2.59,
11904
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11905
 
11906
Copyright (C) 2003 Free Software Foundation, Inc.
11907
This config.status script is free software; the Free Software Foundation
11908
gives unlimited permission to copy, distribute and modify it."
11909
srcdir=$srcdir
11910
INSTALL="$INSTALL"
11911
_ACEOF
11912
 
11913
cat >>$CONFIG_STATUS <<\_ACEOF
11914
# If no file are specified by the user, then we need to provide default
11915
# value.  By we need to know if files were specified by the user.
11916
ac_need_defaults=:
11917
while test $# != 0
11918
do
11919
  case $1 in
11920
  --*=*)
11921
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11922
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11923
    ac_shift=:
11924
    ;;
11925
  -*)
11926
    ac_option=$1
11927
    ac_optarg=$2
11928
    ac_shift=shift
11929
    ;;
11930
  *) # This is not an option, so the user has probably given explicit
11931
     # arguments.
11932
     ac_option=$1
11933
     ac_need_defaults=false;;
11934
  esac
11935
 
11936
  case $ac_option in
11937
  # Handling of the options.
11938
_ACEOF
11939
cat >>$CONFIG_STATUS <<\_ACEOF
11940
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11941
    ac_cs_recheck=: ;;
11942
  --version | --vers* | -V )
11943
    echo "$ac_cs_version"; exit 0 ;;
11944
  --he | --h)
11945
    # Conflict between --help and --header
11946
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11947
Try \`$0 --help' for more information." >&5
11948
echo "$as_me: error: ambiguous option: $1
11949
Try \`$0 --help' for more information." >&2;}
11950
   { (exit 1); exit 1; }; };;
11951
  --help | --hel | -h )
11952
    echo "$ac_cs_usage"; exit 0 ;;
11953
  --debug | --d* | -d )
11954
    debug=: ;;
11955
  --file | --fil | --fi | --f )
11956
    $ac_shift
11957
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11958
    ac_need_defaults=false;;
11959
  --header | --heade | --head | --hea )
11960
    $ac_shift
11961
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11962
    ac_need_defaults=false;;
11963
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11964
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11965
    ac_cs_silent=: ;;
11966
 
11967
  # This is an error.
11968
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11969
Try \`$0 --help' for more information." >&5
11970
echo "$as_me: error: unrecognized option: $1
11971
Try \`$0 --help' for more information." >&2;}
11972
   { (exit 1); exit 1; }; } ;;
11973
 
11974
  *) ac_config_targets="$ac_config_targets $1" ;;
11975
 
11976
  esac
11977
  shift
11978
done
11979
 
11980
ac_configure_extra_args=
11981
 
11982
if $ac_cs_silent; then
11983
  exec 6>/dev/null
11984
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11985
fi
11986
 
11987
_ACEOF
11988
cat >>$CONFIG_STATUS <<_ACEOF
11989
if \$ac_cs_recheck; then
11990
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11991
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11992
fi
11993
 
11994
_ACEOF
11995
 
11996
cat >>$CONFIG_STATUS <<_ACEOF
11997
#
11998
# INIT-COMMANDS section.
11999
#
12000
 
12001
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12002
 
12003
 
12004
# The HP-UX ksh and POSIX shell print the target directory to stdout
12005
# if CDPATH is set.
12006
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12007
 
12008
sed_quote_subst='$sed_quote_subst'
12009
double_quote_subst='$double_quote_subst'
12010
delay_variable_subst='$delay_variable_subst'
12011
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12012
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12013
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12014
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12015
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12016
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12017
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12018
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12019
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12020
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12021
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12022
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12023
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12024
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12025
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12026
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12027
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12028
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12029
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12030
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12031
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12032
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12033
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12034
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12035
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12036
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12037
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12038
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12039
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12040
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12041
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12042
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12043
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12044
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12045
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12046
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12047
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12048
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12049
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12050
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12052
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12053
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12054
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12055
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12056
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12057
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"`'
12058
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12059
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12060
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12061
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12062
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12063
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12064
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12065
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12066
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12067
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12068
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12069
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12070
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12071
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12072
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12073
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12074
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12075
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12076
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12077
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12078
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12079
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12080
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12081
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12082
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12083
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12084
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12086
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12087
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12089
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12090
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12091
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12092
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12093
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12094
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12095
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12096
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12097
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12098
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12099
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12100
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12101
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12102
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12103
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12105
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12106
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12108
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12109
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12110
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12111
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12112
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12113
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12114
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12115
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12116
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12117
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12118
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12119
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12120
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12121
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12122
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12123
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12124
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12125
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12126
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12127
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12128
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12129
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12130
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12131
 
12132
LTCC='$LTCC'
12133
LTCFLAGS='$LTCFLAGS'
12134
compiler='$compiler_DEFAULT'
12135
 
12136
# Quote evaled strings.
12137
for var in SED \
12138
GREP \
12139
EGREP \
12140
FGREP \
12141
LD \
12142
NM \
12143
LN_S \
12144
lt_SP2NL \
12145
lt_NL2SP \
12146
reload_flag \
12147
deplibs_check_method \
12148
file_magic_cmd \
12149
AR \
12150
AR_FLAGS \
12151
STRIP \
12152
RANLIB \
12153
CC \
12154
CFLAGS \
12155
compiler \
12156
lt_cv_sys_global_symbol_pipe \
12157
lt_cv_sys_global_symbol_to_cdecl \
12158
lt_cv_sys_global_symbol_to_c_name_address \
12159
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12160
SHELL \
12161
ECHO \
12162
lt_prog_compiler_no_builtin_flag \
12163
lt_prog_compiler_wl \
12164
lt_prog_compiler_pic \
12165
lt_prog_compiler_static \
12166
lt_cv_prog_compiler_c_o \
12167
need_locks \
12168
DSYMUTIL \
12169
NMEDIT \
12170
LIPO \
12171
OTOOL \
12172
OTOOL64 \
12173
shrext_cmds \
12174
export_dynamic_flag_spec \
12175
whole_archive_flag_spec \
12176
compiler_needs_object \
12177
with_gnu_ld \
12178
allow_undefined_flag \
12179
no_undefined_flag \
12180
hardcode_libdir_flag_spec \
12181
hardcode_libdir_flag_spec_ld \
12182
hardcode_libdir_separator \
12183
fix_srcfile_path \
12184
exclude_expsyms \
12185
include_expsyms \
12186
file_list_spec \
12187
variables_saved_for_relink \
12188
libname_spec \
12189
library_names_spec \
12190
soname_spec \
12191
finish_eval \
12192
old_striplib \
12193
striplib; do
12194
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12195
    *[\\\\\\\`\\"\\\$]*)
12196
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12197
      ;;
12198
    *)
12199
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12200
      ;;
12201
    esac
12202
done
12203
 
12204
# Double-quote double-evaled strings.
12205
for var in reload_cmds \
12206
old_postinstall_cmds \
12207
old_postuninstall_cmds \
12208
old_archive_cmds \
12209
extract_expsyms_cmds \
12210
old_archive_from_new_cmds \
12211
old_archive_from_expsyms_cmds \
12212
archive_cmds \
12213
archive_expsym_cmds \
12214
module_cmds \
12215
module_expsym_cmds \
12216
export_symbols_cmds \
12217
prelink_cmds \
12218
postinstall_cmds \
12219
postuninstall_cmds \
12220
finish_cmds \
12221
sys_lib_search_path_spec \
12222
sys_lib_dlsearch_path_spec; do
12223
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12224
    *[\\\\\\\`\\"\\\$]*)
12225
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12226
      ;;
12227
    *)
12228
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12229
      ;;
12230
    esac
12231
done
12232
 
12233
# Fix-up fallback echo if it was mangled by the above quoting rules.
12234
case \$lt_ECHO in
12235
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12236
  ;;
12237
esac
12238
 
12239
ac_aux_dir='$ac_aux_dir'
12240
xsi_shell='$xsi_shell'
12241
lt_shell_append='$lt_shell_append'
12242
 
12243
# See if we are running on zsh, and set the options which allow our
12244
# commands through without removal of \ escapes INIT.
12245
if test -n "\${ZSH_VERSION+set}" ; then
12246
   setopt NO_GLOB_SUBST
12247
fi
12248
 
12249
 
12250
    PACKAGE='$PACKAGE'
12251
    VERSION='$VERSION'
12252
    TIMESTAMP='$TIMESTAMP'
12253
    RM='$RM'
12254
    ofile='$ofile'
12255
 
12256
 
12257
 
12258
 
12259
_ACEOF
12260
 
12261
 
12262
 
12263
cat >>$CONFIG_STATUS <<\_ACEOF
12264
for ac_config_target in $ac_config_targets
12265
do
12266
  case "$ac_config_target" in
12267
  # Handling of arguments.
12268
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12269
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12270
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12271
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12272
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12273
   { (exit 1); exit 1; }; };;
12274
  esac
12275
done
12276
 
12277
# If the user did not use the arguments to specify the items to instantiate,
12278
# then the envvar interface is used.  Set only those that are not.
12279
# We use the long form for the default assignment because of an extremely
12280
# bizarre bug on SunOS 4.1.3.
12281
if $ac_need_defaults; then
12282
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12283
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12284
fi
12285
 
12286
# Have a temporary directory for convenience.  Make it in the build tree
12287
# simply because there is no reason to put it here, and in addition,
12288
# creating and moving files from /tmp can sometimes cause problems.
12289
# Create a temporary directory, and hook for its removal unless debugging.
12290
$debug ||
12291
{
12292
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12293
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12294
}
12295
 
12296
# Create a (secure) tmp directory for tmp files.
12297
 
12298
{
12299
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12300
  test -n "$tmp" && test -d "$tmp"
12301
}  ||
12302
{
12303
  tmp=./confstat$$-$RANDOM
12304
  (umask 077 && mkdir $tmp)
12305
} ||
12306
{
12307
   echo "$me: cannot create a temporary directory in ." >&2
12308
   { (exit 1); exit 1; }
12309
}
12310
 
12311
_ACEOF
12312
 
12313
cat >>$CONFIG_STATUS <<_ACEOF
12314
 
12315
#
12316
# CONFIG_FILES section.
12317
#
12318
 
12319
# No need to generate the scripts if there are no CONFIG_FILES.
12320
# This happens for instance when ./config.status config.h
12321
if test -n "\$CONFIG_FILES"; then
12322
  # Protect against being on the right side of a sed subst in config.status.
12323
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12324
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12325
s,@SHELL@,$SHELL,;t t
12326
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12327
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12328
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12329
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12330
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12331
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12332
s,@exec_prefix@,$exec_prefix,;t t
12333
s,@prefix@,$prefix,;t t
12334
s,@program_transform_name@,$program_transform_name,;t t
12335
s,@bindir@,$bindir,;t t
12336
s,@sbindir@,$sbindir,;t t
12337
s,@libexecdir@,$libexecdir,;t t
12338
s,@datadir@,$datadir,;t t
12339
s,@sysconfdir@,$sysconfdir,;t t
12340
s,@sharedstatedir@,$sharedstatedir,;t t
12341
s,@localstatedir@,$localstatedir,;t t
12342
s,@libdir@,$libdir,;t t
12343
s,@includedir@,$includedir,;t t
12344
s,@oldincludedir@,$oldincludedir,;t t
12345
s,@infodir@,$infodir,;t t
12346
s,@mandir@,$mandir,;t t
12347
s,@build_alias@,$build_alias,;t t
12348
s,@host_alias@,$host_alias,;t t
12349
s,@target_alias@,$target_alias,;t t
12350
s,@DEFS@,$DEFS,;t t
12351
s,@ECHO_C@,$ECHO_C,;t t
12352
s,@ECHO_N@,$ECHO_N,;t t
12353
s,@ECHO_T@,$ECHO_T,;t t
12354
s,@LIBS@,$LIBS,;t t
12355
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12356
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12357
s,@newlib_basedir@,$newlib_basedir,;t t
12358
s,@build@,$build,;t t
12359
s,@build_cpu@,$build_cpu,;t t
12360
s,@build_vendor@,$build_vendor,;t t
12361
s,@build_os@,$build_os,;t t
12362
s,@host@,$host,;t t
12363
s,@host_cpu@,$host_cpu,;t t
12364
s,@host_vendor@,$host_vendor,;t t
12365
s,@host_os@,$host_os,;t t
12366
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12367
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12368
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12369
s,@CYGPATH_W@,$CYGPATH_W,;t t
12370
s,@PACKAGE@,$PACKAGE,;t t
12371
s,@VERSION@,$VERSION,;t t
12372
s,@ACLOCAL@,$ACLOCAL,;t t
12373
s,@AUTOCONF@,$AUTOCONF,;t t
12374
s,@AUTOMAKE@,$AUTOMAKE,;t t
12375
s,@AUTOHEADER@,$AUTOHEADER,;t t
12376
s,@MAKEINFO@,$MAKEINFO,;t t
12377
s,@install_sh@,$install_sh,;t t
12378
s,@STRIP@,$STRIP,;t t
12379
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12380
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12381
s,@mkdir_p@,$mkdir_p,;t t
12382
s,@AWK@,$AWK,;t t
12383
s,@SET_MAKE@,$SET_MAKE,;t t
12384
s,@am__leading_dot@,$am__leading_dot,;t t
12385
s,@AMTAR@,$AMTAR,;t t
12386
s,@am__tar@,$am__tar,;t t
12387
s,@am__untar@,$am__untar,;t t
12388
s,@CC@,$CC,;t t
12389
s,@DEPDIR@,$DEPDIR,;t t
12390
s,@am__include@,$am__include,;t t
12391
s,@am__quote@,$am__quote,;t t
12392
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12393
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12394
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12395
s,@CCDEPMODE@,$CCDEPMODE,;t t
12396
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12397
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12398
s,@AS@,$AS,;t t
12399
s,@ac_ct_AS@,$ac_ct_AS,;t t
12400
s,@AR@,$AR,;t t
12401
s,@ac_ct_AR@,$ac_ct_AR,;t t
12402
s,@RANLIB@,$RANLIB,;t t
12403
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12404
s,@READELF@,$READELF,;t t
12405
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12406
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12407
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12408
s,@MAINT@,$MAINT,;t t
12409
s,@CCAS@,$CCAS,;t t
12410
s,@CCASFLAGS@,$CCASFLAGS,;t t
12411
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12412
s,@LDFLAGS@,$LDFLAGS,;t t
12413
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12414
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12415
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12416
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12417
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12418
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12419
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12420
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12421
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12422
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12423
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12424
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12425
s,@OBJEXT@,$OBJEXT,;t t
12426
s,@oext@,$oext,;t t
12427
s,@aext@,$aext,;t t
12428
s,@lpfx@,$lpfx,;t t
12429
s,@libm_machine_dir@,$libm_machine_dir,;t t
12430
s,@machine_dir@,$machine_dir,;t t
12431
s,@sys_dir@,$sys_dir,;t t
12432
s,@SED@,$SED,;t t
12433
s,@DLLTOOL@,$DLLTOOL,;t t
12434
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12435
s,@OBJDUMP@,$OBJDUMP,;t t
12436
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12437
s,@LIBTOOL@,$LIBTOOL,;t t
12438
s,@CFLAGS@,$CFLAGS,;t t
12439
s,@CPPFLAGS@,$CPPFLAGS,;t t
12440
s,@ac_ct_CC@,$ac_ct_CC,;t t
12441
s,@EXEEXT@,$EXEEXT,;t t
12442
s,@EGREP@,$EGREP,;t t
12443
s,@FGREP@,$FGREP,;t t
12444
s,@GREP@,$GREP,;t t
12445
s,@LD@,$LD,;t t
12446
s,@DUMPBIN@,$DUMPBIN,;t t
12447
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12448
s,@NM@,$NM,;t t
12449
s,@LN_S@,$LN_S,;t t
12450
s,@lt_ECHO@,$lt_ECHO,;t t
12451
s,@DSYMUTIL@,$DSYMUTIL,;t t
12452
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12453
s,@NMEDIT@,$NMEDIT,;t t
12454
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12455
s,@LIPO@,$LIPO,;t t
12456
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12457
s,@OTOOL@,$OTOOL,;t t
12458
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12459
s,@OTOOL64@,$OTOOL64,;t t
12460
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12461
s,@CPP@,$CPP,;t t
12462
s,@LIBOBJS@,$LIBOBJS,;t t
12463
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12464
CEOF
12465
 
12466
_ACEOF
12467
 
12468
  cat >>$CONFIG_STATUS <<\_ACEOF
12469
  # Split the substitutions into bite-sized pieces for seds with
12470
  # small command number limits, like on Digital OSF/1 and HP-UX.
12471
  ac_max_sed_lines=48
12472
  ac_sed_frag=1 # Number of current file.
12473
  ac_beg=1 # First line for current file.
12474
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12475
  ac_more_lines=:
12476
  ac_sed_cmds=
12477
  while $ac_more_lines; do
12478
    if test $ac_beg -gt 1; then
12479
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12480
    else
12481
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12482
    fi
12483
    if test ! -s $tmp/subs.frag; then
12484
      ac_more_lines=false
12485
    else
12486
      # The purpose of the label and of the branching condition is to
12487
      # speed up the sed processing (if there are no `@' at all, there
12488
      # is no need to browse any of the substitutions).
12489
      # These are the two extra sed commands mentioned above.
12490
      (echo ':t
12491
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12492
      if test -z "$ac_sed_cmds"; then
12493
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12494
      else
12495
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12496
      fi
12497
      ac_sed_frag=`expr $ac_sed_frag + 1`
12498
      ac_beg=$ac_end
12499
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12500
    fi
12501
  done
12502
  if test -z "$ac_sed_cmds"; then
12503
    ac_sed_cmds=cat
12504
  fi
12505
fi # test -n "$CONFIG_FILES"
12506
 
12507
_ACEOF
12508
cat >>$CONFIG_STATUS <<\_ACEOF
12509
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12510
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12511
  case $ac_file in
12512
  - | *:- | *:-:* ) # input from stdin
12513
        cat >$tmp/stdin
12514
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12515
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12516
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12517
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12518
  * )   ac_file_in=$ac_file.in ;;
12519
  esac
12520
 
12521
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12522
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12523
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12524
         X"$ac_file" : 'X\(//\)[^/]' \| \
12525
         X"$ac_file" : 'X\(//\)$' \| \
12526
         X"$ac_file" : 'X\(/\)' \| \
12527
         .     : '\(.\)' 2>/dev/null ||
12528
echo X"$ac_file" |
12529
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12530
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12531
          /^X\(\/\/\)$/{ s//\1/; q; }
12532
          /^X\(\/\).*/{ s//\1/; q; }
12533
          s/.*/./; q'`
12534
  { if $as_mkdir_p; then
12535
    mkdir -p "$ac_dir"
12536
  else
12537
    as_dir="$ac_dir"
12538
    as_dirs=
12539
    while test ! -d "$as_dir"; do
12540
      as_dirs="$as_dir $as_dirs"
12541
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12542
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543
         X"$as_dir" : 'X\(//\)[^/]' \| \
12544
         X"$as_dir" : 'X\(//\)$' \| \
12545
         X"$as_dir" : 'X\(/\)' \| \
12546
         .     : '\(.\)' 2>/dev/null ||
12547
echo X"$as_dir" |
12548
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12549
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12550
          /^X\(\/\/\)$/{ s//\1/; q; }
12551
          /^X\(\/\).*/{ s//\1/; q; }
12552
          s/.*/./; q'`
12553
    done
12554
    test ! -n "$as_dirs" || mkdir $as_dirs
12555
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12556
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12557
   { (exit 1); exit 1; }; }; }
12558
 
12559
  ac_builddir=.
12560
 
12561
if test "$ac_dir" != .; then
12562
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12563
  # A "../" for each directory in $ac_dir_suffix.
12564
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12565
else
12566
  ac_dir_suffix= ac_top_builddir=
12567
fi
12568
 
12569
case $srcdir in
12570
  .)  # No --srcdir option.  We are building in place.
12571
    ac_srcdir=.
12572
    if test -z "$ac_top_builddir"; then
12573
       ac_top_srcdir=.
12574
    else
12575
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12576
    fi ;;
12577
  [\\/]* | ?:[\\/]* )  # Absolute path.
12578
    ac_srcdir=$srcdir$ac_dir_suffix;
12579
    ac_top_srcdir=$srcdir ;;
12580
  *) # Relative path.
12581
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12582
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12583
esac
12584
 
12585
# Do not use `cd foo && pwd` to compute absolute paths, because
12586
# the directories may not exist.
12587
case `pwd` in
12588
.) ac_abs_builddir="$ac_dir";;
12589
*)
12590
  case "$ac_dir" in
12591
  .) ac_abs_builddir=`pwd`;;
12592
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12593
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12594
  esac;;
12595
esac
12596
case $ac_abs_builddir in
12597
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12598
*)
12599
  case ${ac_top_builddir}. in
12600
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12601
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12602
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12603
  esac;;
12604
esac
12605
case $ac_abs_builddir in
12606
.) ac_abs_srcdir=$ac_srcdir;;
12607
*)
12608
  case $ac_srcdir in
12609
  .) ac_abs_srcdir=$ac_abs_builddir;;
12610
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12611
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12612
  esac;;
12613
esac
12614
case $ac_abs_builddir in
12615
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12616
*)
12617
  case $ac_top_srcdir in
12618
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12619
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12620
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12621
  esac;;
12622
esac
12623
 
12624
 
12625
  case $INSTALL in
12626
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12627
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12628
  esac
12629
 
12630
  if test x"$ac_file" != x-; then
12631
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12632
echo "$as_me: creating $ac_file" >&6;}
12633
    rm -f "$ac_file"
12634
  fi
12635
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12636
  # use $as_me), people would be surprised to read:
12637
  #    /* config.h.  Generated by config.status.  */
12638
  if test x"$ac_file" = x-; then
12639
    configure_input=
12640
  else
12641
    configure_input="$ac_file.  "
12642
  fi
12643
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12644
                                     sed 's,.*/,,'` by configure."
12645
 
12646
  # First look for the input files in the build tree, otherwise in the
12647
  # src tree.
12648
  ac_file_inputs=`IFS=:
12649
    for f in $ac_file_in; do
12650
      case $f in
12651
      -) echo $tmp/stdin ;;
12652
      [\\/$]*)
12653
         # Absolute (can't be DOS-style, as IFS=:)
12654
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12655
echo "$as_me: error: cannot find input file: $f" >&2;}
12656
   { (exit 1); exit 1; }; }
12657
         echo "$f";;
12658
      *) # Relative
12659
         if test -f "$f"; then
12660
           # Build tree
12661
           echo "$f"
12662
         elif test -f "$srcdir/$f"; then
12663
           # Source tree
12664
           echo "$srcdir/$f"
12665
         else
12666
           # /dev/null tree
12667
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12668
echo "$as_me: error: cannot find input file: $f" >&2;}
12669
   { (exit 1); exit 1; }; }
12670
         fi;;
12671
      esac
12672
    done` || { (exit 1); exit 1; }
12673
_ACEOF
12674
cat >>$CONFIG_STATUS <<_ACEOF
12675
  sed "$ac_vpsub
12676
$extrasub
12677
_ACEOF
12678
cat >>$CONFIG_STATUS <<\_ACEOF
12679
:t
12680
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12681
s,@configure_input@,$configure_input,;t t
12682
s,@srcdir@,$ac_srcdir,;t t
12683
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12684
s,@top_srcdir@,$ac_top_srcdir,;t t
12685
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12686
s,@builddir@,$ac_builddir,;t t
12687
s,@abs_builddir@,$ac_abs_builddir,;t t
12688
s,@top_builddir@,$ac_top_builddir,;t t
12689
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12690
s,@INSTALL@,$ac_INSTALL,;t t
12691
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12692
  rm -f $tmp/stdin
12693
  if test x"$ac_file" != x-; then
12694
    mv $tmp/out $ac_file
12695
  else
12696
    cat $tmp/out
12697
    rm -f $tmp/out
12698
  fi
12699
 
12700
done
12701
_ACEOF
12702
cat >>$CONFIG_STATUS <<\_ACEOF
12703
 
12704
#
12705
# CONFIG_COMMANDS section.
12706
#
12707
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12708
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12709
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12710
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12711
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12712
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12713
         X"$ac_dest" : 'X\(//\)$' \| \
12714
         X"$ac_dest" : 'X\(/\)' \| \
12715
         .     : '\(.\)' 2>/dev/null ||
12716
echo X"$ac_dest" |
12717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12719
          /^X\(\/\/\)$/{ s//\1/; q; }
12720
          /^X\(\/\).*/{ s//\1/; q; }
12721
          s/.*/./; q'`
12722
  { if $as_mkdir_p; then
12723
    mkdir -p "$ac_dir"
12724
  else
12725
    as_dir="$ac_dir"
12726
    as_dirs=
12727
    while test ! -d "$as_dir"; do
12728
      as_dirs="$as_dir $as_dirs"
12729
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12731
         X"$as_dir" : 'X\(//\)[^/]' \| \
12732
         X"$as_dir" : 'X\(//\)$' \| \
12733
         X"$as_dir" : 'X\(/\)' \| \
12734
         .     : '\(.\)' 2>/dev/null ||
12735
echo X"$as_dir" |
12736
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12737
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12738
          /^X\(\/\/\)$/{ s//\1/; q; }
12739
          /^X\(\/\).*/{ s//\1/; q; }
12740
          s/.*/./; q'`
12741
    done
12742
    test ! -n "$as_dirs" || mkdir $as_dirs
12743
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12744
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12745
   { (exit 1); exit 1; }; }; }
12746
 
12747
  ac_builddir=.
12748
 
12749
if test "$ac_dir" != .; then
12750
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12751
  # A "../" for each directory in $ac_dir_suffix.
12752
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12753
else
12754
  ac_dir_suffix= ac_top_builddir=
12755
fi
12756
 
12757
case $srcdir in
12758
  .)  # No --srcdir option.  We are building in place.
12759
    ac_srcdir=.
12760
    if test -z "$ac_top_builddir"; then
12761
       ac_top_srcdir=.
12762
    else
12763
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12764
    fi ;;
12765
  [\\/]* | ?:[\\/]* )  # Absolute path.
12766
    ac_srcdir=$srcdir$ac_dir_suffix;
12767
    ac_top_srcdir=$srcdir ;;
12768
  *) # Relative path.
12769
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12770
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12771
esac
12772
 
12773
# Do not use `cd foo && pwd` to compute absolute paths, because
12774
# the directories may not exist.
12775
case `pwd` in
12776
.) ac_abs_builddir="$ac_dir";;
12777
*)
12778
  case "$ac_dir" in
12779
  .) ac_abs_builddir=`pwd`;;
12780
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12781
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12782
  esac;;
12783
esac
12784
case $ac_abs_builddir in
12785
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12786
*)
12787
  case ${ac_top_builddir}. in
12788
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12789
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12790
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12791
  esac;;
12792
esac
12793
case $ac_abs_builddir in
12794
.) ac_abs_srcdir=$ac_srcdir;;
12795
*)
12796
  case $ac_srcdir in
12797
  .) ac_abs_srcdir=$ac_abs_builddir;;
12798
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12799
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12800
  esac;;
12801
esac
12802
case $ac_abs_builddir in
12803
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12804
*)
12805
  case $ac_top_srcdir in
12806
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12807
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12808
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12809
  esac;;
12810
esac
12811
 
12812
 
12813
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12814
echo "$as_me: executing $ac_dest commands" >&6;}
12815
  case $ac_dest in
12816
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12817
  # Strip MF so we end up with the name of the file.
12818
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12819
  # Check whether this is an Automake generated Makefile or not.
12820
  # We used to match only the files named `Makefile.in', but
12821
  # some people rename them; so instead we look at the file content.
12822
  # Grep'ing the first line is not enough: some people post-process
12823
  # each Makefile.in and add a new line on top of each file to say so.
12824
  # So let's grep whole file.
12825
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12826
    dirpart=`(dirname "$mf") 2>/dev/null ||
12827
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12828
         X"$mf" : 'X\(//\)[^/]' \| \
12829
         X"$mf" : 'X\(//\)$' \| \
12830
         X"$mf" : 'X\(/\)' \| \
12831
         .     : '\(.\)' 2>/dev/null ||
12832
echo X"$mf" |
12833
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12834
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12835
          /^X\(\/\/\)$/{ s//\1/; q; }
12836
          /^X\(\/\).*/{ s//\1/; q; }
12837
          s/.*/./; q'`
12838
  else
12839
    continue
12840
  fi
12841
  # Extract the definition of DEPDIR, am__include, and am__quote
12842
  # from the Makefile without running `make'.
12843
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12844
  test -z "$DEPDIR" && continue
12845
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12846
  test -z "am__include" && continue
12847
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12848
  # When using ansi2knr, U may be empty or an underscore; expand it
12849
  U=`sed -n 's/^U = //p' < "$mf"`
12850
  # Find all dependency output files, they are included files with
12851
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12852
  # simplest approach to changing $(DEPDIR) to its actual value in the
12853
  # expansion.
12854
  for file in `sed -n "
12855
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12856
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12857
    # Make sure the directory exists.
12858
    test -f "$dirpart/$file" && continue
12859
    fdir=`(dirname "$file") 2>/dev/null ||
12860
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12861
         X"$file" : 'X\(//\)[^/]' \| \
12862
         X"$file" : 'X\(//\)$' \| \
12863
         X"$file" : 'X\(/\)' \| \
12864
         .     : '\(.\)' 2>/dev/null ||
12865
echo X"$file" |
12866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12868
          /^X\(\/\/\)$/{ s//\1/; q; }
12869
          /^X\(\/\).*/{ s//\1/; q; }
12870
          s/.*/./; q'`
12871
    { if $as_mkdir_p; then
12872
    mkdir -p $dirpart/$fdir
12873
  else
12874
    as_dir=$dirpart/$fdir
12875
    as_dirs=
12876
    while test ! -d "$as_dir"; do
12877
      as_dirs="$as_dir $as_dirs"
12878
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12879
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12880
         X"$as_dir" : 'X\(//\)[^/]' \| \
12881
         X"$as_dir" : 'X\(//\)$' \| \
12882
         X"$as_dir" : 'X\(/\)' \| \
12883
         .     : '\(.\)' 2>/dev/null ||
12884
echo X"$as_dir" |
12885
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12886
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12887
          /^X\(\/\/\)$/{ s//\1/; q; }
12888
          /^X\(\/\).*/{ s//\1/; q; }
12889
          s/.*/./; q'`
12890
    done
12891
    test ! -n "$as_dirs" || mkdir $as_dirs
12892
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12893
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12894
   { (exit 1); exit 1; }; }; }
12895
 
12896
    # echo "creating $dirpart/$file"
12897
    echo '# dummy' > "$dirpart/$file"
12898
  done
12899
done
12900
 ;;
12901
    libtool )
12902
 
12903
    # See if we are running on zsh, and set the options which allow our
12904
    # commands through without removal of \ escapes.
12905
    if test -n "${ZSH_VERSION+set}" ; then
12906
      setopt NO_GLOB_SUBST
12907
    fi
12908
 
12909
    cfgfile="${ofile}T"
12910
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12911
    $RM "$cfgfile"
12912
 
12913
    cat <<_LT_EOF >> "$cfgfile"
12914
#! $SHELL
12915
 
12916
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12917
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12918
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12919
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12920
#
12921
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12922
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12923
#   Written by Gordon Matzigkeit, 1996
12924
#
12925
#   This file is part of GNU Libtool.
12926
#
12927
# GNU Libtool is free software; you can redistribute it and/or
12928
# modify it under the terms of the GNU General Public License as
12929
# published by the Free Software Foundation; either version 2 of
12930
# the License, or (at your option) any later version.
12931
#
12932
# As a special exception to the GNU General Public License,
12933
# if you distribute this file as part of a program or library that
12934
# is built using GNU Libtool, you may include this file under the
12935
# same distribution terms that you use for the rest of that program.
12936
#
12937
# GNU Libtool is distributed in the hope that it will be useful,
12938
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12939
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12940
# GNU General Public License for more details.
12941
#
12942
# You should have received a copy of the GNU General Public License
12943
# along with GNU Libtool; see the file COPYING.  If not, a copy
12944
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12945
# obtained by writing to the Free Software Foundation, Inc.,
12946
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12947
 
12948
 
12949
# The names of the tagged configurations supported by this script.
12950
available_tags=""
12951
 
12952
# ### BEGIN LIBTOOL CONFIG
12953
 
12954
# A sed program that does not truncate output.
12955
SED=$lt_SED
12956
 
12957
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12958
Xsed="\$SED -e 1s/^X//"
12959
 
12960
# Assembler program.
12961
AS=$AS
12962
 
12963
# DLL creation program.
12964
DLLTOOL=$DLLTOOL
12965
 
12966
# Object dumper program.
12967
OBJDUMP=$OBJDUMP
12968
 
12969
# Which release of libtool.m4 was used?
12970
macro_version=$macro_version
12971
macro_revision=$macro_revision
12972
 
12973
# Whether or not to build shared libraries.
12974
build_libtool_libs=$enable_shared
12975
 
12976
# Whether or not to build static libraries.
12977
build_old_libs=$enable_static
12978
 
12979
# What type of objects to build.
12980
pic_mode=$pic_mode
12981
 
12982
# Whether or not to optimize for fast installation.
12983
fast_install=$enable_fast_install
12984
 
12985
# The host system.
12986
host_alias=$host_alias
12987
host=$host
12988
host_os=$host_os
12989
 
12990
# The build system.
12991
build_alias=$build_alias
12992
build=$build
12993
build_os=$build_os
12994
 
12995
# A grep program that handles long lines.
12996
GREP=$lt_GREP
12997
 
12998
# An ERE matcher.
12999
EGREP=$lt_EGREP
13000
 
13001
# A literal string matcher.
13002
FGREP=$lt_FGREP
13003
 
13004
# A BSD- or MS-compatible name lister.
13005
NM=$lt_NM
13006
 
13007
# Whether we need soft or hard links.
13008
LN_S=$lt_LN_S
13009
 
13010
# What is the maximum length of a command?
13011
max_cmd_len=$max_cmd_len
13012
 
13013
# Object file suffix (normally "o").
13014
objext=$ac_objext
13015
 
13016
# Executable file suffix (normally "").
13017
exeext=$exeext
13018
 
13019
# whether the shell understands "unset".
13020
lt_unset=$lt_unset
13021
 
13022
# turn spaces into newlines.
13023
SP2NL=$lt_lt_SP2NL
13024
 
13025
# turn newlines into spaces.
13026
NL2SP=$lt_lt_NL2SP
13027
 
13028
# How to create reloadable object files.
13029
reload_flag=$lt_reload_flag
13030
reload_cmds=$lt_reload_cmds
13031
 
13032
# Method to check whether dependent libraries are shared objects.
13033
deplibs_check_method=$lt_deplibs_check_method
13034
 
13035
# Command to use when deplibs_check_method == "file_magic".
13036
file_magic_cmd=$lt_file_magic_cmd
13037
 
13038
# The archiver.
13039
AR=$lt_AR
13040
AR_FLAGS=$lt_AR_FLAGS
13041
 
13042
# A symbol stripping program.
13043
STRIP=$lt_STRIP
13044
 
13045
# Commands used to install an old-style archive.
13046
RANLIB=$lt_RANLIB
13047
old_postinstall_cmds=$lt_old_postinstall_cmds
13048
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13049
 
13050
# A C compiler.
13051
LTCC=$lt_CC
13052
 
13053
# LTCC compiler flags.
13054
LTCFLAGS=$lt_CFLAGS
13055
 
13056
# Take the output of nm and produce a listing of raw symbols and C names.
13057
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13058
 
13059
# Transform the output of nm in a proper C declaration.
13060
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13061
 
13062
# Transform the output of nm in a C name address pair.
13063
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13064
 
13065
# Transform the output of nm in a C name address pair when lib prefix is needed.
13066
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13067
 
13068
# The name of the directory that contains temporary libtool files.
13069
objdir=$objdir
13070
 
13071
# Shell to use when invoking shell scripts.
13072
SHELL=$lt_SHELL
13073
 
13074
# An echo program that does not interpret backslashes.
13075
ECHO=$lt_ECHO
13076
 
13077
# Used to examine libraries when file_magic_cmd begins with "file".
13078
MAGIC_CMD=$MAGIC_CMD
13079
 
13080
# Must we lock files when doing compilation?
13081
need_locks=$lt_need_locks
13082
 
13083
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13084
DSYMUTIL=$lt_DSYMUTIL
13085
 
13086
# Tool to change global to local symbols on Mac OS X.
13087
NMEDIT=$lt_NMEDIT
13088
 
13089
# Tool to manipulate fat objects and archives on Mac OS X.
13090
LIPO=$lt_LIPO
13091
 
13092
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13093
OTOOL=$lt_OTOOL
13094
 
13095
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13096
OTOOL64=$lt_OTOOL64
13097
 
13098
# Old archive suffix (normally "a").
13099
libext=$libext
13100
 
13101
# Shared library suffix (normally ".so").
13102
shrext_cmds=$lt_shrext_cmds
13103
 
13104
# The commands to extract the exported symbol list from a shared archive.
13105
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13106
 
13107
# Variables whose values should be saved in libtool wrapper scripts and
13108
# restored at link time.
13109
variables_saved_for_relink=$lt_variables_saved_for_relink
13110
 
13111
# Do we need the "lib" prefix for modules?
13112
need_lib_prefix=$need_lib_prefix
13113
 
13114
# Do we need a version for libraries?
13115
need_version=$need_version
13116
 
13117
# Library versioning type.
13118
version_type=$version_type
13119
 
13120
# Shared library runtime path variable.
13121
runpath_var=$runpath_var
13122
 
13123
# Shared library path variable.
13124
shlibpath_var=$shlibpath_var
13125
 
13126
# Is shlibpath searched before the hard-coded library search path?
13127
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13128
 
13129
# Format of library name prefix.
13130
libname_spec=$lt_libname_spec
13131
 
13132
# List of archive names.  First name is the real one, the rest are links.
13133
# The last name is the one that the linker finds with -lNAME
13134
library_names_spec=$lt_library_names_spec
13135
 
13136
# The coded name of the library, if different from the real name.
13137
soname_spec=$lt_soname_spec
13138
 
13139
# Command to use after installation of a shared archive.
13140
postinstall_cmds=$lt_postinstall_cmds
13141
 
13142
# Command to use after uninstallation of a shared archive.
13143
postuninstall_cmds=$lt_postuninstall_cmds
13144
 
13145
# Commands used to finish a libtool library installation in a directory.
13146
finish_cmds=$lt_finish_cmds
13147
 
13148
# As "finish_cmds", except a single script fragment to be evaled but
13149
# not shown.
13150
finish_eval=$lt_finish_eval
13151
 
13152
# Whether we should hardcode library paths into libraries.
13153
hardcode_into_libs=$hardcode_into_libs
13154
 
13155
# Compile-time system search path for libraries.
13156
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13157
 
13158
# Run-time system search path for libraries.
13159
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13160
 
13161
# Whether dlopen is supported.
13162
dlopen_support=$enable_dlopen
13163
 
13164
# Whether dlopen of programs is supported.
13165
dlopen_self=$enable_dlopen_self
13166
 
13167
# Whether dlopen of statically linked programs is supported.
13168
dlopen_self_static=$enable_dlopen_self_static
13169
 
13170
# Commands to strip libraries.
13171
old_striplib=$lt_old_striplib
13172
striplib=$lt_striplib
13173
 
13174
 
13175
# The linker used to build libraries.
13176
LD=$lt_LD
13177
 
13178
# Commands used to build an old-style archive.
13179
old_archive_cmds=$lt_old_archive_cmds
13180
 
13181
# A language specific compiler.
13182
CC=$lt_compiler
13183
 
13184
# Is the compiler the GNU compiler?
13185
with_gcc=$GCC
13186
 
13187
# Compiler flag to turn off builtin functions.
13188
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13189
 
13190
# How to pass a linker flag through the compiler.
13191
wl=$lt_lt_prog_compiler_wl
13192
 
13193
# Additional compiler flags for building library objects.
13194
pic_flag=$lt_lt_prog_compiler_pic
13195
 
13196
# Compiler flag to prevent dynamic linking.
13197
link_static_flag=$lt_lt_prog_compiler_static
13198
 
13199
# Does compiler simultaneously support -c and -o options?
13200
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13201
 
13202
# Whether or not to add -lc for building shared libraries.
13203
build_libtool_need_lc=$archive_cmds_need_lc
13204
 
13205
# Whether or not to disallow shared libs when runtime libs are static.
13206
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13207
 
13208
# Compiler flag to allow reflexive dlopens.
13209
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13210
 
13211
# Compiler flag to generate shared objects directly from archives.
13212
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13213
 
13214
# Whether the compiler copes with passing no objects directly.
13215
compiler_needs_object=$lt_compiler_needs_object
13216
 
13217
# Create an old-style archive from a shared archive.
13218
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13219
 
13220
# Create a temporary old-style archive to link instead of a shared archive.
13221
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13222
 
13223
# Commands used to build a shared archive.
13224
archive_cmds=$lt_archive_cmds
13225
archive_expsym_cmds=$lt_archive_expsym_cmds
13226
 
13227
# Commands used to build a loadable module if different from building
13228
# a shared archive.
13229
module_cmds=$lt_module_cmds
13230
module_expsym_cmds=$lt_module_expsym_cmds
13231
 
13232
# Whether we are building with GNU ld or not.
13233
with_gnu_ld=$lt_with_gnu_ld
13234
 
13235
# Flag that allows shared libraries with undefined symbols to be built.
13236
allow_undefined_flag=$lt_allow_undefined_flag
13237
 
13238
# Flag that enforces no undefined symbols.
13239
no_undefined_flag=$lt_no_undefined_flag
13240
 
13241
# Flag to hardcode \$libdir into a binary during linking.
13242
# This must work even if \$libdir does not exist
13243
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13244
 
13245
# If ld is used when linking, flag to hardcode \$libdir into a binary
13246
# during linking.  This must work even if \$libdir does not exist.
13247
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13248
 
13249
# Whether we need a single "-rpath" flag with a separated argument.
13250
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13251
 
13252
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13253
# DIR into the resulting binary.
13254
hardcode_direct=$hardcode_direct
13255
 
13256
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13257
# DIR into the resulting binary and the resulting library dependency is
13258
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13259
# library is relocated.
13260
hardcode_direct_absolute=$hardcode_direct_absolute
13261
 
13262
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13263
# into the resulting binary.
13264
hardcode_minus_L=$hardcode_minus_L
13265
 
13266
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13267
# into the resulting binary.
13268
hardcode_shlibpath_var=$hardcode_shlibpath_var
13269
 
13270
# Set to "yes" if building a shared library automatically hardcodes DIR
13271
# into the library and all subsequent libraries and executables linked
13272
# against it.
13273
hardcode_automatic=$hardcode_automatic
13274
 
13275
# Set to yes if linker adds runtime paths of dependent libraries
13276
# to runtime path list.
13277
inherit_rpath=$inherit_rpath
13278
 
13279
# Whether libtool must link a program against all its dependency libraries.
13280
link_all_deplibs=$link_all_deplibs
13281
 
13282
# Fix the shell variable \$srcfile for the compiler.
13283
fix_srcfile_path=$lt_fix_srcfile_path
13284
 
13285
# Set to "yes" if exported symbols are required.
13286
always_export_symbols=$always_export_symbols
13287
 
13288
# The commands to list exported symbols.
13289
export_symbols_cmds=$lt_export_symbols_cmds
13290
 
13291
# Symbols that should not be listed in the preloaded symbols.
13292
exclude_expsyms=$lt_exclude_expsyms
13293
 
13294
# Symbols that must always be exported.
13295
include_expsyms=$lt_include_expsyms
13296
 
13297
# Commands necessary for linking programs (against libraries) with templates.
13298
prelink_cmds=$lt_prelink_cmds
13299
 
13300
# Specify filename containing input files.
13301
file_list_spec=$lt_file_list_spec
13302
 
13303
# How to hardcode a shared library path into an executable.
13304
hardcode_action=$hardcode_action
13305
 
13306
# ### END LIBTOOL CONFIG
13307
 
13308
_LT_EOF
13309
 
13310
  case $host_os in
13311
  aix3*)
13312
    cat <<\_LT_EOF >> "$cfgfile"
13313
# AIX sometimes has problems with the GCC collect2 program.  For some
13314
# reason, if we set the COLLECT_NAMES environment variable, the problems
13315
# vanish in a puff of smoke.
13316
if test "X${COLLECT_NAMES+set}" != Xset; then
13317
  COLLECT_NAMES=
13318
  export COLLECT_NAMES
13319
fi
13320
_LT_EOF
13321
    ;;
13322
  esac
13323
 
13324
 
13325
ltmain="$ac_aux_dir/ltmain.sh"
13326
 
13327
 
13328
  # We use sed instead of cat because bash on DJGPP gets confused if
13329
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13330
  # text mode, it properly converts lines to CR/LF.  This bash problem
13331
  # is reportedly fixed, but why not run on old versions too?
13332
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13333
    || (rm -f "$cfgfile"; exit 1)
13334
 
13335
  case $xsi_shell in
13336
  yes)
13337
    cat << \_LT_EOF >> "$cfgfile"
13338
 
13339
# func_dirname file append nondir_replacement
13340
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13341
# otherwise set result to NONDIR_REPLACEMENT.
13342
func_dirname ()
13343
{
13344
  case ${1} in
13345
    */*) func_dirname_result="${1%/*}${2}" ;;
13346
    *  ) func_dirname_result="${3}" ;;
13347
  esac
13348
}
13349
 
13350
# func_basename file
13351
func_basename ()
13352
{
13353
  func_basename_result="${1##*/}"
13354
}
13355
 
13356
# func_dirname_and_basename file append nondir_replacement
13357
# perform func_basename and func_dirname in a single function
13358
# call:
13359
#   dirname:  Compute the dirname of FILE.  If nonempty,
13360
#             add APPEND to the result, otherwise set result
13361
#             to NONDIR_REPLACEMENT.
13362
#             value returned in "$func_dirname_result"
13363
#   basename: Compute filename of FILE.
13364
#             value retuned in "$func_basename_result"
13365
# Implementation must be kept synchronized with func_dirname
13366
# and func_basename. For efficiency, we do not delegate to
13367
# those functions but instead duplicate the functionality here.
13368
func_dirname_and_basename ()
13369
{
13370
  case ${1} in
13371
    */*) func_dirname_result="${1%/*}${2}" ;;
13372
    *  ) func_dirname_result="${3}" ;;
13373
  esac
13374
  func_basename_result="${1##*/}"
13375
}
13376
 
13377
# func_stripname prefix suffix name
13378
# strip PREFIX and SUFFIX off of NAME.
13379
# PREFIX and SUFFIX must not contain globbing or regex special
13380
# characters, hashes, percent signs, but SUFFIX may contain a leading
13381
# dot (in which case that matches only a dot).
13382
func_stripname ()
13383
{
13384
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13385
  # positional parameters, so assign one to ordinary parameter first.
13386
  func_stripname_result=${3}
13387
  func_stripname_result=${func_stripname_result#"${1}"}
13388
  func_stripname_result=${func_stripname_result%"${2}"}
13389
}
13390
 
13391
# func_opt_split
13392
func_opt_split ()
13393
{
13394
  func_opt_split_opt=${1%%=*}
13395
  func_opt_split_arg=${1#*=}
13396
}
13397
 
13398
# func_lo2o object
13399
func_lo2o ()
13400
{
13401
  case ${1} in
13402
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13403
    *)    func_lo2o_result=${1} ;;
13404
  esac
13405
}
13406
 
13407
# func_xform libobj-or-source
13408
func_xform ()
13409
{
13410
  func_xform_result=${1%.*}.lo
13411
}
13412
 
13413
# func_arith arithmetic-term...
13414
func_arith ()
13415
{
13416
  func_arith_result=$(( $* ))
13417
}
13418
 
13419
# func_len string
13420
# STRING may not start with a hyphen.
13421
func_len ()
13422
{
13423
  func_len_result=${#1}
13424
}
13425
 
13426
_LT_EOF
13427
    ;;
13428
  *) # Bourne compatible functions.
13429
    cat << \_LT_EOF >> "$cfgfile"
13430
 
13431
# func_dirname file append nondir_replacement
13432
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13433
# otherwise set result to NONDIR_REPLACEMENT.
13434
func_dirname ()
13435
{
13436
  # Extract subdirectory from the argument.
13437
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13438
  if test "X$func_dirname_result" = "X${1}"; then
13439
    func_dirname_result="${3}"
13440
  else
13441
    func_dirname_result="$func_dirname_result${2}"
13442
  fi
13443
}
13444
 
13445
# func_basename file
13446
func_basename ()
13447
{
13448
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13449
}
13450
 
13451
 
13452
# func_stripname prefix suffix name
13453
# strip PREFIX and SUFFIX off of NAME.
13454
# PREFIX and SUFFIX must not contain globbing or regex special
13455
# characters, hashes, percent signs, but SUFFIX may contain a leading
13456
# dot (in which case that matches only a dot).
13457
# func_strip_suffix prefix name
13458
func_stripname ()
13459
{
13460
  case ${2} in
13461
    .*) func_stripname_result=`$ECHO "X${3}" \
13462
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13463
    *)  func_stripname_result=`$ECHO "X${3}" \
13464
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13465
  esac
13466
}
13467
 
13468
# sed scripts:
13469
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13470
my_sed_long_arg='1s/^-[^=]*=//'
13471
 
13472
# func_opt_split
13473
func_opt_split ()
13474
{
13475
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13476
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13477
}
13478
 
13479
# func_lo2o object
13480
func_lo2o ()
13481
{
13482
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13483
}
13484
 
13485
# func_xform libobj-or-source
13486
func_xform ()
13487
{
13488
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13489
}
13490
 
13491
# func_arith arithmetic-term...
13492
func_arith ()
13493
{
13494
  func_arith_result=`expr "$@"`
13495
}
13496
 
13497
# func_len string
13498
# STRING may not start with a hyphen.
13499
func_len ()
13500
{
13501
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13502
}
13503
 
13504
_LT_EOF
13505
esac
13506
 
13507
case $lt_shell_append in
13508
  yes)
13509
    cat << \_LT_EOF >> "$cfgfile"
13510
 
13511
# func_append var value
13512
# Append VALUE to the end of shell variable VAR.
13513
func_append ()
13514
{
13515
  eval "$1+=\$2"
13516
}
13517
_LT_EOF
13518
    ;;
13519
  *)
13520
    cat << \_LT_EOF >> "$cfgfile"
13521
 
13522
# func_append var value
13523
# Append VALUE to the end of shell variable VAR.
13524
func_append ()
13525
{
13526
  eval "$1=\$$1\$2"
13527
}
13528
 
13529
_LT_EOF
13530
    ;;
13531
  esac
13532
 
13533
 
13534
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13535
    || (rm -f "$cfgfile"; exit 1)
13536
 
13537
  mv -f "$cfgfile" "$ofile" ||
13538
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13539
  chmod +x "$ofile"
13540
 
13541
 ;;
13542
  esac
13543
done
13544
_ACEOF
13545
 
13546
cat >>$CONFIG_STATUS <<\_ACEOF
13547
 
13548
{ (exit 0); exit 0; }
13549
_ACEOF
13550
chmod +x $CONFIG_STATUS
13551
ac_clean_files=$ac_clean_files_save
13552
 
13553
 
13554
# configure is writing to config.log, and then calls config.status.
13555
# config.status does its own redirection, appending to config.log.
13556
# Unfortunately, on DOS this fails, as config.log is still kept open
13557
# by configure, so config.status won't be able to write to it; its
13558
# output is simply discarded.  So we exec the FD to /dev/null,
13559
# effectively closing config.log, so it can be properly (re)opened and
13560
# appended to by config.status.  When coming back to configure, we
13561
# need to make the FD available again.
13562
if test "$no_create" != yes; then
13563
  ac_cs_success=:
13564
  ac_config_status_args=
13565
  test "$silent" = yes &&
13566
    ac_config_status_args="$ac_config_status_args --quiet"
13567
  exec 5>/dev/null
13568
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13569
  exec 5>>config.log
13570
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13571
  # would make configure fail if this is the last instruction.
13572
  $ac_cs_success || { (exit 1); exit 1; }
13573
fi
13574
 

powered by: WebSVN 2.1.0

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