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/] [configure] - Blame information for rev 455

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

Line No. Rev Author Line
1 148 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME='newlib'
418
PACKAGE_TARNAME='newlib'
419
PACKAGE_VERSION='1.17.0'
420
PACKAGE_STRING='newlib 1.17.0'
421
PACKAGE_BUGREPORT=''
422
 
423
ac_unique_file="d10v"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
ac_subdirs_all="$ac_subdirs_all a29k"
462
ac_subdirs_all="$ac_subdirs_all arm"
463
ac_subdirs_all="$ac_subdirs_all bfin"
464
ac_subdirs_all="$ac_subdirs_all cris"
465
ac_subdirs_all="$ac_subdirs_all crx"
466
ac_subdirs_all="$ac_subdirs_all d10v"
467
ac_subdirs_all="$ac_subdirs_all d30v"
468
ac_subdirs_all="$ac_subdirs_all fr30"
469
ac_subdirs_all="$ac_subdirs_all frv"
470
ac_subdirs_all="$ac_subdirs_all h8300"
471
ac_subdirs_all="$ac_subdirs_all h8500"
472
ac_subdirs_all="$ac_subdirs_all hppa"
473
ac_subdirs_all="$ac_subdirs_all i386"
474
ac_subdirs_all="$ac_subdirs_all i960"
475
ac_subdirs_all="$ac_subdirs_all iq2000"
476
ac_subdirs_all="$ac_subdirs_all lm32"
477
ac_subdirs_all="$ac_subdirs_all m32c"
478
ac_subdirs_all="$ac_subdirs_all m32r"
479
ac_subdirs_all="$ac_subdirs_all m68hc11"
480
ac_subdirs_all="$ac_subdirs_all m68k"
481
ac_subdirs_all="$ac_subdirs_all m88k"
482
ac_subdirs_all="$ac_subdirs_all mep"
483
ac_subdirs_all="$ac_subdirs_all mips"
484
ac_subdirs_all="$ac_subdirs_all mn10200"
485
ac_subdirs_all="$ac_subdirs_all mn10300"
486
ac_subdirs_all="$ac_subdirs_all mt"
487
ac_subdirs_all="$ac_subdirs_all necv70"
488
ac_subdirs_all="$ac_subdirs_all powerpc"
489
ac_subdirs_all="$ac_subdirs_all or32"
490
ac_subdirs_all="$ac_subdirs_all sh"
491
ac_subdirs_all="$ac_subdirs_all sparc"
492
ac_subdirs_all="$ac_subdirs_all spu"
493
ac_subdirs_all="$ac_subdirs_all tic4x"
494
ac_subdirs_all="$ac_subdirs_all tic80"
495
ac_subdirs_all="$ac_subdirs_all v850"
496
ac_subdirs_all="$ac_subdirs_all w65"
497
ac_subdirs_all="$ac_subdirs_all x86_64"
498
ac_subdirs_all="$ac_subdirs_all xscale"
499
ac_subdirs_all="$ac_subdirs_all xstormy16"
500
ac_subdirs_all="$ac_subdirs_all z8k"
501
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 subdirs HAVE_MACHINE_DIR_TRUE HAVE_MACHINE_DIR_FALSE LIBOBJS LTLIBOBJS'
502
ac_subst_files=''
503
 
504
# Initialize some variables set by options.
505
ac_init_help=
506
ac_init_version=false
507
# The variables have the same names as the options, with
508
# dashes changed to underlines.
509
cache_file=/dev/null
510
exec_prefix=NONE
511
no_create=
512
no_recursion=
513
prefix=NONE
514
program_prefix=NONE
515
program_suffix=NONE
516
program_transform_name=s,x,x,
517
silent=
518
site=
519
srcdir=
520
verbose=
521
x_includes=NONE
522
x_libraries=NONE
523
 
524
# Installation directory options.
525
# These are left unexpanded so users can "make install exec_prefix=/foo"
526
# and all the variables that are supposed to be based on exec_prefix
527
# by default will actually change.
528
# Use braces instead of parens because sh, perl, etc. also accept them.
529
bindir='${exec_prefix}/bin'
530
sbindir='${exec_prefix}/sbin'
531
libexecdir='${exec_prefix}/libexec'
532
datadir='${prefix}/share'
533
sysconfdir='${prefix}/etc'
534
sharedstatedir='${prefix}/com'
535
localstatedir='${prefix}/var'
536
libdir='${exec_prefix}/lib'
537
includedir='${prefix}/include'
538
oldincludedir='/usr/include'
539
infodir='${prefix}/info'
540
mandir='${prefix}/man'
541
 
542
ac_prev=
543
for ac_option
544
do
545
  # If the previous option needs an argument, assign it.
546
  if test -n "$ac_prev"; then
547
    eval "$ac_prev=\$ac_option"
548
    ac_prev=
549
    continue
550
  fi
551
 
552
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
553
 
554
  # Accept the important Cygnus configure options, so we can diagnose typos.
555
 
556
  case $ac_option in
557
 
558
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
559
    ac_prev=bindir ;;
560
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
561
    bindir=$ac_optarg ;;
562
 
563
  -build | --build | --buil | --bui | --bu)
564
    ac_prev=build_alias ;;
565
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
566
    build_alias=$ac_optarg ;;
567
 
568
  -cache-file | --cache-file | --cache-fil | --cache-fi \
569
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
570
    ac_prev=cache_file ;;
571
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
572
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
573
    cache_file=$ac_optarg ;;
574
 
575
  --config-cache | -C)
576
    cache_file=config.cache ;;
577
 
578
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
579
    ac_prev=datadir ;;
580
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
581
  | --da=*)
582
    datadir=$ac_optarg ;;
583
 
584
  -disable-* | --disable-*)
585
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
586
    # Reject names that are not valid shell variable names.
587
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589
   { (exit 1); exit 1; }; }
590
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
591
    eval "enable_$ac_feature=no" ;;
592
 
593
  -enable-* | --enable-*)
594
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
595
    # Reject names that are not valid shell variable names.
596
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
597
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
598
   { (exit 1); exit 1; }; }
599
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
600
    case $ac_option in
601
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602
      *) ac_optarg=yes ;;
603
    esac
604
    eval "enable_$ac_feature='$ac_optarg'" ;;
605
 
606
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
607
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
608
  | --exec | --exe | --ex)
609
    ac_prev=exec_prefix ;;
610
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
611
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
612
  | --exec=* | --exe=* | --ex=*)
613
    exec_prefix=$ac_optarg ;;
614
 
615
  -gas | --gas | --ga | --g)
616
    # Obsolete; use --with-gas.
617
    with_gas=yes ;;
618
 
619
  -help | --help | --hel | --he | -h)
620
    ac_init_help=long ;;
621
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
622
    ac_init_help=recursive ;;
623
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
624
    ac_init_help=short ;;
625
 
626
  -host | --host | --hos | --ho)
627
    ac_prev=host_alias ;;
628
  -host=* | --host=* | --hos=* | --ho=*)
629
    host_alias=$ac_optarg ;;
630
 
631
  -includedir | --includedir | --includedi | --included | --include \
632
  | --includ | --inclu | --incl | --inc)
633
    ac_prev=includedir ;;
634
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
635
  | --includ=* | --inclu=* | --incl=* | --inc=*)
636
    includedir=$ac_optarg ;;
637
 
638
  -infodir | --infodir | --infodi | --infod | --info | --inf)
639
    ac_prev=infodir ;;
640
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
641
    infodir=$ac_optarg ;;
642
 
643
  -libdir | --libdir | --libdi | --libd)
644
    ac_prev=libdir ;;
645
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
646
    libdir=$ac_optarg ;;
647
 
648
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
649
  | --libexe | --libex | --libe)
650
    ac_prev=libexecdir ;;
651
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
652
  | --libexe=* | --libex=* | --libe=*)
653
    libexecdir=$ac_optarg ;;
654
 
655
  -localstatedir | --localstatedir | --localstatedi | --localstated \
656
  | --localstate | --localstat | --localsta | --localst \
657
  | --locals | --local | --loca | --loc | --lo)
658
    ac_prev=localstatedir ;;
659
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
660
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
661
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
662
    localstatedir=$ac_optarg ;;
663
 
664
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
665
    ac_prev=mandir ;;
666
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
667
    mandir=$ac_optarg ;;
668
 
669
  -nfp | --nfp | --nf)
670
    # Obsolete; use --without-fp.
671
    with_fp=no ;;
672
 
673
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
674
  | --no-cr | --no-c | -n)
675
    no_create=yes ;;
676
 
677
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
678
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
679
    no_recursion=yes ;;
680
 
681
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
682
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
683
  | --oldin | --oldi | --old | --ol | --o)
684
    ac_prev=oldincludedir ;;
685
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
686
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
687
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
688
    oldincludedir=$ac_optarg ;;
689
 
690
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
691
    ac_prev=prefix ;;
692
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
693
    prefix=$ac_optarg ;;
694
 
695
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
696
  | --program-pre | --program-pr | --program-p)
697
    ac_prev=program_prefix ;;
698
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
699
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
700
    program_prefix=$ac_optarg ;;
701
 
702
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
703
  | --program-suf | --program-su | --program-s)
704
    ac_prev=program_suffix ;;
705
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
706
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
707
    program_suffix=$ac_optarg ;;
708
 
709
  -program-transform-name | --program-transform-name \
710
  | --program-transform-nam | --program-transform-na \
711
  | --program-transform-n | --program-transform- \
712
  | --program-transform | --program-transfor \
713
  | --program-transfo | --program-transf \
714
  | --program-trans | --program-tran \
715
  | --progr-tra | --program-tr | --program-t)
716
    ac_prev=program_transform_name ;;
717
  -program-transform-name=* | --program-transform-name=* \
718
  | --program-transform-nam=* | --program-transform-na=* \
719
  | --program-transform-n=* | --program-transform-=* \
720
  | --program-transform=* | --program-transfor=* \
721
  | --program-transfo=* | --program-transf=* \
722
  | --program-trans=* | --program-tran=* \
723
  | --progr-tra=* | --program-tr=* | --program-t=*)
724
    program_transform_name=$ac_optarg ;;
725
 
726
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
727
  | -silent | --silent | --silen | --sile | --sil)
728
    silent=yes ;;
729
 
730
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
731
    ac_prev=sbindir ;;
732
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
733
  | --sbi=* | --sb=*)
734
    sbindir=$ac_optarg ;;
735
 
736
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
737
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
738
  | --sharedst | --shareds | --shared | --share | --shar \
739
  | --sha | --sh)
740
    ac_prev=sharedstatedir ;;
741
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
742
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
743
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
744
  | --sha=* | --sh=*)
745
    sharedstatedir=$ac_optarg ;;
746
 
747
  -site | --site | --sit)
748
    ac_prev=site ;;
749
  -site=* | --site=* | --sit=*)
750
    site=$ac_optarg ;;
751
 
752
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
753
    ac_prev=srcdir ;;
754
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
755
    srcdir=$ac_optarg ;;
756
 
757
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
758
  | --syscon | --sysco | --sysc | --sys | --sy)
759
    ac_prev=sysconfdir ;;
760
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
761
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
762
    sysconfdir=$ac_optarg ;;
763
 
764
  -target | --target | --targe | --targ | --tar | --ta | --t)
765
    ac_prev=target_alias ;;
766
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
767
    target_alias=$ac_optarg ;;
768
 
769
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
770
    verbose=yes ;;
771
 
772
  -version | --version | --versio | --versi | --vers | -V)
773
    ac_init_version=: ;;
774
 
775
  -with-* | --with-*)
776
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
777
    # Reject names that are not valid shell variable names.
778
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
779
      { echo "$as_me: error: invalid package name: $ac_package" >&2
780
   { (exit 1); exit 1; }; }
781
    ac_package=`echo $ac_package| sed 's/-/_/g'`
782
    case $ac_option in
783
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
784
      *) ac_optarg=yes ;;
785
    esac
786
    eval "with_$ac_package='$ac_optarg'" ;;
787
 
788
  -without-* | --without-*)
789
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
790
    # Reject names that are not valid shell variable names.
791
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
792
      { echo "$as_me: error: invalid package name: $ac_package" >&2
793
   { (exit 1); exit 1; }; }
794
    ac_package=`echo $ac_package | sed 's/-/_/g'`
795
    eval "with_$ac_package=no" ;;
796
 
797
  --x)
798
    # Obsolete; use --with-x.
799
    with_x=yes ;;
800
 
801
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
802
  | --x-incl | --x-inc | --x-in | --x-i)
803
    ac_prev=x_includes ;;
804
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
805
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
806
    x_includes=$ac_optarg ;;
807
 
808
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
809
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
810
    ac_prev=x_libraries ;;
811
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
812
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
813
    x_libraries=$ac_optarg ;;
814
 
815
  -*) { echo "$as_me: error: unrecognized option: $ac_option
816
Try \`$0 --help' for more information." >&2
817
   { (exit 1); exit 1; }; }
818
    ;;
819
 
820
  *=*)
821
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
822
    # Reject names that are not valid shell variable names.
823
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
824
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
825
   { (exit 1); exit 1; }; }
826
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
827
    eval "$ac_envvar='$ac_optarg'"
828
    export $ac_envvar ;;
829
 
830
  *)
831
    # FIXME: should be removed in autoconf 3.0.
832
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
833
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
834
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
835
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
836
    ;;
837
 
838
  esac
839
done
840
 
841
if test -n "$ac_prev"; then
842
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
843
  { echo "$as_me: error: missing argument to $ac_option" >&2
844
   { (exit 1); exit 1; }; }
845
fi
846
 
847
# Be sure to have absolute paths.
848
for ac_var in exec_prefix prefix
849
do
850
  eval ac_val=$`echo $ac_var`
851
  case $ac_val in
852
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
853
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
854
   { (exit 1); exit 1; }; };;
855
  esac
856
done
857
 
858
# Be sure to have absolute paths.
859
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
860
              localstatedir libdir includedir oldincludedir infodir mandir
861
do
862
  eval ac_val=$`echo $ac_var`
863
  case $ac_val in
864
    [\\/$]* | ?:[\\/]* ) ;;
865
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
866
   { (exit 1); exit 1; }; };;
867
  esac
868
done
869
 
870
# There might be people who depend on the old broken behavior: `$host'
871
# used to hold the argument of --host etc.
872
# FIXME: To remove some day.
873
build=$build_alias
874
host=$host_alias
875
target=$target_alias
876
 
877
# FIXME: To remove some day.
878
if test "x$host_alias" != x; then
879
  if test "x$build_alias" = x; then
880
    cross_compiling=maybe
881
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
882
    If a cross compiler is detected then cross compile mode will be used." >&2
883
  elif test "x$build_alias" != "x$host_alias"; then
884
    cross_compiling=yes
885
  fi
886
fi
887
 
888
ac_tool_prefix=
889
test -n "$host_alias" && ac_tool_prefix=$host_alias-
890
 
891
test "$silent" = yes && exec 6>/dev/null
892
 
893
 
894
# Find the source files, if location was not specified.
895
if test -z "$srcdir"; then
896
  ac_srcdir_defaulted=yes
897
  # Try the directory containing this script, then its parent.
898
  ac_confdir=`(dirname "$0") 2>/dev/null ||
899
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
900
         X"$0" : 'X\(//\)[^/]' \| \
901
         X"$0" : 'X\(//\)$' \| \
902
         X"$0" : 'X\(/\)' \| \
903
         .     : '\(.\)' 2>/dev/null ||
904
echo X"$0" |
905
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
906
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
907
          /^X\(\/\/\)$/{ s//\1/; q; }
908
          /^X\(\/\).*/{ s//\1/; q; }
909
          s/.*/./; q'`
910
  srcdir=$ac_confdir
911
  if test ! -r $srcdir/$ac_unique_file; then
912
    srcdir=..
913
  fi
914
else
915
  ac_srcdir_defaulted=no
916
fi
917
if test ! -r $srcdir/$ac_unique_file; then
918
  if test "$ac_srcdir_defaulted" = yes; then
919
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
920
   { (exit 1); exit 1; }; }
921
  else
922
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
923
   { (exit 1); exit 1; }; }
924
  fi
925
fi
926
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
927
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
928
   { (exit 1); exit 1; }; }
929
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
930
ac_env_build_alias_set=${build_alias+set}
931
ac_env_build_alias_value=$build_alias
932
ac_cv_env_build_alias_set=${build_alias+set}
933
ac_cv_env_build_alias_value=$build_alias
934
ac_env_host_alias_set=${host_alias+set}
935
ac_env_host_alias_value=$host_alias
936
ac_cv_env_host_alias_set=${host_alias+set}
937
ac_cv_env_host_alias_value=$host_alias
938
ac_env_target_alias_set=${target_alias+set}
939
ac_env_target_alias_value=$target_alias
940
ac_cv_env_target_alias_set=${target_alias+set}
941
ac_cv_env_target_alias_value=$target_alias
942
ac_env_CCAS_set=${CCAS+set}
943
ac_env_CCAS_value=$CCAS
944
ac_cv_env_CCAS_set=${CCAS+set}
945
ac_cv_env_CCAS_value=$CCAS
946
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
947
ac_env_CCASFLAGS_value=$CCASFLAGS
948
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
949
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
950
ac_env_CC_set=${CC+set}
951
ac_env_CC_value=$CC
952
ac_cv_env_CC_set=${CC+set}
953
ac_cv_env_CC_value=$CC
954
ac_env_CFLAGS_set=${CFLAGS+set}
955
ac_env_CFLAGS_value=$CFLAGS
956
ac_cv_env_CFLAGS_set=${CFLAGS+set}
957
ac_cv_env_CFLAGS_value=$CFLAGS
958
ac_env_LDFLAGS_set=${LDFLAGS+set}
959
ac_env_LDFLAGS_value=$LDFLAGS
960
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
961
ac_cv_env_LDFLAGS_value=$LDFLAGS
962
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
963
ac_env_CPPFLAGS_value=$CPPFLAGS
964
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
965
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
966
ac_env_CPP_set=${CPP+set}
967
ac_env_CPP_value=$CPP
968
ac_cv_env_CPP_set=${CPP+set}
969
ac_cv_env_CPP_value=$CPP
970
 
971
#
972
# Report the --help message.
973
#
974
if test "$ac_init_help" = "long"; then
975
  # Omit some internal or obsolete options to make the list less imposing.
976
  # This message is too long to be a string in the A/UX 3.1 sh.
977
  cat <<_ACEOF
978
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
979
 
980
Usage: $0 [OPTION]... [VAR=VALUE]...
981
 
982
To assign environment variables (e.g., CC, CFLAGS...), specify them as
983
VAR=VALUE.  See below for descriptions of some of the useful variables.
984
 
985
Defaults for the options are specified in brackets.
986
 
987
Configuration:
988
  -h, --help              display this help and exit
989
      --help=short        display options specific to this package
990
      --help=recursive    display the short help of all the included packages
991
  -V, --version           display version information and exit
992
  -q, --quiet, --silent   do not print \`checking...' messages
993
      --cache-file=FILE   cache test results in FILE [disabled]
994
  -C, --config-cache      alias for \`--cache-file=config.cache'
995
  -n, --no-create         do not create output files
996
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
997
 
998
_ACEOF
999
 
1000
  cat <<_ACEOF
1001
Installation directories:
1002
  --prefix=PREFIX         install architecture-independent files in PREFIX
1003
                          [$ac_default_prefix]
1004
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1005
                          [PREFIX]
1006
 
1007
By default, \`make install' will install all the files in
1008
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1009
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1010
for instance \`--prefix=\$HOME'.
1011
 
1012
For better control, use the options below.
1013
 
1014
Fine tuning of the installation directories:
1015
  --bindir=DIR           user executables [EPREFIX/bin]
1016
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1017
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1018
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1019
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1020
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1021
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1022
  --libdir=DIR           object code libraries [EPREFIX/lib]
1023
  --includedir=DIR       C header files [PREFIX/include]
1024
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1025
  --infodir=DIR          info documentation [PREFIX/info]
1026
  --mandir=DIR           man documentation [PREFIX/man]
1027
_ACEOF
1028
 
1029
  cat <<\_ACEOF
1030
 
1031
Program names:
1032
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1033
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1034
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1035
 
1036
System types:
1037
  --build=BUILD     configure for building on BUILD [guessed]
1038
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1039
_ACEOF
1040
fi
1041
 
1042
if test -n "$ac_init_help"; then
1043
  case $ac_init_help in
1044
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1045
   esac
1046
  cat <<\_ACEOF
1047
 
1048
Optional Features:
1049
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1050
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1051
  --enable-multilib         build many library versions (default)
1052
  --enable-target-optspace  optimize for space
1053
  --enable-malloc-debugging indicate malloc debugging requested
1054
  --enable-newlib-multithread        enable support for multiple threads
1055
  --enable-newlib-iconv     enable iconv library support
1056
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1057
  --disable-newlib-io-float disable printf/scanf family float support
1058
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1059
  --disable-dependency-tracking  speeds up one-time build
1060
  --enable-dependency-tracking   do not reject slow dependency extractors
1061
  --enable-maintainer-mode  enable make rules and dependencies not useful
1062
                          (and sometimes confusing) to the casual installer
1063
  --enable-shared[=PKGS]
1064
                          build shared libraries [default=yes]
1065
  --enable-static[=PKGS]
1066
                          build static libraries [default=yes]
1067
  --enable-fast-install[=PKGS]
1068
                          optimize for fast installation [default=yes]
1069
  --disable-libtool-lock  avoid locking (might break parallel builds)
1070
 
1071
Optional Packages:
1072
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1073
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1074
  --with-pic              try to use only PIC/non-PIC objects [default=use
1075
                          both]
1076
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1077
 
1078
Some influential environment variables:
1079
  CCAS        assembler compiler command (defaults to CC)
1080
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1081
  CC          C compiler command
1082
  CFLAGS      C compiler flags
1083
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1084
              nonstandard directory 
1085
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1086
              headers in a nonstandard directory 
1087
  CPP         C preprocessor
1088
 
1089
Use these variables to override the choices made by `configure' or to help
1090
it to find libraries and programs with nonstandard names/locations.
1091
 
1092
_ACEOF
1093
fi
1094
 
1095
if test "$ac_init_help" = "recursive"; then
1096
  # If there are subdirs, report their specific --help.
1097
  ac_popdir=`pwd`
1098
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099
    test -d $ac_dir || continue
1100
    ac_builddir=.
1101
 
1102
if test "$ac_dir" != .; then
1103
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104
  # A "../" for each directory in $ac_dir_suffix.
1105
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106
else
1107
  ac_dir_suffix= ac_top_builddir=
1108
fi
1109
 
1110
case $srcdir in
1111
  .)  # No --srcdir option.  We are building in place.
1112
    ac_srcdir=.
1113
    if test -z "$ac_top_builddir"; then
1114
       ac_top_srcdir=.
1115
    else
1116
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117
    fi ;;
1118
  [\\/]* | ?:[\\/]* )  # Absolute path.
1119
    ac_srcdir=$srcdir$ac_dir_suffix;
1120
    ac_top_srcdir=$srcdir ;;
1121
  *) # Relative path.
1122
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124
esac
1125
 
1126
# Do not use `cd foo && pwd` to compute absolute paths, because
1127
# the directories may not exist.
1128
case `pwd` in
1129
.) ac_abs_builddir="$ac_dir";;
1130
*)
1131
  case "$ac_dir" in
1132
  .) ac_abs_builddir=`pwd`;;
1133
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135
  esac;;
1136
esac
1137
case $ac_abs_builddir in
1138
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1139
*)
1140
  case ${ac_top_builddir}. in
1141
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144
  esac;;
1145
esac
1146
case $ac_abs_builddir in
1147
.) ac_abs_srcdir=$ac_srcdir;;
1148
*)
1149
  case $ac_srcdir in
1150
  .) ac_abs_srcdir=$ac_abs_builddir;;
1151
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153
  esac;;
1154
esac
1155
case $ac_abs_builddir in
1156
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1157
*)
1158
  case $ac_top_srcdir in
1159
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162
  esac;;
1163
esac
1164
 
1165
    cd $ac_dir
1166
    # Check for guested configure; otherwise get Cygnus style configure.
1167
    if test -f $ac_srcdir/configure.gnu; then
1168
      echo
1169
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1170
    elif test -f $ac_srcdir/configure; then
1171
      echo
1172
      $SHELL $ac_srcdir/configure  --help=recursive
1173
    elif test -f $ac_srcdir/configure.ac ||
1174
           test -f $ac_srcdir/configure.in; then
1175
      echo
1176
      $ac_configure --help
1177
    else
1178
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179
    fi
1180
    cd $ac_popdir
1181
  done
1182
fi
1183
 
1184
test -n "$ac_init_help" && exit 0
1185
if $ac_init_version; then
1186
  cat <<\_ACEOF
1187
newlib configure 1.17.0
1188
generated by GNU Autoconf 2.59
1189
 
1190
Copyright (C) 2003 Free Software Foundation, Inc.
1191
This configure script is free software; the Free Software Foundation
1192
gives unlimited permission to copy, distribute and modify it.
1193
_ACEOF
1194
  exit 0
1195
fi
1196
exec 5>config.log
1197
cat >&5 <<_ACEOF
1198
This file contains any messages produced by compilers while
1199
running configure, to aid debugging if configure makes a mistake.
1200
 
1201
It was created by newlib $as_me 1.17.0, which was
1202
generated by GNU Autoconf 2.59.  Invocation command line was
1203
 
1204
  $ $0 $@
1205
 
1206
_ACEOF
1207
{
1208
cat <<_ASUNAME
1209
## --------- ##
1210
## Platform. ##
1211
## --------- ##
1212
 
1213
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
 
1219
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1221
 
1222
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1223
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1224
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1226
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1227
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1228
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1229
 
1230
_ASUNAME
1231
 
1232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233
for as_dir in $PATH
1234
do
1235
  IFS=$as_save_IFS
1236
  test -z "$as_dir" && as_dir=.
1237
  echo "PATH: $as_dir"
1238
done
1239
 
1240
} >&5
1241
 
1242
cat >&5 <<_ACEOF
1243
 
1244
 
1245
## ----------- ##
1246
## Core tests. ##
1247
## ----------- ##
1248
 
1249
_ACEOF
1250
 
1251
 
1252
# Keep a trace of the command line.
1253
# Strip out --no-create and --no-recursion so they do not pile up.
1254
# Strip out --silent because we don't want to record it for future runs.
1255
# Also quote any args containing shell meta-characters.
1256
# Make two passes to allow for proper duplicate-argument suppression.
1257
ac_configure_args=
1258
ac_configure_args0=
1259
ac_configure_args1=
1260
ac_sep=
1261
ac_must_keep_next=false
1262
for ac_pass in 1 2
1263
do
1264
  for ac_arg
1265
  do
1266
    case $ac_arg in
1267
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269
    | -silent | --silent | --silen | --sile | --sil)
1270
      continue ;;
1271
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273
    esac
1274
    case $ac_pass in
1275
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276
    2)
1277
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278
      if test $ac_must_keep_next = true; then
1279
        ac_must_keep_next=false # Got value, back to normal.
1280
      else
1281
        case $ac_arg in
1282
          *=* | --config-cache | -C | -disable-* | --disable-* \
1283
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285
          | -with-* | --with-* | -without-* | --without-* | --x)
1286
            case "$ac_configure_args0 " in
1287
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288
            esac
1289
            ;;
1290
          -* ) ac_must_keep_next=true ;;
1291
        esac
1292
      fi
1293
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294
      # Get rid of the leading space.
1295
      ac_sep=" "
1296
      ;;
1297
    esac
1298
  done
1299
done
1300
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
 
1303
# When interrupted or exit'd, cleanup temporary files, and complete
1304
# config.log.  We remove comments because anyway the quotes in there
1305
# would cause problems or look ugly.
1306
# WARNING: Be sure not to use single quotes in there, as some shells,
1307
# such as our DU 5.0 friend, will then `close' the trap.
1308
trap 'exit_status=$?
1309
  # Save into config.log some information that might help in debugging.
1310
  {
1311
    echo
1312
 
1313
    cat <<\_ASBOX
1314
## ---------------- ##
1315
## Cache variables. ##
1316
## ---------------- ##
1317
_ASBOX
1318
    echo
1319
    # The following way of writing the cache mishandles newlines in values,
1320
{
1321
  (set) 2>&1 |
1322
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323
    *ac_space=\ *)
1324
      sed -n \
1325
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327
      ;;
1328
    *)
1329
      sed -n \
1330
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331
      ;;
1332
    esac;
1333
}
1334
    echo
1335
 
1336
    cat <<\_ASBOX
1337
## ----------------- ##
1338
## Output variables. ##
1339
## ----------------- ##
1340
_ASBOX
1341
    echo
1342
    for ac_var in $ac_subst_vars
1343
    do
1344
      eval ac_val=$`echo $ac_var`
1345
      echo "$ac_var='"'"'$ac_val'"'"'"
1346
    done | sort
1347
    echo
1348
 
1349
    if test -n "$ac_subst_files"; then
1350
      cat <<\_ASBOX
1351
## ------------- ##
1352
## Output files. ##
1353
## ------------- ##
1354
_ASBOX
1355
      echo
1356
      for ac_var in $ac_subst_files
1357
      do
1358
        eval ac_val=$`echo $ac_var`
1359
        echo "$ac_var='"'"'$ac_val'"'"'"
1360
      done | sort
1361
      echo
1362
    fi
1363
 
1364
    if test -s confdefs.h; then
1365
      cat <<\_ASBOX
1366
## ----------- ##
1367
## confdefs.h. ##
1368
## ----------- ##
1369
_ASBOX
1370
      echo
1371
      sed "/^$/d" confdefs.h | sort
1372
      echo
1373
    fi
1374
    test "$ac_signal" != 0 &&
1375
      echo "$as_me: caught signal $ac_signal"
1376
    echo "$as_me: exit $exit_status"
1377
  } >&5
1378
  rm -f core *.core &&
1379
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380
    exit $exit_status
1381
     ' 0
1382
for ac_signal in 1 2 13 15; do
1383
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384
done
1385
ac_signal=0
1386
 
1387
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1388
rm -rf conftest* confdefs.h
1389
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390
echo >confdefs.h
1391
 
1392
# Predefined preprocessor variables.
1393
 
1394
cat >>confdefs.h <<_ACEOF
1395
#define PACKAGE_NAME "$PACKAGE_NAME"
1396
_ACEOF
1397
 
1398
 
1399
cat >>confdefs.h <<_ACEOF
1400
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401
_ACEOF
1402
 
1403
 
1404
cat >>confdefs.h <<_ACEOF
1405
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1406
_ACEOF
1407
 
1408
 
1409
cat >>confdefs.h <<_ACEOF
1410
#define PACKAGE_STRING "$PACKAGE_STRING"
1411
_ACEOF
1412
 
1413
 
1414
cat >>confdefs.h <<_ACEOF
1415
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416
_ACEOF
1417
 
1418
 
1419
# Let the site file select an alternate cache file if it wants to.
1420
# Prefer explicitly selected file to automatically selected ones.
1421
if test -z "$CONFIG_SITE"; then
1422
  if test "x$prefix" != xNONE; then
1423
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424
  else
1425
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426
  fi
1427
fi
1428
for ac_site_file in $CONFIG_SITE; do
1429
  if test -r "$ac_site_file"; then
1430
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431
echo "$as_me: loading site script $ac_site_file" >&6;}
1432
    sed 's/^/| /' "$ac_site_file" >&5
1433
    . "$ac_site_file"
1434
  fi
1435
done
1436
 
1437
if test -r "$cache_file"; then
1438
  # Some versions of bash will fail to source /dev/null (special
1439
  # files actually), so we avoid doing that.
1440
  if test -f "$cache_file"; then
1441
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442
echo "$as_me: loading cache $cache_file" >&6;}
1443
    case $cache_file in
1444
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1445
      *)                      . ./$cache_file;;
1446
    esac
1447
  fi
1448
else
1449
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450
echo "$as_me: creating cache $cache_file" >&6;}
1451
  >$cache_file
1452
fi
1453
 
1454
# Check that the precious variables saved in the cache have kept the same
1455
# value.
1456
ac_cache_corrupted=false
1457
for ac_var in `(set) 2>&1 |
1458
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460
  eval ac_new_set=\$ac_env_${ac_var}_set
1461
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462
  eval ac_new_val="\$ac_env_${ac_var}_value"
1463
  case $ac_old_set,$ac_new_set in
1464
    set,)
1465
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467
      ac_cache_corrupted=: ;;
1468
    ,set)
1469
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471
      ac_cache_corrupted=: ;;
1472
    ,);;
1473
    *)
1474
      if test "x$ac_old_val" != "x$ac_new_val"; then
1475
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478
echo "$as_me:   former value:  $ac_old_val" >&2;}
1479
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480
echo "$as_me:   current value: $ac_new_val" >&2;}
1481
        ac_cache_corrupted=:
1482
      fi;;
1483
  esac
1484
  # Pass precious variables to config.status.
1485
  if test "$ac_new_set" = set; then
1486
    case $ac_new_val in
1487
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489
    *) ac_arg=$ac_var=$ac_new_val ;;
1490
    esac
1491
    case " $ac_configure_args " in
1492
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494
    esac
1495
  fi
1496
done
1497
if $ac_cache_corrupted; then
1498
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502
   { (exit 1); exit 1; }; }
1503
fi
1504
 
1505
ac_ext=c
1506
ac_cpp='$CPP $CPPFLAGS'
1507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
 
1511
 
1512
 
1513
 
1514
 
1515
 
1516
 
1517
 
1518
 
1519
 
1520
 
1521
 
1522
 
1523
 
1524
 
1525
 
1526
 
1527
 
1528
 
1529
 
1530
 
1531
 
1532
 
1533
 
1534
 
1535
 
1536
 
1537
 
1538
 
1539
ac_aux_dir=
1540
for ac_dir in ../../.. $srcdir/../../..; do
1541
  if test -f $ac_dir/install-sh; then
1542
    ac_aux_dir=$ac_dir
1543
    ac_install_sh="$ac_aux_dir/install-sh -c"
1544
    break
1545
  elif test -f $ac_dir/install.sh; then
1546
    ac_aux_dir=$ac_dir
1547
    ac_install_sh="$ac_aux_dir/install.sh -c"
1548
    break
1549
  elif test -f $ac_dir/shtool; then
1550
    ac_aux_dir=$ac_dir
1551
    ac_install_sh="$ac_aux_dir/shtool install -c"
1552
    break
1553
  fi
1554
done
1555
if test -z "$ac_aux_dir"; then
1556
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&5
1557
echo "$as_me: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&2;}
1558
   { (exit 1); exit 1; }; }
1559
fi
1560
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
 
1564
 
1565
 
1566
# Make sure we can run config.sub.
1567
$ac_config_sub sun4 >/dev/null 2>&1 ||
1568
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1569
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1570
   { (exit 1); exit 1; }; }
1571
 
1572
echo "$as_me:$LINENO: checking build system type" >&5
1573
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1574
if test "${ac_cv_build+set}" = set; then
1575
  echo $ECHO_N "(cached) $ECHO_C" >&6
1576
else
1577
  ac_cv_build_alias=$build_alias
1578
test -z "$ac_cv_build_alias" &&
1579
  ac_cv_build_alias=`$ac_config_guess`
1580
test -z "$ac_cv_build_alias" &&
1581
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1582
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1583
   { (exit 1); exit 1; }; }
1584
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1585
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1586
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1587
   { (exit 1); exit 1; }; }
1588
 
1589
fi
1590
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1591
echo "${ECHO_T}$ac_cv_build" >&6
1592
build=$ac_cv_build
1593
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1596
 
1597
 
1598
am__api_version="1.9"
1599
# Find a good install program.  We prefer a C program (faster),
1600
# so one script is as good as another.  But avoid the broken or
1601
# incompatible versions:
1602
# SysV /etc/install, /usr/sbin/install
1603
# SunOS /usr/etc/install
1604
# IRIX /sbin/install
1605
# AIX /bin/install
1606
# AmigaOS /C/install, which installs bootblocks on floppy discs
1607
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1608
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1609
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1610
# OS/2's system install, which has a completely different semantic
1611
# ./install, which can be erroneously created by make from ./install.sh.
1612
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1613
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1614
if test -z "$INSTALL"; then
1615
if test "${ac_cv_path_install+set}" = set; then
1616
  echo $ECHO_N "(cached) $ECHO_C" >&6
1617
else
1618
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619
for as_dir in $PATH
1620
do
1621
  IFS=$as_save_IFS
1622
  test -z "$as_dir" && as_dir=.
1623
  # Account for people who put trailing slashes in PATH elements.
1624
case $as_dir/ in
1625
  ./ | .// | /cC/* | \
1626
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1627
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1628
  /usr/ucb/* ) ;;
1629
  *)
1630
    # OSF1 and SCO ODT 3.0 have their own names for install.
1631
    # Don't use installbsd from OSF since it installs stuff as root
1632
    # by default.
1633
    for ac_prog in ginstall scoinst install; do
1634
      for ac_exec_ext in '' $ac_executable_extensions; do
1635
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1636
          if test $ac_prog = install &&
1637
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1638
            # AIX install.  It has an incompatible calling convention.
1639
            :
1640
          elif test $ac_prog = install &&
1641
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1642
            # program-specific install script used by HP pwplus--don't use.
1643
            :
1644
          else
1645
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1646
            break 3
1647
          fi
1648
        fi
1649
      done
1650
    done
1651
    ;;
1652
esac
1653
done
1654
 
1655
 
1656
fi
1657
  if test "${ac_cv_path_install+set}" = set; then
1658
    INSTALL=$ac_cv_path_install
1659
  else
1660
    # As a last resort, use the slow shell script.  We don't cache a
1661
    # path for INSTALL within a source directory, because that will
1662
    # break other packages using the cache if that directory is
1663
    # removed, or if the path is relative.
1664
    INSTALL=$ac_install_sh
1665
  fi
1666
fi
1667
echo "$as_me:$LINENO: result: $INSTALL" >&5
1668
echo "${ECHO_T}$INSTALL" >&6
1669
 
1670
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1671
# It thinks the first close brace ends the variable substitution.
1672
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1673
 
1674
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1675
 
1676
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1677
 
1678
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1679
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1680
# Just in case
1681
sleep 1
1682
echo timestamp > conftest.file
1683
# Do `set' in a subshell so we don't clobber the current shell's
1684
# arguments.  Must try -L first in case configure is actually a
1685
# symlink; some systems play weird games with the mod time of symlinks
1686
# (eg FreeBSD returns the mod time of the symlink's containing
1687
# directory).
1688
if (
1689
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1690
   if test "$*" = "X"; then
1691
      # -L didn't work.
1692
      set X `ls -t $srcdir/configure conftest.file`
1693
   fi
1694
   rm -f conftest.file
1695
   if test "$*" != "X $srcdir/configure conftest.file" \
1696
      && test "$*" != "X conftest.file $srcdir/configure"; then
1697
 
1698
      # If neither matched, then we have a broken ls.  This can happen
1699
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1700
      # broken ls alias from the environment.  This has actually
1701
      # happened.  Such a system could not be considered "sane".
1702
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1703
alias in your environment" >&5
1704
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1705
alias in your environment" >&2;}
1706
   { (exit 1); exit 1; }; }
1707
   fi
1708
 
1709
   test "$2" = conftest.file
1710
   )
1711
then
1712
   # Ok.
1713
   :
1714
else
1715
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1716
Check your system clock" >&5
1717
echo "$as_me: error: newly created file is older than distributed files!
1718
Check your system clock" >&2;}
1719
   { (exit 1); exit 1; }; }
1720
fi
1721
echo "$as_me:$LINENO: result: yes" >&5
1722
echo "${ECHO_T}yes" >&6
1723
test "$program_prefix" != NONE &&
1724
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1725
# Use a double $ so make ignores it.
1726
test "$program_suffix" != NONE &&
1727
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1728
# Double any \ or $.  echo might interpret backslashes.
1729
# By default was `s,x,x', remove it if useless.
1730
cat <<\_ACEOF >conftest.sed
1731
s/[\\$]/&&/g;s/;s,x,x,$//
1732
_ACEOF
1733
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1734
rm conftest.sed
1735
 
1736
# expand $ac_aux_dir to an absolute path
1737
am_aux_dir=`cd $ac_aux_dir && pwd`
1738
 
1739
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1740
# Use eval to expand $SHELL
1741
if eval "$MISSING --run true"; then
1742
  am_missing_run="$MISSING --run "
1743
else
1744
  am_missing_run=
1745
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1746
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1747
fi
1748
 
1749
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1750
  # We used to keeping the `.' as first argument, in order to
1751
  # allow $(mkdir_p) to be used without argument.  As in
1752
  #   $(mkdir_p) $(somedir)
1753
  # where $(somedir) is conditionally defined.  However this is wrong
1754
  # for two reasons:
1755
  #  1. if the package is installed by a user who cannot write `.'
1756
  #     make install will fail,
1757
  #  2. the above comment should most certainly read
1758
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1759
  #     so it does not work when $(somedir) is undefined and
1760
  #     $(DESTDIR) is not.
1761
  #  To support the latter case, we have to write
1762
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1763
  #  so the `.' trick is pointless.
1764
  mkdir_p='mkdir -p --'
1765
else
1766
  # On NextStep and OpenStep, the `mkdir' command does not
1767
  # recognize any option.  It will interpret all options as
1768
  # directories to create, and then abort because `.' already
1769
  # exists.
1770
  for d in ./-p ./--version;
1771
  do
1772
    test -d $d && rmdir $d
1773
  done
1774
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1775
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1776
    mkdir_p='$(mkinstalldirs)'
1777
  else
1778
    mkdir_p='$(install_sh) -d'
1779
  fi
1780
fi
1781
 
1782
for ac_prog in gawk mawk nawk awk
1783
do
1784
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1785
set dummy $ac_prog; ac_word=$2
1786
echo "$as_me:$LINENO: checking for $ac_word" >&5
1787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788
if test "${ac_cv_prog_AWK+set}" = set; then
1789
  echo $ECHO_N "(cached) $ECHO_C" >&6
1790
else
1791
  if test -n "$AWK"; then
1792
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1793
else
1794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795
for as_dir in $PATH
1796
do
1797
  IFS=$as_save_IFS
1798
  test -z "$as_dir" && as_dir=.
1799
  for ac_exec_ext in '' $ac_executable_extensions; do
1800
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801
    ac_cv_prog_AWK="$ac_prog"
1802
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803
    break 2
1804
  fi
1805
done
1806
done
1807
 
1808
fi
1809
fi
1810
AWK=$ac_cv_prog_AWK
1811
if test -n "$AWK"; then
1812
  echo "$as_me:$LINENO: result: $AWK" >&5
1813
echo "${ECHO_T}$AWK" >&6
1814
else
1815
  echo "$as_me:$LINENO: result: no" >&5
1816
echo "${ECHO_T}no" >&6
1817
fi
1818
 
1819
  test -n "$AWK" && break
1820
done
1821
 
1822
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1823
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1824
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1825
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
1827
else
1828
  cat >conftest.make <<\_ACEOF
1829
all:
1830
        @echo 'ac_maketemp="$(MAKE)"'
1831
_ACEOF
1832
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1833
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1834
if test -n "$ac_maketemp"; then
1835
  eval ac_cv_prog_make_${ac_make}_set=yes
1836
else
1837
  eval ac_cv_prog_make_${ac_make}_set=no
1838
fi
1839
rm -f conftest.make
1840
fi
1841
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1842
  echo "$as_me:$LINENO: result: yes" >&5
1843
echo "${ECHO_T}yes" >&6
1844
  SET_MAKE=
1845
else
1846
  echo "$as_me:$LINENO: result: no" >&5
1847
echo "${ECHO_T}no" >&6
1848
  SET_MAKE="MAKE=${MAKE-make}"
1849
fi
1850
 
1851
rm -rf .tst 2>/dev/null
1852
mkdir .tst 2>/dev/null
1853
if test -d .tst; then
1854
  am__leading_dot=.
1855
else
1856
  am__leading_dot=_
1857
fi
1858
rmdir .tst 2>/dev/null
1859
 
1860
DEPDIR="${am__leading_dot}deps"
1861
 
1862
          ac_config_commands="$ac_config_commands depfiles"
1863
 
1864
 
1865
am_make=${MAKE-make}
1866
cat > confinc << 'END'
1867
am__doit:
1868
        @echo done
1869
.PHONY: am__doit
1870
END
1871
# If we don't find an include directive, just comment out the code.
1872
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1873
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1874
am__include="#"
1875
am__quote=
1876
_am_result=none
1877
# First try GNU make style include.
1878
echo "include confinc" > confmf
1879
# We grep out `Entering directory' and `Leaving directory'
1880
# messages which can occur if `w' ends up in MAKEFLAGS.
1881
# In particular we don't look at `^make:' because GNU make might
1882
# be invoked under some other name (usually "gmake"), in which
1883
# case it prints its new name instead of `make'.
1884
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1885
   am__include=include
1886
   am__quote=
1887
   _am_result=GNU
1888
fi
1889
# Now try BSD make style include.
1890
if test "$am__include" = "#"; then
1891
   echo '.include "confinc"' > confmf
1892
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1893
      am__include=.include
1894
      am__quote="\""
1895
      _am_result=BSD
1896
   fi
1897
fi
1898
 
1899
 
1900
echo "$as_me:$LINENO: result: $_am_result" >&5
1901
echo "${ECHO_T}$_am_result" >&6
1902
rm -f confinc confmf
1903
 
1904
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1905
if test "${enable_dependency_tracking+set}" = set; then
1906
  enableval="$enable_dependency_tracking"
1907
 
1908
fi;
1909
if test "x$enable_dependency_tracking" != xno; then
1910
  am_depcomp="$ac_aux_dir/depcomp"
1911
  AMDEPBACKSLASH='\'
1912
fi
1913
 
1914
 
1915
if test "x$enable_dependency_tracking" != xno; then
1916
  AMDEP_TRUE=
1917
  AMDEP_FALSE='#'
1918
else
1919
  AMDEP_TRUE='#'
1920
  AMDEP_FALSE=
1921
fi
1922
 
1923
 
1924
 
1925
 
1926
# Check whether --enable-multilib or --disable-multilib was given.
1927
if test "${enable_multilib+set}" = set; then
1928
  enableval="$enable_multilib"
1929
  case "${enableval}" in
1930
  yes) multilib=yes ;;
1931
  no)  multilib=no ;;
1932
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1933
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1934
   { (exit 1); exit 1; }; } ;;
1935
 esac
1936
else
1937
  multilib=yes
1938
fi;
1939
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1940
if test "${enable_target_optspace+set}" = set; then
1941
  enableval="$enable_target_optspace"
1942
  case "${enableval}" in
1943
  yes) target_optspace=yes ;;
1944
  no)  target_optspace=no ;;
1945
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1946
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1947
   { (exit 1); exit 1; }; } ;;
1948
 esac
1949
else
1950
  target_optspace=
1951
fi;
1952
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1953
if test "${enable_malloc_debugging+set}" = set; then
1954
  enableval="$enable_malloc_debugging"
1955
  case "${enableval}" in
1956
  yes) malloc_debugging=yes ;;
1957
  no)  malloc_debugging=no ;;
1958
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1959
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1960
   { (exit 1); exit 1; }; } ;;
1961
 esac
1962
else
1963
  malloc_debugging=
1964
fi;
1965
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1966
if test "${enable_newlib_multithread+set}" = set; then
1967
  enableval="$enable_newlib_multithread"
1968
  case "${enableval}" in
1969
  yes) newlib_multithread=yes ;;
1970
  no)  newlib_multithread=no ;;
1971
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1972
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1973
   { (exit 1); exit 1; }; } ;;
1974
 esac
1975
else
1976
  newlib_multithread=yes
1977
fi;
1978
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1979
if test "${enable_newlib_iconv+set}" = set; then
1980
  enableval="$enable_newlib_iconv"
1981
  if test "${newlib_iconv+set}" != set; then
1982
   case "${enableval}" in
1983
     yes) newlib_iconv=yes ;;
1984
     no)  newlib_iconv=no ;;
1985
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1986
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1987
   { (exit 1); exit 1; }; } ;;
1988
   esac
1989
 fi
1990
else
1991
  newlib_iconv=${newlib_iconv}
1992
fi;
1993
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1994
if test "${enable_newlib_elix_level+set}" = set; then
1995
  enableval="$enable_newlib_elix_level"
1996
  case "${enableval}" in
1997
  0)   newlib_elix_level=0 ;;
1998
  1)   newlib_elix_level=1 ;;
1999
  2)   newlib_elix_level=2 ;;
2000
  3)   newlib_elix_level=3 ;;
2001
  4)   newlib_elix_level=4 ;;
2002
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2003
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2004
   { (exit 1); exit 1; }; } ;;
2005
 esac
2006
else
2007
  newlib_elix_level=0
2008
fi;
2009
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
2010
if test "${enable_newlib_io_float+set}" = set; then
2011
  enableval="$enable_newlib_io_float"
2012
  case "${enableval}" in
2013
  yes) newlib_io_float=yes ;;
2014
  no)  newlib_io_float=no ;;
2015
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2016
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2017
   { (exit 1); exit 1; }; } ;;
2018
 esac
2019
else
2020
  newlib_io_float=yes
2021
fi;
2022
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
2023
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2024
  enableval="$enable_newlib_supplied_syscalls"
2025
  case "${enableval}" in
2026
  yes) newlib_may_supply_syscalls=yes ;;
2027
  no)  newlib_may_supply_syscalls=no ;;
2028
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2029
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2030
   { (exit 1); exit 1; }; } ;;
2031
 esac
2032
else
2033
  newlib_may_supply_syscalls=yes
2034
fi;
2035
 
2036
 
2037
if test x${newlib_may_supply_syscalls} = xyes; then
2038
  MAY_SUPPLY_SYSCALLS_TRUE=
2039
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2040
else
2041
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2042
  MAY_SUPPLY_SYSCALLS_FALSE=
2043
fi
2044
 
2045
 
2046
 
2047
test -z "${with_target_subdir}" && with_target_subdir=.
2048
 
2049
if test "${srcdir}" = "."; then
2050
  if test "${with_target_subdir}" != "."; then
2051
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2052
  else
2053
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2054
  fi
2055
else
2056
  newlib_basedir="${srcdir}/../.."
2057
fi
2058
 
2059
 
2060
echo "$as_me:$LINENO: checking host system type" >&5
2061
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2062
if test "${ac_cv_host+set}" = set; then
2063
  echo $ECHO_N "(cached) $ECHO_C" >&6
2064
else
2065
  ac_cv_host_alias=$host_alias
2066
test -z "$ac_cv_host_alias" &&
2067
  ac_cv_host_alias=$ac_cv_build_alias
2068
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2069
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2070
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2071
   { (exit 1); exit 1; }; }
2072
 
2073
fi
2074
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2075
echo "${ECHO_T}$ac_cv_host" >&6
2076
host=$ac_cv_host
2077
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2078
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2079
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2080
 
2081
 
2082
 
2083
# test to see if srcdir already configured
2084
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2085
   test -f $srcdir/config.status; then
2086
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2087
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2088
   { (exit 1); exit 1; }; }
2089
fi
2090
 
2091
# test whether we have cygpath
2092
if test -z "$CYGPATH_W"; then
2093
  if (cygpath --version) >/dev/null 2>/dev/null; then
2094
    CYGPATH_W='cygpath -w'
2095
  else
2096
    CYGPATH_W=echo
2097
  fi
2098
fi
2099
 
2100
 
2101
# Define the identity of the package.
2102
 PACKAGE='newlib'
2103
 VERSION='1.17.0'
2104
 
2105
 
2106
# Some tools Automake needs.
2107
 
2108
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2109
 
2110
 
2111
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2112
 
2113
 
2114
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2115
 
2116
 
2117
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2118
 
2119
 
2120
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2121
 
2122
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2123
 
2124
# Installed binaries are usually stripped using `strip' when the user
2125
# run `make install-strip'.  However `strip' might not be the right
2126
# tool to use in cross-compilation environments, therefore Automake
2127
# will honor the `STRIP' environment variable to overrule this program.
2128
if test "$cross_compiling" != no; then
2129
  if test -n "$ac_tool_prefix"; then
2130
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2131
set dummy ${ac_tool_prefix}strip; ac_word=$2
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
if test "${ac_cv_prog_STRIP+set}" = set; then
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
2136
else
2137
  if test -n "$STRIP"; then
2138
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2139
else
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
for as_dir in $PATH
2142
do
2143
  IFS=$as_save_IFS
2144
  test -z "$as_dir" && as_dir=.
2145
  for ac_exec_ext in '' $ac_executable_extensions; do
2146
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2148
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149
    break 2
2150
  fi
2151
done
2152
done
2153
 
2154
fi
2155
fi
2156
STRIP=$ac_cv_prog_STRIP
2157
if test -n "$STRIP"; then
2158
  echo "$as_me:$LINENO: result: $STRIP" >&5
2159
echo "${ECHO_T}$STRIP" >&6
2160
else
2161
  echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2163
fi
2164
 
2165
fi
2166
if test -z "$ac_cv_prog_STRIP"; then
2167
  ac_ct_STRIP=$STRIP
2168
  # Extract the first word of "strip", so it can be a program name with args.
2169
set dummy strip; ac_word=$2
2170
echo "$as_me:$LINENO: checking for $ac_word" >&5
2171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2173
  echo $ECHO_N "(cached) $ECHO_C" >&6
2174
else
2175
  if test -n "$ac_ct_STRIP"; then
2176
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2177
else
2178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179
for as_dir in $PATH
2180
do
2181
  IFS=$as_save_IFS
2182
  test -z "$as_dir" && as_dir=.
2183
  for ac_exec_ext in '' $ac_executable_extensions; do
2184
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185
    ac_cv_prog_ac_ct_STRIP="strip"
2186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187
    break 2
2188
  fi
2189
done
2190
done
2191
 
2192
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2193
fi
2194
fi
2195
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2196
if test -n "$ac_ct_STRIP"; then
2197
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2198
echo "${ECHO_T}$ac_ct_STRIP" >&6
2199
else
2200
  echo "$as_me:$LINENO: result: no" >&5
2201
echo "${ECHO_T}no" >&6
2202
fi
2203
 
2204
  STRIP=$ac_ct_STRIP
2205
else
2206
  STRIP="$ac_cv_prog_STRIP"
2207
fi
2208
 
2209
fi
2210
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2211
 
2212
# We need awk for the "check" target.  The system "awk" is bad on
2213
# some platforms.
2214
# Always define AMTAR for backward compatibility.
2215
 
2216
AMTAR=${AMTAR-"${am_missing_run}tar"}
2217
 
2218
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2219
 
2220
 
2221
 
2222
 
2223
 
2224
 
2225
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2226
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2227
# are probably using a cross compiler, which will not be able to fully
2228
# link an executable.  This should really be fixed in autoconf
2229
# itself.
2230
 
2231
 
2232
 
2233
 
2234
 
2235
 
2236
 
2237
# Extract the first word of "gcc", so it can be a program name with args.
2238
set dummy gcc; ac_word=$2
2239
echo "$as_me:$LINENO: checking for $ac_word" >&5
2240
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241
if test "${ac_cv_prog_CC+set}" = set; then
2242
  echo $ECHO_N "(cached) $ECHO_C" >&6
2243
else
2244
  if test -n "$CC"; then
2245
  ac_cv_prog_CC="$CC" # Let the user override the test.
2246
else
2247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248
for as_dir in $PATH
2249
do
2250
  IFS=$as_save_IFS
2251
  test -z "$as_dir" && as_dir=.
2252
  for ac_exec_ext in '' $ac_executable_extensions; do
2253
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254
    ac_cv_prog_CC="gcc"
2255
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256
    break 2
2257
  fi
2258
done
2259
done
2260
 
2261
fi
2262
fi
2263
CC=$ac_cv_prog_CC
2264
if test -n "$CC"; then
2265
  echo "$as_me:$LINENO: result: $CC" >&5
2266
echo "${ECHO_T}$CC" >&6
2267
else
2268
  echo "$as_me:$LINENO: result: no" >&5
2269
echo "${ECHO_T}no" >&6
2270
fi
2271
 
2272
 
2273
depcc="$CC"   am_compiler_list=
2274
 
2275
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2276
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2277
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2278
  echo $ECHO_N "(cached) $ECHO_C" >&6
2279
else
2280
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2281
  # We make a subdir and do the tests there.  Otherwise we can end up
2282
  # making bogus files that we don't know about and never remove.  For
2283
  # instance it was reported that on HP-UX the gcc test will end up
2284
  # making a dummy file named `D' -- because `-MD' means `put the output
2285
  # in D'.
2286
  mkdir conftest.dir
2287
  # Copy depcomp to subdir because otherwise we won't find it if we're
2288
  # using a relative directory.
2289
  cp "$am_depcomp" conftest.dir
2290
  cd conftest.dir
2291
  # We will build objects and dependencies in a subdirectory because
2292
  # it helps to detect inapplicable dependency modes.  For instance
2293
  # both Tru64's cc and ICC support -MD to output dependencies as a
2294
  # side effect of compilation, but ICC will put the dependencies in
2295
  # the current directory while Tru64 will put them in the object
2296
  # directory.
2297
  mkdir sub
2298
 
2299
  am_cv_CC_dependencies_compiler_type=none
2300
  if test "$am_compiler_list" = ""; then
2301
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2302
  fi
2303
  for depmode in $am_compiler_list; do
2304
    # Setup a source with many dependencies, because some compilers
2305
    # like to wrap large dependency lists on column 80 (with \), and
2306
    # we should not choose a depcomp mode which is confused by this.
2307
    #
2308
    # We need to recreate these files for each test, as the compiler may
2309
    # overwrite some of them when testing with obscure command lines.
2310
    # This happens at least with the AIX C compiler.
2311
    : > sub/conftest.c
2312
    for i in 1 2 3 4 5 6; do
2313
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2314
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2315
      # Solaris 8's {/usr,}/bin/sh.
2316
      touch sub/conftst$i.h
2317
    done
2318
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2319
 
2320
    case $depmode in
2321
    nosideeffect)
2322
      # after this tag, mechanisms are not by side-effect, so they'll
2323
      # only be used when explicitly requested
2324
      if test "x$enable_dependency_tracking" = xyes; then
2325
        continue
2326
      else
2327
        break
2328
      fi
2329
      ;;
2330
    none) break ;;
2331
    esac
2332
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2333
    # mode.  It turns out that the SunPro C++ compiler does not properly
2334
    # handle `-M -o', and we need to detect this.
2335
    if depmode=$depmode \
2336
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2337
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2338
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2339
         >/dev/null 2>conftest.err &&
2340
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2341
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2342
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2343
      # icc doesn't choke on unknown options, it will just issue warnings
2344
      # or remarks (even with -Werror).  So we grep stderr for any message
2345
      # that says an option was ignored or not supported.
2346
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2347
      #   icc: Command line warning: ignoring option '-M'; no argument required
2348
      # The diagnosis changed in icc 8.0:
2349
      #   icc: Command line remark: option '-MP' not supported
2350
      if (grep 'ignoring option' conftest.err ||
2351
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2352
        am_cv_CC_dependencies_compiler_type=$depmode
2353
        break
2354
      fi
2355
    fi
2356
  done
2357
 
2358
  cd ..
2359
  rm -rf conftest.dir
2360
else
2361
  am_cv_CC_dependencies_compiler_type=none
2362
fi
2363
 
2364
fi
2365
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2366
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2367
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2368
 
2369
 
2370
 
2371
if
2372
  test "x$enable_dependency_tracking" != xno \
2373
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2374
  am__fastdepCC_TRUE=
2375
  am__fastdepCC_FALSE='#'
2376
else
2377
  am__fastdepCC_TRUE='#'
2378
  am__fastdepCC_FALSE=
2379
fi
2380
 
2381
 
2382
if test -z "$CC"; then
2383
  # Extract the first word of "cc", so it can be a program name with args.
2384
set dummy cc; ac_word=$2
2385
echo "$as_me:$LINENO: checking for $ac_word" >&5
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387
if test "${ac_cv_prog_CC+set}" = set; then
2388
  echo $ECHO_N "(cached) $ECHO_C" >&6
2389
else
2390
  if test -n "$CC"; then
2391
  ac_cv_prog_CC="$CC" # Let the user override the test.
2392
else
2393
  ac_prog_rejected=no
2394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395
for as_dir in $PATH
2396
do
2397
  IFS=$as_save_IFS
2398
  test -z "$as_dir" && as_dir=.
2399
  for ac_exec_ext in '' $ac_executable_extensions; do
2400
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2402
       ac_prog_rejected=yes
2403
       continue
2404
     fi
2405
    ac_cv_prog_CC="cc"
2406
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407
    break 2
2408
  fi
2409
done
2410
done
2411
 
2412
if test $ac_prog_rejected = yes; then
2413
  # We found a bogon in the path, so make sure we never use it.
2414
  set dummy $ac_cv_prog_CC
2415
  shift
2416
  if test $# != 0; then
2417
    # We chose a different compiler from the bogus one.
2418
    # However, it has the same basename, so the bogon will be chosen
2419
    # first if we set CC to just the basename; use the full file name.
2420
    shift
2421
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2422
  fi
2423
fi
2424
fi
2425
fi
2426
CC=$ac_cv_prog_CC
2427
if test -n "$CC"; then
2428
  echo "$as_me:$LINENO: result: $CC" >&5
2429
echo "${ECHO_T}$CC" >&6
2430
else
2431
  echo "$as_me:$LINENO: result: no" >&5
2432
echo "${ECHO_T}no" >&6
2433
fi
2434
 
2435
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2436
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2437
   { (exit 1); exit 1; }; }
2438
fi
2439
 
2440
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2441
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2442
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2443
  echo $ECHO_N "(cached) $ECHO_C" >&6
2444
else
2445
  cat > conftest.c <
2446
#ifdef __GNUC__
2447
  yes;
2448
#endif
2449
EOF
2450
if { ac_try='${CC-cc} -E conftest.c'
2451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452
  (eval $ac_try) 2>&5
2453
  ac_status=$?
2454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2456
  ac_cv_c_compiler_gnu=yes
2457
else
2458
  ac_cv_c_compiler_gnu=no
2459
fi
2460
fi
2461
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2462
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2463
 
2464
if test $ac_cv_c_compiler_gnu = yes; then
2465
  GCC=yes
2466
  ac_test_CFLAGS="${CFLAGS+set}"
2467
  ac_save_CFLAGS="$CFLAGS"
2468
  CFLAGS=
2469
  ac_test_CFLAGS=${CFLAGS+set}
2470
ac_save_CFLAGS=$CFLAGS
2471
CFLAGS="-g"
2472
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2473
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2474
if test "${ac_cv_prog_cc_g+set}" = set; then
2475
  echo $ECHO_N "(cached) $ECHO_C" >&6
2476
else
2477
  cat >conftest.$ac_ext <<_ACEOF
2478
/* confdefs.h.  */
2479
_ACEOF
2480
cat confdefs.h >>conftest.$ac_ext
2481
cat >>conftest.$ac_ext <<_ACEOF
2482
/* end confdefs.h.  */
2483
 
2484
int
2485
main ()
2486
{
2487
 
2488
  ;
2489
  return 0;
2490
}
2491
_ACEOF
2492
rm -f conftest.$ac_objext
2493
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494
  (eval $ac_compile) 2>conftest.er1
2495
  ac_status=$?
2496
  grep -v '^ *+' conftest.er1 >conftest.err
2497
  rm -f conftest.er1
2498
  cat conftest.err >&5
2499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
  (exit $ac_status); } &&
2501
         { ac_try='test -z "$ac_c_werror_flag"
2502
                         || test ! -s conftest.err'
2503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504
  (eval $ac_try) 2>&5
2505
  ac_status=$?
2506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
  (exit $ac_status); }; } &&
2508
         { ac_try='test -s conftest.$ac_objext'
2509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510
  (eval $ac_try) 2>&5
2511
  ac_status=$?
2512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
  (exit $ac_status); }; }; then
2514
  ac_cv_prog_cc_g=yes
2515
else
2516
  echo "$as_me: failed program was:" >&5
2517
sed 's/^/| /' conftest.$ac_ext >&5
2518
 
2519
ac_cv_prog_cc_g=no
2520
fi
2521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522
fi
2523
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2524
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2525
if test "$ac_test_CFLAGS" = set; then
2526
  CFLAGS=$ac_save_CFLAGS
2527
elif test $ac_cv_prog_cc_g = yes; then
2528
  if test "$GCC" = yes; then
2529
    CFLAGS="-g -O2"
2530
  else
2531
    CFLAGS="-g"
2532
  fi
2533
else
2534
  if test "$GCC" = yes; then
2535
    CFLAGS="-O2"
2536
  else
2537
    CFLAGS=
2538
  fi
2539
fi
2540
  if test "$ac_test_CFLAGS" = set; then
2541
    CFLAGS="$ac_save_CFLAGS"
2542
  elif test $ac_cv_prog_cc_g = yes; then
2543
    CFLAGS="-g -O2"
2544
  else
2545
    CFLAGS="-O2"
2546
  fi
2547
else
2548
  GCC=
2549
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2550
fi
2551
 
2552
 
2553
if test -n "$ac_tool_prefix"; then
2554
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2555
set dummy ${ac_tool_prefix}as; ac_word=$2
2556
echo "$as_me:$LINENO: checking for $ac_word" >&5
2557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558
if test "${ac_cv_prog_AS+set}" = set; then
2559
  echo $ECHO_N "(cached) $ECHO_C" >&6
2560
else
2561
  if test -n "$AS"; then
2562
  ac_cv_prog_AS="$AS" # Let the user override the test.
2563
else
2564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
for as_dir in $PATH
2566
do
2567
  IFS=$as_save_IFS
2568
  test -z "$as_dir" && as_dir=.
2569
  for ac_exec_ext in '' $ac_executable_extensions; do
2570
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571
    ac_cv_prog_AS="${ac_tool_prefix}as"
2572
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573
    break 2
2574
  fi
2575
done
2576
done
2577
 
2578
fi
2579
fi
2580
AS=$ac_cv_prog_AS
2581
if test -n "$AS"; then
2582
  echo "$as_me:$LINENO: result: $AS" >&5
2583
echo "${ECHO_T}$AS" >&6
2584
else
2585
  echo "$as_me:$LINENO: result: no" >&5
2586
echo "${ECHO_T}no" >&6
2587
fi
2588
 
2589
fi
2590
if test -z "$ac_cv_prog_AS"; then
2591
  ac_ct_AS=$AS
2592
  # Extract the first word of "as", so it can be a program name with args.
2593
set dummy as; ac_word=$2
2594
echo "$as_me:$LINENO: checking for $ac_word" >&5
2595
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2597
  echo $ECHO_N "(cached) $ECHO_C" >&6
2598
else
2599
  if test -n "$ac_ct_AS"; then
2600
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2601
else
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603
for as_dir in $PATH
2604
do
2605
  IFS=$as_save_IFS
2606
  test -z "$as_dir" && as_dir=.
2607
  for ac_exec_ext in '' $ac_executable_extensions; do
2608
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609
    ac_cv_prog_ac_ct_AS="as"
2610
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611
    break 2
2612
  fi
2613
done
2614
done
2615
 
2616
fi
2617
fi
2618
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2619
if test -n "$ac_ct_AS"; then
2620
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2621
echo "${ECHO_T}$ac_ct_AS" >&6
2622
else
2623
  echo "$as_me:$LINENO: result: no" >&5
2624
echo "${ECHO_T}no" >&6
2625
fi
2626
 
2627
  AS=$ac_ct_AS
2628
else
2629
  AS="$ac_cv_prog_AS"
2630
fi
2631
 
2632
if test -n "$ac_tool_prefix"; then
2633
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2634
set dummy ${ac_tool_prefix}ar; ac_word=$2
2635
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
if test "${ac_cv_prog_AR+set}" = set; then
2638
  echo $ECHO_N "(cached) $ECHO_C" >&6
2639
else
2640
  if test -n "$AR"; then
2641
  ac_cv_prog_AR="$AR" # Let the user override the test.
2642
else
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
for as_dir in $PATH
2645
do
2646
  IFS=$as_save_IFS
2647
  test -z "$as_dir" && as_dir=.
2648
  for ac_exec_ext in '' $ac_executable_extensions; do
2649
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
    break 2
2653
  fi
2654
done
2655
done
2656
 
2657
fi
2658
fi
2659
AR=$ac_cv_prog_AR
2660
if test -n "$AR"; then
2661
  echo "$as_me:$LINENO: result: $AR" >&5
2662
echo "${ECHO_T}$AR" >&6
2663
else
2664
  echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2666
fi
2667
 
2668
fi
2669
if test -z "$ac_cv_prog_AR"; then
2670
  ac_ct_AR=$AR
2671
  # Extract the first word of "ar", so it can be a program name with args.
2672
set dummy ar; ac_word=$2
2673
echo "$as_me:$LINENO: checking for $ac_word" >&5
2674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2676
  echo $ECHO_N "(cached) $ECHO_C" >&6
2677
else
2678
  if test -n "$ac_ct_AR"; then
2679
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2680
else
2681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682
for as_dir in $PATH
2683
do
2684
  IFS=$as_save_IFS
2685
  test -z "$as_dir" && as_dir=.
2686
  for ac_exec_ext in '' $ac_executable_extensions; do
2687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688
    ac_cv_prog_ac_ct_AR="ar"
2689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690
    break 2
2691
  fi
2692
done
2693
done
2694
 
2695
fi
2696
fi
2697
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2698
if test -n "$ac_ct_AR"; then
2699
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2700
echo "${ECHO_T}$ac_ct_AR" >&6
2701
else
2702
  echo "$as_me:$LINENO: result: no" >&5
2703
echo "${ECHO_T}no" >&6
2704
fi
2705
 
2706
  AR=$ac_ct_AR
2707
else
2708
  AR="$ac_cv_prog_AR"
2709
fi
2710
 
2711
if test -n "$ac_tool_prefix"; then
2712
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2713
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2714
echo "$as_me:$LINENO: checking for $ac_word" >&5
2715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716
if test "${ac_cv_prog_RANLIB+set}" = set; then
2717
  echo $ECHO_N "(cached) $ECHO_C" >&6
2718
else
2719
  if test -n "$RANLIB"; then
2720
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2721
else
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
for as_dir in $PATH
2724
do
2725
  IFS=$as_save_IFS
2726
  test -z "$as_dir" && as_dir=.
2727
  for ac_exec_ext in '' $ac_executable_extensions; do
2728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731
    break 2
2732
  fi
2733
done
2734
done
2735
 
2736
fi
2737
fi
2738
RANLIB=$ac_cv_prog_RANLIB
2739
if test -n "$RANLIB"; then
2740
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2741
echo "${ECHO_T}$RANLIB" >&6
2742
else
2743
  echo "$as_me:$LINENO: result: no" >&5
2744
echo "${ECHO_T}no" >&6
2745
fi
2746
 
2747
fi
2748
if test -z "$ac_cv_prog_RANLIB"; then
2749
  ac_ct_RANLIB=$RANLIB
2750
  # Extract the first word of "ranlib", so it can be a program name with args.
2751
set dummy ranlib; ac_word=$2
2752
echo "$as_me:$LINENO: checking for $ac_word" >&5
2753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2755
  echo $ECHO_N "(cached) $ECHO_C" >&6
2756
else
2757
  if test -n "$ac_ct_RANLIB"; then
2758
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2759
else
2760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761
for as_dir in $PATH
2762
do
2763
  IFS=$as_save_IFS
2764
  test -z "$as_dir" && as_dir=.
2765
  for ac_exec_ext in '' $ac_executable_extensions; do
2766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769
    break 2
2770
  fi
2771
done
2772
done
2773
 
2774
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2775
fi
2776
fi
2777
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2778
if test -n "$ac_ct_RANLIB"; then
2779
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2780
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2781
else
2782
  echo "$as_me:$LINENO: result: no" >&5
2783
echo "${ECHO_T}no" >&6
2784
fi
2785
 
2786
  RANLIB=$ac_ct_RANLIB
2787
else
2788
  RANLIB="$ac_cv_prog_RANLIB"
2789
fi
2790
 
2791
if test -n "$ac_tool_prefix"; then
2792
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2793
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2794
echo "$as_me:$LINENO: checking for $ac_word" >&5
2795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796
if test "${ac_cv_prog_READELF+set}" = set; then
2797
  echo $ECHO_N "(cached) $ECHO_C" >&6
2798
else
2799
  if test -n "$READELF"; then
2800
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2801
else
2802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803
for as_dir in $PATH
2804
do
2805
  IFS=$as_save_IFS
2806
  test -z "$as_dir" && as_dir=.
2807
  for ac_exec_ext in '' $ac_executable_extensions; do
2808
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2810
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811
    break 2
2812
  fi
2813
done
2814
done
2815
 
2816
fi
2817
fi
2818
READELF=$ac_cv_prog_READELF
2819
if test -n "$READELF"; then
2820
  echo "$as_me:$LINENO: result: $READELF" >&5
2821
echo "${ECHO_T}$READELF" >&6
2822
else
2823
  echo "$as_me:$LINENO: result: no" >&5
2824
echo "${ECHO_T}no" >&6
2825
fi
2826
 
2827
fi
2828
if test -z "$ac_cv_prog_READELF"; then
2829
  ac_ct_READELF=$READELF
2830
  # Extract the first word of "readelf", so it can be a program name with args.
2831
set dummy readelf; ac_word=$2
2832
echo "$as_me:$LINENO: checking for $ac_word" >&5
2833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2835
  echo $ECHO_N "(cached) $ECHO_C" >&6
2836
else
2837
  if test -n "$ac_ct_READELF"; then
2838
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2839
else
2840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841
for as_dir in $PATH
2842
do
2843
  IFS=$as_save_IFS
2844
  test -z "$as_dir" && as_dir=.
2845
  for ac_exec_ext in '' $ac_executable_extensions; do
2846
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847
    ac_cv_prog_ac_ct_READELF="readelf"
2848
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849
    break 2
2850
  fi
2851
done
2852
done
2853
 
2854
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2855
fi
2856
fi
2857
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2858
if test -n "$ac_ct_READELF"; then
2859
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2860
echo "${ECHO_T}$ac_ct_READELF" >&6
2861
else
2862
  echo "$as_me:$LINENO: result: no" >&5
2863
echo "${ECHO_T}no" >&6
2864
fi
2865
 
2866
  READELF=$ac_ct_READELF
2867
else
2868
  READELF="$ac_cv_prog_READELF"
2869
fi
2870
 
2871
 
2872
# Find a good install program.  We prefer a C program (faster),
2873
# so one script is as good as another.  But avoid the broken or
2874
# incompatible versions:
2875
# SysV /etc/install, /usr/sbin/install
2876
# SunOS /usr/etc/install
2877
# IRIX /sbin/install
2878
# AIX /bin/install
2879
# AmigaOS /C/install, which installs bootblocks on floppy discs
2880
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2881
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2882
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2883
# OS/2's system install, which has a completely different semantic
2884
# ./install, which can be erroneously created by make from ./install.sh.
2885
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2886
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2887
if test -z "$INSTALL"; then
2888
if test "${ac_cv_path_install+set}" = set; then
2889
  echo $ECHO_N "(cached) $ECHO_C" >&6
2890
else
2891
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892
for as_dir in $PATH
2893
do
2894
  IFS=$as_save_IFS
2895
  test -z "$as_dir" && as_dir=.
2896
  # Account for people who put trailing slashes in PATH elements.
2897
case $as_dir/ in
2898
  ./ | .// | /cC/* | \
2899
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2900
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2901
  /usr/ucb/* ) ;;
2902
  *)
2903
    # OSF1 and SCO ODT 3.0 have their own names for install.
2904
    # Don't use installbsd from OSF since it installs stuff as root
2905
    # by default.
2906
    for ac_prog in ginstall scoinst install; do
2907
      for ac_exec_ext in '' $ac_executable_extensions; do
2908
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2909
          if test $ac_prog = install &&
2910
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2911
            # AIX install.  It has an incompatible calling convention.
2912
            :
2913
          elif test $ac_prog = install &&
2914
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2915
            # program-specific install script used by HP pwplus--don't use.
2916
            :
2917
          else
2918
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2919
            break 3
2920
          fi
2921
        fi
2922
      done
2923
    done
2924
    ;;
2925
esac
2926
done
2927
 
2928
 
2929
fi
2930
  if test "${ac_cv_path_install+set}" = set; then
2931
    INSTALL=$ac_cv_path_install
2932
  else
2933
    # As a last resort, use the slow shell script.  We don't cache a
2934
    # path for INSTALL within a source directory, because that will
2935
    # break other packages using the cache if that directory is
2936
    # removed, or if the path is relative.
2937
    INSTALL=$ac_install_sh
2938
  fi
2939
fi
2940
echo "$as_me:$LINENO: result: $INSTALL" >&5
2941
echo "${ECHO_T}$INSTALL" >&6
2942
 
2943
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2944
# It thinks the first close brace ends the variable substitution.
2945
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2946
 
2947
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2948
 
2949
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950
 
2951
 
2952
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2953
ac_given_INSTALL=$INSTALL
2954
 
2955
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2956
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2957
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2958
if test "${enable_maintainer_mode+set}" = set; then
2959
  enableval="$enable_maintainer_mode"
2960
  USE_MAINTAINER_MODE=$enableval
2961
else
2962
  USE_MAINTAINER_MODE=no
2963
fi;
2964
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2965
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2966
 
2967
 
2968
if test $USE_MAINTAINER_MODE = yes; then
2969
  MAINTAINER_MODE_TRUE=
2970
  MAINTAINER_MODE_FALSE='#'
2971
else
2972
  MAINTAINER_MODE_TRUE='#'
2973
  MAINTAINER_MODE_FALSE=
2974
fi
2975
 
2976
  MAINT=$MAINTAINER_MODE_TRUE
2977
 
2978
 
2979
# By default we simply use the C compiler to build assembly code.
2980
 
2981
test "${CCAS+set}" = set || CCAS=$CC
2982
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2983
 
2984
 
2985
 
2986
 
2987
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2988
# at least currently, we never actually build a program, so we never
2989
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2990
# fails, because we are probably configuring with a cross compiler
2991
# which can't create executables.  So we include AC_EXEEXT to keep
2992
# automake happy, but we don't execute it, since we don't care about
2993
# the result.
2994
if false; then
2995
 
2996
  dummy_var=1
2997
fi
2998
 
2999
. ${newlib_basedir}/configure.host
3000
 
3001
newlib_cflags="${newlib_cflags} -fno-builtin"
3002
 
3003
NEWLIB_CFLAGS=${newlib_cflags}
3004
 
3005
 
3006
LDFLAGS=${ldflags}
3007
 
3008
 
3009
 
3010
 
3011
if test x${newlib_elix_level} = x0; then
3012
  ELIX_LEVEL_0_TRUE=
3013
  ELIX_LEVEL_0_FALSE='#'
3014
else
3015
  ELIX_LEVEL_0_TRUE='#'
3016
  ELIX_LEVEL_0_FALSE=
3017
fi
3018
 
3019
 
3020
 
3021
if test x${newlib_elix_level} = x1; then
3022
  ELIX_LEVEL_1_TRUE=
3023
  ELIX_LEVEL_1_FALSE='#'
3024
else
3025
  ELIX_LEVEL_1_TRUE='#'
3026
  ELIX_LEVEL_1_FALSE=
3027
fi
3028
 
3029
 
3030
 
3031
if test x${newlib_elix_level} = x2; then
3032
  ELIX_LEVEL_2_TRUE=
3033
  ELIX_LEVEL_2_FALSE='#'
3034
else
3035
  ELIX_LEVEL_2_TRUE='#'
3036
  ELIX_LEVEL_2_FALSE=
3037
fi
3038
 
3039
 
3040
 
3041
if test x${newlib_elix_level} = x3; then
3042
  ELIX_LEVEL_3_TRUE=
3043
  ELIX_LEVEL_3_FALSE='#'
3044
else
3045
  ELIX_LEVEL_3_TRUE='#'
3046
  ELIX_LEVEL_3_FALSE=
3047
fi
3048
 
3049
 
3050
 
3051
if test x${newlib_elix_level} = x4; then
3052
  ELIX_LEVEL_4_TRUE=
3053
  ELIX_LEVEL_4_FALSE='#'
3054
else
3055
  ELIX_LEVEL_4_TRUE='#'
3056
  ELIX_LEVEL_4_FALSE=
3057
fi
3058
 
3059
 
3060
 
3061
 
3062
if test x${use_libtool} = xyes; then
3063
  USE_LIBTOOL_TRUE=
3064
  USE_LIBTOOL_FALSE='#'
3065
else
3066
  USE_LIBTOOL_TRUE='#'
3067
  USE_LIBTOOL_FALSE=
3068
fi
3069
 
3070
 
3071
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3072
# use oext, which is set in configure.host based on the target platform.
3073
OBJEXT=${oext}
3074
 
3075
 
3076
 
3077
 
3078
 
3079
 
3080
 
3081
 
3082
 
3083
 
3084
 
3085
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3086
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3087
if test "${lt_cv_path_SED+set}" = set; then
3088
  echo $ECHO_N "(cached) $ECHO_C" >&6
3089
else
3090
  # Loop through the user's path and test for sed and gsed.
3091
# Then use that list of sed's as ones to test for truncation.
3092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093
for as_dir in $PATH
3094
do
3095
  IFS=$as_save_IFS
3096
  test -z "$as_dir" && as_dir=.
3097
  for lt_ac_prog in sed gsed; do
3098
    for ac_exec_ext in '' $ac_executable_extensions; do
3099
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3100
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3101
      fi
3102
    done
3103
  done
3104
done
3105
IFS=$as_save_IFS
3106
lt_ac_max=0
3107
lt_ac_count=0
3108
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3109
# along with /bin/sed that truncates output.
3110
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3111
  test ! -f $lt_ac_sed && continue
3112
  cat /dev/null > conftest.in
3113
  lt_ac_count=0
3114
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3115
  # Check for GNU sed and select it if it is found.
3116
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3117
    lt_cv_path_SED=$lt_ac_sed
3118
    break
3119
  fi
3120
  while true; do
3121
    cat conftest.in conftest.in >conftest.tmp
3122
    mv conftest.tmp conftest.in
3123
    cp conftest.in conftest.nl
3124
    echo >>conftest.nl
3125
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3126
    cmp -s conftest.out conftest.nl || break
3127
    # 10000 chars as input seems more than enough
3128
    test $lt_ac_count -gt 10 && break
3129
    lt_ac_count=`expr $lt_ac_count + 1`
3130
    if test $lt_ac_count -gt $lt_ac_max; then
3131
      lt_ac_max=$lt_ac_count
3132
      lt_cv_path_SED=$lt_ac_sed
3133
    fi
3134
  done
3135
done
3136
 
3137
fi
3138
 
3139
SED=$lt_cv_path_SED
3140
 
3141
echo "$as_me:$LINENO: result: $SED" >&5
3142
echo "${ECHO_T}$SED" >&6
3143
 
3144
test -z "$SED" && SED=sed
3145
Xsed="$SED -e 1s/^X//"
3146
 
3147
 
3148
 
3149
 
3150
 
3151
 
3152
 
3153
 
3154
 
3155
 
3156
 
3157
if test "${use_libtool}" = "yes"; then
3158
enable_win32_dll=yes
3159
 
3160
case $host in
3161
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3162
  if test -n "$ac_tool_prefix"; then
3163
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3164
set dummy ${ac_tool_prefix}as; ac_word=$2
3165
echo "$as_me:$LINENO: checking for $ac_word" >&5
3166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167
if test "${ac_cv_prog_AS+set}" = set; then
3168
  echo $ECHO_N "(cached) $ECHO_C" >&6
3169
else
3170
  if test -n "$AS"; then
3171
  ac_cv_prog_AS="$AS" # Let the user override the test.
3172
else
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174
for as_dir in $PATH
3175
do
3176
  IFS=$as_save_IFS
3177
  test -z "$as_dir" && as_dir=.
3178
  for ac_exec_ext in '' $ac_executable_extensions; do
3179
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180
    ac_cv_prog_AS="${ac_tool_prefix}as"
3181
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
    break 2
3183
  fi
3184
done
3185
done
3186
 
3187
fi
3188
fi
3189
AS=$ac_cv_prog_AS
3190
if test -n "$AS"; then
3191
  echo "$as_me:$LINENO: result: $AS" >&5
3192
echo "${ECHO_T}$AS" >&6
3193
else
3194
  echo "$as_me:$LINENO: result: no" >&5
3195
echo "${ECHO_T}no" >&6
3196
fi
3197
 
3198
fi
3199
if test -z "$ac_cv_prog_AS"; then
3200
  ac_ct_AS=$AS
3201
  # Extract the first word of "as", so it can be a program name with args.
3202
set dummy as; ac_word=$2
3203
echo "$as_me:$LINENO: checking for $ac_word" >&5
3204
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
3207
else
3208
  if test -n "$ac_ct_AS"; then
3209
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3210
else
3211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212
for as_dir in $PATH
3213
do
3214
  IFS=$as_save_IFS
3215
  test -z "$as_dir" && as_dir=.
3216
  for ac_exec_ext in '' $ac_executable_extensions; do
3217
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218
    ac_cv_prog_ac_ct_AS="as"
3219
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220
    break 2
3221
  fi
3222
done
3223
done
3224
 
3225
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3226
fi
3227
fi
3228
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3229
if test -n "$ac_ct_AS"; then
3230
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3231
echo "${ECHO_T}$ac_ct_AS" >&6
3232
else
3233
  echo "$as_me:$LINENO: result: no" >&5
3234
echo "${ECHO_T}no" >&6
3235
fi
3236
 
3237
  AS=$ac_ct_AS
3238
else
3239
  AS="$ac_cv_prog_AS"
3240
fi
3241
 
3242
  if test -n "$ac_tool_prefix"; then
3243
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3244
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3245
echo "$as_me:$LINENO: checking for $ac_word" >&5
3246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
3249
else
3250
  if test -n "$DLLTOOL"; then
3251
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3252
else
3253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254
for as_dir in $PATH
3255
do
3256
  IFS=$as_save_IFS
3257
  test -z "$as_dir" && as_dir=.
3258
  for ac_exec_ext in '' $ac_executable_extensions; do
3259
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3261
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262
    break 2
3263
  fi
3264
done
3265
done
3266
 
3267
fi
3268
fi
3269
DLLTOOL=$ac_cv_prog_DLLTOOL
3270
if test -n "$DLLTOOL"; then
3271
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3272
echo "${ECHO_T}$DLLTOOL" >&6
3273
else
3274
  echo "$as_me:$LINENO: result: no" >&5
3275
echo "${ECHO_T}no" >&6
3276
fi
3277
 
3278
fi
3279
if test -z "$ac_cv_prog_DLLTOOL"; then
3280
  ac_ct_DLLTOOL=$DLLTOOL
3281
  # Extract the first word of "dlltool", so it can be a program name with args.
3282
set dummy dlltool; ac_word=$2
3283
echo "$as_me:$LINENO: checking for $ac_word" >&5
3284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3286
  echo $ECHO_N "(cached) $ECHO_C" >&6
3287
else
3288
  if test -n "$ac_ct_DLLTOOL"; then
3289
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3290
else
3291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292
for as_dir in $PATH
3293
do
3294
  IFS=$as_save_IFS
3295
  test -z "$as_dir" && as_dir=.
3296
  for ac_exec_ext in '' $ac_executable_extensions; do
3297
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3299
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300
    break 2
3301
  fi
3302
done
3303
done
3304
 
3305
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3306
fi
3307
fi
3308
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3309
if test -n "$ac_ct_DLLTOOL"; then
3310
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3311
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3312
else
3313
  echo "$as_me:$LINENO: result: no" >&5
3314
echo "${ECHO_T}no" >&6
3315
fi
3316
 
3317
  DLLTOOL=$ac_ct_DLLTOOL
3318
else
3319
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3320
fi
3321
 
3322
  if test -n "$ac_tool_prefix"; then
3323
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3324
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3325
echo "$as_me:$LINENO: checking for $ac_word" >&5
3326
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3328
  echo $ECHO_N "(cached) $ECHO_C" >&6
3329
else
3330
  if test -n "$OBJDUMP"; then
3331
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3332
else
3333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
for as_dir in $PATH
3335
do
3336
  IFS=$as_save_IFS
3337
  test -z "$as_dir" && as_dir=.
3338
  for ac_exec_ext in '' $ac_executable_extensions; do
3339
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3341
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342
    break 2
3343
  fi
3344
done
3345
done
3346
 
3347
fi
3348
fi
3349
OBJDUMP=$ac_cv_prog_OBJDUMP
3350
if test -n "$OBJDUMP"; then
3351
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3352
echo "${ECHO_T}$OBJDUMP" >&6
3353
else
3354
  echo "$as_me:$LINENO: result: no" >&5
3355
echo "${ECHO_T}no" >&6
3356
fi
3357
 
3358
fi
3359
if test -z "$ac_cv_prog_OBJDUMP"; then
3360
  ac_ct_OBJDUMP=$OBJDUMP
3361
  # Extract the first word of "objdump", so it can be a program name with args.
3362
set dummy objdump; ac_word=$2
3363
echo "$as_me:$LINENO: checking for $ac_word" >&5
3364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3366
  echo $ECHO_N "(cached) $ECHO_C" >&6
3367
else
3368
  if test -n "$ac_ct_OBJDUMP"; then
3369
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3370
else
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
for as_dir in $PATH
3373
do
3374
  IFS=$as_save_IFS
3375
  test -z "$as_dir" && as_dir=.
3376
  for ac_exec_ext in '' $ac_executable_extensions; do
3377
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3379
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380
    break 2
3381
  fi
3382
done
3383
done
3384
 
3385
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3386
fi
3387
fi
3388
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3389
if test -n "$ac_ct_OBJDUMP"; then
3390
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3391
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3392
else
3393
  echo "$as_me:$LINENO: result: no" >&5
3394
echo "${ECHO_T}no" >&6
3395
fi
3396
 
3397
  OBJDUMP=$ac_ct_OBJDUMP
3398
else
3399
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3400
fi
3401
 
3402
  ;;
3403
esac
3404
 
3405
test -z "$AS" && AS=as
3406
 
3407
 
3408
 
3409
 
3410
 
3411
test -z "$DLLTOOL" && DLLTOOL=dlltool
3412
 
3413
 
3414
 
3415
 
3416
 
3417
test -z "$OBJDUMP" && OBJDUMP=objdump
3418
 
3419
 
3420
 
3421
 
3422
 
3423
 
3424
 
3425
case `pwd` in
3426
  *\ * | *\     *)
3427
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3428
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3429
esac
3430
 
3431
 
3432
 
3433
macro_version='2.2.6'
3434
macro_revision='1.3012'
3435
 
3436
 
3437
 
3438
 
3439
 
3440
 
3441
 
3442
 
3443
 
3444
 
3445
 
3446
 
3447
 
3448
ltmain="$ac_aux_dir/ltmain.sh"
3449
 
3450
ac_ext=c
3451
ac_cpp='$CPP $CPPFLAGS'
3452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455
if test -n "$ac_tool_prefix"; then
3456
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3458
echo "$as_me:$LINENO: checking for $ac_word" >&5
3459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460
if test "${ac_cv_prog_CC+set}" = set; then
3461
  echo $ECHO_N "(cached) $ECHO_C" >&6
3462
else
3463
  if test -n "$CC"; then
3464
  ac_cv_prog_CC="$CC" # Let the user override the test.
3465
else
3466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467
for as_dir in $PATH
3468
do
3469
  IFS=$as_save_IFS
3470
  test -z "$as_dir" && as_dir=.
3471
  for ac_exec_ext in '' $ac_executable_extensions; do
3472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475
    break 2
3476
  fi
3477
done
3478
done
3479
 
3480
fi
3481
fi
3482
CC=$ac_cv_prog_CC
3483
if test -n "$CC"; then
3484
  echo "$as_me:$LINENO: result: $CC" >&5
3485
echo "${ECHO_T}$CC" >&6
3486
else
3487
  echo "$as_me:$LINENO: result: no" >&5
3488
echo "${ECHO_T}no" >&6
3489
fi
3490
 
3491
fi
3492
if test -z "$ac_cv_prog_CC"; then
3493
  ac_ct_CC=$CC
3494
  # Extract the first word of "gcc", so it can be a program name with args.
3495
set dummy gcc; ac_word=$2
3496
echo "$as_me:$LINENO: checking for $ac_word" >&5
3497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3499
  echo $ECHO_N "(cached) $ECHO_C" >&6
3500
else
3501
  if test -n "$ac_ct_CC"; then
3502
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503
else
3504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505
for as_dir in $PATH
3506
do
3507
  IFS=$as_save_IFS
3508
  test -z "$as_dir" && as_dir=.
3509
  for ac_exec_ext in '' $ac_executable_extensions; do
3510
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511
    ac_cv_prog_ac_ct_CC="gcc"
3512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513
    break 2
3514
  fi
3515
done
3516
done
3517
 
3518
fi
3519
fi
3520
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521
if test -n "$ac_ct_CC"; then
3522
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3523
echo "${ECHO_T}$ac_ct_CC" >&6
3524
else
3525
  echo "$as_me:$LINENO: result: no" >&5
3526
echo "${ECHO_T}no" >&6
3527
fi
3528
 
3529
  CC=$ac_ct_CC
3530
else
3531
  CC="$ac_cv_prog_CC"
3532
fi
3533
 
3534
if test -z "$CC"; then
3535
  if test -n "$ac_tool_prefix"; then
3536
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3537
set dummy ${ac_tool_prefix}cc; ac_word=$2
3538
echo "$as_me:$LINENO: checking for $ac_word" >&5
3539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540
if test "${ac_cv_prog_CC+set}" = set; then
3541
  echo $ECHO_N "(cached) $ECHO_C" >&6
3542
else
3543
  if test -n "$CC"; then
3544
  ac_cv_prog_CC="$CC" # Let the user override the test.
3545
else
3546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547
for as_dir in $PATH
3548
do
3549
  IFS=$as_save_IFS
3550
  test -z "$as_dir" && as_dir=.
3551
  for ac_exec_ext in '' $ac_executable_extensions; do
3552
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3554
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555
    break 2
3556
  fi
3557
done
3558
done
3559
 
3560
fi
3561
fi
3562
CC=$ac_cv_prog_CC
3563
if test -n "$CC"; then
3564
  echo "$as_me:$LINENO: result: $CC" >&5
3565
echo "${ECHO_T}$CC" >&6
3566
else
3567
  echo "$as_me:$LINENO: result: no" >&5
3568
echo "${ECHO_T}no" >&6
3569
fi
3570
 
3571
fi
3572
if test -z "$ac_cv_prog_CC"; then
3573
  ac_ct_CC=$CC
3574
  # Extract the first word of "cc", so it can be a program name with args.
3575
set dummy cc; ac_word=$2
3576
echo "$as_me:$LINENO: checking for $ac_word" >&5
3577
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579
  echo $ECHO_N "(cached) $ECHO_C" >&6
3580
else
3581
  if test -n "$ac_ct_CC"; then
3582
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583
else
3584
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585
for as_dir in $PATH
3586
do
3587
  IFS=$as_save_IFS
3588
  test -z "$as_dir" && as_dir=.
3589
  for ac_exec_ext in '' $ac_executable_extensions; do
3590
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591
    ac_cv_prog_ac_ct_CC="cc"
3592
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593
    break 2
3594
  fi
3595
done
3596
done
3597
 
3598
fi
3599
fi
3600
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601
if test -n "$ac_ct_CC"; then
3602
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3603
echo "${ECHO_T}$ac_ct_CC" >&6
3604
else
3605
  echo "$as_me:$LINENO: result: no" >&5
3606
echo "${ECHO_T}no" >&6
3607
fi
3608
 
3609
  CC=$ac_ct_CC
3610
else
3611
  CC="$ac_cv_prog_CC"
3612
fi
3613
 
3614
fi
3615
if test -z "$CC"; then
3616
  # Extract the first word of "cc", so it can be a program name with args.
3617
set dummy cc; ac_word=$2
3618
echo "$as_me:$LINENO: checking for $ac_word" >&5
3619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620
if test "${ac_cv_prog_CC+set}" = set; then
3621
  echo $ECHO_N "(cached) $ECHO_C" >&6
3622
else
3623
  if test -n "$CC"; then
3624
  ac_cv_prog_CC="$CC" # Let the user override the test.
3625
else
3626
  ac_prog_rejected=no
3627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628
for as_dir in $PATH
3629
do
3630
  IFS=$as_save_IFS
3631
  test -z "$as_dir" && as_dir=.
3632
  for ac_exec_ext in '' $ac_executable_extensions; do
3633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635
       ac_prog_rejected=yes
3636
       continue
3637
     fi
3638
    ac_cv_prog_CC="cc"
3639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640
    break 2
3641
  fi
3642
done
3643
done
3644
 
3645
if test $ac_prog_rejected = yes; then
3646
  # We found a bogon in the path, so make sure we never use it.
3647
  set dummy $ac_cv_prog_CC
3648
  shift
3649
  if test $# != 0; then
3650
    # We chose a different compiler from the bogus one.
3651
    # However, it has the same basename, so the bogon will be chosen
3652
    # first if we set CC to just the basename; use the full file name.
3653
    shift
3654
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655
  fi
3656
fi
3657
fi
3658
fi
3659
CC=$ac_cv_prog_CC
3660
if test -n "$CC"; then
3661
  echo "$as_me:$LINENO: result: $CC" >&5
3662
echo "${ECHO_T}$CC" >&6
3663
else
3664
  echo "$as_me:$LINENO: result: no" >&5
3665
echo "${ECHO_T}no" >&6
3666
fi
3667
 
3668
fi
3669
if test -z "$CC"; then
3670
  if test -n "$ac_tool_prefix"; then
3671
  for ac_prog in cl
3672
  do
3673
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3675
echo "$as_me:$LINENO: checking for $ac_word" >&5
3676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3677
if test "${ac_cv_prog_CC+set}" = set; then
3678
  echo $ECHO_N "(cached) $ECHO_C" >&6
3679
else
3680
  if test -n "$CC"; then
3681
  ac_cv_prog_CC="$CC" # Let the user override the test.
3682
else
3683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684
for as_dir in $PATH
3685
do
3686
  IFS=$as_save_IFS
3687
  test -z "$as_dir" && as_dir=.
3688
  for ac_exec_ext in '' $ac_executable_extensions; do
3689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692
    break 2
3693
  fi
3694
done
3695
done
3696
 
3697
fi
3698
fi
3699
CC=$ac_cv_prog_CC
3700
if test -n "$CC"; then
3701
  echo "$as_me:$LINENO: result: $CC" >&5
3702
echo "${ECHO_T}$CC" >&6
3703
else
3704
  echo "$as_me:$LINENO: result: no" >&5
3705
echo "${ECHO_T}no" >&6
3706
fi
3707
 
3708
    test -n "$CC" && break
3709
  done
3710
fi
3711
if test -z "$CC"; then
3712
  ac_ct_CC=$CC
3713
  for ac_prog in cl
3714
do
3715
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3716
set dummy $ac_prog; ac_word=$2
3717
echo "$as_me:$LINENO: checking for $ac_word" >&5
3718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3720
  echo $ECHO_N "(cached) $ECHO_C" >&6
3721
else
3722
  if test -n "$ac_ct_CC"; then
3723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724
else
3725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726
for as_dir in $PATH
3727
do
3728
  IFS=$as_save_IFS
3729
  test -z "$as_dir" && as_dir=.
3730
  for ac_exec_ext in '' $ac_executable_extensions; do
3731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732
    ac_cv_prog_ac_ct_CC="$ac_prog"
3733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734
    break 2
3735
  fi
3736
done
3737
done
3738
 
3739
fi
3740
fi
3741
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742
if test -n "$ac_ct_CC"; then
3743
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3744
echo "${ECHO_T}$ac_ct_CC" >&6
3745
else
3746
  echo "$as_me:$LINENO: result: no" >&5
3747
echo "${ECHO_T}no" >&6
3748
fi
3749
 
3750
  test -n "$ac_ct_CC" && break
3751
done
3752
 
3753
  CC=$ac_ct_CC
3754
fi
3755
 
3756
fi
3757
 
3758
 
3759
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3760
See \`config.log' for more details." >&5
3761
echo "$as_me: error: no acceptable C compiler found in \$PATH
3762
See \`config.log' for more details." >&2;}
3763
   { (exit 1); exit 1; }; }
3764
 
3765
# Provide some information about the compiler.
3766
echo "$as_me:$LINENO:" \
3767
     "checking for C compiler version" >&5
3768
ac_compiler=`set X $ac_compile; echo $2`
3769
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3770
  (eval $ac_compiler --version &5) 2>&5
3771
  ac_status=$?
3772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
  (exit $ac_status); }
3774
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3775
  (eval $ac_compiler -v &5) 2>&5
3776
  ac_status=$?
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
  (exit $ac_status); }
3779
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3780
  (eval $ac_compiler -V &5) 2>&5
3781
  ac_status=$?
3782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783
  (exit $ac_status); }
3784
 
3785
cat >conftest.$ac_ext <<_ACEOF
3786
/* confdefs.h.  */
3787
_ACEOF
3788
cat confdefs.h >>conftest.$ac_ext
3789
cat >>conftest.$ac_ext <<_ACEOF
3790
/* end confdefs.h.  */
3791
 
3792
int
3793
main ()
3794
{
3795
 
3796
  ;
3797
  return 0;
3798
}
3799
_ACEOF
3800
ac_clean_files_save=$ac_clean_files
3801
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3802
# Try to create an executable without -o first, disregard a.out.
3803
# It will help us diagnose broken compilers, and finding out an intuition
3804
# of exeext.
3805
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3806
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3807
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3808
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3809
  (eval $ac_link_default) 2>&5
3810
  ac_status=$?
3811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812
  (exit $ac_status); }; then
3813
  # Find the output, starting from the most likely.  This scheme is
3814
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3815
# resort.
3816
 
3817
# Be careful to initialize this variable, since it used to be cached.
3818
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3819
ac_cv_exeext=
3820
# b.out is created by i960 compilers.
3821
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3822
do
3823
  test -f "$ac_file" || continue
3824
  case $ac_file in
3825
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3826
        ;;
3827
    conftest.$ac_ext )
3828
        # This is the source file.
3829
        ;;
3830
    [ab].out )
3831
        # We found the default executable, but exeext='' is most
3832
        # certainly right.
3833
        break;;
3834
    *.* )
3835
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3837
        # but it would be cool to find out if it's true.  Does anybody
3838
        # maintain Libtool? --akim.
3839
        export ac_cv_exeext
3840
        break;;
3841
    * )
3842
        break;;
3843
  esac
3844
done
3845
else
3846
  echo "$as_me: failed program was:" >&5
3847
sed 's/^/| /' conftest.$ac_ext >&5
3848
 
3849
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3850
See \`config.log' for more details." >&5
3851
echo "$as_me: error: C compiler cannot create executables
3852
See \`config.log' for more details." >&2;}
3853
   { (exit 77); exit 77; }; }
3854
fi
3855
 
3856
ac_exeext=$ac_cv_exeext
3857
echo "$as_me:$LINENO: result: $ac_file" >&5
3858
echo "${ECHO_T}$ac_file" >&6
3859
 
3860
# Check the compiler produces executables we can run.  If not, either
3861
# the compiler is broken, or we cross compile.
3862
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3863
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3864
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3865
# If not cross compiling, check that we can run a simple program.
3866
if test "$cross_compiling" != yes; then
3867
  if { ac_try='./$ac_file'
3868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
  (eval $ac_try) 2>&5
3870
  ac_status=$?
3871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
  (exit $ac_status); }; }; then
3873
    cross_compiling=no
3874
  else
3875
    if test "$cross_compiling" = maybe; then
3876
        cross_compiling=yes
3877
    else
3878
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3879
If you meant to cross compile, use \`--host'.
3880
See \`config.log' for more details." >&5
3881
echo "$as_me: error: cannot run C compiled programs.
3882
If you meant to cross compile, use \`--host'.
3883
See \`config.log' for more details." >&2;}
3884
   { (exit 1); exit 1; }; }
3885
    fi
3886
  fi
3887
fi
3888
echo "$as_me:$LINENO: result: yes" >&5
3889
echo "${ECHO_T}yes" >&6
3890
 
3891
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3892
ac_clean_files=$ac_clean_files_save
3893
# Check the compiler produces executables we can run.  If not, either
3894
# the compiler is broken, or we cross compile.
3895
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3896
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3897
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3898
echo "${ECHO_T}$cross_compiling" >&6
3899
 
3900
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3901
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903
  (eval $ac_link) 2>&5
3904
  ac_status=$?
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906
  (exit $ac_status); }; then
3907
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3908
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3909
# work properly (i.e., refer to `conftest.exe'), while it won't with
3910
# `rm'.
3911
for ac_file in conftest.exe conftest conftest.*; do
3912
  test -f "$ac_file" || continue
3913
  case $ac_file in
3914
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3915
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3916
          export ac_cv_exeext
3917
          break;;
3918
    * ) break;;
3919
  esac
3920
done
3921
else
3922
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3923
See \`config.log' for more details." >&5
3924
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3925
See \`config.log' for more details." >&2;}
3926
   { (exit 1); exit 1; }; }
3927
fi
3928
 
3929
rm -f conftest$ac_cv_exeext
3930
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3931
echo "${ECHO_T}$ac_cv_exeext" >&6
3932
 
3933
rm -f conftest.$ac_ext
3934
EXEEXT=$ac_cv_exeext
3935
ac_exeext=$EXEEXT
3936
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3937
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3938
if test "${ac_cv_objext+set}" = set; then
3939
  echo $ECHO_N "(cached) $ECHO_C" >&6
3940
else
3941
  cat >conftest.$ac_ext <<_ACEOF
3942
/* confdefs.h.  */
3943
_ACEOF
3944
cat confdefs.h >>conftest.$ac_ext
3945
cat >>conftest.$ac_ext <<_ACEOF
3946
/* end confdefs.h.  */
3947
 
3948
int
3949
main ()
3950
{
3951
 
3952
  ;
3953
  return 0;
3954
}
3955
_ACEOF
3956
rm -f conftest.o conftest.obj
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958
  (eval $ac_compile) 2>&5
3959
  ac_status=$?
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961
  (exit $ac_status); }; then
3962
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3963
  case $ac_file in
3964
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3965
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3966
       break;;
3967
  esac
3968
done
3969
else
3970
  echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3972
 
3973
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3974
See \`config.log' for more details." >&5
3975
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3976
See \`config.log' for more details." >&2;}
3977
   { (exit 1); exit 1; }; }
3978
fi
3979
 
3980
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3981
fi
3982
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3983
echo "${ECHO_T}$ac_cv_objext" >&6
3984
OBJEXT=$ac_cv_objext
3985
ac_objext=$OBJEXT
3986
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3987
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3988
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3989
  echo $ECHO_N "(cached) $ECHO_C" >&6
3990
else
3991
  cat >conftest.$ac_ext <<_ACEOF
3992
/* confdefs.h.  */
3993
_ACEOF
3994
cat confdefs.h >>conftest.$ac_ext
3995
cat >>conftest.$ac_ext <<_ACEOF
3996
/* end confdefs.h.  */
3997
 
3998
int
3999
main ()
4000
{
4001
#ifndef __GNUC__
4002
       choke me
4003
#endif
4004
 
4005
  ;
4006
  return 0;
4007
}
4008
_ACEOF
4009
rm -f conftest.$ac_objext
4010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4011
  (eval $ac_compile) 2>conftest.er1
4012
  ac_status=$?
4013
  grep -v '^ *+' conftest.er1 >conftest.err
4014
  rm -f conftest.er1
4015
  cat conftest.err >&5
4016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017
  (exit $ac_status); } &&
4018
         { ac_try='test -z "$ac_c_werror_flag"
4019
                         || test ! -s conftest.err'
4020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021
  (eval $ac_try) 2>&5
4022
  ac_status=$?
4023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
  (exit $ac_status); }; } &&
4025
         { ac_try='test -s conftest.$ac_objext'
4026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027
  (eval $ac_try) 2>&5
4028
  ac_status=$?
4029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
  (exit $ac_status); }; }; then
4031
  ac_compiler_gnu=yes
4032
else
4033
  echo "$as_me: failed program was:" >&5
4034
sed 's/^/| /' conftest.$ac_ext >&5
4035
 
4036
ac_compiler_gnu=no
4037
fi
4038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4039
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4040
 
4041
fi
4042
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4043
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4044
GCC=`test $ac_compiler_gnu = yes && echo yes`
4045
ac_test_CFLAGS=${CFLAGS+set}
4046
ac_save_CFLAGS=$CFLAGS
4047
CFLAGS="-g"
4048
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4049
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4050
if test "${ac_cv_prog_cc_g+set}" = set; then
4051
  echo $ECHO_N "(cached) $ECHO_C" >&6
4052
else
4053
  cat >conftest.$ac_ext <<_ACEOF
4054
/* confdefs.h.  */
4055
_ACEOF
4056
cat confdefs.h >>conftest.$ac_ext
4057
cat >>conftest.$ac_ext <<_ACEOF
4058
/* end confdefs.h.  */
4059
 
4060
int
4061
main ()
4062
{
4063
 
4064
  ;
4065
  return 0;
4066
}
4067
_ACEOF
4068
rm -f conftest.$ac_objext
4069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4070
  (eval $ac_compile) 2>conftest.er1
4071
  ac_status=$?
4072
  grep -v '^ *+' conftest.er1 >conftest.err
4073
  rm -f conftest.er1
4074
  cat conftest.err >&5
4075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076
  (exit $ac_status); } &&
4077
         { ac_try='test -z "$ac_c_werror_flag"
4078
                         || test ! -s conftest.err'
4079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080
  (eval $ac_try) 2>&5
4081
  ac_status=$?
4082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083
  (exit $ac_status); }; } &&
4084
         { ac_try='test -s conftest.$ac_objext'
4085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086
  (eval $ac_try) 2>&5
4087
  ac_status=$?
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
  (exit $ac_status); }; }; then
4090
  ac_cv_prog_cc_g=yes
4091
else
4092
  echo "$as_me: failed program was:" >&5
4093
sed 's/^/| /' conftest.$ac_ext >&5
4094
 
4095
ac_cv_prog_cc_g=no
4096
fi
4097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4098
fi
4099
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4100
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4101
if test "$ac_test_CFLAGS" = set; then
4102
  CFLAGS=$ac_save_CFLAGS
4103
elif test $ac_cv_prog_cc_g = yes; then
4104
  if test "$GCC" = yes; then
4105
    CFLAGS="-g -O2"
4106
  else
4107
    CFLAGS="-g"
4108
  fi
4109
else
4110
  if test "$GCC" = yes; then
4111
    CFLAGS="-O2"
4112
  else
4113
    CFLAGS=
4114
  fi
4115
fi
4116
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4117
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4118
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
4120
else
4121
  ac_cv_prog_cc_stdc=no
4122
ac_save_CC=$CC
4123
cat >conftest.$ac_ext <<_ACEOF
4124
/* confdefs.h.  */
4125
_ACEOF
4126
cat confdefs.h >>conftest.$ac_ext
4127
cat >>conftest.$ac_ext <<_ACEOF
4128
/* end confdefs.h.  */
4129
#include 
4130
#include 
4131
#include 
4132
#include 
4133
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4134
struct buf { int x; };
4135
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136
static char *e (p, i)
4137
     char **p;
4138
     int i;
4139
{
4140
  return p[i];
4141
}
4142
static char *f (char * (*g) (char **, int), char **p, ...)
4143
{
4144
  char *s;
4145
  va_list v;
4146
  va_start (v,p);
4147
  s = g (p, va_arg (v,int));
4148
  va_end (v);
4149
  return s;
4150
}
4151
 
4152
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4153
   function prototypes and stuff, but not '\xHH' hex character constants.
4154
   These don't provoke an error unfortunately, instead are silently treated
4155
   as 'x'.  The following induces an error, until -std1 is added to get
4156
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4157
   array size at least.  It's necessary to write '\x00'==0 to get something
4158
   that's true only with -std1.  */
4159
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4160
 
4161
int test (int i, double x);
4162
struct s1 {int (*f) (int a);};
4163
struct s2 {int (*f) (double a);};
4164
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4165
int argc;
4166
char **argv;
4167
int
4168
main ()
4169
{
4170
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4171
  ;
4172
  return 0;
4173
}
4174
_ACEOF
4175
# Don't try gcc -ansi; that turns off useful extensions and
4176
# breaks some systems' header files.
4177
# AIX                   -qlanglvl=ansi
4178
# Ultrix and OSF/1      -std1
4179
# HP-UX 10.20 and later -Ae
4180
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4181
# SVR4                  -Xc -D__EXTENSIONS__
4182
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183
do
4184
  CC="$ac_save_CC $ac_arg"
4185
  rm -f conftest.$ac_objext
4186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4187
  (eval $ac_compile) 2>conftest.er1
4188
  ac_status=$?
4189
  grep -v '^ *+' conftest.er1 >conftest.err
4190
  rm -f conftest.er1
4191
  cat conftest.err >&5
4192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193
  (exit $ac_status); } &&
4194
         { ac_try='test -z "$ac_c_werror_flag"
4195
                         || test ! -s conftest.err'
4196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197
  (eval $ac_try) 2>&5
4198
  ac_status=$?
4199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200
  (exit $ac_status); }; } &&
4201
         { ac_try='test -s conftest.$ac_objext'
4202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203
  (eval $ac_try) 2>&5
4204
  ac_status=$?
4205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
  (exit $ac_status); }; }; then
4207
  ac_cv_prog_cc_stdc=$ac_arg
4208
break
4209
else
4210
  echo "$as_me: failed program was:" >&5
4211
sed 's/^/| /' conftest.$ac_ext >&5
4212
 
4213
fi
4214
rm -f conftest.err conftest.$ac_objext
4215
done
4216
rm -f conftest.$ac_ext conftest.$ac_objext
4217
CC=$ac_save_CC
4218
 
4219
fi
4220
 
4221
case "x$ac_cv_prog_cc_stdc" in
4222
  x|xno)
4223
    echo "$as_me:$LINENO: result: none needed" >&5
4224
echo "${ECHO_T}none needed" >&6 ;;
4225
  *)
4226
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4227
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4228
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4229
esac
4230
 
4231
# Some people use a C++ compiler to compile C.  Since we use `exit',
4232
# in C++ we need to declare it.  In case someone uses the same compiler
4233
# for both compiling C and C++ we need to have the C++ compiler decide
4234
# the declaration of exit, since it's the most demanding environment.
4235
cat >conftest.$ac_ext <<_ACEOF
4236
#ifndef __cplusplus
4237
  choke me
4238
#endif
4239
_ACEOF
4240
rm -f conftest.$ac_objext
4241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242
  (eval $ac_compile) 2>conftest.er1
4243
  ac_status=$?
4244
  grep -v '^ *+' conftest.er1 >conftest.err
4245
  rm -f conftest.er1
4246
  cat conftest.err >&5
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
  (exit $ac_status); } &&
4249
         { ac_try='test -z "$ac_c_werror_flag"
4250
                         || test ! -s conftest.err'
4251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252
  (eval $ac_try) 2>&5
4253
  ac_status=$?
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
  (exit $ac_status); }; } &&
4256
         { ac_try='test -s conftest.$ac_objext'
4257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258
  (eval $ac_try) 2>&5
4259
  ac_status=$?
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
  (exit $ac_status); }; }; then
4262
  for ac_declaration in \
4263
   '' \
4264
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4265
   'extern "C" void std::exit (int); using std::exit;' \
4266
   'extern "C" void exit (int) throw ();' \
4267
   'extern "C" void exit (int);' \
4268
   'void exit (int);'
4269
do
4270
  cat >conftest.$ac_ext <<_ACEOF
4271
/* confdefs.h.  */
4272
_ACEOF
4273
cat confdefs.h >>conftest.$ac_ext
4274
cat >>conftest.$ac_ext <<_ACEOF
4275
/* end confdefs.h.  */
4276
$ac_declaration
4277
#include 
4278
int
4279
main ()
4280
{
4281
exit (42);
4282
  ;
4283
  return 0;
4284
}
4285
_ACEOF
4286
rm -f conftest.$ac_objext
4287
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288
  (eval $ac_compile) 2>conftest.er1
4289
  ac_status=$?
4290
  grep -v '^ *+' conftest.er1 >conftest.err
4291
  rm -f conftest.er1
4292
  cat conftest.err >&5
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
  (exit $ac_status); } &&
4295
         { ac_try='test -z "$ac_c_werror_flag"
4296
                         || test ! -s conftest.err'
4297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298
  (eval $ac_try) 2>&5
4299
  ac_status=$?
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
  (exit $ac_status); }; } &&
4302
         { ac_try='test -s conftest.$ac_objext'
4303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304
  (eval $ac_try) 2>&5
4305
  ac_status=$?
4306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307
  (exit $ac_status); }; }; then
4308
  :
4309
else
4310
  echo "$as_me: failed program was:" >&5
4311
sed 's/^/| /' conftest.$ac_ext >&5
4312
 
4313
continue
4314
fi
4315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316
  cat >conftest.$ac_ext <<_ACEOF
4317
/* confdefs.h.  */
4318
_ACEOF
4319
cat confdefs.h >>conftest.$ac_ext
4320
cat >>conftest.$ac_ext <<_ACEOF
4321
/* end confdefs.h.  */
4322
$ac_declaration
4323
int
4324
main ()
4325
{
4326
exit (42);
4327
  ;
4328
  return 0;
4329
}
4330
_ACEOF
4331
rm -f conftest.$ac_objext
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333
  (eval $ac_compile) 2>conftest.er1
4334
  ac_status=$?
4335
  grep -v '^ *+' conftest.er1 >conftest.err
4336
  rm -f conftest.er1
4337
  cat conftest.err >&5
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
  (exit $ac_status); } &&
4340
         { ac_try='test -z "$ac_c_werror_flag"
4341
                         || test ! -s conftest.err'
4342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343
  (eval $ac_try) 2>&5
4344
  ac_status=$?
4345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346
  (exit $ac_status); }; } &&
4347
         { ac_try='test -s conftest.$ac_objext'
4348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349
  (eval $ac_try) 2>&5
4350
  ac_status=$?
4351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352
  (exit $ac_status); }; }; then
4353
  break
4354
else
4355
  echo "$as_me: failed program was:" >&5
4356
sed 's/^/| /' conftest.$ac_ext >&5
4357
 
4358
fi
4359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360
done
4361
rm -f conftest*
4362
if test -n "$ac_declaration"; then
4363
  echo '#ifdef __cplusplus' >>confdefs.h
4364
  echo $ac_declaration      >>confdefs.h
4365
  echo '#endif'             >>confdefs.h
4366
fi
4367
 
4368
else
4369
  echo "$as_me: failed program was:" >&5
4370
sed 's/^/| /' conftest.$ac_ext >&5
4371
 
4372
fi
4373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374
ac_ext=c
4375
ac_cpp='$CPP $CPPFLAGS'
4376
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379
 
4380
depcc="$CC"   am_compiler_list=
4381
 
4382
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4383
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4384
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4385
  echo $ECHO_N "(cached) $ECHO_C" >&6
4386
else
4387
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388
  # We make a subdir and do the tests there.  Otherwise we can end up
4389
  # making bogus files that we don't know about and never remove.  For
4390
  # instance it was reported that on HP-UX the gcc test will end up
4391
  # making a dummy file named `D' -- because `-MD' means `put the output
4392
  # in D'.
4393
  mkdir conftest.dir
4394
  # Copy depcomp to subdir because otherwise we won't find it if we're
4395
  # using a relative directory.
4396
  cp "$am_depcomp" conftest.dir
4397
  cd conftest.dir
4398
  # We will build objects and dependencies in a subdirectory because
4399
  # it helps to detect inapplicable dependency modes.  For instance
4400
  # both Tru64's cc and ICC support -MD to output dependencies as a
4401
  # side effect of compilation, but ICC will put the dependencies in
4402
  # the current directory while Tru64 will put them in the object
4403
  # directory.
4404
  mkdir sub
4405
 
4406
  am_cv_CC_dependencies_compiler_type=none
4407
  if test "$am_compiler_list" = ""; then
4408
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409
  fi
4410
  for depmode in $am_compiler_list; do
4411
    # Setup a source with many dependencies, because some compilers
4412
    # like to wrap large dependency lists on column 80 (with \), and
4413
    # we should not choose a depcomp mode which is confused by this.
4414
    #
4415
    # We need to recreate these files for each test, as the compiler may
4416
    # overwrite some of them when testing with obscure command lines.
4417
    # This happens at least with the AIX C compiler.
4418
    : > sub/conftest.c
4419
    for i in 1 2 3 4 5 6; do
4420
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4421
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4422
      # Solaris 8's {/usr,}/bin/sh.
4423
      touch sub/conftst$i.h
4424
    done
4425
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4426
 
4427
    case $depmode in
4428
    nosideeffect)
4429
      # after this tag, mechanisms are not by side-effect, so they'll
4430
      # only be used when explicitly requested
4431
      if test "x$enable_dependency_tracking" = xyes; then
4432
        continue
4433
      else
4434
        break
4435
      fi
4436
      ;;
4437
    none) break ;;
4438
    esac
4439
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4440
    # mode.  It turns out that the SunPro C++ compiler does not properly
4441
    # handle `-M -o', and we need to detect this.
4442
    if depmode=$depmode \
4443
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4444
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4445
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4446
         >/dev/null 2>conftest.err &&
4447
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4448
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4449
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4450
      # icc doesn't choke on unknown options, it will just issue warnings
4451
      # or remarks (even with -Werror).  So we grep stderr for any message
4452
      # that says an option was ignored or not supported.
4453
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4454
      #   icc: Command line warning: ignoring option '-M'; no argument required
4455
      # The diagnosis changed in icc 8.0:
4456
      #   icc: Command line remark: option '-MP' not supported
4457
      if (grep 'ignoring option' conftest.err ||
4458
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4459
        am_cv_CC_dependencies_compiler_type=$depmode
4460
        break
4461
      fi
4462
    fi
4463
  done
4464
 
4465
  cd ..
4466
  rm -rf conftest.dir
4467
else
4468
  am_cv_CC_dependencies_compiler_type=none
4469
fi
4470
 
4471
fi
4472
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4473
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4474
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4475
 
4476
 
4477
 
4478
if
4479
  test "x$enable_dependency_tracking" != xno \
4480
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4481
  am__fastdepCC_TRUE=
4482
  am__fastdepCC_FALSE='#'
4483
else
4484
  am__fastdepCC_TRUE='#'
4485
  am__fastdepCC_FALSE=
4486
fi
4487
 
4488
 
4489
echo "$as_me:$LINENO: checking for egrep" >&5
4490
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4491
if test "${ac_cv_prog_egrep+set}" = set; then
4492
  echo $ECHO_N "(cached) $ECHO_C" >&6
4493
else
4494
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4495
    then ac_cv_prog_egrep='grep -E'
4496
    else ac_cv_prog_egrep='egrep'
4497
    fi
4498
fi
4499
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4500
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4501
 EGREP=$ac_cv_prog_egrep
4502
 
4503
 
4504
echo "$as_me:$LINENO: checking for fgrep" >&5
4505
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4506
if test "${ac_cv_prog_fgrep+set}" = set; then
4507
  echo $ECHO_N "(cached) $ECHO_C" >&6
4508
else
4509
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4510
    then ac_cv_prog_fgrep='grep -F'
4511
    else ac_cv_prog_fgrep='fgrep'
4512
    fi
4513
fi
4514
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4515
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4516
 FGREP=$ac_cv_prog_fgrep
4517
 
4518
 
4519
test -z "$GREP" && GREP=grep
4520
 
4521
 
4522
 
4523
 
4524
 
4525
 
4526
 
4527
 
4528
 
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537
 
4538
 
4539
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4540
if test "${with_gnu_ld+set}" = set; then
4541
  withval="$with_gnu_ld"
4542
  test "$withval" = no || with_gnu_ld=yes
4543
else
4544
  with_gnu_ld=no
4545
fi;
4546
ac_prog=ld
4547
if test "$GCC" = yes; then
4548
  # Check if gcc -print-prog-name=ld gives a path.
4549
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4550
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4551
  case $host in
4552
  *-*-mingw*)
4553
    # gcc leaves a trailing carriage return which upsets mingw
4554
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4555
  *)
4556
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4557
  esac
4558
  case $ac_prog in
4559
    # Accept absolute paths.
4560
    [\\/]* | ?:[\\/]*)
4561
      re_direlt='/[^/][^/]*/\.\./'
4562
      # Canonicalize the pathname of ld
4563
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4564
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4565
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4566
      done
4567
      test -z "$LD" && LD="$ac_prog"
4568
      ;;
4569
  "")
4570
    # If it fails, then pretend we aren't using GCC.
4571
    ac_prog=ld
4572
    ;;
4573
  *)
4574
    # If it is relative, then search for the first ld in PATH.
4575
    with_gnu_ld=unknown
4576
    ;;
4577
  esac
4578
elif test "$with_gnu_ld" = yes; then
4579
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4580
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4581
else
4582
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4583
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4584
fi
4585
if test "${lt_cv_path_LD+set}" = set; then
4586
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
else
4588
  if test -z "$LD"; then
4589
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4590
  for ac_dir in $PATH; do
4591
    IFS="$lt_save_ifs"
4592
    test -z "$ac_dir" && ac_dir=.
4593
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4594
      lt_cv_path_LD="$ac_dir/$ac_prog"
4595
      # Check to see if the program is GNU ld.  I'd rather use --version,
4596
      # but apparently some variants of GNU ld only accept -v.
4597
      # Break only if it was the GNU/non-GNU ld that we prefer.
4598
      case `"$lt_cv_path_LD" -v 2>&1 
4599
      *GNU* | *'with BFD'*)
4600
        test "$with_gnu_ld" != no && break
4601
        ;;
4602
      *)
4603
        test "$with_gnu_ld" != yes && break
4604
        ;;
4605
      esac
4606
    fi
4607
  done
4608
  IFS="$lt_save_ifs"
4609
else
4610
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4611
fi
4612
fi
4613
 
4614
LD="$lt_cv_path_LD"
4615
if test -n "$LD"; then
4616
  echo "$as_me:$LINENO: result: $LD" >&5
4617
echo "${ECHO_T}$LD" >&6
4618
else
4619
  echo "$as_me:$LINENO: result: no" >&5
4620
echo "${ECHO_T}no" >&6
4621
fi
4622
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4623
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4624
   { (exit 1); exit 1; }; }
4625
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4626
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4627
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4628
  echo $ECHO_N "(cached) $ECHO_C" >&6
4629
else
4630
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4631
case `$LD -v 2>&1 
4632
*GNU* | *'with BFD'*)
4633
  lt_cv_prog_gnu_ld=yes
4634
  ;;
4635
*)
4636
  lt_cv_prog_gnu_ld=no
4637
  ;;
4638
esac
4639
fi
4640
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4641
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4642
with_gnu_ld=$lt_cv_prog_gnu_ld
4643
 
4644
 
4645
 
4646
 
4647
 
4648
 
4649
 
4650
 
4651
 
4652
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4653
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4654
if test "${lt_cv_path_NM+set}" = set; then
4655
  echo $ECHO_N "(cached) $ECHO_C" >&6
4656
else
4657
  if test -n "$NM"; then
4658
  # Let the user override the test.
4659
  lt_cv_path_NM="$NM"
4660
else
4661
  lt_nm_to_check="${ac_tool_prefix}nm"
4662
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4663
    lt_nm_to_check="$lt_nm_to_check nm"
4664
  fi
4665
  for lt_tmp_nm in $lt_nm_to_check; do
4666
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4667
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4668
      IFS="$lt_save_ifs"
4669
      test -z "$ac_dir" && ac_dir=.
4670
      tmp_nm="$ac_dir/$lt_tmp_nm"
4671
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4672
        # Check to see if the nm accepts a BSD-compat flag.
4673
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4674
        #   nm: unknown option "B" ignored
4675
        # Tru64's nm complains that /dev/null is an invalid object file
4676
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4677
        */dev/null* | *'Invalid file or object type'*)
4678
          lt_cv_path_NM="$tmp_nm -B"
4679
          break
4680
          ;;
4681
        *)
4682
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4683
          */dev/null*)
4684
            lt_cv_path_NM="$tmp_nm -p"
4685
            break
4686
            ;;
4687
          *)
4688
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4689
            continue # so that we can try to find one that supports BSD flags
4690
            ;;
4691
          esac
4692
          ;;
4693
        esac
4694
      fi
4695
    done
4696
    IFS="$lt_save_ifs"
4697
  done
4698
  : ${lt_cv_path_NM=no}
4699
fi
4700
fi
4701
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4702
echo "${ECHO_T}$lt_cv_path_NM" >&6
4703
if test "$lt_cv_path_NM" != "no"; then
4704
  NM="$lt_cv_path_NM"
4705
else
4706
  # Didn't find any BSD compatible name lister, look for dumpbin.
4707
  if test -n "$ac_tool_prefix"; then
4708
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4709
  do
4710
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4711
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4712
echo "$as_me:$LINENO: checking for $ac_word" >&5
4713
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4715
  echo $ECHO_N "(cached) $ECHO_C" >&6
4716
else
4717
  if test -n "$DUMPBIN"; then
4718
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4719
else
4720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721
for as_dir in $PATH
4722
do
4723
  IFS=$as_save_IFS
4724
  test -z "$as_dir" && as_dir=.
4725
  for ac_exec_ext in '' $ac_executable_extensions; do
4726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729
    break 2
4730
  fi
4731
done
4732
done
4733
 
4734
fi
4735
fi
4736
DUMPBIN=$ac_cv_prog_DUMPBIN
4737
if test -n "$DUMPBIN"; then
4738
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4739
echo "${ECHO_T}$DUMPBIN" >&6
4740
else
4741
  echo "$as_me:$LINENO: result: no" >&5
4742
echo "${ECHO_T}no" >&6
4743
fi
4744
 
4745
    test -n "$DUMPBIN" && break
4746
  done
4747
fi
4748
if test -z "$DUMPBIN"; then
4749
  ac_ct_DUMPBIN=$DUMPBIN
4750
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751
do
4752
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4753
set dummy $ac_prog; ac_word=$2
4754
echo "$as_me:$LINENO: checking for $ac_word" >&5
4755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4756
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757
  echo $ECHO_N "(cached) $ECHO_C" >&6
4758
else
4759
  if test -n "$ac_ct_DUMPBIN"; then
4760
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761
else
4762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763
for as_dir in $PATH
4764
do
4765
  IFS=$as_save_IFS
4766
  test -z "$as_dir" && as_dir=.
4767
  for ac_exec_ext in '' $ac_executable_extensions; do
4768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771
    break 2
4772
  fi
4773
done
4774
done
4775
 
4776
fi
4777
fi
4778
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779
if test -n "$ac_ct_DUMPBIN"; then
4780
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4782
else
4783
  echo "$as_me:$LINENO: result: no" >&5
4784
echo "${ECHO_T}no" >&6
4785
fi
4786
 
4787
  test -n "$ac_ct_DUMPBIN" && break
4788
done
4789
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4790
 
4791
  DUMPBIN=$ac_ct_DUMPBIN
4792
fi
4793
 
4794
 
4795
  if test "$DUMPBIN" != ":"; then
4796
    NM="$DUMPBIN"
4797
  fi
4798
fi
4799
test -z "$NM" && NM=nm
4800
 
4801
 
4802
 
4803
 
4804
 
4805
 
4806
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4807
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4808
if test "${lt_cv_nm_interface+set}" = set; then
4809
  echo $ECHO_N "(cached) $ECHO_C" >&6
4810
else
4811
  lt_cv_nm_interface="BSD nm"
4812
  echo "int some_variable = 0;" > conftest.$ac_ext
4813
  (eval echo "\"\$as_me:4812: $ac_compile\"" >&5)
4814
  (eval "$ac_compile" 2>conftest.err)
4815
  cat conftest.err >&5
4816
  (eval echo "\"\$as_me:4815: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4817
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4818
  cat conftest.err >&5
4819
  (eval echo "\"\$as_me:4818: output\"" >&5)
4820
  cat conftest.out >&5
4821
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4822
    lt_cv_nm_interface="MS dumpbin"
4823
  fi
4824
  rm -f conftest*
4825
fi
4826
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4827
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4828
 
4829
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4830
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4831
LN_S=$as_ln_s
4832
if test "$LN_S" = "ln -s"; then
4833
  echo "$as_me:$LINENO: result: yes" >&5
4834
echo "${ECHO_T}yes" >&6
4835
else
4836
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4837
echo "${ECHO_T}no, using $LN_S" >&6
4838
fi
4839
 
4840
# find the maximum length of command line arguments
4841
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4842
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4843
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4844
  echo $ECHO_N "(cached) $ECHO_C" >&6
4845
else
4846
    i=0
4847
  teststring="ABCD"
4848
 
4849
  case $build_os in
4850
  msdosdjgpp*)
4851
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4852
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4853
    # during glob expansion).  Even if it were fixed, the result of this
4854
    # check would be larger than it should be.
4855
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4856
    ;;
4857
 
4858
  gnu*)
4859
    # Under GNU Hurd, this test is not required because there is
4860
    # no limit to the length of command line arguments.
4861
    # Libtool will interpret -1 as no limit whatsoever
4862
    lt_cv_sys_max_cmd_len=-1;
4863
    ;;
4864
 
4865
  cygwin* | mingw* | cegcc*)
4866
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4867
    # about 5 minutes as the teststring grows exponentially.
4868
    # Worse, since 9x/ME are not pre-emptively multitasking,
4869
    # you end up with a "frozen" computer, even though with patience
4870
    # the test eventually succeeds (with a max line length of 256k).
4871
    # Instead, let's just punt: use the minimum linelength reported by
4872
    # all of the supported platforms: 8192 (on NT/2K/XP).
4873
    lt_cv_sys_max_cmd_len=8192;
4874
    ;;
4875
 
4876
  amigaos*)
4877
    # On AmigaOS with pdksh, this test takes hours, literally.
4878
    # So we just punt and use a minimum line length of 8192.
4879
    lt_cv_sys_max_cmd_len=8192;
4880
    ;;
4881
 
4882
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4883
    # This has been around since 386BSD, at least.  Likely further.
4884
    if test -x /sbin/sysctl; then
4885
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4886
    elif test -x /usr/sbin/sysctl; then
4887
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4888
    else
4889
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4890
    fi
4891
    # And add a safety zone
4892
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894
    ;;
4895
 
4896
  interix*)
4897
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4898
    lt_cv_sys_max_cmd_len=196608
4899
    ;;
4900
 
4901
  osf*)
4902
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4903
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4904
    # nice to cause kernel panics so lets avoid the loop below.
4905
    # First set a reasonable default.
4906
    lt_cv_sys_max_cmd_len=16384
4907
    #
4908
    if test -x /sbin/sysconfig; then
4909
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4910
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4911
      esac
4912
    fi
4913
    ;;
4914
  sco3.2v5*)
4915
    lt_cv_sys_max_cmd_len=102400
4916
    ;;
4917
  sysv5* | sco5v6* | sysv4.2uw2*)
4918
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4919
    if test -n "$kargmax"; then
4920
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4921
    else
4922
      lt_cv_sys_max_cmd_len=32768
4923
    fi
4924
    ;;
4925
  *)
4926
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4927
    if test -n "$lt_cv_sys_max_cmd_len"; then
4928
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4929
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4930
    else
4931
      # Make teststring a little bigger before we do anything with it.
4932
      # a 1K string should be a reasonable start.
4933
      for i in 1 2 3 4 5 6 7 8 ; do
4934
        teststring=$teststring$teststring
4935
      done
4936
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4937
      # If test is not a shell built-in, we'll probably end up computing a
4938
      # maximum length that is only half of the actual maximum length, but
4939
      # we can't tell.
4940
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4941
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4942
              test $i != 17 # 1/2 MB should be enough
4943
      do
4944
        i=`expr $i + 1`
4945
        teststring=$teststring$teststring
4946
      done
4947
      # Only check the string length outside the loop.
4948
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4949
      teststring=
4950
      # Add a significant safety factor because C++ compilers can tack on
4951
      # massive amounts of additional arguments before passing them to the
4952
      # linker.  It appears as though 1/2 is a usable value.
4953
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4954
    fi
4955
    ;;
4956
  esac
4957
 
4958
fi
4959
 
4960
if test -n $lt_cv_sys_max_cmd_len ; then
4961
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4962
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4963
else
4964
  echo "$as_me:$LINENO: result: none" >&5
4965
echo "${ECHO_T}none" >&6
4966
fi
4967
max_cmd_len=$lt_cv_sys_max_cmd_len
4968
 
4969
 
4970
 
4971
 
4972
 
4973
 
4974
: ${CP="cp -f"}
4975
: ${MV="mv -f"}
4976
: ${RM="rm -f"}
4977
 
4978
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4979
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4980
# Try some XSI features
4981
xsi_shell=no
4982
( _lt_dummy="a/b/c"
4983
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4984
      = c,a/b,, \
4985
    && eval 'test $(( 1 + 1 )) -eq 2 \
4986
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4987
  && xsi_shell=yes
4988
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4989
echo "${ECHO_T}$xsi_shell" >&6
4990
 
4991
 
4992
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4993
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4994
lt_shell_append=no
4995
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4996
    >/dev/null 2>&1 \
4997
  && lt_shell_append=yes
4998
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4999
echo "${ECHO_T}$lt_shell_append" >&6
5000
 
5001
 
5002
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5003
  lt_unset=unset
5004
else
5005
  lt_unset=false
5006
fi
5007
 
5008
 
5009
 
5010
 
5011
 
5012
# test EBCDIC or ASCII
5013
case `echo X|tr X '\101'` in
5014
 A) # ASCII based system
5015
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5016
  lt_SP2NL='tr \040 \012'
5017
  lt_NL2SP='tr \015\012 \040\040'
5018
  ;;
5019
 *) # EBCDIC based system
5020
  lt_SP2NL='tr \100 \n'
5021
  lt_NL2SP='tr \r\n \100\100'
5022
  ;;
5023
esac
5024
 
5025
 
5026
 
5027
 
5028
 
5029
 
5030
 
5031
 
5032
 
5033
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5034
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5035
if test "${lt_cv_ld_reload_flag+set}" = set; then
5036
  echo $ECHO_N "(cached) $ECHO_C" >&6
5037
else
5038
  lt_cv_ld_reload_flag='-r'
5039
fi
5040
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5041
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5042
reload_flag=$lt_cv_ld_reload_flag
5043
case $reload_flag in
5044
"" | " "*) ;;
5045
*) reload_flag=" $reload_flag" ;;
5046
esac
5047
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048
case $host_os in
5049
  darwin*)
5050
    if test "$GCC" = yes; then
5051
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5052
    else
5053
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054
    fi
5055
    ;;
5056
esac
5057
 
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
if test -n "$ac_tool_prefix"; then
5067
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5068
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5069
echo "$as_me:$LINENO: checking for $ac_word" >&5
5070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
5073
else
5074
  if test -n "$OBJDUMP"; then
5075
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5076
else
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
5082
  for ac_exec_ext in '' $ac_executable_extensions; do
5083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086
    break 2
5087
  fi
5088
done
5089
done
5090
 
5091
fi
5092
fi
5093
OBJDUMP=$ac_cv_prog_OBJDUMP
5094
if test -n "$OBJDUMP"; then
5095
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5096
echo "${ECHO_T}$OBJDUMP" >&6
5097
else
5098
  echo "$as_me:$LINENO: result: no" >&5
5099
echo "${ECHO_T}no" >&6
5100
fi
5101
 
5102
fi
5103
if test -z "$ac_cv_prog_OBJDUMP"; then
5104
  ac_ct_OBJDUMP=$OBJDUMP
5105
  # Extract the first word of "objdump", so it can be a program name with args.
5106
set dummy objdump; ac_word=$2
5107
echo "$as_me:$LINENO: checking for $ac_word" >&5
5108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5110
  echo $ECHO_N "(cached) $ECHO_C" >&6
5111
else
5112
  if test -n "$ac_ct_OBJDUMP"; then
5113
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5114
else
5115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116
for as_dir in $PATH
5117
do
5118
  IFS=$as_save_IFS
5119
  test -z "$as_dir" && as_dir=.
5120
  for ac_exec_ext in '' $ac_executable_extensions; do
5121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124
    break 2
5125
  fi
5126
done
5127
done
5128
 
5129
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5130
fi
5131
fi
5132
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5133
if test -n "$ac_ct_OBJDUMP"; then
5134
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5135
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5136
else
5137
  echo "$as_me:$LINENO: result: no" >&5
5138
echo "${ECHO_T}no" >&6
5139
fi
5140
 
5141
  OBJDUMP=$ac_ct_OBJDUMP
5142
else
5143
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5144
fi
5145
 
5146
test -z "$OBJDUMP" && OBJDUMP=objdump
5147
 
5148
 
5149
 
5150
 
5151
 
5152
 
5153
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5154
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5155
if test "${lt_cv_deplibs_check_method+set}" = set; then
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
5157
else
5158
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5159
lt_cv_file_magic_test_file=
5160
lt_cv_deplibs_check_method='unknown'
5161
# Need to set the preceding variable on all platforms that support
5162
# interlibrary dependencies.
5163
# 'none' -- dependencies not supported.
5164
# `unknown' -- same as none, but documents that we really don't know.
5165
# 'pass_all' -- all dependencies passed with no checks.
5166
# 'test_compile' -- check by making test program.
5167
# 'file_magic [[regex]]' -- check by looking for files in library path
5168
# which responds to the $file_magic_cmd with a given extended regex.
5169
# If you have `file' or equivalent on your system and you're not sure
5170
# whether `pass_all' will *always* work, you probably want this one.
5171
 
5172
case $host_os in
5173
aix[4-9]*)
5174
  lt_cv_deplibs_check_method=pass_all
5175
  ;;
5176
 
5177
beos*)
5178
  lt_cv_deplibs_check_method=pass_all
5179
  ;;
5180
 
5181
bsdi[45]*)
5182
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5183
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5184
  lt_cv_file_magic_test_file=/shlib/libc.so
5185
  ;;
5186
 
5187
cygwin*)
5188
  # func_win32_libid is a shell function defined in ltmain.sh
5189
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190
  lt_cv_file_magic_cmd='func_win32_libid'
5191
  ;;
5192
 
5193
mingw* | pw32*)
5194
  # Base MSYS/MinGW do not provide the 'file' command needed by
5195
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5196
  # unless we find 'file', for example because we are cross-compiling.
5197
  if ( file / ) >/dev/null 2>&1; then
5198
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5199
    lt_cv_file_magic_cmd='func_win32_libid'
5200
  else
5201
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5202
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5203
  fi
5204
  ;;
5205
 
5206
cegcc)
5207
  # use the weaker test based on 'objdump'. See mingw*.
5208
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5210
  ;;
5211
 
5212
darwin* | rhapsody*)
5213
  lt_cv_deplibs_check_method=pass_all
5214
  ;;
5215
 
5216
freebsd* | dragonfly*)
5217
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218
    case $host_cpu in
5219
    i*86 )
5220
      # Not sure whether the presence of OpenBSD here was a mistake.
5221
      # Let's accept both of them until this is cleared up.
5222
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223
      lt_cv_file_magic_cmd=/usr/bin/file
5224
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225
      ;;
5226
    esac
5227
  else
5228
    lt_cv_deplibs_check_method=pass_all
5229
  fi
5230
  ;;
5231
 
5232
gnu*)
5233
  lt_cv_deplibs_check_method=pass_all
5234
  ;;
5235
 
5236
hpux10.20* | hpux11*)
5237
  lt_cv_file_magic_cmd=/usr/bin/file
5238
  case $host_cpu in
5239
  ia64*)
5240
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5241
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5242
    ;;
5243
  hppa*64*)
5244
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5245
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5246
    ;;
5247
  *)
5248
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5249
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5250
    ;;
5251
  esac
5252
  ;;
5253
 
5254
interix[3-9]*)
5255
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5256
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5257
  ;;
5258
 
5259
irix5* | irix6* | nonstopux*)
5260
  case $LD in
5261
  *-32|*"-32 ") libmagic=32-bit;;
5262
  *-n32|*"-n32 ") libmagic=N32;;
5263
  *-64|*"-64 ") libmagic=64-bit;;
5264
  *) libmagic=never-match;;
5265
  esac
5266
  lt_cv_deplibs_check_method=pass_all
5267
  ;;
5268
 
5269
# This must be Linux ELF.
5270
linux* | k*bsd*-gnu)
5271
  lt_cv_deplibs_check_method=pass_all
5272
  ;;
5273
 
5274
netbsd*)
5275
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5277
  else
5278
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5279
  fi
5280
  ;;
5281
 
5282
newos6*)
5283
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5284
  lt_cv_file_magic_cmd=/usr/bin/file
5285
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5286
  ;;
5287
 
5288
*nto* | *qnx*)
5289
  lt_cv_deplibs_check_method=pass_all
5290
  ;;
5291
 
5292
openbsd*)
5293
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5294
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5295
  else
5296
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5297
  fi
5298
  ;;
5299
 
5300
osf3* | osf4* | osf5*)
5301
  lt_cv_deplibs_check_method=pass_all
5302
  ;;
5303
 
5304
rdos*)
5305
  lt_cv_deplibs_check_method=pass_all
5306
  ;;
5307
 
5308
solaris*)
5309
  lt_cv_deplibs_check_method=pass_all
5310
  ;;
5311
 
5312
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313
  lt_cv_deplibs_check_method=pass_all
5314
  ;;
5315
 
5316
sysv4 | sysv4.3*)
5317
  case $host_vendor in
5318
  motorola)
5319
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5320
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5321
    ;;
5322
  ncr)
5323
    lt_cv_deplibs_check_method=pass_all
5324
    ;;
5325
  sequent)
5326
    lt_cv_file_magic_cmd='/bin/file'
5327
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5328
    ;;
5329
  sni)
5330
    lt_cv_file_magic_cmd='/bin/file'
5331
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5332
    lt_cv_file_magic_test_file=/lib/libc.so
5333
    ;;
5334
  siemens)
5335
    lt_cv_deplibs_check_method=pass_all
5336
    ;;
5337
  pc)
5338
    lt_cv_deplibs_check_method=pass_all
5339
    ;;
5340
  esac
5341
  ;;
5342
 
5343
tpf*)
5344
  lt_cv_deplibs_check_method=pass_all
5345
  ;;
5346
esac
5347
 
5348
fi
5349
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5350
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5351
file_magic_cmd=$lt_cv_file_magic_cmd
5352
deplibs_check_method=$lt_cv_deplibs_check_method
5353
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5354
 
5355
 
5356
 
5357
 
5358
 
5359
 
5360
 
5361
 
5362
 
5363
 
5364
 
5365
 
5366
if test -n "$ac_tool_prefix"; then
5367
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5368
set dummy ${ac_tool_prefix}ar; ac_word=$2
5369
echo "$as_me:$LINENO: checking for $ac_word" >&5
5370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371
if test "${ac_cv_prog_AR+set}" = set; then
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
5373
else
5374
  if test -n "$AR"; then
5375
  ac_cv_prog_AR="$AR" # Let the user override the test.
5376
else
5377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378
for as_dir in $PATH
5379
do
5380
  IFS=$as_save_IFS
5381
  test -z "$as_dir" && as_dir=.
5382
  for ac_exec_ext in '' $ac_executable_extensions; do
5383
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386
    break 2
5387
  fi
5388
done
5389
done
5390
 
5391
fi
5392
fi
5393
AR=$ac_cv_prog_AR
5394
if test -n "$AR"; then
5395
  echo "$as_me:$LINENO: result: $AR" >&5
5396
echo "${ECHO_T}$AR" >&6
5397
else
5398
  echo "$as_me:$LINENO: result: no" >&5
5399
echo "${ECHO_T}no" >&6
5400
fi
5401
 
5402
fi
5403
if test -z "$ac_cv_prog_AR"; then
5404
  ac_ct_AR=$AR
5405
  # Extract the first word of "ar", so it can be a program name with args.
5406
set dummy ar; ac_word=$2
5407
echo "$as_me:$LINENO: checking for $ac_word" >&5
5408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5410
  echo $ECHO_N "(cached) $ECHO_C" >&6
5411
else
5412
  if test -n "$ac_ct_AR"; then
5413
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5414
else
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416
for as_dir in $PATH
5417
do
5418
  IFS=$as_save_IFS
5419
  test -z "$as_dir" && as_dir=.
5420
  for ac_exec_ext in '' $ac_executable_extensions; do
5421
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422
    ac_cv_prog_ac_ct_AR="ar"
5423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424
    break 2
5425
  fi
5426
done
5427
done
5428
 
5429
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5430
fi
5431
fi
5432
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5433
if test -n "$ac_ct_AR"; then
5434
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5435
echo "${ECHO_T}$ac_ct_AR" >&6
5436
else
5437
  echo "$as_me:$LINENO: result: no" >&5
5438
echo "${ECHO_T}no" >&6
5439
fi
5440
 
5441
  AR=$ac_ct_AR
5442
else
5443
  AR="$ac_cv_prog_AR"
5444
fi
5445
 
5446
test -z "$AR" && AR=ar
5447
test -z "$AR_FLAGS" && AR_FLAGS=cru
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
if test -n "$ac_tool_prefix"; then
5460
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461
set dummy ${ac_tool_prefix}strip; ac_word=$2
5462
echo "$as_me:$LINENO: checking for $ac_word" >&5
5463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464
if test "${ac_cv_prog_STRIP+set}" = set; then
5465
  echo $ECHO_N "(cached) $ECHO_C" >&6
5466
else
5467
  if test -n "$STRIP"; then
5468
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469
else
5470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471
for as_dir in $PATH
5472
do
5473
  IFS=$as_save_IFS
5474
  test -z "$as_dir" && as_dir=.
5475
  for ac_exec_ext in '' $ac_executable_extensions; do
5476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479
    break 2
5480
  fi
5481
done
5482
done
5483
 
5484
fi
5485
fi
5486
STRIP=$ac_cv_prog_STRIP
5487
if test -n "$STRIP"; then
5488
  echo "$as_me:$LINENO: result: $STRIP" >&5
5489
echo "${ECHO_T}$STRIP" >&6
5490
else
5491
  echo "$as_me:$LINENO: result: no" >&5
5492
echo "${ECHO_T}no" >&6
5493
fi
5494
 
5495
fi
5496
if test -z "$ac_cv_prog_STRIP"; then
5497
  ac_ct_STRIP=$STRIP
5498
  # Extract the first word of "strip", so it can be a program name with args.
5499
set dummy strip; ac_word=$2
5500
echo "$as_me:$LINENO: checking for $ac_word" >&5
5501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5502
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5503
  echo $ECHO_N "(cached) $ECHO_C" >&6
5504
else
5505
  if test -n "$ac_ct_STRIP"; then
5506
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5507
else
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509
for as_dir in $PATH
5510
do
5511
  IFS=$as_save_IFS
5512
  test -z "$as_dir" && as_dir=.
5513
  for ac_exec_ext in '' $ac_executable_extensions; do
5514
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515
    ac_cv_prog_ac_ct_STRIP="strip"
5516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517
    break 2
5518
  fi
5519
done
5520
done
5521
 
5522
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5523
fi
5524
fi
5525
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5526
if test -n "$ac_ct_STRIP"; then
5527
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5528
echo "${ECHO_T}$ac_ct_STRIP" >&6
5529
else
5530
  echo "$as_me:$LINENO: result: no" >&5
5531
echo "${ECHO_T}no" >&6
5532
fi
5533
 
5534
  STRIP=$ac_ct_STRIP
5535
else
5536
  STRIP="$ac_cv_prog_STRIP"
5537
fi
5538
 
5539
test -z "$STRIP" && STRIP=:
5540
 
5541
 
5542
 
5543
 
5544
 
5545
 
5546
if test -n "$ac_tool_prefix"; then
5547
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5548
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5549
echo "$as_me:$LINENO: checking for $ac_word" >&5
5550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551
if test "${ac_cv_prog_RANLIB+set}" = set; then
5552
  echo $ECHO_N "(cached) $ECHO_C" >&6
5553
else
5554
  if test -n "$RANLIB"; then
5555
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5556
else
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558
for as_dir in $PATH
5559
do
5560
  IFS=$as_save_IFS
5561
  test -z "$as_dir" && as_dir=.
5562
  for ac_exec_ext in '' $ac_executable_extensions; do
5563
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5565
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566
    break 2
5567
  fi
5568
done
5569
done
5570
 
5571
fi
5572
fi
5573
RANLIB=$ac_cv_prog_RANLIB
5574
if test -n "$RANLIB"; then
5575
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5576
echo "${ECHO_T}$RANLIB" >&6
5577
else
5578
  echo "$as_me:$LINENO: result: no" >&5
5579
echo "${ECHO_T}no" >&6
5580
fi
5581
 
5582
fi
5583
if test -z "$ac_cv_prog_RANLIB"; then
5584
  ac_ct_RANLIB=$RANLIB
5585
  # Extract the first word of "ranlib", so it can be a program name with args.
5586
set dummy ranlib; ac_word=$2
5587
echo "$as_me:$LINENO: checking for $ac_word" >&5
5588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5590
  echo $ECHO_N "(cached) $ECHO_C" >&6
5591
else
5592
  if test -n "$ac_ct_RANLIB"; then
5593
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5594
else
5595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596
for as_dir in $PATH
5597
do
5598
  IFS=$as_save_IFS
5599
  test -z "$as_dir" && as_dir=.
5600
  for ac_exec_ext in '' $ac_executable_extensions; do
5601
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5603
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604
    break 2
5605
  fi
5606
done
5607
done
5608
 
5609
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5610
fi
5611
fi
5612
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5613
if test -n "$ac_ct_RANLIB"; then
5614
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5615
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5616
else
5617
  echo "$as_me:$LINENO: result: no" >&5
5618
echo "${ECHO_T}no" >&6
5619
fi
5620
 
5621
  RANLIB=$ac_ct_RANLIB
5622
else
5623
  RANLIB="$ac_cv_prog_RANLIB"
5624
fi
5625
 
5626
test -z "$RANLIB" && RANLIB=:
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
# Determine commands to create old-style static archives.
5634
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5635
old_postinstall_cmds='chmod 644 $oldlib'
5636
old_postuninstall_cmds=
5637
 
5638
if test -n "$RANLIB"; then
5639
  case $host_os in
5640
  openbsd*)
5641
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5642
    ;;
5643
  *)
5644
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5645
    ;;
5646
  esac
5647
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5648
fi
5649
 
5650
 
5651
 
5652
 
5653
 
5654
 
5655
 
5656
 
5657
 
5658
 
5659
 
5660
 
5661
 
5662
 
5663
 
5664
 
5665
 
5666
 
5667
 
5668
 
5669
 
5670
 
5671
 
5672
 
5673
 
5674
 
5675
 
5676
 
5677
 
5678
 
5679
 
5680
 
5681
 
5682
 
5683
# If no C compiler was specified, use CC.
5684
LTCC=${LTCC-"$CC"}
5685
 
5686
# If no C compiler flags were specified, use CFLAGS.
5687
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5688
 
5689
# Allow CC to be a program name with arguments.
5690
compiler=$CC
5691
 
5692
 
5693
# Check for command to grab the raw symbol name followed by C symbol from nm.
5694
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5695
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5696
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5697
  echo $ECHO_N "(cached) $ECHO_C" >&6
5698
else
5699
 
5700
# These are sane defaults that work on at least a few old systems.
5701
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5702
 
5703
# Character class describing NM global symbol codes.
5704
symcode='[BCDEGRST]'
5705
 
5706
# Regexp to match symbols that can be accessed directly from C.
5707
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5708
 
5709
# Define system-specific variables.
5710
case $host_os in
5711
aix*)
5712
  symcode='[BCDT]'
5713
  ;;
5714
cygwin* | mingw* | pw32* | cegcc*)
5715
  symcode='[ABCDGISTW]'
5716
  ;;
5717
hpux*)
5718
  if test "$host_cpu" = ia64; then
5719
    symcode='[ABCDEGRST]'
5720
  fi
5721
  ;;
5722
irix* | nonstopux*)
5723
  symcode='[BCDEGRST]'
5724
  ;;
5725
osf*)
5726
  symcode='[BCDEGQRST]'
5727
  ;;
5728
solaris*)
5729
  symcode='[BDRT]'
5730
  ;;
5731
sco3.2v5*)
5732
  symcode='[DT]'
5733
  ;;
5734
sysv4.2uw2*)
5735
  symcode='[DT]'
5736
  ;;
5737
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5738
  symcode='[ABDT]'
5739
  ;;
5740
sysv4)
5741
  symcode='[DFNSTU]'
5742
  ;;
5743
esac
5744
 
5745
# If we're using GNU nm, then use its standard symbol codes.
5746
case `$NM -V 2>&1` in
5747
*GNU* | *'with BFD'*)
5748
  symcode='[ABCDGIRSTW]' ;;
5749
esac
5750
 
5751
# Transform an extracted symbol line into a proper C declaration.
5752
# Some systems (esp. on ia64) link data and code symbols differently,
5753
# so use this general approach.
5754
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5755
 
5756
# Transform an extracted symbol line into symbol name and symbol address
5757
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5758
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5759
 
5760
# Handle CRLF in mingw tool chain
5761
opt_cr=
5762
case $build_os in
5763
mingw*)
5764
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5765
  ;;
5766
esac
5767
 
5768
# Try without a prefix underscore, then with it.
5769
for ac_symprfx in "" "_"; do
5770
 
5771
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5772
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5773
 
5774
  # Write the raw and C identifiers.
5775
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5776
    # Fake it for dumpbin and say T for any non-static function
5777
    # and D for any global variable.
5778
    # Also find C++ and __fastcall symbols from MSVC++,
5779
    # which start with @ or ?.
5780
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5781
"     {last_section=section; section=\$ 3};"\
5782
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5783
"     \$ 0!~/External *\|/{next};"\
5784
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5785
"     {if(hide[section]) next};"\
5786
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5787
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5788
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5789
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5790
"     ' prfx=^$ac_symprfx"
5791
  else
5792
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5793
  fi
5794
 
5795
  # Check to see that the pipe works correctly.
5796
  pipe_works=no
5797
 
5798
  rm -f conftest*
5799
  cat > conftest.$ac_ext <<_LT_EOF
5800
#ifdef __cplusplus
5801
extern "C" {
5802
#endif
5803
char nm_test_var;
5804
void nm_test_func(void);
5805
void nm_test_func(void){}
5806
#ifdef __cplusplus
5807
}
5808
#endif
5809
int main(){nm_test_var='a';nm_test_func();return(0);}
5810
_LT_EOF
5811
 
5812
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813
  (eval $ac_compile) 2>&5
5814
  ac_status=$?
5815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816
  (exit $ac_status); }; then
5817
    # Now try to grab the symbols.
5818
    nlist=conftest.nm
5819
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5820
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5821
  ac_status=$?
5822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823
  (exit $ac_status); } && test -s "$nlist"; then
5824
      # Try sorting and uniquifying the output.
5825
      if sort "$nlist" | uniq > "$nlist"T; then
5826
        mv -f "$nlist"T "$nlist"
5827
      else
5828
        rm -f "$nlist"T
5829
      fi
5830
 
5831
      # Make sure that we snagged all the symbols we need.
5832
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5833
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5834
          cat <<_LT_EOF > conftest.$ac_ext
5835
#ifdef __cplusplus
5836
extern "C" {
5837
#endif
5838
 
5839
_LT_EOF
5840
          # Now generate the symbol file.
5841
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5842
 
5843
          cat <<_LT_EOF >> conftest.$ac_ext
5844
 
5845
/* The mapping between symbol names and symbols.  */
5846
const struct {
5847
  const char *name;
5848
  void       *address;
5849
}
5850
lt__PROGRAM__LTX_preloaded_symbols[] =
5851
{
5852
  { "@PROGRAM@", (void *) 0 },
5853
_LT_EOF
5854
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855
          cat <<\_LT_EOF >> conftest.$ac_ext
5856
  {0, (void *) 0}
5857
};
5858
 
5859
/* This works around a problem in FreeBSD linker */
5860
#ifdef FREEBSD_WORKAROUND
5861
static const void *lt_preloaded_setup() {
5862
  return lt__PROGRAM__LTX_preloaded_symbols;
5863
}
5864
#endif
5865
 
5866
#ifdef __cplusplus
5867
}
5868
#endif
5869
_LT_EOF
5870
          # Now try linking the two files.
5871
          mv conftest.$ac_objext conftstm.$ac_objext
5872
          lt_save_LIBS="$LIBS"
5873
          lt_save_CFLAGS="$CFLAGS"
5874
          LIBS="conftstm.$ac_objext"
5875
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877
  (eval $ac_link) 2>&5
5878
  ac_status=$?
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5881
            pipe_works=yes
5882
          fi
5883
          LIBS="$lt_save_LIBS"
5884
          CFLAGS="$lt_save_CFLAGS"
5885
        else
5886
          echo "cannot find nm_test_func in $nlist" >&5
5887
        fi
5888
      else
5889
        echo "cannot find nm_test_var in $nlist" >&5
5890
      fi
5891
    else
5892
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5893
    fi
5894
  else
5895
    echo "$progname: failed program was:" >&5
5896
    cat conftest.$ac_ext >&5
5897
  fi
5898
  rm -rf conftest* conftst*
5899
 
5900
  # Do not use the global_symbol_pipe unless it works.
5901
  if test "$pipe_works" = yes; then
5902
    break
5903
  else
5904
    lt_cv_sys_global_symbol_pipe=
5905
  fi
5906
done
5907
 
5908
fi
5909
 
5910
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911
  lt_cv_sys_global_symbol_to_cdecl=
5912
fi
5913
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914
  echo "$as_me:$LINENO: result: failed" >&5
5915
echo "${ECHO_T}failed" >&6
5916
else
5917
  echo "$as_me:$LINENO: result: ok" >&5
5918
echo "${ECHO_T}ok" >&6
5919
fi
5920
 
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
 
5930
 
5931
 
5932
 
5933
 
5934
 
5935
 
5936
 
5937
 
5938
 
5939
 
5940
 
5941
 
5942
 
5943
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5944
if test "${enable_libtool_lock+set}" = set; then
5945
  enableval="$enable_libtool_lock"
5946
 
5947
fi;
5948
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5949
 
5950
# Some flags need to be propagated to the compiler or linker for good
5951
# libtool support.
5952
case $host in
5953
ia64-*-hpux*)
5954
  # Find out which ABI we are using.
5955
  echo 'int i;' > conftest.$ac_ext
5956
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5957
  (eval $ac_compile) 2>&5
5958
  ac_status=$?
5959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960
  (exit $ac_status); }; then
5961
    case `/usr/bin/file conftest.$ac_objext` in
5962
      *ELF-32*)
5963
        HPUX_IA64_MODE="32"
5964
        ;;
5965
      *ELF-64*)
5966
        HPUX_IA64_MODE="64"
5967
        ;;
5968
    esac
5969
  fi
5970
  rm -rf conftest*
5971
  ;;
5972
*-*-irix6*)
5973
  # Find out which ABI we are using.
5974
  echo '#line 5973 "configure"' > conftest.$ac_ext
5975
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
  (eval $ac_compile) 2>&5
5977
  ac_status=$?
5978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979
  (exit $ac_status); }; then
5980
    if test "$lt_cv_prog_gnu_ld" = yes; then
5981
      case `/usr/bin/file conftest.$ac_objext` in
5982
        *32-bit*)
5983
          LD="${LD-ld} -melf32bsmip"
5984
          ;;
5985
        *N32*)
5986
          LD="${LD-ld} -melf32bmipn32"
5987
          ;;
5988
        *64-bit*)
5989
          LD="${LD-ld} -melf64bmip"
5990
        ;;
5991
      esac
5992
    else
5993
      case `/usr/bin/file conftest.$ac_objext` in
5994
        *32-bit*)
5995
          LD="${LD-ld} -32"
5996
          ;;
5997
        *N32*)
5998
          LD="${LD-ld} -n32"
5999
          ;;
6000
        *64-bit*)
6001
          LD="${LD-ld} -64"
6002
          ;;
6003
      esac
6004
    fi
6005
  fi
6006
  rm -rf conftest*
6007
  ;;
6008
 
6009
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6010
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6011
  # Find out which ABI we are using.
6012
  echo 'int i;' > conftest.$ac_ext
6013
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014
  (eval $ac_compile) 2>&5
6015
  ac_status=$?
6016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017
  (exit $ac_status); }; then
6018
    case `/usr/bin/file conftest.o` in
6019
      *32-bit*)
6020
        case $host in
6021
          x86_64-*kfreebsd*-gnu)
6022
            LD="${LD-ld} -m elf_i386_fbsd"
6023
            ;;
6024
          x86_64-*linux*)
6025
            LD="${LD-ld} -m elf_i386"
6026
            ;;
6027
          ppc64-*linux*|powerpc64-*linux*)
6028
            LD="${LD-ld} -m elf32ppclinux"
6029
            ;;
6030
          s390x-*linux*)
6031
            LD="${LD-ld} -m elf_s390"
6032
            ;;
6033
          sparc64-*linux*)
6034
            LD="${LD-ld} -m elf32_sparc"
6035
            ;;
6036
        esac
6037
        ;;
6038
      *64-bit*)
6039
        case $host in
6040
          x86_64-*kfreebsd*-gnu)
6041
            LD="${LD-ld} -m elf_x86_64_fbsd"
6042
            ;;
6043
          x86_64-*linux*)
6044
            LD="${LD-ld} -m elf_x86_64"
6045
            ;;
6046
          ppc*-*linux*|powerpc*-*linux*)
6047
            LD="${LD-ld} -m elf64ppc"
6048
            ;;
6049
          s390*-*linux*|s390*-*tpf*)
6050
            LD="${LD-ld} -m elf64_s390"
6051
            ;;
6052
          sparc*-*linux*)
6053
            LD="${LD-ld} -m elf64_sparc"
6054
            ;;
6055
        esac
6056
        ;;
6057
    esac
6058
  fi
6059
  rm -rf conftest*
6060
  ;;
6061
 
6062
*-*-sco3.2v5*)
6063
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6064
  SAVE_CFLAGS="$CFLAGS"
6065
  CFLAGS="$CFLAGS -belf"
6066
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6067
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6068
if test "${lt_cv_cc_needs_belf+set}" = set; then
6069
  echo $ECHO_N "(cached) $ECHO_C" >&6
6070
else
6071
  ac_ext=c
6072
ac_cpp='$CPP $CPPFLAGS'
6073
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076
 
6077
     cat >conftest.$ac_ext <<_ACEOF
6078
/* confdefs.h.  */
6079
_ACEOF
6080
cat confdefs.h >>conftest.$ac_ext
6081
cat >>conftest.$ac_ext <<_ACEOF
6082
/* end confdefs.h.  */
6083
 
6084
int
6085
main ()
6086
{
6087
 
6088
  ;
6089
  return 0;
6090
}
6091
_ACEOF
6092
rm -f conftest.$ac_objext conftest$ac_exeext
6093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094
  (eval $ac_link) 2>conftest.er1
6095
  ac_status=$?
6096
  grep -v '^ *+' conftest.er1 >conftest.err
6097
  rm -f conftest.er1
6098
  cat conftest.err >&5
6099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100
  (exit $ac_status); } &&
6101
         { ac_try='test -z "$ac_c_werror_flag"
6102
                         || test ! -s conftest.err'
6103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104
  (eval $ac_try) 2>&5
6105
  ac_status=$?
6106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
  (exit $ac_status); }; } &&
6108
         { ac_try='test -s conftest$ac_exeext'
6109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110
  (eval $ac_try) 2>&5
6111
  ac_status=$?
6112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113
  (exit $ac_status); }; }; then
6114
  lt_cv_cc_needs_belf=yes
6115
else
6116
  echo "$as_me: failed program was:" >&5
6117
sed 's/^/| /' conftest.$ac_ext >&5
6118
 
6119
lt_cv_cc_needs_belf=no
6120
fi
6121
rm -f conftest.err conftest.$ac_objext \
6122
      conftest$ac_exeext conftest.$ac_ext
6123
     ac_ext=c
6124
ac_cpp='$CPP $CPPFLAGS'
6125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
 
6129
fi
6130
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6131
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6132
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6133
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6134
    CFLAGS="$SAVE_CFLAGS"
6135
  fi
6136
  ;;
6137
sparc*-*solaris*)
6138
  # Find out which ABI we are using.
6139
  echo 'int i;' > conftest.$ac_ext
6140
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141
  (eval $ac_compile) 2>&5
6142
  ac_status=$?
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
  (exit $ac_status); }; then
6145
    case `/usr/bin/file conftest.o` in
6146
    *64-bit*)
6147
      case $lt_cv_prog_gnu_ld in
6148
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6149
      *)
6150
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6151
          LD="${LD-ld} -64"
6152
        fi
6153
        ;;
6154
      esac
6155
      ;;
6156
    esac
6157
  fi
6158
  rm -rf conftest*
6159
  ;;
6160
esac
6161
 
6162
need_locks="$enable_libtool_lock"
6163
 
6164
 
6165
  case $host_os in
6166
    rhapsody* | darwin*)
6167
    if test -n "$ac_tool_prefix"; then
6168
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6169
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6170
echo "$as_me:$LINENO: checking for $ac_word" >&5
6171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6173
  echo $ECHO_N "(cached) $ECHO_C" >&6
6174
else
6175
  if test -n "$DSYMUTIL"; then
6176
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183
  for ac_exec_ext in '' $ac_executable_extensions; do
6184
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187
    break 2
6188
  fi
6189
done
6190
done
6191
 
6192
fi
6193
fi
6194
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6195
if test -n "$DSYMUTIL"; then
6196
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6197
echo "${ECHO_T}$DSYMUTIL" >&6
6198
else
6199
  echo "$as_me:$LINENO: result: no" >&5
6200
echo "${ECHO_T}no" >&6
6201
fi
6202
 
6203
fi
6204
if test -z "$ac_cv_prog_DSYMUTIL"; then
6205
  ac_ct_DSYMUTIL=$DSYMUTIL
6206
  # Extract the first word of "dsymutil", so it can be a program name with args.
6207
set dummy dsymutil; ac_word=$2
6208
echo "$as_me:$LINENO: checking for $ac_word" >&5
6209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6211
  echo $ECHO_N "(cached) $ECHO_C" >&6
6212
else
6213
  if test -n "$ac_ct_DSYMUTIL"; then
6214
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6215
else
6216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217
for as_dir in $PATH
6218
do
6219
  IFS=$as_save_IFS
6220
  test -z "$as_dir" && as_dir=.
6221
  for ac_exec_ext in '' $ac_executable_extensions; do
6222
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6224
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225
    break 2
6226
  fi
6227
done
6228
done
6229
 
6230
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6231
fi
6232
fi
6233
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6234
if test -n "$ac_ct_DSYMUTIL"; then
6235
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6236
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6237
else
6238
  echo "$as_me:$LINENO: result: no" >&5
6239
echo "${ECHO_T}no" >&6
6240
fi
6241
 
6242
  DSYMUTIL=$ac_ct_DSYMUTIL
6243
else
6244
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6245
fi
6246
 
6247
    if test -n "$ac_tool_prefix"; then
6248
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6249
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6250
echo "$as_me:$LINENO: checking for $ac_word" >&5
6251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6253
  echo $ECHO_N "(cached) $ECHO_C" >&6
6254
else
6255
  if test -n "$NMEDIT"; then
6256
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6257
else
6258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259
for as_dir in $PATH
6260
do
6261
  IFS=$as_save_IFS
6262
  test -z "$as_dir" && as_dir=.
6263
  for ac_exec_ext in '' $ac_executable_extensions; do
6264
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267
    break 2
6268
  fi
6269
done
6270
done
6271
 
6272
fi
6273
fi
6274
NMEDIT=$ac_cv_prog_NMEDIT
6275
if test -n "$NMEDIT"; then
6276
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6277
echo "${ECHO_T}$NMEDIT" >&6
6278
else
6279
  echo "$as_me:$LINENO: result: no" >&5
6280
echo "${ECHO_T}no" >&6
6281
fi
6282
 
6283
fi
6284
if test -z "$ac_cv_prog_NMEDIT"; then
6285
  ac_ct_NMEDIT=$NMEDIT
6286
  # Extract the first word of "nmedit", so it can be a program name with args.
6287
set dummy nmedit; ac_word=$2
6288
echo "$as_me:$LINENO: checking for $ac_word" >&5
6289
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6291
  echo $ECHO_N "(cached) $ECHO_C" >&6
6292
else
6293
  if test -n "$ac_ct_NMEDIT"; then
6294
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6295
else
6296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297
for as_dir in $PATH
6298
do
6299
  IFS=$as_save_IFS
6300
  test -z "$as_dir" && as_dir=.
6301
  for ac_exec_ext in '' $ac_executable_extensions; do
6302
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6304
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305
    break 2
6306
  fi
6307
done
6308
done
6309
 
6310
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6311
fi
6312
fi
6313
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6314
if test -n "$ac_ct_NMEDIT"; then
6315
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6316
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6317
else
6318
  echo "$as_me:$LINENO: result: no" >&5
6319
echo "${ECHO_T}no" >&6
6320
fi
6321
 
6322
  NMEDIT=$ac_ct_NMEDIT
6323
else
6324
  NMEDIT="$ac_cv_prog_NMEDIT"
6325
fi
6326
 
6327
    if test -n "$ac_tool_prefix"; then
6328
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6329
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6330
echo "$as_me:$LINENO: checking for $ac_word" >&5
6331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332
if test "${ac_cv_prog_LIPO+set}" = set; then
6333
  echo $ECHO_N "(cached) $ECHO_C" >&6
6334
else
6335
  if test -n "$LIPO"; then
6336
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6337
else
6338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339
for as_dir in $PATH
6340
do
6341
  IFS=$as_save_IFS
6342
  test -z "$as_dir" && as_dir=.
6343
  for ac_exec_ext in '' $ac_executable_extensions; do
6344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347
    break 2
6348
  fi
6349
done
6350
done
6351
 
6352
fi
6353
fi
6354
LIPO=$ac_cv_prog_LIPO
6355
if test -n "$LIPO"; then
6356
  echo "$as_me:$LINENO: result: $LIPO" >&5
6357
echo "${ECHO_T}$LIPO" >&6
6358
else
6359
  echo "$as_me:$LINENO: result: no" >&5
6360
echo "${ECHO_T}no" >&6
6361
fi
6362
 
6363
fi
6364
if test -z "$ac_cv_prog_LIPO"; then
6365
  ac_ct_LIPO=$LIPO
6366
  # Extract the first word of "lipo", so it can be a program name with args.
6367
set dummy lipo; ac_word=$2
6368
echo "$as_me:$LINENO: checking for $ac_word" >&5
6369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6370
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6371
  echo $ECHO_N "(cached) $ECHO_C" >&6
6372
else
6373
  if test -n "$ac_ct_LIPO"; then
6374
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6375
else
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377
for as_dir in $PATH
6378
do
6379
  IFS=$as_save_IFS
6380
  test -z "$as_dir" && as_dir=.
6381
  for ac_exec_ext in '' $ac_executable_extensions; do
6382
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383
    ac_cv_prog_ac_ct_LIPO="lipo"
6384
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385
    break 2
6386
  fi
6387
done
6388
done
6389
 
6390
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6391
fi
6392
fi
6393
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6394
if test -n "$ac_ct_LIPO"; then
6395
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6396
echo "${ECHO_T}$ac_ct_LIPO" >&6
6397
else
6398
  echo "$as_me:$LINENO: result: no" >&5
6399
echo "${ECHO_T}no" >&6
6400
fi
6401
 
6402
  LIPO=$ac_ct_LIPO
6403
else
6404
  LIPO="$ac_cv_prog_LIPO"
6405
fi
6406
 
6407
    if test -n "$ac_tool_prefix"; then
6408
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6409
set dummy ${ac_tool_prefix}otool; ac_word=$2
6410
echo "$as_me:$LINENO: checking for $ac_word" >&5
6411
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412
if test "${ac_cv_prog_OTOOL+set}" = set; then
6413
  echo $ECHO_N "(cached) $ECHO_C" >&6
6414
else
6415
  if test -n "$OTOOL"; then
6416
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6417
else
6418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419
for as_dir in $PATH
6420
do
6421
  IFS=$as_save_IFS
6422
  test -z "$as_dir" && as_dir=.
6423
  for ac_exec_ext in '' $ac_executable_extensions; do
6424
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6426
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427
    break 2
6428
  fi
6429
done
6430
done
6431
 
6432
fi
6433
fi
6434
OTOOL=$ac_cv_prog_OTOOL
6435
if test -n "$OTOOL"; then
6436
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6437
echo "${ECHO_T}$OTOOL" >&6
6438
else
6439
  echo "$as_me:$LINENO: result: no" >&5
6440
echo "${ECHO_T}no" >&6
6441
fi
6442
 
6443
fi
6444
if test -z "$ac_cv_prog_OTOOL"; then
6445
  ac_ct_OTOOL=$OTOOL
6446
  # Extract the first word of "otool", so it can be a program name with args.
6447
set dummy otool; ac_word=$2
6448
echo "$as_me:$LINENO: checking for $ac_word" >&5
6449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6450
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6451
  echo $ECHO_N "(cached) $ECHO_C" >&6
6452
else
6453
  if test -n "$ac_ct_OTOOL"; then
6454
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6455
else
6456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457
for as_dir in $PATH
6458
do
6459
  IFS=$as_save_IFS
6460
  test -z "$as_dir" && as_dir=.
6461
  for ac_exec_ext in '' $ac_executable_extensions; do
6462
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463
    ac_cv_prog_ac_ct_OTOOL="otool"
6464
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
    break 2
6466
  fi
6467
done
6468
done
6469
 
6470
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6471
fi
6472
fi
6473
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6474
if test -n "$ac_ct_OTOOL"; then
6475
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6476
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6477
else
6478
  echo "$as_me:$LINENO: result: no" >&5
6479
echo "${ECHO_T}no" >&6
6480
fi
6481
 
6482
  OTOOL=$ac_ct_OTOOL
6483
else
6484
  OTOOL="$ac_cv_prog_OTOOL"
6485
fi
6486
 
6487
    if test -n "$ac_tool_prefix"; then
6488
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6489
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6490
echo "$as_me:$LINENO: checking for $ac_word" >&5
6491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6492
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
6494
else
6495
  if test -n "$OTOOL64"; then
6496
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6497
else
6498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499
for as_dir in $PATH
6500
do
6501
  IFS=$as_save_IFS
6502
  test -z "$as_dir" && as_dir=.
6503
  for ac_exec_ext in '' $ac_executable_extensions; do
6504
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6506
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507
    break 2
6508
  fi
6509
done
6510
done
6511
 
6512
fi
6513
fi
6514
OTOOL64=$ac_cv_prog_OTOOL64
6515
if test -n "$OTOOL64"; then
6516
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6517
echo "${ECHO_T}$OTOOL64" >&6
6518
else
6519
  echo "$as_me:$LINENO: result: no" >&5
6520
echo "${ECHO_T}no" >&6
6521
fi
6522
 
6523
fi
6524
if test -z "$ac_cv_prog_OTOOL64"; then
6525
  ac_ct_OTOOL64=$OTOOL64
6526
  # Extract the first word of "otool64", so it can be a program name with args.
6527
set dummy otool64; ac_word=$2
6528
echo "$as_me:$LINENO: checking for $ac_word" >&5
6529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6531
  echo $ECHO_N "(cached) $ECHO_C" >&6
6532
else
6533
  if test -n "$ac_ct_OTOOL64"; then
6534
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6535
else
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537
for as_dir in $PATH
6538
do
6539
  IFS=$as_save_IFS
6540
  test -z "$as_dir" && as_dir=.
6541
  for ac_exec_ext in '' $ac_executable_extensions; do
6542
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545
    break 2
6546
  fi
6547
done
6548
done
6549
 
6550
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6551
fi
6552
fi
6553
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6554
if test -n "$ac_ct_OTOOL64"; then
6555
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6556
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6557
else
6558
  echo "$as_me:$LINENO: result: no" >&5
6559
echo "${ECHO_T}no" >&6
6560
fi
6561
 
6562
  OTOOL64=$ac_ct_OTOOL64
6563
else
6564
  OTOOL64="$ac_cv_prog_OTOOL64"
6565
fi
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
 
6592
 
6593
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6594
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6595
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6596
  echo $ECHO_N "(cached) $ECHO_C" >&6
6597
else
6598
  lt_cv_apple_cc_single_mod=no
6599
      if test -z "${LT_MULTI_MODULE}"; then
6600
        # By default we will add the -single_module flag. You can override
6601
        # by either setting the environment variable LT_MULTI_MODULE
6602
        # non-empty at configure time, or by adding -multi_module to the
6603
        # link flags.
6604
        rm -rf libconftest.dylib*
6605
        echo "int foo(void){return 1;}" > conftest.c
6606
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6607
-dynamiclib -Wl,-single_module conftest.c" >&5
6608
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6609
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6610
        _lt_result=$?
6611
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6612
          lt_cv_apple_cc_single_mod=yes
6613
        else
6614
          cat conftest.err >&5
6615
        fi
6616
        rm -rf libconftest.dylib*
6617
        rm -f conftest.*
6618
      fi
6619
fi
6620
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6621
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6622
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6623
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6624
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6625
  echo $ECHO_N "(cached) $ECHO_C" >&6
6626
else
6627
  lt_cv_ld_exported_symbols_list=no
6628
      save_LDFLAGS=$LDFLAGS
6629
      echo "_main" > conftest.sym
6630
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6631
      cat >conftest.$ac_ext <<_ACEOF
6632
/* confdefs.h.  */
6633
_ACEOF
6634
cat confdefs.h >>conftest.$ac_ext
6635
cat >>conftest.$ac_ext <<_ACEOF
6636
/* end confdefs.h.  */
6637
 
6638
int
6639
main ()
6640
{
6641
 
6642
  ;
6643
  return 0;
6644
}
6645
_ACEOF
6646
rm -f conftest.$ac_objext conftest$ac_exeext
6647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648
  (eval $ac_link) 2>conftest.er1
6649
  ac_status=$?
6650
  grep -v '^ *+' conftest.er1 >conftest.err
6651
  rm -f conftest.er1
6652
  cat conftest.err >&5
6653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654
  (exit $ac_status); } &&
6655
         { ac_try='test -z "$ac_c_werror_flag"
6656
                         || test ! -s conftest.err'
6657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658
  (eval $ac_try) 2>&5
6659
  ac_status=$?
6660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661
  (exit $ac_status); }; } &&
6662
         { ac_try='test -s conftest$ac_exeext'
6663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664
  (eval $ac_try) 2>&5
6665
  ac_status=$?
6666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667
  (exit $ac_status); }; }; then
6668
  lt_cv_ld_exported_symbols_list=yes
6669
else
6670
  echo "$as_me: failed program was:" >&5
6671
sed 's/^/| /' conftest.$ac_ext >&5
6672
 
6673
lt_cv_ld_exported_symbols_list=no
6674
fi
6675
rm -f conftest.err conftest.$ac_objext \
6676
      conftest$ac_exeext conftest.$ac_ext
6677
        LDFLAGS="$save_LDFLAGS"
6678
 
6679
fi
6680
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6681
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6682
    case $host_os in
6683
    rhapsody* | darwin1.[012])
6684
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6685
    darwin1.*)
6686
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6687
    darwin*) # darwin 5.x on
6688
      # if running on 10.5 or later, the deployment target defaults
6689
      # to the OS version, if on x86, and 10.4, the deployment
6690
      # target defaults to 10.4. Don't you love it?
6691
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6692
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6693
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6694
        10.[012]*)
6695
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6696
        10.*)
6697
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6698
      esac
6699
    ;;
6700
  esac
6701
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6702
      _lt_dar_single_mod='$single_module'
6703
    fi
6704
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6705
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6706
    else
6707
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6708
    fi
6709
    if test "$DSYMUTIL" != ":"; then
6710
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6711
    else
6712
      _lt_dsymutil=
6713
    fi
6714
    ;;
6715
  esac
6716
 
6717
ac_ext=c
6718
ac_cpp='$CPP $CPPFLAGS'
6719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6723
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6724
# On Suns, sometimes $CPP names a directory.
6725
if test -n "$CPP" && test -d "$CPP"; then
6726
  CPP=
6727
fi
6728
if test -z "$CPP"; then
6729
  if test "${ac_cv_prog_CPP+set}" = set; then
6730
  echo $ECHO_N "(cached) $ECHO_C" >&6
6731
else
6732
      # Double quotes because CPP needs to be expanded
6733
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6734
    do
6735
      ac_preproc_ok=false
6736
for ac_c_preproc_warn_flag in '' yes
6737
do
6738
  # Use a header file that comes with gcc, so configuring glibc
6739
  # with a fresh cross-compiler works.
6740
  # Prefer  to  if __STDC__ is defined, since
6741
  #  exists even on freestanding compilers.
6742
  # On the NeXT, cc -E runs the code through the compiler's parser,
6743
  # not just through cpp. "Syntax error" is here to catch this case.
6744
  cat >conftest.$ac_ext <<_ACEOF
6745
/* confdefs.h.  */
6746
_ACEOF
6747
cat confdefs.h >>conftest.$ac_ext
6748
cat >>conftest.$ac_ext <<_ACEOF
6749
/* end confdefs.h.  */
6750
#ifdef __STDC__
6751
# include 
6752
#else
6753
# include 
6754
#endif
6755
                     Syntax error
6756
_ACEOF
6757
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6759
  ac_status=$?
6760
  grep -v '^ *+' conftest.er1 >conftest.err
6761
  rm -f conftest.er1
6762
  cat conftest.err >&5
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
  (exit $ac_status); } >/dev/null; then
6765
  if test -s conftest.err; then
6766
    ac_cpp_err=$ac_c_preproc_warn_flag
6767
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6768
  else
6769
    ac_cpp_err=
6770
  fi
6771
else
6772
  ac_cpp_err=yes
6773
fi
6774
if test -z "$ac_cpp_err"; then
6775
  :
6776
else
6777
  echo "$as_me: failed program was:" >&5
6778
sed 's/^/| /' conftest.$ac_ext >&5
6779
 
6780
  # Broken: fails on valid input.
6781
continue
6782
fi
6783
rm -f conftest.err conftest.$ac_ext
6784
 
6785
  # OK, works on sane cases.  Now check whether non-existent headers
6786
  # can be detected and how.
6787
  cat >conftest.$ac_ext <<_ACEOF
6788
/* confdefs.h.  */
6789
_ACEOF
6790
cat confdefs.h >>conftest.$ac_ext
6791
cat >>conftest.$ac_ext <<_ACEOF
6792
/* end confdefs.h.  */
6793
#include 
6794
_ACEOF
6795
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797
  ac_status=$?
6798
  grep -v '^ *+' conftest.er1 >conftest.err
6799
  rm -f conftest.er1
6800
  cat conftest.err >&5
6801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802
  (exit $ac_status); } >/dev/null; then
6803
  if test -s conftest.err; then
6804
    ac_cpp_err=$ac_c_preproc_warn_flag
6805
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6806
  else
6807
    ac_cpp_err=
6808
  fi
6809
else
6810
  ac_cpp_err=yes
6811
fi
6812
if test -z "$ac_cpp_err"; then
6813
  # Broken: success on invalid input.
6814
continue
6815
else
6816
  echo "$as_me: failed program was:" >&5
6817
sed 's/^/| /' conftest.$ac_ext >&5
6818
 
6819
  # Passes both tests.
6820
ac_preproc_ok=:
6821
break
6822
fi
6823
rm -f conftest.err conftest.$ac_ext
6824
 
6825
done
6826
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6827
rm -f conftest.err conftest.$ac_ext
6828
if $ac_preproc_ok; then
6829
  break
6830
fi
6831
 
6832
    done
6833
    ac_cv_prog_CPP=$CPP
6834
 
6835
fi
6836
  CPP=$ac_cv_prog_CPP
6837
else
6838
  ac_cv_prog_CPP=$CPP
6839
fi
6840
echo "$as_me:$LINENO: result: $CPP" >&5
6841
echo "${ECHO_T}$CPP" >&6
6842
ac_preproc_ok=false
6843
for ac_c_preproc_warn_flag in '' yes
6844
do
6845
  # Use a header file that comes with gcc, so configuring glibc
6846
  # with a fresh cross-compiler works.
6847
  # Prefer  to  if __STDC__ is defined, since
6848
  #  exists even on freestanding compilers.
6849
  # On the NeXT, cc -E runs the code through the compiler's parser,
6850
  # not just through cpp. "Syntax error" is here to catch this case.
6851
  cat >conftest.$ac_ext <<_ACEOF
6852
/* confdefs.h.  */
6853
_ACEOF
6854
cat confdefs.h >>conftest.$ac_ext
6855
cat >>conftest.$ac_ext <<_ACEOF
6856
/* end confdefs.h.  */
6857
#ifdef __STDC__
6858
# include 
6859
#else
6860
# include 
6861
#endif
6862
                     Syntax error
6863
_ACEOF
6864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866
  ac_status=$?
6867
  grep -v '^ *+' conftest.er1 >conftest.err
6868
  rm -f conftest.er1
6869
  cat conftest.err >&5
6870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871
  (exit $ac_status); } >/dev/null; then
6872
  if test -s conftest.err; then
6873
    ac_cpp_err=$ac_c_preproc_warn_flag
6874
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875
  else
6876
    ac_cpp_err=
6877
  fi
6878
else
6879
  ac_cpp_err=yes
6880
fi
6881
if test -z "$ac_cpp_err"; then
6882
  :
6883
else
6884
  echo "$as_me: failed program was:" >&5
6885
sed 's/^/| /' conftest.$ac_ext >&5
6886
 
6887
  # Broken: fails on valid input.
6888
continue
6889
fi
6890
rm -f conftest.err conftest.$ac_ext
6891
 
6892
  # OK, works on sane cases.  Now check whether non-existent headers
6893
  # can be detected and how.
6894
  cat >conftest.$ac_ext <<_ACEOF
6895
/* confdefs.h.  */
6896
_ACEOF
6897
cat confdefs.h >>conftest.$ac_ext
6898
cat >>conftest.$ac_ext <<_ACEOF
6899
/* end confdefs.h.  */
6900
#include 
6901
_ACEOF
6902
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6903
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6904
  ac_status=$?
6905
  grep -v '^ *+' conftest.er1 >conftest.err
6906
  rm -f conftest.er1
6907
  cat conftest.err >&5
6908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909
  (exit $ac_status); } >/dev/null; then
6910
  if test -s conftest.err; then
6911
    ac_cpp_err=$ac_c_preproc_warn_flag
6912
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6913
  else
6914
    ac_cpp_err=
6915
  fi
6916
else
6917
  ac_cpp_err=yes
6918
fi
6919
if test -z "$ac_cpp_err"; then
6920
  # Broken: success on invalid input.
6921
continue
6922
else
6923
  echo "$as_me: failed program was:" >&5
6924
sed 's/^/| /' conftest.$ac_ext >&5
6925
 
6926
  # Passes both tests.
6927
ac_preproc_ok=:
6928
break
6929
fi
6930
rm -f conftest.err conftest.$ac_ext
6931
 
6932
done
6933
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934
rm -f conftest.err conftest.$ac_ext
6935
if $ac_preproc_ok; then
6936
  :
6937
else
6938
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6939
See \`config.log' for more details." >&5
6940
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6941
See \`config.log' for more details." >&2;}
6942
   { (exit 1); exit 1; }; }
6943
fi
6944
 
6945
ac_ext=c
6946
ac_cpp='$CPP $CPPFLAGS'
6947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
 
6951
 
6952
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6953
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6954
if test "${ac_cv_header_stdc+set}" = set; then
6955
  echo $ECHO_N "(cached) $ECHO_C" >&6
6956
else
6957
  cat >conftest.$ac_ext <<_ACEOF
6958
/* confdefs.h.  */
6959
_ACEOF
6960
cat confdefs.h >>conftest.$ac_ext
6961
cat >>conftest.$ac_ext <<_ACEOF
6962
/* end confdefs.h.  */
6963
#include 
6964
#include 
6965
#include 
6966
#include 
6967
 
6968
int
6969
main ()
6970
{
6971
 
6972
  ;
6973
  return 0;
6974
}
6975
_ACEOF
6976
rm -f conftest.$ac_objext
6977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978
  (eval $ac_compile) 2>conftest.er1
6979
  ac_status=$?
6980
  grep -v '^ *+' conftest.er1 >conftest.err
6981
  rm -f conftest.er1
6982
  cat conftest.err >&5
6983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984
  (exit $ac_status); } &&
6985
         { ac_try='test -z "$ac_c_werror_flag"
6986
                         || test ! -s conftest.err'
6987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988
  (eval $ac_try) 2>&5
6989
  ac_status=$?
6990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991
  (exit $ac_status); }; } &&
6992
         { ac_try='test -s conftest.$ac_objext'
6993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994
  (eval $ac_try) 2>&5
6995
  ac_status=$?
6996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997
  (exit $ac_status); }; }; then
6998
  ac_cv_header_stdc=yes
6999
else
7000
  echo "$as_me: failed program was:" >&5
7001
sed 's/^/| /' conftest.$ac_ext >&5
7002
 
7003
ac_cv_header_stdc=no
7004
fi
7005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7006
 
7007
if test $ac_cv_header_stdc = yes; then
7008
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009
  cat >conftest.$ac_ext <<_ACEOF
7010
/* confdefs.h.  */
7011
_ACEOF
7012
cat confdefs.h >>conftest.$ac_ext
7013
cat >>conftest.$ac_ext <<_ACEOF
7014
/* end confdefs.h.  */
7015
#include 
7016
 
7017
_ACEOF
7018
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019
  $EGREP "memchr" >/dev/null 2>&1; then
7020
  :
7021
else
7022
  ac_cv_header_stdc=no
7023
fi
7024
rm -f conftest*
7025
 
7026
fi
7027
 
7028
if test $ac_cv_header_stdc = yes; then
7029
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030
  cat >conftest.$ac_ext <<_ACEOF
7031
/* confdefs.h.  */
7032
_ACEOF
7033
cat confdefs.h >>conftest.$ac_ext
7034
cat >>conftest.$ac_ext <<_ACEOF
7035
/* end confdefs.h.  */
7036
#include 
7037
 
7038
_ACEOF
7039
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7040
  $EGREP "free" >/dev/null 2>&1; then
7041
  :
7042
else
7043
  ac_cv_header_stdc=no
7044
fi
7045
rm -f conftest*
7046
 
7047
fi
7048
 
7049
if test $ac_cv_header_stdc = yes; then
7050
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7051
  if test "$cross_compiling" = yes; then
7052
  :
7053
else
7054
  cat >conftest.$ac_ext <<_ACEOF
7055
/* confdefs.h.  */
7056
_ACEOF
7057
cat confdefs.h >>conftest.$ac_ext
7058
cat >>conftest.$ac_ext <<_ACEOF
7059
/* end confdefs.h.  */
7060
#include 
7061
#if ((' ' & 0x0FF) == 0x020)
7062
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064
#else
7065
# define ISLOWER(c) \
7066
                   (('a' <= (c) && (c) <= 'i') \
7067
                     || ('j' <= (c) && (c) <= 'r') \
7068
                     || ('s' <= (c) && (c) <= 'z'))
7069
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070
#endif
7071
 
7072
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073
int
7074
main ()
7075
{
7076
  int i;
7077
  for (i = 0; i < 256; i++)
7078
    if (XOR (islower (i), ISLOWER (i))
7079
        || toupper (i) != TOUPPER (i))
7080
      exit(2);
7081
  exit (0);
7082
}
7083
_ACEOF
7084
rm -f conftest$ac_exeext
7085
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086
  (eval $ac_link) 2>&5
7087
  ac_status=$?
7088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091
  (eval $ac_try) 2>&5
7092
  ac_status=$?
7093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094
  (exit $ac_status); }; }; then
7095
  :
7096
else
7097
  echo "$as_me: program exited with status $ac_status" >&5
7098
echo "$as_me: failed program was:" >&5
7099
sed 's/^/| /' conftest.$ac_ext >&5
7100
 
7101
( exit $ac_status )
7102
ac_cv_header_stdc=no
7103
fi
7104
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7105
fi
7106
fi
7107
fi
7108
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7109
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7110
if test $ac_cv_header_stdc = yes; then
7111
 
7112
cat >>confdefs.h <<\_ACEOF
7113
#define STDC_HEADERS 1
7114
_ACEOF
7115
 
7116
fi
7117
 
7118
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119
 
7120
 
7121
 
7122
 
7123
 
7124
 
7125
 
7126
 
7127
 
7128
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7129
                  inttypes.h stdint.h unistd.h
7130
do
7131
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132
echo "$as_me:$LINENO: checking for $ac_header" >&5
7133
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7134
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135
  echo $ECHO_N "(cached) $ECHO_C" >&6
7136
else
7137
  cat >conftest.$ac_ext <<_ACEOF
7138
/* confdefs.h.  */
7139
_ACEOF
7140
cat confdefs.h >>conftest.$ac_ext
7141
cat >>conftest.$ac_ext <<_ACEOF
7142
/* end confdefs.h.  */
7143
$ac_includes_default
7144
 
7145
#include <$ac_header>
7146
_ACEOF
7147
rm -f conftest.$ac_objext
7148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149
  (eval $ac_compile) 2>conftest.er1
7150
  ac_status=$?
7151
  grep -v '^ *+' conftest.er1 >conftest.err
7152
  rm -f conftest.er1
7153
  cat conftest.err >&5
7154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155
  (exit $ac_status); } &&
7156
         { ac_try='test -z "$ac_c_werror_flag"
7157
                         || test ! -s conftest.err'
7158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159
  (eval $ac_try) 2>&5
7160
  ac_status=$?
7161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162
  (exit $ac_status); }; } &&
7163
         { ac_try='test -s conftest.$ac_objext'
7164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165
  (eval $ac_try) 2>&5
7166
  ac_status=$?
7167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168
  (exit $ac_status); }; }; then
7169
  eval "$as_ac_Header=yes"
7170
else
7171
  echo "$as_me: failed program was:" >&5
7172
sed 's/^/| /' conftest.$ac_ext >&5
7173
 
7174
eval "$as_ac_Header=no"
7175
fi
7176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7177
fi
7178
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7181
  cat >>confdefs.h <<_ACEOF
7182
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183
_ACEOF
7184
 
7185
fi
7186
 
7187
done
7188
 
7189
 
7190
 
7191
for ac_header in dlfcn.h
7192
do
7193
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7194
echo "$as_me:$LINENO: checking for $ac_header" >&5
7195
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197
  echo $ECHO_N "(cached) $ECHO_C" >&6
7198
else
7199
  cat >conftest.$ac_ext <<_ACEOF
7200
/* confdefs.h.  */
7201
_ACEOF
7202
cat confdefs.h >>conftest.$ac_ext
7203
cat >>conftest.$ac_ext <<_ACEOF
7204
/* end confdefs.h.  */
7205
$ac_includes_default
7206
 
7207
#include <$ac_header>
7208
_ACEOF
7209
rm -f conftest.$ac_objext
7210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211
  (eval $ac_compile) 2>conftest.er1
7212
  ac_status=$?
7213
  grep -v '^ *+' conftest.er1 >conftest.err
7214
  rm -f conftest.er1
7215
  cat conftest.err >&5
7216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217
  (exit $ac_status); } &&
7218
         { ac_try='test -z "$ac_c_werror_flag"
7219
                         || test ! -s conftest.err'
7220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221
  (eval $ac_try) 2>&5
7222
  ac_status=$?
7223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224
  (exit $ac_status); }; } &&
7225
         { ac_try='test -s conftest.$ac_objext'
7226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227
  (eval $ac_try) 2>&5
7228
  ac_status=$?
7229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230
  (exit $ac_status); }; }; then
7231
  eval "$as_ac_Header=yes"
7232
else
7233
  echo "$as_me: failed program was:" >&5
7234
sed 's/^/| /' conftest.$ac_ext >&5
7235
 
7236
eval "$as_ac_Header=no"
7237
fi
7238
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239
fi
7240
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7241
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7242
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7243
  cat >>confdefs.h <<_ACEOF
7244
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7245
_ACEOF
7246
 
7247
fi
7248
 
7249
done
7250
 
7251
 
7252
 
7253
# Set options
7254
 
7255
 
7256
 
7257
        enable_dlopen=no
7258
 
7259
 
7260
 
7261
            # Check whether --enable-shared or --disable-shared was given.
7262
if test "${enable_shared+set}" = set; then
7263
  enableval="$enable_shared"
7264
  p=${PACKAGE-default}
7265
    case $enableval in
7266
    yes) enable_shared=yes ;;
7267
    no) enable_shared=no ;;
7268
    *)
7269
      enable_shared=no
7270
      # Look at the argument we got.  We use all the common list separators.
7271
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7272
      for pkg in $enableval; do
7273
        IFS="$lt_save_ifs"
7274
        if test "X$pkg" = "X$p"; then
7275
          enable_shared=yes
7276
        fi
7277
      done
7278
      IFS="$lt_save_ifs"
7279
      ;;
7280
    esac
7281
else
7282
  enable_shared=yes
7283
fi;
7284
 
7285
 
7286
 
7287
 
7288
 
7289
 
7290
 
7291
 
7292
  # Check whether --enable-static or --disable-static was given.
7293
if test "${enable_static+set}" = set; then
7294
  enableval="$enable_static"
7295
  p=${PACKAGE-default}
7296
    case $enableval in
7297
    yes) enable_static=yes ;;
7298
    no) enable_static=no ;;
7299
    *)
7300
     enable_static=no
7301
      # Look at the argument we got.  We use all the common list separators.
7302
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7303
      for pkg in $enableval; do
7304
        IFS="$lt_save_ifs"
7305
        if test "X$pkg" = "X$p"; then
7306
          enable_static=yes
7307
        fi
7308
      done
7309
      IFS="$lt_save_ifs"
7310
      ;;
7311
    esac
7312
else
7313
  enable_static=yes
7314
fi;
7315
 
7316
 
7317
 
7318
 
7319
 
7320
 
7321
 
7322
 
7323
 
7324
# Check whether --with-pic or --without-pic was given.
7325
if test "${with_pic+set}" = set; then
7326
  withval="$with_pic"
7327
  pic_mode="$withval"
7328
else
7329
  pic_mode=default
7330
fi;
7331
 
7332
test -z "$pic_mode" && pic_mode=default
7333
 
7334
 
7335
 
7336
 
7337
 
7338
 
7339
 
7340
  # Check whether --enable-fast-install or --disable-fast-install was given.
7341
if test "${enable_fast_install+set}" = set; then
7342
  enableval="$enable_fast_install"
7343
  p=${PACKAGE-default}
7344
    case $enableval in
7345
    yes) enable_fast_install=yes ;;
7346
    no) enable_fast_install=no ;;
7347
    *)
7348
      enable_fast_install=no
7349
      # Look at the argument we got.  We use all the common list separators.
7350
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7351
      for pkg in $enableval; do
7352
        IFS="$lt_save_ifs"
7353
        if test "X$pkg" = "X$p"; then
7354
          enable_fast_install=yes
7355
        fi
7356
      done
7357
      IFS="$lt_save_ifs"
7358
      ;;
7359
    esac
7360
else
7361
  enable_fast_install=yes
7362
fi;
7363
 
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
# This can be used to rebuild libtool when needed
7374
LIBTOOL_DEPS="$ltmain"
7375
 
7376
# Always use our own libtool.
7377
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7378
 
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
 
7389
 
7390
 
7391
 
7392
 
7393
 
7394
 
7395
 
7396
 
7397
 
7398
 
7399
 
7400
 
7401
 
7402
 
7403
test -z "$LN_S" && LN_S="ln -s"
7404
 
7405
 
7406
 
7407
 
7408
 
7409
 
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
if test -n "${ZSH_VERSION+set}" ; then
7419
   setopt NO_GLOB_SUBST
7420
fi
7421
 
7422
echo "$as_me:$LINENO: checking for objdir" >&5
7423
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424
if test "${lt_cv_objdir+set}" = set; then
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
7426
else
7427
  rm -f .libs 2>/dev/null
7428
mkdir .libs 2>/dev/null
7429
if test -d .libs; then
7430
  lt_cv_objdir=.libs
7431
else
7432
  # MS-DOS does not allow filenames that begin with a dot.
7433
  lt_cv_objdir=_libs
7434
fi
7435
rmdir .libs 2>/dev/null
7436
fi
7437
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7438
echo "${ECHO_T}$lt_cv_objdir" >&6
7439
objdir=$lt_cv_objdir
7440
 
7441
 
7442
 
7443
 
7444
 
7445
cat >>confdefs.h <<_ACEOF
7446
#define LT_OBJDIR "$lt_cv_objdir/"
7447
_ACEOF
7448
 
7449
 
7450
 
7451
 
7452
 
7453
 
7454
 
7455
 
7456
 
7457
 
7458
 
7459
 
7460
 
7461
 
7462
 
7463
 
7464
 
7465
case $host_os in
7466
aix3*)
7467
  # AIX sometimes has problems with the GCC collect2 program.  For some
7468
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7469
  # vanish in a puff of smoke.
7470
  if test "X${COLLECT_NAMES+set}" != Xset; then
7471
    COLLECT_NAMES=
7472
    export COLLECT_NAMES
7473
  fi
7474
  ;;
7475
esac
7476
 
7477
# Sed substitution that helps us do robust quoting.  It backslashifies
7478
# metacharacters that are still active within double-quoted strings.
7479
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7480
 
7481
# Same as above, but do not quote variable references.
7482
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7483
 
7484
# Sed substitution to delay expansion of an escaped shell variable in a
7485
# double_quote_subst'ed string.
7486
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7487
 
7488
# Sed substitution to delay expansion of an escaped single quote.
7489
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7490
 
7491
# Sed substitution to avoid accidental globbing in evaled expressions
7492
no_glob_subst='s/\*/\\\*/g'
7493
 
7494
# Global variables:
7495
ofile=libtool
7496
can_build_shared=yes
7497
 
7498
# All known linkers require a `.a' archive for static linking (except MSVC,
7499
# which needs '.lib').
7500
libext=a
7501
 
7502
with_gnu_ld="$lt_cv_prog_gnu_ld"
7503
 
7504
old_CC="$CC"
7505
old_CFLAGS="$CFLAGS"
7506
 
7507
# Set sane defaults for various variables
7508
test -z "$CC" && CC=cc
7509
test -z "$LTCC" && LTCC=$CC
7510
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7511
test -z "$LD" && LD=ld
7512
test -z "$ac_objext" && ac_objext=o
7513
 
7514
for cc_temp in $compiler""; do
7515
  case $cc_temp in
7516
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518
    \-*) ;;
7519
    *) break;;
7520
  esac
7521
done
7522
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7523
 
7524
 
7525
# Only perform the check for file, if the check method requires it
7526
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7527
case $deplibs_check_method in
7528
file_magic*)
7529
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7530
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7531
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7532
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7533
  echo $ECHO_N "(cached) $ECHO_C" >&6
7534
else
7535
  case $MAGIC_CMD in
7536
[\\/*] |  ?:[\\/]*)
7537
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7538
  ;;
7539
*)
7540
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7541
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7542
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7543
  for ac_dir in $ac_dummy; do
7544
    IFS="$lt_save_ifs"
7545
    test -z "$ac_dir" && ac_dir=.
7546
    if test -f $ac_dir/${ac_tool_prefix}file; then
7547
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7548
      if test -n "$file_magic_test_file"; then
7549
        case $deplibs_check_method in
7550
        "file_magic "*)
7551
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7552
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7554
            $EGREP "$file_magic_regex" > /dev/null; then
7555
            :
7556
          else
7557
            cat <<_LT_EOF 1>&2
7558
 
7559
*** Warning: the command libtool uses to detect shared libraries,
7560
*** $file_magic_cmd, produces output that libtool cannot recognize.
7561
*** The result is that libtool may fail to recognize shared libraries
7562
*** as such.  This will affect the creation of libtool libraries that
7563
*** depend on shared libraries, but programs linked with such libtool
7564
*** libraries will work regardless of this problem.  Nevertheless, you
7565
*** may want to report the problem to your system manager and/or to
7566
*** bug-libtool@gnu.org
7567
 
7568
_LT_EOF
7569
          fi ;;
7570
        esac
7571
      fi
7572
      break
7573
    fi
7574
  done
7575
  IFS="$lt_save_ifs"
7576
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7577
  ;;
7578
esac
7579
fi
7580
 
7581
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7582
if test -n "$MAGIC_CMD"; then
7583
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7584
echo "${ECHO_T}$MAGIC_CMD" >&6
7585
else
7586
  echo "$as_me:$LINENO: result: no" >&5
7587
echo "${ECHO_T}no" >&6
7588
fi
7589
 
7590
 
7591
 
7592
 
7593
 
7594
if test -z "$lt_cv_path_MAGIC_CMD"; then
7595
  if test -n "$ac_tool_prefix"; then
7596
    echo "$as_me:$LINENO: checking for file" >&5
7597
echo $ECHO_N "checking for file... $ECHO_C" >&6
7598
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7599
  echo $ECHO_N "(cached) $ECHO_C" >&6
7600
else
7601
  case $MAGIC_CMD in
7602
[\\/*] |  ?:[\\/]*)
7603
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604
  ;;
7605
*)
7606
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7607
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7608
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7609
  for ac_dir in $ac_dummy; do
7610
    IFS="$lt_save_ifs"
7611
    test -z "$ac_dir" && ac_dir=.
7612
    if test -f $ac_dir/file; then
7613
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7614
      if test -n "$file_magic_test_file"; then
7615
        case $deplibs_check_method in
7616
        "file_magic "*)
7617
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7618
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7620
            $EGREP "$file_magic_regex" > /dev/null; then
7621
            :
7622
          else
7623
            cat <<_LT_EOF 1>&2
7624
 
7625
*** Warning: the command libtool uses to detect shared libraries,
7626
*** $file_magic_cmd, produces output that libtool cannot recognize.
7627
*** The result is that libtool may fail to recognize shared libraries
7628
*** as such.  This will affect the creation of libtool libraries that
7629
*** depend on shared libraries, but programs linked with such libtool
7630
*** libraries will work regardless of this problem.  Nevertheless, you
7631
*** may want to report the problem to your system manager and/or to
7632
*** bug-libtool@gnu.org
7633
 
7634
_LT_EOF
7635
          fi ;;
7636
        esac
7637
      fi
7638
      break
7639
    fi
7640
  done
7641
  IFS="$lt_save_ifs"
7642
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7643
  ;;
7644
esac
7645
fi
7646
 
7647
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648
if test -n "$MAGIC_CMD"; then
7649
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7650
echo "${ECHO_T}$MAGIC_CMD" >&6
7651
else
7652
  echo "$as_me:$LINENO: result: no" >&5
7653
echo "${ECHO_T}no" >&6
7654
fi
7655
 
7656
 
7657
  else
7658
    MAGIC_CMD=:
7659
  fi
7660
fi
7661
 
7662
  fi
7663
  ;;
7664
esac
7665
 
7666
# Use C for the default configuration in the libtool script
7667
 
7668
lt_save_CC="$CC"
7669
ac_ext=c
7670
ac_cpp='$CPP $CPPFLAGS'
7671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674
 
7675
 
7676
# Source file extension for C test sources.
7677
ac_ext=c
7678
 
7679
# Object file extension for compiled C test sources.
7680
objext=o
7681
objext=$objext
7682
 
7683
# Code to be used in simple compile tests
7684
lt_simple_compile_test_code="int some_variable = 0;"
7685
 
7686
# Code to be used in simple link tests
7687
lt_simple_link_test_code='int main(){return(0);}'
7688
 
7689
 
7690
 
7691
 
7692
 
7693
 
7694
 
7695
# If no C compiler was specified, use CC.
7696
LTCC=${LTCC-"$CC"}
7697
 
7698
# If no C compiler flags were specified, use CFLAGS.
7699
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7700
 
7701
# Allow CC to be a program name with arguments.
7702
compiler=$CC
7703
 
7704
# Save the default compiler, since it gets overwritten when the other
7705
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7706
compiler_DEFAULT=$CC
7707
 
7708
# save warnings/boilerplate of simple test code
7709
ac_outfile=conftest.$ac_objext
7710
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7711
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7712
_lt_compiler_boilerplate=`cat conftest.err`
7713
$RM conftest*
7714
 
7715
ac_outfile=conftest.$ac_objext
7716
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7717
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7718
_lt_linker_boilerplate=`cat conftest.err`
7719
$RM -r conftest*
7720
 
7721
 
7722
## CAVEAT EMPTOR:
7723
## There is no encapsulation within the following macros, do not change
7724
## the running order or otherwise move them around unless you know exactly
7725
## what you are doing...
7726
if test -n "$compiler"; then
7727
 
7728
lt_prog_compiler_no_builtin_flag=
7729
 
7730
if test "$GCC" = yes; then
7731
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7732
 
7733
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7734
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7735
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7736
  echo $ECHO_N "(cached) $ECHO_C" >&6
7737
else
7738
  lt_cv_prog_compiler_rtti_exceptions=no
7739
   ac_outfile=conftest.$ac_objext
7740
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7741
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7742
   # Insert the option either (1) after the last *FLAGS variable, or
7743
   # (2) before a word containing "conftest.", or (3) at the end.
7744
   # Note that $ac_compile itself does not contain backslashes and begins
7745
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7746
   # The option is referenced via a variable to avoid confusing sed.
7747
   lt_compile=`echo "$ac_compile" | $SED \
7748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7750
   -e 's:$: $lt_compiler_flag:'`
7751
   (eval echo "\"\$as_me:7750: $lt_compile\"" >&5)
7752
   (eval "$lt_compile" 2>conftest.err)
7753
   ac_status=$?
7754
   cat conftest.err >&5
7755
   echo "$as_me:7754: \$? = $ac_status" >&5
7756
   if (exit $ac_status) && test -s "$ac_outfile"; then
7757
     # The compiler can only warn and ignore the option if not recognized
7758
     # So say no if there are warnings other than the usual output.
7759
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7760
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7761
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7762
       lt_cv_prog_compiler_rtti_exceptions=yes
7763
     fi
7764
   fi
7765
   $RM conftest*
7766
 
7767
fi
7768
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7769
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7770
 
7771
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7772
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7773
else
7774
    :
7775
fi
7776
 
7777
fi
7778
 
7779
 
7780
 
7781
 
7782
 
7783
 
7784
  lt_prog_compiler_wl=
7785
lt_prog_compiler_pic=
7786
lt_prog_compiler_static=
7787
 
7788
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7789
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7790
 
7791
  if test "$GCC" = yes; then
7792
    lt_prog_compiler_wl='-Wl,'
7793
    lt_prog_compiler_static='-static'
7794
 
7795
    case $host_os in
7796
      aix*)
7797
      # All AIX code is PIC.
7798
      if test "$host_cpu" = ia64; then
7799
        # AIX 5 now supports IA64 processor
7800
        lt_prog_compiler_static='-Bstatic'
7801
      fi
7802
      ;;
7803
 
7804
    amigaos*)
7805
      case $host_cpu in
7806
      powerpc)
7807
            # see comment about AmigaOS4 .so support
7808
            lt_prog_compiler_pic='-fPIC'
7809
        ;;
7810
      m68k)
7811
            # FIXME: we need at least 68020 code to build shared libraries, but
7812
            # adding the `-m68020' flag to GCC prevents building anything better,
7813
            # like `-m68040'.
7814
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7815
        ;;
7816
      esac
7817
      ;;
7818
 
7819
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7820
      # PIC is the default for these OSes.
7821
      ;;
7822
 
7823
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7824
      # This hack is so that the source file can tell whether it is being
7825
      # built for inclusion in a dll (and should export symbols for example).
7826
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7827
      # (--disable-auto-import) libraries
7828
      lt_prog_compiler_pic='-DDLL_EXPORT'
7829
      ;;
7830
 
7831
    darwin* | rhapsody*)
7832
      # PIC is the default on this platform
7833
      # Common symbols not allowed in MH_DYLIB files
7834
      lt_prog_compiler_pic='-fno-common'
7835
      ;;
7836
 
7837
    hpux*)
7838
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7839
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7840
      # sets the default TLS model and affects inlining.
7841
      case $host_cpu in
7842
      hppa*64*)
7843
        # +Z the default
7844
        ;;
7845
      *)
7846
        lt_prog_compiler_pic='-fPIC'
7847
        ;;
7848
      esac
7849
      ;;
7850
 
7851
    interix[3-9]*)
7852
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7853
      # Instead, we relocate shared libraries at runtime.
7854
      ;;
7855
 
7856
    msdosdjgpp*)
7857
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7858
      # on systems that don't support them.
7859
      lt_prog_compiler_can_build_shared=no
7860
      enable_shared=no
7861
      ;;
7862
 
7863
    *nto* | *qnx*)
7864
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7865
      # it will coredump.
7866
      lt_prog_compiler_pic='-fPIC -shared'
7867
      ;;
7868
 
7869
    sysv4*MP*)
7870
      if test -d /usr/nec; then
7871
        lt_prog_compiler_pic=-Kconform_pic
7872
      fi
7873
      ;;
7874
 
7875
    *)
7876
      lt_prog_compiler_pic='-fPIC'
7877
      ;;
7878
    esac
7879
  else
7880
    # PORTME Check for flag to pass linker flags through the system compiler.
7881
    case $host_os in
7882
    aix*)
7883
      lt_prog_compiler_wl='-Wl,'
7884
      if test "$host_cpu" = ia64; then
7885
        # AIX 5 now supports IA64 processor
7886
        lt_prog_compiler_static='-Bstatic'
7887
      else
7888
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7889
      fi
7890
      ;;
7891
 
7892
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7893
      # This hack is so that the source file can tell whether it is being
7894
      # built for inclusion in a dll (and should export symbols for example).
7895
      lt_prog_compiler_pic='-DDLL_EXPORT'
7896
      ;;
7897
 
7898
    hpux9* | hpux10* | hpux11*)
7899
      lt_prog_compiler_wl='-Wl,'
7900
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7901
      # not for PA HP-UX.
7902
      case $host_cpu in
7903
      hppa*64*|ia64*)
7904
        # +Z the default
7905
        ;;
7906
      *)
7907
        lt_prog_compiler_pic='+Z'
7908
        ;;
7909
      esac
7910
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7911
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7912
      ;;
7913
 
7914
    irix5* | irix6* | nonstopux*)
7915
      lt_prog_compiler_wl='-Wl,'
7916
      # PIC (with -KPIC) is the default.
7917
      lt_prog_compiler_static='-non_shared'
7918
      ;;
7919
 
7920
    linux* | k*bsd*-gnu)
7921
      case $cc_basename in
7922
      # old Intel for x86_64 which still supported -KPIC.
7923
      ecc*)
7924
        lt_prog_compiler_wl='-Wl,'
7925
        lt_prog_compiler_pic='-KPIC'
7926
        lt_prog_compiler_static='-static'
7927
        ;;
7928
      # icc used to be incompatible with GCC.
7929
      # ICC 10 doesn't accept -KPIC any more.
7930
      icc* | ifort*)
7931
        lt_prog_compiler_wl='-Wl,'
7932
        lt_prog_compiler_pic='-fPIC'
7933
        lt_prog_compiler_static='-static'
7934
        ;;
7935
      # Lahey Fortran 8.1.
7936
      lf95*)
7937
        lt_prog_compiler_wl='-Wl,'
7938
        lt_prog_compiler_pic='--shared'
7939
        lt_prog_compiler_static='--static'
7940
        ;;
7941
      pgcc* | pgf77* | pgf90* | pgf95*)
7942
        # Portland Group compilers (*not* the Pentium gcc compiler,
7943
        # which looks to be a dead project)
7944
        lt_prog_compiler_wl='-Wl,'
7945
        lt_prog_compiler_pic='-fpic'
7946
        lt_prog_compiler_static='-Bstatic'
7947
        ;;
7948
      ccc*)
7949
        lt_prog_compiler_wl='-Wl,'
7950
        # All Alpha code is PIC.
7951
        lt_prog_compiler_static='-non_shared'
7952
        ;;
7953
      xl*)
7954
        # IBM XL C 8.0/Fortran 10.1 on PPC
7955
        lt_prog_compiler_wl='-Wl,'
7956
        lt_prog_compiler_pic='-qpic'
7957
        lt_prog_compiler_static='-qstaticlink'
7958
        ;;
7959
      *)
7960
        case `$CC -V 2>&1 | sed 5q` in
7961
        *Sun\ C*)
7962
          # Sun C 5.9
7963
          lt_prog_compiler_pic='-KPIC'
7964
          lt_prog_compiler_static='-Bstatic'
7965
          lt_prog_compiler_wl='-Wl,'
7966
          ;;
7967
        *Sun\ F*)
7968
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7969
          lt_prog_compiler_pic='-KPIC'
7970
          lt_prog_compiler_static='-Bstatic'
7971
          lt_prog_compiler_wl=''
7972
          ;;
7973
        esac
7974
        ;;
7975
      esac
7976
      ;;
7977
 
7978
    newsos6)
7979
      lt_prog_compiler_pic='-KPIC'
7980
      lt_prog_compiler_static='-Bstatic'
7981
      ;;
7982
 
7983
    *nto* | *qnx*)
7984
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7985
      # it will coredump.
7986
      lt_prog_compiler_pic='-fPIC -shared'
7987
      ;;
7988
 
7989
    osf3* | osf4* | osf5*)
7990
      lt_prog_compiler_wl='-Wl,'
7991
      # All OSF/1 code is PIC.
7992
      lt_prog_compiler_static='-non_shared'
7993
      ;;
7994
 
7995
    rdos*)
7996
      lt_prog_compiler_static='-non_shared'
7997
      ;;
7998
 
7999
    solaris*)
8000
      lt_prog_compiler_pic='-KPIC'
8001
      lt_prog_compiler_static='-Bstatic'
8002
      case $cc_basename in
8003
      f77* | f90* | f95*)
8004
        lt_prog_compiler_wl='-Qoption ld ';;
8005
      *)
8006
        lt_prog_compiler_wl='-Wl,';;
8007
      esac
8008
      ;;
8009
 
8010
    sunos4*)
8011
      lt_prog_compiler_wl='-Qoption ld '
8012
      lt_prog_compiler_pic='-PIC'
8013
      lt_prog_compiler_static='-Bstatic'
8014
      ;;
8015
 
8016
    sysv4 | sysv4.2uw2* | sysv4.3*)
8017
      lt_prog_compiler_wl='-Wl,'
8018
      lt_prog_compiler_pic='-KPIC'
8019
      lt_prog_compiler_static='-Bstatic'
8020
      ;;
8021
 
8022
    sysv4*MP*)
8023
      if test -d /usr/nec ;then
8024
        lt_prog_compiler_pic='-Kconform_pic'
8025
        lt_prog_compiler_static='-Bstatic'
8026
      fi
8027
      ;;
8028
 
8029
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8030
      lt_prog_compiler_wl='-Wl,'
8031
      lt_prog_compiler_pic='-KPIC'
8032
      lt_prog_compiler_static='-Bstatic'
8033
      ;;
8034
 
8035
    unicos*)
8036
      lt_prog_compiler_wl='-Wl,'
8037
      lt_prog_compiler_can_build_shared=no
8038
      ;;
8039
 
8040
    uts4*)
8041
      lt_prog_compiler_pic='-pic'
8042
      lt_prog_compiler_static='-Bstatic'
8043
      ;;
8044
 
8045
    *)
8046
      lt_prog_compiler_can_build_shared=no
8047
      ;;
8048
    esac
8049
  fi
8050
 
8051
case $host_os in
8052
  # For platforms which do not support PIC, -DPIC is meaningless:
8053
  *djgpp*)
8054
    lt_prog_compiler_pic=
8055
    ;;
8056
  *)
8057
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8058
    ;;
8059
esac
8060
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8061
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8062
 
8063
 
8064
 
8065
 
8066
 
8067
 
8068
#
8069
# Check to make sure the PIC flag actually works.
8070
#
8071
if test -n "$lt_prog_compiler_pic"; then
8072
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8073
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8074
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8075
  echo $ECHO_N "(cached) $ECHO_C" >&6
8076
else
8077
  lt_cv_prog_compiler_pic_works=no
8078
   ac_outfile=conftest.$ac_objext
8079
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8081
   # Insert the option either (1) after the last *FLAGS variable, or
8082
   # (2) before a word containing "conftest.", or (3) at the end.
8083
   # Note that $ac_compile itself does not contain backslashes and begins
8084
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8085
   # The option is referenced via a variable to avoid confusing sed.
8086
   lt_compile=`echo "$ac_compile" | $SED \
8087
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089
   -e 's:$: $lt_compiler_flag:'`
8090
   (eval echo "\"\$as_me:8089: $lt_compile\"" >&5)
8091
   (eval "$lt_compile" 2>conftest.err)
8092
   ac_status=$?
8093
   cat conftest.err >&5
8094
   echo "$as_me:8093: \$? = $ac_status" >&5
8095
   if (exit $ac_status) && test -s "$ac_outfile"; then
8096
     # The compiler can only warn and ignore the option if not recognized
8097
     # So say no if there are warnings other than the usual output.
8098
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8099
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8100
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8101
       lt_cv_prog_compiler_pic_works=yes
8102
     fi
8103
   fi
8104
   $RM conftest*
8105
 
8106
fi
8107
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8108
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8109
 
8110
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8111
    case $lt_prog_compiler_pic in
8112
     "" | " "*) ;;
8113
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8114
     esac
8115
else
8116
    lt_prog_compiler_pic=
8117
     lt_prog_compiler_can_build_shared=no
8118
fi
8119
 
8120
fi
8121
 
8122
 
8123
 
8124
 
8125
 
8126
 
8127
#
8128
# Check to make sure the static flag actually works.
8129
#
8130
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8131
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8132
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8133
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8134
  echo $ECHO_N "(cached) $ECHO_C" >&6
8135
else
8136
  lt_cv_prog_compiler_static_works=no
8137
   save_LDFLAGS="$LDFLAGS"
8138
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8139
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8140
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8141
     # The linker can only warn and ignore the option if not recognized
8142
     # So say no if there are warnings
8143
     if test -s conftest.err; then
8144
       # Append any errors to the config.log.
8145
       cat conftest.err 1>&5
8146
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8147
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148
       if diff conftest.exp conftest.er2 >/dev/null; then
8149
         lt_cv_prog_compiler_static_works=yes
8150
       fi
8151
     else
8152
       lt_cv_prog_compiler_static_works=yes
8153
     fi
8154
   fi
8155
   $RM -r conftest*
8156
   LDFLAGS="$save_LDFLAGS"
8157
 
8158
fi
8159
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8160
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8161
 
8162
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8163
    :
8164
else
8165
    lt_prog_compiler_static=
8166
fi
8167
 
8168
 
8169
 
8170
 
8171
 
8172
 
8173
 
8174
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8175
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8176
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8177
  echo $ECHO_N "(cached) $ECHO_C" >&6
8178
else
8179
  lt_cv_prog_compiler_c_o=no
8180
   $RM -r conftest 2>/dev/null
8181
   mkdir conftest
8182
   cd conftest
8183
   mkdir out
8184
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185
 
8186
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8187
   # Insert the option either (1) after the last *FLAGS variable, or
8188
   # (2) before a word containing "conftest.", or (3) at the end.
8189
   # Note that $ac_compile itself does not contain backslashes and begins
8190
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8191
   lt_compile=`echo "$ac_compile" | $SED \
8192
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194
   -e 's:$: $lt_compiler_flag:'`
8195
   (eval echo "\"\$as_me:8194: $lt_compile\"" >&5)
8196
   (eval "$lt_compile" 2>out/conftest.err)
8197
   ac_status=$?
8198
   cat out/conftest.err >&5
8199
   echo "$as_me:8198: \$? = $ac_status" >&5
8200
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8201
   then
8202
     # The compiler can only warn and ignore the option if not recognized
8203
     # So say no if there are warnings
8204
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8205
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8206
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8207
       lt_cv_prog_compiler_c_o=yes
8208
     fi
8209
   fi
8210
   chmod u+w . 2>&5
8211
   $RM conftest*
8212
   # SGI C++ compiler will create directory out/ii_files/ for
8213
   # template instantiation
8214
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8215
   $RM out/* && rmdir out
8216
   cd ..
8217
   $RM -r conftest
8218
   $RM conftest*
8219
 
8220
fi
8221
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8222
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8223
 
8224
 
8225
 
8226
 
8227
 
8228
 
8229
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8230
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8231
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8232
  echo $ECHO_N "(cached) $ECHO_C" >&6
8233
else
8234
  lt_cv_prog_compiler_c_o=no
8235
   $RM -r conftest 2>/dev/null
8236
   mkdir conftest
8237
   cd conftest
8238
   mkdir out
8239
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
 
8241
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8242
   # Insert the option either (1) after the last *FLAGS variable, or
8243
   # (2) before a word containing "conftest.", or (3) at the end.
8244
   # Note that $ac_compile itself does not contain backslashes and begins
8245
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8246
   lt_compile=`echo "$ac_compile" | $SED \
8247
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249
   -e 's:$: $lt_compiler_flag:'`
8250
   (eval echo "\"\$as_me:8249: $lt_compile\"" >&5)
8251
   (eval "$lt_compile" 2>out/conftest.err)
8252
   ac_status=$?
8253
   cat out/conftest.err >&5
8254
   echo "$as_me:8253: \$? = $ac_status" >&5
8255
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256
   then
8257
     # The compiler can only warn and ignore the option if not recognized
8258
     # So say no if there are warnings
8259
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8260
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262
       lt_cv_prog_compiler_c_o=yes
8263
     fi
8264
   fi
8265
   chmod u+w . 2>&5
8266
   $RM conftest*
8267
   # SGI C++ compiler will create directory out/ii_files/ for
8268
   # template instantiation
8269
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270
   $RM out/* && rmdir out
8271
   cd ..
8272
   $RM -r conftest
8273
   $RM conftest*
8274
 
8275
fi
8276
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8277
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8278
 
8279
 
8280
 
8281
 
8282
hard_links="nottested"
8283
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284
  # do not overwrite the value of need_locks provided by the user
8285
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8286
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8287
  hard_links=yes
8288
  $RM conftest*
8289
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8290
  touch conftest.a
8291
  ln conftest.a conftest.b 2>&5 || hard_links=no
8292
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293
  echo "$as_me:$LINENO: result: $hard_links" >&5
8294
echo "${ECHO_T}$hard_links" >&6
8295
  if test "$hard_links" = no; then
8296
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8298
    need_locks=warn
8299
  fi
8300
else
8301
  need_locks=no
8302
fi
8303
 
8304
 
8305
 
8306
 
8307
 
8308
 
8309
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8310
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8311
 
8312
  runpath_var=
8313
  allow_undefined_flag=
8314
  always_export_symbols=no
8315
  archive_cmds=
8316
  archive_expsym_cmds=
8317
  compiler_needs_object=no
8318
  enable_shared_with_static_runtimes=no
8319
  export_dynamic_flag_spec=
8320
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321
  hardcode_automatic=no
8322
  hardcode_direct=no
8323
  hardcode_direct_absolute=no
8324
  hardcode_libdir_flag_spec=
8325
  hardcode_libdir_flag_spec_ld=
8326
  hardcode_libdir_separator=
8327
  hardcode_minus_L=no
8328
  hardcode_shlibpath_var=unsupported
8329
  inherit_rpath=no
8330
  link_all_deplibs=unknown
8331
  module_cmds=
8332
  module_expsym_cmds=
8333
  old_archive_from_new_cmds=
8334
  old_archive_from_expsyms_cmds=
8335
  thread_safe_flag_spec=
8336
  whole_archive_flag_spec=
8337
  # include_expsyms should be a list of space-separated symbols to be *always*
8338
  # included in the symbol list
8339
  include_expsyms=
8340
  # exclude_expsyms can be an extended regexp of symbols to exclude
8341
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8342
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8343
  # as well as any symbol that contains `d'.
8344
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8345
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8346
  # platforms (ab)use it in PIC code, but their linkers get confused if
8347
  # the symbol is explicitly referenced.  Since portable code cannot
8348
  # rely on this symbol name, it's probably fine to never include it in
8349
  # preloaded symbol tables.
8350
  # Exclude shared library initialization/finalization symbols.
8351
  extract_expsyms_cmds=
8352
 
8353
  case $host_os in
8354
  cygwin* | mingw* | pw32* | cegcc*)
8355
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8356
    # When not using gcc, we currently assume that we are using
8357
    # Microsoft Visual C++.
8358
    if test "$GCC" != yes; then
8359
      with_gnu_ld=no
8360
    fi
8361
    ;;
8362
  interix*)
8363
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8364
    with_gnu_ld=yes
8365
    ;;
8366
  openbsd*)
8367
    with_gnu_ld=no
8368
    ;;
8369
  esac
8370
 
8371
  ld_shlibs=yes
8372
  if test "$with_gnu_ld" = yes; then
8373
    # If archive_cmds runs LD, not CC, wlarc should be empty
8374
    wlarc='${wl}'
8375
 
8376
    # Set some defaults for GNU ld with shared library support. These
8377
    # are reset later if shared libraries are not supported. Putting them
8378
    # here allows them to be overridden if necessary.
8379
    runpath_var=LD_RUN_PATH
8380
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381
    export_dynamic_flag_spec='${wl}--export-dynamic'
8382
    # ancient GNU ld didn't support --whole-archive et. al.
8383
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8384
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8385
    else
8386
      whole_archive_flag_spec=
8387
    fi
8388
    supports_anon_versioning=no
8389
    case `$LD -v 2>&1` in
8390
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8391
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8392
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8393
      *\ 2.11.*) ;; # other 2.11 versions
8394
      *) supports_anon_versioning=yes ;;
8395
    esac
8396
 
8397
    # See if GNU ld supports shared libraries.
8398
    case $host_os in
8399
    aix[3-9]*)
8400
      # On AIX/PPC, the GNU linker is very broken
8401
      if test "$host_cpu" != ia64; then
8402
        ld_shlibs=no
8403
        cat <<_LT_EOF 1>&2
8404
 
8405
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8406
*** to be unable to reliably create shared libraries on AIX.
8407
*** Therefore, libtool is disabling shared libraries support.  If you
8408
*** really care for shared libraries, you may want to modify your PATH
8409
*** so that a non-GNU linker is found, and then restart.
8410
 
8411
_LT_EOF
8412
      fi
8413
      ;;
8414
 
8415
    amigaos*)
8416
      case $host_cpu in
8417
      powerpc)
8418
            # see comment about AmigaOS4 .so support
8419
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420
            archive_expsym_cmds=''
8421
        ;;
8422
      m68k)
8423
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8424
            hardcode_libdir_flag_spec='-L$libdir'
8425
            hardcode_minus_L=yes
8426
        ;;
8427
      esac
8428
      ;;
8429
 
8430
    beos*)
8431
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8432
        allow_undefined_flag=unsupported
8433
        # Joseph Beckenbach  says some releases of gcc
8434
        # support --undefined.  This deserves some investigation.  FIXME
8435
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436
      else
8437
        ld_shlibs=no
8438
      fi
8439
      ;;
8440
 
8441
    cygwin* | mingw* | pw32* | cegcc*)
8442
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8443
      # as there is no search path for DLLs.
8444
      hardcode_libdir_flag_spec='-L$libdir'
8445
      allow_undefined_flag=unsupported
8446
      always_export_symbols=no
8447
      enable_shared_with_static_runtimes=yes
8448
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8449
 
8450
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8451
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8452
        # If the export-symbols file already is a .def file (1st line
8453
        # is EXPORTS), use it as is; otherwise, prepend...
8454
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8455
          cp $export_symbols $output_objdir/$soname.def;
8456
        else
8457
          echo EXPORTS > $output_objdir/$soname.def;
8458
          cat $export_symbols >> $output_objdir/$soname.def;
8459
        fi~
8460
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8461
      else
8462
        ld_shlibs=no
8463
      fi
8464
      ;;
8465
 
8466
    interix[3-9]*)
8467
      hardcode_direct=no
8468
      hardcode_shlibpath_var=no
8469
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8470
      export_dynamic_flag_spec='${wl}-E'
8471
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8472
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8473
      # default) and relocated if they conflict, which is a slow very memory
8474
      # consuming and fragmenting process.  To avoid this, we pick a random,
8475
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8476
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8477
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8478
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8479
      ;;
8480
 
8481
    gnu* | linux* | tpf* | k*bsd*-gnu)
8482
      tmp_diet=no
8483
      if test "$host_os" = linux-dietlibc; then
8484
        case $cc_basename in
8485
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8486
        esac
8487
      fi
8488
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8489
         && test "$tmp_diet" = no
8490
      then
8491
        tmp_addflag=
8492
        tmp_sharedflag='-shared'
8493
        case $cc_basename,$host_cpu in
8494
        pgcc*)                          # Portland Group C compiler
8495
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8496
          tmp_addflag=' $pic_flag'
8497
          ;;
8498
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8499
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8500
          tmp_addflag=' $pic_flag -Mnomain' ;;
8501
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8502
          tmp_addflag=' -i_dynamic' ;;
8503
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8504
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8505
        ifc* | ifort*)                  # Intel Fortran compiler
8506
          tmp_addflag=' -nofor_main' ;;
8507
        lf95*)                          # Lahey Fortran 8.1
8508
          whole_archive_flag_spec=
8509
          tmp_sharedflag='--shared' ;;
8510
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8511
          tmp_sharedflag='-qmkshrobj'
8512
          tmp_addflag= ;;
8513
        esac
8514
        case `$CC -V 2>&1 | sed 5q` in
8515
        *Sun\ C*)                       # Sun C 5.9
8516
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8517
          compiler_needs_object=yes
8518
          tmp_sharedflag='-G' ;;
8519
        *Sun\ F*)                       # Sun Fortran 8.3
8520
          tmp_sharedflag='-G' ;;
8521
        esac
8522
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523
 
8524
        if test "x$supports_anon_versioning" = xyes; then
8525
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8526
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8527
            echo "local: *; };" >> $output_objdir/$libname.ver~
8528
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8529
        fi
8530
 
8531
        case $cc_basename in
8532
        xlf*)
8533
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8534
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8535
          hardcode_libdir_flag_spec=
8536
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8537
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8538
          if test "x$supports_anon_versioning" = xyes; then
8539
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8540
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8541
              echo "local: *; };" >> $output_objdir/$libname.ver~
8542
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8543
          fi
8544
          ;;
8545
        esac
8546
      else
8547
        ld_shlibs=no
8548
      fi
8549
      ;;
8550
 
8551
    netbsd*)
8552
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8553
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8554
        wlarc=
8555
      else
8556
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8558
      fi
8559
      ;;
8560
 
8561
    solaris*)
8562
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8563
        ld_shlibs=no
8564
        cat <<_LT_EOF 1>&2
8565
 
8566
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8567
*** create shared libraries on Solaris systems.  Therefore, libtool
8568
*** is disabling shared libraries support.  We urge you to upgrade GNU
8569
*** binutils to release 2.9.1 or newer.  Another option is to modify
8570
*** your PATH or compiler configuration so that the native linker is
8571
*** used, and then restart.
8572
 
8573
_LT_EOF
8574
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8575
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8577
      else
8578
        ld_shlibs=no
8579
      fi
8580
      ;;
8581
 
8582
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8583
      case `$LD -v 2>&1` in
8584
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8585
        ld_shlibs=no
8586
        cat <<_LT_EOF 1>&2
8587
 
8588
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8589
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8590
*** is disabling shared libraries support.  We urge you to upgrade GNU
8591
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8592
*** your PATH or compiler configuration so that the native linker is
8593
*** used, and then restart.
8594
 
8595
_LT_EOF
8596
        ;;
8597
        *)
8598
          # For security reasons, it is highly recommended that you always
8599
          # use absolute paths for naming shared libraries, and exclude the
8600
          # DT_RUNPATH tag from executables and libraries.  But doing so
8601
          # requires that you compile everything twice, which is a pain.
8602
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8603
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606
          else
8607
            ld_shlibs=no
8608
          fi
8609
        ;;
8610
      esac
8611
      ;;
8612
 
8613
    sunos4*)
8614
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8615
      wlarc=
8616
      hardcode_direct=yes
8617
      hardcode_shlibpath_var=no
8618
      ;;
8619
 
8620
    *)
8621
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8624
      else
8625
        ld_shlibs=no
8626
      fi
8627
      ;;
8628
    esac
8629
 
8630
    if test "$ld_shlibs" = no; then
8631
      runpath_var=
8632
      hardcode_libdir_flag_spec=
8633
      export_dynamic_flag_spec=
8634
      whole_archive_flag_spec=
8635
    fi
8636
  else
8637
    # PORTME fill in a description of your system's linker (not GNU ld)
8638
    case $host_os in
8639
    aix3*)
8640
      allow_undefined_flag=unsupported
8641
      always_export_symbols=yes
8642
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8643
      # Note: this linker hardcodes the directories in LIBPATH if there
8644
      # are no directories specified by -L.
8645
      hardcode_minus_L=yes
8646
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8647
        # Neither direct hardcoding nor static linking is supported with a
8648
        # broken collect2.
8649
        hardcode_direct=unsupported
8650
      fi
8651
      ;;
8652
 
8653
    aix[4-9]*)
8654
      if test "$host_cpu" = ia64; then
8655
        # On IA64, the linker does run time linking by default, so we don't
8656
        # have to do anything special.
8657
        aix_use_runtimelinking=no
8658
        exp_sym_flag='-Bexport'
8659
        no_entry_flag=""
8660
      else
8661
        # If we're using GNU nm, then we don't want the "-C" option.
8662
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8663
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8664
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8665
        else
8666
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8667
        fi
8668
        aix_use_runtimelinking=no
8669
 
8670
        # Test if we are trying to use run time linking or normal
8671
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8672
        # need to do runtime linking.
8673
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8674
          for ld_flag in $LDFLAGS; do
8675
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8676
            aix_use_runtimelinking=yes
8677
            break
8678
          fi
8679
          done
8680
          ;;
8681
        esac
8682
 
8683
        exp_sym_flag='-bexport'
8684
        no_entry_flag='-bnoentry'
8685
      fi
8686
 
8687
      # When large executables or shared objects are built, AIX ld can
8688
      # have problems creating the table of contents.  If linking a library
8689
      # or program results in "error TOC overflow" add -mminimal-toc to
8690
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8691
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8692
 
8693
      archive_cmds=''
8694
      hardcode_direct=yes
8695
      hardcode_direct_absolute=yes
8696
      hardcode_libdir_separator=':'
8697
      link_all_deplibs=yes
8698
      file_list_spec='${wl}-f,'
8699
 
8700
      if test "$GCC" = yes; then
8701
        case $host_os in aix4.[012]|aix4.[012].*)
8702
        # We only want to do this on AIX 4.2 and lower, the check
8703
        # below for broken collect2 doesn't work under 4.3+
8704
          collect2name=`${CC} -print-prog-name=collect2`
8705
          if test -f "$collect2name" &&
8706
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8707
          then
8708
          # We have reworked collect2
8709
          :
8710
          else
8711
          # We have old collect2
8712
          hardcode_direct=unsupported
8713
          # It fails to find uninstalled libraries when the uninstalled
8714
          # path is not listed in the libpath.  Setting hardcode_minus_L
8715
          # to unsupported forces relinking
8716
          hardcode_minus_L=yes
8717
          hardcode_libdir_flag_spec='-L$libdir'
8718
          hardcode_libdir_separator=
8719
          fi
8720
          ;;
8721
        esac
8722
        shared_flag='-shared'
8723
        if test "$aix_use_runtimelinking" = yes; then
8724
          shared_flag="$shared_flag "'${wl}-G'
8725
        fi
8726
      else
8727
        # not using gcc
8728
        if test "$host_cpu" = ia64; then
8729
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8730
        # chokes on -Wl,-G. The following line is correct:
8731
          shared_flag='-G'
8732
        else
8733
          if test "$aix_use_runtimelinking" = yes; then
8734
            shared_flag='${wl}-G'
8735
          else
8736
            shared_flag='${wl}-bM:SRE'
8737
          fi
8738
        fi
8739
      fi
8740
 
8741
      export_dynamic_flag_spec='${wl}-bexpall'
8742
      # It seems that -bexpall does not export symbols beginning with
8743
      # underscore (_), so it is better to generate a list of symbols to export.
8744
      always_export_symbols=yes
8745
      if test "$aix_use_runtimelinking" = yes; then
8746
        # Warning - without using the other runtime loading flags (-brtl),
8747
        # -berok will link without error, but may produce a broken library.
8748
        allow_undefined_flag='-berok'
8749
        # Determine the default libpath from the value encoded in an
8750
        # empty executable.
8751
        cat >conftest.$ac_ext <<_ACEOF
8752
/* confdefs.h.  */
8753
_ACEOF
8754
cat confdefs.h >>conftest.$ac_ext
8755
cat >>conftest.$ac_ext <<_ACEOF
8756
/* end confdefs.h.  */
8757
 
8758
int
8759
main ()
8760
{
8761
 
8762
  ;
8763
  return 0;
8764
}
8765
_ACEOF
8766
rm -f conftest.$ac_objext conftest$ac_exeext
8767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768
  (eval $ac_link) 2>conftest.er1
8769
  ac_status=$?
8770
  grep -v '^ *+' conftest.er1 >conftest.err
8771
  rm -f conftest.er1
8772
  cat conftest.err >&5
8773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774
  (exit $ac_status); } &&
8775
         { ac_try='test -z "$ac_c_werror_flag"
8776
                         || test ! -s conftest.err'
8777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778
  (eval $ac_try) 2>&5
8779
  ac_status=$?
8780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
  (exit $ac_status); }; } &&
8782
         { ac_try='test -s conftest$ac_exeext'
8783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784
  (eval $ac_try) 2>&5
8785
  ac_status=$?
8786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787
  (exit $ac_status); }; }; then
8788
 
8789
lt_aix_libpath_sed='
8790
    /Import File Strings/,/^$/ {
8791
        /^0/ {
8792
            s/^0  *\(.*\)$/\1/
8793
            p
8794
        }
8795
    }'
8796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8797
# Check for a 64-bit object if we didn't find anything.
8798
if test -z "$aix_libpath"; then
8799
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8800
fi
8801
else
8802
  echo "$as_me: failed program was:" >&5
8803
sed 's/^/| /' conftest.$ac_ext >&5
8804
 
8805
fi
8806
rm -f conftest.err conftest.$ac_objext \
8807
      conftest$ac_exeext conftest.$ac_ext
8808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8809
 
8810
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8811
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8812
      else
8813
        if test "$host_cpu" = ia64; then
8814
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8815
          allow_undefined_flag="-z nodefs"
8816
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8817
        else
8818
         # Determine the default libpath from the value encoded in an
8819
         # empty executable.
8820
         cat >conftest.$ac_ext <<_ACEOF
8821
/* confdefs.h.  */
8822
_ACEOF
8823
cat confdefs.h >>conftest.$ac_ext
8824
cat >>conftest.$ac_ext <<_ACEOF
8825
/* end confdefs.h.  */
8826
 
8827
int
8828
main ()
8829
{
8830
 
8831
  ;
8832
  return 0;
8833
}
8834
_ACEOF
8835
rm -f conftest.$ac_objext conftest$ac_exeext
8836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837
  (eval $ac_link) 2>conftest.er1
8838
  ac_status=$?
8839
  grep -v '^ *+' conftest.er1 >conftest.err
8840
  rm -f conftest.er1
8841
  cat conftest.err >&5
8842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843
  (exit $ac_status); } &&
8844
         { ac_try='test -z "$ac_c_werror_flag"
8845
                         || test ! -s conftest.err'
8846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847
  (eval $ac_try) 2>&5
8848
  ac_status=$?
8849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850
  (exit $ac_status); }; } &&
8851
         { ac_try='test -s conftest$ac_exeext'
8852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853
  (eval $ac_try) 2>&5
8854
  ac_status=$?
8855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856
  (exit $ac_status); }; }; then
8857
 
8858
lt_aix_libpath_sed='
8859
    /Import File Strings/,/^$/ {
8860
        /^0/ {
8861
            s/^0  *\(.*\)$/\1/
8862
            p
8863
        }
8864
    }'
8865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866
# Check for a 64-bit object if we didn't find anything.
8867
if test -z "$aix_libpath"; then
8868
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8869
fi
8870
else
8871
  echo "$as_me: failed program was:" >&5
8872
sed 's/^/| /' conftest.$ac_ext >&5
8873
 
8874
fi
8875
rm -f conftest.err conftest.$ac_objext \
8876
      conftest$ac_exeext conftest.$ac_ext
8877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8878
 
8879
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8880
          # Warning - without using the other run time loading flags,
8881
          # -berok will link without error, but may produce a broken library.
8882
          no_undefined_flag=' ${wl}-bernotok'
8883
          allow_undefined_flag=' ${wl}-berok'
8884
          # Exported symbols can be pulled into shared objects from archives
8885
          whole_archive_flag_spec='$convenience'
8886
          archive_cmds_need_lc=yes
8887
          # This is similar to how AIX traditionally builds its shared libraries.
8888
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8889
        fi
8890
      fi
8891
      ;;
8892
 
8893
    amigaos*)
8894
      case $host_cpu in
8895
      powerpc)
8896
            # see comment about AmigaOS4 .so support
8897
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898
            archive_expsym_cmds=''
8899
        ;;
8900
      m68k)
8901
            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8902
            hardcode_libdir_flag_spec='-L$libdir'
8903
            hardcode_minus_L=yes
8904
        ;;
8905
      esac
8906
      ;;
8907
 
8908
    bsdi[45]*)
8909
      export_dynamic_flag_spec=-rdynamic
8910
      ;;
8911
 
8912
    cygwin* | mingw* | pw32* | cegcc*)
8913
      # When not using gcc, we currently assume that we are using
8914
      # Microsoft Visual C++.
8915
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8916
      # no search path for DLLs.
8917
      hardcode_libdir_flag_spec=' '
8918
      allow_undefined_flag=unsupported
8919
      # Tell ltmain to make .lib files, not .a files.
8920
      libext=lib
8921
      # Tell ltmain to make .dll files, not .so files.
8922
      shrext_cmds=".dll"
8923
      # FIXME: Setting linknames here is a bad hack.
8924
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8925
      # The linker will automatically build a .lib file if we build a DLL.
8926
      old_archive_from_new_cmds='true'
8927
      # FIXME: Should let the user specify the lib program.
8928
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8929
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8930
      enable_shared_with_static_runtimes=yes
8931
      ;;
8932
 
8933
    darwin* | rhapsody*)
8934
 
8935
 
8936
  archive_cmds_need_lc=no
8937
  hardcode_direct=no
8938
  hardcode_automatic=yes
8939
  hardcode_shlibpath_var=unsupported
8940
  whole_archive_flag_spec=''
8941
  link_all_deplibs=yes
8942
  allow_undefined_flag="$_lt_dar_allow_undefined"
8943
  case $cc_basename in
8944
     ifort*) _lt_dar_can_shared=yes ;;
8945
     *) _lt_dar_can_shared=$GCC ;;
8946
  esac
8947
  if test "$_lt_dar_can_shared" = "yes"; then
8948
    output_verbose_link_cmd=echo
8949
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8950
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8951
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8952
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8953
 
8954
  else
8955
  ld_shlibs=no
8956
  fi
8957
 
8958
      ;;
8959
 
8960
    dgux*)
8961
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962
      hardcode_libdir_flag_spec='-L$libdir'
8963
      hardcode_shlibpath_var=no
8964
      ;;
8965
 
8966
    freebsd1*)
8967
      ld_shlibs=no
8968
      ;;
8969
 
8970
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8971
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8972
    # does not break anything, and helps significantly (at the cost of a little
8973
    # extra space).
8974
    freebsd2.2*)
8975
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8976
      hardcode_libdir_flag_spec='-R$libdir'
8977
      hardcode_direct=yes
8978
      hardcode_shlibpath_var=no
8979
      ;;
8980
 
8981
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8982
    freebsd2*)
8983
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8984
      hardcode_direct=yes
8985
      hardcode_minus_L=yes
8986
      hardcode_shlibpath_var=no
8987
      ;;
8988
 
8989
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8990
    freebsd* | dragonfly*)
8991
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8992
      hardcode_libdir_flag_spec='-R$libdir'
8993
      hardcode_direct=yes
8994
      hardcode_shlibpath_var=no
8995
      ;;
8996
 
8997
    hpux9*)
8998
      if test "$GCC" = yes; then
8999
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9000
      else
9001
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9002
      fi
9003
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9004
      hardcode_libdir_separator=:
9005
      hardcode_direct=yes
9006
 
9007
      # hardcode_minus_L: Not really in the search PATH,
9008
      # but as the default location of the library.
9009
      hardcode_minus_L=yes
9010
      export_dynamic_flag_spec='${wl}-E'
9011
      ;;
9012
 
9013
    hpux10*)
9014
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9015
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9016
      else
9017
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9018
      fi
9019
      if test "$with_gnu_ld" = no; then
9020
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9021
        hardcode_libdir_flag_spec_ld='+b $libdir'
9022
        hardcode_libdir_separator=:
9023
        hardcode_direct=yes
9024
        hardcode_direct_absolute=yes
9025
        export_dynamic_flag_spec='${wl}-E'
9026
        # hardcode_minus_L: Not really in the search PATH,
9027
        # but as the default location of the library.
9028
        hardcode_minus_L=yes
9029
      fi
9030
      ;;
9031
 
9032
    hpux11*)
9033
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9034
        case $host_cpu in
9035
        hppa*64*)
9036
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037
          ;;
9038
        ia64*)
9039
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9040
          ;;
9041
        *)
9042
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9043
          ;;
9044
        esac
9045
      else
9046
        case $host_cpu in
9047
        hppa*64*)
9048
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049
          ;;
9050
        ia64*)
9051
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9052
          ;;
9053
        *)
9054
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055
          ;;
9056
        esac
9057
      fi
9058
      if test "$with_gnu_ld" = no; then
9059
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060
        hardcode_libdir_separator=:
9061
 
9062
        case $host_cpu in
9063
        hppa*64*|ia64*)
9064
          hardcode_direct=no
9065
          hardcode_shlibpath_var=no
9066
          ;;
9067
        *)
9068
          hardcode_direct=yes
9069
          hardcode_direct_absolute=yes
9070
          export_dynamic_flag_spec='${wl}-E'
9071
 
9072
          # hardcode_minus_L: Not really in the search PATH,
9073
          # but as the default location of the library.
9074
          hardcode_minus_L=yes
9075
          ;;
9076
        esac
9077
      fi
9078
      ;;
9079
 
9080
    irix5* | irix6* | nonstopux*)
9081
      if test "$GCC" = yes; then
9082
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9083
        # Try to use the -exported_symbol ld option, if it does not
9084
        # work, assume that -exports_file does not work either and
9085
        # implicitly export all symbols.
9086
        save_LDFLAGS="$LDFLAGS"
9087
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9088
        cat >conftest.$ac_ext <<_ACEOF
9089
int foo(void) {}
9090
_ACEOF
9091
rm -f conftest.$ac_objext conftest$ac_exeext
9092
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093
  (eval $ac_link) 2>conftest.er1
9094
  ac_status=$?
9095
  grep -v '^ *+' conftest.er1 >conftest.err
9096
  rm -f conftest.er1
9097
  cat conftest.err >&5
9098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099
  (exit $ac_status); } &&
9100
         { ac_try='test -z "$ac_c_werror_flag"
9101
                         || test ! -s conftest.err'
9102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103
  (eval $ac_try) 2>&5
9104
  ac_status=$?
9105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106
  (exit $ac_status); }; } &&
9107
         { ac_try='test -s conftest$ac_exeext'
9108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109
  (eval $ac_try) 2>&5
9110
  ac_status=$?
9111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112
  (exit $ac_status); }; }; then
9113
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9114
 
9115
else
9116
  echo "$as_me: failed program was:" >&5
9117
sed 's/^/| /' conftest.$ac_ext >&5
9118
 
9119
fi
9120
rm -f conftest.err conftest.$ac_objext \
9121
      conftest$ac_exeext conftest.$ac_ext
9122
        LDFLAGS="$save_LDFLAGS"
9123
      else
9124
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9125
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9126
      fi
9127
      archive_cmds_need_lc='no'
9128
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129
      hardcode_libdir_separator=:
9130
      inherit_rpath=yes
9131
      link_all_deplibs=yes
9132
      ;;
9133
 
9134
    netbsd*)
9135
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9136
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9137
      else
9138
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9139
      fi
9140
      hardcode_libdir_flag_spec='-R$libdir'
9141
      hardcode_direct=yes
9142
      hardcode_shlibpath_var=no
9143
      ;;
9144
 
9145
    newsos6)
9146
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147
      hardcode_direct=yes
9148
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9149
      hardcode_libdir_separator=:
9150
      hardcode_shlibpath_var=no
9151
      ;;
9152
 
9153
    *nto* | *qnx*)
9154
      ;;
9155
 
9156
    openbsd*)
9157
      if test -f /usr/libexec/ld.so; then
9158
        hardcode_direct=yes
9159
        hardcode_shlibpath_var=no
9160
        hardcode_direct_absolute=yes
9161
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9162
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9163
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9164
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9165
          export_dynamic_flag_spec='${wl}-E'
9166
        else
9167
          case $host_os in
9168
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9169
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9170
             hardcode_libdir_flag_spec='-R$libdir'
9171
             ;;
9172
           *)
9173
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9174
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9175
             ;;
9176
          esac
9177
        fi
9178
      else
9179
        ld_shlibs=no
9180
      fi
9181
      ;;
9182
 
9183
    os2*)
9184
      hardcode_libdir_flag_spec='-L$libdir'
9185
      hardcode_minus_L=yes
9186
      allow_undefined_flag=unsupported
9187
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9188
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9189
      ;;
9190
 
9191
    osf3*)
9192
      if test "$GCC" = yes; then
9193
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9194
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9195
      else
9196
        allow_undefined_flag=' -expect_unresolved \*'
9197
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9198
      fi
9199
      archive_cmds_need_lc='no'
9200
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9201
      hardcode_libdir_separator=:
9202
      ;;
9203
 
9204
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9205
      if test "$GCC" = yes; then
9206
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9207
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9208
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209
      else
9210
        allow_undefined_flag=' -expect_unresolved \*'
9211
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9212
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9213
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9214
 
9215
        # Both c and cxx compiler support -rpath directly
9216
        hardcode_libdir_flag_spec='-rpath $libdir'
9217
      fi
9218
      archive_cmds_need_lc='no'
9219
      hardcode_libdir_separator=:
9220
      ;;
9221
 
9222
    solaris*)
9223
      no_undefined_flag=' -z defs'
9224
      if test "$GCC" = yes; then
9225
        wlarc='${wl}'
9226
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9228
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9229
      else
9230
        case `$CC -V 2>&1` in
9231
        *"Compilers 5.0"*)
9232
          wlarc=''
9233
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9235
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9236
          ;;
9237
        *)
9238
          wlarc='${wl}'
9239
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9240
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9241
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9242
          ;;
9243
        esac
9244
      fi
9245
      hardcode_libdir_flag_spec='-R$libdir'
9246
      hardcode_shlibpath_var=no
9247
      case $host_os in
9248
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9249
      *)
9250
        # The compiler driver will combine and reorder linker options,
9251
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9252
        # but is careful enough not to reorder.
9253
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9254
        if test "$GCC" = yes; then
9255
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9256
        else
9257
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9258
        fi
9259
        ;;
9260
      esac
9261
      link_all_deplibs=yes
9262
      ;;
9263
 
9264
    sunos4*)
9265
      if test "x$host_vendor" = xsequent; then
9266
        # Use $CC to link under sequent, because it throws in some extra .o
9267
        # files that make .init and .fini sections work.
9268
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9269
      else
9270
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9271
      fi
9272
      hardcode_libdir_flag_spec='-L$libdir'
9273
      hardcode_direct=yes
9274
      hardcode_minus_L=yes
9275
      hardcode_shlibpath_var=no
9276
      ;;
9277
 
9278
    sysv4)
9279
      case $host_vendor in
9280
        sni)
9281
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9282
          hardcode_direct=yes # is this really true???
9283
        ;;
9284
        siemens)
9285
          ## LD is ld it makes a PLAMLIB
9286
          ## CC just makes a GrossModule.
9287
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9288
          reload_cmds='$CC -r -o $output$reload_objs'
9289
          hardcode_direct=no
9290
        ;;
9291
        motorola)
9292
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9294
        ;;
9295
      esac
9296
      runpath_var='LD_RUN_PATH'
9297
      hardcode_shlibpath_var=no
9298
      ;;
9299
 
9300
    sysv4.3*)
9301
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302
      hardcode_shlibpath_var=no
9303
      export_dynamic_flag_spec='-Bexport'
9304
      ;;
9305
 
9306
    sysv4*MP*)
9307
      if test -d /usr/nec; then
9308
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309
        hardcode_shlibpath_var=no
9310
        runpath_var=LD_RUN_PATH
9311
        hardcode_runpath_var=yes
9312
        ld_shlibs=yes
9313
      fi
9314
      ;;
9315
 
9316
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9317
      no_undefined_flag='${wl}-z,text'
9318
      archive_cmds_need_lc=no
9319
      hardcode_shlibpath_var=no
9320
      runpath_var='LD_RUN_PATH'
9321
 
9322
      if test "$GCC" = yes; then
9323
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9324
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325
      else
9326
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328
      fi
9329
      ;;
9330
 
9331
    sysv5* | sco3.2v5* | sco5v6*)
9332
      # Note: We can NOT use -z defs as we might desire, because we do not
9333
      # link with -lc, and that would cause any symbols used from libc to
9334
      # always be unresolved, which means just about no library would
9335
      # ever link correctly.  If we're not using GNU ld we use -z text
9336
      # though, which does catch some bad symbols but isn't as heavy-handed
9337
      # as -z defs.
9338
      no_undefined_flag='${wl}-z,text'
9339
      allow_undefined_flag='${wl}-z,nodefs'
9340
      archive_cmds_need_lc=no
9341
      hardcode_shlibpath_var=no
9342
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9343
      hardcode_libdir_separator=':'
9344
      link_all_deplibs=yes
9345
      export_dynamic_flag_spec='${wl}-Bexport'
9346
      runpath_var='LD_RUN_PATH'
9347
 
9348
      if test "$GCC" = yes; then
9349
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351
      else
9352
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354
      fi
9355
      ;;
9356
 
9357
    uts4*)
9358
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359
      hardcode_libdir_flag_spec='-L$libdir'
9360
      hardcode_shlibpath_var=no
9361
      ;;
9362
 
9363
    *)
9364
      ld_shlibs=no
9365
      ;;
9366
    esac
9367
 
9368
    if test x$host_vendor = xsni; then
9369
      case $host in
9370
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9371
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9372
        ;;
9373
      esac
9374
    fi
9375
  fi
9376
 
9377
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9378
echo "${ECHO_T}$ld_shlibs" >&6
9379
test "$ld_shlibs" = no && can_build_shared=no
9380
 
9381
with_gnu_ld=$with_gnu_ld
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
#
9398
# Do we need to explicitly link libc?
9399
#
9400
case "x$archive_cmds_need_lc" in
9401
x|xyes)
9402
  # Assume -lc should be added
9403
  archive_cmds_need_lc=yes
9404
 
9405
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9406
    case $archive_cmds in
9407
    *'~'*)
9408
      # FIXME: we may have to deal with multi-command sequences.
9409
      ;;
9410
    '$CC '*)
9411
      # Test whether the compiler implicitly links with -lc since on some
9412
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9413
      # to ld, don't add -lc before -lgcc.
9414
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9415
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9416
      $RM conftest*
9417
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9418
 
9419
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420
  (eval $ac_compile) 2>&5
9421
  ac_status=$?
9422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423
  (exit $ac_status); } 2>conftest.err; then
9424
        soname=conftest
9425
        lib=conftest
9426
        libobjs=conftest.$ac_objext
9427
        deplibs=
9428
        wl=$lt_prog_compiler_wl
9429
        pic_flag=$lt_prog_compiler_pic
9430
        compiler_flags=-v
9431
        linker_flags=-v
9432
        verstring=
9433
        output_objdir=.
9434
        libname=conftest
9435
        lt_save_allow_undefined_flag=$allow_undefined_flag
9436
        allow_undefined_flag=
9437
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9438
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9439
  ac_status=$?
9440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441
  (exit $ac_status); }
9442
        then
9443
          archive_cmds_need_lc=no
9444
        else
9445
          archive_cmds_need_lc=yes
9446
        fi
9447
        allow_undefined_flag=$lt_save_allow_undefined_flag
9448
      else
9449
        cat conftest.err 1>&5
9450
      fi
9451
      $RM conftest*
9452
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9453
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9454
      ;;
9455
    esac
9456
  fi
9457
  ;;
9458
esac
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
 
9578
 
9579
 
9580
 
9581
 
9582
 
9583
 
9584
 
9585
 
9586
 
9587
 
9588
 
9589
 
9590
 
9591
 
9592
 
9593
 
9594
 
9595
 
9596
 
9597
 
9598
 
9599
 
9600
 
9601
 
9602
 
9603
 
9604
 
9605
 
9606
 
9607
 
9608
 
9609
 
9610
 
9611
 
9612
 
9613
 
9614
 
9615
 
9616
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9617
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9618
 
9619
if test "$GCC" = yes; then
9620
  case $host_os in
9621
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9622
    *) lt_awk_arg="/^libraries:/" ;;
9623
  esac
9624
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9625
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9626
    # if the path contains ";" then we assume it to be the separator
9627
    # otherwise default to the standard path separator (i.e. ":") - it is
9628
    # assumed that no part of a normal pathname contains ";" but that should
9629
    # okay in the real world where ";" in dirpaths is itself problematic.
9630
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9631
  else
9632
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9633
  fi
9634
  # Ok, now we have the path, separated by spaces, we can step through it
9635
  # and add multilib dir if necessary.
9636
  lt_tmp_lt_search_path_spec=
9637
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9638
  for lt_sys_path in $lt_search_path_spec; do
9639
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9640
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9641
    else
9642
      test -d "$lt_sys_path" && \
9643
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9644
    fi
9645
  done
9646
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9647
BEGIN {RS=" "; FS="/|\n";} {
9648
  lt_foo="";
9649
  lt_count=0;
9650
  for (lt_i = NF; lt_i > 0; lt_i--) {
9651
    if ($lt_i != "" && $lt_i != ".") {
9652
      if ($lt_i == "..") {
9653
        lt_count++;
9654
      } else {
9655
        if (lt_count == 0) {
9656
          lt_foo="/" $lt_i lt_foo;
9657
        } else {
9658
          lt_count--;
9659
        }
9660
      }
9661
    }
9662
  }
9663
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9664
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9665
}'`
9666
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9667
else
9668
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9669
fi
9670
library_names_spec=
9671
libname_spec='lib$name'
9672
soname_spec=
9673
shrext_cmds=".so"
9674
postinstall_cmds=
9675
postuninstall_cmds=
9676
finish_cmds=
9677
finish_eval=
9678
shlibpath_var=
9679
shlibpath_overrides_runpath=unknown
9680
version_type=none
9681
dynamic_linker="$host_os ld.so"
9682
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9683
need_lib_prefix=unknown
9684
hardcode_into_libs=no
9685
 
9686
# when you set need_version to no, make sure it does not cause -set_version
9687
# flags to be left without arguments
9688
need_version=unknown
9689
 
9690
case $host_os in
9691
aix3*)
9692
  version_type=linux
9693
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9694
  shlibpath_var=LIBPATH
9695
 
9696
  # AIX 3 has no versioning support, so we append a major version to the name.
9697
  soname_spec='${libname}${release}${shared_ext}$major'
9698
  ;;
9699
 
9700
aix[4-9]*)
9701
  version_type=linux
9702
  need_lib_prefix=no
9703
  need_version=no
9704
  hardcode_into_libs=yes
9705
  if test "$host_cpu" = ia64; then
9706
    # AIX 5 supports IA64
9707
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9708
    shlibpath_var=LD_LIBRARY_PATH
9709
  else
9710
    # With GCC up to 2.95.x, collect2 would create an import file
9711
    # for dependence libraries.  The import file would start with
9712
    # the line `#! .'.  This would cause the generated library to
9713
    # depend on `.', always an invalid library.  This was fixed in
9714
    # development snapshots of GCC prior to 3.0.
9715
    case $host_os in
9716
      aix4 | aix4.[01] | aix4.[01].*)
9717
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9718
           echo ' yes '
9719
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9720
        :
9721
      else
9722
        can_build_shared=no
9723
      fi
9724
      ;;
9725
    esac
9726
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9727
    # soname into executable. Probably we can add versioning support to
9728
    # collect2, so additional links can be useful in future.
9729
    if test "$aix_use_runtimelinking" = yes; then
9730
      # If using run time linking (on AIX 4.2 or later) use lib.so
9731
      # instead of lib.a to let people know that these are not
9732
      # typical AIX shared libraries.
9733
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734
    else
9735
      # We preserve .a as extension for shared libraries through AIX4.2
9736
      # and later when we are not doing run time linking.
9737
      library_names_spec='${libname}${release}.a $libname.a'
9738
      soname_spec='${libname}${release}${shared_ext}$major'
9739
    fi
9740
    shlibpath_var=LIBPATH
9741
  fi
9742
  ;;
9743
 
9744
amigaos*)
9745
  case $host_cpu in
9746
  powerpc)
9747
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9748
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9749
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750
    ;;
9751
  m68k)
9752
    library_names_spec='$libname.ixlibrary $libname.a'
9753
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9754
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9755
    ;;
9756
  esac
9757
  ;;
9758
 
9759
beos*)
9760
  library_names_spec='${libname}${shared_ext}'
9761
  dynamic_linker="$host_os ld.so"
9762
  shlibpath_var=LIBRARY_PATH
9763
  ;;
9764
 
9765
bsdi[45]*)
9766
  version_type=linux
9767
  need_version=no
9768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769
  soname_spec='${libname}${release}${shared_ext}$major'
9770
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9771
  shlibpath_var=LD_LIBRARY_PATH
9772
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9773
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9774
  # the default ld.so.conf also contains /usr/contrib/lib and
9775
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9776
  # libtool to hard-code these into programs
9777
  ;;
9778
 
9779
cygwin* | mingw* | pw32* | cegcc*)
9780
  version_type=windows
9781
  shrext_cmds=".dll"
9782
  need_version=no
9783
  need_lib_prefix=no
9784
 
9785
  case $GCC,$host_os in
9786
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9787
    library_names_spec='$libname.dll.a'
9788
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9789
    postinstall_cmds='base_file=`basename \${file}`~
9790
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9791
      dldir=$destdir/`dirname \$dlpath`~
9792
      test -d \$dldir || mkdir -p \$dldir~
9793
      $install_prog $dir/$dlname \$dldir/$dlname~
9794
      chmod a+x \$dldir/$dlname~
9795
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9796
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9797
      fi'
9798
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9799
      dlpath=$dir/\$dldll~
9800
       $RM \$dlpath'
9801
    shlibpath_overrides_runpath=yes
9802
 
9803
    case $host_os in
9804
    cygwin*)
9805
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9806
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9807
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9808
      ;;
9809
    mingw* | cegcc*)
9810
      # MinGW DLLs use traditional 'lib' prefix
9811
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9813
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9814
        # It is most probably a Windows format PATH printed by
9815
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9816
        # path with ; separators, and with drive letters. We can handle the
9817
        # drive letters (cygwin fileutils understands them), so leave them,
9818
        # especially as we might pass files found there to a mingw objdump,
9819
        # which wouldn't understand a cygwinified path. Ahh.
9820
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9821
      else
9822
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9823
      fi
9824
      ;;
9825
    pw32*)
9826
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9827
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9828
      ;;
9829
    esac
9830
    ;;
9831
 
9832
  *)
9833
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9834
    ;;
9835
  esac
9836
  dynamic_linker='Win32 ld.exe'
9837
  # FIXME: first we should search . and the directory the executable is in
9838
  shlibpath_var=PATH
9839
  ;;
9840
 
9841
darwin* | rhapsody*)
9842
  dynamic_linker="$host_os dyld"
9843
  version_type=darwin
9844
  need_lib_prefix=no
9845
  need_version=no
9846
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9847
  soname_spec='${libname}${release}${major}$shared_ext'
9848
  shlibpath_overrides_runpath=yes
9849
  shlibpath_var=DYLD_LIBRARY_PATH
9850
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9851
 
9852
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9853
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9854
  ;;
9855
 
9856
dgux*)
9857
  version_type=linux
9858
  need_lib_prefix=no
9859
  need_version=no
9860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9861
  soname_spec='${libname}${release}${shared_ext}$major'
9862
  shlibpath_var=LD_LIBRARY_PATH
9863
  ;;
9864
 
9865
freebsd1*)
9866
  dynamic_linker=no
9867
  ;;
9868
 
9869
freebsd* | dragonfly*)
9870
  # DragonFly does not have aout.  When/if they implement a new
9871
  # versioning mechanism, adjust this.
9872
  if test -x /usr/bin/objformat; then
9873
    objformat=`/usr/bin/objformat`
9874
  else
9875
    case $host_os in
9876
    freebsd[123]*) objformat=aout ;;
9877
    *) objformat=elf ;;
9878
    esac
9879
  fi
9880
  version_type=freebsd-$objformat
9881
  case $version_type in
9882
    freebsd-elf*)
9883
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9884
      need_version=no
9885
      need_lib_prefix=no
9886
      ;;
9887
    freebsd-*)
9888
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9889
      need_version=yes
9890
      ;;
9891
  esac
9892
  shlibpath_var=LD_LIBRARY_PATH
9893
  case $host_os in
9894
  freebsd2*)
9895
    shlibpath_overrides_runpath=yes
9896
    ;;
9897
  freebsd3.[01]* | freebsdelf3.[01]*)
9898
    shlibpath_overrides_runpath=yes
9899
    hardcode_into_libs=yes
9900
    ;;
9901
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9902
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9903
    shlibpath_overrides_runpath=no
9904
    hardcode_into_libs=yes
9905
    ;;
9906
  *) # from 4.6 on, and DragonFly
9907
    shlibpath_overrides_runpath=yes
9908
    hardcode_into_libs=yes
9909
    ;;
9910
  esac
9911
  ;;
9912
 
9913
gnu*)
9914
  version_type=linux
9915
  need_lib_prefix=no
9916
  need_version=no
9917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9918
  soname_spec='${libname}${release}${shared_ext}$major'
9919
  shlibpath_var=LD_LIBRARY_PATH
9920
  hardcode_into_libs=yes
9921
  ;;
9922
 
9923
hpux9* | hpux10* | hpux11*)
9924
  # Give a soname corresponding to the major version so that dld.sl refuses to
9925
  # link against other versions.
9926
  version_type=sunos
9927
  need_lib_prefix=no
9928
  need_version=no
9929
  case $host_cpu in
9930
  ia64*)
9931
    shrext_cmds='.so'
9932
    hardcode_into_libs=yes
9933
    dynamic_linker="$host_os dld.so"
9934
    shlibpath_var=LD_LIBRARY_PATH
9935
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937
    soname_spec='${libname}${release}${shared_ext}$major'
9938
    if test "X$HPUX_IA64_MODE" = X32; then
9939
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9940
    else
9941
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9942
    fi
9943
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944
    ;;
9945
  hppa*64*)
9946
    shrext_cmds='.sl'
9947
    hardcode_into_libs=yes
9948
    dynamic_linker="$host_os dld.sl"
9949
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9950
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9951
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952
    soname_spec='${libname}${release}${shared_ext}$major'
9953
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9954
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9955
    ;;
9956
  *)
9957
    shrext_cmds='.sl'
9958
    dynamic_linker="$host_os dld.sl"
9959
    shlibpath_var=SHLIB_PATH
9960
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9961
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962
    soname_spec='${libname}${release}${shared_ext}$major'
9963
    ;;
9964
  esac
9965
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9966
  postinstall_cmds='chmod 555 $lib'
9967
  ;;
9968
 
9969
interix[3-9]*)
9970
  version_type=linux
9971
  need_lib_prefix=no
9972
  need_version=no
9973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9974
  soname_spec='${libname}${release}${shared_ext}$major'
9975
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9976
  shlibpath_var=LD_LIBRARY_PATH
9977
  shlibpath_overrides_runpath=no
9978
  hardcode_into_libs=yes
9979
  ;;
9980
 
9981
irix5* | irix6* | nonstopux*)
9982
  case $host_os in
9983
    nonstopux*) version_type=nonstopux ;;
9984
    *)
9985
        if test "$lt_cv_prog_gnu_ld" = yes; then
9986
                version_type=linux
9987
        else
9988
                version_type=irix
9989
        fi ;;
9990
  esac
9991
  need_lib_prefix=no
9992
  need_version=no
9993
  soname_spec='${libname}${release}${shared_ext}$major'
9994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9995
  case $host_os in
9996
  irix5* | nonstopux*)
9997
    libsuff= shlibsuff=
9998
    ;;
9999
  *)
10000
    case $LD in # libtool.m4 will add one of these switches to LD
10001
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10002
      libsuff= shlibsuff= libmagic=32-bit;;
10003
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10004
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10005
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10006
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10007
    *) libsuff= shlibsuff= libmagic=never-match;;
10008
    esac
10009
    ;;
10010
  esac
10011
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10012
  shlibpath_overrides_runpath=no
10013
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10014
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10015
  hardcode_into_libs=yes
10016
  ;;
10017
 
10018
# No shared lib support for Linux oldld, aout, or coff.
10019
linux*oldld* | linux*aout* | linux*coff*)
10020
  dynamic_linker=no
10021
  ;;
10022
 
10023
# This must be Linux ELF.
10024
linux* | k*bsd*-gnu)
10025
  version_type=linux
10026
  need_lib_prefix=no
10027
  need_version=no
10028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029
  soname_spec='${libname}${release}${shared_ext}$major'
10030
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10031
  shlibpath_var=LD_LIBRARY_PATH
10032
  shlibpath_overrides_runpath=no
10033
  # Some binutils ld are patched to set DT_RUNPATH
10034
  save_LDFLAGS=$LDFLAGS
10035
  save_libdir=$libdir
10036
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10037
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10038
  cat >conftest.$ac_ext <<_ACEOF
10039
/* confdefs.h.  */
10040
_ACEOF
10041
cat confdefs.h >>conftest.$ac_ext
10042
cat >>conftest.$ac_ext <<_ACEOF
10043
/* end confdefs.h.  */
10044
 
10045
int
10046
main ()
10047
{
10048
 
10049
  ;
10050
  return 0;
10051
}
10052
_ACEOF
10053
rm -f conftest.$ac_objext conftest$ac_exeext
10054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055
  (eval $ac_link) 2>conftest.er1
10056
  ac_status=$?
10057
  grep -v '^ *+' conftest.er1 >conftest.err
10058
  rm -f conftest.er1
10059
  cat conftest.err >&5
10060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061
  (exit $ac_status); } &&
10062
         { ac_try='test -z "$ac_c_werror_flag"
10063
                         || test ! -s conftest.err'
10064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065
  (eval $ac_try) 2>&5
10066
  ac_status=$?
10067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068
  (exit $ac_status); }; } &&
10069
         { ac_try='test -s conftest$ac_exeext'
10070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071
  (eval $ac_try) 2>&5
10072
  ac_status=$?
10073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074
  (exit $ac_status); }; }; then
10075
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10076
  shlibpath_overrides_runpath=yes
10077
fi
10078
 
10079
else
10080
  echo "$as_me: failed program was:" >&5
10081
sed 's/^/| /' conftest.$ac_ext >&5
10082
 
10083
fi
10084
rm -f conftest.err conftest.$ac_objext \
10085
      conftest$ac_exeext conftest.$ac_ext
10086
  LDFLAGS=$save_LDFLAGS
10087
  libdir=$save_libdir
10088
 
10089
  # This implies no fast_install, which is unacceptable.
10090
  # Some rework will be needed to allow for fast_install
10091
  # before this can be enabled.
10092
  hardcode_into_libs=yes
10093
 
10094
  # Append ld.so.conf contents to the search path
10095
  if test -f /etc/ld.so.conf; then
10096
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10097
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10098
  fi
10099
 
10100
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10101
  # powerpc, because MkLinux only supported shared libraries with the
10102
  # GNU dynamic linker.  Since this was broken with cross compilers,
10103
  # most powerpc-linux boxes support dynamic linking these days and
10104
  # people can always --disable-shared, the test was removed, and we
10105
  # assume the GNU/Linux dynamic linker is in use.
10106
  dynamic_linker='GNU/Linux ld.so'
10107
  ;;
10108
 
10109
netbsd*)
10110
  version_type=sunos
10111
  need_lib_prefix=no
10112
  need_version=no
10113
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10114
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10115
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10116
    dynamic_linker='NetBSD (a.out) ld.so'
10117
  else
10118
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10119
    soname_spec='${libname}${release}${shared_ext}$major'
10120
    dynamic_linker='NetBSD ld.elf_so'
10121
  fi
10122
  shlibpath_var=LD_LIBRARY_PATH
10123
  shlibpath_overrides_runpath=yes
10124
  hardcode_into_libs=yes
10125
  ;;
10126
 
10127
newsos6)
10128
  version_type=linux
10129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130
  shlibpath_var=LD_LIBRARY_PATH
10131
  shlibpath_overrides_runpath=yes
10132
  ;;
10133
 
10134
*nto* | *qnx*)
10135
  version_type=qnx
10136
  need_lib_prefix=no
10137
  need_version=no
10138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139
  soname_spec='${libname}${release}${shared_ext}$major'
10140
  shlibpath_var=LD_LIBRARY_PATH
10141
  shlibpath_overrides_runpath=no
10142
  hardcode_into_libs=yes
10143
  dynamic_linker='ldqnx.so'
10144
  ;;
10145
 
10146
openbsd*)
10147
  version_type=sunos
10148
  sys_lib_dlsearch_path_spec="/usr/lib"
10149
  need_lib_prefix=no
10150
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151
  case $host_os in
10152
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10153
    *)                          need_version=no  ;;
10154
  esac
10155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157
  shlibpath_var=LD_LIBRARY_PATH
10158
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159
    case $host_os in
10160
      openbsd2.[89] | openbsd2.[89].*)
10161
        shlibpath_overrides_runpath=no
10162
        ;;
10163
      *)
10164
        shlibpath_overrides_runpath=yes
10165
        ;;
10166
      esac
10167
  else
10168
    shlibpath_overrides_runpath=yes
10169
  fi
10170
  ;;
10171
 
10172
os2*)
10173
  libname_spec='$name'
10174
  shrext_cmds=".dll"
10175
  need_lib_prefix=no
10176
  library_names_spec='$libname${shared_ext} $libname.a'
10177
  dynamic_linker='OS/2 ld.exe'
10178
  shlibpath_var=LIBPATH
10179
  ;;
10180
 
10181
osf3* | osf4* | osf5*)
10182
  version_type=osf
10183
  need_lib_prefix=no
10184
  need_version=no
10185
  soname_spec='${libname}${release}${shared_ext}$major'
10186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187
  shlibpath_var=LD_LIBRARY_PATH
10188
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190
  ;;
10191
 
10192
rdos*)
10193
  dynamic_linker=no
10194
  ;;
10195
 
10196
solaris*)
10197
  version_type=linux
10198
  need_lib_prefix=no
10199
  need_version=no
10200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201
  soname_spec='${libname}${release}${shared_ext}$major'
10202
  shlibpath_var=LD_LIBRARY_PATH
10203
  shlibpath_overrides_runpath=yes
10204
  hardcode_into_libs=yes
10205
  # ldd complains unless libraries are executable
10206
  postinstall_cmds='chmod +x $lib'
10207
  ;;
10208
 
10209
sunos4*)
10210
  version_type=sunos
10211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10213
  shlibpath_var=LD_LIBRARY_PATH
10214
  shlibpath_overrides_runpath=yes
10215
  if test "$with_gnu_ld" = yes; then
10216
    need_lib_prefix=no
10217
  fi
10218
  need_version=yes
10219
  ;;
10220
 
10221
sysv4 | sysv4.3*)
10222
  version_type=linux
10223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224
  soname_spec='${libname}${release}${shared_ext}$major'
10225
  shlibpath_var=LD_LIBRARY_PATH
10226
  case $host_vendor in
10227
    sni)
10228
      shlibpath_overrides_runpath=no
10229
      need_lib_prefix=no
10230
      runpath_var=LD_RUN_PATH
10231
      ;;
10232
    siemens)
10233
      need_lib_prefix=no
10234
      ;;
10235
    motorola)
10236
      need_lib_prefix=no
10237
      need_version=no
10238
      shlibpath_overrides_runpath=no
10239
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10240
      ;;
10241
  esac
10242
  ;;
10243
 
10244
sysv4*MP*)
10245
  if test -d /usr/nec ;then
10246
    version_type=linux
10247
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10248
    soname_spec='$libname${shared_ext}.$major'
10249
    shlibpath_var=LD_LIBRARY_PATH
10250
  fi
10251
  ;;
10252
 
10253
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10254
  version_type=freebsd-elf
10255
  need_lib_prefix=no
10256
  need_version=no
10257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10258
  soname_spec='${libname}${release}${shared_ext}$major'
10259
  shlibpath_var=LD_LIBRARY_PATH
10260
  shlibpath_overrides_runpath=yes
10261
  hardcode_into_libs=yes
10262
  if test "$with_gnu_ld" = yes; then
10263
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10264
  else
10265
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10266
    case $host_os in
10267
      sco3.2v5*)
10268
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10269
        ;;
10270
    esac
10271
  fi
10272
  sys_lib_dlsearch_path_spec='/usr/lib'
10273
  ;;
10274
 
10275
tpf*)
10276
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10277
  version_type=linux
10278
  need_lib_prefix=no
10279
  need_version=no
10280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281
  shlibpath_var=LD_LIBRARY_PATH
10282
  shlibpath_overrides_runpath=no
10283
  hardcode_into_libs=yes
10284
  ;;
10285
 
10286
uts4*)
10287
  version_type=linux
10288
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289
  soname_spec='${libname}${release}${shared_ext}$major'
10290
  shlibpath_var=LD_LIBRARY_PATH
10291
  ;;
10292
 
10293
*)
10294
  dynamic_linker=no
10295
  ;;
10296
esac
10297
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10298
echo "${ECHO_T}$dynamic_linker" >&6
10299
test "$dynamic_linker" = no && can_build_shared=no
10300
 
10301
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10302
if test "$GCC" = yes; then
10303
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10304
fi
10305
 
10306
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10307
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10308
fi
10309
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10310
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10311
fi
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10400
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10401
hardcode_action=
10402
if test -n "$hardcode_libdir_flag_spec" ||
10403
   test -n "$runpath_var" ||
10404
   test "X$hardcode_automatic" = "Xyes" ; then
10405
 
10406
  # We can hardcode non-existent directories.
10407
  if test "$hardcode_direct" != no &&
10408
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10409
     # have to relink, otherwise we might link with an installed library
10410
     # when we should be linking with a yet-to-be-installed one
10411
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10412
     test "$hardcode_minus_L" != no; then
10413
    # Linking always hardcodes the temporary library directory.
10414
    hardcode_action=relink
10415
  else
10416
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10417
    hardcode_action=immediate
10418
  fi
10419
else
10420
  # We cannot hardcode anything, or else we can only hardcode existing
10421
  # directories.
10422
  hardcode_action=unsupported
10423
fi
10424
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10425
echo "${ECHO_T}$hardcode_action" >&6
10426
 
10427
if test "$hardcode_action" = relink ||
10428
   test "$inherit_rpath" = yes; then
10429
  # Fast installation is not supported
10430
  enable_fast_install=no
10431
elif test "$shlibpath_overrides_runpath" = yes ||
10432
     test "$enable_shared" = no; then
10433
  # Fast installation is not necessary
10434
  enable_fast_install=needless
10435
fi
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
  if test "x$enable_dlopen" != xyes; then
10443
  enable_dlopen=unknown
10444
  enable_dlopen_self=unknown
10445
  enable_dlopen_self_static=unknown
10446
else
10447
  lt_cv_dlopen=no
10448
  lt_cv_dlopen_libs=
10449
 
10450
  case $host_os in
10451
  beos*)
10452
    lt_cv_dlopen="load_add_on"
10453
    lt_cv_dlopen_libs=
10454
    lt_cv_dlopen_self=yes
10455
    ;;
10456
 
10457
  mingw* | pw32* | cegcc*)
10458
    lt_cv_dlopen="LoadLibrary"
10459
    lt_cv_dlopen_libs=
10460
    ;;
10461
 
10462
  cygwin*)
10463
    lt_cv_dlopen="dlopen"
10464
    lt_cv_dlopen_libs=
10465
    ;;
10466
 
10467
  darwin*)
10468
  # if libdl is installed we need to link against it
10469
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10470
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10471
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10472
  echo $ECHO_N "(cached) $ECHO_C" >&6
10473
else
10474
  ac_check_lib_save_LIBS=$LIBS
10475
LIBS="-ldl  $LIBS"
10476
cat >conftest.$ac_ext <<_ACEOF
10477
/* confdefs.h.  */
10478
_ACEOF
10479
cat confdefs.h >>conftest.$ac_ext
10480
cat >>conftest.$ac_ext <<_ACEOF
10481
/* end confdefs.h.  */
10482
 
10483
/* Override any gcc2 internal prototype to avoid an error.  */
10484
#ifdef __cplusplus
10485
extern "C"
10486
#endif
10487
/* We use char because int might match the return type of a gcc2
10488
   builtin and then its argument prototype would still apply.  */
10489
char dlopen ();
10490
int
10491
main ()
10492
{
10493
dlopen ();
10494
  ;
10495
  return 0;
10496
}
10497
_ACEOF
10498
rm -f conftest.$ac_objext conftest$ac_exeext
10499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500
  (eval $ac_link) 2>conftest.er1
10501
  ac_status=$?
10502
  grep -v '^ *+' conftest.er1 >conftest.err
10503
  rm -f conftest.er1
10504
  cat conftest.err >&5
10505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506
  (exit $ac_status); } &&
10507
         { ac_try='test -z "$ac_c_werror_flag"
10508
                         || test ! -s conftest.err'
10509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510
  (eval $ac_try) 2>&5
10511
  ac_status=$?
10512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513
  (exit $ac_status); }; } &&
10514
         { ac_try='test -s conftest$ac_exeext'
10515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516
  (eval $ac_try) 2>&5
10517
  ac_status=$?
10518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519
  (exit $ac_status); }; }; then
10520
  ac_cv_lib_dl_dlopen=yes
10521
else
10522
  echo "$as_me: failed program was:" >&5
10523
sed 's/^/| /' conftest.$ac_ext >&5
10524
 
10525
ac_cv_lib_dl_dlopen=no
10526
fi
10527
rm -f conftest.err conftest.$ac_objext \
10528
      conftest$ac_exeext conftest.$ac_ext
10529
LIBS=$ac_check_lib_save_LIBS
10530
fi
10531
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10532
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10533
if test $ac_cv_lib_dl_dlopen = yes; then
10534
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10535
else
10536
 
10537
    lt_cv_dlopen="dyld"
10538
    lt_cv_dlopen_libs=
10539
    lt_cv_dlopen_self=yes
10540
 
10541
fi
10542
 
10543
    ;;
10544
 
10545
  *)
10546
    echo "$as_me:$LINENO: checking for shl_load" >&5
10547
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10548
if test "${ac_cv_func_shl_load+set}" = set; then
10549
  echo $ECHO_N "(cached) $ECHO_C" >&6
10550
else
10551
  cat >conftest.$ac_ext <<_ACEOF
10552
/* confdefs.h.  */
10553
_ACEOF
10554
cat confdefs.h >>conftest.$ac_ext
10555
cat >>conftest.$ac_ext <<_ACEOF
10556
/* end confdefs.h.  */
10557
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10558
   For example, HP-UX 11i  declares gettimeofday.  */
10559
#define shl_load innocuous_shl_load
10560
 
10561
/* System header to define __stub macros and hopefully few prototypes,
10562
    which can conflict with char shl_load (); below.
10563
    Prefer  to  if __STDC__ is defined, since
10564
     exists even on freestanding compilers.  */
10565
 
10566
#ifdef __STDC__
10567
# include 
10568
#else
10569
# include 
10570
#endif
10571
 
10572
#undef shl_load
10573
 
10574
/* Override any gcc2 internal prototype to avoid an error.  */
10575
#ifdef __cplusplus
10576
extern "C"
10577
{
10578
#endif
10579
/* We use char because int might match the return type of a gcc2
10580
   builtin and then its argument prototype would still apply.  */
10581
char shl_load ();
10582
/* The GNU C library defines this for functions which it implements
10583
    to always fail with ENOSYS.  Some functions are actually named
10584
    something starting with __ and the normal name is an alias.  */
10585
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10586
choke me
10587
#else
10588
char (*f) () = shl_load;
10589
#endif
10590
#ifdef __cplusplus
10591
}
10592
#endif
10593
 
10594
int
10595
main ()
10596
{
10597
return f != shl_load;
10598
  ;
10599
  return 0;
10600
}
10601
_ACEOF
10602
rm -f conftest.$ac_objext conftest$ac_exeext
10603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604
  (eval $ac_link) 2>conftest.er1
10605
  ac_status=$?
10606
  grep -v '^ *+' conftest.er1 >conftest.err
10607
  rm -f conftest.er1
10608
  cat conftest.err >&5
10609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610
  (exit $ac_status); } &&
10611
         { ac_try='test -z "$ac_c_werror_flag"
10612
                         || test ! -s conftest.err'
10613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614
  (eval $ac_try) 2>&5
10615
  ac_status=$?
10616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617
  (exit $ac_status); }; } &&
10618
         { ac_try='test -s conftest$ac_exeext'
10619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620
  (eval $ac_try) 2>&5
10621
  ac_status=$?
10622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623
  (exit $ac_status); }; }; then
10624
  ac_cv_func_shl_load=yes
10625
else
10626
  echo "$as_me: failed program was:" >&5
10627
sed 's/^/| /' conftest.$ac_ext >&5
10628
 
10629
ac_cv_func_shl_load=no
10630
fi
10631
rm -f conftest.err conftest.$ac_objext \
10632
      conftest$ac_exeext conftest.$ac_ext
10633
fi
10634
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10635
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10636
if test $ac_cv_func_shl_load = yes; then
10637
  lt_cv_dlopen="shl_load"
10638
else
10639
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10640
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10641
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10642
  echo $ECHO_N "(cached) $ECHO_C" >&6
10643
else
10644
  ac_check_lib_save_LIBS=$LIBS
10645
LIBS="-ldld  $LIBS"
10646
cat >conftest.$ac_ext <<_ACEOF
10647
/* confdefs.h.  */
10648
_ACEOF
10649
cat confdefs.h >>conftest.$ac_ext
10650
cat >>conftest.$ac_ext <<_ACEOF
10651
/* end confdefs.h.  */
10652
 
10653
/* Override any gcc2 internal prototype to avoid an error.  */
10654
#ifdef __cplusplus
10655
extern "C"
10656
#endif
10657
/* We use char because int might match the return type of a gcc2
10658
   builtin and then its argument prototype would still apply.  */
10659
char shl_load ();
10660
int
10661
main ()
10662
{
10663
shl_load ();
10664
  ;
10665
  return 0;
10666
}
10667
_ACEOF
10668
rm -f conftest.$ac_objext conftest$ac_exeext
10669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670
  (eval $ac_link) 2>conftest.er1
10671
  ac_status=$?
10672
  grep -v '^ *+' conftest.er1 >conftest.err
10673
  rm -f conftest.er1
10674
  cat conftest.err >&5
10675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676
  (exit $ac_status); } &&
10677
         { ac_try='test -z "$ac_c_werror_flag"
10678
                         || test ! -s conftest.err'
10679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680
  (eval $ac_try) 2>&5
10681
  ac_status=$?
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
  (exit $ac_status); }; } &&
10684
         { ac_try='test -s conftest$ac_exeext'
10685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686
  (eval $ac_try) 2>&5
10687
  ac_status=$?
10688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689
  (exit $ac_status); }; }; then
10690
  ac_cv_lib_dld_shl_load=yes
10691
else
10692
  echo "$as_me: failed program was:" >&5
10693
sed 's/^/| /' conftest.$ac_ext >&5
10694
 
10695
ac_cv_lib_dld_shl_load=no
10696
fi
10697
rm -f conftest.err conftest.$ac_objext \
10698
      conftest$ac_exeext conftest.$ac_ext
10699
LIBS=$ac_check_lib_save_LIBS
10700
fi
10701
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10702
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10703
if test $ac_cv_lib_dld_shl_load = yes; then
10704
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10705
else
10706
  echo "$as_me:$LINENO: checking for dlopen" >&5
10707
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10708
if test "${ac_cv_func_dlopen+set}" = set; then
10709
  echo $ECHO_N "(cached) $ECHO_C" >&6
10710
else
10711
  cat >conftest.$ac_ext <<_ACEOF
10712
/* confdefs.h.  */
10713
_ACEOF
10714
cat confdefs.h >>conftest.$ac_ext
10715
cat >>conftest.$ac_ext <<_ACEOF
10716
/* end confdefs.h.  */
10717
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10718
   For example, HP-UX 11i  declares gettimeofday.  */
10719
#define dlopen innocuous_dlopen
10720
 
10721
/* System header to define __stub macros and hopefully few prototypes,
10722
    which can conflict with char dlopen (); below.
10723
    Prefer  to  if __STDC__ is defined, since
10724
     exists even on freestanding compilers.  */
10725
 
10726
#ifdef __STDC__
10727
# include 
10728
#else
10729
# include 
10730
#endif
10731
 
10732
#undef dlopen
10733
 
10734
/* Override any gcc2 internal prototype to avoid an error.  */
10735
#ifdef __cplusplus
10736
extern "C"
10737
{
10738
#endif
10739
/* We use char because int might match the return type of a gcc2
10740
   builtin and then its argument prototype would still apply.  */
10741
char dlopen ();
10742
/* The GNU C library defines this for functions which it implements
10743
    to always fail with ENOSYS.  Some functions are actually named
10744
    something starting with __ and the normal name is an alias.  */
10745
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10746
choke me
10747
#else
10748
char (*f) () = dlopen;
10749
#endif
10750
#ifdef __cplusplus
10751
}
10752
#endif
10753
 
10754
int
10755
main ()
10756
{
10757
return f != dlopen;
10758
  ;
10759
  return 0;
10760
}
10761
_ACEOF
10762
rm -f conftest.$ac_objext conftest$ac_exeext
10763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10764
  (eval $ac_link) 2>conftest.er1
10765
  ac_status=$?
10766
  grep -v '^ *+' conftest.er1 >conftest.err
10767
  rm -f conftest.er1
10768
  cat conftest.err >&5
10769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770
  (exit $ac_status); } &&
10771
         { ac_try='test -z "$ac_c_werror_flag"
10772
                         || test ! -s conftest.err'
10773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774
  (eval $ac_try) 2>&5
10775
  ac_status=$?
10776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777
  (exit $ac_status); }; } &&
10778
         { ac_try='test -s conftest$ac_exeext'
10779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780
  (eval $ac_try) 2>&5
10781
  ac_status=$?
10782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783
  (exit $ac_status); }; }; then
10784
  ac_cv_func_dlopen=yes
10785
else
10786
  echo "$as_me: failed program was:" >&5
10787
sed 's/^/| /' conftest.$ac_ext >&5
10788
 
10789
ac_cv_func_dlopen=no
10790
fi
10791
rm -f conftest.err conftest.$ac_objext \
10792
      conftest$ac_exeext conftest.$ac_ext
10793
fi
10794
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10795
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10796
if test $ac_cv_func_dlopen = yes; then
10797
  lt_cv_dlopen="dlopen"
10798
else
10799
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10800
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10801
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10802
  echo $ECHO_N "(cached) $ECHO_C" >&6
10803
else
10804
  ac_check_lib_save_LIBS=$LIBS
10805
LIBS="-ldl  $LIBS"
10806
cat >conftest.$ac_ext <<_ACEOF
10807
/* confdefs.h.  */
10808
_ACEOF
10809
cat confdefs.h >>conftest.$ac_ext
10810
cat >>conftest.$ac_ext <<_ACEOF
10811
/* end confdefs.h.  */
10812
 
10813
/* Override any gcc2 internal prototype to avoid an error.  */
10814
#ifdef __cplusplus
10815
extern "C"
10816
#endif
10817
/* We use char because int might match the return type of a gcc2
10818
   builtin and then its argument prototype would still apply.  */
10819
char dlopen ();
10820
int
10821
main ()
10822
{
10823
dlopen ();
10824
  ;
10825
  return 0;
10826
}
10827
_ACEOF
10828
rm -f conftest.$ac_objext conftest$ac_exeext
10829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830
  (eval $ac_link) 2>conftest.er1
10831
  ac_status=$?
10832
  grep -v '^ *+' conftest.er1 >conftest.err
10833
  rm -f conftest.er1
10834
  cat conftest.err >&5
10835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836
  (exit $ac_status); } &&
10837
         { ac_try='test -z "$ac_c_werror_flag"
10838
                         || test ! -s conftest.err'
10839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840
  (eval $ac_try) 2>&5
10841
  ac_status=$?
10842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843
  (exit $ac_status); }; } &&
10844
         { ac_try='test -s conftest$ac_exeext'
10845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846
  (eval $ac_try) 2>&5
10847
  ac_status=$?
10848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849
  (exit $ac_status); }; }; then
10850
  ac_cv_lib_dl_dlopen=yes
10851
else
10852
  echo "$as_me: failed program was:" >&5
10853
sed 's/^/| /' conftest.$ac_ext >&5
10854
 
10855
ac_cv_lib_dl_dlopen=no
10856
fi
10857
rm -f conftest.err conftest.$ac_objext \
10858
      conftest$ac_exeext conftest.$ac_ext
10859
LIBS=$ac_check_lib_save_LIBS
10860
fi
10861
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10862
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10863
if test $ac_cv_lib_dl_dlopen = yes; then
10864
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865
else
10866
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10867
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10868
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10869
  echo $ECHO_N "(cached) $ECHO_C" >&6
10870
else
10871
  ac_check_lib_save_LIBS=$LIBS
10872
LIBS="-lsvld  $LIBS"
10873
cat >conftest.$ac_ext <<_ACEOF
10874
/* confdefs.h.  */
10875
_ACEOF
10876
cat confdefs.h >>conftest.$ac_ext
10877
cat >>conftest.$ac_ext <<_ACEOF
10878
/* end confdefs.h.  */
10879
 
10880
/* Override any gcc2 internal prototype to avoid an error.  */
10881
#ifdef __cplusplus
10882
extern "C"
10883
#endif
10884
/* We use char because int might match the return type of a gcc2
10885
   builtin and then its argument prototype would still apply.  */
10886
char dlopen ();
10887
int
10888
main ()
10889
{
10890
dlopen ();
10891
  ;
10892
  return 0;
10893
}
10894
_ACEOF
10895
rm -f conftest.$ac_objext conftest$ac_exeext
10896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897
  (eval $ac_link) 2>conftest.er1
10898
  ac_status=$?
10899
  grep -v '^ *+' conftest.er1 >conftest.err
10900
  rm -f conftest.er1
10901
  cat conftest.err >&5
10902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903
  (exit $ac_status); } &&
10904
         { ac_try='test -z "$ac_c_werror_flag"
10905
                         || test ! -s conftest.err'
10906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907
  (eval $ac_try) 2>&5
10908
  ac_status=$?
10909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910
  (exit $ac_status); }; } &&
10911
         { ac_try='test -s conftest$ac_exeext'
10912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913
  (eval $ac_try) 2>&5
10914
  ac_status=$?
10915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916
  (exit $ac_status); }; }; then
10917
  ac_cv_lib_svld_dlopen=yes
10918
else
10919
  echo "$as_me: failed program was:" >&5
10920
sed 's/^/| /' conftest.$ac_ext >&5
10921
 
10922
ac_cv_lib_svld_dlopen=no
10923
fi
10924
rm -f conftest.err conftest.$ac_objext \
10925
      conftest$ac_exeext conftest.$ac_ext
10926
LIBS=$ac_check_lib_save_LIBS
10927
fi
10928
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10929
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10930
if test $ac_cv_lib_svld_dlopen = yes; then
10931
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10932
else
10933
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10934
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10935
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10936
  echo $ECHO_N "(cached) $ECHO_C" >&6
10937
else
10938
  ac_check_lib_save_LIBS=$LIBS
10939
LIBS="-ldld  $LIBS"
10940
cat >conftest.$ac_ext <<_ACEOF
10941
/* confdefs.h.  */
10942
_ACEOF
10943
cat confdefs.h >>conftest.$ac_ext
10944
cat >>conftest.$ac_ext <<_ACEOF
10945
/* end confdefs.h.  */
10946
 
10947
/* Override any gcc2 internal prototype to avoid an error.  */
10948
#ifdef __cplusplus
10949
extern "C"
10950
#endif
10951
/* We use char because int might match the return type of a gcc2
10952
   builtin and then its argument prototype would still apply.  */
10953
char dld_link ();
10954
int
10955
main ()
10956
{
10957
dld_link ();
10958
  ;
10959
  return 0;
10960
}
10961
_ACEOF
10962
rm -f conftest.$ac_objext conftest$ac_exeext
10963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10964
  (eval $ac_link) 2>conftest.er1
10965
  ac_status=$?
10966
  grep -v '^ *+' conftest.er1 >conftest.err
10967
  rm -f conftest.er1
10968
  cat conftest.err >&5
10969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970
  (exit $ac_status); } &&
10971
         { ac_try='test -z "$ac_c_werror_flag"
10972
                         || test ! -s conftest.err'
10973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974
  (eval $ac_try) 2>&5
10975
  ac_status=$?
10976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977
  (exit $ac_status); }; } &&
10978
         { ac_try='test -s conftest$ac_exeext'
10979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980
  (eval $ac_try) 2>&5
10981
  ac_status=$?
10982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983
  (exit $ac_status); }; }; then
10984
  ac_cv_lib_dld_dld_link=yes
10985
else
10986
  echo "$as_me: failed program was:" >&5
10987
sed 's/^/| /' conftest.$ac_ext >&5
10988
 
10989
ac_cv_lib_dld_dld_link=no
10990
fi
10991
rm -f conftest.err conftest.$ac_objext \
10992
      conftest$ac_exeext conftest.$ac_ext
10993
LIBS=$ac_check_lib_save_LIBS
10994
fi
10995
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10996
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10997
if test $ac_cv_lib_dld_dld_link = yes; then
10998
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10999
fi
11000
 
11001
 
11002
fi
11003
 
11004
 
11005
fi
11006
 
11007
 
11008
fi
11009
 
11010
 
11011
fi
11012
 
11013
 
11014
fi
11015
 
11016
    ;;
11017
  esac
11018
 
11019
  if test "x$lt_cv_dlopen" != xno; then
11020
    enable_dlopen=yes
11021
  else
11022
    enable_dlopen=no
11023
  fi
11024
 
11025
  case $lt_cv_dlopen in
11026
  dlopen)
11027
    save_CPPFLAGS="$CPPFLAGS"
11028
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11029
 
11030
    save_LDFLAGS="$LDFLAGS"
11031
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11032
 
11033
    save_LIBS="$LIBS"
11034
    LIBS="$lt_cv_dlopen_libs $LIBS"
11035
 
11036
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11037
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11038
if test "${lt_cv_dlopen_self+set}" = set; then
11039
  echo $ECHO_N "(cached) $ECHO_C" >&6
11040
else
11041
          if test "$cross_compiling" = yes; then :
11042
  lt_cv_dlopen_self=cross
11043
else
11044
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11045
  lt_status=$lt_dlunknown
11046
  cat > conftest.$ac_ext <<_LT_EOF
11047
#line 11046 "configure"
11048
#include "confdefs.h"
11049
 
11050
#if HAVE_DLFCN_H
11051
#include 
11052
#endif
11053
 
11054
#include 
11055
 
11056
#ifdef RTLD_GLOBAL
11057
#  define LT_DLGLOBAL           RTLD_GLOBAL
11058
#else
11059
#  ifdef DL_GLOBAL
11060
#    define LT_DLGLOBAL         DL_GLOBAL
11061
#  else
11062
#    define LT_DLGLOBAL         0
11063
#  endif
11064
#endif
11065
 
11066
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11067
   find out it does not work in some platform. */
11068
#ifndef LT_DLLAZY_OR_NOW
11069
#  ifdef RTLD_LAZY
11070
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11071
#  else
11072
#    ifdef DL_LAZY
11073
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11074
#    else
11075
#      ifdef RTLD_NOW
11076
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11077
#      else
11078
#        ifdef DL_NOW
11079
#          define LT_DLLAZY_OR_NOW      DL_NOW
11080
#        else
11081
#          define LT_DLLAZY_OR_NOW      0
11082
#        endif
11083
#      endif
11084
#    endif
11085
#  endif
11086
#endif
11087
 
11088
void fnord() { int i=42;}
11089
int main ()
11090
{
11091
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092
  int status = $lt_dlunknown;
11093
 
11094
  if (self)
11095
    {
11096
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098
      /* dlclose (self); */
11099
    }
11100
  else
11101
    puts (dlerror ());
11102
 
11103
  return status;
11104
}
11105
_LT_EOF
11106
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11107
  (eval $ac_link) 2>&5
11108
  ac_status=$?
11109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11111
    (./conftest; exit; ) >&5 2>/dev/null
11112
    lt_status=$?
11113
    case x$lt_status in
11114
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11115
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11116
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11117
    esac
11118
  else :
11119
    # compilation failed
11120
    lt_cv_dlopen_self=no
11121
  fi
11122
fi
11123
rm -fr conftest*
11124
 
11125
 
11126
fi
11127
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11128
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11129
 
11130
    if test "x$lt_cv_dlopen_self" = xyes; then
11131
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11132
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11133
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11134
if test "${lt_cv_dlopen_self_static+set}" = set; then
11135
  echo $ECHO_N "(cached) $ECHO_C" >&6
11136
else
11137
          if test "$cross_compiling" = yes; then :
11138
  lt_cv_dlopen_self_static=cross
11139
else
11140
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11141
  lt_status=$lt_dlunknown
11142
  cat > conftest.$ac_ext <<_LT_EOF
11143
#line 11142 "configure"
11144
#include "confdefs.h"
11145
 
11146
#if HAVE_DLFCN_H
11147
#include 
11148
#endif
11149
 
11150
#include 
11151
 
11152
#ifdef RTLD_GLOBAL
11153
#  define LT_DLGLOBAL           RTLD_GLOBAL
11154
#else
11155
#  ifdef DL_GLOBAL
11156
#    define LT_DLGLOBAL         DL_GLOBAL
11157
#  else
11158
#    define LT_DLGLOBAL         0
11159
#  endif
11160
#endif
11161
 
11162
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11163
   find out it does not work in some platform. */
11164
#ifndef LT_DLLAZY_OR_NOW
11165
#  ifdef RTLD_LAZY
11166
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11167
#  else
11168
#    ifdef DL_LAZY
11169
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11170
#    else
11171
#      ifdef RTLD_NOW
11172
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11173
#      else
11174
#        ifdef DL_NOW
11175
#          define LT_DLLAZY_OR_NOW      DL_NOW
11176
#        else
11177
#          define LT_DLLAZY_OR_NOW      0
11178
#        endif
11179
#      endif
11180
#    endif
11181
#  endif
11182
#endif
11183
 
11184
void fnord() { int i=42;}
11185
int main ()
11186
{
11187
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188
  int status = $lt_dlunknown;
11189
 
11190
  if (self)
11191
    {
11192
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11193
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194
      /* dlclose (self); */
11195
    }
11196
  else
11197
    puts (dlerror ());
11198
 
11199
  return status;
11200
}
11201
_LT_EOF
11202
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203
  (eval $ac_link) 2>&5
11204
  ac_status=$?
11205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207
    (./conftest; exit; ) >&5 2>/dev/null
11208
    lt_status=$?
11209
    case x$lt_status in
11210
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11213
    esac
11214
  else :
11215
    # compilation failed
11216
    lt_cv_dlopen_self_static=no
11217
  fi
11218
fi
11219
rm -fr conftest*
11220
 
11221
 
11222
fi
11223
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11225
    fi
11226
 
11227
    CPPFLAGS="$save_CPPFLAGS"
11228
    LDFLAGS="$save_LDFLAGS"
11229
    LIBS="$save_LIBS"
11230
    ;;
11231
  esac
11232
 
11233
  case $lt_cv_dlopen_self in
11234
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235
  *) enable_dlopen_self=unknown ;;
11236
  esac
11237
 
11238
  case $lt_cv_dlopen_self_static in
11239
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240
  *) enable_dlopen_self_static=unknown ;;
11241
  esac
11242
fi
11243
 
11244
 
11245
 
11246
 
11247
 
11248
 
11249
 
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
striplib=
11261
old_striplib=
11262
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11263
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11264
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11265
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11266
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11267
  echo "$as_me:$LINENO: result: yes" >&5
11268
echo "${ECHO_T}yes" >&6
11269
else
11270
# FIXME - insert some real tests, host_os isn't really good enough
11271
  case $host_os in
11272
  darwin*)
11273
    if test -n "$STRIP" ; then
11274
      striplib="$STRIP -x"
11275
      old_striplib="$STRIP -S"
11276
      echo "$as_me:$LINENO: result: yes" >&5
11277
echo "${ECHO_T}yes" >&6
11278
    else
11279
      echo "$as_me:$LINENO: result: no" >&5
11280
echo "${ECHO_T}no" >&6
11281
    fi
11282
    ;;
11283
  *)
11284
    echo "$as_me:$LINENO: result: no" >&5
11285
echo "${ECHO_T}no" >&6
11286
    ;;
11287
  esac
11288
fi
11289
 
11290
 
11291
 
11292
 
11293
 
11294
 
11295
 
11296
 
11297
 
11298
 
11299
 
11300
 
11301
  # Report which library types will actually be built
11302
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11303
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11304
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11305
echo "${ECHO_T}$can_build_shared" >&6
11306
 
11307
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11308
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11309
  test "$can_build_shared" = "no" && enable_shared=no
11310
 
11311
  # On AIX, shared libraries and static libraries use the same namespace, and
11312
  # are all built from PIC.
11313
  case $host_os in
11314
  aix3*)
11315
    test "$enable_shared" = yes && enable_static=no
11316
    if test -n "$RANLIB"; then
11317
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11318
      postinstall_cmds='$RANLIB $lib'
11319
    fi
11320
    ;;
11321
 
11322
  aix[4-9]*)
11323
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11324
      test "$enable_shared" = yes && enable_static=no
11325
    fi
11326
    ;;
11327
  esac
11328
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11329
echo "${ECHO_T}$enable_shared" >&6
11330
 
11331
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11332
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11333
  # Make sure either enable_shared or enable_static is yes.
11334
  test "$enable_shared" = yes || enable_static=yes
11335
  echo "$as_me:$LINENO: result: $enable_static" >&5
11336
echo "${ECHO_T}$enable_static" >&6
11337
 
11338
 
11339
 
11340
 
11341
fi
11342
ac_ext=c
11343
ac_cpp='$CPP $CPPFLAGS'
11344
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11347
 
11348
CC="$lt_save_CC"
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
                  ac_config_commands="$ac_config_commands libtool"
11363
 
11364
 
11365
 
11366
 
11367
# Only expand once:
11368
 
11369
 
11370
fi
11371
 
11372
if test -n "${machine_dir}"; then
11373
  case ${machine_dir} in
11374
        a29k)
11375
 
11376
subdirs="$subdirs a29k"
11377
 ;;
11378
        arm)
11379
 
11380
subdirs="$subdirs arm"
11381
 ;;
11382
        bfin)
11383
 
11384
subdirs="$subdirs bfin"
11385
 ;;
11386
        cris)
11387
 
11388
subdirs="$subdirs cris"
11389
 ;;
11390
        crx)
11391
 
11392
subdirs="$subdirs crx"
11393
 ;;
11394
        d10v)
11395
 
11396
subdirs="$subdirs d10v"
11397
 ;;
11398
        d30v)
11399
 
11400
subdirs="$subdirs d30v"
11401
 ;;
11402
        fr30)
11403
 
11404
subdirs="$subdirs fr30"
11405
 ;;
11406
        frv)
11407
 
11408
subdirs="$subdirs frv"
11409
 ;;
11410
        h8300)
11411
 
11412
subdirs="$subdirs h8300"
11413
 ;;
11414
        h8500)
11415
 
11416
subdirs="$subdirs h8500"
11417
 ;;
11418
        hppa)
11419
 
11420
subdirs="$subdirs hppa"
11421
 ;;
11422
        i386)
11423
 
11424
subdirs="$subdirs i386"
11425
 ;;
11426
        i960)
11427
 
11428
subdirs="$subdirs i960"
11429
 ;;
11430
        iq2000)
11431
 
11432
subdirs="$subdirs iq2000"
11433
 ;;
11434
        lm32)
11435
 
11436
subdirs="$subdirs lm32"
11437
 ;;
11438
        m32c)
11439
 
11440
subdirs="$subdirs m32c"
11441
 ;;
11442
        m32r)
11443
 
11444
subdirs="$subdirs m32r"
11445
 ;;
11446
        m68hc11)
11447
 
11448
subdirs="$subdirs m68hc11"
11449
 ;;
11450
        m68k)
11451
 
11452
subdirs="$subdirs m68k"
11453
 ;;
11454
        m88k)
11455
 
11456
subdirs="$subdirs m88k"
11457
 ;;
11458
        mep )
11459
 
11460
subdirs="$subdirs mep"
11461
 ;;
11462
        mips)
11463
 
11464
subdirs="$subdirs mips"
11465
 ;;
11466
        mn10200)
11467
 
11468
subdirs="$subdirs mn10200"
11469
 ;;
11470
        mn10300)
11471
 
11472
subdirs="$subdirs mn10300"
11473
 ;;
11474
        mt)
11475
 
11476
subdirs="$subdirs mt"
11477
 ;;
11478
        necv70)
11479
 
11480
subdirs="$subdirs necv70"
11481
 ;;
11482
        powerpc)
11483
 
11484
subdirs="$subdirs powerpc"
11485
 ;;
11486
        or32)
11487
 
11488
subdirs="$subdirs or32"
11489
 ;;
11490
 
11491
        sh)
11492
 
11493
subdirs="$subdirs sh"
11494
 ;;
11495
        sparc)
11496
 
11497
subdirs="$subdirs sparc"
11498
 ;;
11499
        spu)
11500
 
11501
subdirs="$subdirs spu"
11502
 ;;
11503
        tic4x)
11504
 
11505
subdirs="$subdirs tic4x"
11506
 ;;
11507
        tic80)
11508
 
11509
subdirs="$subdirs tic80"
11510
 ;;
11511
        v850)
11512
 
11513
subdirs="$subdirs v850"
11514
 ;;
11515
        w65)
11516
 
11517
subdirs="$subdirs w65"
11518
 ;;
11519
        x86_64)
11520
 
11521
subdirs="$subdirs x86_64"
11522
 ;;
11523
        xscale)
11524
 
11525
subdirs="$subdirs xscale"
11526
 ;;
11527
        xstormy16)
11528
 
11529
subdirs="$subdirs xstormy16"
11530
 ;;
11531
        z8k)
11532
 
11533
subdirs="$subdirs z8k"
11534
 ;;
11535
  esac;
11536
fi
11537
 
11538
 
11539
 
11540
if test x${machine_dir} != x; then
11541
  HAVE_MACHINE_DIR_TRUE=
11542
  HAVE_MACHINE_DIR_FALSE='#'
11543
else
11544
  HAVE_MACHINE_DIR_TRUE='#'
11545
  HAVE_MACHINE_DIR_FALSE=
11546
fi
11547
 
11548
 
11549
          ac_config_files="$ac_config_files Makefile"
11550
 
11551
cat >confcache <<\_ACEOF
11552
# This file is a shell script that caches the results of configure
11553
# tests run on this system so they can be shared between configure
11554
# scripts and configure runs, see configure's option --config-cache.
11555
# It is not useful on other systems.  If it contains results you don't
11556
# want to keep, you may remove or edit it.
11557
#
11558
# config.status only pays attention to the cache file if you give it
11559
# the --recheck option to rerun configure.
11560
#
11561
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11562
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11563
# following values.
11564
 
11565
_ACEOF
11566
 
11567
# The following way of writing the cache mishandles newlines in values,
11568
# but we know of no workaround that is simple, portable, and efficient.
11569
# So, don't put newlines in cache variables' values.
11570
# Ultrix sh set writes to stderr and can't be redirected directly,
11571
# and sets the high bit in the cache file unless we assign to the vars.
11572
{
11573
  (set) 2>&1 |
11574
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11575
    *ac_space=\ *)
11576
      # `set' does not quote correctly, so add quotes (double-quote
11577
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11578
      sed -n \
11579
        "s/'/'\\\\''/g;
11580
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11581
      ;;
11582
    *)
11583
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11584
      sed -n \
11585
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11586
      ;;
11587
    esac;
11588
} |
11589
  sed '
11590
     t clear
11591
     : clear
11592
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11593
     t end
11594
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11595
     : end' >>confcache
11596
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11597
  if test -w $cache_file; then
11598
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11599
    cat confcache >$cache_file
11600
  else
11601
    echo "not updating unwritable cache $cache_file"
11602
  fi
11603
fi
11604
rm -f confcache
11605
 
11606
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11607
# Let make expand exec_prefix.
11608
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11609
 
11610
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11611
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11612
# trailing colons and then remove the whole line if VPATH becomes empty
11613
# (actually we leave an empty line to preserve line numbers).
11614
if test "x$srcdir" = x.; then
11615
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11616
s/:*\$(srcdir):*/:/;
11617
s/:*\${srcdir}:*/:/;
11618
s/:*@srcdir@:*/:/;
11619
s/^\([^=]*=[     ]*\):*/\1/;
11620
s/:*$//;
11621
s/^[^=]*=[       ]*$//;
11622
}'
11623
fi
11624
 
11625
# Transform confdefs.h into DEFS.
11626
# Protect against shell expansion while executing Makefile rules.
11627
# Protect against Makefile macro expansion.
11628
#
11629
# If the first sed substitution is executed (which looks for macros that
11630
# take arguments), then we branch to the quote section.  Otherwise,
11631
# look for a macro that doesn't take arguments.
11632
cat >confdef2opt.sed <<\_ACEOF
11633
t clear
11634
: clear
11635
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11636
t quote
11637
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11638
t quote
11639
d
11640
: quote
11641
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11642
s,\[,\\&,g
11643
s,\],\\&,g
11644
s,\$,$$,g
11645
p
11646
_ACEOF
11647
# We use echo to avoid assuming a particular line-breaking character.
11648
# The extra dot is to prevent the shell from consuming trailing
11649
# line-breaks from the sub-command output.  A line-break within
11650
# single-quotes doesn't work because, if this script is created in a
11651
# platform that uses two characters for line-breaks (e.g., DOS), tr
11652
# would break.
11653
ac_LF_and_DOT=`echo; echo .`
11654
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11655
rm -f confdef2opt.sed
11656
 
11657
 
11658
ac_libobjs=
11659
ac_ltlibobjs=
11660
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11661
  # 1. Remove the extension, and $U if already installed.
11662
  ac_i=`echo "$ac_i" |
11663
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11664
  # 2. Add them.
11665
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11666
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11667
done
11668
LIBOBJS=$ac_libobjs
11669
 
11670
LTLIBOBJS=$ac_ltlibobjs
11671
 
11672
 
11673
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11674
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11675
Usually this means the macro was only invoked conditionally." >&5
11676
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11677
Usually this means the macro was only invoked conditionally." >&2;}
11678
   { (exit 1); exit 1; }; }
11679
fi
11680
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11681
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11682
Usually this means the macro was only invoked conditionally." >&5
11683
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11684
Usually this means the macro was only invoked conditionally." >&2;}
11685
   { (exit 1); exit 1; }; }
11686
fi
11687
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11688
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11689
Usually this means the macro was only invoked conditionally." >&5
11690
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11691
Usually this means the macro was only invoked conditionally." >&2;}
11692
   { (exit 1); exit 1; }; }
11693
fi
11694
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11695
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11696
Usually this means the macro was only invoked conditionally." >&5
11697
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11698
Usually this means the macro was only invoked conditionally." >&2;}
11699
   { (exit 1); exit 1; }; }
11700
fi
11701
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11702
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11703
Usually this means the macro was only invoked conditionally." >&5
11704
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11705
Usually this means the macro was only invoked conditionally." >&2;}
11706
   { (exit 1); exit 1; }; }
11707
fi
11708
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11709
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11710
Usually this means the macro was only invoked conditionally." >&5
11711
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11712
Usually this means the macro was only invoked conditionally." >&2;}
11713
   { (exit 1); exit 1; }; }
11714
fi
11715
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11716
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11717
Usually this means the macro was only invoked conditionally." >&5
11718
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11719
Usually this means the macro was only invoked conditionally." >&2;}
11720
   { (exit 1); exit 1; }; }
11721
fi
11722
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11723
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11724
Usually this means the macro was only invoked conditionally." >&5
11725
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11726
Usually this means the macro was only invoked conditionally." >&2;}
11727
   { (exit 1); exit 1; }; }
11728
fi
11729
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11730
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11731
Usually this means the macro was only invoked conditionally." >&5
11732
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11733
Usually this means the macro was only invoked conditionally." >&2;}
11734
   { (exit 1); exit 1; }; }
11735
fi
11736
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11737
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11738
Usually this means the macro was only invoked conditionally." >&5
11739
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11740
Usually this means the macro was only invoked conditionally." >&2;}
11741
   { (exit 1); exit 1; }; }
11742
fi
11743
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11744
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11745
Usually this means the macro was only invoked conditionally." >&5
11746
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11747
Usually this means the macro was only invoked conditionally." >&2;}
11748
   { (exit 1); exit 1; }; }
11749
fi
11750
if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
11751
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
11752
Usually this means the macro was only invoked conditionally." >&5
11753
echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
11754
Usually this means the macro was only invoked conditionally." >&2;}
11755
   { (exit 1); exit 1; }; }
11756
fi
11757
 
11758
: ${CONFIG_STATUS=./config.status}
11759
ac_clean_files_save=$ac_clean_files
11760
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11761
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11762
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11763
cat >$CONFIG_STATUS <<_ACEOF
11764
#! $SHELL
11765
# Generated by $as_me.
11766
# Run this file to recreate the current configuration.
11767
# Compiler output produced by configure, useful for debugging
11768
# configure, is in config.log if it exists.
11769
 
11770
debug=false
11771
ac_cs_recheck=false
11772
ac_cs_silent=false
11773
SHELL=\${CONFIG_SHELL-$SHELL}
11774
_ACEOF
11775
 
11776
cat >>$CONFIG_STATUS <<\_ACEOF
11777
## --------------------- ##
11778
## M4sh Initialization.  ##
11779
## --------------------- ##
11780
 
11781
# Be Bourne compatible
11782
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11783
  emulate sh
11784
  NULLCMD=:
11785
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11786
  # is contrary to our usage.  Disable this feature.
11787
  alias -g '${1+"$@"}'='"$@"'
11788
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11789
  set -o posix
11790
fi
11791
DUALCASE=1; export DUALCASE # for MKS sh
11792
 
11793
# Support unset when possible.
11794
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11795
  as_unset=unset
11796
else
11797
  as_unset=false
11798
fi
11799
 
11800
 
11801
# Work around bugs in pre-3.0 UWIN ksh.
11802
$as_unset ENV MAIL MAILPATH
11803
PS1='$ '
11804
PS2='> '
11805
PS4='+ '
11806
 
11807
# NLS nuisances.
11808
for as_var in \
11809
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11810
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11811
  LC_TELEPHONE LC_TIME
11812
do
11813
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11814
    eval $as_var=C; export $as_var
11815
  else
11816
    $as_unset $as_var
11817
  fi
11818
done
11819
 
11820
# Required to use basename.
11821
if expr a : '\(a\)' >/dev/null 2>&1; then
11822
  as_expr=expr
11823
else
11824
  as_expr=false
11825
fi
11826
 
11827
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11828
  as_basename=basename
11829
else
11830
  as_basename=false
11831
fi
11832
 
11833
 
11834
# Name of the executable.
11835
as_me=`$as_basename "$0" ||
11836
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11837
         X"$0" : 'X\(//\)$' \| \
11838
         X"$0" : 'X\(/\)$' \| \
11839
         .     : '\(.\)' 2>/dev/null ||
11840
echo X/"$0" |
11841
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11842
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11843
          /^X\/\(\/\).*/{ s//\1/; q; }
11844
          s/.*/./; q'`
11845
 
11846
 
11847
# PATH needs CR, and LINENO needs CR and PATH.
11848
# Avoid depending upon Character Ranges.
11849
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11850
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11851
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11852
as_cr_digits='0123456789'
11853
as_cr_alnum=$as_cr_Letters$as_cr_digits
11854
 
11855
# The user is always right.
11856
if test "${PATH_SEPARATOR+set}" != set; then
11857
  echo "#! /bin/sh" >conf$$.sh
11858
  echo  "exit 0"   >>conf$$.sh
11859
  chmod +x conf$$.sh
11860
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11861
    PATH_SEPARATOR=';'
11862
  else
11863
    PATH_SEPARATOR=:
11864
  fi
11865
  rm -f conf$$.sh
11866
fi
11867
 
11868
 
11869
  as_lineno_1=$LINENO
11870
  as_lineno_2=$LINENO
11871
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11872
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11873
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11874
  # Find who we are.  Look in the path if we contain no path at all
11875
  # relative or not.
11876
  case $0 in
11877
    *[\\/]* ) as_myself=$0 ;;
11878
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879
for as_dir in $PATH
11880
do
11881
  IFS=$as_save_IFS
11882
  test -z "$as_dir" && as_dir=.
11883
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11884
done
11885
 
11886
       ;;
11887
  esac
11888
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11889
  # in which case we are not to be found in the path.
11890
  if test "x$as_myself" = x; then
11891
    as_myself=$0
11892
  fi
11893
  if test ! -f "$as_myself"; then
11894
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11895
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11896
   { (exit 1); exit 1; }; }
11897
  fi
11898
  case $CONFIG_SHELL in
11899
  '')
11900
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11902
do
11903
  IFS=$as_save_IFS
11904
  test -z "$as_dir" && as_dir=.
11905
  for as_base in sh bash ksh sh5; do
11906
         case $as_dir in
11907
         /*)
11908
           if ("$as_dir/$as_base" -c '
11909
  as_lineno_1=$LINENO
11910
  as_lineno_2=$LINENO
11911
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11912
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11913
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11914
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11915
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11916
             CONFIG_SHELL=$as_dir/$as_base
11917
             export CONFIG_SHELL
11918
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11919
           fi;;
11920
         esac
11921
       done
11922
done
11923
;;
11924
  esac
11925
 
11926
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11927
  # uniformly replaced by the line number.  The first 'sed' inserts a
11928
  # line-number line before each line; the second 'sed' does the real
11929
  # work.  The second script uses 'N' to pair each line-number line
11930
  # with the numbered line, and appends trailing '-' during
11931
  # substitution so that $LINENO is not a special case at line end.
11932
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11933
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11934
  sed '=' <$as_myself |
11935
    sed '
11936
      N
11937
      s,$,-,
11938
      : loop
11939
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11940
      t loop
11941
      s,-$,,
11942
      s,^['$as_cr_digits']*\n,,
11943
    ' >$as_me.lineno &&
11944
  chmod +x $as_me.lineno ||
11945
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11946
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11947
   { (exit 1); exit 1; }; }
11948
 
11949
  # Don't try to exec as it changes $[0], causing all sort of problems
11950
  # (the dirname of $[0] is not the place where we might find the
11951
  # original and so on.  Autoconf is especially sensible to this).
11952
  . ./$as_me.lineno
11953
  # Exit status is that of the last command.
11954
  exit
11955
}
11956
 
11957
 
11958
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11959
  *c*,-n*) ECHO_N= ECHO_C='
11960
' ECHO_T='      ' ;;
11961
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11962
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11963
esac
11964
 
11965
if expr a : '\(a\)' >/dev/null 2>&1; then
11966
  as_expr=expr
11967
else
11968
  as_expr=false
11969
fi
11970
 
11971
rm -f conf$$ conf$$.exe conf$$.file
11972
echo >conf$$.file
11973
if ln -s conf$$.file conf$$ 2>/dev/null; then
11974
  # We could just check for DJGPP; but this test a) works b) is more generic
11975
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11976
  if test -f conf$$.exe; then
11977
    # Don't use ln at all; we don't have any links
11978
    as_ln_s='cp -p'
11979
  else
11980
    as_ln_s='ln -s'
11981
  fi
11982
elif ln conf$$.file conf$$ 2>/dev/null; then
11983
  as_ln_s=ln
11984
else
11985
  as_ln_s='cp -p'
11986
fi
11987
rm -f conf$$ conf$$.exe conf$$.file
11988
 
11989
if mkdir -p . 2>/dev/null; then
11990
  as_mkdir_p=:
11991
else
11992
  test -d ./-p && rmdir ./-p
11993
  as_mkdir_p=false
11994
fi
11995
 
11996
as_executable_p="test -f"
11997
 
11998
# Sed expression to map a string onto a valid CPP name.
11999
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12000
 
12001
# Sed expression to map a string onto a valid variable name.
12002
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12003
 
12004
 
12005
# IFS
12006
# We need space, tab and new line, in precisely that order.
12007
as_nl='
12008
'
12009
IFS="   $as_nl"
12010
 
12011
# CDPATH.
12012
$as_unset CDPATH
12013
 
12014
exec 6>&1
12015
 
12016
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12017
# report actual input values of CONFIG_FILES etc. instead of their
12018
# values after options handling.  Logging --version etc. is OK.
12019
exec 5>>config.log
12020
{
12021
  echo
12022
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12023
## Running $as_me. ##
12024
_ASBOX
12025
} >&5
12026
cat >&5 <<_CSEOF
12027
 
12028
This file was extended by newlib $as_me 1.17.0, which was
12029
generated by GNU Autoconf 2.59.  Invocation command line was
12030
 
12031
  CONFIG_FILES    = $CONFIG_FILES
12032
  CONFIG_HEADERS  = $CONFIG_HEADERS
12033
  CONFIG_LINKS    = $CONFIG_LINKS
12034
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12035
  $ $0 $@
12036
 
12037
_CSEOF
12038
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12039
echo >&5
12040
_ACEOF
12041
 
12042
# Files that config.status was made for.
12043
if test -n "$ac_config_files"; then
12044
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12045
fi
12046
 
12047
if test -n "$ac_config_headers"; then
12048
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12049
fi
12050
 
12051
if test -n "$ac_config_links"; then
12052
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12053
fi
12054
 
12055
if test -n "$ac_config_commands"; then
12056
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12057
fi
12058
 
12059
cat >>$CONFIG_STATUS <<\_ACEOF
12060
 
12061
ac_cs_usage="\
12062
\`$as_me' instantiates files from templates according to the
12063
current configuration.
12064
 
12065
Usage: $0 [OPTIONS] [FILE]...
12066
 
12067
  -h, --help       print this help, then exit
12068
  -V, --version    print version number, then exit
12069
  -q, --quiet      do not print progress messages
12070
  -d, --debug      don't remove temporary files
12071
      --recheck    update $as_me by reconfiguring in the same conditions
12072
  --file=FILE[:TEMPLATE]
12073
                   instantiate the configuration file FILE
12074
 
12075
Configuration files:
12076
$config_files
12077
 
12078
Configuration commands:
12079
$config_commands
12080
 
12081
Report bugs to ."
12082
_ACEOF
12083
 
12084
cat >>$CONFIG_STATUS <<_ACEOF
12085
ac_cs_version="\\
12086
newlib config.status 1.17.0
12087
configured by $0, generated by GNU Autoconf 2.59,
12088
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12089
 
12090
Copyright (C) 2003 Free Software Foundation, Inc.
12091
This config.status script is free software; the Free Software Foundation
12092
gives unlimited permission to copy, distribute and modify it."
12093
srcdir=$srcdir
12094
INSTALL="$INSTALL"
12095
_ACEOF
12096
 
12097
cat >>$CONFIG_STATUS <<\_ACEOF
12098
# If no file are specified by the user, then we need to provide default
12099
# value.  By we need to know if files were specified by the user.
12100
ac_need_defaults=:
12101
while test $# != 0
12102
do
12103
  case $1 in
12104
  --*=*)
12105
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12106
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12107
    ac_shift=:
12108
    ;;
12109
  -*)
12110
    ac_option=$1
12111
    ac_optarg=$2
12112
    ac_shift=shift
12113
    ;;
12114
  *) # This is not an option, so the user has probably given explicit
12115
     # arguments.
12116
     ac_option=$1
12117
     ac_need_defaults=false;;
12118
  esac
12119
 
12120
  case $ac_option in
12121
  # Handling of the options.
12122
_ACEOF
12123
cat >>$CONFIG_STATUS <<\_ACEOF
12124
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12125
    ac_cs_recheck=: ;;
12126
  --version | --vers* | -V )
12127
    echo "$ac_cs_version"; exit 0 ;;
12128
  --he | --h)
12129
    # Conflict between --help and --header
12130
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12131
Try \`$0 --help' for more information." >&5
12132
echo "$as_me: error: ambiguous option: $1
12133
Try \`$0 --help' for more information." >&2;}
12134
   { (exit 1); exit 1; }; };;
12135
  --help | --hel | -h )
12136
    echo "$ac_cs_usage"; exit 0 ;;
12137
  --debug | --d* | -d )
12138
    debug=: ;;
12139
  --file | --fil | --fi | --f )
12140
    $ac_shift
12141
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12142
    ac_need_defaults=false;;
12143
  --header | --heade | --head | --hea )
12144
    $ac_shift
12145
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12146
    ac_need_defaults=false;;
12147
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12148
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12149
    ac_cs_silent=: ;;
12150
 
12151
  # This is an error.
12152
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12153
Try \`$0 --help' for more information." >&5
12154
echo "$as_me: error: unrecognized option: $1
12155
Try \`$0 --help' for more information." >&2;}
12156
   { (exit 1); exit 1; }; } ;;
12157
 
12158
  *) ac_config_targets="$ac_config_targets $1" ;;
12159
 
12160
  esac
12161
  shift
12162
done
12163
 
12164
ac_configure_extra_args=
12165
 
12166
if $ac_cs_silent; then
12167
  exec 6>/dev/null
12168
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12169
fi
12170
 
12171
_ACEOF
12172
cat >>$CONFIG_STATUS <<_ACEOF
12173
if \$ac_cs_recheck; then
12174
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12175
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12176
fi
12177
 
12178
_ACEOF
12179
 
12180
cat >>$CONFIG_STATUS <<_ACEOF
12181
#
12182
# INIT-COMMANDS section.
12183
#
12184
 
12185
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12186
 
12187
 
12188
# The HP-UX ksh and POSIX shell print the target directory to stdout
12189
# if CDPATH is set.
12190
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12191
 
12192
sed_quote_subst='$sed_quote_subst'
12193
double_quote_subst='$double_quote_subst'
12194
delay_variable_subst='$delay_variable_subst'
12195
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12196
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12197
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12198
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12199
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12200
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12201
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12202
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12203
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12204
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12205
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12206
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12207
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12208
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12209
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12210
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12211
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12212
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12213
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12214
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12215
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12216
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12217
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12218
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12219
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12220
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12221
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12222
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12223
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12224
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12225
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12226
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12227
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12228
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12229
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12230
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12231
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12232
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12233
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12234
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12235
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12236
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12237
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12238
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12239
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12240
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12241
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"`'
12242
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"`'
12243
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12244
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12245
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12246
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12247
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12248
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12249
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12250
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12251
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12252
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12253
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12254
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12255
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12256
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12257
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12258
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12259
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12260
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12261
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12262
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12263
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12264
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12265
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12266
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12267
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12268
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12269
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12270
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12271
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12272
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12273
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12274
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12275
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12276
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12277
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12278
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12279
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12280
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12281
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12282
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12283
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12284
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12285
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12286
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12287
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12288
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12289
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12290
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12292
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12293
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12294
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12295
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12296
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12297
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12298
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12299
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12300
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12301
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12302
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12303
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12304
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12305
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12306
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12307
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12308
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12309
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12310
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12311
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12312
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12313
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12314
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12315
 
12316
LTCC='$LTCC'
12317
LTCFLAGS='$LTCFLAGS'
12318
compiler='$compiler_DEFAULT'
12319
 
12320
# Quote evaled strings.
12321
for var in SED \
12322
GREP \
12323
EGREP \
12324
FGREP \
12325
LD \
12326
NM \
12327
LN_S \
12328
lt_SP2NL \
12329
lt_NL2SP \
12330
reload_flag \
12331
deplibs_check_method \
12332
file_magic_cmd \
12333
AR \
12334
AR_FLAGS \
12335
STRIP \
12336
RANLIB \
12337
CC \
12338
CFLAGS \
12339
compiler \
12340
lt_cv_sys_global_symbol_pipe \
12341
lt_cv_sys_global_symbol_to_cdecl \
12342
lt_cv_sys_global_symbol_to_c_name_address \
12343
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12344
SHELL \
12345
ECHO \
12346
lt_prog_compiler_no_builtin_flag \
12347
lt_prog_compiler_wl \
12348
lt_prog_compiler_pic \
12349
lt_prog_compiler_static \
12350
lt_cv_prog_compiler_c_o \
12351
need_locks \
12352
DSYMUTIL \
12353
NMEDIT \
12354
LIPO \
12355
OTOOL \
12356
OTOOL64 \
12357
shrext_cmds \
12358
export_dynamic_flag_spec \
12359
whole_archive_flag_spec \
12360
compiler_needs_object \
12361
with_gnu_ld \
12362
allow_undefined_flag \
12363
no_undefined_flag \
12364
hardcode_libdir_flag_spec \
12365
hardcode_libdir_flag_spec_ld \
12366
hardcode_libdir_separator \
12367
fix_srcfile_path \
12368
exclude_expsyms \
12369
include_expsyms \
12370
file_list_spec \
12371
variables_saved_for_relink \
12372
libname_spec \
12373
library_names_spec \
12374
soname_spec \
12375
finish_eval \
12376
old_striplib \
12377
striplib; do
12378
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12379
    *[\\\\\\\`\\"\\\$]*)
12380
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12381
      ;;
12382
    *)
12383
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12384
      ;;
12385
    esac
12386
done
12387
 
12388
# Double-quote double-evaled strings.
12389
for var in reload_cmds \
12390
old_postinstall_cmds \
12391
old_postuninstall_cmds \
12392
old_archive_cmds \
12393
extract_expsyms_cmds \
12394
old_archive_from_new_cmds \
12395
old_archive_from_expsyms_cmds \
12396
archive_cmds \
12397
archive_expsym_cmds \
12398
module_cmds \
12399
module_expsym_cmds \
12400
export_symbols_cmds \
12401
prelink_cmds \
12402
postinstall_cmds \
12403
postuninstall_cmds \
12404
finish_cmds \
12405
sys_lib_search_path_spec \
12406
sys_lib_dlsearch_path_spec; do
12407
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12408
    *[\\\\\\\`\\"\\\$]*)
12409
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12410
      ;;
12411
    *)
12412
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12413
      ;;
12414
    esac
12415
done
12416
 
12417
# Fix-up fallback echo if it was mangled by the above quoting rules.
12418
case \$lt_ECHO in
12419
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12420
  ;;
12421
esac
12422
 
12423
ac_aux_dir='$ac_aux_dir'
12424
xsi_shell='$xsi_shell'
12425
lt_shell_append='$lt_shell_append'
12426
 
12427
# See if we are running on zsh, and set the options which allow our
12428
# commands through without removal of \ escapes INIT.
12429
if test -n "\${ZSH_VERSION+set}" ; then
12430
   setopt NO_GLOB_SUBST
12431
fi
12432
 
12433
 
12434
    PACKAGE='$PACKAGE'
12435
    VERSION='$VERSION'
12436
    TIMESTAMP='$TIMESTAMP'
12437
    RM='$RM'
12438
    ofile='$ofile'
12439
 
12440
 
12441
 
12442
 
12443
_ACEOF
12444
 
12445
 
12446
 
12447
cat >>$CONFIG_STATUS <<\_ACEOF
12448
for ac_config_target in $ac_config_targets
12449
do
12450
  case "$ac_config_target" in
12451
  # Handling of arguments.
12452
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12453
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12454
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12455
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12456
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12457
   { (exit 1); exit 1; }; };;
12458
  esac
12459
done
12460
 
12461
# If the user did not use the arguments to specify the items to instantiate,
12462
# then the envvar interface is used.  Set only those that are not.
12463
# We use the long form for the default assignment because of an extremely
12464
# bizarre bug on SunOS 4.1.3.
12465
if $ac_need_defaults; then
12466
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12467
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12468
fi
12469
 
12470
# Have a temporary directory for convenience.  Make it in the build tree
12471
# simply because there is no reason to put it here, and in addition,
12472
# creating and moving files from /tmp can sometimes cause problems.
12473
# Create a temporary directory, and hook for its removal unless debugging.
12474
$debug ||
12475
{
12476
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12477
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12478
}
12479
 
12480
# Create a (secure) tmp directory for tmp files.
12481
 
12482
{
12483
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12484
  test -n "$tmp" && test -d "$tmp"
12485
}  ||
12486
{
12487
  tmp=./confstat$$-$RANDOM
12488
  (umask 077 && mkdir $tmp)
12489
} ||
12490
{
12491
   echo "$me: cannot create a temporary directory in ." >&2
12492
   { (exit 1); exit 1; }
12493
}
12494
 
12495
_ACEOF
12496
 
12497
cat >>$CONFIG_STATUS <<_ACEOF
12498
 
12499
#
12500
# CONFIG_FILES section.
12501
#
12502
 
12503
# No need to generate the scripts if there are no CONFIG_FILES.
12504
# This happens for instance when ./config.status config.h
12505
if test -n "\$CONFIG_FILES"; then
12506
  # Protect against being on the right side of a sed subst in config.status.
12507
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12508
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12509
s,@SHELL@,$SHELL,;t t
12510
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12511
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12512
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12513
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12514
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12515
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12516
s,@exec_prefix@,$exec_prefix,;t t
12517
s,@prefix@,$prefix,;t t
12518
s,@program_transform_name@,$program_transform_name,;t t
12519
s,@bindir@,$bindir,;t t
12520
s,@sbindir@,$sbindir,;t t
12521
s,@libexecdir@,$libexecdir,;t t
12522
s,@datadir@,$datadir,;t t
12523
s,@sysconfdir@,$sysconfdir,;t t
12524
s,@sharedstatedir@,$sharedstatedir,;t t
12525
s,@localstatedir@,$localstatedir,;t t
12526
s,@libdir@,$libdir,;t t
12527
s,@includedir@,$includedir,;t t
12528
s,@oldincludedir@,$oldincludedir,;t t
12529
s,@infodir@,$infodir,;t t
12530
s,@mandir@,$mandir,;t t
12531
s,@build_alias@,$build_alias,;t t
12532
s,@host_alias@,$host_alias,;t t
12533
s,@target_alias@,$target_alias,;t t
12534
s,@DEFS@,$DEFS,;t t
12535
s,@ECHO_C@,$ECHO_C,;t t
12536
s,@ECHO_N@,$ECHO_N,;t t
12537
s,@ECHO_T@,$ECHO_T,;t t
12538
s,@LIBS@,$LIBS,;t t
12539
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12540
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12541
s,@newlib_basedir@,$newlib_basedir,;t t
12542
s,@build@,$build,;t t
12543
s,@build_cpu@,$build_cpu,;t t
12544
s,@build_vendor@,$build_vendor,;t t
12545
s,@build_os@,$build_os,;t t
12546
s,@host@,$host,;t t
12547
s,@host_cpu@,$host_cpu,;t t
12548
s,@host_vendor@,$host_vendor,;t t
12549
s,@host_os@,$host_os,;t t
12550
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12551
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12552
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12553
s,@CYGPATH_W@,$CYGPATH_W,;t t
12554
s,@PACKAGE@,$PACKAGE,;t t
12555
s,@VERSION@,$VERSION,;t t
12556
s,@ACLOCAL@,$ACLOCAL,;t t
12557
s,@AUTOCONF@,$AUTOCONF,;t t
12558
s,@AUTOMAKE@,$AUTOMAKE,;t t
12559
s,@AUTOHEADER@,$AUTOHEADER,;t t
12560
s,@MAKEINFO@,$MAKEINFO,;t t
12561
s,@install_sh@,$install_sh,;t t
12562
s,@STRIP@,$STRIP,;t t
12563
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12564
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12565
s,@mkdir_p@,$mkdir_p,;t t
12566
s,@AWK@,$AWK,;t t
12567
s,@SET_MAKE@,$SET_MAKE,;t t
12568
s,@am__leading_dot@,$am__leading_dot,;t t
12569
s,@AMTAR@,$AMTAR,;t t
12570
s,@am__tar@,$am__tar,;t t
12571
s,@am__untar@,$am__untar,;t t
12572
s,@CC@,$CC,;t t
12573
s,@DEPDIR@,$DEPDIR,;t t
12574
s,@am__include@,$am__include,;t t
12575
s,@am__quote@,$am__quote,;t t
12576
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12577
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12578
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12579
s,@CCDEPMODE@,$CCDEPMODE,;t t
12580
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12581
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12582
s,@AS@,$AS,;t t
12583
s,@ac_ct_AS@,$ac_ct_AS,;t t
12584
s,@AR@,$AR,;t t
12585
s,@ac_ct_AR@,$ac_ct_AR,;t t
12586
s,@RANLIB@,$RANLIB,;t t
12587
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12588
s,@READELF@,$READELF,;t t
12589
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12590
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12591
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12592
s,@MAINT@,$MAINT,;t t
12593
s,@CCAS@,$CCAS,;t t
12594
s,@CCASFLAGS@,$CCASFLAGS,;t t
12595
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12596
s,@LDFLAGS@,$LDFLAGS,;t t
12597
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12598
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12599
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12600
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12601
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12602
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12603
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12604
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12605
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12606
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12607
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12608
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12609
s,@OBJEXT@,$OBJEXT,;t t
12610
s,@oext@,$oext,;t t
12611
s,@aext@,$aext,;t t
12612
s,@lpfx@,$lpfx,;t t
12613
s,@libm_machine_dir@,$libm_machine_dir,;t t
12614
s,@machine_dir@,$machine_dir,;t t
12615
s,@sys_dir@,$sys_dir,;t t
12616
s,@SED@,$SED,;t t
12617
s,@DLLTOOL@,$DLLTOOL,;t t
12618
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12619
s,@OBJDUMP@,$OBJDUMP,;t t
12620
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12621
s,@LIBTOOL@,$LIBTOOL,;t t
12622
s,@CFLAGS@,$CFLAGS,;t t
12623
s,@CPPFLAGS@,$CPPFLAGS,;t t
12624
s,@ac_ct_CC@,$ac_ct_CC,;t t
12625
s,@EXEEXT@,$EXEEXT,;t t
12626
s,@EGREP@,$EGREP,;t t
12627
s,@FGREP@,$FGREP,;t t
12628
s,@GREP@,$GREP,;t t
12629
s,@LD@,$LD,;t t
12630
s,@DUMPBIN@,$DUMPBIN,;t t
12631
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12632
s,@NM@,$NM,;t t
12633
s,@LN_S@,$LN_S,;t t
12634
s,@lt_ECHO@,$lt_ECHO,;t t
12635
s,@DSYMUTIL@,$DSYMUTIL,;t t
12636
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12637
s,@NMEDIT@,$NMEDIT,;t t
12638
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12639
s,@LIPO@,$LIPO,;t t
12640
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12641
s,@OTOOL@,$OTOOL,;t t
12642
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12643
s,@OTOOL64@,$OTOOL64,;t t
12644
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12645
s,@CPP@,$CPP,;t t
12646
s,@subdirs@,$subdirs,;t t
12647
s,@HAVE_MACHINE_DIR_TRUE@,$HAVE_MACHINE_DIR_TRUE,;t t
12648
s,@HAVE_MACHINE_DIR_FALSE@,$HAVE_MACHINE_DIR_FALSE,;t t
12649
s,@LIBOBJS@,$LIBOBJS,;t t
12650
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12651
CEOF
12652
 
12653
_ACEOF
12654
 
12655
  cat >>$CONFIG_STATUS <<\_ACEOF
12656
  # Split the substitutions into bite-sized pieces for seds with
12657
  # small command number limits, like on Digital OSF/1 and HP-UX.
12658
  ac_max_sed_lines=48
12659
  ac_sed_frag=1 # Number of current file.
12660
  ac_beg=1 # First line for current file.
12661
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12662
  ac_more_lines=:
12663
  ac_sed_cmds=
12664
  while $ac_more_lines; do
12665
    if test $ac_beg -gt 1; then
12666
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12667
    else
12668
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12669
    fi
12670
    if test ! -s $tmp/subs.frag; then
12671
      ac_more_lines=false
12672
    else
12673
      # The purpose of the label and of the branching condition is to
12674
      # speed up the sed processing (if there are no `@' at all, there
12675
      # is no need to browse any of the substitutions).
12676
      # These are the two extra sed commands mentioned above.
12677
      (echo ':t
12678
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12679
      if test -z "$ac_sed_cmds"; then
12680
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12681
      else
12682
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12683
      fi
12684
      ac_sed_frag=`expr $ac_sed_frag + 1`
12685
      ac_beg=$ac_end
12686
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12687
    fi
12688
  done
12689
  if test -z "$ac_sed_cmds"; then
12690
    ac_sed_cmds=cat
12691
  fi
12692
fi # test -n "$CONFIG_FILES"
12693
 
12694
_ACEOF
12695
cat >>$CONFIG_STATUS <<\_ACEOF
12696
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12697
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12698
  case $ac_file in
12699
  - | *:- | *:-:* ) # input from stdin
12700
        cat >$tmp/stdin
12701
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12702
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12703
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12704
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12705
  * )   ac_file_in=$ac_file.in ;;
12706
  esac
12707
 
12708
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12709
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12710
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12711
         X"$ac_file" : 'X\(//\)[^/]' \| \
12712
         X"$ac_file" : 'X\(//\)$' \| \
12713
         X"$ac_file" : 'X\(/\)' \| \
12714
         .     : '\(.\)' 2>/dev/null ||
12715
echo X"$ac_file" |
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
  { if $as_mkdir_p; then
12722
    mkdir -p "$ac_dir"
12723
  else
12724
    as_dir="$ac_dir"
12725
    as_dirs=
12726
    while test ! -d "$as_dir"; do
12727
      as_dirs="$as_dir $as_dirs"
12728
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12729
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12730
         X"$as_dir" : 'X\(//\)[^/]' \| \
12731
         X"$as_dir" : 'X\(//\)$' \| \
12732
         X"$as_dir" : 'X\(/\)' \| \
12733
         .     : '\(.\)' 2>/dev/null ||
12734
echo X"$as_dir" |
12735
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12736
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12737
          /^X\(\/\/\)$/{ s//\1/; q; }
12738
          /^X\(\/\).*/{ s//\1/; q; }
12739
          s/.*/./; q'`
12740
    done
12741
    test ! -n "$as_dirs" || mkdir $as_dirs
12742
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12743
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12744
   { (exit 1); exit 1; }; }; }
12745
 
12746
  ac_builddir=.
12747
 
12748
if test "$ac_dir" != .; then
12749
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12750
  # A "../" for each directory in $ac_dir_suffix.
12751
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12752
else
12753
  ac_dir_suffix= ac_top_builddir=
12754
fi
12755
 
12756
case $srcdir in
12757
  .)  # No --srcdir option.  We are building in place.
12758
    ac_srcdir=.
12759
    if test -z "$ac_top_builddir"; then
12760
       ac_top_srcdir=.
12761
    else
12762
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12763
    fi ;;
12764
  [\\/]* | ?:[\\/]* )  # Absolute path.
12765
    ac_srcdir=$srcdir$ac_dir_suffix;
12766
    ac_top_srcdir=$srcdir ;;
12767
  *) # Relative path.
12768
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12769
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12770
esac
12771
 
12772
# Do not use `cd foo && pwd` to compute absolute paths, because
12773
# the directories may not exist.
12774
case `pwd` in
12775
.) ac_abs_builddir="$ac_dir";;
12776
*)
12777
  case "$ac_dir" in
12778
  .) ac_abs_builddir=`pwd`;;
12779
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12780
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12781
  esac;;
12782
esac
12783
case $ac_abs_builddir in
12784
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12785
*)
12786
  case ${ac_top_builddir}. in
12787
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12788
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12789
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12790
  esac;;
12791
esac
12792
case $ac_abs_builddir in
12793
.) ac_abs_srcdir=$ac_srcdir;;
12794
*)
12795
  case $ac_srcdir in
12796
  .) ac_abs_srcdir=$ac_abs_builddir;;
12797
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12798
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12799
  esac;;
12800
esac
12801
case $ac_abs_builddir in
12802
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12803
*)
12804
  case $ac_top_srcdir in
12805
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12806
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12807
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12808
  esac;;
12809
esac
12810
 
12811
 
12812
  case $INSTALL in
12813
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12814
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12815
  esac
12816
 
12817
  if test x"$ac_file" != x-; then
12818
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12819
echo "$as_me: creating $ac_file" >&6;}
12820
    rm -f "$ac_file"
12821
  fi
12822
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12823
  # use $as_me), people would be surprised to read:
12824
  #    /* config.h.  Generated by config.status.  */
12825
  if test x"$ac_file" = x-; then
12826
    configure_input=
12827
  else
12828
    configure_input="$ac_file.  "
12829
  fi
12830
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12831
                                     sed 's,.*/,,'` by configure."
12832
 
12833
  # First look for the input files in the build tree, otherwise in the
12834
  # src tree.
12835
  ac_file_inputs=`IFS=:
12836
    for f in $ac_file_in; do
12837
      case $f in
12838
      -) echo $tmp/stdin ;;
12839
      [\\/$]*)
12840
         # Absolute (can't be DOS-style, as IFS=:)
12841
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12842
echo "$as_me: error: cannot find input file: $f" >&2;}
12843
   { (exit 1); exit 1; }; }
12844
         echo "$f";;
12845
      *) # Relative
12846
         if test -f "$f"; then
12847
           # Build tree
12848
           echo "$f"
12849
         elif test -f "$srcdir/$f"; then
12850
           # Source tree
12851
           echo "$srcdir/$f"
12852
         else
12853
           # /dev/null tree
12854
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12855
echo "$as_me: error: cannot find input file: $f" >&2;}
12856
   { (exit 1); exit 1; }; }
12857
         fi;;
12858
      esac
12859
    done` || { (exit 1); exit 1; }
12860
_ACEOF
12861
cat >>$CONFIG_STATUS <<_ACEOF
12862
  sed "$ac_vpsub
12863
$extrasub
12864
_ACEOF
12865
cat >>$CONFIG_STATUS <<\_ACEOF
12866
:t
12867
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12868
s,@configure_input@,$configure_input,;t t
12869
s,@srcdir@,$ac_srcdir,;t t
12870
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12871
s,@top_srcdir@,$ac_top_srcdir,;t t
12872
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12873
s,@builddir@,$ac_builddir,;t t
12874
s,@abs_builddir@,$ac_abs_builddir,;t t
12875
s,@top_builddir@,$ac_top_builddir,;t t
12876
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12877
s,@INSTALL@,$ac_INSTALL,;t t
12878
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12879
  rm -f $tmp/stdin
12880
  if test x"$ac_file" != x-; then
12881
    mv $tmp/out $ac_file
12882
  else
12883
    cat $tmp/out
12884
    rm -f $tmp/out
12885
  fi
12886
 
12887
done
12888
_ACEOF
12889
cat >>$CONFIG_STATUS <<\_ACEOF
12890
 
12891
#
12892
# CONFIG_COMMANDS section.
12893
#
12894
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12895
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12896
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12897
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12898
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12899
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12900
         X"$ac_dest" : 'X\(//\)$' \| \
12901
         X"$ac_dest" : 'X\(/\)' \| \
12902
         .     : '\(.\)' 2>/dev/null ||
12903
echo X"$ac_dest" |
12904
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12905
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12906
          /^X\(\/\/\)$/{ s//\1/; q; }
12907
          /^X\(\/\).*/{ s//\1/; q; }
12908
          s/.*/./; q'`
12909
  { if $as_mkdir_p; then
12910
    mkdir -p "$ac_dir"
12911
  else
12912
    as_dir="$ac_dir"
12913
    as_dirs=
12914
    while test ! -d "$as_dir"; do
12915
      as_dirs="$as_dir $as_dirs"
12916
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12917
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12918
         X"$as_dir" : 'X\(//\)[^/]' \| \
12919
         X"$as_dir" : 'X\(//\)$' \| \
12920
         X"$as_dir" : 'X\(/\)' \| \
12921
         .     : '\(.\)' 2>/dev/null ||
12922
echo X"$as_dir" |
12923
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12924
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12925
          /^X\(\/\/\)$/{ s//\1/; q; }
12926
          /^X\(\/\).*/{ s//\1/; q; }
12927
          s/.*/./; q'`
12928
    done
12929
    test ! -n "$as_dirs" || mkdir $as_dirs
12930
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12931
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12932
   { (exit 1); exit 1; }; }; }
12933
 
12934
  ac_builddir=.
12935
 
12936
if test "$ac_dir" != .; then
12937
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12938
  # A "../" for each directory in $ac_dir_suffix.
12939
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12940
else
12941
  ac_dir_suffix= ac_top_builddir=
12942
fi
12943
 
12944
case $srcdir in
12945
  .)  # No --srcdir option.  We are building in place.
12946
    ac_srcdir=.
12947
    if test -z "$ac_top_builddir"; then
12948
       ac_top_srcdir=.
12949
    else
12950
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12951
    fi ;;
12952
  [\\/]* | ?:[\\/]* )  # Absolute path.
12953
    ac_srcdir=$srcdir$ac_dir_suffix;
12954
    ac_top_srcdir=$srcdir ;;
12955
  *) # Relative path.
12956
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12957
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12958
esac
12959
 
12960
# Do not use `cd foo && pwd` to compute absolute paths, because
12961
# the directories may not exist.
12962
case `pwd` in
12963
.) ac_abs_builddir="$ac_dir";;
12964
*)
12965
  case "$ac_dir" in
12966
  .) ac_abs_builddir=`pwd`;;
12967
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12968
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12969
  esac;;
12970
esac
12971
case $ac_abs_builddir in
12972
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12973
*)
12974
  case ${ac_top_builddir}. in
12975
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12976
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12977
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12978
  esac;;
12979
esac
12980
case $ac_abs_builddir in
12981
.) ac_abs_srcdir=$ac_srcdir;;
12982
*)
12983
  case $ac_srcdir in
12984
  .) ac_abs_srcdir=$ac_abs_builddir;;
12985
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12986
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12987
  esac;;
12988
esac
12989
case $ac_abs_builddir in
12990
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12991
*)
12992
  case $ac_top_srcdir in
12993
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12994
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12995
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12996
  esac;;
12997
esac
12998
 
12999
 
13000
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13001
echo "$as_me: executing $ac_dest commands" >&6;}
13002
  case $ac_dest in
13003
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13004
  # Strip MF so we end up with the name of the file.
13005
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13006
  # Check whether this is an Automake generated Makefile or not.
13007
  # We used to match only the files named `Makefile.in', but
13008
  # some people rename them; so instead we look at the file content.
13009
  # Grep'ing the first line is not enough: some people post-process
13010
  # each Makefile.in and add a new line on top of each file to say so.
13011
  # So let's grep whole file.
13012
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13013
    dirpart=`(dirname "$mf") 2>/dev/null ||
13014
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13015
         X"$mf" : 'X\(//\)[^/]' \| \
13016
         X"$mf" : 'X\(//\)$' \| \
13017
         X"$mf" : 'X\(/\)' \| \
13018
         .     : '\(.\)' 2>/dev/null ||
13019
echo X"$mf" |
13020
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13021
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13022
          /^X\(\/\/\)$/{ s//\1/; q; }
13023
          /^X\(\/\).*/{ s//\1/; q; }
13024
          s/.*/./; q'`
13025
  else
13026
    continue
13027
  fi
13028
  # Extract the definition of DEPDIR, am__include, and am__quote
13029
  # from the Makefile without running `make'.
13030
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13031
  test -z "$DEPDIR" && continue
13032
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13033
  test -z "am__include" && continue
13034
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13035
  # When using ansi2knr, U may be empty or an underscore; expand it
13036
  U=`sed -n 's/^U = //p' < "$mf"`
13037
  # Find all dependency output files, they are included files with
13038
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13039
  # simplest approach to changing $(DEPDIR) to its actual value in the
13040
  # expansion.
13041
  for file in `sed -n "
13042
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13043
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13044
    # Make sure the directory exists.
13045
    test -f "$dirpart/$file" && continue
13046
    fdir=`(dirname "$file") 2>/dev/null ||
13047
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13048
         X"$file" : 'X\(//\)[^/]' \| \
13049
         X"$file" : 'X\(//\)$' \| \
13050
         X"$file" : 'X\(/\)' \| \
13051
         .     : '\(.\)' 2>/dev/null ||
13052
echo X"$file" |
13053
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13054
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13055
          /^X\(\/\/\)$/{ s//\1/; q; }
13056
          /^X\(\/\).*/{ s//\1/; q; }
13057
          s/.*/./; q'`
13058
    { if $as_mkdir_p; then
13059
    mkdir -p $dirpart/$fdir
13060
  else
13061
    as_dir=$dirpart/$fdir
13062
    as_dirs=
13063
    while test ! -d "$as_dir"; do
13064
      as_dirs="$as_dir $as_dirs"
13065
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13066
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13067
         X"$as_dir" : 'X\(//\)[^/]' \| \
13068
         X"$as_dir" : 'X\(//\)$' \| \
13069
         X"$as_dir" : 'X\(/\)' \| \
13070
         .     : '\(.\)' 2>/dev/null ||
13071
echo X"$as_dir" |
13072
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13073
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13074
          /^X\(\/\/\)$/{ s//\1/; q; }
13075
          /^X\(\/\).*/{ s//\1/; q; }
13076
          s/.*/./; q'`
13077
    done
13078
    test ! -n "$as_dirs" || mkdir $as_dirs
13079
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13080
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13081
   { (exit 1); exit 1; }; }; }
13082
 
13083
    # echo "creating $dirpart/$file"
13084
    echo '# dummy' > "$dirpart/$file"
13085
  done
13086
done
13087
 ;;
13088
    libtool )
13089
 
13090
    # See if we are running on zsh, and set the options which allow our
13091
    # commands through without removal of \ escapes.
13092
    if test -n "${ZSH_VERSION+set}" ; then
13093
      setopt NO_GLOB_SUBST
13094
    fi
13095
 
13096
    cfgfile="${ofile}T"
13097
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13098
    $RM "$cfgfile"
13099
 
13100
    cat <<_LT_EOF >> "$cfgfile"
13101
#! $SHELL
13102
 
13103
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13104
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13105
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13106
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13107
#
13108
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13109
#                 2006, 2007, 2008 Free Software Foundation, Inc.
13110
#   Written by Gordon Matzigkeit, 1996
13111
#
13112
#   This file is part of GNU Libtool.
13113
#
13114
# GNU Libtool is free software; you can redistribute it and/or
13115
# modify it under the terms of the GNU General Public License as
13116
# published by the Free Software Foundation; either version 2 of
13117
# the License, or (at your option) any later version.
13118
#
13119
# As a special exception to the GNU General Public License,
13120
# if you distribute this file as part of a program or library that
13121
# is built using GNU Libtool, you may include this file under the
13122
# same distribution terms that you use for the rest of that program.
13123
#
13124
# GNU Libtool is distributed in the hope that it will be useful,
13125
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13126
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13127
# GNU General Public License for more details.
13128
#
13129
# You should have received a copy of the GNU General Public License
13130
# along with GNU Libtool; see the file COPYING.  If not, a copy
13131
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13132
# obtained by writing to the Free Software Foundation, Inc.,
13133
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13134
 
13135
 
13136
# The names of the tagged configurations supported by this script.
13137
available_tags=""
13138
 
13139
# ### BEGIN LIBTOOL CONFIG
13140
 
13141
# A sed program that does not truncate output.
13142
SED=$lt_SED
13143
 
13144
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13145
Xsed="\$SED -e 1s/^X//"
13146
 
13147
# Assembler program.
13148
AS=$AS
13149
 
13150
# DLL creation program.
13151
DLLTOOL=$DLLTOOL
13152
 
13153
# Object dumper program.
13154
OBJDUMP=$OBJDUMP
13155
 
13156
# Which release of libtool.m4 was used?
13157
macro_version=$macro_version
13158
macro_revision=$macro_revision
13159
 
13160
# Whether or not to build shared libraries.
13161
build_libtool_libs=$enable_shared
13162
 
13163
# Whether or not to build static libraries.
13164
build_old_libs=$enable_static
13165
 
13166
# What type of objects to build.
13167
pic_mode=$pic_mode
13168
 
13169
# Whether or not to optimize for fast installation.
13170
fast_install=$enable_fast_install
13171
 
13172
# The host system.
13173
host_alias=$host_alias
13174
host=$host
13175
host_os=$host_os
13176
 
13177
# The build system.
13178
build_alias=$build_alias
13179
build=$build
13180
build_os=$build_os
13181
 
13182
# A grep program that handles long lines.
13183
GREP=$lt_GREP
13184
 
13185
# An ERE matcher.
13186
EGREP=$lt_EGREP
13187
 
13188
# A literal string matcher.
13189
FGREP=$lt_FGREP
13190
 
13191
# A BSD- or MS-compatible name lister.
13192
NM=$lt_NM
13193
 
13194
# Whether we need soft or hard links.
13195
LN_S=$lt_LN_S
13196
 
13197
# What is the maximum length of a command?
13198
max_cmd_len=$max_cmd_len
13199
 
13200
# Object file suffix (normally "o").
13201
objext=$ac_objext
13202
 
13203
# Executable file suffix (normally "").
13204
exeext=$exeext
13205
 
13206
# whether the shell understands "unset".
13207
lt_unset=$lt_unset
13208
 
13209
# turn spaces into newlines.
13210
SP2NL=$lt_lt_SP2NL
13211
 
13212
# turn newlines into spaces.
13213
NL2SP=$lt_lt_NL2SP
13214
 
13215
# How to create reloadable object files.
13216
reload_flag=$lt_reload_flag
13217
reload_cmds=$lt_reload_cmds
13218
 
13219
# Method to check whether dependent libraries are shared objects.
13220
deplibs_check_method=$lt_deplibs_check_method
13221
 
13222
# Command to use when deplibs_check_method == "file_magic".
13223
file_magic_cmd=$lt_file_magic_cmd
13224
 
13225
# The archiver.
13226
AR=$lt_AR
13227
AR_FLAGS=$lt_AR_FLAGS
13228
 
13229
# A symbol stripping program.
13230
STRIP=$lt_STRIP
13231
 
13232
# Commands used to install an old-style archive.
13233
RANLIB=$lt_RANLIB
13234
old_postinstall_cmds=$lt_old_postinstall_cmds
13235
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13236
 
13237
# A C compiler.
13238
LTCC=$lt_CC
13239
 
13240
# LTCC compiler flags.
13241
LTCFLAGS=$lt_CFLAGS
13242
 
13243
# Take the output of nm and produce a listing of raw symbols and C names.
13244
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13245
 
13246
# Transform the output of nm in a proper C declaration.
13247
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13248
 
13249
# Transform the output of nm in a C name address pair.
13250
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13251
 
13252
# Transform the output of nm in a C name address pair when lib prefix is needed.
13253
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13254
 
13255
# The name of the directory that contains temporary libtool files.
13256
objdir=$objdir
13257
 
13258
# Shell to use when invoking shell scripts.
13259
SHELL=$lt_SHELL
13260
 
13261
# An echo program that does not interpret backslashes.
13262
ECHO=$lt_ECHO
13263
 
13264
# Used to examine libraries when file_magic_cmd begins with "file".
13265
MAGIC_CMD=$MAGIC_CMD
13266
 
13267
# Must we lock files when doing compilation?
13268
need_locks=$lt_need_locks
13269
 
13270
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13271
DSYMUTIL=$lt_DSYMUTIL
13272
 
13273
# Tool to change global to local symbols on Mac OS X.
13274
NMEDIT=$lt_NMEDIT
13275
 
13276
# Tool to manipulate fat objects and archives on Mac OS X.
13277
LIPO=$lt_LIPO
13278
 
13279
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13280
OTOOL=$lt_OTOOL
13281
 
13282
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13283
OTOOL64=$lt_OTOOL64
13284
 
13285
# Old archive suffix (normally "a").
13286
libext=$libext
13287
 
13288
# Shared library suffix (normally ".so").
13289
shrext_cmds=$lt_shrext_cmds
13290
 
13291
# The commands to extract the exported symbol list from a shared archive.
13292
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13293
 
13294
# Variables whose values should be saved in libtool wrapper scripts and
13295
# restored at link time.
13296
variables_saved_for_relink=$lt_variables_saved_for_relink
13297
 
13298
# Do we need the "lib" prefix for modules?
13299
need_lib_prefix=$need_lib_prefix
13300
 
13301
# Do we need a version for libraries?
13302
need_version=$need_version
13303
 
13304
# Library versioning type.
13305
version_type=$version_type
13306
 
13307
# Shared library runtime path variable.
13308
runpath_var=$runpath_var
13309
 
13310
# Shared library path variable.
13311
shlibpath_var=$shlibpath_var
13312
 
13313
# Is shlibpath searched before the hard-coded library search path?
13314
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13315
 
13316
# Format of library name prefix.
13317
libname_spec=$lt_libname_spec
13318
 
13319
# List of archive names.  First name is the real one, the rest are links.
13320
# The last name is the one that the linker finds with -lNAME
13321
library_names_spec=$lt_library_names_spec
13322
 
13323
# The coded name of the library, if different from the real name.
13324
soname_spec=$lt_soname_spec
13325
 
13326
# Command to use after installation of a shared archive.
13327
postinstall_cmds=$lt_postinstall_cmds
13328
 
13329
# Command to use after uninstallation of a shared archive.
13330
postuninstall_cmds=$lt_postuninstall_cmds
13331
 
13332
# Commands used to finish a libtool library installation in a directory.
13333
finish_cmds=$lt_finish_cmds
13334
 
13335
# As "finish_cmds", except a single script fragment to be evaled but
13336
# not shown.
13337
finish_eval=$lt_finish_eval
13338
 
13339
# Whether we should hardcode library paths into libraries.
13340
hardcode_into_libs=$hardcode_into_libs
13341
 
13342
# Compile-time system search path for libraries.
13343
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13344
 
13345
# Run-time system search path for libraries.
13346
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13347
 
13348
# Whether dlopen is supported.
13349
dlopen_support=$enable_dlopen
13350
 
13351
# Whether dlopen of programs is supported.
13352
dlopen_self=$enable_dlopen_self
13353
 
13354
# Whether dlopen of statically linked programs is supported.
13355
dlopen_self_static=$enable_dlopen_self_static
13356
 
13357
# Commands to strip libraries.
13358
old_striplib=$lt_old_striplib
13359
striplib=$lt_striplib
13360
 
13361
 
13362
# The linker used to build libraries.
13363
LD=$lt_LD
13364
 
13365
# Commands used to build an old-style archive.
13366
old_archive_cmds=$lt_old_archive_cmds
13367
 
13368
# A language specific compiler.
13369
CC=$lt_compiler
13370
 
13371
# Is the compiler the GNU compiler?
13372
with_gcc=$GCC
13373
 
13374
# Compiler flag to turn off builtin functions.
13375
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13376
 
13377
# How to pass a linker flag through the compiler.
13378
wl=$lt_lt_prog_compiler_wl
13379
 
13380
# Additional compiler flags for building library objects.
13381
pic_flag=$lt_lt_prog_compiler_pic
13382
 
13383
# Compiler flag to prevent dynamic linking.
13384
link_static_flag=$lt_lt_prog_compiler_static
13385
 
13386
# Does compiler simultaneously support -c and -o options?
13387
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13388
 
13389
# Whether or not to add -lc for building shared libraries.
13390
build_libtool_need_lc=$archive_cmds_need_lc
13391
 
13392
# Whether or not to disallow shared libs when runtime libs are static.
13393
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13394
 
13395
# Compiler flag to allow reflexive dlopens.
13396
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13397
 
13398
# Compiler flag to generate shared objects directly from archives.
13399
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13400
 
13401
# Whether the compiler copes with passing no objects directly.
13402
compiler_needs_object=$lt_compiler_needs_object
13403
 
13404
# Create an old-style archive from a shared archive.
13405
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13406
 
13407
# Create a temporary old-style archive to link instead of a shared archive.
13408
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13409
 
13410
# Commands used to build a shared archive.
13411
archive_cmds=$lt_archive_cmds
13412
archive_expsym_cmds=$lt_archive_expsym_cmds
13413
 
13414
# Commands used to build a loadable module if different from building
13415
# a shared archive.
13416
module_cmds=$lt_module_cmds
13417
module_expsym_cmds=$lt_module_expsym_cmds
13418
 
13419
# Whether we are building with GNU ld or not.
13420
with_gnu_ld=$lt_with_gnu_ld
13421
 
13422
# Flag that allows shared libraries with undefined symbols to be built.
13423
allow_undefined_flag=$lt_allow_undefined_flag
13424
 
13425
# Flag that enforces no undefined symbols.
13426
no_undefined_flag=$lt_no_undefined_flag
13427
 
13428
# Flag to hardcode \$libdir into a binary during linking.
13429
# This must work even if \$libdir does not exist
13430
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13431
 
13432
# If ld is used when linking, flag to hardcode \$libdir into a binary
13433
# during linking.  This must work even if \$libdir does not exist.
13434
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13435
 
13436
# Whether we need a single "-rpath" flag with a separated argument.
13437
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13438
 
13439
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13440
# DIR into the resulting binary.
13441
hardcode_direct=$hardcode_direct
13442
 
13443
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13444
# DIR into the resulting binary and the resulting library dependency is
13445
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13446
# library is relocated.
13447
hardcode_direct_absolute=$hardcode_direct_absolute
13448
 
13449
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13450
# into the resulting binary.
13451
hardcode_minus_L=$hardcode_minus_L
13452
 
13453
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13454
# into the resulting binary.
13455
hardcode_shlibpath_var=$hardcode_shlibpath_var
13456
 
13457
# Set to "yes" if building a shared library automatically hardcodes DIR
13458
# into the library and all subsequent libraries and executables linked
13459
# against it.
13460
hardcode_automatic=$hardcode_automatic
13461
 
13462
# Set to yes if linker adds runtime paths of dependent libraries
13463
# to runtime path list.
13464
inherit_rpath=$inherit_rpath
13465
 
13466
# Whether libtool must link a program against all its dependency libraries.
13467
link_all_deplibs=$link_all_deplibs
13468
 
13469
# Fix the shell variable \$srcfile for the compiler.
13470
fix_srcfile_path=$lt_fix_srcfile_path
13471
 
13472
# Set to "yes" if exported symbols are required.
13473
always_export_symbols=$always_export_symbols
13474
 
13475
# The commands to list exported symbols.
13476
export_symbols_cmds=$lt_export_symbols_cmds
13477
 
13478
# Symbols that should not be listed in the preloaded symbols.
13479
exclude_expsyms=$lt_exclude_expsyms
13480
 
13481
# Symbols that must always be exported.
13482
include_expsyms=$lt_include_expsyms
13483
 
13484
# Commands necessary for linking programs (against libraries) with templates.
13485
prelink_cmds=$lt_prelink_cmds
13486
 
13487
# Specify filename containing input files.
13488
file_list_spec=$lt_file_list_spec
13489
 
13490
# How to hardcode a shared library path into an executable.
13491
hardcode_action=$hardcode_action
13492
 
13493
# ### END LIBTOOL CONFIG
13494
 
13495
_LT_EOF
13496
 
13497
  case $host_os in
13498
  aix3*)
13499
    cat <<\_LT_EOF >> "$cfgfile"
13500
# AIX sometimes has problems with the GCC collect2 program.  For some
13501
# reason, if we set the COLLECT_NAMES environment variable, the problems
13502
# vanish in a puff of smoke.
13503
if test "X${COLLECT_NAMES+set}" != Xset; then
13504
  COLLECT_NAMES=
13505
  export COLLECT_NAMES
13506
fi
13507
_LT_EOF
13508
    ;;
13509
  esac
13510
 
13511
 
13512
ltmain="$ac_aux_dir/ltmain.sh"
13513
 
13514
 
13515
  # We use sed instead of cat because bash on DJGPP gets confused if
13516
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13517
  # text mode, it properly converts lines to CR/LF.  This bash problem
13518
  # is reportedly fixed, but why not run on old versions too?
13519
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13520
    || (rm -f "$cfgfile"; exit 1)
13521
 
13522
  case $xsi_shell in
13523
  yes)
13524
    cat << \_LT_EOF >> "$cfgfile"
13525
 
13526
# func_dirname file append nondir_replacement
13527
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13528
# otherwise set result to NONDIR_REPLACEMENT.
13529
func_dirname ()
13530
{
13531
  case ${1} in
13532
    */*) func_dirname_result="${1%/*}${2}" ;;
13533
    *  ) func_dirname_result="${3}" ;;
13534
  esac
13535
}
13536
 
13537
# func_basename file
13538
func_basename ()
13539
{
13540
  func_basename_result="${1##*/}"
13541
}
13542
 
13543
# func_dirname_and_basename file append nondir_replacement
13544
# perform func_basename and func_dirname in a single function
13545
# call:
13546
#   dirname:  Compute the dirname of FILE.  If nonempty,
13547
#             add APPEND to the result, otherwise set result
13548
#             to NONDIR_REPLACEMENT.
13549
#             value returned in "$func_dirname_result"
13550
#   basename: Compute filename of FILE.
13551
#             value retuned in "$func_basename_result"
13552
# Implementation must be kept synchronized with func_dirname
13553
# and func_basename. For efficiency, we do not delegate to
13554
# those functions but instead duplicate the functionality here.
13555
func_dirname_and_basename ()
13556
{
13557
  case ${1} in
13558
    */*) func_dirname_result="${1%/*}${2}" ;;
13559
    *  ) func_dirname_result="${3}" ;;
13560
  esac
13561
  func_basename_result="${1##*/}"
13562
}
13563
 
13564
# func_stripname prefix suffix name
13565
# strip PREFIX and SUFFIX off of NAME.
13566
# PREFIX and SUFFIX must not contain globbing or regex special
13567
# characters, hashes, percent signs, but SUFFIX may contain a leading
13568
# dot (in which case that matches only a dot).
13569
func_stripname ()
13570
{
13571
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13572
  # positional parameters, so assign one to ordinary parameter first.
13573
  func_stripname_result=${3}
13574
  func_stripname_result=${func_stripname_result#"${1}"}
13575
  func_stripname_result=${func_stripname_result%"${2}"}
13576
}
13577
 
13578
# func_opt_split
13579
func_opt_split ()
13580
{
13581
  func_opt_split_opt=${1%%=*}
13582
  func_opt_split_arg=${1#*=}
13583
}
13584
 
13585
# func_lo2o object
13586
func_lo2o ()
13587
{
13588
  case ${1} in
13589
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13590
    *)    func_lo2o_result=${1} ;;
13591
  esac
13592
}
13593
 
13594
# func_xform libobj-or-source
13595
func_xform ()
13596
{
13597
  func_xform_result=${1%.*}.lo
13598
}
13599
 
13600
# func_arith arithmetic-term...
13601
func_arith ()
13602
{
13603
  func_arith_result=$(( $* ))
13604
}
13605
 
13606
# func_len string
13607
# STRING may not start with a hyphen.
13608
func_len ()
13609
{
13610
  func_len_result=${#1}
13611
}
13612
 
13613
_LT_EOF
13614
    ;;
13615
  *) # Bourne compatible functions.
13616
    cat << \_LT_EOF >> "$cfgfile"
13617
 
13618
# func_dirname file append nondir_replacement
13619
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13620
# otherwise set result to NONDIR_REPLACEMENT.
13621
func_dirname ()
13622
{
13623
  # Extract subdirectory from the argument.
13624
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13625
  if test "X$func_dirname_result" = "X${1}"; then
13626
    func_dirname_result="${3}"
13627
  else
13628
    func_dirname_result="$func_dirname_result${2}"
13629
  fi
13630
}
13631
 
13632
# func_basename file
13633
func_basename ()
13634
{
13635
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13636
}
13637
 
13638
 
13639
# func_stripname prefix suffix name
13640
# strip PREFIX and SUFFIX off of NAME.
13641
# PREFIX and SUFFIX must not contain globbing or regex special
13642
# characters, hashes, percent signs, but SUFFIX may contain a leading
13643
# dot (in which case that matches only a dot).
13644
# func_strip_suffix prefix name
13645
func_stripname ()
13646
{
13647
  case ${2} in
13648
    .*) func_stripname_result=`$ECHO "X${3}" \
13649
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13650
    *)  func_stripname_result=`$ECHO "X${3}" \
13651
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13652
  esac
13653
}
13654
 
13655
# sed scripts:
13656
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13657
my_sed_long_arg='1s/^-[^=]*=//'
13658
 
13659
# func_opt_split
13660
func_opt_split ()
13661
{
13662
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13663
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13664
}
13665
 
13666
# func_lo2o object
13667
func_lo2o ()
13668
{
13669
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13670
}
13671
 
13672
# func_xform libobj-or-source
13673
func_xform ()
13674
{
13675
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13676
}
13677
 
13678
# func_arith arithmetic-term...
13679
func_arith ()
13680
{
13681
  func_arith_result=`expr "$@"`
13682
}
13683
 
13684
# func_len string
13685
# STRING may not start with a hyphen.
13686
func_len ()
13687
{
13688
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13689
}
13690
 
13691
_LT_EOF
13692
esac
13693
 
13694
case $lt_shell_append in
13695
  yes)
13696
    cat << \_LT_EOF >> "$cfgfile"
13697
 
13698
# func_append var value
13699
# Append VALUE to the end of shell variable VAR.
13700
func_append ()
13701
{
13702
  eval "$1+=\$2"
13703
}
13704
_LT_EOF
13705
    ;;
13706
  *)
13707
    cat << \_LT_EOF >> "$cfgfile"
13708
 
13709
# func_append var value
13710
# Append VALUE to the end of shell variable VAR.
13711
func_append ()
13712
{
13713
  eval "$1=\$$1\$2"
13714
}
13715
 
13716
_LT_EOF
13717
    ;;
13718
  esac
13719
 
13720
 
13721
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13722
    || (rm -f "$cfgfile"; exit 1)
13723
 
13724
  mv -f "$cfgfile" "$ofile" ||
13725
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13726
  chmod +x "$ofile"
13727
 
13728
 ;;
13729
  esac
13730
done
13731
_ACEOF
13732
 
13733
cat >>$CONFIG_STATUS <<\_ACEOF
13734
 
13735
{ (exit 0); exit 0; }
13736
_ACEOF
13737
chmod +x $CONFIG_STATUS
13738
ac_clean_files=$ac_clean_files_save
13739
 
13740
 
13741
# configure is writing to config.log, and then calls config.status.
13742
# config.status does its own redirection, appending to config.log.
13743
# Unfortunately, on DOS this fails, as config.log is still kept open
13744
# by configure, so config.status won't be able to write to it; its
13745
# output is simply discarded.  So we exec the FD to /dev/null,
13746
# effectively closing config.log, so it can be properly (re)opened and
13747
# appended to by config.status.  When coming back to configure, we
13748
# need to make the FD available again.
13749
if test "$no_create" != yes; then
13750
  ac_cs_success=:
13751
  ac_config_status_args=
13752
  test "$silent" = yes &&
13753
    ac_config_status_args="$ac_config_status_args --quiet"
13754
  exec 5>/dev/null
13755
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13756
  exec 5>>config.log
13757
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13758
  # would make configure fail if this is the last instruction.
13759
  $ac_cs_success || { (exit 1); exit 1; }
13760
fi
13761
 
13762
#
13763
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13764
#
13765
if test "$no_recursion" != yes; then
13766
 
13767
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13768
  ac_sub_configure_args=
13769
  ac_prev=
13770
  eval "set x $ac_configure_args"
13771
  shift
13772
  for ac_arg
13773
  do
13774
    if test -n "$ac_prev"; then
13775
      ac_prev=
13776
      continue
13777
    fi
13778
    case $ac_arg in
13779
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13780
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13781
      ac_prev=cache_file ;;
13782
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13783
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13784
    | --c=*)
13785
      ;;
13786
    --config-cache | -C)
13787
      ;;
13788
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13789
      ac_prev=srcdir ;;
13790
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13791
      ;;
13792
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13793
      ac_prev=prefix ;;
13794
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13795
      ;;
13796
    *)
13797
      case $ac_arg in
13798
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13799
      esac
13800
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13801
    esac
13802
  done
13803
 
13804
  # Always prepend --prefix to ensure using the same prefix
13805
  # in subdir configurations.
13806
  ac_arg="--prefix=$prefix"
13807
  case $ac_arg in
13808
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13809
  esac
13810
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13811
 
13812
  ac_popdir=`pwd`
13813
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13814
 
13815
    # Do not complain, so a configure script can configure whichever
13816
    # parts of a large source tree are present.
13817
    test -d "$srcdir/$ac_dir" || continue
13818
 
13819
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13820
echo "$as_me: configuring in $ac_dir" >&6;}
13821
    { if $as_mkdir_p; then
13822
    mkdir -p "$ac_dir"
13823
  else
13824
    as_dir="$ac_dir"
13825
    as_dirs=
13826
    while test ! -d "$as_dir"; do
13827
      as_dirs="$as_dir $as_dirs"
13828
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13829
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13830
         X"$as_dir" : 'X\(//\)[^/]' \| \
13831
         X"$as_dir" : 'X\(//\)$' \| \
13832
         X"$as_dir" : 'X\(/\)' \| \
13833
         .     : '\(.\)' 2>/dev/null ||
13834
echo X"$as_dir" |
13835
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13836
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13837
          /^X\(\/\/\)$/{ s//\1/; q; }
13838
          /^X\(\/\).*/{ s//\1/; q; }
13839
          s/.*/./; q'`
13840
    done
13841
    test ! -n "$as_dirs" || mkdir $as_dirs
13842
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13843
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13844
   { (exit 1); exit 1; }; }; }
13845
 
13846
    ac_builddir=.
13847
 
13848
if test "$ac_dir" != .; then
13849
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13850
  # A "../" for each directory in $ac_dir_suffix.
13851
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13852
else
13853
  ac_dir_suffix= ac_top_builddir=
13854
fi
13855
 
13856
case $srcdir in
13857
  .)  # No --srcdir option.  We are building in place.
13858
    ac_srcdir=.
13859
    if test -z "$ac_top_builddir"; then
13860
       ac_top_srcdir=.
13861
    else
13862
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13863
    fi ;;
13864
  [\\/]* | ?:[\\/]* )  # Absolute path.
13865
    ac_srcdir=$srcdir$ac_dir_suffix;
13866
    ac_top_srcdir=$srcdir ;;
13867
  *) # Relative path.
13868
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13869
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13870
esac
13871
 
13872
# Do not use `cd foo && pwd` to compute absolute paths, because
13873
# the directories may not exist.
13874
case `pwd` in
13875
.) ac_abs_builddir="$ac_dir";;
13876
*)
13877
  case "$ac_dir" in
13878
  .) ac_abs_builddir=`pwd`;;
13879
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13880
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13881
  esac;;
13882
esac
13883
case $ac_abs_builddir in
13884
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13885
*)
13886
  case ${ac_top_builddir}. in
13887
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13888
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13889
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13890
  esac;;
13891
esac
13892
case $ac_abs_builddir in
13893
.) ac_abs_srcdir=$ac_srcdir;;
13894
*)
13895
  case $ac_srcdir in
13896
  .) ac_abs_srcdir=$ac_abs_builddir;;
13897
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13898
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13899
  esac;;
13900
esac
13901
case $ac_abs_builddir in
13902
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13903
*)
13904
  case $ac_top_srcdir in
13905
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13906
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13907
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13908
  esac;;
13909
esac
13910
 
13911
 
13912
    cd "$ac_dir"
13913
 
13914
    # Check for guested configure; otherwise get Cygnus style configure.
13915
    if test -f "$ac_srcdir/configure.gnu"; then
13916
      ac_sub_configure=$ac_srcdir/configure.gnu
13917
    elif test -f "$ac_srcdir/configure"; then
13918
      ac_sub_configure=$ac_srcdir/configure
13919
    elif test -f "$ac_srcdir/configure.in"; then
13920
      # This should be Cygnus configure.
13921
      ac_sub_configure=$ac_aux_dir/configure
13922
    else
13923
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13924
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13925
      ac_sub_configure=
13926
    fi
13927
 
13928
    # The recursion is here.
13929
    if test -n "$ac_sub_configure"; then
13930
      # Make the cache file name correct relative to the subdirectory.
13931
      case $cache_file in
13932
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13933
      *) # Relative path.
13934
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13935
      esac
13936
 
13937
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13938
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13939
      # The eval makes quoting arguments work.
13940
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13941
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13942
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13943
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13944
   { (exit 1); exit 1; }; }
13945
    fi
13946
 
13947
    cd "$ac_popdir"
13948
  done
13949
fi
13950
 

powered by: WebSVN 2.1.0

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