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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [linuxthreads/] [configure] - Blame information for rev 816

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="attr.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_subdirs_all="$ac_subdirs_all machine"
462
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 MACHINE_OBJLIST MACHINE_LIB subdirs LIBOBJS LTLIBOBJS'
463
ac_subst_files=''
464
 
465
# Initialize some variables set by options.
466
ac_init_help=
467
ac_init_version=false
468
# The variables have the same names as the options, with
469
# dashes changed to underlines.
470
cache_file=/dev/null
471
exec_prefix=NONE
472
no_create=
473
no_recursion=
474
prefix=NONE
475
program_prefix=NONE
476
program_suffix=NONE
477
program_transform_name=s,x,x,
478
silent=
479
site=
480
srcdir=
481
verbose=
482
x_includes=NONE
483
x_libraries=NONE
484
 
485
# Installation directory options.
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
487
# and all the variables that are supposed to be based on exec_prefix
488
# by default will actually change.
489
# Use braces instead of parens because sh, perl, etc. also accept them.
490
bindir='${exec_prefix}/bin'
491
sbindir='${exec_prefix}/sbin'
492
libexecdir='${exec_prefix}/libexec'
493
datadir='${prefix}/share'
494
sysconfdir='${prefix}/etc'
495
sharedstatedir='${prefix}/com'
496
localstatedir='${prefix}/var'
497
libdir='${exec_prefix}/lib'
498
includedir='${prefix}/include'
499
oldincludedir='/usr/include'
500
infodir='${prefix}/info'
501
mandir='${prefix}/man'
502
 
503
ac_prev=
504
for ac_option
505
do
506
  # If the previous option needs an argument, assign it.
507
  if test -n "$ac_prev"; then
508
    eval "$ac_prev=\$ac_option"
509
    ac_prev=
510
    continue
511
  fi
512
 
513
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
 
515
  # Accept the important Cygnus configure options, so we can diagnose typos.
516
 
517
  case $ac_option in
518
 
519
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520
    ac_prev=bindir ;;
521
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522
    bindir=$ac_optarg ;;
523
 
524
  -build | --build | --buil | --bui | --bu)
525
    ac_prev=build_alias ;;
526
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527
    build_alias=$ac_optarg ;;
528
 
529
  -cache-file | --cache-file | --cache-fil | --cache-fi \
530
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531
    ac_prev=cache_file ;;
532
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534
    cache_file=$ac_optarg ;;
535
 
536
  --config-cache | -C)
537
    cache_file=config.cache ;;
538
 
539
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540
    ac_prev=datadir ;;
541
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542
  | --da=*)
543
    datadir=$ac_optarg ;;
544
 
545
  -disable-* | --disable-*)
546
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547
    # Reject names that are not valid shell variable names.
548
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550
   { (exit 1); exit 1; }; }
551
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552
    eval "enable_$ac_feature=no" ;;
553
 
554
  -enable-* | --enable-*)
555
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556
    # Reject names that are not valid shell variable names.
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
   { (exit 1); exit 1; }; }
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561
    case $ac_option in
562
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563
      *) ac_optarg=yes ;;
564
    esac
565
    eval "enable_$ac_feature='$ac_optarg'" ;;
566
 
567
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569
  | --exec | --exe | --ex)
570
    ac_prev=exec_prefix ;;
571
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573
  | --exec=* | --exe=* | --ex=*)
574
    exec_prefix=$ac_optarg ;;
575
 
576
  -gas | --gas | --ga | --g)
577
    # Obsolete; use --with-gas.
578
    with_gas=yes ;;
579
 
580
  -help | --help | --hel | --he | -h)
581
    ac_init_help=long ;;
582
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583
    ac_init_help=recursive ;;
584
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585
    ac_init_help=short ;;
586
 
587
  -host | --host | --hos | --ho)
588
    ac_prev=host_alias ;;
589
  -host=* | --host=* | --hos=* | --ho=*)
590
    host_alias=$ac_optarg ;;
591
 
592
  -includedir | --includedir | --includedi | --included | --include \
593
  | --includ | --inclu | --incl | --inc)
594
    ac_prev=includedir ;;
595
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596
  | --includ=* | --inclu=* | --incl=* | --inc=*)
597
    includedir=$ac_optarg ;;
598
 
599
  -infodir | --infodir | --infodi | --infod | --info | --inf)
600
    ac_prev=infodir ;;
601
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602
    infodir=$ac_optarg ;;
603
 
604
  -libdir | --libdir | --libdi | --libd)
605
    ac_prev=libdir ;;
606
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607
    libdir=$ac_optarg ;;
608
 
609
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610
  | --libexe | --libex | --libe)
611
    ac_prev=libexecdir ;;
612
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613
  | --libexe=* | --libex=* | --libe=*)
614
    libexecdir=$ac_optarg ;;
615
 
616
  -localstatedir | --localstatedir | --localstatedi | --localstated \
617
  | --localstate | --localstat | --localsta | --localst \
618
  | --locals | --local | --loca | --loc | --lo)
619
    ac_prev=localstatedir ;;
620
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623
    localstatedir=$ac_optarg ;;
624
 
625
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626
    ac_prev=mandir ;;
627
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628
    mandir=$ac_optarg ;;
629
 
630
  -nfp | --nfp | --nf)
631
    # Obsolete; use --without-fp.
632
    with_fp=no ;;
633
 
634
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635
  | --no-cr | --no-c | -n)
636
    no_create=yes ;;
637
 
638
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640
    no_recursion=yes ;;
641
 
642
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644
  | --oldin | --oldi | --old | --ol | --o)
645
    ac_prev=oldincludedir ;;
646
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649
    oldincludedir=$ac_optarg ;;
650
 
651
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652
    ac_prev=prefix ;;
653
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654
    prefix=$ac_optarg ;;
655
 
656
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657
  | --program-pre | --program-pr | --program-p)
658
    ac_prev=program_prefix ;;
659
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661
    program_prefix=$ac_optarg ;;
662
 
663
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664
  | --program-suf | --program-su | --program-s)
665
    ac_prev=program_suffix ;;
666
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668
    program_suffix=$ac_optarg ;;
669
 
670
  -program-transform-name | --program-transform-name \
671
  | --program-transform-nam | --program-transform-na \
672
  | --program-transform-n | --program-transform- \
673
  | --program-transform | --program-transfor \
674
  | --program-transfo | --program-transf \
675
  | --program-trans | --program-tran \
676
  | --progr-tra | --program-tr | --program-t)
677
    ac_prev=program_transform_name ;;
678
  -program-transform-name=* | --program-transform-name=* \
679
  | --program-transform-nam=* | --program-transform-na=* \
680
  | --program-transform-n=* | --program-transform-=* \
681
  | --program-transform=* | --program-transfor=* \
682
  | --program-transfo=* | --program-transf=* \
683
  | --program-trans=* | --program-tran=* \
684
  | --progr-tra=* | --program-tr=* | --program-t=*)
685
    program_transform_name=$ac_optarg ;;
686
 
687
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688
  | -silent | --silent | --silen | --sile | --sil)
689
    silent=yes ;;
690
 
691
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692
    ac_prev=sbindir ;;
693
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694
  | --sbi=* | --sb=*)
695
    sbindir=$ac_optarg ;;
696
 
697
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699
  | --sharedst | --shareds | --shared | --share | --shar \
700
  | --sha | --sh)
701
    ac_prev=sharedstatedir ;;
702
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705
  | --sha=* | --sh=*)
706
    sharedstatedir=$ac_optarg ;;
707
 
708
  -site | --site | --sit)
709
    ac_prev=site ;;
710
  -site=* | --site=* | --sit=*)
711
    site=$ac_optarg ;;
712
 
713
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714
    ac_prev=srcdir ;;
715
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716
    srcdir=$ac_optarg ;;
717
 
718
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719
  | --syscon | --sysco | --sysc | --sys | --sy)
720
    ac_prev=sysconfdir ;;
721
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723
    sysconfdir=$ac_optarg ;;
724
 
725
  -target | --target | --targe | --targ | --tar | --ta | --t)
726
    ac_prev=target_alias ;;
727
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728
    target_alias=$ac_optarg ;;
729
 
730
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731
    verbose=yes ;;
732
 
733
  -version | --version | --versio | --versi | --vers | -V)
734
    ac_init_version=: ;;
735
 
736
  -with-* | --with-*)
737
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738
    # Reject names that are not valid shell variable names.
739
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740
      { echo "$as_me: error: invalid package name: $ac_package" >&2
741
   { (exit 1); exit 1; }; }
742
    ac_package=`echo $ac_package| sed 's/-/_/g'`
743
    case $ac_option in
744
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745
      *) ac_optarg=yes ;;
746
    esac
747
    eval "with_$ac_package='$ac_optarg'" ;;
748
 
749
  -without-* | --without-*)
750
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751
    # Reject names that are not valid shell variable names.
752
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753
      { echo "$as_me: error: invalid package name: $ac_package" >&2
754
   { (exit 1); exit 1; }; }
755
    ac_package=`echo $ac_package | sed 's/-/_/g'`
756
    eval "with_$ac_package=no" ;;
757
 
758
  --x)
759
    # Obsolete; use --with-x.
760
    with_x=yes ;;
761
 
762
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763
  | --x-incl | --x-inc | --x-in | --x-i)
764
    ac_prev=x_includes ;;
765
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767
    x_includes=$ac_optarg ;;
768
 
769
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771
    ac_prev=x_libraries ;;
772
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774
    x_libraries=$ac_optarg ;;
775
 
776
  -*) { echo "$as_me: error: unrecognized option: $ac_option
777
Try \`$0 --help' for more information." >&2
778
   { (exit 1); exit 1; }; }
779
    ;;
780
 
781
  *=*)
782
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783
    # Reject names that are not valid shell variable names.
784
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786
   { (exit 1); exit 1; }; }
787
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788
    eval "$ac_envvar='$ac_optarg'"
789
    export $ac_envvar ;;
790
 
791
  *)
792
    # FIXME: should be removed in autoconf 3.0.
793
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797
    ;;
798
 
799
  esac
800
done
801
 
802
if test -n "$ac_prev"; then
803
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804
  { echo "$as_me: error: missing argument to $ac_option" >&2
805
   { (exit 1); exit 1; }; }
806
fi
807
 
808
# Be sure to have absolute paths.
809
for ac_var in exec_prefix prefix
810
do
811
  eval ac_val=$`echo $ac_var`
812
  case $ac_val in
813
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815
   { (exit 1); exit 1; }; };;
816
  esac
817
done
818
 
819
# Be sure to have absolute paths.
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821
              localstatedir libdir includedir oldincludedir infodir mandir
822
do
823
  eval ac_val=$`echo $ac_var`
824
  case $ac_val in
825
    [\\/$]* | ?:[\\/]* ) ;;
826
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827
   { (exit 1); exit 1; }; };;
828
  esac
829
done
830
 
831
# There might be people who depend on the old broken behavior: `$host'
832
# used to hold the argument of --host etc.
833
# FIXME: To remove some day.
834
build=$build_alias
835
host=$host_alias
836
target=$target_alias
837
 
838
# FIXME: To remove some day.
839
if test "x$host_alias" != x; then
840
  if test "x$build_alias" = x; then
841
    cross_compiling=maybe
842
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843
    If a cross compiler is detected then cross compile mode will be used." >&2
844
  elif test "x$build_alias" != "x$host_alias"; then
845
    cross_compiling=yes
846
  fi
847
fi
848
 
849
ac_tool_prefix=
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
 
852
test "$silent" = yes && exec 6>/dev/null
853
 
854
 
855
# Find the source files, if location was not specified.
856
if test -z "$srcdir"; then
857
  ac_srcdir_defaulted=yes
858
  # Try the directory containing this script, then its parent.
859
  ac_confdir=`(dirname "$0") 2>/dev/null ||
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
         X"$0" : 'X\(//\)[^/]' \| \
862
         X"$0" : 'X\(//\)$' \| \
863
         X"$0" : 'X\(/\)' \| \
864
         .     : '\(.\)' 2>/dev/null ||
865
echo X"$0" |
866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
          /^X\(\/\/\)$/{ s//\1/; q; }
869
          /^X\(\/\).*/{ s//\1/; q; }
870
          s/.*/./; q'`
871
  srcdir=$ac_confdir
872
  if test ! -r $srcdir/$ac_unique_file; then
873
    srcdir=..
874
  fi
875
else
876
  ac_srcdir_defaulted=no
877
fi
878
if test ! -r $srcdir/$ac_unique_file; then
879
  if test "$ac_srcdir_defaulted" = yes; then
880
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881
   { (exit 1); exit 1; }; }
882
  else
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884
   { (exit 1); exit 1; }; }
885
  fi
886
fi
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889
   { (exit 1); exit 1; }; }
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891
ac_env_build_alias_set=${build_alias+set}
892
ac_env_build_alias_value=$build_alias
893
ac_cv_env_build_alias_set=${build_alias+set}
894
ac_cv_env_build_alias_value=$build_alias
895
ac_env_host_alias_set=${host_alias+set}
896
ac_env_host_alias_value=$host_alias
897
ac_cv_env_host_alias_set=${host_alias+set}
898
ac_cv_env_host_alias_value=$host_alias
899
ac_env_target_alias_set=${target_alias+set}
900
ac_env_target_alias_value=$target_alias
901
ac_cv_env_target_alias_set=${target_alias+set}
902
ac_cv_env_target_alias_value=$target_alias
903
ac_env_CCAS_set=${CCAS+set}
904
ac_env_CCAS_value=$CCAS
905
ac_cv_env_CCAS_set=${CCAS+set}
906
ac_cv_env_CCAS_value=$CCAS
907
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908
ac_env_CCASFLAGS_value=$CCASFLAGS
909
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911
ac_env_CC_set=${CC+set}
912
ac_env_CC_value=$CC
913
ac_cv_env_CC_set=${CC+set}
914
ac_cv_env_CC_value=$CC
915
ac_env_CFLAGS_set=${CFLAGS+set}
916
ac_env_CFLAGS_value=$CFLAGS
917
ac_cv_env_CFLAGS_set=${CFLAGS+set}
918
ac_cv_env_CFLAGS_value=$CFLAGS
919
ac_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_env_LDFLAGS_value=$LDFLAGS
921
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922
ac_cv_env_LDFLAGS_value=$LDFLAGS
923
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_env_CPPFLAGS_value=$CPPFLAGS
925
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927
ac_env_CPP_set=${CPP+set}
928
ac_env_CPP_value=$CPP
929
ac_cv_env_CPP_set=${CPP+set}
930
ac_cv_env_CPP_value=$CPP
931
 
932
#
933
# Report the --help message.
934
#
935
if test "$ac_init_help" = "long"; then
936
  # Omit some internal or obsolete options to make the list less imposing.
937
  # This message is too long to be a string in the A/UX 3.1 sh.
938
  cat <<_ACEOF
939
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
940
 
941
Usage: $0 [OPTION]... [VAR=VALUE]...
942
 
943
To assign environment variables (e.g., CC, CFLAGS...), specify them as
944
VAR=VALUE.  See below for descriptions of some of the useful variables.
945
 
946
Defaults for the options are specified in brackets.
947
 
948
Configuration:
949
  -h, --help              display this help and exit
950
      --help=short        display options specific to this package
951
      --help=recursive    display the short help of all the included packages
952
  -V, --version           display version information and exit
953
  -q, --quiet, --silent   do not print \`checking...' messages
954
      --cache-file=FILE   cache test results in FILE [disabled]
955
  -C, --config-cache      alias for \`--cache-file=config.cache'
956
  -n, --no-create         do not create output files
957
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
 
959
_ACEOF
960
 
961
  cat <<_ACEOF
962
Installation directories:
963
  --prefix=PREFIX         install architecture-independent files in PREFIX
964
                          [$ac_default_prefix]
965
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966
                          [PREFIX]
967
 
968
By default, \`make install' will install all the files in
969
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971
for instance \`--prefix=\$HOME'.
972
 
973
For better control, use the options below.
974
 
975
Fine tuning of the installation directories:
976
  --bindir=DIR           user executables [EPREFIX/bin]
977
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
978
  --libexecdir=DIR       program executables [EPREFIX/libexec]
979
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983
  --libdir=DIR           object code libraries [EPREFIX/lib]
984
  --includedir=DIR       C header files [PREFIX/include]
985
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986
  --infodir=DIR          info documentation [PREFIX/info]
987
  --mandir=DIR           man documentation [PREFIX/man]
988
_ACEOF
989
 
990
  cat <<\_ACEOF
991
 
992
Program names:
993
  --program-prefix=PREFIX            prepend PREFIX to installed program names
994
  --program-suffix=SUFFIX            append SUFFIX to installed program names
995
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
 
997
System types:
998
  --build=BUILD     configure for building on BUILD [guessed]
999
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000
_ACEOF
1001
fi
1002
 
1003
if test -n "$ac_init_help"; then
1004
  case $ac_init_help in
1005
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1006
   esac
1007
  cat <<\_ACEOF
1008
 
1009
Optional Features:
1010
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1011
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1012
  --enable-multilib         build many library versions (default)
1013
  --enable-target-optspace  optimize for space
1014
  --enable-malloc-debugging indicate malloc debugging requested
1015
  --enable-newlib-multithread        enable support for multiple threads
1016
  --enable-newlib-iconv     enable iconv library support
1017
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1018
  --disable-newlib-io-float disable printf/scanf family float support
1019
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1020
  --disable-dependency-tracking  speeds up one-time build
1021
  --enable-dependency-tracking   do not reject slow dependency extractors
1022
  --enable-maintainer-mode  enable make rules and dependencies not useful
1023
                          (and sometimes confusing) to the casual installer
1024
  --enable-shared[=PKGS]
1025
                          build shared libraries [default=yes]
1026
  --enable-static[=PKGS]
1027
                          build static libraries [default=yes]
1028
  --enable-fast-install[=PKGS]
1029
                          optimize for fast installation [default=yes]
1030
  --disable-libtool-lock  avoid locking (might break parallel builds)
1031
 
1032
Optional Packages:
1033
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035
  --with-pic              try to use only PIC/non-PIC objects [default=use
1036
                          both]
1037
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038
 
1039
Some influential environment variables:
1040
  CCAS        assembler compiler command (defaults to CC)
1041
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1042
  CC          C compiler command
1043
  CFLAGS      C compiler flags
1044
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1045
              nonstandard directory 
1046
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1047
              headers in a nonstandard directory 
1048
  CPP         C preprocessor
1049
 
1050
Use these variables to override the choices made by `configure' or to help
1051
it to find libraries and programs with nonstandard names/locations.
1052
 
1053
_ACEOF
1054
fi
1055
 
1056
if test "$ac_init_help" = "recursive"; then
1057
  # If there are subdirs, report their specific --help.
1058
  ac_popdir=`pwd`
1059
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1060
    test -d $ac_dir || continue
1061
    ac_builddir=.
1062
 
1063
if test "$ac_dir" != .; then
1064
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1065
  # A "../" for each directory in $ac_dir_suffix.
1066
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1067
else
1068
  ac_dir_suffix= ac_top_builddir=
1069
fi
1070
 
1071
case $srcdir in
1072
  .)  # No --srcdir option.  We are building in place.
1073
    ac_srcdir=.
1074
    if test -z "$ac_top_builddir"; then
1075
       ac_top_srcdir=.
1076
    else
1077
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1078
    fi ;;
1079
  [\\/]* | ?:[\\/]* )  # Absolute path.
1080
    ac_srcdir=$srcdir$ac_dir_suffix;
1081
    ac_top_srcdir=$srcdir ;;
1082
  *) # Relative path.
1083
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1084
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085
esac
1086
 
1087
# Do not use `cd foo && pwd` to compute absolute paths, because
1088
# the directories may not exist.
1089
case `pwd` in
1090
.) ac_abs_builddir="$ac_dir";;
1091
*)
1092
  case "$ac_dir" in
1093
  .) ac_abs_builddir=`pwd`;;
1094
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1095
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096
  esac;;
1097
esac
1098
case $ac_abs_builddir in
1099
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1100
*)
1101
  case ${ac_top_builddir}. in
1102
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1103
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1104
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105
  esac;;
1106
esac
1107
case $ac_abs_builddir in
1108
.) ac_abs_srcdir=$ac_srcdir;;
1109
*)
1110
  case $ac_srcdir in
1111
  .) ac_abs_srcdir=$ac_abs_builddir;;
1112
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1113
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114
  esac;;
1115
esac
1116
case $ac_abs_builddir in
1117
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1118
*)
1119
  case $ac_top_srcdir in
1120
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1121
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1122
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123
  esac;;
1124
esac
1125
 
1126
    cd $ac_dir
1127
    # Check for guested configure; otherwise get Cygnus style configure.
1128
    if test -f $ac_srcdir/configure.gnu; then
1129
      echo
1130
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1131
    elif test -f $ac_srcdir/configure; then
1132
      echo
1133
      $SHELL $ac_srcdir/configure  --help=recursive
1134
    elif test -f $ac_srcdir/configure.ac ||
1135
           test -f $ac_srcdir/configure.in; then
1136
      echo
1137
      $ac_configure --help
1138
    else
1139
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140
    fi
1141
    cd $ac_popdir
1142
  done
1143
fi
1144
 
1145
test -n "$ac_init_help" && exit 0
1146
if $ac_init_version; then
1147
  cat <<\_ACEOF
1148
newlib configure 1.17.0
1149
generated by GNU Autoconf 2.59
1150
 
1151
Copyright (C) 2003 Free Software Foundation, Inc.
1152
This configure script is free software; the Free Software Foundation
1153
gives unlimited permission to copy, distribute and modify it.
1154
_ACEOF
1155
  exit 0
1156
fi
1157
exec 5>config.log
1158
cat >&5 <<_ACEOF
1159
This file contains any messages produced by compilers while
1160
running configure, to aid debugging if configure makes a mistake.
1161
 
1162
It was created by newlib $as_me 1.17.0, which was
1163
generated by GNU Autoconf 2.59.  Invocation command line was
1164
 
1165
  $ $0 $@
1166
 
1167
_ACEOF
1168
{
1169
cat <<_ASUNAME
1170
## --------- ##
1171
## Platform. ##
1172
## --------- ##
1173
 
1174
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
 
1180
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1182
 
1183
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1184
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1185
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1187
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1188
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1189
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1190
 
1191
_ASUNAME
1192
 
1193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194
for as_dir in $PATH
1195
do
1196
  IFS=$as_save_IFS
1197
  test -z "$as_dir" && as_dir=.
1198
  echo "PATH: $as_dir"
1199
done
1200
 
1201
} >&5
1202
 
1203
cat >&5 <<_ACEOF
1204
 
1205
 
1206
## ----------- ##
1207
## Core tests. ##
1208
## ----------- ##
1209
 
1210
_ACEOF
1211
 
1212
 
1213
# Keep a trace of the command line.
1214
# Strip out --no-create and --no-recursion so they do not pile up.
1215
# Strip out --silent because we don't want to record it for future runs.
1216
# Also quote any args containing shell meta-characters.
1217
# Make two passes to allow for proper duplicate-argument suppression.
1218
ac_configure_args=
1219
ac_configure_args0=
1220
ac_configure_args1=
1221
ac_sep=
1222
ac_must_keep_next=false
1223
for ac_pass in 1 2
1224
do
1225
  for ac_arg
1226
  do
1227
    case $ac_arg in
1228
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230
    | -silent | --silent | --silen | --sile | --sil)
1231
      continue ;;
1232
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234
    esac
1235
    case $ac_pass in
1236
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237
    2)
1238
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239
      if test $ac_must_keep_next = true; then
1240
        ac_must_keep_next=false # Got value, back to normal.
1241
      else
1242
        case $ac_arg in
1243
          *=* | --config-cache | -C | -disable-* | --disable-* \
1244
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246
          | -with-* | --with-* | -without-* | --without-* | --x)
1247
            case "$ac_configure_args0 " in
1248
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249
            esac
1250
            ;;
1251
          -* ) ac_must_keep_next=true ;;
1252
        esac
1253
      fi
1254
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255
      # Get rid of the leading space.
1256
      ac_sep=" "
1257
      ;;
1258
    esac
1259
  done
1260
done
1261
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
 
1264
# When interrupted or exit'd, cleanup temporary files, and complete
1265
# config.log.  We remove comments because anyway the quotes in there
1266
# would cause problems or look ugly.
1267
# WARNING: Be sure not to use single quotes in there, as some shells,
1268
# such as our DU 5.0 friend, will then `close' the trap.
1269
trap 'exit_status=$?
1270
  # Save into config.log some information that might help in debugging.
1271
  {
1272
    echo
1273
 
1274
    cat <<\_ASBOX
1275
## ---------------- ##
1276
## Cache variables. ##
1277
## ---------------- ##
1278
_ASBOX
1279
    echo
1280
    # The following way of writing the cache mishandles newlines in values,
1281
{
1282
  (set) 2>&1 |
1283
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284
    *ac_space=\ *)
1285
      sed -n \
1286
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1288
      ;;
1289
    *)
1290
      sed -n \
1291
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1292
      ;;
1293
    esac;
1294
}
1295
    echo
1296
 
1297
    cat <<\_ASBOX
1298
## ----------------- ##
1299
## Output variables. ##
1300
## ----------------- ##
1301
_ASBOX
1302
    echo
1303
    for ac_var in $ac_subst_vars
1304
    do
1305
      eval ac_val=$`echo $ac_var`
1306
      echo "$ac_var='"'"'$ac_val'"'"'"
1307
    done | sort
1308
    echo
1309
 
1310
    if test -n "$ac_subst_files"; then
1311
      cat <<\_ASBOX
1312
## ------------- ##
1313
## Output files. ##
1314
## ------------- ##
1315
_ASBOX
1316
      echo
1317
      for ac_var in $ac_subst_files
1318
      do
1319
        eval ac_val=$`echo $ac_var`
1320
        echo "$ac_var='"'"'$ac_val'"'"'"
1321
      done | sort
1322
      echo
1323
    fi
1324
 
1325
    if test -s confdefs.h; then
1326
      cat <<\_ASBOX
1327
## ----------- ##
1328
## confdefs.h. ##
1329
## ----------- ##
1330
_ASBOX
1331
      echo
1332
      sed "/^$/d" confdefs.h | sort
1333
      echo
1334
    fi
1335
    test "$ac_signal" != 0 &&
1336
      echo "$as_me: caught signal $ac_signal"
1337
    echo "$as_me: exit $exit_status"
1338
  } >&5
1339
  rm -f core *.core &&
1340
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341
    exit $exit_status
1342
     ' 0
1343
for ac_signal in 1 2 13 15; do
1344
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345
done
1346
ac_signal=0
1347
 
1348
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1349
rm -rf conftest* confdefs.h
1350
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351
echo >confdefs.h
1352
 
1353
# Predefined preprocessor variables.
1354
 
1355
cat >>confdefs.h <<_ACEOF
1356
#define PACKAGE_NAME "$PACKAGE_NAME"
1357
_ACEOF
1358
 
1359
 
1360
cat >>confdefs.h <<_ACEOF
1361
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362
_ACEOF
1363
 
1364
 
1365
cat >>confdefs.h <<_ACEOF
1366
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1367
_ACEOF
1368
 
1369
 
1370
cat >>confdefs.h <<_ACEOF
1371
#define PACKAGE_STRING "$PACKAGE_STRING"
1372
_ACEOF
1373
 
1374
 
1375
cat >>confdefs.h <<_ACEOF
1376
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377
_ACEOF
1378
 
1379
 
1380
# Let the site file select an alternate cache file if it wants to.
1381
# Prefer explicitly selected file to automatically selected ones.
1382
if test -z "$CONFIG_SITE"; then
1383
  if test "x$prefix" != xNONE; then
1384
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385
  else
1386
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387
  fi
1388
fi
1389
for ac_site_file in $CONFIG_SITE; do
1390
  if test -r "$ac_site_file"; then
1391
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392
echo "$as_me: loading site script $ac_site_file" >&6;}
1393
    sed 's/^/| /' "$ac_site_file" >&5
1394
    . "$ac_site_file"
1395
  fi
1396
done
1397
 
1398
if test -r "$cache_file"; then
1399
  # Some versions of bash will fail to source /dev/null (special
1400
  # files actually), so we avoid doing that.
1401
  if test -f "$cache_file"; then
1402
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403
echo "$as_me: loading cache $cache_file" >&6;}
1404
    case $cache_file in
1405
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1406
      *)                      . ./$cache_file;;
1407
    esac
1408
  fi
1409
else
1410
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411
echo "$as_me: creating cache $cache_file" >&6;}
1412
  >$cache_file
1413
fi
1414
 
1415
# Check that the precious variables saved in the cache have kept the same
1416
# value.
1417
ac_cache_corrupted=false
1418
for ac_var in `(set) 2>&1 |
1419
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1420
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421
  eval ac_new_set=\$ac_env_${ac_var}_set
1422
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423
  eval ac_new_val="\$ac_env_${ac_var}_value"
1424
  case $ac_old_set,$ac_new_set in
1425
    set,)
1426
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428
      ac_cache_corrupted=: ;;
1429
    ,set)
1430
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432
      ac_cache_corrupted=: ;;
1433
    ,);;
1434
    *)
1435
      if test "x$ac_old_val" != "x$ac_new_val"; then
1436
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1439
echo "$as_me:   former value:  $ac_old_val" >&2;}
1440
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1441
echo "$as_me:   current value: $ac_new_val" >&2;}
1442
        ac_cache_corrupted=:
1443
      fi;;
1444
  esac
1445
  # Pass precious variables to config.status.
1446
  if test "$ac_new_set" = set; then
1447
    case $ac_new_val in
1448
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450
    *) ac_arg=$ac_var=$ac_new_val ;;
1451
    esac
1452
    case " $ac_configure_args " in
1453
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1454
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455
    esac
1456
  fi
1457
done
1458
if $ac_cache_corrupted; then
1459
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463
   { (exit 1); exit 1; }; }
1464
fi
1465
 
1466
ac_ext=c
1467
ac_cpp='$CPP $CPPFLAGS'
1468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
 
1500
ac_aux_dir=
1501
for ac_dir in ../../../../.. $srcdir/../../../../..; do
1502
  if test -f $ac_dir/install-sh; then
1503
    ac_aux_dir=$ac_dir
1504
    ac_install_sh="$ac_aux_dir/install-sh -c"
1505
    break
1506
  elif test -f $ac_dir/install.sh; then
1507
    ac_aux_dir=$ac_dir
1508
    ac_install_sh="$ac_aux_dir/install.sh -c"
1509
    break
1510
  elif test -f $ac_dir/shtool; then
1511
    ac_aux_dir=$ac_dir
1512
    ac_install_sh="$ac_aux_dir/shtool install -c"
1513
    break
1514
  fi
1515
done
1516
if test -z "$ac_aux_dir"; then
1517
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&5
1518
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&2;}
1519
   { (exit 1); exit 1; }; }
1520
fi
1521
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
 
1525
 
1526
 
1527
# Make sure we can run config.sub.
1528
$ac_config_sub sun4 >/dev/null 2>&1 ||
1529
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531
   { (exit 1); exit 1; }; }
1532
 
1533
echo "$as_me:$LINENO: checking build system type" >&5
1534
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535
if test "${ac_cv_build+set}" = set; then
1536
  echo $ECHO_N "(cached) $ECHO_C" >&6
1537
else
1538
  ac_cv_build_alias=$build_alias
1539
test -z "$ac_cv_build_alias" &&
1540
  ac_cv_build_alias=`$ac_config_guess`
1541
test -z "$ac_cv_build_alias" &&
1542
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544
   { (exit 1); exit 1; }; }
1545
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548
   { (exit 1); exit 1; }; }
1549
 
1550
fi
1551
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552
echo "${ECHO_T}$ac_cv_build" >&6
1553
build=$ac_cv_build
1554
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
 
1558
 
1559
am__api_version="1.9"
1560
# Find a good install program.  We prefer a C program (faster),
1561
# so one script is as good as another.  But avoid the broken or
1562
# incompatible versions:
1563
# SysV /etc/install, /usr/sbin/install
1564
# SunOS /usr/etc/install
1565
# IRIX /sbin/install
1566
# AIX /bin/install
1567
# AmigaOS /C/install, which installs bootblocks on floppy discs
1568
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571
# OS/2's system install, which has a completely different semantic
1572
# ./install, which can be erroneously created by make from ./install.sh.
1573
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575
if test -z "$INSTALL"; then
1576
if test "${ac_cv_path_install+set}" = set; then
1577
  echo $ECHO_N "(cached) $ECHO_C" >&6
1578
else
1579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580
for as_dir in $PATH
1581
do
1582
  IFS=$as_save_IFS
1583
  test -z "$as_dir" && as_dir=.
1584
  # Account for people who put trailing slashes in PATH elements.
1585
case $as_dir/ in
1586
  ./ | .// | /cC/* | \
1587
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589
  /usr/ucb/* ) ;;
1590
  *)
1591
    # OSF1 and SCO ODT 3.0 have their own names for install.
1592
    # Don't use installbsd from OSF since it installs stuff as root
1593
    # by default.
1594
    for ac_prog in ginstall scoinst install; do
1595
      for ac_exec_ext in '' $ac_executable_extensions; do
1596
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597
          if test $ac_prog = install &&
1598
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599
            # AIX install.  It has an incompatible calling convention.
1600
            :
1601
          elif test $ac_prog = install &&
1602
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603
            # program-specific install script used by HP pwplus--don't use.
1604
            :
1605
          else
1606
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607
            break 3
1608
          fi
1609
        fi
1610
      done
1611
    done
1612
    ;;
1613
esac
1614
done
1615
 
1616
 
1617
fi
1618
  if test "${ac_cv_path_install+set}" = set; then
1619
    INSTALL=$ac_cv_path_install
1620
  else
1621
    # As a last resort, use the slow shell script.  We don't cache a
1622
    # path for INSTALL within a source directory, because that will
1623
    # break other packages using the cache if that directory is
1624
    # removed, or if the path is relative.
1625
    INSTALL=$ac_install_sh
1626
  fi
1627
fi
1628
echo "$as_me:$LINENO: result: $INSTALL" >&5
1629
echo "${ECHO_T}$INSTALL" >&6
1630
 
1631
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632
# It thinks the first close brace ends the variable substitution.
1633
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
 
1635
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
 
1637
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
 
1639
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641
# Just in case
1642
sleep 1
1643
echo timestamp > conftest.file
1644
# Do `set' in a subshell so we don't clobber the current shell's
1645
# arguments.  Must try -L first in case configure is actually a
1646
# symlink; some systems play weird games with the mod time of symlinks
1647
# (eg FreeBSD returns the mod time of the symlink's containing
1648
# directory).
1649
if (
1650
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651
   if test "$*" = "X"; then
1652
      # -L didn't work.
1653
      set X `ls -t $srcdir/configure conftest.file`
1654
   fi
1655
   rm -f conftest.file
1656
   if test "$*" != "X $srcdir/configure conftest.file" \
1657
      && test "$*" != "X conftest.file $srcdir/configure"; then
1658
 
1659
      # If neither matched, then we have a broken ls.  This can happen
1660
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1661
      # broken ls alias from the environment.  This has actually
1662
      # happened.  Such a system could not be considered "sane".
1663
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664
alias in your environment" >&5
1665
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666
alias in your environment" >&2;}
1667
   { (exit 1); exit 1; }; }
1668
   fi
1669
 
1670
   test "$2" = conftest.file
1671
   )
1672
then
1673
   # Ok.
1674
   :
1675
else
1676
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677
Check your system clock" >&5
1678
echo "$as_me: error: newly created file is older than distributed files!
1679
Check your system clock" >&2;}
1680
   { (exit 1); exit 1; }; }
1681
fi
1682
echo "$as_me:$LINENO: result: yes" >&5
1683
echo "${ECHO_T}yes" >&6
1684
test "$program_prefix" != NONE &&
1685
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686
# Use a double $ so make ignores it.
1687
test "$program_suffix" != NONE &&
1688
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689
# Double any \ or $.  echo might interpret backslashes.
1690
# By default was `s,x,x', remove it if useless.
1691
cat <<\_ACEOF >conftest.sed
1692
s/[\\$]/&&/g;s/;s,x,x,$//
1693
_ACEOF
1694
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695
rm conftest.sed
1696
 
1697
# expand $ac_aux_dir to an absolute path
1698
am_aux_dir=`cd $ac_aux_dir && pwd`
1699
 
1700
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701
# Use eval to expand $SHELL
1702
if eval "$MISSING --run true"; then
1703
  am_missing_run="$MISSING --run "
1704
else
1705
  am_missing_run=
1706
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708
fi
1709
 
1710
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711
  # We used to keeping the `.' as first argument, in order to
1712
  # allow $(mkdir_p) to be used without argument.  As in
1713
  #   $(mkdir_p) $(somedir)
1714
  # where $(somedir) is conditionally defined.  However this is wrong
1715
  # for two reasons:
1716
  #  1. if the package is installed by a user who cannot write `.'
1717
  #     make install will fail,
1718
  #  2. the above comment should most certainly read
1719
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1720
  #     so it does not work when $(somedir) is undefined and
1721
  #     $(DESTDIR) is not.
1722
  #  To support the latter case, we have to write
1723
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724
  #  so the `.' trick is pointless.
1725
  mkdir_p='mkdir -p --'
1726
else
1727
  # On NextStep and OpenStep, the `mkdir' command does not
1728
  # recognize any option.  It will interpret all options as
1729
  # directories to create, and then abort because `.' already
1730
  # exists.
1731
  for d in ./-p ./--version;
1732
  do
1733
    test -d $d && rmdir $d
1734
  done
1735
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1737
    mkdir_p='$(mkinstalldirs)'
1738
  else
1739
    mkdir_p='$(install_sh) -d'
1740
  fi
1741
fi
1742
 
1743
for ac_prog in gawk mawk nawk awk
1744
do
1745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1746
set dummy $ac_prog; ac_word=$2
1747
echo "$as_me:$LINENO: checking for $ac_word" >&5
1748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749
if test "${ac_cv_prog_AWK+set}" = set; then
1750
  echo $ECHO_N "(cached) $ECHO_C" >&6
1751
else
1752
  if test -n "$AWK"; then
1753
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754
else
1755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756
for as_dir in $PATH
1757
do
1758
  IFS=$as_save_IFS
1759
  test -z "$as_dir" && as_dir=.
1760
  for ac_exec_ext in '' $ac_executable_extensions; do
1761
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762
    ac_cv_prog_AWK="$ac_prog"
1763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764
    break 2
1765
  fi
1766
done
1767
done
1768
 
1769
fi
1770
fi
1771
AWK=$ac_cv_prog_AWK
1772
if test -n "$AWK"; then
1773
  echo "$as_me:$LINENO: result: $AWK" >&5
1774
echo "${ECHO_T}$AWK" >&6
1775
else
1776
  echo "$as_me:$LINENO: result: no" >&5
1777
echo "${ECHO_T}no" >&6
1778
fi
1779
 
1780
  test -n "$AWK" && break
1781
done
1782
 
1783
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787
  echo $ECHO_N "(cached) $ECHO_C" >&6
1788
else
1789
  cat >conftest.make <<\_ACEOF
1790
all:
1791
        @echo 'ac_maketemp="$(MAKE)"'
1792
_ACEOF
1793
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795
if test -n "$ac_maketemp"; then
1796
  eval ac_cv_prog_make_${ac_make}_set=yes
1797
else
1798
  eval ac_cv_prog_make_${ac_make}_set=no
1799
fi
1800
rm -f conftest.make
1801
fi
1802
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803
  echo "$as_me:$LINENO: result: yes" >&5
1804
echo "${ECHO_T}yes" >&6
1805
  SET_MAKE=
1806
else
1807
  echo "$as_me:$LINENO: result: no" >&5
1808
echo "${ECHO_T}no" >&6
1809
  SET_MAKE="MAKE=${MAKE-make}"
1810
fi
1811
 
1812
rm -rf .tst 2>/dev/null
1813
mkdir .tst 2>/dev/null
1814
if test -d .tst; then
1815
  am__leading_dot=.
1816
else
1817
  am__leading_dot=_
1818
fi
1819
rmdir .tst 2>/dev/null
1820
 
1821
DEPDIR="${am__leading_dot}deps"
1822
 
1823
          ac_config_commands="$ac_config_commands depfiles"
1824
 
1825
 
1826
am_make=${MAKE-make}
1827
cat > confinc << 'END'
1828
am__doit:
1829
        @echo done
1830
.PHONY: am__doit
1831
END
1832
# If we don't find an include directive, just comment out the code.
1833
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1834
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1835
am__include="#"
1836
am__quote=
1837
_am_result=none
1838
# First try GNU make style include.
1839
echo "include confinc" > confmf
1840
# We grep out `Entering directory' and `Leaving directory'
1841
# messages which can occur if `w' ends up in MAKEFLAGS.
1842
# In particular we don't look at `^make:' because GNU make might
1843
# be invoked under some other name (usually "gmake"), in which
1844
# case it prints its new name instead of `make'.
1845
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1846
   am__include=include
1847
   am__quote=
1848
   _am_result=GNU
1849
fi
1850
# Now try BSD make style include.
1851
if test "$am__include" = "#"; then
1852
   echo '.include "confinc"' > confmf
1853
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1854
      am__include=.include
1855
      am__quote="\""
1856
      _am_result=BSD
1857
   fi
1858
fi
1859
 
1860
 
1861
echo "$as_me:$LINENO: result: $_am_result" >&5
1862
echo "${ECHO_T}$_am_result" >&6
1863
rm -f confinc confmf
1864
 
1865
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1866
if test "${enable_dependency_tracking+set}" = set; then
1867
  enableval="$enable_dependency_tracking"
1868
 
1869
fi;
1870
if test "x$enable_dependency_tracking" != xno; then
1871
  am_depcomp="$ac_aux_dir/depcomp"
1872
  AMDEPBACKSLASH='\'
1873
fi
1874
 
1875
 
1876
if test "x$enable_dependency_tracking" != xno; then
1877
  AMDEP_TRUE=
1878
  AMDEP_FALSE='#'
1879
else
1880
  AMDEP_TRUE='#'
1881
  AMDEP_FALSE=
1882
fi
1883
 
1884
 
1885
 
1886
 
1887
# Check whether --enable-multilib or --disable-multilib was given.
1888
if test "${enable_multilib+set}" = set; then
1889
  enableval="$enable_multilib"
1890
  case "${enableval}" in
1891
  yes) multilib=yes ;;
1892
  no)  multilib=no ;;
1893
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1894
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1895
   { (exit 1); exit 1; }; } ;;
1896
 esac
1897
else
1898
  multilib=yes
1899
fi;
1900
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1901
if test "${enable_target_optspace+set}" = set; then
1902
  enableval="$enable_target_optspace"
1903
  case "${enableval}" in
1904
  yes) target_optspace=yes ;;
1905
  no)  target_optspace=no ;;
1906
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1907
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1908
   { (exit 1); exit 1; }; } ;;
1909
 esac
1910
else
1911
  target_optspace=
1912
fi;
1913
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1914
if test "${enable_malloc_debugging+set}" = set; then
1915
  enableval="$enable_malloc_debugging"
1916
  case "${enableval}" in
1917
  yes) malloc_debugging=yes ;;
1918
  no)  malloc_debugging=no ;;
1919
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1920
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1921
   { (exit 1); exit 1; }; } ;;
1922
 esac
1923
else
1924
  malloc_debugging=
1925
fi;
1926
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1927
if test "${enable_newlib_multithread+set}" = set; then
1928
  enableval="$enable_newlib_multithread"
1929
  case "${enableval}" in
1930
  yes) newlib_multithread=yes ;;
1931
  no)  newlib_multithread=no ;;
1932
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1933
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1934
   { (exit 1); exit 1; }; } ;;
1935
 esac
1936
else
1937
  newlib_multithread=yes
1938
fi;
1939
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1940
if test "${enable_newlib_iconv+set}" = set; then
1941
  enableval="$enable_newlib_iconv"
1942
  if test "${newlib_iconv+set}" != set; then
1943
   case "${enableval}" in
1944
     yes) newlib_iconv=yes ;;
1945
     no)  newlib_iconv=no ;;
1946
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1947
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1948
   { (exit 1); exit 1; }; } ;;
1949
   esac
1950
 fi
1951
else
1952
  newlib_iconv=${newlib_iconv}
1953
fi;
1954
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1955
if test "${enable_newlib_elix_level+set}" = set; then
1956
  enableval="$enable_newlib_elix_level"
1957
  case "${enableval}" in
1958
  0)   newlib_elix_level=0 ;;
1959
  1)   newlib_elix_level=1 ;;
1960
  2)   newlib_elix_level=2 ;;
1961
  3)   newlib_elix_level=3 ;;
1962
  4)   newlib_elix_level=4 ;;
1963
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1964
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1965
   { (exit 1); exit 1; }; } ;;
1966
 esac
1967
else
1968
  newlib_elix_level=0
1969
fi;
1970
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1971
if test "${enable_newlib_io_float+set}" = set; then
1972
  enableval="$enable_newlib_io_float"
1973
  case "${enableval}" in
1974
  yes) newlib_io_float=yes ;;
1975
  no)  newlib_io_float=no ;;
1976
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1977
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1978
   { (exit 1); exit 1; }; } ;;
1979
 esac
1980
else
1981
  newlib_io_float=yes
1982
fi;
1983
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1984
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1985
  enableval="$enable_newlib_supplied_syscalls"
1986
  case "${enableval}" in
1987
  yes) newlib_may_supply_syscalls=yes ;;
1988
  no)  newlib_may_supply_syscalls=no ;;
1989
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1990
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1991
   { (exit 1); exit 1; }; } ;;
1992
 esac
1993
else
1994
  newlib_may_supply_syscalls=yes
1995
fi;
1996
 
1997
 
1998
if test x${newlib_may_supply_syscalls} = xyes; then
1999
  MAY_SUPPLY_SYSCALLS_TRUE=
2000
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2001
else
2002
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2003
  MAY_SUPPLY_SYSCALLS_FALSE=
2004
fi
2005
 
2006
 
2007
 
2008
test -z "${with_target_subdir}" && with_target_subdir=.
2009
 
2010
if test "${srcdir}" = "."; then
2011
  if test "${with_target_subdir}" != "."; then
2012
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2013
  else
2014
    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2015
  fi
2016
else
2017
  newlib_basedir="${srcdir}/../../../.."
2018
fi
2019
 
2020
 
2021
echo "$as_me:$LINENO: checking host system type" >&5
2022
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2023
if test "${ac_cv_host+set}" = set; then
2024
  echo $ECHO_N "(cached) $ECHO_C" >&6
2025
else
2026
  ac_cv_host_alias=$host_alias
2027
test -z "$ac_cv_host_alias" &&
2028
  ac_cv_host_alias=$ac_cv_build_alias
2029
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2030
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2031
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2032
   { (exit 1); exit 1; }; }
2033
 
2034
fi
2035
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036
echo "${ECHO_T}$ac_cv_host" >&6
2037
host=$ac_cv_host
2038
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2039
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2040
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2041
 
2042
 
2043
 
2044
# test to see if srcdir already configured
2045
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2046
   test -f $srcdir/config.status; then
2047
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2048
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2049
   { (exit 1); exit 1; }; }
2050
fi
2051
 
2052
# test whether we have cygpath
2053
if test -z "$CYGPATH_W"; then
2054
  if (cygpath --version) >/dev/null 2>/dev/null; then
2055
    CYGPATH_W='cygpath -w'
2056
  else
2057
    CYGPATH_W=echo
2058
  fi
2059
fi
2060
 
2061
 
2062
# Define the identity of the package.
2063
 PACKAGE='newlib'
2064
 VERSION='1.17.0'
2065
 
2066
 
2067
# Some tools Automake needs.
2068
 
2069
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2070
 
2071
 
2072
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2073
 
2074
 
2075
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2076
 
2077
 
2078
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2079
 
2080
 
2081
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2082
 
2083
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2084
 
2085
# Installed binaries are usually stripped using `strip' when the user
2086
# run `make install-strip'.  However `strip' might not be the right
2087
# tool to use in cross-compilation environments, therefore Automake
2088
# will honor the `STRIP' environment variable to overrule this program.
2089
if test "$cross_compiling" != no; then
2090
  if test -n "$ac_tool_prefix"; then
2091
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2092
set dummy ${ac_tool_prefix}strip; ac_word=$2
2093
echo "$as_me:$LINENO: checking for $ac_word" >&5
2094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095
if test "${ac_cv_prog_STRIP+set}" = set; then
2096
  echo $ECHO_N "(cached) $ECHO_C" >&6
2097
else
2098
  if test -n "$STRIP"; then
2099
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2100
else
2101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102
for as_dir in $PATH
2103
do
2104
  IFS=$as_save_IFS
2105
  test -z "$as_dir" && as_dir=.
2106
  for ac_exec_ext in '' $ac_executable_extensions; do
2107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110
    break 2
2111
  fi
2112
done
2113
done
2114
 
2115
fi
2116
fi
2117
STRIP=$ac_cv_prog_STRIP
2118
if test -n "$STRIP"; then
2119
  echo "$as_me:$LINENO: result: $STRIP" >&5
2120
echo "${ECHO_T}$STRIP" >&6
2121
else
2122
  echo "$as_me:$LINENO: result: no" >&5
2123
echo "${ECHO_T}no" >&6
2124
fi
2125
 
2126
fi
2127
if test -z "$ac_cv_prog_STRIP"; then
2128
  ac_ct_STRIP=$STRIP
2129
  # Extract the first word of "strip", so it can be a program name with args.
2130
set dummy strip; ac_word=$2
2131
echo "$as_me:$LINENO: checking for $ac_word" >&5
2132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2134
  echo $ECHO_N "(cached) $ECHO_C" >&6
2135
else
2136
  if test -n "$ac_ct_STRIP"; then
2137
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2138
else
2139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140
for as_dir in $PATH
2141
do
2142
  IFS=$as_save_IFS
2143
  test -z "$as_dir" && as_dir=.
2144
  for ac_exec_ext in '' $ac_executable_extensions; do
2145
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146
    ac_cv_prog_ac_ct_STRIP="strip"
2147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148
    break 2
2149
  fi
2150
done
2151
done
2152
 
2153
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2154
fi
2155
fi
2156
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2157
if test -n "$ac_ct_STRIP"; then
2158
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2159
echo "${ECHO_T}$ac_ct_STRIP" >&6
2160
else
2161
  echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2163
fi
2164
 
2165
  STRIP=$ac_ct_STRIP
2166
else
2167
  STRIP="$ac_cv_prog_STRIP"
2168
fi
2169
 
2170
fi
2171
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2172
 
2173
# We need awk for the "check" target.  The system "awk" is bad on
2174
# some platforms.
2175
# Always define AMTAR for backward compatibility.
2176
 
2177
AMTAR=${AMTAR-"${am_missing_run}tar"}
2178
 
2179
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2180
 
2181
 
2182
 
2183
 
2184
 
2185
 
2186
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2187
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2188
# are probably using a cross compiler, which will not be able to fully
2189
# link an executable.  This should really be fixed in autoconf
2190
# itself.
2191
 
2192
 
2193
 
2194
 
2195
 
2196
 
2197
 
2198
# Extract the first word of "gcc", so it can be a program name with args.
2199
set dummy gcc; ac_word=$2
2200
echo "$as_me:$LINENO: checking for $ac_word" >&5
2201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202
if test "${ac_cv_prog_CC+set}" = set; then
2203
  echo $ECHO_N "(cached) $ECHO_C" >&6
2204
else
2205
  if test -n "$CC"; then
2206
  ac_cv_prog_CC="$CC" # Let the user override the test.
2207
else
2208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209
for as_dir in $PATH
2210
do
2211
  IFS=$as_save_IFS
2212
  test -z "$as_dir" && as_dir=.
2213
  for ac_exec_ext in '' $ac_executable_extensions; do
2214
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215
    ac_cv_prog_CC="gcc"
2216
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217
    break 2
2218
  fi
2219
done
2220
done
2221
 
2222
fi
2223
fi
2224
CC=$ac_cv_prog_CC
2225
if test -n "$CC"; then
2226
  echo "$as_me:$LINENO: result: $CC" >&5
2227
echo "${ECHO_T}$CC" >&6
2228
else
2229
  echo "$as_me:$LINENO: result: no" >&5
2230
echo "${ECHO_T}no" >&6
2231
fi
2232
 
2233
 
2234
depcc="$CC"   am_compiler_list=
2235
 
2236
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2237
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2238
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2239
  echo $ECHO_N "(cached) $ECHO_C" >&6
2240
else
2241
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2242
  # We make a subdir and do the tests there.  Otherwise we can end up
2243
  # making bogus files that we don't know about and never remove.  For
2244
  # instance it was reported that on HP-UX the gcc test will end up
2245
  # making a dummy file named `D' -- because `-MD' means `put the output
2246
  # in D'.
2247
  mkdir conftest.dir
2248
  # Copy depcomp to subdir because otherwise we won't find it if we're
2249
  # using a relative directory.
2250
  cp "$am_depcomp" conftest.dir
2251
  cd conftest.dir
2252
  # We will build objects and dependencies in a subdirectory because
2253
  # it helps to detect inapplicable dependency modes.  For instance
2254
  # both Tru64's cc and ICC support -MD to output dependencies as a
2255
  # side effect of compilation, but ICC will put the dependencies in
2256
  # the current directory while Tru64 will put them in the object
2257
  # directory.
2258
  mkdir sub
2259
 
2260
  am_cv_CC_dependencies_compiler_type=none
2261
  if test "$am_compiler_list" = ""; then
2262
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2263
  fi
2264
  for depmode in $am_compiler_list; do
2265
    # Setup a source with many dependencies, because some compilers
2266
    # like to wrap large dependency lists on column 80 (with \), and
2267
    # we should not choose a depcomp mode which is confused by this.
2268
    #
2269
    # We need to recreate these files for each test, as the compiler may
2270
    # overwrite some of them when testing with obscure command lines.
2271
    # This happens at least with the AIX C compiler.
2272
    : > sub/conftest.c
2273
    for i in 1 2 3 4 5 6; do
2274
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2275
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2276
      # Solaris 8's {/usr,}/bin/sh.
2277
      touch sub/conftst$i.h
2278
    done
2279
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2280
 
2281
    case $depmode in
2282
    nosideeffect)
2283
      # after this tag, mechanisms are not by side-effect, so they'll
2284
      # only be used when explicitly requested
2285
      if test "x$enable_dependency_tracking" = xyes; then
2286
        continue
2287
      else
2288
        break
2289
      fi
2290
      ;;
2291
    none) break ;;
2292
    esac
2293
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2294
    # mode.  It turns out that the SunPro C++ compiler does not properly
2295
    # handle `-M -o', and we need to detect this.
2296
    if depmode=$depmode \
2297
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2298
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2299
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2300
         >/dev/null 2>conftest.err &&
2301
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2302
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2303
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2304
      # icc doesn't choke on unknown options, it will just issue warnings
2305
      # or remarks (even with -Werror).  So we grep stderr for any message
2306
      # that says an option was ignored or not supported.
2307
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2308
      #   icc: Command line warning: ignoring option '-M'; no argument required
2309
      # The diagnosis changed in icc 8.0:
2310
      #   icc: Command line remark: option '-MP' not supported
2311
      if (grep 'ignoring option' conftest.err ||
2312
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2313
        am_cv_CC_dependencies_compiler_type=$depmode
2314
        break
2315
      fi
2316
    fi
2317
  done
2318
 
2319
  cd ..
2320
  rm -rf conftest.dir
2321
else
2322
  am_cv_CC_dependencies_compiler_type=none
2323
fi
2324
 
2325
fi
2326
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2327
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2328
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2329
 
2330
 
2331
 
2332
if
2333
  test "x$enable_dependency_tracking" != xno \
2334
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2335
  am__fastdepCC_TRUE=
2336
  am__fastdepCC_FALSE='#'
2337
else
2338
  am__fastdepCC_TRUE='#'
2339
  am__fastdepCC_FALSE=
2340
fi
2341
 
2342
 
2343
if test -z "$CC"; then
2344
  # Extract the first word of "cc", so it can be a program name with args.
2345
set dummy cc; ac_word=$2
2346
echo "$as_me:$LINENO: checking for $ac_word" >&5
2347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348
if test "${ac_cv_prog_CC+set}" = set; then
2349
  echo $ECHO_N "(cached) $ECHO_C" >&6
2350
else
2351
  if test -n "$CC"; then
2352
  ac_cv_prog_CC="$CC" # Let the user override the test.
2353
else
2354
  ac_prog_rejected=no
2355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356
for as_dir in $PATH
2357
do
2358
  IFS=$as_save_IFS
2359
  test -z "$as_dir" && as_dir=.
2360
  for ac_exec_ext in '' $ac_executable_extensions; do
2361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2363
       ac_prog_rejected=yes
2364
       continue
2365
     fi
2366
    ac_cv_prog_CC="cc"
2367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368
    break 2
2369
  fi
2370
done
2371
done
2372
 
2373
if test $ac_prog_rejected = yes; then
2374
  # We found a bogon in the path, so make sure we never use it.
2375
  set dummy $ac_cv_prog_CC
2376
  shift
2377
  if test $# != 0; then
2378
    # We chose a different compiler from the bogus one.
2379
    # However, it has the same basename, so the bogon will be chosen
2380
    # first if we set CC to just the basename; use the full file name.
2381
    shift
2382
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383
  fi
2384
fi
2385
fi
2386
fi
2387
CC=$ac_cv_prog_CC
2388
if test -n "$CC"; then
2389
  echo "$as_me:$LINENO: result: $CC" >&5
2390
echo "${ECHO_T}$CC" >&6
2391
else
2392
  echo "$as_me:$LINENO: result: no" >&5
2393
echo "${ECHO_T}no" >&6
2394
fi
2395
 
2396
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2397
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2398
   { (exit 1); exit 1; }; }
2399
fi
2400
 
2401
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2402
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2403
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2404
  echo $ECHO_N "(cached) $ECHO_C" >&6
2405
else
2406
  cat > conftest.c <
2407
#ifdef __GNUC__
2408
  yes;
2409
#endif
2410
EOF
2411
if { ac_try='${CC-cc} -E conftest.c'
2412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413
  (eval $ac_try) 2>&5
2414
  ac_status=$?
2415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2417
  ac_cv_c_compiler_gnu=yes
2418
else
2419
  ac_cv_c_compiler_gnu=no
2420
fi
2421
fi
2422
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424
 
2425
if test $ac_cv_c_compiler_gnu = yes; then
2426
  GCC=yes
2427
  ac_test_CFLAGS="${CFLAGS+set}"
2428
  ac_save_CFLAGS="$CFLAGS"
2429
  CFLAGS=
2430
  ac_test_CFLAGS=${CFLAGS+set}
2431
ac_save_CFLAGS=$CFLAGS
2432
CFLAGS="-g"
2433
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2435
if test "${ac_cv_prog_cc_g+set}" = set; then
2436
  echo $ECHO_N "(cached) $ECHO_C" >&6
2437
else
2438
  cat >conftest.$ac_ext <<_ACEOF
2439
/* confdefs.h.  */
2440
_ACEOF
2441
cat confdefs.h >>conftest.$ac_ext
2442
cat >>conftest.$ac_ext <<_ACEOF
2443
/* end confdefs.h.  */
2444
 
2445
int
2446
main ()
2447
{
2448
 
2449
  ;
2450
  return 0;
2451
}
2452
_ACEOF
2453
rm -f conftest.$ac_objext
2454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455
  (eval $ac_compile) 2>conftest.er1
2456
  ac_status=$?
2457
  grep -v '^ *+' conftest.er1 >conftest.err
2458
  rm -f conftest.er1
2459
  cat conftest.err >&5
2460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461
  (exit $ac_status); } &&
2462
         { ac_try='test -z "$ac_c_werror_flag"
2463
                         || test ! -s conftest.err'
2464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; } &&
2469
         { ac_try='test -s conftest.$ac_objext'
2470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471
  (eval $ac_try) 2>&5
2472
  ac_status=$?
2473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474
  (exit $ac_status); }; }; then
2475
  ac_cv_prog_cc_g=yes
2476
else
2477
  echo "$as_me: failed program was:" >&5
2478
sed 's/^/| /' conftest.$ac_ext >&5
2479
 
2480
ac_cv_prog_cc_g=no
2481
fi
2482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483
fi
2484
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2485
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2486
if test "$ac_test_CFLAGS" = set; then
2487
  CFLAGS=$ac_save_CFLAGS
2488
elif test $ac_cv_prog_cc_g = yes; then
2489
  if test "$GCC" = yes; then
2490
    CFLAGS="-g -O2"
2491
  else
2492
    CFLAGS="-g"
2493
  fi
2494
else
2495
  if test "$GCC" = yes; then
2496
    CFLAGS="-O2"
2497
  else
2498
    CFLAGS=
2499
  fi
2500
fi
2501
  if test "$ac_test_CFLAGS" = set; then
2502
    CFLAGS="$ac_save_CFLAGS"
2503
  elif test $ac_cv_prog_cc_g = yes; then
2504
    CFLAGS="-g -O2"
2505
  else
2506
    CFLAGS="-O2"
2507
  fi
2508
else
2509
  GCC=
2510
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2511
fi
2512
 
2513
 
2514
if test -n "$ac_tool_prefix"; then
2515
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2516
set dummy ${ac_tool_prefix}as; ac_word=$2
2517
echo "$as_me:$LINENO: checking for $ac_word" >&5
2518
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519
if test "${ac_cv_prog_AS+set}" = set; then
2520
  echo $ECHO_N "(cached) $ECHO_C" >&6
2521
else
2522
  if test -n "$AS"; then
2523
  ac_cv_prog_AS="$AS" # Let the user override the test.
2524
else
2525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526
for as_dir in $PATH
2527
do
2528
  IFS=$as_save_IFS
2529
  test -z "$as_dir" && as_dir=.
2530
  for ac_exec_ext in '' $ac_executable_extensions; do
2531
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532
    ac_cv_prog_AS="${ac_tool_prefix}as"
2533
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534
    break 2
2535
  fi
2536
done
2537
done
2538
 
2539
fi
2540
fi
2541
AS=$ac_cv_prog_AS
2542
if test -n "$AS"; then
2543
  echo "$as_me:$LINENO: result: $AS" >&5
2544
echo "${ECHO_T}$AS" >&6
2545
else
2546
  echo "$as_me:$LINENO: result: no" >&5
2547
echo "${ECHO_T}no" >&6
2548
fi
2549
 
2550
fi
2551
if test -z "$ac_cv_prog_AS"; then
2552
  ac_ct_AS=$AS
2553
  # Extract the first word of "as", so it can be a program name with args.
2554
set dummy as; ac_word=$2
2555
echo "$as_me:$LINENO: checking for $ac_word" >&5
2556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2558
  echo $ECHO_N "(cached) $ECHO_C" >&6
2559
else
2560
  if test -n "$ac_ct_AS"; then
2561
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2562
else
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564
for as_dir in $PATH
2565
do
2566
  IFS=$as_save_IFS
2567
  test -z "$as_dir" && as_dir=.
2568
  for ac_exec_ext in '' $ac_executable_extensions; do
2569
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570
    ac_cv_prog_ac_ct_AS="as"
2571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572
    break 2
2573
  fi
2574
done
2575
done
2576
 
2577
fi
2578
fi
2579
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2580
if test -n "$ac_ct_AS"; then
2581
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2582
echo "${ECHO_T}$ac_ct_AS" >&6
2583
else
2584
  echo "$as_me:$LINENO: result: no" >&5
2585
echo "${ECHO_T}no" >&6
2586
fi
2587
 
2588
  AS=$ac_ct_AS
2589
else
2590
  AS="$ac_cv_prog_AS"
2591
fi
2592
 
2593
if test -n "$ac_tool_prefix"; then
2594
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2595
set dummy ${ac_tool_prefix}ar; ac_word=$2
2596
echo "$as_me:$LINENO: checking for $ac_word" >&5
2597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598
if test "${ac_cv_prog_AR+set}" = set; then
2599
  echo $ECHO_N "(cached) $ECHO_C" >&6
2600
else
2601
  if test -n "$AR"; then
2602
  ac_cv_prog_AR="$AR" # Let the user override the test.
2603
else
2604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605
for as_dir in $PATH
2606
do
2607
  IFS=$as_save_IFS
2608
  test -z "$as_dir" && as_dir=.
2609
  for ac_exec_ext in '' $ac_executable_extensions; do
2610
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2612
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613
    break 2
2614
  fi
2615
done
2616
done
2617
 
2618
fi
2619
fi
2620
AR=$ac_cv_prog_AR
2621
if test -n "$AR"; then
2622
  echo "$as_me:$LINENO: result: $AR" >&5
2623
echo "${ECHO_T}$AR" >&6
2624
else
2625
  echo "$as_me:$LINENO: result: no" >&5
2626
echo "${ECHO_T}no" >&6
2627
fi
2628
 
2629
fi
2630
if test -z "$ac_cv_prog_AR"; then
2631
  ac_ct_AR=$AR
2632
  # Extract the first word of "ar", so it can be a program name with args.
2633
set dummy ar; ac_word=$2
2634
echo "$as_me:$LINENO: checking for $ac_word" >&5
2635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2637
  echo $ECHO_N "(cached) $ECHO_C" >&6
2638
else
2639
  if test -n "$ac_ct_AR"; then
2640
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2641
else
2642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643
for as_dir in $PATH
2644
do
2645
  IFS=$as_save_IFS
2646
  test -z "$as_dir" && as_dir=.
2647
  for ac_exec_ext in '' $ac_executable_extensions; do
2648
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649
    ac_cv_prog_ac_ct_AR="ar"
2650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651
    break 2
2652
  fi
2653
done
2654
done
2655
 
2656
fi
2657
fi
2658
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2659
if test -n "$ac_ct_AR"; then
2660
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2661
echo "${ECHO_T}$ac_ct_AR" >&6
2662
else
2663
  echo "$as_me:$LINENO: result: no" >&5
2664
echo "${ECHO_T}no" >&6
2665
fi
2666
 
2667
  AR=$ac_ct_AR
2668
else
2669
  AR="$ac_cv_prog_AR"
2670
fi
2671
 
2672
if test -n "$ac_tool_prefix"; then
2673
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2674
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2675
echo "$as_me:$LINENO: checking for $ac_word" >&5
2676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677
if test "${ac_cv_prog_RANLIB+set}" = set; then
2678
  echo $ECHO_N "(cached) $ECHO_C" >&6
2679
else
2680
  if test -n "$RANLIB"; then
2681
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2682
else
2683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684
for as_dir in $PATH
2685
do
2686
  IFS=$as_save_IFS
2687
  test -z "$as_dir" && as_dir=.
2688
  for ac_exec_ext in '' $ac_executable_extensions; do
2689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692
    break 2
2693
  fi
2694
done
2695
done
2696
 
2697
fi
2698
fi
2699
RANLIB=$ac_cv_prog_RANLIB
2700
if test -n "$RANLIB"; then
2701
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2702
echo "${ECHO_T}$RANLIB" >&6
2703
else
2704
  echo "$as_me:$LINENO: result: no" >&5
2705
echo "${ECHO_T}no" >&6
2706
fi
2707
 
2708
fi
2709
if test -z "$ac_cv_prog_RANLIB"; then
2710
  ac_ct_RANLIB=$RANLIB
2711
  # Extract the first word of "ranlib", so it can be a program name with args.
2712
set dummy ranlib; ac_word=$2
2713
echo "$as_me:$LINENO: checking for $ac_word" >&5
2714
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2716
  echo $ECHO_N "(cached) $ECHO_C" >&6
2717
else
2718
  if test -n "$ac_ct_RANLIB"; then
2719
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2720
else
2721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722
for as_dir in $PATH
2723
do
2724
  IFS=$as_save_IFS
2725
  test -z "$as_dir" && as_dir=.
2726
  for ac_exec_ext in '' $ac_executable_extensions; do
2727
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2729
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730
    break 2
2731
  fi
2732
done
2733
done
2734
 
2735
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2736
fi
2737
fi
2738
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2739
if test -n "$ac_ct_RANLIB"; then
2740
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2741
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2742
else
2743
  echo "$as_me:$LINENO: result: no" >&5
2744
echo "${ECHO_T}no" >&6
2745
fi
2746
 
2747
  RANLIB=$ac_ct_RANLIB
2748
else
2749
  RANLIB="$ac_cv_prog_RANLIB"
2750
fi
2751
 
2752
if test -n "$ac_tool_prefix"; then
2753
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2754
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2755
echo "$as_me:$LINENO: checking for $ac_word" >&5
2756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757
if test "${ac_cv_prog_READELF+set}" = set; then
2758
  echo $ECHO_N "(cached) $ECHO_C" >&6
2759
else
2760
  if test -n "$READELF"; then
2761
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2762
else
2763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764
for as_dir in $PATH
2765
do
2766
  IFS=$as_save_IFS
2767
  test -z "$as_dir" && as_dir=.
2768
  for ac_exec_ext in '' $ac_executable_extensions; do
2769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772
    break 2
2773
  fi
2774
done
2775
done
2776
 
2777
fi
2778
fi
2779
READELF=$ac_cv_prog_READELF
2780
if test -n "$READELF"; then
2781
  echo "$as_me:$LINENO: result: $READELF" >&5
2782
echo "${ECHO_T}$READELF" >&6
2783
else
2784
  echo "$as_me:$LINENO: result: no" >&5
2785
echo "${ECHO_T}no" >&6
2786
fi
2787
 
2788
fi
2789
if test -z "$ac_cv_prog_READELF"; then
2790
  ac_ct_READELF=$READELF
2791
  # Extract the first word of "readelf", so it can be a program name with args.
2792
set dummy readelf; ac_word=$2
2793
echo "$as_me:$LINENO: checking for $ac_word" >&5
2794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2796
  echo $ECHO_N "(cached) $ECHO_C" >&6
2797
else
2798
  if test -n "$ac_ct_READELF"; then
2799
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2800
else
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802
for as_dir in $PATH
2803
do
2804
  IFS=$as_save_IFS
2805
  test -z "$as_dir" && as_dir=.
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
2807
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808
    ac_cv_prog_ac_ct_READELF="readelf"
2809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810
    break 2
2811
  fi
2812
done
2813
done
2814
 
2815
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2816
fi
2817
fi
2818
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2819
if test -n "$ac_ct_READELF"; then
2820
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2821
echo "${ECHO_T}$ac_ct_READELF" >&6
2822
else
2823
  echo "$as_me:$LINENO: result: no" >&5
2824
echo "${ECHO_T}no" >&6
2825
fi
2826
 
2827
  READELF=$ac_ct_READELF
2828
else
2829
  READELF="$ac_cv_prog_READELF"
2830
fi
2831
 
2832
 
2833
# Find a good install program.  We prefer a C program (faster),
2834
# so one script is as good as another.  But avoid the broken or
2835
# incompatible versions:
2836
# SysV /etc/install, /usr/sbin/install
2837
# SunOS /usr/etc/install
2838
# IRIX /sbin/install
2839
# AIX /bin/install
2840
# AmigaOS /C/install, which installs bootblocks on floppy discs
2841
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844
# OS/2's system install, which has a completely different semantic
2845
# ./install, which can be erroneously created by make from ./install.sh.
2846
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2847
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2848
if test -z "$INSTALL"; then
2849
if test "${ac_cv_path_install+set}" = set; then
2850
  echo $ECHO_N "(cached) $ECHO_C" >&6
2851
else
2852
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
for as_dir in $PATH
2854
do
2855
  IFS=$as_save_IFS
2856
  test -z "$as_dir" && as_dir=.
2857
  # Account for people who put trailing slashes in PATH elements.
2858
case $as_dir/ in
2859
  ./ | .// | /cC/* | \
2860
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2861
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2862
  /usr/ucb/* ) ;;
2863
  *)
2864
    # OSF1 and SCO ODT 3.0 have their own names for install.
2865
    # Don't use installbsd from OSF since it installs stuff as root
2866
    # by default.
2867
    for ac_prog in ginstall scoinst install; do
2868
      for ac_exec_ext in '' $ac_executable_extensions; do
2869
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2870
          if test $ac_prog = install &&
2871
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872
            # AIX install.  It has an incompatible calling convention.
2873
            :
2874
          elif test $ac_prog = install &&
2875
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876
            # program-specific install script used by HP pwplus--don't use.
2877
            :
2878
          else
2879
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2880
            break 3
2881
          fi
2882
        fi
2883
      done
2884
    done
2885
    ;;
2886
esac
2887
done
2888
 
2889
 
2890
fi
2891
  if test "${ac_cv_path_install+set}" = set; then
2892
    INSTALL=$ac_cv_path_install
2893
  else
2894
    # As a last resort, use the slow shell script.  We don't cache a
2895
    # path for INSTALL within a source directory, because that will
2896
    # break other packages using the cache if that directory is
2897
    # removed, or if the path is relative.
2898
    INSTALL=$ac_install_sh
2899
  fi
2900
fi
2901
echo "$as_me:$LINENO: result: $INSTALL" >&5
2902
echo "${ECHO_T}$INSTALL" >&6
2903
 
2904
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2905
# It thinks the first close brace ends the variable substitution.
2906
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907
 
2908
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909
 
2910
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911
 
2912
 
2913
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2914
ac_given_INSTALL=$INSTALL
2915
 
2916
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2917
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2918
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2919
if test "${enable_maintainer_mode+set}" = set; then
2920
  enableval="$enable_maintainer_mode"
2921
  USE_MAINTAINER_MODE=$enableval
2922
else
2923
  USE_MAINTAINER_MODE=no
2924
fi;
2925
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2926
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2927
 
2928
 
2929
if test $USE_MAINTAINER_MODE = yes; then
2930
  MAINTAINER_MODE_TRUE=
2931
  MAINTAINER_MODE_FALSE='#'
2932
else
2933
  MAINTAINER_MODE_TRUE='#'
2934
  MAINTAINER_MODE_FALSE=
2935
fi
2936
 
2937
  MAINT=$MAINTAINER_MODE_TRUE
2938
 
2939
 
2940
# By default we simply use the C compiler to build assembly code.
2941
 
2942
test "${CCAS+set}" = set || CCAS=$CC
2943
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2944
 
2945
 
2946
 
2947
 
2948
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2949
# at least currently, we never actually build a program, so we never
2950
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2951
# fails, because we are probably configuring with a cross compiler
2952
# which can't create executables.  So we include AC_EXEEXT to keep
2953
# automake happy, but we don't execute it, since we don't care about
2954
# the result.
2955
if false; then
2956
 
2957
  dummy_var=1
2958
fi
2959
 
2960
. ${newlib_basedir}/configure.host
2961
 
2962
newlib_cflags="${newlib_cflags} -fno-builtin"
2963
 
2964
NEWLIB_CFLAGS=${newlib_cflags}
2965
 
2966
 
2967
LDFLAGS=${ldflags}
2968
 
2969
 
2970
 
2971
 
2972
if test x${newlib_elix_level} = x0; then
2973
  ELIX_LEVEL_0_TRUE=
2974
  ELIX_LEVEL_0_FALSE='#'
2975
else
2976
  ELIX_LEVEL_0_TRUE='#'
2977
  ELIX_LEVEL_0_FALSE=
2978
fi
2979
 
2980
 
2981
 
2982
if test x${newlib_elix_level} = x1; then
2983
  ELIX_LEVEL_1_TRUE=
2984
  ELIX_LEVEL_1_FALSE='#'
2985
else
2986
  ELIX_LEVEL_1_TRUE='#'
2987
  ELIX_LEVEL_1_FALSE=
2988
fi
2989
 
2990
 
2991
 
2992
if test x${newlib_elix_level} = x2; then
2993
  ELIX_LEVEL_2_TRUE=
2994
  ELIX_LEVEL_2_FALSE='#'
2995
else
2996
  ELIX_LEVEL_2_TRUE='#'
2997
  ELIX_LEVEL_2_FALSE=
2998
fi
2999
 
3000
 
3001
 
3002
if test x${newlib_elix_level} = x3; then
3003
  ELIX_LEVEL_3_TRUE=
3004
  ELIX_LEVEL_3_FALSE='#'
3005
else
3006
  ELIX_LEVEL_3_TRUE='#'
3007
  ELIX_LEVEL_3_FALSE=
3008
fi
3009
 
3010
 
3011
 
3012
if test x${newlib_elix_level} = x4; then
3013
  ELIX_LEVEL_4_TRUE=
3014
  ELIX_LEVEL_4_FALSE='#'
3015
else
3016
  ELIX_LEVEL_4_TRUE='#'
3017
  ELIX_LEVEL_4_FALSE=
3018
fi
3019
 
3020
 
3021
 
3022
 
3023
if test x${use_libtool} = xyes; then
3024
  USE_LIBTOOL_TRUE=
3025
  USE_LIBTOOL_FALSE='#'
3026
else
3027
  USE_LIBTOOL_TRUE='#'
3028
  USE_LIBTOOL_FALSE=
3029
fi
3030
 
3031
 
3032
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3033
# use oext, which is set in configure.host based on the target platform.
3034
OBJEXT=${oext}
3035
 
3036
 
3037
 
3038
 
3039
 
3040
 
3041
 
3042
 
3043
 
3044
 
3045
 
3046
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3047
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3048
if test "${lt_cv_path_SED+set}" = set; then
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
3050
else
3051
  # Loop through the user's path and test for sed and gsed.
3052
# Then use that list of sed's as ones to test for truncation.
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
for as_dir in $PATH
3055
do
3056
  IFS=$as_save_IFS
3057
  test -z "$as_dir" && as_dir=.
3058
  for lt_ac_prog in sed gsed; do
3059
    for ac_exec_ext in '' $ac_executable_extensions; do
3060
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3061
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3062
      fi
3063
    done
3064
  done
3065
done
3066
IFS=$as_save_IFS
3067
lt_ac_max=0
3068
lt_ac_count=0
3069
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3070
# along with /bin/sed that truncates output.
3071
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3072
  test ! -f $lt_ac_sed && continue
3073
  cat /dev/null > conftest.in
3074
  lt_ac_count=0
3075
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3076
  # Check for GNU sed and select it if it is found.
3077
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3078
    lt_cv_path_SED=$lt_ac_sed
3079
    break
3080
  fi
3081
  while true; do
3082
    cat conftest.in conftest.in >conftest.tmp
3083
    mv conftest.tmp conftest.in
3084
    cp conftest.in conftest.nl
3085
    echo >>conftest.nl
3086
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3087
    cmp -s conftest.out conftest.nl || break
3088
    # 10000 chars as input seems more than enough
3089
    test $lt_ac_count -gt 10 && break
3090
    lt_ac_count=`expr $lt_ac_count + 1`
3091
    if test $lt_ac_count -gt $lt_ac_max; then
3092
      lt_ac_max=$lt_ac_count
3093
      lt_cv_path_SED=$lt_ac_sed
3094
    fi
3095
  done
3096
done
3097
 
3098
fi
3099
 
3100
SED=$lt_cv_path_SED
3101
 
3102
echo "$as_me:$LINENO: result: $SED" >&5
3103
echo "${ECHO_T}$SED" >&6
3104
 
3105
test -z "$SED" && SED=sed
3106
Xsed="$SED -e 1s/^X//"
3107
 
3108
 
3109
 
3110
 
3111
 
3112
 
3113
 
3114
 
3115
 
3116
 
3117
 
3118
for ac_prog in gawk mawk nawk awk
3119
do
3120
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3121
set dummy $ac_prog; ac_word=$2
3122
echo "$as_me:$LINENO: checking for $ac_word" >&5
3123
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124
if test "${ac_cv_prog_AWK+set}" = set; then
3125
  echo $ECHO_N "(cached) $ECHO_C" >&6
3126
else
3127
  if test -n "$AWK"; then
3128
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3129
else
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131
for as_dir in $PATH
3132
do
3133
  IFS=$as_save_IFS
3134
  test -z "$as_dir" && as_dir=.
3135
  for ac_exec_ext in '' $ac_executable_extensions; do
3136
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137
    ac_cv_prog_AWK="$ac_prog"
3138
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139
    break 2
3140
  fi
3141
done
3142
done
3143
 
3144
fi
3145
fi
3146
AWK=$ac_cv_prog_AWK
3147
if test -n "$AWK"; then
3148
  echo "$as_me:$LINENO: result: $AWK" >&5
3149
echo "${ECHO_T}$AWK" >&6
3150
else
3151
  echo "$as_me:$LINENO: result: no" >&5
3152
echo "${ECHO_T}no" >&6
3153
fi
3154
 
3155
  test -n "$AWK" && break
3156
done
3157
 
3158
if test "${use_libtool}" = "yes"; then
3159
enable_win32_dll=yes
3160
 
3161
case $host in
3162
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3163
  if test -n "$ac_tool_prefix"; then
3164
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3165
set dummy ${ac_tool_prefix}as; ac_word=$2
3166
echo "$as_me:$LINENO: checking for $ac_word" >&5
3167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168
if test "${ac_cv_prog_AS+set}" = set; then
3169
  echo $ECHO_N "(cached) $ECHO_C" >&6
3170
else
3171
  if test -n "$AS"; then
3172
  ac_cv_prog_AS="$AS" # Let the user override the test.
3173
else
3174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175
for as_dir in $PATH
3176
do
3177
  IFS=$as_save_IFS
3178
  test -z "$as_dir" && as_dir=.
3179
  for ac_exec_ext in '' $ac_executable_extensions; do
3180
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181
    ac_cv_prog_AS="${ac_tool_prefix}as"
3182
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183
    break 2
3184
  fi
3185
done
3186
done
3187
 
3188
fi
3189
fi
3190
AS=$ac_cv_prog_AS
3191
if test -n "$AS"; then
3192
  echo "$as_me:$LINENO: result: $AS" >&5
3193
echo "${ECHO_T}$AS" >&6
3194
else
3195
  echo "$as_me:$LINENO: result: no" >&5
3196
echo "${ECHO_T}no" >&6
3197
fi
3198
 
3199
fi
3200
if test -z "$ac_cv_prog_AS"; then
3201
  ac_ct_AS=$AS
3202
  # Extract the first word of "as", so it can be a program name with args.
3203
set dummy as; ac_word=$2
3204
echo "$as_me:$LINENO: checking for $ac_word" >&5
3205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3207
  echo $ECHO_N "(cached) $ECHO_C" >&6
3208
else
3209
  if test -n "$ac_ct_AS"; then
3210
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3211
else
3212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213
for as_dir in $PATH
3214
do
3215
  IFS=$as_save_IFS
3216
  test -z "$as_dir" && as_dir=.
3217
  for ac_exec_ext in '' $ac_executable_extensions; do
3218
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219
    ac_cv_prog_ac_ct_AS="as"
3220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221
    break 2
3222
  fi
3223
done
3224
done
3225
 
3226
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3227
fi
3228
fi
3229
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3230
if test -n "$ac_ct_AS"; then
3231
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3232
echo "${ECHO_T}$ac_ct_AS" >&6
3233
else
3234
  echo "$as_me:$LINENO: result: no" >&5
3235
echo "${ECHO_T}no" >&6
3236
fi
3237
 
3238
  AS=$ac_ct_AS
3239
else
3240
  AS="$ac_cv_prog_AS"
3241
fi
3242
 
3243
  if test -n "$ac_tool_prefix"; then
3244
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3245
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3246
echo "$as_me:$LINENO: checking for $ac_word" >&5
3247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3249
  echo $ECHO_N "(cached) $ECHO_C" >&6
3250
else
3251
  if test -n "$DLLTOOL"; then
3252
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3253
else
3254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255
for as_dir in $PATH
3256
do
3257
  IFS=$as_save_IFS
3258
  test -z "$as_dir" && as_dir=.
3259
  for ac_exec_ext in '' $ac_executable_extensions; do
3260
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263
    break 2
3264
  fi
3265
done
3266
done
3267
 
3268
fi
3269
fi
3270
DLLTOOL=$ac_cv_prog_DLLTOOL
3271
if test -n "$DLLTOOL"; then
3272
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3273
echo "${ECHO_T}$DLLTOOL" >&6
3274
else
3275
  echo "$as_me:$LINENO: result: no" >&5
3276
echo "${ECHO_T}no" >&6
3277
fi
3278
 
3279
fi
3280
if test -z "$ac_cv_prog_DLLTOOL"; then
3281
  ac_ct_DLLTOOL=$DLLTOOL
3282
  # Extract the first word of "dlltool", so it can be a program name with args.
3283
set dummy dlltool; ac_word=$2
3284
echo "$as_me:$LINENO: checking for $ac_word" >&5
3285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3287
  echo $ECHO_N "(cached) $ECHO_C" >&6
3288
else
3289
  if test -n "$ac_ct_DLLTOOL"; then
3290
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3291
else
3292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293
for as_dir in $PATH
3294
do
3295
  IFS=$as_save_IFS
3296
  test -z "$as_dir" && as_dir=.
3297
  for ac_exec_ext in '' $ac_executable_extensions; do
3298
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301
    break 2
3302
  fi
3303
done
3304
done
3305
 
3306
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3307
fi
3308
fi
3309
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3310
if test -n "$ac_ct_DLLTOOL"; then
3311
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3312
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3313
else
3314
  echo "$as_me:$LINENO: result: no" >&5
3315
echo "${ECHO_T}no" >&6
3316
fi
3317
 
3318
  DLLTOOL=$ac_ct_DLLTOOL
3319
else
3320
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3321
fi
3322
 
3323
  if test -n "$ac_tool_prefix"; then
3324
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3325
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3326
echo "$as_me:$LINENO: checking for $ac_word" >&5
3327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3329
  echo $ECHO_N "(cached) $ECHO_C" >&6
3330
else
3331
  if test -n "$OBJDUMP"; then
3332
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3333
else
3334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335
for as_dir in $PATH
3336
do
3337
  IFS=$as_save_IFS
3338
  test -z "$as_dir" && as_dir=.
3339
  for ac_exec_ext in '' $ac_executable_extensions; do
3340
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3342
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343
    break 2
3344
  fi
3345
done
3346
done
3347
 
3348
fi
3349
fi
3350
OBJDUMP=$ac_cv_prog_OBJDUMP
3351
if test -n "$OBJDUMP"; then
3352
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3353
echo "${ECHO_T}$OBJDUMP" >&6
3354
else
3355
  echo "$as_me:$LINENO: result: no" >&5
3356
echo "${ECHO_T}no" >&6
3357
fi
3358
 
3359
fi
3360
if test -z "$ac_cv_prog_OBJDUMP"; then
3361
  ac_ct_OBJDUMP=$OBJDUMP
3362
  # Extract the first word of "objdump", so it can be a program name with args.
3363
set dummy objdump; ac_word=$2
3364
echo "$as_me:$LINENO: checking for $ac_word" >&5
3365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3367
  echo $ECHO_N "(cached) $ECHO_C" >&6
3368
else
3369
  if test -n "$ac_ct_OBJDUMP"; then
3370
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3371
else
3372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373
for as_dir in $PATH
3374
do
3375
  IFS=$as_save_IFS
3376
  test -z "$as_dir" && as_dir=.
3377
  for ac_exec_ext in '' $ac_executable_extensions; do
3378
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3380
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381
    break 2
3382
  fi
3383
done
3384
done
3385
 
3386
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3387
fi
3388
fi
3389
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3390
if test -n "$ac_ct_OBJDUMP"; then
3391
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3392
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3393
else
3394
  echo "$as_me:$LINENO: result: no" >&5
3395
echo "${ECHO_T}no" >&6
3396
fi
3397
 
3398
  OBJDUMP=$ac_ct_OBJDUMP
3399
else
3400
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3401
fi
3402
 
3403
  ;;
3404
esac
3405
 
3406
test -z "$AS" && AS=as
3407
 
3408
 
3409
 
3410
 
3411
 
3412
test -z "$DLLTOOL" && DLLTOOL=dlltool
3413
 
3414
 
3415
 
3416
 
3417
 
3418
test -z "$OBJDUMP" && OBJDUMP=objdump
3419
 
3420
 
3421
 
3422
 
3423
 
3424
 
3425
 
3426
case `pwd` in
3427
  *\ * | *\     *)
3428
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3429
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3430
esac
3431
 
3432
 
3433
 
3434
macro_version='2.2.6'
3435
macro_revision='1.3012'
3436
 
3437
 
3438
 
3439
 
3440
 
3441
 
3442
 
3443
 
3444
 
3445
 
3446
 
3447
 
3448
 
3449
ltmain="$ac_aux_dir/ltmain.sh"
3450
 
3451
ac_ext=c
3452
ac_cpp='$CPP $CPPFLAGS'
3453
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
if test -n "$ac_tool_prefix"; then
3457
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3458
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3459
echo "$as_me:$LINENO: checking for $ac_word" >&5
3460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3461
if test "${ac_cv_prog_CC+set}" = set; then
3462
  echo $ECHO_N "(cached) $ECHO_C" >&6
3463
else
3464
  if test -n "$CC"; then
3465
  ac_cv_prog_CC="$CC" # Let the user override the test.
3466
else
3467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468
for as_dir in $PATH
3469
do
3470
  IFS=$as_save_IFS
3471
  test -z "$as_dir" && as_dir=.
3472
  for ac_exec_ext in '' $ac_executable_extensions; do
3473
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476
    break 2
3477
  fi
3478
done
3479
done
3480
 
3481
fi
3482
fi
3483
CC=$ac_cv_prog_CC
3484
if test -n "$CC"; then
3485
  echo "$as_me:$LINENO: result: $CC" >&5
3486
echo "${ECHO_T}$CC" >&6
3487
else
3488
  echo "$as_me:$LINENO: result: no" >&5
3489
echo "${ECHO_T}no" >&6
3490
fi
3491
 
3492
fi
3493
if test -z "$ac_cv_prog_CC"; then
3494
  ac_ct_CC=$CC
3495
  # Extract the first word of "gcc", so it can be a program name with args.
3496
set dummy gcc; ac_word=$2
3497
echo "$as_me:$LINENO: checking for $ac_word" >&5
3498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
3501
else
3502
  if test -n "$ac_ct_CC"; then
3503
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504
else
3505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506
for as_dir in $PATH
3507
do
3508
  IFS=$as_save_IFS
3509
  test -z "$as_dir" && as_dir=.
3510
  for ac_exec_ext in '' $ac_executable_extensions; do
3511
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512
    ac_cv_prog_ac_ct_CC="gcc"
3513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514
    break 2
3515
  fi
3516
done
3517
done
3518
 
3519
fi
3520
fi
3521
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522
if test -n "$ac_ct_CC"; then
3523
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3524
echo "${ECHO_T}$ac_ct_CC" >&6
3525
else
3526
  echo "$as_me:$LINENO: result: no" >&5
3527
echo "${ECHO_T}no" >&6
3528
fi
3529
 
3530
  CC=$ac_ct_CC
3531
else
3532
  CC="$ac_cv_prog_CC"
3533
fi
3534
 
3535
if test -z "$CC"; then
3536
  if test -n "$ac_tool_prefix"; then
3537
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538
set dummy ${ac_tool_prefix}cc; ac_word=$2
3539
echo "$as_me:$LINENO: checking for $ac_word" >&5
3540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3541
if test "${ac_cv_prog_CC+set}" = set; then
3542
  echo $ECHO_N "(cached) $ECHO_C" >&6
3543
else
3544
  if test -n "$CC"; then
3545
  ac_cv_prog_CC="$CC" # Let the user override the test.
3546
else
3547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548
for as_dir in $PATH
3549
do
3550
  IFS=$as_save_IFS
3551
  test -z "$as_dir" && as_dir=.
3552
  for ac_exec_ext in '' $ac_executable_extensions; do
3553
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3555
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556
    break 2
3557
  fi
3558
done
3559
done
3560
 
3561
fi
3562
fi
3563
CC=$ac_cv_prog_CC
3564
if test -n "$CC"; then
3565
  echo "$as_me:$LINENO: result: $CC" >&5
3566
echo "${ECHO_T}$CC" >&6
3567
else
3568
  echo "$as_me:$LINENO: result: no" >&5
3569
echo "${ECHO_T}no" >&6
3570
fi
3571
 
3572
fi
3573
if test -z "$ac_cv_prog_CC"; then
3574
  ac_ct_CC=$CC
3575
  # Extract the first word of "cc", so it can be a program name with args.
3576
set dummy cc; ac_word=$2
3577
echo "$as_me:$LINENO: checking for $ac_word" >&5
3578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3580
  echo $ECHO_N "(cached) $ECHO_C" >&6
3581
else
3582
  if test -n "$ac_ct_CC"; then
3583
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584
else
3585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586
for as_dir in $PATH
3587
do
3588
  IFS=$as_save_IFS
3589
  test -z "$as_dir" && as_dir=.
3590
  for ac_exec_ext in '' $ac_executable_extensions; do
3591
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592
    ac_cv_prog_ac_ct_CC="cc"
3593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594
    break 2
3595
  fi
3596
done
3597
done
3598
 
3599
fi
3600
fi
3601
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602
if test -n "$ac_ct_CC"; then
3603
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604
echo "${ECHO_T}$ac_ct_CC" >&6
3605
else
3606
  echo "$as_me:$LINENO: result: no" >&5
3607
echo "${ECHO_T}no" >&6
3608
fi
3609
 
3610
  CC=$ac_ct_CC
3611
else
3612
  CC="$ac_cv_prog_CC"
3613
fi
3614
 
3615
fi
3616
if test -z "$CC"; then
3617
  # Extract the first word of "cc", so it can be a program name with args.
3618
set dummy cc; ac_word=$2
3619
echo "$as_me:$LINENO: checking for $ac_word" >&5
3620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621
if test "${ac_cv_prog_CC+set}" = set; then
3622
  echo $ECHO_N "(cached) $ECHO_C" >&6
3623
else
3624
  if test -n "$CC"; then
3625
  ac_cv_prog_CC="$CC" # Let the user override the test.
3626
else
3627
  ac_prog_rejected=no
3628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629
for as_dir in $PATH
3630
do
3631
  IFS=$as_save_IFS
3632
  test -z "$as_dir" && as_dir=.
3633
  for ac_exec_ext in '' $ac_executable_extensions; do
3634
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3636
       ac_prog_rejected=yes
3637
       continue
3638
     fi
3639
    ac_cv_prog_CC="cc"
3640
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641
    break 2
3642
  fi
3643
done
3644
done
3645
 
3646
if test $ac_prog_rejected = yes; then
3647
  # We found a bogon in the path, so make sure we never use it.
3648
  set dummy $ac_cv_prog_CC
3649
  shift
3650
  if test $# != 0; then
3651
    # We chose a different compiler from the bogus one.
3652
    # However, it has the same basename, so the bogon will be chosen
3653
    # first if we set CC to just the basename; use the full file name.
3654
    shift
3655
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656
  fi
3657
fi
3658
fi
3659
fi
3660
CC=$ac_cv_prog_CC
3661
if test -n "$CC"; then
3662
  echo "$as_me:$LINENO: result: $CC" >&5
3663
echo "${ECHO_T}$CC" >&6
3664
else
3665
  echo "$as_me:$LINENO: result: no" >&5
3666
echo "${ECHO_T}no" >&6
3667
fi
3668
 
3669
fi
3670
if test -z "$CC"; then
3671
  if test -n "$ac_tool_prefix"; then
3672
  for ac_prog in cl
3673
  do
3674
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676
echo "$as_me:$LINENO: checking for $ac_word" >&5
3677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678
if test "${ac_cv_prog_CC+set}" = set; then
3679
  echo $ECHO_N "(cached) $ECHO_C" >&6
3680
else
3681
  if test -n "$CC"; then
3682
  ac_cv_prog_CC="$CC" # Let the user override the test.
3683
else
3684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685
for as_dir in $PATH
3686
do
3687
  IFS=$as_save_IFS
3688
  test -z "$as_dir" && as_dir=.
3689
  for ac_exec_ext in '' $ac_executable_extensions; do
3690
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693
    break 2
3694
  fi
3695
done
3696
done
3697
 
3698
fi
3699
fi
3700
CC=$ac_cv_prog_CC
3701
if test -n "$CC"; then
3702
  echo "$as_me:$LINENO: result: $CC" >&5
3703
echo "${ECHO_T}$CC" >&6
3704
else
3705
  echo "$as_me:$LINENO: result: no" >&5
3706
echo "${ECHO_T}no" >&6
3707
fi
3708
 
3709
    test -n "$CC" && break
3710
  done
3711
fi
3712
if test -z "$CC"; then
3713
  ac_ct_CC=$CC
3714
  for ac_prog in cl
3715
do
3716
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3717
set dummy $ac_prog; ac_word=$2
3718
echo "$as_me:$LINENO: checking for $ac_word" >&5
3719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3720
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3721
  echo $ECHO_N "(cached) $ECHO_C" >&6
3722
else
3723
  if test -n "$ac_ct_CC"; then
3724
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3725
else
3726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727
for as_dir in $PATH
3728
do
3729
  IFS=$as_save_IFS
3730
  test -z "$as_dir" && as_dir=.
3731
  for ac_exec_ext in '' $ac_executable_extensions; do
3732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733
    ac_cv_prog_ac_ct_CC="$ac_prog"
3734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735
    break 2
3736
  fi
3737
done
3738
done
3739
 
3740
fi
3741
fi
3742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743
if test -n "$ac_ct_CC"; then
3744
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3745
echo "${ECHO_T}$ac_ct_CC" >&6
3746
else
3747
  echo "$as_me:$LINENO: result: no" >&5
3748
echo "${ECHO_T}no" >&6
3749
fi
3750
 
3751
  test -n "$ac_ct_CC" && break
3752
done
3753
 
3754
  CC=$ac_ct_CC
3755
fi
3756
 
3757
fi
3758
 
3759
 
3760
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3761
See \`config.log' for more details." >&5
3762
echo "$as_me: error: no acceptable C compiler found in \$PATH
3763
See \`config.log' for more details." >&2;}
3764
   { (exit 1); exit 1; }; }
3765
 
3766
# Provide some information about the compiler.
3767
echo "$as_me:$LINENO:" \
3768
     "checking for C compiler version" >&5
3769
ac_compiler=`set X $ac_compile; echo $2`
3770
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3771
  (eval $ac_compiler --version &5) 2>&5
3772
  ac_status=$?
3773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774
  (exit $ac_status); }
3775
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3776
  (eval $ac_compiler -v &5) 2>&5
3777
  ac_status=$?
3778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779
  (exit $ac_status); }
3780
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3781
  (eval $ac_compiler -V &5) 2>&5
3782
  ac_status=$?
3783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
  (exit $ac_status); }
3785
 
3786
cat >conftest.$ac_ext <<_ACEOF
3787
/* confdefs.h.  */
3788
_ACEOF
3789
cat confdefs.h >>conftest.$ac_ext
3790
cat >>conftest.$ac_ext <<_ACEOF
3791
/* end confdefs.h.  */
3792
 
3793
int
3794
main ()
3795
{
3796
 
3797
  ;
3798
  return 0;
3799
}
3800
_ACEOF
3801
ac_clean_files_save=$ac_clean_files
3802
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3803
# Try to create an executable without -o first, disregard a.out.
3804
# It will help us diagnose broken compilers, and finding out an intuition
3805
# of exeext.
3806
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3807
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3808
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3809
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3810
  (eval $ac_link_default) 2>&5
3811
  ac_status=$?
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
  (exit $ac_status); }; then
3814
  # Find the output, starting from the most likely.  This scheme is
3815
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3816
# resort.
3817
 
3818
# Be careful to initialize this variable, since it used to be cached.
3819
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3820
ac_cv_exeext=
3821
# b.out is created by i960 compilers.
3822
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3823
do
3824
  test -f "$ac_file" || continue
3825
  case $ac_file in
3826
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3827
        ;;
3828
    conftest.$ac_ext )
3829
        # This is the source file.
3830
        ;;
3831
    [ab].out )
3832
        # We found the default executable, but exeext='' is most
3833
        # certainly right.
3834
        break;;
3835
    *.* )
3836
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3837
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3838
        # but it would be cool to find out if it's true.  Does anybody
3839
        # maintain Libtool? --akim.
3840
        export ac_cv_exeext
3841
        break;;
3842
    * )
3843
        break;;
3844
  esac
3845
done
3846
else
3847
  echo "$as_me: failed program was:" >&5
3848
sed 's/^/| /' conftest.$ac_ext >&5
3849
 
3850
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3851
See \`config.log' for more details." >&5
3852
echo "$as_me: error: C compiler cannot create executables
3853
See \`config.log' for more details." >&2;}
3854
   { (exit 77); exit 77; }; }
3855
fi
3856
 
3857
ac_exeext=$ac_cv_exeext
3858
echo "$as_me:$LINENO: result: $ac_file" >&5
3859
echo "${ECHO_T}$ac_file" >&6
3860
 
3861
# Check the compiler produces executables we can run.  If not, either
3862
# the compiler is broken, or we cross compile.
3863
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3864
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3865
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3866
# If not cross compiling, check that we can run a simple program.
3867
if test "$cross_compiling" != yes; then
3868
  if { ac_try='./$ac_file'
3869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870
  (eval $ac_try) 2>&5
3871
  ac_status=$?
3872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873
  (exit $ac_status); }; }; then
3874
    cross_compiling=no
3875
  else
3876
    if test "$cross_compiling" = maybe; then
3877
        cross_compiling=yes
3878
    else
3879
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3880
If you meant to cross compile, use \`--host'.
3881
See \`config.log' for more details." >&5
3882
echo "$as_me: error: cannot run C compiled programs.
3883
If you meant to cross compile, use \`--host'.
3884
See \`config.log' for more details." >&2;}
3885
   { (exit 1); exit 1; }; }
3886
    fi
3887
  fi
3888
fi
3889
echo "$as_me:$LINENO: result: yes" >&5
3890
echo "${ECHO_T}yes" >&6
3891
 
3892
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3893
ac_clean_files=$ac_clean_files_save
3894
# Check the compiler produces executables we can run.  If not, either
3895
# the compiler is broken, or we cross compile.
3896
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3897
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3898
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3899
echo "${ECHO_T}$cross_compiling" >&6
3900
 
3901
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3902
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904
  (eval $ac_link) 2>&5
3905
  ac_status=$?
3906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907
  (exit $ac_status); }; then
3908
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3909
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3910
# work properly (i.e., refer to `conftest.exe'), while it won't with
3911
# `rm'.
3912
for ac_file in conftest.exe conftest conftest.*; do
3913
  test -f "$ac_file" || continue
3914
  case $ac_file in
3915
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3916
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917
          export ac_cv_exeext
3918
          break;;
3919
    * ) break;;
3920
  esac
3921
done
3922
else
3923
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3924
See \`config.log' for more details." >&5
3925
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3926
See \`config.log' for more details." >&2;}
3927
   { (exit 1); exit 1; }; }
3928
fi
3929
 
3930
rm -f conftest$ac_cv_exeext
3931
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3932
echo "${ECHO_T}$ac_cv_exeext" >&6
3933
 
3934
rm -f conftest.$ac_ext
3935
EXEEXT=$ac_cv_exeext
3936
ac_exeext=$EXEEXT
3937
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3938
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3939
if test "${ac_cv_objext+set}" = set; then
3940
  echo $ECHO_N "(cached) $ECHO_C" >&6
3941
else
3942
  cat >conftest.$ac_ext <<_ACEOF
3943
/* confdefs.h.  */
3944
_ACEOF
3945
cat confdefs.h >>conftest.$ac_ext
3946
cat >>conftest.$ac_ext <<_ACEOF
3947
/* end confdefs.h.  */
3948
 
3949
int
3950
main ()
3951
{
3952
 
3953
  ;
3954
  return 0;
3955
}
3956
_ACEOF
3957
rm -f conftest.o conftest.obj
3958
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959
  (eval $ac_compile) 2>&5
3960
  ac_status=$?
3961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962
  (exit $ac_status); }; then
3963
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3964
  case $ac_file in
3965
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3966
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3967
       break;;
3968
  esac
3969
done
3970
else
3971
  echo "$as_me: failed program was:" >&5
3972
sed 's/^/| /' conftest.$ac_ext >&5
3973
 
3974
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3975
See \`config.log' for more details." >&5
3976
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3977
See \`config.log' for more details." >&2;}
3978
   { (exit 1); exit 1; }; }
3979
fi
3980
 
3981
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3982
fi
3983
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3984
echo "${ECHO_T}$ac_cv_objext" >&6
3985
OBJEXT=$ac_cv_objext
3986
ac_objext=$OBJEXT
3987
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3988
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3989
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3990
  echo $ECHO_N "(cached) $ECHO_C" >&6
3991
else
3992
  cat >conftest.$ac_ext <<_ACEOF
3993
/* confdefs.h.  */
3994
_ACEOF
3995
cat confdefs.h >>conftest.$ac_ext
3996
cat >>conftest.$ac_ext <<_ACEOF
3997
/* end confdefs.h.  */
3998
 
3999
int
4000
main ()
4001
{
4002
#ifndef __GNUC__
4003
       choke me
4004
#endif
4005
 
4006
  ;
4007
  return 0;
4008
}
4009
_ACEOF
4010
rm -f conftest.$ac_objext
4011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012
  (eval $ac_compile) 2>conftest.er1
4013
  ac_status=$?
4014
  grep -v '^ *+' conftest.er1 >conftest.err
4015
  rm -f conftest.er1
4016
  cat conftest.err >&5
4017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018
  (exit $ac_status); } &&
4019
         { ac_try='test -z "$ac_c_werror_flag"
4020
                         || test ! -s conftest.err'
4021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022
  (eval $ac_try) 2>&5
4023
  ac_status=$?
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025
  (exit $ac_status); }; } &&
4026
         { ac_try='test -s conftest.$ac_objext'
4027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028
  (eval $ac_try) 2>&5
4029
  ac_status=$?
4030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
  (exit $ac_status); }; }; then
4032
  ac_compiler_gnu=yes
4033
else
4034
  echo "$as_me: failed program was:" >&5
4035
sed 's/^/| /' conftest.$ac_ext >&5
4036
 
4037
ac_compiler_gnu=no
4038
fi
4039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4040
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041
 
4042
fi
4043
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4044
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4045
GCC=`test $ac_compiler_gnu = yes && echo yes`
4046
ac_test_CFLAGS=${CFLAGS+set}
4047
ac_save_CFLAGS=$CFLAGS
4048
CFLAGS="-g"
4049
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4050
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4051
if test "${ac_cv_prog_cc_g+set}" = set; then
4052
  echo $ECHO_N "(cached) $ECHO_C" >&6
4053
else
4054
  cat >conftest.$ac_ext <<_ACEOF
4055
/* confdefs.h.  */
4056
_ACEOF
4057
cat confdefs.h >>conftest.$ac_ext
4058
cat >>conftest.$ac_ext <<_ACEOF
4059
/* end confdefs.h.  */
4060
 
4061
int
4062
main ()
4063
{
4064
 
4065
  ;
4066
  return 0;
4067
}
4068
_ACEOF
4069
rm -f conftest.$ac_objext
4070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071
  (eval $ac_compile) 2>conftest.er1
4072
  ac_status=$?
4073
  grep -v '^ *+' conftest.er1 >conftest.err
4074
  rm -f conftest.er1
4075
  cat conftest.err >&5
4076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077
  (exit $ac_status); } &&
4078
         { ac_try='test -z "$ac_c_werror_flag"
4079
                         || test ! -s conftest.err'
4080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081
  (eval $ac_try) 2>&5
4082
  ac_status=$?
4083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084
  (exit $ac_status); }; } &&
4085
         { ac_try='test -s conftest.$ac_objext'
4086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087
  (eval $ac_try) 2>&5
4088
  ac_status=$?
4089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090
  (exit $ac_status); }; }; then
4091
  ac_cv_prog_cc_g=yes
4092
else
4093
  echo "$as_me: failed program was:" >&5
4094
sed 's/^/| /' conftest.$ac_ext >&5
4095
 
4096
ac_cv_prog_cc_g=no
4097
fi
4098
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099
fi
4100
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4101
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4102
if test "$ac_test_CFLAGS" = set; then
4103
  CFLAGS=$ac_save_CFLAGS
4104
elif test $ac_cv_prog_cc_g = yes; then
4105
  if test "$GCC" = yes; then
4106
    CFLAGS="-g -O2"
4107
  else
4108
    CFLAGS="-g"
4109
  fi
4110
else
4111
  if test "$GCC" = yes; then
4112
    CFLAGS="-O2"
4113
  else
4114
    CFLAGS=
4115
  fi
4116
fi
4117
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4118
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4119
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4120
  echo $ECHO_N "(cached) $ECHO_C" >&6
4121
else
4122
  ac_cv_prog_cc_stdc=no
4123
ac_save_CC=$CC
4124
cat >conftest.$ac_ext <<_ACEOF
4125
/* confdefs.h.  */
4126
_ACEOF
4127
cat confdefs.h >>conftest.$ac_ext
4128
cat >>conftest.$ac_ext <<_ACEOF
4129
/* end confdefs.h.  */
4130
#include 
4131
#include 
4132
#include 
4133
#include 
4134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4135
struct buf { int x; };
4136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137
static char *e (p, i)
4138
     char **p;
4139
     int i;
4140
{
4141
  return p[i];
4142
}
4143
static char *f (char * (*g) (char **, int), char **p, ...)
4144
{
4145
  char *s;
4146
  va_list v;
4147
  va_start (v,p);
4148
  s = g (p, va_arg (v,int));
4149
  va_end (v);
4150
  return s;
4151
}
4152
 
4153
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4154
   function prototypes and stuff, but not '\xHH' hex character constants.
4155
   These don't provoke an error unfortunately, instead are silently treated
4156
   as 'x'.  The following induces an error, until -std1 is added to get
4157
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4158
   array size at least.  It's necessary to write '\x00'==0 to get something
4159
   that's true only with -std1.  */
4160
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161
 
4162
int test (int i, double x);
4163
struct s1 {int (*f) (int a);};
4164
struct s2 {int (*f) (double a);};
4165
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166
int argc;
4167
char **argv;
4168
int
4169
main ()
4170
{
4171
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4172
  ;
4173
  return 0;
4174
}
4175
_ACEOF
4176
# Don't try gcc -ansi; that turns off useful extensions and
4177
# breaks some systems' header files.
4178
# AIX                   -qlanglvl=ansi
4179
# Ultrix and OSF/1      -std1
4180
# HP-UX 10.20 and later -Ae
4181
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4182
# SVR4                  -Xc -D__EXTENSIONS__
4183
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4184
do
4185
  CC="$ac_save_CC $ac_arg"
4186
  rm -f conftest.$ac_objext
4187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188
  (eval $ac_compile) 2>conftest.er1
4189
  ac_status=$?
4190
  grep -v '^ *+' conftest.er1 >conftest.err
4191
  rm -f conftest.er1
4192
  cat conftest.err >&5
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194
  (exit $ac_status); } &&
4195
         { ac_try='test -z "$ac_c_werror_flag"
4196
                         || test ! -s conftest.err'
4197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198
  (eval $ac_try) 2>&5
4199
  ac_status=$?
4200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201
  (exit $ac_status); }; } &&
4202
         { ac_try='test -s conftest.$ac_objext'
4203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204
  (eval $ac_try) 2>&5
4205
  ac_status=$?
4206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207
  (exit $ac_status); }; }; then
4208
  ac_cv_prog_cc_stdc=$ac_arg
4209
break
4210
else
4211
  echo "$as_me: failed program was:" >&5
4212
sed 's/^/| /' conftest.$ac_ext >&5
4213
 
4214
fi
4215
rm -f conftest.err conftest.$ac_objext
4216
done
4217
rm -f conftest.$ac_ext conftest.$ac_objext
4218
CC=$ac_save_CC
4219
 
4220
fi
4221
 
4222
case "x$ac_cv_prog_cc_stdc" in
4223
  x|xno)
4224
    echo "$as_me:$LINENO: result: none needed" >&5
4225
echo "${ECHO_T}none needed" >&6 ;;
4226
  *)
4227
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4228
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4229
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4230
esac
4231
 
4232
# Some people use a C++ compiler to compile C.  Since we use `exit',
4233
# in C++ we need to declare it.  In case someone uses the same compiler
4234
# for both compiling C and C++ we need to have the C++ compiler decide
4235
# the declaration of exit, since it's the most demanding environment.
4236
cat >conftest.$ac_ext <<_ACEOF
4237
#ifndef __cplusplus
4238
  choke me
4239
#endif
4240
_ACEOF
4241
rm -f conftest.$ac_objext
4242
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4243
  (eval $ac_compile) 2>conftest.er1
4244
  ac_status=$?
4245
  grep -v '^ *+' conftest.er1 >conftest.err
4246
  rm -f conftest.er1
4247
  cat conftest.err >&5
4248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249
  (exit $ac_status); } &&
4250
         { ac_try='test -z "$ac_c_werror_flag"
4251
                         || test ! -s conftest.err'
4252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253
  (eval $ac_try) 2>&5
4254
  ac_status=$?
4255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256
  (exit $ac_status); }; } &&
4257
         { ac_try='test -s conftest.$ac_objext'
4258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259
  (eval $ac_try) 2>&5
4260
  ac_status=$?
4261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
  (exit $ac_status); }; }; then
4263
  for ac_declaration in \
4264
   '' \
4265
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4266
   'extern "C" void std::exit (int); using std::exit;' \
4267
   'extern "C" void exit (int) throw ();' \
4268
   'extern "C" void exit (int);' \
4269
   'void exit (int);'
4270
do
4271
  cat >conftest.$ac_ext <<_ACEOF
4272
/* confdefs.h.  */
4273
_ACEOF
4274
cat confdefs.h >>conftest.$ac_ext
4275
cat >>conftest.$ac_ext <<_ACEOF
4276
/* end confdefs.h.  */
4277
$ac_declaration
4278
#include 
4279
int
4280
main ()
4281
{
4282
exit (42);
4283
  ;
4284
  return 0;
4285
}
4286
_ACEOF
4287
rm -f conftest.$ac_objext
4288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289
  (eval $ac_compile) 2>conftest.er1
4290
  ac_status=$?
4291
  grep -v '^ *+' conftest.er1 >conftest.err
4292
  rm -f conftest.er1
4293
  cat conftest.err >&5
4294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295
  (exit $ac_status); } &&
4296
         { ac_try='test -z "$ac_c_werror_flag"
4297
                         || test ! -s conftest.err'
4298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299
  (eval $ac_try) 2>&5
4300
  ac_status=$?
4301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302
  (exit $ac_status); }; } &&
4303
         { ac_try='test -s conftest.$ac_objext'
4304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305
  (eval $ac_try) 2>&5
4306
  ac_status=$?
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
  (exit $ac_status); }; }; then
4309
  :
4310
else
4311
  echo "$as_me: failed program was:" >&5
4312
sed 's/^/| /' conftest.$ac_ext >&5
4313
 
4314
continue
4315
fi
4316
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317
  cat >conftest.$ac_ext <<_ACEOF
4318
/* confdefs.h.  */
4319
_ACEOF
4320
cat confdefs.h >>conftest.$ac_ext
4321
cat >>conftest.$ac_ext <<_ACEOF
4322
/* end confdefs.h.  */
4323
$ac_declaration
4324
int
4325
main ()
4326
{
4327
exit (42);
4328
  ;
4329
  return 0;
4330
}
4331
_ACEOF
4332
rm -f conftest.$ac_objext
4333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334
  (eval $ac_compile) 2>conftest.er1
4335
  ac_status=$?
4336
  grep -v '^ *+' conftest.er1 >conftest.err
4337
  rm -f conftest.er1
4338
  cat conftest.err >&5
4339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340
  (exit $ac_status); } &&
4341
         { ac_try='test -z "$ac_c_werror_flag"
4342
                         || test ! -s conftest.err'
4343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
  (eval $ac_try) 2>&5
4345
  ac_status=$?
4346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347
  (exit $ac_status); }; } &&
4348
         { ac_try='test -s conftest.$ac_objext'
4349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350
  (eval $ac_try) 2>&5
4351
  ac_status=$?
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353
  (exit $ac_status); }; }; then
4354
  break
4355
else
4356
  echo "$as_me: failed program was:" >&5
4357
sed 's/^/| /' conftest.$ac_ext >&5
4358
 
4359
fi
4360
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361
done
4362
rm -f conftest*
4363
if test -n "$ac_declaration"; then
4364
  echo '#ifdef __cplusplus' >>confdefs.h
4365
  echo $ac_declaration      >>confdefs.h
4366
  echo '#endif'             >>confdefs.h
4367
fi
4368
 
4369
else
4370
  echo "$as_me: failed program was:" >&5
4371
sed 's/^/| /' conftest.$ac_ext >&5
4372
 
4373
fi
4374
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375
ac_ext=c
4376
ac_cpp='$CPP $CPPFLAGS'
4377
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
 
4381
depcc="$CC"   am_compiler_list=
4382
 
4383
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4384
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4385
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4386
  echo $ECHO_N "(cached) $ECHO_C" >&6
4387
else
4388
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4389
  # We make a subdir and do the tests there.  Otherwise we can end up
4390
  # making bogus files that we don't know about and never remove.  For
4391
  # instance it was reported that on HP-UX the gcc test will end up
4392
  # making a dummy file named `D' -- because `-MD' means `put the output
4393
  # in D'.
4394
  mkdir conftest.dir
4395
  # Copy depcomp to subdir because otherwise we won't find it if we're
4396
  # using a relative directory.
4397
  cp "$am_depcomp" conftest.dir
4398
  cd conftest.dir
4399
  # We will build objects and dependencies in a subdirectory because
4400
  # it helps to detect inapplicable dependency modes.  For instance
4401
  # both Tru64's cc and ICC support -MD to output dependencies as a
4402
  # side effect of compilation, but ICC will put the dependencies in
4403
  # the current directory while Tru64 will put them in the object
4404
  # directory.
4405
  mkdir sub
4406
 
4407
  am_cv_CC_dependencies_compiler_type=none
4408
  if test "$am_compiler_list" = ""; then
4409
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4410
  fi
4411
  for depmode in $am_compiler_list; do
4412
    # Setup a source with many dependencies, because some compilers
4413
    # like to wrap large dependency lists on column 80 (with \), and
4414
    # we should not choose a depcomp mode which is confused by this.
4415
    #
4416
    # We need to recreate these files for each test, as the compiler may
4417
    # overwrite some of them when testing with obscure command lines.
4418
    # This happens at least with the AIX C compiler.
4419
    : > sub/conftest.c
4420
    for i in 1 2 3 4 5 6; do
4421
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4422
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4423
      # Solaris 8's {/usr,}/bin/sh.
4424
      touch sub/conftst$i.h
4425
    done
4426
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4427
 
4428
    case $depmode in
4429
    nosideeffect)
4430
      # after this tag, mechanisms are not by side-effect, so they'll
4431
      # only be used when explicitly requested
4432
      if test "x$enable_dependency_tracking" = xyes; then
4433
        continue
4434
      else
4435
        break
4436
      fi
4437
      ;;
4438
    none) break ;;
4439
    esac
4440
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4441
    # mode.  It turns out that the SunPro C++ compiler does not properly
4442
    # handle `-M -o', and we need to detect this.
4443
    if depmode=$depmode \
4444
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4445
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4446
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4447
         >/dev/null 2>conftest.err &&
4448
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4449
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4450
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4451
      # icc doesn't choke on unknown options, it will just issue warnings
4452
      # or remarks (even with -Werror).  So we grep stderr for any message
4453
      # that says an option was ignored or not supported.
4454
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4455
      #   icc: Command line warning: ignoring option '-M'; no argument required
4456
      # The diagnosis changed in icc 8.0:
4457
      #   icc: Command line remark: option '-MP' not supported
4458
      if (grep 'ignoring option' conftest.err ||
4459
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4460
        am_cv_CC_dependencies_compiler_type=$depmode
4461
        break
4462
      fi
4463
    fi
4464
  done
4465
 
4466
  cd ..
4467
  rm -rf conftest.dir
4468
else
4469
  am_cv_CC_dependencies_compiler_type=none
4470
fi
4471
 
4472
fi
4473
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4474
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4475
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4476
 
4477
 
4478
 
4479
if
4480
  test "x$enable_dependency_tracking" != xno \
4481
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4482
  am__fastdepCC_TRUE=
4483
  am__fastdepCC_FALSE='#'
4484
else
4485
  am__fastdepCC_TRUE='#'
4486
  am__fastdepCC_FALSE=
4487
fi
4488
 
4489
 
4490
echo "$as_me:$LINENO: checking for egrep" >&5
4491
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4492
if test "${ac_cv_prog_egrep+set}" = set; then
4493
  echo $ECHO_N "(cached) $ECHO_C" >&6
4494
else
4495
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4496
    then ac_cv_prog_egrep='grep -E'
4497
    else ac_cv_prog_egrep='egrep'
4498
    fi
4499
fi
4500
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4501
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4502
 EGREP=$ac_cv_prog_egrep
4503
 
4504
 
4505
echo "$as_me:$LINENO: checking for fgrep" >&5
4506
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4507
if test "${ac_cv_prog_fgrep+set}" = set; then
4508
  echo $ECHO_N "(cached) $ECHO_C" >&6
4509
else
4510
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4511
    then ac_cv_prog_fgrep='grep -F'
4512
    else ac_cv_prog_fgrep='fgrep'
4513
    fi
4514
fi
4515
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4516
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4517
 FGREP=$ac_cv_prog_fgrep
4518
 
4519
 
4520
test -z "$GREP" && GREP=grep
4521
 
4522
 
4523
 
4524
 
4525
 
4526
 
4527
 
4528
 
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537
 
4538
 
4539
 
4540
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4541
if test "${with_gnu_ld+set}" = set; then
4542
  withval="$with_gnu_ld"
4543
  test "$withval" = no || with_gnu_ld=yes
4544
else
4545
  with_gnu_ld=no
4546
fi;
4547
ac_prog=ld
4548
if test "$GCC" = yes; then
4549
  # Check if gcc -print-prog-name=ld gives a path.
4550
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4551
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4552
  case $host in
4553
  *-*-mingw*)
4554
    # gcc leaves a trailing carriage return which upsets mingw
4555
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4556
  *)
4557
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4558
  esac
4559
  case $ac_prog in
4560
    # Accept absolute paths.
4561
    [\\/]* | ?:[\\/]*)
4562
      re_direlt='/[^/][^/]*/\.\./'
4563
      # Canonicalize the pathname of ld
4564
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4565
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4566
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4567
      done
4568
      test -z "$LD" && LD="$ac_prog"
4569
      ;;
4570
  "")
4571
    # If it fails, then pretend we aren't using GCC.
4572
    ac_prog=ld
4573
    ;;
4574
  *)
4575
    # If it is relative, then search for the first ld in PATH.
4576
    with_gnu_ld=unknown
4577
    ;;
4578
  esac
4579
elif test "$with_gnu_ld" = yes; then
4580
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4581
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4582
else
4583
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4584
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4585
fi
4586
if test "${lt_cv_path_LD+set}" = set; then
4587
  echo $ECHO_N "(cached) $ECHO_C" >&6
4588
else
4589
  if test -z "$LD"; then
4590
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4591
  for ac_dir in $PATH; do
4592
    IFS="$lt_save_ifs"
4593
    test -z "$ac_dir" && ac_dir=.
4594
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4595
      lt_cv_path_LD="$ac_dir/$ac_prog"
4596
      # Check to see if the program is GNU ld.  I'd rather use --version,
4597
      # but apparently some variants of GNU ld only accept -v.
4598
      # Break only if it was the GNU/non-GNU ld that we prefer.
4599
      case `"$lt_cv_path_LD" -v 2>&1 
4600
      *GNU* | *'with BFD'*)
4601
        test "$with_gnu_ld" != no && break
4602
        ;;
4603
      *)
4604
        test "$with_gnu_ld" != yes && break
4605
        ;;
4606
      esac
4607
    fi
4608
  done
4609
  IFS="$lt_save_ifs"
4610
else
4611
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4612
fi
4613
fi
4614
 
4615
LD="$lt_cv_path_LD"
4616
if test -n "$LD"; then
4617
  echo "$as_me:$LINENO: result: $LD" >&5
4618
echo "${ECHO_T}$LD" >&6
4619
else
4620
  echo "$as_me:$LINENO: result: no" >&5
4621
echo "${ECHO_T}no" >&6
4622
fi
4623
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4624
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4625
   { (exit 1); exit 1; }; }
4626
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4627
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4628
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4629
  echo $ECHO_N "(cached) $ECHO_C" >&6
4630
else
4631
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4632
case `$LD -v 2>&1 
4633
*GNU* | *'with BFD'*)
4634
  lt_cv_prog_gnu_ld=yes
4635
  ;;
4636
*)
4637
  lt_cv_prog_gnu_ld=no
4638
  ;;
4639
esac
4640
fi
4641
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4642
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4643
with_gnu_ld=$lt_cv_prog_gnu_ld
4644
 
4645
 
4646
 
4647
 
4648
 
4649
 
4650
 
4651
 
4652
 
4653
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4654
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4655
if test "${lt_cv_path_NM+set}" = set; then
4656
  echo $ECHO_N "(cached) $ECHO_C" >&6
4657
else
4658
  if test -n "$NM"; then
4659
  # Let the user override the test.
4660
  lt_cv_path_NM="$NM"
4661
else
4662
  lt_nm_to_check="${ac_tool_prefix}nm"
4663
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4664
    lt_nm_to_check="$lt_nm_to_check nm"
4665
  fi
4666
  for lt_tmp_nm in $lt_nm_to_check; do
4667
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4668
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4669
      IFS="$lt_save_ifs"
4670
      test -z "$ac_dir" && ac_dir=.
4671
      tmp_nm="$ac_dir/$lt_tmp_nm"
4672
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4673
        # Check to see if the nm accepts a BSD-compat flag.
4674
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4675
        #   nm: unknown option "B" ignored
4676
        # Tru64's nm complains that /dev/null is an invalid object file
4677
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4678
        */dev/null* | *'Invalid file or object type'*)
4679
          lt_cv_path_NM="$tmp_nm -B"
4680
          break
4681
          ;;
4682
        *)
4683
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4684
          */dev/null*)
4685
            lt_cv_path_NM="$tmp_nm -p"
4686
            break
4687
            ;;
4688
          *)
4689
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4690
            continue # so that we can try to find one that supports BSD flags
4691
            ;;
4692
          esac
4693
          ;;
4694
        esac
4695
      fi
4696
    done
4697
    IFS="$lt_save_ifs"
4698
  done
4699
  : ${lt_cv_path_NM=no}
4700
fi
4701
fi
4702
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4703
echo "${ECHO_T}$lt_cv_path_NM" >&6
4704
if test "$lt_cv_path_NM" != "no"; then
4705
  NM="$lt_cv_path_NM"
4706
else
4707
  # Didn't find any BSD compatible name lister, look for dumpbin.
4708
  if test -n "$ac_tool_prefix"; then
4709
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4710
  do
4711
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4712
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4713
echo "$as_me:$LINENO: checking for $ac_word" >&5
4714
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4715
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4716
  echo $ECHO_N "(cached) $ECHO_C" >&6
4717
else
4718
  if test -n "$DUMPBIN"; then
4719
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4720
else
4721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722
for as_dir in $PATH
4723
do
4724
  IFS=$as_save_IFS
4725
  test -z "$as_dir" && as_dir=.
4726
  for ac_exec_ext in '' $ac_executable_extensions; do
4727
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4729
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730
    break 2
4731
  fi
4732
done
4733
done
4734
 
4735
fi
4736
fi
4737
DUMPBIN=$ac_cv_prog_DUMPBIN
4738
if test -n "$DUMPBIN"; then
4739
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4740
echo "${ECHO_T}$DUMPBIN" >&6
4741
else
4742
  echo "$as_me:$LINENO: result: no" >&5
4743
echo "${ECHO_T}no" >&6
4744
fi
4745
 
4746
    test -n "$DUMPBIN" && break
4747
  done
4748
fi
4749
if test -z "$DUMPBIN"; then
4750
  ac_ct_DUMPBIN=$DUMPBIN
4751
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4752
do
4753
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4754
set dummy $ac_prog; ac_word=$2
4755
echo "$as_me:$LINENO: checking for $ac_word" >&5
4756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4758
  echo $ECHO_N "(cached) $ECHO_C" >&6
4759
else
4760
  if test -n "$ac_ct_DUMPBIN"; then
4761
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4762
else
4763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764
for as_dir in $PATH
4765
do
4766
  IFS=$as_save_IFS
4767
  test -z "$as_dir" && as_dir=.
4768
  for ac_exec_ext in '' $ac_executable_extensions; do
4769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772
    break 2
4773
  fi
4774
done
4775
done
4776
 
4777
fi
4778
fi
4779
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4780
if test -n "$ac_ct_DUMPBIN"; then
4781
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4782
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4783
else
4784
  echo "$as_me:$LINENO: result: no" >&5
4785
echo "${ECHO_T}no" >&6
4786
fi
4787
 
4788
  test -n "$ac_ct_DUMPBIN" && break
4789
done
4790
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4791
 
4792
  DUMPBIN=$ac_ct_DUMPBIN
4793
fi
4794
 
4795
 
4796
  if test "$DUMPBIN" != ":"; then
4797
    NM="$DUMPBIN"
4798
  fi
4799
fi
4800
test -z "$NM" && NM=nm
4801
 
4802
 
4803
 
4804
 
4805
 
4806
 
4807
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4808
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4809
if test "${lt_cv_nm_interface+set}" = set; then
4810
  echo $ECHO_N "(cached) $ECHO_C" >&6
4811
else
4812
  lt_cv_nm_interface="BSD nm"
4813
  echo "int some_variable = 0;" > conftest.$ac_ext
4814
  (eval echo "\"\$as_me:4814: $ac_compile\"" >&5)
4815
  (eval "$ac_compile" 2>conftest.err)
4816
  cat conftest.err >&5
4817
  (eval echo "\"\$as_me:4817: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4818
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4819
  cat conftest.err >&5
4820
  (eval echo "\"\$as_me:4820: output\"" >&5)
4821
  cat conftest.out >&5
4822
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4823
    lt_cv_nm_interface="MS dumpbin"
4824
  fi
4825
  rm -f conftest*
4826
fi
4827
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4828
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4829
 
4830
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4831
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4832
LN_S=$as_ln_s
4833
if test "$LN_S" = "ln -s"; then
4834
  echo "$as_me:$LINENO: result: yes" >&5
4835
echo "${ECHO_T}yes" >&6
4836
else
4837
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4838
echo "${ECHO_T}no, using $LN_S" >&6
4839
fi
4840
 
4841
# find the maximum length of command line arguments
4842
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4843
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4844
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4845
  echo $ECHO_N "(cached) $ECHO_C" >&6
4846
else
4847
    i=0
4848
  teststring="ABCD"
4849
 
4850
  case $build_os in
4851
  msdosdjgpp*)
4852
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4853
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4854
    # during glob expansion).  Even if it were fixed, the result of this
4855
    # check would be larger than it should be.
4856
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4857
    ;;
4858
 
4859
  gnu*)
4860
    # Under GNU Hurd, this test is not required because there is
4861
    # no limit to the length of command line arguments.
4862
    # Libtool will interpret -1 as no limit whatsoever
4863
    lt_cv_sys_max_cmd_len=-1;
4864
    ;;
4865
 
4866
  cygwin* | mingw* | cegcc*)
4867
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4868
    # about 5 minutes as the teststring grows exponentially.
4869
    # Worse, since 9x/ME are not pre-emptively multitasking,
4870
    # you end up with a "frozen" computer, even though with patience
4871
    # the test eventually succeeds (with a max line length of 256k).
4872
    # Instead, let's just punt: use the minimum linelength reported by
4873
    # all of the supported platforms: 8192 (on NT/2K/XP).
4874
    lt_cv_sys_max_cmd_len=8192;
4875
    ;;
4876
 
4877
  amigaos*)
4878
    # On AmigaOS with pdksh, this test takes hours, literally.
4879
    # So we just punt and use a minimum line length of 8192.
4880
    lt_cv_sys_max_cmd_len=8192;
4881
    ;;
4882
 
4883
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4884
    # This has been around since 386BSD, at least.  Likely further.
4885
    if test -x /sbin/sysctl; then
4886
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4887
    elif test -x /usr/sbin/sysctl; then
4888
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4889
    else
4890
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4891
    fi
4892
    # And add a safety zone
4893
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4894
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4895
    ;;
4896
 
4897
  interix*)
4898
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4899
    lt_cv_sys_max_cmd_len=196608
4900
    ;;
4901
 
4902
  osf*)
4903
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4904
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4905
    # nice to cause kernel panics so lets avoid the loop below.
4906
    # First set a reasonable default.
4907
    lt_cv_sys_max_cmd_len=16384
4908
    #
4909
    if test -x /sbin/sysconfig; then
4910
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4911
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4912
      esac
4913
    fi
4914
    ;;
4915
  sco3.2v5*)
4916
    lt_cv_sys_max_cmd_len=102400
4917
    ;;
4918
  sysv5* | sco5v6* | sysv4.2uw2*)
4919
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4920
    if test -n "$kargmax"; then
4921
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4922
    else
4923
      lt_cv_sys_max_cmd_len=32768
4924
    fi
4925
    ;;
4926
  *)
4927
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4928
    if test -n "$lt_cv_sys_max_cmd_len"; then
4929
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4930
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4931
    else
4932
      # Make teststring a little bigger before we do anything with it.
4933
      # a 1K string should be a reasonable start.
4934
      for i in 1 2 3 4 5 6 7 8 ; do
4935
        teststring=$teststring$teststring
4936
      done
4937
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4938
      # If test is not a shell built-in, we'll probably end up computing a
4939
      # maximum length that is only half of the actual maximum length, but
4940
      # we can't tell.
4941
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4942
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4943
              test $i != 17 # 1/2 MB should be enough
4944
      do
4945
        i=`expr $i + 1`
4946
        teststring=$teststring$teststring
4947
      done
4948
      # Only check the string length outside the loop.
4949
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4950
      teststring=
4951
      # Add a significant safety factor because C++ compilers can tack on
4952
      # massive amounts of additional arguments before passing them to the
4953
      # linker.  It appears as though 1/2 is a usable value.
4954
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4955
    fi
4956
    ;;
4957
  esac
4958
 
4959
fi
4960
 
4961
if test -n $lt_cv_sys_max_cmd_len ; then
4962
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4963
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4964
else
4965
  echo "$as_me:$LINENO: result: none" >&5
4966
echo "${ECHO_T}none" >&6
4967
fi
4968
max_cmd_len=$lt_cv_sys_max_cmd_len
4969
 
4970
 
4971
 
4972
 
4973
 
4974
 
4975
: ${CP="cp -f"}
4976
: ${MV="mv -f"}
4977
: ${RM="rm -f"}
4978
 
4979
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4980
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4981
# Try some XSI features
4982
xsi_shell=no
4983
( _lt_dummy="a/b/c"
4984
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4985
      = c,a/b,, \
4986
    && eval 'test $(( 1 + 1 )) -eq 2 \
4987
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4988
  && xsi_shell=yes
4989
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4990
echo "${ECHO_T}$xsi_shell" >&6
4991
 
4992
 
4993
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4994
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4995
lt_shell_append=no
4996
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4997
    >/dev/null 2>&1 \
4998
  && lt_shell_append=yes
4999
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5000
echo "${ECHO_T}$lt_shell_append" >&6
5001
 
5002
 
5003
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5004
  lt_unset=unset
5005
else
5006
  lt_unset=false
5007
fi
5008
 
5009
 
5010
 
5011
 
5012
 
5013
# test EBCDIC or ASCII
5014
case `echo X|tr X '\101'` in
5015
 A) # ASCII based system
5016
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5017
  lt_SP2NL='tr \040 \012'
5018
  lt_NL2SP='tr \015\012 \040\040'
5019
  ;;
5020
 *) # EBCDIC based system
5021
  lt_SP2NL='tr \100 \n'
5022
  lt_NL2SP='tr \r\n \100\100'
5023
  ;;
5024
esac
5025
 
5026
 
5027
 
5028
 
5029
 
5030
 
5031
 
5032
 
5033
 
5034
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5035
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5036
if test "${lt_cv_ld_reload_flag+set}" = set; then
5037
  echo $ECHO_N "(cached) $ECHO_C" >&6
5038
else
5039
  lt_cv_ld_reload_flag='-r'
5040
fi
5041
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5042
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5043
reload_flag=$lt_cv_ld_reload_flag
5044
case $reload_flag in
5045
"" | " "*) ;;
5046
*) reload_flag=" $reload_flag" ;;
5047
esac
5048
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049
case $host_os in
5050
  darwin*)
5051
    if test "$GCC" = yes; then
5052
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5053
    else
5054
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5055
    fi
5056
    ;;
5057
esac
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
 
5067
if test -n "$ac_tool_prefix"; then
5068
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5069
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5070
echo "$as_me:$LINENO: checking for $ac_word" >&5
5071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5073
  echo $ECHO_N "(cached) $ECHO_C" >&6
5074
else
5075
  if test -n "$OBJDUMP"; then
5076
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5077
else
5078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079
for as_dir in $PATH
5080
do
5081
  IFS=$as_save_IFS
5082
  test -z "$as_dir" && as_dir=.
5083
  for ac_exec_ext in '' $ac_executable_extensions; do
5084
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5086
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087
    break 2
5088
  fi
5089
done
5090
done
5091
 
5092
fi
5093
fi
5094
OBJDUMP=$ac_cv_prog_OBJDUMP
5095
if test -n "$OBJDUMP"; then
5096
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5097
echo "${ECHO_T}$OBJDUMP" >&6
5098
else
5099
  echo "$as_me:$LINENO: result: no" >&5
5100
echo "${ECHO_T}no" >&6
5101
fi
5102
 
5103
fi
5104
if test -z "$ac_cv_prog_OBJDUMP"; then
5105
  ac_ct_OBJDUMP=$OBJDUMP
5106
  # Extract the first word of "objdump", so it can be a program name with args.
5107
set dummy objdump; ac_word=$2
5108
echo "$as_me:$LINENO: checking for $ac_word" >&5
5109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5111
  echo $ECHO_N "(cached) $ECHO_C" >&6
5112
else
5113
  if test -n "$ac_ct_OBJDUMP"; then
5114
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5115
else
5116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117
for as_dir in $PATH
5118
do
5119
  IFS=$as_save_IFS
5120
  test -z "$as_dir" && as_dir=.
5121
  for ac_exec_ext in '' $ac_executable_extensions; do
5122
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5124
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125
    break 2
5126
  fi
5127
done
5128
done
5129
 
5130
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5131
fi
5132
fi
5133
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5134
if test -n "$ac_ct_OBJDUMP"; then
5135
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5136
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5137
else
5138
  echo "$as_me:$LINENO: result: no" >&5
5139
echo "${ECHO_T}no" >&6
5140
fi
5141
 
5142
  OBJDUMP=$ac_ct_OBJDUMP
5143
else
5144
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5145
fi
5146
 
5147
test -z "$OBJDUMP" && OBJDUMP=objdump
5148
 
5149
 
5150
 
5151
 
5152
 
5153
 
5154
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5155
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5156
if test "${lt_cv_deplibs_check_method+set}" = set; then
5157
  echo $ECHO_N "(cached) $ECHO_C" >&6
5158
else
5159
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5160
lt_cv_file_magic_test_file=
5161
lt_cv_deplibs_check_method='unknown'
5162
# Need to set the preceding variable on all platforms that support
5163
# interlibrary dependencies.
5164
# 'none' -- dependencies not supported.
5165
# `unknown' -- same as none, but documents that we really don't know.
5166
# 'pass_all' -- all dependencies passed with no checks.
5167
# 'test_compile' -- check by making test program.
5168
# 'file_magic [[regex]]' -- check by looking for files in library path
5169
# which responds to the $file_magic_cmd with a given extended regex.
5170
# If you have `file' or equivalent on your system and you're not sure
5171
# whether `pass_all' will *always* work, you probably want this one.
5172
 
5173
case $host_os in
5174
aix[4-9]*)
5175
  lt_cv_deplibs_check_method=pass_all
5176
  ;;
5177
 
5178
beos*)
5179
  lt_cv_deplibs_check_method=pass_all
5180
  ;;
5181
 
5182
bsdi[45]*)
5183
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5184
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5185
  lt_cv_file_magic_test_file=/shlib/libc.so
5186
  ;;
5187
 
5188
cygwin*)
5189
  # func_win32_libid is a shell function defined in ltmain.sh
5190
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5191
  lt_cv_file_magic_cmd='func_win32_libid'
5192
  ;;
5193
 
5194
mingw* | pw32*)
5195
  # Base MSYS/MinGW do not provide the 'file' command needed by
5196
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5197
  # unless we find 'file', for example because we are cross-compiling.
5198
  if ( file / ) >/dev/null 2>&1; then
5199
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5200
    lt_cv_file_magic_cmd='func_win32_libid'
5201
  else
5202
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5203
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5204
  fi
5205
  ;;
5206
 
5207
cegcc)
5208
  # use the weaker test based on 'objdump'. See mingw*.
5209
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5210
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5211
  ;;
5212
 
5213
darwin* | rhapsody*)
5214
  lt_cv_deplibs_check_method=pass_all
5215
  ;;
5216
 
5217
freebsd* | dragonfly*)
5218
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5219
    case $host_cpu in
5220
    i*86 )
5221
      # Not sure whether the presence of OpenBSD here was a mistake.
5222
      # Let's accept both of them until this is cleared up.
5223
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5224
      lt_cv_file_magic_cmd=/usr/bin/file
5225
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5226
      ;;
5227
    esac
5228
  else
5229
    lt_cv_deplibs_check_method=pass_all
5230
  fi
5231
  ;;
5232
 
5233
gnu*)
5234
  lt_cv_deplibs_check_method=pass_all
5235
  ;;
5236
 
5237
hpux10.20* | hpux11*)
5238
  lt_cv_file_magic_cmd=/usr/bin/file
5239
  case $host_cpu in
5240
  ia64*)
5241
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5242
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5243
    ;;
5244
  hppa*64*)
5245
    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]'
5246
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5247
    ;;
5248
  *)
5249
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5250
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5251
    ;;
5252
  esac
5253
  ;;
5254
 
5255
interix[3-9]*)
5256
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5257
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5258
  ;;
5259
 
5260
irix5* | irix6* | nonstopux*)
5261
  case $LD in
5262
  *-32|*"-32 ") libmagic=32-bit;;
5263
  *-n32|*"-n32 ") libmagic=N32;;
5264
  *-64|*"-64 ") libmagic=64-bit;;
5265
  *) libmagic=never-match;;
5266
  esac
5267
  lt_cv_deplibs_check_method=pass_all
5268
  ;;
5269
 
5270
# This must be Linux ELF.
5271
linux* | k*bsd*-gnu)
5272
  lt_cv_deplibs_check_method=pass_all
5273
  ;;
5274
 
5275
netbsd*)
5276
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5278
  else
5279
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5280
  fi
5281
  ;;
5282
 
5283
newos6*)
5284
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5285
  lt_cv_file_magic_cmd=/usr/bin/file
5286
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5287
  ;;
5288
 
5289
*nto* | *qnx*)
5290
  lt_cv_deplibs_check_method=pass_all
5291
  ;;
5292
 
5293
openbsd*)
5294
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5295
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5296
  else
5297
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5298
  fi
5299
  ;;
5300
 
5301
osf3* | osf4* | osf5*)
5302
  lt_cv_deplibs_check_method=pass_all
5303
  ;;
5304
 
5305
rdos*)
5306
  lt_cv_deplibs_check_method=pass_all
5307
  ;;
5308
 
5309
solaris*)
5310
  lt_cv_deplibs_check_method=pass_all
5311
  ;;
5312
 
5313
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5314
  lt_cv_deplibs_check_method=pass_all
5315
  ;;
5316
 
5317
sysv4 | sysv4.3*)
5318
  case $host_vendor in
5319
  motorola)
5320
    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]'
5321
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5322
    ;;
5323
  ncr)
5324
    lt_cv_deplibs_check_method=pass_all
5325
    ;;
5326
  sequent)
5327
    lt_cv_file_magic_cmd='/bin/file'
5328
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5329
    ;;
5330
  sni)
5331
    lt_cv_file_magic_cmd='/bin/file'
5332
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5333
    lt_cv_file_magic_test_file=/lib/libc.so
5334
    ;;
5335
  siemens)
5336
    lt_cv_deplibs_check_method=pass_all
5337
    ;;
5338
  pc)
5339
    lt_cv_deplibs_check_method=pass_all
5340
    ;;
5341
  esac
5342
  ;;
5343
 
5344
tpf*)
5345
  lt_cv_deplibs_check_method=pass_all
5346
  ;;
5347
esac
5348
 
5349
fi
5350
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5351
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5352
file_magic_cmd=$lt_cv_file_magic_cmd
5353
deplibs_check_method=$lt_cv_deplibs_check_method
5354
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5355
 
5356
 
5357
 
5358
 
5359
 
5360
 
5361
 
5362
 
5363
 
5364
 
5365
 
5366
 
5367
if test -n "$ac_tool_prefix"; then
5368
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5369
set dummy ${ac_tool_prefix}ar; ac_word=$2
5370
echo "$as_me:$LINENO: checking for $ac_word" >&5
5371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5372
if test "${ac_cv_prog_AR+set}" = set; then
5373
  echo $ECHO_N "(cached) $ECHO_C" >&6
5374
else
5375
  if test -n "$AR"; then
5376
  ac_cv_prog_AR="$AR" # Let the user override the test.
5377
else
5378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379
for as_dir in $PATH
5380
do
5381
  IFS=$as_save_IFS
5382
  test -z "$as_dir" && as_dir=.
5383
  for ac_exec_ext in '' $ac_executable_extensions; do
5384
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5386
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387
    break 2
5388
  fi
5389
done
5390
done
5391
 
5392
fi
5393
fi
5394
AR=$ac_cv_prog_AR
5395
if test -n "$AR"; then
5396
  echo "$as_me:$LINENO: result: $AR" >&5
5397
echo "${ECHO_T}$AR" >&6
5398
else
5399
  echo "$as_me:$LINENO: result: no" >&5
5400
echo "${ECHO_T}no" >&6
5401
fi
5402
 
5403
fi
5404
if test -z "$ac_cv_prog_AR"; then
5405
  ac_ct_AR=$AR
5406
  # Extract the first word of "ar", so it can be a program name with args.
5407
set dummy ar; ac_word=$2
5408
echo "$as_me:$LINENO: checking for $ac_word" >&5
5409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5411
  echo $ECHO_N "(cached) $ECHO_C" >&6
5412
else
5413
  if test -n "$ac_ct_AR"; then
5414
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5415
else
5416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417
for as_dir in $PATH
5418
do
5419
  IFS=$as_save_IFS
5420
  test -z "$as_dir" && as_dir=.
5421
  for ac_exec_ext in '' $ac_executable_extensions; do
5422
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423
    ac_cv_prog_ac_ct_AR="ar"
5424
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425
    break 2
5426
  fi
5427
done
5428
done
5429
 
5430
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5431
fi
5432
fi
5433
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5434
if test -n "$ac_ct_AR"; then
5435
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5436
echo "${ECHO_T}$ac_ct_AR" >&6
5437
else
5438
  echo "$as_me:$LINENO: result: no" >&5
5439
echo "${ECHO_T}no" >&6
5440
fi
5441
 
5442
  AR=$ac_ct_AR
5443
else
5444
  AR="$ac_cv_prog_AR"
5445
fi
5446
 
5447
test -z "$AR" && AR=ar
5448
test -z "$AR_FLAGS" && AR_FLAGS=cru
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
if test -n "$ac_tool_prefix"; then
5461
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5462
set dummy ${ac_tool_prefix}strip; ac_word=$2
5463
echo "$as_me:$LINENO: checking for $ac_word" >&5
5464
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465
if test "${ac_cv_prog_STRIP+set}" = set; then
5466
  echo $ECHO_N "(cached) $ECHO_C" >&6
5467
else
5468
  if test -n "$STRIP"; then
5469
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5470
else
5471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472
for as_dir in $PATH
5473
do
5474
  IFS=$as_save_IFS
5475
  test -z "$as_dir" && as_dir=.
5476
  for ac_exec_ext in '' $ac_executable_extensions; do
5477
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5479
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480
    break 2
5481
  fi
5482
done
5483
done
5484
 
5485
fi
5486
fi
5487
STRIP=$ac_cv_prog_STRIP
5488
if test -n "$STRIP"; then
5489
  echo "$as_me:$LINENO: result: $STRIP" >&5
5490
echo "${ECHO_T}$STRIP" >&6
5491
else
5492
  echo "$as_me:$LINENO: result: no" >&5
5493
echo "${ECHO_T}no" >&6
5494
fi
5495
 
5496
fi
5497
if test -z "$ac_cv_prog_STRIP"; then
5498
  ac_ct_STRIP=$STRIP
5499
  # Extract the first word of "strip", so it can be a program name with args.
5500
set dummy strip; ac_word=$2
5501
echo "$as_me:$LINENO: checking for $ac_word" >&5
5502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5504
  echo $ECHO_N "(cached) $ECHO_C" >&6
5505
else
5506
  if test -n "$ac_ct_STRIP"; then
5507
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5508
else
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510
for as_dir in $PATH
5511
do
5512
  IFS=$as_save_IFS
5513
  test -z "$as_dir" && as_dir=.
5514
  for ac_exec_ext in '' $ac_executable_extensions; do
5515
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516
    ac_cv_prog_ac_ct_STRIP="strip"
5517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518
    break 2
5519
  fi
5520
done
5521
done
5522
 
5523
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5524
fi
5525
fi
5526
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5527
if test -n "$ac_ct_STRIP"; then
5528
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5529
echo "${ECHO_T}$ac_ct_STRIP" >&6
5530
else
5531
  echo "$as_me:$LINENO: result: no" >&5
5532
echo "${ECHO_T}no" >&6
5533
fi
5534
 
5535
  STRIP=$ac_ct_STRIP
5536
else
5537
  STRIP="$ac_cv_prog_STRIP"
5538
fi
5539
 
5540
test -z "$STRIP" && STRIP=:
5541
 
5542
 
5543
 
5544
 
5545
 
5546
 
5547
if test -n "$ac_tool_prefix"; then
5548
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5549
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5550
echo "$as_me:$LINENO: checking for $ac_word" >&5
5551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552
if test "${ac_cv_prog_RANLIB+set}" = set; then
5553
  echo $ECHO_N "(cached) $ECHO_C" >&6
5554
else
5555
  if test -n "$RANLIB"; then
5556
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5557
else
5558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559
for as_dir in $PATH
5560
do
5561
  IFS=$as_save_IFS
5562
  test -z "$as_dir" && as_dir=.
5563
  for ac_exec_ext in '' $ac_executable_extensions; do
5564
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5566
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567
    break 2
5568
  fi
5569
done
5570
done
5571
 
5572
fi
5573
fi
5574
RANLIB=$ac_cv_prog_RANLIB
5575
if test -n "$RANLIB"; then
5576
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5577
echo "${ECHO_T}$RANLIB" >&6
5578
else
5579
  echo "$as_me:$LINENO: result: no" >&5
5580
echo "${ECHO_T}no" >&6
5581
fi
5582
 
5583
fi
5584
if test -z "$ac_cv_prog_RANLIB"; then
5585
  ac_ct_RANLIB=$RANLIB
5586
  # Extract the first word of "ranlib", so it can be a program name with args.
5587
set dummy ranlib; ac_word=$2
5588
echo "$as_me:$LINENO: checking for $ac_word" >&5
5589
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5590
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5591
  echo $ECHO_N "(cached) $ECHO_C" >&6
5592
else
5593
  if test -n "$ac_ct_RANLIB"; then
5594
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5595
else
5596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597
for as_dir in $PATH
5598
do
5599
  IFS=$as_save_IFS
5600
  test -z "$as_dir" && as_dir=.
5601
  for ac_exec_ext in '' $ac_executable_extensions; do
5602
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5604
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605
    break 2
5606
  fi
5607
done
5608
done
5609
 
5610
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5611
fi
5612
fi
5613
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5614
if test -n "$ac_ct_RANLIB"; then
5615
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5616
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5617
else
5618
  echo "$as_me:$LINENO: result: no" >&5
5619
echo "${ECHO_T}no" >&6
5620
fi
5621
 
5622
  RANLIB=$ac_ct_RANLIB
5623
else
5624
  RANLIB="$ac_cv_prog_RANLIB"
5625
fi
5626
 
5627
test -z "$RANLIB" && RANLIB=:
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
# Determine commands to create old-style static archives.
5635
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5636
old_postinstall_cmds='chmod 644 $oldlib'
5637
old_postuninstall_cmds=
5638
 
5639
if test -n "$RANLIB"; then
5640
  case $host_os in
5641
  openbsd*)
5642
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5643
    ;;
5644
  *)
5645
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5646
    ;;
5647
  esac
5648
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5649
fi
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
 
5684
# If no C compiler was specified, use CC.
5685
LTCC=${LTCC-"$CC"}
5686
 
5687
# If no C compiler flags were specified, use CFLAGS.
5688
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5689
 
5690
# Allow CC to be a program name with arguments.
5691
compiler=$CC
5692
 
5693
 
5694
# Check for command to grab the raw symbol name followed by C symbol from nm.
5695
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5696
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5697
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5698
  echo $ECHO_N "(cached) $ECHO_C" >&6
5699
else
5700
 
5701
# These are sane defaults that work on at least a few old systems.
5702
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5703
 
5704
# Character class describing NM global symbol codes.
5705
symcode='[BCDEGRST]'
5706
 
5707
# Regexp to match symbols that can be accessed directly from C.
5708
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5709
 
5710
# Define system-specific variables.
5711
case $host_os in
5712
aix*)
5713
  symcode='[BCDT]'
5714
  ;;
5715
cygwin* | mingw* | pw32* | cegcc*)
5716
  symcode='[ABCDGISTW]'
5717
  ;;
5718
hpux*)
5719
  if test "$host_cpu" = ia64; then
5720
    symcode='[ABCDEGRST]'
5721
  fi
5722
  ;;
5723
irix* | nonstopux*)
5724
  symcode='[BCDEGRST]'
5725
  ;;
5726
osf*)
5727
  symcode='[BCDEGQRST]'
5728
  ;;
5729
solaris*)
5730
  symcode='[BDRT]'
5731
  ;;
5732
sco3.2v5*)
5733
  symcode='[DT]'
5734
  ;;
5735
sysv4.2uw2*)
5736
  symcode='[DT]'
5737
  ;;
5738
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5739
  symcode='[ABDT]'
5740
  ;;
5741
sysv4)
5742
  symcode='[DFNSTU]'
5743
  ;;
5744
esac
5745
 
5746
# If we're using GNU nm, then use its standard symbol codes.
5747
case `$NM -V 2>&1` in
5748
*GNU* | *'with BFD'*)
5749
  symcode='[ABCDGIRSTW]' ;;
5750
esac
5751
 
5752
# Transform an extracted symbol line into a proper C declaration.
5753
# Some systems (esp. on ia64) link data and code symbols differently,
5754
# so use this general approach.
5755
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5756
 
5757
# Transform an extracted symbol line into symbol name and symbol address
5758
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5759
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'"
5760
 
5761
# Handle CRLF in mingw tool chain
5762
opt_cr=
5763
case $build_os in
5764
mingw*)
5765
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5766
  ;;
5767
esac
5768
 
5769
# Try without a prefix underscore, then with it.
5770
for ac_symprfx in "" "_"; do
5771
 
5772
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5773
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5774
 
5775
  # Write the raw and C identifiers.
5776
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5777
    # Fake it for dumpbin and say T for any non-static function
5778
    # and D for any global variable.
5779
    # Also find C++ and __fastcall symbols from MSVC++,
5780
    # which start with @ or ?.
5781
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5782
"     {last_section=section; section=\$ 3};"\
5783
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5784
"     \$ 0!~/External *\|/{next};"\
5785
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5786
"     {if(hide[section]) next};"\
5787
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5788
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5789
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5790
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5791
"     ' prfx=^$ac_symprfx"
5792
  else
5793
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5794
  fi
5795
 
5796
  # Check to see that the pipe works correctly.
5797
  pipe_works=no
5798
 
5799
  rm -f conftest*
5800
  cat > conftest.$ac_ext <<_LT_EOF
5801
#ifdef __cplusplus
5802
extern "C" {
5803
#endif
5804
char nm_test_var;
5805
void nm_test_func(void);
5806
void nm_test_func(void){}
5807
#ifdef __cplusplus
5808
}
5809
#endif
5810
int main(){nm_test_var='a';nm_test_func();return(0);}
5811
_LT_EOF
5812
 
5813
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814
  (eval $ac_compile) 2>&5
5815
  ac_status=$?
5816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817
  (exit $ac_status); }; then
5818
    # Now try to grab the symbols.
5819
    nlist=conftest.nm
5820
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5821
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5822
  ac_status=$?
5823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824
  (exit $ac_status); } && test -s "$nlist"; then
5825
      # Try sorting and uniquifying the output.
5826
      if sort "$nlist" | uniq > "$nlist"T; then
5827
        mv -f "$nlist"T "$nlist"
5828
      else
5829
        rm -f "$nlist"T
5830
      fi
5831
 
5832
      # Make sure that we snagged all the symbols we need.
5833
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5834
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5835
          cat <<_LT_EOF > conftest.$ac_ext
5836
#ifdef __cplusplus
5837
extern "C" {
5838
#endif
5839
 
5840
_LT_EOF
5841
          # Now generate the symbol file.
5842
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5843
 
5844
          cat <<_LT_EOF >> conftest.$ac_ext
5845
 
5846
/* The mapping between symbol names and symbols.  */
5847
const struct {
5848
  const char *name;
5849
  void       *address;
5850
}
5851
lt__PROGRAM__LTX_preloaded_symbols[] =
5852
{
5853
  { "@PROGRAM@", (void *) 0 },
5854
_LT_EOF
5855
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5856
          cat <<\_LT_EOF >> conftest.$ac_ext
5857
  {0, (void *) 0}
5858
};
5859
 
5860
/* This works around a problem in FreeBSD linker */
5861
#ifdef FREEBSD_WORKAROUND
5862
static const void *lt_preloaded_setup() {
5863
  return lt__PROGRAM__LTX_preloaded_symbols;
5864
}
5865
#endif
5866
 
5867
#ifdef __cplusplus
5868
}
5869
#endif
5870
_LT_EOF
5871
          # Now try linking the two files.
5872
          mv conftest.$ac_objext conftstm.$ac_objext
5873
          lt_save_LIBS="$LIBS"
5874
          lt_save_CFLAGS="$CFLAGS"
5875
          LIBS="conftstm.$ac_objext"
5876
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5877
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878
  (eval $ac_link) 2>&5
5879
  ac_status=$?
5880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5882
            pipe_works=yes
5883
          fi
5884
          LIBS="$lt_save_LIBS"
5885
          CFLAGS="$lt_save_CFLAGS"
5886
        else
5887
          echo "cannot find nm_test_func in $nlist" >&5
5888
        fi
5889
      else
5890
        echo "cannot find nm_test_var in $nlist" >&5
5891
      fi
5892
    else
5893
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5894
    fi
5895
  else
5896
    echo "$progname: failed program was:" >&5
5897
    cat conftest.$ac_ext >&5
5898
  fi
5899
  rm -rf conftest* conftst*
5900
 
5901
  # Do not use the global_symbol_pipe unless it works.
5902
  if test "$pipe_works" = yes; then
5903
    break
5904
  else
5905
    lt_cv_sys_global_symbol_pipe=
5906
  fi
5907
done
5908
 
5909
fi
5910
 
5911
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5912
  lt_cv_sys_global_symbol_to_cdecl=
5913
fi
5914
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5915
  echo "$as_me:$LINENO: result: failed" >&5
5916
echo "${ECHO_T}failed" >&6
5917
else
5918
  echo "$as_me:$LINENO: result: ok" >&5
5919
echo "${ECHO_T}ok" >&6
5920
fi
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
 
5930
 
5931
 
5932
 
5933
 
5934
 
5935
 
5936
 
5937
 
5938
 
5939
 
5940
 
5941
 
5942
 
5943
 
5944
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5945
if test "${enable_libtool_lock+set}" = set; then
5946
  enableval="$enable_libtool_lock"
5947
 
5948
fi;
5949
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5950
 
5951
# Some flags need to be propagated to the compiler or linker for good
5952
# libtool support.
5953
case $host in
5954
ia64-*-hpux*)
5955
  # Find out which ABI we are using.
5956
  echo 'int i;' > conftest.$ac_ext
5957
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958
  (eval $ac_compile) 2>&5
5959
  ac_status=$?
5960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961
  (exit $ac_status); }; then
5962
    case `/usr/bin/file conftest.$ac_objext` in
5963
      *ELF-32*)
5964
        HPUX_IA64_MODE="32"
5965
        ;;
5966
      *ELF-64*)
5967
        HPUX_IA64_MODE="64"
5968
        ;;
5969
    esac
5970
  fi
5971
  rm -rf conftest*
5972
  ;;
5973
*-*-irix6*)
5974
  # Find out which ABI we are using.
5975
  echo '#line 5975 "configure"' > conftest.$ac_ext
5976
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977
  (eval $ac_compile) 2>&5
5978
  ac_status=$?
5979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980
  (exit $ac_status); }; then
5981
    if test "$lt_cv_prog_gnu_ld" = yes; then
5982
      case `/usr/bin/file conftest.$ac_objext` in
5983
        *32-bit*)
5984
          LD="${LD-ld} -melf32bsmip"
5985
          ;;
5986
        *N32*)
5987
          LD="${LD-ld} -melf32bmipn32"
5988
          ;;
5989
        *64-bit*)
5990
          LD="${LD-ld} -melf64bmip"
5991
        ;;
5992
      esac
5993
    else
5994
      case `/usr/bin/file conftest.$ac_objext` in
5995
        *32-bit*)
5996
          LD="${LD-ld} -32"
5997
          ;;
5998
        *N32*)
5999
          LD="${LD-ld} -n32"
6000
          ;;
6001
        *64-bit*)
6002
          LD="${LD-ld} -64"
6003
          ;;
6004
      esac
6005
    fi
6006
  fi
6007
  rm -rf conftest*
6008
  ;;
6009
 
6010
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6011
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6012
  # Find out which ABI we are using.
6013
  echo 'int i;' > conftest.$ac_ext
6014
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015
  (eval $ac_compile) 2>&5
6016
  ac_status=$?
6017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018
  (exit $ac_status); }; then
6019
    case `/usr/bin/file conftest.o` in
6020
      *32-bit*)
6021
        case $host in
6022
          x86_64-*kfreebsd*-gnu)
6023
            LD="${LD-ld} -m elf_i386_fbsd"
6024
            ;;
6025
          x86_64-*linux*)
6026
            LD="${LD-ld} -m elf_i386"
6027
            ;;
6028
          ppc64-*linux*|powerpc64-*linux*)
6029
            LD="${LD-ld} -m elf32ppclinux"
6030
            ;;
6031
          s390x-*linux*)
6032
            LD="${LD-ld} -m elf_s390"
6033
            ;;
6034
          sparc64-*linux*)
6035
            LD="${LD-ld} -m elf32_sparc"
6036
            ;;
6037
        esac
6038
        ;;
6039
      *64-bit*)
6040
        case $host in
6041
          x86_64-*kfreebsd*-gnu)
6042
            LD="${LD-ld} -m elf_x86_64_fbsd"
6043
            ;;
6044
          x86_64-*linux*)
6045
            LD="${LD-ld} -m elf_x86_64"
6046
            ;;
6047
          ppc*-*linux*|powerpc*-*linux*)
6048
            LD="${LD-ld} -m elf64ppc"
6049
            ;;
6050
          s390*-*linux*|s390*-*tpf*)
6051
            LD="${LD-ld} -m elf64_s390"
6052
            ;;
6053
          sparc*-*linux*)
6054
            LD="${LD-ld} -m elf64_sparc"
6055
            ;;
6056
        esac
6057
        ;;
6058
    esac
6059
  fi
6060
  rm -rf conftest*
6061
  ;;
6062
 
6063
*-*-sco3.2v5*)
6064
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6065
  SAVE_CFLAGS="$CFLAGS"
6066
  CFLAGS="$CFLAGS -belf"
6067
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6068
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6069
if test "${lt_cv_cc_needs_belf+set}" = set; then
6070
  echo $ECHO_N "(cached) $ECHO_C" >&6
6071
else
6072
  ac_ext=c
6073
ac_cpp='$CPP $CPPFLAGS'
6074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077
 
6078
     cat >conftest.$ac_ext <<_ACEOF
6079
/* confdefs.h.  */
6080
_ACEOF
6081
cat confdefs.h >>conftest.$ac_ext
6082
cat >>conftest.$ac_ext <<_ACEOF
6083
/* end confdefs.h.  */
6084
 
6085
int
6086
main ()
6087
{
6088
 
6089
  ;
6090
  return 0;
6091
}
6092
_ACEOF
6093
rm -f conftest.$ac_objext conftest$ac_exeext
6094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095
  (eval $ac_link) 2>conftest.er1
6096
  ac_status=$?
6097
  grep -v '^ *+' conftest.er1 >conftest.err
6098
  rm -f conftest.er1
6099
  cat conftest.err >&5
6100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
  (exit $ac_status); } &&
6102
         { ac_try='test -z "$ac_c_werror_flag"
6103
                         || test ! -s conftest.err'
6104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105
  (eval $ac_try) 2>&5
6106
  ac_status=$?
6107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108
  (exit $ac_status); }; } &&
6109
         { ac_try='test -s conftest$ac_exeext'
6110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111
  (eval $ac_try) 2>&5
6112
  ac_status=$?
6113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114
  (exit $ac_status); }; }; then
6115
  lt_cv_cc_needs_belf=yes
6116
else
6117
  echo "$as_me: failed program was:" >&5
6118
sed 's/^/| /' conftest.$ac_ext >&5
6119
 
6120
lt_cv_cc_needs_belf=no
6121
fi
6122
rm -f conftest.err conftest.$ac_objext \
6123
      conftest$ac_exeext conftest.$ac_ext
6124
     ac_ext=c
6125
ac_cpp='$CPP $CPPFLAGS'
6126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
 
6130
fi
6131
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6132
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6133
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6134
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6135
    CFLAGS="$SAVE_CFLAGS"
6136
  fi
6137
  ;;
6138
sparc*-*solaris*)
6139
  # Find out which ABI we are using.
6140
  echo 'int i;' > conftest.$ac_ext
6141
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6142
  (eval $ac_compile) 2>&5
6143
  ac_status=$?
6144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145
  (exit $ac_status); }; then
6146
    case `/usr/bin/file conftest.o` in
6147
    *64-bit*)
6148
      case $lt_cv_prog_gnu_ld in
6149
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6150
      *)
6151
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6152
          LD="${LD-ld} -64"
6153
        fi
6154
        ;;
6155
      esac
6156
      ;;
6157
    esac
6158
  fi
6159
  rm -rf conftest*
6160
  ;;
6161
esac
6162
 
6163
need_locks="$enable_libtool_lock"
6164
 
6165
 
6166
  case $host_os in
6167
    rhapsody* | darwin*)
6168
    if test -n "$ac_tool_prefix"; then
6169
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6170
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6171
echo "$as_me:$LINENO: checking for $ac_word" >&5
6172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6174
  echo $ECHO_N "(cached) $ECHO_C" >&6
6175
else
6176
  if test -n "$DSYMUTIL"; then
6177
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6178
else
6179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180
for as_dir in $PATH
6181
do
6182
  IFS=$as_save_IFS
6183
  test -z "$as_dir" && as_dir=.
6184
  for ac_exec_ext in '' $ac_executable_extensions; do
6185
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188
    break 2
6189
  fi
6190
done
6191
done
6192
 
6193
fi
6194
fi
6195
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6196
if test -n "$DSYMUTIL"; then
6197
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6198
echo "${ECHO_T}$DSYMUTIL" >&6
6199
else
6200
  echo "$as_me:$LINENO: result: no" >&5
6201
echo "${ECHO_T}no" >&6
6202
fi
6203
 
6204
fi
6205
if test -z "$ac_cv_prog_DSYMUTIL"; then
6206
  ac_ct_DSYMUTIL=$DSYMUTIL
6207
  # Extract the first word of "dsymutil", so it can be a program name with args.
6208
set dummy dsymutil; ac_word=$2
6209
echo "$as_me:$LINENO: checking for $ac_word" >&5
6210
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6212
  echo $ECHO_N "(cached) $ECHO_C" >&6
6213
else
6214
  if test -n "$ac_ct_DSYMUTIL"; then
6215
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6216
else
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218
for as_dir in $PATH
6219
do
6220
  IFS=$as_save_IFS
6221
  test -z "$as_dir" && as_dir=.
6222
  for ac_exec_ext in '' $ac_executable_extensions; do
6223
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6225
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226
    break 2
6227
  fi
6228
done
6229
done
6230
 
6231
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6232
fi
6233
fi
6234
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6235
if test -n "$ac_ct_DSYMUTIL"; then
6236
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6237
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6238
else
6239
  echo "$as_me:$LINENO: result: no" >&5
6240
echo "${ECHO_T}no" >&6
6241
fi
6242
 
6243
  DSYMUTIL=$ac_ct_DSYMUTIL
6244
else
6245
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6246
fi
6247
 
6248
    if test -n "$ac_tool_prefix"; then
6249
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6250
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6251
echo "$as_me:$LINENO: checking for $ac_word" >&5
6252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6254
  echo $ECHO_N "(cached) $ECHO_C" >&6
6255
else
6256
  if test -n "$NMEDIT"; then
6257
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6258
else
6259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260
for as_dir in $PATH
6261
do
6262
  IFS=$as_save_IFS
6263
  test -z "$as_dir" && as_dir=.
6264
  for ac_exec_ext in '' $ac_executable_extensions; do
6265
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268
    break 2
6269
  fi
6270
done
6271
done
6272
 
6273
fi
6274
fi
6275
NMEDIT=$ac_cv_prog_NMEDIT
6276
if test -n "$NMEDIT"; then
6277
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6278
echo "${ECHO_T}$NMEDIT" >&6
6279
else
6280
  echo "$as_me:$LINENO: result: no" >&5
6281
echo "${ECHO_T}no" >&6
6282
fi
6283
 
6284
fi
6285
if test -z "$ac_cv_prog_NMEDIT"; then
6286
  ac_ct_NMEDIT=$NMEDIT
6287
  # Extract the first word of "nmedit", so it can be a program name with args.
6288
set dummy nmedit; ac_word=$2
6289
echo "$as_me:$LINENO: checking for $ac_word" >&5
6290
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6292
  echo $ECHO_N "(cached) $ECHO_C" >&6
6293
else
6294
  if test -n "$ac_ct_NMEDIT"; then
6295
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6296
else
6297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
for as_dir in $PATH
6299
do
6300
  IFS=$as_save_IFS
6301
  test -z "$as_dir" && as_dir=.
6302
  for ac_exec_ext in '' $ac_executable_extensions; do
6303
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6305
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306
    break 2
6307
  fi
6308
done
6309
done
6310
 
6311
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6312
fi
6313
fi
6314
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6315
if test -n "$ac_ct_NMEDIT"; then
6316
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6317
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6318
else
6319
  echo "$as_me:$LINENO: result: no" >&5
6320
echo "${ECHO_T}no" >&6
6321
fi
6322
 
6323
  NMEDIT=$ac_ct_NMEDIT
6324
else
6325
  NMEDIT="$ac_cv_prog_NMEDIT"
6326
fi
6327
 
6328
    if test -n "$ac_tool_prefix"; then
6329
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6330
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6331
echo "$as_me:$LINENO: checking for $ac_word" >&5
6332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6333
if test "${ac_cv_prog_LIPO+set}" = set; then
6334
  echo $ECHO_N "(cached) $ECHO_C" >&6
6335
else
6336
  if test -n "$LIPO"; then
6337
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6338
else
6339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
for as_dir in $PATH
6341
do
6342
  IFS=$as_save_IFS
6343
  test -z "$as_dir" && as_dir=.
6344
  for ac_exec_ext in '' $ac_executable_extensions; do
6345
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6347
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348
    break 2
6349
  fi
6350
done
6351
done
6352
 
6353
fi
6354
fi
6355
LIPO=$ac_cv_prog_LIPO
6356
if test -n "$LIPO"; then
6357
  echo "$as_me:$LINENO: result: $LIPO" >&5
6358
echo "${ECHO_T}$LIPO" >&6
6359
else
6360
  echo "$as_me:$LINENO: result: no" >&5
6361
echo "${ECHO_T}no" >&6
6362
fi
6363
 
6364
fi
6365
if test -z "$ac_cv_prog_LIPO"; then
6366
  ac_ct_LIPO=$LIPO
6367
  # Extract the first word of "lipo", so it can be a program name with args.
6368
set dummy lipo; ac_word=$2
6369
echo "$as_me:$LINENO: checking for $ac_word" >&5
6370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6371
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6372
  echo $ECHO_N "(cached) $ECHO_C" >&6
6373
else
6374
  if test -n "$ac_ct_LIPO"; then
6375
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6376
else
6377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378
for as_dir in $PATH
6379
do
6380
  IFS=$as_save_IFS
6381
  test -z "$as_dir" && as_dir=.
6382
  for ac_exec_ext in '' $ac_executable_extensions; do
6383
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384
    ac_cv_prog_ac_ct_LIPO="lipo"
6385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386
    break 2
6387
  fi
6388
done
6389
done
6390
 
6391
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6392
fi
6393
fi
6394
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6395
if test -n "$ac_ct_LIPO"; then
6396
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6397
echo "${ECHO_T}$ac_ct_LIPO" >&6
6398
else
6399
  echo "$as_me:$LINENO: result: no" >&5
6400
echo "${ECHO_T}no" >&6
6401
fi
6402
 
6403
  LIPO=$ac_ct_LIPO
6404
else
6405
  LIPO="$ac_cv_prog_LIPO"
6406
fi
6407
 
6408
    if test -n "$ac_tool_prefix"; then
6409
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6410
set dummy ${ac_tool_prefix}otool; ac_word=$2
6411
echo "$as_me:$LINENO: checking for $ac_word" >&5
6412
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6413
if test "${ac_cv_prog_OTOOL+set}" = set; then
6414
  echo $ECHO_N "(cached) $ECHO_C" >&6
6415
else
6416
  if test -n "$OTOOL"; then
6417
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6418
else
6419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420
for as_dir in $PATH
6421
do
6422
  IFS=$as_save_IFS
6423
  test -z "$as_dir" && as_dir=.
6424
  for ac_exec_ext in '' $ac_executable_extensions; do
6425
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6427
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428
    break 2
6429
  fi
6430
done
6431
done
6432
 
6433
fi
6434
fi
6435
OTOOL=$ac_cv_prog_OTOOL
6436
if test -n "$OTOOL"; then
6437
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6438
echo "${ECHO_T}$OTOOL" >&6
6439
else
6440
  echo "$as_me:$LINENO: result: no" >&5
6441
echo "${ECHO_T}no" >&6
6442
fi
6443
 
6444
fi
6445
if test -z "$ac_cv_prog_OTOOL"; then
6446
  ac_ct_OTOOL=$OTOOL
6447
  # Extract the first word of "otool", so it can be a program name with args.
6448
set dummy otool; ac_word=$2
6449
echo "$as_me:$LINENO: checking for $ac_word" >&5
6450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6451
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6452
  echo $ECHO_N "(cached) $ECHO_C" >&6
6453
else
6454
  if test -n "$ac_ct_OTOOL"; then
6455
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6456
else
6457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458
for as_dir in $PATH
6459
do
6460
  IFS=$as_save_IFS
6461
  test -z "$as_dir" && as_dir=.
6462
  for ac_exec_ext in '' $ac_executable_extensions; do
6463
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6464
    ac_cv_prog_ac_ct_OTOOL="otool"
6465
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466
    break 2
6467
  fi
6468
done
6469
done
6470
 
6471
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6472
fi
6473
fi
6474
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6475
if test -n "$ac_ct_OTOOL"; then
6476
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6477
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6478
else
6479
  echo "$as_me:$LINENO: result: no" >&5
6480
echo "${ECHO_T}no" >&6
6481
fi
6482
 
6483
  OTOOL=$ac_ct_OTOOL
6484
else
6485
  OTOOL="$ac_cv_prog_OTOOL"
6486
fi
6487
 
6488
    if test -n "$ac_tool_prefix"; then
6489
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6490
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6491
echo "$as_me:$LINENO: checking for $ac_word" >&5
6492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6493
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6494
  echo $ECHO_N "(cached) $ECHO_C" >&6
6495
else
6496
  if test -n "$OTOOL64"; then
6497
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6498
else
6499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500
for as_dir in $PATH
6501
do
6502
  IFS=$as_save_IFS
6503
  test -z "$as_dir" && as_dir=.
6504
  for ac_exec_ext in '' $ac_executable_extensions; do
6505
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6506
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508
    break 2
6509
  fi
6510
done
6511
done
6512
 
6513
fi
6514
fi
6515
OTOOL64=$ac_cv_prog_OTOOL64
6516
if test -n "$OTOOL64"; then
6517
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6518
echo "${ECHO_T}$OTOOL64" >&6
6519
else
6520
  echo "$as_me:$LINENO: result: no" >&5
6521
echo "${ECHO_T}no" >&6
6522
fi
6523
 
6524
fi
6525
if test -z "$ac_cv_prog_OTOOL64"; then
6526
  ac_ct_OTOOL64=$OTOOL64
6527
  # Extract the first word of "otool64", so it can be a program name with args.
6528
set dummy otool64; ac_word=$2
6529
echo "$as_me:$LINENO: checking for $ac_word" >&5
6530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6531
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6532
  echo $ECHO_N "(cached) $ECHO_C" >&6
6533
else
6534
  if test -n "$ac_ct_OTOOL64"; then
6535
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6536
else
6537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538
for as_dir in $PATH
6539
do
6540
  IFS=$as_save_IFS
6541
  test -z "$as_dir" && as_dir=.
6542
  for ac_exec_ext in '' $ac_executable_extensions; do
6543
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546
    break 2
6547
  fi
6548
done
6549
done
6550
 
6551
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6552
fi
6553
fi
6554
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6555
if test -n "$ac_ct_OTOOL64"; then
6556
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6557
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6558
else
6559
  echo "$as_me:$LINENO: result: no" >&5
6560
echo "${ECHO_T}no" >&6
6561
fi
6562
 
6563
  OTOOL64=$ac_ct_OTOOL64
6564
else
6565
  OTOOL64="$ac_cv_prog_OTOOL64"
6566
fi
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
 
6594
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6595
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6596
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6597
  echo $ECHO_N "(cached) $ECHO_C" >&6
6598
else
6599
  lt_cv_apple_cc_single_mod=no
6600
      if test -z "${LT_MULTI_MODULE}"; then
6601
        # By default we will add the -single_module flag. You can override
6602
        # by either setting the environment variable LT_MULTI_MODULE
6603
        # non-empty at configure time, or by adding -multi_module to the
6604
        # link flags.
6605
        rm -rf libconftest.dylib*
6606
        echo "int foo(void){return 1;}" > conftest.c
6607
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6608
-dynamiclib -Wl,-single_module conftest.c" >&5
6609
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6610
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6611
        _lt_result=$?
6612
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6613
          lt_cv_apple_cc_single_mod=yes
6614
        else
6615
          cat conftest.err >&5
6616
        fi
6617
        rm -rf libconftest.dylib*
6618
        rm -f conftest.*
6619
      fi
6620
fi
6621
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6622
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6623
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6624
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6625
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6626
  echo $ECHO_N "(cached) $ECHO_C" >&6
6627
else
6628
  lt_cv_ld_exported_symbols_list=no
6629
      save_LDFLAGS=$LDFLAGS
6630
      echo "_main" > conftest.sym
6631
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6632
      cat >conftest.$ac_ext <<_ACEOF
6633
/* confdefs.h.  */
6634
_ACEOF
6635
cat confdefs.h >>conftest.$ac_ext
6636
cat >>conftest.$ac_ext <<_ACEOF
6637
/* end confdefs.h.  */
6638
 
6639
int
6640
main ()
6641
{
6642
 
6643
  ;
6644
  return 0;
6645
}
6646
_ACEOF
6647
rm -f conftest.$ac_objext conftest$ac_exeext
6648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649
  (eval $ac_link) 2>conftest.er1
6650
  ac_status=$?
6651
  grep -v '^ *+' conftest.er1 >conftest.err
6652
  rm -f conftest.er1
6653
  cat conftest.err >&5
6654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655
  (exit $ac_status); } &&
6656
         { ac_try='test -z "$ac_c_werror_flag"
6657
                         || test ! -s conftest.err'
6658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659
  (eval $ac_try) 2>&5
6660
  ac_status=$?
6661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662
  (exit $ac_status); }; } &&
6663
         { ac_try='test -s conftest$ac_exeext'
6664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665
  (eval $ac_try) 2>&5
6666
  ac_status=$?
6667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668
  (exit $ac_status); }; }; then
6669
  lt_cv_ld_exported_symbols_list=yes
6670
else
6671
  echo "$as_me: failed program was:" >&5
6672
sed 's/^/| /' conftest.$ac_ext >&5
6673
 
6674
lt_cv_ld_exported_symbols_list=no
6675
fi
6676
rm -f conftest.err conftest.$ac_objext \
6677
      conftest$ac_exeext conftest.$ac_ext
6678
        LDFLAGS="$save_LDFLAGS"
6679
 
6680
fi
6681
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6682
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6683
    case $host_os in
6684
    rhapsody* | darwin1.[012])
6685
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6686
    darwin1.*)
6687
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6688
    darwin*) # darwin 5.x on
6689
      # if running on 10.5 or later, the deployment target defaults
6690
      # to the OS version, if on x86, and 10.4, the deployment
6691
      # target defaults to 10.4. Don't you love it?
6692
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6693
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6694
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6695
        10.[012]*)
6696
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6697
        10.*)
6698
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6699
      esac
6700
    ;;
6701
  esac
6702
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6703
      _lt_dar_single_mod='$single_module'
6704
    fi
6705
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6706
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6707
    else
6708
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6709
    fi
6710
    if test "$DSYMUTIL" != ":"; then
6711
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6712
    else
6713
      _lt_dsymutil=
6714
    fi
6715
    ;;
6716
  esac
6717
 
6718
ac_ext=c
6719
ac_cpp='$CPP $CPPFLAGS'
6720
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6724
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6725
# On Suns, sometimes $CPP names a directory.
6726
if test -n "$CPP" && test -d "$CPP"; then
6727
  CPP=
6728
fi
6729
if test -z "$CPP"; then
6730
  if test "${ac_cv_prog_CPP+set}" = set; then
6731
  echo $ECHO_N "(cached) $ECHO_C" >&6
6732
else
6733
      # Double quotes because CPP needs to be expanded
6734
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6735
    do
6736
      ac_preproc_ok=false
6737
for ac_c_preproc_warn_flag in '' yes
6738
do
6739
  # Use a header file that comes with gcc, so configuring glibc
6740
  # with a fresh cross-compiler works.
6741
  # Prefer  to  if __STDC__ is defined, since
6742
  #  exists even on freestanding compilers.
6743
  # On the NeXT, cc -E runs the code through the compiler's parser,
6744
  # not just through cpp. "Syntax error" is here to catch this case.
6745
  cat >conftest.$ac_ext <<_ACEOF
6746
/* confdefs.h.  */
6747
_ACEOF
6748
cat confdefs.h >>conftest.$ac_ext
6749
cat >>conftest.$ac_ext <<_ACEOF
6750
/* end confdefs.h.  */
6751
#ifdef __STDC__
6752
# include 
6753
#else
6754
# include 
6755
#endif
6756
                     Syntax error
6757
_ACEOF
6758
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760
  ac_status=$?
6761
  grep -v '^ *+' conftest.er1 >conftest.err
6762
  rm -f conftest.er1
6763
  cat conftest.err >&5
6764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765
  (exit $ac_status); } >/dev/null; then
6766
  if test -s conftest.err; then
6767
    ac_cpp_err=$ac_c_preproc_warn_flag
6768
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6769
  else
6770
    ac_cpp_err=
6771
  fi
6772
else
6773
  ac_cpp_err=yes
6774
fi
6775
if test -z "$ac_cpp_err"; then
6776
  :
6777
else
6778
  echo "$as_me: failed program was:" >&5
6779
sed 's/^/| /' conftest.$ac_ext >&5
6780
 
6781
  # Broken: fails on valid input.
6782
continue
6783
fi
6784
rm -f conftest.err conftest.$ac_ext
6785
 
6786
  # OK, works on sane cases.  Now check whether non-existent headers
6787
  # can be detected and how.
6788
  cat >conftest.$ac_ext <<_ACEOF
6789
/* confdefs.h.  */
6790
_ACEOF
6791
cat confdefs.h >>conftest.$ac_ext
6792
cat >>conftest.$ac_ext <<_ACEOF
6793
/* end confdefs.h.  */
6794
#include 
6795
_ACEOF
6796
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798
  ac_status=$?
6799
  grep -v '^ *+' conftest.er1 >conftest.err
6800
  rm -f conftest.er1
6801
  cat conftest.err >&5
6802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803
  (exit $ac_status); } >/dev/null; then
6804
  if test -s conftest.err; then
6805
    ac_cpp_err=$ac_c_preproc_warn_flag
6806
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6807
  else
6808
    ac_cpp_err=
6809
  fi
6810
else
6811
  ac_cpp_err=yes
6812
fi
6813
if test -z "$ac_cpp_err"; then
6814
  # Broken: success on invalid input.
6815
continue
6816
else
6817
  echo "$as_me: failed program was:" >&5
6818
sed 's/^/| /' conftest.$ac_ext >&5
6819
 
6820
  # Passes both tests.
6821
ac_preproc_ok=:
6822
break
6823
fi
6824
rm -f conftest.err conftest.$ac_ext
6825
 
6826
done
6827
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6828
rm -f conftest.err conftest.$ac_ext
6829
if $ac_preproc_ok; then
6830
  break
6831
fi
6832
 
6833
    done
6834
    ac_cv_prog_CPP=$CPP
6835
 
6836
fi
6837
  CPP=$ac_cv_prog_CPP
6838
else
6839
  ac_cv_prog_CPP=$CPP
6840
fi
6841
echo "$as_me:$LINENO: result: $CPP" >&5
6842
echo "${ECHO_T}$CPP" >&6
6843
ac_preproc_ok=false
6844
for ac_c_preproc_warn_flag in '' yes
6845
do
6846
  # Use a header file that comes with gcc, so configuring glibc
6847
  # with a fresh cross-compiler works.
6848
  # Prefer  to  if __STDC__ is defined, since
6849
  #  exists even on freestanding compilers.
6850
  # On the NeXT, cc -E runs the code through the compiler's parser,
6851
  # not just through cpp. "Syntax error" is here to catch this case.
6852
  cat >conftest.$ac_ext <<_ACEOF
6853
/* confdefs.h.  */
6854
_ACEOF
6855
cat confdefs.h >>conftest.$ac_ext
6856
cat >>conftest.$ac_ext <<_ACEOF
6857
/* end confdefs.h.  */
6858
#ifdef __STDC__
6859
# include 
6860
#else
6861
# include 
6862
#endif
6863
                     Syntax error
6864
_ACEOF
6865
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6866
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6867
  ac_status=$?
6868
  grep -v '^ *+' conftest.er1 >conftest.err
6869
  rm -f conftest.er1
6870
  cat conftest.err >&5
6871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872
  (exit $ac_status); } >/dev/null; then
6873
  if test -s conftest.err; then
6874
    ac_cpp_err=$ac_c_preproc_warn_flag
6875
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6876
  else
6877
    ac_cpp_err=
6878
  fi
6879
else
6880
  ac_cpp_err=yes
6881
fi
6882
if test -z "$ac_cpp_err"; then
6883
  :
6884
else
6885
  echo "$as_me: failed program was:" >&5
6886
sed 's/^/| /' conftest.$ac_ext >&5
6887
 
6888
  # Broken: fails on valid input.
6889
continue
6890
fi
6891
rm -f conftest.err conftest.$ac_ext
6892
 
6893
  # OK, works on sane cases.  Now check whether non-existent headers
6894
  # can be detected and how.
6895
  cat >conftest.$ac_ext <<_ACEOF
6896
/* confdefs.h.  */
6897
_ACEOF
6898
cat confdefs.h >>conftest.$ac_ext
6899
cat >>conftest.$ac_ext <<_ACEOF
6900
/* end confdefs.h.  */
6901
#include 
6902
_ACEOF
6903
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905
  ac_status=$?
6906
  grep -v '^ *+' conftest.er1 >conftest.err
6907
  rm -f conftest.er1
6908
  cat conftest.err >&5
6909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910
  (exit $ac_status); } >/dev/null; then
6911
  if test -s conftest.err; then
6912
    ac_cpp_err=$ac_c_preproc_warn_flag
6913
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6914
  else
6915
    ac_cpp_err=
6916
  fi
6917
else
6918
  ac_cpp_err=yes
6919
fi
6920
if test -z "$ac_cpp_err"; then
6921
  # Broken: success on invalid input.
6922
continue
6923
else
6924
  echo "$as_me: failed program was:" >&5
6925
sed 's/^/| /' conftest.$ac_ext >&5
6926
 
6927
  # Passes both tests.
6928
ac_preproc_ok=:
6929
break
6930
fi
6931
rm -f conftest.err conftest.$ac_ext
6932
 
6933
done
6934
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6935
rm -f conftest.err conftest.$ac_ext
6936
if $ac_preproc_ok; then
6937
  :
6938
else
6939
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6940
See \`config.log' for more details." >&5
6941
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6942
See \`config.log' for more details." >&2;}
6943
   { (exit 1); exit 1; }; }
6944
fi
6945
 
6946
ac_ext=c
6947
ac_cpp='$CPP $CPPFLAGS'
6948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6951
 
6952
 
6953
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6954
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6955
if test "${ac_cv_header_stdc+set}" = set; then
6956
  echo $ECHO_N "(cached) $ECHO_C" >&6
6957
else
6958
  cat >conftest.$ac_ext <<_ACEOF
6959
/* confdefs.h.  */
6960
_ACEOF
6961
cat confdefs.h >>conftest.$ac_ext
6962
cat >>conftest.$ac_ext <<_ACEOF
6963
/* end confdefs.h.  */
6964
#include 
6965
#include 
6966
#include 
6967
#include 
6968
 
6969
int
6970
main ()
6971
{
6972
 
6973
  ;
6974
  return 0;
6975
}
6976
_ACEOF
6977
rm -f conftest.$ac_objext
6978
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979
  (eval $ac_compile) 2>conftest.er1
6980
  ac_status=$?
6981
  grep -v '^ *+' conftest.er1 >conftest.err
6982
  rm -f conftest.er1
6983
  cat conftest.err >&5
6984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985
  (exit $ac_status); } &&
6986
         { ac_try='test -z "$ac_c_werror_flag"
6987
                         || test ! -s conftest.err'
6988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989
  (eval $ac_try) 2>&5
6990
  ac_status=$?
6991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992
  (exit $ac_status); }; } &&
6993
         { ac_try='test -s conftest.$ac_objext'
6994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995
  (eval $ac_try) 2>&5
6996
  ac_status=$?
6997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998
  (exit $ac_status); }; }; then
6999
  ac_cv_header_stdc=yes
7000
else
7001
  echo "$as_me: failed program was:" >&5
7002
sed 's/^/| /' conftest.$ac_ext >&5
7003
 
7004
ac_cv_header_stdc=no
7005
fi
7006
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007
 
7008
if test $ac_cv_header_stdc = yes; then
7009
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7010
  cat >conftest.$ac_ext <<_ACEOF
7011
/* confdefs.h.  */
7012
_ACEOF
7013
cat confdefs.h >>conftest.$ac_ext
7014
cat >>conftest.$ac_ext <<_ACEOF
7015
/* end confdefs.h.  */
7016
#include 
7017
 
7018
_ACEOF
7019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7020
  $EGREP "memchr" >/dev/null 2>&1; then
7021
  :
7022
else
7023
  ac_cv_header_stdc=no
7024
fi
7025
rm -f conftest*
7026
 
7027
fi
7028
 
7029
if test $ac_cv_header_stdc = yes; then
7030
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7031
  cat >conftest.$ac_ext <<_ACEOF
7032
/* confdefs.h.  */
7033
_ACEOF
7034
cat confdefs.h >>conftest.$ac_ext
7035
cat >>conftest.$ac_ext <<_ACEOF
7036
/* end confdefs.h.  */
7037
#include 
7038
 
7039
_ACEOF
7040
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041
  $EGREP "free" >/dev/null 2>&1; then
7042
  :
7043
else
7044
  ac_cv_header_stdc=no
7045
fi
7046
rm -f conftest*
7047
 
7048
fi
7049
 
7050
if test $ac_cv_header_stdc = yes; then
7051
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7052
  if test "$cross_compiling" = yes; then
7053
  :
7054
else
7055
  cat >conftest.$ac_ext <<_ACEOF
7056
/* confdefs.h.  */
7057
_ACEOF
7058
cat confdefs.h >>conftest.$ac_ext
7059
cat >>conftest.$ac_ext <<_ACEOF
7060
/* end confdefs.h.  */
7061
#include 
7062
#if ((' ' & 0x0FF) == 0x020)
7063
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7064
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7065
#else
7066
# define ISLOWER(c) \
7067
                   (('a' <= (c) && (c) <= 'i') \
7068
                     || ('j' <= (c) && (c) <= 'r') \
7069
                     || ('s' <= (c) && (c) <= 'z'))
7070
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7071
#endif
7072
 
7073
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7074
int
7075
main ()
7076
{
7077
  int i;
7078
  for (i = 0; i < 256; i++)
7079
    if (XOR (islower (i), ISLOWER (i))
7080
        || toupper (i) != TOUPPER (i))
7081
      exit(2);
7082
  exit (0);
7083
}
7084
_ACEOF
7085
rm -f conftest$ac_exeext
7086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087
  (eval $ac_link) 2>&5
7088
  ac_status=$?
7089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
  (eval $ac_try) 2>&5
7093
  ac_status=$?
7094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095
  (exit $ac_status); }; }; then
7096
  :
7097
else
7098
  echo "$as_me: program exited with status $ac_status" >&5
7099
echo "$as_me: failed program was:" >&5
7100
sed 's/^/| /' conftest.$ac_ext >&5
7101
 
7102
( exit $ac_status )
7103
ac_cv_header_stdc=no
7104
fi
7105
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7106
fi
7107
fi
7108
fi
7109
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7110
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7111
if test $ac_cv_header_stdc = yes; then
7112
 
7113
cat >>confdefs.h <<\_ACEOF
7114
#define STDC_HEADERS 1
7115
_ACEOF
7116
 
7117
fi
7118
 
7119
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
 
7127
 
7128
 
7129
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7130
                  inttypes.h stdint.h unistd.h
7131
do
7132
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7133
echo "$as_me:$LINENO: checking for $ac_header" >&5
7134
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136
  echo $ECHO_N "(cached) $ECHO_C" >&6
7137
else
7138
  cat >conftest.$ac_ext <<_ACEOF
7139
/* confdefs.h.  */
7140
_ACEOF
7141
cat confdefs.h >>conftest.$ac_ext
7142
cat >>conftest.$ac_ext <<_ACEOF
7143
/* end confdefs.h.  */
7144
$ac_includes_default
7145
 
7146
#include <$ac_header>
7147
_ACEOF
7148
rm -f conftest.$ac_objext
7149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150
  (eval $ac_compile) 2>conftest.er1
7151
  ac_status=$?
7152
  grep -v '^ *+' conftest.er1 >conftest.err
7153
  rm -f conftest.er1
7154
  cat conftest.err >&5
7155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156
  (exit $ac_status); } &&
7157
         { ac_try='test -z "$ac_c_werror_flag"
7158
                         || test ! -s conftest.err'
7159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160
  (eval $ac_try) 2>&5
7161
  ac_status=$?
7162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163
  (exit $ac_status); }; } &&
7164
         { ac_try='test -s conftest.$ac_objext'
7165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166
  (eval $ac_try) 2>&5
7167
  ac_status=$?
7168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169
  (exit $ac_status); }; }; then
7170
  eval "$as_ac_Header=yes"
7171
else
7172
  echo "$as_me: failed program was:" >&5
7173
sed 's/^/| /' conftest.$ac_ext >&5
7174
 
7175
eval "$as_ac_Header=no"
7176
fi
7177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178
fi
7179
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7180
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7181
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7182
  cat >>confdefs.h <<_ACEOF
7183
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7184
_ACEOF
7185
 
7186
fi
7187
 
7188
done
7189
 
7190
 
7191
 
7192
for ac_header in dlfcn.h
7193
do
7194
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195
echo "$as_me:$LINENO: checking for $ac_header" >&5
7196
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198
  echo $ECHO_N "(cached) $ECHO_C" >&6
7199
else
7200
  cat >conftest.$ac_ext <<_ACEOF
7201
/* confdefs.h.  */
7202
_ACEOF
7203
cat confdefs.h >>conftest.$ac_ext
7204
cat >>conftest.$ac_ext <<_ACEOF
7205
/* end confdefs.h.  */
7206
$ac_includes_default
7207
 
7208
#include <$ac_header>
7209
_ACEOF
7210
rm -f conftest.$ac_objext
7211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212
  (eval $ac_compile) 2>conftest.er1
7213
  ac_status=$?
7214
  grep -v '^ *+' conftest.er1 >conftest.err
7215
  rm -f conftest.er1
7216
  cat conftest.err >&5
7217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218
  (exit $ac_status); } &&
7219
         { ac_try='test -z "$ac_c_werror_flag"
7220
                         || test ! -s conftest.err'
7221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222
  (eval $ac_try) 2>&5
7223
  ac_status=$?
7224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225
  (exit $ac_status); }; } &&
7226
         { ac_try='test -s conftest.$ac_objext'
7227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228
  (eval $ac_try) 2>&5
7229
  ac_status=$?
7230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231
  (exit $ac_status); }; }; then
7232
  eval "$as_ac_Header=yes"
7233
else
7234
  echo "$as_me: failed program was:" >&5
7235
sed 's/^/| /' conftest.$ac_ext >&5
7236
 
7237
eval "$as_ac_Header=no"
7238
fi
7239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240
fi
7241
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7244
  cat >>confdefs.h <<_ACEOF
7245
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7246
_ACEOF
7247
 
7248
fi
7249
 
7250
done
7251
 
7252
 
7253
 
7254
# Set options
7255
 
7256
 
7257
 
7258
        enable_dlopen=no
7259
 
7260
 
7261
 
7262
            # Check whether --enable-shared or --disable-shared was given.
7263
if test "${enable_shared+set}" = set; then
7264
  enableval="$enable_shared"
7265
  p=${PACKAGE-default}
7266
    case $enableval in
7267
    yes) enable_shared=yes ;;
7268
    no) enable_shared=no ;;
7269
    *)
7270
      enable_shared=no
7271
      # Look at the argument we got.  We use all the common list separators.
7272
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7273
      for pkg in $enableval; do
7274
        IFS="$lt_save_ifs"
7275
        if test "X$pkg" = "X$p"; then
7276
          enable_shared=yes
7277
        fi
7278
      done
7279
      IFS="$lt_save_ifs"
7280
      ;;
7281
    esac
7282
else
7283
  enable_shared=yes
7284
fi;
7285
 
7286
 
7287
 
7288
 
7289
 
7290
 
7291
 
7292
 
7293
  # Check whether --enable-static or --disable-static was given.
7294
if test "${enable_static+set}" = set; then
7295
  enableval="$enable_static"
7296
  p=${PACKAGE-default}
7297
    case $enableval in
7298
    yes) enable_static=yes ;;
7299
    no) enable_static=no ;;
7300
    *)
7301
     enable_static=no
7302
      # Look at the argument we got.  We use all the common list separators.
7303
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7304
      for pkg in $enableval; do
7305
        IFS="$lt_save_ifs"
7306
        if test "X$pkg" = "X$p"; then
7307
          enable_static=yes
7308
        fi
7309
      done
7310
      IFS="$lt_save_ifs"
7311
      ;;
7312
    esac
7313
else
7314
  enable_static=yes
7315
fi;
7316
 
7317
 
7318
 
7319
 
7320
 
7321
 
7322
 
7323
 
7324
 
7325
# Check whether --with-pic or --without-pic was given.
7326
if test "${with_pic+set}" = set; then
7327
  withval="$with_pic"
7328
  pic_mode="$withval"
7329
else
7330
  pic_mode=default
7331
fi;
7332
 
7333
test -z "$pic_mode" && pic_mode=default
7334
 
7335
 
7336
 
7337
 
7338
 
7339
 
7340
 
7341
  # Check whether --enable-fast-install or --disable-fast-install was given.
7342
if test "${enable_fast_install+set}" = set; then
7343
  enableval="$enable_fast_install"
7344
  p=${PACKAGE-default}
7345
    case $enableval in
7346
    yes) enable_fast_install=yes ;;
7347
    no) enable_fast_install=no ;;
7348
    *)
7349
      enable_fast_install=no
7350
      # Look at the argument we got.  We use all the common list separators.
7351
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7352
      for pkg in $enableval; do
7353
        IFS="$lt_save_ifs"
7354
        if test "X$pkg" = "X$p"; then
7355
          enable_fast_install=yes
7356
        fi
7357
      done
7358
      IFS="$lt_save_ifs"
7359
      ;;
7360
    esac
7361
else
7362
  enable_fast_install=yes
7363
fi;
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
# This can be used to rebuild libtool when needed
7375
LIBTOOL_DEPS="$ltmain"
7376
 
7377
# Always use our own libtool.
7378
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
 
7404
test -z "$LN_S" && LN_S="ln -s"
7405
 
7406
 
7407
 
7408
 
7409
 
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
if test -n "${ZSH_VERSION+set}" ; then
7420
   setopt NO_GLOB_SUBST
7421
fi
7422
 
7423
echo "$as_me:$LINENO: checking for objdir" >&5
7424
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7425
if test "${lt_cv_objdir+set}" = set; then
7426
  echo $ECHO_N "(cached) $ECHO_C" >&6
7427
else
7428
  rm -f .libs 2>/dev/null
7429
mkdir .libs 2>/dev/null
7430
if test -d .libs; then
7431
  lt_cv_objdir=.libs
7432
else
7433
  # MS-DOS does not allow filenames that begin with a dot.
7434
  lt_cv_objdir=_libs
7435
fi
7436
rmdir .libs 2>/dev/null
7437
fi
7438
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7439
echo "${ECHO_T}$lt_cv_objdir" >&6
7440
objdir=$lt_cv_objdir
7441
 
7442
 
7443
 
7444
 
7445
 
7446
cat >>confdefs.h <<_ACEOF
7447
#define LT_OBJDIR "$lt_cv_objdir/"
7448
_ACEOF
7449
 
7450
 
7451
 
7452
 
7453
 
7454
 
7455
 
7456
 
7457
 
7458
 
7459
 
7460
 
7461
 
7462
 
7463
 
7464
 
7465
 
7466
case $host_os in
7467
aix3*)
7468
  # AIX sometimes has problems with the GCC collect2 program.  For some
7469
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7470
  # vanish in a puff of smoke.
7471
  if test "X${COLLECT_NAMES+set}" != Xset; then
7472
    COLLECT_NAMES=
7473
    export COLLECT_NAMES
7474
  fi
7475
  ;;
7476
esac
7477
 
7478
# Sed substitution that helps us do robust quoting.  It backslashifies
7479
# metacharacters that are still active within double-quoted strings.
7480
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7481
 
7482
# Same as above, but do not quote variable references.
7483
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7484
 
7485
# Sed substitution to delay expansion of an escaped shell variable in a
7486
# double_quote_subst'ed string.
7487
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7488
 
7489
# Sed substitution to delay expansion of an escaped single quote.
7490
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7491
 
7492
# Sed substitution to avoid accidental globbing in evaled expressions
7493
no_glob_subst='s/\*/\\\*/g'
7494
 
7495
# Global variables:
7496
ofile=libtool
7497
can_build_shared=yes
7498
 
7499
# All known linkers require a `.a' archive for static linking (except MSVC,
7500
# which needs '.lib').
7501
libext=a
7502
 
7503
with_gnu_ld="$lt_cv_prog_gnu_ld"
7504
 
7505
old_CC="$CC"
7506
old_CFLAGS="$CFLAGS"
7507
 
7508
# Set sane defaults for various variables
7509
test -z "$CC" && CC=cc
7510
test -z "$LTCC" && LTCC=$CC
7511
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7512
test -z "$LD" && LD=ld
7513
test -z "$ac_objext" && ac_objext=o
7514
 
7515
for cc_temp in $compiler""; do
7516
  case $cc_temp in
7517
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7518
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7519
    \-*) ;;
7520
    *) break;;
7521
  esac
7522
done
7523
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7524
 
7525
 
7526
# Only perform the check for file, if the check method requires it
7527
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7528
case $deplibs_check_method in
7529
file_magic*)
7530
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7531
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7532
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7533
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7534
  echo $ECHO_N "(cached) $ECHO_C" >&6
7535
else
7536
  case $MAGIC_CMD in
7537
[\\/*] |  ?:[\\/]*)
7538
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7539
  ;;
7540
*)
7541
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7542
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7543
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7544
  for ac_dir in $ac_dummy; do
7545
    IFS="$lt_save_ifs"
7546
    test -z "$ac_dir" && ac_dir=.
7547
    if test -f $ac_dir/${ac_tool_prefix}file; then
7548
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7549
      if test -n "$file_magic_test_file"; then
7550
        case $deplibs_check_method in
7551
        "file_magic "*)
7552
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7553
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7555
            $EGREP "$file_magic_regex" > /dev/null; then
7556
            :
7557
          else
7558
            cat <<_LT_EOF 1>&2
7559
 
7560
*** Warning: the command libtool uses to detect shared libraries,
7561
*** $file_magic_cmd, produces output that libtool cannot recognize.
7562
*** The result is that libtool may fail to recognize shared libraries
7563
*** as such.  This will affect the creation of libtool libraries that
7564
*** depend on shared libraries, but programs linked with such libtool
7565
*** libraries will work regardless of this problem.  Nevertheless, you
7566
*** may want to report the problem to your system manager and/or to
7567
*** bug-libtool@gnu.org
7568
 
7569
_LT_EOF
7570
          fi ;;
7571
        esac
7572
      fi
7573
      break
7574
    fi
7575
  done
7576
  IFS="$lt_save_ifs"
7577
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7578
  ;;
7579
esac
7580
fi
7581
 
7582
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7583
if test -n "$MAGIC_CMD"; then
7584
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7585
echo "${ECHO_T}$MAGIC_CMD" >&6
7586
else
7587
  echo "$as_me:$LINENO: result: no" >&5
7588
echo "${ECHO_T}no" >&6
7589
fi
7590
 
7591
 
7592
 
7593
 
7594
 
7595
if test -z "$lt_cv_path_MAGIC_CMD"; then
7596
  if test -n "$ac_tool_prefix"; then
7597
    echo "$as_me:$LINENO: checking for file" >&5
7598
echo $ECHO_N "checking for file... $ECHO_C" >&6
7599
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7600
  echo $ECHO_N "(cached) $ECHO_C" >&6
7601
else
7602
  case $MAGIC_CMD in
7603
[\\/*] |  ?:[\\/]*)
7604
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7605
  ;;
7606
*)
7607
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7608
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7609
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7610
  for ac_dir in $ac_dummy; do
7611
    IFS="$lt_save_ifs"
7612
    test -z "$ac_dir" && ac_dir=.
7613
    if test -f $ac_dir/file; then
7614
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7615
      if test -n "$file_magic_test_file"; then
7616
        case $deplibs_check_method in
7617
        "file_magic "*)
7618
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7619
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7620
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7621
            $EGREP "$file_magic_regex" > /dev/null; then
7622
            :
7623
          else
7624
            cat <<_LT_EOF 1>&2
7625
 
7626
*** Warning: the command libtool uses to detect shared libraries,
7627
*** $file_magic_cmd, produces output that libtool cannot recognize.
7628
*** The result is that libtool may fail to recognize shared libraries
7629
*** as such.  This will affect the creation of libtool libraries that
7630
*** depend on shared libraries, but programs linked with such libtool
7631
*** libraries will work regardless of this problem.  Nevertheless, you
7632
*** may want to report the problem to your system manager and/or to
7633
*** bug-libtool@gnu.org
7634
 
7635
_LT_EOF
7636
          fi ;;
7637
        esac
7638
      fi
7639
      break
7640
    fi
7641
  done
7642
  IFS="$lt_save_ifs"
7643
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7644
  ;;
7645
esac
7646
fi
7647
 
7648
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7649
if test -n "$MAGIC_CMD"; then
7650
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7651
echo "${ECHO_T}$MAGIC_CMD" >&6
7652
else
7653
  echo "$as_me:$LINENO: result: no" >&5
7654
echo "${ECHO_T}no" >&6
7655
fi
7656
 
7657
 
7658
  else
7659
    MAGIC_CMD=:
7660
  fi
7661
fi
7662
 
7663
  fi
7664
  ;;
7665
esac
7666
 
7667
# Use C for the default configuration in the libtool script
7668
 
7669
lt_save_CC="$CC"
7670
ac_ext=c
7671
ac_cpp='$CPP $CPPFLAGS'
7672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675
 
7676
 
7677
# Source file extension for C test sources.
7678
ac_ext=c
7679
 
7680
# Object file extension for compiled C test sources.
7681
objext=o
7682
objext=$objext
7683
 
7684
# Code to be used in simple compile tests
7685
lt_simple_compile_test_code="int some_variable = 0;"
7686
 
7687
# Code to be used in simple link tests
7688
lt_simple_link_test_code='int main(){return(0);}'
7689
 
7690
 
7691
 
7692
 
7693
 
7694
 
7695
 
7696
# If no C compiler was specified, use CC.
7697
LTCC=${LTCC-"$CC"}
7698
 
7699
# If no C compiler flags were specified, use CFLAGS.
7700
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7701
 
7702
# Allow CC to be a program name with arguments.
7703
compiler=$CC
7704
 
7705
# Save the default compiler, since it gets overwritten when the other
7706
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7707
compiler_DEFAULT=$CC
7708
 
7709
# save warnings/boilerplate of simple test code
7710
ac_outfile=conftest.$ac_objext
7711
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7712
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7713
_lt_compiler_boilerplate=`cat conftest.err`
7714
$RM conftest*
7715
 
7716
ac_outfile=conftest.$ac_objext
7717
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7718
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7719
_lt_linker_boilerplate=`cat conftest.err`
7720
$RM -r conftest*
7721
 
7722
 
7723
## CAVEAT EMPTOR:
7724
## There is no encapsulation within the following macros, do not change
7725
## the running order or otherwise move them around unless you know exactly
7726
## what you are doing...
7727
if test -n "$compiler"; then
7728
 
7729
lt_prog_compiler_no_builtin_flag=
7730
 
7731
if test "$GCC" = yes; then
7732
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7733
 
7734
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7735
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7736
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7737
  echo $ECHO_N "(cached) $ECHO_C" >&6
7738
else
7739
  lt_cv_prog_compiler_rtti_exceptions=no
7740
   ac_outfile=conftest.$ac_objext
7741
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7742
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7743
   # Insert the option either (1) after the last *FLAGS variable, or
7744
   # (2) before a word containing "conftest.", or (3) at the end.
7745
   # Note that $ac_compile itself does not contain backslashes and begins
7746
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7747
   # The option is referenced via a variable to avoid confusing sed.
7748
   lt_compile=`echo "$ac_compile" | $SED \
7749
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751
   -e 's:$: $lt_compiler_flag:'`
7752
   (eval echo "\"\$as_me:7752: $lt_compile\"" >&5)
7753
   (eval "$lt_compile" 2>conftest.err)
7754
   ac_status=$?
7755
   cat conftest.err >&5
7756
   echo "$as_me:7756: \$? = $ac_status" >&5
7757
   if (exit $ac_status) && test -s "$ac_outfile"; then
7758
     # The compiler can only warn and ignore the option if not recognized
7759
     # So say no if there are warnings other than the usual output.
7760
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7761
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7762
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7763
       lt_cv_prog_compiler_rtti_exceptions=yes
7764
     fi
7765
   fi
7766
   $RM conftest*
7767
 
7768
fi
7769
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7770
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7771
 
7772
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7773
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7774
else
7775
    :
7776
fi
7777
 
7778
fi
7779
 
7780
 
7781
 
7782
 
7783
 
7784
 
7785
  lt_prog_compiler_wl=
7786
lt_prog_compiler_pic=
7787
lt_prog_compiler_static=
7788
 
7789
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7790
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7791
 
7792
  if test "$GCC" = yes; then
7793
    lt_prog_compiler_wl='-Wl,'
7794
    lt_prog_compiler_static='-static'
7795
 
7796
    case $host_os in
7797
      aix*)
7798
      # All AIX code is PIC.
7799
      if test "$host_cpu" = ia64; then
7800
        # AIX 5 now supports IA64 processor
7801
        lt_prog_compiler_static='-Bstatic'
7802
      fi
7803
      ;;
7804
 
7805
    amigaos*)
7806
      case $host_cpu in
7807
      powerpc)
7808
            # see comment about AmigaOS4 .so support
7809
            lt_prog_compiler_pic='-fPIC'
7810
        ;;
7811
      m68k)
7812
            # FIXME: we need at least 68020 code to build shared libraries, but
7813
            # adding the `-m68020' flag to GCC prevents building anything better,
7814
            # like `-m68040'.
7815
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7816
        ;;
7817
      esac
7818
      ;;
7819
 
7820
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7821
      # PIC is the default for these OSes.
7822
      ;;
7823
 
7824
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7825
      # This hack is so that the source file can tell whether it is being
7826
      # built for inclusion in a dll (and should export symbols for example).
7827
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7828
      # (--disable-auto-import) libraries
7829
      lt_prog_compiler_pic='-DDLL_EXPORT'
7830
      ;;
7831
 
7832
    darwin* | rhapsody*)
7833
      # PIC is the default on this platform
7834
      # Common symbols not allowed in MH_DYLIB files
7835
      lt_prog_compiler_pic='-fno-common'
7836
      ;;
7837
 
7838
    hpux*)
7839
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7840
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7841
      # sets the default TLS model and affects inlining.
7842
      case $host_cpu in
7843
      hppa*64*)
7844
        # +Z the default
7845
        ;;
7846
      *)
7847
        lt_prog_compiler_pic='-fPIC'
7848
        ;;
7849
      esac
7850
      ;;
7851
 
7852
    interix[3-9]*)
7853
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7854
      # Instead, we relocate shared libraries at runtime.
7855
      ;;
7856
 
7857
    msdosdjgpp*)
7858
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7859
      # on systems that don't support them.
7860
      lt_prog_compiler_can_build_shared=no
7861
      enable_shared=no
7862
      ;;
7863
 
7864
    *nto* | *qnx*)
7865
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7866
      # it will coredump.
7867
      lt_prog_compiler_pic='-fPIC -shared'
7868
      ;;
7869
 
7870
    sysv4*MP*)
7871
      if test -d /usr/nec; then
7872
        lt_prog_compiler_pic=-Kconform_pic
7873
      fi
7874
      ;;
7875
 
7876
    *)
7877
      lt_prog_compiler_pic='-fPIC'
7878
      ;;
7879
    esac
7880
  else
7881
    # PORTME Check for flag to pass linker flags through the system compiler.
7882
    case $host_os in
7883
    aix*)
7884
      lt_prog_compiler_wl='-Wl,'
7885
      if test "$host_cpu" = ia64; then
7886
        # AIX 5 now supports IA64 processor
7887
        lt_prog_compiler_static='-Bstatic'
7888
      else
7889
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7890
      fi
7891
      ;;
7892
 
7893
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7894
      # This hack is so that the source file can tell whether it is being
7895
      # built for inclusion in a dll (and should export symbols for example).
7896
      lt_prog_compiler_pic='-DDLL_EXPORT'
7897
      ;;
7898
 
7899
    hpux9* | hpux10* | hpux11*)
7900
      lt_prog_compiler_wl='-Wl,'
7901
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7902
      # not for PA HP-UX.
7903
      case $host_cpu in
7904
      hppa*64*|ia64*)
7905
        # +Z the default
7906
        ;;
7907
      *)
7908
        lt_prog_compiler_pic='+Z'
7909
        ;;
7910
      esac
7911
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7912
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7913
      ;;
7914
 
7915
    irix5* | irix6* | nonstopux*)
7916
      lt_prog_compiler_wl='-Wl,'
7917
      # PIC (with -KPIC) is the default.
7918
      lt_prog_compiler_static='-non_shared'
7919
      ;;
7920
 
7921
    linux* | k*bsd*-gnu)
7922
      case $cc_basename in
7923
      # old Intel for x86_64 which still supported -KPIC.
7924
      ecc*)
7925
        lt_prog_compiler_wl='-Wl,'
7926
        lt_prog_compiler_pic='-KPIC'
7927
        lt_prog_compiler_static='-static'
7928
        ;;
7929
      # icc used to be incompatible with GCC.
7930
      # ICC 10 doesn't accept -KPIC any more.
7931
      icc* | ifort*)
7932
        lt_prog_compiler_wl='-Wl,'
7933
        lt_prog_compiler_pic='-fPIC'
7934
        lt_prog_compiler_static='-static'
7935
        ;;
7936
      # Lahey Fortran 8.1.
7937
      lf95*)
7938
        lt_prog_compiler_wl='-Wl,'
7939
        lt_prog_compiler_pic='--shared'
7940
        lt_prog_compiler_static='--static'
7941
        ;;
7942
      pgcc* | pgf77* | pgf90* | pgf95*)
7943
        # Portland Group compilers (*not* the Pentium gcc compiler,
7944
        # which looks to be a dead project)
7945
        lt_prog_compiler_wl='-Wl,'
7946
        lt_prog_compiler_pic='-fpic'
7947
        lt_prog_compiler_static='-Bstatic'
7948
        ;;
7949
      ccc*)
7950
        lt_prog_compiler_wl='-Wl,'
7951
        # All Alpha code is PIC.
7952
        lt_prog_compiler_static='-non_shared'
7953
        ;;
7954
      xl*)
7955
        # IBM XL C 8.0/Fortran 10.1 on PPC
7956
        lt_prog_compiler_wl='-Wl,'
7957
        lt_prog_compiler_pic='-qpic'
7958
        lt_prog_compiler_static='-qstaticlink'
7959
        ;;
7960
      *)
7961
        case `$CC -V 2>&1 | sed 5q` in
7962
        *Sun\ C*)
7963
          # Sun C 5.9
7964
          lt_prog_compiler_pic='-KPIC'
7965
          lt_prog_compiler_static='-Bstatic'
7966
          lt_prog_compiler_wl='-Wl,'
7967
          ;;
7968
        *Sun\ F*)
7969
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7970
          lt_prog_compiler_pic='-KPIC'
7971
          lt_prog_compiler_static='-Bstatic'
7972
          lt_prog_compiler_wl=''
7973
          ;;
7974
        esac
7975
        ;;
7976
      esac
7977
      ;;
7978
 
7979
    newsos6)
7980
      lt_prog_compiler_pic='-KPIC'
7981
      lt_prog_compiler_static='-Bstatic'
7982
      ;;
7983
 
7984
    *nto* | *qnx*)
7985
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7986
      # it will coredump.
7987
      lt_prog_compiler_pic='-fPIC -shared'
7988
      ;;
7989
 
7990
    osf3* | osf4* | osf5*)
7991
      lt_prog_compiler_wl='-Wl,'
7992
      # All OSF/1 code is PIC.
7993
      lt_prog_compiler_static='-non_shared'
7994
      ;;
7995
 
7996
    rdos*)
7997
      lt_prog_compiler_static='-non_shared'
7998
      ;;
7999
 
8000
    solaris*)
8001
      lt_prog_compiler_pic='-KPIC'
8002
      lt_prog_compiler_static='-Bstatic'
8003
      case $cc_basename in
8004
      f77* | f90* | f95*)
8005
        lt_prog_compiler_wl='-Qoption ld ';;
8006
      *)
8007
        lt_prog_compiler_wl='-Wl,';;
8008
      esac
8009
      ;;
8010
 
8011
    sunos4*)
8012
      lt_prog_compiler_wl='-Qoption ld '
8013
      lt_prog_compiler_pic='-PIC'
8014
      lt_prog_compiler_static='-Bstatic'
8015
      ;;
8016
 
8017
    sysv4 | sysv4.2uw2* | sysv4.3*)
8018
      lt_prog_compiler_wl='-Wl,'
8019
      lt_prog_compiler_pic='-KPIC'
8020
      lt_prog_compiler_static='-Bstatic'
8021
      ;;
8022
 
8023
    sysv4*MP*)
8024
      if test -d /usr/nec ;then
8025
        lt_prog_compiler_pic='-Kconform_pic'
8026
        lt_prog_compiler_static='-Bstatic'
8027
      fi
8028
      ;;
8029
 
8030
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8031
      lt_prog_compiler_wl='-Wl,'
8032
      lt_prog_compiler_pic='-KPIC'
8033
      lt_prog_compiler_static='-Bstatic'
8034
      ;;
8035
 
8036
    unicos*)
8037
      lt_prog_compiler_wl='-Wl,'
8038
      lt_prog_compiler_can_build_shared=no
8039
      ;;
8040
 
8041
    uts4*)
8042
      lt_prog_compiler_pic='-pic'
8043
      lt_prog_compiler_static='-Bstatic'
8044
      ;;
8045
 
8046
    *)
8047
      lt_prog_compiler_can_build_shared=no
8048
      ;;
8049
    esac
8050
  fi
8051
 
8052
case $host_os in
8053
  # For platforms which do not support PIC, -DPIC is meaningless:
8054
  *djgpp*)
8055
    lt_prog_compiler_pic=
8056
    ;;
8057
  *)
8058
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8059
    ;;
8060
esac
8061
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8062
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8063
 
8064
 
8065
 
8066
 
8067
 
8068
 
8069
#
8070
# Check to make sure the PIC flag actually works.
8071
#
8072
if test -n "$lt_prog_compiler_pic"; then
8073
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8074
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8075
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8076
  echo $ECHO_N "(cached) $ECHO_C" >&6
8077
else
8078
  lt_cv_prog_compiler_pic_works=no
8079
   ac_outfile=conftest.$ac_objext
8080
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8081
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8082
   # Insert the option either (1) after the last *FLAGS variable, or
8083
   # (2) before a word containing "conftest.", or (3) at the end.
8084
   # Note that $ac_compile itself does not contain backslashes and begins
8085
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8086
   # The option is referenced via a variable to avoid confusing sed.
8087
   lt_compile=`echo "$ac_compile" | $SED \
8088
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8089
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8090
   -e 's:$: $lt_compiler_flag:'`
8091
   (eval echo "\"\$as_me:8091: $lt_compile\"" >&5)
8092
   (eval "$lt_compile" 2>conftest.err)
8093
   ac_status=$?
8094
   cat conftest.err >&5
8095
   echo "$as_me:8095: \$? = $ac_status" >&5
8096
   if (exit $ac_status) && test -s "$ac_outfile"; then
8097
     # The compiler can only warn and ignore the option if not recognized
8098
     # So say no if there are warnings other than the usual output.
8099
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8100
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8101
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8102
       lt_cv_prog_compiler_pic_works=yes
8103
     fi
8104
   fi
8105
   $RM conftest*
8106
 
8107
fi
8108
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8109
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8110
 
8111
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8112
    case $lt_prog_compiler_pic in
8113
     "" | " "*) ;;
8114
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8115
     esac
8116
else
8117
    lt_prog_compiler_pic=
8118
     lt_prog_compiler_can_build_shared=no
8119
fi
8120
 
8121
fi
8122
 
8123
 
8124
 
8125
 
8126
 
8127
 
8128
#
8129
# Check to make sure the static flag actually works.
8130
#
8131
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8132
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8133
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8134
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8135
  echo $ECHO_N "(cached) $ECHO_C" >&6
8136
else
8137
  lt_cv_prog_compiler_static_works=no
8138
   save_LDFLAGS="$LDFLAGS"
8139
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8140
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8141
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8142
     # The linker can only warn and ignore the option if not recognized
8143
     # So say no if there are warnings
8144
     if test -s conftest.err; then
8145
       # Append any errors to the config.log.
8146
       cat conftest.err 1>&5
8147
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8148
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8149
       if diff conftest.exp conftest.er2 >/dev/null; then
8150
         lt_cv_prog_compiler_static_works=yes
8151
       fi
8152
     else
8153
       lt_cv_prog_compiler_static_works=yes
8154
     fi
8155
   fi
8156
   $RM -r conftest*
8157
   LDFLAGS="$save_LDFLAGS"
8158
 
8159
fi
8160
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8161
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8162
 
8163
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8164
    :
8165
else
8166
    lt_prog_compiler_static=
8167
fi
8168
 
8169
 
8170
 
8171
 
8172
 
8173
 
8174
 
8175
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8176
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8177
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8178
  echo $ECHO_N "(cached) $ECHO_C" >&6
8179
else
8180
  lt_cv_prog_compiler_c_o=no
8181
   $RM -r conftest 2>/dev/null
8182
   mkdir conftest
8183
   cd conftest
8184
   mkdir out
8185
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186
 
8187
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8188
   # Insert the option either (1) after the last *FLAGS variable, or
8189
   # (2) before a word containing "conftest.", or (3) at the end.
8190
   # Note that $ac_compile itself does not contain backslashes and begins
8191
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8192
   lt_compile=`echo "$ac_compile" | $SED \
8193
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195
   -e 's:$: $lt_compiler_flag:'`
8196
   (eval echo "\"\$as_me:8196: $lt_compile\"" >&5)
8197
   (eval "$lt_compile" 2>out/conftest.err)
8198
   ac_status=$?
8199
   cat out/conftest.err >&5
8200
   echo "$as_me:8200: \$? = $ac_status" >&5
8201
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8202
   then
8203
     # The compiler can only warn and ignore the option if not recognized
8204
     # So say no if there are warnings
8205
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8206
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8207
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8208
       lt_cv_prog_compiler_c_o=yes
8209
     fi
8210
   fi
8211
   chmod u+w . 2>&5
8212
   $RM conftest*
8213
   # SGI C++ compiler will create directory out/ii_files/ for
8214
   # template instantiation
8215
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8216
   $RM out/* && rmdir out
8217
   cd ..
8218
   $RM -r conftest
8219
   $RM conftest*
8220
 
8221
fi
8222
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8223
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8224
 
8225
 
8226
 
8227
 
8228
 
8229
 
8230
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8231
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8232
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8233
  echo $ECHO_N "(cached) $ECHO_C" >&6
8234
else
8235
  lt_cv_prog_compiler_c_o=no
8236
   $RM -r conftest 2>/dev/null
8237
   mkdir conftest
8238
   cd conftest
8239
   mkdir out
8240
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241
 
8242
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8243
   # Insert the option either (1) after the last *FLAGS variable, or
8244
   # (2) before a word containing "conftest.", or (3) at the end.
8245
   # Note that $ac_compile itself does not contain backslashes and begins
8246
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8247
   lt_compile=`echo "$ac_compile" | $SED \
8248
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250
   -e 's:$: $lt_compiler_flag:'`
8251
   (eval echo "\"\$as_me:8251: $lt_compile\"" >&5)
8252
   (eval "$lt_compile" 2>out/conftest.err)
8253
   ac_status=$?
8254
   cat out/conftest.err >&5
8255
   echo "$as_me:8255: \$? = $ac_status" >&5
8256
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257
   then
8258
     # The compiler can only warn and ignore the option if not recognized
8259
     # So say no if there are warnings
8260
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8261
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8263
       lt_cv_prog_compiler_c_o=yes
8264
     fi
8265
   fi
8266
   chmod u+w . 2>&5
8267
   $RM conftest*
8268
   # SGI C++ compiler will create directory out/ii_files/ for
8269
   # template instantiation
8270
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271
   $RM out/* && rmdir out
8272
   cd ..
8273
   $RM -r conftest
8274
   $RM conftest*
8275
 
8276
fi
8277
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8278
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8279
 
8280
 
8281
 
8282
 
8283
hard_links="nottested"
8284
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285
  # do not overwrite the value of need_locks provided by the user
8286
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8287
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8288
  hard_links=yes
8289
  $RM conftest*
8290
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291
  touch conftest.a
8292
  ln conftest.a conftest.b 2>&5 || hard_links=no
8293
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294
  echo "$as_me:$LINENO: result: $hard_links" >&5
8295
echo "${ECHO_T}$hard_links" >&6
8296
  if test "$hard_links" = no; then
8297
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8299
    need_locks=warn
8300
  fi
8301
else
8302
  need_locks=no
8303
fi
8304
 
8305
 
8306
 
8307
 
8308
 
8309
 
8310
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8311
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8312
 
8313
  runpath_var=
8314
  allow_undefined_flag=
8315
  always_export_symbols=no
8316
  archive_cmds=
8317
  archive_expsym_cmds=
8318
  compiler_needs_object=no
8319
  enable_shared_with_static_runtimes=no
8320
  export_dynamic_flag_spec=
8321
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8322
  hardcode_automatic=no
8323
  hardcode_direct=no
8324
  hardcode_direct_absolute=no
8325
  hardcode_libdir_flag_spec=
8326
  hardcode_libdir_flag_spec_ld=
8327
  hardcode_libdir_separator=
8328
  hardcode_minus_L=no
8329
  hardcode_shlibpath_var=unsupported
8330
  inherit_rpath=no
8331
  link_all_deplibs=unknown
8332
  module_cmds=
8333
  module_expsym_cmds=
8334
  old_archive_from_new_cmds=
8335
  old_archive_from_expsyms_cmds=
8336
  thread_safe_flag_spec=
8337
  whole_archive_flag_spec=
8338
  # include_expsyms should be a list of space-separated symbols to be *always*
8339
  # included in the symbol list
8340
  include_expsyms=
8341
  # exclude_expsyms can be an extended regexp of symbols to exclude
8342
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8343
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8344
  # as well as any symbol that contains `d'.
8345
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8346
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8347
  # platforms (ab)use it in PIC code, but their linkers get confused if
8348
  # the symbol is explicitly referenced.  Since portable code cannot
8349
  # rely on this symbol name, it's probably fine to never include it in
8350
  # preloaded symbol tables.
8351
  # Exclude shared library initialization/finalization symbols.
8352
  extract_expsyms_cmds=
8353
 
8354
  case $host_os in
8355
  cygwin* | mingw* | pw32* | cegcc*)
8356
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8357
    # When not using gcc, we currently assume that we are using
8358
    # Microsoft Visual C++.
8359
    if test "$GCC" != yes; then
8360
      with_gnu_ld=no
8361
    fi
8362
    ;;
8363
  interix*)
8364
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8365
    with_gnu_ld=yes
8366
    ;;
8367
  openbsd*)
8368
    with_gnu_ld=no
8369
    ;;
8370
  esac
8371
 
8372
  ld_shlibs=yes
8373
  if test "$with_gnu_ld" = yes; then
8374
    # If archive_cmds runs LD, not CC, wlarc should be empty
8375
    wlarc='${wl}'
8376
 
8377
    # Set some defaults for GNU ld with shared library support. These
8378
    # are reset later if shared libraries are not supported. Putting them
8379
    # here allows them to be overridden if necessary.
8380
    runpath_var=LD_RUN_PATH
8381
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8382
    export_dynamic_flag_spec='${wl}--export-dynamic'
8383
    # ancient GNU ld didn't support --whole-archive et. al.
8384
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8385
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8386
    else
8387
      whole_archive_flag_spec=
8388
    fi
8389
    supports_anon_versioning=no
8390
    case `$LD -v 2>&1` in
8391
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8392
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8393
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8394
      *\ 2.11.*) ;; # other 2.11 versions
8395
      *) supports_anon_versioning=yes ;;
8396
    esac
8397
 
8398
    # See if GNU ld supports shared libraries.
8399
    case $host_os in
8400
    aix[3-9]*)
8401
      # On AIX/PPC, the GNU linker is very broken
8402
      if test "$host_cpu" != ia64; then
8403
        ld_shlibs=no
8404
        cat <<_LT_EOF 1>&2
8405
 
8406
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8407
*** to be unable to reliably create shared libraries on AIX.
8408
*** Therefore, libtool is disabling shared libraries support.  If you
8409
*** really care for shared libraries, you may want to modify your PATH
8410
*** so that a non-GNU linker is found, and then restart.
8411
 
8412
_LT_EOF
8413
      fi
8414
      ;;
8415
 
8416
    amigaos*)
8417
      case $host_cpu in
8418
      powerpc)
8419
            # see comment about AmigaOS4 .so support
8420
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421
            archive_expsym_cmds=''
8422
        ;;
8423
      m68k)
8424
            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)'
8425
            hardcode_libdir_flag_spec='-L$libdir'
8426
            hardcode_minus_L=yes
8427
        ;;
8428
      esac
8429
      ;;
8430
 
8431
    beos*)
8432
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8433
        allow_undefined_flag=unsupported
8434
        # Joseph Beckenbach  says some releases of gcc
8435
        # support --undefined.  This deserves some investigation.  FIXME
8436
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8437
      else
8438
        ld_shlibs=no
8439
      fi
8440
      ;;
8441
 
8442
    cygwin* | mingw* | pw32* | cegcc*)
8443
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8444
      # as there is no search path for DLLs.
8445
      hardcode_libdir_flag_spec='-L$libdir'
8446
      allow_undefined_flag=unsupported
8447
      always_export_symbols=no
8448
      enable_shared_with_static_runtimes=yes
8449
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8450
 
8451
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8452
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453
        # If the export-symbols file already is a .def file (1st line
8454
        # is EXPORTS), use it as is; otherwise, prepend...
8455
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8456
          cp $export_symbols $output_objdir/$soname.def;
8457
        else
8458
          echo EXPORTS > $output_objdir/$soname.def;
8459
          cat $export_symbols >> $output_objdir/$soname.def;
8460
        fi~
8461
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8462
      else
8463
        ld_shlibs=no
8464
      fi
8465
      ;;
8466
 
8467
    interix[3-9]*)
8468
      hardcode_direct=no
8469
      hardcode_shlibpath_var=no
8470
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8471
      export_dynamic_flag_spec='${wl}-E'
8472
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8473
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8474
      # default) and relocated if they conflict, which is a slow very memory
8475
      # consuming and fragmenting process.  To avoid this, we pick a random,
8476
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8477
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8478
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8479
      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'
8480
      ;;
8481
 
8482
    gnu* | linux* | tpf* | k*bsd*-gnu)
8483
      tmp_diet=no
8484
      if test "$host_os" = linux-dietlibc; then
8485
        case $cc_basename in
8486
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8487
        esac
8488
      fi
8489
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8490
         && test "$tmp_diet" = no
8491
      then
8492
        tmp_addflag=
8493
        tmp_sharedflag='-shared'
8494
        case $cc_basename,$host_cpu in
8495
        pgcc*)                          # Portland Group C compiler
8496
          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'
8497
          tmp_addflag=' $pic_flag'
8498
          ;;
8499
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8500
          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'
8501
          tmp_addflag=' $pic_flag -Mnomain' ;;
8502
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8503
          tmp_addflag=' -i_dynamic' ;;
8504
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8505
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8506
        ifc* | ifort*)                  # Intel Fortran compiler
8507
          tmp_addflag=' -nofor_main' ;;
8508
        lf95*)                          # Lahey Fortran 8.1
8509
          whole_archive_flag_spec=
8510
          tmp_sharedflag='--shared' ;;
8511
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8512
          tmp_sharedflag='-qmkshrobj'
8513
          tmp_addflag= ;;
8514
        esac
8515
        case `$CC -V 2>&1 | sed 5q` in
8516
        *Sun\ C*)                       # Sun C 5.9
8517
          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'
8518
          compiler_needs_object=yes
8519
          tmp_sharedflag='-G' ;;
8520
        *Sun\ F*)                       # Sun Fortran 8.3
8521
          tmp_sharedflag='-G' ;;
8522
        esac
8523
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8524
 
8525
        if test "x$supports_anon_versioning" = xyes; then
8526
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8527
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8528
            echo "local: *; };" >> $output_objdir/$libname.ver~
8529
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8530
        fi
8531
 
8532
        case $cc_basename in
8533
        xlf*)
8534
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8535
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8536
          hardcode_libdir_flag_spec=
8537
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8538
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8539
          if test "x$supports_anon_versioning" = xyes; then
8540
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8541
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8542
              echo "local: *; };" >> $output_objdir/$libname.ver~
8543
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8544
          fi
8545
          ;;
8546
        esac
8547
      else
8548
        ld_shlibs=no
8549
      fi
8550
      ;;
8551
 
8552
    netbsd*)
8553
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8554
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8555
        wlarc=
8556
      else
8557
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8559
      fi
8560
      ;;
8561
 
8562
    solaris*)
8563
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8564
        ld_shlibs=no
8565
        cat <<_LT_EOF 1>&2
8566
 
8567
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8568
*** create shared libraries on Solaris systems.  Therefore, libtool
8569
*** is disabling shared libraries support.  We urge you to upgrade GNU
8570
*** binutils to release 2.9.1 or newer.  Another option is to modify
8571
*** your PATH or compiler configuration so that the native linker is
8572
*** used, and then restart.
8573
 
8574
_LT_EOF
8575
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8576
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8577
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8578
      else
8579
        ld_shlibs=no
8580
      fi
8581
      ;;
8582
 
8583
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8584
      case `$LD -v 2>&1` in
8585
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8586
        ld_shlibs=no
8587
        cat <<_LT_EOF 1>&2
8588
 
8589
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8590
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8591
*** is disabling shared libraries support.  We urge you to upgrade GNU
8592
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8593
*** your PATH or compiler configuration so that the native linker is
8594
*** used, and then restart.
8595
 
8596
_LT_EOF
8597
        ;;
8598
        *)
8599
          # For security reasons, it is highly recommended that you always
8600
          # use absolute paths for naming shared libraries, and exclude the
8601
          # DT_RUNPATH tag from executables and libraries.  But doing so
8602
          # requires that you compile everything twice, which is a pain.
8603
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8604
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8605
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8607
          else
8608
            ld_shlibs=no
8609
          fi
8610
        ;;
8611
      esac
8612
      ;;
8613
 
8614
    sunos4*)
8615
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8616
      wlarc=
8617
      hardcode_direct=yes
8618
      hardcode_shlibpath_var=no
8619
      ;;
8620
 
8621
    *)
8622
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8623
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625
      else
8626
        ld_shlibs=no
8627
      fi
8628
      ;;
8629
    esac
8630
 
8631
    if test "$ld_shlibs" = no; then
8632
      runpath_var=
8633
      hardcode_libdir_flag_spec=
8634
      export_dynamic_flag_spec=
8635
      whole_archive_flag_spec=
8636
    fi
8637
  else
8638
    # PORTME fill in a description of your system's linker (not GNU ld)
8639
    case $host_os in
8640
    aix3*)
8641
      allow_undefined_flag=unsupported
8642
      always_export_symbols=yes
8643
      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'
8644
      # Note: this linker hardcodes the directories in LIBPATH if there
8645
      # are no directories specified by -L.
8646
      hardcode_minus_L=yes
8647
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8648
        # Neither direct hardcoding nor static linking is supported with a
8649
        # broken collect2.
8650
        hardcode_direct=unsupported
8651
      fi
8652
      ;;
8653
 
8654
    aix[4-9]*)
8655
      if test "$host_cpu" = ia64; then
8656
        # On IA64, the linker does run time linking by default, so we don't
8657
        # have to do anything special.
8658
        aix_use_runtimelinking=no
8659
        exp_sym_flag='-Bexport'
8660
        no_entry_flag=""
8661
      else
8662
        # If we're using GNU nm, then we don't want the "-C" option.
8663
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8664
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8665
          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'
8666
        else
8667
          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'
8668
        fi
8669
        aix_use_runtimelinking=no
8670
 
8671
        # Test if we are trying to use run time linking or normal
8672
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8673
        # need to do runtime linking.
8674
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8675
          for ld_flag in $LDFLAGS; do
8676
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8677
            aix_use_runtimelinking=yes
8678
            break
8679
          fi
8680
          done
8681
          ;;
8682
        esac
8683
 
8684
        exp_sym_flag='-bexport'
8685
        no_entry_flag='-bnoentry'
8686
      fi
8687
 
8688
      # When large executables or shared objects are built, AIX ld can
8689
      # have problems creating the table of contents.  If linking a library
8690
      # or program results in "error TOC overflow" add -mminimal-toc to
8691
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8692
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8693
 
8694
      archive_cmds=''
8695
      hardcode_direct=yes
8696
      hardcode_direct_absolute=yes
8697
      hardcode_libdir_separator=':'
8698
      link_all_deplibs=yes
8699
      file_list_spec='${wl}-f,'
8700
 
8701
      if test "$GCC" = yes; then
8702
        case $host_os in aix4.[012]|aix4.[012].*)
8703
        # We only want to do this on AIX 4.2 and lower, the check
8704
        # below for broken collect2 doesn't work under 4.3+
8705
          collect2name=`${CC} -print-prog-name=collect2`
8706
          if test -f "$collect2name" &&
8707
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8708
          then
8709
          # We have reworked collect2
8710
          :
8711
          else
8712
          # We have old collect2
8713
          hardcode_direct=unsupported
8714
          # It fails to find uninstalled libraries when the uninstalled
8715
          # path is not listed in the libpath.  Setting hardcode_minus_L
8716
          # to unsupported forces relinking
8717
          hardcode_minus_L=yes
8718
          hardcode_libdir_flag_spec='-L$libdir'
8719
          hardcode_libdir_separator=
8720
          fi
8721
          ;;
8722
        esac
8723
        shared_flag='-shared'
8724
        if test "$aix_use_runtimelinking" = yes; then
8725
          shared_flag="$shared_flag "'${wl}-G'
8726
        fi
8727
      else
8728
        # not using gcc
8729
        if test "$host_cpu" = ia64; then
8730
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8731
        # chokes on -Wl,-G. The following line is correct:
8732
          shared_flag='-G'
8733
        else
8734
          if test "$aix_use_runtimelinking" = yes; then
8735
            shared_flag='${wl}-G'
8736
          else
8737
            shared_flag='${wl}-bM:SRE'
8738
          fi
8739
        fi
8740
      fi
8741
 
8742
      export_dynamic_flag_spec='${wl}-bexpall'
8743
      # It seems that -bexpall does not export symbols beginning with
8744
      # underscore (_), so it is better to generate a list of symbols to export.
8745
      always_export_symbols=yes
8746
      if test "$aix_use_runtimelinking" = yes; then
8747
        # Warning - without using the other runtime loading flags (-brtl),
8748
        # -berok will link without error, but may produce a broken library.
8749
        allow_undefined_flag='-berok'
8750
        # Determine the default libpath from the value encoded in an
8751
        # empty executable.
8752
        cat >conftest.$ac_ext <<_ACEOF
8753
/* confdefs.h.  */
8754
_ACEOF
8755
cat confdefs.h >>conftest.$ac_ext
8756
cat >>conftest.$ac_ext <<_ACEOF
8757
/* end confdefs.h.  */
8758
 
8759
int
8760
main ()
8761
{
8762
 
8763
  ;
8764
  return 0;
8765
}
8766
_ACEOF
8767
rm -f conftest.$ac_objext conftest$ac_exeext
8768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769
  (eval $ac_link) 2>conftest.er1
8770
  ac_status=$?
8771
  grep -v '^ *+' conftest.er1 >conftest.err
8772
  rm -f conftest.er1
8773
  cat conftest.err >&5
8774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775
  (exit $ac_status); } &&
8776
         { ac_try='test -z "$ac_c_werror_flag"
8777
                         || test ! -s conftest.err'
8778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779
  (eval $ac_try) 2>&5
8780
  ac_status=$?
8781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782
  (exit $ac_status); }; } &&
8783
         { ac_try='test -s conftest$ac_exeext'
8784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785
  (eval $ac_try) 2>&5
8786
  ac_status=$?
8787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788
  (exit $ac_status); }; }; then
8789
 
8790
lt_aix_libpath_sed='
8791
    /Import File Strings/,/^$/ {
8792
        /^0/ {
8793
            s/^0  *\(.*\)$/\1/
8794
            p
8795
        }
8796
    }'
8797
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8798
# Check for a 64-bit object if we didn't find anything.
8799
if test -z "$aix_libpath"; then
8800
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8801
fi
8802
else
8803
  echo "$as_me: failed program was:" >&5
8804
sed 's/^/| /' conftest.$ac_ext >&5
8805
 
8806
fi
8807
rm -f conftest.err conftest.$ac_objext \
8808
      conftest$ac_exeext conftest.$ac_ext
8809
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8810
 
8811
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8812
        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"
8813
      else
8814
        if test "$host_cpu" = ia64; then
8815
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8816
          allow_undefined_flag="-z nodefs"
8817
          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"
8818
        else
8819
         # Determine the default libpath from the value encoded in an
8820
         # empty executable.
8821
         cat >conftest.$ac_ext <<_ACEOF
8822
/* confdefs.h.  */
8823
_ACEOF
8824
cat confdefs.h >>conftest.$ac_ext
8825
cat >>conftest.$ac_ext <<_ACEOF
8826
/* end confdefs.h.  */
8827
 
8828
int
8829
main ()
8830
{
8831
 
8832
  ;
8833
  return 0;
8834
}
8835
_ACEOF
8836
rm -f conftest.$ac_objext conftest$ac_exeext
8837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838
  (eval $ac_link) 2>conftest.er1
8839
  ac_status=$?
8840
  grep -v '^ *+' conftest.er1 >conftest.err
8841
  rm -f conftest.er1
8842
  cat conftest.err >&5
8843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844
  (exit $ac_status); } &&
8845
         { ac_try='test -z "$ac_c_werror_flag"
8846
                         || test ! -s conftest.err'
8847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848
  (eval $ac_try) 2>&5
8849
  ac_status=$?
8850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851
  (exit $ac_status); }; } &&
8852
         { ac_try='test -s conftest$ac_exeext'
8853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854
  (eval $ac_try) 2>&5
8855
  ac_status=$?
8856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857
  (exit $ac_status); }; }; then
8858
 
8859
lt_aix_libpath_sed='
8860
    /Import File Strings/,/^$/ {
8861
        /^0/ {
8862
            s/^0  *\(.*\)$/\1/
8863
            p
8864
        }
8865
    }'
8866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8867
# Check for a 64-bit object if we didn't find anything.
8868
if test -z "$aix_libpath"; then
8869
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8870
fi
8871
else
8872
  echo "$as_me: failed program was:" >&5
8873
sed 's/^/| /' conftest.$ac_ext >&5
8874
 
8875
fi
8876
rm -f conftest.err conftest.$ac_objext \
8877
      conftest$ac_exeext conftest.$ac_ext
8878
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8879
 
8880
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8881
          # Warning - without using the other run time loading flags,
8882
          # -berok will link without error, but may produce a broken library.
8883
          no_undefined_flag=' ${wl}-bernotok'
8884
          allow_undefined_flag=' ${wl}-berok'
8885
          # Exported symbols can be pulled into shared objects from archives
8886
          whole_archive_flag_spec='$convenience'
8887
          archive_cmds_need_lc=yes
8888
          # This is similar to how AIX traditionally builds its shared libraries.
8889
          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'
8890
        fi
8891
      fi
8892
      ;;
8893
 
8894
    amigaos*)
8895
      case $host_cpu in
8896
      powerpc)
8897
            # see comment about AmigaOS4 .so support
8898
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899
            archive_expsym_cmds=''
8900
        ;;
8901
      m68k)
8902
            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)'
8903
            hardcode_libdir_flag_spec='-L$libdir'
8904
            hardcode_minus_L=yes
8905
        ;;
8906
      esac
8907
      ;;
8908
 
8909
    bsdi[45]*)
8910
      export_dynamic_flag_spec=-rdynamic
8911
      ;;
8912
 
8913
    cygwin* | mingw* | pw32* | cegcc*)
8914
      # When not using gcc, we currently assume that we are using
8915
      # Microsoft Visual C++.
8916
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8917
      # no search path for DLLs.
8918
      hardcode_libdir_flag_spec=' '
8919
      allow_undefined_flag=unsupported
8920
      # Tell ltmain to make .lib files, not .a files.
8921
      libext=lib
8922
      # Tell ltmain to make .dll files, not .so files.
8923
      shrext_cmds=".dll"
8924
      # FIXME: Setting linknames here is a bad hack.
8925
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8926
      # The linker will automatically build a .lib file if we build a DLL.
8927
      old_archive_from_new_cmds='true'
8928
      # FIXME: Should let the user specify the lib program.
8929
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8930
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8931
      enable_shared_with_static_runtimes=yes
8932
      ;;
8933
 
8934
    darwin* | rhapsody*)
8935
 
8936
 
8937
  archive_cmds_need_lc=no
8938
  hardcode_direct=no
8939
  hardcode_automatic=yes
8940
  hardcode_shlibpath_var=unsupported
8941
  whole_archive_flag_spec=''
8942
  link_all_deplibs=yes
8943
  allow_undefined_flag="$_lt_dar_allow_undefined"
8944
  case $cc_basename in
8945
     ifort*) _lt_dar_can_shared=yes ;;
8946
     *) _lt_dar_can_shared=$GCC ;;
8947
  esac
8948
  if test "$_lt_dar_can_shared" = "yes"; then
8949
    output_verbose_link_cmd=echo
8950
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8951
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8952
    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}"
8953
    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}"
8954
 
8955
  else
8956
  ld_shlibs=no
8957
  fi
8958
 
8959
      ;;
8960
 
8961
    dgux*)
8962
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963
      hardcode_libdir_flag_spec='-L$libdir'
8964
      hardcode_shlibpath_var=no
8965
      ;;
8966
 
8967
    freebsd1*)
8968
      ld_shlibs=no
8969
      ;;
8970
 
8971
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8972
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8973
    # does not break anything, and helps significantly (at the cost of a little
8974
    # extra space).
8975
    freebsd2.2*)
8976
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8977
      hardcode_libdir_flag_spec='-R$libdir'
8978
      hardcode_direct=yes
8979
      hardcode_shlibpath_var=no
8980
      ;;
8981
 
8982
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8983
    freebsd2*)
8984
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8985
      hardcode_direct=yes
8986
      hardcode_minus_L=yes
8987
      hardcode_shlibpath_var=no
8988
      ;;
8989
 
8990
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8991
    freebsd* | dragonfly*)
8992
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8993
      hardcode_libdir_flag_spec='-R$libdir'
8994
      hardcode_direct=yes
8995
      hardcode_shlibpath_var=no
8996
      ;;
8997
 
8998
    hpux9*)
8999
      if test "$GCC" = yes; then
9000
        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'
9001
      else
9002
        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'
9003
      fi
9004
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9005
      hardcode_libdir_separator=:
9006
      hardcode_direct=yes
9007
 
9008
      # hardcode_minus_L: Not really in the search PATH,
9009
      # but as the default location of the library.
9010
      hardcode_minus_L=yes
9011
      export_dynamic_flag_spec='${wl}-E'
9012
      ;;
9013
 
9014
    hpux10*)
9015
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9016
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9017
      else
9018
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9019
      fi
9020
      if test "$with_gnu_ld" = no; then
9021
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9022
        hardcode_libdir_flag_spec_ld='+b $libdir'
9023
        hardcode_libdir_separator=:
9024
        hardcode_direct=yes
9025
        hardcode_direct_absolute=yes
9026
        export_dynamic_flag_spec='${wl}-E'
9027
        # hardcode_minus_L: Not really in the search PATH,
9028
        # but as the default location of the library.
9029
        hardcode_minus_L=yes
9030
      fi
9031
      ;;
9032
 
9033
    hpux11*)
9034
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9035
        case $host_cpu in
9036
        hppa*64*)
9037
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038
          ;;
9039
        ia64*)
9040
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9041
          ;;
9042
        *)
9043
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9044
          ;;
9045
        esac
9046
      else
9047
        case $host_cpu in
9048
        hppa*64*)
9049
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050
          ;;
9051
        ia64*)
9052
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9053
          ;;
9054
        *)
9055
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9056
          ;;
9057
        esac
9058
      fi
9059
      if test "$with_gnu_ld" = no; then
9060
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061
        hardcode_libdir_separator=:
9062
 
9063
        case $host_cpu in
9064
        hppa*64*|ia64*)
9065
          hardcode_direct=no
9066
          hardcode_shlibpath_var=no
9067
          ;;
9068
        *)
9069
          hardcode_direct=yes
9070
          hardcode_direct_absolute=yes
9071
          export_dynamic_flag_spec='${wl}-E'
9072
 
9073
          # hardcode_minus_L: Not really in the search PATH,
9074
          # but as the default location of the library.
9075
          hardcode_minus_L=yes
9076
          ;;
9077
        esac
9078
      fi
9079
      ;;
9080
 
9081
    irix5* | irix6* | nonstopux*)
9082
      if test "$GCC" = yes; then
9083
        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'
9084
        # Try to use the -exported_symbol ld option, if it does not
9085
        # work, assume that -exports_file does not work either and
9086
        # implicitly export all symbols.
9087
        save_LDFLAGS="$LDFLAGS"
9088
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9089
        cat >conftest.$ac_ext <<_ACEOF
9090
int foo(void) {}
9091
_ACEOF
9092
rm -f conftest.$ac_objext conftest$ac_exeext
9093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094
  (eval $ac_link) 2>conftest.er1
9095
  ac_status=$?
9096
  grep -v '^ *+' conftest.er1 >conftest.err
9097
  rm -f conftest.er1
9098
  cat conftest.err >&5
9099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100
  (exit $ac_status); } &&
9101
         { ac_try='test -z "$ac_c_werror_flag"
9102
                         || test ! -s conftest.err'
9103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104
  (eval $ac_try) 2>&5
9105
  ac_status=$?
9106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107
  (exit $ac_status); }; } &&
9108
         { ac_try='test -s conftest$ac_exeext'
9109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110
  (eval $ac_try) 2>&5
9111
  ac_status=$?
9112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113
  (exit $ac_status); }; }; then
9114
  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'
9115
 
9116
else
9117
  echo "$as_me: failed program was:" >&5
9118
sed 's/^/| /' conftest.$ac_ext >&5
9119
 
9120
fi
9121
rm -f conftest.err conftest.$ac_objext \
9122
      conftest$ac_exeext conftest.$ac_ext
9123
        LDFLAGS="$save_LDFLAGS"
9124
      else
9125
        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'
9126
        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'
9127
      fi
9128
      archive_cmds_need_lc='no'
9129
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130
      hardcode_libdir_separator=:
9131
      inherit_rpath=yes
9132
      link_all_deplibs=yes
9133
      ;;
9134
 
9135
    netbsd*)
9136
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9137
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9138
      else
9139
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9140
      fi
9141
      hardcode_libdir_flag_spec='-R$libdir'
9142
      hardcode_direct=yes
9143
      hardcode_shlibpath_var=no
9144
      ;;
9145
 
9146
    newsos6)
9147
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148
      hardcode_direct=yes
9149
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150
      hardcode_libdir_separator=:
9151
      hardcode_shlibpath_var=no
9152
      ;;
9153
 
9154
    *nto* | *qnx*)
9155
      ;;
9156
 
9157
    openbsd*)
9158
      if test -f /usr/libexec/ld.so; then
9159
        hardcode_direct=yes
9160
        hardcode_shlibpath_var=no
9161
        hardcode_direct_absolute=yes
9162
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9163
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9164
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9165
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9166
          export_dynamic_flag_spec='${wl}-E'
9167
        else
9168
          case $host_os in
9169
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9170
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9171
             hardcode_libdir_flag_spec='-R$libdir'
9172
             ;;
9173
           *)
9174
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9175
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9176
             ;;
9177
          esac
9178
        fi
9179
      else
9180
        ld_shlibs=no
9181
      fi
9182
      ;;
9183
 
9184
    os2*)
9185
      hardcode_libdir_flag_spec='-L$libdir'
9186
      hardcode_minus_L=yes
9187
      allow_undefined_flag=unsupported
9188
      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'
9189
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9190
      ;;
9191
 
9192
    osf3*)
9193
      if test "$GCC" = yes; then
9194
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9195
        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'
9196
      else
9197
        allow_undefined_flag=' -expect_unresolved \*'
9198
        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'
9199
      fi
9200
      archive_cmds_need_lc='no'
9201
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202
      hardcode_libdir_separator=:
9203
      ;;
9204
 
9205
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9206
      if test "$GCC" = yes; then
9207
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9208
        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'
9209
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210
      else
9211
        allow_undefined_flag=' -expect_unresolved \*'
9212
        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'
9213
        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~
9214
        $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'
9215
 
9216
        # Both c and cxx compiler support -rpath directly
9217
        hardcode_libdir_flag_spec='-rpath $libdir'
9218
      fi
9219
      archive_cmds_need_lc='no'
9220
      hardcode_libdir_separator=:
9221
      ;;
9222
 
9223
    solaris*)
9224
      no_undefined_flag=' -z defs'
9225
      if test "$GCC" = yes; then
9226
        wlarc='${wl}'
9227
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9228
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9229
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9230
      else
9231
        case `$CC -V 2>&1` in
9232
        *"Compilers 5.0"*)
9233
          wlarc=''
9234
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9236
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9237
          ;;
9238
        *)
9239
          wlarc='${wl}'
9240
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9241
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9242
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9243
          ;;
9244
        esac
9245
      fi
9246
      hardcode_libdir_flag_spec='-R$libdir'
9247
      hardcode_shlibpath_var=no
9248
      case $host_os in
9249
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9250
      *)
9251
        # The compiler driver will combine and reorder linker options,
9252
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9253
        # but is careful enough not to reorder.
9254
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9255
        if test "$GCC" = yes; then
9256
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9257
        else
9258
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9259
        fi
9260
        ;;
9261
      esac
9262
      link_all_deplibs=yes
9263
      ;;
9264
 
9265
    sunos4*)
9266
      if test "x$host_vendor" = xsequent; then
9267
        # Use $CC to link under sequent, because it throws in some extra .o
9268
        # files that make .init and .fini sections work.
9269
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9270
      else
9271
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9272
      fi
9273
      hardcode_libdir_flag_spec='-L$libdir'
9274
      hardcode_direct=yes
9275
      hardcode_minus_L=yes
9276
      hardcode_shlibpath_var=no
9277
      ;;
9278
 
9279
    sysv4)
9280
      case $host_vendor in
9281
        sni)
9282
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283
          hardcode_direct=yes # is this really true???
9284
        ;;
9285
        siemens)
9286
          ## LD is ld it makes a PLAMLIB
9287
          ## CC just makes a GrossModule.
9288
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9289
          reload_cmds='$CC -r -o $output$reload_objs'
9290
          hardcode_direct=no
9291
        ;;
9292
        motorola)
9293
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9295
        ;;
9296
      esac
9297
      runpath_var='LD_RUN_PATH'
9298
      hardcode_shlibpath_var=no
9299
      ;;
9300
 
9301
    sysv4.3*)
9302
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303
      hardcode_shlibpath_var=no
9304
      export_dynamic_flag_spec='-Bexport'
9305
      ;;
9306
 
9307
    sysv4*MP*)
9308
      if test -d /usr/nec; then
9309
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310
        hardcode_shlibpath_var=no
9311
        runpath_var=LD_RUN_PATH
9312
        hardcode_runpath_var=yes
9313
        ld_shlibs=yes
9314
      fi
9315
      ;;
9316
 
9317
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9318
      no_undefined_flag='${wl}-z,text'
9319
      archive_cmds_need_lc=no
9320
      hardcode_shlibpath_var=no
9321
      runpath_var='LD_RUN_PATH'
9322
 
9323
      if test "$GCC" = yes; then
9324
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326
      else
9327
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329
      fi
9330
      ;;
9331
 
9332
    sysv5* | sco3.2v5* | sco5v6*)
9333
      # Note: We can NOT use -z defs as we might desire, because we do not
9334
      # link with -lc, and that would cause any symbols used from libc to
9335
      # always be unresolved, which means just about no library would
9336
      # ever link correctly.  If we're not using GNU ld we use -z text
9337
      # though, which does catch some bad symbols but isn't as heavy-handed
9338
      # as -z defs.
9339
      no_undefined_flag='${wl}-z,text'
9340
      allow_undefined_flag='${wl}-z,nodefs'
9341
      archive_cmds_need_lc=no
9342
      hardcode_shlibpath_var=no
9343
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9344
      hardcode_libdir_separator=':'
9345
      link_all_deplibs=yes
9346
      export_dynamic_flag_spec='${wl}-Bexport'
9347
      runpath_var='LD_RUN_PATH'
9348
 
9349
      if test "$GCC" = yes; then
9350
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352
      else
9353
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355
      fi
9356
      ;;
9357
 
9358
    uts4*)
9359
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360
      hardcode_libdir_flag_spec='-L$libdir'
9361
      hardcode_shlibpath_var=no
9362
      ;;
9363
 
9364
    *)
9365
      ld_shlibs=no
9366
      ;;
9367
    esac
9368
 
9369
    if test x$host_vendor = xsni; then
9370
      case $host in
9371
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9372
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9373
        ;;
9374
      esac
9375
    fi
9376
  fi
9377
 
9378
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9379
echo "${ECHO_T}$ld_shlibs" >&6
9380
test "$ld_shlibs" = no && can_build_shared=no
9381
 
9382
with_gnu_ld=$with_gnu_ld
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
 
9398
#
9399
# Do we need to explicitly link libc?
9400
#
9401
case "x$archive_cmds_need_lc" in
9402
x|xyes)
9403
  # Assume -lc should be added
9404
  archive_cmds_need_lc=yes
9405
 
9406
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9407
    case $archive_cmds in
9408
    *'~'*)
9409
      # FIXME: we may have to deal with multi-command sequences.
9410
      ;;
9411
    '$CC '*)
9412
      # Test whether the compiler implicitly links with -lc since on some
9413
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9414
      # to ld, don't add -lc before -lgcc.
9415
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9416
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9417
      $RM conftest*
9418
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9419
 
9420
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421
  (eval $ac_compile) 2>&5
9422
  ac_status=$?
9423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424
  (exit $ac_status); } 2>conftest.err; then
9425
        soname=conftest
9426
        lib=conftest
9427
        libobjs=conftest.$ac_objext
9428
        deplibs=
9429
        wl=$lt_prog_compiler_wl
9430
        pic_flag=$lt_prog_compiler_pic
9431
        compiler_flags=-v
9432
        linker_flags=-v
9433
        verstring=
9434
        output_objdir=.
9435
        libname=conftest
9436
        lt_save_allow_undefined_flag=$allow_undefined_flag
9437
        allow_undefined_flag=
9438
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9439
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9440
  ac_status=$?
9441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442
  (exit $ac_status); }
9443
        then
9444
          archive_cmds_need_lc=no
9445
        else
9446
          archive_cmds_need_lc=yes
9447
        fi
9448
        allow_undefined_flag=$lt_save_allow_undefined_flag
9449
      else
9450
        cat conftest.err 1>&5
9451
      fi
9452
      $RM conftest*
9453
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9454
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9455
      ;;
9456
    esac
9457
  fi
9458
  ;;
9459
esac
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
 
9617
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9618
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9619
 
9620
if test "$GCC" = yes; then
9621
  case $host_os in
9622
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9623
    *) lt_awk_arg="/^libraries:/" ;;
9624
  esac
9625
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9626
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9627
    # if the path contains ";" then we assume it to be the separator
9628
    # otherwise default to the standard path separator (i.e. ":") - it is
9629
    # assumed that no part of a normal pathname contains ";" but that should
9630
    # okay in the real world where ";" in dirpaths is itself problematic.
9631
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9632
  else
9633
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9634
  fi
9635
  # Ok, now we have the path, separated by spaces, we can step through it
9636
  # and add multilib dir if necessary.
9637
  lt_tmp_lt_search_path_spec=
9638
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9639
  for lt_sys_path in $lt_search_path_spec; do
9640
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9641
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9642
    else
9643
      test -d "$lt_sys_path" && \
9644
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9645
    fi
9646
  done
9647
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9648
BEGIN {RS=" "; FS="/|\n";} {
9649
  lt_foo="";
9650
  lt_count=0;
9651
  for (lt_i = NF; lt_i > 0; lt_i--) {
9652
    if ($lt_i != "" && $lt_i != ".") {
9653
      if ($lt_i == "..") {
9654
        lt_count++;
9655
      } else {
9656
        if (lt_count == 0) {
9657
          lt_foo="/" $lt_i lt_foo;
9658
        } else {
9659
          lt_count--;
9660
        }
9661
      }
9662
    }
9663
  }
9664
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9665
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9666
}'`
9667
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9668
else
9669
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9670
fi
9671
library_names_spec=
9672
libname_spec='lib$name'
9673
soname_spec=
9674
shrext_cmds=".so"
9675
postinstall_cmds=
9676
postuninstall_cmds=
9677
finish_cmds=
9678
finish_eval=
9679
shlibpath_var=
9680
shlibpath_overrides_runpath=unknown
9681
version_type=none
9682
dynamic_linker="$host_os ld.so"
9683
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9684
need_lib_prefix=unknown
9685
hardcode_into_libs=no
9686
 
9687
# when you set need_version to no, make sure it does not cause -set_version
9688
# flags to be left without arguments
9689
need_version=unknown
9690
 
9691
case $host_os in
9692
aix3*)
9693
  version_type=linux
9694
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9695
  shlibpath_var=LIBPATH
9696
 
9697
  # AIX 3 has no versioning support, so we append a major version to the name.
9698
  soname_spec='${libname}${release}${shared_ext}$major'
9699
  ;;
9700
 
9701
aix[4-9]*)
9702
  version_type=linux
9703
  need_lib_prefix=no
9704
  need_version=no
9705
  hardcode_into_libs=yes
9706
  if test "$host_cpu" = ia64; then
9707
    # AIX 5 supports IA64
9708
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9709
    shlibpath_var=LD_LIBRARY_PATH
9710
  else
9711
    # With GCC up to 2.95.x, collect2 would create an import file
9712
    # for dependence libraries.  The import file would start with
9713
    # the line `#! .'.  This would cause the generated library to
9714
    # depend on `.', always an invalid library.  This was fixed in
9715
    # development snapshots of GCC prior to 3.0.
9716
    case $host_os in
9717
      aix4 | aix4.[01] | aix4.[01].*)
9718
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9719
           echo ' yes '
9720
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9721
        :
9722
      else
9723
        can_build_shared=no
9724
      fi
9725
      ;;
9726
    esac
9727
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9728
    # soname into executable. Probably we can add versioning support to
9729
    # collect2, so additional links can be useful in future.
9730
    if test "$aix_use_runtimelinking" = yes; then
9731
      # If using run time linking (on AIX 4.2 or later) use lib.so
9732
      # instead of lib.a to let people know that these are not
9733
      # typical AIX shared libraries.
9734
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735
    else
9736
      # We preserve .a as extension for shared libraries through AIX4.2
9737
      # and later when we are not doing run time linking.
9738
      library_names_spec='${libname}${release}.a $libname.a'
9739
      soname_spec='${libname}${release}${shared_ext}$major'
9740
    fi
9741
    shlibpath_var=LIBPATH
9742
  fi
9743
  ;;
9744
 
9745
amigaos*)
9746
  case $host_cpu in
9747
  powerpc)
9748
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9749
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9750
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751
    ;;
9752
  m68k)
9753
    library_names_spec='$libname.ixlibrary $libname.a'
9754
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9755
    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'
9756
    ;;
9757
  esac
9758
  ;;
9759
 
9760
beos*)
9761
  library_names_spec='${libname}${shared_ext}'
9762
  dynamic_linker="$host_os ld.so"
9763
  shlibpath_var=LIBRARY_PATH
9764
  ;;
9765
 
9766
bsdi[45]*)
9767
  version_type=linux
9768
  need_version=no
9769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770
  soname_spec='${libname}${release}${shared_ext}$major'
9771
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9772
  shlibpath_var=LD_LIBRARY_PATH
9773
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9774
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9775
  # the default ld.so.conf also contains /usr/contrib/lib and
9776
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9777
  # libtool to hard-code these into programs
9778
  ;;
9779
 
9780
cygwin* | mingw* | pw32* | cegcc*)
9781
  version_type=windows
9782
  shrext_cmds=".dll"
9783
  need_version=no
9784
  need_lib_prefix=no
9785
 
9786
  case $GCC,$host_os in
9787
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9788
    library_names_spec='$libname.dll.a'
9789
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9790
    postinstall_cmds='base_file=`basename \${file}`~
9791
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9792
      dldir=$destdir/`dirname \$dlpath`~
9793
      test -d \$dldir || mkdir -p \$dldir~
9794
      $install_prog $dir/$dlname \$dldir/$dlname~
9795
      chmod a+x \$dldir/$dlname~
9796
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9797
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9798
      fi'
9799
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9800
      dlpath=$dir/\$dldll~
9801
       $RM \$dlpath'
9802
    shlibpath_overrides_runpath=yes
9803
 
9804
    case $host_os in
9805
    cygwin*)
9806
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9807
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9808
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9809
      ;;
9810
    mingw* | cegcc*)
9811
      # MinGW DLLs use traditional 'lib' prefix
9812
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9813
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9814
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9815
        # It is most probably a Windows format PATH printed by
9816
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9817
        # path with ; separators, and with drive letters. We can handle the
9818
        # drive letters (cygwin fileutils understands them), so leave them,
9819
        # especially as we might pass files found there to a mingw objdump,
9820
        # which wouldn't understand a cygwinified path. Ahh.
9821
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9822
      else
9823
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9824
      fi
9825
      ;;
9826
    pw32*)
9827
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9828
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829
      ;;
9830
    esac
9831
    ;;
9832
 
9833
  *)
9834
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9835
    ;;
9836
  esac
9837
  dynamic_linker='Win32 ld.exe'
9838
  # FIXME: first we should search . and the directory the executable is in
9839
  shlibpath_var=PATH
9840
  ;;
9841
 
9842
darwin* | rhapsody*)
9843
  dynamic_linker="$host_os dyld"
9844
  version_type=darwin
9845
  need_lib_prefix=no
9846
  need_version=no
9847
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9848
  soname_spec='${libname}${release}${major}$shared_ext'
9849
  shlibpath_overrides_runpath=yes
9850
  shlibpath_var=DYLD_LIBRARY_PATH
9851
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9852
 
9853
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9854
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9855
  ;;
9856
 
9857
dgux*)
9858
  version_type=linux
9859
  need_lib_prefix=no
9860
  need_version=no
9861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9862
  soname_spec='${libname}${release}${shared_ext}$major'
9863
  shlibpath_var=LD_LIBRARY_PATH
9864
  ;;
9865
 
9866
freebsd1*)
9867
  dynamic_linker=no
9868
  ;;
9869
 
9870
freebsd* | dragonfly*)
9871
  # DragonFly does not have aout.  When/if they implement a new
9872
  # versioning mechanism, adjust this.
9873
  if test -x /usr/bin/objformat; then
9874
    objformat=`/usr/bin/objformat`
9875
  else
9876
    case $host_os in
9877
    freebsd[123]*) objformat=aout ;;
9878
    *) objformat=elf ;;
9879
    esac
9880
  fi
9881
  version_type=freebsd-$objformat
9882
  case $version_type in
9883
    freebsd-elf*)
9884
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9885
      need_version=no
9886
      need_lib_prefix=no
9887
      ;;
9888
    freebsd-*)
9889
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9890
      need_version=yes
9891
      ;;
9892
  esac
9893
  shlibpath_var=LD_LIBRARY_PATH
9894
  case $host_os in
9895
  freebsd2*)
9896
    shlibpath_overrides_runpath=yes
9897
    ;;
9898
  freebsd3.[01]* | freebsdelf3.[01]*)
9899
    shlibpath_overrides_runpath=yes
9900
    hardcode_into_libs=yes
9901
    ;;
9902
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9903
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9904
    shlibpath_overrides_runpath=no
9905
    hardcode_into_libs=yes
9906
    ;;
9907
  *) # from 4.6 on, and DragonFly
9908
    shlibpath_overrides_runpath=yes
9909
    hardcode_into_libs=yes
9910
    ;;
9911
  esac
9912
  ;;
9913
 
9914
gnu*)
9915
  version_type=linux
9916
  need_lib_prefix=no
9917
  need_version=no
9918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9919
  soname_spec='${libname}${release}${shared_ext}$major'
9920
  shlibpath_var=LD_LIBRARY_PATH
9921
  hardcode_into_libs=yes
9922
  ;;
9923
 
9924
hpux9* | hpux10* | hpux11*)
9925
  # Give a soname corresponding to the major version so that dld.sl refuses to
9926
  # link against other versions.
9927
  version_type=sunos
9928
  need_lib_prefix=no
9929
  need_version=no
9930
  case $host_cpu in
9931
  ia64*)
9932
    shrext_cmds='.so'
9933
    hardcode_into_libs=yes
9934
    dynamic_linker="$host_os dld.so"
9935
    shlibpath_var=LD_LIBRARY_PATH
9936
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9937
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938
    soname_spec='${libname}${release}${shared_ext}$major'
9939
    if test "X$HPUX_IA64_MODE" = X32; then
9940
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9941
    else
9942
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9943
    fi
9944
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9945
    ;;
9946
  hppa*64*)
9947
    shrext_cmds='.sl'
9948
    hardcode_into_libs=yes
9949
    dynamic_linker="$host_os dld.sl"
9950
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9951
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9952
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953
    soname_spec='${libname}${release}${shared_ext}$major'
9954
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9955
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9956
    ;;
9957
  *)
9958
    shrext_cmds='.sl'
9959
    dynamic_linker="$host_os dld.sl"
9960
    shlibpath_var=SHLIB_PATH
9961
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9962
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963
    soname_spec='${libname}${release}${shared_ext}$major'
9964
    ;;
9965
  esac
9966
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9967
  postinstall_cmds='chmod 555 $lib'
9968
  ;;
9969
 
9970
interix[3-9]*)
9971
  version_type=linux
9972
  need_lib_prefix=no
9973
  need_version=no
9974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9975
  soname_spec='${libname}${release}${shared_ext}$major'
9976
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9977
  shlibpath_var=LD_LIBRARY_PATH
9978
  shlibpath_overrides_runpath=no
9979
  hardcode_into_libs=yes
9980
  ;;
9981
 
9982
irix5* | irix6* | nonstopux*)
9983
  case $host_os in
9984
    nonstopux*) version_type=nonstopux ;;
9985
    *)
9986
        if test "$lt_cv_prog_gnu_ld" = yes; then
9987
                version_type=linux
9988
        else
9989
                version_type=irix
9990
        fi ;;
9991
  esac
9992
  need_lib_prefix=no
9993
  need_version=no
9994
  soname_spec='${libname}${release}${shared_ext}$major'
9995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9996
  case $host_os in
9997
  irix5* | nonstopux*)
9998
    libsuff= shlibsuff=
9999
    ;;
10000
  *)
10001
    case $LD in # libtool.m4 will add one of these switches to LD
10002
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10003
      libsuff= shlibsuff= libmagic=32-bit;;
10004
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10005
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10006
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10007
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10008
    *) libsuff= shlibsuff= libmagic=never-match;;
10009
    esac
10010
    ;;
10011
  esac
10012
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10013
  shlibpath_overrides_runpath=no
10014
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10015
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10016
  hardcode_into_libs=yes
10017
  ;;
10018
 
10019
# No shared lib support for Linux oldld, aout, or coff.
10020
linux*oldld* | linux*aout* | linux*coff*)
10021
  dynamic_linker=no
10022
  ;;
10023
 
10024
# This must be Linux ELF.
10025
linux* | k*bsd*-gnu)
10026
  version_type=linux
10027
  need_lib_prefix=no
10028
  need_version=no
10029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030
  soname_spec='${libname}${release}${shared_ext}$major'
10031
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10032
  shlibpath_var=LD_LIBRARY_PATH
10033
  shlibpath_overrides_runpath=no
10034
  # Some binutils ld are patched to set DT_RUNPATH
10035
  save_LDFLAGS=$LDFLAGS
10036
  save_libdir=$libdir
10037
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10038
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10039
  cat >conftest.$ac_ext <<_ACEOF
10040
/* confdefs.h.  */
10041
_ACEOF
10042
cat confdefs.h >>conftest.$ac_ext
10043
cat >>conftest.$ac_ext <<_ACEOF
10044
/* end confdefs.h.  */
10045
 
10046
int
10047
main ()
10048
{
10049
 
10050
  ;
10051
  return 0;
10052
}
10053
_ACEOF
10054
rm -f conftest.$ac_objext conftest$ac_exeext
10055
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056
  (eval $ac_link) 2>conftest.er1
10057
  ac_status=$?
10058
  grep -v '^ *+' conftest.er1 >conftest.err
10059
  rm -f conftest.er1
10060
  cat conftest.err >&5
10061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062
  (exit $ac_status); } &&
10063
         { ac_try='test -z "$ac_c_werror_flag"
10064
                         || test ! -s conftest.err'
10065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066
  (eval $ac_try) 2>&5
10067
  ac_status=$?
10068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069
  (exit $ac_status); }; } &&
10070
         { ac_try='test -s conftest$ac_exeext'
10071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072
  (eval $ac_try) 2>&5
10073
  ac_status=$?
10074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075
  (exit $ac_status); }; }; then
10076
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10077
  shlibpath_overrides_runpath=yes
10078
fi
10079
 
10080
else
10081
  echo "$as_me: failed program was:" >&5
10082
sed 's/^/| /' conftest.$ac_ext >&5
10083
 
10084
fi
10085
rm -f conftest.err conftest.$ac_objext \
10086
      conftest$ac_exeext conftest.$ac_ext
10087
  LDFLAGS=$save_LDFLAGS
10088
  libdir=$save_libdir
10089
 
10090
  # This implies no fast_install, which is unacceptable.
10091
  # Some rework will be needed to allow for fast_install
10092
  # before this can be enabled.
10093
  hardcode_into_libs=yes
10094
 
10095
  # Append ld.so.conf contents to the search path
10096
  if test -f /etc/ld.so.conf; then
10097
    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' ' '`
10098
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10099
  fi
10100
 
10101
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10102
  # powerpc, because MkLinux only supported shared libraries with the
10103
  # GNU dynamic linker.  Since this was broken with cross compilers,
10104
  # most powerpc-linux boxes support dynamic linking these days and
10105
  # people can always --disable-shared, the test was removed, and we
10106
  # assume the GNU/Linux dynamic linker is in use.
10107
  dynamic_linker='GNU/Linux ld.so'
10108
  ;;
10109
 
10110
netbsd*)
10111
  version_type=sunos
10112
  need_lib_prefix=no
10113
  need_version=no
10114
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10115
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10117
    dynamic_linker='NetBSD (a.out) ld.so'
10118
  else
10119
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120
    soname_spec='${libname}${release}${shared_ext}$major'
10121
    dynamic_linker='NetBSD ld.elf_so'
10122
  fi
10123
  shlibpath_var=LD_LIBRARY_PATH
10124
  shlibpath_overrides_runpath=yes
10125
  hardcode_into_libs=yes
10126
  ;;
10127
 
10128
newsos6)
10129
  version_type=linux
10130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131
  shlibpath_var=LD_LIBRARY_PATH
10132
  shlibpath_overrides_runpath=yes
10133
  ;;
10134
 
10135
*nto* | *qnx*)
10136
  version_type=qnx
10137
  need_lib_prefix=no
10138
  need_version=no
10139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140
  soname_spec='${libname}${release}${shared_ext}$major'
10141
  shlibpath_var=LD_LIBRARY_PATH
10142
  shlibpath_overrides_runpath=no
10143
  hardcode_into_libs=yes
10144
  dynamic_linker='ldqnx.so'
10145
  ;;
10146
 
10147
openbsd*)
10148
  version_type=sunos
10149
  sys_lib_dlsearch_path_spec="/usr/lib"
10150
  need_lib_prefix=no
10151
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10152
  case $host_os in
10153
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10154
    *)                          need_version=no  ;;
10155
  esac
10156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10157
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10158
  shlibpath_var=LD_LIBRARY_PATH
10159
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160
    case $host_os in
10161
      openbsd2.[89] | openbsd2.[89].*)
10162
        shlibpath_overrides_runpath=no
10163
        ;;
10164
      *)
10165
        shlibpath_overrides_runpath=yes
10166
        ;;
10167
      esac
10168
  else
10169
    shlibpath_overrides_runpath=yes
10170
  fi
10171
  ;;
10172
 
10173
os2*)
10174
  libname_spec='$name'
10175
  shrext_cmds=".dll"
10176
  need_lib_prefix=no
10177
  library_names_spec='$libname${shared_ext} $libname.a'
10178
  dynamic_linker='OS/2 ld.exe'
10179
  shlibpath_var=LIBPATH
10180
  ;;
10181
 
10182
osf3* | osf4* | osf5*)
10183
  version_type=osf
10184
  need_lib_prefix=no
10185
  need_version=no
10186
  soname_spec='${libname}${release}${shared_ext}$major'
10187
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188
  shlibpath_var=LD_LIBRARY_PATH
10189
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10190
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10191
  ;;
10192
 
10193
rdos*)
10194
  dynamic_linker=no
10195
  ;;
10196
 
10197
solaris*)
10198
  version_type=linux
10199
  need_lib_prefix=no
10200
  need_version=no
10201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202
  soname_spec='${libname}${release}${shared_ext}$major'
10203
  shlibpath_var=LD_LIBRARY_PATH
10204
  shlibpath_overrides_runpath=yes
10205
  hardcode_into_libs=yes
10206
  # ldd complains unless libraries are executable
10207
  postinstall_cmds='chmod +x $lib'
10208
  ;;
10209
 
10210
sunos4*)
10211
  version_type=sunos
10212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10214
  shlibpath_var=LD_LIBRARY_PATH
10215
  shlibpath_overrides_runpath=yes
10216
  if test "$with_gnu_ld" = yes; then
10217
    need_lib_prefix=no
10218
  fi
10219
  need_version=yes
10220
  ;;
10221
 
10222
sysv4 | sysv4.3*)
10223
  version_type=linux
10224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225
  soname_spec='${libname}${release}${shared_ext}$major'
10226
  shlibpath_var=LD_LIBRARY_PATH
10227
  case $host_vendor in
10228
    sni)
10229
      shlibpath_overrides_runpath=no
10230
      need_lib_prefix=no
10231
      runpath_var=LD_RUN_PATH
10232
      ;;
10233
    siemens)
10234
      need_lib_prefix=no
10235
      ;;
10236
    motorola)
10237
      need_lib_prefix=no
10238
      need_version=no
10239
      shlibpath_overrides_runpath=no
10240
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10241
      ;;
10242
  esac
10243
  ;;
10244
 
10245
sysv4*MP*)
10246
  if test -d /usr/nec ;then
10247
    version_type=linux
10248
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10249
    soname_spec='$libname${shared_ext}.$major'
10250
    shlibpath_var=LD_LIBRARY_PATH
10251
  fi
10252
  ;;
10253
 
10254
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10255
  version_type=freebsd-elf
10256
  need_lib_prefix=no
10257
  need_version=no
10258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10259
  soname_spec='${libname}${release}${shared_ext}$major'
10260
  shlibpath_var=LD_LIBRARY_PATH
10261
  shlibpath_overrides_runpath=yes
10262
  hardcode_into_libs=yes
10263
  if test "$with_gnu_ld" = yes; then
10264
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10265
  else
10266
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10267
    case $host_os in
10268
      sco3.2v5*)
10269
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10270
        ;;
10271
    esac
10272
  fi
10273
  sys_lib_dlsearch_path_spec='/usr/lib'
10274
  ;;
10275
 
10276
tpf*)
10277
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10278
  version_type=linux
10279
  need_lib_prefix=no
10280
  need_version=no
10281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282
  shlibpath_var=LD_LIBRARY_PATH
10283
  shlibpath_overrides_runpath=no
10284
  hardcode_into_libs=yes
10285
  ;;
10286
 
10287
uts4*)
10288
  version_type=linux
10289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290
  soname_spec='${libname}${release}${shared_ext}$major'
10291
  shlibpath_var=LD_LIBRARY_PATH
10292
  ;;
10293
 
10294
*)
10295
  dynamic_linker=no
10296
  ;;
10297
esac
10298
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10299
echo "${ECHO_T}$dynamic_linker" >&6
10300
test "$dynamic_linker" = no && can_build_shared=no
10301
 
10302
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10303
if test "$GCC" = yes; then
10304
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10305
fi
10306
 
10307
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10308
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10309
fi
10310
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10311
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10312
fi
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
 
10400
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10401
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10402
hardcode_action=
10403
if test -n "$hardcode_libdir_flag_spec" ||
10404
   test -n "$runpath_var" ||
10405
   test "X$hardcode_automatic" = "Xyes" ; then
10406
 
10407
  # We can hardcode non-existent directories.
10408
  if test "$hardcode_direct" != no &&
10409
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10410
     # have to relink, otherwise we might link with an installed library
10411
     # when we should be linking with a yet-to-be-installed one
10412
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10413
     test "$hardcode_minus_L" != no; then
10414
    # Linking always hardcodes the temporary library directory.
10415
    hardcode_action=relink
10416
  else
10417
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10418
    hardcode_action=immediate
10419
  fi
10420
else
10421
  # We cannot hardcode anything, or else we can only hardcode existing
10422
  # directories.
10423
  hardcode_action=unsupported
10424
fi
10425
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10426
echo "${ECHO_T}$hardcode_action" >&6
10427
 
10428
if test "$hardcode_action" = relink ||
10429
   test "$inherit_rpath" = yes; then
10430
  # Fast installation is not supported
10431
  enable_fast_install=no
10432
elif test "$shlibpath_overrides_runpath" = yes ||
10433
     test "$enable_shared" = no; then
10434
  # Fast installation is not necessary
10435
  enable_fast_install=needless
10436
fi
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
  if test "x$enable_dlopen" != xyes; then
10444
  enable_dlopen=unknown
10445
  enable_dlopen_self=unknown
10446
  enable_dlopen_self_static=unknown
10447
else
10448
  lt_cv_dlopen=no
10449
  lt_cv_dlopen_libs=
10450
 
10451
  case $host_os in
10452
  beos*)
10453
    lt_cv_dlopen="load_add_on"
10454
    lt_cv_dlopen_libs=
10455
    lt_cv_dlopen_self=yes
10456
    ;;
10457
 
10458
  mingw* | pw32* | cegcc*)
10459
    lt_cv_dlopen="LoadLibrary"
10460
    lt_cv_dlopen_libs=
10461
    ;;
10462
 
10463
  cygwin*)
10464
    lt_cv_dlopen="dlopen"
10465
    lt_cv_dlopen_libs=
10466
    ;;
10467
 
10468
  darwin*)
10469
  # if libdl is installed we need to link against it
10470
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10471
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10472
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10473
  echo $ECHO_N "(cached) $ECHO_C" >&6
10474
else
10475
  ac_check_lib_save_LIBS=$LIBS
10476
LIBS="-ldl  $LIBS"
10477
cat >conftest.$ac_ext <<_ACEOF
10478
/* confdefs.h.  */
10479
_ACEOF
10480
cat confdefs.h >>conftest.$ac_ext
10481
cat >>conftest.$ac_ext <<_ACEOF
10482
/* end confdefs.h.  */
10483
 
10484
/* Override any gcc2 internal prototype to avoid an error.  */
10485
#ifdef __cplusplus
10486
extern "C"
10487
#endif
10488
/* We use char because int might match the return type of a gcc2
10489
   builtin and then its argument prototype would still apply.  */
10490
char dlopen ();
10491
int
10492
main ()
10493
{
10494
dlopen ();
10495
  ;
10496
  return 0;
10497
}
10498
_ACEOF
10499
rm -f conftest.$ac_objext conftest$ac_exeext
10500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10501
  (eval $ac_link) 2>conftest.er1
10502
  ac_status=$?
10503
  grep -v '^ *+' conftest.er1 >conftest.err
10504
  rm -f conftest.er1
10505
  cat conftest.err >&5
10506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507
  (exit $ac_status); } &&
10508
         { ac_try='test -z "$ac_c_werror_flag"
10509
                         || test ! -s conftest.err'
10510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511
  (eval $ac_try) 2>&5
10512
  ac_status=$?
10513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514
  (exit $ac_status); }; } &&
10515
         { ac_try='test -s conftest$ac_exeext'
10516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517
  (eval $ac_try) 2>&5
10518
  ac_status=$?
10519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520
  (exit $ac_status); }; }; then
10521
  ac_cv_lib_dl_dlopen=yes
10522
else
10523
  echo "$as_me: failed program was:" >&5
10524
sed 's/^/| /' conftest.$ac_ext >&5
10525
 
10526
ac_cv_lib_dl_dlopen=no
10527
fi
10528
rm -f conftest.err conftest.$ac_objext \
10529
      conftest$ac_exeext conftest.$ac_ext
10530
LIBS=$ac_check_lib_save_LIBS
10531
fi
10532
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10533
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10534
if test $ac_cv_lib_dl_dlopen = yes; then
10535
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10536
else
10537
 
10538
    lt_cv_dlopen="dyld"
10539
    lt_cv_dlopen_libs=
10540
    lt_cv_dlopen_self=yes
10541
 
10542
fi
10543
 
10544
    ;;
10545
 
10546
  *)
10547
    echo "$as_me:$LINENO: checking for shl_load" >&5
10548
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10549
if test "${ac_cv_func_shl_load+set}" = set; then
10550
  echo $ECHO_N "(cached) $ECHO_C" >&6
10551
else
10552
  cat >conftest.$ac_ext <<_ACEOF
10553
/* confdefs.h.  */
10554
_ACEOF
10555
cat confdefs.h >>conftest.$ac_ext
10556
cat >>conftest.$ac_ext <<_ACEOF
10557
/* end confdefs.h.  */
10558
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10559
   For example, HP-UX 11i  declares gettimeofday.  */
10560
#define shl_load innocuous_shl_load
10561
 
10562
/* System header to define __stub macros and hopefully few prototypes,
10563
    which can conflict with char shl_load (); below.
10564
    Prefer  to  if __STDC__ is defined, since
10565
     exists even on freestanding compilers.  */
10566
 
10567
#ifdef __STDC__
10568
# include 
10569
#else
10570
# include 
10571
#endif
10572
 
10573
#undef shl_load
10574
 
10575
/* Override any gcc2 internal prototype to avoid an error.  */
10576
#ifdef __cplusplus
10577
extern "C"
10578
{
10579
#endif
10580
/* We use char because int might match the return type of a gcc2
10581
   builtin and then its argument prototype would still apply.  */
10582
char shl_load ();
10583
/* The GNU C library defines this for functions which it implements
10584
    to always fail with ENOSYS.  Some functions are actually named
10585
    something starting with __ and the normal name is an alias.  */
10586
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10587
choke me
10588
#else
10589
char (*f) () = shl_load;
10590
#endif
10591
#ifdef __cplusplus
10592
}
10593
#endif
10594
 
10595
int
10596
main ()
10597
{
10598
return f != shl_load;
10599
  ;
10600
  return 0;
10601
}
10602
_ACEOF
10603
rm -f conftest.$ac_objext conftest$ac_exeext
10604
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10605
  (eval $ac_link) 2>conftest.er1
10606
  ac_status=$?
10607
  grep -v '^ *+' conftest.er1 >conftest.err
10608
  rm -f conftest.er1
10609
  cat conftest.err >&5
10610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611
  (exit $ac_status); } &&
10612
         { ac_try='test -z "$ac_c_werror_flag"
10613
                         || test ! -s conftest.err'
10614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615
  (eval $ac_try) 2>&5
10616
  ac_status=$?
10617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618
  (exit $ac_status); }; } &&
10619
         { ac_try='test -s conftest$ac_exeext'
10620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621
  (eval $ac_try) 2>&5
10622
  ac_status=$?
10623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624
  (exit $ac_status); }; }; then
10625
  ac_cv_func_shl_load=yes
10626
else
10627
  echo "$as_me: failed program was:" >&5
10628
sed 's/^/| /' conftest.$ac_ext >&5
10629
 
10630
ac_cv_func_shl_load=no
10631
fi
10632
rm -f conftest.err conftest.$ac_objext \
10633
      conftest$ac_exeext conftest.$ac_ext
10634
fi
10635
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10636
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10637
if test $ac_cv_func_shl_load = yes; then
10638
  lt_cv_dlopen="shl_load"
10639
else
10640
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10641
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10642
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10643
  echo $ECHO_N "(cached) $ECHO_C" >&6
10644
else
10645
  ac_check_lib_save_LIBS=$LIBS
10646
LIBS="-ldld  $LIBS"
10647
cat >conftest.$ac_ext <<_ACEOF
10648
/* confdefs.h.  */
10649
_ACEOF
10650
cat confdefs.h >>conftest.$ac_ext
10651
cat >>conftest.$ac_ext <<_ACEOF
10652
/* end confdefs.h.  */
10653
 
10654
/* Override any gcc2 internal prototype to avoid an error.  */
10655
#ifdef __cplusplus
10656
extern "C"
10657
#endif
10658
/* We use char because int might match the return type of a gcc2
10659
   builtin and then its argument prototype would still apply.  */
10660
char shl_load ();
10661
int
10662
main ()
10663
{
10664
shl_load ();
10665
  ;
10666
  return 0;
10667
}
10668
_ACEOF
10669
rm -f conftest.$ac_objext conftest$ac_exeext
10670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671
  (eval $ac_link) 2>conftest.er1
10672
  ac_status=$?
10673
  grep -v '^ *+' conftest.er1 >conftest.err
10674
  rm -f conftest.er1
10675
  cat conftest.err >&5
10676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677
  (exit $ac_status); } &&
10678
         { ac_try='test -z "$ac_c_werror_flag"
10679
                         || test ! -s conftest.err'
10680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681
  (eval $ac_try) 2>&5
10682
  ac_status=$?
10683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684
  (exit $ac_status); }; } &&
10685
         { ac_try='test -s conftest$ac_exeext'
10686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687
  (eval $ac_try) 2>&5
10688
  ac_status=$?
10689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690
  (exit $ac_status); }; }; then
10691
  ac_cv_lib_dld_shl_load=yes
10692
else
10693
  echo "$as_me: failed program was:" >&5
10694
sed 's/^/| /' conftest.$ac_ext >&5
10695
 
10696
ac_cv_lib_dld_shl_load=no
10697
fi
10698
rm -f conftest.err conftest.$ac_objext \
10699
      conftest$ac_exeext conftest.$ac_ext
10700
LIBS=$ac_check_lib_save_LIBS
10701
fi
10702
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10703
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10704
if test $ac_cv_lib_dld_shl_load = yes; then
10705
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10706
else
10707
  echo "$as_me:$LINENO: checking for dlopen" >&5
10708
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10709
if test "${ac_cv_func_dlopen+set}" = set; then
10710
  echo $ECHO_N "(cached) $ECHO_C" >&6
10711
else
10712
  cat >conftest.$ac_ext <<_ACEOF
10713
/* confdefs.h.  */
10714
_ACEOF
10715
cat confdefs.h >>conftest.$ac_ext
10716
cat >>conftest.$ac_ext <<_ACEOF
10717
/* end confdefs.h.  */
10718
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10719
   For example, HP-UX 11i  declares gettimeofday.  */
10720
#define dlopen innocuous_dlopen
10721
 
10722
/* System header to define __stub macros and hopefully few prototypes,
10723
    which can conflict with char dlopen (); below.
10724
    Prefer  to  if __STDC__ is defined, since
10725
     exists even on freestanding compilers.  */
10726
 
10727
#ifdef __STDC__
10728
# include 
10729
#else
10730
# include 
10731
#endif
10732
 
10733
#undef dlopen
10734
 
10735
/* Override any gcc2 internal prototype to avoid an error.  */
10736
#ifdef __cplusplus
10737
extern "C"
10738
{
10739
#endif
10740
/* We use char because int might match the return type of a gcc2
10741
   builtin and then its argument prototype would still apply.  */
10742
char dlopen ();
10743
/* The GNU C library defines this for functions which it implements
10744
    to always fail with ENOSYS.  Some functions are actually named
10745
    something starting with __ and the normal name is an alias.  */
10746
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10747
choke me
10748
#else
10749
char (*f) () = dlopen;
10750
#endif
10751
#ifdef __cplusplus
10752
}
10753
#endif
10754
 
10755
int
10756
main ()
10757
{
10758
return f != dlopen;
10759
  ;
10760
  return 0;
10761
}
10762
_ACEOF
10763
rm -f conftest.$ac_objext conftest$ac_exeext
10764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765
  (eval $ac_link) 2>conftest.er1
10766
  ac_status=$?
10767
  grep -v '^ *+' conftest.er1 >conftest.err
10768
  rm -f conftest.er1
10769
  cat conftest.err >&5
10770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771
  (exit $ac_status); } &&
10772
         { ac_try='test -z "$ac_c_werror_flag"
10773
                         || test ! -s conftest.err'
10774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775
  (eval $ac_try) 2>&5
10776
  ac_status=$?
10777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778
  (exit $ac_status); }; } &&
10779
         { ac_try='test -s conftest$ac_exeext'
10780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781
  (eval $ac_try) 2>&5
10782
  ac_status=$?
10783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784
  (exit $ac_status); }; }; then
10785
  ac_cv_func_dlopen=yes
10786
else
10787
  echo "$as_me: failed program was:" >&5
10788
sed 's/^/| /' conftest.$ac_ext >&5
10789
 
10790
ac_cv_func_dlopen=no
10791
fi
10792
rm -f conftest.err conftest.$ac_objext \
10793
      conftest$ac_exeext conftest.$ac_ext
10794
fi
10795
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10796
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10797
if test $ac_cv_func_dlopen = yes; then
10798
  lt_cv_dlopen="dlopen"
10799
else
10800
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10801
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10802
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10803
  echo $ECHO_N "(cached) $ECHO_C" >&6
10804
else
10805
  ac_check_lib_save_LIBS=$LIBS
10806
LIBS="-ldl  $LIBS"
10807
cat >conftest.$ac_ext <<_ACEOF
10808
/* confdefs.h.  */
10809
_ACEOF
10810
cat confdefs.h >>conftest.$ac_ext
10811
cat >>conftest.$ac_ext <<_ACEOF
10812
/* end confdefs.h.  */
10813
 
10814
/* Override any gcc2 internal prototype to avoid an error.  */
10815
#ifdef __cplusplus
10816
extern "C"
10817
#endif
10818
/* We use char because int might match the return type of a gcc2
10819
   builtin and then its argument prototype would still apply.  */
10820
char dlopen ();
10821
int
10822
main ()
10823
{
10824
dlopen ();
10825
  ;
10826
  return 0;
10827
}
10828
_ACEOF
10829
rm -f conftest.$ac_objext conftest$ac_exeext
10830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831
  (eval $ac_link) 2>conftest.er1
10832
  ac_status=$?
10833
  grep -v '^ *+' conftest.er1 >conftest.err
10834
  rm -f conftest.er1
10835
  cat conftest.err >&5
10836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837
  (exit $ac_status); } &&
10838
         { ac_try='test -z "$ac_c_werror_flag"
10839
                         || test ! -s conftest.err'
10840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841
  (eval $ac_try) 2>&5
10842
  ac_status=$?
10843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844
  (exit $ac_status); }; } &&
10845
         { ac_try='test -s conftest$ac_exeext'
10846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847
  (eval $ac_try) 2>&5
10848
  ac_status=$?
10849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850
  (exit $ac_status); }; }; then
10851
  ac_cv_lib_dl_dlopen=yes
10852
else
10853
  echo "$as_me: failed program was:" >&5
10854
sed 's/^/| /' conftest.$ac_ext >&5
10855
 
10856
ac_cv_lib_dl_dlopen=no
10857
fi
10858
rm -f conftest.err conftest.$ac_objext \
10859
      conftest$ac_exeext conftest.$ac_ext
10860
LIBS=$ac_check_lib_save_LIBS
10861
fi
10862
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10863
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10864
if test $ac_cv_lib_dl_dlopen = yes; then
10865
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10866
else
10867
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10868
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10869
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10870
  echo $ECHO_N "(cached) $ECHO_C" >&6
10871
else
10872
  ac_check_lib_save_LIBS=$LIBS
10873
LIBS="-lsvld  $LIBS"
10874
cat >conftest.$ac_ext <<_ACEOF
10875
/* confdefs.h.  */
10876
_ACEOF
10877
cat confdefs.h >>conftest.$ac_ext
10878
cat >>conftest.$ac_ext <<_ACEOF
10879
/* end confdefs.h.  */
10880
 
10881
/* Override any gcc2 internal prototype to avoid an error.  */
10882
#ifdef __cplusplus
10883
extern "C"
10884
#endif
10885
/* We use char because int might match the return type of a gcc2
10886
   builtin and then its argument prototype would still apply.  */
10887
char dlopen ();
10888
int
10889
main ()
10890
{
10891
dlopen ();
10892
  ;
10893
  return 0;
10894
}
10895
_ACEOF
10896
rm -f conftest.$ac_objext conftest$ac_exeext
10897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898
  (eval $ac_link) 2>conftest.er1
10899
  ac_status=$?
10900
  grep -v '^ *+' conftest.er1 >conftest.err
10901
  rm -f conftest.er1
10902
  cat conftest.err >&5
10903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904
  (exit $ac_status); } &&
10905
         { ac_try='test -z "$ac_c_werror_flag"
10906
                         || test ! -s conftest.err'
10907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908
  (eval $ac_try) 2>&5
10909
  ac_status=$?
10910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911
  (exit $ac_status); }; } &&
10912
         { ac_try='test -s conftest$ac_exeext'
10913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914
  (eval $ac_try) 2>&5
10915
  ac_status=$?
10916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917
  (exit $ac_status); }; }; then
10918
  ac_cv_lib_svld_dlopen=yes
10919
else
10920
  echo "$as_me: failed program was:" >&5
10921
sed 's/^/| /' conftest.$ac_ext >&5
10922
 
10923
ac_cv_lib_svld_dlopen=no
10924
fi
10925
rm -f conftest.err conftest.$ac_objext \
10926
      conftest$ac_exeext conftest.$ac_ext
10927
LIBS=$ac_check_lib_save_LIBS
10928
fi
10929
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10930
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10931
if test $ac_cv_lib_svld_dlopen = yes; then
10932
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10933
else
10934
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10935
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10936
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10937
  echo $ECHO_N "(cached) $ECHO_C" >&6
10938
else
10939
  ac_check_lib_save_LIBS=$LIBS
10940
LIBS="-ldld  $LIBS"
10941
cat >conftest.$ac_ext <<_ACEOF
10942
/* confdefs.h.  */
10943
_ACEOF
10944
cat confdefs.h >>conftest.$ac_ext
10945
cat >>conftest.$ac_ext <<_ACEOF
10946
/* end confdefs.h.  */
10947
 
10948
/* Override any gcc2 internal prototype to avoid an error.  */
10949
#ifdef __cplusplus
10950
extern "C"
10951
#endif
10952
/* We use char because int might match the return type of a gcc2
10953
   builtin and then its argument prototype would still apply.  */
10954
char dld_link ();
10955
int
10956
main ()
10957
{
10958
dld_link ();
10959
  ;
10960
  return 0;
10961
}
10962
_ACEOF
10963
rm -f conftest.$ac_objext conftest$ac_exeext
10964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965
  (eval $ac_link) 2>conftest.er1
10966
  ac_status=$?
10967
  grep -v '^ *+' conftest.er1 >conftest.err
10968
  rm -f conftest.er1
10969
  cat conftest.err >&5
10970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971
  (exit $ac_status); } &&
10972
         { ac_try='test -z "$ac_c_werror_flag"
10973
                         || test ! -s conftest.err'
10974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975
  (eval $ac_try) 2>&5
10976
  ac_status=$?
10977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978
  (exit $ac_status); }; } &&
10979
         { ac_try='test -s conftest$ac_exeext'
10980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981
  (eval $ac_try) 2>&5
10982
  ac_status=$?
10983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984
  (exit $ac_status); }; }; then
10985
  ac_cv_lib_dld_dld_link=yes
10986
else
10987
  echo "$as_me: failed program was:" >&5
10988
sed 's/^/| /' conftest.$ac_ext >&5
10989
 
10990
ac_cv_lib_dld_dld_link=no
10991
fi
10992
rm -f conftest.err conftest.$ac_objext \
10993
      conftest$ac_exeext conftest.$ac_ext
10994
LIBS=$ac_check_lib_save_LIBS
10995
fi
10996
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10997
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10998
if test $ac_cv_lib_dld_dld_link = yes; then
10999
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11000
fi
11001
 
11002
 
11003
fi
11004
 
11005
 
11006
fi
11007
 
11008
 
11009
fi
11010
 
11011
 
11012
fi
11013
 
11014
 
11015
fi
11016
 
11017
    ;;
11018
  esac
11019
 
11020
  if test "x$lt_cv_dlopen" != xno; then
11021
    enable_dlopen=yes
11022
  else
11023
    enable_dlopen=no
11024
  fi
11025
 
11026
  case $lt_cv_dlopen in
11027
  dlopen)
11028
    save_CPPFLAGS="$CPPFLAGS"
11029
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11030
 
11031
    save_LDFLAGS="$LDFLAGS"
11032
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11033
 
11034
    save_LIBS="$LIBS"
11035
    LIBS="$lt_cv_dlopen_libs $LIBS"
11036
 
11037
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11038
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11039
if test "${lt_cv_dlopen_self+set}" = set; then
11040
  echo $ECHO_N "(cached) $ECHO_C" >&6
11041
else
11042
          if test "$cross_compiling" = yes; then :
11043
  lt_cv_dlopen_self=cross
11044
else
11045
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11046
  lt_status=$lt_dlunknown
11047
  cat > conftest.$ac_ext <<_LT_EOF
11048
#line 11048 "configure"
11049
#include "confdefs.h"
11050
 
11051
#if HAVE_DLFCN_H
11052
#include 
11053
#endif
11054
 
11055
#include 
11056
 
11057
#ifdef RTLD_GLOBAL
11058
#  define LT_DLGLOBAL           RTLD_GLOBAL
11059
#else
11060
#  ifdef DL_GLOBAL
11061
#    define LT_DLGLOBAL         DL_GLOBAL
11062
#  else
11063
#    define LT_DLGLOBAL         0
11064
#  endif
11065
#endif
11066
 
11067
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11068
   find out it does not work in some platform. */
11069
#ifndef LT_DLLAZY_OR_NOW
11070
#  ifdef RTLD_LAZY
11071
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11072
#  else
11073
#    ifdef DL_LAZY
11074
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11075
#    else
11076
#      ifdef RTLD_NOW
11077
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11078
#      else
11079
#        ifdef DL_NOW
11080
#          define LT_DLLAZY_OR_NOW      DL_NOW
11081
#        else
11082
#          define LT_DLLAZY_OR_NOW      0
11083
#        endif
11084
#      endif
11085
#    endif
11086
#  endif
11087
#endif
11088
 
11089
void fnord() { int i=42;}
11090
int main ()
11091
{
11092
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11093
  int status = $lt_dlunknown;
11094
 
11095
  if (self)
11096
    {
11097
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11098
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11099
      /* dlclose (self); */
11100
    }
11101
  else
11102
    puts (dlerror ());
11103
 
11104
  return status;
11105
}
11106
_LT_EOF
11107
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108
  (eval $ac_link) 2>&5
11109
  ac_status=$?
11110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11112
    (./conftest; exit; ) >&5 2>/dev/null
11113
    lt_status=$?
11114
    case x$lt_status in
11115
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11116
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11117
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11118
    esac
11119
  else :
11120
    # compilation failed
11121
    lt_cv_dlopen_self=no
11122
  fi
11123
fi
11124
rm -fr conftest*
11125
 
11126
 
11127
fi
11128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11129
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11130
 
11131
    if test "x$lt_cv_dlopen_self" = xyes; then
11132
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11133
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11134
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11135
if test "${lt_cv_dlopen_self_static+set}" = set; then
11136
  echo $ECHO_N "(cached) $ECHO_C" >&6
11137
else
11138
          if test "$cross_compiling" = yes; then :
11139
  lt_cv_dlopen_self_static=cross
11140
else
11141
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11142
  lt_status=$lt_dlunknown
11143
  cat > conftest.$ac_ext <<_LT_EOF
11144
#line 11144 "configure"
11145
#include "confdefs.h"
11146
 
11147
#if HAVE_DLFCN_H
11148
#include 
11149
#endif
11150
 
11151
#include 
11152
 
11153
#ifdef RTLD_GLOBAL
11154
#  define LT_DLGLOBAL           RTLD_GLOBAL
11155
#else
11156
#  ifdef DL_GLOBAL
11157
#    define LT_DLGLOBAL         DL_GLOBAL
11158
#  else
11159
#    define LT_DLGLOBAL         0
11160
#  endif
11161
#endif
11162
 
11163
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11164
   find out it does not work in some platform. */
11165
#ifndef LT_DLLAZY_OR_NOW
11166
#  ifdef RTLD_LAZY
11167
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11168
#  else
11169
#    ifdef DL_LAZY
11170
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11171
#    else
11172
#      ifdef RTLD_NOW
11173
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11174
#      else
11175
#        ifdef DL_NOW
11176
#          define LT_DLLAZY_OR_NOW      DL_NOW
11177
#        else
11178
#          define LT_DLLAZY_OR_NOW      0
11179
#        endif
11180
#      endif
11181
#    endif
11182
#  endif
11183
#endif
11184
 
11185
void fnord() { int i=42;}
11186
int main ()
11187
{
11188
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189
  int status = $lt_dlunknown;
11190
 
11191
  if (self)
11192
    {
11193
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11194
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195
      /* dlclose (self); */
11196
    }
11197
  else
11198
    puts (dlerror ());
11199
 
11200
  return status;
11201
}
11202
_LT_EOF
11203
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204
  (eval $ac_link) 2>&5
11205
  ac_status=$?
11206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11208
    (./conftest; exit; ) >&5 2>/dev/null
11209
    lt_status=$?
11210
    case x$lt_status in
11211
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11212
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11213
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11214
    esac
11215
  else :
11216
    # compilation failed
11217
    lt_cv_dlopen_self_static=no
11218
  fi
11219
fi
11220
rm -fr conftest*
11221
 
11222
 
11223
fi
11224
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11225
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11226
    fi
11227
 
11228
    CPPFLAGS="$save_CPPFLAGS"
11229
    LDFLAGS="$save_LDFLAGS"
11230
    LIBS="$save_LIBS"
11231
    ;;
11232
  esac
11233
 
11234
  case $lt_cv_dlopen_self in
11235
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11236
  *) enable_dlopen_self=unknown ;;
11237
  esac
11238
 
11239
  case $lt_cv_dlopen_self_static in
11240
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11241
  *) enable_dlopen_self_static=unknown ;;
11242
  esac
11243
fi
11244
 
11245
 
11246
 
11247
 
11248
 
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
 
11261
striplib=
11262
old_striplib=
11263
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11264
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11265
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11266
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11267
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11268
  echo "$as_me:$LINENO: result: yes" >&5
11269
echo "${ECHO_T}yes" >&6
11270
else
11271
# FIXME - insert some real tests, host_os isn't really good enough
11272
  case $host_os in
11273
  darwin*)
11274
    if test -n "$STRIP" ; then
11275
      striplib="$STRIP -x"
11276
      old_striplib="$STRIP -S"
11277
      echo "$as_me:$LINENO: result: yes" >&5
11278
echo "${ECHO_T}yes" >&6
11279
    else
11280
      echo "$as_me:$LINENO: result: no" >&5
11281
echo "${ECHO_T}no" >&6
11282
    fi
11283
    ;;
11284
  *)
11285
    echo "$as_me:$LINENO: result: no" >&5
11286
echo "${ECHO_T}no" >&6
11287
    ;;
11288
  esac
11289
fi
11290
 
11291
 
11292
 
11293
 
11294
 
11295
 
11296
 
11297
 
11298
 
11299
 
11300
 
11301
 
11302
  # Report which library types will actually be built
11303
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11304
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11305
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11306
echo "${ECHO_T}$can_build_shared" >&6
11307
 
11308
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11309
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11310
  test "$can_build_shared" = "no" && enable_shared=no
11311
 
11312
  # On AIX, shared libraries and static libraries use the same namespace, and
11313
  # are all built from PIC.
11314
  case $host_os in
11315
  aix3*)
11316
    test "$enable_shared" = yes && enable_static=no
11317
    if test -n "$RANLIB"; then
11318
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11319
      postinstall_cmds='$RANLIB $lib'
11320
    fi
11321
    ;;
11322
 
11323
  aix[4-9]*)
11324
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11325
      test "$enable_shared" = yes && enable_static=no
11326
    fi
11327
    ;;
11328
  esac
11329
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11330
echo "${ECHO_T}$enable_shared" >&6
11331
 
11332
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11333
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11334
  # Make sure either enable_shared or enable_static is yes.
11335
  test "$enable_shared" = yes || enable_static=yes
11336
  echo "$as_me:$LINENO: result: $enable_static" >&5
11337
echo "${ECHO_T}$enable_static" >&6
11338
 
11339
 
11340
 
11341
 
11342
fi
11343
ac_ext=c
11344
ac_cpp='$CPP $CPPFLAGS'
11345
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11348
 
11349
CC="$lt_save_CC"
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
 
11363
                  ac_config_commands="$ac_config_commands libtool"
11364
 
11365
 
11366
 
11367
 
11368
# Only expand once:
11369
 
11370
 
11371
fi
11372
 
11373
if test -n "${machine_dir}"; then
11374
  MACHINE_OBJLIST=machine/${machine_dir}/objectlist.awk.in
11375
  MACHINE_LIB=machine/${machine_dir}/lib.a
11376
fi
11377
 
11378
 
11379
 
11380
 
11381
 
11382
subdirs="$subdirs machine"
11383
 
11384
 
11385
          ac_config_files="$ac_config_files Makefile"
11386
 
11387
cat >confcache <<\_ACEOF
11388
# This file is a shell script that caches the results of configure
11389
# tests run on this system so they can be shared between configure
11390
# scripts and configure runs, see configure's option --config-cache.
11391
# It is not useful on other systems.  If it contains results you don't
11392
# want to keep, you may remove or edit it.
11393
#
11394
# config.status only pays attention to the cache file if you give it
11395
# the --recheck option to rerun configure.
11396
#
11397
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11398
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11399
# following values.
11400
 
11401
_ACEOF
11402
 
11403
# The following way of writing the cache mishandles newlines in values,
11404
# but we know of no workaround that is simple, portable, and efficient.
11405
# So, don't put newlines in cache variables' values.
11406
# Ultrix sh set writes to stderr and can't be redirected directly,
11407
# and sets the high bit in the cache file unless we assign to the vars.
11408
{
11409
  (set) 2>&1 |
11410
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11411
    *ac_space=\ *)
11412
      # `set' does not quote correctly, so add quotes (double-quote
11413
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11414
      sed -n \
11415
        "s/'/'\\\\''/g;
11416
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11417
      ;;
11418
    *)
11419
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11420
      sed -n \
11421
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11422
      ;;
11423
    esac;
11424
} |
11425
  sed '
11426
     t clear
11427
     : clear
11428
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11429
     t end
11430
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11431
     : end' >>confcache
11432
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11433
  if test -w $cache_file; then
11434
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11435
    cat confcache >$cache_file
11436
  else
11437
    echo "not updating unwritable cache $cache_file"
11438
  fi
11439
fi
11440
rm -f confcache
11441
 
11442
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11443
# Let make expand exec_prefix.
11444
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11445
 
11446
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11447
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11448
# trailing colons and then remove the whole line if VPATH becomes empty
11449
# (actually we leave an empty line to preserve line numbers).
11450
if test "x$srcdir" = x.; then
11451
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11452
s/:*\$(srcdir):*/:/;
11453
s/:*\${srcdir}:*/:/;
11454
s/:*@srcdir@:*/:/;
11455
s/^\([^=]*=[     ]*\):*/\1/;
11456
s/:*$//;
11457
s/^[^=]*=[       ]*$//;
11458
}'
11459
fi
11460
 
11461
# Transform confdefs.h into DEFS.
11462
# Protect against shell expansion while executing Makefile rules.
11463
# Protect against Makefile macro expansion.
11464
#
11465
# If the first sed substitution is executed (which looks for macros that
11466
# take arguments), then we branch to the quote section.  Otherwise,
11467
# look for a macro that doesn't take arguments.
11468
cat >confdef2opt.sed <<\_ACEOF
11469
t clear
11470
: clear
11471
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11472
t quote
11473
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11474
t quote
11475
d
11476
: quote
11477
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11478
s,\[,\\&,g
11479
s,\],\\&,g
11480
s,\$,$$,g
11481
p
11482
_ACEOF
11483
# We use echo to avoid assuming a particular line-breaking character.
11484
# The extra dot is to prevent the shell from consuming trailing
11485
# line-breaks from the sub-command output.  A line-break within
11486
# single-quotes doesn't work because, if this script is created in a
11487
# platform that uses two characters for line-breaks (e.g., DOS), tr
11488
# would break.
11489
ac_LF_and_DOT=`echo; echo .`
11490
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11491
rm -f confdef2opt.sed
11492
 
11493
 
11494
ac_libobjs=
11495
ac_ltlibobjs=
11496
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11497
  # 1. Remove the extension, and $U if already installed.
11498
  ac_i=`echo "$ac_i" |
11499
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11500
  # 2. Add them.
11501
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11502
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11503
done
11504
LIBOBJS=$ac_libobjs
11505
 
11506
LTLIBOBJS=$ac_ltlibobjs
11507
 
11508
 
11509
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11510
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11511
Usually this means the macro was only invoked conditionally." >&5
11512
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11513
Usually this means the macro was only invoked conditionally." >&2;}
11514
   { (exit 1); exit 1; }; }
11515
fi
11516
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11517
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11518
Usually this means the macro was only invoked conditionally." >&5
11519
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11520
Usually this means the macro was only invoked conditionally." >&2;}
11521
   { (exit 1); exit 1; }; }
11522
fi
11523
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11524
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11525
Usually this means the macro was only invoked conditionally." >&5
11526
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11527
Usually this means the macro was only invoked conditionally." >&2;}
11528
   { (exit 1); exit 1; }; }
11529
fi
11530
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11531
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11532
Usually this means the macro was only invoked conditionally." >&5
11533
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11534
Usually this means the macro was only invoked conditionally." >&2;}
11535
   { (exit 1); exit 1; }; }
11536
fi
11537
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11538
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11539
Usually this means the macro was only invoked conditionally." >&5
11540
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11541
Usually this means the macro was only invoked conditionally." >&2;}
11542
   { (exit 1); exit 1; }; }
11543
fi
11544
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11545
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11546
Usually this means the macro was only invoked conditionally." >&5
11547
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11548
Usually this means the macro was only invoked conditionally." >&2;}
11549
   { (exit 1); exit 1; }; }
11550
fi
11551
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11552
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11553
Usually this means the macro was only invoked conditionally." >&5
11554
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11555
Usually this means the macro was only invoked conditionally." >&2;}
11556
   { (exit 1); exit 1; }; }
11557
fi
11558
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11559
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11560
Usually this means the macro was only invoked conditionally." >&5
11561
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11562
Usually this means the macro was only invoked conditionally." >&2;}
11563
   { (exit 1); exit 1; }; }
11564
fi
11565
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11566
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11567
Usually this means the macro was only invoked conditionally." >&5
11568
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11569
Usually this means the macro was only invoked conditionally." >&2;}
11570
   { (exit 1); exit 1; }; }
11571
fi
11572
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11573
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11574
Usually this means the macro was only invoked conditionally." >&5
11575
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11576
Usually this means the macro was only invoked conditionally." >&2;}
11577
   { (exit 1); exit 1; }; }
11578
fi
11579
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11580
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11581
Usually this means the macro was only invoked conditionally." >&5
11582
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11583
Usually this means the macro was only invoked conditionally." >&2;}
11584
   { (exit 1); exit 1; }; }
11585
fi
11586
 
11587
: ${CONFIG_STATUS=./config.status}
11588
ac_clean_files_save=$ac_clean_files
11589
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11590
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11591
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11592
cat >$CONFIG_STATUS <<_ACEOF
11593
#! $SHELL
11594
# Generated by $as_me.
11595
# Run this file to recreate the current configuration.
11596
# Compiler output produced by configure, useful for debugging
11597
# configure, is in config.log if it exists.
11598
 
11599
debug=false
11600
ac_cs_recheck=false
11601
ac_cs_silent=false
11602
SHELL=\${CONFIG_SHELL-$SHELL}
11603
_ACEOF
11604
 
11605
cat >>$CONFIG_STATUS <<\_ACEOF
11606
## --------------------- ##
11607
## M4sh Initialization.  ##
11608
## --------------------- ##
11609
 
11610
# Be Bourne compatible
11611
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11612
  emulate sh
11613
  NULLCMD=:
11614
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11615
  # is contrary to our usage.  Disable this feature.
11616
  alias -g '${1+"$@"}'='"$@"'
11617
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11618
  set -o posix
11619
fi
11620
DUALCASE=1; export DUALCASE # for MKS sh
11621
 
11622
# Support unset when possible.
11623
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11624
  as_unset=unset
11625
else
11626
  as_unset=false
11627
fi
11628
 
11629
 
11630
# Work around bugs in pre-3.0 UWIN ksh.
11631
$as_unset ENV MAIL MAILPATH
11632
PS1='$ '
11633
PS2='> '
11634
PS4='+ '
11635
 
11636
# NLS nuisances.
11637
for as_var in \
11638
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11639
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11640
  LC_TELEPHONE LC_TIME
11641
do
11642
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11643
    eval $as_var=C; export $as_var
11644
  else
11645
    $as_unset $as_var
11646
  fi
11647
done
11648
 
11649
# Required to use basename.
11650
if expr a : '\(a\)' >/dev/null 2>&1; then
11651
  as_expr=expr
11652
else
11653
  as_expr=false
11654
fi
11655
 
11656
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11657
  as_basename=basename
11658
else
11659
  as_basename=false
11660
fi
11661
 
11662
 
11663
# Name of the executable.
11664
as_me=`$as_basename "$0" ||
11665
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11666
         X"$0" : 'X\(//\)$' \| \
11667
         X"$0" : 'X\(/\)$' \| \
11668
         .     : '\(.\)' 2>/dev/null ||
11669
echo X/"$0" |
11670
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11671
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11672
          /^X\/\(\/\).*/{ s//\1/; q; }
11673
          s/.*/./; q'`
11674
 
11675
 
11676
# PATH needs CR, and LINENO needs CR and PATH.
11677
# Avoid depending upon Character Ranges.
11678
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11679
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11680
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11681
as_cr_digits='0123456789'
11682
as_cr_alnum=$as_cr_Letters$as_cr_digits
11683
 
11684
# The user is always right.
11685
if test "${PATH_SEPARATOR+set}" != set; then
11686
  echo "#! /bin/sh" >conf$$.sh
11687
  echo  "exit 0"   >>conf$$.sh
11688
  chmod +x conf$$.sh
11689
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11690
    PATH_SEPARATOR=';'
11691
  else
11692
    PATH_SEPARATOR=:
11693
  fi
11694
  rm -f conf$$.sh
11695
fi
11696
 
11697
 
11698
  as_lineno_1=$LINENO
11699
  as_lineno_2=$LINENO
11700
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11701
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11702
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11703
  # Find who we are.  Look in the path if we contain no path at all
11704
  # relative or not.
11705
  case $0 in
11706
    *[\\/]* ) as_myself=$0 ;;
11707
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708
for as_dir in $PATH
11709
do
11710
  IFS=$as_save_IFS
11711
  test -z "$as_dir" && as_dir=.
11712
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11713
done
11714
 
11715
       ;;
11716
  esac
11717
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11718
  # in which case we are not to be found in the path.
11719
  if test "x$as_myself" = x; then
11720
    as_myself=$0
11721
  fi
11722
  if test ! -f "$as_myself"; then
11723
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11724
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11725
   { (exit 1); exit 1; }; }
11726
  fi
11727
  case $CONFIG_SHELL in
11728
  '')
11729
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11731
do
11732
  IFS=$as_save_IFS
11733
  test -z "$as_dir" && as_dir=.
11734
  for as_base in sh bash ksh sh5; do
11735
         case $as_dir in
11736
         /*)
11737
           if ("$as_dir/$as_base" -c '
11738
  as_lineno_1=$LINENO
11739
  as_lineno_2=$LINENO
11740
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11741
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11742
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11743
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11744
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11745
             CONFIG_SHELL=$as_dir/$as_base
11746
             export CONFIG_SHELL
11747
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11748
           fi;;
11749
         esac
11750
       done
11751
done
11752
;;
11753
  esac
11754
 
11755
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11756
  # uniformly replaced by the line number.  The first 'sed' inserts a
11757
  # line-number line before each line; the second 'sed' does the real
11758
  # work.  The second script uses 'N' to pair each line-number line
11759
  # with the numbered line, and appends trailing '-' during
11760
  # substitution so that $LINENO is not a special case at line end.
11761
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11762
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11763
  sed '=' <$as_myself |
11764
    sed '
11765
      N
11766
      s,$,-,
11767
      : loop
11768
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11769
      t loop
11770
      s,-$,,
11771
      s,^['$as_cr_digits']*\n,,
11772
    ' >$as_me.lineno &&
11773
  chmod +x $as_me.lineno ||
11774
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11775
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11776
   { (exit 1); exit 1; }; }
11777
 
11778
  # Don't try to exec as it changes $[0], causing all sort of problems
11779
  # (the dirname of $[0] is not the place where we might find the
11780
  # original and so on.  Autoconf is especially sensible to this).
11781
  . ./$as_me.lineno
11782
  # Exit status is that of the last command.
11783
  exit
11784
}
11785
 
11786
 
11787
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11788
  *c*,-n*) ECHO_N= ECHO_C='
11789
' ECHO_T='      ' ;;
11790
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11791
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11792
esac
11793
 
11794
if expr a : '\(a\)' >/dev/null 2>&1; then
11795
  as_expr=expr
11796
else
11797
  as_expr=false
11798
fi
11799
 
11800
rm -f conf$$ conf$$.exe conf$$.file
11801
echo >conf$$.file
11802
if ln -s conf$$.file conf$$ 2>/dev/null; then
11803
  # We could just check for DJGPP; but this test a) works b) is more generic
11804
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11805
  if test -f conf$$.exe; then
11806
    # Don't use ln at all; we don't have any links
11807
    as_ln_s='cp -p'
11808
  else
11809
    as_ln_s='ln -s'
11810
  fi
11811
elif ln conf$$.file conf$$ 2>/dev/null; then
11812
  as_ln_s=ln
11813
else
11814
  as_ln_s='cp -p'
11815
fi
11816
rm -f conf$$ conf$$.exe conf$$.file
11817
 
11818
if mkdir -p . 2>/dev/null; then
11819
  as_mkdir_p=:
11820
else
11821
  test -d ./-p && rmdir ./-p
11822
  as_mkdir_p=false
11823
fi
11824
 
11825
as_executable_p="test -f"
11826
 
11827
# Sed expression to map a string onto a valid CPP name.
11828
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11829
 
11830
# Sed expression to map a string onto a valid variable name.
11831
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11832
 
11833
 
11834
# IFS
11835
# We need space, tab and new line, in precisely that order.
11836
as_nl='
11837
'
11838
IFS="   $as_nl"
11839
 
11840
# CDPATH.
11841
$as_unset CDPATH
11842
 
11843
exec 6>&1
11844
 
11845
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11846
# report actual input values of CONFIG_FILES etc. instead of their
11847
# values after options handling.  Logging --version etc. is OK.
11848
exec 5>>config.log
11849
{
11850
  echo
11851
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11852
## Running $as_me. ##
11853
_ASBOX
11854
} >&5
11855
cat >&5 <<_CSEOF
11856
 
11857
This file was extended by newlib $as_me 1.17.0, which was
11858
generated by GNU Autoconf 2.59.  Invocation command line was
11859
 
11860
  CONFIG_FILES    = $CONFIG_FILES
11861
  CONFIG_HEADERS  = $CONFIG_HEADERS
11862
  CONFIG_LINKS    = $CONFIG_LINKS
11863
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11864
  $ $0 $@
11865
 
11866
_CSEOF
11867
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11868
echo >&5
11869
_ACEOF
11870
 
11871
# Files that config.status was made for.
11872
if test -n "$ac_config_files"; then
11873
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11874
fi
11875
 
11876
if test -n "$ac_config_headers"; then
11877
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11878
fi
11879
 
11880
if test -n "$ac_config_links"; then
11881
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11882
fi
11883
 
11884
if test -n "$ac_config_commands"; then
11885
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11886
fi
11887
 
11888
cat >>$CONFIG_STATUS <<\_ACEOF
11889
 
11890
ac_cs_usage="\
11891
\`$as_me' instantiates files from templates according to the
11892
current configuration.
11893
 
11894
Usage: $0 [OPTIONS] [FILE]...
11895
 
11896
  -h, --help       print this help, then exit
11897
  -V, --version    print version number, then exit
11898
  -q, --quiet      do not print progress messages
11899
  -d, --debug      don't remove temporary files
11900
      --recheck    update $as_me by reconfiguring in the same conditions
11901
  --file=FILE[:TEMPLATE]
11902
                   instantiate the configuration file FILE
11903
 
11904
Configuration files:
11905
$config_files
11906
 
11907
Configuration commands:
11908
$config_commands
11909
 
11910
Report bugs to ."
11911
_ACEOF
11912
 
11913
cat >>$CONFIG_STATUS <<_ACEOF
11914
ac_cs_version="\\
11915
newlib config.status 1.17.0
11916
configured by $0, generated by GNU Autoconf 2.59,
11917
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11918
 
11919
Copyright (C) 2003 Free Software Foundation, Inc.
11920
This config.status script is free software; the Free Software Foundation
11921
gives unlimited permission to copy, distribute and modify it."
11922
srcdir=$srcdir
11923
INSTALL="$INSTALL"
11924
_ACEOF
11925
 
11926
cat >>$CONFIG_STATUS <<\_ACEOF
11927
# If no file are specified by the user, then we need to provide default
11928
# value.  By we need to know if files were specified by the user.
11929
ac_need_defaults=:
11930
while test $# != 0
11931
do
11932
  case $1 in
11933
  --*=*)
11934
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11935
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11936
    ac_shift=:
11937
    ;;
11938
  -*)
11939
    ac_option=$1
11940
    ac_optarg=$2
11941
    ac_shift=shift
11942
    ;;
11943
  *) # This is not an option, so the user has probably given explicit
11944
     # arguments.
11945
     ac_option=$1
11946
     ac_need_defaults=false;;
11947
  esac
11948
 
11949
  case $ac_option in
11950
  # Handling of the options.
11951
_ACEOF
11952
cat >>$CONFIG_STATUS <<\_ACEOF
11953
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11954
    ac_cs_recheck=: ;;
11955
  --version | --vers* | -V )
11956
    echo "$ac_cs_version"; exit 0 ;;
11957
  --he | --h)
11958
    # Conflict between --help and --header
11959
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11960
Try \`$0 --help' for more information." >&5
11961
echo "$as_me: error: ambiguous option: $1
11962
Try \`$0 --help' for more information." >&2;}
11963
   { (exit 1); exit 1; }; };;
11964
  --help | --hel | -h )
11965
    echo "$ac_cs_usage"; exit 0 ;;
11966
  --debug | --d* | -d )
11967
    debug=: ;;
11968
  --file | --fil | --fi | --f )
11969
    $ac_shift
11970
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11971
    ac_need_defaults=false;;
11972
  --header | --heade | --head | --hea )
11973
    $ac_shift
11974
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11975
    ac_need_defaults=false;;
11976
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11977
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11978
    ac_cs_silent=: ;;
11979
 
11980
  # This is an error.
11981
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11982
Try \`$0 --help' for more information." >&5
11983
echo "$as_me: error: unrecognized option: $1
11984
Try \`$0 --help' for more information." >&2;}
11985
   { (exit 1); exit 1; }; } ;;
11986
 
11987
  *) ac_config_targets="$ac_config_targets $1" ;;
11988
 
11989
  esac
11990
  shift
11991
done
11992
 
11993
ac_configure_extra_args=
11994
 
11995
if $ac_cs_silent; then
11996
  exec 6>/dev/null
11997
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11998
fi
11999
 
12000
_ACEOF
12001
cat >>$CONFIG_STATUS <<_ACEOF
12002
if \$ac_cs_recheck; then
12003
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12004
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12005
fi
12006
 
12007
_ACEOF
12008
 
12009
cat >>$CONFIG_STATUS <<_ACEOF
12010
#
12011
# INIT-COMMANDS section.
12012
#
12013
 
12014
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12015
 
12016
 
12017
# The HP-UX ksh and POSIX shell print the target directory to stdout
12018
# if CDPATH is set.
12019
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12020
 
12021
sed_quote_subst='$sed_quote_subst'
12022
double_quote_subst='$double_quote_subst'
12023
delay_variable_subst='$delay_variable_subst'
12024
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12025
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12026
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12027
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12028
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12029
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12030
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12031
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12032
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12033
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12034
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12035
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12036
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12037
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12038
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12039
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12040
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12041
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12042
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12043
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12044
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12045
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12046
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12047
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12048
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12049
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12050
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12051
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12052
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12053
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12054
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12055
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12056
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12057
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12058
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12059
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12060
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12061
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12062
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12063
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12064
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12065
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12066
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12067
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12068
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12069
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12070
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"`'
12071
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"`'
12072
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12073
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12074
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12075
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12076
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12077
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12078
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12079
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12080
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12081
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12082
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12083
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12084
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12085
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12086
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12087
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12088
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12089
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12090
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12091
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12092
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12093
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12094
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12095
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12096
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12097
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12099
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12101
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12102
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12103
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12104
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12105
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12106
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12107
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12108
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12109
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12110
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12111
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12112
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12113
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12114
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12115
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12116
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12117
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12118
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12119
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12120
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12121
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12122
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12123
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12124
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12125
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12126
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12127
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12128
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12129
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12130
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12131
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12132
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12133
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12135
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12136
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12137
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12138
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12139
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12140
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12141
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12142
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12143
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12144
 
12145
LTCC='$LTCC'
12146
LTCFLAGS='$LTCFLAGS'
12147
compiler='$compiler_DEFAULT'
12148
 
12149
# Quote evaled strings.
12150
for var in SED \
12151
GREP \
12152
EGREP \
12153
FGREP \
12154
LD \
12155
NM \
12156
LN_S \
12157
lt_SP2NL \
12158
lt_NL2SP \
12159
reload_flag \
12160
deplibs_check_method \
12161
file_magic_cmd \
12162
AR \
12163
AR_FLAGS \
12164
STRIP \
12165
RANLIB \
12166
CC \
12167
CFLAGS \
12168
compiler \
12169
lt_cv_sys_global_symbol_pipe \
12170
lt_cv_sys_global_symbol_to_cdecl \
12171
lt_cv_sys_global_symbol_to_c_name_address \
12172
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12173
SHELL \
12174
ECHO \
12175
lt_prog_compiler_no_builtin_flag \
12176
lt_prog_compiler_wl \
12177
lt_prog_compiler_pic \
12178
lt_prog_compiler_static \
12179
lt_cv_prog_compiler_c_o \
12180
need_locks \
12181
DSYMUTIL \
12182
NMEDIT \
12183
LIPO \
12184
OTOOL \
12185
OTOOL64 \
12186
shrext_cmds \
12187
export_dynamic_flag_spec \
12188
whole_archive_flag_spec \
12189
compiler_needs_object \
12190
with_gnu_ld \
12191
allow_undefined_flag \
12192
no_undefined_flag \
12193
hardcode_libdir_flag_spec \
12194
hardcode_libdir_flag_spec_ld \
12195
hardcode_libdir_separator \
12196
fix_srcfile_path \
12197
exclude_expsyms \
12198
include_expsyms \
12199
file_list_spec \
12200
variables_saved_for_relink \
12201
libname_spec \
12202
library_names_spec \
12203
soname_spec \
12204
finish_eval \
12205
old_striplib \
12206
striplib; do
12207
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12208
    *[\\\\\\\`\\"\\\$]*)
12209
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12210
      ;;
12211
    *)
12212
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12213
      ;;
12214
    esac
12215
done
12216
 
12217
# Double-quote double-evaled strings.
12218
for var in reload_cmds \
12219
old_postinstall_cmds \
12220
old_postuninstall_cmds \
12221
old_archive_cmds \
12222
extract_expsyms_cmds \
12223
old_archive_from_new_cmds \
12224
old_archive_from_expsyms_cmds \
12225
archive_cmds \
12226
archive_expsym_cmds \
12227
module_cmds \
12228
module_expsym_cmds \
12229
export_symbols_cmds \
12230
prelink_cmds \
12231
postinstall_cmds \
12232
postuninstall_cmds \
12233
finish_cmds \
12234
sys_lib_search_path_spec \
12235
sys_lib_dlsearch_path_spec; do
12236
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12237
    *[\\\\\\\`\\"\\\$]*)
12238
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12239
      ;;
12240
    *)
12241
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12242
      ;;
12243
    esac
12244
done
12245
 
12246
# Fix-up fallback echo if it was mangled by the above quoting rules.
12247
case \$lt_ECHO in
12248
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12249
  ;;
12250
esac
12251
 
12252
ac_aux_dir='$ac_aux_dir'
12253
xsi_shell='$xsi_shell'
12254
lt_shell_append='$lt_shell_append'
12255
 
12256
# See if we are running on zsh, and set the options which allow our
12257
# commands through without removal of \ escapes INIT.
12258
if test -n "\${ZSH_VERSION+set}" ; then
12259
   setopt NO_GLOB_SUBST
12260
fi
12261
 
12262
 
12263
    PACKAGE='$PACKAGE'
12264
    VERSION='$VERSION'
12265
    TIMESTAMP='$TIMESTAMP'
12266
    RM='$RM'
12267
    ofile='$ofile'
12268
 
12269
 
12270
 
12271
 
12272
_ACEOF
12273
 
12274
 
12275
 
12276
cat >>$CONFIG_STATUS <<\_ACEOF
12277
for ac_config_target in $ac_config_targets
12278
do
12279
  case "$ac_config_target" in
12280
  # Handling of arguments.
12281
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12282
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12283
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12284
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12285
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12286
   { (exit 1); exit 1; }; };;
12287
  esac
12288
done
12289
 
12290
# If the user did not use the arguments to specify the items to instantiate,
12291
# then the envvar interface is used.  Set only those that are not.
12292
# We use the long form for the default assignment because of an extremely
12293
# bizarre bug on SunOS 4.1.3.
12294
if $ac_need_defaults; then
12295
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12296
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12297
fi
12298
 
12299
# Have a temporary directory for convenience.  Make it in the build tree
12300
# simply because there is no reason to put it here, and in addition,
12301
# creating and moving files from /tmp can sometimes cause problems.
12302
# Create a temporary directory, and hook for its removal unless debugging.
12303
$debug ||
12304
{
12305
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12306
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12307
}
12308
 
12309
# Create a (secure) tmp directory for tmp files.
12310
 
12311
{
12312
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12313
  test -n "$tmp" && test -d "$tmp"
12314
}  ||
12315
{
12316
  tmp=./confstat$$-$RANDOM
12317
  (umask 077 && mkdir $tmp)
12318
} ||
12319
{
12320
   echo "$me: cannot create a temporary directory in ." >&2
12321
   { (exit 1); exit 1; }
12322
}
12323
 
12324
_ACEOF
12325
 
12326
cat >>$CONFIG_STATUS <<_ACEOF
12327
 
12328
#
12329
# CONFIG_FILES section.
12330
#
12331
 
12332
# No need to generate the scripts if there are no CONFIG_FILES.
12333
# This happens for instance when ./config.status config.h
12334
if test -n "\$CONFIG_FILES"; then
12335
  # Protect against being on the right side of a sed subst in config.status.
12336
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12337
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12338
s,@SHELL@,$SHELL,;t t
12339
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12340
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12341
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12342
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12343
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12344
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12345
s,@exec_prefix@,$exec_prefix,;t t
12346
s,@prefix@,$prefix,;t t
12347
s,@program_transform_name@,$program_transform_name,;t t
12348
s,@bindir@,$bindir,;t t
12349
s,@sbindir@,$sbindir,;t t
12350
s,@libexecdir@,$libexecdir,;t t
12351
s,@datadir@,$datadir,;t t
12352
s,@sysconfdir@,$sysconfdir,;t t
12353
s,@sharedstatedir@,$sharedstatedir,;t t
12354
s,@localstatedir@,$localstatedir,;t t
12355
s,@libdir@,$libdir,;t t
12356
s,@includedir@,$includedir,;t t
12357
s,@oldincludedir@,$oldincludedir,;t t
12358
s,@infodir@,$infodir,;t t
12359
s,@mandir@,$mandir,;t t
12360
s,@build_alias@,$build_alias,;t t
12361
s,@host_alias@,$host_alias,;t t
12362
s,@target_alias@,$target_alias,;t t
12363
s,@DEFS@,$DEFS,;t t
12364
s,@ECHO_C@,$ECHO_C,;t t
12365
s,@ECHO_N@,$ECHO_N,;t t
12366
s,@ECHO_T@,$ECHO_T,;t t
12367
s,@LIBS@,$LIBS,;t t
12368
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12369
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12370
s,@newlib_basedir@,$newlib_basedir,;t t
12371
s,@build@,$build,;t t
12372
s,@build_cpu@,$build_cpu,;t t
12373
s,@build_vendor@,$build_vendor,;t t
12374
s,@build_os@,$build_os,;t t
12375
s,@host@,$host,;t t
12376
s,@host_cpu@,$host_cpu,;t t
12377
s,@host_vendor@,$host_vendor,;t t
12378
s,@host_os@,$host_os,;t t
12379
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12380
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12381
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12382
s,@CYGPATH_W@,$CYGPATH_W,;t t
12383
s,@PACKAGE@,$PACKAGE,;t t
12384
s,@VERSION@,$VERSION,;t t
12385
s,@ACLOCAL@,$ACLOCAL,;t t
12386
s,@AUTOCONF@,$AUTOCONF,;t t
12387
s,@AUTOMAKE@,$AUTOMAKE,;t t
12388
s,@AUTOHEADER@,$AUTOHEADER,;t t
12389
s,@MAKEINFO@,$MAKEINFO,;t t
12390
s,@install_sh@,$install_sh,;t t
12391
s,@STRIP@,$STRIP,;t t
12392
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12393
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12394
s,@mkdir_p@,$mkdir_p,;t t
12395
s,@AWK@,$AWK,;t t
12396
s,@SET_MAKE@,$SET_MAKE,;t t
12397
s,@am__leading_dot@,$am__leading_dot,;t t
12398
s,@AMTAR@,$AMTAR,;t t
12399
s,@am__tar@,$am__tar,;t t
12400
s,@am__untar@,$am__untar,;t t
12401
s,@CC@,$CC,;t t
12402
s,@DEPDIR@,$DEPDIR,;t t
12403
s,@am__include@,$am__include,;t t
12404
s,@am__quote@,$am__quote,;t t
12405
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12406
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12407
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12408
s,@CCDEPMODE@,$CCDEPMODE,;t t
12409
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12410
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12411
s,@AS@,$AS,;t t
12412
s,@ac_ct_AS@,$ac_ct_AS,;t t
12413
s,@AR@,$AR,;t t
12414
s,@ac_ct_AR@,$ac_ct_AR,;t t
12415
s,@RANLIB@,$RANLIB,;t t
12416
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12417
s,@READELF@,$READELF,;t t
12418
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12419
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12420
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12421
s,@MAINT@,$MAINT,;t t
12422
s,@CCAS@,$CCAS,;t t
12423
s,@CCASFLAGS@,$CCASFLAGS,;t t
12424
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12425
s,@LDFLAGS@,$LDFLAGS,;t t
12426
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12427
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12428
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12429
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12430
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12431
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12432
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12433
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12434
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12435
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12436
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12437
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12438
s,@OBJEXT@,$OBJEXT,;t t
12439
s,@oext@,$oext,;t t
12440
s,@aext@,$aext,;t t
12441
s,@lpfx@,$lpfx,;t t
12442
s,@libm_machine_dir@,$libm_machine_dir,;t t
12443
s,@machine_dir@,$machine_dir,;t t
12444
s,@sys_dir@,$sys_dir,;t t
12445
s,@SED@,$SED,;t t
12446
s,@DLLTOOL@,$DLLTOOL,;t t
12447
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12448
s,@OBJDUMP@,$OBJDUMP,;t t
12449
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12450
s,@LIBTOOL@,$LIBTOOL,;t t
12451
s,@CFLAGS@,$CFLAGS,;t t
12452
s,@CPPFLAGS@,$CPPFLAGS,;t t
12453
s,@ac_ct_CC@,$ac_ct_CC,;t t
12454
s,@EXEEXT@,$EXEEXT,;t t
12455
s,@EGREP@,$EGREP,;t t
12456
s,@FGREP@,$FGREP,;t t
12457
s,@GREP@,$GREP,;t t
12458
s,@LD@,$LD,;t t
12459
s,@DUMPBIN@,$DUMPBIN,;t t
12460
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12461
s,@NM@,$NM,;t t
12462
s,@LN_S@,$LN_S,;t t
12463
s,@lt_ECHO@,$lt_ECHO,;t t
12464
s,@DSYMUTIL@,$DSYMUTIL,;t t
12465
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12466
s,@NMEDIT@,$NMEDIT,;t t
12467
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12468
s,@LIPO@,$LIPO,;t t
12469
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12470
s,@OTOOL@,$OTOOL,;t t
12471
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12472
s,@OTOOL64@,$OTOOL64,;t t
12473
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12474
s,@CPP@,$CPP,;t t
12475
s,@MACHINE_OBJLIST@,$MACHINE_OBJLIST,;t t
12476
s,@MACHINE_LIB@,$MACHINE_LIB,;t t
12477
s,@subdirs@,$subdirs,;t t
12478
s,@LIBOBJS@,$LIBOBJS,;t t
12479
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12480
CEOF
12481
 
12482
_ACEOF
12483
 
12484
  cat >>$CONFIG_STATUS <<\_ACEOF
12485
  # Split the substitutions into bite-sized pieces for seds with
12486
  # small command number limits, like on Digital OSF/1 and HP-UX.
12487
  ac_max_sed_lines=48
12488
  ac_sed_frag=1 # Number of current file.
12489
  ac_beg=1 # First line for current file.
12490
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12491
  ac_more_lines=:
12492
  ac_sed_cmds=
12493
  while $ac_more_lines; do
12494
    if test $ac_beg -gt 1; then
12495
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12496
    else
12497
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12498
    fi
12499
    if test ! -s $tmp/subs.frag; then
12500
      ac_more_lines=false
12501
    else
12502
      # The purpose of the label and of the branching condition is to
12503
      # speed up the sed processing (if there are no `@' at all, there
12504
      # is no need to browse any of the substitutions).
12505
      # These are the two extra sed commands mentioned above.
12506
      (echo ':t
12507
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12508
      if test -z "$ac_sed_cmds"; then
12509
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12510
      else
12511
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12512
      fi
12513
      ac_sed_frag=`expr $ac_sed_frag + 1`
12514
      ac_beg=$ac_end
12515
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12516
    fi
12517
  done
12518
  if test -z "$ac_sed_cmds"; then
12519
    ac_sed_cmds=cat
12520
  fi
12521
fi # test -n "$CONFIG_FILES"
12522
 
12523
_ACEOF
12524
cat >>$CONFIG_STATUS <<\_ACEOF
12525
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12526
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12527
  case $ac_file in
12528
  - | *:- | *:-:* ) # input from stdin
12529
        cat >$tmp/stdin
12530
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12531
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12532
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12533
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12534
  * )   ac_file_in=$ac_file.in ;;
12535
  esac
12536
 
12537
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12538
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12539
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12540
         X"$ac_file" : 'X\(//\)[^/]' \| \
12541
         X"$ac_file" : 'X\(//\)$' \| \
12542
         X"$ac_file" : 'X\(/\)' \| \
12543
         .     : '\(.\)' 2>/dev/null ||
12544
echo X"$ac_file" |
12545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12547
          /^X\(\/\/\)$/{ s//\1/; q; }
12548
          /^X\(\/\).*/{ s//\1/; q; }
12549
          s/.*/./; q'`
12550
  { if $as_mkdir_p; then
12551
    mkdir -p "$ac_dir"
12552
  else
12553
    as_dir="$ac_dir"
12554
    as_dirs=
12555
    while test ! -d "$as_dir"; do
12556
      as_dirs="$as_dir $as_dirs"
12557
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12558
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559
         X"$as_dir" : 'X\(//\)[^/]' \| \
12560
         X"$as_dir" : 'X\(//\)$' \| \
12561
         X"$as_dir" : 'X\(/\)' \| \
12562
         .     : '\(.\)' 2>/dev/null ||
12563
echo X"$as_dir" |
12564
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12565
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12566
          /^X\(\/\/\)$/{ s//\1/; q; }
12567
          /^X\(\/\).*/{ s//\1/; q; }
12568
          s/.*/./; q'`
12569
    done
12570
    test ! -n "$as_dirs" || mkdir $as_dirs
12571
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12572
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12573
   { (exit 1); exit 1; }; }; }
12574
 
12575
  ac_builddir=.
12576
 
12577
if test "$ac_dir" != .; then
12578
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12579
  # A "../" for each directory in $ac_dir_suffix.
12580
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12581
else
12582
  ac_dir_suffix= ac_top_builddir=
12583
fi
12584
 
12585
case $srcdir in
12586
  .)  # No --srcdir option.  We are building in place.
12587
    ac_srcdir=.
12588
    if test -z "$ac_top_builddir"; then
12589
       ac_top_srcdir=.
12590
    else
12591
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12592
    fi ;;
12593
  [\\/]* | ?:[\\/]* )  # Absolute path.
12594
    ac_srcdir=$srcdir$ac_dir_suffix;
12595
    ac_top_srcdir=$srcdir ;;
12596
  *) # Relative path.
12597
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12598
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12599
esac
12600
 
12601
# Do not use `cd foo && pwd` to compute absolute paths, because
12602
# the directories may not exist.
12603
case `pwd` in
12604
.) ac_abs_builddir="$ac_dir";;
12605
*)
12606
  case "$ac_dir" in
12607
  .) ac_abs_builddir=`pwd`;;
12608
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12609
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12610
  esac;;
12611
esac
12612
case $ac_abs_builddir in
12613
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12614
*)
12615
  case ${ac_top_builddir}. in
12616
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12617
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12618
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12619
  esac;;
12620
esac
12621
case $ac_abs_builddir in
12622
.) ac_abs_srcdir=$ac_srcdir;;
12623
*)
12624
  case $ac_srcdir in
12625
  .) ac_abs_srcdir=$ac_abs_builddir;;
12626
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12627
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12628
  esac;;
12629
esac
12630
case $ac_abs_builddir in
12631
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12632
*)
12633
  case $ac_top_srcdir in
12634
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12635
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12636
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12637
  esac;;
12638
esac
12639
 
12640
 
12641
  case $INSTALL in
12642
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12643
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12644
  esac
12645
 
12646
  if test x"$ac_file" != x-; then
12647
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12648
echo "$as_me: creating $ac_file" >&6;}
12649
    rm -f "$ac_file"
12650
  fi
12651
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12652
  # use $as_me), people would be surprised to read:
12653
  #    /* config.h.  Generated by config.status.  */
12654
  if test x"$ac_file" = x-; then
12655
    configure_input=
12656
  else
12657
    configure_input="$ac_file.  "
12658
  fi
12659
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12660
                                     sed 's,.*/,,'` by configure."
12661
 
12662
  # First look for the input files in the build tree, otherwise in the
12663
  # src tree.
12664
  ac_file_inputs=`IFS=:
12665
    for f in $ac_file_in; do
12666
      case $f in
12667
      -) echo $tmp/stdin ;;
12668
      [\\/$]*)
12669
         # Absolute (can't be DOS-style, as IFS=:)
12670
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12671
echo "$as_me: error: cannot find input file: $f" >&2;}
12672
   { (exit 1); exit 1; }; }
12673
         echo "$f";;
12674
      *) # Relative
12675
         if test -f "$f"; then
12676
           # Build tree
12677
           echo "$f"
12678
         elif test -f "$srcdir/$f"; then
12679
           # Source tree
12680
           echo "$srcdir/$f"
12681
         else
12682
           # /dev/null tree
12683
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12684
echo "$as_me: error: cannot find input file: $f" >&2;}
12685
   { (exit 1); exit 1; }; }
12686
         fi;;
12687
      esac
12688
    done` || { (exit 1); exit 1; }
12689
_ACEOF
12690
cat >>$CONFIG_STATUS <<_ACEOF
12691
  sed "$ac_vpsub
12692
$extrasub
12693
_ACEOF
12694
cat >>$CONFIG_STATUS <<\_ACEOF
12695
:t
12696
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12697
s,@configure_input@,$configure_input,;t t
12698
s,@srcdir@,$ac_srcdir,;t t
12699
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12700
s,@top_srcdir@,$ac_top_srcdir,;t t
12701
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12702
s,@builddir@,$ac_builddir,;t t
12703
s,@abs_builddir@,$ac_abs_builddir,;t t
12704
s,@top_builddir@,$ac_top_builddir,;t t
12705
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12706
s,@INSTALL@,$ac_INSTALL,;t t
12707
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12708
  rm -f $tmp/stdin
12709
  if test x"$ac_file" != x-; then
12710
    mv $tmp/out $ac_file
12711
  else
12712
    cat $tmp/out
12713
    rm -f $tmp/out
12714
  fi
12715
 
12716
done
12717
_ACEOF
12718
cat >>$CONFIG_STATUS <<\_ACEOF
12719
 
12720
#
12721
# CONFIG_COMMANDS section.
12722
#
12723
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12724
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12725
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12726
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12727
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12728
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12729
         X"$ac_dest" : 'X\(//\)$' \| \
12730
         X"$ac_dest" : 'X\(/\)' \| \
12731
         .     : '\(.\)' 2>/dev/null ||
12732
echo X"$ac_dest" |
12733
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12734
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12735
          /^X\(\/\/\)$/{ s//\1/; q; }
12736
          /^X\(\/\).*/{ s//\1/; q; }
12737
          s/.*/./; q'`
12738
  { if $as_mkdir_p; then
12739
    mkdir -p "$ac_dir"
12740
  else
12741
    as_dir="$ac_dir"
12742
    as_dirs=
12743
    while test ! -d "$as_dir"; do
12744
      as_dirs="$as_dir $as_dirs"
12745
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12746
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747
         X"$as_dir" : 'X\(//\)[^/]' \| \
12748
         X"$as_dir" : 'X\(//\)$' \| \
12749
         X"$as_dir" : 'X\(/\)' \| \
12750
         .     : '\(.\)' 2>/dev/null ||
12751
echo X"$as_dir" |
12752
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12753
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12754
          /^X\(\/\/\)$/{ s//\1/; q; }
12755
          /^X\(\/\).*/{ s//\1/; q; }
12756
          s/.*/./; q'`
12757
    done
12758
    test ! -n "$as_dirs" || mkdir $as_dirs
12759
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12760
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12761
   { (exit 1); exit 1; }; }; }
12762
 
12763
  ac_builddir=.
12764
 
12765
if test "$ac_dir" != .; then
12766
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12767
  # A "../" for each directory in $ac_dir_suffix.
12768
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12769
else
12770
  ac_dir_suffix= ac_top_builddir=
12771
fi
12772
 
12773
case $srcdir in
12774
  .)  # No --srcdir option.  We are building in place.
12775
    ac_srcdir=.
12776
    if test -z "$ac_top_builddir"; then
12777
       ac_top_srcdir=.
12778
    else
12779
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12780
    fi ;;
12781
  [\\/]* | ?:[\\/]* )  # Absolute path.
12782
    ac_srcdir=$srcdir$ac_dir_suffix;
12783
    ac_top_srcdir=$srcdir ;;
12784
  *) # Relative path.
12785
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12786
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12787
esac
12788
 
12789
# Do not use `cd foo && pwd` to compute absolute paths, because
12790
# the directories may not exist.
12791
case `pwd` in
12792
.) ac_abs_builddir="$ac_dir";;
12793
*)
12794
  case "$ac_dir" in
12795
  .) ac_abs_builddir=`pwd`;;
12796
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12797
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12798
  esac;;
12799
esac
12800
case $ac_abs_builddir in
12801
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12802
*)
12803
  case ${ac_top_builddir}. in
12804
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12805
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12806
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12807
  esac;;
12808
esac
12809
case $ac_abs_builddir in
12810
.) ac_abs_srcdir=$ac_srcdir;;
12811
*)
12812
  case $ac_srcdir in
12813
  .) ac_abs_srcdir=$ac_abs_builddir;;
12814
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12815
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12816
  esac;;
12817
esac
12818
case $ac_abs_builddir in
12819
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12820
*)
12821
  case $ac_top_srcdir in
12822
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12823
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12824
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12825
  esac;;
12826
esac
12827
 
12828
 
12829
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12830
echo "$as_me: executing $ac_dest commands" >&6;}
12831
  case $ac_dest in
12832
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12833
  # Strip MF so we end up with the name of the file.
12834
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12835
  # Check whether this is an Automake generated Makefile or not.
12836
  # We used to match only the files named `Makefile.in', but
12837
  # some people rename them; so instead we look at the file content.
12838
  # Grep'ing the first line is not enough: some people post-process
12839
  # each Makefile.in and add a new line on top of each file to say so.
12840
  # So let's grep whole file.
12841
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12842
    dirpart=`(dirname "$mf") 2>/dev/null ||
12843
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844
         X"$mf" : 'X\(//\)[^/]' \| \
12845
         X"$mf" : 'X\(//\)$' \| \
12846
         X"$mf" : 'X\(/\)' \| \
12847
         .     : '\(.\)' 2>/dev/null ||
12848
echo X"$mf" |
12849
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12850
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12851
          /^X\(\/\/\)$/{ s//\1/; q; }
12852
          /^X\(\/\).*/{ s//\1/; q; }
12853
          s/.*/./; q'`
12854
  else
12855
    continue
12856
  fi
12857
  # Extract the definition of DEPDIR, am__include, and am__quote
12858
  # from the Makefile without running `make'.
12859
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12860
  test -z "$DEPDIR" && continue
12861
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12862
  test -z "am__include" && continue
12863
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12864
  # When using ansi2knr, U may be empty or an underscore; expand it
12865
  U=`sed -n 's/^U = //p' < "$mf"`
12866
  # Find all dependency output files, they are included files with
12867
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12868
  # simplest approach to changing $(DEPDIR) to its actual value in the
12869
  # expansion.
12870
  for file in `sed -n "
12871
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12872
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12873
    # Make sure the directory exists.
12874
    test -f "$dirpart/$file" && continue
12875
    fdir=`(dirname "$file") 2>/dev/null ||
12876
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12877
         X"$file" : 'X\(//\)[^/]' \| \
12878
         X"$file" : 'X\(//\)$' \| \
12879
         X"$file" : 'X\(/\)' \| \
12880
         .     : '\(.\)' 2>/dev/null ||
12881
echo X"$file" |
12882
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12883
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12884
          /^X\(\/\/\)$/{ s//\1/; q; }
12885
          /^X\(\/\).*/{ s//\1/; q; }
12886
          s/.*/./; q'`
12887
    { if $as_mkdir_p; then
12888
    mkdir -p $dirpart/$fdir
12889
  else
12890
    as_dir=$dirpart/$fdir
12891
    as_dirs=
12892
    while test ! -d "$as_dir"; do
12893
      as_dirs="$as_dir $as_dirs"
12894
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12895
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896
         X"$as_dir" : 'X\(//\)[^/]' \| \
12897
         X"$as_dir" : 'X\(//\)$' \| \
12898
         X"$as_dir" : 'X\(/\)' \| \
12899
         .     : '\(.\)' 2>/dev/null ||
12900
echo X"$as_dir" |
12901
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12902
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12903
          /^X\(\/\/\)$/{ s//\1/; q; }
12904
          /^X\(\/\).*/{ s//\1/; q; }
12905
          s/.*/./; q'`
12906
    done
12907
    test ! -n "$as_dirs" || mkdir $as_dirs
12908
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12909
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12910
   { (exit 1); exit 1; }; }; }
12911
 
12912
    # echo "creating $dirpart/$file"
12913
    echo '# dummy' > "$dirpart/$file"
12914
  done
12915
done
12916
 ;;
12917
    libtool )
12918
 
12919
    # See if we are running on zsh, and set the options which allow our
12920
    # commands through without removal of \ escapes.
12921
    if test -n "${ZSH_VERSION+set}" ; then
12922
      setopt NO_GLOB_SUBST
12923
    fi
12924
 
12925
    cfgfile="${ofile}T"
12926
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12927
    $RM "$cfgfile"
12928
 
12929
    cat <<_LT_EOF >> "$cfgfile"
12930
#! $SHELL
12931
 
12932
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12933
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12934
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12935
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12936
#
12937
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12938
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12939
#   Written by Gordon Matzigkeit, 1996
12940
#
12941
#   This file is part of GNU Libtool.
12942
#
12943
# GNU Libtool is free software; you can redistribute it and/or
12944
# modify it under the terms of the GNU General Public License as
12945
# published by the Free Software Foundation; either version 2 of
12946
# the License, or (at your option) any later version.
12947
#
12948
# As a special exception to the GNU General Public License,
12949
# if you distribute this file as part of a program or library that
12950
# is built using GNU Libtool, you may include this file under the
12951
# same distribution terms that you use for the rest of that program.
12952
#
12953
# GNU Libtool is distributed in the hope that it will be useful,
12954
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12955
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12956
# GNU General Public License for more details.
12957
#
12958
# You should have received a copy of the GNU General Public License
12959
# along with GNU Libtool; see the file COPYING.  If not, a copy
12960
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12961
# obtained by writing to the Free Software Foundation, Inc.,
12962
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12963
 
12964
 
12965
# The names of the tagged configurations supported by this script.
12966
available_tags=""
12967
 
12968
# ### BEGIN LIBTOOL CONFIG
12969
 
12970
# A sed program that does not truncate output.
12971
SED=$lt_SED
12972
 
12973
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12974
Xsed="\$SED -e 1s/^X//"
12975
 
12976
# Assembler program.
12977
AS=$AS
12978
 
12979
# DLL creation program.
12980
DLLTOOL=$DLLTOOL
12981
 
12982
# Object dumper program.
12983
OBJDUMP=$OBJDUMP
12984
 
12985
# Which release of libtool.m4 was used?
12986
macro_version=$macro_version
12987
macro_revision=$macro_revision
12988
 
12989
# Whether or not to build shared libraries.
12990
build_libtool_libs=$enable_shared
12991
 
12992
# Whether or not to build static libraries.
12993
build_old_libs=$enable_static
12994
 
12995
# What type of objects to build.
12996
pic_mode=$pic_mode
12997
 
12998
# Whether or not to optimize for fast installation.
12999
fast_install=$enable_fast_install
13000
 
13001
# The host system.
13002
host_alias=$host_alias
13003
host=$host
13004
host_os=$host_os
13005
 
13006
# The build system.
13007
build_alias=$build_alias
13008
build=$build
13009
build_os=$build_os
13010
 
13011
# A grep program that handles long lines.
13012
GREP=$lt_GREP
13013
 
13014
# An ERE matcher.
13015
EGREP=$lt_EGREP
13016
 
13017
# A literal string matcher.
13018
FGREP=$lt_FGREP
13019
 
13020
# A BSD- or MS-compatible name lister.
13021
NM=$lt_NM
13022
 
13023
# Whether we need soft or hard links.
13024
LN_S=$lt_LN_S
13025
 
13026
# What is the maximum length of a command?
13027
max_cmd_len=$max_cmd_len
13028
 
13029
# Object file suffix (normally "o").
13030
objext=$ac_objext
13031
 
13032
# Executable file suffix (normally "").
13033
exeext=$exeext
13034
 
13035
# whether the shell understands "unset".
13036
lt_unset=$lt_unset
13037
 
13038
# turn spaces into newlines.
13039
SP2NL=$lt_lt_SP2NL
13040
 
13041
# turn newlines into spaces.
13042
NL2SP=$lt_lt_NL2SP
13043
 
13044
# How to create reloadable object files.
13045
reload_flag=$lt_reload_flag
13046
reload_cmds=$lt_reload_cmds
13047
 
13048
# Method to check whether dependent libraries are shared objects.
13049
deplibs_check_method=$lt_deplibs_check_method
13050
 
13051
# Command to use when deplibs_check_method == "file_magic".
13052
file_magic_cmd=$lt_file_magic_cmd
13053
 
13054
# The archiver.
13055
AR=$lt_AR
13056
AR_FLAGS=$lt_AR_FLAGS
13057
 
13058
# A symbol stripping program.
13059
STRIP=$lt_STRIP
13060
 
13061
# Commands used to install an old-style archive.
13062
RANLIB=$lt_RANLIB
13063
old_postinstall_cmds=$lt_old_postinstall_cmds
13064
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13065
 
13066
# A C compiler.
13067
LTCC=$lt_CC
13068
 
13069
# LTCC compiler flags.
13070
LTCFLAGS=$lt_CFLAGS
13071
 
13072
# Take the output of nm and produce a listing of raw symbols and C names.
13073
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13074
 
13075
# Transform the output of nm in a proper C declaration.
13076
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13077
 
13078
# Transform the output of nm in a C name address pair.
13079
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13080
 
13081
# Transform the output of nm in a C name address pair when lib prefix is needed.
13082
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13083
 
13084
# The name of the directory that contains temporary libtool files.
13085
objdir=$objdir
13086
 
13087
# Shell to use when invoking shell scripts.
13088
SHELL=$lt_SHELL
13089
 
13090
# An echo program that does not interpret backslashes.
13091
ECHO=$lt_ECHO
13092
 
13093
# Used to examine libraries when file_magic_cmd begins with "file".
13094
MAGIC_CMD=$MAGIC_CMD
13095
 
13096
# Must we lock files when doing compilation?
13097
need_locks=$lt_need_locks
13098
 
13099
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13100
DSYMUTIL=$lt_DSYMUTIL
13101
 
13102
# Tool to change global to local symbols on Mac OS X.
13103
NMEDIT=$lt_NMEDIT
13104
 
13105
# Tool to manipulate fat objects and archives on Mac OS X.
13106
LIPO=$lt_LIPO
13107
 
13108
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13109
OTOOL=$lt_OTOOL
13110
 
13111
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13112
OTOOL64=$lt_OTOOL64
13113
 
13114
# Old archive suffix (normally "a").
13115
libext=$libext
13116
 
13117
# Shared library suffix (normally ".so").
13118
shrext_cmds=$lt_shrext_cmds
13119
 
13120
# The commands to extract the exported symbol list from a shared archive.
13121
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13122
 
13123
# Variables whose values should be saved in libtool wrapper scripts and
13124
# restored at link time.
13125
variables_saved_for_relink=$lt_variables_saved_for_relink
13126
 
13127
# Do we need the "lib" prefix for modules?
13128
need_lib_prefix=$need_lib_prefix
13129
 
13130
# Do we need a version for libraries?
13131
need_version=$need_version
13132
 
13133
# Library versioning type.
13134
version_type=$version_type
13135
 
13136
# Shared library runtime path variable.
13137
runpath_var=$runpath_var
13138
 
13139
# Shared library path variable.
13140
shlibpath_var=$shlibpath_var
13141
 
13142
# Is shlibpath searched before the hard-coded library search path?
13143
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13144
 
13145
# Format of library name prefix.
13146
libname_spec=$lt_libname_spec
13147
 
13148
# List of archive names.  First name is the real one, the rest are links.
13149
# The last name is the one that the linker finds with -lNAME
13150
library_names_spec=$lt_library_names_spec
13151
 
13152
# The coded name of the library, if different from the real name.
13153
soname_spec=$lt_soname_spec
13154
 
13155
# Command to use after installation of a shared archive.
13156
postinstall_cmds=$lt_postinstall_cmds
13157
 
13158
# Command to use after uninstallation of a shared archive.
13159
postuninstall_cmds=$lt_postuninstall_cmds
13160
 
13161
# Commands used to finish a libtool library installation in a directory.
13162
finish_cmds=$lt_finish_cmds
13163
 
13164
# As "finish_cmds", except a single script fragment to be evaled but
13165
# not shown.
13166
finish_eval=$lt_finish_eval
13167
 
13168
# Whether we should hardcode library paths into libraries.
13169
hardcode_into_libs=$hardcode_into_libs
13170
 
13171
# Compile-time system search path for libraries.
13172
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13173
 
13174
# Run-time system search path for libraries.
13175
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13176
 
13177
# Whether dlopen is supported.
13178
dlopen_support=$enable_dlopen
13179
 
13180
# Whether dlopen of programs is supported.
13181
dlopen_self=$enable_dlopen_self
13182
 
13183
# Whether dlopen of statically linked programs is supported.
13184
dlopen_self_static=$enable_dlopen_self_static
13185
 
13186
# Commands to strip libraries.
13187
old_striplib=$lt_old_striplib
13188
striplib=$lt_striplib
13189
 
13190
 
13191
# The linker used to build libraries.
13192
LD=$lt_LD
13193
 
13194
# Commands used to build an old-style archive.
13195
old_archive_cmds=$lt_old_archive_cmds
13196
 
13197
# A language specific compiler.
13198
CC=$lt_compiler
13199
 
13200
# Is the compiler the GNU compiler?
13201
with_gcc=$GCC
13202
 
13203
# Compiler flag to turn off builtin functions.
13204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13205
 
13206
# How to pass a linker flag through the compiler.
13207
wl=$lt_lt_prog_compiler_wl
13208
 
13209
# Additional compiler flags for building library objects.
13210
pic_flag=$lt_lt_prog_compiler_pic
13211
 
13212
# Compiler flag to prevent dynamic linking.
13213
link_static_flag=$lt_lt_prog_compiler_static
13214
 
13215
# Does compiler simultaneously support -c and -o options?
13216
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13217
 
13218
# Whether or not to add -lc for building shared libraries.
13219
build_libtool_need_lc=$archive_cmds_need_lc
13220
 
13221
# Whether or not to disallow shared libs when runtime libs are static.
13222
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13223
 
13224
# Compiler flag to allow reflexive dlopens.
13225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13226
 
13227
# Compiler flag to generate shared objects directly from archives.
13228
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13229
 
13230
# Whether the compiler copes with passing no objects directly.
13231
compiler_needs_object=$lt_compiler_needs_object
13232
 
13233
# Create an old-style archive from a shared archive.
13234
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13235
 
13236
# Create a temporary old-style archive to link instead of a shared archive.
13237
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13238
 
13239
# Commands used to build a shared archive.
13240
archive_cmds=$lt_archive_cmds
13241
archive_expsym_cmds=$lt_archive_expsym_cmds
13242
 
13243
# Commands used to build a loadable module if different from building
13244
# a shared archive.
13245
module_cmds=$lt_module_cmds
13246
module_expsym_cmds=$lt_module_expsym_cmds
13247
 
13248
# Whether we are building with GNU ld or not.
13249
with_gnu_ld=$lt_with_gnu_ld
13250
 
13251
# Flag that allows shared libraries with undefined symbols to be built.
13252
allow_undefined_flag=$lt_allow_undefined_flag
13253
 
13254
# Flag that enforces no undefined symbols.
13255
no_undefined_flag=$lt_no_undefined_flag
13256
 
13257
# Flag to hardcode \$libdir into a binary during linking.
13258
# This must work even if \$libdir does not exist
13259
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13260
 
13261
# If ld is used when linking, flag to hardcode \$libdir into a binary
13262
# during linking.  This must work even if \$libdir does not exist.
13263
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13264
 
13265
# Whether we need a single "-rpath" flag with a separated argument.
13266
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13267
 
13268
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13269
# DIR into the resulting binary.
13270
hardcode_direct=$hardcode_direct
13271
 
13272
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13273
# DIR into the resulting binary and the resulting library dependency is
13274
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13275
# library is relocated.
13276
hardcode_direct_absolute=$hardcode_direct_absolute
13277
 
13278
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13279
# into the resulting binary.
13280
hardcode_minus_L=$hardcode_minus_L
13281
 
13282
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13283
# into the resulting binary.
13284
hardcode_shlibpath_var=$hardcode_shlibpath_var
13285
 
13286
# Set to "yes" if building a shared library automatically hardcodes DIR
13287
# into the library and all subsequent libraries and executables linked
13288
# against it.
13289
hardcode_automatic=$hardcode_automatic
13290
 
13291
# Set to yes if linker adds runtime paths of dependent libraries
13292
# to runtime path list.
13293
inherit_rpath=$inherit_rpath
13294
 
13295
# Whether libtool must link a program against all its dependency libraries.
13296
link_all_deplibs=$link_all_deplibs
13297
 
13298
# Fix the shell variable \$srcfile for the compiler.
13299
fix_srcfile_path=$lt_fix_srcfile_path
13300
 
13301
# Set to "yes" if exported symbols are required.
13302
always_export_symbols=$always_export_symbols
13303
 
13304
# The commands to list exported symbols.
13305
export_symbols_cmds=$lt_export_symbols_cmds
13306
 
13307
# Symbols that should not be listed in the preloaded symbols.
13308
exclude_expsyms=$lt_exclude_expsyms
13309
 
13310
# Symbols that must always be exported.
13311
include_expsyms=$lt_include_expsyms
13312
 
13313
# Commands necessary for linking programs (against libraries) with templates.
13314
prelink_cmds=$lt_prelink_cmds
13315
 
13316
# Specify filename containing input files.
13317
file_list_spec=$lt_file_list_spec
13318
 
13319
# How to hardcode a shared library path into an executable.
13320
hardcode_action=$hardcode_action
13321
 
13322
# ### END LIBTOOL CONFIG
13323
 
13324
_LT_EOF
13325
 
13326
  case $host_os in
13327
  aix3*)
13328
    cat <<\_LT_EOF >> "$cfgfile"
13329
# AIX sometimes has problems with the GCC collect2 program.  For some
13330
# reason, if we set the COLLECT_NAMES environment variable, the problems
13331
# vanish in a puff of smoke.
13332
if test "X${COLLECT_NAMES+set}" != Xset; then
13333
  COLLECT_NAMES=
13334
  export COLLECT_NAMES
13335
fi
13336
_LT_EOF
13337
    ;;
13338
  esac
13339
 
13340
 
13341
ltmain="$ac_aux_dir/ltmain.sh"
13342
 
13343
 
13344
  # We use sed instead of cat because bash on DJGPP gets confused if
13345
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13346
  # text mode, it properly converts lines to CR/LF.  This bash problem
13347
  # is reportedly fixed, but why not run on old versions too?
13348
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13349
    || (rm -f "$cfgfile"; exit 1)
13350
 
13351
  case $xsi_shell in
13352
  yes)
13353
    cat << \_LT_EOF >> "$cfgfile"
13354
 
13355
# func_dirname file append nondir_replacement
13356
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13357
# otherwise set result to NONDIR_REPLACEMENT.
13358
func_dirname ()
13359
{
13360
  case ${1} in
13361
    */*) func_dirname_result="${1%/*}${2}" ;;
13362
    *  ) func_dirname_result="${3}" ;;
13363
  esac
13364
}
13365
 
13366
# func_basename file
13367
func_basename ()
13368
{
13369
  func_basename_result="${1##*/}"
13370
}
13371
 
13372
# func_dirname_and_basename file append nondir_replacement
13373
# perform func_basename and func_dirname in a single function
13374
# call:
13375
#   dirname:  Compute the dirname of FILE.  If nonempty,
13376
#             add APPEND to the result, otherwise set result
13377
#             to NONDIR_REPLACEMENT.
13378
#             value returned in "$func_dirname_result"
13379
#   basename: Compute filename of FILE.
13380
#             value retuned in "$func_basename_result"
13381
# Implementation must be kept synchronized with func_dirname
13382
# and func_basename. For efficiency, we do not delegate to
13383
# those functions but instead duplicate the functionality here.
13384
func_dirname_and_basename ()
13385
{
13386
  case ${1} in
13387
    */*) func_dirname_result="${1%/*}${2}" ;;
13388
    *  ) func_dirname_result="${3}" ;;
13389
  esac
13390
  func_basename_result="${1##*/}"
13391
}
13392
 
13393
# func_stripname prefix suffix name
13394
# strip PREFIX and SUFFIX off of NAME.
13395
# PREFIX and SUFFIX must not contain globbing or regex special
13396
# characters, hashes, percent signs, but SUFFIX may contain a leading
13397
# dot (in which case that matches only a dot).
13398
func_stripname ()
13399
{
13400
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13401
  # positional parameters, so assign one to ordinary parameter first.
13402
  func_stripname_result=${3}
13403
  func_stripname_result=${func_stripname_result#"${1}"}
13404
  func_stripname_result=${func_stripname_result%"${2}"}
13405
}
13406
 
13407
# func_opt_split
13408
func_opt_split ()
13409
{
13410
  func_opt_split_opt=${1%%=*}
13411
  func_opt_split_arg=${1#*=}
13412
}
13413
 
13414
# func_lo2o object
13415
func_lo2o ()
13416
{
13417
  case ${1} in
13418
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13419
    *)    func_lo2o_result=${1} ;;
13420
  esac
13421
}
13422
 
13423
# func_xform libobj-or-source
13424
func_xform ()
13425
{
13426
  func_xform_result=${1%.*}.lo
13427
}
13428
 
13429
# func_arith arithmetic-term...
13430
func_arith ()
13431
{
13432
  func_arith_result=$(( $* ))
13433
}
13434
 
13435
# func_len string
13436
# STRING may not start with a hyphen.
13437
func_len ()
13438
{
13439
  func_len_result=${#1}
13440
}
13441
 
13442
_LT_EOF
13443
    ;;
13444
  *) # Bourne compatible functions.
13445
    cat << \_LT_EOF >> "$cfgfile"
13446
 
13447
# func_dirname file append nondir_replacement
13448
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13449
# otherwise set result to NONDIR_REPLACEMENT.
13450
func_dirname ()
13451
{
13452
  # Extract subdirectory from the argument.
13453
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13454
  if test "X$func_dirname_result" = "X${1}"; then
13455
    func_dirname_result="${3}"
13456
  else
13457
    func_dirname_result="$func_dirname_result${2}"
13458
  fi
13459
}
13460
 
13461
# func_basename file
13462
func_basename ()
13463
{
13464
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13465
}
13466
 
13467
 
13468
# func_stripname prefix suffix name
13469
# strip PREFIX and SUFFIX off of NAME.
13470
# PREFIX and SUFFIX must not contain globbing or regex special
13471
# characters, hashes, percent signs, but SUFFIX may contain a leading
13472
# dot (in which case that matches only a dot).
13473
# func_strip_suffix prefix name
13474
func_stripname ()
13475
{
13476
  case ${2} in
13477
    .*) func_stripname_result=`$ECHO "X${3}" \
13478
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13479
    *)  func_stripname_result=`$ECHO "X${3}" \
13480
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13481
  esac
13482
}
13483
 
13484
# sed scripts:
13485
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13486
my_sed_long_arg='1s/^-[^=]*=//'
13487
 
13488
# func_opt_split
13489
func_opt_split ()
13490
{
13491
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13492
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13493
}
13494
 
13495
# func_lo2o object
13496
func_lo2o ()
13497
{
13498
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13499
}
13500
 
13501
# func_xform libobj-or-source
13502
func_xform ()
13503
{
13504
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13505
}
13506
 
13507
# func_arith arithmetic-term...
13508
func_arith ()
13509
{
13510
  func_arith_result=`expr "$@"`
13511
}
13512
 
13513
# func_len string
13514
# STRING may not start with a hyphen.
13515
func_len ()
13516
{
13517
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13518
}
13519
 
13520
_LT_EOF
13521
esac
13522
 
13523
case $lt_shell_append in
13524
  yes)
13525
    cat << \_LT_EOF >> "$cfgfile"
13526
 
13527
# func_append var value
13528
# Append VALUE to the end of shell variable VAR.
13529
func_append ()
13530
{
13531
  eval "$1+=\$2"
13532
}
13533
_LT_EOF
13534
    ;;
13535
  *)
13536
    cat << \_LT_EOF >> "$cfgfile"
13537
 
13538
# func_append var value
13539
# Append VALUE to the end of shell variable VAR.
13540
func_append ()
13541
{
13542
  eval "$1=\$$1\$2"
13543
}
13544
 
13545
_LT_EOF
13546
    ;;
13547
  esac
13548
 
13549
 
13550
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13551
    || (rm -f "$cfgfile"; exit 1)
13552
 
13553
  mv -f "$cfgfile" "$ofile" ||
13554
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13555
  chmod +x "$ofile"
13556
 
13557
 ;;
13558
  esac
13559
done
13560
_ACEOF
13561
 
13562
cat >>$CONFIG_STATUS <<\_ACEOF
13563
 
13564
{ (exit 0); exit 0; }
13565
_ACEOF
13566
chmod +x $CONFIG_STATUS
13567
ac_clean_files=$ac_clean_files_save
13568
 
13569
 
13570
# configure is writing to config.log, and then calls config.status.
13571
# config.status does its own redirection, appending to config.log.
13572
# Unfortunately, on DOS this fails, as config.log is still kept open
13573
# by configure, so config.status won't be able to write to it; its
13574
# output is simply discarded.  So we exec the FD to /dev/null,
13575
# effectively closing config.log, so it can be properly (re)opened and
13576
# appended to by config.status.  When coming back to configure, we
13577
# need to make the FD available again.
13578
if test "$no_create" != yes; then
13579
  ac_cs_success=:
13580
  ac_config_status_args=
13581
  test "$silent" = yes &&
13582
    ac_config_status_args="$ac_config_status_args --quiet"
13583
  exec 5>/dev/null
13584
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13585
  exec 5>>config.log
13586
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13587
  # would make configure fail if this is the last instruction.
13588
  $ac_cs_success || { (exit 1); exit 1; }
13589
fi
13590
 
13591
#
13592
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13593
#
13594
if test "$no_recursion" != yes; then
13595
 
13596
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13597
  ac_sub_configure_args=
13598
  ac_prev=
13599
  eval "set x $ac_configure_args"
13600
  shift
13601
  for ac_arg
13602
  do
13603
    if test -n "$ac_prev"; then
13604
      ac_prev=
13605
      continue
13606
    fi
13607
    case $ac_arg in
13608
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13609
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13610
      ac_prev=cache_file ;;
13611
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13612
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13613
    | --c=*)
13614
      ;;
13615
    --config-cache | -C)
13616
      ;;
13617
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13618
      ac_prev=srcdir ;;
13619
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13620
      ;;
13621
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13622
      ac_prev=prefix ;;
13623
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13624
      ;;
13625
    *)
13626
      case $ac_arg in
13627
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13628
      esac
13629
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13630
    esac
13631
  done
13632
 
13633
  # Always prepend --prefix to ensure using the same prefix
13634
  # in subdir configurations.
13635
  ac_arg="--prefix=$prefix"
13636
  case $ac_arg in
13637
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13638
  esac
13639
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13640
 
13641
  ac_popdir=`pwd`
13642
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13643
 
13644
    # Do not complain, so a configure script can configure whichever
13645
    # parts of a large source tree are present.
13646
    test -d "$srcdir/$ac_dir" || continue
13647
 
13648
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13649
echo "$as_me: configuring in $ac_dir" >&6;}
13650
    { if $as_mkdir_p; then
13651
    mkdir -p "$ac_dir"
13652
  else
13653
    as_dir="$ac_dir"
13654
    as_dirs=
13655
    while test ! -d "$as_dir"; do
13656
      as_dirs="$as_dir $as_dirs"
13657
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13658
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13659
         X"$as_dir" : 'X\(//\)[^/]' \| \
13660
         X"$as_dir" : 'X\(//\)$' \| \
13661
         X"$as_dir" : 'X\(/\)' \| \
13662
         .     : '\(.\)' 2>/dev/null ||
13663
echo X"$as_dir" |
13664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13665
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13666
          /^X\(\/\/\)$/{ s//\1/; q; }
13667
          /^X\(\/\).*/{ s//\1/; q; }
13668
          s/.*/./; q'`
13669
    done
13670
    test ! -n "$as_dirs" || mkdir $as_dirs
13671
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13672
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13673
   { (exit 1); exit 1; }; }; }
13674
 
13675
    ac_builddir=.
13676
 
13677
if test "$ac_dir" != .; then
13678
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13679
  # A "../" for each directory in $ac_dir_suffix.
13680
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13681
else
13682
  ac_dir_suffix= ac_top_builddir=
13683
fi
13684
 
13685
case $srcdir in
13686
  .)  # No --srcdir option.  We are building in place.
13687
    ac_srcdir=.
13688
    if test -z "$ac_top_builddir"; then
13689
       ac_top_srcdir=.
13690
    else
13691
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13692
    fi ;;
13693
  [\\/]* | ?:[\\/]* )  # Absolute path.
13694
    ac_srcdir=$srcdir$ac_dir_suffix;
13695
    ac_top_srcdir=$srcdir ;;
13696
  *) # Relative path.
13697
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13698
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13699
esac
13700
 
13701
# Do not use `cd foo && pwd` to compute absolute paths, because
13702
# the directories may not exist.
13703
case `pwd` in
13704
.) ac_abs_builddir="$ac_dir";;
13705
*)
13706
  case "$ac_dir" in
13707
  .) ac_abs_builddir=`pwd`;;
13708
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13709
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13710
  esac;;
13711
esac
13712
case $ac_abs_builddir in
13713
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13714
*)
13715
  case ${ac_top_builddir}. in
13716
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13717
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13718
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13719
  esac;;
13720
esac
13721
case $ac_abs_builddir in
13722
.) ac_abs_srcdir=$ac_srcdir;;
13723
*)
13724
  case $ac_srcdir in
13725
  .) ac_abs_srcdir=$ac_abs_builddir;;
13726
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13727
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13728
  esac;;
13729
esac
13730
case $ac_abs_builddir in
13731
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13732
*)
13733
  case $ac_top_srcdir in
13734
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13735
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13736
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13737
  esac;;
13738
esac
13739
 
13740
 
13741
    cd "$ac_dir"
13742
 
13743
    # Check for guested configure; otherwise get Cygnus style configure.
13744
    if test -f "$ac_srcdir/configure.gnu"; then
13745
      ac_sub_configure=$ac_srcdir/configure.gnu
13746
    elif test -f "$ac_srcdir/configure"; then
13747
      ac_sub_configure=$ac_srcdir/configure
13748
    elif test -f "$ac_srcdir/configure.in"; then
13749
      # This should be Cygnus configure.
13750
      ac_sub_configure=$ac_aux_dir/configure
13751
    else
13752
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13753
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13754
      ac_sub_configure=
13755
    fi
13756
 
13757
    # The recursion is here.
13758
    if test -n "$ac_sub_configure"; then
13759
      # Make the cache file name correct relative to the subdirectory.
13760
      case $cache_file in
13761
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13762
      *) # Relative path.
13763
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13764
      esac
13765
 
13766
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13767
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13768
      # The eval makes quoting arguments work.
13769
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13770
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13771
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13772
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13773
   { (exit 1); exit 1; }; }
13774
    fi
13775
 
13776
    cd "$ac_popdir"
13777
  done
13778
fi
13779
 

powered by: WebSVN 2.1.0

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