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

Subversion Repositories openrisc_me

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

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="setjmp.S"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP MACH_ADD_SETJMP_TRUE MACH_ADD_SETJMP_FALSE LIBOBJS LTLIBOBJS'
462
ac_subst_files=''
463
 
464
# Initialize some variables set by options.
465
ac_init_help=
466
ac_init_version=false
467
# The variables have the same names as the options, with
468
# dashes changed to underlines.
469
cache_file=/dev/null
470
exec_prefix=NONE
471
no_create=
472
no_recursion=
473
prefix=NONE
474
program_prefix=NONE
475
program_suffix=NONE
476
program_transform_name=s,x,x,
477
silent=
478
site=
479
srcdir=
480
verbose=
481
x_includes=NONE
482
x_libraries=NONE
483
 
484
# Installation directory options.
485
# These are left unexpanded so users can "make install exec_prefix=/foo"
486
# and all the variables that are supposed to be based on exec_prefix
487
# by default will actually change.
488
# Use braces instead of parens because sh, perl, etc. also accept them.
489
bindir='${exec_prefix}/bin'
490
sbindir='${exec_prefix}/sbin'
491
libexecdir='${exec_prefix}/libexec'
492
datadir='${prefix}/share'
493
sysconfdir='${prefix}/etc'
494
sharedstatedir='${prefix}/com'
495
localstatedir='${prefix}/var'
496
libdir='${exec_prefix}/lib'
497
includedir='${prefix}/include'
498
oldincludedir='/usr/include'
499
infodir='${prefix}/info'
500
mandir='${prefix}/man'
501
 
502
ac_prev=
503
for ac_option
504
do
505
  # If the previous option needs an argument, assign it.
506
  if test -n "$ac_prev"; then
507
    eval "$ac_prev=\$ac_option"
508
    ac_prev=
509
    continue
510
  fi
511
 
512
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
 
514
  # Accept the important Cygnus configure options, so we can diagnose typos.
515
 
516
  case $ac_option in
517
 
518
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519
    ac_prev=bindir ;;
520
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521
    bindir=$ac_optarg ;;
522
 
523
  -build | --build | --buil | --bui | --bu)
524
    ac_prev=build_alias ;;
525
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526
    build_alias=$ac_optarg ;;
527
 
528
  -cache-file | --cache-file | --cache-fil | --cache-fi \
529
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530
    ac_prev=cache_file ;;
531
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533
    cache_file=$ac_optarg ;;
534
 
535
  --config-cache | -C)
536
    cache_file=config.cache ;;
537
 
538
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539
    ac_prev=datadir ;;
540
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541
  | --da=*)
542
    datadir=$ac_optarg ;;
543
 
544
  -disable-* | --disable-*)
545
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546
    # Reject names that are not valid shell variable names.
547
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549
   { (exit 1); exit 1; }; }
550
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551
    eval "enable_$ac_feature=no" ;;
552
 
553
  -enable-* | --enable-*)
554
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555
    # Reject names that are not valid shell variable names.
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
   { (exit 1); exit 1; }; }
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
    case $ac_option in
561
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562
      *) ac_optarg=yes ;;
563
    esac
564
    eval "enable_$ac_feature='$ac_optarg'" ;;
565
 
566
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568
  | --exec | --exe | --ex)
569
    ac_prev=exec_prefix ;;
570
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572
  | --exec=* | --exe=* | --ex=*)
573
    exec_prefix=$ac_optarg ;;
574
 
575
  -gas | --gas | --ga | --g)
576
    # Obsolete; use --with-gas.
577
    with_gas=yes ;;
578
 
579
  -help | --help | --hel | --he | -h)
580
    ac_init_help=long ;;
581
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582
    ac_init_help=recursive ;;
583
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584
    ac_init_help=short ;;
585
 
586
  -host | --host | --hos | --ho)
587
    ac_prev=host_alias ;;
588
  -host=* | --host=* | --hos=* | --ho=*)
589
    host_alias=$ac_optarg ;;
590
 
591
  -includedir | --includedir | --includedi | --included | --include \
592
  | --includ | --inclu | --incl | --inc)
593
    ac_prev=includedir ;;
594
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595
  | --includ=* | --inclu=* | --incl=* | --inc=*)
596
    includedir=$ac_optarg ;;
597
 
598
  -infodir | --infodir | --infodi | --infod | --info | --inf)
599
    ac_prev=infodir ;;
600
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601
    infodir=$ac_optarg ;;
602
 
603
  -libdir | --libdir | --libdi | --libd)
604
    ac_prev=libdir ;;
605
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606
    libdir=$ac_optarg ;;
607
 
608
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609
  | --libexe | --libex | --libe)
610
    ac_prev=libexecdir ;;
611
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612
  | --libexe=* | --libex=* | --libe=*)
613
    libexecdir=$ac_optarg ;;
614
 
615
  -localstatedir | --localstatedir | --localstatedi | --localstated \
616
  | --localstate | --localstat | --localsta | --localst \
617
  | --locals | --local | --loca | --loc | --lo)
618
    ac_prev=localstatedir ;;
619
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622
    localstatedir=$ac_optarg ;;
623
 
624
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625
    ac_prev=mandir ;;
626
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
    mandir=$ac_optarg ;;
628
 
629
  -nfp | --nfp | --nf)
630
    # Obsolete; use --without-fp.
631
    with_fp=no ;;
632
 
633
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634
  | --no-cr | --no-c | -n)
635
    no_create=yes ;;
636
 
637
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639
    no_recursion=yes ;;
640
 
641
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643
  | --oldin | --oldi | --old | --ol | --o)
644
    ac_prev=oldincludedir ;;
645
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648
    oldincludedir=$ac_optarg ;;
649
 
650
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651
    ac_prev=prefix ;;
652
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653
    prefix=$ac_optarg ;;
654
 
655
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656
  | --program-pre | --program-pr | --program-p)
657
    ac_prev=program_prefix ;;
658
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660
    program_prefix=$ac_optarg ;;
661
 
662
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663
  | --program-suf | --program-su | --program-s)
664
    ac_prev=program_suffix ;;
665
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667
    program_suffix=$ac_optarg ;;
668
 
669
  -program-transform-name | --program-transform-name \
670
  | --program-transform-nam | --program-transform-na \
671
  | --program-transform-n | --program-transform- \
672
  | --program-transform | --program-transfor \
673
  | --program-transfo | --program-transf \
674
  | --program-trans | --program-tran \
675
  | --progr-tra | --program-tr | --program-t)
676
    ac_prev=program_transform_name ;;
677
  -program-transform-name=* | --program-transform-name=* \
678
  | --program-transform-nam=* | --program-transform-na=* \
679
  | --program-transform-n=* | --program-transform-=* \
680
  | --program-transform=* | --program-transfor=* \
681
  | --program-transfo=* | --program-transf=* \
682
  | --program-trans=* | --program-tran=* \
683
  | --progr-tra=* | --program-tr=* | --program-t=*)
684
    program_transform_name=$ac_optarg ;;
685
 
686
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687
  | -silent | --silent | --silen | --sile | --sil)
688
    silent=yes ;;
689
 
690
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691
    ac_prev=sbindir ;;
692
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693
  | --sbi=* | --sb=*)
694
    sbindir=$ac_optarg ;;
695
 
696
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698
  | --sharedst | --shareds | --shared | --share | --shar \
699
  | --sha | --sh)
700
    ac_prev=sharedstatedir ;;
701
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704
  | --sha=* | --sh=*)
705
    sharedstatedir=$ac_optarg ;;
706
 
707
  -site | --site | --sit)
708
    ac_prev=site ;;
709
  -site=* | --site=* | --sit=*)
710
    site=$ac_optarg ;;
711
 
712
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713
    ac_prev=srcdir ;;
714
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715
    srcdir=$ac_optarg ;;
716
 
717
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718
  | --syscon | --sysco | --sysc | --sys | --sy)
719
    ac_prev=sysconfdir ;;
720
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722
    sysconfdir=$ac_optarg ;;
723
 
724
  -target | --target | --targe | --targ | --tar | --ta | --t)
725
    ac_prev=target_alias ;;
726
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727
    target_alias=$ac_optarg ;;
728
 
729
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730
    verbose=yes ;;
731
 
732
  -version | --version | --versio | --versi | --vers | -V)
733
    ac_init_version=: ;;
734
 
735
  -with-* | --with-*)
736
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737
    # Reject names that are not valid shell variable names.
738
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739
      { echo "$as_me: error: invalid package name: $ac_package" >&2
740
   { (exit 1); exit 1; }; }
741
    ac_package=`echo $ac_package| sed 's/-/_/g'`
742
    case $ac_option in
743
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744
      *) ac_optarg=yes ;;
745
    esac
746
    eval "with_$ac_package='$ac_optarg'" ;;
747
 
748
  -without-* | --without-*)
749
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750
    # Reject names that are not valid shell variable names.
751
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752
      { echo "$as_me: error: invalid package name: $ac_package" >&2
753
   { (exit 1); exit 1; }; }
754
    ac_package=`echo $ac_package | sed 's/-/_/g'`
755
    eval "with_$ac_package=no" ;;
756
 
757
  --x)
758
    # Obsolete; use --with-x.
759
    with_x=yes ;;
760
 
761
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762
  | --x-incl | --x-inc | --x-in | --x-i)
763
    ac_prev=x_includes ;;
764
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766
    x_includes=$ac_optarg ;;
767
 
768
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770
    ac_prev=x_libraries ;;
771
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773
    x_libraries=$ac_optarg ;;
774
 
775
  -*) { echo "$as_me: error: unrecognized option: $ac_option
776
Try \`$0 --help' for more information." >&2
777
   { (exit 1); exit 1; }; }
778
    ;;
779
 
780
  *=*)
781
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782
    # Reject names that are not valid shell variable names.
783
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785
   { (exit 1); exit 1; }; }
786
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787
    eval "$ac_envvar='$ac_optarg'"
788
    export $ac_envvar ;;
789
 
790
  *)
791
    # FIXME: should be removed in autoconf 3.0.
792
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796
    ;;
797
 
798
  esac
799
done
800
 
801
if test -n "$ac_prev"; then
802
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803
  { echo "$as_me: error: missing argument to $ac_option" >&2
804
   { (exit 1); exit 1; }; }
805
fi
806
 
807
# Be sure to have absolute paths.
808
for ac_var in exec_prefix prefix
809
do
810
  eval ac_val=$`echo $ac_var`
811
  case $ac_val in
812
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814
   { (exit 1); exit 1; }; };;
815
  esac
816
done
817
 
818
# Be sure to have absolute paths.
819
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
              localstatedir libdir includedir oldincludedir infodir mandir
821
do
822
  eval ac_val=$`echo $ac_var`
823
  case $ac_val in
824
    [\\/$]* | ?:[\\/]* ) ;;
825
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
   { (exit 1); exit 1; }; };;
827
  esac
828
done
829
 
830
# There might be people who depend on the old broken behavior: `$host'
831
# used to hold the argument of --host etc.
832
# FIXME: To remove some day.
833
build=$build_alias
834
host=$host_alias
835
target=$target_alias
836
 
837
# FIXME: To remove some day.
838
if test "x$host_alias" != x; then
839
  if test "x$build_alias" = x; then
840
    cross_compiling=maybe
841
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842
    If a cross compiler is detected then cross compile mode will be used." >&2
843
  elif test "x$build_alias" != "x$host_alias"; then
844
    cross_compiling=yes
845
  fi
846
fi
847
 
848
ac_tool_prefix=
849
test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
 
851
test "$silent" = yes && exec 6>/dev/null
852
 
853
 
854
# Find the source files, if location was not specified.
855
if test -z "$srcdir"; then
856
  ac_srcdir_defaulted=yes
857
  # Try the directory containing this script, then its parent.
858
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
         X"$0" : 'X\(//\)[^/]' \| \
861
         X"$0" : 'X\(//\)$' \| \
862
         X"$0" : 'X\(/\)' \| \
863
         .     : '\(.\)' 2>/dev/null ||
864
echo X"$0" |
865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867
          /^X\(\/\/\)$/{ s//\1/; q; }
868
          /^X\(\/\).*/{ s//\1/; q; }
869
          s/.*/./; q'`
870
  srcdir=$ac_confdir
871
  if test ! -r $srcdir/$ac_unique_file; then
872
    srcdir=..
873
  fi
874
else
875
  ac_srcdir_defaulted=no
876
fi
877
if test ! -r $srcdir/$ac_unique_file; then
878
  if test "$ac_srcdir_defaulted" = yes; then
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880
   { (exit 1); exit 1; }; }
881
  else
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883
   { (exit 1); exit 1; }; }
884
  fi
885
fi
886
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888
   { (exit 1); exit 1; }; }
889
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890
ac_env_build_alias_set=${build_alias+set}
891
ac_env_build_alias_value=$build_alias
892
ac_cv_env_build_alias_set=${build_alias+set}
893
ac_cv_env_build_alias_value=$build_alias
894
ac_env_host_alias_set=${host_alias+set}
895
ac_env_host_alias_value=$host_alias
896
ac_cv_env_host_alias_set=${host_alias+set}
897
ac_cv_env_host_alias_value=$host_alias
898
ac_env_target_alias_set=${target_alias+set}
899
ac_env_target_alias_value=$target_alias
900
ac_cv_env_target_alias_set=${target_alias+set}
901
ac_cv_env_target_alias_value=$target_alias
902
ac_env_CCAS_set=${CCAS+set}
903
ac_env_CCAS_value=$CCAS
904
ac_cv_env_CCAS_set=${CCAS+set}
905
ac_cv_env_CCAS_value=$CCAS
906
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
907
ac_env_CCASFLAGS_value=$CCASFLAGS
908
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
909
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
910
ac_env_CC_set=${CC+set}
911
ac_env_CC_value=$CC
912
ac_cv_env_CC_set=${CC+set}
913
ac_cv_env_CC_value=$CC
914
ac_env_CFLAGS_set=${CFLAGS+set}
915
ac_env_CFLAGS_value=$CFLAGS
916
ac_cv_env_CFLAGS_set=${CFLAGS+set}
917
ac_cv_env_CFLAGS_value=$CFLAGS
918
ac_env_LDFLAGS_set=${LDFLAGS+set}
919
ac_env_LDFLAGS_value=$LDFLAGS
920
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921
ac_cv_env_LDFLAGS_value=$LDFLAGS
922
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923
ac_env_CPPFLAGS_value=$CPPFLAGS
924
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926
ac_env_CPP_set=${CPP+set}
927
ac_env_CPP_value=$CPP
928
ac_cv_env_CPP_set=${CPP+set}
929
ac_cv_env_CPP_value=$CPP
930
 
931
#
932
# Report the --help message.
933
#
934
if test "$ac_init_help" = "long"; then
935
  # Omit some internal or obsolete options to make the list less imposing.
936
  # This message is too long to be a string in the A/UX 3.1 sh.
937
  cat <<_ACEOF
938
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
939
 
940
Usage: $0 [OPTION]... [VAR=VALUE]...
941
 
942
To assign environment variables (e.g., CC, CFLAGS...), specify them as
943
VAR=VALUE.  See below for descriptions of some of the useful variables.
944
 
945
Defaults for the options are specified in brackets.
946
 
947
Configuration:
948
  -h, --help              display this help and exit
949
      --help=short        display options specific to this package
950
      --help=recursive    display the short help of all the included packages
951
  -V, --version           display version information and exit
952
  -q, --quiet, --silent   do not print \`checking...' messages
953
      --cache-file=FILE   cache test results in FILE [disabled]
954
  -C, --config-cache      alias for \`--cache-file=config.cache'
955
  -n, --no-create         do not create output files
956
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
957
 
958
_ACEOF
959
 
960
  cat <<_ACEOF
961
Installation directories:
962
  --prefix=PREFIX         install architecture-independent files in PREFIX
963
                          [$ac_default_prefix]
964
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
965
                          [PREFIX]
966
 
967
By default, \`make install' will install all the files in
968
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
969
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970
for instance \`--prefix=\$HOME'.
971
 
972
For better control, use the options below.
973
 
974
Fine tuning of the installation directories:
975
  --bindir=DIR           user executables [EPREFIX/bin]
976
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
977
  --libexecdir=DIR       program executables [EPREFIX/libexec]
978
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
979
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
980
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
981
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
982
  --libdir=DIR           object code libraries [EPREFIX/lib]
983
  --includedir=DIR       C header files [PREFIX/include]
984
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
985
  --infodir=DIR          info documentation [PREFIX/info]
986
  --mandir=DIR           man documentation [PREFIX/man]
987
_ACEOF
988
 
989
  cat <<\_ACEOF
990
 
991
Program names:
992
  --program-prefix=PREFIX            prepend PREFIX to installed program names
993
  --program-suffix=SUFFIX            append SUFFIX to installed program names
994
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
995
 
996
System types:
997
  --build=BUILD     configure for building on BUILD [guessed]
998
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
999
_ACEOF
1000
fi
1001
 
1002
if test -n "$ac_init_help"; then
1003
  case $ac_init_help in
1004
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1005
   esac
1006
  cat <<\_ACEOF
1007
 
1008
Optional Features:
1009
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011
  --enable-multilib         build many library versions (default)
1012
  --enable-target-optspace  optimize for space
1013
  --enable-malloc-debugging indicate malloc debugging requested
1014
  --enable-newlib-multithread        enable support for multiple threads
1015
  --enable-newlib-iconv     enable iconv library support
1016
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1017
  --disable-newlib-io-float disable printf/scanf family float support
1018
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1019
  --disable-dependency-tracking  speeds up one-time build
1020
  --enable-dependency-tracking   do not reject slow dependency extractors
1021
  --enable-maintainer-mode  enable make rules and dependencies not useful
1022
                          (and sometimes confusing) to the casual installer
1023
  --enable-shared[=PKGS]
1024
                          build shared libraries [default=yes]
1025
  --enable-static[=PKGS]
1026
                          build static libraries [default=yes]
1027
  --enable-fast-install[=PKGS]
1028
                          optimize for fast installation [default=yes]
1029
  --disable-libtool-lock  avoid locking (might break parallel builds)
1030
 
1031
Optional Packages:
1032
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1033
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1034
  --with-pic              try to use only PIC/non-PIC objects [default=use
1035
                          both]
1036
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1037
 
1038
Some influential environment variables:
1039
  CCAS        assembler compiler command (defaults to CC)
1040
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1041
  CC          C compiler command
1042
  CFLAGS      C compiler flags
1043
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1044
              nonstandard directory 
1045
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1046
              headers in a nonstandard directory 
1047
  CPP         C preprocessor
1048
 
1049
Use these variables to override the choices made by `configure' or to help
1050
it to find libraries and programs with nonstandard names/locations.
1051
 
1052
_ACEOF
1053
fi
1054
 
1055
if test "$ac_init_help" = "recursive"; then
1056
  # If there are subdirs, report their specific --help.
1057
  ac_popdir=`pwd`
1058
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1059
    test -d $ac_dir || continue
1060
    ac_builddir=.
1061
 
1062
if test "$ac_dir" != .; then
1063
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1064
  # A "../" for each directory in $ac_dir_suffix.
1065
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1066
else
1067
  ac_dir_suffix= ac_top_builddir=
1068
fi
1069
 
1070
case $srcdir in
1071
  .)  # No --srcdir option.  We are building in place.
1072
    ac_srcdir=.
1073
    if test -z "$ac_top_builddir"; then
1074
       ac_top_srcdir=.
1075
    else
1076
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1077
    fi ;;
1078
  [\\/]* | ?:[\\/]* )  # Absolute path.
1079
    ac_srcdir=$srcdir$ac_dir_suffix;
1080
    ac_top_srcdir=$srcdir ;;
1081
  *) # Relative path.
1082
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1083
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1084
esac
1085
 
1086
# Do not use `cd foo && pwd` to compute absolute paths, because
1087
# the directories may not exist.
1088
case `pwd` in
1089
.) ac_abs_builddir="$ac_dir";;
1090
*)
1091
  case "$ac_dir" in
1092
  .) ac_abs_builddir=`pwd`;;
1093
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1094
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1095
  esac;;
1096
esac
1097
case $ac_abs_builddir in
1098
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1099
*)
1100
  case ${ac_top_builddir}. in
1101
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1102
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1103
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1104
  esac;;
1105
esac
1106
case $ac_abs_builddir in
1107
.) ac_abs_srcdir=$ac_srcdir;;
1108
*)
1109
  case $ac_srcdir in
1110
  .) ac_abs_srcdir=$ac_abs_builddir;;
1111
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1112
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1113
  esac;;
1114
esac
1115
case $ac_abs_builddir in
1116
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1117
*)
1118
  case $ac_top_srcdir in
1119
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1120
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1121
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122
  esac;;
1123
esac
1124
 
1125
    cd $ac_dir
1126
    # Check for guested configure; otherwise get Cygnus style configure.
1127
    if test -f $ac_srcdir/configure.gnu; then
1128
      echo
1129
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1130
    elif test -f $ac_srcdir/configure; then
1131
      echo
1132
      $SHELL $ac_srcdir/configure  --help=recursive
1133
    elif test -f $ac_srcdir/configure.ac ||
1134
           test -f $ac_srcdir/configure.in; then
1135
      echo
1136
      $ac_configure --help
1137
    else
1138
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139
    fi
1140
    cd $ac_popdir
1141
  done
1142
fi
1143
 
1144
test -n "$ac_init_help" && exit 0
1145
if $ac_init_version; then
1146
  cat <<\_ACEOF
1147
newlib configure 1.17.0
1148
generated by GNU Autoconf 2.59
1149
 
1150
Copyright (C) 2003 Free Software Foundation, Inc.
1151
This configure script is free software; the Free Software Foundation
1152
gives unlimited permission to copy, distribute and modify it.
1153
_ACEOF
1154
  exit 0
1155
fi
1156
exec 5>config.log
1157
cat >&5 <<_ACEOF
1158
This file contains any messages produced by compilers while
1159
running configure, to aid debugging if configure makes a mistake.
1160
 
1161
It was created by newlib $as_me 1.17.0, which was
1162
generated by GNU Autoconf 2.59.  Invocation command line was
1163
 
1164
  $ $0 $@
1165
 
1166
_ACEOF
1167
{
1168
cat <<_ASUNAME
1169
## --------- ##
1170
## Platform. ##
1171
## --------- ##
1172
 
1173
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1174
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1175
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1176
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1177
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1178
 
1179
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1180
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1181
 
1182
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1183
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1184
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1185
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1186
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1187
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1188
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1189
 
1190
_ASUNAME
1191
 
1192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1193
for as_dir in $PATH
1194
do
1195
  IFS=$as_save_IFS
1196
  test -z "$as_dir" && as_dir=.
1197
  echo "PATH: $as_dir"
1198
done
1199
 
1200
} >&5
1201
 
1202
cat >&5 <<_ACEOF
1203
 
1204
 
1205
## ----------- ##
1206
## Core tests. ##
1207
## ----------- ##
1208
 
1209
_ACEOF
1210
 
1211
 
1212
# Keep a trace of the command line.
1213
# Strip out --no-create and --no-recursion so they do not pile up.
1214
# Strip out --silent because we don't want to record it for future runs.
1215
# Also quote any args containing shell meta-characters.
1216
# Make two passes to allow for proper duplicate-argument suppression.
1217
ac_configure_args=
1218
ac_configure_args0=
1219
ac_configure_args1=
1220
ac_sep=
1221
ac_must_keep_next=false
1222
for ac_pass in 1 2
1223
do
1224
  for ac_arg
1225
  do
1226
    case $ac_arg in
1227
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1228
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229
    | -silent | --silent | --silen | --sile | --sil)
1230
      continue ;;
1231
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1233
    esac
1234
    case $ac_pass in
1235
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1236
    2)
1237
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1238
      if test $ac_must_keep_next = true; then
1239
        ac_must_keep_next=false # Got value, back to normal.
1240
      else
1241
        case $ac_arg in
1242
          *=* | --config-cache | -C | -disable-* | --disable-* \
1243
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1244
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1245
          | -with-* | --with-* | -without-* | --without-* | --x)
1246
            case "$ac_configure_args0 " in
1247
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1248
            esac
1249
            ;;
1250
          -* ) ac_must_keep_next=true ;;
1251
        esac
1252
      fi
1253
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1254
      # Get rid of the leading space.
1255
      ac_sep=" "
1256
      ;;
1257
    esac
1258
  done
1259
done
1260
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1261
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1262
 
1263
# When interrupted or exit'd, cleanup temporary files, and complete
1264
# config.log.  We remove comments because anyway the quotes in there
1265
# would cause problems or look ugly.
1266
# WARNING: Be sure not to use single quotes in there, as some shells,
1267
# such as our DU 5.0 friend, will then `close' the trap.
1268
trap 'exit_status=$?
1269
  # Save into config.log some information that might help in debugging.
1270
  {
1271
    echo
1272
 
1273
    cat <<\_ASBOX
1274
## ---------------- ##
1275
## Cache variables. ##
1276
## ---------------- ##
1277
_ASBOX
1278
    echo
1279
    # The following way of writing the cache mishandles newlines in values,
1280
{
1281
  (set) 2>&1 |
1282
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1283
    *ac_space=\ *)
1284
      sed -n \
1285
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1286
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1287
      ;;
1288
    *)
1289
      sed -n \
1290
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291
      ;;
1292
    esac;
1293
}
1294
    echo
1295
 
1296
    cat <<\_ASBOX
1297
## ----------------- ##
1298
## Output variables. ##
1299
## ----------------- ##
1300
_ASBOX
1301
    echo
1302
    for ac_var in $ac_subst_vars
1303
    do
1304
      eval ac_val=$`echo $ac_var`
1305
      echo "$ac_var='"'"'$ac_val'"'"'"
1306
    done | sort
1307
    echo
1308
 
1309
    if test -n "$ac_subst_files"; then
1310
      cat <<\_ASBOX
1311
## ------------- ##
1312
## Output files. ##
1313
## ------------- ##
1314
_ASBOX
1315
      echo
1316
      for ac_var in $ac_subst_files
1317
      do
1318
        eval ac_val=$`echo $ac_var`
1319
        echo "$ac_var='"'"'$ac_val'"'"'"
1320
      done | sort
1321
      echo
1322
    fi
1323
 
1324
    if test -s confdefs.h; then
1325
      cat <<\_ASBOX
1326
## ----------- ##
1327
## confdefs.h. ##
1328
## ----------- ##
1329
_ASBOX
1330
      echo
1331
      sed "/^$/d" confdefs.h | sort
1332
      echo
1333
    fi
1334
    test "$ac_signal" != 0 &&
1335
      echo "$as_me: caught signal $ac_signal"
1336
    echo "$as_me: exit $exit_status"
1337
  } >&5
1338
  rm -f core *.core &&
1339
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1340
    exit $exit_status
1341
     ' 0
1342
for ac_signal in 1 2 13 15; do
1343
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1344
done
1345
ac_signal=0
1346
 
1347
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1348
rm -rf conftest* confdefs.h
1349
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1350
echo >confdefs.h
1351
 
1352
# Predefined preprocessor variables.
1353
 
1354
cat >>confdefs.h <<_ACEOF
1355
#define PACKAGE_NAME "$PACKAGE_NAME"
1356
_ACEOF
1357
 
1358
 
1359
cat >>confdefs.h <<_ACEOF
1360
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1361
_ACEOF
1362
 
1363
 
1364
cat >>confdefs.h <<_ACEOF
1365
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1366
_ACEOF
1367
 
1368
 
1369
cat >>confdefs.h <<_ACEOF
1370
#define PACKAGE_STRING "$PACKAGE_STRING"
1371
_ACEOF
1372
 
1373
 
1374
cat >>confdefs.h <<_ACEOF
1375
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1376
_ACEOF
1377
 
1378
 
1379
# Let the site file select an alternate cache file if it wants to.
1380
# Prefer explicitly selected file to automatically selected ones.
1381
if test -z "$CONFIG_SITE"; then
1382
  if test "x$prefix" != xNONE; then
1383
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1384
  else
1385
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1386
  fi
1387
fi
1388
for ac_site_file in $CONFIG_SITE; do
1389
  if test -r "$ac_site_file"; then
1390
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1391
echo "$as_me: loading site script $ac_site_file" >&6;}
1392
    sed 's/^/| /' "$ac_site_file" >&5
1393
    . "$ac_site_file"
1394
  fi
1395
done
1396
 
1397
if test -r "$cache_file"; then
1398
  # Some versions of bash will fail to source /dev/null (special
1399
  # files actually), so we avoid doing that.
1400
  if test -f "$cache_file"; then
1401
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1402
echo "$as_me: loading cache $cache_file" >&6;}
1403
    case $cache_file in
1404
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1405
      *)                      . ./$cache_file;;
1406
    esac
1407
  fi
1408
else
1409
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1410
echo "$as_me: creating cache $cache_file" >&6;}
1411
  >$cache_file
1412
fi
1413
 
1414
# Check that the precious variables saved in the cache have kept the same
1415
# value.
1416
ac_cache_corrupted=false
1417
for ac_var in `(set) 2>&1 |
1418
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1419
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1420
  eval ac_new_set=\$ac_env_${ac_var}_set
1421
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1422
  eval ac_new_val="\$ac_env_${ac_var}_value"
1423
  case $ac_old_set,$ac_new_set in
1424
    set,)
1425
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1426
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1427
      ac_cache_corrupted=: ;;
1428
    ,set)
1429
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1430
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1431
      ac_cache_corrupted=: ;;
1432
    ,);;
1433
    *)
1434
      if test "x$ac_old_val" != "x$ac_new_val"; then
1435
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1436
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1437
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1438
echo "$as_me:   former value:  $ac_old_val" >&2;}
1439
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1440
echo "$as_me:   current value: $ac_new_val" >&2;}
1441
        ac_cache_corrupted=:
1442
      fi;;
1443
  esac
1444
  # Pass precious variables to config.status.
1445
  if test "$ac_new_set" = set; then
1446
    case $ac_new_val in
1447
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1448
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1449
    *) ac_arg=$ac_var=$ac_new_val ;;
1450
    esac
1451
    case " $ac_configure_args " in
1452
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1453
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1454
    esac
1455
  fi
1456
done
1457
if $ac_cache_corrupted; then
1458
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462
   { (exit 1); exit 1; }; }
1463
fi
1464
 
1465
ac_ext=c
1466
ac_cpp='$CPP $CPPFLAGS'
1467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
ac_aux_dir=
1500
for ac_dir in ../../../.. $srcdir/../../../..; do
1501
  if test -f $ac_dir/install-sh; then
1502
    ac_aux_dir=$ac_dir
1503
    ac_install_sh="$ac_aux_dir/install-sh -c"
1504
    break
1505
  elif test -f $ac_dir/install.sh; then
1506
    ac_aux_dir=$ac_dir
1507
    ac_install_sh="$ac_aux_dir/install.sh -c"
1508
    break
1509
  elif test -f $ac_dir/shtool; then
1510
    ac_aux_dir=$ac_dir
1511
    ac_install_sh="$ac_aux_dir/shtool install -c"
1512
    break
1513
  fi
1514
done
1515
if test -z "$ac_aux_dir"; then
1516
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5
1517
echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;}
1518
   { (exit 1); exit 1; }; }
1519
fi
1520
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1521
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1522
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1523
 
1524
 
1525
 
1526
# Make sure we can run config.sub.
1527
$ac_config_sub sun4 >/dev/null 2>&1 ||
1528
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530
   { (exit 1); exit 1; }; }
1531
 
1532
echo "$as_me:$LINENO: checking build system type" >&5
1533
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534
if test "${ac_cv_build+set}" = set; then
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
1536
else
1537
  ac_cv_build_alias=$build_alias
1538
test -z "$ac_cv_build_alias" &&
1539
  ac_cv_build_alias=`$ac_config_guess`
1540
test -z "$ac_cv_build_alias" &&
1541
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543
   { (exit 1); exit 1; }; }
1544
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547
   { (exit 1); exit 1; }; }
1548
 
1549
fi
1550
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551
echo "${ECHO_T}$ac_cv_build" >&6
1552
build=$ac_cv_build
1553
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
 
1557
 
1558
am__api_version="1.9"
1559
# Find a good install program.  We prefer a C program (faster),
1560
# so one script is as good as another.  But avoid the broken or
1561
# incompatible versions:
1562
# SysV /etc/install, /usr/sbin/install
1563
# SunOS /usr/etc/install
1564
# IRIX /sbin/install
1565
# AIX /bin/install
1566
# AmigaOS /C/install, which installs bootblocks on floppy discs
1567
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570
# OS/2's system install, which has a completely different semantic
1571
# ./install, which can be erroneously created by make from ./install.sh.
1572
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574
if test -z "$INSTALL"; then
1575
if test "${ac_cv_path_install+set}" = set; then
1576
  echo $ECHO_N "(cached) $ECHO_C" >&6
1577
else
1578
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579
for as_dir in $PATH
1580
do
1581
  IFS=$as_save_IFS
1582
  test -z "$as_dir" && as_dir=.
1583
  # Account for people who put trailing slashes in PATH elements.
1584
case $as_dir/ in
1585
  ./ | .// | /cC/* | \
1586
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1588
  /usr/ucb/* ) ;;
1589
  *)
1590
    # OSF1 and SCO ODT 3.0 have their own names for install.
1591
    # Don't use installbsd from OSF since it installs stuff as root
1592
    # by default.
1593
    for ac_prog in ginstall scoinst install; do
1594
      for ac_exec_ext in '' $ac_executable_extensions; do
1595
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1596
          if test $ac_prog = install &&
1597
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598
            # AIX install.  It has an incompatible calling convention.
1599
            :
1600
          elif test $ac_prog = install &&
1601
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602
            # program-specific install script used by HP pwplus--don't use.
1603
            :
1604
          else
1605
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1606
            break 3
1607
          fi
1608
        fi
1609
      done
1610
    done
1611
    ;;
1612
esac
1613
done
1614
 
1615
 
1616
fi
1617
  if test "${ac_cv_path_install+set}" = set; then
1618
    INSTALL=$ac_cv_path_install
1619
  else
1620
    # As a last resort, use the slow shell script.  We don't cache a
1621
    # path for INSTALL within a source directory, because that will
1622
    # break other packages using the cache if that directory is
1623
    # removed, or if the path is relative.
1624
    INSTALL=$ac_install_sh
1625
  fi
1626
fi
1627
echo "$as_me:$LINENO: result: $INSTALL" >&5
1628
echo "${ECHO_T}$INSTALL" >&6
1629
 
1630
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1631
# It thinks the first close brace ends the variable substitution.
1632
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633
 
1634
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635
 
1636
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637
 
1638
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1639
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1640
# Just in case
1641
sleep 1
1642
echo timestamp > conftest.file
1643
# Do `set' in a subshell so we don't clobber the current shell's
1644
# arguments.  Must try -L first in case configure is actually a
1645
# symlink; some systems play weird games with the mod time of symlinks
1646
# (eg FreeBSD returns the mod time of the symlink's containing
1647
# directory).
1648
if (
1649
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1650
   if test "$*" = "X"; then
1651
      # -L didn't work.
1652
      set X `ls -t $srcdir/configure conftest.file`
1653
   fi
1654
   rm -f conftest.file
1655
   if test "$*" != "X $srcdir/configure conftest.file" \
1656
      && test "$*" != "X conftest.file $srcdir/configure"; then
1657
 
1658
      # If neither matched, then we have a broken ls.  This can happen
1659
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1660
      # broken ls alias from the environment.  This has actually
1661
      # happened.  Such a system could not be considered "sane".
1662
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1663
alias in your environment" >&5
1664
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1665
alias in your environment" >&2;}
1666
   { (exit 1); exit 1; }; }
1667
   fi
1668
 
1669
   test "$2" = conftest.file
1670
   )
1671
then
1672
   # Ok.
1673
   :
1674
else
1675
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1676
Check your system clock" >&5
1677
echo "$as_me: error: newly created file is older than distributed files!
1678
Check your system clock" >&2;}
1679
   { (exit 1); exit 1; }; }
1680
fi
1681
echo "$as_me:$LINENO: result: yes" >&5
1682
echo "${ECHO_T}yes" >&6
1683
test "$program_prefix" != NONE &&
1684
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1685
# Use a double $ so make ignores it.
1686
test "$program_suffix" != NONE &&
1687
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1688
# Double any \ or $.  echo might interpret backslashes.
1689
# By default was `s,x,x', remove it if useless.
1690
cat <<\_ACEOF >conftest.sed
1691
s/[\\$]/&&/g;s/;s,x,x,$//
1692
_ACEOF
1693
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1694
rm conftest.sed
1695
 
1696
# expand $ac_aux_dir to an absolute path
1697
am_aux_dir=`cd $ac_aux_dir && pwd`
1698
 
1699
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700
# Use eval to expand $SHELL
1701
if eval "$MISSING --run true"; then
1702
  am_missing_run="$MISSING --run "
1703
else
1704
  am_missing_run=
1705
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1707
fi
1708
 
1709
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1710
  # We used to keeping the `.' as first argument, in order to
1711
  # allow $(mkdir_p) to be used without argument.  As in
1712
  #   $(mkdir_p) $(somedir)
1713
  # where $(somedir) is conditionally defined.  However this is wrong
1714
  # for two reasons:
1715
  #  1. if the package is installed by a user who cannot write `.'
1716
  #     make install will fail,
1717
  #  2. the above comment should most certainly read
1718
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1719
  #     so it does not work when $(somedir) is undefined and
1720
  #     $(DESTDIR) is not.
1721
  #  To support the latter case, we have to write
1722
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1723
  #  so the `.' trick is pointless.
1724
  mkdir_p='mkdir -p --'
1725
else
1726
  # On NextStep and OpenStep, the `mkdir' command does not
1727
  # recognize any option.  It will interpret all options as
1728
  # directories to create, and then abort because `.' already
1729
  # exists.
1730
  for d in ./-p ./--version;
1731
  do
1732
    test -d $d && rmdir $d
1733
  done
1734
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1735
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1736
    mkdir_p='$(mkinstalldirs)'
1737
  else
1738
    mkdir_p='$(install_sh) -d'
1739
  fi
1740
fi
1741
 
1742
for ac_prog in gawk mawk nawk awk
1743
do
1744
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1745
set dummy $ac_prog; ac_word=$2
1746
echo "$as_me:$LINENO: checking for $ac_word" >&5
1747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748
if test "${ac_cv_prog_AWK+set}" = set; then
1749
  echo $ECHO_N "(cached) $ECHO_C" >&6
1750
else
1751
  if test -n "$AWK"; then
1752
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1753
else
1754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755
for as_dir in $PATH
1756
do
1757
  IFS=$as_save_IFS
1758
  test -z "$as_dir" && as_dir=.
1759
  for ac_exec_ext in '' $ac_executable_extensions; do
1760
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761
    ac_cv_prog_AWK="$ac_prog"
1762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763
    break 2
1764
  fi
1765
done
1766
done
1767
 
1768
fi
1769
fi
1770
AWK=$ac_cv_prog_AWK
1771
if test -n "$AWK"; then
1772
  echo "$as_me:$LINENO: result: $AWK" >&5
1773
echo "${ECHO_T}$AWK" >&6
1774
else
1775
  echo "$as_me:$LINENO: result: no" >&5
1776
echo "${ECHO_T}no" >&6
1777
fi
1778
 
1779
  test -n "$AWK" && break
1780
done
1781
 
1782
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1783
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1784
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1785
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1786
  echo $ECHO_N "(cached) $ECHO_C" >&6
1787
else
1788
  cat >conftest.make <<\_ACEOF
1789
all:
1790
        @echo 'ac_maketemp="$(MAKE)"'
1791
_ACEOF
1792
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1793
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1794
if test -n "$ac_maketemp"; then
1795
  eval ac_cv_prog_make_${ac_make}_set=yes
1796
else
1797
  eval ac_cv_prog_make_${ac_make}_set=no
1798
fi
1799
rm -f conftest.make
1800
fi
1801
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1802
  echo "$as_me:$LINENO: result: yes" >&5
1803
echo "${ECHO_T}yes" >&6
1804
  SET_MAKE=
1805
else
1806
  echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1808
  SET_MAKE="MAKE=${MAKE-make}"
1809
fi
1810
 
1811
rm -rf .tst 2>/dev/null
1812
mkdir .tst 2>/dev/null
1813
if test -d .tst; then
1814
  am__leading_dot=.
1815
else
1816
  am__leading_dot=_
1817
fi
1818
rmdir .tst 2>/dev/null
1819
 
1820
DEPDIR="${am__leading_dot}deps"
1821
 
1822
          ac_config_commands="$ac_config_commands depfiles"
1823
 
1824
 
1825
am_make=${MAKE-make}
1826
cat > confinc << 'END'
1827
am__doit:
1828
        @echo done
1829
.PHONY: am__doit
1830
END
1831
# If we don't find an include directive, just comment out the code.
1832
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1833
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1834
am__include="#"
1835
am__quote=
1836
_am_result=none
1837
# First try GNU make style include.
1838
echo "include confinc" > confmf
1839
# We grep out `Entering directory' and `Leaving directory'
1840
# messages which can occur if `w' ends up in MAKEFLAGS.
1841
# In particular we don't look at `^make:' because GNU make might
1842
# be invoked under some other name (usually "gmake"), in which
1843
# case it prints its new name instead of `make'.
1844
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1845
   am__include=include
1846
   am__quote=
1847
   _am_result=GNU
1848
fi
1849
# Now try BSD make style include.
1850
if test "$am__include" = "#"; then
1851
   echo '.include "confinc"' > confmf
1852
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1853
      am__include=.include
1854
      am__quote="\""
1855
      _am_result=BSD
1856
   fi
1857
fi
1858
 
1859
 
1860
echo "$as_me:$LINENO: result: $_am_result" >&5
1861
echo "${ECHO_T}$_am_result" >&6
1862
rm -f confinc confmf
1863
 
1864
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1865
if test "${enable_dependency_tracking+set}" = set; then
1866
  enableval="$enable_dependency_tracking"
1867
 
1868
fi;
1869
if test "x$enable_dependency_tracking" != xno; then
1870
  am_depcomp="$ac_aux_dir/depcomp"
1871
  AMDEPBACKSLASH='\'
1872
fi
1873
 
1874
 
1875
if test "x$enable_dependency_tracking" != xno; then
1876
  AMDEP_TRUE=
1877
  AMDEP_FALSE='#'
1878
else
1879
  AMDEP_TRUE='#'
1880
  AMDEP_FALSE=
1881
fi
1882
 
1883
 
1884
 
1885
 
1886
# Check whether --enable-multilib or --disable-multilib was given.
1887
if test "${enable_multilib+set}" = set; then
1888
  enableval="$enable_multilib"
1889
  case "${enableval}" in
1890
  yes) multilib=yes ;;
1891
  no)  multilib=no ;;
1892
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1893
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1894
   { (exit 1); exit 1; }; } ;;
1895
 esac
1896
else
1897
  multilib=yes
1898
fi;
1899
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1900
if test "${enable_target_optspace+set}" = set; then
1901
  enableval="$enable_target_optspace"
1902
  case "${enableval}" in
1903
  yes) target_optspace=yes ;;
1904
  no)  target_optspace=no ;;
1905
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1906
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1907
   { (exit 1); exit 1; }; } ;;
1908
 esac
1909
else
1910
  target_optspace=
1911
fi;
1912
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1913
if test "${enable_malloc_debugging+set}" = set; then
1914
  enableval="$enable_malloc_debugging"
1915
  case "${enableval}" in
1916
  yes) malloc_debugging=yes ;;
1917
  no)  malloc_debugging=no ;;
1918
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1919
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1920
   { (exit 1); exit 1; }; } ;;
1921
 esac
1922
else
1923
  malloc_debugging=
1924
fi;
1925
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1926
if test "${enable_newlib_multithread+set}" = set; then
1927
  enableval="$enable_newlib_multithread"
1928
  case "${enableval}" in
1929
  yes) newlib_multithread=yes ;;
1930
  no)  newlib_multithread=no ;;
1931
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1932
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1933
   { (exit 1); exit 1; }; } ;;
1934
 esac
1935
else
1936
  newlib_multithread=yes
1937
fi;
1938
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1939
if test "${enable_newlib_iconv+set}" = set; then
1940
  enableval="$enable_newlib_iconv"
1941
  if test "${newlib_iconv+set}" != set; then
1942
   case "${enableval}" in
1943
     yes) newlib_iconv=yes ;;
1944
     no)  newlib_iconv=no ;;
1945
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1946
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1947
   { (exit 1); exit 1; }; } ;;
1948
   esac
1949
 fi
1950
else
1951
  newlib_iconv=${newlib_iconv}
1952
fi;
1953
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1954
if test "${enable_newlib_elix_level+set}" = set; then
1955
  enableval="$enable_newlib_elix_level"
1956
  case "${enableval}" in
1957
  0)   newlib_elix_level=0 ;;
1958
  1)   newlib_elix_level=1 ;;
1959
  2)   newlib_elix_level=2 ;;
1960
  3)   newlib_elix_level=3 ;;
1961
  4)   newlib_elix_level=4 ;;
1962
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1963
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1964
   { (exit 1); exit 1; }; } ;;
1965
 esac
1966
else
1967
  newlib_elix_level=0
1968
fi;
1969
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1970
if test "${enable_newlib_io_float+set}" = set; then
1971
  enableval="$enable_newlib_io_float"
1972
  case "${enableval}" in
1973
  yes) newlib_io_float=yes ;;
1974
  no)  newlib_io_float=no ;;
1975
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1976
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1977
   { (exit 1); exit 1; }; } ;;
1978
 esac
1979
else
1980
  newlib_io_float=yes
1981
fi;
1982
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1983
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1984
  enableval="$enable_newlib_supplied_syscalls"
1985
  case "${enableval}" in
1986
  yes) newlib_may_supply_syscalls=yes ;;
1987
  no)  newlib_may_supply_syscalls=no ;;
1988
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1989
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1990
   { (exit 1); exit 1; }; } ;;
1991
 esac
1992
else
1993
  newlib_may_supply_syscalls=yes
1994
fi;
1995
 
1996
 
1997
if test x${newlib_may_supply_syscalls} = xyes; then
1998
  MAY_SUPPLY_SYSCALLS_TRUE=
1999
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2000
else
2001
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2002
  MAY_SUPPLY_SYSCALLS_FALSE=
2003
fi
2004
 
2005
 
2006
 
2007
test -z "${with_target_subdir}" && with_target_subdir=.
2008
 
2009
if test "${srcdir}" = "."; then
2010
  if test "${with_target_subdir}" != "."; then
2011
    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2012
  else
2013
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2014
  fi
2015
else
2016
  newlib_basedir="${srcdir}/../../.."
2017
fi
2018
 
2019
 
2020
echo "$as_me:$LINENO: checking host system type" >&5
2021
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2022
if test "${ac_cv_host+set}" = set; then
2023
  echo $ECHO_N "(cached) $ECHO_C" >&6
2024
else
2025
  ac_cv_host_alias=$host_alias
2026
test -z "$ac_cv_host_alias" &&
2027
  ac_cv_host_alias=$ac_cv_build_alias
2028
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2029
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2030
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2031
   { (exit 1); exit 1; }; }
2032
 
2033
fi
2034
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2035
echo "${ECHO_T}$ac_cv_host" >&6
2036
host=$ac_cv_host
2037
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2038
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2039
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2040
 
2041
 
2042
 
2043
# test to see if srcdir already configured
2044
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2045
   test -f $srcdir/config.status; then
2046
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2047
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2048
   { (exit 1); exit 1; }; }
2049
fi
2050
 
2051
# test whether we have cygpath
2052
if test -z "$CYGPATH_W"; then
2053
  if (cygpath --version) >/dev/null 2>/dev/null; then
2054
    CYGPATH_W='cygpath -w'
2055
  else
2056
    CYGPATH_W=echo
2057
  fi
2058
fi
2059
 
2060
 
2061
# Define the identity of the package.
2062
 PACKAGE='newlib'
2063
 VERSION='1.17.0'
2064
 
2065
 
2066
# Some tools Automake needs.
2067
 
2068
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2069
 
2070
 
2071
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2072
 
2073
 
2074
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2075
 
2076
 
2077
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2078
 
2079
 
2080
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2081
 
2082
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2083
 
2084
# Installed binaries are usually stripped using `strip' when the user
2085
# run `make install-strip'.  However `strip' might not be the right
2086
# tool to use in cross-compilation environments, therefore Automake
2087
# will honor the `STRIP' environment variable to overrule this program.
2088
if test "$cross_compiling" != no; then
2089
  if test -n "$ac_tool_prefix"; then
2090
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2091
set dummy ${ac_tool_prefix}strip; ac_word=$2
2092
echo "$as_me:$LINENO: checking for $ac_word" >&5
2093
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2094
if test "${ac_cv_prog_STRIP+set}" = set; then
2095
  echo $ECHO_N "(cached) $ECHO_C" >&6
2096
else
2097
  if test -n "$STRIP"; then
2098
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2099
else
2100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101
for as_dir in $PATH
2102
do
2103
  IFS=$as_save_IFS
2104
  test -z "$as_dir" && as_dir=.
2105
  for ac_exec_ext in '' $ac_executable_extensions; do
2106
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2108
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109
    break 2
2110
  fi
2111
done
2112
done
2113
 
2114
fi
2115
fi
2116
STRIP=$ac_cv_prog_STRIP
2117
if test -n "$STRIP"; then
2118
  echo "$as_me:$LINENO: result: $STRIP" >&5
2119
echo "${ECHO_T}$STRIP" >&6
2120
else
2121
  echo "$as_me:$LINENO: result: no" >&5
2122
echo "${ECHO_T}no" >&6
2123
fi
2124
 
2125
fi
2126
if test -z "$ac_cv_prog_STRIP"; then
2127
  ac_ct_STRIP=$STRIP
2128
  # Extract the first word of "strip", so it can be a program name with args.
2129
set dummy strip; ac_word=$2
2130
echo "$as_me:$LINENO: checking for $ac_word" >&5
2131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2132
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2133
  echo $ECHO_N "(cached) $ECHO_C" >&6
2134
else
2135
  if test -n "$ac_ct_STRIP"; then
2136
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2137
else
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139
for as_dir in $PATH
2140
do
2141
  IFS=$as_save_IFS
2142
  test -z "$as_dir" && as_dir=.
2143
  for ac_exec_ext in '' $ac_executable_extensions; do
2144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2145
    ac_cv_prog_ac_ct_STRIP="strip"
2146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147
    break 2
2148
  fi
2149
done
2150
done
2151
 
2152
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2153
fi
2154
fi
2155
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2156
if test -n "$ac_ct_STRIP"; then
2157
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2158
echo "${ECHO_T}$ac_ct_STRIP" >&6
2159
else
2160
  echo "$as_me:$LINENO: result: no" >&5
2161
echo "${ECHO_T}no" >&6
2162
fi
2163
 
2164
  STRIP=$ac_ct_STRIP
2165
else
2166
  STRIP="$ac_cv_prog_STRIP"
2167
fi
2168
 
2169
fi
2170
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2171
 
2172
# We need awk for the "check" target.  The system "awk" is bad on
2173
# some platforms.
2174
# Always define AMTAR for backward compatibility.
2175
 
2176
AMTAR=${AMTAR-"${am_missing_run}tar"}
2177
 
2178
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2179
 
2180
 
2181
 
2182
 
2183
 
2184
 
2185
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2186
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2187
# are probably using a cross compiler, which will not be able to fully
2188
# link an executable.  This should really be fixed in autoconf
2189
# itself.
2190
 
2191
 
2192
 
2193
 
2194
 
2195
 
2196
 
2197
# Extract the first word of "gcc", so it can be a program name with args.
2198
set dummy gcc; ac_word=$2
2199
echo "$as_me:$LINENO: checking for $ac_word" >&5
2200
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201
if test "${ac_cv_prog_CC+set}" = set; then
2202
  echo $ECHO_N "(cached) $ECHO_C" >&6
2203
else
2204
  if test -n "$CC"; then
2205
  ac_cv_prog_CC="$CC" # Let the user override the test.
2206
else
2207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208
for as_dir in $PATH
2209
do
2210
  IFS=$as_save_IFS
2211
  test -z "$as_dir" && as_dir=.
2212
  for ac_exec_ext in '' $ac_executable_extensions; do
2213
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214
    ac_cv_prog_CC="gcc"
2215
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216
    break 2
2217
  fi
2218
done
2219
done
2220
 
2221
fi
2222
fi
2223
CC=$ac_cv_prog_CC
2224
if test -n "$CC"; then
2225
  echo "$as_me:$LINENO: result: $CC" >&5
2226
echo "${ECHO_T}$CC" >&6
2227
else
2228
  echo "$as_me:$LINENO: result: no" >&5
2229
echo "${ECHO_T}no" >&6
2230
fi
2231
 
2232
 
2233
depcc="$CC"   am_compiler_list=
2234
 
2235
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2236
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2237
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2238
  echo $ECHO_N "(cached) $ECHO_C" >&6
2239
else
2240
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2241
  # We make a subdir and do the tests there.  Otherwise we can end up
2242
  # making bogus files that we don't know about and never remove.  For
2243
  # instance it was reported that on HP-UX the gcc test will end up
2244
  # making a dummy file named `D' -- because `-MD' means `put the output
2245
  # in D'.
2246
  mkdir conftest.dir
2247
  # Copy depcomp to subdir because otherwise we won't find it if we're
2248
  # using a relative directory.
2249
  cp "$am_depcomp" conftest.dir
2250
  cd conftest.dir
2251
  # We will build objects and dependencies in a subdirectory because
2252
  # it helps to detect inapplicable dependency modes.  For instance
2253
  # both Tru64's cc and ICC support -MD to output dependencies as a
2254
  # side effect of compilation, but ICC will put the dependencies in
2255
  # the current directory while Tru64 will put them in the object
2256
  # directory.
2257
  mkdir sub
2258
 
2259
  am_cv_CC_dependencies_compiler_type=none
2260
  if test "$am_compiler_list" = ""; then
2261
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2262
  fi
2263
  for depmode in $am_compiler_list; do
2264
    # Setup a source with many dependencies, because some compilers
2265
    # like to wrap large dependency lists on column 80 (with \), and
2266
    # we should not choose a depcomp mode which is confused by this.
2267
    #
2268
    # We need to recreate these files for each test, as the compiler may
2269
    # overwrite some of them when testing with obscure command lines.
2270
    # This happens at least with the AIX C compiler.
2271
    : > sub/conftest.c
2272
    for i in 1 2 3 4 5 6; do
2273
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2274
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2275
      # Solaris 8's {/usr,}/bin/sh.
2276
      touch sub/conftst$i.h
2277
    done
2278
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2279
 
2280
    case $depmode in
2281
    nosideeffect)
2282
      # after this tag, mechanisms are not by side-effect, so they'll
2283
      # only be used when explicitly requested
2284
      if test "x$enable_dependency_tracking" = xyes; then
2285
        continue
2286
      else
2287
        break
2288
      fi
2289
      ;;
2290
    none) break ;;
2291
    esac
2292
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2293
    # mode.  It turns out that the SunPro C++ compiler does not properly
2294
    # handle `-M -o', and we need to detect this.
2295
    if depmode=$depmode \
2296
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2297
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2298
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2299
         >/dev/null 2>conftest.err &&
2300
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2301
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2302
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2303
      # icc doesn't choke on unknown options, it will just issue warnings
2304
      # or remarks (even with -Werror).  So we grep stderr for any message
2305
      # that says an option was ignored or not supported.
2306
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2307
      #   icc: Command line warning: ignoring option '-M'; no argument required
2308
      # The diagnosis changed in icc 8.0:
2309
      #   icc: Command line remark: option '-MP' not supported
2310
      if (grep 'ignoring option' conftest.err ||
2311
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2312
        am_cv_CC_dependencies_compiler_type=$depmode
2313
        break
2314
      fi
2315
    fi
2316
  done
2317
 
2318
  cd ..
2319
  rm -rf conftest.dir
2320
else
2321
  am_cv_CC_dependencies_compiler_type=none
2322
fi
2323
 
2324
fi
2325
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2326
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2327
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2328
 
2329
 
2330
 
2331
if
2332
  test "x$enable_dependency_tracking" != xno \
2333
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2334
  am__fastdepCC_TRUE=
2335
  am__fastdepCC_FALSE='#'
2336
else
2337
  am__fastdepCC_TRUE='#'
2338
  am__fastdepCC_FALSE=
2339
fi
2340
 
2341
 
2342
if test -z "$CC"; then
2343
  # Extract the first word of "cc", so it can be a program name with args.
2344
set dummy cc; ac_word=$2
2345
echo "$as_me:$LINENO: checking for $ac_word" >&5
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2347
if test "${ac_cv_prog_CC+set}" = set; then
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
2349
else
2350
  if test -n "$CC"; then
2351
  ac_cv_prog_CC="$CC" # Let the user override the test.
2352
else
2353
  ac_prog_rejected=no
2354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355
for as_dir in $PATH
2356
do
2357
  IFS=$as_save_IFS
2358
  test -z "$as_dir" && as_dir=.
2359
  for ac_exec_ext in '' $ac_executable_extensions; do
2360
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2362
       ac_prog_rejected=yes
2363
       continue
2364
     fi
2365
    ac_cv_prog_CC="cc"
2366
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367
    break 2
2368
  fi
2369
done
2370
done
2371
 
2372
if test $ac_prog_rejected = yes; then
2373
  # We found a bogon in the path, so make sure we never use it.
2374
  set dummy $ac_cv_prog_CC
2375
  shift
2376
  if test $# != 0; then
2377
    # We chose a different compiler from the bogus one.
2378
    # However, it has the same basename, so the bogon will be chosen
2379
    # first if we set CC to just the basename; use the full file name.
2380
    shift
2381
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382
  fi
2383
fi
2384
fi
2385
fi
2386
CC=$ac_cv_prog_CC
2387
if test -n "$CC"; then
2388
  echo "$as_me:$LINENO: result: $CC" >&5
2389
echo "${ECHO_T}$CC" >&6
2390
else
2391
  echo "$as_me:$LINENO: result: no" >&5
2392
echo "${ECHO_T}no" >&6
2393
fi
2394
 
2395
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2396
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2397
   { (exit 1); exit 1; }; }
2398
fi
2399
 
2400
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2401
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2402
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2403
  echo $ECHO_N "(cached) $ECHO_C" >&6
2404
else
2405
  cat > conftest.c <
2406
#ifdef __GNUC__
2407
  yes;
2408
#endif
2409
EOF
2410
if { ac_try='${CC-cc} -E conftest.c'
2411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412
  (eval $ac_try) 2>&5
2413
  ac_status=$?
2414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2416
  ac_cv_c_compiler_gnu=yes
2417
else
2418
  ac_cv_c_compiler_gnu=no
2419
fi
2420
fi
2421
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423
 
2424
if test $ac_cv_c_compiler_gnu = yes; then
2425
  GCC=yes
2426
  ac_test_CFLAGS="${CFLAGS+set}"
2427
  ac_save_CFLAGS="$CFLAGS"
2428
  CFLAGS=
2429
  ac_test_CFLAGS=${CFLAGS+set}
2430
ac_save_CFLAGS=$CFLAGS
2431
CFLAGS="-g"
2432
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434
if test "${ac_cv_prog_cc_g+set}" = set; then
2435
  echo $ECHO_N "(cached) $ECHO_C" >&6
2436
else
2437
  cat >conftest.$ac_ext <<_ACEOF
2438
/* confdefs.h.  */
2439
_ACEOF
2440
cat confdefs.h >>conftest.$ac_ext
2441
cat >>conftest.$ac_ext <<_ACEOF
2442
/* end confdefs.h.  */
2443
 
2444
int
2445
main ()
2446
{
2447
 
2448
  ;
2449
  return 0;
2450
}
2451
_ACEOF
2452
rm -f conftest.$ac_objext
2453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454
  (eval $ac_compile) 2>conftest.er1
2455
  ac_status=$?
2456
  grep -v '^ *+' conftest.er1 >conftest.err
2457
  rm -f conftest.er1
2458
  cat conftest.err >&5
2459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460
  (exit $ac_status); } &&
2461
         { ac_try='test -z "$ac_c_werror_flag"
2462
                         || test ! -s conftest.err'
2463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464
  (eval $ac_try) 2>&5
2465
  ac_status=$?
2466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467
  (exit $ac_status); }; } &&
2468
         { ac_try='test -s conftest.$ac_objext'
2469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470
  (eval $ac_try) 2>&5
2471
  ac_status=$?
2472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473
  (exit $ac_status); }; }; then
2474
  ac_cv_prog_cc_g=yes
2475
else
2476
  echo "$as_me: failed program was:" >&5
2477
sed 's/^/| /' conftest.$ac_ext >&5
2478
 
2479
ac_cv_prog_cc_g=no
2480
fi
2481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482
fi
2483
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485
if test "$ac_test_CFLAGS" = set; then
2486
  CFLAGS=$ac_save_CFLAGS
2487
elif test $ac_cv_prog_cc_g = yes; then
2488
  if test "$GCC" = yes; then
2489
    CFLAGS="-g -O2"
2490
  else
2491
    CFLAGS="-g"
2492
  fi
2493
else
2494
  if test "$GCC" = yes; then
2495
    CFLAGS="-O2"
2496
  else
2497
    CFLAGS=
2498
  fi
2499
fi
2500
  if test "$ac_test_CFLAGS" = set; then
2501
    CFLAGS="$ac_save_CFLAGS"
2502
  elif test $ac_cv_prog_cc_g = yes; then
2503
    CFLAGS="-g -O2"
2504
  else
2505
    CFLAGS="-O2"
2506
  fi
2507
else
2508
  GCC=
2509
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2510
fi
2511
 
2512
 
2513
if test -n "$ac_tool_prefix"; then
2514
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2515
set dummy ${ac_tool_prefix}as; ac_word=$2
2516
echo "$as_me:$LINENO: checking for $ac_word" >&5
2517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518
if test "${ac_cv_prog_AS+set}" = set; then
2519
  echo $ECHO_N "(cached) $ECHO_C" >&6
2520
else
2521
  if test -n "$AS"; then
2522
  ac_cv_prog_AS="$AS" # Let the user override the test.
2523
else
2524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525
for as_dir in $PATH
2526
do
2527
  IFS=$as_save_IFS
2528
  test -z "$as_dir" && as_dir=.
2529
  for ac_exec_ext in '' $ac_executable_extensions; do
2530
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531
    ac_cv_prog_AS="${ac_tool_prefix}as"
2532
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533
    break 2
2534
  fi
2535
done
2536
done
2537
 
2538
fi
2539
fi
2540
AS=$ac_cv_prog_AS
2541
if test -n "$AS"; then
2542
  echo "$as_me:$LINENO: result: $AS" >&5
2543
echo "${ECHO_T}$AS" >&6
2544
else
2545
  echo "$as_me:$LINENO: result: no" >&5
2546
echo "${ECHO_T}no" >&6
2547
fi
2548
 
2549
fi
2550
if test -z "$ac_cv_prog_AS"; then
2551
  ac_ct_AS=$AS
2552
  # Extract the first word of "as", so it can be a program name with args.
2553
set dummy as; ac_word=$2
2554
echo "$as_me:$LINENO: checking for $ac_word" >&5
2555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2556
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2557
  echo $ECHO_N "(cached) $ECHO_C" >&6
2558
else
2559
  if test -n "$ac_ct_AS"; then
2560
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2561
else
2562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563
for as_dir in $PATH
2564
do
2565
  IFS=$as_save_IFS
2566
  test -z "$as_dir" && as_dir=.
2567
  for ac_exec_ext in '' $ac_executable_extensions; do
2568
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569
    ac_cv_prog_ac_ct_AS="as"
2570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2571
    break 2
2572
  fi
2573
done
2574
done
2575
 
2576
fi
2577
fi
2578
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2579
if test -n "$ac_ct_AS"; then
2580
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2581
echo "${ECHO_T}$ac_ct_AS" >&6
2582
else
2583
  echo "$as_me:$LINENO: result: no" >&5
2584
echo "${ECHO_T}no" >&6
2585
fi
2586
 
2587
  AS=$ac_ct_AS
2588
else
2589
  AS="$ac_cv_prog_AS"
2590
fi
2591
 
2592
if test -n "$ac_tool_prefix"; then
2593
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2594
set dummy ${ac_tool_prefix}ar; ac_word=$2
2595
echo "$as_me:$LINENO: checking for $ac_word" >&5
2596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2597
if test "${ac_cv_prog_AR+set}" = set; then
2598
  echo $ECHO_N "(cached) $ECHO_C" >&6
2599
else
2600
  if test -n "$AR"; then
2601
  ac_cv_prog_AR="$AR" # Let the user override the test.
2602
else
2603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604
for as_dir in $PATH
2605
do
2606
  IFS=$as_save_IFS
2607
  test -z "$as_dir" && as_dir=.
2608
  for ac_exec_ext in '' $ac_executable_extensions; do
2609
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2611
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612
    break 2
2613
  fi
2614
done
2615
done
2616
 
2617
fi
2618
fi
2619
AR=$ac_cv_prog_AR
2620
if test -n "$AR"; then
2621
  echo "$as_me:$LINENO: result: $AR" >&5
2622
echo "${ECHO_T}$AR" >&6
2623
else
2624
  echo "$as_me:$LINENO: result: no" >&5
2625
echo "${ECHO_T}no" >&6
2626
fi
2627
 
2628
fi
2629
if test -z "$ac_cv_prog_AR"; then
2630
  ac_ct_AR=$AR
2631
  # Extract the first word of "ar", so it can be a program name with args.
2632
set dummy ar; ac_word=$2
2633
echo "$as_me:$LINENO: checking for $ac_word" >&5
2634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2636
  echo $ECHO_N "(cached) $ECHO_C" >&6
2637
else
2638
  if test -n "$ac_ct_AR"; then
2639
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2640
else
2641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642
for as_dir in $PATH
2643
do
2644
  IFS=$as_save_IFS
2645
  test -z "$as_dir" && as_dir=.
2646
  for ac_exec_ext in '' $ac_executable_extensions; do
2647
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648
    ac_cv_prog_ac_ct_AR="ar"
2649
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650
    break 2
2651
  fi
2652
done
2653
done
2654
 
2655
fi
2656
fi
2657
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2658
if test -n "$ac_ct_AR"; then
2659
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2660
echo "${ECHO_T}$ac_ct_AR" >&6
2661
else
2662
  echo "$as_me:$LINENO: result: no" >&5
2663
echo "${ECHO_T}no" >&6
2664
fi
2665
 
2666
  AR=$ac_ct_AR
2667
else
2668
  AR="$ac_cv_prog_AR"
2669
fi
2670
 
2671
if test -n "$ac_tool_prefix"; then
2672
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2673
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2674
echo "$as_me:$LINENO: checking for $ac_word" >&5
2675
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676
if test "${ac_cv_prog_RANLIB+set}" = set; then
2677
  echo $ECHO_N "(cached) $ECHO_C" >&6
2678
else
2679
  if test -n "$RANLIB"; then
2680
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2681
else
2682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683
for as_dir in $PATH
2684
do
2685
  IFS=$as_save_IFS
2686
  test -z "$as_dir" && as_dir=.
2687
  for ac_exec_ext in '' $ac_executable_extensions; do
2688
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2690
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691
    break 2
2692
  fi
2693
done
2694
done
2695
 
2696
fi
2697
fi
2698
RANLIB=$ac_cv_prog_RANLIB
2699
if test -n "$RANLIB"; then
2700
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2701
echo "${ECHO_T}$RANLIB" >&6
2702
else
2703
  echo "$as_me:$LINENO: result: no" >&5
2704
echo "${ECHO_T}no" >&6
2705
fi
2706
 
2707
fi
2708
if test -z "$ac_cv_prog_RANLIB"; then
2709
  ac_ct_RANLIB=$RANLIB
2710
  # Extract the first word of "ranlib", so it can be a program name with args.
2711
set dummy ranlib; ac_word=$2
2712
echo "$as_me:$LINENO: checking for $ac_word" >&5
2713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2715
  echo $ECHO_N "(cached) $ECHO_C" >&6
2716
else
2717
  if test -n "$ac_ct_RANLIB"; then
2718
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2719
else
2720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721
for as_dir in $PATH
2722
do
2723
  IFS=$as_save_IFS
2724
  test -z "$as_dir" && as_dir=.
2725
  for ac_exec_ext in '' $ac_executable_extensions; do
2726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729
    break 2
2730
  fi
2731
done
2732
done
2733
 
2734
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2735
fi
2736
fi
2737
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2738
if test -n "$ac_ct_RANLIB"; then
2739
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2740
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2741
else
2742
  echo "$as_me:$LINENO: result: no" >&5
2743
echo "${ECHO_T}no" >&6
2744
fi
2745
 
2746
  RANLIB=$ac_ct_RANLIB
2747
else
2748
  RANLIB="$ac_cv_prog_RANLIB"
2749
fi
2750
 
2751
if test -n "$ac_tool_prefix"; then
2752
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2753
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2754
echo "$as_me:$LINENO: checking for $ac_word" >&5
2755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756
if test "${ac_cv_prog_READELF+set}" = set; then
2757
  echo $ECHO_N "(cached) $ECHO_C" >&6
2758
else
2759
  if test -n "$READELF"; then
2760
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2761
else
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763
for as_dir in $PATH
2764
do
2765
  IFS=$as_save_IFS
2766
  test -z "$as_dir" && as_dir=.
2767
  for ac_exec_ext in '' $ac_executable_extensions; do
2768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771
    break 2
2772
  fi
2773
done
2774
done
2775
 
2776
fi
2777
fi
2778
READELF=$ac_cv_prog_READELF
2779
if test -n "$READELF"; then
2780
  echo "$as_me:$LINENO: result: $READELF" >&5
2781
echo "${ECHO_T}$READELF" >&6
2782
else
2783
  echo "$as_me:$LINENO: result: no" >&5
2784
echo "${ECHO_T}no" >&6
2785
fi
2786
 
2787
fi
2788
if test -z "$ac_cv_prog_READELF"; then
2789
  ac_ct_READELF=$READELF
2790
  # Extract the first word of "readelf", so it can be a program name with args.
2791
set dummy readelf; ac_word=$2
2792
echo "$as_me:$LINENO: checking for $ac_word" >&5
2793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2795
  echo $ECHO_N "(cached) $ECHO_C" >&6
2796
else
2797
  if test -n "$ac_ct_READELF"; then
2798
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2799
else
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801
for as_dir in $PATH
2802
do
2803
  IFS=$as_save_IFS
2804
  test -z "$as_dir" && as_dir=.
2805
  for ac_exec_ext in '' $ac_executable_extensions; do
2806
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807
    ac_cv_prog_ac_ct_READELF="readelf"
2808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809
    break 2
2810
  fi
2811
done
2812
done
2813
 
2814
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2815
fi
2816
fi
2817
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2818
if test -n "$ac_ct_READELF"; then
2819
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2820
echo "${ECHO_T}$ac_ct_READELF" >&6
2821
else
2822
  echo "$as_me:$LINENO: result: no" >&5
2823
echo "${ECHO_T}no" >&6
2824
fi
2825
 
2826
  READELF=$ac_ct_READELF
2827
else
2828
  READELF="$ac_cv_prog_READELF"
2829
fi
2830
 
2831
 
2832
# Find a good install program.  We prefer a C program (faster),
2833
# so one script is as good as another.  But avoid the broken or
2834
# incompatible versions:
2835
# SysV /etc/install, /usr/sbin/install
2836
# SunOS /usr/etc/install
2837
# IRIX /sbin/install
2838
# AIX /bin/install
2839
# AmigaOS /C/install, which installs bootblocks on floppy discs
2840
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2841
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2842
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2843
# OS/2's system install, which has a completely different semantic
2844
# ./install, which can be erroneously created by make from ./install.sh.
2845
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2846
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2847
if test -z "$INSTALL"; then
2848
if test "${ac_cv_path_install+set}" = set; then
2849
  echo $ECHO_N "(cached) $ECHO_C" >&6
2850
else
2851
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
for as_dir in $PATH
2853
do
2854
  IFS=$as_save_IFS
2855
  test -z "$as_dir" && as_dir=.
2856
  # Account for people who put trailing slashes in PATH elements.
2857
case $as_dir/ in
2858
  ./ | .// | /cC/* | \
2859
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2860
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2861
  /usr/ucb/* ) ;;
2862
  *)
2863
    # OSF1 and SCO ODT 3.0 have their own names for install.
2864
    # Don't use installbsd from OSF since it installs stuff as root
2865
    # by default.
2866
    for ac_prog in ginstall scoinst install; do
2867
      for ac_exec_ext in '' $ac_executable_extensions; do
2868
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2869
          if test $ac_prog = install &&
2870
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2871
            # AIX install.  It has an incompatible calling convention.
2872
            :
2873
          elif test $ac_prog = install &&
2874
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875
            # program-specific install script used by HP pwplus--don't use.
2876
            :
2877
          else
2878
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2879
            break 3
2880
          fi
2881
        fi
2882
      done
2883
    done
2884
    ;;
2885
esac
2886
done
2887
 
2888
 
2889
fi
2890
  if test "${ac_cv_path_install+set}" = set; then
2891
    INSTALL=$ac_cv_path_install
2892
  else
2893
    # As a last resort, use the slow shell script.  We don't cache a
2894
    # path for INSTALL within a source directory, because that will
2895
    # break other packages using the cache if that directory is
2896
    # removed, or if the path is relative.
2897
    INSTALL=$ac_install_sh
2898
  fi
2899
fi
2900
echo "$as_me:$LINENO: result: $INSTALL" >&5
2901
echo "${ECHO_T}$INSTALL" >&6
2902
 
2903
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2904
# It thinks the first close brace ends the variable substitution.
2905
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2906
 
2907
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2908
 
2909
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2910
 
2911
 
2912
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2913
ac_given_INSTALL=$INSTALL
2914
 
2915
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2916
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2917
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2918
if test "${enable_maintainer_mode+set}" = set; then
2919
  enableval="$enable_maintainer_mode"
2920
  USE_MAINTAINER_MODE=$enableval
2921
else
2922
  USE_MAINTAINER_MODE=no
2923
fi;
2924
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2925
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2926
 
2927
 
2928
if test $USE_MAINTAINER_MODE = yes; then
2929
  MAINTAINER_MODE_TRUE=
2930
  MAINTAINER_MODE_FALSE='#'
2931
else
2932
  MAINTAINER_MODE_TRUE='#'
2933
  MAINTAINER_MODE_FALSE=
2934
fi
2935
 
2936
  MAINT=$MAINTAINER_MODE_TRUE
2937
 
2938
 
2939
# By default we simply use the C compiler to build assembly code.
2940
 
2941
test "${CCAS+set}" = set || CCAS=$CC
2942
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2943
 
2944
 
2945
 
2946
 
2947
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2948
# at least currently, we never actually build a program, so we never
2949
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2950
# fails, because we are probably configuring with a cross compiler
2951
# which can't create executables.  So we include AC_EXEEXT to keep
2952
# automake happy, but we don't execute it, since we don't care about
2953
# the result.
2954
if false; then
2955
 
2956
  dummy_var=1
2957
fi
2958
 
2959
. ${newlib_basedir}/configure.host
2960
 
2961
newlib_cflags="${newlib_cflags} -fno-builtin"
2962
 
2963
NEWLIB_CFLAGS=${newlib_cflags}
2964
 
2965
 
2966
LDFLAGS=${ldflags}
2967
 
2968
 
2969
 
2970
 
2971
if test x${newlib_elix_level} = x0; then
2972
  ELIX_LEVEL_0_TRUE=
2973
  ELIX_LEVEL_0_FALSE='#'
2974
else
2975
  ELIX_LEVEL_0_TRUE='#'
2976
  ELIX_LEVEL_0_FALSE=
2977
fi
2978
 
2979
 
2980
 
2981
if test x${newlib_elix_level} = x1; then
2982
  ELIX_LEVEL_1_TRUE=
2983
  ELIX_LEVEL_1_FALSE='#'
2984
else
2985
  ELIX_LEVEL_1_TRUE='#'
2986
  ELIX_LEVEL_1_FALSE=
2987
fi
2988
 
2989
 
2990
 
2991
if test x${newlib_elix_level} = x2; then
2992
  ELIX_LEVEL_2_TRUE=
2993
  ELIX_LEVEL_2_FALSE='#'
2994
else
2995
  ELIX_LEVEL_2_TRUE='#'
2996
  ELIX_LEVEL_2_FALSE=
2997
fi
2998
 
2999
 
3000
 
3001
if test x${newlib_elix_level} = x3; then
3002
  ELIX_LEVEL_3_TRUE=
3003
  ELIX_LEVEL_3_FALSE='#'
3004
else
3005
  ELIX_LEVEL_3_TRUE='#'
3006
  ELIX_LEVEL_3_FALSE=
3007
fi
3008
 
3009
 
3010
 
3011
if test x${newlib_elix_level} = x4; then
3012
  ELIX_LEVEL_4_TRUE=
3013
  ELIX_LEVEL_4_FALSE='#'
3014
else
3015
  ELIX_LEVEL_4_TRUE='#'
3016
  ELIX_LEVEL_4_FALSE=
3017
fi
3018
 
3019
 
3020
 
3021
 
3022
if test x${use_libtool} = xyes; then
3023
  USE_LIBTOOL_TRUE=
3024
  USE_LIBTOOL_FALSE='#'
3025
else
3026
  USE_LIBTOOL_TRUE='#'
3027
  USE_LIBTOOL_FALSE=
3028
fi
3029
 
3030
 
3031
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3032
# use oext, which is set in configure.host based on the target platform.
3033
OBJEXT=${oext}
3034
 
3035
 
3036
 
3037
 
3038
 
3039
 
3040
 
3041
 
3042
 
3043
 
3044
 
3045
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3046
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3047
if test "${lt_cv_path_SED+set}" = set; then
3048
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
else
3050
  # Loop through the user's path and test for sed and gsed.
3051
# Then use that list of sed's as ones to test for truncation.
3052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053
for as_dir in $PATH
3054
do
3055
  IFS=$as_save_IFS
3056
  test -z "$as_dir" && as_dir=.
3057
  for lt_ac_prog in sed gsed; do
3058
    for ac_exec_ext in '' $ac_executable_extensions; do
3059
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3060
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3061
      fi
3062
    done
3063
  done
3064
done
3065
IFS=$as_save_IFS
3066
lt_ac_max=0
3067
lt_ac_count=0
3068
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3069
# along with /bin/sed that truncates output.
3070
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3071
  test ! -f $lt_ac_sed && continue
3072
  cat /dev/null > conftest.in
3073
  lt_ac_count=0
3074
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3075
  # Check for GNU sed and select it if it is found.
3076
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3077
    lt_cv_path_SED=$lt_ac_sed
3078
    break
3079
  fi
3080
  while true; do
3081
    cat conftest.in conftest.in >conftest.tmp
3082
    mv conftest.tmp conftest.in
3083
    cp conftest.in conftest.nl
3084
    echo >>conftest.nl
3085
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3086
    cmp -s conftest.out conftest.nl || break
3087
    # 10000 chars as input seems more than enough
3088
    test $lt_ac_count -gt 10 && break
3089
    lt_ac_count=`expr $lt_ac_count + 1`
3090
    if test $lt_ac_count -gt $lt_ac_max; then
3091
      lt_ac_max=$lt_ac_count
3092
      lt_cv_path_SED=$lt_ac_sed
3093
    fi
3094
  done
3095
done
3096
 
3097
fi
3098
 
3099
SED=$lt_cv_path_SED
3100
 
3101
echo "$as_me:$LINENO: result: $SED" >&5
3102
echo "${ECHO_T}$SED" >&6
3103
 
3104
test -z "$SED" && SED=sed
3105
Xsed="$SED -e 1s/^X//"
3106
 
3107
 
3108
 
3109
 
3110
 
3111
 
3112
 
3113
 
3114
 
3115
 
3116
 
3117
if test "${use_libtool}" = "yes"; then
3118
enable_win32_dll=yes
3119
 
3120
case $host in
3121
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3122
  if test -n "$ac_tool_prefix"; then
3123
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3124
set dummy ${ac_tool_prefix}as; ac_word=$2
3125
echo "$as_me:$LINENO: checking for $ac_word" >&5
3126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127
if test "${ac_cv_prog_AS+set}" = set; then
3128
  echo $ECHO_N "(cached) $ECHO_C" >&6
3129
else
3130
  if test -n "$AS"; then
3131
  ac_cv_prog_AS="$AS" # Let the user override the test.
3132
else
3133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134
for as_dir in $PATH
3135
do
3136
  IFS=$as_save_IFS
3137
  test -z "$as_dir" && as_dir=.
3138
  for ac_exec_ext in '' $ac_executable_extensions; do
3139
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140
    ac_cv_prog_AS="${ac_tool_prefix}as"
3141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142
    break 2
3143
  fi
3144
done
3145
done
3146
 
3147
fi
3148
fi
3149
AS=$ac_cv_prog_AS
3150
if test -n "$AS"; then
3151
  echo "$as_me:$LINENO: result: $AS" >&5
3152
echo "${ECHO_T}$AS" >&6
3153
else
3154
  echo "$as_me:$LINENO: result: no" >&5
3155
echo "${ECHO_T}no" >&6
3156
fi
3157
 
3158
fi
3159
if test -z "$ac_cv_prog_AS"; then
3160
  ac_ct_AS=$AS
3161
  # Extract the first word of "as", so it can be a program name with args.
3162
set dummy as; ac_word=$2
3163
echo "$as_me:$LINENO: checking for $ac_word" >&5
3164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
3167
else
3168
  if test -n "$ac_ct_AS"; then
3169
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3170
else
3171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172
for as_dir in $PATH
3173
do
3174
  IFS=$as_save_IFS
3175
  test -z "$as_dir" && as_dir=.
3176
  for ac_exec_ext in '' $ac_executable_extensions; do
3177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178
    ac_cv_prog_ac_ct_AS="as"
3179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180
    break 2
3181
  fi
3182
done
3183
done
3184
 
3185
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3186
fi
3187
fi
3188
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3189
if test -n "$ac_ct_AS"; then
3190
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3191
echo "${ECHO_T}$ac_ct_AS" >&6
3192
else
3193
  echo "$as_me:$LINENO: result: no" >&5
3194
echo "${ECHO_T}no" >&6
3195
fi
3196
 
3197
  AS=$ac_ct_AS
3198
else
3199
  AS="$ac_cv_prog_AS"
3200
fi
3201
 
3202
  if test -n "$ac_tool_prefix"; then
3203
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3204
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3205
echo "$as_me:$LINENO: checking for $ac_word" >&5
3206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3208
  echo $ECHO_N "(cached) $ECHO_C" >&6
3209
else
3210
  if test -n "$DLLTOOL"; then
3211
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3212
else
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214
for as_dir in $PATH
3215
do
3216
  IFS=$as_save_IFS
3217
  test -z "$as_dir" && as_dir=.
3218
  for ac_exec_ext in '' $ac_executable_extensions; do
3219
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222
    break 2
3223
  fi
3224
done
3225
done
3226
 
3227
fi
3228
fi
3229
DLLTOOL=$ac_cv_prog_DLLTOOL
3230
if test -n "$DLLTOOL"; then
3231
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3232
echo "${ECHO_T}$DLLTOOL" >&6
3233
else
3234
  echo "$as_me:$LINENO: result: no" >&5
3235
echo "${ECHO_T}no" >&6
3236
fi
3237
 
3238
fi
3239
if test -z "$ac_cv_prog_DLLTOOL"; then
3240
  ac_ct_DLLTOOL=$DLLTOOL
3241
  # Extract the first word of "dlltool", so it can be a program name with args.
3242
set dummy dlltool; ac_word=$2
3243
echo "$as_me:$LINENO: checking for $ac_word" >&5
3244
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3246
  echo $ECHO_N "(cached) $ECHO_C" >&6
3247
else
3248
  if test -n "$ac_ct_DLLTOOL"; then
3249
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3250
else
3251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252
for as_dir in $PATH
3253
do
3254
  IFS=$as_save_IFS
3255
  test -z "$as_dir" && as_dir=.
3256
  for ac_exec_ext in '' $ac_executable_extensions; do
3257
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3259
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260
    break 2
3261
  fi
3262
done
3263
done
3264
 
3265
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3266
fi
3267
fi
3268
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3269
if test -n "$ac_ct_DLLTOOL"; then
3270
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3271
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3272
else
3273
  echo "$as_me:$LINENO: result: no" >&5
3274
echo "${ECHO_T}no" >&6
3275
fi
3276
 
3277
  DLLTOOL=$ac_ct_DLLTOOL
3278
else
3279
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3280
fi
3281
 
3282
  if test -n "$ac_tool_prefix"; then
3283
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3284
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3285
echo "$as_me:$LINENO: checking for $ac_word" >&5
3286
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3288
  echo $ECHO_N "(cached) $ECHO_C" >&6
3289
else
3290
  if test -n "$OBJDUMP"; then
3291
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3292
else
3293
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294
for as_dir in $PATH
3295
do
3296
  IFS=$as_save_IFS
3297
  test -z "$as_dir" && as_dir=.
3298
  for ac_exec_ext in '' $ac_executable_extensions; do
3299
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3301
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302
    break 2
3303
  fi
3304
done
3305
done
3306
 
3307
fi
3308
fi
3309
OBJDUMP=$ac_cv_prog_OBJDUMP
3310
if test -n "$OBJDUMP"; then
3311
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3312
echo "${ECHO_T}$OBJDUMP" >&6
3313
else
3314
  echo "$as_me:$LINENO: result: no" >&5
3315
echo "${ECHO_T}no" >&6
3316
fi
3317
 
3318
fi
3319
if test -z "$ac_cv_prog_OBJDUMP"; then
3320
  ac_ct_OBJDUMP=$OBJDUMP
3321
  # Extract the first word of "objdump", so it can be a program name with args.
3322
set dummy objdump; ac_word=$2
3323
echo "$as_me:$LINENO: checking for $ac_word" >&5
3324
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3326
  echo $ECHO_N "(cached) $ECHO_C" >&6
3327
else
3328
  if test -n "$ac_ct_OBJDUMP"; then
3329
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3330
else
3331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332
for as_dir in $PATH
3333
do
3334
  IFS=$as_save_IFS
3335
  test -z "$as_dir" && as_dir=.
3336
  for ac_exec_ext in '' $ac_executable_extensions; do
3337
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3339
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340
    break 2
3341
  fi
3342
done
3343
done
3344
 
3345
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3346
fi
3347
fi
3348
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3349
if test -n "$ac_ct_OBJDUMP"; then
3350
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3351
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3352
else
3353
  echo "$as_me:$LINENO: result: no" >&5
3354
echo "${ECHO_T}no" >&6
3355
fi
3356
 
3357
  OBJDUMP=$ac_ct_OBJDUMP
3358
else
3359
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3360
fi
3361
 
3362
  ;;
3363
esac
3364
 
3365
test -z "$AS" && AS=as
3366
 
3367
 
3368
 
3369
 
3370
 
3371
test -z "$DLLTOOL" && DLLTOOL=dlltool
3372
 
3373
 
3374
 
3375
 
3376
 
3377
test -z "$OBJDUMP" && OBJDUMP=objdump
3378
 
3379
 
3380
 
3381
 
3382
 
3383
 
3384
 
3385
case `pwd` in
3386
  *\ * | *\     *)
3387
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3388
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3389
esac
3390
 
3391
 
3392
 
3393
macro_version='2.2.6'
3394
macro_revision='1.3012'
3395
 
3396
 
3397
 
3398
 
3399
 
3400
 
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
ltmain="$ac_aux_dir/ltmain.sh"
3409
 
3410
ac_ext=c
3411
ac_cpp='$CPP $CPPFLAGS'
3412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
if test -n "$ac_tool_prefix"; then
3416
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418
echo "$as_me:$LINENO: checking for $ac_word" >&5
3419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420
if test "${ac_cv_prog_CC+set}" = set; then
3421
  echo $ECHO_N "(cached) $ECHO_C" >&6
3422
else
3423
  if test -n "$CC"; then
3424
  ac_cv_prog_CC="$CC" # Let the user override the test.
3425
else
3426
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427
for as_dir in $PATH
3428
do
3429
  IFS=$as_save_IFS
3430
  test -z "$as_dir" && as_dir=.
3431
  for ac_exec_ext in '' $ac_executable_extensions; do
3432
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3434
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435
    break 2
3436
  fi
3437
done
3438
done
3439
 
3440
fi
3441
fi
3442
CC=$ac_cv_prog_CC
3443
if test -n "$CC"; then
3444
  echo "$as_me:$LINENO: result: $CC" >&5
3445
echo "${ECHO_T}$CC" >&6
3446
else
3447
  echo "$as_me:$LINENO: result: no" >&5
3448
echo "${ECHO_T}no" >&6
3449
fi
3450
 
3451
fi
3452
if test -z "$ac_cv_prog_CC"; then
3453
  ac_ct_CC=$CC
3454
  # Extract the first word of "gcc", so it can be a program name with args.
3455
set dummy gcc; ac_word=$2
3456
echo "$as_me:$LINENO: checking for $ac_word" >&5
3457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
3460
else
3461
  if test -n "$ac_ct_CC"; then
3462
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463
else
3464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465
for as_dir in $PATH
3466
do
3467
  IFS=$as_save_IFS
3468
  test -z "$as_dir" && as_dir=.
3469
  for ac_exec_ext in '' $ac_executable_extensions; do
3470
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471
    ac_cv_prog_ac_ct_CC="gcc"
3472
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473
    break 2
3474
  fi
3475
done
3476
done
3477
 
3478
fi
3479
fi
3480
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481
if test -n "$ac_ct_CC"; then
3482
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483
echo "${ECHO_T}$ac_ct_CC" >&6
3484
else
3485
  echo "$as_me:$LINENO: result: no" >&5
3486
echo "${ECHO_T}no" >&6
3487
fi
3488
 
3489
  CC=$ac_ct_CC
3490
else
3491
  CC="$ac_cv_prog_CC"
3492
fi
3493
 
3494
if test -z "$CC"; then
3495
  if test -n "$ac_tool_prefix"; then
3496
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3497
set dummy ${ac_tool_prefix}cc; ac_word=$2
3498
echo "$as_me:$LINENO: checking for $ac_word" >&5
3499
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500
if test "${ac_cv_prog_CC+set}" = set; then
3501
  echo $ECHO_N "(cached) $ECHO_C" >&6
3502
else
3503
  if test -n "$CC"; then
3504
  ac_cv_prog_CC="$CC" # Let the user override the test.
3505
else
3506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507
for as_dir in $PATH
3508
do
3509
  IFS=$as_save_IFS
3510
  test -z "$as_dir" && as_dir=.
3511
  for ac_exec_ext in '' $ac_executable_extensions; do
3512
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3514
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515
    break 2
3516
  fi
3517
done
3518
done
3519
 
3520
fi
3521
fi
3522
CC=$ac_cv_prog_CC
3523
if test -n "$CC"; then
3524
  echo "$as_me:$LINENO: result: $CC" >&5
3525
echo "${ECHO_T}$CC" >&6
3526
else
3527
  echo "$as_me:$LINENO: result: no" >&5
3528
echo "${ECHO_T}no" >&6
3529
fi
3530
 
3531
fi
3532
if test -z "$ac_cv_prog_CC"; then
3533
  ac_ct_CC=$CC
3534
  # Extract the first word of "cc", so it can be a program name with args.
3535
set dummy cc; ac_word=$2
3536
echo "$as_me:$LINENO: checking for $ac_word" >&5
3537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539
  echo $ECHO_N "(cached) $ECHO_C" >&6
3540
else
3541
  if test -n "$ac_ct_CC"; then
3542
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543
else
3544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545
for as_dir in $PATH
3546
do
3547
  IFS=$as_save_IFS
3548
  test -z "$as_dir" && as_dir=.
3549
  for ac_exec_ext in '' $ac_executable_extensions; do
3550
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551
    ac_cv_prog_ac_ct_CC="cc"
3552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553
    break 2
3554
  fi
3555
done
3556
done
3557
 
3558
fi
3559
fi
3560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561
if test -n "$ac_ct_CC"; then
3562
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563
echo "${ECHO_T}$ac_ct_CC" >&6
3564
else
3565
  echo "$as_me:$LINENO: result: no" >&5
3566
echo "${ECHO_T}no" >&6
3567
fi
3568
 
3569
  CC=$ac_ct_CC
3570
else
3571
  CC="$ac_cv_prog_CC"
3572
fi
3573
 
3574
fi
3575
if test -z "$CC"; then
3576
  # Extract the first word of "cc", so it can be a program name with args.
3577
set dummy cc; ac_word=$2
3578
echo "$as_me:$LINENO: checking for $ac_word" >&5
3579
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580
if test "${ac_cv_prog_CC+set}" = set; then
3581
  echo $ECHO_N "(cached) $ECHO_C" >&6
3582
else
3583
  if test -n "$CC"; then
3584
  ac_cv_prog_CC="$CC" # Let the user override the test.
3585
else
3586
  ac_prog_rejected=no
3587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588
for as_dir in $PATH
3589
do
3590
  IFS=$as_save_IFS
3591
  test -z "$as_dir" && as_dir=.
3592
  for ac_exec_ext in '' $ac_executable_extensions; do
3593
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3595
       ac_prog_rejected=yes
3596
       continue
3597
     fi
3598
    ac_cv_prog_CC="cc"
3599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600
    break 2
3601
  fi
3602
done
3603
done
3604
 
3605
if test $ac_prog_rejected = yes; then
3606
  # We found a bogon in the path, so make sure we never use it.
3607
  set dummy $ac_cv_prog_CC
3608
  shift
3609
  if test $# != 0; then
3610
    # We chose a different compiler from the bogus one.
3611
    # However, it has the same basename, so the bogon will be chosen
3612
    # first if we set CC to just the basename; use the full file name.
3613
    shift
3614
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3615
  fi
3616
fi
3617
fi
3618
fi
3619
CC=$ac_cv_prog_CC
3620
if test -n "$CC"; then
3621
  echo "$as_me:$LINENO: result: $CC" >&5
3622
echo "${ECHO_T}$CC" >&6
3623
else
3624
  echo "$as_me:$LINENO: result: no" >&5
3625
echo "${ECHO_T}no" >&6
3626
fi
3627
 
3628
fi
3629
if test -z "$CC"; then
3630
  if test -n "$ac_tool_prefix"; then
3631
  for ac_prog in cl
3632
  do
3633
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3634
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3635
echo "$as_me:$LINENO: checking for $ac_word" >&5
3636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637
if test "${ac_cv_prog_CC+set}" = set; then
3638
  echo $ECHO_N "(cached) $ECHO_C" >&6
3639
else
3640
  if test -n "$CC"; then
3641
  ac_cv_prog_CC="$CC" # Let the user override the test.
3642
else
3643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644
for as_dir in $PATH
3645
do
3646
  IFS=$as_save_IFS
3647
  test -z "$as_dir" && as_dir=.
3648
  for ac_exec_ext in '' $ac_executable_extensions; do
3649
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652
    break 2
3653
  fi
3654
done
3655
done
3656
 
3657
fi
3658
fi
3659
CC=$ac_cv_prog_CC
3660
if test -n "$CC"; then
3661
  echo "$as_me:$LINENO: result: $CC" >&5
3662
echo "${ECHO_T}$CC" >&6
3663
else
3664
  echo "$as_me:$LINENO: result: no" >&5
3665
echo "${ECHO_T}no" >&6
3666
fi
3667
 
3668
    test -n "$CC" && break
3669
  done
3670
fi
3671
if test -z "$CC"; then
3672
  ac_ct_CC=$CC
3673
  for ac_prog in cl
3674
do
3675
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3676
set dummy $ac_prog; ac_word=$2
3677
echo "$as_me:$LINENO: checking for $ac_word" >&5
3678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3680
  echo $ECHO_N "(cached) $ECHO_C" >&6
3681
else
3682
  if test -n "$ac_ct_CC"; then
3683
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684
else
3685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686
for as_dir in $PATH
3687
do
3688
  IFS=$as_save_IFS
3689
  test -z "$as_dir" && as_dir=.
3690
  for ac_exec_ext in '' $ac_executable_extensions; do
3691
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3692
    ac_cv_prog_ac_ct_CC="$ac_prog"
3693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694
    break 2
3695
  fi
3696
done
3697
done
3698
 
3699
fi
3700
fi
3701
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3702
if test -n "$ac_ct_CC"; then
3703
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3704
echo "${ECHO_T}$ac_ct_CC" >&6
3705
else
3706
  echo "$as_me:$LINENO: result: no" >&5
3707
echo "${ECHO_T}no" >&6
3708
fi
3709
 
3710
  test -n "$ac_ct_CC" && break
3711
done
3712
 
3713
  CC=$ac_ct_CC
3714
fi
3715
 
3716
fi
3717
 
3718
 
3719
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3720
See \`config.log' for more details." >&5
3721
echo "$as_me: error: no acceptable C compiler found in \$PATH
3722
See \`config.log' for more details." >&2;}
3723
   { (exit 1); exit 1; }; }
3724
 
3725
# Provide some information about the compiler.
3726
echo "$as_me:$LINENO:" \
3727
     "checking for C compiler version" >&5
3728
ac_compiler=`set X $ac_compile; echo $2`
3729
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3730
  (eval $ac_compiler --version &5) 2>&5
3731
  ac_status=$?
3732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733
  (exit $ac_status); }
3734
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3735
  (eval $ac_compiler -v &5) 2>&5
3736
  ac_status=$?
3737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738
  (exit $ac_status); }
3739
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3740
  (eval $ac_compiler -V &5) 2>&5
3741
  ac_status=$?
3742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743
  (exit $ac_status); }
3744
 
3745
cat >conftest.$ac_ext <<_ACEOF
3746
/* confdefs.h.  */
3747
_ACEOF
3748
cat confdefs.h >>conftest.$ac_ext
3749
cat >>conftest.$ac_ext <<_ACEOF
3750
/* end confdefs.h.  */
3751
 
3752
int
3753
main ()
3754
{
3755
 
3756
  ;
3757
  return 0;
3758
}
3759
_ACEOF
3760
ac_clean_files_save=$ac_clean_files
3761
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3762
# Try to create an executable without -o first, disregard a.out.
3763
# It will help us diagnose broken compilers, and finding out an intuition
3764
# of exeext.
3765
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3766
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3767
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3768
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3769
  (eval $ac_link_default) 2>&5
3770
  ac_status=$?
3771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772
  (exit $ac_status); }; then
3773
  # Find the output, starting from the most likely.  This scheme is
3774
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3775
# resort.
3776
 
3777
# Be careful to initialize this variable, since it used to be cached.
3778
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3779
ac_cv_exeext=
3780
# b.out is created by i960 compilers.
3781
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3782
do
3783
  test -f "$ac_file" || continue
3784
  case $ac_file in
3785
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3786
        ;;
3787
    conftest.$ac_ext )
3788
        # This is the source file.
3789
        ;;
3790
    [ab].out )
3791
        # We found the default executable, but exeext='' is most
3792
        # certainly right.
3793
        break;;
3794
    *.* )
3795
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3797
        # but it would be cool to find out if it's true.  Does anybody
3798
        # maintain Libtool? --akim.
3799
        export ac_cv_exeext
3800
        break;;
3801
    * )
3802
        break;;
3803
  esac
3804
done
3805
else
3806
  echo "$as_me: failed program was:" >&5
3807
sed 's/^/| /' conftest.$ac_ext >&5
3808
 
3809
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3810
See \`config.log' for more details." >&5
3811
echo "$as_me: error: C compiler cannot create executables
3812
See \`config.log' for more details." >&2;}
3813
   { (exit 77); exit 77; }; }
3814
fi
3815
 
3816
ac_exeext=$ac_cv_exeext
3817
echo "$as_me:$LINENO: result: $ac_file" >&5
3818
echo "${ECHO_T}$ac_file" >&6
3819
 
3820
# Check the compiler produces executables we can run.  If not, either
3821
# the compiler is broken, or we cross compile.
3822
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3823
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3824
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3825
# If not cross compiling, check that we can run a simple program.
3826
if test "$cross_compiling" != yes; then
3827
  if { ac_try='./$ac_file'
3828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829
  (eval $ac_try) 2>&5
3830
  ac_status=$?
3831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832
  (exit $ac_status); }; }; then
3833
    cross_compiling=no
3834
  else
3835
    if test "$cross_compiling" = maybe; then
3836
        cross_compiling=yes
3837
    else
3838
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3839
If you meant to cross compile, use \`--host'.
3840
See \`config.log' for more details." >&5
3841
echo "$as_me: error: cannot run C compiled programs.
3842
If you meant to cross compile, use \`--host'.
3843
See \`config.log' for more details." >&2;}
3844
   { (exit 1); exit 1; }; }
3845
    fi
3846
  fi
3847
fi
3848
echo "$as_me:$LINENO: result: yes" >&5
3849
echo "${ECHO_T}yes" >&6
3850
 
3851
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3852
ac_clean_files=$ac_clean_files_save
3853
# Check the compiler produces executables we can run.  If not, either
3854
# the compiler is broken, or we cross compile.
3855
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3856
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3857
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3858
echo "${ECHO_T}$cross_compiling" >&6
3859
 
3860
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3861
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3862
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863
  (eval $ac_link) 2>&5
3864
  ac_status=$?
3865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866
  (exit $ac_status); }; then
3867
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3868
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3869
# work properly (i.e., refer to `conftest.exe'), while it won't with
3870
# `rm'.
3871
for ac_file in conftest.exe conftest conftest.*; do
3872
  test -f "$ac_file" || continue
3873
  case $ac_file in
3874
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3875
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876
          export ac_cv_exeext
3877
          break;;
3878
    * ) break;;
3879
  esac
3880
done
3881
else
3882
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3883
See \`config.log' for more details." >&5
3884
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3885
See \`config.log' for more details." >&2;}
3886
   { (exit 1); exit 1; }; }
3887
fi
3888
 
3889
rm -f conftest$ac_cv_exeext
3890
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3891
echo "${ECHO_T}$ac_cv_exeext" >&6
3892
 
3893
rm -f conftest.$ac_ext
3894
EXEEXT=$ac_cv_exeext
3895
ac_exeext=$EXEEXT
3896
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3897
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3898
if test "${ac_cv_objext+set}" = set; then
3899
  echo $ECHO_N "(cached) $ECHO_C" >&6
3900
else
3901
  cat >conftest.$ac_ext <<_ACEOF
3902
/* confdefs.h.  */
3903
_ACEOF
3904
cat confdefs.h >>conftest.$ac_ext
3905
cat >>conftest.$ac_ext <<_ACEOF
3906
/* end confdefs.h.  */
3907
 
3908
int
3909
main ()
3910
{
3911
 
3912
  ;
3913
  return 0;
3914
}
3915
_ACEOF
3916
rm -f conftest.o conftest.obj
3917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918
  (eval $ac_compile) 2>&5
3919
  ac_status=$?
3920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
  (exit $ac_status); }; then
3922
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3923
  case $ac_file in
3924
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3925
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926
       break;;
3927
  esac
3928
done
3929
else
3930
  echo "$as_me: failed program was:" >&5
3931
sed 's/^/| /' conftest.$ac_ext >&5
3932
 
3933
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3934
See \`config.log' for more details." >&5
3935
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3936
See \`config.log' for more details." >&2;}
3937
   { (exit 1); exit 1; }; }
3938
fi
3939
 
3940
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3941
fi
3942
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3943
echo "${ECHO_T}$ac_cv_objext" >&6
3944
OBJEXT=$ac_cv_objext
3945
ac_objext=$OBJEXT
3946
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3947
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3948
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3949
  echo $ECHO_N "(cached) $ECHO_C" >&6
3950
else
3951
  cat >conftest.$ac_ext <<_ACEOF
3952
/* confdefs.h.  */
3953
_ACEOF
3954
cat confdefs.h >>conftest.$ac_ext
3955
cat >>conftest.$ac_ext <<_ACEOF
3956
/* end confdefs.h.  */
3957
 
3958
int
3959
main ()
3960
{
3961
#ifndef __GNUC__
3962
       choke me
3963
#endif
3964
 
3965
  ;
3966
  return 0;
3967
}
3968
_ACEOF
3969
rm -f conftest.$ac_objext
3970
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971
  (eval $ac_compile) 2>conftest.er1
3972
  ac_status=$?
3973
  grep -v '^ *+' conftest.er1 >conftest.err
3974
  rm -f conftest.er1
3975
  cat conftest.err >&5
3976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977
  (exit $ac_status); } &&
3978
         { ac_try='test -z "$ac_c_werror_flag"
3979
                         || test ! -s conftest.err'
3980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981
  (eval $ac_try) 2>&5
3982
  ac_status=$?
3983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
  (exit $ac_status); }; } &&
3985
         { ac_try='test -s conftest.$ac_objext'
3986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987
  (eval $ac_try) 2>&5
3988
  ac_status=$?
3989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990
  (exit $ac_status); }; }; then
3991
  ac_compiler_gnu=yes
3992
else
3993
  echo "$as_me: failed program was:" >&5
3994
sed 's/^/| /' conftest.$ac_ext >&5
3995
 
3996
ac_compiler_gnu=no
3997
fi
3998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000
 
4001
fi
4002
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4003
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4004
GCC=`test $ac_compiler_gnu = yes && echo yes`
4005
ac_test_CFLAGS=${CFLAGS+set}
4006
ac_save_CFLAGS=$CFLAGS
4007
CFLAGS="-g"
4008
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4009
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4010
if test "${ac_cv_prog_cc_g+set}" = set; then
4011
  echo $ECHO_N "(cached) $ECHO_C" >&6
4012
else
4013
  cat >conftest.$ac_ext <<_ACEOF
4014
/* confdefs.h.  */
4015
_ACEOF
4016
cat confdefs.h >>conftest.$ac_ext
4017
cat >>conftest.$ac_ext <<_ACEOF
4018
/* end confdefs.h.  */
4019
 
4020
int
4021
main ()
4022
{
4023
 
4024
  ;
4025
  return 0;
4026
}
4027
_ACEOF
4028
rm -f conftest.$ac_objext
4029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4030
  (eval $ac_compile) 2>conftest.er1
4031
  ac_status=$?
4032
  grep -v '^ *+' conftest.er1 >conftest.err
4033
  rm -f conftest.er1
4034
  cat conftest.err >&5
4035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036
  (exit $ac_status); } &&
4037
         { ac_try='test -z "$ac_c_werror_flag"
4038
                         || test ! -s conftest.err'
4039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040
  (eval $ac_try) 2>&5
4041
  ac_status=$?
4042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
  (exit $ac_status); }; } &&
4044
         { ac_try='test -s conftest.$ac_objext'
4045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4046
  (eval $ac_try) 2>&5
4047
  ac_status=$?
4048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049
  (exit $ac_status); }; }; then
4050
  ac_cv_prog_cc_g=yes
4051
else
4052
  echo "$as_me: failed program was:" >&5
4053
sed 's/^/| /' conftest.$ac_ext >&5
4054
 
4055
ac_cv_prog_cc_g=no
4056
fi
4057
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4058
fi
4059
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4060
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4061
if test "$ac_test_CFLAGS" = set; then
4062
  CFLAGS=$ac_save_CFLAGS
4063
elif test $ac_cv_prog_cc_g = yes; then
4064
  if test "$GCC" = yes; then
4065
    CFLAGS="-g -O2"
4066
  else
4067
    CFLAGS="-g"
4068
  fi
4069
else
4070
  if test "$GCC" = yes; then
4071
    CFLAGS="-O2"
4072
  else
4073
    CFLAGS=
4074
  fi
4075
fi
4076
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4077
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4078
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4079
  echo $ECHO_N "(cached) $ECHO_C" >&6
4080
else
4081
  ac_cv_prog_cc_stdc=no
4082
ac_save_CC=$CC
4083
cat >conftest.$ac_ext <<_ACEOF
4084
/* confdefs.h.  */
4085
_ACEOF
4086
cat confdefs.h >>conftest.$ac_ext
4087
cat >>conftest.$ac_ext <<_ACEOF
4088
/* end confdefs.h.  */
4089
#include 
4090
#include 
4091
#include 
4092
#include 
4093
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4094
struct buf { int x; };
4095
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096
static char *e (p, i)
4097
     char **p;
4098
     int i;
4099
{
4100
  return p[i];
4101
}
4102
static char *f (char * (*g) (char **, int), char **p, ...)
4103
{
4104
  char *s;
4105
  va_list v;
4106
  va_start (v,p);
4107
  s = g (p, va_arg (v,int));
4108
  va_end (v);
4109
  return s;
4110
}
4111
 
4112
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4113
   function prototypes and stuff, but not '\xHH' hex character constants.
4114
   These don't provoke an error unfortunately, instead are silently treated
4115
   as 'x'.  The following induces an error, until -std1 is added to get
4116
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4117
   array size at least.  It's necessary to write '\x00'==0 to get something
4118
   that's true only with -std1.  */
4119
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4120
 
4121
int test (int i, double x);
4122
struct s1 {int (*f) (int a);};
4123
struct s2 {int (*f) (double a);};
4124
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125
int argc;
4126
char **argv;
4127
int
4128
main ()
4129
{
4130
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4131
  ;
4132
  return 0;
4133
}
4134
_ACEOF
4135
# Don't try gcc -ansi; that turns off useful extensions and
4136
# breaks some systems' header files.
4137
# AIX                   -qlanglvl=ansi
4138
# Ultrix and OSF/1      -std1
4139
# HP-UX 10.20 and later -Ae
4140
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4141
# SVR4                  -Xc -D__EXTENSIONS__
4142
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143
do
4144
  CC="$ac_save_CC $ac_arg"
4145
  rm -f conftest.$ac_objext
4146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147
  (eval $ac_compile) 2>conftest.er1
4148
  ac_status=$?
4149
  grep -v '^ *+' conftest.er1 >conftest.err
4150
  rm -f conftest.er1
4151
  cat conftest.err >&5
4152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153
  (exit $ac_status); } &&
4154
         { ac_try='test -z "$ac_c_werror_flag"
4155
                         || test ! -s conftest.err'
4156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157
  (eval $ac_try) 2>&5
4158
  ac_status=$?
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
  (exit $ac_status); }; } &&
4161
         { ac_try='test -s conftest.$ac_objext'
4162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163
  (eval $ac_try) 2>&5
4164
  ac_status=$?
4165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166
  (exit $ac_status); }; }; then
4167
  ac_cv_prog_cc_stdc=$ac_arg
4168
break
4169
else
4170
  echo "$as_me: failed program was:" >&5
4171
sed 's/^/| /' conftest.$ac_ext >&5
4172
 
4173
fi
4174
rm -f conftest.err conftest.$ac_objext
4175
done
4176
rm -f conftest.$ac_ext conftest.$ac_objext
4177
CC=$ac_save_CC
4178
 
4179
fi
4180
 
4181
case "x$ac_cv_prog_cc_stdc" in
4182
  x|xno)
4183
    echo "$as_me:$LINENO: result: none needed" >&5
4184
echo "${ECHO_T}none needed" >&6 ;;
4185
  *)
4186
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4187
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4188
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4189
esac
4190
 
4191
# Some people use a C++ compiler to compile C.  Since we use `exit',
4192
# in C++ we need to declare it.  In case someone uses the same compiler
4193
# for both compiling C and C++ we need to have the C++ compiler decide
4194
# the declaration of exit, since it's the most demanding environment.
4195
cat >conftest.$ac_ext <<_ACEOF
4196
#ifndef __cplusplus
4197
  choke me
4198
#endif
4199
_ACEOF
4200
rm -f conftest.$ac_objext
4201
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4202
  (eval $ac_compile) 2>conftest.er1
4203
  ac_status=$?
4204
  grep -v '^ *+' conftest.er1 >conftest.err
4205
  rm -f conftest.er1
4206
  cat conftest.err >&5
4207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208
  (exit $ac_status); } &&
4209
         { ac_try='test -z "$ac_c_werror_flag"
4210
                         || test ! -s conftest.err'
4211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212
  (eval $ac_try) 2>&5
4213
  ac_status=$?
4214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215
  (exit $ac_status); }; } &&
4216
         { ac_try='test -s conftest.$ac_objext'
4217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218
  (eval $ac_try) 2>&5
4219
  ac_status=$?
4220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221
  (exit $ac_status); }; }; then
4222
  for ac_declaration in \
4223
   '' \
4224
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4225
   'extern "C" void std::exit (int); using std::exit;' \
4226
   'extern "C" void exit (int) throw ();' \
4227
   'extern "C" void exit (int);' \
4228
   'void exit (int);'
4229
do
4230
  cat >conftest.$ac_ext <<_ACEOF
4231
/* confdefs.h.  */
4232
_ACEOF
4233
cat confdefs.h >>conftest.$ac_ext
4234
cat >>conftest.$ac_ext <<_ACEOF
4235
/* end confdefs.h.  */
4236
$ac_declaration
4237
#include 
4238
int
4239
main ()
4240
{
4241
exit (42);
4242
  ;
4243
  return 0;
4244
}
4245
_ACEOF
4246
rm -f conftest.$ac_objext
4247
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248
  (eval $ac_compile) 2>conftest.er1
4249
  ac_status=$?
4250
  grep -v '^ *+' conftest.er1 >conftest.err
4251
  rm -f conftest.er1
4252
  cat conftest.err >&5
4253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254
  (exit $ac_status); } &&
4255
         { ac_try='test -z "$ac_c_werror_flag"
4256
                         || test ! -s conftest.err'
4257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258
  (eval $ac_try) 2>&5
4259
  ac_status=$?
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
  (exit $ac_status); }; } &&
4262
         { ac_try='test -s conftest.$ac_objext'
4263
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264
  (eval $ac_try) 2>&5
4265
  ac_status=$?
4266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267
  (exit $ac_status); }; }; then
4268
  :
4269
else
4270
  echo "$as_me: failed program was:" >&5
4271
sed 's/^/| /' conftest.$ac_ext >&5
4272
 
4273
continue
4274
fi
4275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276
  cat >conftest.$ac_ext <<_ACEOF
4277
/* confdefs.h.  */
4278
_ACEOF
4279
cat confdefs.h >>conftest.$ac_ext
4280
cat >>conftest.$ac_ext <<_ACEOF
4281
/* end confdefs.h.  */
4282
$ac_declaration
4283
int
4284
main ()
4285
{
4286
exit (42);
4287
  ;
4288
  return 0;
4289
}
4290
_ACEOF
4291
rm -f conftest.$ac_objext
4292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293
  (eval $ac_compile) 2>conftest.er1
4294
  ac_status=$?
4295
  grep -v '^ *+' conftest.er1 >conftest.err
4296
  rm -f conftest.er1
4297
  cat conftest.err >&5
4298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299
  (exit $ac_status); } &&
4300
         { ac_try='test -z "$ac_c_werror_flag"
4301
                         || test ! -s conftest.err'
4302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303
  (eval $ac_try) 2>&5
4304
  ac_status=$?
4305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
  (exit $ac_status); }; } &&
4307
         { ac_try='test -s conftest.$ac_objext'
4308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309
  (eval $ac_try) 2>&5
4310
  ac_status=$?
4311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312
  (exit $ac_status); }; }; then
4313
  break
4314
else
4315
  echo "$as_me: failed program was:" >&5
4316
sed 's/^/| /' conftest.$ac_ext >&5
4317
 
4318
fi
4319
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320
done
4321
rm -f conftest*
4322
if test -n "$ac_declaration"; then
4323
  echo '#ifdef __cplusplus' >>confdefs.h
4324
  echo $ac_declaration      >>confdefs.h
4325
  echo '#endif'             >>confdefs.h
4326
fi
4327
 
4328
else
4329
  echo "$as_me: failed program was:" >&5
4330
sed 's/^/| /' conftest.$ac_ext >&5
4331
 
4332
fi
4333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334
ac_ext=c
4335
ac_cpp='$CPP $CPPFLAGS'
4336
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
 
4340
depcc="$CC"   am_compiler_list=
4341
 
4342
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4343
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4344
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4345
  echo $ECHO_N "(cached) $ECHO_C" >&6
4346
else
4347
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4348
  # We make a subdir and do the tests there.  Otherwise we can end up
4349
  # making bogus files that we don't know about and never remove.  For
4350
  # instance it was reported that on HP-UX the gcc test will end up
4351
  # making a dummy file named `D' -- because `-MD' means `put the output
4352
  # in D'.
4353
  mkdir conftest.dir
4354
  # Copy depcomp to subdir because otherwise we won't find it if we're
4355
  # using a relative directory.
4356
  cp "$am_depcomp" conftest.dir
4357
  cd conftest.dir
4358
  # We will build objects and dependencies in a subdirectory because
4359
  # it helps to detect inapplicable dependency modes.  For instance
4360
  # both Tru64's cc and ICC support -MD to output dependencies as a
4361
  # side effect of compilation, but ICC will put the dependencies in
4362
  # the current directory while Tru64 will put them in the object
4363
  # directory.
4364
  mkdir sub
4365
 
4366
  am_cv_CC_dependencies_compiler_type=none
4367
  if test "$am_compiler_list" = ""; then
4368
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4369
  fi
4370
  for depmode in $am_compiler_list; do
4371
    # Setup a source with many dependencies, because some compilers
4372
    # like to wrap large dependency lists on column 80 (with \), and
4373
    # we should not choose a depcomp mode which is confused by this.
4374
    #
4375
    # We need to recreate these files for each test, as the compiler may
4376
    # overwrite some of them when testing with obscure command lines.
4377
    # This happens at least with the AIX C compiler.
4378
    : > sub/conftest.c
4379
    for i in 1 2 3 4 5 6; do
4380
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4381
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4382
      # Solaris 8's {/usr,}/bin/sh.
4383
      touch sub/conftst$i.h
4384
    done
4385
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4386
 
4387
    case $depmode in
4388
    nosideeffect)
4389
      # after this tag, mechanisms are not by side-effect, so they'll
4390
      # only be used when explicitly requested
4391
      if test "x$enable_dependency_tracking" = xyes; then
4392
        continue
4393
      else
4394
        break
4395
      fi
4396
      ;;
4397
    none) break ;;
4398
    esac
4399
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400
    # mode.  It turns out that the SunPro C++ compiler does not properly
4401
    # handle `-M -o', and we need to detect this.
4402
    if depmode=$depmode \
4403
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4404
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4405
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4406
         >/dev/null 2>conftest.err &&
4407
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4409
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410
      # icc doesn't choke on unknown options, it will just issue warnings
4411
      # or remarks (even with -Werror).  So we grep stderr for any message
4412
      # that says an option was ignored or not supported.
4413
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4414
      #   icc: Command line warning: ignoring option '-M'; no argument required
4415
      # The diagnosis changed in icc 8.0:
4416
      #   icc: Command line remark: option '-MP' not supported
4417
      if (grep 'ignoring option' conftest.err ||
4418
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419
        am_cv_CC_dependencies_compiler_type=$depmode
4420
        break
4421
      fi
4422
    fi
4423
  done
4424
 
4425
  cd ..
4426
  rm -rf conftest.dir
4427
else
4428
  am_cv_CC_dependencies_compiler_type=none
4429
fi
4430
 
4431
fi
4432
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4433
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4434
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
 
4436
 
4437
 
4438
if
4439
  test "x$enable_dependency_tracking" != xno \
4440
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4441
  am__fastdepCC_TRUE=
4442
  am__fastdepCC_FALSE='#'
4443
else
4444
  am__fastdepCC_TRUE='#'
4445
  am__fastdepCC_FALSE=
4446
fi
4447
 
4448
 
4449
echo "$as_me:$LINENO: checking for egrep" >&5
4450
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4451
if test "${ac_cv_prog_egrep+set}" = set; then
4452
  echo $ECHO_N "(cached) $ECHO_C" >&6
4453
else
4454
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4455
    then ac_cv_prog_egrep='grep -E'
4456
    else ac_cv_prog_egrep='egrep'
4457
    fi
4458
fi
4459
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4460
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4461
 EGREP=$ac_cv_prog_egrep
4462
 
4463
 
4464
echo "$as_me:$LINENO: checking for fgrep" >&5
4465
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4466
if test "${ac_cv_prog_fgrep+set}" = set; then
4467
  echo $ECHO_N "(cached) $ECHO_C" >&6
4468
else
4469
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4470
    then ac_cv_prog_fgrep='grep -F'
4471
    else ac_cv_prog_fgrep='fgrep'
4472
    fi
4473
fi
4474
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4475
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4476
 FGREP=$ac_cv_prog_fgrep
4477
 
4478
 
4479
test -z "$GREP" && GREP=grep
4480
 
4481
 
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
 
4490
 
4491
 
4492
 
4493
 
4494
 
4495
 
4496
 
4497
 
4498
 
4499
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4500
if test "${with_gnu_ld+set}" = set; then
4501
  withval="$with_gnu_ld"
4502
  test "$withval" = no || with_gnu_ld=yes
4503
else
4504
  with_gnu_ld=no
4505
fi;
4506
ac_prog=ld
4507
if test "$GCC" = yes; then
4508
  # Check if gcc -print-prog-name=ld gives a path.
4509
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4510
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4511
  case $host in
4512
  *-*-mingw*)
4513
    # gcc leaves a trailing carriage return which upsets mingw
4514
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515
  *)
4516
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4517
  esac
4518
  case $ac_prog in
4519
    # Accept absolute paths.
4520
    [\\/]* | ?:[\\/]*)
4521
      re_direlt='/[^/][^/]*/\.\./'
4522
      # Canonicalize the pathname of ld
4523
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526
      done
4527
      test -z "$LD" && LD="$ac_prog"
4528
      ;;
4529
  "")
4530
    # If it fails, then pretend we aren't using GCC.
4531
    ac_prog=ld
4532
    ;;
4533
  *)
4534
    # If it is relative, then search for the first ld in PATH.
4535
    with_gnu_ld=unknown
4536
    ;;
4537
  esac
4538
elif test "$with_gnu_ld" = yes; then
4539
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4540
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4541
else
4542
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4543
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4544
fi
4545
if test "${lt_cv_path_LD+set}" = set; then
4546
  echo $ECHO_N "(cached) $ECHO_C" >&6
4547
else
4548
  if test -z "$LD"; then
4549
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4550
  for ac_dir in $PATH; do
4551
    IFS="$lt_save_ifs"
4552
    test -z "$ac_dir" && ac_dir=.
4553
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554
      lt_cv_path_LD="$ac_dir/$ac_prog"
4555
      # Check to see if the program is GNU ld.  I'd rather use --version,
4556
      # but apparently some variants of GNU ld only accept -v.
4557
      # Break only if it was the GNU/non-GNU ld that we prefer.
4558
      case `"$lt_cv_path_LD" -v 2>&1 
4559
      *GNU* | *'with BFD'*)
4560
        test "$with_gnu_ld" != no && break
4561
        ;;
4562
      *)
4563
        test "$with_gnu_ld" != yes && break
4564
        ;;
4565
      esac
4566
    fi
4567
  done
4568
  IFS="$lt_save_ifs"
4569
else
4570
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4571
fi
4572
fi
4573
 
4574
LD="$lt_cv_path_LD"
4575
if test -n "$LD"; then
4576
  echo "$as_me:$LINENO: result: $LD" >&5
4577
echo "${ECHO_T}$LD" >&6
4578
else
4579
  echo "$as_me:$LINENO: result: no" >&5
4580
echo "${ECHO_T}no" >&6
4581
fi
4582
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4583
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4584
   { (exit 1); exit 1; }; }
4585
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4586
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4587
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4588
  echo $ECHO_N "(cached) $ECHO_C" >&6
4589
else
4590
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4591
case `$LD -v 2>&1 
4592
*GNU* | *'with BFD'*)
4593
  lt_cv_prog_gnu_ld=yes
4594
  ;;
4595
*)
4596
  lt_cv_prog_gnu_ld=no
4597
  ;;
4598
esac
4599
fi
4600
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4601
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4602
with_gnu_ld=$lt_cv_prog_gnu_ld
4603
 
4604
 
4605
 
4606
 
4607
 
4608
 
4609
 
4610
 
4611
 
4612
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4613
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4614
if test "${lt_cv_path_NM+set}" = set; then
4615
  echo $ECHO_N "(cached) $ECHO_C" >&6
4616
else
4617
  if test -n "$NM"; then
4618
  # Let the user override the test.
4619
  lt_cv_path_NM="$NM"
4620
else
4621
  lt_nm_to_check="${ac_tool_prefix}nm"
4622
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4623
    lt_nm_to_check="$lt_nm_to_check nm"
4624
  fi
4625
  for lt_tmp_nm in $lt_nm_to_check; do
4626
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4627
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628
      IFS="$lt_save_ifs"
4629
      test -z "$ac_dir" && ac_dir=.
4630
      tmp_nm="$ac_dir/$lt_tmp_nm"
4631
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4632
        # Check to see if the nm accepts a BSD-compat flag.
4633
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4634
        #   nm: unknown option "B" ignored
4635
        # Tru64's nm complains that /dev/null is an invalid object file
4636
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4637
        */dev/null* | *'Invalid file or object type'*)
4638
          lt_cv_path_NM="$tmp_nm -B"
4639
          break
4640
          ;;
4641
        *)
4642
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643
          */dev/null*)
4644
            lt_cv_path_NM="$tmp_nm -p"
4645
            break
4646
            ;;
4647
          *)
4648
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649
            continue # so that we can try to find one that supports BSD flags
4650
            ;;
4651
          esac
4652
          ;;
4653
        esac
4654
      fi
4655
    done
4656
    IFS="$lt_save_ifs"
4657
  done
4658
  : ${lt_cv_path_NM=no}
4659
fi
4660
fi
4661
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4662
echo "${ECHO_T}$lt_cv_path_NM" >&6
4663
if test "$lt_cv_path_NM" != "no"; then
4664
  NM="$lt_cv_path_NM"
4665
else
4666
  # Didn't find any BSD compatible name lister, look for dumpbin.
4667
  if test -n "$ac_tool_prefix"; then
4668
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4669
  do
4670
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672
echo "$as_me:$LINENO: checking for $ac_word" >&5
4673
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4675
  echo $ECHO_N "(cached) $ECHO_C" >&6
4676
else
4677
  if test -n "$DUMPBIN"; then
4678
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679
else
4680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681
for as_dir in $PATH
4682
do
4683
  IFS=$as_save_IFS
4684
  test -z "$as_dir" && as_dir=.
4685
  for ac_exec_ext in '' $ac_executable_extensions; do
4686
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689
    break 2
4690
  fi
4691
done
4692
done
4693
 
4694
fi
4695
fi
4696
DUMPBIN=$ac_cv_prog_DUMPBIN
4697
if test -n "$DUMPBIN"; then
4698
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4699
echo "${ECHO_T}$DUMPBIN" >&6
4700
else
4701
  echo "$as_me:$LINENO: result: no" >&5
4702
echo "${ECHO_T}no" >&6
4703
fi
4704
 
4705
    test -n "$DUMPBIN" && break
4706
  done
4707
fi
4708
if test -z "$DUMPBIN"; then
4709
  ac_ct_DUMPBIN=$DUMPBIN
4710
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4711
do
4712
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4713
set dummy $ac_prog; ac_word=$2
4714
echo "$as_me:$LINENO: checking for $ac_word" >&5
4715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4717
  echo $ECHO_N "(cached) $ECHO_C" >&6
4718
else
4719
  if test -n "$ac_ct_DUMPBIN"; then
4720
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4721
else
4722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723
for as_dir in $PATH
4724
do
4725
  IFS=$as_save_IFS
4726
  test -z "$as_dir" && as_dir=.
4727
  for ac_exec_ext in '' $ac_executable_extensions; do
4728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731
    break 2
4732
  fi
4733
done
4734
done
4735
 
4736
fi
4737
fi
4738
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4739
if test -n "$ac_ct_DUMPBIN"; then
4740
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4741
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4742
else
4743
  echo "$as_me:$LINENO: result: no" >&5
4744
echo "${ECHO_T}no" >&6
4745
fi
4746
 
4747
  test -n "$ac_ct_DUMPBIN" && break
4748
done
4749
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4750
 
4751
  DUMPBIN=$ac_ct_DUMPBIN
4752
fi
4753
 
4754
 
4755
  if test "$DUMPBIN" != ":"; then
4756
    NM="$DUMPBIN"
4757
  fi
4758
fi
4759
test -z "$NM" && NM=nm
4760
 
4761
 
4762
 
4763
 
4764
 
4765
 
4766
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4767
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4768
if test "${lt_cv_nm_interface+set}" = set; then
4769
  echo $ECHO_N "(cached) $ECHO_C" >&6
4770
else
4771
  lt_cv_nm_interface="BSD nm"
4772
  echo "int some_variable = 0;" > conftest.$ac_ext
4773
  (eval echo "\"\$as_me:4773: $ac_compile\"" >&5)
4774
  (eval "$ac_compile" 2>conftest.err)
4775
  cat conftest.err >&5
4776
  (eval echo "\"\$as_me:4776: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4777
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4778
  cat conftest.err >&5
4779
  (eval echo "\"\$as_me:4779: output\"" >&5)
4780
  cat conftest.out >&5
4781
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4782
    lt_cv_nm_interface="MS dumpbin"
4783
  fi
4784
  rm -f conftest*
4785
fi
4786
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4787
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4788
 
4789
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4790
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4791
LN_S=$as_ln_s
4792
if test "$LN_S" = "ln -s"; then
4793
  echo "$as_me:$LINENO: result: yes" >&5
4794
echo "${ECHO_T}yes" >&6
4795
else
4796
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4797
echo "${ECHO_T}no, using $LN_S" >&6
4798
fi
4799
 
4800
# find the maximum length of command line arguments
4801
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4802
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4803
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4804
  echo $ECHO_N "(cached) $ECHO_C" >&6
4805
else
4806
    i=0
4807
  teststring="ABCD"
4808
 
4809
  case $build_os in
4810
  msdosdjgpp*)
4811
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4812
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4813
    # during glob expansion).  Even if it were fixed, the result of this
4814
    # check would be larger than it should be.
4815
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4816
    ;;
4817
 
4818
  gnu*)
4819
    # Under GNU Hurd, this test is not required because there is
4820
    # no limit to the length of command line arguments.
4821
    # Libtool will interpret -1 as no limit whatsoever
4822
    lt_cv_sys_max_cmd_len=-1;
4823
    ;;
4824
 
4825
  cygwin* | mingw* | cegcc*)
4826
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4827
    # about 5 minutes as the teststring grows exponentially.
4828
    # Worse, since 9x/ME are not pre-emptively multitasking,
4829
    # you end up with a "frozen" computer, even though with patience
4830
    # the test eventually succeeds (with a max line length of 256k).
4831
    # Instead, let's just punt: use the minimum linelength reported by
4832
    # all of the supported platforms: 8192 (on NT/2K/XP).
4833
    lt_cv_sys_max_cmd_len=8192;
4834
    ;;
4835
 
4836
  amigaos*)
4837
    # On AmigaOS with pdksh, this test takes hours, literally.
4838
    # So we just punt and use a minimum line length of 8192.
4839
    lt_cv_sys_max_cmd_len=8192;
4840
    ;;
4841
 
4842
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4843
    # This has been around since 386BSD, at least.  Likely further.
4844
    if test -x /sbin/sysctl; then
4845
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4846
    elif test -x /usr/sbin/sysctl; then
4847
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4848
    else
4849
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4850
    fi
4851
    # And add a safety zone
4852
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4853
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4854
    ;;
4855
 
4856
  interix*)
4857
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4858
    lt_cv_sys_max_cmd_len=196608
4859
    ;;
4860
 
4861
  osf*)
4862
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4863
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4864
    # nice to cause kernel panics so lets avoid the loop below.
4865
    # First set a reasonable default.
4866
    lt_cv_sys_max_cmd_len=16384
4867
    #
4868
    if test -x /sbin/sysconfig; then
4869
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4870
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4871
      esac
4872
    fi
4873
    ;;
4874
  sco3.2v5*)
4875
    lt_cv_sys_max_cmd_len=102400
4876
    ;;
4877
  sysv5* | sco5v6* | sysv4.2uw2*)
4878
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4879
    if test -n "$kargmax"; then
4880
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4881
    else
4882
      lt_cv_sys_max_cmd_len=32768
4883
    fi
4884
    ;;
4885
  *)
4886
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4887
    if test -n "$lt_cv_sys_max_cmd_len"; then
4888
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4890
    else
4891
      # Make teststring a little bigger before we do anything with it.
4892
      # a 1K string should be a reasonable start.
4893
      for i in 1 2 3 4 5 6 7 8 ; do
4894
        teststring=$teststring$teststring
4895
      done
4896
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4897
      # If test is not a shell built-in, we'll probably end up computing a
4898
      # maximum length that is only half of the actual maximum length, but
4899
      # we can't tell.
4900
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4901
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4902
              test $i != 17 # 1/2 MB should be enough
4903
      do
4904
        i=`expr $i + 1`
4905
        teststring=$teststring$teststring
4906
      done
4907
      # Only check the string length outside the loop.
4908
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4909
      teststring=
4910
      # Add a significant safety factor because C++ compilers can tack on
4911
      # massive amounts of additional arguments before passing them to the
4912
      # linker.  It appears as though 1/2 is a usable value.
4913
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4914
    fi
4915
    ;;
4916
  esac
4917
 
4918
fi
4919
 
4920
if test -n $lt_cv_sys_max_cmd_len ; then
4921
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4922
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4923
else
4924
  echo "$as_me:$LINENO: result: none" >&5
4925
echo "${ECHO_T}none" >&6
4926
fi
4927
max_cmd_len=$lt_cv_sys_max_cmd_len
4928
 
4929
 
4930
 
4931
 
4932
 
4933
 
4934
: ${CP="cp -f"}
4935
: ${MV="mv -f"}
4936
: ${RM="rm -f"}
4937
 
4938
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4939
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4940
# Try some XSI features
4941
xsi_shell=no
4942
( _lt_dummy="a/b/c"
4943
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4944
      = c,a/b,, \
4945
    && eval 'test $(( 1 + 1 )) -eq 2 \
4946
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4947
  && xsi_shell=yes
4948
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4949
echo "${ECHO_T}$xsi_shell" >&6
4950
 
4951
 
4952
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4953
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4954
lt_shell_append=no
4955
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4956
    >/dev/null 2>&1 \
4957
  && lt_shell_append=yes
4958
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4959
echo "${ECHO_T}$lt_shell_append" >&6
4960
 
4961
 
4962
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4963
  lt_unset=unset
4964
else
4965
  lt_unset=false
4966
fi
4967
 
4968
 
4969
 
4970
 
4971
 
4972
# test EBCDIC or ASCII
4973
case `echo X|tr X '\101'` in
4974
 A) # ASCII based system
4975
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4976
  lt_SP2NL='tr \040 \012'
4977
  lt_NL2SP='tr \015\012 \040\040'
4978
  ;;
4979
 *) # EBCDIC based system
4980
  lt_SP2NL='tr \100 \n'
4981
  lt_NL2SP='tr \r\n \100\100'
4982
  ;;
4983
esac
4984
 
4985
 
4986
 
4987
 
4988
 
4989
 
4990
 
4991
 
4992
 
4993
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4994
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4995
if test "${lt_cv_ld_reload_flag+set}" = set; then
4996
  echo $ECHO_N "(cached) $ECHO_C" >&6
4997
else
4998
  lt_cv_ld_reload_flag='-r'
4999
fi
5000
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5001
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5002
reload_flag=$lt_cv_ld_reload_flag
5003
case $reload_flag in
5004
"" | " "*) ;;
5005
*) reload_flag=" $reload_flag" ;;
5006
esac
5007
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5008
case $host_os in
5009
  darwin*)
5010
    if test "$GCC" = yes; then
5011
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5012
    else
5013
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5014
    fi
5015
    ;;
5016
esac
5017
 
5018
 
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
 
5026
if test -n "$ac_tool_prefix"; then
5027
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5028
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5029
echo "$as_me:$LINENO: checking for $ac_word" >&5
5030
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5031
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5032
  echo $ECHO_N "(cached) $ECHO_C" >&6
5033
else
5034
  if test -n "$OBJDUMP"; then
5035
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5036
else
5037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038
for as_dir in $PATH
5039
do
5040
  IFS=$as_save_IFS
5041
  test -z "$as_dir" && as_dir=.
5042
  for ac_exec_ext in '' $ac_executable_extensions; do
5043
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5044
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5045
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046
    break 2
5047
  fi
5048
done
5049
done
5050
 
5051
fi
5052
fi
5053
OBJDUMP=$ac_cv_prog_OBJDUMP
5054
if test -n "$OBJDUMP"; then
5055
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5056
echo "${ECHO_T}$OBJDUMP" >&6
5057
else
5058
  echo "$as_me:$LINENO: result: no" >&5
5059
echo "${ECHO_T}no" >&6
5060
fi
5061
 
5062
fi
5063
if test -z "$ac_cv_prog_OBJDUMP"; then
5064
  ac_ct_OBJDUMP=$OBJDUMP
5065
  # Extract the first word of "objdump", so it can be a program name with args.
5066
set dummy objdump; ac_word=$2
5067
echo "$as_me:$LINENO: checking for $ac_word" >&5
5068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5069
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5070
  echo $ECHO_N "(cached) $ECHO_C" >&6
5071
else
5072
  if test -n "$ac_ct_OBJDUMP"; then
5073
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5074
else
5075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076
for as_dir in $PATH
5077
do
5078
  IFS=$as_save_IFS
5079
  test -z "$as_dir" && as_dir=.
5080
  for ac_exec_ext in '' $ac_executable_extensions; do
5081
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084
    break 2
5085
  fi
5086
done
5087
done
5088
 
5089
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5090
fi
5091
fi
5092
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5093
if test -n "$ac_ct_OBJDUMP"; then
5094
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5095
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5096
else
5097
  echo "$as_me:$LINENO: result: no" >&5
5098
echo "${ECHO_T}no" >&6
5099
fi
5100
 
5101
  OBJDUMP=$ac_ct_OBJDUMP
5102
else
5103
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5104
fi
5105
 
5106
test -z "$OBJDUMP" && OBJDUMP=objdump
5107
 
5108
 
5109
 
5110
 
5111
 
5112
 
5113
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5114
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5115
if test "${lt_cv_deplibs_check_method+set}" = set; then
5116
  echo $ECHO_N "(cached) $ECHO_C" >&6
5117
else
5118
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5119
lt_cv_file_magic_test_file=
5120
lt_cv_deplibs_check_method='unknown'
5121
# Need to set the preceding variable on all platforms that support
5122
# interlibrary dependencies.
5123
# 'none' -- dependencies not supported.
5124
# `unknown' -- same as none, but documents that we really don't know.
5125
# 'pass_all' -- all dependencies passed with no checks.
5126
# 'test_compile' -- check by making test program.
5127
# 'file_magic [[regex]]' -- check by looking for files in library path
5128
# which responds to the $file_magic_cmd with a given extended regex.
5129
# If you have `file' or equivalent on your system and you're not sure
5130
# whether `pass_all' will *always* work, you probably want this one.
5131
 
5132
case $host_os in
5133
aix[4-9]*)
5134
  lt_cv_deplibs_check_method=pass_all
5135
  ;;
5136
 
5137
beos*)
5138
  lt_cv_deplibs_check_method=pass_all
5139
  ;;
5140
 
5141
bsdi[45]*)
5142
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5143
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5144
  lt_cv_file_magic_test_file=/shlib/libc.so
5145
  ;;
5146
 
5147
cygwin*)
5148
  # func_win32_libid is a shell function defined in ltmain.sh
5149
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5150
  lt_cv_file_magic_cmd='func_win32_libid'
5151
  ;;
5152
 
5153
mingw* | pw32*)
5154
  # Base MSYS/MinGW do not provide the 'file' command needed by
5155
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5156
  # unless we find 'file', for example because we are cross-compiling.
5157
  if ( file / ) >/dev/null 2>&1; then
5158
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5159
    lt_cv_file_magic_cmd='func_win32_libid'
5160
  else
5161
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5162
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5163
  fi
5164
  ;;
5165
 
5166
cegcc)
5167
  # use the weaker test based on 'objdump'. See mingw*.
5168
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5169
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5170
  ;;
5171
 
5172
darwin* | rhapsody*)
5173
  lt_cv_deplibs_check_method=pass_all
5174
  ;;
5175
 
5176
freebsd* | dragonfly*)
5177
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178
    case $host_cpu in
5179
    i*86 )
5180
      # Not sure whether the presence of OpenBSD here was a mistake.
5181
      # Let's accept both of them until this is cleared up.
5182
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5183
      lt_cv_file_magic_cmd=/usr/bin/file
5184
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5185
      ;;
5186
    esac
5187
  else
5188
    lt_cv_deplibs_check_method=pass_all
5189
  fi
5190
  ;;
5191
 
5192
gnu*)
5193
  lt_cv_deplibs_check_method=pass_all
5194
  ;;
5195
 
5196
hpux10.20* | hpux11*)
5197
  lt_cv_file_magic_cmd=/usr/bin/file
5198
  case $host_cpu in
5199
  ia64*)
5200
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5201
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5202
    ;;
5203
  hppa*64*)
5204
    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]'
5205
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5206
    ;;
5207
  *)
5208
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5209
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5210
    ;;
5211
  esac
5212
  ;;
5213
 
5214
interix[3-9]*)
5215
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5216
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5217
  ;;
5218
 
5219
irix5* | irix6* | nonstopux*)
5220
  case $LD in
5221
  *-32|*"-32 ") libmagic=32-bit;;
5222
  *-n32|*"-n32 ") libmagic=N32;;
5223
  *-64|*"-64 ") libmagic=64-bit;;
5224
  *) libmagic=never-match;;
5225
  esac
5226
  lt_cv_deplibs_check_method=pass_all
5227
  ;;
5228
 
5229
# This must be Linux ELF.
5230
linux* | k*bsd*-gnu)
5231
  lt_cv_deplibs_check_method=pass_all
5232
  ;;
5233
 
5234
netbsd*)
5235
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5236
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5237
  else
5238
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5239
  fi
5240
  ;;
5241
 
5242
newos6*)
5243
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5244
  lt_cv_file_magic_cmd=/usr/bin/file
5245
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5246
  ;;
5247
 
5248
*nto* | *qnx*)
5249
  lt_cv_deplibs_check_method=pass_all
5250
  ;;
5251
 
5252
openbsd*)
5253
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5254
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5255
  else
5256
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5257
  fi
5258
  ;;
5259
 
5260
osf3* | osf4* | osf5*)
5261
  lt_cv_deplibs_check_method=pass_all
5262
  ;;
5263
 
5264
rdos*)
5265
  lt_cv_deplibs_check_method=pass_all
5266
  ;;
5267
 
5268
solaris*)
5269
  lt_cv_deplibs_check_method=pass_all
5270
  ;;
5271
 
5272
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5273
  lt_cv_deplibs_check_method=pass_all
5274
  ;;
5275
 
5276
sysv4 | sysv4.3*)
5277
  case $host_vendor in
5278
  motorola)
5279
    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]'
5280
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5281
    ;;
5282
  ncr)
5283
    lt_cv_deplibs_check_method=pass_all
5284
    ;;
5285
  sequent)
5286
    lt_cv_file_magic_cmd='/bin/file'
5287
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5288
    ;;
5289
  sni)
5290
    lt_cv_file_magic_cmd='/bin/file'
5291
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5292
    lt_cv_file_magic_test_file=/lib/libc.so
5293
    ;;
5294
  siemens)
5295
    lt_cv_deplibs_check_method=pass_all
5296
    ;;
5297
  pc)
5298
    lt_cv_deplibs_check_method=pass_all
5299
    ;;
5300
  esac
5301
  ;;
5302
 
5303
tpf*)
5304
  lt_cv_deplibs_check_method=pass_all
5305
  ;;
5306
esac
5307
 
5308
fi
5309
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5310
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5311
file_magic_cmd=$lt_cv_file_magic_cmd
5312
deplibs_check_method=$lt_cv_deplibs_check_method
5313
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5314
 
5315
 
5316
 
5317
 
5318
 
5319
 
5320
 
5321
 
5322
 
5323
 
5324
 
5325
 
5326
if test -n "$ac_tool_prefix"; then
5327
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5328
set dummy ${ac_tool_prefix}ar; ac_word=$2
5329
echo "$as_me:$LINENO: checking for $ac_word" >&5
5330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331
if test "${ac_cv_prog_AR+set}" = set; then
5332
  echo $ECHO_N "(cached) $ECHO_C" >&6
5333
else
5334
  if test -n "$AR"; then
5335
  ac_cv_prog_AR="$AR" # Let the user override the test.
5336
else
5337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338
for as_dir in $PATH
5339
do
5340
  IFS=$as_save_IFS
5341
  test -z "$as_dir" && as_dir=.
5342
  for ac_exec_ext in '' $ac_executable_extensions; do
5343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5345
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346
    break 2
5347
  fi
5348
done
5349
done
5350
 
5351
fi
5352
fi
5353
AR=$ac_cv_prog_AR
5354
if test -n "$AR"; then
5355
  echo "$as_me:$LINENO: result: $AR" >&5
5356
echo "${ECHO_T}$AR" >&6
5357
else
5358
  echo "$as_me:$LINENO: result: no" >&5
5359
echo "${ECHO_T}no" >&6
5360
fi
5361
 
5362
fi
5363
if test -z "$ac_cv_prog_AR"; then
5364
  ac_ct_AR=$AR
5365
  # Extract the first word of "ar", so it can be a program name with args.
5366
set dummy ar; ac_word=$2
5367
echo "$as_me:$LINENO: checking for $ac_word" >&5
5368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5370
  echo $ECHO_N "(cached) $ECHO_C" >&6
5371
else
5372
  if test -n "$ac_ct_AR"; then
5373
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5374
else
5375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376
for as_dir in $PATH
5377
do
5378
  IFS=$as_save_IFS
5379
  test -z "$as_dir" && as_dir=.
5380
  for ac_exec_ext in '' $ac_executable_extensions; do
5381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382
    ac_cv_prog_ac_ct_AR="ar"
5383
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384
    break 2
5385
  fi
5386
done
5387
done
5388
 
5389
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5390
fi
5391
fi
5392
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5393
if test -n "$ac_ct_AR"; then
5394
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5395
echo "${ECHO_T}$ac_ct_AR" >&6
5396
else
5397
  echo "$as_me:$LINENO: result: no" >&5
5398
echo "${ECHO_T}no" >&6
5399
fi
5400
 
5401
  AR=$ac_ct_AR
5402
else
5403
  AR="$ac_cv_prog_AR"
5404
fi
5405
 
5406
test -z "$AR" && AR=ar
5407
test -z "$AR_FLAGS" && AR_FLAGS=cru
5408
 
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
if test -n "$ac_tool_prefix"; then
5420
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5421
set dummy ${ac_tool_prefix}strip; ac_word=$2
5422
echo "$as_me:$LINENO: checking for $ac_word" >&5
5423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5424
if test "${ac_cv_prog_STRIP+set}" = set; then
5425
  echo $ECHO_N "(cached) $ECHO_C" >&6
5426
else
5427
  if test -n "$STRIP"; then
5428
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5429
else
5430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431
for as_dir in $PATH
5432
do
5433
  IFS=$as_save_IFS
5434
  test -z "$as_dir" && as_dir=.
5435
  for ac_exec_ext in '' $ac_executable_extensions; do
5436
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5438
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439
    break 2
5440
  fi
5441
done
5442
done
5443
 
5444
fi
5445
fi
5446
STRIP=$ac_cv_prog_STRIP
5447
if test -n "$STRIP"; then
5448
  echo "$as_me:$LINENO: result: $STRIP" >&5
5449
echo "${ECHO_T}$STRIP" >&6
5450
else
5451
  echo "$as_me:$LINENO: result: no" >&5
5452
echo "${ECHO_T}no" >&6
5453
fi
5454
 
5455
fi
5456
if test -z "$ac_cv_prog_STRIP"; then
5457
  ac_ct_STRIP=$STRIP
5458
  # Extract the first word of "strip", so it can be a program name with args.
5459
set dummy strip; ac_word=$2
5460
echo "$as_me:$LINENO: checking for $ac_word" >&5
5461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5463
  echo $ECHO_N "(cached) $ECHO_C" >&6
5464
else
5465
  if test -n "$ac_ct_STRIP"; then
5466
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5467
else
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469
for as_dir in $PATH
5470
do
5471
  IFS=$as_save_IFS
5472
  test -z "$as_dir" && as_dir=.
5473
  for ac_exec_ext in '' $ac_executable_extensions; do
5474
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475
    ac_cv_prog_ac_ct_STRIP="strip"
5476
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477
    break 2
5478
  fi
5479
done
5480
done
5481
 
5482
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5483
fi
5484
fi
5485
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5486
if test -n "$ac_ct_STRIP"; then
5487
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5488
echo "${ECHO_T}$ac_ct_STRIP" >&6
5489
else
5490
  echo "$as_me:$LINENO: result: no" >&5
5491
echo "${ECHO_T}no" >&6
5492
fi
5493
 
5494
  STRIP=$ac_ct_STRIP
5495
else
5496
  STRIP="$ac_cv_prog_STRIP"
5497
fi
5498
 
5499
test -z "$STRIP" && STRIP=:
5500
 
5501
 
5502
 
5503
 
5504
 
5505
 
5506
if test -n "$ac_tool_prefix"; then
5507
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5508
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5509
echo "$as_me:$LINENO: checking for $ac_word" >&5
5510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5511
if test "${ac_cv_prog_RANLIB+set}" = set; then
5512
  echo $ECHO_N "(cached) $ECHO_C" >&6
5513
else
5514
  if test -n "$RANLIB"; then
5515
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5516
else
5517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518
for as_dir in $PATH
5519
do
5520
  IFS=$as_save_IFS
5521
  test -z "$as_dir" && as_dir=.
5522
  for ac_exec_ext in '' $ac_executable_extensions; do
5523
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5525
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526
    break 2
5527
  fi
5528
done
5529
done
5530
 
5531
fi
5532
fi
5533
RANLIB=$ac_cv_prog_RANLIB
5534
if test -n "$RANLIB"; then
5535
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5536
echo "${ECHO_T}$RANLIB" >&6
5537
else
5538
  echo "$as_me:$LINENO: result: no" >&5
5539
echo "${ECHO_T}no" >&6
5540
fi
5541
 
5542
fi
5543
if test -z "$ac_cv_prog_RANLIB"; then
5544
  ac_ct_RANLIB=$RANLIB
5545
  # Extract the first word of "ranlib", so it can be a program name with args.
5546
set dummy ranlib; ac_word=$2
5547
echo "$as_me:$LINENO: checking for $ac_word" >&5
5548
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5550
  echo $ECHO_N "(cached) $ECHO_C" >&6
5551
else
5552
  if test -n "$ac_ct_RANLIB"; then
5553
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5554
else
5555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556
for as_dir in $PATH
5557
do
5558
  IFS=$as_save_IFS
5559
  test -z "$as_dir" && as_dir=.
5560
  for ac_exec_ext in '' $ac_executable_extensions; do
5561
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5563
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564
    break 2
5565
  fi
5566
done
5567
done
5568
 
5569
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5570
fi
5571
fi
5572
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5573
if test -n "$ac_ct_RANLIB"; then
5574
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5575
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5576
else
5577
  echo "$as_me:$LINENO: result: no" >&5
5578
echo "${ECHO_T}no" >&6
5579
fi
5580
 
5581
  RANLIB=$ac_ct_RANLIB
5582
else
5583
  RANLIB="$ac_cv_prog_RANLIB"
5584
fi
5585
 
5586
test -z "$RANLIB" && RANLIB=:
5587
 
5588
 
5589
 
5590
 
5591
 
5592
 
5593
# Determine commands to create old-style static archives.
5594
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5595
old_postinstall_cmds='chmod 644 $oldlib'
5596
old_postuninstall_cmds=
5597
 
5598
if test -n "$RANLIB"; then
5599
  case $host_os in
5600
  openbsd*)
5601
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5602
    ;;
5603
  *)
5604
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5605
    ;;
5606
  esac
5607
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5608
fi
5609
 
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
# If no C compiler was specified, use CC.
5644
LTCC=${LTCC-"$CC"}
5645
 
5646
# If no C compiler flags were specified, use CFLAGS.
5647
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5648
 
5649
# Allow CC to be a program name with arguments.
5650
compiler=$CC
5651
 
5652
 
5653
# Check for command to grab the raw symbol name followed by C symbol from nm.
5654
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5655
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5656
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5657
  echo $ECHO_N "(cached) $ECHO_C" >&6
5658
else
5659
 
5660
# These are sane defaults that work on at least a few old systems.
5661
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5662
 
5663
# Character class describing NM global symbol codes.
5664
symcode='[BCDEGRST]'
5665
 
5666
# Regexp to match symbols that can be accessed directly from C.
5667
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5668
 
5669
# Define system-specific variables.
5670
case $host_os in
5671
aix*)
5672
  symcode='[BCDT]'
5673
  ;;
5674
cygwin* | mingw* | pw32* | cegcc*)
5675
  symcode='[ABCDGISTW]'
5676
  ;;
5677
hpux*)
5678
  if test "$host_cpu" = ia64; then
5679
    symcode='[ABCDEGRST]'
5680
  fi
5681
  ;;
5682
irix* | nonstopux*)
5683
  symcode='[BCDEGRST]'
5684
  ;;
5685
osf*)
5686
  symcode='[BCDEGQRST]'
5687
  ;;
5688
solaris*)
5689
  symcode='[BDRT]'
5690
  ;;
5691
sco3.2v5*)
5692
  symcode='[DT]'
5693
  ;;
5694
sysv4.2uw2*)
5695
  symcode='[DT]'
5696
  ;;
5697
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5698
  symcode='[ABDT]'
5699
  ;;
5700
sysv4)
5701
  symcode='[DFNSTU]'
5702
  ;;
5703
esac
5704
 
5705
# If we're using GNU nm, then use its standard symbol codes.
5706
case `$NM -V 2>&1` in
5707
*GNU* | *'with BFD'*)
5708
  symcode='[ABCDGIRSTW]' ;;
5709
esac
5710
 
5711
# Transform an extracted symbol line into a proper C declaration.
5712
# Some systems (esp. on ia64) link data and code symbols differently,
5713
# so use this general approach.
5714
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5715
 
5716
# Transform an extracted symbol line into symbol name and symbol address
5717
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5718
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'"
5719
 
5720
# Handle CRLF in mingw tool chain
5721
opt_cr=
5722
case $build_os in
5723
mingw*)
5724
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5725
  ;;
5726
esac
5727
 
5728
# Try without a prefix underscore, then with it.
5729
for ac_symprfx in "" "_"; do
5730
 
5731
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5732
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5733
 
5734
  # Write the raw and C identifiers.
5735
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5736
    # Fake it for dumpbin and say T for any non-static function
5737
    # and D for any global variable.
5738
    # Also find C++ and __fastcall symbols from MSVC++,
5739
    # which start with @ or ?.
5740
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5741
"     {last_section=section; section=\$ 3};"\
5742
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5743
"     \$ 0!~/External *\|/{next};"\
5744
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5745
"     {if(hide[section]) next};"\
5746
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5747
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5748
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5749
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5750
"     ' prfx=^$ac_symprfx"
5751
  else
5752
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5753
  fi
5754
 
5755
  # Check to see that the pipe works correctly.
5756
  pipe_works=no
5757
 
5758
  rm -f conftest*
5759
  cat > conftest.$ac_ext <<_LT_EOF
5760
#ifdef __cplusplus
5761
extern "C" {
5762
#endif
5763
char nm_test_var;
5764
void nm_test_func(void);
5765
void nm_test_func(void){}
5766
#ifdef __cplusplus
5767
}
5768
#endif
5769
int main(){nm_test_var='a';nm_test_func();return(0);}
5770
_LT_EOF
5771
 
5772
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773
  (eval $ac_compile) 2>&5
5774
  ac_status=$?
5775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776
  (exit $ac_status); }; then
5777
    # Now try to grab the symbols.
5778
    nlist=conftest.nm
5779
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5780
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5781
  ac_status=$?
5782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783
  (exit $ac_status); } && test -s "$nlist"; then
5784
      # Try sorting and uniquifying the output.
5785
      if sort "$nlist" | uniq > "$nlist"T; then
5786
        mv -f "$nlist"T "$nlist"
5787
      else
5788
        rm -f "$nlist"T
5789
      fi
5790
 
5791
      # Make sure that we snagged all the symbols we need.
5792
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5793
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5794
          cat <<_LT_EOF > conftest.$ac_ext
5795
#ifdef __cplusplus
5796
extern "C" {
5797
#endif
5798
 
5799
_LT_EOF
5800
          # Now generate the symbol file.
5801
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5802
 
5803
          cat <<_LT_EOF >> conftest.$ac_ext
5804
 
5805
/* The mapping between symbol names and symbols.  */
5806
const struct {
5807
  const char *name;
5808
  void       *address;
5809
}
5810
lt__PROGRAM__LTX_preloaded_symbols[] =
5811
{
5812
  { "@PROGRAM@", (void *) 0 },
5813
_LT_EOF
5814
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5815
          cat <<\_LT_EOF >> conftest.$ac_ext
5816
  {0, (void *) 0}
5817
};
5818
 
5819
/* This works around a problem in FreeBSD linker */
5820
#ifdef FREEBSD_WORKAROUND
5821
static const void *lt_preloaded_setup() {
5822
  return lt__PROGRAM__LTX_preloaded_symbols;
5823
}
5824
#endif
5825
 
5826
#ifdef __cplusplus
5827
}
5828
#endif
5829
_LT_EOF
5830
          # Now try linking the two files.
5831
          mv conftest.$ac_objext conftstm.$ac_objext
5832
          lt_save_LIBS="$LIBS"
5833
          lt_save_CFLAGS="$CFLAGS"
5834
          LIBS="conftstm.$ac_objext"
5835
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5836
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837
  (eval $ac_link) 2>&5
5838
  ac_status=$?
5839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5841
            pipe_works=yes
5842
          fi
5843
          LIBS="$lt_save_LIBS"
5844
          CFLAGS="$lt_save_CFLAGS"
5845
        else
5846
          echo "cannot find nm_test_func in $nlist" >&5
5847
        fi
5848
      else
5849
        echo "cannot find nm_test_var in $nlist" >&5
5850
      fi
5851
    else
5852
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5853
    fi
5854
  else
5855
    echo "$progname: failed program was:" >&5
5856
    cat conftest.$ac_ext >&5
5857
  fi
5858
  rm -rf conftest* conftst*
5859
 
5860
  # Do not use the global_symbol_pipe unless it works.
5861
  if test "$pipe_works" = yes; then
5862
    break
5863
  else
5864
    lt_cv_sys_global_symbol_pipe=
5865
  fi
5866
done
5867
 
5868
fi
5869
 
5870
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5871
  lt_cv_sys_global_symbol_to_cdecl=
5872
fi
5873
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5874
  echo "$as_me:$LINENO: result: failed" >&5
5875
echo "${ECHO_T}failed" >&6
5876
else
5877
  echo "$as_me:$LINENO: result: ok" >&5
5878
echo "${ECHO_T}ok" >&6
5879
fi
5880
 
5881
 
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
 
5891
 
5892
 
5893
 
5894
 
5895
 
5896
 
5897
 
5898
 
5899
 
5900
 
5901
 
5902
 
5903
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5904
if test "${enable_libtool_lock+set}" = set; then
5905
  enableval="$enable_libtool_lock"
5906
 
5907
fi;
5908
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5909
 
5910
# Some flags need to be propagated to the compiler or linker for good
5911
# libtool support.
5912
case $host in
5913
ia64-*-hpux*)
5914
  # Find out which ABI we are using.
5915
  echo 'int i;' > conftest.$ac_ext
5916
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917
  (eval $ac_compile) 2>&5
5918
  ac_status=$?
5919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920
  (exit $ac_status); }; then
5921
    case `/usr/bin/file conftest.$ac_objext` in
5922
      *ELF-32*)
5923
        HPUX_IA64_MODE="32"
5924
        ;;
5925
      *ELF-64*)
5926
        HPUX_IA64_MODE="64"
5927
        ;;
5928
    esac
5929
  fi
5930
  rm -rf conftest*
5931
  ;;
5932
*-*-irix6*)
5933
  # Find out which ABI we are using.
5934
  echo '#line 5934 "configure"' > conftest.$ac_ext
5935
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936
  (eval $ac_compile) 2>&5
5937
  ac_status=$?
5938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
  (exit $ac_status); }; then
5940
    if test "$lt_cv_prog_gnu_ld" = yes; then
5941
      case `/usr/bin/file conftest.$ac_objext` in
5942
        *32-bit*)
5943
          LD="${LD-ld} -melf32bsmip"
5944
          ;;
5945
        *N32*)
5946
          LD="${LD-ld} -melf32bmipn32"
5947
          ;;
5948
        *64-bit*)
5949
          LD="${LD-ld} -melf64bmip"
5950
        ;;
5951
      esac
5952
    else
5953
      case `/usr/bin/file conftest.$ac_objext` in
5954
        *32-bit*)
5955
          LD="${LD-ld} -32"
5956
          ;;
5957
        *N32*)
5958
          LD="${LD-ld} -n32"
5959
          ;;
5960
        *64-bit*)
5961
          LD="${LD-ld} -64"
5962
          ;;
5963
      esac
5964
    fi
5965
  fi
5966
  rm -rf conftest*
5967
  ;;
5968
 
5969
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5970
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5971
  # Find out which ABI we are using.
5972
  echo 'int i;' > conftest.$ac_ext
5973
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974
  (eval $ac_compile) 2>&5
5975
  ac_status=$?
5976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977
  (exit $ac_status); }; then
5978
    case `/usr/bin/file conftest.o` in
5979
      *32-bit*)
5980
        case $host in
5981
          x86_64-*kfreebsd*-gnu)
5982
            LD="${LD-ld} -m elf_i386_fbsd"
5983
            ;;
5984
          x86_64-*linux*)
5985
            LD="${LD-ld} -m elf_i386"
5986
            ;;
5987
          ppc64-*linux*|powerpc64-*linux*)
5988
            LD="${LD-ld} -m elf32ppclinux"
5989
            ;;
5990
          s390x-*linux*)
5991
            LD="${LD-ld} -m elf_s390"
5992
            ;;
5993
          sparc64-*linux*)
5994
            LD="${LD-ld} -m elf32_sparc"
5995
            ;;
5996
        esac
5997
        ;;
5998
      *64-bit*)
5999
        case $host in
6000
          x86_64-*kfreebsd*-gnu)
6001
            LD="${LD-ld} -m elf_x86_64_fbsd"
6002
            ;;
6003
          x86_64-*linux*)
6004
            LD="${LD-ld} -m elf_x86_64"
6005
            ;;
6006
          ppc*-*linux*|powerpc*-*linux*)
6007
            LD="${LD-ld} -m elf64ppc"
6008
            ;;
6009
          s390*-*linux*|s390*-*tpf*)
6010
            LD="${LD-ld} -m elf64_s390"
6011
            ;;
6012
          sparc*-*linux*)
6013
            LD="${LD-ld} -m elf64_sparc"
6014
            ;;
6015
        esac
6016
        ;;
6017
    esac
6018
  fi
6019
  rm -rf conftest*
6020
  ;;
6021
 
6022
*-*-sco3.2v5*)
6023
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6024
  SAVE_CFLAGS="$CFLAGS"
6025
  CFLAGS="$CFLAGS -belf"
6026
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6027
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6028
if test "${lt_cv_cc_needs_belf+set}" = set; then
6029
  echo $ECHO_N "(cached) $ECHO_C" >&6
6030
else
6031
  ac_ext=c
6032
ac_cpp='$CPP $CPPFLAGS'
6033
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6034
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6035
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6036
 
6037
     cat >conftest.$ac_ext <<_ACEOF
6038
/* confdefs.h.  */
6039
_ACEOF
6040
cat confdefs.h >>conftest.$ac_ext
6041
cat >>conftest.$ac_ext <<_ACEOF
6042
/* end confdefs.h.  */
6043
 
6044
int
6045
main ()
6046
{
6047
 
6048
  ;
6049
  return 0;
6050
}
6051
_ACEOF
6052
rm -f conftest.$ac_objext conftest$ac_exeext
6053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6054
  (eval $ac_link) 2>conftest.er1
6055
  ac_status=$?
6056
  grep -v '^ *+' conftest.er1 >conftest.err
6057
  rm -f conftest.er1
6058
  cat conftest.err >&5
6059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060
  (exit $ac_status); } &&
6061
         { ac_try='test -z "$ac_c_werror_flag"
6062
                         || test ! -s conftest.err'
6063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064
  (eval $ac_try) 2>&5
6065
  ac_status=$?
6066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067
  (exit $ac_status); }; } &&
6068
         { ac_try='test -s conftest$ac_exeext'
6069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070
  (eval $ac_try) 2>&5
6071
  ac_status=$?
6072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073
  (exit $ac_status); }; }; then
6074
  lt_cv_cc_needs_belf=yes
6075
else
6076
  echo "$as_me: failed program was:" >&5
6077
sed 's/^/| /' conftest.$ac_ext >&5
6078
 
6079
lt_cv_cc_needs_belf=no
6080
fi
6081
rm -f conftest.err conftest.$ac_objext \
6082
      conftest$ac_exeext conftest.$ac_ext
6083
     ac_ext=c
6084
ac_cpp='$CPP $CPPFLAGS'
6085
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088
 
6089
fi
6090
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6091
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6092
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6093
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6094
    CFLAGS="$SAVE_CFLAGS"
6095
  fi
6096
  ;;
6097
sparc*-*solaris*)
6098
  # Find out which ABI we are using.
6099
  echo 'int i;' > conftest.$ac_ext
6100
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101
  (eval $ac_compile) 2>&5
6102
  ac_status=$?
6103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104
  (exit $ac_status); }; then
6105
    case `/usr/bin/file conftest.o` in
6106
    *64-bit*)
6107
      case $lt_cv_prog_gnu_ld in
6108
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6109
      *)
6110
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6111
          LD="${LD-ld} -64"
6112
        fi
6113
        ;;
6114
      esac
6115
      ;;
6116
    esac
6117
  fi
6118
  rm -rf conftest*
6119
  ;;
6120
esac
6121
 
6122
need_locks="$enable_libtool_lock"
6123
 
6124
 
6125
  case $host_os in
6126
    rhapsody* | darwin*)
6127
    if test -n "$ac_tool_prefix"; then
6128
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6129
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6130
echo "$as_me:$LINENO: checking for $ac_word" >&5
6131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6133
  echo $ECHO_N "(cached) $ECHO_C" >&6
6134
else
6135
  if test -n "$DSYMUTIL"; then
6136
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6137
else
6138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139
for as_dir in $PATH
6140
do
6141
  IFS=$as_save_IFS
6142
  test -z "$as_dir" && as_dir=.
6143
  for ac_exec_ext in '' $ac_executable_extensions; do
6144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6147
    break 2
6148
  fi
6149
done
6150
done
6151
 
6152
fi
6153
fi
6154
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6155
if test -n "$DSYMUTIL"; then
6156
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6157
echo "${ECHO_T}$DSYMUTIL" >&6
6158
else
6159
  echo "$as_me:$LINENO: result: no" >&5
6160
echo "${ECHO_T}no" >&6
6161
fi
6162
 
6163
fi
6164
if test -z "$ac_cv_prog_DSYMUTIL"; then
6165
  ac_ct_DSYMUTIL=$DSYMUTIL
6166
  # Extract the first word of "dsymutil", so it can be a program name with args.
6167
set dummy dsymutil; ac_word=$2
6168
echo "$as_me:$LINENO: checking for $ac_word" >&5
6169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6171
  echo $ECHO_N "(cached) $ECHO_C" >&6
6172
else
6173
  if test -n "$ac_ct_DSYMUTIL"; then
6174
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6175
else
6176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177
for as_dir in $PATH
6178
do
6179
  IFS=$as_save_IFS
6180
  test -z "$as_dir" && as_dir=.
6181
  for ac_exec_ext in '' $ac_executable_extensions; do
6182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185
    break 2
6186
  fi
6187
done
6188
done
6189
 
6190
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6191
fi
6192
fi
6193
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6194
if test -n "$ac_ct_DSYMUTIL"; then
6195
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6196
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6197
else
6198
  echo "$as_me:$LINENO: result: no" >&5
6199
echo "${ECHO_T}no" >&6
6200
fi
6201
 
6202
  DSYMUTIL=$ac_ct_DSYMUTIL
6203
else
6204
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6205
fi
6206
 
6207
    if test -n "$ac_tool_prefix"; then
6208
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6209
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6210
echo "$as_me:$LINENO: checking for $ac_word" >&5
6211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6213
  echo $ECHO_N "(cached) $ECHO_C" >&6
6214
else
6215
  if test -n "$NMEDIT"; then
6216
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6217
else
6218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219
for as_dir in $PATH
6220
do
6221
  IFS=$as_save_IFS
6222
  test -z "$as_dir" && as_dir=.
6223
  for ac_exec_ext in '' $ac_executable_extensions; do
6224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227
    break 2
6228
  fi
6229
done
6230
done
6231
 
6232
fi
6233
fi
6234
NMEDIT=$ac_cv_prog_NMEDIT
6235
if test -n "$NMEDIT"; then
6236
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6237
echo "${ECHO_T}$NMEDIT" >&6
6238
else
6239
  echo "$as_me:$LINENO: result: no" >&5
6240
echo "${ECHO_T}no" >&6
6241
fi
6242
 
6243
fi
6244
if test -z "$ac_cv_prog_NMEDIT"; then
6245
  ac_ct_NMEDIT=$NMEDIT
6246
  # Extract the first word of "nmedit", so it can be a program name with args.
6247
set dummy nmedit; ac_word=$2
6248
echo "$as_me:$LINENO: checking for $ac_word" >&5
6249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6251
  echo $ECHO_N "(cached) $ECHO_C" >&6
6252
else
6253
  if test -n "$ac_ct_NMEDIT"; then
6254
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6255
else
6256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257
for as_dir in $PATH
6258
do
6259
  IFS=$as_save_IFS
6260
  test -z "$as_dir" && as_dir=.
6261
  for ac_exec_ext in '' $ac_executable_extensions; do
6262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265
    break 2
6266
  fi
6267
done
6268
done
6269
 
6270
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6271
fi
6272
fi
6273
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6274
if test -n "$ac_ct_NMEDIT"; then
6275
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6276
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6277
else
6278
  echo "$as_me:$LINENO: result: no" >&5
6279
echo "${ECHO_T}no" >&6
6280
fi
6281
 
6282
  NMEDIT=$ac_ct_NMEDIT
6283
else
6284
  NMEDIT="$ac_cv_prog_NMEDIT"
6285
fi
6286
 
6287
    if test -n "$ac_tool_prefix"; then
6288
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6289
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6290
echo "$as_me:$LINENO: checking for $ac_word" >&5
6291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6292
if test "${ac_cv_prog_LIPO+set}" = set; then
6293
  echo $ECHO_N "(cached) $ECHO_C" >&6
6294
else
6295
  if test -n "$LIPO"; then
6296
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6297
else
6298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299
for as_dir in $PATH
6300
do
6301
  IFS=$as_save_IFS
6302
  test -z "$as_dir" && as_dir=.
6303
  for ac_exec_ext in '' $ac_executable_extensions; do
6304
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6306
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307
    break 2
6308
  fi
6309
done
6310
done
6311
 
6312
fi
6313
fi
6314
LIPO=$ac_cv_prog_LIPO
6315
if test -n "$LIPO"; then
6316
  echo "$as_me:$LINENO: result: $LIPO" >&5
6317
echo "${ECHO_T}$LIPO" >&6
6318
else
6319
  echo "$as_me:$LINENO: result: no" >&5
6320
echo "${ECHO_T}no" >&6
6321
fi
6322
 
6323
fi
6324
if test -z "$ac_cv_prog_LIPO"; then
6325
  ac_ct_LIPO=$LIPO
6326
  # Extract the first word of "lipo", so it can be a program name with args.
6327
set dummy lipo; ac_word=$2
6328
echo "$as_me:$LINENO: checking for $ac_word" >&5
6329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6331
  echo $ECHO_N "(cached) $ECHO_C" >&6
6332
else
6333
  if test -n "$ac_ct_LIPO"; then
6334
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6335
else
6336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337
for as_dir in $PATH
6338
do
6339
  IFS=$as_save_IFS
6340
  test -z "$as_dir" && as_dir=.
6341
  for ac_exec_ext in '' $ac_executable_extensions; do
6342
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343
    ac_cv_prog_ac_ct_LIPO="lipo"
6344
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345
    break 2
6346
  fi
6347
done
6348
done
6349
 
6350
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6351
fi
6352
fi
6353
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6354
if test -n "$ac_ct_LIPO"; then
6355
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6356
echo "${ECHO_T}$ac_ct_LIPO" >&6
6357
else
6358
  echo "$as_me:$LINENO: result: no" >&5
6359
echo "${ECHO_T}no" >&6
6360
fi
6361
 
6362
  LIPO=$ac_ct_LIPO
6363
else
6364
  LIPO="$ac_cv_prog_LIPO"
6365
fi
6366
 
6367
    if test -n "$ac_tool_prefix"; then
6368
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6369
set dummy ${ac_tool_prefix}otool; ac_word=$2
6370
echo "$as_me:$LINENO: checking for $ac_word" >&5
6371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6372
if test "${ac_cv_prog_OTOOL+set}" = set; then
6373
  echo $ECHO_N "(cached) $ECHO_C" >&6
6374
else
6375
  if test -n "$OTOOL"; then
6376
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6377
else
6378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379
for as_dir in $PATH
6380
do
6381
  IFS=$as_save_IFS
6382
  test -z "$as_dir" && as_dir=.
6383
  for ac_exec_ext in '' $ac_executable_extensions; do
6384
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6386
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387
    break 2
6388
  fi
6389
done
6390
done
6391
 
6392
fi
6393
fi
6394
OTOOL=$ac_cv_prog_OTOOL
6395
if test -n "$OTOOL"; then
6396
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6397
echo "${ECHO_T}$OTOOL" >&6
6398
else
6399
  echo "$as_me:$LINENO: result: no" >&5
6400
echo "${ECHO_T}no" >&6
6401
fi
6402
 
6403
fi
6404
if test -z "$ac_cv_prog_OTOOL"; then
6405
  ac_ct_OTOOL=$OTOOL
6406
  # Extract the first word of "otool", so it can be a program name with args.
6407
set dummy otool; ac_word=$2
6408
echo "$as_me:$LINENO: checking for $ac_word" >&5
6409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6411
  echo $ECHO_N "(cached) $ECHO_C" >&6
6412
else
6413
  if test -n "$ac_ct_OTOOL"; then
6414
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6415
else
6416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417
for as_dir in $PATH
6418
do
6419
  IFS=$as_save_IFS
6420
  test -z "$as_dir" && as_dir=.
6421
  for ac_exec_ext in '' $ac_executable_extensions; do
6422
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423
    ac_cv_prog_ac_ct_OTOOL="otool"
6424
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425
    break 2
6426
  fi
6427
done
6428
done
6429
 
6430
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6431
fi
6432
fi
6433
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6434
if test -n "$ac_ct_OTOOL"; then
6435
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6436
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6437
else
6438
  echo "$as_me:$LINENO: result: no" >&5
6439
echo "${ECHO_T}no" >&6
6440
fi
6441
 
6442
  OTOOL=$ac_ct_OTOOL
6443
else
6444
  OTOOL="$ac_cv_prog_OTOOL"
6445
fi
6446
 
6447
    if test -n "$ac_tool_prefix"; then
6448
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6449
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6450
echo "$as_me:$LINENO: checking for $ac_word" >&5
6451
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6452
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6453
  echo $ECHO_N "(cached) $ECHO_C" >&6
6454
else
6455
  if test -n "$OTOOL64"; then
6456
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6457
else
6458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459
for as_dir in $PATH
6460
do
6461
  IFS=$as_save_IFS
6462
  test -z "$as_dir" && as_dir=.
6463
  for ac_exec_ext in '' $ac_executable_extensions; do
6464
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6466
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467
    break 2
6468
  fi
6469
done
6470
done
6471
 
6472
fi
6473
fi
6474
OTOOL64=$ac_cv_prog_OTOOL64
6475
if test -n "$OTOOL64"; then
6476
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6477
echo "${ECHO_T}$OTOOL64" >&6
6478
else
6479
  echo "$as_me:$LINENO: result: no" >&5
6480
echo "${ECHO_T}no" >&6
6481
fi
6482
 
6483
fi
6484
if test -z "$ac_cv_prog_OTOOL64"; then
6485
  ac_ct_OTOOL64=$OTOOL64
6486
  # Extract the first word of "otool64", so it can be a program name with args.
6487
set dummy otool64; ac_word=$2
6488
echo "$as_me:$LINENO: checking for $ac_word" >&5
6489
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6490
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6491
  echo $ECHO_N "(cached) $ECHO_C" >&6
6492
else
6493
  if test -n "$ac_ct_OTOOL64"; then
6494
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6495
else
6496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497
for as_dir in $PATH
6498
do
6499
  IFS=$as_save_IFS
6500
  test -z "$as_dir" && as_dir=.
6501
  for ac_exec_ext in '' $ac_executable_extensions; do
6502
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6504
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505
    break 2
6506
  fi
6507
done
6508
done
6509
 
6510
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6511
fi
6512
fi
6513
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6514
if test -n "$ac_ct_OTOOL64"; then
6515
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6516
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6517
else
6518
  echo "$as_me:$LINENO: result: no" >&5
6519
echo "${ECHO_T}no" >&6
6520
fi
6521
 
6522
  OTOOL64=$ac_ct_OTOOL64
6523
else
6524
  OTOOL64="$ac_cv_prog_OTOOL64"
6525
fi
6526
 
6527
 
6528
 
6529
 
6530
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6554
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6555
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6556
  echo $ECHO_N "(cached) $ECHO_C" >&6
6557
else
6558
  lt_cv_apple_cc_single_mod=no
6559
      if test -z "${LT_MULTI_MODULE}"; then
6560
        # By default we will add the -single_module flag. You can override
6561
        # by either setting the environment variable LT_MULTI_MODULE
6562
        # non-empty at configure time, or by adding -multi_module to the
6563
        # link flags.
6564
        rm -rf libconftest.dylib*
6565
        echo "int foo(void){return 1;}" > conftest.c
6566
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6567
-dynamiclib -Wl,-single_module conftest.c" >&5
6568
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6569
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6570
        _lt_result=$?
6571
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6572
          lt_cv_apple_cc_single_mod=yes
6573
        else
6574
          cat conftest.err >&5
6575
        fi
6576
        rm -rf libconftest.dylib*
6577
        rm -f conftest.*
6578
      fi
6579
fi
6580
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6581
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6582
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6583
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6584
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6585
  echo $ECHO_N "(cached) $ECHO_C" >&6
6586
else
6587
  lt_cv_ld_exported_symbols_list=no
6588
      save_LDFLAGS=$LDFLAGS
6589
      echo "_main" > conftest.sym
6590
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6591
      cat >conftest.$ac_ext <<_ACEOF
6592
/* confdefs.h.  */
6593
_ACEOF
6594
cat confdefs.h >>conftest.$ac_ext
6595
cat >>conftest.$ac_ext <<_ACEOF
6596
/* end confdefs.h.  */
6597
 
6598
int
6599
main ()
6600
{
6601
 
6602
  ;
6603
  return 0;
6604
}
6605
_ACEOF
6606
rm -f conftest.$ac_objext conftest$ac_exeext
6607
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608
  (eval $ac_link) 2>conftest.er1
6609
  ac_status=$?
6610
  grep -v '^ *+' conftest.er1 >conftest.err
6611
  rm -f conftest.er1
6612
  cat conftest.err >&5
6613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614
  (exit $ac_status); } &&
6615
         { ac_try='test -z "$ac_c_werror_flag"
6616
                         || test ! -s conftest.err'
6617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618
  (eval $ac_try) 2>&5
6619
  ac_status=$?
6620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621
  (exit $ac_status); }; } &&
6622
         { ac_try='test -s conftest$ac_exeext'
6623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624
  (eval $ac_try) 2>&5
6625
  ac_status=$?
6626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
  (exit $ac_status); }; }; then
6628
  lt_cv_ld_exported_symbols_list=yes
6629
else
6630
  echo "$as_me: failed program was:" >&5
6631
sed 's/^/| /' conftest.$ac_ext >&5
6632
 
6633
lt_cv_ld_exported_symbols_list=no
6634
fi
6635
rm -f conftest.err conftest.$ac_objext \
6636
      conftest$ac_exeext conftest.$ac_ext
6637
        LDFLAGS="$save_LDFLAGS"
6638
 
6639
fi
6640
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6641
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6642
    case $host_os in
6643
    rhapsody* | darwin1.[012])
6644
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6645
    darwin1.*)
6646
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6647
    darwin*) # darwin 5.x on
6648
      # if running on 10.5 or later, the deployment target defaults
6649
      # to the OS version, if on x86, and 10.4, the deployment
6650
      # target defaults to 10.4. Don't you love it?
6651
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6652
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6653
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6654
        10.[012]*)
6655
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6656
        10.*)
6657
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6658
      esac
6659
    ;;
6660
  esac
6661
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6662
      _lt_dar_single_mod='$single_module'
6663
    fi
6664
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6665
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6666
    else
6667
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6668
    fi
6669
    if test "$DSYMUTIL" != ":"; then
6670
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6671
    else
6672
      _lt_dsymutil=
6673
    fi
6674
    ;;
6675
  esac
6676
 
6677
ac_ext=c
6678
ac_cpp='$CPP $CPPFLAGS'
6679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6683
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6684
# On Suns, sometimes $CPP names a directory.
6685
if test -n "$CPP" && test -d "$CPP"; then
6686
  CPP=
6687
fi
6688
if test -z "$CPP"; then
6689
  if test "${ac_cv_prog_CPP+set}" = set; then
6690
  echo $ECHO_N "(cached) $ECHO_C" >&6
6691
else
6692
      # Double quotes because CPP needs to be expanded
6693
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6694
    do
6695
      ac_preproc_ok=false
6696
for ac_c_preproc_warn_flag in '' yes
6697
do
6698
  # Use a header file that comes with gcc, so configuring glibc
6699
  # with a fresh cross-compiler works.
6700
  # Prefer  to  if __STDC__ is defined, since
6701
  #  exists even on freestanding compilers.
6702
  # On the NeXT, cc -E runs the code through the compiler's parser,
6703
  # not just through cpp. "Syntax error" is here to catch this case.
6704
  cat >conftest.$ac_ext <<_ACEOF
6705
/* confdefs.h.  */
6706
_ACEOF
6707
cat confdefs.h >>conftest.$ac_ext
6708
cat >>conftest.$ac_ext <<_ACEOF
6709
/* end confdefs.h.  */
6710
#ifdef __STDC__
6711
# include 
6712
#else
6713
# include 
6714
#endif
6715
                     Syntax error
6716
_ACEOF
6717
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6718
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6719
  ac_status=$?
6720
  grep -v '^ *+' conftest.er1 >conftest.err
6721
  rm -f conftest.er1
6722
  cat conftest.err >&5
6723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724
  (exit $ac_status); } >/dev/null; then
6725
  if test -s conftest.err; then
6726
    ac_cpp_err=$ac_c_preproc_warn_flag
6727
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6728
  else
6729
    ac_cpp_err=
6730
  fi
6731
else
6732
  ac_cpp_err=yes
6733
fi
6734
if test -z "$ac_cpp_err"; then
6735
  :
6736
else
6737
  echo "$as_me: failed program was:" >&5
6738
sed 's/^/| /' conftest.$ac_ext >&5
6739
 
6740
  # Broken: fails on valid input.
6741
continue
6742
fi
6743
rm -f conftest.err conftest.$ac_ext
6744
 
6745
  # OK, works on sane cases.  Now check whether non-existent headers
6746
  # can be detected and how.
6747
  cat >conftest.$ac_ext <<_ACEOF
6748
/* confdefs.h.  */
6749
_ACEOF
6750
cat confdefs.h >>conftest.$ac_ext
6751
cat >>conftest.$ac_ext <<_ACEOF
6752
/* end confdefs.h.  */
6753
#include 
6754
_ACEOF
6755
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6756
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6757
  ac_status=$?
6758
  grep -v '^ *+' conftest.er1 >conftest.err
6759
  rm -f conftest.er1
6760
  cat conftest.err >&5
6761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762
  (exit $ac_status); } >/dev/null; then
6763
  if test -s conftest.err; then
6764
    ac_cpp_err=$ac_c_preproc_warn_flag
6765
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6766
  else
6767
    ac_cpp_err=
6768
  fi
6769
else
6770
  ac_cpp_err=yes
6771
fi
6772
if test -z "$ac_cpp_err"; then
6773
  # Broken: success on invalid input.
6774
continue
6775
else
6776
  echo "$as_me: failed program was:" >&5
6777
sed 's/^/| /' conftest.$ac_ext >&5
6778
 
6779
  # Passes both tests.
6780
ac_preproc_ok=:
6781
break
6782
fi
6783
rm -f conftest.err conftest.$ac_ext
6784
 
6785
done
6786
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6787
rm -f conftest.err conftest.$ac_ext
6788
if $ac_preproc_ok; then
6789
  break
6790
fi
6791
 
6792
    done
6793
    ac_cv_prog_CPP=$CPP
6794
 
6795
fi
6796
  CPP=$ac_cv_prog_CPP
6797
else
6798
  ac_cv_prog_CPP=$CPP
6799
fi
6800
echo "$as_me:$LINENO: result: $CPP" >&5
6801
echo "${ECHO_T}$CPP" >&6
6802
ac_preproc_ok=false
6803
for ac_c_preproc_warn_flag in '' yes
6804
do
6805
  # Use a header file that comes with gcc, so configuring glibc
6806
  # with a fresh cross-compiler works.
6807
  # Prefer  to  if __STDC__ is defined, since
6808
  #  exists even on freestanding compilers.
6809
  # On the NeXT, cc -E runs the code through the compiler's parser,
6810
  # not just through cpp. "Syntax error" is here to catch this case.
6811
  cat >conftest.$ac_ext <<_ACEOF
6812
/* confdefs.h.  */
6813
_ACEOF
6814
cat confdefs.h >>conftest.$ac_ext
6815
cat >>conftest.$ac_ext <<_ACEOF
6816
/* end confdefs.h.  */
6817
#ifdef __STDC__
6818
# include 
6819
#else
6820
# include 
6821
#endif
6822
                     Syntax error
6823
_ACEOF
6824
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6825
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826
  ac_status=$?
6827
  grep -v '^ *+' conftest.er1 >conftest.err
6828
  rm -f conftest.er1
6829
  cat conftest.err >&5
6830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831
  (exit $ac_status); } >/dev/null; then
6832
  if test -s conftest.err; then
6833
    ac_cpp_err=$ac_c_preproc_warn_flag
6834
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6835
  else
6836
    ac_cpp_err=
6837
  fi
6838
else
6839
  ac_cpp_err=yes
6840
fi
6841
if test -z "$ac_cpp_err"; then
6842
  :
6843
else
6844
  echo "$as_me: failed program was:" >&5
6845
sed 's/^/| /' conftest.$ac_ext >&5
6846
 
6847
  # Broken: fails on valid input.
6848
continue
6849
fi
6850
rm -f conftest.err conftest.$ac_ext
6851
 
6852
  # OK, works on sane cases.  Now check whether non-existent headers
6853
  # can be detected and how.
6854
  cat >conftest.$ac_ext <<_ACEOF
6855
/* confdefs.h.  */
6856
_ACEOF
6857
cat confdefs.h >>conftest.$ac_ext
6858
cat >>conftest.$ac_ext <<_ACEOF
6859
/* end confdefs.h.  */
6860
#include 
6861
_ACEOF
6862
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6863
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6864
  ac_status=$?
6865
  grep -v '^ *+' conftest.er1 >conftest.err
6866
  rm -f conftest.er1
6867
  cat conftest.err >&5
6868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869
  (exit $ac_status); } >/dev/null; then
6870
  if test -s conftest.err; then
6871
    ac_cpp_err=$ac_c_preproc_warn_flag
6872
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6873
  else
6874
    ac_cpp_err=
6875
  fi
6876
else
6877
  ac_cpp_err=yes
6878
fi
6879
if test -z "$ac_cpp_err"; then
6880
  # Broken: success on invalid input.
6881
continue
6882
else
6883
  echo "$as_me: failed program was:" >&5
6884
sed 's/^/| /' conftest.$ac_ext >&5
6885
 
6886
  # Passes both tests.
6887
ac_preproc_ok=:
6888
break
6889
fi
6890
rm -f conftest.err conftest.$ac_ext
6891
 
6892
done
6893
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6894
rm -f conftest.err conftest.$ac_ext
6895
if $ac_preproc_ok; then
6896
  :
6897
else
6898
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6899
See \`config.log' for more details." >&5
6900
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6901
See \`config.log' for more details." >&2;}
6902
   { (exit 1); exit 1; }; }
6903
fi
6904
 
6905
ac_ext=c
6906
ac_cpp='$CPP $CPPFLAGS'
6907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910
 
6911
 
6912
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6913
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6914
if test "${ac_cv_header_stdc+set}" = set; then
6915
  echo $ECHO_N "(cached) $ECHO_C" >&6
6916
else
6917
  cat >conftest.$ac_ext <<_ACEOF
6918
/* confdefs.h.  */
6919
_ACEOF
6920
cat confdefs.h >>conftest.$ac_ext
6921
cat >>conftest.$ac_ext <<_ACEOF
6922
/* end confdefs.h.  */
6923
#include 
6924
#include 
6925
#include 
6926
#include 
6927
 
6928
int
6929
main ()
6930
{
6931
 
6932
  ;
6933
  return 0;
6934
}
6935
_ACEOF
6936
rm -f conftest.$ac_objext
6937
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938
  (eval $ac_compile) 2>conftest.er1
6939
  ac_status=$?
6940
  grep -v '^ *+' conftest.er1 >conftest.err
6941
  rm -f conftest.er1
6942
  cat conftest.err >&5
6943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944
  (exit $ac_status); } &&
6945
         { ac_try='test -z "$ac_c_werror_flag"
6946
                         || test ! -s conftest.err'
6947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948
  (eval $ac_try) 2>&5
6949
  ac_status=$?
6950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951
  (exit $ac_status); }; } &&
6952
         { ac_try='test -s conftest.$ac_objext'
6953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954
  (eval $ac_try) 2>&5
6955
  ac_status=$?
6956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957
  (exit $ac_status); }; }; then
6958
  ac_cv_header_stdc=yes
6959
else
6960
  echo "$as_me: failed program was:" >&5
6961
sed 's/^/| /' conftest.$ac_ext >&5
6962
 
6963
ac_cv_header_stdc=no
6964
fi
6965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966
 
6967
if test $ac_cv_header_stdc = yes; then
6968
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6969
  cat >conftest.$ac_ext <<_ACEOF
6970
/* confdefs.h.  */
6971
_ACEOF
6972
cat confdefs.h >>conftest.$ac_ext
6973
cat >>conftest.$ac_ext <<_ACEOF
6974
/* end confdefs.h.  */
6975
#include 
6976
 
6977
_ACEOF
6978
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6979
  $EGREP "memchr" >/dev/null 2>&1; then
6980
  :
6981
else
6982
  ac_cv_header_stdc=no
6983
fi
6984
rm -f conftest*
6985
 
6986
fi
6987
 
6988
if test $ac_cv_header_stdc = yes; then
6989
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6990
  cat >conftest.$ac_ext <<_ACEOF
6991
/* confdefs.h.  */
6992
_ACEOF
6993
cat confdefs.h >>conftest.$ac_ext
6994
cat >>conftest.$ac_ext <<_ACEOF
6995
/* end confdefs.h.  */
6996
#include 
6997
 
6998
_ACEOF
6999
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000
  $EGREP "free" >/dev/null 2>&1; then
7001
  :
7002
else
7003
  ac_cv_header_stdc=no
7004
fi
7005
rm -f conftest*
7006
 
7007
fi
7008
 
7009
if test $ac_cv_header_stdc = yes; then
7010
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7011
  if test "$cross_compiling" = yes; then
7012
  :
7013
else
7014
  cat >conftest.$ac_ext <<_ACEOF
7015
/* confdefs.h.  */
7016
_ACEOF
7017
cat confdefs.h >>conftest.$ac_ext
7018
cat >>conftest.$ac_ext <<_ACEOF
7019
/* end confdefs.h.  */
7020
#include 
7021
#if ((' ' & 0x0FF) == 0x020)
7022
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7023
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7024
#else
7025
# define ISLOWER(c) \
7026
                   (('a' <= (c) && (c) <= 'i') \
7027
                     || ('j' <= (c) && (c) <= 'r') \
7028
                     || ('s' <= (c) && (c) <= 'z'))
7029
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7030
#endif
7031
 
7032
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7033
int
7034
main ()
7035
{
7036
  int i;
7037
  for (i = 0; i < 256; i++)
7038
    if (XOR (islower (i), ISLOWER (i))
7039
        || toupper (i) != TOUPPER (i))
7040
      exit(2);
7041
  exit (0);
7042
}
7043
_ACEOF
7044
rm -f conftest$ac_exeext
7045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046
  (eval $ac_link) 2>&5
7047
  ac_status=$?
7048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051
  (eval $ac_try) 2>&5
7052
  ac_status=$?
7053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054
  (exit $ac_status); }; }; then
7055
  :
7056
else
7057
  echo "$as_me: program exited with status $ac_status" >&5
7058
echo "$as_me: failed program was:" >&5
7059
sed 's/^/| /' conftest.$ac_ext >&5
7060
 
7061
( exit $ac_status )
7062
ac_cv_header_stdc=no
7063
fi
7064
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7065
fi
7066
fi
7067
fi
7068
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7069
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7070
if test $ac_cv_header_stdc = yes; then
7071
 
7072
cat >>confdefs.h <<\_ACEOF
7073
#define STDC_HEADERS 1
7074
_ACEOF
7075
 
7076
fi
7077
 
7078
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7079
 
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7089
                  inttypes.h stdint.h unistd.h
7090
do
7091
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7092
echo "$as_me:$LINENO: checking for $ac_header" >&5
7093
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095
  echo $ECHO_N "(cached) $ECHO_C" >&6
7096
else
7097
  cat >conftest.$ac_ext <<_ACEOF
7098
/* confdefs.h.  */
7099
_ACEOF
7100
cat confdefs.h >>conftest.$ac_ext
7101
cat >>conftest.$ac_ext <<_ACEOF
7102
/* end confdefs.h.  */
7103
$ac_includes_default
7104
 
7105
#include <$ac_header>
7106
_ACEOF
7107
rm -f conftest.$ac_objext
7108
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109
  (eval $ac_compile) 2>conftest.er1
7110
  ac_status=$?
7111
  grep -v '^ *+' conftest.er1 >conftest.err
7112
  rm -f conftest.er1
7113
  cat conftest.err >&5
7114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115
  (exit $ac_status); } &&
7116
         { ac_try='test -z "$ac_c_werror_flag"
7117
                         || test ! -s conftest.err'
7118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119
  (eval $ac_try) 2>&5
7120
  ac_status=$?
7121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122
  (exit $ac_status); }; } &&
7123
         { ac_try='test -s conftest.$ac_objext'
7124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125
  (eval $ac_try) 2>&5
7126
  ac_status=$?
7127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128
  (exit $ac_status); }; }; then
7129
  eval "$as_ac_Header=yes"
7130
else
7131
  echo "$as_me: failed program was:" >&5
7132
sed 's/^/| /' conftest.$ac_ext >&5
7133
 
7134
eval "$as_ac_Header=no"
7135
fi
7136
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7137
fi
7138
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7139
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7140
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7141
  cat >>confdefs.h <<_ACEOF
7142
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7143
_ACEOF
7144
 
7145
fi
7146
 
7147
done
7148
 
7149
 
7150
 
7151
for ac_header in dlfcn.h
7152
do
7153
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7154
echo "$as_me:$LINENO: checking for $ac_header" >&5
7155
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7156
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7157
  echo $ECHO_N "(cached) $ECHO_C" >&6
7158
else
7159
  cat >conftest.$ac_ext <<_ACEOF
7160
/* confdefs.h.  */
7161
_ACEOF
7162
cat confdefs.h >>conftest.$ac_ext
7163
cat >>conftest.$ac_ext <<_ACEOF
7164
/* end confdefs.h.  */
7165
$ac_includes_default
7166
 
7167
#include <$ac_header>
7168
_ACEOF
7169
rm -f conftest.$ac_objext
7170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171
  (eval $ac_compile) 2>conftest.er1
7172
  ac_status=$?
7173
  grep -v '^ *+' conftest.er1 >conftest.err
7174
  rm -f conftest.er1
7175
  cat conftest.err >&5
7176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177
  (exit $ac_status); } &&
7178
         { ac_try='test -z "$ac_c_werror_flag"
7179
                         || test ! -s conftest.err'
7180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181
  (eval $ac_try) 2>&5
7182
  ac_status=$?
7183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184
  (exit $ac_status); }; } &&
7185
         { ac_try='test -s conftest.$ac_objext'
7186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187
  (eval $ac_try) 2>&5
7188
  ac_status=$?
7189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190
  (exit $ac_status); }; }; then
7191
  eval "$as_ac_Header=yes"
7192
else
7193
  echo "$as_me: failed program was:" >&5
7194
sed 's/^/| /' conftest.$ac_ext >&5
7195
 
7196
eval "$as_ac_Header=no"
7197
fi
7198
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199
fi
7200
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7201
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7202
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7203
  cat >>confdefs.h <<_ACEOF
7204
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7205
_ACEOF
7206
 
7207
fi
7208
 
7209
done
7210
 
7211
 
7212
 
7213
# Set options
7214
 
7215
 
7216
 
7217
        enable_dlopen=no
7218
 
7219
 
7220
 
7221
            # Check whether --enable-shared or --disable-shared was given.
7222
if test "${enable_shared+set}" = set; then
7223
  enableval="$enable_shared"
7224
  p=${PACKAGE-default}
7225
    case $enableval in
7226
    yes) enable_shared=yes ;;
7227
    no) enable_shared=no ;;
7228
    *)
7229
      enable_shared=no
7230
      # Look at the argument we got.  We use all the common list separators.
7231
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7232
      for pkg in $enableval; do
7233
        IFS="$lt_save_ifs"
7234
        if test "X$pkg" = "X$p"; then
7235
          enable_shared=yes
7236
        fi
7237
      done
7238
      IFS="$lt_save_ifs"
7239
      ;;
7240
    esac
7241
else
7242
  enable_shared=yes
7243
fi;
7244
 
7245
 
7246
 
7247
 
7248
 
7249
 
7250
 
7251
 
7252
  # Check whether --enable-static or --disable-static was given.
7253
if test "${enable_static+set}" = set; then
7254
  enableval="$enable_static"
7255
  p=${PACKAGE-default}
7256
    case $enableval in
7257
    yes) enable_static=yes ;;
7258
    no) enable_static=no ;;
7259
    *)
7260
     enable_static=no
7261
      # Look at the argument we got.  We use all the common list separators.
7262
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7263
      for pkg in $enableval; do
7264
        IFS="$lt_save_ifs"
7265
        if test "X$pkg" = "X$p"; then
7266
          enable_static=yes
7267
        fi
7268
      done
7269
      IFS="$lt_save_ifs"
7270
      ;;
7271
    esac
7272
else
7273
  enable_static=yes
7274
fi;
7275
 
7276
 
7277
 
7278
 
7279
 
7280
 
7281
 
7282
 
7283
 
7284
# Check whether --with-pic or --without-pic was given.
7285
if test "${with_pic+set}" = set; then
7286
  withval="$with_pic"
7287
  pic_mode="$withval"
7288
else
7289
  pic_mode=default
7290
fi;
7291
 
7292
test -z "$pic_mode" && pic_mode=default
7293
 
7294
 
7295
 
7296
 
7297
 
7298
 
7299
 
7300
  # Check whether --enable-fast-install or --disable-fast-install was given.
7301
if test "${enable_fast_install+set}" = set; then
7302
  enableval="$enable_fast_install"
7303
  p=${PACKAGE-default}
7304
    case $enableval in
7305
    yes) enable_fast_install=yes ;;
7306
    no) enable_fast_install=no ;;
7307
    *)
7308
      enable_fast_install=no
7309
      # Look at the argument we got.  We use all the common list separators.
7310
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7311
      for pkg in $enableval; do
7312
        IFS="$lt_save_ifs"
7313
        if test "X$pkg" = "X$p"; then
7314
          enable_fast_install=yes
7315
        fi
7316
      done
7317
      IFS="$lt_save_ifs"
7318
      ;;
7319
    esac
7320
else
7321
  enable_fast_install=yes
7322
fi;
7323
 
7324
 
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
# This can be used to rebuild libtool when needed
7334
LIBTOOL_DEPS="$ltmain"
7335
 
7336
# Always use our own libtool.
7337
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7338
 
7339
 
7340
 
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
 
7349
 
7350
 
7351
 
7352
 
7353
 
7354
 
7355
 
7356
 
7357
 
7358
 
7359
 
7360
 
7361
 
7362
 
7363
test -z "$LN_S" && LN_S="ln -s"
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
if test -n "${ZSH_VERSION+set}" ; then
7379
   setopt NO_GLOB_SUBST
7380
fi
7381
 
7382
echo "$as_me:$LINENO: checking for objdir" >&5
7383
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7384
if test "${lt_cv_objdir+set}" = set; then
7385
  echo $ECHO_N "(cached) $ECHO_C" >&6
7386
else
7387
  rm -f .libs 2>/dev/null
7388
mkdir .libs 2>/dev/null
7389
if test -d .libs; then
7390
  lt_cv_objdir=.libs
7391
else
7392
  # MS-DOS does not allow filenames that begin with a dot.
7393
  lt_cv_objdir=_libs
7394
fi
7395
rmdir .libs 2>/dev/null
7396
fi
7397
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7398
echo "${ECHO_T}$lt_cv_objdir" >&6
7399
objdir=$lt_cv_objdir
7400
 
7401
 
7402
 
7403
 
7404
 
7405
cat >>confdefs.h <<_ACEOF
7406
#define LT_OBJDIR "$lt_cv_objdir/"
7407
_ACEOF
7408
 
7409
 
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
 
7420
 
7421
 
7422
 
7423
 
7424
 
7425
case $host_os in
7426
aix3*)
7427
  # AIX sometimes has problems with the GCC collect2 program.  For some
7428
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7429
  # vanish in a puff of smoke.
7430
  if test "X${COLLECT_NAMES+set}" != Xset; then
7431
    COLLECT_NAMES=
7432
    export COLLECT_NAMES
7433
  fi
7434
  ;;
7435
esac
7436
 
7437
# Sed substitution that helps us do robust quoting.  It backslashifies
7438
# metacharacters that are still active within double-quoted strings.
7439
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7440
 
7441
# Same as above, but do not quote variable references.
7442
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7443
 
7444
# Sed substitution to delay expansion of an escaped shell variable in a
7445
# double_quote_subst'ed string.
7446
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7447
 
7448
# Sed substitution to delay expansion of an escaped single quote.
7449
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7450
 
7451
# Sed substitution to avoid accidental globbing in evaled expressions
7452
no_glob_subst='s/\*/\\\*/g'
7453
 
7454
# Global variables:
7455
ofile=libtool
7456
can_build_shared=yes
7457
 
7458
# All known linkers require a `.a' archive for static linking (except MSVC,
7459
# which needs '.lib').
7460
libext=a
7461
 
7462
with_gnu_ld="$lt_cv_prog_gnu_ld"
7463
 
7464
old_CC="$CC"
7465
old_CFLAGS="$CFLAGS"
7466
 
7467
# Set sane defaults for various variables
7468
test -z "$CC" && CC=cc
7469
test -z "$LTCC" && LTCC=$CC
7470
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7471
test -z "$LD" && LD=ld
7472
test -z "$ac_objext" && ac_objext=o
7473
 
7474
for cc_temp in $compiler""; do
7475
  case $cc_temp in
7476
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7477
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7478
    \-*) ;;
7479
    *) break;;
7480
  esac
7481
done
7482
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7483
 
7484
 
7485
# Only perform the check for file, if the check method requires it
7486
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7487
case $deplibs_check_method in
7488
file_magic*)
7489
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7490
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7491
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7492
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7493
  echo $ECHO_N "(cached) $ECHO_C" >&6
7494
else
7495
  case $MAGIC_CMD in
7496
[\\/*] |  ?:[\\/]*)
7497
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7498
  ;;
7499
*)
7500
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7501
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7502
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7503
  for ac_dir in $ac_dummy; do
7504
    IFS="$lt_save_ifs"
7505
    test -z "$ac_dir" && ac_dir=.
7506
    if test -f $ac_dir/${ac_tool_prefix}file; then
7507
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7508
      if test -n "$file_magic_test_file"; then
7509
        case $deplibs_check_method in
7510
        "file_magic "*)
7511
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7512
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7513
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7514
            $EGREP "$file_magic_regex" > /dev/null; then
7515
            :
7516
          else
7517
            cat <<_LT_EOF 1>&2
7518
 
7519
*** Warning: the command libtool uses to detect shared libraries,
7520
*** $file_magic_cmd, produces output that libtool cannot recognize.
7521
*** The result is that libtool may fail to recognize shared libraries
7522
*** as such.  This will affect the creation of libtool libraries that
7523
*** depend on shared libraries, but programs linked with such libtool
7524
*** libraries will work regardless of this problem.  Nevertheless, you
7525
*** may want to report the problem to your system manager and/or to
7526
*** bug-libtool@gnu.org
7527
 
7528
_LT_EOF
7529
          fi ;;
7530
        esac
7531
      fi
7532
      break
7533
    fi
7534
  done
7535
  IFS="$lt_save_ifs"
7536
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7537
  ;;
7538
esac
7539
fi
7540
 
7541
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7542
if test -n "$MAGIC_CMD"; then
7543
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7544
echo "${ECHO_T}$MAGIC_CMD" >&6
7545
else
7546
  echo "$as_me:$LINENO: result: no" >&5
7547
echo "${ECHO_T}no" >&6
7548
fi
7549
 
7550
 
7551
 
7552
 
7553
 
7554
if test -z "$lt_cv_path_MAGIC_CMD"; then
7555
  if test -n "$ac_tool_prefix"; then
7556
    echo "$as_me:$LINENO: checking for file" >&5
7557
echo $ECHO_N "checking for file... $ECHO_C" >&6
7558
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559
  echo $ECHO_N "(cached) $ECHO_C" >&6
7560
else
7561
  case $MAGIC_CMD in
7562
[\\/*] |  ?:[\\/]*)
7563
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564
  ;;
7565
*)
7566
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7567
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569
  for ac_dir in $ac_dummy; do
7570
    IFS="$lt_save_ifs"
7571
    test -z "$ac_dir" && ac_dir=.
7572
    if test -f $ac_dir/file; then
7573
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7574
      if test -n "$file_magic_test_file"; then
7575
        case $deplibs_check_method in
7576
        "file_magic "*)
7577
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580
            $EGREP "$file_magic_regex" > /dev/null; then
7581
            :
7582
          else
7583
            cat <<_LT_EOF 1>&2
7584
 
7585
*** Warning: the command libtool uses to detect shared libraries,
7586
*** $file_magic_cmd, produces output that libtool cannot recognize.
7587
*** The result is that libtool may fail to recognize shared libraries
7588
*** as such.  This will affect the creation of libtool libraries that
7589
*** depend on shared libraries, but programs linked with such libtool
7590
*** libraries will work regardless of this problem.  Nevertheless, you
7591
*** may want to report the problem to your system manager and/or to
7592
*** bug-libtool@gnu.org
7593
 
7594
_LT_EOF
7595
          fi ;;
7596
        esac
7597
      fi
7598
      break
7599
    fi
7600
  done
7601
  IFS="$lt_save_ifs"
7602
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7603
  ;;
7604
esac
7605
fi
7606
 
7607
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608
if test -n "$MAGIC_CMD"; then
7609
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610
echo "${ECHO_T}$MAGIC_CMD" >&6
7611
else
7612
  echo "$as_me:$LINENO: result: no" >&5
7613
echo "${ECHO_T}no" >&6
7614
fi
7615
 
7616
 
7617
  else
7618
    MAGIC_CMD=:
7619
  fi
7620
fi
7621
 
7622
  fi
7623
  ;;
7624
esac
7625
 
7626
# Use C for the default configuration in the libtool script
7627
 
7628
lt_save_CC="$CC"
7629
ac_ext=c
7630
ac_cpp='$CPP $CPPFLAGS'
7631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634
 
7635
 
7636
# Source file extension for C test sources.
7637
ac_ext=c
7638
 
7639
# Object file extension for compiled C test sources.
7640
objext=o
7641
objext=$objext
7642
 
7643
# Code to be used in simple compile tests
7644
lt_simple_compile_test_code="int some_variable = 0;"
7645
 
7646
# Code to be used in simple link tests
7647
lt_simple_link_test_code='int main(){return(0);}'
7648
 
7649
 
7650
 
7651
 
7652
 
7653
 
7654
 
7655
# If no C compiler was specified, use CC.
7656
LTCC=${LTCC-"$CC"}
7657
 
7658
# If no C compiler flags were specified, use CFLAGS.
7659
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7660
 
7661
# Allow CC to be a program name with arguments.
7662
compiler=$CC
7663
 
7664
# Save the default compiler, since it gets overwritten when the other
7665
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7666
compiler_DEFAULT=$CC
7667
 
7668
# save warnings/boilerplate of simple test code
7669
ac_outfile=conftest.$ac_objext
7670
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7671
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7672
_lt_compiler_boilerplate=`cat conftest.err`
7673
$RM conftest*
7674
 
7675
ac_outfile=conftest.$ac_objext
7676
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7677
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7678
_lt_linker_boilerplate=`cat conftest.err`
7679
$RM -r conftest*
7680
 
7681
 
7682
## CAVEAT EMPTOR:
7683
## There is no encapsulation within the following macros, do not change
7684
## the running order or otherwise move them around unless you know exactly
7685
## what you are doing...
7686
if test -n "$compiler"; then
7687
 
7688
lt_prog_compiler_no_builtin_flag=
7689
 
7690
if test "$GCC" = yes; then
7691
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
 
7693
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7694
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7695
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7696
  echo $ECHO_N "(cached) $ECHO_C" >&6
7697
else
7698
  lt_cv_prog_compiler_rtti_exceptions=no
7699
   ac_outfile=conftest.$ac_objext
7700
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7702
   # Insert the option either (1) after the last *FLAGS variable, or
7703
   # (2) before a word containing "conftest.", or (3) at the end.
7704
   # Note that $ac_compile itself does not contain backslashes and begins
7705
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7706
   # The option is referenced via a variable to avoid confusing sed.
7707
   lt_compile=`echo "$ac_compile" | $SED \
7708
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7709
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7710
   -e 's:$: $lt_compiler_flag:'`
7711
   (eval echo "\"\$as_me:7711: $lt_compile\"" >&5)
7712
   (eval "$lt_compile" 2>conftest.err)
7713
   ac_status=$?
7714
   cat conftest.err >&5
7715
   echo "$as_me:7715: \$? = $ac_status" >&5
7716
   if (exit $ac_status) && test -s "$ac_outfile"; then
7717
     # The compiler can only warn and ignore the option if not recognized
7718
     # So say no if there are warnings other than the usual output.
7719
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7720
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7721
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7722
       lt_cv_prog_compiler_rtti_exceptions=yes
7723
     fi
7724
   fi
7725
   $RM conftest*
7726
 
7727
fi
7728
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7729
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7730
 
7731
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7732
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7733
else
7734
    :
7735
fi
7736
 
7737
fi
7738
 
7739
 
7740
 
7741
 
7742
 
7743
 
7744
  lt_prog_compiler_wl=
7745
lt_prog_compiler_pic=
7746
lt_prog_compiler_static=
7747
 
7748
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7749
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7750
 
7751
  if test "$GCC" = yes; then
7752
    lt_prog_compiler_wl='-Wl,'
7753
    lt_prog_compiler_static='-static'
7754
 
7755
    case $host_os in
7756
      aix*)
7757
      # All AIX code is PIC.
7758
      if test "$host_cpu" = ia64; then
7759
        # AIX 5 now supports IA64 processor
7760
        lt_prog_compiler_static='-Bstatic'
7761
      fi
7762
      ;;
7763
 
7764
    amigaos*)
7765
      case $host_cpu in
7766
      powerpc)
7767
            # see comment about AmigaOS4 .so support
7768
            lt_prog_compiler_pic='-fPIC'
7769
        ;;
7770
      m68k)
7771
            # FIXME: we need at least 68020 code to build shared libraries, but
7772
            # adding the `-m68020' flag to GCC prevents building anything better,
7773
            # like `-m68040'.
7774
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7775
        ;;
7776
      esac
7777
      ;;
7778
 
7779
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7780
      # PIC is the default for these OSes.
7781
      ;;
7782
 
7783
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7784
      # This hack is so that the source file can tell whether it is being
7785
      # built for inclusion in a dll (and should export symbols for example).
7786
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7787
      # (--disable-auto-import) libraries
7788
      lt_prog_compiler_pic='-DDLL_EXPORT'
7789
      ;;
7790
 
7791
    darwin* | rhapsody*)
7792
      # PIC is the default on this platform
7793
      # Common symbols not allowed in MH_DYLIB files
7794
      lt_prog_compiler_pic='-fno-common'
7795
      ;;
7796
 
7797
    hpux*)
7798
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7799
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7800
      # sets the default TLS model and affects inlining.
7801
      case $host_cpu in
7802
      hppa*64*)
7803
        # +Z the default
7804
        ;;
7805
      *)
7806
        lt_prog_compiler_pic='-fPIC'
7807
        ;;
7808
      esac
7809
      ;;
7810
 
7811
    interix[3-9]*)
7812
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7813
      # Instead, we relocate shared libraries at runtime.
7814
      ;;
7815
 
7816
    msdosdjgpp*)
7817
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7818
      # on systems that don't support them.
7819
      lt_prog_compiler_can_build_shared=no
7820
      enable_shared=no
7821
      ;;
7822
 
7823
    *nto* | *qnx*)
7824
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7825
      # it will coredump.
7826
      lt_prog_compiler_pic='-fPIC -shared'
7827
      ;;
7828
 
7829
    sysv4*MP*)
7830
      if test -d /usr/nec; then
7831
        lt_prog_compiler_pic=-Kconform_pic
7832
      fi
7833
      ;;
7834
 
7835
    *)
7836
      lt_prog_compiler_pic='-fPIC'
7837
      ;;
7838
    esac
7839
  else
7840
    # PORTME Check for flag to pass linker flags through the system compiler.
7841
    case $host_os in
7842
    aix*)
7843
      lt_prog_compiler_wl='-Wl,'
7844
      if test "$host_cpu" = ia64; then
7845
        # AIX 5 now supports IA64 processor
7846
        lt_prog_compiler_static='-Bstatic'
7847
      else
7848
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7849
      fi
7850
      ;;
7851
 
7852
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7853
      # This hack is so that the source file can tell whether it is being
7854
      # built for inclusion in a dll (and should export symbols for example).
7855
      lt_prog_compiler_pic='-DDLL_EXPORT'
7856
      ;;
7857
 
7858
    hpux9* | hpux10* | hpux11*)
7859
      lt_prog_compiler_wl='-Wl,'
7860
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7861
      # not for PA HP-UX.
7862
      case $host_cpu in
7863
      hppa*64*|ia64*)
7864
        # +Z the default
7865
        ;;
7866
      *)
7867
        lt_prog_compiler_pic='+Z'
7868
        ;;
7869
      esac
7870
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7871
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7872
      ;;
7873
 
7874
    irix5* | irix6* | nonstopux*)
7875
      lt_prog_compiler_wl='-Wl,'
7876
      # PIC (with -KPIC) is the default.
7877
      lt_prog_compiler_static='-non_shared'
7878
      ;;
7879
 
7880
    linux* | k*bsd*-gnu)
7881
      case $cc_basename in
7882
      # old Intel for x86_64 which still supported -KPIC.
7883
      ecc*)
7884
        lt_prog_compiler_wl='-Wl,'
7885
        lt_prog_compiler_pic='-KPIC'
7886
        lt_prog_compiler_static='-static'
7887
        ;;
7888
      # icc used to be incompatible with GCC.
7889
      # ICC 10 doesn't accept -KPIC any more.
7890
      icc* | ifort*)
7891
        lt_prog_compiler_wl='-Wl,'
7892
        lt_prog_compiler_pic='-fPIC'
7893
        lt_prog_compiler_static='-static'
7894
        ;;
7895
      # Lahey Fortran 8.1.
7896
      lf95*)
7897
        lt_prog_compiler_wl='-Wl,'
7898
        lt_prog_compiler_pic='--shared'
7899
        lt_prog_compiler_static='--static'
7900
        ;;
7901
      pgcc* | pgf77* | pgf90* | pgf95*)
7902
        # Portland Group compilers (*not* the Pentium gcc compiler,
7903
        # which looks to be a dead project)
7904
        lt_prog_compiler_wl='-Wl,'
7905
        lt_prog_compiler_pic='-fpic'
7906
        lt_prog_compiler_static='-Bstatic'
7907
        ;;
7908
      ccc*)
7909
        lt_prog_compiler_wl='-Wl,'
7910
        # All Alpha code is PIC.
7911
        lt_prog_compiler_static='-non_shared'
7912
        ;;
7913
      xl*)
7914
        # IBM XL C 8.0/Fortran 10.1 on PPC
7915
        lt_prog_compiler_wl='-Wl,'
7916
        lt_prog_compiler_pic='-qpic'
7917
        lt_prog_compiler_static='-qstaticlink'
7918
        ;;
7919
      *)
7920
        case `$CC -V 2>&1 | sed 5q` in
7921
        *Sun\ C*)
7922
          # Sun C 5.9
7923
          lt_prog_compiler_pic='-KPIC'
7924
          lt_prog_compiler_static='-Bstatic'
7925
          lt_prog_compiler_wl='-Wl,'
7926
          ;;
7927
        *Sun\ F*)
7928
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7929
          lt_prog_compiler_pic='-KPIC'
7930
          lt_prog_compiler_static='-Bstatic'
7931
          lt_prog_compiler_wl=''
7932
          ;;
7933
        esac
7934
        ;;
7935
      esac
7936
      ;;
7937
 
7938
    newsos6)
7939
      lt_prog_compiler_pic='-KPIC'
7940
      lt_prog_compiler_static='-Bstatic'
7941
      ;;
7942
 
7943
    *nto* | *qnx*)
7944
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7945
      # it will coredump.
7946
      lt_prog_compiler_pic='-fPIC -shared'
7947
      ;;
7948
 
7949
    osf3* | osf4* | osf5*)
7950
      lt_prog_compiler_wl='-Wl,'
7951
      # All OSF/1 code is PIC.
7952
      lt_prog_compiler_static='-non_shared'
7953
      ;;
7954
 
7955
    rdos*)
7956
      lt_prog_compiler_static='-non_shared'
7957
      ;;
7958
 
7959
    solaris*)
7960
      lt_prog_compiler_pic='-KPIC'
7961
      lt_prog_compiler_static='-Bstatic'
7962
      case $cc_basename in
7963
      f77* | f90* | f95*)
7964
        lt_prog_compiler_wl='-Qoption ld ';;
7965
      *)
7966
        lt_prog_compiler_wl='-Wl,';;
7967
      esac
7968
      ;;
7969
 
7970
    sunos4*)
7971
      lt_prog_compiler_wl='-Qoption ld '
7972
      lt_prog_compiler_pic='-PIC'
7973
      lt_prog_compiler_static='-Bstatic'
7974
      ;;
7975
 
7976
    sysv4 | sysv4.2uw2* | sysv4.3*)
7977
      lt_prog_compiler_wl='-Wl,'
7978
      lt_prog_compiler_pic='-KPIC'
7979
      lt_prog_compiler_static='-Bstatic'
7980
      ;;
7981
 
7982
    sysv4*MP*)
7983
      if test -d /usr/nec ;then
7984
        lt_prog_compiler_pic='-Kconform_pic'
7985
        lt_prog_compiler_static='-Bstatic'
7986
      fi
7987
      ;;
7988
 
7989
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7990
      lt_prog_compiler_wl='-Wl,'
7991
      lt_prog_compiler_pic='-KPIC'
7992
      lt_prog_compiler_static='-Bstatic'
7993
      ;;
7994
 
7995
    unicos*)
7996
      lt_prog_compiler_wl='-Wl,'
7997
      lt_prog_compiler_can_build_shared=no
7998
      ;;
7999
 
8000
    uts4*)
8001
      lt_prog_compiler_pic='-pic'
8002
      lt_prog_compiler_static='-Bstatic'
8003
      ;;
8004
 
8005
    *)
8006
      lt_prog_compiler_can_build_shared=no
8007
      ;;
8008
    esac
8009
  fi
8010
 
8011
case $host_os in
8012
  # For platforms which do not support PIC, -DPIC is meaningless:
8013
  *djgpp*)
8014
    lt_prog_compiler_pic=
8015
    ;;
8016
  *)
8017
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8018
    ;;
8019
esac
8020
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8021
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8022
 
8023
 
8024
 
8025
 
8026
 
8027
 
8028
#
8029
# Check to make sure the PIC flag actually works.
8030
#
8031
if test -n "$lt_prog_compiler_pic"; then
8032
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8033
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8034
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8035
  echo $ECHO_N "(cached) $ECHO_C" >&6
8036
else
8037
  lt_cv_prog_compiler_pic_works=no
8038
   ac_outfile=conftest.$ac_objext
8039
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8040
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8041
   # Insert the option either (1) after the last *FLAGS variable, or
8042
   # (2) before a word containing "conftest.", or (3) at the end.
8043
   # Note that $ac_compile itself does not contain backslashes and begins
8044
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8045
   # The option is referenced via a variable to avoid confusing sed.
8046
   lt_compile=`echo "$ac_compile" | $SED \
8047
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8048
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8049
   -e 's:$: $lt_compiler_flag:'`
8050
   (eval echo "\"\$as_me:8050: $lt_compile\"" >&5)
8051
   (eval "$lt_compile" 2>conftest.err)
8052
   ac_status=$?
8053
   cat conftest.err >&5
8054
   echo "$as_me:8054: \$? = $ac_status" >&5
8055
   if (exit $ac_status) && test -s "$ac_outfile"; then
8056
     # The compiler can only warn and ignore the option if not recognized
8057
     # So say no if there are warnings other than the usual output.
8058
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8059
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8060
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8061
       lt_cv_prog_compiler_pic_works=yes
8062
     fi
8063
   fi
8064
   $RM conftest*
8065
 
8066
fi
8067
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8068
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8069
 
8070
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8071
    case $lt_prog_compiler_pic in
8072
     "" | " "*) ;;
8073
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8074
     esac
8075
else
8076
    lt_prog_compiler_pic=
8077
     lt_prog_compiler_can_build_shared=no
8078
fi
8079
 
8080
fi
8081
 
8082
 
8083
 
8084
 
8085
 
8086
 
8087
#
8088
# Check to make sure the static flag actually works.
8089
#
8090
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8091
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8092
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8093
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8094
  echo $ECHO_N "(cached) $ECHO_C" >&6
8095
else
8096
  lt_cv_prog_compiler_static_works=no
8097
   save_LDFLAGS="$LDFLAGS"
8098
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8099
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8100
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8101
     # The linker can only warn and ignore the option if not recognized
8102
     # So say no if there are warnings
8103
     if test -s conftest.err; then
8104
       # Append any errors to the config.log.
8105
       cat conftest.err 1>&5
8106
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8107
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8108
       if diff conftest.exp conftest.er2 >/dev/null; then
8109
         lt_cv_prog_compiler_static_works=yes
8110
       fi
8111
     else
8112
       lt_cv_prog_compiler_static_works=yes
8113
     fi
8114
   fi
8115
   $RM -r conftest*
8116
   LDFLAGS="$save_LDFLAGS"
8117
 
8118
fi
8119
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8120
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8121
 
8122
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8123
    :
8124
else
8125
    lt_prog_compiler_static=
8126
fi
8127
 
8128
 
8129
 
8130
 
8131
 
8132
 
8133
 
8134
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8135
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8136
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8137
  echo $ECHO_N "(cached) $ECHO_C" >&6
8138
else
8139
  lt_cv_prog_compiler_c_o=no
8140
   $RM -r conftest 2>/dev/null
8141
   mkdir conftest
8142
   cd conftest
8143
   mkdir out
8144
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8145
 
8146
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8147
   # Insert the option either (1) after the last *FLAGS variable, or
8148
   # (2) before a word containing "conftest.", or (3) at the end.
8149
   # Note that $ac_compile itself does not contain backslashes and begins
8150
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8151
   lt_compile=`echo "$ac_compile" | $SED \
8152
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8153
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8154
   -e 's:$: $lt_compiler_flag:'`
8155
   (eval echo "\"\$as_me:8155: $lt_compile\"" >&5)
8156
   (eval "$lt_compile" 2>out/conftest.err)
8157
   ac_status=$?
8158
   cat out/conftest.err >&5
8159
   echo "$as_me:8159: \$? = $ac_status" >&5
8160
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8161
   then
8162
     # The compiler can only warn and ignore the option if not recognized
8163
     # So say no if there are warnings
8164
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8165
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8166
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8167
       lt_cv_prog_compiler_c_o=yes
8168
     fi
8169
   fi
8170
   chmod u+w . 2>&5
8171
   $RM conftest*
8172
   # SGI C++ compiler will create directory out/ii_files/ for
8173
   # template instantiation
8174
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8175
   $RM out/* && rmdir out
8176
   cd ..
8177
   $RM -r conftest
8178
   $RM conftest*
8179
 
8180
fi
8181
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8182
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8183
 
8184
 
8185
 
8186
 
8187
 
8188
 
8189
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8190
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8191
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8192
  echo $ECHO_N "(cached) $ECHO_C" >&6
8193
else
8194
  lt_cv_prog_compiler_c_o=no
8195
   $RM -r conftest 2>/dev/null
8196
   mkdir conftest
8197
   cd conftest
8198
   mkdir out
8199
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8200
 
8201
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8202
   # Insert the option either (1) after the last *FLAGS variable, or
8203
   # (2) before a word containing "conftest.", or (3) at the end.
8204
   # Note that $ac_compile itself does not contain backslashes and begins
8205
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8206
   lt_compile=`echo "$ac_compile" | $SED \
8207
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8208
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8209
   -e 's:$: $lt_compiler_flag:'`
8210
   (eval echo "\"\$as_me:8210: $lt_compile\"" >&5)
8211
   (eval "$lt_compile" 2>out/conftest.err)
8212
   ac_status=$?
8213
   cat out/conftest.err >&5
8214
   echo "$as_me:8214: \$? = $ac_status" >&5
8215
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8216
   then
8217
     # The compiler can only warn and ignore the option if not recognized
8218
     # So say no if there are warnings
8219
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8220
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8221
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8222
       lt_cv_prog_compiler_c_o=yes
8223
     fi
8224
   fi
8225
   chmod u+w . 2>&5
8226
   $RM conftest*
8227
   # SGI C++ compiler will create directory out/ii_files/ for
8228
   # template instantiation
8229
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8230
   $RM out/* && rmdir out
8231
   cd ..
8232
   $RM -r conftest
8233
   $RM conftest*
8234
 
8235
fi
8236
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8237
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8238
 
8239
 
8240
 
8241
 
8242
hard_links="nottested"
8243
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8244
  # do not overwrite the value of need_locks provided by the user
8245
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8246
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8247
  hard_links=yes
8248
  $RM conftest*
8249
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8250
  touch conftest.a
8251
  ln conftest.a conftest.b 2>&5 || hard_links=no
8252
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8253
  echo "$as_me:$LINENO: result: $hard_links" >&5
8254
echo "${ECHO_T}$hard_links" >&6
8255
  if test "$hard_links" = no; then
8256
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8257
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8258
    need_locks=warn
8259
  fi
8260
else
8261
  need_locks=no
8262
fi
8263
 
8264
 
8265
 
8266
 
8267
 
8268
 
8269
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8270
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8271
 
8272
  runpath_var=
8273
  allow_undefined_flag=
8274
  always_export_symbols=no
8275
  archive_cmds=
8276
  archive_expsym_cmds=
8277
  compiler_needs_object=no
8278
  enable_shared_with_static_runtimes=no
8279
  export_dynamic_flag_spec=
8280
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8281
  hardcode_automatic=no
8282
  hardcode_direct=no
8283
  hardcode_direct_absolute=no
8284
  hardcode_libdir_flag_spec=
8285
  hardcode_libdir_flag_spec_ld=
8286
  hardcode_libdir_separator=
8287
  hardcode_minus_L=no
8288
  hardcode_shlibpath_var=unsupported
8289
  inherit_rpath=no
8290
  link_all_deplibs=unknown
8291
  module_cmds=
8292
  module_expsym_cmds=
8293
  old_archive_from_new_cmds=
8294
  old_archive_from_expsyms_cmds=
8295
  thread_safe_flag_spec=
8296
  whole_archive_flag_spec=
8297
  # include_expsyms should be a list of space-separated symbols to be *always*
8298
  # included in the symbol list
8299
  include_expsyms=
8300
  # exclude_expsyms can be an extended regexp of symbols to exclude
8301
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8302
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8303
  # as well as any symbol that contains `d'.
8304
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8305
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8306
  # platforms (ab)use it in PIC code, but their linkers get confused if
8307
  # the symbol is explicitly referenced.  Since portable code cannot
8308
  # rely on this symbol name, it's probably fine to never include it in
8309
  # preloaded symbol tables.
8310
  # Exclude shared library initialization/finalization symbols.
8311
  extract_expsyms_cmds=
8312
 
8313
  case $host_os in
8314
  cygwin* | mingw* | pw32* | cegcc*)
8315
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8316
    # When not using gcc, we currently assume that we are using
8317
    # Microsoft Visual C++.
8318
    if test "$GCC" != yes; then
8319
      with_gnu_ld=no
8320
    fi
8321
    ;;
8322
  interix*)
8323
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8324
    with_gnu_ld=yes
8325
    ;;
8326
  openbsd*)
8327
    with_gnu_ld=no
8328
    ;;
8329
  esac
8330
 
8331
  ld_shlibs=yes
8332
  if test "$with_gnu_ld" = yes; then
8333
    # If archive_cmds runs LD, not CC, wlarc should be empty
8334
    wlarc='${wl}'
8335
 
8336
    # Set some defaults for GNU ld with shared library support. These
8337
    # are reset later if shared libraries are not supported. Putting them
8338
    # here allows them to be overridden if necessary.
8339
    runpath_var=LD_RUN_PATH
8340
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341
    export_dynamic_flag_spec='${wl}--export-dynamic'
8342
    # ancient GNU ld didn't support --whole-archive et. al.
8343
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8344
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8345
    else
8346
      whole_archive_flag_spec=
8347
    fi
8348
    supports_anon_versioning=no
8349
    case `$LD -v 2>&1` in
8350
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8351
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8352
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8353
      *\ 2.11.*) ;; # other 2.11 versions
8354
      *) supports_anon_versioning=yes ;;
8355
    esac
8356
 
8357
    # See if GNU ld supports shared libraries.
8358
    case $host_os in
8359
    aix[3-9]*)
8360
      # On AIX/PPC, the GNU linker is very broken
8361
      if test "$host_cpu" != ia64; then
8362
        ld_shlibs=no
8363
        cat <<_LT_EOF 1>&2
8364
 
8365
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8366
*** to be unable to reliably create shared libraries on AIX.
8367
*** Therefore, libtool is disabling shared libraries support.  If you
8368
*** really care for shared libraries, you may want to modify your PATH
8369
*** so that a non-GNU linker is found, and then restart.
8370
 
8371
_LT_EOF
8372
      fi
8373
      ;;
8374
 
8375
    amigaos*)
8376
      case $host_cpu in
8377
      powerpc)
8378
            # see comment about AmigaOS4 .so support
8379
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380
            archive_expsym_cmds=''
8381
        ;;
8382
      m68k)
8383
            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)'
8384
            hardcode_libdir_flag_spec='-L$libdir'
8385
            hardcode_minus_L=yes
8386
        ;;
8387
      esac
8388
      ;;
8389
 
8390
    beos*)
8391
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8392
        allow_undefined_flag=unsupported
8393
        # Joseph Beckenbach  says some releases of gcc
8394
        # support --undefined.  This deserves some investigation.  FIXME
8395
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8396
      else
8397
        ld_shlibs=no
8398
      fi
8399
      ;;
8400
 
8401
    cygwin* | mingw* | pw32* | cegcc*)
8402
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8403
      # as there is no search path for DLLs.
8404
      hardcode_libdir_flag_spec='-L$libdir'
8405
      allow_undefined_flag=unsupported
8406
      always_export_symbols=no
8407
      enable_shared_with_static_runtimes=yes
8408
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8409
 
8410
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8411
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8412
        # If the export-symbols file already is a .def file (1st line
8413
        # is EXPORTS), use it as is; otherwise, prepend...
8414
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8415
          cp $export_symbols $output_objdir/$soname.def;
8416
        else
8417
          echo EXPORTS > $output_objdir/$soname.def;
8418
          cat $export_symbols >> $output_objdir/$soname.def;
8419
        fi~
8420
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8421
      else
8422
        ld_shlibs=no
8423
      fi
8424
      ;;
8425
 
8426
    interix[3-9]*)
8427
      hardcode_direct=no
8428
      hardcode_shlibpath_var=no
8429
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8430
      export_dynamic_flag_spec='${wl}-E'
8431
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8432
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8433
      # default) and relocated if they conflict, which is a slow very memory
8434
      # consuming and fragmenting process.  To avoid this, we pick a random,
8435
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8436
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8437
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8438
      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'
8439
      ;;
8440
 
8441
    gnu* | linux* | tpf* | k*bsd*-gnu)
8442
      tmp_diet=no
8443
      if test "$host_os" = linux-dietlibc; then
8444
        case $cc_basename in
8445
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8446
        esac
8447
      fi
8448
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8449
         && test "$tmp_diet" = no
8450
      then
8451
        tmp_addflag=
8452
        tmp_sharedflag='-shared'
8453
        case $cc_basename,$host_cpu in
8454
        pgcc*)                          # Portland Group C compiler
8455
          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'
8456
          tmp_addflag=' $pic_flag'
8457
          ;;
8458
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8459
          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'
8460
          tmp_addflag=' $pic_flag -Mnomain' ;;
8461
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8462
          tmp_addflag=' -i_dynamic' ;;
8463
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8464
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8465
        ifc* | ifort*)                  # Intel Fortran compiler
8466
          tmp_addflag=' -nofor_main' ;;
8467
        lf95*)                          # Lahey Fortran 8.1
8468
          whole_archive_flag_spec=
8469
          tmp_sharedflag='--shared' ;;
8470
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8471
          tmp_sharedflag='-qmkshrobj'
8472
          tmp_addflag= ;;
8473
        esac
8474
        case `$CC -V 2>&1 | sed 5q` in
8475
        *Sun\ C*)                       # Sun C 5.9
8476
          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'
8477
          compiler_needs_object=yes
8478
          tmp_sharedflag='-G' ;;
8479
        *Sun\ F*)                       # Sun Fortran 8.3
8480
          tmp_sharedflag='-G' ;;
8481
        esac
8482
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483
 
8484
        if test "x$supports_anon_versioning" = xyes; then
8485
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8486
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8487
            echo "local: *; };" >> $output_objdir/$libname.ver~
8488
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8489
        fi
8490
 
8491
        case $cc_basename in
8492
        xlf*)
8493
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8494
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8495
          hardcode_libdir_flag_spec=
8496
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8497
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8498
          if test "x$supports_anon_versioning" = xyes; then
8499
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8500
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8501
              echo "local: *; };" >> $output_objdir/$libname.ver~
8502
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8503
          fi
8504
          ;;
8505
        esac
8506
      else
8507
        ld_shlibs=no
8508
      fi
8509
      ;;
8510
 
8511
    netbsd*)
8512
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8513
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8514
        wlarc=
8515
      else
8516
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8517
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8518
      fi
8519
      ;;
8520
 
8521
    solaris*)
8522
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8523
        ld_shlibs=no
8524
        cat <<_LT_EOF 1>&2
8525
 
8526
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8527
*** create shared libraries on Solaris systems.  Therefore, libtool
8528
*** is disabling shared libraries support.  We urge you to upgrade GNU
8529
*** binutils to release 2.9.1 or newer.  Another option is to modify
8530
*** your PATH or compiler configuration so that the native linker is
8531
*** used, and then restart.
8532
 
8533
_LT_EOF
8534
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8537
      else
8538
        ld_shlibs=no
8539
      fi
8540
      ;;
8541
 
8542
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8543
      case `$LD -v 2>&1` in
8544
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8545
        ld_shlibs=no
8546
        cat <<_LT_EOF 1>&2
8547
 
8548
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8549
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8550
*** is disabling shared libraries support.  We urge you to upgrade GNU
8551
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8552
*** your PATH or compiler configuration so that the native linker is
8553
*** used, and then restart.
8554
 
8555
_LT_EOF
8556
        ;;
8557
        *)
8558
          # For security reasons, it is highly recommended that you always
8559
          # use absolute paths for naming shared libraries, and exclude the
8560
          # DT_RUNPATH tag from executables and libraries.  But doing so
8561
          # requires that you compile everything twice, which is a pain.
8562
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8563
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566
          else
8567
            ld_shlibs=no
8568
          fi
8569
        ;;
8570
      esac
8571
      ;;
8572
 
8573
    sunos4*)
8574
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8575
      wlarc=
8576
      hardcode_direct=yes
8577
      hardcode_shlibpath_var=no
8578
      ;;
8579
 
8580
    *)
8581
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8582
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8584
      else
8585
        ld_shlibs=no
8586
      fi
8587
      ;;
8588
    esac
8589
 
8590
    if test "$ld_shlibs" = no; then
8591
      runpath_var=
8592
      hardcode_libdir_flag_spec=
8593
      export_dynamic_flag_spec=
8594
      whole_archive_flag_spec=
8595
    fi
8596
  else
8597
    # PORTME fill in a description of your system's linker (not GNU ld)
8598
    case $host_os in
8599
    aix3*)
8600
      allow_undefined_flag=unsupported
8601
      always_export_symbols=yes
8602
      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'
8603
      # Note: this linker hardcodes the directories in LIBPATH if there
8604
      # are no directories specified by -L.
8605
      hardcode_minus_L=yes
8606
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8607
        # Neither direct hardcoding nor static linking is supported with a
8608
        # broken collect2.
8609
        hardcode_direct=unsupported
8610
      fi
8611
      ;;
8612
 
8613
    aix[4-9]*)
8614
      if test "$host_cpu" = ia64; then
8615
        # On IA64, the linker does run time linking by default, so we don't
8616
        # have to do anything special.
8617
        aix_use_runtimelinking=no
8618
        exp_sym_flag='-Bexport'
8619
        no_entry_flag=""
8620
      else
8621
        # If we're using GNU nm, then we don't want the "-C" option.
8622
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8623
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8624
          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'
8625
        else
8626
          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'
8627
        fi
8628
        aix_use_runtimelinking=no
8629
 
8630
        # Test if we are trying to use run time linking or normal
8631
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8632
        # need to do runtime linking.
8633
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8634
          for ld_flag in $LDFLAGS; do
8635
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8636
            aix_use_runtimelinking=yes
8637
            break
8638
          fi
8639
          done
8640
          ;;
8641
        esac
8642
 
8643
        exp_sym_flag='-bexport'
8644
        no_entry_flag='-bnoentry'
8645
      fi
8646
 
8647
      # When large executables or shared objects are built, AIX ld can
8648
      # have problems creating the table of contents.  If linking a library
8649
      # or program results in "error TOC overflow" add -mminimal-toc to
8650
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8651
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8652
 
8653
      archive_cmds=''
8654
      hardcode_direct=yes
8655
      hardcode_direct_absolute=yes
8656
      hardcode_libdir_separator=':'
8657
      link_all_deplibs=yes
8658
      file_list_spec='${wl}-f,'
8659
 
8660
      if test "$GCC" = yes; then
8661
        case $host_os in aix4.[012]|aix4.[012].*)
8662
        # We only want to do this on AIX 4.2 and lower, the check
8663
        # below for broken collect2 doesn't work under 4.3+
8664
          collect2name=`${CC} -print-prog-name=collect2`
8665
          if test -f "$collect2name" &&
8666
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8667
          then
8668
          # We have reworked collect2
8669
          :
8670
          else
8671
          # We have old collect2
8672
          hardcode_direct=unsupported
8673
          # It fails to find uninstalled libraries when the uninstalled
8674
          # path is not listed in the libpath.  Setting hardcode_minus_L
8675
          # to unsupported forces relinking
8676
          hardcode_minus_L=yes
8677
          hardcode_libdir_flag_spec='-L$libdir'
8678
          hardcode_libdir_separator=
8679
          fi
8680
          ;;
8681
        esac
8682
        shared_flag='-shared'
8683
        if test "$aix_use_runtimelinking" = yes; then
8684
          shared_flag="$shared_flag "'${wl}-G'
8685
        fi
8686
      else
8687
        # not using gcc
8688
        if test "$host_cpu" = ia64; then
8689
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8690
        # chokes on -Wl,-G. The following line is correct:
8691
          shared_flag='-G'
8692
        else
8693
          if test "$aix_use_runtimelinking" = yes; then
8694
            shared_flag='${wl}-G'
8695
          else
8696
            shared_flag='${wl}-bM:SRE'
8697
          fi
8698
        fi
8699
      fi
8700
 
8701
      export_dynamic_flag_spec='${wl}-bexpall'
8702
      # It seems that -bexpall does not export symbols beginning with
8703
      # underscore (_), so it is better to generate a list of symbols to export.
8704
      always_export_symbols=yes
8705
      if test "$aix_use_runtimelinking" = yes; then
8706
        # Warning - without using the other runtime loading flags (-brtl),
8707
        # -berok will link without error, but may produce a broken library.
8708
        allow_undefined_flag='-berok'
8709
        # Determine the default libpath from the value encoded in an
8710
        # empty executable.
8711
        cat >conftest.$ac_ext <<_ACEOF
8712
/* confdefs.h.  */
8713
_ACEOF
8714
cat confdefs.h >>conftest.$ac_ext
8715
cat >>conftest.$ac_ext <<_ACEOF
8716
/* end confdefs.h.  */
8717
 
8718
int
8719
main ()
8720
{
8721
 
8722
  ;
8723
  return 0;
8724
}
8725
_ACEOF
8726
rm -f conftest.$ac_objext conftest$ac_exeext
8727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728
  (eval $ac_link) 2>conftest.er1
8729
  ac_status=$?
8730
  grep -v '^ *+' conftest.er1 >conftest.err
8731
  rm -f conftest.er1
8732
  cat conftest.err >&5
8733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734
  (exit $ac_status); } &&
8735
         { ac_try='test -z "$ac_c_werror_flag"
8736
                         || test ! -s conftest.err'
8737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738
  (eval $ac_try) 2>&5
8739
  ac_status=$?
8740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
  (exit $ac_status); }; } &&
8742
         { ac_try='test -s conftest$ac_exeext'
8743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744
  (eval $ac_try) 2>&5
8745
  ac_status=$?
8746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747
  (exit $ac_status); }; }; then
8748
 
8749
lt_aix_libpath_sed='
8750
    /Import File Strings/,/^$/ {
8751
        /^0/ {
8752
            s/^0  *\(.*\)$/\1/
8753
            p
8754
        }
8755
    }'
8756
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8757
# Check for a 64-bit object if we didn't find anything.
8758
if test -z "$aix_libpath"; then
8759
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8760
fi
8761
else
8762
  echo "$as_me: failed program was:" >&5
8763
sed 's/^/| /' conftest.$ac_ext >&5
8764
 
8765
fi
8766
rm -f conftest.err conftest.$ac_objext \
8767
      conftest$ac_exeext conftest.$ac_ext
8768
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8769
 
8770
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8771
        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"
8772
      else
8773
        if test "$host_cpu" = ia64; then
8774
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8775
          allow_undefined_flag="-z nodefs"
8776
          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"
8777
        else
8778
         # Determine the default libpath from the value encoded in an
8779
         # empty executable.
8780
         cat >conftest.$ac_ext <<_ACEOF
8781
/* confdefs.h.  */
8782
_ACEOF
8783
cat confdefs.h >>conftest.$ac_ext
8784
cat >>conftest.$ac_ext <<_ACEOF
8785
/* end confdefs.h.  */
8786
 
8787
int
8788
main ()
8789
{
8790
 
8791
  ;
8792
  return 0;
8793
}
8794
_ACEOF
8795
rm -f conftest.$ac_objext conftest$ac_exeext
8796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797
  (eval $ac_link) 2>conftest.er1
8798
  ac_status=$?
8799
  grep -v '^ *+' conftest.er1 >conftest.err
8800
  rm -f conftest.er1
8801
  cat conftest.err >&5
8802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803
  (exit $ac_status); } &&
8804
         { ac_try='test -z "$ac_c_werror_flag"
8805
                         || test ! -s conftest.err'
8806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807
  (eval $ac_try) 2>&5
8808
  ac_status=$?
8809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
  (exit $ac_status); }; } &&
8811
         { ac_try='test -s conftest$ac_exeext'
8812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813
  (eval $ac_try) 2>&5
8814
  ac_status=$?
8815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
  (exit $ac_status); }; }; then
8817
 
8818
lt_aix_libpath_sed='
8819
    /Import File Strings/,/^$/ {
8820
        /^0/ {
8821
            s/^0  *\(.*\)$/\1/
8822
            p
8823
        }
8824
    }'
8825
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826
# Check for a 64-bit object if we didn't find anything.
8827
if test -z "$aix_libpath"; then
8828
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8829
fi
8830
else
8831
  echo "$as_me: failed program was:" >&5
8832
sed 's/^/| /' conftest.$ac_ext >&5
8833
 
8834
fi
8835
rm -f conftest.err conftest.$ac_objext \
8836
      conftest$ac_exeext conftest.$ac_ext
8837
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8838
 
8839
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840
          # Warning - without using the other run time loading flags,
8841
          # -berok will link without error, but may produce a broken library.
8842
          no_undefined_flag=' ${wl}-bernotok'
8843
          allow_undefined_flag=' ${wl}-berok'
8844
          # Exported symbols can be pulled into shared objects from archives
8845
          whole_archive_flag_spec='$convenience'
8846
          archive_cmds_need_lc=yes
8847
          # This is similar to how AIX traditionally builds its shared libraries.
8848
          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'
8849
        fi
8850
      fi
8851
      ;;
8852
 
8853
    amigaos*)
8854
      case $host_cpu in
8855
      powerpc)
8856
            # see comment about AmigaOS4 .so support
8857
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8858
            archive_expsym_cmds=''
8859
        ;;
8860
      m68k)
8861
            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)'
8862
            hardcode_libdir_flag_spec='-L$libdir'
8863
            hardcode_minus_L=yes
8864
        ;;
8865
      esac
8866
      ;;
8867
 
8868
    bsdi[45]*)
8869
      export_dynamic_flag_spec=-rdynamic
8870
      ;;
8871
 
8872
    cygwin* | mingw* | pw32* | cegcc*)
8873
      # When not using gcc, we currently assume that we are using
8874
      # Microsoft Visual C++.
8875
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8876
      # no search path for DLLs.
8877
      hardcode_libdir_flag_spec=' '
8878
      allow_undefined_flag=unsupported
8879
      # Tell ltmain to make .lib files, not .a files.
8880
      libext=lib
8881
      # Tell ltmain to make .dll files, not .so files.
8882
      shrext_cmds=".dll"
8883
      # FIXME: Setting linknames here is a bad hack.
8884
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8885
      # The linker will automatically build a .lib file if we build a DLL.
8886
      old_archive_from_new_cmds='true'
8887
      # FIXME: Should let the user specify the lib program.
8888
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8889
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8890
      enable_shared_with_static_runtimes=yes
8891
      ;;
8892
 
8893
    darwin* | rhapsody*)
8894
 
8895
 
8896
  archive_cmds_need_lc=no
8897
  hardcode_direct=no
8898
  hardcode_automatic=yes
8899
  hardcode_shlibpath_var=unsupported
8900
  whole_archive_flag_spec=''
8901
  link_all_deplibs=yes
8902
  allow_undefined_flag="$_lt_dar_allow_undefined"
8903
  case $cc_basename in
8904
     ifort*) _lt_dar_can_shared=yes ;;
8905
     *) _lt_dar_can_shared=$GCC ;;
8906
  esac
8907
  if test "$_lt_dar_can_shared" = "yes"; then
8908
    output_verbose_link_cmd=echo
8909
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8910
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8911
    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}"
8912
    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}"
8913
 
8914
  else
8915
  ld_shlibs=no
8916
  fi
8917
 
8918
      ;;
8919
 
8920
    dgux*)
8921
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922
      hardcode_libdir_flag_spec='-L$libdir'
8923
      hardcode_shlibpath_var=no
8924
      ;;
8925
 
8926
    freebsd1*)
8927
      ld_shlibs=no
8928
      ;;
8929
 
8930
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8931
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8932
    # does not break anything, and helps significantly (at the cost of a little
8933
    # extra space).
8934
    freebsd2.2*)
8935
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8936
      hardcode_libdir_flag_spec='-R$libdir'
8937
      hardcode_direct=yes
8938
      hardcode_shlibpath_var=no
8939
      ;;
8940
 
8941
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8942
    freebsd2*)
8943
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8944
      hardcode_direct=yes
8945
      hardcode_minus_L=yes
8946
      hardcode_shlibpath_var=no
8947
      ;;
8948
 
8949
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8950
    freebsd* | dragonfly*)
8951
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8952
      hardcode_libdir_flag_spec='-R$libdir'
8953
      hardcode_direct=yes
8954
      hardcode_shlibpath_var=no
8955
      ;;
8956
 
8957
    hpux9*)
8958
      if test "$GCC" = yes; then
8959
        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'
8960
      else
8961
        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'
8962
      fi
8963
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8964
      hardcode_libdir_separator=:
8965
      hardcode_direct=yes
8966
 
8967
      # hardcode_minus_L: Not really in the search PATH,
8968
      # but as the default location of the library.
8969
      hardcode_minus_L=yes
8970
      export_dynamic_flag_spec='${wl}-E'
8971
      ;;
8972
 
8973
    hpux10*)
8974
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8975
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8976
      else
8977
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8978
      fi
8979
      if test "$with_gnu_ld" = no; then
8980
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8981
        hardcode_libdir_flag_spec_ld='+b $libdir'
8982
        hardcode_libdir_separator=:
8983
        hardcode_direct=yes
8984
        hardcode_direct_absolute=yes
8985
        export_dynamic_flag_spec='${wl}-E'
8986
        # hardcode_minus_L: Not really in the search PATH,
8987
        # but as the default location of the library.
8988
        hardcode_minus_L=yes
8989
      fi
8990
      ;;
8991
 
8992
    hpux11*)
8993
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8994
        case $host_cpu in
8995
        hppa*64*)
8996
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997
          ;;
8998
        ia64*)
8999
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9000
          ;;
9001
        *)
9002
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9003
          ;;
9004
        esac
9005
      else
9006
        case $host_cpu in
9007
        hppa*64*)
9008
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009
          ;;
9010
        ia64*)
9011
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9012
          ;;
9013
        *)
9014
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9015
          ;;
9016
        esac
9017
      fi
9018
      if test "$with_gnu_ld" = no; then
9019
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9020
        hardcode_libdir_separator=:
9021
 
9022
        case $host_cpu in
9023
        hppa*64*|ia64*)
9024
          hardcode_direct=no
9025
          hardcode_shlibpath_var=no
9026
          ;;
9027
        *)
9028
          hardcode_direct=yes
9029
          hardcode_direct_absolute=yes
9030
          export_dynamic_flag_spec='${wl}-E'
9031
 
9032
          # hardcode_minus_L: Not really in the search PATH,
9033
          # but as the default location of the library.
9034
          hardcode_minus_L=yes
9035
          ;;
9036
        esac
9037
      fi
9038
      ;;
9039
 
9040
    irix5* | irix6* | nonstopux*)
9041
      if test "$GCC" = yes; then
9042
        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'
9043
        # Try to use the -exported_symbol ld option, if it does not
9044
        # work, assume that -exports_file does not work either and
9045
        # implicitly export all symbols.
9046
        save_LDFLAGS="$LDFLAGS"
9047
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9048
        cat >conftest.$ac_ext <<_ACEOF
9049
int foo(void) {}
9050
_ACEOF
9051
rm -f conftest.$ac_objext conftest$ac_exeext
9052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053
  (eval $ac_link) 2>conftest.er1
9054
  ac_status=$?
9055
  grep -v '^ *+' conftest.er1 >conftest.err
9056
  rm -f conftest.er1
9057
  cat conftest.err >&5
9058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059
  (exit $ac_status); } &&
9060
         { ac_try='test -z "$ac_c_werror_flag"
9061
                         || test ! -s conftest.err'
9062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063
  (eval $ac_try) 2>&5
9064
  ac_status=$?
9065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066
  (exit $ac_status); }; } &&
9067
         { ac_try='test -s conftest$ac_exeext'
9068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069
  (eval $ac_try) 2>&5
9070
  ac_status=$?
9071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
  (exit $ac_status); }; }; then
9073
  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'
9074
 
9075
else
9076
  echo "$as_me: failed program was:" >&5
9077
sed 's/^/| /' conftest.$ac_ext >&5
9078
 
9079
fi
9080
rm -f conftest.err conftest.$ac_objext \
9081
      conftest$ac_exeext conftest.$ac_ext
9082
        LDFLAGS="$save_LDFLAGS"
9083
      else
9084
        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'
9085
        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'
9086
      fi
9087
      archive_cmds_need_lc='no'
9088
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9089
      hardcode_libdir_separator=:
9090
      inherit_rpath=yes
9091
      link_all_deplibs=yes
9092
      ;;
9093
 
9094
    netbsd*)
9095
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9096
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9097
      else
9098
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9099
      fi
9100
      hardcode_libdir_flag_spec='-R$libdir'
9101
      hardcode_direct=yes
9102
      hardcode_shlibpath_var=no
9103
      ;;
9104
 
9105
    newsos6)
9106
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107
      hardcode_direct=yes
9108
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9109
      hardcode_libdir_separator=:
9110
      hardcode_shlibpath_var=no
9111
      ;;
9112
 
9113
    *nto* | *qnx*)
9114
      ;;
9115
 
9116
    openbsd*)
9117
      if test -f /usr/libexec/ld.so; then
9118
        hardcode_direct=yes
9119
        hardcode_shlibpath_var=no
9120
        hardcode_direct_absolute=yes
9121
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9122
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9123
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9124
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9125
          export_dynamic_flag_spec='${wl}-E'
9126
        else
9127
          case $host_os in
9128
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9129
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9130
             hardcode_libdir_flag_spec='-R$libdir'
9131
             ;;
9132
           *)
9133
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9134
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9135
             ;;
9136
          esac
9137
        fi
9138
      else
9139
        ld_shlibs=no
9140
      fi
9141
      ;;
9142
 
9143
    os2*)
9144
      hardcode_libdir_flag_spec='-L$libdir'
9145
      hardcode_minus_L=yes
9146
      allow_undefined_flag=unsupported
9147
      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'
9148
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9149
      ;;
9150
 
9151
    osf3*)
9152
      if test "$GCC" = yes; then
9153
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9154
        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'
9155
      else
9156
        allow_undefined_flag=' -expect_unresolved \*'
9157
        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'
9158
      fi
9159
      archive_cmds_need_lc='no'
9160
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161
      hardcode_libdir_separator=:
9162
      ;;
9163
 
9164
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9165
      if test "$GCC" = yes; then
9166
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9167
        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'
9168
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169
      else
9170
        allow_undefined_flag=' -expect_unresolved \*'
9171
        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'
9172
        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~
9173
        $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'
9174
 
9175
        # Both c and cxx compiler support -rpath directly
9176
        hardcode_libdir_flag_spec='-rpath $libdir'
9177
      fi
9178
      archive_cmds_need_lc='no'
9179
      hardcode_libdir_separator=:
9180
      ;;
9181
 
9182
    solaris*)
9183
      no_undefined_flag=' -z defs'
9184
      if test "$GCC" = yes; then
9185
        wlarc='${wl}'
9186
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9188
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9189
      else
9190
        case `$CC -V 2>&1` in
9191
        *"Compilers 5.0"*)
9192
          wlarc=''
9193
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9195
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9196
          ;;
9197
        *)
9198
          wlarc='${wl}'
9199
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9200
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9201
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9202
          ;;
9203
        esac
9204
      fi
9205
      hardcode_libdir_flag_spec='-R$libdir'
9206
      hardcode_shlibpath_var=no
9207
      case $host_os in
9208
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9209
      *)
9210
        # The compiler driver will combine and reorder linker options,
9211
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9212
        # but is careful enough not to reorder.
9213
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9214
        if test "$GCC" = yes; then
9215
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9216
        else
9217
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9218
        fi
9219
        ;;
9220
      esac
9221
      link_all_deplibs=yes
9222
      ;;
9223
 
9224
    sunos4*)
9225
      if test "x$host_vendor" = xsequent; then
9226
        # Use $CC to link under sequent, because it throws in some extra .o
9227
        # files that make .init and .fini sections work.
9228
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9229
      else
9230
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9231
      fi
9232
      hardcode_libdir_flag_spec='-L$libdir'
9233
      hardcode_direct=yes
9234
      hardcode_minus_L=yes
9235
      hardcode_shlibpath_var=no
9236
      ;;
9237
 
9238
    sysv4)
9239
      case $host_vendor in
9240
        sni)
9241
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242
          hardcode_direct=yes # is this really true???
9243
        ;;
9244
        siemens)
9245
          ## LD is ld it makes a PLAMLIB
9246
          ## CC just makes a GrossModule.
9247
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9248
          reload_cmds='$CC -r -o $output$reload_objs'
9249
          hardcode_direct=no
9250
        ;;
9251
        motorola)
9252
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9254
        ;;
9255
      esac
9256
      runpath_var='LD_RUN_PATH'
9257
      hardcode_shlibpath_var=no
9258
      ;;
9259
 
9260
    sysv4.3*)
9261
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262
      hardcode_shlibpath_var=no
9263
      export_dynamic_flag_spec='-Bexport'
9264
      ;;
9265
 
9266
    sysv4*MP*)
9267
      if test -d /usr/nec; then
9268
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9269
        hardcode_shlibpath_var=no
9270
        runpath_var=LD_RUN_PATH
9271
        hardcode_runpath_var=yes
9272
        ld_shlibs=yes
9273
      fi
9274
      ;;
9275
 
9276
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9277
      no_undefined_flag='${wl}-z,text'
9278
      archive_cmds_need_lc=no
9279
      hardcode_shlibpath_var=no
9280
      runpath_var='LD_RUN_PATH'
9281
 
9282
      if test "$GCC" = yes; then
9283
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9284
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285
      else
9286
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9287
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288
      fi
9289
      ;;
9290
 
9291
    sysv5* | sco3.2v5* | sco5v6*)
9292
      # Note: We can NOT use -z defs as we might desire, because we do not
9293
      # link with -lc, and that would cause any symbols used from libc to
9294
      # always be unresolved, which means just about no library would
9295
      # ever link correctly.  If we're not using GNU ld we use -z text
9296
      # though, which does catch some bad symbols but isn't as heavy-handed
9297
      # as -z defs.
9298
      no_undefined_flag='${wl}-z,text'
9299
      allow_undefined_flag='${wl}-z,nodefs'
9300
      archive_cmds_need_lc=no
9301
      hardcode_shlibpath_var=no
9302
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9303
      hardcode_libdir_separator=':'
9304
      link_all_deplibs=yes
9305
      export_dynamic_flag_spec='${wl}-Bexport'
9306
      runpath_var='LD_RUN_PATH'
9307
 
9308
      if test "$GCC" = yes; then
9309
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
      else
9312
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314
      fi
9315
      ;;
9316
 
9317
    uts4*)
9318
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319
      hardcode_libdir_flag_spec='-L$libdir'
9320
      hardcode_shlibpath_var=no
9321
      ;;
9322
 
9323
    *)
9324
      ld_shlibs=no
9325
      ;;
9326
    esac
9327
 
9328
    if test x$host_vendor = xsni; then
9329
      case $host in
9330
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9331
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9332
        ;;
9333
      esac
9334
    fi
9335
  fi
9336
 
9337
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9338
echo "${ECHO_T}$ld_shlibs" >&6
9339
test "$ld_shlibs" = no && can_build_shared=no
9340
 
9341
with_gnu_ld=$with_gnu_ld
9342
 
9343
 
9344
 
9345
 
9346
 
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
#
9358
# Do we need to explicitly link libc?
9359
#
9360
case "x$archive_cmds_need_lc" in
9361
x|xyes)
9362
  # Assume -lc should be added
9363
  archive_cmds_need_lc=yes
9364
 
9365
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9366
    case $archive_cmds in
9367
    *'~'*)
9368
      # FIXME: we may have to deal with multi-command sequences.
9369
      ;;
9370
    '$CC '*)
9371
      # Test whether the compiler implicitly links with -lc since on some
9372
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9373
      # to ld, don't add -lc before -lgcc.
9374
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9375
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9376
      $RM conftest*
9377
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9378
 
9379
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380
  (eval $ac_compile) 2>&5
9381
  ac_status=$?
9382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383
  (exit $ac_status); } 2>conftest.err; then
9384
        soname=conftest
9385
        lib=conftest
9386
        libobjs=conftest.$ac_objext
9387
        deplibs=
9388
        wl=$lt_prog_compiler_wl
9389
        pic_flag=$lt_prog_compiler_pic
9390
        compiler_flags=-v
9391
        linker_flags=-v
9392
        verstring=
9393
        output_objdir=.
9394
        libname=conftest
9395
        lt_save_allow_undefined_flag=$allow_undefined_flag
9396
        allow_undefined_flag=
9397
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9398
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9399
  ac_status=$?
9400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401
  (exit $ac_status); }
9402
        then
9403
          archive_cmds_need_lc=no
9404
        else
9405
          archive_cmds_need_lc=yes
9406
        fi
9407
        allow_undefined_flag=$lt_save_allow_undefined_flag
9408
      else
9409
        cat conftest.err 1>&5
9410
      fi
9411
      $RM conftest*
9412
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9413
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9414
      ;;
9415
    esac
9416
  fi
9417
  ;;
9418
esac
9419
 
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
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
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9577
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9578
 
9579
if test "$GCC" = yes; then
9580
  case $host_os in
9581
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9582
    *) lt_awk_arg="/^libraries:/" ;;
9583
  esac
9584
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9585
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9586
    # if the path contains ";" then we assume it to be the separator
9587
    # otherwise default to the standard path separator (i.e. ":") - it is
9588
    # assumed that no part of a normal pathname contains ";" but that should
9589
    # okay in the real world where ";" in dirpaths is itself problematic.
9590
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9591
  else
9592
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9593
  fi
9594
  # Ok, now we have the path, separated by spaces, we can step through it
9595
  # and add multilib dir if necessary.
9596
  lt_tmp_lt_search_path_spec=
9597
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9598
  for lt_sys_path in $lt_search_path_spec; do
9599
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9600
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9601
    else
9602
      test -d "$lt_sys_path" && \
9603
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9604
    fi
9605
  done
9606
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9607
BEGIN {RS=" "; FS="/|\n";} {
9608
  lt_foo="";
9609
  lt_count=0;
9610
  for (lt_i = NF; lt_i > 0; lt_i--) {
9611
    if ($lt_i != "" && $lt_i != ".") {
9612
      if ($lt_i == "..") {
9613
        lt_count++;
9614
      } else {
9615
        if (lt_count == 0) {
9616
          lt_foo="/" $lt_i lt_foo;
9617
        } else {
9618
          lt_count--;
9619
        }
9620
      }
9621
    }
9622
  }
9623
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9624
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9625
}'`
9626
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9627
else
9628
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9629
fi
9630
library_names_spec=
9631
libname_spec='lib$name'
9632
soname_spec=
9633
shrext_cmds=".so"
9634
postinstall_cmds=
9635
postuninstall_cmds=
9636
finish_cmds=
9637
finish_eval=
9638
shlibpath_var=
9639
shlibpath_overrides_runpath=unknown
9640
version_type=none
9641
dynamic_linker="$host_os ld.so"
9642
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9643
need_lib_prefix=unknown
9644
hardcode_into_libs=no
9645
 
9646
# when you set need_version to no, make sure it does not cause -set_version
9647
# flags to be left without arguments
9648
need_version=unknown
9649
 
9650
case $host_os in
9651
aix3*)
9652
  version_type=linux
9653
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9654
  shlibpath_var=LIBPATH
9655
 
9656
  # AIX 3 has no versioning support, so we append a major version to the name.
9657
  soname_spec='${libname}${release}${shared_ext}$major'
9658
  ;;
9659
 
9660
aix[4-9]*)
9661
  version_type=linux
9662
  need_lib_prefix=no
9663
  need_version=no
9664
  hardcode_into_libs=yes
9665
  if test "$host_cpu" = ia64; then
9666
    # AIX 5 supports IA64
9667
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9668
    shlibpath_var=LD_LIBRARY_PATH
9669
  else
9670
    # With GCC up to 2.95.x, collect2 would create an import file
9671
    # for dependence libraries.  The import file would start with
9672
    # the line `#! .'.  This would cause the generated library to
9673
    # depend on `.', always an invalid library.  This was fixed in
9674
    # development snapshots of GCC prior to 3.0.
9675
    case $host_os in
9676
      aix4 | aix4.[01] | aix4.[01].*)
9677
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9678
           echo ' yes '
9679
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9680
        :
9681
      else
9682
        can_build_shared=no
9683
      fi
9684
      ;;
9685
    esac
9686
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9687
    # soname into executable. Probably we can add versioning support to
9688
    # collect2, so additional links can be useful in future.
9689
    if test "$aix_use_runtimelinking" = yes; then
9690
      # If using run time linking (on AIX 4.2 or later) use lib.so
9691
      # instead of lib.a to let people know that these are not
9692
      # typical AIX shared libraries.
9693
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694
    else
9695
      # We preserve .a as extension for shared libraries through AIX4.2
9696
      # and later when we are not doing run time linking.
9697
      library_names_spec='${libname}${release}.a $libname.a'
9698
      soname_spec='${libname}${release}${shared_ext}$major'
9699
    fi
9700
    shlibpath_var=LIBPATH
9701
  fi
9702
  ;;
9703
 
9704
amigaos*)
9705
  case $host_cpu in
9706
  powerpc)
9707
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9708
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9709
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710
    ;;
9711
  m68k)
9712
    library_names_spec='$libname.ixlibrary $libname.a'
9713
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9714
    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'
9715
    ;;
9716
  esac
9717
  ;;
9718
 
9719
beos*)
9720
  library_names_spec='${libname}${shared_ext}'
9721
  dynamic_linker="$host_os ld.so"
9722
  shlibpath_var=LIBRARY_PATH
9723
  ;;
9724
 
9725
bsdi[45]*)
9726
  version_type=linux
9727
  need_version=no
9728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729
  soname_spec='${libname}${release}${shared_ext}$major'
9730
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9731
  shlibpath_var=LD_LIBRARY_PATH
9732
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9733
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9734
  # the default ld.so.conf also contains /usr/contrib/lib and
9735
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9736
  # libtool to hard-code these into programs
9737
  ;;
9738
 
9739
cygwin* | mingw* | pw32* | cegcc*)
9740
  version_type=windows
9741
  shrext_cmds=".dll"
9742
  need_version=no
9743
  need_lib_prefix=no
9744
 
9745
  case $GCC,$host_os in
9746
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9747
    library_names_spec='$libname.dll.a'
9748
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749
    postinstall_cmds='base_file=`basename \${file}`~
9750
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9751
      dldir=$destdir/`dirname \$dlpath`~
9752
      test -d \$dldir || mkdir -p \$dldir~
9753
      $install_prog $dir/$dlname \$dldir/$dlname~
9754
      chmod a+x \$dldir/$dlname~
9755
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9756
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9757
      fi'
9758
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9759
      dlpath=$dir/\$dldll~
9760
       $RM \$dlpath'
9761
    shlibpath_overrides_runpath=yes
9762
 
9763
    case $host_os in
9764
    cygwin*)
9765
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9766
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9767
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9768
      ;;
9769
    mingw* | cegcc*)
9770
      # MinGW DLLs use traditional 'lib' prefix
9771
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9772
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9773
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9774
        # It is most probably a Windows format PATH printed by
9775
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9776
        # path with ; separators, and with drive letters. We can handle the
9777
        # drive letters (cygwin fileutils understands them), so leave them,
9778
        # especially as we might pass files found there to a mingw objdump,
9779
        # which wouldn't understand a cygwinified path. Ahh.
9780
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9781
      else
9782
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9783
      fi
9784
      ;;
9785
    pw32*)
9786
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9787
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9788
      ;;
9789
    esac
9790
    ;;
9791
 
9792
  *)
9793
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9794
    ;;
9795
  esac
9796
  dynamic_linker='Win32 ld.exe'
9797
  # FIXME: first we should search . and the directory the executable is in
9798
  shlibpath_var=PATH
9799
  ;;
9800
 
9801
darwin* | rhapsody*)
9802
  dynamic_linker="$host_os dyld"
9803
  version_type=darwin
9804
  need_lib_prefix=no
9805
  need_version=no
9806
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9807
  soname_spec='${libname}${release}${major}$shared_ext'
9808
  shlibpath_overrides_runpath=yes
9809
  shlibpath_var=DYLD_LIBRARY_PATH
9810
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9811
 
9812
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9813
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9814
  ;;
9815
 
9816
dgux*)
9817
  version_type=linux
9818
  need_lib_prefix=no
9819
  need_version=no
9820
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9821
  soname_spec='${libname}${release}${shared_ext}$major'
9822
  shlibpath_var=LD_LIBRARY_PATH
9823
  ;;
9824
 
9825
freebsd1*)
9826
  dynamic_linker=no
9827
  ;;
9828
 
9829
freebsd* | dragonfly*)
9830
  # DragonFly does not have aout.  When/if they implement a new
9831
  # versioning mechanism, adjust this.
9832
  if test -x /usr/bin/objformat; then
9833
    objformat=`/usr/bin/objformat`
9834
  else
9835
    case $host_os in
9836
    freebsd[123]*) objformat=aout ;;
9837
    *) objformat=elf ;;
9838
    esac
9839
  fi
9840
  version_type=freebsd-$objformat
9841
  case $version_type in
9842
    freebsd-elf*)
9843
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9844
      need_version=no
9845
      need_lib_prefix=no
9846
      ;;
9847
    freebsd-*)
9848
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9849
      need_version=yes
9850
      ;;
9851
  esac
9852
  shlibpath_var=LD_LIBRARY_PATH
9853
  case $host_os in
9854
  freebsd2*)
9855
    shlibpath_overrides_runpath=yes
9856
    ;;
9857
  freebsd3.[01]* | freebsdelf3.[01]*)
9858
    shlibpath_overrides_runpath=yes
9859
    hardcode_into_libs=yes
9860
    ;;
9861
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9862
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9863
    shlibpath_overrides_runpath=no
9864
    hardcode_into_libs=yes
9865
    ;;
9866
  *) # from 4.6 on, and DragonFly
9867
    shlibpath_overrides_runpath=yes
9868
    hardcode_into_libs=yes
9869
    ;;
9870
  esac
9871
  ;;
9872
 
9873
gnu*)
9874
  version_type=linux
9875
  need_lib_prefix=no
9876
  need_version=no
9877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9878
  soname_spec='${libname}${release}${shared_ext}$major'
9879
  shlibpath_var=LD_LIBRARY_PATH
9880
  hardcode_into_libs=yes
9881
  ;;
9882
 
9883
hpux9* | hpux10* | hpux11*)
9884
  # Give a soname corresponding to the major version so that dld.sl refuses to
9885
  # link against other versions.
9886
  version_type=sunos
9887
  need_lib_prefix=no
9888
  need_version=no
9889
  case $host_cpu in
9890
  ia64*)
9891
    shrext_cmds='.so'
9892
    hardcode_into_libs=yes
9893
    dynamic_linker="$host_os dld.so"
9894
    shlibpath_var=LD_LIBRARY_PATH
9895
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9896
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897
    soname_spec='${libname}${release}${shared_ext}$major'
9898
    if test "X$HPUX_IA64_MODE" = X32; then
9899
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9900
    else
9901
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9902
    fi
9903
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9904
    ;;
9905
  hppa*64*)
9906
    shrext_cmds='.sl'
9907
    hardcode_into_libs=yes
9908
    dynamic_linker="$host_os dld.sl"
9909
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9910
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9911
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912
    soname_spec='${libname}${release}${shared_ext}$major'
9913
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9914
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9915
    ;;
9916
  *)
9917
    shrext_cmds='.sl'
9918
    dynamic_linker="$host_os dld.sl"
9919
    shlibpath_var=SHLIB_PATH
9920
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9921
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922
    soname_spec='${libname}${release}${shared_ext}$major'
9923
    ;;
9924
  esac
9925
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9926
  postinstall_cmds='chmod 555 $lib'
9927
  ;;
9928
 
9929
interix[3-9]*)
9930
  version_type=linux
9931
  need_lib_prefix=no
9932
  need_version=no
9933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9934
  soname_spec='${libname}${release}${shared_ext}$major'
9935
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9936
  shlibpath_var=LD_LIBRARY_PATH
9937
  shlibpath_overrides_runpath=no
9938
  hardcode_into_libs=yes
9939
  ;;
9940
 
9941
irix5* | irix6* | nonstopux*)
9942
  case $host_os in
9943
    nonstopux*) version_type=nonstopux ;;
9944
    *)
9945
        if test "$lt_cv_prog_gnu_ld" = yes; then
9946
                version_type=linux
9947
        else
9948
                version_type=irix
9949
        fi ;;
9950
  esac
9951
  need_lib_prefix=no
9952
  need_version=no
9953
  soname_spec='${libname}${release}${shared_ext}$major'
9954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9955
  case $host_os in
9956
  irix5* | nonstopux*)
9957
    libsuff= shlibsuff=
9958
    ;;
9959
  *)
9960
    case $LD in # libtool.m4 will add one of these switches to LD
9961
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9962
      libsuff= shlibsuff= libmagic=32-bit;;
9963
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9964
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9965
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9966
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9967
    *) libsuff= shlibsuff= libmagic=never-match;;
9968
    esac
9969
    ;;
9970
  esac
9971
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9972
  shlibpath_overrides_runpath=no
9973
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9974
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9975
  hardcode_into_libs=yes
9976
  ;;
9977
 
9978
# No shared lib support for Linux oldld, aout, or coff.
9979
linux*oldld* | linux*aout* | linux*coff*)
9980
  dynamic_linker=no
9981
  ;;
9982
 
9983
# This must be Linux ELF.
9984
linux* | k*bsd*-gnu)
9985
  version_type=linux
9986
  need_lib_prefix=no
9987
  need_version=no
9988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989
  soname_spec='${libname}${release}${shared_ext}$major'
9990
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9991
  shlibpath_var=LD_LIBRARY_PATH
9992
  shlibpath_overrides_runpath=no
9993
  # Some binutils ld are patched to set DT_RUNPATH
9994
  save_LDFLAGS=$LDFLAGS
9995
  save_libdir=$libdir
9996
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9997
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9998
  cat >conftest.$ac_ext <<_ACEOF
9999
/* confdefs.h.  */
10000
_ACEOF
10001
cat confdefs.h >>conftest.$ac_ext
10002
cat >>conftest.$ac_ext <<_ACEOF
10003
/* end confdefs.h.  */
10004
 
10005
int
10006
main ()
10007
{
10008
 
10009
  ;
10010
  return 0;
10011
}
10012
_ACEOF
10013
rm -f conftest.$ac_objext conftest$ac_exeext
10014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015
  (eval $ac_link) 2>conftest.er1
10016
  ac_status=$?
10017
  grep -v '^ *+' conftest.er1 >conftest.err
10018
  rm -f conftest.er1
10019
  cat conftest.err >&5
10020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021
  (exit $ac_status); } &&
10022
         { ac_try='test -z "$ac_c_werror_flag"
10023
                         || test ! -s conftest.err'
10024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025
  (eval $ac_try) 2>&5
10026
  ac_status=$?
10027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
  (exit $ac_status); }; } &&
10029
         { ac_try='test -s conftest$ac_exeext'
10030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031
  (eval $ac_try) 2>&5
10032
  ac_status=$?
10033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
  (exit $ac_status); }; }; then
10035
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10036
  shlibpath_overrides_runpath=yes
10037
fi
10038
 
10039
else
10040
  echo "$as_me: failed program was:" >&5
10041
sed 's/^/| /' conftest.$ac_ext >&5
10042
 
10043
fi
10044
rm -f conftest.err conftest.$ac_objext \
10045
      conftest$ac_exeext conftest.$ac_ext
10046
  LDFLAGS=$save_LDFLAGS
10047
  libdir=$save_libdir
10048
 
10049
  # This implies no fast_install, which is unacceptable.
10050
  # Some rework will be needed to allow for fast_install
10051
  # before this can be enabled.
10052
  hardcode_into_libs=yes
10053
 
10054
  # Append ld.so.conf contents to the search path
10055
  if test -f /etc/ld.so.conf; then
10056
    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' ' '`
10057
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10058
  fi
10059
 
10060
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10061
  # powerpc, because MkLinux only supported shared libraries with the
10062
  # GNU dynamic linker.  Since this was broken with cross compilers,
10063
  # most powerpc-linux boxes support dynamic linking these days and
10064
  # people can always --disable-shared, the test was removed, and we
10065
  # assume the GNU/Linux dynamic linker is in use.
10066
  dynamic_linker='GNU/Linux ld.so'
10067
  ;;
10068
 
10069
netbsd*)
10070
  version_type=sunos
10071
  need_lib_prefix=no
10072
  need_version=no
10073
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10074
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10075
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10076
    dynamic_linker='NetBSD (a.out) ld.so'
10077
  else
10078
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10079
    soname_spec='${libname}${release}${shared_ext}$major'
10080
    dynamic_linker='NetBSD ld.elf_so'
10081
  fi
10082
  shlibpath_var=LD_LIBRARY_PATH
10083
  shlibpath_overrides_runpath=yes
10084
  hardcode_into_libs=yes
10085
  ;;
10086
 
10087
newsos6)
10088
  version_type=linux
10089
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090
  shlibpath_var=LD_LIBRARY_PATH
10091
  shlibpath_overrides_runpath=yes
10092
  ;;
10093
 
10094
*nto* | *qnx*)
10095
  version_type=qnx
10096
  need_lib_prefix=no
10097
  need_version=no
10098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099
  soname_spec='${libname}${release}${shared_ext}$major'
10100
  shlibpath_var=LD_LIBRARY_PATH
10101
  shlibpath_overrides_runpath=no
10102
  hardcode_into_libs=yes
10103
  dynamic_linker='ldqnx.so'
10104
  ;;
10105
 
10106
openbsd*)
10107
  version_type=sunos
10108
  sys_lib_dlsearch_path_spec="/usr/lib"
10109
  need_lib_prefix=no
10110
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10111
  case $host_os in
10112
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10113
    *)                          need_version=no  ;;
10114
  esac
10115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10117
  shlibpath_var=LD_LIBRARY_PATH
10118
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10119
    case $host_os in
10120
      openbsd2.[89] | openbsd2.[89].*)
10121
        shlibpath_overrides_runpath=no
10122
        ;;
10123
      *)
10124
        shlibpath_overrides_runpath=yes
10125
        ;;
10126
      esac
10127
  else
10128
    shlibpath_overrides_runpath=yes
10129
  fi
10130
  ;;
10131
 
10132
os2*)
10133
  libname_spec='$name'
10134
  shrext_cmds=".dll"
10135
  need_lib_prefix=no
10136
  library_names_spec='$libname${shared_ext} $libname.a'
10137
  dynamic_linker='OS/2 ld.exe'
10138
  shlibpath_var=LIBPATH
10139
  ;;
10140
 
10141
osf3* | osf4* | osf5*)
10142
  version_type=osf
10143
  need_lib_prefix=no
10144
  need_version=no
10145
  soname_spec='${libname}${release}${shared_ext}$major'
10146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147
  shlibpath_var=LD_LIBRARY_PATH
10148
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10149
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10150
  ;;
10151
 
10152
rdos*)
10153
  dynamic_linker=no
10154
  ;;
10155
 
10156
solaris*)
10157
  version_type=linux
10158
  need_lib_prefix=no
10159
  need_version=no
10160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161
  soname_spec='${libname}${release}${shared_ext}$major'
10162
  shlibpath_var=LD_LIBRARY_PATH
10163
  shlibpath_overrides_runpath=yes
10164
  hardcode_into_libs=yes
10165
  # ldd complains unless libraries are executable
10166
  postinstall_cmds='chmod +x $lib'
10167
  ;;
10168
 
10169
sunos4*)
10170
  version_type=sunos
10171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10173
  shlibpath_var=LD_LIBRARY_PATH
10174
  shlibpath_overrides_runpath=yes
10175
  if test "$with_gnu_ld" = yes; then
10176
    need_lib_prefix=no
10177
  fi
10178
  need_version=yes
10179
  ;;
10180
 
10181
sysv4 | sysv4.3*)
10182
  version_type=linux
10183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184
  soname_spec='${libname}${release}${shared_ext}$major'
10185
  shlibpath_var=LD_LIBRARY_PATH
10186
  case $host_vendor in
10187
    sni)
10188
      shlibpath_overrides_runpath=no
10189
      need_lib_prefix=no
10190
      runpath_var=LD_RUN_PATH
10191
      ;;
10192
    siemens)
10193
      need_lib_prefix=no
10194
      ;;
10195
    motorola)
10196
      need_lib_prefix=no
10197
      need_version=no
10198
      shlibpath_overrides_runpath=no
10199
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10200
      ;;
10201
  esac
10202
  ;;
10203
 
10204
sysv4*MP*)
10205
  if test -d /usr/nec ;then
10206
    version_type=linux
10207
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10208
    soname_spec='$libname${shared_ext}.$major'
10209
    shlibpath_var=LD_LIBRARY_PATH
10210
  fi
10211
  ;;
10212
 
10213
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10214
  version_type=freebsd-elf
10215
  need_lib_prefix=no
10216
  need_version=no
10217
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10218
  soname_spec='${libname}${release}${shared_ext}$major'
10219
  shlibpath_var=LD_LIBRARY_PATH
10220
  shlibpath_overrides_runpath=yes
10221
  hardcode_into_libs=yes
10222
  if test "$with_gnu_ld" = yes; then
10223
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10224
  else
10225
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10226
    case $host_os in
10227
      sco3.2v5*)
10228
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10229
        ;;
10230
    esac
10231
  fi
10232
  sys_lib_dlsearch_path_spec='/usr/lib'
10233
  ;;
10234
 
10235
tpf*)
10236
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10237
  version_type=linux
10238
  need_lib_prefix=no
10239
  need_version=no
10240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241
  shlibpath_var=LD_LIBRARY_PATH
10242
  shlibpath_overrides_runpath=no
10243
  hardcode_into_libs=yes
10244
  ;;
10245
 
10246
uts4*)
10247
  version_type=linux
10248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249
  soname_spec='${libname}${release}${shared_ext}$major'
10250
  shlibpath_var=LD_LIBRARY_PATH
10251
  ;;
10252
 
10253
*)
10254
  dynamic_linker=no
10255
  ;;
10256
esac
10257
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10258
echo "${ECHO_T}$dynamic_linker" >&6
10259
test "$dynamic_linker" = no && can_build_shared=no
10260
 
10261
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10262
if test "$GCC" = yes; then
10263
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10264
fi
10265
 
10266
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10267
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10268
fi
10269
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10270
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10271
fi
10272
 
10273
 
10274
 
10275
 
10276
 
10277
 
10278
 
10279
 
10280
 
10281
 
10282
 
10283
 
10284
 
10285
 
10286
 
10287
 
10288
 
10289
 
10290
 
10291
 
10292
 
10293
 
10294
 
10295
 
10296
 
10297
 
10298
 
10299
 
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10360
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10361
hardcode_action=
10362
if test -n "$hardcode_libdir_flag_spec" ||
10363
   test -n "$runpath_var" ||
10364
   test "X$hardcode_automatic" = "Xyes" ; then
10365
 
10366
  # We can hardcode non-existent directories.
10367
  if test "$hardcode_direct" != no &&
10368
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10369
     # have to relink, otherwise we might link with an installed library
10370
     # when we should be linking with a yet-to-be-installed one
10371
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10372
     test "$hardcode_minus_L" != no; then
10373
    # Linking always hardcodes the temporary library directory.
10374
    hardcode_action=relink
10375
  else
10376
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10377
    hardcode_action=immediate
10378
  fi
10379
else
10380
  # We cannot hardcode anything, or else we can only hardcode existing
10381
  # directories.
10382
  hardcode_action=unsupported
10383
fi
10384
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10385
echo "${ECHO_T}$hardcode_action" >&6
10386
 
10387
if test "$hardcode_action" = relink ||
10388
   test "$inherit_rpath" = yes; then
10389
  # Fast installation is not supported
10390
  enable_fast_install=no
10391
elif test "$shlibpath_overrides_runpath" = yes ||
10392
     test "$enable_shared" = no; then
10393
  # Fast installation is not necessary
10394
  enable_fast_install=needless
10395
fi
10396
 
10397
 
10398
 
10399
 
10400
 
10401
 
10402
  if test "x$enable_dlopen" != xyes; then
10403
  enable_dlopen=unknown
10404
  enable_dlopen_self=unknown
10405
  enable_dlopen_self_static=unknown
10406
else
10407
  lt_cv_dlopen=no
10408
  lt_cv_dlopen_libs=
10409
 
10410
  case $host_os in
10411
  beos*)
10412
    lt_cv_dlopen="load_add_on"
10413
    lt_cv_dlopen_libs=
10414
    lt_cv_dlopen_self=yes
10415
    ;;
10416
 
10417
  mingw* | pw32* | cegcc*)
10418
    lt_cv_dlopen="LoadLibrary"
10419
    lt_cv_dlopen_libs=
10420
    ;;
10421
 
10422
  cygwin*)
10423
    lt_cv_dlopen="dlopen"
10424
    lt_cv_dlopen_libs=
10425
    ;;
10426
 
10427
  darwin*)
10428
  # if libdl is installed we need to link against it
10429
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10430
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10431
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10432
  echo $ECHO_N "(cached) $ECHO_C" >&6
10433
else
10434
  ac_check_lib_save_LIBS=$LIBS
10435
LIBS="-ldl  $LIBS"
10436
cat >conftest.$ac_ext <<_ACEOF
10437
/* confdefs.h.  */
10438
_ACEOF
10439
cat confdefs.h >>conftest.$ac_ext
10440
cat >>conftest.$ac_ext <<_ACEOF
10441
/* end confdefs.h.  */
10442
 
10443
/* Override any gcc2 internal prototype to avoid an error.  */
10444
#ifdef __cplusplus
10445
extern "C"
10446
#endif
10447
/* We use char because int might match the return type of a gcc2
10448
   builtin and then its argument prototype would still apply.  */
10449
char dlopen ();
10450
int
10451
main ()
10452
{
10453
dlopen ();
10454
  ;
10455
  return 0;
10456
}
10457
_ACEOF
10458
rm -f conftest.$ac_objext conftest$ac_exeext
10459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460
  (eval $ac_link) 2>conftest.er1
10461
  ac_status=$?
10462
  grep -v '^ *+' conftest.er1 >conftest.err
10463
  rm -f conftest.er1
10464
  cat conftest.err >&5
10465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466
  (exit $ac_status); } &&
10467
         { ac_try='test -z "$ac_c_werror_flag"
10468
                         || test ! -s conftest.err'
10469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470
  (eval $ac_try) 2>&5
10471
  ac_status=$?
10472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473
  (exit $ac_status); }; } &&
10474
         { ac_try='test -s conftest$ac_exeext'
10475
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476
  (eval $ac_try) 2>&5
10477
  ac_status=$?
10478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479
  (exit $ac_status); }; }; then
10480
  ac_cv_lib_dl_dlopen=yes
10481
else
10482
  echo "$as_me: failed program was:" >&5
10483
sed 's/^/| /' conftest.$ac_ext >&5
10484
 
10485
ac_cv_lib_dl_dlopen=no
10486
fi
10487
rm -f conftest.err conftest.$ac_objext \
10488
      conftest$ac_exeext conftest.$ac_ext
10489
LIBS=$ac_check_lib_save_LIBS
10490
fi
10491
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10492
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10493
if test $ac_cv_lib_dl_dlopen = yes; then
10494
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10495
else
10496
 
10497
    lt_cv_dlopen="dyld"
10498
    lt_cv_dlopen_libs=
10499
    lt_cv_dlopen_self=yes
10500
 
10501
fi
10502
 
10503
    ;;
10504
 
10505
  *)
10506
    echo "$as_me:$LINENO: checking for shl_load" >&5
10507
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10508
if test "${ac_cv_func_shl_load+set}" = set; then
10509
  echo $ECHO_N "(cached) $ECHO_C" >&6
10510
else
10511
  cat >conftest.$ac_ext <<_ACEOF
10512
/* confdefs.h.  */
10513
_ACEOF
10514
cat confdefs.h >>conftest.$ac_ext
10515
cat >>conftest.$ac_ext <<_ACEOF
10516
/* end confdefs.h.  */
10517
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10518
   For example, HP-UX 11i  declares gettimeofday.  */
10519
#define shl_load innocuous_shl_load
10520
 
10521
/* System header to define __stub macros and hopefully few prototypes,
10522
    which can conflict with char shl_load (); below.
10523
    Prefer  to  if __STDC__ is defined, since
10524
     exists even on freestanding compilers.  */
10525
 
10526
#ifdef __STDC__
10527
# include 
10528
#else
10529
# include 
10530
#endif
10531
 
10532
#undef shl_load
10533
 
10534
/* Override any gcc2 internal prototype to avoid an error.  */
10535
#ifdef __cplusplus
10536
extern "C"
10537
{
10538
#endif
10539
/* We use char because int might match the return type of a gcc2
10540
   builtin and then its argument prototype would still apply.  */
10541
char shl_load ();
10542
/* The GNU C library defines this for functions which it implements
10543
    to always fail with ENOSYS.  Some functions are actually named
10544
    something starting with __ and the normal name is an alias.  */
10545
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10546
choke me
10547
#else
10548
char (*f) () = shl_load;
10549
#endif
10550
#ifdef __cplusplus
10551
}
10552
#endif
10553
 
10554
int
10555
main ()
10556
{
10557
return f != shl_load;
10558
  ;
10559
  return 0;
10560
}
10561
_ACEOF
10562
rm -f conftest.$ac_objext conftest$ac_exeext
10563
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564
  (eval $ac_link) 2>conftest.er1
10565
  ac_status=$?
10566
  grep -v '^ *+' conftest.er1 >conftest.err
10567
  rm -f conftest.er1
10568
  cat conftest.err >&5
10569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570
  (exit $ac_status); } &&
10571
         { ac_try='test -z "$ac_c_werror_flag"
10572
                         || test ! -s conftest.err'
10573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574
  (eval $ac_try) 2>&5
10575
  ac_status=$?
10576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577
  (exit $ac_status); }; } &&
10578
         { ac_try='test -s conftest$ac_exeext'
10579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580
  (eval $ac_try) 2>&5
10581
  ac_status=$?
10582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583
  (exit $ac_status); }; }; then
10584
  ac_cv_func_shl_load=yes
10585
else
10586
  echo "$as_me: failed program was:" >&5
10587
sed 's/^/| /' conftest.$ac_ext >&5
10588
 
10589
ac_cv_func_shl_load=no
10590
fi
10591
rm -f conftest.err conftest.$ac_objext \
10592
      conftest$ac_exeext conftest.$ac_ext
10593
fi
10594
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10595
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10596
if test $ac_cv_func_shl_load = yes; then
10597
  lt_cv_dlopen="shl_load"
10598
else
10599
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10600
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10601
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10602
  echo $ECHO_N "(cached) $ECHO_C" >&6
10603
else
10604
  ac_check_lib_save_LIBS=$LIBS
10605
LIBS="-ldld  $LIBS"
10606
cat >conftest.$ac_ext <<_ACEOF
10607
/* confdefs.h.  */
10608
_ACEOF
10609
cat confdefs.h >>conftest.$ac_ext
10610
cat >>conftest.$ac_ext <<_ACEOF
10611
/* end confdefs.h.  */
10612
 
10613
/* Override any gcc2 internal prototype to avoid an error.  */
10614
#ifdef __cplusplus
10615
extern "C"
10616
#endif
10617
/* We use char because int might match the return type of a gcc2
10618
   builtin and then its argument prototype would still apply.  */
10619
char shl_load ();
10620
int
10621
main ()
10622
{
10623
shl_load ();
10624
  ;
10625
  return 0;
10626
}
10627
_ACEOF
10628
rm -f conftest.$ac_objext conftest$ac_exeext
10629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630
  (eval $ac_link) 2>conftest.er1
10631
  ac_status=$?
10632
  grep -v '^ *+' conftest.er1 >conftest.err
10633
  rm -f conftest.er1
10634
  cat conftest.err >&5
10635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636
  (exit $ac_status); } &&
10637
         { ac_try='test -z "$ac_c_werror_flag"
10638
                         || test ! -s conftest.err'
10639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640
  (eval $ac_try) 2>&5
10641
  ac_status=$?
10642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
  (exit $ac_status); }; } &&
10644
         { ac_try='test -s conftest$ac_exeext'
10645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646
  (eval $ac_try) 2>&5
10647
  ac_status=$?
10648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649
  (exit $ac_status); }; }; then
10650
  ac_cv_lib_dld_shl_load=yes
10651
else
10652
  echo "$as_me: failed program was:" >&5
10653
sed 's/^/| /' conftest.$ac_ext >&5
10654
 
10655
ac_cv_lib_dld_shl_load=no
10656
fi
10657
rm -f conftest.err conftest.$ac_objext \
10658
      conftest$ac_exeext conftest.$ac_ext
10659
LIBS=$ac_check_lib_save_LIBS
10660
fi
10661
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10662
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10663
if test $ac_cv_lib_dld_shl_load = yes; then
10664
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10665
else
10666
  echo "$as_me:$LINENO: checking for dlopen" >&5
10667
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10668
if test "${ac_cv_func_dlopen+set}" = set; then
10669
  echo $ECHO_N "(cached) $ECHO_C" >&6
10670
else
10671
  cat >conftest.$ac_ext <<_ACEOF
10672
/* confdefs.h.  */
10673
_ACEOF
10674
cat confdefs.h >>conftest.$ac_ext
10675
cat >>conftest.$ac_ext <<_ACEOF
10676
/* end confdefs.h.  */
10677
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10678
   For example, HP-UX 11i  declares gettimeofday.  */
10679
#define dlopen innocuous_dlopen
10680
 
10681
/* System header to define __stub macros and hopefully few prototypes,
10682
    which can conflict with char dlopen (); below.
10683
    Prefer  to  if __STDC__ is defined, since
10684
     exists even on freestanding compilers.  */
10685
 
10686
#ifdef __STDC__
10687
# include 
10688
#else
10689
# include 
10690
#endif
10691
 
10692
#undef dlopen
10693
 
10694
/* Override any gcc2 internal prototype to avoid an error.  */
10695
#ifdef __cplusplus
10696
extern "C"
10697
{
10698
#endif
10699
/* We use char because int might match the return type of a gcc2
10700
   builtin and then its argument prototype would still apply.  */
10701
char dlopen ();
10702
/* The GNU C library defines this for functions which it implements
10703
    to always fail with ENOSYS.  Some functions are actually named
10704
    something starting with __ and the normal name is an alias.  */
10705
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10706
choke me
10707
#else
10708
char (*f) () = dlopen;
10709
#endif
10710
#ifdef __cplusplus
10711
}
10712
#endif
10713
 
10714
int
10715
main ()
10716
{
10717
return f != dlopen;
10718
  ;
10719
  return 0;
10720
}
10721
_ACEOF
10722
rm -f conftest.$ac_objext conftest$ac_exeext
10723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10724
  (eval $ac_link) 2>conftest.er1
10725
  ac_status=$?
10726
  grep -v '^ *+' conftest.er1 >conftest.err
10727
  rm -f conftest.er1
10728
  cat conftest.err >&5
10729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730
  (exit $ac_status); } &&
10731
         { ac_try='test -z "$ac_c_werror_flag"
10732
                         || test ! -s conftest.err'
10733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734
  (eval $ac_try) 2>&5
10735
  ac_status=$?
10736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737
  (exit $ac_status); }; } &&
10738
         { ac_try='test -s conftest$ac_exeext'
10739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740
  (eval $ac_try) 2>&5
10741
  ac_status=$?
10742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743
  (exit $ac_status); }; }; then
10744
  ac_cv_func_dlopen=yes
10745
else
10746
  echo "$as_me: failed program was:" >&5
10747
sed 's/^/| /' conftest.$ac_ext >&5
10748
 
10749
ac_cv_func_dlopen=no
10750
fi
10751
rm -f conftest.err conftest.$ac_objext \
10752
      conftest$ac_exeext conftest.$ac_ext
10753
fi
10754
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10755
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10756
if test $ac_cv_func_dlopen = yes; then
10757
  lt_cv_dlopen="dlopen"
10758
else
10759
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10760
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10761
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10762
  echo $ECHO_N "(cached) $ECHO_C" >&6
10763
else
10764
  ac_check_lib_save_LIBS=$LIBS
10765
LIBS="-ldl  $LIBS"
10766
cat >conftest.$ac_ext <<_ACEOF
10767
/* confdefs.h.  */
10768
_ACEOF
10769
cat confdefs.h >>conftest.$ac_ext
10770
cat >>conftest.$ac_ext <<_ACEOF
10771
/* end confdefs.h.  */
10772
 
10773
/* Override any gcc2 internal prototype to avoid an error.  */
10774
#ifdef __cplusplus
10775
extern "C"
10776
#endif
10777
/* We use char because int might match the return type of a gcc2
10778
   builtin and then its argument prototype would still apply.  */
10779
char dlopen ();
10780
int
10781
main ()
10782
{
10783
dlopen ();
10784
  ;
10785
  return 0;
10786
}
10787
_ACEOF
10788
rm -f conftest.$ac_objext conftest$ac_exeext
10789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790
  (eval $ac_link) 2>conftest.er1
10791
  ac_status=$?
10792
  grep -v '^ *+' conftest.er1 >conftest.err
10793
  rm -f conftest.er1
10794
  cat conftest.err >&5
10795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796
  (exit $ac_status); } &&
10797
         { ac_try='test -z "$ac_c_werror_flag"
10798
                         || test ! -s conftest.err'
10799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800
  (eval $ac_try) 2>&5
10801
  ac_status=$?
10802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803
  (exit $ac_status); }; } &&
10804
         { ac_try='test -s conftest$ac_exeext'
10805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806
  (eval $ac_try) 2>&5
10807
  ac_status=$?
10808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809
  (exit $ac_status); }; }; then
10810
  ac_cv_lib_dl_dlopen=yes
10811
else
10812
  echo "$as_me: failed program was:" >&5
10813
sed 's/^/| /' conftest.$ac_ext >&5
10814
 
10815
ac_cv_lib_dl_dlopen=no
10816
fi
10817
rm -f conftest.err conftest.$ac_objext \
10818
      conftest$ac_exeext conftest.$ac_ext
10819
LIBS=$ac_check_lib_save_LIBS
10820
fi
10821
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10822
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10823
if test $ac_cv_lib_dl_dlopen = yes; then
10824
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10825
else
10826
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10827
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10828
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10829
  echo $ECHO_N "(cached) $ECHO_C" >&6
10830
else
10831
  ac_check_lib_save_LIBS=$LIBS
10832
LIBS="-lsvld  $LIBS"
10833
cat >conftest.$ac_ext <<_ACEOF
10834
/* confdefs.h.  */
10835
_ACEOF
10836
cat confdefs.h >>conftest.$ac_ext
10837
cat >>conftest.$ac_ext <<_ACEOF
10838
/* end confdefs.h.  */
10839
 
10840
/* Override any gcc2 internal prototype to avoid an error.  */
10841
#ifdef __cplusplus
10842
extern "C"
10843
#endif
10844
/* We use char because int might match the return type of a gcc2
10845
   builtin and then its argument prototype would still apply.  */
10846
char dlopen ();
10847
int
10848
main ()
10849
{
10850
dlopen ();
10851
  ;
10852
  return 0;
10853
}
10854
_ACEOF
10855
rm -f conftest.$ac_objext conftest$ac_exeext
10856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10857
  (eval $ac_link) 2>conftest.er1
10858
  ac_status=$?
10859
  grep -v '^ *+' conftest.er1 >conftest.err
10860
  rm -f conftest.er1
10861
  cat conftest.err >&5
10862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863
  (exit $ac_status); } &&
10864
         { ac_try='test -z "$ac_c_werror_flag"
10865
                         || test ! -s conftest.err'
10866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867
  (eval $ac_try) 2>&5
10868
  ac_status=$?
10869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870
  (exit $ac_status); }; } &&
10871
         { ac_try='test -s conftest$ac_exeext'
10872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873
  (eval $ac_try) 2>&5
10874
  ac_status=$?
10875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876
  (exit $ac_status); }; }; then
10877
  ac_cv_lib_svld_dlopen=yes
10878
else
10879
  echo "$as_me: failed program was:" >&5
10880
sed 's/^/| /' conftest.$ac_ext >&5
10881
 
10882
ac_cv_lib_svld_dlopen=no
10883
fi
10884
rm -f conftest.err conftest.$ac_objext \
10885
      conftest$ac_exeext conftest.$ac_ext
10886
LIBS=$ac_check_lib_save_LIBS
10887
fi
10888
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10889
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10890
if test $ac_cv_lib_svld_dlopen = yes; then
10891
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10892
else
10893
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10894
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10895
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10896
  echo $ECHO_N "(cached) $ECHO_C" >&6
10897
else
10898
  ac_check_lib_save_LIBS=$LIBS
10899
LIBS="-ldld  $LIBS"
10900
cat >conftest.$ac_ext <<_ACEOF
10901
/* confdefs.h.  */
10902
_ACEOF
10903
cat confdefs.h >>conftest.$ac_ext
10904
cat >>conftest.$ac_ext <<_ACEOF
10905
/* end confdefs.h.  */
10906
 
10907
/* Override any gcc2 internal prototype to avoid an error.  */
10908
#ifdef __cplusplus
10909
extern "C"
10910
#endif
10911
/* We use char because int might match the return type of a gcc2
10912
   builtin and then its argument prototype would still apply.  */
10913
char dld_link ();
10914
int
10915
main ()
10916
{
10917
dld_link ();
10918
  ;
10919
  return 0;
10920
}
10921
_ACEOF
10922
rm -f conftest.$ac_objext conftest$ac_exeext
10923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10924
  (eval $ac_link) 2>conftest.er1
10925
  ac_status=$?
10926
  grep -v '^ *+' conftest.er1 >conftest.err
10927
  rm -f conftest.er1
10928
  cat conftest.err >&5
10929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930
  (exit $ac_status); } &&
10931
         { ac_try='test -z "$ac_c_werror_flag"
10932
                         || test ! -s conftest.err'
10933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934
  (eval $ac_try) 2>&5
10935
  ac_status=$?
10936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937
  (exit $ac_status); }; } &&
10938
         { ac_try='test -s conftest$ac_exeext'
10939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940
  (eval $ac_try) 2>&5
10941
  ac_status=$?
10942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943
  (exit $ac_status); }; }; then
10944
  ac_cv_lib_dld_dld_link=yes
10945
else
10946
  echo "$as_me: failed program was:" >&5
10947
sed 's/^/| /' conftest.$ac_ext >&5
10948
 
10949
ac_cv_lib_dld_dld_link=no
10950
fi
10951
rm -f conftest.err conftest.$ac_objext \
10952
      conftest$ac_exeext conftest.$ac_ext
10953
LIBS=$ac_check_lib_save_LIBS
10954
fi
10955
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10956
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10957
if test $ac_cv_lib_dld_dld_link = yes; then
10958
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10959
fi
10960
 
10961
 
10962
fi
10963
 
10964
 
10965
fi
10966
 
10967
 
10968
fi
10969
 
10970
 
10971
fi
10972
 
10973
 
10974
fi
10975
 
10976
    ;;
10977
  esac
10978
 
10979
  if test "x$lt_cv_dlopen" != xno; then
10980
    enable_dlopen=yes
10981
  else
10982
    enable_dlopen=no
10983
  fi
10984
 
10985
  case $lt_cv_dlopen in
10986
  dlopen)
10987
    save_CPPFLAGS="$CPPFLAGS"
10988
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10989
 
10990
    save_LDFLAGS="$LDFLAGS"
10991
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10992
 
10993
    save_LIBS="$LIBS"
10994
    LIBS="$lt_cv_dlopen_libs $LIBS"
10995
 
10996
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10997
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10998
if test "${lt_cv_dlopen_self+set}" = set; then
10999
  echo $ECHO_N "(cached) $ECHO_C" >&6
11000
else
11001
          if test "$cross_compiling" = yes; then :
11002
  lt_cv_dlopen_self=cross
11003
else
11004
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11005
  lt_status=$lt_dlunknown
11006
  cat > conftest.$ac_ext <<_LT_EOF
11007
#line 11007 "configure"
11008
#include "confdefs.h"
11009
 
11010
#if HAVE_DLFCN_H
11011
#include 
11012
#endif
11013
 
11014
#include 
11015
 
11016
#ifdef RTLD_GLOBAL
11017
#  define LT_DLGLOBAL           RTLD_GLOBAL
11018
#else
11019
#  ifdef DL_GLOBAL
11020
#    define LT_DLGLOBAL         DL_GLOBAL
11021
#  else
11022
#    define LT_DLGLOBAL         0
11023
#  endif
11024
#endif
11025
 
11026
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11027
   find out it does not work in some platform. */
11028
#ifndef LT_DLLAZY_OR_NOW
11029
#  ifdef RTLD_LAZY
11030
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11031
#  else
11032
#    ifdef DL_LAZY
11033
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11034
#    else
11035
#      ifdef RTLD_NOW
11036
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11037
#      else
11038
#        ifdef DL_NOW
11039
#          define LT_DLLAZY_OR_NOW      DL_NOW
11040
#        else
11041
#          define LT_DLLAZY_OR_NOW      0
11042
#        endif
11043
#      endif
11044
#    endif
11045
#  endif
11046
#endif
11047
 
11048
void fnord() { int i=42;}
11049
int main ()
11050
{
11051
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11052
  int status = $lt_dlunknown;
11053
 
11054
  if (self)
11055
    {
11056
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11057
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11058
      /* dlclose (self); */
11059
    }
11060
  else
11061
    puts (dlerror ());
11062
 
11063
  return status;
11064
}
11065
_LT_EOF
11066
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067
  (eval $ac_link) 2>&5
11068
  ac_status=$?
11069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11071
    (./conftest; exit; ) >&5 2>/dev/null
11072
    lt_status=$?
11073
    case x$lt_status in
11074
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11075
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11076
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11077
    esac
11078
  else :
11079
    # compilation failed
11080
    lt_cv_dlopen_self=no
11081
  fi
11082
fi
11083
rm -fr conftest*
11084
 
11085
 
11086
fi
11087
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11088
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11089
 
11090
    if test "x$lt_cv_dlopen_self" = xyes; then
11091
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11092
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11093
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11094
if test "${lt_cv_dlopen_self_static+set}" = set; then
11095
  echo $ECHO_N "(cached) $ECHO_C" >&6
11096
else
11097
          if test "$cross_compiling" = yes; then :
11098
  lt_cv_dlopen_self_static=cross
11099
else
11100
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11101
  lt_status=$lt_dlunknown
11102
  cat > conftest.$ac_ext <<_LT_EOF
11103
#line 11103 "configure"
11104
#include "confdefs.h"
11105
 
11106
#if HAVE_DLFCN_H
11107
#include 
11108
#endif
11109
 
11110
#include 
11111
 
11112
#ifdef RTLD_GLOBAL
11113
#  define LT_DLGLOBAL           RTLD_GLOBAL
11114
#else
11115
#  ifdef DL_GLOBAL
11116
#    define LT_DLGLOBAL         DL_GLOBAL
11117
#  else
11118
#    define LT_DLGLOBAL         0
11119
#  endif
11120
#endif
11121
 
11122
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11123
   find out it does not work in some platform. */
11124
#ifndef LT_DLLAZY_OR_NOW
11125
#  ifdef RTLD_LAZY
11126
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11127
#  else
11128
#    ifdef DL_LAZY
11129
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11130
#    else
11131
#      ifdef RTLD_NOW
11132
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11133
#      else
11134
#        ifdef DL_NOW
11135
#          define LT_DLLAZY_OR_NOW      DL_NOW
11136
#        else
11137
#          define LT_DLLAZY_OR_NOW      0
11138
#        endif
11139
#      endif
11140
#    endif
11141
#  endif
11142
#endif
11143
 
11144
void fnord() { int i=42;}
11145
int main ()
11146
{
11147
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148
  int status = $lt_dlunknown;
11149
 
11150
  if (self)
11151
    {
11152
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11153
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11154
      /* dlclose (self); */
11155
    }
11156
  else
11157
    puts (dlerror ());
11158
 
11159
  return status;
11160
}
11161
_LT_EOF
11162
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163
  (eval $ac_link) 2>&5
11164
  ac_status=$?
11165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11167
    (./conftest; exit; ) >&5 2>/dev/null
11168
    lt_status=$?
11169
    case x$lt_status in
11170
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11171
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11172
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11173
    esac
11174
  else :
11175
    # compilation failed
11176
    lt_cv_dlopen_self_static=no
11177
  fi
11178
fi
11179
rm -fr conftest*
11180
 
11181
 
11182
fi
11183
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11184
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11185
    fi
11186
 
11187
    CPPFLAGS="$save_CPPFLAGS"
11188
    LDFLAGS="$save_LDFLAGS"
11189
    LIBS="$save_LIBS"
11190
    ;;
11191
  esac
11192
 
11193
  case $lt_cv_dlopen_self in
11194
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11195
  *) enable_dlopen_self=unknown ;;
11196
  esac
11197
 
11198
  case $lt_cv_dlopen_self_static in
11199
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11200
  *) enable_dlopen_self_static=unknown ;;
11201
  esac
11202
fi
11203
 
11204
 
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
striplib=
11221
old_striplib=
11222
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11223
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11224
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11225
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11226
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11227
  echo "$as_me:$LINENO: result: yes" >&5
11228
echo "${ECHO_T}yes" >&6
11229
else
11230
# FIXME - insert some real tests, host_os isn't really good enough
11231
  case $host_os in
11232
  darwin*)
11233
    if test -n "$STRIP" ; then
11234
      striplib="$STRIP -x"
11235
      old_striplib="$STRIP -S"
11236
      echo "$as_me:$LINENO: result: yes" >&5
11237
echo "${ECHO_T}yes" >&6
11238
    else
11239
      echo "$as_me:$LINENO: result: no" >&5
11240
echo "${ECHO_T}no" >&6
11241
    fi
11242
    ;;
11243
  *)
11244
    echo "$as_me:$LINENO: result: no" >&5
11245
echo "${ECHO_T}no" >&6
11246
    ;;
11247
  esac
11248
fi
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
 
11261
  # Report which library types will actually be built
11262
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11263
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11264
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11265
echo "${ECHO_T}$can_build_shared" >&6
11266
 
11267
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11268
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11269
  test "$can_build_shared" = "no" && enable_shared=no
11270
 
11271
  # On AIX, shared libraries and static libraries use the same namespace, and
11272
  # are all built from PIC.
11273
  case $host_os in
11274
  aix3*)
11275
    test "$enable_shared" = yes && enable_static=no
11276
    if test -n "$RANLIB"; then
11277
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11278
      postinstall_cmds='$RANLIB $lib'
11279
    fi
11280
    ;;
11281
 
11282
  aix[4-9]*)
11283
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11284
      test "$enable_shared" = yes && enable_static=no
11285
    fi
11286
    ;;
11287
  esac
11288
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11289
echo "${ECHO_T}$enable_shared" >&6
11290
 
11291
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11292
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11293
  # Make sure either enable_shared or enable_static is yes.
11294
  test "$enable_shared" = yes || enable_static=yes
11295
  echo "$as_me:$LINENO: result: $enable_static" >&5
11296
echo "${ECHO_T}$enable_static" >&6
11297
 
11298
 
11299
 
11300
 
11301
fi
11302
ac_ext=c
11303
ac_cpp='$CPP $CPPFLAGS'
11304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11307
 
11308
CC="$lt_save_CC"
11309
 
11310
 
11311
 
11312
 
11313
 
11314
 
11315
 
11316
 
11317
 
11318
 
11319
 
11320
 
11321
 
11322
                  ac_config_commands="$ac_config_commands libtool"
11323
 
11324
 
11325
 
11326
 
11327
# Only expand once:
11328
 
11329
 
11330
fi
11331
 
11332
 
11333
 
11334
if test "x$mach_add_setjmp" = 'xtrue'; then
11335
  MACH_ADD_SETJMP_TRUE=
11336
  MACH_ADD_SETJMP_FALSE='#'
11337
else
11338
  MACH_ADD_SETJMP_TRUE='#'
11339
  MACH_ADD_SETJMP_FALSE=
11340
fi
11341
 
11342
 
11343
          ac_config_files="$ac_config_files Makefile"
11344
 
11345
cat >confcache <<\_ACEOF
11346
# This file is a shell script that caches the results of configure
11347
# tests run on this system so they can be shared between configure
11348
# scripts and configure runs, see configure's option --config-cache.
11349
# It is not useful on other systems.  If it contains results you don't
11350
# want to keep, you may remove or edit it.
11351
#
11352
# config.status only pays attention to the cache file if you give it
11353
# the --recheck option to rerun configure.
11354
#
11355
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11356
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11357
# following values.
11358
 
11359
_ACEOF
11360
 
11361
# The following way of writing the cache mishandles newlines in values,
11362
# but we know of no workaround that is simple, portable, and efficient.
11363
# So, don't put newlines in cache variables' values.
11364
# Ultrix sh set writes to stderr and can't be redirected directly,
11365
# and sets the high bit in the cache file unless we assign to the vars.
11366
{
11367
  (set) 2>&1 |
11368
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11369
    *ac_space=\ *)
11370
      # `set' does not quote correctly, so add quotes (double-quote
11371
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11372
      sed -n \
11373
        "s/'/'\\\\''/g;
11374
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11375
      ;;
11376
    *)
11377
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11378
      sed -n \
11379
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11380
      ;;
11381
    esac;
11382
} |
11383
  sed '
11384
     t clear
11385
     : clear
11386
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11387
     t end
11388
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11389
     : end' >>confcache
11390
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11391
  if test -w $cache_file; then
11392
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11393
    cat confcache >$cache_file
11394
  else
11395
    echo "not updating unwritable cache $cache_file"
11396
  fi
11397
fi
11398
rm -f confcache
11399
 
11400
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11401
# Let make expand exec_prefix.
11402
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11403
 
11404
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11405
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11406
# trailing colons and then remove the whole line if VPATH becomes empty
11407
# (actually we leave an empty line to preserve line numbers).
11408
if test "x$srcdir" = x.; then
11409
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11410
s/:*\$(srcdir):*/:/;
11411
s/:*\${srcdir}:*/:/;
11412
s/:*@srcdir@:*/:/;
11413
s/^\([^=]*=[     ]*\):*/\1/;
11414
s/:*$//;
11415
s/^[^=]*=[       ]*$//;
11416
}'
11417
fi
11418
 
11419
# Transform confdefs.h into DEFS.
11420
# Protect against shell expansion while executing Makefile rules.
11421
# Protect against Makefile macro expansion.
11422
#
11423
# If the first sed substitution is executed (which looks for macros that
11424
# take arguments), then we branch to the quote section.  Otherwise,
11425
# look for a macro that doesn't take arguments.
11426
cat >confdef2opt.sed <<\_ACEOF
11427
t clear
11428
: clear
11429
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11430
t quote
11431
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11432
t quote
11433
d
11434
: quote
11435
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11436
s,\[,\\&,g
11437
s,\],\\&,g
11438
s,\$,$$,g
11439
p
11440
_ACEOF
11441
# We use echo to avoid assuming a particular line-breaking character.
11442
# The extra dot is to prevent the shell from consuming trailing
11443
# line-breaks from the sub-command output.  A line-break within
11444
# single-quotes doesn't work because, if this script is created in a
11445
# platform that uses two characters for line-breaks (e.g., DOS), tr
11446
# would break.
11447
ac_LF_and_DOT=`echo; echo .`
11448
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11449
rm -f confdef2opt.sed
11450
 
11451
 
11452
ac_libobjs=
11453
ac_ltlibobjs=
11454
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11455
  # 1. Remove the extension, and $U if already installed.
11456
  ac_i=`echo "$ac_i" |
11457
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11458
  # 2. Add them.
11459
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11460
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11461
done
11462
LIBOBJS=$ac_libobjs
11463
 
11464
LTLIBOBJS=$ac_ltlibobjs
11465
 
11466
 
11467
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11468
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11469
Usually this means the macro was only invoked conditionally." >&5
11470
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11471
Usually this means the macro was only invoked conditionally." >&2;}
11472
   { (exit 1); exit 1; }; }
11473
fi
11474
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11475
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11476
Usually this means the macro was only invoked conditionally." >&5
11477
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11478
Usually this means the macro was only invoked conditionally." >&2;}
11479
   { (exit 1); exit 1; }; }
11480
fi
11481
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11482
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11483
Usually this means the macro was only invoked conditionally." >&5
11484
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11485
Usually this means the macro was only invoked conditionally." >&2;}
11486
   { (exit 1); exit 1; }; }
11487
fi
11488
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11489
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11490
Usually this means the macro was only invoked conditionally." >&5
11491
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11492
Usually this means the macro was only invoked conditionally." >&2;}
11493
   { (exit 1); exit 1; }; }
11494
fi
11495
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11496
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11497
Usually this means the macro was only invoked conditionally." >&5
11498
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11499
Usually this means the macro was only invoked conditionally." >&2;}
11500
   { (exit 1); exit 1; }; }
11501
fi
11502
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11503
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11504
Usually this means the macro was only invoked conditionally." >&5
11505
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11506
Usually this means the macro was only invoked conditionally." >&2;}
11507
   { (exit 1); exit 1; }; }
11508
fi
11509
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11510
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11511
Usually this means the macro was only invoked conditionally." >&5
11512
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" 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 "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11517
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11518
Usually this means the macro was only invoked conditionally." >&5
11519
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" 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 "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11524
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11525
Usually this means the macro was only invoked conditionally." >&5
11526
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" 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 "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11531
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11532
Usually this means the macro was only invoked conditionally." >&5
11533
echo "$as_me: error: conditional \"USE_LIBTOOL\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11538
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11539
Usually this means the macro was only invoked conditionally." >&5
11540
echo "$as_me: error: conditional \"am__fastdepCC\" 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 "${MACH_ADD_SETJMP_TRUE}" && test -z "${MACH_ADD_SETJMP_FALSE}"; then
11545
  { { echo "$as_me:$LINENO: error: conditional \"MACH_ADD_SETJMP\" was never defined.
11546
Usually this means the macro was only invoked conditionally." >&5
11547
echo "$as_me: error: conditional \"MACH_ADD_SETJMP\" was never defined.
11548
Usually this means the macro was only invoked conditionally." >&2;}
11549
   { (exit 1); exit 1; }; }
11550
fi
11551
 
11552
: ${CONFIG_STATUS=./config.status}
11553
ac_clean_files_save=$ac_clean_files
11554
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11555
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11556
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11557
cat >$CONFIG_STATUS <<_ACEOF
11558
#! $SHELL
11559
# Generated by $as_me.
11560
# Run this file to recreate the current configuration.
11561
# Compiler output produced by configure, useful for debugging
11562
# configure, is in config.log if it exists.
11563
 
11564
debug=false
11565
ac_cs_recheck=false
11566
ac_cs_silent=false
11567
SHELL=\${CONFIG_SHELL-$SHELL}
11568
_ACEOF
11569
 
11570
cat >>$CONFIG_STATUS <<\_ACEOF
11571
## --------------------- ##
11572
## M4sh Initialization.  ##
11573
## --------------------- ##
11574
 
11575
# Be Bourne compatible
11576
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11577
  emulate sh
11578
  NULLCMD=:
11579
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11580
  # is contrary to our usage.  Disable this feature.
11581
  alias -g '${1+"$@"}'='"$@"'
11582
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11583
  set -o posix
11584
fi
11585
DUALCASE=1; export DUALCASE # for MKS sh
11586
 
11587
# Support unset when possible.
11588
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11589
  as_unset=unset
11590
else
11591
  as_unset=false
11592
fi
11593
 
11594
 
11595
# Work around bugs in pre-3.0 UWIN ksh.
11596
$as_unset ENV MAIL MAILPATH
11597
PS1='$ '
11598
PS2='> '
11599
PS4='+ '
11600
 
11601
# NLS nuisances.
11602
for as_var in \
11603
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11604
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11605
  LC_TELEPHONE LC_TIME
11606
do
11607
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11608
    eval $as_var=C; export $as_var
11609
  else
11610
    $as_unset $as_var
11611
  fi
11612
done
11613
 
11614
# Required to use basename.
11615
if expr a : '\(a\)' >/dev/null 2>&1; then
11616
  as_expr=expr
11617
else
11618
  as_expr=false
11619
fi
11620
 
11621
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11622
  as_basename=basename
11623
else
11624
  as_basename=false
11625
fi
11626
 
11627
 
11628
# Name of the executable.
11629
as_me=`$as_basename "$0" ||
11630
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11631
         X"$0" : 'X\(//\)$' \| \
11632
         X"$0" : 'X\(/\)$' \| \
11633
         .     : '\(.\)' 2>/dev/null ||
11634
echo X/"$0" |
11635
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11636
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11637
          /^X\/\(\/\).*/{ s//\1/; q; }
11638
          s/.*/./; q'`
11639
 
11640
 
11641
# PATH needs CR, and LINENO needs CR and PATH.
11642
# Avoid depending upon Character Ranges.
11643
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11644
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11645
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11646
as_cr_digits='0123456789'
11647
as_cr_alnum=$as_cr_Letters$as_cr_digits
11648
 
11649
# The user is always right.
11650
if test "${PATH_SEPARATOR+set}" != set; then
11651
  echo "#! /bin/sh" >conf$$.sh
11652
  echo  "exit 0"   >>conf$$.sh
11653
  chmod +x conf$$.sh
11654
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11655
    PATH_SEPARATOR=';'
11656
  else
11657
    PATH_SEPARATOR=:
11658
  fi
11659
  rm -f conf$$.sh
11660
fi
11661
 
11662
 
11663
  as_lineno_1=$LINENO
11664
  as_lineno_2=$LINENO
11665
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11666
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11667
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11668
  # Find who we are.  Look in the path if we contain no path at all
11669
  # relative or not.
11670
  case $0 in
11671
    *[\\/]* ) as_myself=$0 ;;
11672
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673
for as_dir in $PATH
11674
do
11675
  IFS=$as_save_IFS
11676
  test -z "$as_dir" && as_dir=.
11677
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11678
done
11679
 
11680
       ;;
11681
  esac
11682
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11683
  # in which case we are not to be found in the path.
11684
  if test "x$as_myself" = x; then
11685
    as_myself=$0
11686
  fi
11687
  if test ! -f "$as_myself"; then
11688
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11689
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11690
   { (exit 1); exit 1; }; }
11691
  fi
11692
  case $CONFIG_SHELL in
11693
  '')
11694
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11696
do
11697
  IFS=$as_save_IFS
11698
  test -z "$as_dir" && as_dir=.
11699
  for as_base in sh bash ksh sh5; do
11700
         case $as_dir in
11701
         /*)
11702
           if ("$as_dir/$as_base" -c '
11703
  as_lineno_1=$LINENO
11704
  as_lineno_2=$LINENO
11705
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11706
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11707
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11708
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11709
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11710
             CONFIG_SHELL=$as_dir/$as_base
11711
             export CONFIG_SHELL
11712
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11713
           fi;;
11714
         esac
11715
       done
11716
done
11717
;;
11718
  esac
11719
 
11720
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11721
  # uniformly replaced by the line number.  The first 'sed' inserts a
11722
  # line-number line before each line; the second 'sed' does the real
11723
  # work.  The second script uses 'N' to pair each line-number line
11724
  # with the numbered line, and appends trailing '-' during
11725
  # substitution so that $LINENO is not a special case at line end.
11726
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11727
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11728
  sed '=' <$as_myself |
11729
    sed '
11730
      N
11731
      s,$,-,
11732
      : loop
11733
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11734
      t loop
11735
      s,-$,,
11736
      s,^['$as_cr_digits']*\n,,
11737
    ' >$as_me.lineno &&
11738
  chmod +x $as_me.lineno ||
11739
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11740
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11741
   { (exit 1); exit 1; }; }
11742
 
11743
  # Don't try to exec as it changes $[0], causing all sort of problems
11744
  # (the dirname of $[0] is not the place where we might find the
11745
  # original and so on.  Autoconf is especially sensible to this).
11746
  . ./$as_me.lineno
11747
  # Exit status is that of the last command.
11748
  exit
11749
}
11750
 
11751
 
11752
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11753
  *c*,-n*) ECHO_N= ECHO_C='
11754
' ECHO_T='      ' ;;
11755
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11756
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11757
esac
11758
 
11759
if expr a : '\(a\)' >/dev/null 2>&1; then
11760
  as_expr=expr
11761
else
11762
  as_expr=false
11763
fi
11764
 
11765
rm -f conf$$ conf$$.exe conf$$.file
11766
echo >conf$$.file
11767
if ln -s conf$$.file conf$$ 2>/dev/null; then
11768
  # We could just check for DJGPP; but this test a) works b) is more generic
11769
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11770
  if test -f conf$$.exe; then
11771
    # Don't use ln at all; we don't have any links
11772
    as_ln_s='cp -p'
11773
  else
11774
    as_ln_s='ln -s'
11775
  fi
11776
elif ln conf$$.file conf$$ 2>/dev/null; then
11777
  as_ln_s=ln
11778
else
11779
  as_ln_s='cp -p'
11780
fi
11781
rm -f conf$$ conf$$.exe conf$$.file
11782
 
11783
if mkdir -p . 2>/dev/null; then
11784
  as_mkdir_p=:
11785
else
11786
  test -d ./-p && rmdir ./-p
11787
  as_mkdir_p=false
11788
fi
11789
 
11790
as_executable_p="test -f"
11791
 
11792
# Sed expression to map a string onto a valid CPP name.
11793
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11794
 
11795
# Sed expression to map a string onto a valid variable name.
11796
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11797
 
11798
 
11799
# IFS
11800
# We need space, tab and new line, in precisely that order.
11801
as_nl='
11802
'
11803
IFS="   $as_nl"
11804
 
11805
# CDPATH.
11806
$as_unset CDPATH
11807
 
11808
exec 6>&1
11809
 
11810
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11811
# report actual input values of CONFIG_FILES etc. instead of their
11812
# values after options handling.  Logging --version etc. is OK.
11813
exec 5>>config.log
11814
{
11815
  echo
11816
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11817
## Running $as_me. ##
11818
_ASBOX
11819
} >&5
11820
cat >&5 <<_CSEOF
11821
 
11822
This file was extended by newlib $as_me 1.17.0, which was
11823
generated by GNU Autoconf 2.59.  Invocation command line was
11824
 
11825
  CONFIG_FILES    = $CONFIG_FILES
11826
  CONFIG_HEADERS  = $CONFIG_HEADERS
11827
  CONFIG_LINKS    = $CONFIG_LINKS
11828
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11829
  $ $0 $@
11830
 
11831
_CSEOF
11832
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11833
echo >&5
11834
_ACEOF
11835
 
11836
# Files that config.status was made for.
11837
if test -n "$ac_config_files"; then
11838
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11839
fi
11840
 
11841
if test -n "$ac_config_headers"; then
11842
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11843
fi
11844
 
11845
if test -n "$ac_config_links"; then
11846
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11847
fi
11848
 
11849
if test -n "$ac_config_commands"; then
11850
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11851
fi
11852
 
11853
cat >>$CONFIG_STATUS <<\_ACEOF
11854
 
11855
ac_cs_usage="\
11856
\`$as_me' instantiates files from templates according to the
11857
current configuration.
11858
 
11859
Usage: $0 [OPTIONS] [FILE]...
11860
 
11861
  -h, --help       print this help, then exit
11862
  -V, --version    print version number, then exit
11863
  -q, --quiet      do not print progress messages
11864
  -d, --debug      don't remove temporary files
11865
      --recheck    update $as_me by reconfiguring in the same conditions
11866
  --file=FILE[:TEMPLATE]
11867
                   instantiate the configuration file FILE
11868
 
11869
Configuration files:
11870
$config_files
11871
 
11872
Configuration commands:
11873
$config_commands
11874
 
11875
Report bugs to ."
11876
_ACEOF
11877
 
11878
cat >>$CONFIG_STATUS <<_ACEOF
11879
ac_cs_version="\\
11880
newlib config.status 1.17.0
11881
configured by $0, generated by GNU Autoconf 2.59,
11882
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11883
 
11884
Copyright (C) 2003 Free Software Foundation, Inc.
11885
This config.status script is free software; the Free Software Foundation
11886
gives unlimited permission to copy, distribute and modify it."
11887
srcdir=$srcdir
11888
INSTALL="$INSTALL"
11889
_ACEOF
11890
 
11891
cat >>$CONFIG_STATUS <<\_ACEOF
11892
# If no file are specified by the user, then we need to provide default
11893
# value.  By we need to know if files were specified by the user.
11894
ac_need_defaults=:
11895
while test $# != 0
11896
do
11897
  case $1 in
11898
  --*=*)
11899
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11900
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11901
    ac_shift=:
11902
    ;;
11903
  -*)
11904
    ac_option=$1
11905
    ac_optarg=$2
11906
    ac_shift=shift
11907
    ;;
11908
  *) # This is not an option, so the user has probably given explicit
11909
     # arguments.
11910
     ac_option=$1
11911
     ac_need_defaults=false;;
11912
  esac
11913
 
11914
  case $ac_option in
11915
  # Handling of the options.
11916
_ACEOF
11917
cat >>$CONFIG_STATUS <<\_ACEOF
11918
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11919
    ac_cs_recheck=: ;;
11920
  --version | --vers* | -V )
11921
    echo "$ac_cs_version"; exit 0 ;;
11922
  --he | --h)
11923
    # Conflict between --help and --header
11924
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11925
Try \`$0 --help' for more information." >&5
11926
echo "$as_me: error: ambiguous option: $1
11927
Try \`$0 --help' for more information." >&2;}
11928
   { (exit 1); exit 1; }; };;
11929
  --help | --hel | -h )
11930
    echo "$ac_cs_usage"; exit 0 ;;
11931
  --debug | --d* | -d )
11932
    debug=: ;;
11933
  --file | --fil | --fi | --f )
11934
    $ac_shift
11935
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11936
    ac_need_defaults=false;;
11937
  --header | --heade | --head | --hea )
11938
    $ac_shift
11939
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11940
    ac_need_defaults=false;;
11941
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11942
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11943
    ac_cs_silent=: ;;
11944
 
11945
  # This is an error.
11946
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11947
Try \`$0 --help' for more information." >&5
11948
echo "$as_me: error: unrecognized option: $1
11949
Try \`$0 --help' for more information." >&2;}
11950
   { (exit 1); exit 1; }; } ;;
11951
 
11952
  *) ac_config_targets="$ac_config_targets $1" ;;
11953
 
11954
  esac
11955
  shift
11956
done
11957
 
11958
ac_configure_extra_args=
11959
 
11960
if $ac_cs_silent; then
11961
  exec 6>/dev/null
11962
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11963
fi
11964
 
11965
_ACEOF
11966
cat >>$CONFIG_STATUS <<_ACEOF
11967
if \$ac_cs_recheck; then
11968
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11969
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11970
fi
11971
 
11972
_ACEOF
11973
 
11974
cat >>$CONFIG_STATUS <<_ACEOF
11975
#
11976
# INIT-COMMANDS section.
11977
#
11978
 
11979
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11980
 
11981
 
11982
# The HP-UX ksh and POSIX shell print the target directory to stdout
11983
# if CDPATH is set.
11984
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11985
 
11986
sed_quote_subst='$sed_quote_subst'
11987
double_quote_subst='$double_quote_subst'
11988
delay_variable_subst='$delay_variable_subst'
11989
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11990
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11991
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11992
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11993
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11994
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11995
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11996
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11997
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11998
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11999
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12000
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12001
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12002
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12003
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12004
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12005
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12006
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12007
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12008
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12009
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12010
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12011
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12012
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12013
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12014
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12015
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12016
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12017
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12018
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12019
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12020
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12021
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12022
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12023
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12024
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12025
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12026
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12027
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12028
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12029
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12030
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12031
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12032
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12033
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12034
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12035
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"`'
12036
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"`'
12037
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12038
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12039
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12040
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12041
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12042
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12043
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12044
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12045
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12046
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12047
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12048
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12049
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12050
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12051
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12052
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12053
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12054
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12055
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12056
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12057
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12058
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12059
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12060
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12061
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12062
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12063
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12064
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12065
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12066
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12067
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12068
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12069
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12070
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12071
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12072
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12073
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12074
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12075
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12076
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12077
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12078
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12079
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12080
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12081
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12082
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12083
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12084
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12086
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12087
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12088
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12089
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12090
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12091
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12092
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12093
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12094
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12095
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12096
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12097
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12099
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12100
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12101
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12102
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12103
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12104
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12105
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12106
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12107
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12108
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12109
 
12110
LTCC='$LTCC'
12111
LTCFLAGS='$LTCFLAGS'
12112
compiler='$compiler_DEFAULT'
12113
 
12114
# Quote evaled strings.
12115
for var in SED \
12116
GREP \
12117
EGREP \
12118
FGREP \
12119
LD \
12120
NM \
12121
LN_S \
12122
lt_SP2NL \
12123
lt_NL2SP \
12124
reload_flag \
12125
deplibs_check_method \
12126
file_magic_cmd \
12127
AR \
12128
AR_FLAGS \
12129
STRIP \
12130
RANLIB \
12131
CC \
12132
CFLAGS \
12133
compiler \
12134
lt_cv_sys_global_symbol_pipe \
12135
lt_cv_sys_global_symbol_to_cdecl \
12136
lt_cv_sys_global_symbol_to_c_name_address \
12137
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12138
SHELL \
12139
ECHO \
12140
lt_prog_compiler_no_builtin_flag \
12141
lt_prog_compiler_wl \
12142
lt_prog_compiler_pic \
12143
lt_prog_compiler_static \
12144
lt_cv_prog_compiler_c_o \
12145
need_locks \
12146
DSYMUTIL \
12147
NMEDIT \
12148
LIPO \
12149
OTOOL \
12150
OTOOL64 \
12151
shrext_cmds \
12152
export_dynamic_flag_spec \
12153
whole_archive_flag_spec \
12154
compiler_needs_object \
12155
with_gnu_ld \
12156
allow_undefined_flag \
12157
no_undefined_flag \
12158
hardcode_libdir_flag_spec \
12159
hardcode_libdir_flag_spec_ld \
12160
hardcode_libdir_separator \
12161
fix_srcfile_path \
12162
exclude_expsyms \
12163
include_expsyms \
12164
file_list_spec \
12165
variables_saved_for_relink \
12166
libname_spec \
12167
library_names_spec \
12168
soname_spec \
12169
finish_eval \
12170
old_striplib \
12171
striplib; do
12172
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12173
    *[\\\\\\\`\\"\\\$]*)
12174
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12175
      ;;
12176
    *)
12177
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12178
      ;;
12179
    esac
12180
done
12181
 
12182
# Double-quote double-evaled strings.
12183
for var in reload_cmds \
12184
old_postinstall_cmds \
12185
old_postuninstall_cmds \
12186
old_archive_cmds \
12187
extract_expsyms_cmds \
12188
old_archive_from_new_cmds \
12189
old_archive_from_expsyms_cmds \
12190
archive_cmds \
12191
archive_expsym_cmds \
12192
module_cmds \
12193
module_expsym_cmds \
12194
export_symbols_cmds \
12195
prelink_cmds \
12196
postinstall_cmds \
12197
postuninstall_cmds \
12198
finish_cmds \
12199
sys_lib_search_path_spec \
12200
sys_lib_dlsearch_path_spec; do
12201
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12202
    *[\\\\\\\`\\"\\\$]*)
12203
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12204
      ;;
12205
    *)
12206
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12207
      ;;
12208
    esac
12209
done
12210
 
12211
# Fix-up fallback echo if it was mangled by the above quoting rules.
12212
case \$lt_ECHO in
12213
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12214
  ;;
12215
esac
12216
 
12217
ac_aux_dir='$ac_aux_dir'
12218
xsi_shell='$xsi_shell'
12219
lt_shell_append='$lt_shell_append'
12220
 
12221
# See if we are running on zsh, and set the options which allow our
12222
# commands through without removal of \ escapes INIT.
12223
if test -n "\${ZSH_VERSION+set}" ; then
12224
   setopt NO_GLOB_SUBST
12225
fi
12226
 
12227
 
12228
    PACKAGE='$PACKAGE'
12229
    VERSION='$VERSION'
12230
    TIMESTAMP='$TIMESTAMP'
12231
    RM='$RM'
12232
    ofile='$ofile'
12233
 
12234
 
12235
 
12236
 
12237
_ACEOF
12238
 
12239
 
12240
 
12241
cat >>$CONFIG_STATUS <<\_ACEOF
12242
for ac_config_target in $ac_config_targets
12243
do
12244
  case "$ac_config_target" in
12245
  # Handling of arguments.
12246
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12247
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12248
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12249
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12250
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12251
   { (exit 1); exit 1; }; };;
12252
  esac
12253
done
12254
 
12255
# If the user did not use the arguments to specify the items to instantiate,
12256
# then the envvar interface is used.  Set only those that are not.
12257
# We use the long form for the default assignment because of an extremely
12258
# bizarre bug on SunOS 4.1.3.
12259
if $ac_need_defaults; then
12260
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12261
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12262
fi
12263
 
12264
# Have a temporary directory for convenience.  Make it in the build tree
12265
# simply because there is no reason to put it here, and in addition,
12266
# creating and moving files from /tmp can sometimes cause problems.
12267
# Create a temporary directory, and hook for its removal unless debugging.
12268
$debug ||
12269
{
12270
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12271
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12272
}
12273
 
12274
# Create a (secure) tmp directory for tmp files.
12275
 
12276
{
12277
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12278
  test -n "$tmp" && test -d "$tmp"
12279
}  ||
12280
{
12281
  tmp=./confstat$$-$RANDOM
12282
  (umask 077 && mkdir $tmp)
12283
} ||
12284
{
12285
   echo "$me: cannot create a temporary directory in ." >&2
12286
   { (exit 1); exit 1; }
12287
}
12288
 
12289
_ACEOF
12290
 
12291
cat >>$CONFIG_STATUS <<_ACEOF
12292
 
12293
#
12294
# CONFIG_FILES section.
12295
#
12296
 
12297
# No need to generate the scripts if there are no CONFIG_FILES.
12298
# This happens for instance when ./config.status config.h
12299
if test -n "\$CONFIG_FILES"; then
12300
  # Protect against being on the right side of a sed subst in config.status.
12301
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12302
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12303
s,@SHELL@,$SHELL,;t t
12304
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12305
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12306
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12307
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12308
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12309
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12310
s,@exec_prefix@,$exec_prefix,;t t
12311
s,@prefix@,$prefix,;t t
12312
s,@program_transform_name@,$program_transform_name,;t t
12313
s,@bindir@,$bindir,;t t
12314
s,@sbindir@,$sbindir,;t t
12315
s,@libexecdir@,$libexecdir,;t t
12316
s,@datadir@,$datadir,;t t
12317
s,@sysconfdir@,$sysconfdir,;t t
12318
s,@sharedstatedir@,$sharedstatedir,;t t
12319
s,@localstatedir@,$localstatedir,;t t
12320
s,@libdir@,$libdir,;t t
12321
s,@includedir@,$includedir,;t t
12322
s,@oldincludedir@,$oldincludedir,;t t
12323
s,@infodir@,$infodir,;t t
12324
s,@mandir@,$mandir,;t t
12325
s,@build_alias@,$build_alias,;t t
12326
s,@host_alias@,$host_alias,;t t
12327
s,@target_alias@,$target_alias,;t t
12328
s,@DEFS@,$DEFS,;t t
12329
s,@ECHO_C@,$ECHO_C,;t t
12330
s,@ECHO_N@,$ECHO_N,;t t
12331
s,@ECHO_T@,$ECHO_T,;t t
12332
s,@LIBS@,$LIBS,;t t
12333
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12334
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12335
s,@newlib_basedir@,$newlib_basedir,;t t
12336
s,@build@,$build,;t t
12337
s,@build_cpu@,$build_cpu,;t t
12338
s,@build_vendor@,$build_vendor,;t t
12339
s,@build_os@,$build_os,;t t
12340
s,@host@,$host,;t t
12341
s,@host_cpu@,$host_cpu,;t t
12342
s,@host_vendor@,$host_vendor,;t t
12343
s,@host_os@,$host_os,;t t
12344
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12345
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12346
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12347
s,@CYGPATH_W@,$CYGPATH_W,;t t
12348
s,@PACKAGE@,$PACKAGE,;t t
12349
s,@VERSION@,$VERSION,;t t
12350
s,@ACLOCAL@,$ACLOCAL,;t t
12351
s,@AUTOCONF@,$AUTOCONF,;t t
12352
s,@AUTOMAKE@,$AUTOMAKE,;t t
12353
s,@AUTOHEADER@,$AUTOHEADER,;t t
12354
s,@MAKEINFO@,$MAKEINFO,;t t
12355
s,@install_sh@,$install_sh,;t t
12356
s,@STRIP@,$STRIP,;t t
12357
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12358
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12359
s,@mkdir_p@,$mkdir_p,;t t
12360
s,@AWK@,$AWK,;t t
12361
s,@SET_MAKE@,$SET_MAKE,;t t
12362
s,@am__leading_dot@,$am__leading_dot,;t t
12363
s,@AMTAR@,$AMTAR,;t t
12364
s,@am__tar@,$am__tar,;t t
12365
s,@am__untar@,$am__untar,;t t
12366
s,@CC@,$CC,;t t
12367
s,@DEPDIR@,$DEPDIR,;t t
12368
s,@am__include@,$am__include,;t t
12369
s,@am__quote@,$am__quote,;t t
12370
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12371
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12372
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12373
s,@CCDEPMODE@,$CCDEPMODE,;t t
12374
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12375
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12376
s,@AS@,$AS,;t t
12377
s,@ac_ct_AS@,$ac_ct_AS,;t t
12378
s,@AR@,$AR,;t t
12379
s,@ac_ct_AR@,$ac_ct_AR,;t t
12380
s,@RANLIB@,$RANLIB,;t t
12381
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12382
s,@READELF@,$READELF,;t t
12383
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12384
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12385
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12386
s,@MAINT@,$MAINT,;t t
12387
s,@CCAS@,$CCAS,;t t
12388
s,@CCASFLAGS@,$CCASFLAGS,;t t
12389
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12390
s,@LDFLAGS@,$LDFLAGS,;t t
12391
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12392
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12393
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12394
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12395
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12396
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12397
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12398
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12399
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12400
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12401
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12402
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12403
s,@OBJEXT@,$OBJEXT,;t t
12404
s,@oext@,$oext,;t t
12405
s,@aext@,$aext,;t t
12406
s,@lpfx@,$lpfx,;t t
12407
s,@libm_machine_dir@,$libm_machine_dir,;t t
12408
s,@machine_dir@,$machine_dir,;t t
12409
s,@sys_dir@,$sys_dir,;t t
12410
s,@SED@,$SED,;t t
12411
s,@DLLTOOL@,$DLLTOOL,;t t
12412
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12413
s,@OBJDUMP@,$OBJDUMP,;t t
12414
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12415
s,@LIBTOOL@,$LIBTOOL,;t t
12416
s,@CFLAGS@,$CFLAGS,;t t
12417
s,@CPPFLAGS@,$CPPFLAGS,;t t
12418
s,@ac_ct_CC@,$ac_ct_CC,;t t
12419
s,@EXEEXT@,$EXEEXT,;t t
12420
s,@EGREP@,$EGREP,;t t
12421
s,@FGREP@,$FGREP,;t t
12422
s,@GREP@,$GREP,;t t
12423
s,@LD@,$LD,;t t
12424
s,@DUMPBIN@,$DUMPBIN,;t t
12425
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12426
s,@NM@,$NM,;t t
12427
s,@LN_S@,$LN_S,;t t
12428
s,@lt_ECHO@,$lt_ECHO,;t t
12429
s,@DSYMUTIL@,$DSYMUTIL,;t t
12430
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12431
s,@NMEDIT@,$NMEDIT,;t t
12432
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12433
s,@LIPO@,$LIPO,;t t
12434
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12435
s,@OTOOL@,$OTOOL,;t t
12436
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12437
s,@OTOOL64@,$OTOOL64,;t t
12438
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12439
s,@CPP@,$CPP,;t t
12440
s,@MACH_ADD_SETJMP_TRUE@,$MACH_ADD_SETJMP_TRUE,;t t
12441
s,@MACH_ADD_SETJMP_FALSE@,$MACH_ADD_SETJMP_FALSE,;t t
12442
s,@LIBOBJS@,$LIBOBJS,;t t
12443
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12444
CEOF
12445
 
12446
_ACEOF
12447
 
12448
  cat >>$CONFIG_STATUS <<\_ACEOF
12449
  # Split the substitutions into bite-sized pieces for seds with
12450
  # small command number limits, like on Digital OSF/1 and HP-UX.
12451
  ac_max_sed_lines=48
12452
  ac_sed_frag=1 # Number of current file.
12453
  ac_beg=1 # First line for current file.
12454
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12455
  ac_more_lines=:
12456
  ac_sed_cmds=
12457
  while $ac_more_lines; do
12458
    if test $ac_beg -gt 1; then
12459
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12460
    else
12461
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12462
    fi
12463
    if test ! -s $tmp/subs.frag; then
12464
      ac_more_lines=false
12465
    else
12466
      # The purpose of the label and of the branching condition is to
12467
      # speed up the sed processing (if there are no `@' at all, there
12468
      # is no need to browse any of the substitutions).
12469
      # These are the two extra sed commands mentioned above.
12470
      (echo ':t
12471
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12472
      if test -z "$ac_sed_cmds"; then
12473
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12474
      else
12475
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12476
      fi
12477
      ac_sed_frag=`expr $ac_sed_frag + 1`
12478
      ac_beg=$ac_end
12479
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12480
    fi
12481
  done
12482
  if test -z "$ac_sed_cmds"; then
12483
    ac_sed_cmds=cat
12484
  fi
12485
fi # test -n "$CONFIG_FILES"
12486
 
12487
_ACEOF
12488
cat >>$CONFIG_STATUS <<\_ACEOF
12489
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12490
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12491
  case $ac_file in
12492
  - | *:- | *:-:* ) # input from stdin
12493
        cat >$tmp/stdin
12494
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12495
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12496
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12497
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12498
  * )   ac_file_in=$ac_file.in ;;
12499
  esac
12500
 
12501
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12502
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12503
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12504
         X"$ac_file" : 'X\(//\)[^/]' \| \
12505
         X"$ac_file" : 'X\(//\)$' \| \
12506
         X"$ac_file" : 'X\(/\)' \| \
12507
         .     : '\(.\)' 2>/dev/null ||
12508
echo X"$ac_file" |
12509
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12510
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12511
          /^X\(\/\/\)$/{ s//\1/; q; }
12512
          /^X\(\/\).*/{ s//\1/; q; }
12513
          s/.*/./; q'`
12514
  { if $as_mkdir_p; then
12515
    mkdir -p "$ac_dir"
12516
  else
12517
    as_dir="$ac_dir"
12518
    as_dirs=
12519
    while test ! -d "$as_dir"; do
12520
      as_dirs="$as_dir $as_dirs"
12521
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12522
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12523
         X"$as_dir" : 'X\(//\)[^/]' \| \
12524
         X"$as_dir" : 'X\(//\)$' \| \
12525
         X"$as_dir" : 'X\(/\)' \| \
12526
         .     : '\(.\)' 2>/dev/null ||
12527
echo X"$as_dir" |
12528
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12529
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12530
          /^X\(\/\/\)$/{ s//\1/; q; }
12531
          /^X\(\/\).*/{ s//\1/; q; }
12532
          s/.*/./; q'`
12533
    done
12534
    test ! -n "$as_dirs" || mkdir $as_dirs
12535
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12536
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12537
   { (exit 1); exit 1; }; }; }
12538
 
12539
  ac_builddir=.
12540
 
12541
if test "$ac_dir" != .; then
12542
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12543
  # A "../" for each directory in $ac_dir_suffix.
12544
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12545
else
12546
  ac_dir_suffix= ac_top_builddir=
12547
fi
12548
 
12549
case $srcdir in
12550
  .)  # No --srcdir option.  We are building in place.
12551
    ac_srcdir=.
12552
    if test -z "$ac_top_builddir"; then
12553
       ac_top_srcdir=.
12554
    else
12555
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12556
    fi ;;
12557
  [\\/]* | ?:[\\/]* )  # Absolute path.
12558
    ac_srcdir=$srcdir$ac_dir_suffix;
12559
    ac_top_srcdir=$srcdir ;;
12560
  *) # Relative path.
12561
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12562
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12563
esac
12564
 
12565
# Do not use `cd foo && pwd` to compute absolute paths, because
12566
# the directories may not exist.
12567
case `pwd` in
12568
.) ac_abs_builddir="$ac_dir";;
12569
*)
12570
  case "$ac_dir" in
12571
  .) ac_abs_builddir=`pwd`;;
12572
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12573
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12574
  esac;;
12575
esac
12576
case $ac_abs_builddir in
12577
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12578
*)
12579
  case ${ac_top_builddir}. in
12580
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12581
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12582
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12583
  esac;;
12584
esac
12585
case $ac_abs_builddir in
12586
.) ac_abs_srcdir=$ac_srcdir;;
12587
*)
12588
  case $ac_srcdir in
12589
  .) ac_abs_srcdir=$ac_abs_builddir;;
12590
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12591
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12592
  esac;;
12593
esac
12594
case $ac_abs_builddir in
12595
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12596
*)
12597
  case $ac_top_srcdir in
12598
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12599
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12600
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12601
  esac;;
12602
esac
12603
 
12604
 
12605
  case $INSTALL in
12606
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12607
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12608
  esac
12609
 
12610
  if test x"$ac_file" != x-; then
12611
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12612
echo "$as_me: creating $ac_file" >&6;}
12613
    rm -f "$ac_file"
12614
  fi
12615
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12616
  # use $as_me), people would be surprised to read:
12617
  #    /* config.h.  Generated by config.status.  */
12618
  if test x"$ac_file" = x-; then
12619
    configure_input=
12620
  else
12621
    configure_input="$ac_file.  "
12622
  fi
12623
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12624
                                     sed 's,.*/,,'` by configure."
12625
 
12626
  # First look for the input files in the build tree, otherwise in the
12627
  # src tree.
12628
  ac_file_inputs=`IFS=:
12629
    for f in $ac_file_in; do
12630
      case $f in
12631
      -) echo $tmp/stdin ;;
12632
      [\\/$]*)
12633
         # Absolute (can't be DOS-style, as IFS=:)
12634
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12635
echo "$as_me: error: cannot find input file: $f" >&2;}
12636
   { (exit 1); exit 1; }; }
12637
         echo "$f";;
12638
      *) # Relative
12639
         if test -f "$f"; then
12640
           # Build tree
12641
           echo "$f"
12642
         elif test -f "$srcdir/$f"; then
12643
           # Source tree
12644
           echo "$srcdir/$f"
12645
         else
12646
           # /dev/null tree
12647
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12648
echo "$as_me: error: cannot find input file: $f" >&2;}
12649
   { (exit 1); exit 1; }; }
12650
         fi;;
12651
      esac
12652
    done` || { (exit 1); exit 1; }
12653
_ACEOF
12654
cat >>$CONFIG_STATUS <<_ACEOF
12655
  sed "$ac_vpsub
12656
$extrasub
12657
_ACEOF
12658
cat >>$CONFIG_STATUS <<\_ACEOF
12659
:t
12660
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12661
s,@configure_input@,$configure_input,;t t
12662
s,@srcdir@,$ac_srcdir,;t t
12663
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12664
s,@top_srcdir@,$ac_top_srcdir,;t t
12665
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12666
s,@builddir@,$ac_builddir,;t t
12667
s,@abs_builddir@,$ac_abs_builddir,;t t
12668
s,@top_builddir@,$ac_top_builddir,;t t
12669
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12670
s,@INSTALL@,$ac_INSTALL,;t t
12671
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12672
  rm -f $tmp/stdin
12673
  if test x"$ac_file" != x-; then
12674
    mv $tmp/out $ac_file
12675
  else
12676
    cat $tmp/out
12677
    rm -f $tmp/out
12678
  fi
12679
 
12680
done
12681
_ACEOF
12682
cat >>$CONFIG_STATUS <<\_ACEOF
12683
 
12684
#
12685
# CONFIG_COMMANDS section.
12686
#
12687
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12688
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12689
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12690
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12691
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12692
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12693
         X"$ac_dest" : 'X\(//\)$' \| \
12694
         X"$ac_dest" : 'X\(/\)' \| \
12695
         .     : '\(.\)' 2>/dev/null ||
12696
echo X"$ac_dest" |
12697
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12698
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12699
          /^X\(\/\/\)$/{ s//\1/; q; }
12700
          /^X\(\/\).*/{ s//\1/; q; }
12701
          s/.*/./; q'`
12702
  { if $as_mkdir_p; then
12703
    mkdir -p "$ac_dir"
12704
  else
12705
    as_dir="$ac_dir"
12706
    as_dirs=
12707
    while test ! -d "$as_dir"; do
12708
      as_dirs="$as_dir $as_dirs"
12709
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12710
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12711
         X"$as_dir" : 'X\(//\)[^/]' \| \
12712
         X"$as_dir" : 'X\(//\)$' \| \
12713
         X"$as_dir" : 'X\(/\)' \| \
12714
         .     : '\(.\)' 2>/dev/null ||
12715
echo X"$as_dir" |
12716
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12717
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12718
          /^X\(\/\/\)$/{ s//\1/; q; }
12719
          /^X\(\/\).*/{ s//\1/; q; }
12720
          s/.*/./; q'`
12721
    done
12722
    test ! -n "$as_dirs" || mkdir $as_dirs
12723
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12724
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12725
   { (exit 1); exit 1; }; }; }
12726
 
12727
  ac_builddir=.
12728
 
12729
if test "$ac_dir" != .; then
12730
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12731
  # A "../" for each directory in $ac_dir_suffix.
12732
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12733
else
12734
  ac_dir_suffix= ac_top_builddir=
12735
fi
12736
 
12737
case $srcdir in
12738
  .)  # No --srcdir option.  We are building in place.
12739
    ac_srcdir=.
12740
    if test -z "$ac_top_builddir"; then
12741
       ac_top_srcdir=.
12742
    else
12743
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12744
    fi ;;
12745
  [\\/]* | ?:[\\/]* )  # Absolute path.
12746
    ac_srcdir=$srcdir$ac_dir_suffix;
12747
    ac_top_srcdir=$srcdir ;;
12748
  *) # Relative path.
12749
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12750
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12751
esac
12752
 
12753
# Do not use `cd foo && pwd` to compute absolute paths, because
12754
# the directories may not exist.
12755
case `pwd` in
12756
.) ac_abs_builddir="$ac_dir";;
12757
*)
12758
  case "$ac_dir" in
12759
  .) ac_abs_builddir=`pwd`;;
12760
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12761
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12762
  esac;;
12763
esac
12764
case $ac_abs_builddir in
12765
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12766
*)
12767
  case ${ac_top_builddir}. in
12768
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12769
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12770
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12771
  esac;;
12772
esac
12773
case $ac_abs_builddir in
12774
.) ac_abs_srcdir=$ac_srcdir;;
12775
*)
12776
  case $ac_srcdir in
12777
  .) ac_abs_srcdir=$ac_abs_builddir;;
12778
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12779
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12780
  esac;;
12781
esac
12782
case $ac_abs_builddir in
12783
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12784
*)
12785
  case $ac_top_srcdir in
12786
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12787
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12788
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12789
  esac;;
12790
esac
12791
 
12792
 
12793
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12794
echo "$as_me: executing $ac_dest commands" >&6;}
12795
  case $ac_dest in
12796
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12797
  # Strip MF so we end up with the name of the file.
12798
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12799
  # Check whether this is an Automake generated Makefile or not.
12800
  # We used to match only the files named `Makefile.in', but
12801
  # some people rename them; so instead we look at the file content.
12802
  # Grep'ing the first line is not enough: some people post-process
12803
  # each Makefile.in and add a new line on top of each file to say so.
12804
  # So let's grep whole file.
12805
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12806
    dirpart=`(dirname "$mf") 2>/dev/null ||
12807
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12808
         X"$mf" : 'X\(//\)[^/]' \| \
12809
         X"$mf" : 'X\(//\)$' \| \
12810
         X"$mf" : 'X\(/\)' \| \
12811
         .     : '\(.\)' 2>/dev/null ||
12812
echo X"$mf" |
12813
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12814
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12815
          /^X\(\/\/\)$/{ s//\1/; q; }
12816
          /^X\(\/\).*/{ s//\1/; q; }
12817
          s/.*/./; q'`
12818
  else
12819
    continue
12820
  fi
12821
  # Extract the definition of DEPDIR, am__include, and am__quote
12822
  # from the Makefile without running `make'.
12823
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12824
  test -z "$DEPDIR" && continue
12825
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12826
  test -z "am__include" && continue
12827
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12828
  # When using ansi2knr, U may be empty or an underscore; expand it
12829
  U=`sed -n 's/^U = //p' < "$mf"`
12830
  # Find all dependency output files, they are included files with
12831
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12832
  # simplest approach to changing $(DEPDIR) to its actual value in the
12833
  # expansion.
12834
  for file in `sed -n "
12835
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12836
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12837
    # Make sure the directory exists.
12838
    test -f "$dirpart/$file" && continue
12839
    fdir=`(dirname "$file") 2>/dev/null ||
12840
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12841
         X"$file" : 'X\(//\)[^/]' \| \
12842
         X"$file" : 'X\(//\)$' \| \
12843
         X"$file" : 'X\(/\)' \| \
12844
         .     : '\(.\)' 2>/dev/null ||
12845
echo X"$file" |
12846
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12847
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12848
          /^X\(\/\/\)$/{ s//\1/; q; }
12849
          /^X\(\/\).*/{ s//\1/; q; }
12850
          s/.*/./; q'`
12851
    { if $as_mkdir_p; then
12852
    mkdir -p $dirpart/$fdir
12853
  else
12854
    as_dir=$dirpart/$fdir
12855
    as_dirs=
12856
    while test ! -d "$as_dir"; do
12857
      as_dirs="$as_dir $as_dirs"
12858
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12859
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860
         X"$as_dir" : 'X\(//\)[^/]' \| \
12861
         X"$as_dir" : 'X\(//\)$' \| \
12862
         X"$as_dir" : 'X\(/\)' \| \
12863
         .     : '\(.\)' 2>/dev/null ||
12864
echo X"$as_dir" |
12865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12867
          /^X\(\/\/\)$/{ s//\1/; q; }
12868
          /^X\(\/\).*/{ s//\1/; q; }
12869
          s/.*/./; q'`
12870
    done
12871
    test ! -n "$as_dirs" || mkdir $as_dirs
12872
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12873
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12874
   { (exit 1); exit 1; }; }; }
12875
 
12876
    # echo "creating $dirpart/$file"
12877
    echo '# dummy' > "$dirpart/$file"
12878
  done
12879
done
12880
 ;;
12881
    libtool )
12882
 
12883
    # See if we are running on zsh, and set the options which allow our
12884
    # commands through without removal of \ escapes.
12885
    if test -n "${ZSH_VERSION+set}" ; then
12886
      setopt NO_GLOB_SUBST
12887
    fi
12888
 
12889
    cfgfile="${ofile}T"
12890
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12891
    $RM "$cfgfile"
12892
 
12893
    cat <<_LT_EOF >> "$cfgfile"
12894
#! $SHELL
12895
 
12896
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12897
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12898
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12899
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12900
#
12901
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12902
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12903
#   Written by Gordon Matzigkeit, 1996
12904
#
12905
#   This file is part of GNU Libtool.
12906
#
12907
# GNU Libtool is free software; you can redistribute it and/or
12908
# modify it under the terms of the GNU General Public License as
12909
# published by the Free Software Foundation; either version 2 of
12910
# the License, or (at your option) any later version.
12911
#
12912
# As a special exception to the GNU General Public License,
12913
# if you distribute this file as part of a program or library that
12914
# is built using GNU Libtool, you may include this file under the
12915
# same distribution terms that you use for the rest of that program.
12916
#
12917
# GNU Libtool is distributed in the hope that it will be useful,
12918
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12919
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12920
# GNU General Public License for more details.
12921
#
12922
# You should have received a copy of the GNU General Public License
12923
# along with GNU Libtool; see the file COPYING.  If not, a copy
12924
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12925
# obtained by writing to the Free Software Foundation, Inc.,
12926
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12927
 
12928
 
12929
# The names of the tagged configurations supported by this script.
12930
available_tags=""
12931
 
12932
# ### BEGIN LIBTOOL CONFIG
12933
 
12934
# A sed program that does not truncate output.
12935
SED=$lt_SED
12936
 
12937
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12938
Xsed="\$SED -e 1s/^X//"
12939
 
12940
# Assembler program.
12941
AS=$AS
12942
 
12943
# DLL creation program.
12944
DLLTOOL=$DLLTOOL
12945
 
12946
# Object dumper program.
12947
OBJDUMP=$OBJDUMP
12948
 
12949
# Which release of libtool.m4 was used?
12950
macro_version=$macro_version
12951
macro_revision=$macro_revision
12952
 
12953
# Whether or not to build shared libraries.
12954
build_libtool_libs=$enable_shared
12955
 
12956
# Whether or not to build static libraries.
12957
build_old_libs=$enable_static
12958
 
12959
# What type of objects to build.
12960
pic_mode=$pic_mode
12961
 
12962
# Whether or not to optimize for fast installation.
12963
fast_install=$enable_fast_install
12964
 
12965
# The host system.
12966
host_alias=$host_alias
12967
host=$host
12968
host_os=$host_os
12969
 
12970
# The build system.
12971
build_alias=$build_alias
12972
build=$build
12973
build_os=$build_os
12974
 
12975
# A grep program that handles long lines.
12976
GREP=$lt_GREP
12977
 
12978
# An ERE matcher.
12979
EGREP=$lt_EGREP
12980
 
12981
# A literal string matcher.
12982
FGREP=$lt_FGREP
12983
 
12984
# A BSD- or MS-compatible name lister.
12985
NM=$lt_NM
12986
 
12987
# Whether we need soft or hard links.
12988
LN_S=$lt_LN_S
12989
 
12990
# What is the maximum length of a command?
12991
max_cmd_len=$max_cmd_len
12992
 
12993
# Object file suffix (normally "o").
12994
objext=$ac_objext
12995
 
12996
# Executable file suffix (normally "").
12997
exeext=$exeext
12998
 
12999
# whether the shell understands "unset".
13000
lt_unset=$lt_unset
13001
 
13002
# turn spaces into newlines.
13003
SP2NL=$lt_lt_SP2NL
13004
 
13005
# turn newlines into spaces.
13006
NL2SP=$lt_lt_NL2SP
13007
 
13008
# How to create reloadable object files.
13009
reload_flag=$lt_reload_flag
13010
reload_cmds=$lt_reload_cmds
13011
 
13012
# Method to check whether dependent libraries are shared objects.
13013
deplibs_check_method=$lt_deplibs_check_method
13014
 
13015
# Command to use when deplibs_check_method == "file_magic".
13016
file_magic_cmd=$lt_file_magic_cmd
13017
 
13018
# The archiver.
13019
AR=$lt_AR
13020
AR_FLAGS=$lt_AR_FLAGS
13021
 
13022
# A symbol stripping program.
13023
STRIP=$lt_STRIP
13024
 
13025
# Commands used to install an old-style archive.
13026
RANLIB=$lt_RANLIB
13027
old_postinstall_cmds=$lt_old_postinstall_cmds
13028
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13029
 
13030
# A C compiler.
13031
LTCC=$lt_CC
13032
 
13033
# LTCC compiler flags.
13034
LTCFLAGS=$lt_CFLAGS
13035
 
13036
# Take the output of nm and produce a listing of raw symbols and C names.
13037
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13038
 
13039
# Transform the output of nm in a proper C declaration.
13040
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13041
 
13042
# Transform the output of nm in a C name address pair.
13043
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13044
 
13045
# Transform the output of nm in a C name address pair when lib prefix is needed.
13046
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13047
 
13048
# The name of the directory that contains temporary libtool files.
13049
objdir=$objdir
13050
 
13051
# Shell to use when invoking shell scripts.
13052
SHELL=$lt_SHELL
13053
 
13054
# An echo program that does not interpret backslashes.
13055
ECHO=$lt_ECHO
13056
 
13057
# Used to examine libraries when file_magic_cmd begins with "file".
13058
MAGIC_CMD=$MAGIC_CMD
13059
 
13060
# Must we lock files when doing compilation?
13061
need_locks=$lt_need_locks
13062
 
13063
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13064
DSYMUTIL=$lt_DSYMUTIL
13065
 
13066
# Tool to change global to local symbols on Mac OS X.
13067
NMEDIT=$lt_NMEDIT
13068
 
13069
# Tool to manipulate fat objects and archives on Mac OS X.
13070
LIPO=$lt_LIPO
13071
 
13072
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13073
OTOOL=$lt_OTOOL
13074
 
13075
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13076
OTOOL64=$lt_OTOOL64
13077
 
13078
# Old archive suffix (normally "a").
13079
libext=$libext
13080
 
13081
# Shared library suffix (normally ".so").
13082
shrext_cmds=$lt_shrext_cmds
13083
 
13084
# The commands to extract the exported symbol list from a shared archive.
13085
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13086
 
13087
# Variables whose values should be saved in libtool wrapper scripts and
13088
# restored at link time.
13089
variables_saved_for_relink=$lt_variables_saved_for_relink
13090
 
13091
# Do we need the "lib" prefix for modules?
13092
need_lib_prefix=$need_lib_prefix
13093
 
13094
# Do we need a version for libraries?
13095
need_version=$need_version
13096
 
13097
# Library versioning type.
13098
version_type=$version_type
13099
 
13100
# Shared library runtime path variable.
13101
runpath_var=$runpath_var
13102
 
13103
# Shared library path variable.
13104
shlibpath_var=$shlibpath_var
13105
 
13106
# Is shlibpath searched before the hard-coded library search path?
13107
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13108
 
13109
# Format of library name prefix.
13110
libname_spec=$lt_libname_spec
13111
 
13112
# List of archive names.  First name is the real one, the rest are links.
13113
# The last name is the one that the linker finds with -lNAME
13114
library_names_spec=$lt_library_names_spec
13115
 
13116
# The coded name of the library, if different from the real name.
13117
soname_spec=$lt_soname_spec
13118
 
13119
# Command to use after installation of a shared archive.
13120
postinstall_cmds=$lt_postinstall_cmds
13121
 
13122
# Command to use after uninstallation of a shared archive.
13123
postuninstall_cmds=$lt_postuninstall_cmds
13124
 
13125
# Commands used to finish a libtool library installation in a directory.
13126
finish_cmds=$lt_finish_cmds
13127
 
13128
# As "finish_cmds", except a single script fragment to be evaled but
13129
# not shown.
13130
finish_eval=$lt_finish_eval
13131
 
13132
# Whether we should hardcode library paths into libraries.
13133
hardcode_into_libs=$hardcode_into_libs
13134
 
13135
# Compile-time system search path for libraries.
13136
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13137
 
13138
# Run-time system search path for libraries.
13139
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13140
 
13141
# Whether dlopen is supported.
13142
dlopen_support=$enable_dlopen
13143
 
13144
# Whether dlopen of programs is supported.
13145
dlopen_self=$enable_dlopen_self
13146
 
13147
# Whether dlopen of statically linked programs is supported.
13148
dlopen_self_static=$enable_dlopen_self_static
13149
 
13150
# Commands to strip libraries.
13151
old_striplib=$lt_old_striplib
13152
striplib=$lt_striplib
13153
 
13154
 
13155
# The linker used to build libraries.
13156
LD=$lt_LD
13157
 
13158
# Commands used to build an old-style archive.
13159
old_archive_cmds=$lt_old_archive_cmds
13160
 
13161
# A language specific compiler.
13162
CC=$lt_compiler
13163
 
13164
# Is the compiler the GNU compiler?
13165
with_gcc=$GCC
13166
 
13167
# Compiler flag to turn off builtin functions.
13168
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13169
 
13170
# How to pass a linker flag through the compiler.
13171
wl=$lt_lt_prog_compiler_wl
13172
 
13173
# Additional compiler flags for building library objects.
13174
pic_flag=$lt_lt_prog_compiler_pic
13175
 
13176
# Compiler flag to prevent dynamic linking.
13177
link_static_flag=$lt_lt_prog_compiler_static
13178
 
13179
# Does compiler simultaneously support -c and -o options?
13180
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13181
 
13182
# Whether or not to add -lc for building shared libraries.
13183
build_libtool_need_lc=$archive_cmds_need_lc
13184
 
13185
# Whether or not to disallow shared libs when runtime libs are static.
13186
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13187
 
13188
# Compiler flag to allow reflexive dlopens.
13189
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13190
 
13191
# Compiler flag to generate shared objects directly from archives.
13192
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13193
 
13194
# Whether the compiler copes with passing no objects directly.
13195
compiler_needs_object=$lt_compiler_needs_object
13196
 
13197
# Create an old-style archive from a shared archive.
13198
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13199
 
13200
# Create a temporary old-style archive to link instead of a shared archive.
13201
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13202
 
13203
# Commands used to build a shared archive.
13204
archive_cmds=$lt_archive_cmds
13205
archive_expsym_cmds=$lt_archive_expsym_cmds
13206
 
13207
# Commands used to build a loadable module if different from building
13208
# a shared archive.
13209
module_cmds=$lt_module_cmds
13210
module_expsym_cmds=$lt_module_expsym_cmds
13211
 
13212
# Whether we are building with GNU ld or not.
13213
with_gnu_ld=$lt_with_gnu_ld
13214
 
13215
# Flag that allows shared libraries with undefined symbols to be built.
13216
allow_undefined_flag=$lt_allow_undefined_flag
13217
 
13218
# Flag that enforces no undefined symbols.
13219
no_undefined_flag=$lt_no_undefined_flag
13220
 
13221
# Flag to hardcode \$libdir into a binary during linking.
13222
# This must work even if \$libdir does not exist
13223
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13224
 
13225
# If ld is used when linking, flag to hardcode \$libdir into a binary
13226
# during linking.  This must work even if \$libdir does not exist.
13227
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13228
 
13229
# Whether we need a single "-rpath" flag with a separated argument.
13230
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13231
 
13232
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13233
# DIR into the resulting binary.
13234
hardcode_direct=$hardcode_direct
13235
 
13236
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13237
# DIR into the resulting binary and the resulting library dependency is
13238
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13239
# library is relocated.
13240
hardcode_direct_absolute=$hardcode_direct_absolute
13241
 
13242
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13243
# into the resulting binary.
13244
hardcode_minus_L=$hardcode_minus_L
13245
 
13246
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13247
# into the resulting binary.
13248
hardcode_shlibpath_var=$hardcode_shlibpath_var
13249
 
13250
# Set to "yes" if building a shared library automatically hardcodes DIR
13251
# into the library and all subsequent libraries and executables linked
13252
# against it.
13253
hardcode_automatic=$hardcode_automatic
13254
 
13255
# Set to yes if linker adds runtime paths of dependent libraries
13256
# to runtime path list.
13257
inherit_rpath=$inherit_rpath
13258
 
13259
# Whether libtool must link a program against all its dependency libraries.
13260
link_all_deplibs=$link_all_deplibs
13261
 
13262
# Fix the shell variable \$srcfile for the compiler.
13263
fix_srcfile_path=$lt_fix_srcfile_path
13264
 
13265
# Set to "yes" if exported symbols are required.
13266
always_export_symbols=$always_export_symbols
13267
 
13268
# The commands to list exported symbols.
13269
export_symbols_cmds=$lt_export_symbols_cmds
13270
 
13271
# Symbols that should not be listed in the preloaded symbols.
13272
exclude_expsyms=$lt_exclude_expsyms
13273
 
13274
# Symbols that must always be exported.
13275
include_expsyms=$lt_include_expsyms
13276
 
13277
# Commands necessary for linking programs (against libraries) with templates.
13278
prelink_cmds=$lt_prelink_cmds
13279
 
13280
# Specify filename containing input files.
13281
file_list_spec=$lt_file_list_spec
13282
 
13283
# How to hardcode a shared library path into an executable.
13284
hardcode_action=$hardcode_action
13285
 
13286
# ### END LIBTOOL CONFIG
13287
 
13288
_LT_EOF
13289
 
13290
  case $host_os in
13291
  aix3*)
13292
    cat <<\_LT_EOF >> "$cfgfile"
13293
# AIX sometimes has problems with the GCC collect2 program.  For some
13294
# reason, if we set the COLLECT_NAMES environment variable, the problems
13295
# vanish in a puff of smoke.
13296
if test "X${COLLECT_NAMES+set}" != Xset; then
13297
  COLLECT_NAMES=
13298
  export COLLECT_NAMES
13299
fi
13300
_LT_EOF
13301
    ;;
13302
  esac
13303
 
13304
 
13305
ltmain="$ac_aux_dir/ltmain.sh"
13306
 
13307
 
13308
  # We use sed instead of cat because bash on DJGPP gets confused if
13309
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13310
  # text mode, it properly converts lines to CR/LF.  This bash problem
13311
  # is reportedly fixed, but why not run on old versions too?
13312
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13313
    || (rm -f "$cfgfile"; exit 1)
13314
 
13315
  case $xsi_shell in
13316
  yes)
13317
    cat << \_LT_EOF >> "$cfgfile"
13318
 
13319
# func_dirname file append nondir_replacement
13320
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13321
# otherwise set result to NONDIR_REPLACEMENT.
13322
func_dirname ()
13323
{
13324
  case ${1} in
13325
    */*) func_dirname_result="${1%/*}${2}" ;;
13326
    *  ) func_dirname_result="${3}" ;;
13327
  esac
13328
}
13329
 
13330
# func_basename file
13331
func_basename ()
13332
{
13333
  func_basename_result="${1##*/}"
13334
}
13335
 
13336
# func_dirname_and_basename file append nondir_replacement
13337
# perform func_basename and func_dirname in a single function
13338
# call:
13339
#   dirname:  Compute the dirname of FILE.  If nonempty,
13340
#             add APPEND to the result, otherwise set result
13341
#             to NONDIR_REPLACEMENT.
13342
#             value returned in "$func_dirname_result"
13343
#   basename: Compute filename of FILE.
13344
#             value retuned in "$func_basename_result"
13345
# Implementation must be kept synchronized with func_dirname
13346
# and func_basename. For efficiency, we do not delegate to
13347
# those functions but instead duplicate the functionality here.
13348
func_dirname_and_basename ()
13349
{
13350
  case ${1} in
13351
    */*) func_dirname_result="${1%/*}${2}" ;;
13352
    *  ) func_dirname_result="${3}" ;;
13353
  esac
13354
  func_basename_result="${1##*/}"
13355
}
13356
 
13357
# func_stripname prefix suffix name
13358
# strip PREFIX and SUFFIX off of NAME.
13359
# PREFIX and SUFFIX must not contain globbing or regex special
13360
# characters, hashes, percent signs, but SUFFIX may contain a leading
13361
# dot (in which case that matches only a dot).
13362
func_stripname ()
13363
{
13364
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13365
  # positional parameters, so assign one to ordinary parameter first.
13366
  func_stripname_result=${3}
13367
  func_stripname_result=${func_stripname_result#"${1}"}
13368
  func_stripname_result=${func_stripname_result%"${2}"}
13369
}
13370
 
13371
# func_opt_split
13372
func_opt_split ()
13373
{
13374
  func_opt_split_opt=${1%%=*}
13375
  func_opt_split_arg=${1#*=}
13376
}
13377
 
13378
# func_lo2o object
13379
func_lo2o ()
13380
{
13381
  case ${1} in
13382
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13383
    *)    func_lo2o_result=${1} ;;
13384
  esac
13385
}
13386
 
13387
# func_xform libobj-or-source
13388
func_xform ()
13389
{
13390
  func_xform_result=${1%.*}.lo
13391
}
13392
 
13393
# func_arith arithmetic-term...
13394
func_arith ()
13395
{
13396
  func_arith_result=$(( $* ))
13397
}
13398
 
13399
# func_len string
13400
# STRING may not start with a hyphen.
13401
func_len ()
13402
{
13403
  func_len_result=${#1}
13404
}
13405
 
13406
_LT_EOF
13407
    ;;
13408
  *) # Bourne compatible functions.
13409
    cat << \_LT_EOF >> "$cfgfile"
13410
 
13411
# func_dirname file append nondir_replacement
13412
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13413
# otherwise set result to NONDIR_REPLACEMENT.
13414
func_dirname ()
13415
{
13416
  # Extract subdirectory from the argument.
13417
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13418
  if test "X$func_dirname_result" = "X${1}"; then
13419
    func_dirname_result="${3}"
13420
  else
13421
    func_dirname_result="$func_dirname_result${2}"
13422
  fi
13423
}
13424
 
13425
# func_basename file
13426
func_basename ()
13427
{
13428
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13429
}
13430
 
13431
 
13432
# func_stripname prefix suffix name
13433
# strip PREFIX and SUFFIX off of NAME.
13434
# PREFIX and SUFFIX must not contain globbing or regex special
13435
# characters, hashes, percent signs, but SUFFIX may contain a leading
13436
# dot (in which case that matches only a dot).
13437
# func_strip_suffix prefix name
13438
func_stripname ()
13439
{
13440
  case ${2} in
13441
    .*) func_stripname_result=`$ECHO "X${3}" \
13442
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13443
    *)  func_stripname_result=`$ECHO "X${3}" \
13444
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13445
  esac
13446
}
13447
 
13448
# sed scripts:
13449
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13450
my_sed_long_arg='1s/^-[^=]*=//'
13451
 
13452
# func_opt_split
13453
func_opt_split ()
13454
{
13455
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13456
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13457
}
13458
 
13459
# func_lo2o object
13460
func_lo2o ()
13461
{
13462
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13463
}
13464
 
13465
# func_xform libobj-or-source
13466
func_xform ()
13467
{
13468
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13469
}
13470
 
13471
# func_arith arithmetic-term...
13472
func_arith ()
13473
{
13474
  func_arith_result=`expr "$@"`
13475
}
13476
 
13477
# func_len string
13478
# STRING may not start with a hyphen.
13479
func_len ()
13480
{
13481
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13482
}
13483
 
13484
_LT_EOF
13485
esac
13486
 
13487
case $lt_shell_append in
13488
  yes)
13489
    cat << \_LT_EOF >> "$cfgfile"
13490
 
13491
# func_append var value
13492
# Append VALUE to the end of shell variable VAR.
13493
func_append ()
13494
{
13495
  eval "$1+=\$2"
13496
}
13497
_LT_EOF
13498
    ;;
13499
  *)
13500
    cat << \_LT_EOF >> "$cfgfile"
13501
 
13502
# func_append var value
13503
# Append VALUE to the end of shell variable VAR.
13504
func_append ()
13505
{
13506
  eval "$1=\$$1\$2"
13507
}
13508
 
13509
_LT_EOF
13510
    ;;
13511
  esac
13512
 
13513
 
13514
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13515
    || (rm -f "$cfgfile"; exit 1)
13516
 
13517
  mv -f "$cfgfile" "$ofile" ||
13518
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13519
  chmod +x "$ofile"
13520
 
13521
 ;;
13522
  esac
13523
done
13524
_ACEOF
13525
 
13526
cat >>$CONFIG_STATUS <<\_ACEOF
13527
 
13528
{ (exit 0); exit 0; }
13529
_ACEOF
13530
chmod +x $CONFIG_STATUS
13531
ac_clean_files=$ac_clean_files_save
13532
 
13533
 
13534
# configure is writing to config.log, and then calls config.status.
13535
# config.status does its own redirection, appending to config.log.
13536
# Unfortunately, on DOS this fails, as config.log is still kept open
13537
# by configure, so config.status won't be able to write to it; its
13538
# output is simply discarded.  So we exec the FD to /dev/null,
13539
# effectively closing config.log, so it can be properly (re)opened and
13540
# appended to by config.status.  When coming back to configure, we
13541
# need to make the FD available again.
13542
if test "$no_create" != yes; then
13543
  ac_cs_success=:
13544
  ac_config_status_args=
13545
  test "$silent" = yes &&
13546
    ac_config_status_args="$ac_config_status_args --quiet"
13547
  exec 5>/dev/null
13548
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13549
  exec 5>>config.log
13550
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13551
  # would make configure fail if this is the last instruction.
13552
  $ac_cs_success || { (exit 1); exit 1; }
13553
fi
13554
 

powered by: WebSVN 2.1.0

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