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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [configure] - Blame information for rev 422

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="libc"
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 libc"
462
ac_subdirs_all="$ac_subdirs_all libm"
463
ac_subdirs_all="$ac_subdirs_all doc"
464
ac_subdirs_all="$ac_subdirs_all iconvdata"
465
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 NEWLIB_HW_FP_TRUE NEWLIB_HW_FP_FALSE CC_FOR_NEWLIB subdirs HAVE_DOC_TRUE HAVE_DOC_FALSE EXTRA_DIRS CRT0 CRT0_DIR CRT1 CRT1_DIR LIBM_MACHINE_OBJECTLIST MACHINE_OBJECTLIST SYS_OBJECTLIST SYS_MACH_OBJECTLIST POSIX_OBJECTLIST SIGNAL_OBJECTLIST SYSCALL_OBJECTLIST UNIX_OBJECTLIST STDIO64_OBJECTLIST CC_FOR_BUILD libc_cv_initfinit_array libc_cv_array_aliasing LIBOBJS LTLIBOBJS'
466
ac_subst_files=''
467
 
468
# Initialize some variables set by options.
469
ac_init_help=
470
ac_init_version=false
471
# The variables have the same names as the options, with
472
# dashes changed to underlines.
473
cache_file=/dev/null
474
exec_prefix=NONE
475
no_create=
476
no_recursion=
477
prefix=NONE
478
program_prefix=NONE
479
program_suffix=NONE
480
program_transform_name=s,x,x,
481
silent=
482
site=
483
srcdir=
484
verbose=
485
x_includes=NONE
486
x_libraries=NONE
487
 
488
# Installation directory options.
489
# These are left unexpanded so users can "make install exec_prefix=/foo"
490
# and all the variables that are supposed to be based on exec_prefix
491
# by default will actually change.
492
# Use braces instead of parens because sh, perl, etc. also accept them.
493
bindir='${exec_prefix}/bin'
494
sbindir='${exec_prefix}/sbin'
495
libexecdir='${exec_prefix}/libexec'
496
datadir='${prefix}/share'
497
sysconfdir='${prefix}/etc'
498
sharedstatedir='${prefix}/com'
499
localstatedir='${prefix}/var'
500
libdir='${exec_prefix}/lib'
501
includedir='${prefix}/include'
502
oldincludedir='/usr/include'
503
infodir='${prefix}/info'
504
mandir='${prefix}/man'
505
 
506
ac_prev=
507
for ac_option
508
do
509
  # If the previous option needs an argument, assign it.
510
  if test -n "$ac_prev"; then
511
    eval "$ac_prev=\$ac_option"
512
    ac_prev=
513
    continue
514
  fi
515
 
516
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
 
518
  # Accept the important Cygnus configure options, so we can diagnose typos.
519
 
520
  case $ac_option in
521
 
522
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
523
    ac_prev=bindir ;;
524
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525
    bindir=$ac_optarg ;;
526
 
527
  -build | --build | --buil | --bui | --bu)
528
    ac_prev=build_alias ;;
529
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530
    build_alias=$ac_optarg ;;
531
 
532
  -cache-file | --cache-file | --cache-fil | --cache-fi \
533
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534
    ac_prev=cache_file ;;
535
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537
    cache_file=$ac_optarg ;;
538
 
539
  --config-cache | -C)
540
    cache_file=config.cache ;;
541
 
542
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543
    ac_prev=datadir ;;
544
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545
  | --da=*)
546
    datadir=$ac_optarg ;;
547
 
548
  -disable-* | --disable-*)
549
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550
    # Reject names that are not valid shell variable names.
551
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553
   { (exit 1); exit 1; }; }
554
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555
    eval "enable_$ac_feature=no" ;;
556
 
557
  -enable-* | --enable-*)
558
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559
    # Reject names that are not valid shell variable names.
560
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562
   { (exit 1); exit 1; }; }
563
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564
    case $ac_option in
565
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566
      *) ac_optarg=yes ;;
567
    esac
568
    eval "enable_$ac_feature='$ac_optarg'" ;;
569
 
570
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572
  | --exec | --exe | --ex)
573
    ac_prev=exec_prefix ;;
574
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576
  | --exec=* | --exe=* | --ex=*)
577
    exec_prefix=$ac_optarg ;;
578
 
579
  -gas | --gas | --ga | --g)
580
    # Obsolete; use --with-gas.
581
    with_gas=yes ;;
582
 
583
  -help | --help | --hel | --he | -h)
584
    ac_init_help=long ;;
585
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586
    ac_init_help=recursive ;;
587
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588
    ac_init_help=short ;;
589
 
590
  -host | --host | --hos | --ho)
591
    ac_prev=host_alias ;;
592
  -host=* | --host=* | --hos=* | --ho=*)
593
    host_alias=$ac_optarg ;;
594
 
595
  -includedir | --includedir | --includedi | --included | --include \
596
  | --includ | --inclu | --incl | --inc)
597
    ac_prev=includedir ;;
598
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599
  | --includ=* | --inclu=* | --incl=* | --inc=*)
600
    includedir=$ac_optarg ;;
601
 
602
  -infodir | --infodir | --infodi | --infod | --info | --inf)
603
    ac_prev=infodir ;;
604
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605
    infodir=$ac_optarg ;;
606
 
607
  -libdir | --libdir | --libdi | --libd)
608
    ac_prev=libdir ;;
609
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
610
    libdir=$ac_optarg ;;
611
 
612
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613
  | --libexe | --libex | --libe)
614
    ac_prev=libexecdir ;;
615
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616
  | --libexe=* | --libex=* | --libe=*)
617
    libexecdir=$ac_optarg ;;
618
 
619
  -localstatedir | --localstatedir | --localstatedi | --localstated \
620
  | --localstate | --localstat | --localsta | --localst \
621
  | --locals | --local | --loca | --loc | --lo)
622
    ac_prev=localstatedir ;;
623
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626
    localstatedir=$ac_optarg ;;
627
 
628
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629
    ac_prev=mandir ;;
630
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631
    mandir=$ac_optarg ;;
632
 
633
  -nfp | --nfp | --nf)
634
    # Obsolete; use --without-fp.
635
    with_fp=no ;;
636
 
637
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638
  | --no-cr | --no-c | -n)
639
    no_create=yes ;;
640
 
641
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643
    no_recursion=yes ;;
644
 
645
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647
  | --oldin | --oldi | --old | --ol | --o)
648
    ac_prev=oldincludedir ;;
649
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652
    oldincludedir=$ac_optarg ;;
653
 
654
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655
    ac_prev=prefix ;;
656
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657
    prefix=$ac_optarg ;;
658
 
659
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
660
  | --program-pre | --program-pr | --program-p)
661
    ac_prev=program_prefix ;;
662
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
663
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664
    program_prefix=$ac_optarg ;;
665
 
666
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
667
  | --program-suf | --program-su | --program-s)
668
    ac_prev=program_suffix ;;
669
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
670
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671
    program_suffix=$ac_optarg ;;
672
 
673
  -program-transform-name | --program-transform-name \
674
  | --program-transform-nam | --program-transform-na \
675
  | --program-transform-n | --program-transform- \
676
  | --program-transform | --program-transfor \
677
  | --program-transfo | --program-transf \
678
  | --program-trans | --program-tran \
679
  | --progr-tra | --program-tr | --program-t)
680
    ac_prev=program_transform_name ;;
681
  -program-transform-name=* | --program-transform-name=* \
682
  | --program-transform-nam=* | --program-transform-na=* \
683
  | --program-transform-n=* | --program-transform-=* \
684
  | --program-transform=* | --program-transfor=* \
685
  | --program-transfo=* | --program-transf=* \
686
  | --program-trans=* | --program-tran=* \
687
  | --progr-tra=* | --program-tr=* | --program-t=*)
688
    program_transform_name=$ac_optarg ;;
689
 
690
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691
  | -silent | --silent | --silen | --sile | --sil)
692
    silent=yes ;;
693
 
694
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695
    ac_prev=sbindir ;;
696
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697
  | --sbi=* | --sb=*)
698
    sbindir=$ac_optarg ;;
699
 
700
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
701
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702
  | --sharedst | --shareds | --shared | --share | --shar \
703
  | --sha | --sh)
704
    ac_prev=sharedstatedir ;;
705
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708
  | --sha=* | --sh=*)
709
    sharedstatedir=$ac_optarg ;;
710
 
711
  -site | --site | --sit)
712
    ac_prev=site ;;
713
  -site=* | --site=* | --sit=*)
714
    site=$ac_optarg ;;
715
 
716
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717
    ac_prev=srcdir ;;
718
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719
    srcdir=$ac_optarg ;;
720
 
721
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722
  | --syscon | --sysco | --sysc | --sys | --sy)
723
    ac_prev=sysconfdir ;;
724
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726
    sysconfdir=$ac_optarg ;;
727
 
728
  -target | --target | --targe | --targ | --tar | --ta | --t)
729
    ac_prev=target_alias ;;
730
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731
    target_alias=$ac_optarg ;;
732
 
733
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
734
    verbose=yes ;;
735
 
736
  -version | --version | --versio | --versi | --vers | -V)
737
    ac_init_version=: ;;
738
 
739
  -with-* | --with-*)
740
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741
    # Reject names that are not valid shell variable names.
742
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743
      { echo "$as_me: error: invalid package name: $ac_package" >&2
744
   { (exit 1); exit 1; }; }
745
    ac_package=`echo $ac_package| sed 's/-/_/g'`
746
    case $ac_option in
747
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748
      *) ac_optarg=yes ;;
749
    esac
750
    eval "with_$ac_package='$ac_optarg'" ;;
751
 
752
  -without-* | --without-*)
753
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754
    # Reject names that are not valid shell variable names.
755
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756
      { echo "$as_me: error: invalid package name: $ac_package" >&2
757
   { (exit 1); exit 1; }; }
758
    ac_package=`echo $ac_package | sed 's/-/_/g'`
759
    eval "with_$ac_package=no" ;;
760
 
761
  --x)
762
    # Obsolete; use --with-x.
763
    with_x=yes ;;
764
 
765
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766
  | --x-incl | --x-inc | --x-in | --x-i)
767
    ac_prev=x_includes ;;
768
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770
    x_includes=$ac_optarg ;;
771
 
772
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
773
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774
    ac_prev=x_libraries ;;
775
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777
    x_libraries=$ac_optarg ;;
778
 
779
  -*) { echo "$as_me: error: unrecognized option: $ac_option
780
Try \`$0 --help' for more information." >&2
781
   { (exit 1); exit 1; }; }
782
    ;;
783
 
784
  *=*)
785
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786
    # Reject names that are not valid shell variable names.
787
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789
   { (exit 1); exit 1; }; }
790
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791
    eval "$ac_envvar='$ac_optarg'"
792
    export $ac_envvar ;;
793
 
794
  *)
795
    # FIXME: should be removed in autoconf 3.0.
796
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800
    ;;
801
 
802
  esac
803
done
804
 
805
if test -n "$ac_prev"; then
806
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807
  { echo "$as_me: error: missing argument to $ac_option" >&2
808
   { (exit 1); exit 1; }; }
809
fi
810
 
811
# Be sure to have absolute paths.
812
for ac_var in exec_prefix prefix
813
do
814
  eval ac_val=$`echo $ac_var`
815
  case $ac_val in
816
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818
   { (exit 1); exit 1; }; };;
819
  esac
820
done
821
 
822
# Be sure to have absolute paths.
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824
              localstatedir libdir includedir oldincludedir infodir mandir
825
do
826
  eval ac_val=$`echo $ac_var`
827
  case $ac_val in
828
    [\\/$]* | ?:[\\/]* ) ;;
829
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830
   { (exit 1); exit 1; }; };;
831
  esac
832
done
833
 
834
# There might be people who depend on the old broken behavior: `$host'
835
# used to hold the argument of --host etc.
836
# FIXME: To remove some day.
837
build=$build_alias
838
host=$host_alias
839
target=$target_alias
840
 
841
# FIXME: To remove some day.
842
if test "x$host_alias" != x; then
843
  if test "x$build_alias" = x; then
844
    cross_compiling=maybe
845
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846
    If a cross compiler is detected then cross compile mode will be used." >&2
847
  elif test "x$build_alias" != "x$host_alias"; then
848
    cross_compiling=yes
849
  fi
850
fi
851
 
852
ac_tool_prefix=
853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
 
855
test "$silent" = yes && exec 6>/dev/null
856
 
857
 
858
# Find the source files, if location was not specified.
859
if test -z "$srcdir"; then
860
  ac_srcdir_defaulted=yes
861
  # Try the directory containing this script, then its parent.
862
  ac_confdir=`(dirname "$0") 2>/dev/null ||
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864
         X"$0" : 'X\(//\)[^/]' \| \
865
         X"$0" : 'X\(//\)$' \| \
866
         X"$0" : 'X\(/\)' \| \
867
         .     : '\(.\)' 2>/dev/null ||
868
echo X"$0" |
869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871
          /^X\(\/\/\)$/{ s//\1/; q; }
872
          /^X\(\/\).*/{ s//\1/; q; }
873
          s/.*/./; q'`
874
  srcdir=$ac_confdir
875
  if test ! -r $srcdir/$ac_unique_file; then
876
    srcdir=..
877
  fi
878
else
879
  ac_srcdir_defaulted=no
880
fi
881
if test ! -r $srcdir/$ac_unique_file; then
882
  if test "$ac_srcdir_defaulted" = yes; then
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884
   { (exit 1); exit 1; }; }
885
  else
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887
   { (exit 1); exit 1; }; }
888
  fi
889
fi
890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892
   { (exit 1); exit 1; }; }
893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894
ac_env_build_alias_set=${build_alias+set}
895
ac_env_build_alias_value=$build_alias
896
ac_cv_env_build_alias_set=${build_alias+set}
897
ac_cv_env_build_alias_value=$build_alias
898
ac_env_host_alias_set=${host_alias+set}
899
ac_env_host_alias_value=$host_alias
900
ac_cv_env_host_alias_set=${host_alias+set}
901
ac_cv_env_host_alias_value=$host_alias
902
ac_env_target_alias_set=${target_alias+set}
903
ac_env_target_alias_value=$target_alias
904
ac_cv_env_target_alias_set=${target_alias+set}
905
ac_cv_env_target_alias_value=$target_alias
906
ac_env_CCAS_set=${CCAS+set}
907
ac_env_CCAS_value=$CCAS
908
ac_cv_env_CCAS_set=${CCAS+set}
909
ac_cv_env_CCAS_value=$CCAS
910
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
911
ac_env_CCASFLAGS_value=$CCASFLAGS
912
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
913
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
914
ac_env_CC_set=${CC+set}
915
ac_env_CC_value=$CC
916
ac_cv_env_CC_set=${CC+set}
917
ac_cv_env_CC_value=$CC
918
ac_env_CFLAGS_set=${CFLAGS+set}
919
ac_env_CFLAGS_value=$CFLAGS
920
ac_cv_env_CFLAGS_set=${CFLAGS+set}
921
ac_cv_env_CFLAGS_value=$CFLAGS
922
ac_env_LDFLAGS_set=${LDFLAGS+set}
923
ac_env_LDFLAGS_value=$LDFLAGS
924
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925
ac_cv_env_LDFLAGS_value=$LDFLAGS
926
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927
ac_env_CPPFLAGS_value=$CPPFLAGS
928
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930
ac_env_CPP_set=${CPP+set}
931
ac_env_CPP_value=$CPP
932
ac_cv_env_CPP_set=${CPP+set}
933
ac_cv_env_CPP_value=$CPP
934
 
935
#
936
# Report the --help message.
937
#
938
if test "$ac_init_help" = "long"; then
939
  # Omit some internal or obsolete options to make the list less imposing.
940
  # This message is too long to be a string in the A/UX 3.1 sh.
941
  cat <<_ACEOF
942
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
943
 
944
Usage: $0 [OPTION]... [VAR=VALUE]...
945
 
946
To assign environment variables (e.g., CC, CFLAGS...), specify them as
947
VAR=VALUE.  See below for descriptions of some of the useful variables.
948
 
949
Defaults for the options are specified in brackets.
950
 
951
Configuration:
952
  -h, --help              display this help and exit
953
      --help=short        display options specific to this package
954
      --help=recursive    display the short help of all the included packages
955
  -V, --version           display version information and exit
956
  -q, --quiet, --silent   do not print \`checking...' messages
957
      --cache-file=FILE   cache test results in FILE [disabled]
958
  -C, --config-cache      alias for \`--cache-file=config.cache'
959
  -n, --no-create         do not create output files
960
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
961
 
962
_ACEOF
963
 
964
  cat <<_ACEOF
965
Installation directories:
966
  --prefix=PREFIX         install architecture-independent files in PREFIX
967
                          [$ac_default_prefix]
968
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969
                          [PREFIX]
970
 
971
By default, \`make install' will install all the files in
972
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
973
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
974
for instance \`--prefix=\$HOME'.
975
 
976
For better control, use the options below.
977
 
978
Fine tuning of the installation directories:
979
  --bindir=DIR           user executables [EPREFIX/bin]
980
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
981
  --libexecdir=DIR       program executables [EPREFIX/libexec]
982
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
983
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
984
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
985
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
986
  --libdir=DIR           object code libraries [EPREFIX/lib]
987
  --includedir=DIR       C header files [PREFIX/include]
988
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
989
  --infodir=DIR          info documentation [PREFIX/info]
990
  --mandir=DIR           man documentation [PREFIX/man]
991
_ACEOF
992
 
993
  cat <<\_ACEOF
994
 
995
Program names:
996
  --program-prefix=PREFIX            prepend PREFIX to installed program names
997
  --program-suffix=SUFFIX            append SUFFIX to installed program names
998
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
 
1000
System types:
1001
  --build=BUILD     configure for building on BUILD [guessed]
1002
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003
_ACEOF
1004
fi
1005
 
1006
if test -n "$ac_init_help"; then
1007
  case $ac_init_help in
1008
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1009
   esac
1010
  cat <<\_ACEOF
1011
 
1012
Optional Features:
1013
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1014
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1015
  --enable-newlib-io-pos-args enable printf-family positional arg support
1016
  --enable-newlib-io-c99-formats   enable C99 support in IO functions like printf/scanf
1017
  --enable-newlib-io-long-long   enable long long type support in IO functions like printf/scanf
1018
  --enable-newlib-io-long-double   enable long double type support in IO functions printf/scanf
1019
  --enable-newlib-mb        enable multibyte support
1020
  --enable-newlib-iconv-encodings   enable specific comma-separated list of bidirectional iconv encodings to be built-in
1021
  --enable-newlib-iconv-from-encodings   enable specific comma-separated list of \"from\" iconv encodings to be built-in
1022
  --enable-newlib-iconv-to-encodings   enable specific comma-separated list of \"to\" iconv encodings to be built-in
1023
  --enable-newlib-iconv-external-ccs     enable capabilities to load external CCS files for iconv
1024
  --disable-newlib-atexit-alloc    disable dynamic allocation of atexit entries
1025
  --enable-newlib-reent-small   enable small reentrant struct support
1026
  --enable-multilib         build many library versions (default)
1027
  --enable-target-optspace  optimize for space
1028
  --enable-malloc-debugging indicate malloc debugging requested
1029
  --enable-newlib-multithread        enable support for multiple threads
1030
  --enable-newlib-iconv     enable iconv library support
1031
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1032
  --disable-newlib-io-float disable printf/scanf family float support
1033
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1034
  --disable-dependency-tracking  speeds up one-time build
1035
  --enable-dependency-tracking   do not reject slow dependency extractors
1036
  --enable-maintainer-mode  enable make rules and dependencies not useful
1037
                          (and sometimes confusing) to the casual installer
1038
  --enable-shared[=PKGS]
1039
                          build shared libraries [default=yes]
1040
  --enable-static[=PKGS]
1041
                          build static libraries [default=yes]
1042
  --enable-fast-install[=PKGS]
1043
                          optimize for fast installation [default=yes]
1044
  --disable-libtool-lock  avoid locking (might break parallel builds)
1045
  --enable-newlib-hw-fp    Turn on hardware floating point math
1046
 
1047
Optional Packages:
1048
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050
  --with-pic              try to use only PIC/non-PIC objects [default=use
1051
                          both]
1052
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1053
 
1054
Some influential environment variables:
1055
  CCAS        assembler compiler command (defaults to CC)
1056
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1057
  CC          C compiler command
1058
  CFLAGS      C compiler flags
1059
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1060
              nonstandard directory 
1061
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1062
              headers in a nonstandard directory 
1063
  CPP         C preprocessor
1064
 
1065
Use these variables to override the choices made by `configure' or to help
1066
it to find libraries and programs with nonstandard names/locations.
1067
 
1068
_ACEOF
1069
fi
1070
 
1071
if test "$ac_init_help" = "recursive"; then
1072
  # If there are subdirs, report their specific --help.
1073
  ac_popdir=`pwd`
1074
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075
    test -d $ac_dir || continue
1076
    ac_builddir=.
1077
 
1078
if test "$ac_dir" != .; then
1079
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080
  # A "../" for each directory in $ac_dir_suffix.
1081
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082
else
1083
  ac_dir_suffix= ac_top_builddir=
1084
fi
1085
 
1086
case $srcdir in
1087
  .)  # No --srcdir option.  We are building in place.
1088
    ac_srcdir=.
1089
    if test -z "$ac_top_builddir"; then
1090
       ac_top_srcdir=.
1091
    else
1092
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093
    fi ;;
1094
  [\\/]* | ?:[\\/]* )  # Absolute path.
1095
    ac_srcdir=$srcdir$ac_dir_suffix;
1096
    ac_top_srcdir=$srcdir ;;
1097
  *) # Relative path.
1098
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100
esac
1101
 
1102
# Do not use `cd foo && pwd` to compute absolute paths, because
1103
# the directories may not exist.
1104
case `pwd` in
1105
.) ac_abs_builddir="$ac_dir";;
1106
*)
1107
  case "$ac_dir" in
1108
  .) ac_abs_builddir=`pwd`;;
1109
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111
  esac;;
1112
esac
1113
case $ac_abs_builddir in
1114
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115
*)
1116
  case ${ac_top_builddir}. in
1117
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1118
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120
  esac;;
1121
esac
1122
case $ac_abs_builddir in
1123
.) ac_abs_srcdir=$ac_srcdir;;
1124
*)
1125
  case $ac_srcdir in
1126
  .) ac_abs_srcdir=$ac_abs_builddir;;
1127
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129
  esac;;
1130
esac
1131
case $ac_abs_builddir in
1132
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133
*)
1134
  case $ac_top_srcdir in
1135
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138
  esac;;
1139
esac
1140
 
1141
    cd $ac_dir
1142
    # Check for guested configure; otherwise get Cygnus style configure.
1143
    if test -f $ac_srcdir/configure.gnu; then
1144
      echo
1145
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146
    elif test -f $ac_srcdir/configure; then
1147
      echo
1148
      $SHELL $ac_srcdir/configure  --help=recursive
1149
    elif test -f $ac_srcdir/configure.ac ||
1150
           test -f $ac_srcdir/configure.in; then
1151
      echo
1152
      $ac_configure --help
1153
    else
1154
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155
    fi
1156
    cd $ac_popdir
1157
  done
1158
fi
1159
 
1160
test -n "$ac_init_help" && exit 0
1161
if $ac_init_version; then
1162
  cat <<\_ACEOF
1163
newlib configure 1.17.0
1164
generated by GNU Autoconf 2.59
1165
 
1166
Copyright (C) 2003 Free Software Foundation, Inc.
1167
This configure script is free software; the Free Software Foundation
1168
gives unlimited permission to copy, distribute and modify it.
1169
_ACEOF
1170
  exit 0
1171
fi
1172
exec 5>config.log
1173
cat >&5 <<_ACEOF
1174
This file contains any messages produced by compilers while
1175
running configure, to aid debugging if configure makes a mistake.
1176
 
1177
It was created by newlib $as_me 1.17.0, which was
1178
generated by GNU Autoconf 2.59.  Invocation command line was
1179
 
1180
  $ $0 $@
1181
 
1182
_ACEOF
1183
{
1184
cat <<_ASUNAME
1185
## --------- ##
1186
## Platform. ##
1187
## --------- ##
1188
 
1189
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
 
1195
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
 
1198
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
 
1206
_ASUNAME
1207
 
1208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209
for as_dir in $PATH
1210
do
1211
  IFS=$as_save_IFS
1212
  test -z "$as_dir" && as_dir=.
1213
  echo "PATH: $as_dir"
1214
done
1215
 
1216
} >&5
1217
 
1218
cat >&5 <<_ACEOF
1219
 
1220
 
1221
## ----------- ##
1222
## Core tests. ##
1223
## ----------- ##
1224
 
1225
_ACEOF
1226
 
1227
 
1228
# Keep a trace of the command line.
1229
# Strip out --no-create and --no-recursion so they do not pile up.
1230
# Strip out --silent because we don't want to record it for future runs.
1231
# Also quote any args containing shell meta-characters.
1232
# Make two passes to allow for proper duplicate-argument suppression.
1233
ac_configure_args=
1234
ac_configure_args0=
1235
ac_configure_args1=
1236
ac_sep=
1237
ac_must_keep_next=false
1238
for ac_pass in 1 2
1239
do
1240
  for ac_arg
1241
  do
1242
    case $ac_arg in
1243
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245
    | -silent | --silent | --silen | --sile | --sil)
1246
      continue ;;
1247
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249
    esac
1250
    case $ac_pass in
1251
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252
    2)
1253
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254
      if test $ac_must_keep_next = true; then
1255
        ac_must_keep_next=false # Got value, back to normal.
1256
      else
1257
        case $ac_arg in
1258
          *=* | --config-cache | -C | -disable-* | --disable-* \
1259
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261
          | -with-* | --with-* | -without-* | --without-* | --x)
1262
            case "$ac_configure_args0 " in
1263
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264
            esac
1265
            ;;
1266
          -* ) ac_must_keep_next=true ;;
1267
        esac
1268
      fi
1269
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270
      # Get rid of the leading space.
1271
      ac_sep=" "
1272
      ;;
1273
    esac
1274
  done
1275
done
1276
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
 
1279
# When interrupted or exit'd, cleanup temporary files, and complete
1280
# config.log.  We remove comments because anyway the quotes in there
1281
# would cause problems or look ugly.
1282
# WARNING: Be sure not to use single quotes in there, as some shells,
1283
# such as our DU 5.0 friend, will then `close' the trap.
1284
trap 'exit_status=$?
1285
  # Save into config.log some information that might help in debugging.
1286
  {
1287
    echo
1288
 
1289
    cat <<\_ASBOX
1290
## ---------------- ##
1291
## Cache variables. ##
1292
## ---------------- ##
1293
_ASBOX
1294
    echo
1295
    # The following way of writing the cache mishandles newlines in values,
1296
{
1297
  (set) 2>&1 |
1298
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299
    *ac_space=\ *)
1300
      sed -n \
1301
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303
      ;;
1304
    *)
1305
      sed -n \
1306
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307
      ;;
1308
    esac;
1309
}
1310
    echo
1311
 
1312
    cat <<\_ASBOX
1313
## ----------------- ##
1314
## Output variables. ##
1315
## ----------------- ##
1316
_ASBOX
1317
    echo
1318
    for ac_var in $ac_subst_vars
1319
    do
1320
      eval ac_val=$`echo $ac_var`
1321
      echo "$ac_var='"'"'$ac_val'"'"'"
1322
    done | sort
1323
    echo
1324
 
1325
    if test -n "$ac_subst_files"; then
1326
      cat <<\_ASBOX
1327
## ------------- ##
1328
## Output files. ##
1329
## ------------- ##
1330
_ASBOX
1331
      echo
1332
      for ac_var in $ac_subst_files
1333
      do
1334
        eval ac_val=$`echo $ac_var`
1335
        echo "$ac_var='"'"'$ac_val'"'"'"
1336
      done | sort
1337
      echo
1338
    fi
1339
 
1340
    if test -s confdefs.h; then
1341
      cat <<\_ASBOX
1342
## ----------- ##
1343
## confdefs.h. ##
1344
## ----------- ##
1345
_ASBOX
1346
      echo
1347
      sed "/^$/d" confdefs.h | sort
1348
      echo
1349
    fi
1350
    test "$ac_signal" != 0 &&
1351
      echo "$as_me: caught signal $ac_signal"
1352
    echo "$as_me: exit $exit_status"
1353
  } >&5
1354
  rm -f core *.core &&
1355
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356
    exit $exit_status
1357
     ' 0
1358
for ac_signal in 1 2 13 15; do
1359
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360
done
1361
ac_signal=0
1362
 
1363
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364
rm -rf conftest* confdefs.h
1365
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366
echo >confdefs.h
1367
 
1368
# Predefined preprocessor variables.
1369
 
1370
cat >>confdefs.h <<_ACEOF
1371
#define PACKAGE_NAME "$PACKAGE_NAME"
1372
_ACEOF
1373
 
1374
 
1375
cat >>confdefs.h <<_ACEOF
1376
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377
_ACEOF
1378
 
1379
 
1380
cat >>confdefs.h <<_ACEOF
1381
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382
_ACEOF
1383
 
1384
 
1385
cat >>confdefs.h <<_ACEOF
1386
#define PACKAGE_STRING "$PACKAGE_STRING"
1387
_ACEOF
1388
 
1389
 
1390
cat >>confdefs.h <<_ACEOF
1391
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392
_ACEOF
1393
 
1394
 
1395
# Let the site file select an alternate cache file if it wants to.
1396
# Prefer explicitly selected file to automatically selected ones.
1397
if test -z "$CONFIG_SITE"; then
1398
  if test "x$prefix" != xNONE; then
1399
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400
  else
1401
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402
  fi
1403
fi
1404
for ac_site_file in $CONFIG_SITE; do
1405
  if test -r "$ac_site_file"; then
1406
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407
echo "$as_me: loading site script $ac_site_file" >&6;}
1408
    sed 's/^/| /' "$ac_site_file" >&5
1409
    . "$ac_site_file"
1410
  fi
1411
done
1412
 
1413
if test -r "$cache_file"; then
1414
  # Some versions of bash will fail to source /dev/null (special
1415
  # files actually), so we avoid doing that.
1416
  if test -f "$cache_file"; then
1417
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418
echo "$as_me: loading cache $cache_file" >&6;}
1419
    case $cache_file in
1420
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1421
      *)                      . ./$cache_file;;
1422
    esac
1423
  fi
1424
else
1425
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426
echo "$as_me: creating cache $cache_file" >&6;}
1427
  >$cache_file
1428
fi
1429
 
1430
# Check that the precious variables saved in the cache have kept the same
1431
# value.
1432
ac_cache_corrupted=false
1433
for ac_var in `(set) 2>&1 |
1434
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436
  eval ac_new_set=\$ac_env_${ac_var}_set
1437
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438
  eval ac_new_val="\$ac_env_${ac_var}_value"
1439
  case $ac_old_set,$ac_new_set in
1440
    set,)
1441
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443
      ac_cache_corrupted=: ;;
1444
    ,set)
1445
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447
      ac_cache_corrupted=: ;;
1448
    ,);;
1449
    *)
1450
      if test "x$ac_old_val" != "x$ac_new_val"; then
1451
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454
echo "$as_me:   former value:  $ac_old_val" >&2;}
1455
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456
echo "$as_me:   current value: $ac_new_val" >&2;}
1457
        ac_cache_corrupted=:
1458
      fi;;
1459
  esac
1460
  # Pass precious variables to config.status.
1461
  if test "$ac_new_set" = set; then
1462
    case $ac_new_val in
1463
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465
    *) ac_arg=$ac_var=$ac_new_val ;;
1466
    esac
1467
    case " $ac_configure_args " in
1468
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470
    esac
1471
  fi
1472
done
1473
if $ac_cache_corrupted; then
1474
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478
   { (exit 1); exit 1; }; }
1479
fi
1480
 
1481
ac_ext=c
1482
ac_cpp='$CPP $CPPFLAGS'
1483
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
 
1500
 
1501
 
1502
 
1503
 
1504
 
1505
 
1506
 
1507
 
1508
 
1509
 
1510
 
1511
 
1512
 
1513
 
1514
          ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
1515
 
1516
 
1517
ac_aux_dir=
1518
for ac_dir in .. $srcdir/..; do
1519
  if test -f $ac_dir/install-sh; then
1520
    ac_aux_dir=$ac_dir
1521
    ac_install_sh="$ac_aux_dir/install-sh -c"
1522
    break
1523
  elif test -f $ac_dir/install.sh; then
1524
    ac_aux_dir=$ac_dir
1525
    ac_install_sh="$ac_aux_dir/install.sh -c"
1526
    break
1527
  elif test -f $ac_dir/shtool; then
1528
    ac_aux_dir=$ac_dir
1529
    ac_install_sh="$ac_aux_dir/shtool install -c"
1530
    break
1531
  fi
1532
done
1533
if test -z "$ac_aux_dir"; then
1534
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1535
echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1536
   { (exit 1); exit 1; }; }
1537
fi
1538
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
 
1542
 
1543
# Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
1544
if test "${enable_newlib_io_pos_args+set}" = set; then
1545
  enableval="$enable_newlib_io_pos_args"
1546
  case "${enableval}" in
1547
  yes) newlib_io_pos_args=yes ;;
1548
  no)  newlib_io_pos_args=no ;;
1549
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
1550
echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
1551
   { (exit 1); exit 1; }; } ;;
1552
 esac
1553
else
1554
  newlib_io_pos_args=
1555
fi;
1556
# Check whether --enable-newlib-io-c99-formats or --disable-newlib-io-c99-formats was given.
1557
if test "${enable_newlib_io_c99_formats+set}" = set; then
1558
  enableval="$enable_newlib_io_c99_formats"
1559
  case "${enableval}" in
1560
  yes) newlib_io_c99_formats=yes;;
1561
  no)  newlib_io_c99_formats=no ;;
1562
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-c99-formats option" >&5
1563
echo "$as_me: error: bad value ${enableval} for newlib-io-c99-formats option" >&2;}
1564
   { (exit 1); exit 1; }; } ;;
1565
 esac
1566
else
1567
  newlib_io_c99_formats=
1568
fi;
1569
# Check whether --enable-newlib-io-long-long or --disable-newlib-io-long-long was given.
1570
if test "${enable_newlib_io_long_long+set}" = set; then
1571
  enableval="$enable_newlib_io_long_long"
1572
  case "${enableval}" in
1573
  yes) newlib_io_long_long=yes;;
1574
  no)  newlib_io_long_long=no ;;
1575
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-long option" >&5
1576
echo "$as_me: error: bad value ${enableval} for newlib-io-long-long option" >&2;}
1577
   { (exit 1); exit 1; }; } ;;
1578
 esac
1579
else
1580
  newlib_io_long_long=
1581
fi;
1582
# Check whether --enable-newlib-io-long-double or --disable-newlib-io-long-double was given.
1583
if test "${enable_newlib_io_long_double+set}" = set; then
1584
  enableval="$enable_newlib_io_long_double"
1585
  case "${enableval}" in
1586
  yes) newlib_io_long_double=yes;;
1587
  no)  newlib_io_long_double=no ;;
1588
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-long-double option" >&5
1589
echo "$as_me: error: bad value ${enableval} for newlib-io-long-double option" >&2;}
1590
   { (exit 1); exit 1; }; } ;;
1591
 esac
1592
else
1593
  newlib_io_long_double=
1594
fi;
1595
# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
1596
if test "${enable_newlib_mb+set}" = set; then
1597
  enableval="$enable_newlib_mb"
1598
  case "${enableval}" in
1599
  yes) newlib_mb=yes;;
1600
  no)  newlib_mb=no ;;
1601
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-mb option" >&5
1602
echo "$as_me: error: bad value ${enableval} for newlib-mb option" >&2;}
1603
   { (exit 1); exit 1; }; } ;;
1604
 esac
1605
else
1606
  newlib_mb=
1607
fi;
1608
# Check whether --enable-newlib-iconv-encodings or --disable-newlib-iconv-encodings was given.
1609
if test "${enable_newlib_iconv_encodings+set}" = set; then
1610
  enableval="$enable_newlib_iconv_encodings"
1611
  if test x${enableval} = x; then
1612
   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&5
1613
echo "$as_me: error: bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" >&2;}
1614
   { (exit 1); exit 1; }; }
1615
 fi
1616
 iconv_encodings=${enableval}
1617
 
1618
else
1619
  iconv_encodings=
1620
fi;
1621
# Check whether --enable-newlib-iconv-from-encodings or --disable-newlib-iconv-from-encodings was given.
1622
if test "${enable_newlib_iconv_from_encodings+set}" = set; then
1623
  enableval="$enable_newlib_iconv_from_encodings"
1624
  if test x${enableval} = x; then
1625
   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&5
1626
echo "$as_me: error: bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" >&2;}
1627
   { (exit 1); exit 1; }; }
1628
 fi
1629
 iconv_from_encodings=${enableval}
1630
 
1631
else
1632
  iconv_from_encodings=
1633
fi;
1634
# Check whether --enable-newlib-iconv-to-encodings or --disable-newlib-iconv-to-encodings was given.
1635
if test "${enable_newlib_iconv_to_encodings+set}" = set; then
1636
  enableval="$enable_newlib_iconv_to_encodings"
1637
  if test x${enableval} = x; then
1638
   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&5
1639
echo "$as_me: error: bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" >&2;}
1640
   { (exit 1); exit 1; }; }
1641
 fi
1642
 iconv_to_encodings=${enableval}
1643
 
1644
else
1645
  iconv_to_encodings=
1646
fi;
1647
# Check whether --enable-newlib-iconv-external-ccs or --disable-newlib-iconv-external-ccs was given.
1648
if test "${enable_newlib_iconv_external_ccs+set}" = set; then
1649
  enableval="$enable_newlib_iconv_external_ccs"
1650
  if test "${newlib_iconv_external_ccs+set}" != set; then
1651
   case "${enableval}" in
1652
     yes) newlib_iconv_external_ccs=yes ;;
1653
     no)  newlib_iconv_external_ccs=no ;;
1654
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&5
1655
echo "$as_me: error: bad value ${enableval} for newlib-iconv-external-ccs option" >&2;}
1656
   { (exit 1); exit 1; }; } ;;
1657
   esac
1658
 fi
1659
else
1660
  newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
1661
fi;
1662
# Check whether --enable-newlib-atexit-dynamic-alloc or --disable-newlib-atexit-dynamic-alloc was given.
1663
if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then
1664
  enableval="$enable_newlib_atexit_dynamic_alloc"
1665
  if test "${newlib_atexit_dynamic_alloc+set}" != set; then
1666
  case "${enableval}" in
1667
    yes) newlib_atexit_dynamic_alloc=yes ;;
1668
    no)  newlib_atexit_dynamic_alloc=no  ;;
1669
    *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&5
1670
echo "$as_me: error: bad value ${enableval} for newlib-atexit-dynamic-alloc option" >&2;}
1671
   { (exit 1); exit 1; }; } ;;
1672
  esac
1673
 fi
1674
else
1675
  newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
1676
fi;
1677
# Check whether --enable-newlib-reent-small or --disable-newlib-reent-small was given.
1678
if test "${enable_newlib_reent_small+set}" = set; then
1679
  enableval="$enable_newlib_reent_small"
1680
  case "${enableval}" in
1681
  yes) newlib_reent_small=yes;;
1682
  no)  newlib_reent_small=no ;;
1683
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-reent-small option" >&5
1684
echo "$as_me: error: bad value ${enableval} for newlib-reent-small option" >&2;}
1685
   { (exit 1); exit 1; }; } ;;
1686
 esac
1687
else
1688
  newlib_reent_small=
1689
fi;
1690
 
1691
# Make sure we can run config.sub.
1692
$ac_config_sub sun4 >/dev/null 2>&1 ||
1693
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1694
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1695
   { (exit 1); exit 1; }; }
1696
 
1697
echo "$as_me:$LINENO: checking build system type" >&5
1698
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1699
if test "${ac_cv_build+set}" = set; then
1700
  echo $ECHO_N "(cached) $ECHO_C" >&6
1701
else
1702
  ac_cv_build_alias=$build_alias
1703
test -z "$ac_cv_build_alias" &&
1704
  ac_cv_build_alias=`$ac_config_guess`
1705
test -z "$ac_cv_build_alias" &&
1706
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1707
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1708
   { (exit 1); exit 1; }; }
1709
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1710
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1711
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1712
   { (exit 1); exit 1; }; }
1713
 
1714
fi
1715
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1716
echo "${ECHO_T}$ac_cv_build" >&6
1717
build=$ac_cv_build
1718
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1719
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1720
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1721
 
1722
 
1723
am__api_version="1.9"
1724
# Find a good install program.  We prefer a C program (faster),
1725
# so one script is as good as another.  But avoid the broken or
1726
# incompatible versions:
1727
# SysV /etc/install, /usr/sbin/install
1728
# SunOS /usr/etc/install
1729
# IRIX /sbin/install
1730
# AIX /bin/install
1731
# AmigaOS /C/install, which installs bootblocks on floppy discs
1732
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1733
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1734
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1735
# OS/2's system install, which has a completely different semantic
1736
# ./install, which can be erroneously created by make from ./install.sh.
1737
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1738
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1739
if test -z "$INSTALL"; then
1740
if test "${ac_cv_path_install+set}" = set; then
1741
  echo $ECHO_N "(cached) $ECHO_C" >&6
1742
else
1743
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744
for as_dir in $PATH
1745
do
1746
  IFS=$as_save_IFS
1747
  test -z "$as_dir" && as_dir=.
1748
  # Account for people who put trailing slashes in PATH elements.
1749
case $as_dir/ in
1750
  ./ | .// | /cC/* | \
1751
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1752
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1753
  /usr/ucb/* ) ;;
1754
  *)
1755
    # OSF1 and SCO ODT 3.0 have their own names for install.
1756
    # Don't use installbsd from OSF since it installs stuff as root
1757
    # by default.
1758
    for ac_prog in ginstall scoinst install; do
1759
      for ac_exec_ext in '' $ac_executable_extensions; do
1760
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1761
          if test $ac_prog = install &&
1762
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1763
            # AIX install.  It has an incompatible calling convention.
1764
            :
1765
          elif test $ac_prog = install &&
1766
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1767
            # program-specific install script used by HP pwplus--don't use.
1768
            :
1769
          else
1770
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1771
            break 3
1772
          fi
1773
        fi
1774
      done
1775
    done
1776
    ;;
1777
esac
1778
done
1779
 
1780
 
1781
fi
1782
  if test "${ac_cv_path_install+set}" = set; then
1783
    INSTALL=$ac_cv_path_install
1784
  else
1785
    # As a last resort, use the slow shell script.  We don't cache a
1786
    # path for INSTALL within a source directory, because that will
1787
    # break other packages using the cache if that directory is
1788
    # removed, or if the path is relative.
1789
    INSTALL=$ac_install_sh
1790
  fi
1791
fi
1792
echo "$as_me:$LINENO: result: $INSTALL" >&5
1793
echo "${ECHO_T}$INSTALL" >&6
1794
 
1795
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1796
# It thinks the first close brace ends the variable substitution.
1797
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1798
 
1799
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1800
 
1801
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1802
 
1803
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1804
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1805
# Just in case
1806
sleep 1
1807
echo timestamp > conftest.file
1808
# Do `set' in a subshell so we don't clobber the current shell's
1809
# arguments.  Must try -L first in case configure is actually a
1810
# symlink; some systems play weird games with the mod time of symlinks
1811
# (eg FreeBSD returns the mod time of the symlink's containing
1812
# directory).
1813
if (
1814
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1815
   if test "$*" = "X"; then
1816
      # -L didn't work.
1817
      set X `ls -t $srcdir/configure conftest.file`
1818
   fi
1819
   rm -f conftest.file
1820
   if test "$*" != "X $srcdir/configure conftest.file" \
1821
      && test "$*" != "X conftest.file $srcdir/configure"; then
1822
 
1823
      # If neither matched, then we have a broken ls.  This can happen
1824
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1825
      # broken ls alias from the environment.  This has actually
1826
      # happened.  Such a system could not be considered "sane".
1827
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1828
alias in your environment" >&5
1829
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1830
alias in your environment" >&2;}
1831
   { (exit 1); exit 1; }; }
1832
   fi
1833
 
1834
   test "$2" = conftest.file
1835
   )
1836
then
1837
   # Ok.
1838
   :
1839
else
1840
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1841
Check your system clock" >&5
1842
echo "$as_me: error: newly created file is older than distributed files!
1843
Check your system clock" >&2;}
1844
   { (exit 1); exit 1; }; }
1845
fi
1846
echo "$as_me:$LINENO: result: yes" >&5
1847
echo "${ECHO_T}yes" >&6
1848
test "$program_prefix" != NONE &&
1849
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1850
# Use a double $ so make ignores it.
1851
test "$program_suffix" != NONE &&
1852
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1853
# Double any \ or $.  echo might interpret backslashes.
1854
# By default was `s,x,x', remove it if useless.
1855
cat <<\_ACEOF >conftest.sed
1856
s/[\\$]/&&/g;s/;s,x,x,$//
1857
_ACEOF
1858
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1859
rm conftest.sed
1860
 
1861
# expand $ac_aux_dir to an absolute path
1862
am_aux_dir=`cd $ac_aux_dir && pwd`
1863
 
1864
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1865
# Use eval to expand $SHELL
1866
if eval "$MISSING --run true"; then
1867
  am_missing_run="$MISSING --run "
1868
else
1869
  am_missing_run=
1870
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1871
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1872
fi
1873
 
1874
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1875
  # We used to keeping the `.' as first argument, in order to
1876
  # allow $(mkdir_p) to be used without argument.  As in
1877
  #   $(mkdir_p) $(somedir)
1878
  # where $(somedir) is conditionally defined.  However this is wrong
1879
  # for two reasons:
1880
  #  1. if the package is installed by a user who cannot write `.'
1881
  #     make install will fail,
1882
  #  2. the above comment should most certainly read
1883
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1884
  #     so it does not work when $(somedir) is undefined and
1885
  #     $(DESTDIR) is not.
1886
  #  To support the latter case, we have to write
1887
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1888
  #  so the `.' trick is pointless.
1889
  mkdir_p='mkdir -p --'
1890
else
1891
  # On NextStep and OpenStep, the `mkdir' command does not
1892
  # recognize any option.  It will interpret all options as
1893
  # directories to create, and then abort because `.' already
1894
  # exists.
1895
  for d in ./-p ./--version;
1896
  do
1897
    test -d $d && rmdir $d
1898
  done
1899
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1900
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1901
    mkdir_p='$(mkinstalldirs)'
1902
  else
1903
    mkdir_p='$(install_sh) -d'
1904
  fi
1905
fi
1906
 
1907
for ac_prog in gawk mawk nawk awk
1908
do
1909
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1910
set dummy $ac_prog; ac_word=$2
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913
if test "${ac_cv_prog_AWK+set}" = set; then
1914
  echo $ECHO_N "(cached) $ECHO_C" >&6
1915
else
1916
  if test -n "$AWK"; then
1917
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1918
else
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920
for as_dir in $PATH
1921
do
1922
  IFS=$as_save_IFS
1923
  test -z "$as_dir" && as_dir=.
1924
  for ac_exec_ext in '' $ac_executable_extensions; do
1925
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926
    ac_cv_prog_AWK="$ac_prog"
1927
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928
    break 2
1929
  fi
1930
done
1931
done
1932
 
1933
fi
1934
fi
1935
AWK=$ac_cv_prog_AWK
1936
if test -n "$AWK"; then
1937
  echo "$as_me:$LINENO: result: $AWK" >&5
1938
echo "${ECHO_T}$AWK" >&6
1939
else
1940
  echo "$as_me:$LINENO: result: no" >&5
1941
echo "${ECHO_T}no" >&6
1942
fi
1943
 
1944
  test -n "$AWK" && break
1945
done
1946
 
1947
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1948
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1949
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1950
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1951
  echo $ECHO_N "(cached) $ECHO_C" >&6
1952
else
1953
  cat >conftest.make <<\_ACEOF
1954
all:
1955
        @echo 'ac_maketemp="$(MAKE)"'
1956
_ACEOF
1957
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1958
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1959
if test -n "$ac_maketemp"; then
1960
  eval ac_cv_prog_make_${ac_make}_set=yes
1961
else
1962
  eval ac_cv_prog_make_${ac_make}_set=no
1963
fi
1964
rm -f conftest.make
1965
fi
1966
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1967
  echo "$as_me:$LINENO: result: yes" >&5
1968
echo "${ECHO_T}yes" >&6
1969
  SET_MAKE=
1970
else
1971
  echo "$as_me:$LINENO: result: no" >&5
1972
echo "${ECHO_T}no" >&6
1973
  SET_MAKE="MAKE=${MAKE-make}"
1974
fi
1975
 
1976
rm -rf .tst 2>/dev/null
1977
mkdir .tst 2>/dev/null
1978
if test -d .tst; then
1979
  am__leading_dot=.
1980
else
1981
  am__leading_dot=_
1982
fi
1983
rmdir .tst 2>/dev/null
1984
 
1985
DEPDIR="${am__leading_dot}deps"
1986
 
1987
          ac_config_commands="$ac_config_commands depfiles"
1988
 
1989
 
1990
am_make=${MAKE-make}
1991
cat > confinc << 'END'
1992
am__doit:
1993
        @echo done
1994
.PHONY: am__doit
1995
END
1996
# If we don't find an include directive, just comment out the code.
1997
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1998
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1999
am__include="#"
2000
am__quote=
2001
_am_result=none
2002
# First try GNU make style include.
2003
echo "include confinc" > confmf
2004
# We grep out `Entering directory' and `Leaving directory'
2005
# messages which can occur if `w' ends up in MAKEFLAGS.
2006
# In particular we don't look at `^make:' because GNU make might
2007
# be invoked under some other name (usually "gmake"), in which
2008
# case it prints its new name instead of `make'.
2009
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2010
   am__include=include
2011
   am__quote=
2012
   _am_result=GNU
2013
fi
2014
# Now try BSD make style include.
2015
if test "$am__include" = "#"; then
2016
   echo '.include "confinc"' > confmf
2017
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2018
      am__include=.include
2019
      am__quote="\""
2020
      _am_result=BSD
2021
   fi
2022
fi
2023
 
2024
 
2025
echo "$as_me:$LINENO: result: $_am_result" >&5
2026
echo "${ECHO_T}$_am_result" >&6
2027
rm -f confinc confmf
2028
 
2029
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2030
if test "${enable_dependency_tracking+set}" = set; then
2031
  enableval="$enable_dependency_tracking"
2032
 
2033
fi;
2034
if test "x$enable_dependency_tracking" != xno; then
2035
  am_depcomp="$ac_aux_dir/depcomp"
2036
  AMDEPBACKSLASH='\'
2037
fi
2038
 
2039
 
2040
if test "x$enable_dependency_tracking" != xno; then
2041
  AMDEP_TRUE=
2042
  AMDEP_FALSE='#'
2043
else
2044
  AMDEP_TRUE='#'
2045
  AMDEP_FALSE=
2046
fi
2047
 
2048
 
2049
 
2050
 
2051
# Check whether --enable-multilib or --disable-multilib was given.
2052
if test "${enable_multilib+set}" = set; then
2053
  enableval="$enable_multilib"
2054
  case "${enableval}" in
2055
  yes) multilib=yes ;;
2056
  no)  multilib=no ;;
2057
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2058
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2059
   { (exit 1); exit 1; }; } ;;
2060
 esac
2061
else
2062
  multilib=yes
2063
fi;
2064
# Check whether --enable-target-optspace or --disable-target-optspace was given.
2065
if test "${enable_target_optspace+set}" = set; then
2066
  enableval="$enable_target_optspace"
2067
  case "${enableval}" in
2068
  yes) target_optspace=yes ;;
2069
  no)  target_optspace=no ;;
2070
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2071
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2072
   { (exit 1); exit 1; }; } ;;
2073
 esac
2074
else
2075
  target_optspace=
2076
fi;
2077
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
2078
if test "${enable_malloc_debugging+set}" = set; then
2079
  enableval="$enable_malloc_debugging"
2080
  case "${enableval}" in
2081
  yes) malloc_debugging=yes ;;
2082
  no)  malloc_debugging=no ;;
2083
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2084
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2085
   { (exit 1); exit 1; }; } ;;
2086
 esac
2087
else
2088
  malloc_debugging=
2089
fi;
2090
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
2091
if test "${enable_newlib_multithread+set}" = set; then
2092
  enableval="$enable_newlib_multithread"
2093
  case "${enableval}" in
2094
  yes) newlib_multithread=yes ;;
2095
  no)  newlib_multithread=no ;;
2096
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2097
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2098
   { (exit 1); exit 1; }; } ;;
2099
 esac
2100
else
2101
  newlib_multithread=yes
2102
fi;
2103
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
2104
if test "${enable_newlib_iconv+set}" = set; then
2105
  enableval="$enable_newlib_iconv"
2106
  if test "${newlib_iconv+set}" != set; then
2107
   case "${enableval}" in
2108
     yes) newlib_iconv=yes ;;
2109
     no)  newlib_iconv=no ;;
2110
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2111
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2112
   { (exit 1); exit 1; }; } ;;
2113
   esac
2114
 fi
2115
else
2116
  newlib_iconv=${newlib_iconv}
2117
fi;
2118
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
2119
if test "${enable_newlib_elix_level+set}" = set; then
2120
  enableval="$enable_newlib_elix_level"
2121
  case "${enableval}" in
2122
  0)   newlib_elix_level=0 ;;
2123
  1)   newlib_elix_level=1 ;;
2124
  2)   newlib_elix_level=2 ;;
2125
  3)   newlib_elix_level=3 ;;
2126
  4)   newlib_elix_level=4 ;;
2127
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2128
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2129
   { (exit 1); exit 1; }; } ;;
2130
 esac
2131
else
2132
  newlib_elix_level=0
2133
fi;
2134
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
2135
if test "${enable_newlib_io_float+set}" = set; then
2136
  enableval="$enable_newlib_io_float"
2137
  case "${enableval}" in
2138
  yes) newlib_io_float=yes ;;
2139
  no)  newlib_io_float=no ;;
2140
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2141
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2142
   { (exit 1); exit 1; }; } ;;
2143
 esac
2144
else
2145
  newlib_io_float=yes
2146
fi;
2147
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
2148
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2149
  enableval="$enable_newlib_supplied_syscalls"
2150
  case "${enableval}" in
2151
  yes) newlib_may_supply_syscalls=yes ;;
2152
  no)  newlib_may_supply_syscalls=no ;;
2153
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2154
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2155
   { (exit 1); exit 1; }; } ;;
2156
 esac
2157
else
2158
  newlib_may_supply_syscalls=yes
2159
fi;
2160
 
2161
 
2162
if test x${newlib_may_supply_syscalls} = xyes; then
2163
  MAY_SUPPLY_SYSCALLS_TRUE=
2164
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2165
else
2166
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2167
  MAY_SUPPLY_SYSCALLS_FALSE=
2168
fi
2169
 
2170
 
2171
 
2172
test -z "${with_target_subdir}" && with_target_subdir=.
2173
 
2174
if test "${srcdir}" = "."; then
2175
  if test "${with_target_subdir}" != "."; then
2176
    newlib_basedir="${srcdir}/${with_multisrctop}../."
2177
  else
2178
    newlib_basedir="${srcdir}/${with_multisrctop}."
2179
  fi
2180
else
2181
  newlib_basedir="${srcdir}/."
2182
fi
2183
 
2184
 
2185
echo "$as_me:$LINENO: checking host system type" >&5
2186
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2187
if test "${ac_cv_host+set}" = set; then
2188
  echo $ECHO_N "(cached) $ECHO_C" >&6
2189
else
2190
  ac_cv_host_alias=$host_alias
2191
test -z "$ac_cv_host_alias" &&
2192
  ac_cv_host_alias=$ac_cv_build_alias
2193
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2194
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2195
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2196
   { (exit 1); exit 1; }; }
2197
 
2198
fi
2199
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200
echo "${ECHO_T}$ac_cv_host" >&6
2201
host=$ac_cv_host
2202
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2203
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2204
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2205
 
2206
 
2207
 
2208
# test to see if srcdir already configured
2209
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2210
   test -f $srcdir/config.status; then
2211
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2212
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2213
   { (exit 1); exit 1; }; }
2214
fi
2215
 
2216
# test whether we have cygpath
2217
if test -z "$CYGPATH_W"; then
2218
  if (cygpath --version) >/dev/null 2>/dev/null; then
2219
    CYGPATH_W='cygpath -w'
2220
  else
2221
    CYGPATH_W=echo
2222
  fi
2223
fi
2224
 
2225
 
2226
# Define the identity of the package.
2227
 PACKAGE='newlib'
2228
 VERSION='1.17.0'
2229
 
2230
 
2231
# Some tools Automake needs.
2232
 
2233
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2234
 
2235
 
2236
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2237
 
2238
 
2239
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2240
 
2241
 
2242
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2243
 
2244
 
2245
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2246
 
2247
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2248
 
2249
# Installed binaries are usually stripped using `strip' when the user
2250
# run `make install-strip'.  However `strip' might not be the right
2251
# tool to use in cross-compilation environments, therefore Automake
2252
# will honor the `STRIP' environment variable to overrule this program.
2253
if test "$cross_compiling" != no; then
2254
  if test -n "$ac_tool_prefix"; then
2255
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2256
set dummy ${ac_tool_prefix}strip; ac_word=$2
2257
echo "$as_me:$LINENO: checking for $ac_word" >&5
2258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259
if test "${ac_cv_prog_STRIP+set}" = set; then
2260
  echo $ECHO_N "(cached) $ECHO_C" >&6
2261
else
2262
  if test -n "$STRIP"; then
2263
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2264
else
2265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
for as_dir in $PATH
2267
do
2268
  IFS=$as_save_IFS
2269
  test -z "$as_dir" && as_dir=.
2270
  for ac_exec_ext in '' $ac_executable_extensions; do
2271
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2273
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274
    break 2
2275
  fi
2276
done
2277
done
2278
 
2279
fi
2280
fi
2281
STRIP=$ac_cv_prog_STRIP
2282
if test -n "$STRIP"; then
2283
  echo "$as_me:$LINENO: result: $STRIP" >&5
2284
echo "${ECHO_T}$STRIP" >&6
2285
else
2286
  echo "$as_me:$LINENO: result: no" >&5
2287
echo "${ECHO_T}no" >&6
2288
fi
2289
 
2290
fi
2291
if test -z "$ac_cv_prog_STRIP"; then
2292
  ac_ct_STRIP=$STRIP
2293
  # Extract the first word of "strip", so it can be a program name with args.
2294
set dummy strip; ac_word=$2
2295
echo "$as_me:$LINENO: checking for $ac_word" >&5
2296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2298
  echo $ECHO_N "(cached) $ECHO_C" >&6
2299
else
2300
  if test -n "$ac_ct_STRIP"; then
2301
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2302
else
2303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304
for as_dir in $PATH
2305
do
2306
  IFS=$as_save_IFS
2307
  test -z "$as_dir" && as_dir=.
2308
  for ac_exec_ext in '' $ac_executable_extensions; do
2309
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310
    ac_cv_prog_ac_ct_STRIP="strip"
2311
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312
    break 2
2313
  fi
2314
done
2315
done
2316
 
2317
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2318
fi
2319
fi
2320
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2321
if test -n "$ac_ct_STRIP"; then
2322
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2323
echo "${ECHO_T}$ac_ct_STRIP" >&6
2324
else
2325
  echo "$as_me:$LINENO: result: no" >&5
2326
echo "${ECHO_T}no" >&6
2327
fi
2328
 
2329
  STRIP=$ac_ct_STRIP
2330
else
2331
  STRIP="$ac_cv_prog_STRIP"
2332
fi
2333
 
2334
fi
2335
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2336
 
2337
# We need awk for the "check" target.  The system "awk" is bad on
2338
# some platforms.
2339
# Always define AMTAR for backward compatibility.
2340
 
2341
AMTAR=${AMTAR-"${am_missing_run}tar"}
2342
 
2343
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2344
 
2345
 
2346
 
2347
 
2348
 
2349
 
2350
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2351
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2352
# are probably using a cross compiler, which will not be able to fully
2353
# link an executable.  This should really be fixed in autoconf
2354
# itself.
2355
 
2356
 
2357
 
2358
 
2359
 
2360
 
2361
 
2362
# Extract the first word of "gcc", so it can be a program name with args.
2363
set dummy gcc; ac_word=$2
2364
echo "$as_me:$LINENO: checking for $ac_word" >&5
2365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2366
if test "${ac_cv_prog_CC+set}" = set; then
2367
  echo $ECHO_N "(cached) $ECHO_C" >&6
2368
else
2369
  if test -n "$CC"; then
2370
  ac_cv_prog_CC="$CC" # Let the user override the test.
2371
else
2372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373
for as_dir in $PATH
2374
do
2375
  IFS=$as_save_IFS
2376
  test -z "$as_dir" && as_dir=.
2377
  for ac_exec_ext in '' $ac_executable_extensions; do
2378
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379
    ac_cv_prog_CC="gcc"
2380
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381
    break 2
2382
  fi
2383
done
2384
done
2385
 
2386
fi
2387
fi
2388
CC=$ac_cv_prog_CC
2389
if test -n "$CC"; then
2390
  echo "$as_me:$LINENO: result: $CC" >&5
2391
echo "${ECHO_T}$CC" >&6
2392
else
2393
  echo "$as_me:$LINENO: result: no" >&5
2394
echo "${ECHO_T}no" >&6
2395
fi
2396
 
2397
 
2398
depcc="$CC"   am_compiler_list=
2399
 
2400
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2401
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2402
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2403
  echo $ECHO_N "(cached) $ECHO_C" >&6
2404
else
2405
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2406
  # We make a subdir and do the tests there.  Otherwise we can end up
2407
  # making bogus files that we don't know about and never remove.  For
2408
  # instance it was reported that on HP-UX the gcc test will end up
2409
  # making a dummy file named `D' -- because `-MD' means `put the output
2410
  # in D'.
2411
  mkdir conftest.dir
2412
  # Copy depcomp to subdir because otherwise we won't find it if we're
2413
  # using a relative directory.
2414
  cp "$am_depcomp" conftest.dir
2415
  cd conftest.dir
2416
  # We will build objects and dependencies in a subdirectory because
2417
  # it helps to detect inapplicable dependency modes.  For instance
2418
  # both Tru64's cc and ICC support -MD to output dependencies as a
2419
  # side effect of compilation, but ICC will put the dependencies in
2420
  # the current directory while Tru64 will put them in the object
2421
  # directory.
2422
  mkdir sub
2423
 
2424
  am_cv_CC_dependencies_compiler_type=none
2425
  if test "$am_compiler_list" = ""; then
2426
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2427
  fi
2428
  for depmode in $am_compiler_list; do
2429
    # Setup a source with many dependencies, because some compilers
2430
    # like to wrap large dependency lists on column 80 (with \), and
2431
    # we should not choose a depcomp mode which is confused by this.
2432
    #
2433
    # We need to recreate these files for each test, as the compiler may
2434
    # overwrite some of them when testing with obscure command lines.
2435
    # This happens at least with the AIX C compiler.
2436
    : > sub/conftest.c
2437
    for i in 1 2 3 4 5 6; do
2438
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2439
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2440
      # Solaris 8's {/usr,}/bin/sh.
2441
      touch sub/conftst$i.h
2442
    done
2443
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2444
 
2445
    case $depmode in
2446
    nosideeffect)
2447
      # after this tag, mechanisms are not by side-effect, so they'll
2448
      # only be used when explicitly requested
2449
      if test "x$enable_dependency_tracking" = xyes; then
2450
        continue
2451
      else
2452
        break
2453
      fi
2454
      ;;
2455
    none) break ;;
2456
    esac
2457
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2458
    # mode.  It turns out that the SunPro C++ compiler does not properly
2459
    # handle `-M -o', and we need to detect this.
2460
    if depmode=$depmode \
2461
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2462
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2463
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2464
         >/dev/null 2>conftest.err &&
2465
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2466
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2467
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2468
      # icc doesn't choke on unknown options, it will just issue warnings
2469
      # or remarks (even with -Werror).  So we grep stderr for any message
2470
      # that says an option was ignored or not supported.
2471
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2472
      #   icc: Command line warning: ignoring option '-M'; no argument required
2473
      # The diagnosis changed in icc 8.0:
2474
      #   icc: Command line remark: option '-MP' not supported
2475
      if (grep 'ignoring option' conftest.err ||
2476
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2477
        am_cv_CC_dependencies_compiler_type=$depmode
2478
        break
2479
      fi
2480
    fi
2481
  done
2482
 
2483
  cd ..
2484
  rm -rf conftest.dir
2485
else
2486
  am_cv_CC_dependencies_compiler_type=none
2487
fi
2488
 
2489
fi
2490
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2491
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2492
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2493
 
2494
 
2495
 
2496
if
2497
  test "x$enable_dependency_tracking" != xno \
2498
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2499
  am__fastdepCC_TRUE=
2500
  am__fastdepCC_FALSE='#'
2501
else
2502
  am__fastdepCC_TRUE='#'
2503
  am__fastdepCC_FALSE=
2504
fi
2505
 
2506
 
2507
if test -z "$CC"; then
2508
  # Extract the first word of "cc", so it can be a program name with args.
2509
set dummy cc; ac_word=$2
2510
echo "$as_me:$LINENO: checking for $ac_word" >&5
2511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512
if test "${ac_cv_prog_CC+set}" = set; then
2513
  echo $ECHO_N "(cached) $ECHO_C" >&6
2514
else
2515
  if test -n "$CC"; then
2516
  ac_cv_prog_CC="$CC" # Let the user override the test.
2517
else
2518
  ac_prog_rejected=no
2519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520
for as_dir in $PATH
2521
do
2522
  IFS=$as_save_IFS
2523
  test -z "$as_dir" && as_dir=.
2524
  for ac_exec_ext in '' $ac_executable_extensions; do
2525
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2526
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2527
       ac_prog_rejected=yes
2528
       continue
2529
     fi
2530
    ac_cv_prog_CC="cc"
2531
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532
    break 2
2533
  fi
2534
done
2535
done
2536
 
2537
if test $ac_prog_rejected = yes; then
2538
  # We found a bogon in the path, so make sure we never use it.
2539
  set dummy $ac_cv_prog_CC
2540
  shift
2541
  if test $# != 0; then
2542
    # We chose a different compiler from the bogus one.
2543
    # However, it has the same basename, so the bogon will be chosen
2544
    # first if we set CC to just the basename; use the full file name.
2545
    shift
2546
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2547
  fi
2548
fi
2549
fi
2550
fi
2551
CC=$ac_cv_prog_CC
2552
if test -n "$CC"; then
2553
  echo "$as_me:$LINENO: result: $CC" >&5
2554
echo "${ECHO_T}$CC" >&6
2555
else
2556
  echo "$as_me:$LINENO: result: no" >&5
2557
echo "${ECHO_T}no" >&6
2558
fi
2559
 
2560
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2561
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2562
   { (exit 1); exit 1; }; }
2563
fi
2564
 
2565
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2566
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2567
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2568
  echo $ECHO_N "(cached) $ECHO_C" >&6
2569
else
2570
  cat > conftest.c <
2571
#ifdef __GNUC__
2572
  yes;
2573
#endif
2574
EOF
2575
if { ac_try='${CC-cc} -E conftest.c'
2576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577
  (eval $ac_try) 2>&5
2578
  ac_status=$?
2579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2581
  ac_cv_c_compiler_gnu=yes
2582
else
2583
  ac_cv_c_compiler_gnu=no
2584
fi
2585
fi
2586
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2588
 
2589
if test $ac_cv_c_compiler_gnu = yes; then
2590
  GCC=yes
2591
  ac_test_CFLAGS="${CFLAGS+set}"
2592
  ac_save_CFLAGS="$CFLAGS"
2593
  CFLAGS=
2594
  ac_test_CFLAGS=${CFLAGS+set}
2595
ac_save_CFLAGS=$CFLAGS
2596
CFLAGS="-g"
2597
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599
if test "${ac_cv_prog_cc_g+set}" = set; then
2600
  echo $ECHO_N "(cached) $ECHO_C" >&6
2601
else
2602
  cat >conftest.$ac_ext <<_ACEOF
2603
/* confdefs.h.  */
2604
_ACEOF
2605
cat confdefs.h >>conftest.$ac_ext
2606
cat >>conftest.$ac_ext <<_ACEOF
2607
/* end confdefs.h.  */
2608
 
2609
int
2610
main ()
2611
{
2612
 
2613
  ;
2614
  return 0;
2615
}
2616
_ACEOF
2617
rm -f conftest.$ac_objext
2618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619
  (eval $ac_compile) 2>conftest.er1
2620
  ac_status=$?
2621
  grep -v '^ *+' conftest.er1 >conftest.err
2622
  rm -f conftest.er1
2623
  cat conftest.err >&5
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
  (exit $ac_status); } &&
2626
         { ac_try='test -z "$ac_c_werror_flag"
2627
                         || test ! -s conftest.err'
2628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629
  (eval $ac_try) 2>&5
2630
  ac_status=$?
2631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
  (exit $ac_status); }; } &&
2633
         { ac_try='test -s conftest.$ac_objext'
2634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635
  (eval $ac_try) 2>&5
2636
  ac_status=$?
2637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
  (exit $ac_status); }; }; then
2639
  ac_cv_prog_cc_g=yes
2640
else
2641
  echo "$as_me: failed program was:" >&5
2642
sed 's/^/| /' conftest.$ac_ext >&5
2643
 
2644
ac_cv_prog_cc_g=no
2645
fi
2646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647
fi
2648
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2650
if test "$ac_test_CFLAGS" = set; then
2651
  CFLAGS=$ac_save_CFLAGS
2652
elif test $ac_cv_prog_cc_g = yes; then
2653
  if test "$GCC" = yes; then
2654
    CFLAGS="-g -O2"
2655
  else
2656
    CFLAGS="-g"
2657
  fi
2658
else
2659
  if test "$GCC" = yes; then
2660
    CFLAGS="-O2"
2661
  else
2662
    CFLAGS=
2663
  fi
2664
fi
2665
  if test "$ac_test_CFLAGS" = set; then
2666
    CFLAGS="$ac_save_CFLAGS"
2667
  elif test $ac_cv_prog_cc_g = yes; then
2668
    CFLAGS="-g -O2"
2669
  else
2670
    CFLAGS="-O2"
2671
  fi
2672
else
2673
  GCC=
2674
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2675
fi
2676
 
2677
 
2678
if test -n "$ac_tool_prefix"; then
2679
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2680
set dummy ${ac_tool_prefix}as; ac_word=$2
2681
echo "$as_me:$LINENO: checking for $ac_word" >&5
2682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683
if test "${ac_cv_prog_AS+set}" = set; then
2684
  echo $ECHO_N "(cached) $ECHO_C" >&6
2685
else
2686
  if test -n "$AS"; then
2687
  ac_cv_prog_AS="$AS" # Let the user override the test.
2688
else
2689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690
for as_dir in $PATH
2691
do
2692
  IFS=$as_save_IFS
2693
  test -z "$as_dir" && as_dir=.
2694
  for ac_exec_ext in '' $ac_executable_extensions; do
2695
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696
    ac_cv_prog_AS="${ac_tool_prefix}as"
2697
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698
    break 2
2699
  fi
2700
done
2701
done
2702
 
2703
fi
2704
fi
2705
AS=$ac_cv_prog_AS
2706
if test -n "$AS"; then
2707
  echo "$as_me:$LINENO: result: $AS" >&5
2708
echo "${ECHO_T}$AS" >&6
2709
else
2710
  echo "$as_me:$LINENO: result: no" >&5
2711
echo "${ECHO_T}no" >&6
2712
fi
2713
 
2714
fi
2715
if test -z "$ac_cv_prog_AS"; then
2716
  ac_ct_AS=$AS
2717
  # Extract the first word of "as", so it can be a program name with args.
2718
set dummy as; ac_word=$2
2719
echo "$as_me:$LINENO: checking for $ac_word" >&5
2720
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2721
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2722
  echo $ECHO_N "(cached) $ECHO_C" >&6
2723
else
2724
  if test -n "$ac_ct_AS"; then
2725
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2726
else
2727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728
for as_dir in $PATH
2729
do
2730
  IFS=$as_save_IFS
2731
  test -z "$as_dir" && as_dir=.
2732
  for ac_exec_ext in '' $ac_executable_extensions; do
2733
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734
    ac_cv_prog_ac_ct_AS="as"
2735
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736
    break 2
2737
  fi
2738
done
2739
done
2740
 
2741
fi
2742
fi
2743
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2744
if test -n "$ac_ct_AS"; then
2745
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2746
echo "${ECHO_T}$ac_ct_AS" >&6
2747
else
2748
  echo "$as_me:$LINENO: result: no" >&5
2749
echo "${ECHO_T}no" >&6
2750
fi
2751
 
2752
  AS=$ac_ct_AS
2753
else
2754
  AS="$ac_cv_prog_AS"
2755
fi
2756
 
2757
if test -n "$ac_tool_prefix"; then
2758
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2759
set dummy ${ac_tool_prefix}ar; ac_word=$2
2760
echo "$as_me:$LINENO: checking for $ac_word" >&5
2761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762
if test "${ac_cv_prog_AR+set}" = set; then
2763
  echo $ECHO_N "(cached) $ECHO_C" >&6
2764
else
2765
  if test -n "$AR"; then
2766
  ac_cv_prog_AR="$AR" # Let the user override the test.
2767
else
2768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769
for as_dir in $PATH
2770
do
2771
  IFS=$as_save_IFS
2772
  test -z "$as_dir" && as_dir=.
2773
  for ac_exec_ext in '' $ac_executable_extensions; do
2774
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2776
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777
    break 2
2778
  fi
2779
done
2780
done
2781
 
2782
fi
2783
fi
2784
AR=$ac_cv_prog_AR
2785
if test -n "$AR"; then
2786
  echo "$as_me:$LINENO: result: $AR" >&5
2787
echo "${ECHO_T}$AR" >&6
2788
else
2789
  echo "$as_me:$LINENO: result: no" >&5
2790
echo "${ECHO_T}no" >&6
2791
fi
2792
 
2793
fi
2794
if test -z "$ac_cv_prog_AR"; then
2795
  ac_ct_AR=$AR
2796
  # Extract the first word of "ar", so it can be a program name with args.
2797
set dummy ar; ac_word=$2
2798
echo "$as_me:$LINENO: checking for $ac_word" >&5
2799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2800
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2801
  echo $ECHO_N "(cached) $ECHO_C" >&6
2802
else
2803
  if test -n "$ac_ct_AR"; then
2804
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2805
else
2806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807
for as_dir in $PATH
2808
do
2809
  IFS=$as_save_IFS
2810
  test -z "$as_dir" && as_dir=.
2811
  for ac_exec_ext in '' $ac_executable_extensions; do
2812
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813
    ac_cv_prog_ac_ct_AR="ar"
2814
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815
    break 2
2816
  fi
2817
done
2818
done
2819
 
2820
fi
2821
fi
2822
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2823
if test -n "$ac_ct_AR"; then
2824
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2825
echo "${ECHO_T}$ac_ct_AR" >&6
2826
else
2827
  echo "$as_me:$LINENO: result: no" >&5
2828
echo "${ECHO_T}no" >&6
2829
fi
2830
 
2831
  AR=$ac_ct_AR
2832
else
2833
  AR="$ac_cv_prog_AR"
2834
fi
2835
 
2836
if test -n "$ac_tool_prefix"; then
2837
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2838
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2839
echo "$as_me:$LINENO: checking for $ac_word" >&5
2840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841
if test "${ac_cv_prog_RANLIB+set}" = set; then
2842
  echo $ECHO_N "(cached) $ECHO_C" >&6
2843
else
2844
  if test -n "$RANLIB"; then
2845
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2846
else
2847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848
for as_dir in $PATH
2849
do
2850
  IFS=$as_save_IFS
2851
  test -z "$as_dir" && as_dir=.
2852
  for ac_exec_ext in '' $ac_executable_extensions; do
2853
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2855
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856
    break 2
2857
  fi
2858
done
2859
done
2860
 
2861
fi
2862
fi
2863
RANLIB=$ac_cv_prog_RANLIB
2864
if test -n "$RANLIB"; then
2865
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2866
echo "${ECHO_T}$RANLIB" >&6
2867
else
2868
  echo "$as_me:$LINENO: result: no" >&5
2869
echo "${ECHO_T}no" >&6
2870
fi
2871
 
2872
fi
2873
if test -z "$ac_cv_prog_RANLIB"; then
2874
  ac_ct_RANLIB=$RANLIB
2875
  # Extract the first word of "ranlib", so it can be a program name with args.
2876
set dummy ranlib; ac_word=$2
2877
echo "$as_me:$LINENO: checking for $ac_word" >&5
2878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2880
  echo $ECHO_N "(cached) $ECHO_C" >&6
2881
else
2882
  if test -n "$ac_ct_RANLIB"; then
2883
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2884
else
2885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886
for as_dir in $PATH
2887
do
2888
  IFS=$as_save_IFS
2889
  test -z "$as_dir" && as_dir=.
2890
  for ac_exec_ext in '' $ac_executable_extensions; do
2891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894
    break 2
2895
  fi
2896
done
2897
done
2898
 
2899
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2900
fi
2901
fi
2902
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2903
if test -n "$ac_ct_RANLIB"; then
2904
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2905
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2906
else
2907
  echo "$as_me:$LINENO: result: no" >&5
2908
echo "${ECHO_T}no" >&6
2909
fi
2910
 
2911
  RANLIB=$ac_ct_RANLIB
2912
else
2913
  RANLIB="$ac_cv_prog_RANLIB"
2914
fi
2915
 
2916
if test -n "$ac_tool_prefix"; then
2917
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2918
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2919
echo "$as_me:$LINENO: checking for $ac_word" >&5
2920
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921
if test "${ac_cv_prog_READELF+set}" = set; then
2922
  echo $ECHO_N "(cached) $ECHO_C" >&6
2923
else
2924
  if test -n "$READELF"; then
2925
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2926
else
2927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928
for as_dir in $PATH
2929
do
2930
  IFS=$as_save_IFS
2931
  test -z "$as_dir" && as_dir=.
2932
  for ac_exec_ext in '' $ac_executable_extensions; do
2933
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2935
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936
    break 2
2937
  fi
2938
done
2939
done
2940
 
2941
fi
2942
fi
2943
READELF=$ac_cv_prog_READELF
2944
if test -n "$READELF"; then
2945
  echo "$as_me:$LINENO: result: $READELF" >&5
2946
echo "${ECHO_T}$READELF" >&6
2947
else
2948
  echo "$as_me:$LINENO: result: no" >&5
2949
echo "${ECHO_T}no" >&6
2950
fi
2951
 
2952
fi
2953
if test -z "$ac_cv_prog_READELF"; then
2954
  ac_ct_READELF=$READELF
2955
  # Extract the first word of "readelf", so it can be a program name with args.
2956
set dummy readelf; ac_word=$2
2957
echo "$as_me:$LINENO: checking for $ac_word" >&5
2958
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2960
  echo $ECHO_N "(cached) $ECHO_C" >&6
2961
else
2962
  if test -n "$ac_ct_READELF"; then
2963
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2964
else
2965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966
for as_dir in $PATH
2967
do
2968
  IFS=$as_save_IFS
2969
  test -z "$as_dir" && as_dir=.
2970
  for ac_exec_ext in '' $ac_executable_extensions; do
2971
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972
    ac_cv_prog_ac_ct_READELF="readelf"
2973
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974
    break 2
2975
  fi
2976
done
2977
done
2978
 
2979
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2980
fi
2981
fi
2982
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2983
if test -n "$ac_ct_READELF"; then
2984
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2985
echo "${ECHO_T}$ac_ct_READELF" >&6
2986
else
2987
  echo "$as_me:$LINENO: result: no" >&5
2988
echo "${ECHO_T}no" >&6
2989
fi
2990
 
2991
  READELF=$ac_ct_READELF
2992
else
2993
  READELF="$ac_cv_prog_READELF"
2994
fi
2995
 
2996
 
2997
# Find a good install program.  We prefer a C program (faster),
2998
# so one script is as good as another.  But avoid the broken or
2999
# incompatible versions:
3000
# SysV /etc/install, /usr/sbin/install
3001
# SunOS /usr/etc/install
3002
# IRIX /sbin/install
3003
# AIX /bin/install
3004
# AmigaOS /C/install, which installs bootblocks on floppy discs
3005
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3006
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3007
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3008
# OS/2's system install, which has a completely different semantic
3009
# ./install, which can be erroneously created by make from ./install.sh.
3010
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3011
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3012
if test -z "$INSTALL"; then
3013
if test "${ac_cv_path_install+set}" = set; then
3014
  echo $ECHO_N "(cached) $ECHO_C" >&6
3015
else
3016
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017
for as_dir in $PATH
3018
do
3019
  IFS=$as_save_IFS
3020
  test -z "$as_dir" && as_dir=.
3021
  # Account for people who put trailing slashes in PATH elements.
3022
case $as_dir/ in
3023
  ./ | .// | /cC/* | \
3024
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3025
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3026
  /usr/ucb/* ) ;;
3027
  *)
3028
    # OSF1 and SCO ODT 3.0 have their own names for install.
3029
    # Don't use installbsd from OSF since it installs stuff as root
3030
    # by default.
3031
    for ac_prog in ginstall scoinst install; do
3032
      for ac_exec_ext in '' $ac_executable_extensions; do
3033
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3034
          if test $ac_prog = install &&
3035
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036
            # AIX install.  It has an incompatible calling convention.
3037
            :
3038
          elif test $ac_prog = install &&
3039
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3040
            # program-specific install script used by HP pwplus--don't use.
3041
            :
3042
          else
3043
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3044
            break 3
3045
          fi
3046
        fi
3047
      done
3048
    done
3049
    ;;
3050
esac
3051
done
3052
 
3053
 
3054
fi
3055
  if test "${ac_cv_path_install+set}" = set; then
3056
    INSTALL=$ac_cv_path_install
3057
  else
3058
    # As a last resort, use the slow shell script.  We don't cache a
3059
    # path for INSTALL within a source directory, because that will
3060
    # break other packages using the cache if that directory is
3061
    # removed, or if the path is relative.
3062
    INSTALL=$ac_install_sh
3063
  fi
3064
fi
3065
echo "$as_me:$LINENO: result: $INSTALL" >&5
3066
echo "${ECHO_T}$INSTALL" >&6
3067
 
3068
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069
# It thinks the first close brace ends the variable substitution.
3070
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071
 
3072
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073
 
3074
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3075
 
3076
 
3077
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3078
ac_given_INSTALL=$INSTALL
3079
 
3080
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3081
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3082
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3083
if test "${enable_maintainer_mode+set}" = set; then
3084
  enableval="$enable_maintainer_mode"
3085
  USE_MAINTAINER_MODE=$enableval
3086
else
3087
  USE_MAINTAINER_MODE=no
3088
fi;
3089
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3090
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3091
 
3092
 
3093
if test $USE_MAINTAINER_MODE = yes; then
3094
  MAINTAINER_MODE_TRUE=
3095
  MAINTAINER_MODE_FALSE='#'
3096
else
3097
  MAINTAINER_MODE_TRUE='#'
3098
  MAINTAINER_MODE_FALSE=
3099
fi
3100
 
3101
  MAINT=$MAINTAINER_MODE_TRUE
3102
 
3103
 
3104
# By default we simply use the C compiler to build assembly code.
3105
 
3106
test "${CCAS+set}" = set || CCAS=$CC
3107
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3108
 
3109
 
3110
 
3111
 
3112
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3113
# at least currently, we never actually build a program, so we never
3114
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3115
# fails, because we are probably configuring with a cross compiler
3116
# which can't create executables.  So we include AC_EXEEXT to keep
3117
# automake happy, but we don't execute it, since we don't care about
3118
# the result.
3119
if false; then
3120
 
3121
  dummy_var=1
3122
fi
3123
 
3124
. ${newlib_basedir}/configure.host
3125
 
3126
newlib_cflags="${newlib_cflags} -fno-builtin"
3127
 
3128
NEWLIB_CFLAGS=${newlib_cflags}
3129
 
3130
 
3131
LDFLAGS=${ldflags}
3132
 
3133
 
3134
 
3135
 
3136
if test x${newlib_elix_level} = x0; then
3137
  ELIX_LEVEL_0_TRUE=
3138
  ELIX_LEVEL_0_FALSE='#'
3139
else
3140
  ELIX_LEVEL_0_TRUE='#'
3141
  ELIX_LEVEL_0_FALSE=
3142
fi
3143
 
3144
 
3145
 
3146
if test x${newlib_elix_level} = x1; then
3147
  ELIX_LEVEL_1_TRUE=
3148
  ELIX_LEVEL_1_FALSE='#'
3149
else
3150
  ELIX_LEVEL_1_TRUE='#'
3151
  ELIX_LEVEL_1_FALSE=
3152
fi
3153
 
3154
 
3155
 
3156
if test x${newlib_elix_level} = x2; then
3157
  ELIX_LEVEL_2_TRUE=
3158
  ELIX_LEVEL_2_FALSE='#'
3159
else
3160
  ELIX_LEVEL_2_TRUE='#'
3161
  ELIX_LEVEL_2_FALSE=
3162
fi
3163
 
3164
 
3165
 
3166
if test x${newlib_elix_level} = x3; then
3167
  ELIX_LEVEL_3_TRUE=
3168
  ELIX_LEVEL_3_FALSE='#'
3169
else
3170
  ELIX_LEVEL_3_TRUE='#'
3171
  ELIX_LEVEL_3_FALSE=
3172
fi
3173
 
3174
 
3175
 
3176
if test x${newlib_elix_level} = x4; then
3177
  ELIX_LEVEL_4_TRUE=
3178
  ELIX_LEVEL_4_FALSE='#'
3179
else
3180
  ELIX_LEVEL_4_TRUE='#'
3181
  ELIX_LEVEL_4_FALSE=
3182
fi
3183
 
3184
 
3185
 
3186
 
3187
if test x${use_libtool} = xyes; then
3188
  USE_LIBTOOL_TRUE=
3189
  USE_LIBTOOL_FALSE='#'
3190
else
3191
  USE_LIBTOOL_TRUE='#'
3192
  USE_LIBTOOL_FALSE=
3193
fi
3194
 
3195
 
3196
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3197
# use oext, which is set in configure.host based on the target platform.
3198
OBJEXT=${oext}
3199
 
3200
 
3201
 
3202
 
3203
 
3204
 
3205
 
3206
 
3207
 
3208
 
3209
 
3210
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3211
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3212
if test "${lt_cv_path_SED+set}" = set; then
3213
  echo $ECHO_N "(cached) $ECHO_C" >&6
3214
else
3215
  # Loop through the user's path and test for sed and gsed.
3216
# Then use that list of sed's as ones to test for truncation.
3217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218
for as_dir in $PATH
3219
do
3220
  IFS=$as_save_IFS
3221
  test -z "$as_dir" && as_dir=.
3222
  for lt_ac_prog in sed gsed; do
3223
    for ac_exec_ext in '' $ac_executable_extensions; do
3224
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3225
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3226
      fi
3227
    done
3228
  done
3229
done
3230
IFS=$as_save_IFS
3231
lt_ac_max=0
3232
lt_ac_count=0
3233
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3234
# along with /bin/sed that truncates output.
3235
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3236
  test ! -f $lt_ac_sed && continue
3237
  cat /dev/null > conftest.in
3238
  lt_ac_count=0
3239
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3240
  # Check for GNU sed and select it if it is found.
3241
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3242
    lt_cv_path_SED=$lt_ac_sed
3243
    break
3244
  fi
3245
  while true; do
3246
    cat conftest.in conftest.in >conftest.tmp
3247
    mv conftest.tmp conftest.in
3248
    cp conftest.in conftest.nl
3249
    echo >>conftest.nl
3250
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3251
    cmp -s conftest.out conftest.nl || break
3252
    # 10000 chars as input seems more than enough
3253
    test $lt_ac_count -gt 10 && break
3254
    lt_ac_count=`expr $lt_ac_count + 1`
3255
    if test $lt_ac_count -gt $lt_ac_max; then
3256
      lt_ac_max=$lt_ac_count
3257
      lt_cv_path_SED=$lt_ac_sed
3258
    fi
3259
  done
3260
done
3261
 
3262
fi
3263
 
3264
SED=$lt_cv_path_SED
3265
 
3266
echo "$as_me:$LINENO: result: $SED" >&5
3267
echo "${ECHO_T}$SED" >&6
3268
 
3269
test -z "$SED" && SED=sed
3270
Xsed="$SED -e 1s/^X//"
3271
 
3272
 
3273
 
3274
 
3275
 
3276
 
3277
 
3278
 
3279
 
3280
 
3281
 
3282
for ac_prog in gawk mawk nawk awk
3283
do
3284
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3285
set dummy $ac_prog; ac_word=$2
3286
echo "$as_me:$LINENO: checking for $ac_word" >&5
3287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288
if test "${ac_cv_prog_AWK+set}" = set; then
3289
  echo $ECHO_N "(cached) $ECHO_C" >&6
3290
else
3291
  if test -n "$AWK"; then
3292
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3293
else
3294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295
for as_dir in $PATH
3296
do
3297
  IFS=$as_save_IFS
3298
  test -z "$as_dir" && as_dir=.
3299
  for ac_exec_ext in '' $ac_executable_extensions; do
3300
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301
    ac_cv_prog_AWK="$ac_prog"
3302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303
    break 2
3304
  fi
3305
done
3306
done
3307
 
3308
fi
3309
fi
3310
AWK=$ac_cv_prog_AWK
3311
if test -n "$AWK"; then
3312
  echo "$as_me:$LINENO: result: $AWK" >&5
3313
echo "${ECHO_T}$AWK" >&6
3314
else
3315
  echo "$as_me:$LINENO: result: no" >&5
3316
echo "${ECHO_T}no" >&6
3317
fi
3318
 
3319
  test -n "$AWK" && break
3320
done
3321
 
3322
if test "${use_libtool}" = "yes"; then
3323
enable_win32_dll=yes
3324
 
3325
case $host in
3326
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3327
  if test -n "$ac_tool_prefix"; then
3328
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3329
set dummy ${ac_tool_prefix}as; ac_word=$2
3330
echo "$as_me:$LINENO: checking for $ac_word" >&5
3331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332
if test "${ac_cv_prog_AS+set}" = set; then
3333
  echo $ECHO_N "(cached) $ECHO_C" >&6
3334
else
3335
  if test -n "$AS"; then
3336
  ac_cv_prog_AS="$AS" # Let the user override the test.
3337
else
3338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339
for as_dir in $PATH
3340
do
3341
  IFS=$as_save_IFS
3342
  test -z "$as_dir" && as_dir=.
3343
  for ac_exec_ext in '' $ac_executable_extensions; do
3344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345
    ac_cv_prog_AS="${ac_tool_prefix}as"
3346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347
    break 2
3348
  fi
3349
done
3350
done
3351
 
3352
fi
3353
fi
3354
AS=$ac_cv_prog_AS
3355
if test -n "$AS"; then
3356
  echo "$as_me:$LINENO: result: $AS" >&5
3357
echo "${ECHO_T}$AS" >&6
3358
else
3359
  echo "$as_me:$LINENO: result: no" >&5
3360
echo "${ECHO_T}no" >&6
3361
fi
3362
 
3363
fi
3364
if test -z "$ac_cv_prog_AS"; then
3365
  ac_ct_AS=$AS
3366
  # Extract the first word of "as", so it can be a program name with args.
3367
set dummy as; ac_word=$2
3368
echo "$as_me:$LINENO: checking for $ac_word" >&5
3369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3371
  echo $ECHO_N "(cached) $ECHO_C" >&6
3372
else
3373
  if test -n "$ac_ct_AS"; then
3374
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3375
else
3376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377
for as_dir in $PATH
3378
do
3379
  IFS=$as_save_IFS
3380
  test -z "$as_dir" && as_dir=.
3381
  for ac_exec_ext in '' $ac_executable_extensions; do
3382
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383
    ac_cv_prog_ac_ct_AS="as"
3384
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385
    break 2
3386
  fi
3387
done
3388
done
3389
 
3390
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3391
fi
3392
fi
3393
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3394
if test -n "$ac_ct_AS"; then
3395
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3396
echo "${ECHO_T}$ac_ct_AS" >&6
3397
else
3398
  echo "$as_me:$LINENO: result: no" >&5
3399
echo "${ECHO_T}no" >&6
3400
fi
3401
 
3402
  AS=$ac_ct_AS
3403
else
3404
  AS="$ac_cv_prog_AS"
3405
fi
3406
 
3407
  if test -n "$ac_tool_prefix"; then
3408
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3409
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3410
echo "$as_me:$LINENO: checking for $ac_word" >&5
3411
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3413
  echo $ECHO_N "(cached) $ECHO_C" >&6
3414
else
3415
  if test -n "$DLLTOOL"; then
3416
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3417
else
3418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419
for as_dir in $PATH
3420
do
3421
  IFS=$as_save_IFS
3422
  test -z "$as_dir" && as_dir=.
3423
  for ac_exec_ext in '' $ac_executable_extensions; do
3424
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3426
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427
    break 2
3428
  fi
3429
done
3430
done
3431
 
3432
fi
3433
fi
3434
DLLTOOL=$ac_cv_prog_DLLTOOL
3435
if test -n "$DLLTOOL"; then
3436
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3437
echo "${ECHO_T}$DLLTOOL" >&6
3438
else
3439
  echo "$as_me:$LINENO: result: no" >&5
3440
echo "${ECHO_T}no" >&6
3441
fi
3442
 
3443
fi
3444
if test -z "$ac_cv_prog_DLLTOOL"; then
3445
  ac_ct_DLLTOOL=$DLLTOOL
3446
  # Extract the first word of "dlltool", so it can be a program name with args.
3447
set dummy dlltool; ac_word=$2
3448
echo "$as_me:$LINENO: checking for $ac_word" >&5
3449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3451
  echo $ECHO_N "(cached) $ECHO_C" >&6
3452
else
3453
  if test -n "$ac_ct_DLLTOOL"; then
3454
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3455
else
3456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457
for as_dir in $PATH
3458
do
3459
  IFS=$as_save_IFS
3460
  test -z "$as_dir" && as_dir=.
3461
  for ac_exec_ext in '' $ac_executable_extensions; do
3462
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3464
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465
    break 2
3466
  fi
3467
done
3468
done
3469
 
3470
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3471
fi
3472
fi
3473
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3474
if test -n "$ac_ct_DLLTOOL"; then
3475
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3476
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3477
else
3478
  echo "$as_me:$LINENO: result: no" >&5
3479
echo "${ECHO_T}no" >&6
3480
fi
3481
 
3482
  DLLTOOL=$ac_ct_DLLTOOL
3483
else
3484
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3485
fi
3486
 
3487
  if test -n "$ac_tool_prefix"; then
3488
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3489
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3490
echo "$as_me:$LINENO: checking for $ac_word" >&5
3491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3493
  echo $ECHO_N "(cached) $ECHO_C" >&6
3494
else
3495
  if test -n "$OBJDUMP"; then
3496
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3497
else
3498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499
for as_dir in $PATH
3500
do
3501
  IFS=$as_save_IFS
3502
  test -z "$as_dir" && as_dir=.
3503
  for ac_exec_ext in '' $ac_executable_extensions; do
3504
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3506
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507
    break 2
3508
  fi
3509
done
3510
done
3511
 
3512
fi
3513
fi
3514
OBJDUMP=$ac_cv_prog_OBJDUMP
3515
if test -n "$OBJDUMP"; then
3516
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3517
echo "${ECHO_T}$OBJDUMP" >&6
3518
else
3519
  echo "$as_me:$LINENO: result: no" >&5
3520
echo "${ECHO_T}no" >&6
3521
fi
3522
 
3523
fi
3524
if test -z "$ac_cv_prog_OBJDUMP"; then
3525
  ac_ct_OBJDUMP=$OBJDUMP
3526
  # Extract the first word of "objdump", so it can be a program name with args.
3527
set dummy objdump; ac_word=$2
3528
echo "$as_me:$LINENO: checking for $ac_word" >&5
3529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3531
  echo $ECHO_N "(cached) $ECHO_C" >&6
3532
else
3533
  if test -n "$ac_ct_OBJDUMP"; then
3534
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3535
else
3536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537
for as_dir in $PATH
3538
do
3539
  IFS=$as_save_IFS
3540
  test -z "$as_dir" && as_dir=.
3541
  for ac_exec_ext in '' $ac_executable_extensions; do
3542
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545
    break 2
3546
  fi
3547
done
3548
done
3549
 
3550
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3551
fi
3552
fi
3553
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3554
if test -n "$ac_ct_OBJDUMP"; then
3555
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3556
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3557
else
3558
  echo "$as_me:$LINENO: result: no" >&5
3559
echo "${ECHO_T}no" >&6
3560
fi
3561
 
3562
  OBJDUMP=$ac_ct_OBJDUMP
3563
else
3564
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3565
fi
3566
 
3567
  ;;
3568
esac
3569
 
3570
test -z "$AS" && AS=as
3571
 
3572
 
3573
 
3574
 
3575
 
3576
test -z "$DLLTOOL" && DLLTOOL=dlltool
3577
 
3578
 
3579
 
3580
 
3581
 
3582
test -z "$OBJDUMP" && OBJDUMP=objdump
3583
 
3584
 
3585
 
3586
 
3587
 
3588
 
3589
 
3590
case `pwd` in
3591
  *\ * | *\     *)
3592
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3593
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3594
esac
3595
 
3596
 
3597
 
3598
macro_version='2.2.6'
3599
macro_revision='1.3012'
3600
 
3601
 
3602
 
3603
 
3604
 
3605
 
3606
 
3607
 
3608
 
3609
 
3610
 
3611
 
3612
 
3613
ltmain="$ac_aux_dir/ltmain.sh"
3614
 
3615
ac_ext=c
3616
ac_cpp='$CPP $CPPFLAGS'
3617
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
if test -n "$ac_tool_prefix"; then
3621
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3622
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3623
echo "$as_me:$LINENO: checking for $ac_word" >&5
3624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625
if test "${ac_cv_prog_CC+set}" = set; then
3626
  echo $ECHO_N "(cached) $ECHO_C" >&6
3627
else
3628
  if test -n "$CC"; then
3629
  ac_cv_prog_CC="$CC" # Let the user override the test.
3630
else
3631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632
for as_dir in $PATH
3633
do
3634
  IFS=$as_save_IFS
3635
  test -z "$as_dir" && as_dir=.
3636
  for ac_exec_ext in '' $ac_executable_extensions; do
3637
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
fi
3646
fi
3647
CC=$ac_cv_prog_CC
3648
if test -n "$CC"; then
3649
  echo "$as_me:$LINENO: result: $CC" >&5
3650
echo "${ECHO_T}$CC" >&6
3651
else
3652
  echo "$as_me:$LINENO: result: no" >&5
3653
echo "${ECHO_T}no" >&6
3654
fi
3655
 
3656
fi
3657
if test -z "$ac_cv_prog_CC"; then
3658
  ac_ct_CC=$CC
3659
  # Extract the first word of "gcc", so it can be a program name with args.
3660
set dummy gcc; ac_word=$2
3661
echo "$as_me:$LINENO: checking for $ac_word" >&5
3662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3664
  echo $ECHO_N "(cached) $ECHO_C" >&6
3665
else
3666
  if test -n "$ac_ct_CC"; then
3667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668
else
3669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670
for as_dir in $PATH
3671
do
3672
  IFS=$as_save_IFS
3673
  test -z "$as_dir" && as_dir=.
3674
  for ac_exec_ext in '' $ac_executable_extensions; do
3675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676
    ac_cv_prog_ac_ct_CC="gcc"
3677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678
    break 2
3679
  fi
3680
done
3681
done
3682
 
3683
fi
3684
fi
3685
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686
if test -n "$ac_ct_CC"; then
3687
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3688
echo "${ECHO_T}$ac_ct_CC" >&6
3689
else
3690
  echo "$as_me:$LINENO: result: no" >&5
3691
echo "${ECHO_T}no" >&6
3692
fi
3693
 
3694
  CC=$ac_ct_CC
3695
else
3696
  CC="$ac_cv_prog_CC"
3697
fi
3698
 
3699
if test -z "$CC"; then
3700
  if test -n "$ac_tool_prefix"; then
3701
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702
set dummy ${ac_tool_prefix}cc; ac_word=$2
3703
echo "$as_me:$LINENO: checking for $ac_word" >&5
3704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705
if test "${ac_cv_prog_CC+set}" = set; then
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
3707
else
3708
  if test -n "$CC"; then
3709
  ac_cv_prog_CC="$CC" # Let the user override the test.
3710
else
3711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712
for as_dir in $PATH
3713
do
3714
  IFS=$as_save_IFS
3715
  test -z "$as_dir" && as_dir=.
3716
  for ac_exec_ext in '' $ac_executable_extensions; do
3717
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720
    break 2
3721
  fi
3722
done
3723
done
3724
 
3725
fi
3726
fi
3727
CC=$ac_cv_prog_CC
3728
if test -n "$CC"; then
3729
  echo "$as_me:$LINENO: result: $CC" >&5
3730
echo "${ECHO_T}$CC" >&6
3731
else
3732
  echo "$as_me:$LINENO: result: no" >&5
3733
echo "${ECHO_T}no" >&6
3734
fi
3735
 
3736
fi
3737
if test -z "$ac_cv_prog_CC"; then
3738
  ac_ct_CC=$CC
3739
  # Extract the first word of "cc", so it can be a program name with args.
3740
set dummy cc; ac_word=$2
3741
echo "$as_me:$LINENO: checking for $ac_word" >&5
3742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3744
  echo $ECHO_N "(cached) $ECHO_C" >&6
3745
else
3746
  if test -n "$ac_ct_CC"; then
3747
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748
else
3749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750
for as_dir in $PATH
3751
do
3752
  IFS=$as_save_IFS
3753
  test -z "$as_dir" && as_dir=.
3754
  for ac_exec_ext in '' $ac_executable_extensions; do
3755
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756
    ac_cv_prog_ac_ct_CC="cc"
3757
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758
    break 2
3759
  fi
3760
done
3761
done
3762
 
3763
fi
3764
fi
3765
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766
if test -n "$ac_ct_CC"; then
3767
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3768
echo "${ECHO_T}$ac_ct_CC" >&6
3769
else
3770
  echo "$as_me:$LINENO: result: no" >&5
3771
echo "${ECHO_T}no" >&6
3772
fi
3773
 
3774
  CC=$ac_ct_CC
3775
else
3776
  CC="$ac_cv_prog_CC"
3777
fi
3778
 
3779
fi
3780
if test -z "$CC"; then
3781
  # Extract the first word of "cc", so it can be a program name with args.
3782
set dummy cc; ac_word=$2
3783
echo "$as_me:$LINENO: checking for $ac_word" >&5
3784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3785
if test "${ac_cv_prog_CC+set}" = set; then
3786
  echo $ECHO_N "(cached) $ECHO_C" >&6
3787
else
3788
  if test -n "$CC"; then
3789
  ac_cv_prog_CC="$CC" # Let the user override the test.
3790
else
3791
  ac_prog_rejected=no
3792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793
for as_dir in $PATH
3794
do
3795
  IFS=$as_save_IFS
3796
  test -z "$as_dir" && as_dir=.
3797
  for ac_exec_ext in '' $ac_executable_extensions; do
3798
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3800
       ac_prog_rejected=yes
3801
       continue
3802
     fi
3803
    ac_cv_prog_CC="cc"
3804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805
    break 2
3806
  fi
3807
done
3808
done
3809
 
3810
if test $ac_prog_rejected = yes; then
3811
  # We found a bogon in the path, so make sure we never use it.
3812
  set dummy $ac_cv_prog_CC
3813
  shift
3814
  if test $# != 0; then
3815
    # We chose a different compiler from the bogus one.
3816
    # However, it has the same basename, so the bogon will be chosen
3817
    # first if we set CC to just the basename; use the full file name.
3818
    shift
3819
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3820
  fi
3821
fi
3822
fi
3823
fi
3824
CC=$ac_cv_prog_CC
3825
if test -n "$CC"; then
3826
  echo "$as_me:$LINENO: result: $CC" >&5
3827
echo "${ECHO_T}$CC" >&6
3828
else
3829
  echo "$as_me:$LINENO: result: no" >&5
3830
echo "${ECHO_T}no" >&6
3831
fi
3832
 
3833
fi
3834
if test -z "$CC"; then
3835
  if test -n "$ac_tool_prefix"; then
3836
  for ac_prog in cl
3837
  do
3838
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3839
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3840
echo "$as_me:$LINENO: checking for $ac_word" >&5
3841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842
if test "${ac_cv_prog_CC+set}" = set; then
3843
  echo $ECHO_N "(cached) $ECHO_C" >&6
3844
else
3845
  if test -n "$CC"; then
3846
  ac_cv_prog_CC="$CC" # Let the user override the test.
3847
else
3848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849
for as_dir in $PATH
3850
do
3851
  IFS=$as_save_IFS
3852
  test -z "$as_dir" && as_dir=.
3853
  for ac_exec_ext in '' $ac_executable_extensions; do
3854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3856
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857
    break 2
3858
  fi
3859
done
3860
done
3861
 
3862
fi
3863
fi
3864
CC=$ac_cv_prog_CC
3865
if test -n "$CC"; then
3866
  echo "$as_me:$LINENO: result: $CC" >&5
3867
echo "${ECHO_T}$CC" >&6
3868
else
3869
  echo "$as_me:$LINENO: result: no" >&5
3870
echo "${ECHO_T}no" >&6
3871
fi
3872
 
3873
    test -n "$CC" && break
3874
  done
3875
fi
3876
if test -z "$CC"; then
3877
  ac_ct_CC=$CC
3878
  for ac_prog in cl
3879
do
3880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3881
set dummy $ac_prog; ac_word=$2
3882
echo "$as_me:$LINENO: checking for $ac_word" >&5
3883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3885
  echo $ECHO_N "(cached) $ECHO_C" >&6
3886
else
3887
  if test -n "$ac_ct_CC"; then
3888
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3889
else
3890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891
for as_dir in $PATH
3892
do
3893
  IFS=$as_save_IFS
3894
  test -z "$as_dir" && as_dir=.
3895
  for ac_exec_ext in '' $ac_executable_extensions; do
3896
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897
    ac_cv_prog_ac_ct_CC="$ac_prog"
3898
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899
    break 2
3900
  fi
3901
done
3902
done
3903
 
3904
fi
3905
fi
3906
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907
if test -n "$ac_ct_CC"; then
3908
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3909
echo "${ECHO_T}$ac_ct_CC" >&6
3910
else
3911
  echo "$as_me:$LINENO: result: no" >&5
3912
echo "${ECHO_T}no" >&6
3913
fi
3914
 
3915
  test -n "$ac_ct_CC" && break
3916
done
3917
 
3918
  CC=$ac_ct_CC
3919
fi
3920
 
3921
fi
3922
 
3923
 
3924
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3925
See \`config.log' for more details." >&5
3926
echo "$as_me: error: no acceptable C compiler found in \$PATH
3927
See \`config.log' for more details." >&2;}
3928
   { (exit 1); exit 1; }; }
3929
 
3930
# Provide some information about the compiler.
3931
echo "$as_me:$LINENO:" \
3932
     "checking for C compiler version" >&5
3933
ac_compiler=`set X $ac_compile; echo $2`
3934
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3935
  (eval $ac_compiler --version &5) 2>&5
3936
  ac_status=$?
3937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938
  (exit $ac_status); }
3939
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3940
  (eval $ac_compiler -v &5) 2>&5
3941
  ac_status=$?
3942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
  (exit $ac_status); }
3944
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3945
  (eval $ac_compiler -V &5) 2>&5
3946
  ac_status=$?
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
  (exit $ac_status); }
3949
 
3950
cat >conftest.$ac_ext <<_ACEOF
3951
/* confdefs.h.  */
3952
_ACEOF
3953
cat confdefs.h >>conftest.$ac_ext
3954
cat >>conftest.$ac_ext <<_ACEOF
3955
/* end confdefs.h.  */
3956
 
3957
int
3958
main ()
3959
{
3960
 
3961
  ;
3962
  return 0;
3963
}
3964
_ACEOF
3965
ac_clean_files_save=$ac_clean_files
3966
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3967
# Try to create an executable without -o first, disregard a.out.
3968
# It will help us diagnose broken compilers, and finding out an intuition
3969
# of exeext.
3970
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3971
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3972
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3973
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3974
  (eval $ac_link_default) 2>&5
3975
  ac_status=$?
3976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977
  (exit $ac_status); }; then
3978
  # Find the output, starting from the most likely.  This scheme is
3979
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3980
# resort.
3981
 
3982
# Be careful to initialize this variable, since it used to be cached.
3983
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3984
ac_cv_exeext=
3985
# b.out is created by i960 compilers.
3986
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3987
do
3988
  test -f "$ac_file" || continue
3989
  case $ac_file in
3990
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3991
        ;;
3992
    conftest.$ac_ext )
3993
        # This is the source file.
3994
        ;;
3995
    [ab].out )
3996
        # We found the default executable, but exeext='' is most
3997
        # certainly right.
3998
        break;;
3999
    *.* )
4000
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001
        # FIXME: I believe we export ac_cv_exeext for Libtool,
4002
        # but it would be cool to find out if it's true.  Does anybody
4003
        # maintain Libtool? --akim.
4004
        export ac_cv_exeext
4005
        break;;
4006
    * )
4007
        break;;
4008
  esac
4009
done
4010
else
4011
  echo "$as_me: failed program was:" >&5
4012
sed 's/^/| /' conftest.$ac_ext >&5
4013
 
4014
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
4015
See \`config.log' for more details." >&5
4016
echo "$as_me: error: C compiler cannot create executables
4017
See \`config.log' for more details." >&2;}
4018
   { (exit 77); exit 77; }; }
4019
fi
4020
 
4021
ac_exeext=$ac_cv_exeext
4022
echo "$as_me:$LINENO: result: $ac_file" >&5
4023
echo "${ECHO_T}$ac_file" >&6
4024
 
4025
# Check the compiler produces executables we can run.  If not, either
4026
# the compiler is broken, or we cross compile.
4027
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4028
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4029
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4030
# If not cross compiling, check that we can run a simple program.
4031
if test "$cross_compiling" != yes; then
4032
  if { ac_try='./$ac_file'
4033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034
  (eval $ac_try) 2>&5
4035
  ac_status=$?
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
  (exit $ac_status); }; }; then
4038
    cross_compiling=no
4039
  else
4040
    if test "$cross_compiling" = maybe; then
4041
        cross_compiling=yes
4042
    else
4043
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4044
If you meant to cross compile, use \`--host'.
4045
See \`config.log' for more details." >&5
4046
echo "$as_me: error: cannot run C compiled programs.
4047
If you meant to cross compile, use \`--host'.
4048
See \`config.log' for more details." >&2;}
4049
   { (exit 1); exit 1; }; }
4050
    fi
4051
  fi
4052
fi
4053
echo "$as_me:$LINENO: result: yes" >&5
4054
echo "${ECHO_T}yes" >&6
4055
 
4056
rm -f a.out a.exe conftest$ac_cv_exeext b.out
4057
ac_clean_files=$ac_clean_files_save
4058
# Check the compiler produces executables we can run.  If not, either
4059
# the compiler is broken, or we cross compile.
4060
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4061
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4062
echo "$as_me:$LINENO: result: $cross_compiling" >&5
4063
echo "${ECHO_T}$cross_compiling" >&6
4064
 
4065
echo "$as_me:$LINENO: checking for suffix of executables" >&5
4066
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068
  (eval $ac_link) 2>&5
4069
  ac_status=$?
4070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071
  (exit $ac_status); }; then
4072
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4073
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4074
# work properly (i.e., refer to `conftest.exe'), while it won't with
4075
# `rm'.
4076
for ac_file in conftest.exe conftest conftest.*; do
4077
  test -f "$ac_file" || continue
4078
  case $ac_file in
4079
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4080
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4081
          export ac_cv_exeext
4082
          break;;
4083
    * ) break;;
4084
  esac
4085
done
4086
else
4087
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4088
See \`config.log' for more details." >&5
4089
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4090
See \`config.log' for more details." >&2;}
4091
   { (exit 1); exit 1; }; }
4092
fi
4093
 
4094
rm -f conftest$ac_cv_exeext
4095
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4096
echo "${ECHO_T}$ac_cv_exeext" >&6
4097
 
4098
rm -f conftest.$ac_ext
4099
EXEEXT=$ac_cv_exeext
4100
ac_exeext=$EXEEXT
4101
echo "$as_me:$LINENO: checking for suffix of object files" >&5
4102
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4103
if test "${ac_cv_objext+set}" = set; then
4104
  echo $ECHO_N "(cached) $ECHO_C" >&6
4105
else
4106
  cat >conftest.$ac_ext <<_ACEOF
4107
/* confdefs.h.  */
4108
_ACEOF
4109
cat confdefs.h >>conftest.$ac_ext
4110
cat >>conftest.$ac_ext <<_ACEOF
4111
/* end confdefs.h.  */
4112
 
4113
int
4114
main ()
4115
{
4116
 
4117
  ;
4118
  return 0;
4119
}
4120
_ACEOF
4121
rm -f conftest.o conftest.obj
4122
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123
  (eval $ac_compile) 2>&5
4124
  ac_status=$?
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
  (exit $ac_status); }; then
4127
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4128
  case $ac_file in
4129
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4130
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4131
       break;;
4132
  esac
4133
done
4134
else
4135
  echo "$as_me: failed program was:" >&5
4136
sed 's/^/| /' conftest.$ac_ext >&5
4137
 
4138
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4139
See \`config.log' for more details." >&5
4140
echo "$as_me: error: cannot compute suffix of object files: cannot compile
4141
See \`config.log' for more details." >&2;}
4142
   { (exit 1); exit 1; }; }
4143
fi
4144
 
4145
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4146
fi
4147
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4148
echo "${ECHO_T}$ac_cv_objext" >&6
4149
OBJEXT=$ac_cv_objext
4150
ac_objext=$OBJEXT
4151
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4152
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4153
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4154
  echo $ECHO_N "(cached) $ECHO_C" >&6
4155
else
4156
  cat >conftest.$ac_ext <<_ACEOF
4157
/* confdefs.h.  */
4158
_ACEOF
4159
cat confdefs.h >>conftest.$ac_ext
4160
cat >>conftest.$ac_ext <<_ACEOF
4161
/* end confdefs.h.  */
4162
 
4163
int
4164
main ()
4165
{
4166
#ifndef __GNUC__
4167
       choke me
4168
#endif
4169
 
4170
  ;
4171
  return 0;
4172
}
4173
_ACEOF
4174
rm -f conftest.$ac_objext
4175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176
  (eval $ac_compile) 2>conftest.er1
4177
  ac_status=$?
4178
  grep -v '^ *+' conftest.er1 >conftest.err
4179
  rm -f conftest.er1
4180
  cat conftest.err >&5
4181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
  (exit $ac_status); } &&
4183
         { ac_try='test -z "$ac_c_werror_flag"
4184
                         || test ! -s conftest.err'
4185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186
  (eval $ac_try) 2>&5
4187
  ac_status=$?
4188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189
  (exit $ac_status); }; } &&
4190
         { ac_try='test -s conftest.$ac_objext'
4191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192
  (eval $ac_try) 2>&5
4193
  ac_status=$?
4194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195
  (exit $ac_status); }; }; then
4196
  ac_compiler_gnu=yes
4197
else
4198
  echo "$as_me: failed program was:" >&5
4199
sed 's/^/| /' conftest.$ac_ext >&5
4200
 
4201
ac_compiler_gnu=no
4202
fi
4203
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4205
 
4206
fi
4207
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4208
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4209
GCC=`test $ac_compiler_gnu = yes && echo yes`
4210
ac_test_CFLAGS=${CFLAGS+set}
4211
ac_save_CFLAGS=$CFLAGS
4212
CFLAGS="-g"
4213
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4214
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4215
if test "${ac_cv_prog_cc_g+set}" = set; then
4216
  echo $ECHO_N "(cached) $ECHO_C" >&6
4217
else
4218
  cat >conftest.$ac_ext <<_ACEOF
4219
/* confdefs.h.  */
4220
_ACEOF
4221
cat confdefs.h >>conftest.$ac_ext
4222
cat >>conftest.$ac_ext <<_ACEOF
4223
/* end confdefs.h.  */
4224
 
4225
int
4226
main ()
4227
{
4228
 
4229
  ;
4230
  return 0;
4231
}
4232
_ACEOF
4233
rm -f conftest.$ac_objext
4234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235
  (eval $ac_compile) 2>conftest.er1
4236
  ac_status=$?
4237
  grep -v '^ *+' conftest.er1 >conftest.err
4238
  rm -f conftest.er1
4239
  cat conftest.err >&5
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241
  (exit $ac_status); } &&
4242
         { ac_try='test -z "$ac_c_werror_flag"
4243
                         || test ! -s conftest.err'
4244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245
  (eval $ac_try) 2>&5
4246
  ac_status=$?
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
  (exit $ac_status); }; } &&
4249
         { ac_try='test -s conftest.$ac_objext'
4250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251
  (eval $ac_try) 2>&5
4252
  ac_status=$?
4253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254
  (exit $ac_status); }; }; then
4255
  ac_cv_prog_cc_g=yes
4256
else
4257
  echo "$as_me: failed program was:" >&5
4258
sed 's/^/| /' conftest.$ac_ext >&5
4259
 
4260
ac_cv_prog_cc_g=no
4261
fi
4262
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4263
fi
4264
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4265
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4266
if test "$ac_test_CFLAGS" = set; then
4267
  CFLAGS=$ac_save_CFLAGS
4268
elif test $ac_cv_prog_cc_g = yes; then
4269
  if test "$GCC" = yes; then
4270
    CFLAGS="-g -O2"
4271
  else
4272
    CFLAGS="-g"
4273
  fi
4274
else
4275
  if test "$GCC" = yes; then
4276
    CFLAGS="-O2"
4277
  else
4278
    CFLAGS=
4279
  fi
4280
fi
4281
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4282
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4283
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4284
  echo $ECHO_N "(cached) $ECHO_C" >&6
4285
else
4286
  ac_cv_prog_cc_stdc=no
4287
ac_save_CC=$CC
4288
cat >conftest.$ac_ext <<_ACEOF
4289
/* confdefs.h.  */
4290
_ACEOF
4291
cat confdefs.h >>conftest.$ac_ext
4292
cat >>conftest.$ac_ext <<_ACEOF
4293
/* end confdefs.h.  */
4294
#include 
4295
#include 
4296
#include 
4297
#include 
4298
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4299
struct buf { int x; };
4300
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4301
static char *e (p, i)
4302
     char **p;
4303
     int i;
4304
{
4305
  return p[i];
4306
}
4307
static char *f (char * (*g) (char **, int), char **p, ...)
4308
{
4309
  char *s;
4310
  va_list v;
4311
  va_start (v,p);
4312
  s = g (p, va_arg (v,int));
4313
  va_end (v);
4314
  return s;
4315
}
4316
 
4317
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4318
   function prototypes and stuff, but not '\xHH' hex character constants.
4319
   These don't provoke an error unfortunately, instead are silently treated
4320
   as 'x'.  The following induces an error, until -std1 is added to get
4321
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4322
   array size at least.  It's necessary to write '\x00'==0 to get something
4323
   that's true only with -std1.  */
4324
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4325
 
4326
int test (int i, double x);
4327
struct s1 {int (*f) (int a);};
4328
struct s2 {int (*f) (double a);};
4329
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4330
int argc;
4331
char **argv;
4332
int
4333
main ()
4334
{
4335
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4336
  ;
4337
  return 0;
4338
}
4339
_ACEOF
4340
# Don't try gcc -ansi; that turns off useful extensions and
4341
# breaks some systems' header files.
4342
# AIX                   -qlanglvl=ansi
4343
# Ultrix and OSF/1      -std1
4344
# HP-UX 10.20 and later -Ae
4345
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4346
# SVR4                  -Xc -D__EXTENSIONS__
4347
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4348
do
4349
  CC="$ac_save_CC $ac_arg"
4350
  rm -f conftest.$ac_objext
4351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352
  (eval $ac_compile) 2>conftest.er1
4353
  ac_status=$?
4354
  grep -v '^ *+' conftest.er1 >conftest.err
4355
  rm -f conftest.er1
4356
  cat conftest.err >&5
4357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358
  (exit $ac_status); } &&
4359
         { ac_try='test -z "$ac_c_werror_flag"
4360
                         || test ! -s conftest.err'
4361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362
  (eval $ac_try) 2>&5
4363
  ac_status=$?
4364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
  (exit $ac_status); }; } &&
4366
         { ac_try='test -s conftest.$ac_objext'
4367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368
  (eval $ac_try) 2>&5
4369
  ac_status=$?
4370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
  (exit $ac_status); }; }; then
4372
  ac_cv_prog_cc_stdc=$ac_arg
4373
break
4374
else
4375
  echo "$as_me: failed program was:" >&5
4376
sed 's/^/| /' conftest.$ac_ext >&5
4377
 
4378
fi
4379
rm -f conftest.err conftest.$ac_objext
4380
done
4381
rm -f conftest.$ac_ext conftest.$ac_objext
4382
CC=$ac_save_CC
4383
 
4384
fi
4385
 
4386
case "x$ac_cv_prog_cc_stdc" in
4387
  x|xno)
4388
    echo "$as_me:$LINENO: result: none needed" >&5
4389
echo "${ECHO_T}none needed" >&6 ;;
4390
  *)
4391
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4392
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4393
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4394
esac
4395
 
4396
# Some people use a C++ compiler to compile C.  Since we use `exit',
4397
# in C++ we need to declare it.  In case someone uses the same compiler
4398
# for both compiling C and C++ we need to have the C++ compiler decide
4399
# the declaration of exit, since it's the most demanding environment.
4400
cat >conftest.$ac_ext <<_ACEOF
4401
#ifndef __cplusplus
4402
  choke me
4403
#endif
4404
_ACEOF
4405
rm -f conftest.$ac_objext
4406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407
  (eval $ac_compile) 2>conftest.er1
4408
  ac_status=$?
4409
  grep -v '^ *+' conftest.er1 >conftest.err
4410
  rm -f conftest.er1
4411
  cat conftest.err >&5
4412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
  (exit $ac_status); } &&
4414
         { ac_try='test -z "$ac_c_werror_flag"
4415
                         || test ! -s conftest.err'
4416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417
  (eval $ac_try) 2>&5
4418
  ac_status=$?
4419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420
  (exit $ac_status); }; } &&
4421
         { ac_try='test -s conftest.$ac_objext'
4422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423
  (eval $ac_try) 2>&5
4424
  ac_status=$?
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426
  (exit $ac_status); }; }; then
4427
  for ac_declaration in \
4428
   '' \
4429
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4430
   'extern "C" void std::exit (int); using std::exit;' \
4431
   'extern "C" void exit (int) throw ();' \
4432
   'extern "C" void exit (int);' \
4433
   'void exit (int);'
4434
do
4435
  cat >conftest.$ac_ext <<_ACEOF
4436
/* confdefs.h.  */
4437
_ACEOF
4438
cat confdefs.h >>conftest.$ac_ext
4439
cat >>conftest.$ac_ext <<_ACEOF
4440
/* end confdefs.h.  */
4441
$ac_declaration
4442
#include 
4443
int
4444
main ()
4445
{
4446
exit (42);
4447
  ;
4448
  return 0;
4449
}
4450
_ACEOF
4451
rm -f conftest.$ac_objext
4452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453
  (eval $ac_compile) 2>conftest.er1
4454
  ac_status=$?
4455
  grep -v '^ *+' conftest.er1 >conftest.err
4456
  rm -f conftest.er1
4457
  cat conftest.err >&5
4458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459
  (exit $ac_status); } &&
4460
         { ac_try='test -z "$ac_c_werror_flag"
4461
                         || test ! -s conftest.err'
4462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463
  (eval $ac_try) 2>&5
4464
  ac_status=$?
4465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466
  (exit $ac_status); }; } &&
4467
         { ac_try='test -s conftest.$ac_objext'
4468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469
  (eval $ac_try) 2>&5
4470
  ac_status=$?
4471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472
  (exit $ac_status); }; }; then
4473
  :
4474
else
4475
  echo "$as_me: failed program was:" >&5
4476
sed 's/^/| /' conftest.$ac_ext >&5
4477
 
4478
continue
4479
fi
4480
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481
  cat >conftest.$ac_ext <<_ACEOF
4482
/* confdefs.h.  */
4483
_ACEOF
4484
cat confdefs.h >>conftest.$ac_ext
4485
cat >>conftest.$ac_ext <<_ACEOF
4486
/* end confdefs.h.  */
4487
$ac_declaration
4488
int
4489
main ()
4490
{
4491
exit (42);
4492
  ;
4493
  return 0;
4494
}
4495
_ACEOF
4496
rm -f conftest.$ac_objext
4497
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498
  (eval $ac_compile) 2>conftest.er1
4499
  ac_status=$?
4500
  grep -v '^ *+' conftest.er1 >conftest.err
4501
  rm -f conftest.er1
4502
  cat conftest.err >&5
4503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504
  (exit $ac_status); } &&
4505
         { ac_try='test -z "$ac_c_werror_flag"
4506
                         || test ! -s conftest.err'
4507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508
  (eval $ac_try) 2>&5
4509
  ac_status=$?
4510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
  (exit $ac_status); }; } &&
4512
         { ac_try='test -s conftest.$ac_objext'
4513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514
  (eval $ac_try) 2>&5
4515
  ac_status=$?
4516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517
  (exit $ac_status); }; }; then
4518
  break
4519
else
4520
  echo "$as_me: failed program was:" >&5
4521
sed 's/^/| /' conftest.$ac_ext >&5
4522
 
4523
fi
4524
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525
done
4526
rm -f conftest*
4527
if test -n "$ac_declaration"; then
4528
  echo '#ifdef __cplusplus' >>confdefs.h
4529
  echo $ac_declaration      >>confdefs.h
4530
  echo '#endif'             >>confdefs.h
4531
fi
4532
 
4533
else
4534
  echo "$as_me: failed program was:" >&5
4535
sed 's/^/| /' conftest.$ac_ext >&5
4536
 
4537
fi
4538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539
ac_ext=c
4540
ac_cpp='$CPP $CPPFLAGS'
4541
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
 
4545
depcc="$CC"   am_compiler_list=
4546
 
4547
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4548
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4549
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4550
  echo $ECHO_N "(cached) $ECHO_C" >&6
4551
else
4552
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4553
  # We make a subdir and do the tests there.  Otherwise we can end up
4554
  # making bogus files that we don't know about and never remove.  For
4555
  # instance it was reported that on HP-UX the gcc test will end up
4556
  # making a dummy file named `D' -- because `-MD' means `put the output
4557
  # in D'.
4558
  mkdir conftest.dir
4559
  # Copy depcomp to subdir because otherwise we won't find it if we're
4560
  # using a relative directory.
4561
  cp "$am_depcomp" conftest.dir
4562
  cd conftest.dir
4563
  # We will build objects and dependencies in a subdirectory because
4564
  # it helps to detect inapplicable dependency modes.  For instance
4565
  # both Tru64's cc and ICC support -MD to output dependencies as a
4566
  # side effect of compilation, but ICC will put the dependencies in
4567
  # the current directory while Tru64 will put them in the object
4568
  # directory.
4569
  mkdir sub
4570
 
4571
  am_cv_CC_dependencies_compiler_type=none
4572
  if test "$am_compiler_list" = ""; then
4573
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4574
  fi
4575
  for depmode in $am_compiler_list; do
4576
    # Setup a source with many dependencies, because some compilers
4577
    # like to wrap large dependency lists on column 80 (with \), and
4578
    # we should not choose a depcomp mode which is confused by this.
4579
    #
4580
    # We need to recreate these files for each test, as the compiler may
4581
    # overwrite some of them when testing with obscure command lines.
4582
    # This happens at least with the AIX C compiler.
4583
    : > sub/conftest.c
4584
    for i in 1 2 3 4 5 6; do
4585
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4586
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4587
      # Solaris 8's {/usr,}/bin/sh.
4588
      touch sub/conftst$i.h
4589
    done
4590
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4591
 
4592
    case $depmode in
4593
    nosideeffect)
4594
      # after this tag, mechanisms are not by side-effect, so they'll
4595
      # only be used when explicitly requested
4596
      if test "x$enable_dependency_tracking" = xyes; then
4597
        continue
4598
      else
4599
        break
4600
      fi
4601
      ;;
4602
    none) break ;;
4603
    esac
4604
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4605
    # mode.  It turns out that the SunPro C++ compiler does not properly
4606
    # handle `-M -o', and we need to detect this.
4607
    if depmode=$depmode \
4608
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4609
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4610
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4611
         >/dev/null 2>conftest.err &&
4612
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4613
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4614
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4615
      # icc doesn't choke on unknown options, it will just issue warnings
4616
      # or remarks (even with -Werror).  So we grep stderr for any message
4617
      # that says an option was ignored or not supported.
4618
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4619
      #   icc: Command line warning: ignoring option '-M'; no argument required
4620
      # The diagnosis changed in icc 8.0:
4621
      #   icc: Command line remark: option '-MP' not supported
4622
      if (grep 'ignoring option' conftest.err ||
4623
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4624
        am_cv_CC_dependencies_compiler_type=$depmode
4625
        break
4626
      fi
4627
    fi
4628
  done
4629
 
4630
  cd ..
4631
  rm -rf conftest.dir
4632
else
4633
  am_cv_CC_dependencies_compiler_type=none
4634
fi
4635
 
4636
fi
4637
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4638
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4639
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4640
 
4641
 
4642
 
4643
if
4644
  test "x$enable_dependency_tracking" != xno \
4645
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4646
  am__fastdepCC_TRUE=
4647
  am__fastdepCC_FALSE='#'
4648
else
4649
  am__fastdepCC_TRUE='#'
4650
  am__fastdepCC_FALSE=
4651
fi
4652
 
4653
 
4654
echo "$as_me:$LINENO: checking for egrep" >&5
4655
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4656
if test "${ac_cv_prog_egrep+set}" = set; then
4657
  echo $ECHO_N "(cached) $ECHO_C" >&6
4658
else
4659
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4660
    then ac_cv_prog_egrep='grep -E'
4661
    else ac_cv_prog_egrep='egrep'
4662
    fi
4663
fi
4664
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4665
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4666
 EGREP=$ac_cv_prog_egrep
4667
 
4668
 
4669
echo "$as_me:$LINENO: checking for fgrep" >&5
4670
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4671
if test "${ac_cv_prog_fgrep+set}" = set; then
4672
  echo $ECHO_N "(cached) $ECHO_C" >&6
4673
else
4674
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4675
    then ac_cv_prog_fgrep='grep -F'
4676
    else ac_cv_prog_fgrep='fgrep'
4677
    fi
4678
fi
4679
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4680
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4681
 FGREP=$ac_cv_prog_fgrep
4682
 
4683
 
4684
test -z "$GREP" && GREP=grep
4685
 
4686
 
4687
 
4688
 
4689
 
4690
 
4691
 
4692
 
4693
 
4694
 
4695
 
4696
 
4697
 
4698
 
4699
 
4700
 
4701
 
4702
 
4703
 
4704
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4705
if test "${with_gnu_ld+set}" = set; then
4706
  withval="$with_gnu_ld"
4707
  test "$withval" = no || with_gnu_ld=yes
4708
else
4709
  with_gnu_ld=no
4710
fi;
4711
ac_prog=ld
4712
if test "$GCC" = yes; then
4713
  # Check if gcc -print-prog-name=ld gives a path.
4714
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4715
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4716
  case $host in
4717
  *-*-mingw*)
4718
    # gcc leaves a trailing carriage return which upsets mingw
4719
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4720
  *)
4721
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4722
  esac
4723
  case $ac_prog in
4724
    # Accept absolute paths.
4725
    [\\/]* | ?:[\\/]*)
4726
      re_direlt='/[^/][^/]*/\.\./'
4727
      # Canonicalize the pathname of ld
4728
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4729
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4730
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4731
      done
4732
      test -z "$LD" && LD="$ac_prog"
4733
      ;;
4734
  "")
4735
    # If it fails, then pretend we aren't using GCC.
4736
    ac_prog=ld
4737
    ;;
4738
  *)
4739
    # If it is relative, then search for the first ld in PATH.
4740
    with_gnu_ld=unknown
4741
    ;;
4742
  esac
4743
elif test "$with_gnu_ld" = yes; then
4744
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4745
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4746
else
4747
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4748
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4749
fi
4750
if test "${lt_cv_path_LD+set}" = set; then
4751
  echo $ECHO_N "(cached) $ECHO_C" >&6
4752
else
4753
  if test -z "$LD"; then
4754
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4755
  for ac_dir in $PATH; do
4756
    IFS="$lt_save_ifs"
4757
    test -z "$ac_dir" && ac_dir=.
4758
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4759
      lt_cv_path_LD="$ac_dir/$ac_prog"
4760
      # Check to see if the program is GNU ld.  I'd rather use --version,
4761
      # but apparently some variants of GNU ld only accept -v.
4762
      # Break only if it was the GNU/non-GNU ld that we prefer.
4763
      case `"$lt_cv_path_LD" -v 2>&1 
4764
      *GNU* | *'with BFD'*)
4765
        test "$with_gnu_ld" != no && break
4766
        ;;
4767
      *)
4768
        test "$with_gnu_ld" != yes && break
4769
        ;;
4770
      esac
4771
    fi
4772
  done
4773
  IFS="$lt_save_ifs"
4774
else
4775
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4776
fi
4777
fi
4778
 
4779
LD="$lt_cv_path_LD"
4780
if test -n "$LD"; then
4781
  echo "$as_me:$LINENO: result: $LD" >&5
4782
echo "${ECHO_T}$LD" >&6
4783
else
4784
  echo "$as_me:$LINENO: result: no" >&5
4785
echo "${ECHO_T}no" >&6
4786
fi
4787
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4788
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4789
   { (exit 1); exit 1; }; }
4790
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4791
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4792
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4793
  echo $ECHO_N "(cached) $ECHO_C" >&6
4794
else
4795
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4796
case `$LD -v 2>&1 
4797
*GNU* | *'with BFD'*)
4798
  lt_cv_prog_gnu_ld=yes
4799
  ;;
4800
*)
4801
  lt_cv_prog_gnu_ld=no
4802
  ;;
4803
esac
4804
fi
4805
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4806
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4807
with_gnu_ld=$lt_cv_prog_gnu_ld
4808
 
4809
 
4810
 
4811
 
4812
 
4813
 
4814
 
4815
 
4816
 
4817
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4818
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4819
if test "${lt_cv_path_NM+set}" = set; then
4820
  echo $ECHO_N "(cached) $ECHO_C" >&6
4821
else
4822
  if test -n "$NM"; then
4823
  # Let the user override the test.
4824
  lt_cv_path_NM="$NM"
4825
else
4826
  lt_nm_to_check="${ac_tool_prefix}nm"
4827
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4828
    lt_nm_to_check="$lt_nm_to_check nm"
4829
  fi
4830
  for lt_tmp_nm in $lt_nm_to_check; do
4831
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4832
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4833
      IFS="$lt_save_ifs"
4834
      test -z "$ac_dir" && ac_dir=.
4835
      tmp_nm="$ac_dir/$lt_tmp_nm"
4836
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4837
        # Check to see if the nm accepts a BSD-compat flag.
4838
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4839
        #   nm: unknown option "B" ignored
4840
        # Tru64's nm complains that /dev/null is an invalid object file
4841
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4842
        */dev/null* | *'Invalid file or object type'*)
4843
          lt_cv_path_NM="$tmp_nm -B"
4844
          break
4845
          ;;
4846
        *)
4847
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4848
          */dev/null*)
4849
            lt_cv_path_NM="$tmp_nm -p"
4850
            break
4851
            ;;
4852
          *)
4853
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4854
            continue # so that we can try to find one that supports BSD flags
4855
            ;;
4856
          esac
4857
          ;;
4858
        esac
4859
      fi
4860
    done
4861
    IFS="$lt_save_ifs"
4862
  done
4863
  : ${lt_cv_path_NM=no}
4864
fi
4865
fi
4866
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4867
echo "${ECHO_T}$lt_cv_path_NM" >&6
4868
if test "$lt_cv_path_NM" != "no"; then
4869
  NM="$lt_cv_path_NM"
4870
else
4871
  # Didn't find any BSD compatible name lister, look for dumpbin.
4872
  if test -n "$ac_tool_prefix"; then
4873
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4874
  do
4875
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877
echo "$as_me:$LINENO: checking for $ac_word" >&5
4878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4880
  echo $ECHO_N "(cached) $ECHO_C" >&6
4881
else
4882
  if test -n "$DUMPBIN"; then
4883
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4884
else
4885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886
for as_dir in $PATH
4887
do
4888
  IFS=$as_save_IFS
4889
  test -z "$as_dir" && as_dir=.
4890
  for ac_exec_ext in '' $ac_executable_extensions; do
4891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894
    break 2
4895
  fi
4896
done
4897
done
4898
 
4899
fi
4900
fi
4901
DUMPBIN=$ac_cv_prog_DUMPBIN
4902
if test -n "$DUMPBIN"; then
4903
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4904
echo "${ECHO_T}$DUMPBIN" >&6
4905
else
4906
  echo "$as_me:$LINENO: result: no" >&5
4907
echo "${ECHO_T}no" >&6
4908
fi
4909
 
4910
    test -n "$DUMPBIN" && break
4911
  done
4912
fi
4913
if test -z "$DUMPBIN"; then
4914
  ac_ct_DUMPBIN=$DUMPBIN
4915
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4916
do
4917
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4918
set dummy $ac_prog; ac_word=$2
4919
echo "$as_me:$LINENO: checking for $ac_word" >&5
4920
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4922
  echo $ECHO_N "(cached) $ECHO_C" >&6
4923
else
4924
  if test -n "$ac_ct_DUMPBIN"; then
4925
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4926
else
4927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928
for as_dir in $PATH
4929
do
4930
  IFS=$as_save_IFS
4931
  test -z "$as_dir" && as_dir=.
4932
  for ac_exec_ext in '' $ac_executable_extensions; do
4933
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4935
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936
    break 2
4937
  fi
4938
done
4939
done
4940
 
4941
fi
4942
fi
4943
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4944
if test -n "$ac_ct_DUMPBIN"; then
4945
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4946
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4947
else
4948
  echo "$as_me:$LINENO: result: no" >&5
4949
echo "${ECHO_T}no" >&6
4950
fi
4951
 
4952
  test -n "$ac_ct_DUMPBIN" && break
4953
done
4954
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4955
 
4956
  DUMPBIN=$ac_ct_DUMPBIN
4957
fi
4958
 
4959
 
4960
  if test "$DUMPBIN" != ":"; then
4961
    NM="$DUMPBIN"
4962
  fi
4963
fi
4964
test -z "$NM" && NM=nm
4965
 
4966
 
4967
 
4968
 
4969
 
4970
 
4971
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4972
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4973
if test "${lt_cv_nm_interface+set}" = set; then
4974
  echo $ECHO_N "(cached) $ECHO_C" >&6
4975
else
4976
  lt_cv_nm_interface="BSD nm"
4977
  echo "int some_variable = 0;" > conftest.$ac_ext
4978
  (eval echo "\"\$as_me:4978: $ac_compile\"" >&5)
4979
  (eval "$ac_compile" 2>conftest.err)
4980
  cat conftest.err >&5
4981
  (eval echo "\"\$as_me:4981: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4982
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4983
  cat conftest.err >&5
4984
  (eval echo "\"\$as_me:4984: output\"" >&5)
4985
  cat conftest.out >&5
4986
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4987
    lt_cv_nm_interface="MS dumpbin"
4988
  fi
4989
  rm -f conftest*
4990
fi
4991
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4992
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4993
 
4994
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4995
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4996
LN_S=$as_ln_s
4997
if test "$LN_S" = "ln -s"; then
4998
  echo "$as_me:$LINENO: result: yes" >&5
4999
echo "${ECHO_T}yes" >&6
5000
else
5001
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5002
echo "${ECHO_T}no, using $LN_S" >&6
5003
fi
5004
 
5005
# find the maximum length of command line arguments
5006
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5007
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5008
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5009
  echo $ECHO_N "(cached) $ECHO_C" >&6
5010
else
5011
    i=0
5012
  teststring="ABCD"
5013
 
5014
  case $build_os in
5015
  msdosdjgpp*)
5016
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5017
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5018
    # during glob expansion).  Even if it were fixed, the result of this
5019
    # check would be larger than it should be.
5020
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5021
    ;;
5022
 
5023
  gnu*)
5024
    # Under GNU Hurd, this test is not required because there is
5025
    # no limit to the length of command line arguments.
5026
    # Libtool will interpret -1 as no limit whatsoever
5027
    lt_cv_sys_max_cmd_len=-1;
5028
    ;;
5029
 
5030
  cygwin* | mingw* | cegcc*)
5031
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5032
    # about 5 minutes as the teststring grows exponentially.
5033
    # Worse, since 9x/ME are not pre-emptively multitasking,
5034
    # you end up with a "frozen" computer, even though with patience
5035
    # the test eventually succeeds (with a max line length of 256k).
5036
    # Instead, let's just punt: use the minimum linelength reported by
5037
    # all of the supported platforms: 8192 (on NT/2K/XP).
5038
    lt_cv_sys_max_cmd_len=8192;
5039
    ;;
5040
 
5041
  amigaos*)
5042
    # On AmigaOS with pdksh, this test takes hours, literally.
5043
    # So we just punt and use a minimum line length of 8192.
5044
    lt_cv_sys_max_cmd_len=8192;
5045
    ;;
5046
 
5047
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5048
    # This has been around since 386BSD, at least.  Likely further.
5049
    if test -x /sbin/sysctl; then
5050
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5051
    elif test -x /usr/sbin/sysctl; then
5052
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5053
    else
5054
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5055
    fi
5056
    # And add a safety zone
5057
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5058
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5059
    ;;
5060
 
5061
  interix*)
5062
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5063
    lt_cv_sys_max_cmd_len=196608
5064
    ;;
5065
 
5066
  osf*)
5067
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5068
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5069
    # nice to cause kernel panics so lets avoid the loop below.
5070
    # First set a reasonable default.
5071
    lt_cv_sys_max_cmd_len=16384
5072
    #
5073
    if test -x /sbin/sysconfig; then
5074
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5075
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5076
      esac
5077
    fi
5078
    ;;
5079
  sco3.2v5*)
5080
    lt_cv_sys_max_cmd_len=102400
5081
    ;;
5082
  sysv5* | sco5v6* | sysv4.2uw2*)
5083
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5084
    if test -n "$kargmax"; then
5085
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5086
    else
5087
      lt_cv_sys_max_cmd_len=32768
5088
    fi
5089
    ;;
5090
  *)
5091
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5092
    if test -n "$lt_cv_sys_max_cmd_len"; then
5093
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5094
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5095
    else
5096
      # Make teststring a little bigger before we do anything with it.
5097
      # a 1K string should be a reasonable start.
5098
      for i in 1 2 3 4 5 6 7 8 ; do
5099
        teststring=$teststring$teststring
5100
      done
5101
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5102
      # If test is not a shell built-in, we'll probably end up computing a
5103
      # maximum length that is only half of the actual maximum length, but
5104
      # we can't tell.
5105
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5106
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5107
              test $i != 17 # 1/2 MB should be enough
5108
      do
5109
        i=`expr $i + 1`
5110
        teststring=$teststring$teststring
5111
      done
5112
      # Only check the string length outside the loop.
5113
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5114
      teststring=
5115
      # Add a significant safety factor because C++ compilers can tack on
5116
      # massive amounts of additional arguments before passing them to the
5117
      # linker.  It appears as though 1/2 is a usable value.
5118
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5119
    fi
5120
    ;;
5121
  esac
5122
 
5123
fi
5124
 
5125
if test -n $lt_cv_sys_max_cmd_len ; then
5126
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5127
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5128
else
5129
  echo "$as_me:$LINENO: result: none" >&5
5130
echo "${ECHO_T}none" >&6
5131
fi
5132
max_cmd_len=$lt_cv_sys_max_cmd_len
5133
 
5134
 
5135
 
5136
 
5137
 
5138
 
5139
: ${CP="cp -f"}
5140
: ${MV="mv -f"}
5141
: ${RM="rm -f"}
5142
 
5143
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5144
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5145
# Try some XSI features
5146
xsi_shell=no
5147
( _lt_dummy="a/b/c"
5148
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5149
      = c,a/b,, \
5150
    && eval 'test $(( 1 + 1 )) -eq 2 \
5151
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5152
  && xsi_shell=yes
5153
echo "$as_me:$LINENO: result: $xsi_shell" >&5
5154
echo "${ECHO_T}$xsi_shell" >&6
5155
 
5156
 
5157
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5158
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5159
lt_shell_append=no
5160
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5161
    >/dev/null 2>&1 \
5162
  && lt_shell_append=yes
5163
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5164
echo "${ECHO_T}$lt_shell_append" >&6
5165
 
5166
 
5167
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5168
  lt_unset=unset
5169
else
5170
  lt_unset=false
5171
fi
5172
 
5173
 
5174
 
5175
 
5176
 
5177
# test EBCDIC or ASCII
5178
case `echo X|tr X '\101'` in
5179
 A) # ASCII based system
5180
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5181
  lt_SP2NL='tr \040 \012'
5182
  lt_NL2SP='tr \015\012 \040\040'
5183
  ;;
5184
 *) # EBCDIC based system
5185
  lt_SP2NL='tr \100 \n'
5186
  lt_NL2SP='tr \r\n \100\100'
5187
  ;;
5188
esac
5189
 
5190
 
5191
 
5192
 
5193
 
5194
 
5195
 
5196
 
5197
 
5198
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5199
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5200
if test "${lt_cv_ld_reload_flag+set}" = set; then
5201
  echo $ECHO_N "(cached) $ECHO_C" >&6
5202
else
5203
  lt_cv_ld_reload_flag='-r'
5204
fi
5205
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5206
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5207
reload_flag=$lt_cv_ld_reload_flag
5208
case $reload_flag in
5209
"" | " "*) ;;
5210
*) reload_flag=" $reload_flag" ;;
5211
esac
5212
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5213
case $host_os in
5214
  darwin*)
5215
    if test "$GCC" = yes; then
5216
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5217
    else
5218
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5219
    fi
5220
    ;;
5221
esac
5222
 
5223
 
5224
 
5225
 
5226
 
5227
 
5228
 
5229
 
5230
 
5231
if test -n "$ac_tool_prefix"; then
5232
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5233
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5234
echo "$as_me:$LINENO: checking for $ac_word" >&5
5235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5237
  echo $ECHO_N "(cached) $ECHO_C" >&6
5238
else
5239
  if test -n "$OBJDUMP"; then
5240
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5241
else
5242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243
for as_dir in $PATH
5244
do
5245
  IFS=$as_save_IFS
5246
  test -z "$as_dir" && as_dir=.
5247
  for ac_exec_ext in '' $ac_executable_extensions; do
5248
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251
    break 2
5252
  fi
5253
done
5254
done
5255
 
5256
fi
5257
fi
5258
OBJDUMP=$ac_cv_prog_OBJDUMP
5259
if test -n "$OBJDUMP"; then
5260
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5261
echo "${ECHO_T}$OBJDUMP" >&6
5262
else
5263
  echo "$as_me:$LINENO: result: no" >&5
5264
echo "${ECHO_T}no" >&6
5265
fi
5266
 
5267
fi
5268
if test -z "$ac_cv_prog_OBJDUMP"; then
5269
  ac_ct_OBJDUMP=$OBJDUMP
5270
  # Extract the first word of "objdump", so it can be a program name with args.
5271
set dummy objdump; ac_word=$2
5272
echo "$as_me:$LINENO: checking for $ac_word" >&5
5273
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5275
  echo $ECHO_N "(cached) $ECHO_C" >&6
5276
else
5277
  if test -n "$ac_ct_OBJDUMP"; then
5278
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5279
else
5280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281
for as_dir in $PATH
5282
do
5283
  IFS=$as_save_IFS
5284
  test -z "$as_dir" && as_dir=.
5285
  for ac_exec_ext in '' $ac_executable_extensions; do
5286
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5288
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289
    break 2
5290
  fi
5291
done
5292
done
5293
 
5294
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5295
fi
5296
fi
5297
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5298
if test -n "$ac_ct_OBJDUMP"; then
5299
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5300
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5301
else
5302
  echo "$as_me:$LINENO: result: no" >&5
5303
echo "${ECHO_T}no" >&6
5304
fi
5305
 
5306
  OBJDUMP=$ac_ct_OBJDUMP
5307
else
5308
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5309
fi
5310
 
5311
test -z "$OBJDUMP" && OBJDUMP=objdump
5312
 
5313
 
5314
 
5315
 
5316
 
5317
 
5318
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5319
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5320
if test "${lt_cv_deplibs_check_method+set}" = set; then
5321
  echo $ECHO_N "(cached) $ECHO_C" >&6
5322
else
5323
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5324
lt_cv_file_magic_test_file=
5325
lt_cv_deplibs_check_method='unknown'
5326
# Need to set the preceding variable on all platforms that support
5327
# interlibrary dependencies.
5328
# 'none' -- dependencies not supported.
5329
# `unknown' -- same as none, but documents that we really don't know.
5330
# 'pass_all' -- all dependencies passed with no checks.
5331
# 'test_compile' -- check by making test program.
5332
# 'file_magic [[regex]]' -- check by looking for files in library path
5333
# which responds to the $file_magic_cmd with a given extended regex.
5334
# If you have `file' or equivalent on your system and you're not sure
5335
# whether `pass_all' will *always* work, you probably want this one.
5336
 
5337
case $host_os in
5338
aix[4-9]*)
5339
  lt_cv_deplibs_check_method=pass_all
5340
  ;;
5341
 
5342
beos*)
5343
  lt_cv_deplibs_check_method=pass_all
5344
  ;;
5345
 
5346
bsdi[45]*)
5347
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5348
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5349
  lt_cv_file_magic_test_file=/shlib/libc.so
5350
  ;;
5351
 
5352
cygwin*)
5353
  # func_win32_libid is a shell function defined in ltmain.sh
5354
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5355
  lt_cv_file_magic_cmd='func_win32_libid'
5356
  ;;
5357
 
5358
mingw* | pw32*)
5359
  # Base MSYS/MinGW do not provide the 'file' command needed by
5360
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5361
  # unless we find 'file', for example because we are cross-compiling.
5362
  if ( file / ) >/dev/null 2>&1; then
5363
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5364
    lt_cv_file_magic_cmd='func_win32_libid'
5365
  else
5366
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5367
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5368
  fi
5369
  ;;
5370
 
5371
cegcc)
5372
  # use the weaker test based on 'objdump'. See mingw*.
5373
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5374
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5375
  ;;
5376
 
5377
darwin* | rhapsody*)
5378
  lt_cv_deplibs_check_method=pass_all
5379
  ;;
5380
 
5381
freebsd* | dragonfly*)
5382
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5383
    case $host_cpu in
5384
    i*86 )
5385
      # Not sure whether the presence of OpenBSD here was a mistake.
5386
      # Let's accept both of them until this is cleared up.
5387
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5388
      lt_cv_file_magic_cmd=/usr/bin/file
5389
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5390
      ;;
5391
    esac
5392
  else
5393
    lt_cv_deplibs_check_method=pass_all
5394
  fi
5395
  ;;
5396
 
5397
gnu*)
5398
  lt_cv_deplibs_check_method=pass_all
5399
  ;;
5400
 
5401
hpux10.20* | hpux11*)
5402
  lt_cv_file_magic_cmd=/usr/bin/file
5403
  case $host_cpu in
5404
  ia64*)
5405
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5406
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5407
    ;;
5408
  hppa*64*)
5409
    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]'
5410
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5411
    ;;
5412
  *)
5413
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5414
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5415
    ;;
5416
  esac
5417
  ;;
5418
 
5419
interix[3-9]*)
5420
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5421
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5422
  ;;
5423
 
5424
irix5* | irix6* | nonstopux*)
5425
  case $LD in
5426
  *-32|*"-32 ") libmagic=32-bit;;
5427
  *-n32|*"-n32 ") libmagic=N32;;
5428
  *-64|*"-64 ") libmagic=64-bit;;
5429
  *) libmagic=never-match;;
5430
  esac
5431
  lt_cv_deplibs_check_method=pass_all
5432
  ;;
5433
 
5434
# This must be Linux ELF.
5435
linux* | k*bsd*-gnu)
5436
  lt_cv_deplibs_check_method=pass_all
5437
  ;;
5438
 
5439
netbsd*)
5440
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5441
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5442
  else
5443
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5444
  fi
5445
  ;;
5446
 
5447
newos6*)
5448
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5449
  lt_cv_file_magic_cmd=/usr/bin/file
5450
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5451
  ;;
5452
 
5453
*nto* | *qnx*)
5454
  lt_cv_deplibs_check_method=pass_all
5455
  ;;
5456
 
5457
openbsd*)
5458
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5459
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5460
  else
5461
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5462
  fi
5463
  ;;
5464
 
5465
osf3* | osf4* | osf5*)
5466
  lt_cv_deplibs_check_method=pass_all
5467
  ;;
5468
 
5469
rdos*)
5470
  lt_cv_deplibs_check_method=pass_all
5471
  ;;
5472
 
5473
solaris*)
5474
  lt_cv_deplibs_check_method=pass_all
5475
  ;;
5476
 
5477
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5478
  lt_cv_deplibs_check_method=pass_all
5479
  ;;
5480
 
5481
sysv4 | sysv4.3*)
5482
  case $host_vendor in
5483
  motorola)
5484
    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]'
5485
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5486
    ;;
5487
  ncr)
5488
    lt_cv_deplibs_check_method=pass_all
5489
    ;;
5490
  sequent)
5491
    lt_cv_file_magic_cmd='/bin/file'
5492
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5493
    ;;
5494
  sni)
5495
    lt_cv_file_magic_cmd='/bin/file'
5496
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5497
    lt_cv_file_magic_test_file=/lib/libc.so
5498
    ;;
5499
  siemens)
5500
    lt_cv_deplibs_check_method=pass_all
5501
    ;;
5502
  pc)
5503
    lt_cv_deplibs_check_method=pass_all
5504
    ;;
5505
  esac
5506
  ;;
5507
 
5508
tpf*)
5509
  lt_cv_deplibs_check_method=pass_all
5510
  ;;
5511
esac
5512
 
5513
fi
5514
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5515
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5516
file_magic_cmd=$lt_cv_file_magic_cmd
5517
deplibs_check_method=$lt_cv_deplibs_check_method
5518
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5519
 
5520
 
5521
 
5522
 
5523
 
5524
 
5525
 
5526
 
5527
 
5528
 
5529
 
5530
 
5531
if test -n "$ac_tool_prefix"; then
5532
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5533
set dummy ${ac_tool_prefix}ar; ac_word=$2
5534
echo "$as_me:$LINENO: checking for $ac_word" >&5
5535
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5536
if test "${ac_cv_prog_AR+set}" = set; then
5537
  echo $ECHO_N "(cached) $ECHO_C" >&6
5538
else
5539
  if test -n "$AR"; then
5540
  ac_cv_prog_AR="$AR" # Let the user override the test.
5541
else
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543
for as_dir in $PATH
5544
do
5545
  IFS=$as_save_IFS
5546
  test -z "$as_dir" && as_dir=.
5547
  for ac_exec_ext in '' $ac_executable_extensions; do
5548
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5550
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551
    break 2
5552
  fi
5553
done
5554
done
5555
 
5556
fi
5557
fi
5558
AR=$ac_cv_prog_AR
5559
if test -n "$AR"; then
5560
  echo "$as_me:$LINENO: result: $AR" >&5
5561
echo "${ECHO_T}$AR" >&6
5562
else
5563
  echo "$as_me:$LINENO: result: no" >&5
5564
echo "${ECHO_T}no" >&6
5565
fi
5566
 
5567
fi
5568
if test -z "$ac_cv_prog_AR"; then
5569
  ac_ct_AR=$AR
5570
  # Extract the first word of "ar", so it can be a program name with args.
5571
set dummy ar; ac_word=$2
5572
echo "$as_me:$LINENO: checking for $ac_word" >&5
5573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5574
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5575
  echo $ECHO_N "(cached) $ECHO_C" >&6
5576
else
5577
  if test -n "$ac_ct_AR"; then
5578
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5579
else
5580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581
for as_dir in $PATH
5582
do
5583
  IFS=$as_save_IFS
5584
  test -z "$as_dir" && as_dir=.
5585
  for ac_exec_ext in '' $ac_executable_extensions; do
5586
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587
    ac_cv_prog_ac_ct_AR="ar"
5588
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589
    break 2
5590
  fi
5591
done
5592
done
5593
 
5594
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5595
fi
5596
fi
5597
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5598
if test -n "$ac_ct_AR"; then
5599
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5600
echo "${ECHO_T}$ac_ct_AR" >&6
5601
else
5602
  echo "$as_me:$LINENO: result: no" >&5
5603
echo "${ECHO_T}no" >&6
5604
fi
5605
 
5606
  AR=$ac_ct_AR
5607
else
5608
  AR="$ac_cv_prog_AR"
5609
fi
5610
 
5611
test -z "$AR" && AR=ar
5612
test -z "$AR_FLAGS" && AR_FLAGS=cru
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
if test -n "$ac_tool_prefix"; then
5625
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5626
set dummy ${ac_tool_prefix}strip; ac_word=$2
5627
echo "$as_me:$LINENO: checking for $ac_word" >&5
5628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629
if test "${ac_cv_prog_STRIP+set}" = set; then
5630
  echo $ECHO_N "(cached) $ECHO_C" >&6
5631
else
5632
  if test -n "$STRIP"; then
5633
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5634
else
5635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636
for as_dir in $PATH
5637
do
5638
  IFS=$as_save_IFS
5639
  test -z "$as_dir" && as_dir=.
5640
  for ac_exec_ext in '' $ac_executable_extensions; do
5641
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5643
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644
    break 2
5645
  fi
5646
done
5647
done
5648
 
5649
fi
5650
fi
5651
STRIP=$ac_cv_prog_STRIP
5652
if test -n "$STRIP"; then
5653
  echo "$as_me:$LINENO: result: $STRIP" >&5
5654
echo "${ECHO_T}$STRIP" >&6
5655
else
5656
  echo "$as_me:$LINENO: result: no" >&5
5657
echo "${ECHO_T}no" >&6
5658
fi
5659
 
5660
fi
5661
if test -z "$ac_cv_prog_STRIP"; then
5662
  ac_ct_STRIP=$STRIP
5663
  # Extract the first word of "strip", so it can be a program name with args.
5664
set dummy strip; ac_word=$2
5665
echo "$as_me:$LINENO: checking for $ac_word" >&5
5666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5668
  echo $ECHO_N "(cached) $ECHO_C" >&6
5669
else
5670
  if test -n "$ac_ct_STRIP"; then
5671
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672
else
5673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674
for as_dir in $PATH
5675
do
5676
  IFS=$as_save_IFS
5677
  test -z "$as_dir" && as_dir=.
5678
  for ac_exec_ext in '' $ac_executable_extensions; do
5679
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680
    ac_cv_prog_ac_ct_STRIP="strip"
5681
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682
    break 2
5683
  fi
5684
done
5685
done
5686
 
5687
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5688
fi
5689
fi
5690
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691
if test -n "$ac_ct_STRIP"; then
5692
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5693
echo "${ECHO_T}$ac_ct_STRIP" >&6
5694
else
5695
  echo "$as_me:$LINENO: result: no" >&5
5696
echo "${ECHO_T}no" >&6
5697
fi
5698
 
5699
  STRIP=$ac_ct_STRIP
5700
else
5701
  STRIP="$ac_cv_prog_STRIP"
5702
fi
5703
 
5704
test -z "$STRIP" && STRIP=:
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
if test -n "$ac_tool_prefix"; then
5712
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5713
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5714
echo "$as_me:$LINENO: checking for $ac_word" >&5
5715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716
if test "${ac_cv_prog_RANLIB+set}" = set; then
5717
  echo $ECHO_N "(cached) $ECHO_C" >&6
5718
else
5719
  if test -n "$RANLIB"; then
5720
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5721
else
5722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723
for as_dir in $PATH
5724
do
5725
  IFS=$as_save_IFS
5726
  test -z "$as_dir" && as_dir=.
5727
  for ac_exec_ext in '' $ac_executable_extensions; do
5728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731
    break 2
5732
  fi
5733
done
5734
done
5735
 
5736
fi
5737
fi
5738
RANLIB=$ac_cv_prog_RANLIB
5739
if test -n "$RANLIB"; then
5740
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5741
echo "${ECHO_T}$RANLIB" >&6
5742
else
5743
  echo "$as_me:$LINENO: result: no" >&5
5744
echo "${ECHO_T}no" >&6
5745
fi
5746
 
5747
fi
5748
if test -z "$ac_cv_prog_RANLIB"; then
5749
  ac_ct_RANLIB=$RANLIB
5750
  # Extract the first word of "ranlib", so it can be a program name with args.
5751
set dummy ranlib; ac_word=$2
5752
echo "$as_me:$LINENO: checking for $ac_word" >&5
5753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5754
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5755
  echo $ECHO_N "(cached) $ECHO_C" >&6
5756
else
5757
  if test -n "$ac_ct_RANLIB"; then
5758
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5759
else
5760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761
for as_dir in $PATH
5762
do
5763
  IFS=$as_save_IFS
5764
  test -z "$as_dir" && as_dir=.
5765
  for ac_exec_ext in '' $ac_executable_extensions; do
5766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769
    break 2
5770
  fi
5771
done
5772
done
5773
 
5774
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5775
fi
5776
fi
5777
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5778
if test -n "$ac_ct_RANLIB"; then
5779
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5780
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5781
else
5782
  echo "$as_me:$LINENO: result: no" >&5
5783
echo "${ECHO_T}no" >&6
5784
fi
5785
 
5786
  RANLIB=$ac_ct_RANLIB
5787
else
5788
  RANLIB="$ac_cv_prog_RANLIB"
5789
fi
5790
 
5791
test -z "$RANLIB" && RANLIB=:
5792
 
5793
 
5794
 
5795
 
5796
 
5797
 
5798
# Determine commands to create old-style static archives.
5799
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5800
old_postinstall_cmds='chmod 644 $oldlib'
5801
old_postuninstall_cmds=
5802
 
5803
if test -n "$RANLIB"; then
5804
  case $host_os in
5805
  openbsd*)
5806
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5807
    ;;
5808
  *)
5809
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5810
    ;;
5811
  esac
5812
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5813
fi
5814
 
5815
 
5816
 
5817
 
5818
 
5819
 
5820
 
5821
 
5822
 
5823
 
5824
 
5825
 
5826
 
5827
 
5828
 
5829
 
5830
 
5831
 
5832
 
5833
 
5834
 
5835
 
5836
 
5837
 
5838
 
5839
 
5840
 
5841
 
5842
 
5843
 
5844
 
5845
 
5846
 
5847
 
5848
# If no C compiler was specified, use CC.
5849
LTCC=${LTCC-"$CC"}
5850
 
5851
# If no C compiler flags were specified, use CFLAGS.
5852
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5853
 
5854
# Allow CC to be a program name with arguments.
5855
compiler=$CC
5856
 
5857
 
5858
# Check for command to grab the raw symbol name followed by C symbol from nm.
5859
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5860
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5861
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5862
  echo $ECHO_N "(cached) $ECHO_C" >&6
5863
else
5864
 
5865
# These are sane defaults that work on at least a few old systems.
5866
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5867
 
5868
# Character class describing NM global symbol codes.
5869
symcode='[BCDEGRST]'
5870
 
5871
# Regexp to match symbols that can be accessed directly from C.
5872
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5873
 
5874
# Define system-specific variables.
5875
case $host_os in
5876
aix*)
5877
  symcode='[BCDT]'
5878
  ;;
5879
cygwin* | mingw* | pw32* | cegcc*)
5880
  symcode='[ABCDGISTW]'
5881
  ;;
5882
hpux*)
5883
  if test "$host_cpu" = ia64; then
5884
    symcode='[ABCDEGRST]'
5885
  fi
5886
  ;;
5887
irix* | nonstopux*)
5888
  symcode='[BCDEGRST]'
5889
  ;;
5890
osf*)
5891
  symcode='[BCDEGQRST]'
5892
  ;;
5893
solaris*)
5894
  symcode='[BDRT]'
5895
  ;;
5896
sco3.2v5*)
5897
  symcode='[DT]'
5898
  ;;
5899
sysv4.2uw2*)
5900
  symcode='[DT]'
5901
  ;;
5902
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5903
  symcode='[ABDT]'
5904
  ;;
5905
sysv4)
5906
  symcode='[DFNSTU]'
5907
  ;;
5908
esac
5909
 
5910
# If we're using GNU nm, then use its standard symbol codes.
5911
case `$NM -V 2>&1` in
5912
*GNU* | *'with BFD'*)
5913
  symcode='[ABCDGIRSTW]' ;;
5914
esac
5915
 
5916
# Transform an extracted symbol line into a proper C declaration.
5917
# Some systems (esp. on ia64) link data and code symbols differently,
5918
# so use this general approach.
5919
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5920
 
5921
# Transform an extracted symbol line into symbol name and symbol address
5922
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5923
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'"
5924
 
5925
# Handle CRLF in mingw tool chain
5926
opt_cr=
5927
case $build_os in
5928
mingw*)
5929
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5930
  ;;
5931
esac
5932
 
5933
# Try without a prefix underscore, then with it.
5934
for ac_symprfx in "" "_"; do
5935
 
5936
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5937
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5938
 
5939
  # Write the raw and C identifiers.
5940
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5941
    # Fake it for dumpbin and say T for any non-static function
5942
    # and D for any global variable.
5943
    # Also find C++ and __fastcall symbols from MSVC++,
5944
    # which start with @ or ?.
5945
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5946
"     {last_section=section; section=\$ 3};"\
5947
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5948
"     \$ 0!~/External *\|/{next};"\
5949
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5950
"     {if(hide[section]) next};"\
5951
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5952
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5953
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5954
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5955
"     ' prfx=^$ac_symprfx"
5956
  else
5957
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5958
  fi
5959
 
5960
  # Check to see that the pipe works correctly.
5961
  pipe_works=no
5962
 
5963
  rm -f conftest*
5964
  cat > conftest.$ac_ext <<_LT_EOF
5965
#ifdef __cplusplus
5966
extern "C" {
5967
#endif
5968
char nm_test_var;
5969
void nm_test_func(void);
5970
void nm_test_func(void){}
5971
#ifdef __cplusplus
5972
}
5973
#endif
5974
int main(){nm_test_var='a';nm_test_func();return(0);}
5975
_LT_EOF
5976
 
5977
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978
  (eval $ac_compile) 2>&5
5979
  ac_status=$?
5980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981
  (exit $ac_status); }; then
5982
    # Now try to grab the symbols.
5983
    nlist=conftest.nm
5984
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5985
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5986
  ac_status=$?
5987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
  (exit $ac_status); } && test -s "$nlist"; then
5989
      # Try sorting and uniquifying the output.
5990
      if sort "$nlist" | uniq > "$nlist"T; then
5991
        mv -f "$nlist"T "$nlist"
5992
      else
5993
        rm -f "$nlist"T
5994
      fi
5995
 
5996
      # Make sure that we snagged all the symbols we need.
5997
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5998
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5999
          cat <<_LT_EOF > conftest.$ac_ext
6000
#ifdef __cplusplus
6001
extern "C" {
6002
#endif
6003
 
6004
_LT_EOF
6005
          # Now generate the symbol file.
6006
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6007
 
6008
          cat <<_LT_EOF >> conftest.$ac_ext
6009
 
6010
/* The mapping between symbol names and symbols.  */
6011
const struct {
6012
  const char *name;
6013
  void       *address;
6014
}
6015
lt__PROGRAM__LTX_preloaded_symbols[] =
6016
{
6017
  { "@PROGRAM@", (void *) 0 },
6018
_LT_EOF
6019
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6020
          cat <<\_LT_EOF >> conftest.$ac_ext
6021
  {0, (void *) 0}
6022
};
6023
 
6024
/* This works around a problem in FreeBSD linker */
6025
#ifdef FREEBSD_WORKAROUND
6026
static const void *lt_preloaded_setup() {
6027
  return lt__PROGRAM__LTX_preloaded_symbols;
6028
}
6029
#endif
6030
 
6031
#ifdef __cplusplus
6032
}
6033
#endif
6034
_LT_EOF
6035
          # Now try linking the two files.
6036
          mv conftest.$ac_objext conftstm.$ac_objext
6037
          lt_save_LIBS="$LIBS"
6038
          lt_save_CFLAGS="$CFLAGS"
6039
          LIBS="conftstm.$ac_objext"
6040
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6041
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042
  (eval $ac_link) 2>&5
6043
  ac_status=$?
6044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6046
            pipe_works=yes
6047
          fi
6048
          LIBS="$lt_save_LIBS"
6049
          CFLAGS="$lt_save_CFLAGS"
6050
        else
6051
          echo "cannot find nm_test_func in $nlist" >&5
6052
        fi
6053
      else
6054
        echo "cannot find nm_test_var in $nlist" >&5
6055
      fi
6056
    else
6057
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6058
    fi
6059
  else
6060
    echo "$progname: failed program was:" >&5
6061
    cat conftest.$ac_ext >&5
6062
  fi
6063
  rm -rf conftest* conftst*
6064
 
6065
  # Do not use the global_symbol_pipe unless it works.
6066
  if test "$pipe_works" = yes; then
6067
    break
6068
  else
6069
    lt_cv_sys_global_symbol_pipe=
6070
  fi
6071
done
6072
 
6073
fi
6074
 
6075
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6076
  lt_cv_sys_global_symbol_to_cdecl=
6077
fi
6078
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6079
  echo "$as_me:$LINENO: result: failed" >&5
6080
echo "${ECHO_T}failed" >&6
6081
else
6082
  echo "$as_me:$LINENO: result: ok" >&5
6083
echo "${ECHO_T}ok" >&6
6084
fi
6085
 
6086
 
6087
 
6088
 
6089
 
6090
 
6091
 
6092
 
6093
 
6094
 
6095
 
6096
 
6097
 
6098
 
6099
 
6100
 
6101
 
6102
 
6103
 
6104
 
6105
 
6106
 
6107
 
6108
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6109
if test "${enable_libtool_lock+set}" = set; then
6110
  enableval="$enable_libtool_lock"
6111
 
6112
fi;
6113
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6114
 
6115
# Some flags need to be propagated to the compiler or linker for good
6116
# libtool support.
6117
case $host in
6118
ia64-*-hpux*)
6119
  # Find out which ABI we are using.
6120
  echo 'int i;' > conftest.$ac_ext
6121
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122
  (eval $ac_compile) 2>&5
6123
  ac_status=$?
6124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125
  (exit $ac_status); }; then
6126
    case `/usr/bin/file conftest.$ac_objext` in
6127
      *ELF-32*)
6128
        HPUX_IA64_MODE="32"
6129
        ;;
6130
      *ELF-64*)
6131
        HPUX_IA64_MODE="64"
6132
        ;;
6133
    esac
6134
  fi
6135
  rm -rf conftest*
6136
  ;;
6137
*-*-irix6*)
6138
  # Find out which ABI we are using.
6139
  echo '#line 6139 "configure"' > 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
    if test "$lt_cv_prog_gnu_ld" = yes; then
6146
      case `/usr/bin/file conftest.$ac_objext` in
6147
        *32-bit*)
6148
          LD="${LD-ld} -melf32bsmip"
6149
          ;;
6150
        *N32*)
6151
          LD="${LD-ld} -melf32bmipn32"
6152
          ;;
6153
        *64-bit*)
6154
          LD="${LD-ld} -melf64bmip"
6155
        ;;
6156
      esac
6157
    else
6158
      case `/usr/bin/file conftest.$ac_objext` in
6159
        *32-bit*)
6160
          LD="${LD-ld} -32"
6161
          ;;
6162
        *N32*)
6163
          LD="${LD-ld} -n32"
6164
          ;;
6165
        *64-bit*)
6166
          LD="${LD-ld} -64"
6167
          ;;
6168
      esac
6169
    fi
6170
  fi
6171
  rm -rf conftest*
6172
  ;;
6173
 
6174
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6175
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6176
  # Find out which ABI we are using.
6177
  echo 'int i;' > conftest.$ac_ext
6178
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179
  (eval $ac_compile) 2>&5
6180
  ac_status=$?
6181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
  (exit $ac_status); }; then
6183
    case `/usr/bin/file conftest.o` in
6184
      *32-bit*)
6185
        case $host in
6186
          x86_64-*kfreebsd*-gnu)
6187
            LD="${LD-ld} -m elf_i386_fbsd"
6188
            ;;
6189
          x86_64-*linux*)
6190
            LD="${LD-ld} -m elf_i386"
6191
            ;;
6192
          ppc64-*linux*|powerpc64-*linux*)
6193
            LD="${LD-ld} -m elf32ppclinux"
6194
            ;;
6195
          s390x-*linux*)
6196
            LD="${LD-ld} -m elf_s390"
6197
            ;;
6198
          sparc64-*linux*)
6199
            LD="${LD-ld} -m elf32_sparc"
6200
            ;;
6201
        esac
6202
        ;;
6203
      *64-bit*)
6204
        case $host in
6205
          x86_64-*kfreebsd*-gnu)
6206
            LD="${LD-ld} -m elf_x86_64_fbsd"
6207
            ;;
6208
          x86_64-*linux*)
6209
            LD="${LD-ld} -m elf_x86_64"
6210
            ;;
6211
          ppc*-*linux*|powerpc*-*linux*)
6212
            LD="${LD-ld} -m elf64ppc"
6213
            ;;
6214
          s390*-*linux*|s390*-*tpf*)
6215
            LD="${LD-ld} -m elf64_s390"
6216
            ;;
6217
          sparc*-*linux*)
6218
            LD="${LD-ld} -m elf64_sparc"
6219
            ;;
6220
        esac
6221
        ;;
6222
    esac
6223
  fi
6224
  rm -rf conftest*
6225
  ;;
6226
 
6227
*-*-sco3.2v5*)
6228
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6229
  SAVE_CFLAGS="$CFLAGS"
6230
  CFLAGS="$CFLAGS -belf"
6231
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6232
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6233
if test "${lt_cv_cc_needs_belf+set}" = set; then
6234
  echo $ECHO_N "(cached) $ECHO_C" >&6
6235
else
6236
  ac_ext=c
6237
ac_cpp='$CPP $CPPFLAGS'
6238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241
 
6242
     cat >conftest.$ac_ext <<_ACEOF
6243
/* confdefs.h.  */
6244
_ACEOF
6245
cat confdefs.h >>conftest.$ac_ext
6246
cat >>conftest.$ac_ext <<_ACEOF
6247
/* end confdefs.h.  */
6248
 
6249
int
6250
main ()
6251
{
6252
 
6253
  ;
6254
  return 0;
6255
}
6256
_ACEOF
6257
rm -f conftest.$ac_objext conftest$ac_exeext
6258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6259
  (eval $ac_link) 2>conftest.er1
6260
  ac_status=$?
6261
  grep -v '^ *+' conftest.er1 >conftest.err
6262
  rm -f conftest.er1
6263
  cat conftest.err >&5
6264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265
  (exit $ac_status); } &&
6266
         { ac_try='test -z "$ac_c_werror_flag"
6267
                         || test ! -s conftest.err'
6268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269
  (eval $ac_try) 2>&5
6270
  ac_status=$?
6271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272
  (exit $ac_status); }; } &&
6273
         { ac_try='test -s conftest$ac_exeext'
6274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275
  (eval $ac_try) 2>&5
6276
  ac_status=$?
6277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
  (exit $ac_status); }; }; then
6279
  lt_cv_cc_needs_belf=yes
6280
else
6281
  echo "$as_me: failed program was:" >&5
6282
sed 's/^/| /' conftest.$ac_ext >&5
6283
 
6284
lt_cv_cc_needs_belf=no
6285
fi
6286
rm -f conftest.err conftest.$ac_objext \
6287
      conftest$ac_exeext conftest.$ac_ext
6288
     ac_ext=c
6289
ac_cpp='$CPP $CPPFLAGS'
6290
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6291
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6292
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293
 
6294
fi
6295
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6296
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6297
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6298
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6299
    CFLAGS="$SAVE_CFLAGS"
6300
  fi
6301
  ;;
6302
sparc*-*solaris*)
6303
  # Find out which ABI we are using.
6304
  echo 'int i;' > conftest.$ac_ext
6305
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306
  (eval $ac_compile) 2>&5
6307
  ac_status=$?
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309
  (exit $ac_status); }; then
6310
    case `/usr/bin/file conftest.o` in
6311
    *64-bit*)
6312
      case $lt_cv_prog_gnu_ld in
6313
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6314
      *)
6315
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6316
          LD="${LD-ld} -64"
6317
        fi
6318
        ;;
6319
      esac
6320
      ;;
6321
    esac
6322
  fi
6323
  rm -rf conftest*
6324
  ;;
6325
esac
6326
 
6327
need_locks="$enable_libtool_lock"
6328
 
6329
 
6330
  case $host_os in
6331
    rhapsody* | darwin*)
6332
    if test -n "$ac_tool_prefix"; then
6333
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6334
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6335
echo "$as_me:$LINENO: checking for $ac_word" >&5
6336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6338
  echo $ECHO_N "(cached) $ECHO_C" >&6
6339
else
6340
  if test -n "$DSYMUTIL"; then
6341
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6342
else
6343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344
for as_dir in $PATH
6345
do
6346
  IFS=$as_save_IFS
6347
  test -z "$as_dir" && as_dir=.
6348
  for ac_exec_ext in '' $ac_executable_extensions; do
6349
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6351
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352
    break 2
6353
  fi
6354
done
6355
done
6356
 
6357
fi
6358
fi
6359
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6360
if test -n "$DSYMUTIL"; then
6361
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6362
echo "${ECHO_T}$DSYMUTIL" >&6
6363
else
6364
  echo "$as_me:$LINENO: result: no" >&5
6365
echo "${ECHO_T}no" >&6
6366
fi
6367
 
6368
fi
6369
if test -z "$ac_cv_prog_DSYMUTIL"; then
6370
  ac_ct_DSYMUTIL=$DSYMUTIL
6371
  # Extract the first word of "dsymutil", so it can be a program name with args.
6372
set dummy dsymutil; ac_word=$2
6373
echo "$as_me:$LINENO: checking for $ac_word" >&5
6374
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6376
  echo $ECHO_N "(cached) $ECHO_C" >&6
6377
else
6378
  if test -n "$ac_ct_DSYMUTIL"; then
6379
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6380
else
6381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382
for as_dir in $PATH
6383
do
6384
  IFS=$as_save_IFS
6385
  test -z "$as_dir" && as_dir=.
6386
  for ac_exec_ext in '' $ac_executable_extensions; do
6387
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6389
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390
    break 2
6391
  fi
6392
done
6393
done
6394
 
6395
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6396
fi
6397
fi
6398
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6399
if test -n "$ac_ct_DSYMUTIL"; then
6400
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6401
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6402
else
6403
  echo "$as_me:$LINENO: result: no" >&5
6404
echo "${ECHO_T}no" >&6
6405
fi
6406
 
6407
  DSYMUTIL=$ac_ct_DSYMUTIL
6408
else
6409
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6410
fi
6411
 
6412
    if test -n "$ac_tool_prefix"; then
6413
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6414
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6415
echo "$as_me:$LINENO: checking for $ac_word" >&5
6416
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6417
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6418
  echo $ECHO_N "(cached) $ECHO_C" >&6
6419
else
6420
  if test -n "$NMEDIT"; then
6421
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6422
else
6423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424
for as_dir in $PATH
6425
do
6426
  IFS=$as_save_IFS
6427
  test -z "$as_dir" && as_dir=.
6428
  for ac_exec_ext in '' $ac_executable_extensions; do
6429
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6431
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432
    break 2
6433
  fi
6434
done
6435
done
6436
 
6437
fi
6438
fi
6439
NMEDIT=$ac_cv_prog_NMEDIT
6440
if test -n "$NMEDIT"; then
6441
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6442
echo "${ECHO_T}$NMEDIT" >&6
6443
else
6444
  echo "$as_me:$LINENO: result: no" >&5
6445
echo "${ECHO_T}no" >&6
6446
fi
6447
 
6448
fi
6449
if test -z "$ac_cv_prog_NMEDIT"; then
6450
  ac_ct_NMEDIT=$NMEDIT
6451
  # Extract the first word of "nmedit", so it can be a program name with args.
6452
set dummy nmedit; ac_word=$2
6453
echo "$as_me:$LINENO: checking for $ac_word" >&5
6454
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6455
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6456
  echo $ECHO_N "(cached) $ECHO_C" >&6
6457
else
6458
  if test -n "$ac_ct_NMEDIT"; then
6459
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6460
else
6461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462
for as_dir in $PATH
6463
do
6464
  IFS=$as_save_IFS
6465
  test -z "$as_dir" && as_dir=.
6466
  for ac_exec_ext in '' $ac_executable_extensions; do
6467
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6469
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470
    break 2
6471
  fi
6472
done
6473
done
6474
 
6475
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6476
fi
6477
fi
6478
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6479
if test -n "$ac_ct_NMEDIT"; then
6480
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6481
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6482
else
6483
  echo "$as_me:$LINENO: result: no" >&5
6484
echo "${ECHO_T}no" >&6
6485
fi
6486
 
6487
  NMEDIT=$ac_ct_NMEDIT
6488
else
6489
  NMEDIT="$ac_cv_prog_NMEDIT"
6490
fi
6491
 
6492
    if test -n "$ac_tool_prefix"; then
6493
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6494
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6495
echo "$as_me:$LINENO: checking for $ac_word" >&5
6496
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497
if test "${ac_cv_prog_LIPO+set}" = set; then
6498
  echo $ECHO_N "(cached) $ECHO_C" >&6
6499
else
6500
  if test -n "$LIPO"; then
6501
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6502
else
6503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504
for as_dir in $PATH
6505
do
6506
  IFS=$as_save_IFS
6507
  test -z "$as_dir" && as_dir=.
6508
  for ac_exec_ext in '' $ac_executable_extensions; do
6509
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6511
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512
    break 2
6513
  fi
6514
done
6515
done
6516
 
6517
fi
6518
fi
6519
LIPO=$ac_cv_prog_LIPO
6520
if test -n "$LIPO"; then
6521
  echo "$as_me:$LINENO: result: $LIPO" >&5
6522
echo "${ECHO_T}$LIPO" >&6
6523
else
6524
  echo "$as_me:$LINENO: result: no" >&5
6525
echo "${ECHO_T}no" >&6
6526
fi
6527
 
6528
fi
6529
if test -z "$ac_cv_prog_LIPO"; then
6530
  ac_ct_LIPO=$LIPO
6531
  # Extract the first word of "lipo", so it can be a program name with args.
6532
set dummy lipo; ac_word=$2
6533
echo "$as_me:$LINENO: checking for $ac_word" >&5
6534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6535
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6536
  echo $ECHO_N "(cached) $ECHO_C" >&6
6537
else
6538
  if test -n "$ac_ct_LIPO"; then
6539
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6540
else
6541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542
for as_dir in $PATH
6543
do
6544
  IFS=$as_save_IFS
6545
  test -z "$as_dir" && as_dir=.
6546
  for ac_exec_ext in '' $ac_executable_extensions; do
6547
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548
    ac_cv_prog_ac_ct_LIPO="lipo"
6549
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550
    break 2
6551
  fi
6552
done
6553
done
6554
 
6555
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6556
fi
6557
fi
6558
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6559
if test -n "$ac_ct_LIPO"; then
6560
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6561
echo "${ECHO_T}$ac_ct_LIPO" >&6
6562
else
6563
  echo "$as_me:$LINENO: result: no" >&5
6564
echo "${ECHO_T}no" >&6
6565
fi
6566
 
6567
  LIPO=$ac_ct_LIPO
6568
else
6569
  LIPO="$ac_cv_prog_LIPO"
6570
fi
6571
 
6572
    if test -n "$ac_tool_prefix"; then
6573
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6574
set dummy ${ac_tool_prefix}otool; ac_word=$2
6575
echo "$as_me:$LINENO: checking for $ac_word" >&5
6576
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577
if test "${ac_cv_prog_OTOOL+set}" = set; then
6578
  echo $ECHO_N "(cached) $ECHO_C" >&6
6579
else
6580
  if test -n "$OTOOL"; then
6581
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6582
else
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584
for as_dir in $PATH
6585
do
6586
  IFS=$as_save_IFS
6587
  test -z "$as_dir" && as_dir=.
6588
  for ac_exec_ext in '' $ac_executable_extensions; do
6589
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6591
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592
    break 2
6593
  fi
6594
done
6595
done
6596
 
6597
fi
6598
fi
6599
OTOOL=$ac_cv_prog_OTOOL
6600
if test -n "$OTOOL"; then
6601
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6602
echo "${ECHO_T}$OTOOL" >&6
6603
else
6604
  echo "$as_me:$LINENO: result: no" >&5
6605
echo "${ECHO_T}no" >&6
6606
fi
6607
 
6608
fi
6609
if test -z "$ac_cv_prog_OTOOL"; then
6610
  ac_ct_OTOOL=$OTOOL
6611
  # Extract the first word of "otool", so it can be a program name with args.
6612
set dummy otool; ac_word=$2
6613
echo "$as_me:$LINENO: checking for $ac_word" >&5
6614
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6615
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6616
  echo $ECHO_N "(cached) $ECHO_C" >&6
6617
else
6618
  if test -n "$ac_ct_OTOOL"; then
6619
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6620
else
6621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622
for as_dir in $PATH
6623
do
6624
  IFS=$as_save_IFS
6625
  test -z "$as_dir" && as_dir=.
6626
  for ac_exec_ext in '' $ac_executable_extensions; do
6627
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628
    ac_cv_prog_ac_ct_OTOOL="otool"
6629
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630
    break 2
6631
  fi
6632
done
6633
done
6634
 
6635
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6636
fi
6637
fi
6638
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6639
if test -n "$ac_ct_OTOOL"; then
6640
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6641
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6642
else
6643
  echo "$as_me:$LINENO: result: no" >&5
6644
echo "${ECHO_T}no" >&6
6645
fi
6646
 
6647
  OTOOL=$ac_ct_OTOOL
6648
else
6649
  OTOOL="$ac_cv_prog_OTOOL"
6650
fi
6651
 
6652
    if test -n "$ac_tool_prefix"; then
6653
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6654
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6655
echo "$as_me:$LINENO: checking for $ac_word" >&5
6656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6657
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6658
  echo $ECHO_N "(cached) $ECHO_C" >&6
6659
else
6660
  if test -n "$OTOOL64"; then
6661
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6662
else
6663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664
for as_dir in $PATH
6665
do
6666
  IFS=$as_save_IFS
6667
  test -z "$as_dir" && as_dir=.
6668
  for ac_exec_ext in '' $ac_executable_extensions; do
6669
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6671
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672
    break 2
6673
  fi
6674
done
6675
done
6676
 
6677
fi
6678
fi
6679
OTOOL64=$ac_cv_prog_OTOOL64
6680
if test -n "$OTOOL64"; then
6681
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6682
echo "${ECHO_T}$OTOOL64" >&6
6683
else
6684
  echo "$as_me:$LINENO: result: no" >&5
6685
echo "${ECHO_T}no" >&6
6686
fi
6687
 
6688
fi
6689
if test -z "$ac_cv_prog_OTOOL64"; then
6690
  ac_ct_OTOOL64=$OTOOL64
6691
  # Extract the first word of "otool64", so it can be a program name with args.
6692
set dummy otool64; ac_word=$2
6693
echo "$as_me:$LINENO: checking for $ac_word" >&5
6694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6695
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6696
  echo $ECHO_N "(cached) $ECHO_C" >&6
6697
else
6698
  if test -n "$ac_ct_OTOOL64"; then
6699
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6700
else
6701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702
for as_dir in $PATH
6703
do
6704
  IFS=$as_save_IFS
6705
  test -z "$as_dir" && as_dir=.
6706
  for ac_exec_ext in '' $ac_executable_extensions; do
6707
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6709
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710
    break 2
6711
  fi
6712
done
6713
done
6714
 
6715
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6716
fi
6717
fi
6718
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6719
if test -n "$ac_ct_OTOOL64"; then
6720
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6721
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6722
else
6723
  echo "$as_me:$LINENO: result: no" >&5
6724
echo "${ECHO_T}no" >&6
6725
fi
6726
 
6727
  OTOOL64=$ac_ct_OTOOL64
6728
else
6729
  OTOOL64="$ac_cv_prog_OTOOL64"
6730
fi
6731
 
6732
 
6733
 
6734
 
6735
 
6736
 
6737
 
6738
 
6739
 
6740
 
6741
 
6742
 
6743
 
6744
 
6745
 
6746
 
6747
 
6748
 
6749
 
6750
 
6751
 
6752
 
6753
 
6754
 
6755
 
6756
 
6757
 
6758
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6759
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6760
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6761
  echo $ECHO_N "(cached) $ECHO_C" >&6
6762
else
6763
  lt_cv_apple_cc_single_mod=no
6764
      if test -z "${LT_MULTI_MODULE}"; then
6765
        # By default we will add the -single_module flag. You can override
6766
        # by either setting the environment variable LT_MULTI_MODULE
6767
        # non-empty at configure time, or by adding -multi_module to the
6768
        # link flags.
6769
        rm -rf libconftest.dylib*
6770
        echo "int foo(void){return 1;}" > conftest.c
6771
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6772
-dynamiclib -Wl,-single_module conftest.c" >&5
6773
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6774
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6775
        _lt_result=$?
6776
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6777
          lt_cv_apple_cc_single_mod=yes
6778
        else
6779
          cat conftest.err >&5
6780
        fi
6781
        rm -rf libconftest.dylib*
6782
        rm -f conftest.*
6783
      fi
6784
fi
6785
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6786
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6787
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6788
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6789
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6790
  echo $ECHO_N "(cached) $ECHO_C" >&6
6791
else
6792
  lt_cv_ld_exported_symbols_list=no
6793
      save_LDFLAGS=$LDFLAGS
6794
      echo "_main" > conftest.sym
6795
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6796
      cat >conftest.$ac_ext <<_ACEOF
6797
/* confdefs.h.  */
6798
_ACEOF
6799
cat confdefs.h >>conftest.$ac_ext
6800
cat >>conftest.$ac_ext <<_ACEOF
6801
/* end confdefs.h.  */
6802
 
6803
int
6804
main ()
6805
{
6806
 
6807
  ;
6808
  return 0;
6809
}
6810
_ACEOF
6811
rm -f conftest.$ac_objext conftest$ac_exeext
6812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813
  (eval $ac_link) 2>conftest.er1
6814
  ac_status=$?
6815
  grep -v '^ *+' conftest.er1 >conftest.err
6816
  rm -f conftest.er1
6817
  cat conftest.err >&5
6818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819
  (exit $ac_status); } &&
6820
         { ac_try='test -z "$ac_c_werror_flag"
6821
                         || test ! -s conftest.err'
6822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823
  (eval $ac_try) 2>&5
6824
  ac_status=$?
6825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826
  (exit $ac_status); }; } &&
6827
         { ac_try='test -s conftest$ac_exeext'
6828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829
  (eval $ac_try) 2>&5
6830
  ac_status=$?
6831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832
  (exit $ac_status); }; }; then
6833
  lt_cv_ld_exported_symbols_list=yes
6834
else
6835
  echo "$as_me: failed program was:" >&5
6836
sed 's/^/| /' conftest.$ac_ext >&5
6837
 
6838
lt_cv_ld_exported_symbols_list=no
6839
fi
6840
rm -f conftest.err conftest.$ac_objext \
6841
      conftest$ac_exeext conftest.$ac_ext
6842
        LDFLAGS="$save_LDFLAGS"
6843
 
6844
fi
6845
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6846
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6847
    case $host_os in
6848
    rhapsody* | darwin1.[012])
6849
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6850
    darwin1.*)
6851
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6852
    darwin*) # darwin 5.x on
6853
      # if running on 10.5 or later, the deployment target defaults
6854
      # to the OS version, if on x86, and 10.4, the deployment
6855
      # target defaults to 10.4. Don't you love it?
6856
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6857
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6858
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6859
        10.[012]*)
6860
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6861
        10.*)
6862
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6863
      esac
6864
    ;;
6865
  esac
6866
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6867
      _lt_dar_single_mod='$single_module'
6868
    fi
6869
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6870
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6871
    else
6872
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6873
    fi
6874
    if test "$DSYMUTIL" != ":"; then
6875
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6876
    else
6877
      _lt_dsymutil=
6878
    fi
6879
    ;;
6880
  esac
6881
 
6882
ac_ext=c
6883
ac_cpp='$CPP $CPPFLAGS'
6884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6887
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6888
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6889
# On Suns, sometimes $CPP names a directory.
6890
if test -n "$CPP" && test -d "$CPP"; then
6891
  CPP=
6892
fi
6893
if test -z "$CPP"; then
6894
  if test "${ac_cv_prog_CPP+set}" = set; then
6895
  echo $ECHO_N "(cached) $ECHO_C" >&6
6896
else
6897
      # Double quotes because CPP needs to be expanded
6898
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6899
    do
6900
      ac_preproc_ok=false
6901
for ac_c_preproc_warn_flag in '' yes
6902
do
6903
  # Use a header file that comes with gcc, so configuring glibc
6904
  # with a fresh cross-compiler works.
6905
  # Prefer  to  if __STDC__ is defined, since
6906
  #  exists even on freestanding compilers.
6907
  # On the NeXT, cc -E runs the code through the compiler's parser,
6908
  # not just through cpp. "Syntax error" is here to catch this case.
6909
  cat >conftest.$ac_ext <<_ACEOF
6910
/* confdefs.h.  */
6911
_ACEOF
6912
cat confdefs.h >>conftest.$ac_ext
6913
cat >>conftest.$ac_ext <<_ACEOF
6914
/* end confdefs.h.  */
6915
#ifdef __STDC__
6916
# include 
6917
#else
6918
# include 
6919
#endif
6920
                     Syntax error
6921
_ACEOF
6922
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6923
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6924
  ac_status=$?
6925
  grep -v '^ *+' conftest.er1 >conftest.err
6926
  rm -f conftest.er1
6927
  cat conftest.err >&5
6928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929
  (exit $ac_status); } >/dev/null; then
6930
  if test -s conftest.err; then
6931
    ac_cpp_err=$ac_c_preproc_warn_flag
6932
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6933
  else
6934
    ac_cpp_err=
6935
  fi
6936
else
6937
  ac_cpp_err=yes
6938
fi
6939
if test -z "$ac_cpp_err"; then
6940
  :
6941
else
6942
  echo "$as_me: failed program was:" >&5
6943
sed 's/^/| /' conftest.$ac_ext >&5
6944
 
6945
  # Broken: fails on valid input.
6946
continue
6947
fi
6948
rm -f conftest.err conftest.$ac_ext
6949
 
6950
  # OK, works on sane cases.  Now check whether non-existent headers
6951
  # can be detected and how.
6952
  cat >conftest.$ac_ext <<_ACEOF
6953
/* confdefs.h.  */
6954
_ACEOF
6955
cat confdefs.h >>conftest.$ac_ext
6956
cat >>conftest.$ac_ext <<_ACEOF
6957
/* end confdefs.h.  */
6958
#include 
6959
_ACEOF
6960
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6961
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6962
  ac_status=$?
6963
  grep -v '^ *+' conftest.er1 >conftest.err
6964
  rm -f conftest.er1
6965
  cat conftest.err >&5
6966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967
  (exit $ac_status); } >/dev/null; then
6968
  if test -s conftest.err; then
6969
    ac_cpp_err=$ac_c_preproc_warn_flag
6970
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6971
  else
6972
    ac_cpp_err=
6973
  fi
6974
else
6975
  ac_cpp_err=yes
6976
fi
6977
if test -z "$ac_cpp_err"; then
6978
  # Broken: success on invalid input.
6979
continue
6980
else
6981
  echo "$as_me: failed program was:" >&5
6982
sed 's/^/| /' conftest.$ac_ext >&5
6983
 
6984
  # Passes both tests.
6985
ac_preproc_ok=:
6986
break
6987
fi
6988
rm -f conftest.err conftest.$ac_ext
6989
 
6990
done
6991
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6992
rm -f conftest.err conftest.$ac_ext
6993
if $ac_preproc_ok; then
6994
  break
6995
fi
6996
 
6997
    done
6998
    ac_cv_prog_CPP=$CPP
6999
 
7000
fi
7001
  CPP=$ac_cv_prog_CPP
7002
else
7003
  ac_cv_prog_CPP=$CPP
7004
fi
7005
echo "$as_me:$LINENO: result: $CPP" >&5
7006
echo "${ECHO_T}$CPP" >&6
7007
ac_preproc_ok=false
7008
for ac_c_preproc_warn_flag in '' yes
7009
do
7010
  # Use a header file that comes with gcc, so configuring glibc
7011
  # with a fresh cross-compiler works.
7012
  # Prefer  to  if __STDC__ is defined, since
7013
  #  exists even on freestanding compilers.
7014
  # On the NeXT, cc -E runs the code through the compiler's parser,
7015
  # not just through cpp. "Syntax error" is here to catch this case.
7016
  cat >conftest.$ac_ext <<_ACEOF
7017
/* confdefs.h.  */
7018
_ACEOF
7019
cat confdefs.h >>conftest.$ac_ext
7020
cat >>conftest.$ac_ext <<_ACEOF
7021
/* end confdefs.h.  */
7022
#ifdef __STDC__
7023
# include 
7024
#else
7025
# include 
7026
#endif
7027
                     Syntax error
7028
_ACEOF
7029
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7030
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7031
  ac_status=$?
7032
  grep -v '^ *+' conftest.er1 >conftest.err
7033
  rm -f conftest.er1
7034
  cat conftest.err >&5
7035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036
  (exit $ac_status); } >/dev/null; then
7037
  if test -s conftest.err; then
7038
    ac_cpp_err=$ac_c_preproc_warn_flag
7039
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7040
  else
7041
    ac_cpp_err=
7042
  fi
7043
else
7044
  ac_cpp_err=yes
7045
fi
7046
if test -z "$ac_cpp_err"; then
7047
  :
7048
else
7049
  echo "$as_me: failed program was:" >&5
7050
sed 's/^/| /' conftest.$ac_ext >&5
7051
 
7052
  # Broken: fails on valid input.
7053
continue
7054
fi
7055
rm -f conftest.err conftest.$ac_ext
7056
 
7057
  # OK, works on sane cases.  Now check whether non-existent headers
7058
  # can be detected and how.
7059
  cat >conftest.$ac_ext <<_ACEOF
7060
/* confdefs.h.  */
7061
_ACEOF
7062
cat confdefs.h >>conftest.$ac_ext
7063
cat >>conftest.$ac_ext <<_ACEOF
7064
/* end confdefs.h.  */
7065
#include 
7066
_ACEOF
7067
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7068
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7069
  ac_status=$?
7070
  grep -v '^ *+' conftest.er1 >conftest.err
7071
  rm -f conftest.er1
7072
  cat conftest.err >&5
7073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074
  (exit $ac_status); } >/dev/null; then
7075
  if test -s conftest.err; then
7076
    ac_cpp_err=$ac_c_preproc_warn_flag
7077
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7078
  else
7079
    ac_cpp_err=
7080
  fi
7081
else
7082
  ac_cpp_err=yes
7083
fi
7084
if test -z "$ac_cpp_err"; then
7085
  # Broken: success on invalid input.
7086
continue
7087
else
7088
  echo "$as_me: failed program was:" >&5
7089
sed 's/^/| /' conftest.$ac_ext >&5
7090
 
7091
  # Passes both tests.
7092
ac_preproc_ok=:
7093
break
7094
fi
7095
rm -f conftest.err conftest.$ac_ext
7096
 
7097
done
7098
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7099
rm -f conftest.err conftest.$ac_ext
7100
if $ac_preproc_ok; then
7101
  :
7102
else
7103
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7104
See \`config.log' for more details." >&5
7105
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7106
See \`config.log' for more details." >&2;}
7107
   { (exit 1); exit 1; }; }
7108
fi
7109
 
7110
ac_ext=c
7111
ac_cpp='$CPP $CPPFLAGS'
7112
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7113
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7114
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7115
 
7116
 
7117
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7118
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7119
if test "${ac_cv_header_stdc+set}" = set; then
7120
  echo $ECHO_N "(cached) $ECHO_C" >&6
7121
else
7122
  cat >conftest.$ac_ext <<_ACEOF
7123
/* confdefs.h.  */
7124
_ACEOF
7125
cat confdefs.h >>conftest.$ac_ext
7126
cat >>conftest.$ac_ext <<_ACEOF
7127
/* end confdefs.h.  */
7128
#include 
7129
#include 
7130
#include 
7131
#include 
7132
 
7133
int
7134
main ()
7135
{
7136
 
7137
  ;
7138
  return 0;
7139
}
7140
_ACEOF
7141
rm -f conftest.$ac_objext
7142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143
  (eval $ac_compile) 2>conftest.er1
7144
  ac_status=$?
7145
  grep -v '^ *+' conftest.er1 >conftest.err
7146
  rm -f conftest.er1
7147
  cat conftest.err >&5
7148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149
  (exit $ac_status); } &&
7150
         { ac_try='test -z "$ac_c_werror_flag"
7151
                         || test ! -s conftest.err'
7152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153
  (eval $ac_try) 2>&5
7154
  ac_status=$?
7155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156
  (exit $ac_status); }; } &&
7157
         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7163
  ac_cv_header_stdc=yes
7164
else
7165
  echo "$as_me: failed program was:" >&5
7166
sed 's/^/| /' conftest.$ac_ext >&5
7167
 
7168
ac_cv_header_stdc=no
7169
fi
7170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171
 
7172
if test $ac_cv_header_stdc = yes; then
7173
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7174
  cat >conftest.$ac_ext <<_ACEOF
7175
/* confdefs.h.  */
7176
_ACEOF
7177
cat confdefs.h >>conftest.$ac_ext
7178
cat >>conftest.$ac_ext <<_ACEOF
7179
/* end confdefs.h.  */
7180
#include 
7181
 
7182
_ACEOF
7183
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184
  $EGREP "memchr" >/dev/null 2>&1; then
7185
  :
7186
else
7187
  ac_cv_header_stdc=no
7188
fi
7189
rm -f conftest*
7190
 
7191
fi
7192
 
7193
if test $ac_cv_header_stdc = yes; then
7194
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7195
  cat >conftest.$ac_ext <<_ACEOF
7196
/* confdefs.h.  */
7197
_ACEOF
7198
cat confdefs.h >>conftest.$ac_ext
7199
cat >>conftest.$ac_ext <<_ACEOF
7200
/* end confdefs.h.  */
7201
#include 
7202
 
7203
_ACEOF
7204
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205
  $EGREP "free" >/dev/null 2>&1; then
7206
  :
7207
else
7208
  ac_cv_header_stdc=no
7209
fi
7210
rm -f conftest*
7211
 
7212
fi
7213
 
7214
if test $ac_cv_header_stdc = yes; then
7215
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7216
  if test "$cross_compiling" = yes; then
7217
  :
7218
else
7219
  cat >conftest.$ac_ext <<_ACEOF
7220
/* confdefs.h.  */
7221
_ACEOF
7222
cat confdefs.h >>conftest.$ac_ext
7223
cat >>conftest.$ac_ext <<_ACEOF
7224
/* end confdefs.h.  */
7225
#include 
7226
#if ((' ' & 0x0FF) == 0x020)
7227
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7228
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229
#else
7230
# define ISLOWER(c) \
7231
                   (('a' <= (c) && (c) <= 'i') \
7232
                     || ('j' <= (c) && (c) <= 'r') \
7233
                     || ('s' <= (c) && (c) <= 'z'))
7234
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7235
#endif
7236
 
7237
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7238
int
7239
main ()
7240
{
7241
  int i;
7242
  for (i = 0; i < 256; i++)
7243
    if (XOR (islower (i), ISLOWER (i))
7244
        || toupper (i) != TOUPPER (i))
7245
      exit(2);
7246
  exit (0);
7247
}
7248
_ACEOF
7249
rm -f conftest$ac_exeext
7250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7251
  (eval $ac_link) 2>&5
7252
  ac_status=$?
7253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256
  (eval $ac_try) 2>&5
7257
  ac_status=$?
7258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259
  (exit $ac_status); }; }; then
7260
  :
7261
else
7262
  echo "$as_me: program exited with status $ac_status" >&5
7263
echo "$as_me: failed program was:" >&5
7264
sed 's/^/| /' conftest.$ac_ext >&5
7265
 
7266
( exit $ac_status )
7267
ac_cv_header_stdc=no
7268
fi
7269
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7270
fi
7271
fi
7272
fi
7273
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7274
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7275
if test $ac_cv_header_stdc = yes; then
7276
 
7277
cat >>confdefs.h <<\_ACEOF
7278
#define STDC_HEADERS 1
7279
_ACEOF
7280
 
7281
fi
7282
 
7283
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7284
 
7285
 
7286
 
7287
 
7288
 
7289
 
7290
 
7291
 
7292
 
7293
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7294
                  inttypes.h stdint.h unistd.h
7295
do
7296
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297
echo "$as_me:$LINENO: checking for $ac_header" >&5
7298
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7299
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7300
  echo $ECHO_N "(cached) $ECHO_C" >&6
7301
else
7302
  cat >conftest.$ac_ext <<_ACEOF
7303
/* confdefs.h.  */
7304
_ACEOF
7305
cat confdefs.h >>conftest.$ac_ext
7306
cat >>conftest.$ac_ext <<_ACEOF
7307
/* end confdefs.h.  */
7308
$ac_includes_default
7309
 
7310
#include <$ac_header>
7311
_ACEOF
7312
rm -f conftest.$ac_objext
7313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314
  (eval $ac_compile) 2>conftest.er1
7315
  ac_status=$?
7316
  grep -v '^ *+' conftest.er1 >conftest.err
7317
  rm -f conftest.er1
7318
  cat conftest.err >&5
7319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320
  (exit $ac_status); } &&
7321
         { ac_try='test -z "$ac_c_werror_flag"
7322
                         || test ! -s conftest.err'
7323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324
  (eval $ac_try) 2>&5
7325
  ac_status=$?
7326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327
  (exit $ac_status); }; } &&
7328
         { ac_try='test -s conftest.$ac_objext'
7329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330
  (eval $ac_try) 2>&5
7331
  ac_status=$?
7332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333
  (exit $ac_status); }; }; then
7334
  eval "$as_ac_Header=yes"
7335
else
7336
  echo "$as_me: failed program was:" >&5
7337
sed 's/^/| /' conftest.$ac_ext >&5
7338
 
7339
eval "$as_ac_Header=no"
7340
fi
7341
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7342
fi
7343
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7344
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7345
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7346
  cat >>confdefs.h <<_ACEOF
7347
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348
_ACEOF
7349
 
7350
fi
7351
 
7352
done
7353
 
7354
 
7355
 
7356
for ac_header in dlfcn.h
7357
do
7358
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359
echo "$as_me:$LINENO: checking for $ac_header" >&5
7360
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7361
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7362
  echo $ECHO_N "(cached) $ECHO_C" >&6
7363
else
7364
  cat >conftest.$ac_ext <<_ACEOF
7365
/* confdefs.h.  */
7366
_ACEOF
7367
cat confdefs.h >>conftest.$ac_ext
7368
cat >>conftest.$ac_ext <<_ACEOF
7369
/* end confdefs.h.  */
7370
$ac_includes_default
7371
 
7372
#include <$ac_header>
7373
_ACEOF
7374
rm -f conftest.$ac_objext
7375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376
  (eval $ac_compile) 2>conftest.er1
7377
  ac_status=$?
7378
  grep -v '^ *+' conftest.er1 >conftest.err
7379
  rm -f conftest.er1
7380
  cat conftest.err >&5
7381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382
  (exit $ac_status); } &&
7383
         { ac_try='test -z "$ac_c_werror_flag"
7384
                         || test ! -s conftest.err'
7385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386
  (eval $ac_try) 2>&5
7387
  ac_status=$?
7388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389
  (exit $ac_status); }; } &&
7390
         { ac_try='test -s conftest.$ac_objext'
7391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392
  (eval $ac_try) 2>&5
7393
  ac_status=$?
7394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395
  (exit $ac_status); }; }; then
7396
  eval "$as_ac_Header=yes"
7397
else
7398
  echo "$as_me: failed program was:" >&5
7399
sed 's/^/| /' conftest.$ac_ext >&5
7400
 
7401
eval "$as_ac_Header=no"
7402
fi
7403
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404
fi
7405
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7406
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7407
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7408
  cat >>confdefs.h <<_ACEOF
7409
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7410
_ACEOF
7411
 
7412
fi
7413
 
7414
done
7415
 
7416
 
7417
 
7418
# Set options
7419
 
7420
 
7421
 
7422
        enable_dlopen=no
7423
 
7424
 
7425
 
7426
            # Check whether --enable-shared or --disable-shared was given.
7427
if test "${enable_shared+set}" = set; then
7428
  enableval="$enable_shared"
7429
  p=${PACKAGE-default}
7430
    case $enableval in
7431
    yes) enable_shared=yes ;;
7432
    no) enable_shared=no ;;
7433
    *)
7434
      enable_shared=no
7435
      # Look at the argument we got.  We use all the common list separators.
7436
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7437
      for pkg in $enableval; do
7438
        IFS="$lt_save_ifs"
7439
        if test "X$pkg" = "X$p"; then
7440
          enable_shared=yes
7441
        fi
7442
      done
7443
      IFS="$lt_save_ifs"
7444
      ;;
7445
    esac
7446
else
7447
  enable_shared=yes
7448
fi;
7449
 
7450
 
7451
 
7452
 
7453
 
7454
 
7455
 
7456
 
7457
  # Check whether --enable-static or --disable-static was given.
7458
if test "${enable_static+set}" = set; then
7459
  enableval="$enable_static"
7460
  p=${PACKAGE-default}
7461
    case $enableval in
7462
    yes) enable_static=yes ;;
7463
    no) enable_static=no ;;
7464
    *)
7465
     enable_static=no
7466
      # Look at the argument we got.  We use all the common list separators.
7467
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7468
      for pkg in $enableval; do
7469
        IFS="$lt_save_ifs"
7470
        if test "X$pkg" = "X$p"; then
7471
          enable_static=yes
7472
        fi
7473
      done
7474
      IFS="$lt_save_ifs"
7475
      ;;
7476
    esac
7477
else
7478
  enable_static=yes
7479
fi;
7480
 
7481
 
7482
 
7483
 
7484
 
7485
 
7486
 
7487
 
7488
 
7489
# Check whether --with-pic or --without-pic was given.
7490
if test "${with_pic+set}" = set; then
7491
  withval="$with_pic"
7492
  pic_mode="$withval"
7493
else
7494
  pic_mode=default
7495
fi;
7496
 
7497
test -z "$pic_mode" && pic_mode=default
7498
 
7499
 
7500
 
7501
 
7502
 
7503
 
7504
 
7505
  # Check whether --enable-fast-install or --disable-fast-install was given.
7506
if test "${enable_fast_install+set}" = set; then
7507
  enableval="$enable_fast_install"
7508
  p=${PACKAGE-default}
7509
    case $enableval in
7510
    yes) enable_fast_install=yes ;;
7511
    no) enable_fast_install=no ;;
7512
    *)
7513
      enable_fast_install=no
7514
      # Look at the argument we got.  We use all the common list separators.
7515
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7516
      for pkg in $enableval; do
7517
        IFS="$lt_save_ifs"
7518
        if test "X$pkg" = "X$p"; then
7519
          enable_fast_install=yes
7520
        fi
7521
      done
7522
      IFS="$lt_save_ifs"
7523
      ;;
7524
    esac
7525
else
7526
  enable_fast_install=yes
7527
fi;
7528
 
7529
 
7530
 
7531
 
7532
 
7533
 
7534
 
7535
 
7536
 
7537
 
7538
# This can be used to rebuild libtool when needed
7539
LIBTOOL_DEPS="$ltmain"
7540
 
7541
# Always use our own libtool.
7542
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7543
 
7544
 
7545
 
7546
 
7547
 
7548
 
7549
 
7550
 
7551
 
7552
 
7553
 
7554
 
7555
 
7556
 
7557
 
7558
 
7559
 
7560
 
7561
 
7562
 
7563
 
7564
 
7565
 
7566
 
7567
 
7568
test -z "$LN_S" && LN_S="ln -s"
7569
 
7570
 
7571
 
7572
 
7573
 
7574
 
7575
 
7576
 
7577
 
7578
 
7579
 
7580
 
7581
 
7582
 
7583
if test -n "${ZSH_VERSION+set}" ; then
7584
   setopt NO_GLOB_SUBST
7585
fi
7586
 
7587
echo "$as_me:$LINENO: checking for objdir" >&5
7588
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7589
if test "${lt_cv_objdir+set}" = set; then
7590
  echo $ECHO_N "(cached) $ECHO_C" >&6
7591
else
7592
  rm -f .libs 2>/dev/null
7593
mkdir .libs 2>/dev/null
7594
if test -d .libs; then
7595
  lt_cv_objdir=.libs
7596
else
7597
  # MS-DOS does not allow filenames that begin with a dot.
7598
  lt_cv_objdir=_libs
7599
fi
7600
rmdir .libs 2>/dev/null
7601
fi
7602
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7603
echo "${ECHO_T}$lt_cv_objdir" >&6
7604
objdir=$lt_cv_objdir
7605
 
7606
 
7607
 
7608
 
7609
 
7610
cat >>confdefs.h <<_ACEOF
7611
#define LT_OBJDIR "$lt_cv_objdir/"
7612
_ACEOF
7613
 
7614
 
7615
 
7616
 
7617
 
7618
 
7619
 
7620
 
7621
 
7622
 
7623
 
7624
 
7625
 
7626
 
7627
 
7628
 
7629
 
7630
case $host_os in
7631
aix3*)
7632
  # AIX sometimes has problems with the GCC collect2 program.  For some
7633
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7634
  # vanish in a puff of smoke.
7635
  if test "X${COLLECT_NAMES+set}" != Xset; then
7636
    COLLECT_NAMES=
7637
    export COLLECT_NAMES
7638
  fi
7639
  ;;
7640
esac
7641
 
7642
# Sed substitution that helps us do robust quoting.  It backslashifies
7643
# metacharacters that are still active within double-quoted strings.
7644
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7645
 
7646
# Same as above, but do not quote variable references.
7647
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7648
 
7649
# Sed substitution to delay expansion of an escaped shell variable in a
7650
# double_quote_subst'ed string.
7651
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7652
 
7653
# Sed substitution to delay expansion of an escaped single quote.
7654
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7655
 
7656
# Sed substitution to avoid accidental globbing in evaled expressions
7657
no_glob_subst='s/\*/\\\*/g'
7658
 
7659
# Global variables:
7660
ofile=libtool
7661
can_build_shared=yes
7662
 
7663
# All known linkers require a `.a' archive for static linking (except MSVC,
7664
# which needs '.lib').
7665
libext=a
7666
 
7667
with_gnu_ld="$lt_cv_prog_gnu_ld"
7668
 
7669
old_CC="$CC"
7670
old_CFLAGS="$CFLAGS"
7671
 
7672
# Set sane defaults for various variables
7673
test -z "$CC" && CC=cc
7674
test -z "$LTCC" && LTCC=$CC
7675
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7676
test -z "$LD" && LD=ld
7677
test -z "$ac_objext" && ac_objext=o
7678
 
7679
for cc_temp in $compiler""; do
7680
  case $cc_temp in
7681
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7682
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7683
    \-*) ;;
7684
    *) break;;
7685
  esac
7686
done
7687
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7688
 
7689
 
7690
# Only perform the check for file, if the check method requires it
7691
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7692
case $deplibs_check_method in
7693
file_magic*)
7694
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7695
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7696
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7697
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7698
  echo $ECHO_N "(cached) $ECHO_C" >&6
7699
else
7700
  case $MAGIC_CMD in
7701
[\\/*] |  ?:[\\/]*)
7702
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7703
  ;;
7704
*)
7705
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7706
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7707
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7708
  for ac_dir in $ac_dummy; do
7709
    IFS="$lt_save_ifs"
7710
    test -z "$ac_dir" && ac_dir=.
7711
    if test -f $ac_dir/${ac_tool_prefix}file; then
7712
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7713
      if test -n "$file_magic_test_file"; then
7714
        case $deplibs_check_method in
7715
        "file_magic "*)
7716
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7717
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7718
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7719
            $EGREP "$file_magic_regex" > /dev/null; then
7720
            :
7721
          else
7722
            cat <<_LT_EOF 1>&2
7723
 
7724
*** Warning: the command libtool uses to detect shared libraries,
7725
*** $file_magic_cmd, produces output that libtool cannot recognize.
7726
*** The result is that libtool may fail to recognize shared libraries
7727
*** as such.  This will affect the creation of libtool libraries that
7728
*** depend on shared libraries, but programs linked with such libtool
7729
*** libraries will work regardless of this problem.  Nevertheless, you
7730
*** may want to report the problem to your system manager and/or to
7731
*** bug-libtool@gnu.org
7732
 
7733
_LT_EOF
7734
          fi ;;
7735
        esac
7736
      fi
7737
      break
7738
    fi
7739
  done
7740
  IFS="$lt_save_ifs"
7741
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7742
  ;;
7743
esac
7744
fi
7745
 
7746
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7747
if test -n "$MAGIC_CMD"; then
7748
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7749
echo "${ECHO_T}$MAGIC_CMD" >&6
7750
else
7751
  echo "$as_me:$LINENO: result: no" >&5
7752
echo "${ECHO_T}no" >&6
7753
fi
7754
 
7755
 
7756
 
7757
 
7758
 
7759
if test -z "$lt_cv_path_MAGIC_CMD"; then
7760
  if test -n "$ac_tool_prefix"; then
7761
    echo "$as_me:$LINENO: checking for file" >&5
7762
echo $ECHO_N "checking for file... $ECHO_C" >&6
7763
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7764
  echo $ECHO_N "(cached) $ECHO_C" >&6
7765
else
7766
  case $MAGIC_CMD in
7767
[\\/*] |  ?:[\\/]*)
7768
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769
  ;;
7770
*)
7771
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7772
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774
  for ac_dir in $ac_dummy; do
7775
    IFS="$lt_save_ifs"
7776
    test -z "$ac_dir" && ac_dir=.
7777
    if test -f $ac_dir/file; then
7778
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7779
      if test -n "$file_magic_test_file"; then
7780
        case $deplibs_check_method in
7781
        "file_magic "*)
7782
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785
            $EGREP "$file_magic_regex" > /dev/null; then
7786
            :
7787
          else
7788
            cat <<_LT_EOF 1>&2
7789
 
7790
*** Warning: the command libtool uses to detect shared libraries,
7791
*** $file_magic_cmd, produces output that libtool cannot recognize.
7792
*** The result is that libtool may fail to recognize shared libraries
7793
*** as such.  This will affect the creation of libtool libraries that
7794
*** depend on shared libraries, but programs linked with such libtool
7795
*** libraries will work regardless of this problem.  Nevertheless, you
7796
*** may want to report the problem to your system manager and/or to
7797
*** bug-libtool@gnu.org
7798
 
7799
_LT_EOF
7800
          fi ;;
7801
        esac
7802
      fi
7803
      break
7804
    fi
7805
  done
7806
  IFS="$lt_save_ifs"
7807
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7808
  ;;
7809
esac
7810
fi
7811
 
7812
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813
if test -n "$MAGIC_CMD"; then
7814
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7815
echo "${ECHO_T}$MAGIC_CMD" >&6
7816
else
7817
  echo "$as_me:$LINENO: result: no" >&5
7818
echo "${ECHO_T}no" >&6
7819
fi
7820
 
7821
 
7822
  else
7823
    MAGIC_CMD=:
7824
  fi
7825
fi
7826
 
7827
  fi
7828
  ;;
7829
esac
7830
 
7831
# Use C for the default configuration in the libtool script
7832
 
7833
lt_save_CC="$CC"
7834
ac_ext=c
7835
ac_cpp='$CPP $CPPFLAGS'
7836
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839
 
7840
 
7841
# Source file extension for C test sources.
7842
ac_ext=c
7843
 
7844
# Object file extension for compiled C test sources.
7845
objext=o
7846
objext=$objext
7847
 
7848
# Code to be used in simple compile tests
7849
lt_simple_compile_test_code="int some_variable = 0;"
7850
 
7851
# Code to be used in simple link tests
7852
lt_simple_link_test_code='int main(){return(0);}'
7853
 
7854
 
7855
 
7856
 
7857
 
7858
 
7859
 
7860
# If no C compiler was specified, use CC.
7861
LTCC=${LTCC-"$CC"}
7862
 
7863
# If no C compiler flags were specified, use CFLAGS.
7864
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7865
 
7866
# Allow CC to be a program name with arguments.
7867
compiler=$CC
7868
 
7869
# Save the default compiler, since it gets overwritten when the other
7870
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7871
compiler_DEFAULT=$CC
7872
 
7873
# save warnings/boilerplate of simple test code
7874
ac_outfile=conftest.$ac_objext
7875
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7876
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7877
_lt_compiler_boilerplate=`cat conftest.err`
7878
$RM conftest*
7879
 
7880
ac_outfile=conftest.$ac_objext
7881
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7882
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7883
_lt_linker_boilerplate=`cat conftest.err`
7884
$RM -r conftest*
7885
 
7886
 
7887
## CAVEAT EMPTOR:
7888
## There is no encapsulation within the following macros, do not change
7889
## the running order or otherwise move them around unless you know exactly
7890
## what you are doing...
7891
if test -n "$compiler"; then
7892
 
7893
lt_prog_compiler_no_builtin_flag=
7894
 
7895
if test "$GCC" = yes; then
7896
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7897
 
7898
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7899
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7900
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7901
  echo $ECHO_N "(cached) $ECHO_C" >&6
7902
else
7903
  lt_cv_prog_compiler_rtti_exceptions=no
7904
   ac_outfile=conftest.$ac_objext
7905
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7907
   # Insert the option either (1) after the last *FLAGS variable, or
7908
   # (2) before a word containing "conftest.", or (3) at the end.
7909
   # Note that $ac_compile itself does not contain backslashes and begins
7910
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7911
   # The option is referenced via a variable to avoid confusing sed.
7912
   lt_compile=`echo "$ac_compile" | $SED \
7913
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915
   -e 's:$: $lt_compiler_flag:'`
7916
   (eval echo "\"\$as_me:7916: $lt_compile\"" >&5)
7917
   (eval "$lt_compile" 2>conftest.err)
7918
   ac_status=$?
7919
   cat conftest.err >&5
7920
   echo "$as_me:7920: \$? = $ac_status" >&5
7921
   if (exit $ac_status) && test -s "$ac_outfile"; then
7922
     # The compiler can only warn and ignore the option if not recognized
7923
     # So say no if there are warnings other than the usual output.
7924
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7925
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7927
       lt_cv_prog_compiler_rtti_exceptions=yes
7928
     fi
7929
   fi
7930
   $RM conftest*
7931
 
7932
fi
7933
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7934
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7935
 
7936
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7937
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7938
else
7939
    :
7940
fi
7941
 
7942
fi
7943
 
7944
 
7945
 
7946
 
7947
 
7948
 
7949
  lt_prog_compiler_wl=
7950
lt_prog_compiler_pic=
7951
lt_prog_compiler_static=
7952
 
7953
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7954
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7955
 
7956
  if test "$GCC" = yes; then
7957
    lt_prog_compiler_wl='-Wl,'
7958
    lt_prog_compiler_static='-static'
7959
 
7960
    case $host_os in
7961
      aix*)
7962
      # All AIX code is PIC.
7963
      if test "$host_cpu" = ia64; then
7964
        # AIX 5 now supports IA64 processor
7965
        lt_prog_compiler_static='-Bstatic'
7966
      fi
7967
      ;;
7968
 
7969
    amigaos*)
7970
      case $host_cpu in
7971
      powerpc)
7972
            # see comment about AmigaOS4 .so support
7973
            lt_prog_compiler_pic='-fPIC'
7974
        ;;
7975
      m68k)
7976
            # FIXME: we need at least 68020 code to build shared libraries, but
7977
            # adding the `-m68020' flag to GCC prevents building anything better,
7978
            # like `-m68040'.
7979
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7980
        ;;
7981
      esac
7982
      ;;
7983
 
7984
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7985
      # PIC is the default for these OSes.
7986
      ;;
7987
 
7988
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7989
      # This hack is so that the source file can tell whether it is being
7990
      # built for inclusion in a dll (and should export symbols for example).
7991
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7992
      # (--disable-auto-import) libraries
7993
      lt_prog_compiler_pic='-DDLL_EXPORT'
7994
      ;;
7995
 
7996
    darwin* | rhapsody*)
7997
      # PIC is the default on this platform
7998
      # Common symbols not allowed in MH_DYLIB files
7999
      lt_prog_compiler_pic='-fno-common'
8000
      ;;
8001
 
8002
    hpux*)
8003
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8004
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8005
      # sets the default TLS model and affects inlining.
8006
      case $host_cpu in
8007
      hppa*64*)
8008
        # +Z the default
8009
        ;;
8010
      *)
8011
        lt_prog_compiler_pic='-fPIC'
8012
        ;;
8013
      esac
8014
      ;;
8015
 
8016
    interix[3-9]*)
8017
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8018
      # Instead, we relocate shared libraries at runtime.
8019
      ;;
8020
 
8021
    msdosdjgpp*)
8022
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8023
      # on systems that don't support them.
8024
      lt_prog_compiler_can_build_shared=no
8025
      enable_shared=no
8026
      ;;
8027
 
8028
    *nto* | *qnx*)
8029
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8030
      # it will coredump.
8031
      lt_prog_compiler_pic='-fPIC -shared'
8032
      ;;
8033
 
8034
    sysv4*MP*)
8035
      if test -d /usr/nec; then
8036
        lt_prog_compiler_pic=-Kconform_pic
8037
      fi
8038
      ;;
8039
 
8040
    *)
8041
      lt_prog_compiler_pic='-fPIC'
8042
      ;;
8043
    esac
8044
  else
8045
    # PORTME Check for flag to pass linker flags through the system compiler.
8046
    case $host_os in
8047
    aix*)
8048
      lt_prog_compiler_wl='-Wl,'
8049
      if test "$host_cpu" = ia64; then
8050
        # AIX 5 now supports IA64 processor
8051
        lt_prog_compiler_static='-Bstatic'
8052
      else
8053
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8054
      fi
8055
      ;;
8056
 
8057
    mingw* | cygwin* | pw32* | os2* | cegcc*)
8058
      # This hack is so that the source file can tell whether it is being
8059
      # built for inclusion in a dll (and should export symbols for example).
8060
      lt_prog_compiler_pic='-DDLL_EXPORT'
8061
      ;;
8062
 
8063
    hpux9* | hpux10* | hpux11*)
8064
      lt_prog_compiler_wl='-Wl,'
8065
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8066
      # not for PA HP-UX.
8067
      case $host_cpu in
8068
      hppa*64*|ia64*)
8069
        # +Z the default
8070
        ;;
8071
      *)
8072
        lt_prog_compiler_pic='+Z'
8073
        ;;
8074
      esac
8075
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8076
      lt_prog_compiler_static='${wl}-a ${wl}archive'
8077
      ;;
8078
 
8079
    irix5* | irix6* | nonstopux*)
8080
      lt_prog_compiler_wl='-Wl,'
8081
      # PIC (with -KPIC) is the default.
8082
      lt_prog_compiler_static='-non_shared'
8083
      ;;
8084
 
8085
    linux* | k*bsd*-gnu)
8086
      case $cc_basename in
8087
      # old Intel for x86_64 which still supported -KPIC.
8088
      ecc*)
8089
        lt_prog_compiler_wl='-Wl,'
8090
        lt_prog_compiler_pic='-KPIC'
8091
        lt_prog_compiler_static='-static'
8092
        ;;
8093
      # icc used to be incompatible with GCC.
8094
      # ICC 10 doesn't accept -KPIC any more.
8095
      icc* | ifort*)
8096
        lt_prog_compiler_wl='-Wl,'
8097
        lt_prog_compiler_pic='-fPIC'
8098
        lt_prog_compiler_static='-static'
8099
        ;;
8100
      # Lahey Fortran 8.1.
8101
      lf95*)
8102
        lt_prog_compiler_wl='-Wl,'
8103
        lt_prog_compiler_pic='--shared'
8104
        lt_prog_compiler_static='--static'
8105
        ;;
8106
      pgcc* | pgf77* | pgf90* | pgf95*)
8107
        # Portland Group compilers (*not* the Pentium gcc compiler,
8108
        # which looks to be a dead project)
8109
        lt_prog_compiler_wl='-Wl,'
8110
        lt_prog_compiler_pic='-fpic'
8111
        lt_prog_compiler_static='-Bstatic'
8112
        ;;
8113
      ccc*)
8114
        lt_prog_compiler_wl='-Wl,'
8115
        # All Alpha code is PIC.
8116
        lt_prog_compiler_static='-non_shared'
8117
        ;;
8118
      xl*)
8119
        # IBM XL C 8.0/Fortran 10.1 on PPC
8120
        lt_prog_compiler_wl='-Wl,'
8121
        lt_prog_compiler_pic='-qpic'
8122
        lt_prog_compiler_static='-qstaticlink'
8123
        ;;
8124
      *)
8125
        case `$CC -V 2>&1 | sed 5q` in
8126
        *Sun\ C*)
8127
          # Sun C 5.9
8128
          lt_prog_compiler_pic='-KPIC'
8129
          lt_prog_compiler_static='-Bstatic'
8130
          lt_prog_compiler_wl='-Wl,'
8131
          ;;
8132
        *Sun\ F*)
8133
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
8134
          lt_prog_compiler_pic='-KPIC'
8135
          lt_prog_compiler_static='-Bstatic'
8136
          lt_prog_compiler_wl=''
8137
          ;;
8138
        esac
8139
        ;;
8140
      esac
8141
      ;;
8142
 
8143
    newsos6)
8144
      lt_prog_compiler_pic='-KPIC'
8145
      lt_prog_compiler_static='-Bstatic'
8146
      ;;
8147
 
8148
    *nto* | *qnx*)
8149
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8150
      # it will coredump.
8151
      lt_prog_compiler_pic='-fPIC -shared'
8152
      ;;
8153
 
8154
    osf3* | osf4* | osf5*)
8155
      lt_prog_compiler_wl='-Wl,'
8156
      # All OSF/1 code is PIC.
8157
      lt_prog_compiler_static='-non_shared'
8158
      ;;
8159
 
8160
    rdos*)
8161
      lt_prog_compiler_static='-non_shared'
8162
      ;;
8163
 
8164
    solaris*)
8165
      lt_prog_compiler_pic='-KPIC'
8166
      lt_prog_compiler_static='-Bstatic'
8167
      case $cc_basename in
8168
      f77* | f90* | f95*)
8169
        lt_prog_compiler_wl='-Qoption ld ';;
8170
      *)
8171
        lt_prog_compiler_wl='-Wl,';;
8172
      esac
8173
      ;;
8174
 
8175
    sunos4*)
8176
      lt_prog_compiler_wl='-Qoption ld '
8177
      lt_prog_compiler_pic='-PIC'
8178
      lt_prog_compiler_static='-Bstatic'
8179
      ;;
8180
 
8181
    sysv4 | sysv4.2uw2* | sysv4.3*)
8182
      lt_prog_compiler_wl='-Wl,'
8183
      lt_prog_compiler_pic='-KPIC'
8184
      lt_prog_compiler_static='-Bstatic'
8185
      ;;
8186
 
8187
    sysv4*MP*)
8188
      if test -d /usr/nec ;then
8189
        lt_prog_compiler_pic='-Kconform_pic'
8190
        lt_prog_compiler_static='-Bstatic'
8191
      fi
8192
      ;;
8193
 
8194
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8195
      lt_prog_compiler_wl='-Wl,'
8196
      lt_prog_compiler_pic='-KPIC'
8197
      lt_prog_compiler_static='-Bstatic'
8198
      ;;
8199
 
8200
    unicos*)
8201
      lt_prog_compiler_wl='-Wl,'
8202
      lt_prog_compiler_can_build_shared=no
8203
      ;;
8204
 
8205
    uts4*)
8206
      lt_prog_compiler_pic='-pic'
8207
      lt_prog_compiler_static='-Bstatic'
8208
      ;;
8209
 
8210
    *)
8211
      lt_prog_compiler_can_build_shared=no
8212
      ;;
8213
    esac
8214
  fi
8215
 
8216
case $host_os in
8217
  # For platforms which do not support PIC, -DPIC is meaningless:
8218
  *djgpp*)
8219
    lt_prog_compiler_pic=
8220
    ;;
8221
  *)
8222
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8223
    ;;
8224
esac
8225
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8226
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8227
 
8228
 
8229
 
8230
 
8231
 
8232
 
8233
#
8234
# Check to make sure the PIC flag actually works.
8235
#
8236
if test -n "$lt_prog_compiler_pic"; then
8237
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8238
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8239
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8240
  echo $ECHO_N "(cached) $ECHO_C" >&6
8241
else
8242
  lt_cv_prog_compiler_pic_works=no
8243
   ac_outfile=conftest.$ac_objext
8244
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8246
   # Insert the option either (1) after the last *FLAGS variable, or
8247
   # (2) before a word containing "conftest.", or (3) at the end.
8248
   # Note that $ac_compile itself does not contain backslashes and begins
8249
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8250
   # The option is referenced via a variable to avoid confusing sed.
8251
   lt_compile=`echo "$ac_compile" | $SED \
8252
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8253
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8254
   -e 's:$: $lt_compiler_flag:'`
8255
   (eval echo "\"\$as_me:8255: $lt_compile\"" >&5)
8256
   (eval "$lt_compile" 2>conftest.err)
8257
   ac_status=$?
8258
   cat conftest.err >&5
8259
   echo "$as_me:8259: \$? = $ac_status" >&5
8260
   if (exit $ac_status) && test -s "$ac_outfile"; then
8261
     # The compiler can only warn and ignore the option if not recognized
8262
     # So say no if there are warnings other than the usual output.
8263
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8264
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8265
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8266
       lt_cv_prog_compiler_pic_works=yes
8267
     fi
8268
   fi
8269
   $RM conftest*
8270
 
8271
fi
8272
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8273
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8274
 
8275
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8276
    case $lt_prog_compiler_pic in
8277
     "" | " "*) ;;
8278
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8279
     esac
8280
else
8281
    lt_prog_compiler_pic=
8282
     lt_prog_compiler_can_build_shared=no
8283
fi
8284
 
8285
fi
8286
 
8287
 
8288
 
8289
 
8290
 
8291
 
8292
#
8293
# Check to make sure the static flag actually works.
8294
#
8295
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8296
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8297
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8298
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8299
  echo $ECHO_N "(cached) $ECHO_C" >&6
8300
else
8301
  lt_cv_prog_compiler_static_works=no
8302
   save_LDFLAGS="$LDFLAGS"
8303
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8304
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8305
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8306
     # The linker can only warn and ignore the option if not recognized
8307
     # So say no if there are warnings
8308
     if test -s conftest.err; then
8309
       # Append any errors to the config.log.
8310
       cat conftest.err 1>&5
8311
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8312
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8313
       if diff conftest.exp conftest.er2 >/dev/null; then
8314
         lt_cv_prog_compiler_static_works=yes
8315
       fi
8316
     else
8317
       lt_cv_prog_compiler_static_works=yes
8318
     fi
8319
   fi
8320
   $RM -r conftest*
8321
   LDFLAGS="$save_LDFLAGS"
8322
 
8323
fi
8324
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8325
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8326
 
8327
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8328
    :
8329
else
8330
    lt_prog_compiler_static=
8331
fi
8332
 
8333
 
8334
 
8335
 
8336
 
8337
 
8338
 
8339
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8340
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8341
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8342
  echo $ECHO_N "(cached) $ECHO_C" >&6
8343
else
8344
  lt_cv_prog_compiler_c_o=no
8345
   $RM -r conftest 2>/dev/null
8346
   mkdir conftest
8347
   cd conftest
8348
   mkdir out
8349
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350
 
8351
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8352
   # Insert the option either (1) after the last *FLAGS variable, or
8353
   # (2) before a word containing "conftest.", or (3) at the end.
8354
   # Note that $ac_compile itself does not contain backslashes and begins
8355
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8356
   lt_compile=`echo "$ac_compile" | $SED \
8357
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359
   -e 's:$: $lt_compiler_flag:'`
8360
   (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
8361
   (eval "$lt_compile" 2>out/conftest.err)
8362
   ac_status=$?
8363
   cat out/conftest.err >&5
8364
   echo "$as_me:8364: \$? = $ac_status" >&5
8365
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8366
   then
8367
     # The compiler can only warn and ignore the option if not recognized
8368
     # So say no if there are warnings
8369
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8370
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8371
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8372
       lt_cv_prog_compiler_c_o=yes
8373
     fi
8374
   fi
8375
   chmod u+w . 2>&5
8376
   $RM conftest*
8377
   # SGI C++ compiler will create directory out/ii_files/ for
8378
   # template instantiation
8379
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8380
   $RM out/* && rmdir out
8381
   cd ..
8382
   $RM -r conftest
8383
   $RM conftest*
8384
 
8385
fi
8386
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8387
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8388
 
8389
 
8390
 
8391
 
8392
 
8393
 
8394
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8395
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8396
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8397
  echo $ECHO_N "(cached) $ECHO_C" >&6
8398
else
8399
  lt_cv_prog_compiler_c_o=no
8400
   $RM -r conftest 2>/dev/null
8401
   mkdir conftest
8402
   cd conftest
8403
   mkdir out
8404
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8405
 
8406
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8407
   # Insert the option either (1) after the last *FLAGS variable, or
8408
   # (2) before a word containing "conftest.", or (3) at the end.
8409
   # Note that $ac_compile itself does not contain backslashes and begins
8410
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8411
   lt_compile=`echo "$ac_compile" | $SED \
8412
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8413
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8414
   -e 's:$: $lt_compiler_flag:'`
8415
   (eval echo "\"\$as_me:8415: $lt_compile\"" >&5)
8416
   (eval "$lt_compile" 2>out/conftest.err)
8417
   ac_status=$?
8418
   cat out/conftest.err >&5
8419
   echo "$as_me:8419: \$? = $ac_status" >&5
8420
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8421
   then
8422
     # The compiler can only warn and ignore the option if not recognized
8423
     # So say no if there are warnings
8424
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8425
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8426
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8427
       lt_cv_prog_compiler_c_o=yes
8428
     fi
8429
   fi
8430
   chmod u+w . 2>&5
8431
   $RM conftest*
8432
   # SGI C++ compiler will create directory out/ii_files/ for
8433
   # template instantiation
8434
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8435
   $RM out/* && rmdir out
8436
   cd ..
8437
   $RM -r conftest
8438
   $RM conftest*
8439
 
8440
fi
8441
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8442
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8443
 
8444
 
8445
 
8446
 
8447
hard_links="nottested"
8448
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8449
  # do not overwrite the value of need_locks provided by the user
8450
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8451
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8452
  hard_links=yes
8453
  $RM conftest*
8454
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8455
  touch conftest.a
8456
  ln conftest.a conftest.b 2>&5 || hard_links=no
8457
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458
  echo "$as_me:$LINENO: result: $hard_links" >&5
8459
echo "${ECHO_T}$hard_links" >&6
8460
  if test "$hard_links" = no; then
8461
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8462
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8463
    need_locks=warn
8464
  fi
8465
else
8466
  need_locks=no
8467
fi
8468
 
8469
 
8470
 
8471
 
8472
 
8473
 
8474
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8475
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8476
 
8477
  runpath_var=
8478
  allow_undefined_flag=
8479
  always_export_symbols=no
8480
  archive_cmds=
8481
  archive_expsym_cmds=
8482
  compiler_needs_object=no
8483
  enable_shared_with_static_runtimes=no
8484
  export_dynamic_flag_spec=
8485
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8486
  hardcode_automatic=no
8487
  hardcode_direct=no
8488
  hardcode_direct_absolute=no
8489
  hardcode_libdir_flag_spec=
8490
  hardcode_libdir_flag_spec_ld=
8491
  hardcode_libdir_separator=
8492
  hardcode_minus_L=no
8493
  hardcode_shlibpath_var=unsupported
8494
  inherit_rpath=no
8495
  link_all_deplibs=unknown
8496
  module_cmds=
8497
  module_expsym_cmds=
8498
  old_archive_from_new_cmds=
8499
  old_archive_from_expsyms_cmds=
8500
  thread_safe_flag_spec=
8501
  whole_archive_flag_spec=
8502
  # include_expsyms should be a list of space-separated symbols to be *always*
8503
  # included in the symbol list
8504
  include_expsyms=
8505
  # exclude_expsyms can be an extended regexp of symbols to exclude
8506
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8507
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8508
  # as well as any symbol that contains `d'.
8509
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8510
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8511
  # platforms (ab)use it in PIC code, but their linkers get confused if
8512
  # the symbol is explicitly referenced.  Since portable code cannot
8513
  # rely on this symbol name, it's probably fine to never include it in
8514
  # preloaded symbol tables.
8515
  # Exclude shared library initialization/finalization symbols.
8516
  extract_expsyms_cmds=
8517
 
8518
  case $host_os in
8519
  cygwin* | mingw* | pw32* | cegcc*)
8520
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8521
    # When not using gcc, we currently assume that we are using
8522
    # Microsoft Visual C++.
8523
    if test "$GCC" != yes; then
8524
      with_gnu_ld=no
8525
    fi
8526
    ;;
8527
  interix*)
8528
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8529
    with_gnu_ld=yes
8530
    ;;
8531
  openbsd*)
8532
    with_gnu_ld=no
8533
    ;;
8534
  esac
8535
 
8536
  ld_shlibs=yes
8537
  if test "$with_gnu_ld" = yes; then
8538
    # If archive_cmds runs LD, not CC, wlarc should be empty
8539
    wlarc='${wl}'
8540
 
8541
    # Set some defaults for GNU ld with shared library support. These
8542
    # are reset later if shared libraries are not supported. Putting them
8543
    # here allows them to be overridden if necessary.
8544
    runpath_var=LD_RUN_PATH
8545
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8546
    export_dynamic_flag_spec='${wl}--export-dynamic'
8547
    # ancient GNU ld didn't support --whole-archive et. al.
8548
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8549
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8550
    else
8551
      whole_archive_flag_spec=
8552
    fi
8553
    supports_anon_versioning=no
8554
    case `$LD -v 2>&1` in
8555
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8556
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8557
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8558
      *\ 2.11.*) ;; # other 2.11 versions
8559
      *) supports_anon_versioning=yes ;;
8560
    esac
8561
 
8562
    # See if GNU ld supports shared libraries.
8563
    case $host_os in
8564
    aix[3-9]*)
8565
      # On AIX/PPC, the GNU linker is very broken
8566
      if test "$host_cpu" != ia64; then
8567
        ld_shlibs=no
8568
        cat <<_LT_EOF 1>&2
8569
 
8570
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8571
*** to be unable to reliably create shared libraries on AIX.
8572
*** Therefore, libtool is disabling shared libraries support.  If you
8573
*** really care for shared libraries, you may want to modify your PATH
8574
*** so that a non-GNU linker is found, and then restart.
8575
 
8576
_LT_EOF
8577
      fi
8578
      ;;
8579
 
8580
    amigaos*)
8581
      case $host_cpu in
8582
      powerpc)
8583
            # see comment about AmigaOS4 .so support
8584
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585
            archive_expsym_cmds=''
8586
        ;;
8587
      m68k)
8588
            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)'
8589
            hardcode_libdir_flag_spec='-L$libdir'
8590
            hardcode_minus_L=yes
8591
        ;;
8592
      esac
8593
      ;;
8594
 
8595
    beos*)
8596
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597
        allow_undefined_flag=unsupported
8598
        # Joseph Beckenbach  says some releases of gcc
8599
        # support --undefined.  This deserves some investigation.  FIXME
8600
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601
      else
8602
        ld_shlibs=no
8603
      fi
8604
      ;;
8605
 
8606
    cygwin* | mingw* | pw32* | cegcc*)
8607
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8608
      # as there is no search path for DLLs.
8609
      hardcode_libdir_flag_spec='-L$libdir'
8610
      allow_undefined_flag=unsupported
8611
      always_export_symbols=no
8612
      enable_shared_with_static_runtimes=yes
8613
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8614
 
8615
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8616
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8617
        # If the export-symbols file already is a .def file (1st line
8618
        # is EXPORTS), use it as is; otherwise, prepend...
8619
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8620
          cp $export_symbols $output_objdir/$soname.def;
8621
        else
8622
          echo EXPORTS > $output_objdir/$soname.def;
8623
          cat $export_symbols >> $output_objdir/$soname.def;
8624
        fi~
8625
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626
      else
8627
        ld_shlibs=no
8628
      fi
8629
      ;;
8630
 
8631
    interix[3-9]*)
8632
      hardcode_direct=no
8633
      hardcode_shlibpath_var=no
8634
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635
      export_dynamic_flag_spec='${wl}-E'
8636
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8637
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8638
      # default) and relocated if they conflict, which is a slow very memory
8639
      # consuming and fragmenting process.  To avoid this, we pick a random,
8640
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8641
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8642
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8643
      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'
8644
      ;;
8645
 
8646
    gnu* | linux* | tpf* | k*bsd*-gnu)
8647
      tmp_diet=no
8648
      if test "$host_os" = linux-dietlibc; then
8649
        case $cc_basename in
8650
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8651
        esac
8652
      fi
8653
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8654
         && test "$tmp_diet" = no
8655
      then
8656
        tmp_addflag=
8657
        tmp_sharedflag='-shared'
8658
        case $cc_basename,$host_cpu in
8659
        pgcc*)                          # Portland Group C compiler
8660
          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'
8661
          tmp_addflag=' $pic_flag'
8662
          ;;
8663
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8664
          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'
8665
          tmp_addflag=' $pic_flag -Mnomain' ;;
8666
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8667
          tmp_addflag=' -i_dynamic' ;;
8668
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8669
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8670
        ifc* | ifort*)                  # Intel Fortran compiler
8671
          tmp_addflag=' -nofor_main' ;;
8672
        lf95*)                          # Lahey Fortran 8.1
8673
          whole_archive_flag_spec=
8674
          tmp_sharedflag='--shared' ;;
8675
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8676
          tmp_sharedflag='-qmkshrobj'
8677
          tmp_addflag= ;;
8678
        esac
8679
        case `$CC -V 2>&1 | sed 5q` in
8680
        *Sun\ C*)                       # Sun C 5.9
8681
          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'
8682
          compiler_needs_object=yes
8683
          tmp_sharedflag='-G' ;;
8684
        *Sun\ F*)                       # Sun Fortran 8.3
8685
          tmp_sharedflag='-G' ;;
8686
        esac
8687
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688
 
8689
        if test "x$supports_anon_versioning" = xyes; then
8690
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692
            echo "local: *; };" >> $output_objdir/$libname.ver~
8693
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8694
        fi
8695
 
8696
        case $cc_basename in
8697
        xlf*)
8698
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8699
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8700
          hardcode_libdir_flag_spec=
8701
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8703
          if test "x$supports_anon_versioning" = xyes; then
8704
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706
              echo "local: *; };" >> $output_objdir/$libname.ver~
8707
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708
          fi
8709
          ;;
8710
        esac
8711
      else
8712
        ld_shlibs=no
8713
      fi
8714
      ;;
8715
 
8716
    netbsd*)
8717
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719
        wlarc=
8720
      else
8721
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723
      fi
8724
      ;;
8725
 
8726
    solaris*)
8727
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8728
        ld_shlibs=no
8729
        cat <<_LT_EOF 1>&2
8730
 
8731
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732
*** create shared libraries on Solaris systems.  Therefore, libtool
8733
*** is disabling shared libraries support.  We urge you to upgrade GNU
8734
*** binutils to release 2.9.1 or newer.  Another option is to modify
8735
*** your PATH or compiler configuration so that the native linker is
8736
*** used, and then restart.
8737
 
8738
_LT_EOF
8739
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742
      else
8743
        ld_shlibs=no
8744
      fi
8745
      ;;
8746
 
8747
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748
      case `$LD -v 2>&1` in
8749
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8750
        ld_shlibs=no
8751
        cat <<_LT_EOF 1>&2
8752
 
8753
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8755
*** is disabling shared libraries support.  We urge you to upgrade GNU
8756
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8757
*** your PATH or compiler configuration so that the native linker is
8758
*** used, and then restart.
8759
 
8760
_LT_EOF
8761
        ;;
8762
        *)
8763
          # For security reasons, it is highly recommended that you always
8764
          # use absolute paths for naming shared libraries, and exclude the
8765
          # DT_RUNPATH tag from executables and libraries.  But doing so
8766
          # requires that you compile everything twice, which is a pain.
8767
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771
          else
8772
            ld_shlibs=no
8773
          fi
8774
        ;;
8775
      esac
8776
      ;;
8777
 
8778
    sunos4*)
8779
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780
      wlarc=
8781
      hardcode_direct=yes
8782
      hardcode_shlibpath_var=no
8783
      ;;
8784
 
8785
    *)
8786
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789
      else
8790
        ld_shlibs=no
8791
      fi
8792
      ;;
8793
    esac
8794
 
8795
    if test "$ld_shlibs" = no; then
8796
      runpath_var=
8797
      hardcode_libdir_flag_spec=
8798
      export_dynamic_flag_spec=
8799
      whole_archive_flag_spec=
8800
    fi
8801
  else
8802
    # PORTME fill in a description of your system's linker (not GNU ld)
8803
    case $host_os in
8804
    aix3*)
8805
      allow_undefined_flag=unsupported
8806
      always_export_symbols=yes
8807
      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'
8808
      # Note: this linker hardcodes the directories in LIBPATH if there
8809
      # are no directories specified by -L.
8810
      hardcode_minus_L=yes
8811
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812
        # Neither direct hardcoding nor static linking is supported with a
8813
        # broken collect2.
8814
        hardcode_direct=unsupported
8815
      fi
8816
      ;;
8817
 
8818
    aix[4-9]*)
8819
      if test "$host_cpu" = ia64; then
8820
        # On IA64, the linker does run time linking by default, so we don't
8821
        # have to do anything special.
8822
        aix_use_runtimelinking=no
8823
        exp_sym_flag='-Bexport'
8824
        no_entry_flag=""
8825
      else
8826
        # If we're using GNU nm, then we don't want the "-C" option.
8827
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8829
          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'
8830
        else
8831
          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'
8832
        fi
8833
        aix_use_runtimelinking=no
8834
 
8835
        # Test if we are trying to use run time linking or normal
8836
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8837
        # need to do runtime linking.
8838
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8839
          for ld_flag in $LDFLAGS; do
8840
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8841
            aix_use_runtimelinking=yes
8842
            break
8843
          fi
8844
          done
8845
          ;;
8846
        esac
8847
 
8848
        exp_sym_flag='-bexport'
8849
        no_entry_flag='-bnoentry'
8850
      fi
8851
 
8852
      # When large executables or shared objects are built, AIX ld can
8853
      # have problems creating the table of contents.  If linking a library
8854
      # or program results in "error TOC overflow" add -mminimal-toc to
8855
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8856
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8857
 
8858
      archive_cmds=''
8859
      hardcode_direct=yes
8860
      hardcode_direct_absolute=yes
8861
      hardcode_libdir_separator=':'
8862
      link_all_deplibs=yes
8863
      file_list_spec='${wl}-f,'
8864
 
8865
      if test "$GCC" = yes; then
8866
        case $host_os in aix4.[012]|aix4.[012].*)
8867
        # We only want to do this on AIX 4.2 and lower, the check
8868
        # below for broken collect2 doesn't work under 4.3+
8869
          collect2name=`${CC} -print-prog-name=collect2`
8870
          if test -f "$collect2name" &&
8871
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8872
          then
8873
          # We have reworked collect2
8874
          :
8875
          else
8876
          # We have old collect2
8877
          hardcode_direct=unsupported
8878
          # It fails to find uninstalled libraries when the uninstalled
8879
          # path is not listed in the libpath.  Setting hardcode_minus_L
8880
          # to unsupported forces relinking
8881
          hardcode_minus_L=yes
8882
          hardcode_libdir_flag_spec='-L$libdir'
8883
          hardcode_libdir_separator=
8884
          fi
8885
          ;;
8886
        esac
8887
        shared_flag='-shared'
8888
        if test "$aix_use_runtimelinking" = yes; then
8889
          shared_flag="$shared_flag "'${wl}-G'
8890
        fi
8891
      else
8892
        # not using gcc
8893
        if test "$host_cpu" = ia64; then
8894
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8895
        # chokes on -Wl,-G. The following line is correct:
8896
          shared_flag='-G'
8897
        else
8898
          if test "$aix_use_runtimelinking" = yes; then
8899
            shared_flag='${wl}-G'
8900
          else
8901
            shared_flag='${wl}-bM:SRE'
8902
          fi
8903
        fi
8904
      fi
8905
 
8906
      export_dynamic_flag_spec='${wl}-bexpall'
8907
      # It seems that -bexpall does not export symbols beginning with
8908
      # underscore (_), so it is better to generate a list of symbols to export.
8909
      always_export_symbols=yes
8910
      if test "$aix_use_runtimelinking" = yes; then
8911
        # Warning - without using the other runtime loading flags (-brtl),
8912
        # -berok will link without error, but may produce a broken library.
8913
        allow_undefined_flag='-berok'
8914
        # Determine the default libpath from the value encoded in an
8915
        # empty executable.
8916
        cat >conftest.$ac_ext <<_ACEOF
8917
/* confdefs.h.  */
8918
_ACEOF
8919
cat confdefs.h >>conftest.$ac_ext
8920
cat >>conftest.$ac_ext <<_ACEOF
8921
/* end confdefs.h.  */
8922
 
8923
int
8924
main ()
8925
{
8926
 
8927
  ;
8928
  return 0;
8929
}
8930
_ACEOF
8931
rm -f conftest.$ac_objext conftest$ac_exeext
8932
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933
  (eval $ac_link) 2>conftest.er1
8934
  ac_status=$?
8935
  grep -v '^ *+' conftest.er1 >conftest.err
8936
  rm -f conftest.er1
8937
  cat conftest.err >&5
8938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939
  (exit $ac_status); } &&
8940
         { ac_try='test -z "$ac_c_werror_flag"
8941
                         || test ! -s conftest.err'
8942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943
  (eval $ac_try) 2>&5
8944
  ac_status=$?
8945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946
  (exit $ac_status); }; } &&
8947
         { ac_try='test -s conftest$ac_exeext'
8948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949
  (eval $ac_try) 2>&5
8950
  ac_status=$?
8951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
  (exit $ac_status); }; }; then
8953
 
8954
lt_aix_libpath_sed='
8955
    /Import File Strings/,/^$/ {
8956
        /^0/ {
8957
            s/^0  *\(.*\)$/\1/
8958
            p
8959
        }
8960
    }'
8961
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962
# Check for a 64-bit object if we didn't find anything.
8963
if test -z "$aix_libpath"; then
8964
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8965
fi
8966
else
8967
  echo "$as_me: failed program was:" >&5
8968
sed 's/^/| /' conftest.$ac_ext >&5
8969
 
8970
fi
8971
rm -f conftest.err conftest.$ac_objext \
8972
      conftest$ac_exeext conftest.$ac_ext
8973
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8974
 
8975
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976
        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"
8977
      else
8978
        if test "$host_cpu" = ia64; then
8979
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980
          allow_undefined_flag="-z nodefs"
8981
          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"
8982
        else
8983
         # Determine the default libpath from the value encoded in an
8984
         # empty executable.
8985
         cat >conftest.$ac_ext <<_ACEOF
8986
/* confdefs.h.  */
8987
_ACEOF
8988
cat confdefs.h >>conftest.$ac_ext
8989
cat >>conftest.$ac_ext <<_ACEOF
8990
/* end confdefs.h.  */
8991
 
8992
int
8993
main ()
8994
{
8995
 
8996
  ;
8997
  return 0;
8998
}
8999
_ACEOF
9000
rm -f conftest.$ac_objext conftest$ac_exeext
9001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002
  (eval $ac_link) 2>conftest.er1
9003
  ac_status=$?
9004
  grep -v '^ *+' conftest.er1 >conftest.err
9005
  rm -f conftest.er1
9006
  cat conftest.err >&5
9007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008
  (exit $ac_status); } &&
9009
         { ac_try='test -z "$ac_c_werror_flag"
9010
                         || test ! -s conftest.err'
9011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012
  (eval $ac_try) 2>&5
9013
  ac_status=$?
9014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015
  (exit $ac_status); }; } &&
9016
         { ac_try='test -s conftest$ac_exeext'
9017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018
  (eval $ac_try) 2>&5
9019
  ac_status=$?
9020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021
  (exit $ac_status); }; }; then
9022
 
9023
lt_aix_libpath_sed='
9024
    /Import File Strings/,/^$/ {
9025
        /^0/ {
9026
            s/^0  *\(.*\)$/\1/
9027
            p
9028
        }
9029
    }'
9030
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9031
# Check for a 64-bit object if we didn't find anything.
9032
if test -z "$aix_libpath"; then
9033
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9034
fi
9035
else
9036
  echo "$as_me: failed program was:" >&5
9037
sed 's/^/| /' conftest.$ac_ext >&5
9038
 
9039
fi
9040
rm -f conftest.err conftest.$ac_objext \
9041
      conftest$ac_exeext conftest.$ac_ext
9042
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9043
 
9044
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9045
          # Warning - without using the other run time loading flags,
9046
          # -berok will link without error, but may produce a broken library.
9047
          no_undefined_flag=' ${wl}-bernotok'
9048
          allow_undefined_flag=' ${wl}-berok'
9049
          # Exported symbols can be pulled into shared objects from archives
9050
          whole_archive_flag_spec='$convenience'
9051
          archive_cmds_need_lc=yes
9052
          # This is similar to how AIX traditionally builds its shared libraries.
9053
          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'
9054
        fi
9055
      fi
9056
      ;;
9057
 
9058
    amigaos*)
9059
      case $host_cpu in
9060
      powerpc)
9061
            # see comment about AmigaOS4 .so support
9062
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063
            archive_expsym_cmds=''
9064
        ;;
9065
      m68k)
9066
            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)'
9067
            hardcode_libdir_flag_spec='-L$libdir'
9068
            hardcode_minus_L=yes
9069
        ;;
9070
      esac
9071
      ;;
9072
 
9073
    bsdi[45]*)
9074
      export_dynamic_flag_spec=-rdynamic
9075
      ;;
9076
 
9077
    cygwin* | mingw* | pw32* | cegcc*)
9078
      # When not using gcc, we currently assume that we are using
9079
      # Microsoft Visual C++.
9080
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9081
      # no search path for DLLs.
9082
      hardcode_libdir_flag_spec=' '
9083
      allow_undefined_flag=unsupported
9084
      # Tell ltmain to make .lib files, not .a files.
9085
      libext=lib
9086
      # Tell ltmain to make .dll files, not .so files.
9087
      shrext_cmds=".dll"
9088
      # FIXME: Setting linknames here is a bad hack.
9089
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9090
      # The linker will automatically build a .lib file if we build a DLL.
9091
      old_archive_from_new_cmds='true'
9092
      # FIXME: Should let the user specify the lib program.
9093
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9094
      fix_srcfile_path='`cygpath -w "$srcfile"`'
9095
      enable_shared_with_static_runtimes=yes
9096
      ;;
9097
 
9098
    darwin* | rhapsody*)
9099
 
9100
 
9101
  archive_cmds_need_lc=no
9102
  hardcode_direct=no
9103
  hardcode_automatic=yes
9104
  hardcode_shlibpath_var=unsupported
9105
  whole_archive_flag_spec=''
9106
  link_all_deplibs=yes
9107
  allow_undefined_flag="$_lt_dar_allow_undefined"
9108
  case $cc_basename in
9109
     ifort*) _lt_dar_can_shared=yes ;;
9110
     *) _lt_dar_can_shared=$GCC ;;
9111
  esac
9112
  if test "$_lt_dar_can_shared" = "yes"; then
9113
    output_verbose_link_cmd=echo
9114
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9115
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9116
    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}"
9117
    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}"
9118
 
9119
  else
9120
  ld_shlibs=no
9121
  fi
9122
 
9123
      ;;
9124
 
9125
    dgux*)
9126
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127
      hardcode_libdir_flag_spec='-L$libdir'
9128
      hardcode_shlibpath_var=no
9129
      ;;
9130
 
9131
    freebsd1*)
9132
      ld_shlibs=no
9133
      ;;
9134
 
9135
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9136
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9137
    # does not break anything, and helps significantly (at the cost of a little
9138
    # extra space).
9139
    freebsd2.2*)
9140
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9141
      hardcode_libdir_flag_spec='-R$libdir'
9142
      hardcode_direct=yes
9143
      hardcode_shlibpath_var=no
9144
      ;;
9145
 
9146
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9147
    freebsd2*)
9148
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9149
      hardcode_direct=yes
9150
      hardcode_minus_L=yes
9151
      hardcode_shlibpath_var=no
9152
      ;;
9153
 
9154
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9155
    freebsd* | dragonfly*)
9156
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9157
      hardcode_libdir_flag_spec='-R$libdir'
9158
      hardcode_direct=yes
9159
      hardcode_shlibpath_var=no
9160
      ;;
9161
 
9162
    hpux9*)
9163
      if test "$GCC" = yes; then
9164
        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'
9165
      else
9166
        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'
9167
      fi
9168
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9169
      hardcode_libdir_separator=:
9170
      hardcode_direct=yes
9171
 
9172
      # hardcode_minus_L: Not really in the search PATH,
9173
      # but as the default location of the library.
9174
      hardcode_minus_L=yes
9175
      export_dynamic_flag_spec='${wl}-E'
9176
      ;;
9177
 
9178
    hpux10*)
9179
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9180
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181
      else
9182
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9183
      fi
9184
      if test "$with_gnu_ld" = no; then
9185
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186
        hardcode_libdir_flag_spec_ld='+b $libdir'
9187
        hardcode_libdir_separator=:
9188
        hardcode_direct=yes
9189
        hardcode_direct_absolute=yes
9190
        export_dynamic_flag_spec='${wl}-E'
9191
        # hardcode_minus_L: Not really in the search PATH,
9192
        # but as the default location of the library.
9193
        hardcode_minus_L=yes
9194
      fi
9195
      ;;
9196
 
9197
    hpux11*)
9198
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9199
        case $host_cpu in
9200
        hppa*64*)
9201
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202
          ;;
9203
        ia64*)
9204
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9205
          ;;
9206
        *)
9207
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208
          ;;
9209
        esac
9210
      else
9211
        case $host_cpu in
9212
        hppa*64*)
9213
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9214
          ;;
9215
        ia64*)
9216
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217
          ;;
9218
        *)
9219
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220
          ;;
9221
        esac
9222
      fi
9223
      if test "$with_gnu_ld" = no; then
9224
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9225
        hardcode_libdir_separator=:
9226
 
9227
        case $host_cpu in
9228
        hppa*64*|ia64*)
9229
          hardcode_direct=no
9230
          hardcode_shlibpath_var=no
9231
          ;;
9232
        *)
9233
          hardcode_direct=yes
9234
          hardcode_direct_absolute=yes
9235
          export_dynamic_flag_spec='${wl}-E'
9236
 
9237
          # hardcode_minus_L: Not really in the search PATH,
9238
          # but as the default location of the library.
9239
          hardcode_minus_L=yes
9240
          ;;
9241
        esac
9242
      fi
9243
      ;;
9244
 
9245
    irix5* | irix6* | nonstopux*)
9246
      if test "$GCC" = yes; then
9247
        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'
9248
        # Try to use the -exported_symbol ld option, if it does not
9249
        # work, assume that -exports_file does not work either and
9250
        # implicitly export all symbols.
9251
        save_LDFLAGS="$LDFLAGS"
9252
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9253
        cat >conftest.$ac_ext <<_ACEOF
9254
int foo(void) {}
9255
_ACEOF
9256
rm -f conftest.$ac_objext conftest$ac_exeext
9257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258
  (eval $ac_link) 2>conftest.er1
9259
  ac_status=$?
9260
  grep -v '^ *+' conftest.er1 >conftest.err
9261
  rm -f conftest.er1
9262
  cat conftest.err >&5
9263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264
  (exit $ac_status); } &&
9265
         { ac_try='test -z "$ac_c_werror_flag"
9266
                         || test ! -s conftest.err'
9267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268
  (eval $ac_try) 2>&5
9269
  ac_status=$?
9270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
  (exit $ac_status); }; } &&
9272
         { ac_try='test -s conftest$ac_exeext'
9273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274
  (eval $ac_try) 2>&5
9275
  ac_status=$?
9276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277
  (exit $ac_status); }; }; then
9278
  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'
9279
 
9280
else
9281
  echo "$as_me: failed program was:" >&5
9282
sed 's/^/| /' conftest.$ac_ext >&5
9283
 
9284
fi
9285
rm -f conftest.err conftest.$ac_objext \
9286
      conftest$ac_exeext conftest.$ac_ext
9287
        LDFLAGS="$save_LDFLAGS"
9288
      else
9289
        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'
9290
        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'
9291
      fi
9292
      archive_cmds_need_lc='no'
9293
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294
      hardcode_libdir_separator=:
9295
      inherit_rpath=yes
9296
      link_all_deplibs=yes
9297
      ;;
9298
 
9299
    netbsd*)
9300
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9302
      else
9303
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9304
      fi
9305
      hardcode_libdir_flag_spec='-R$libdir'
9306
      hardcode_direct=yes
9307
      hardcode_shlibpath_var=no
9308
      ;;
9309
 
9310
    newsos6)
9311
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312
      hardcode_direct=yes
9313
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314
      hardcode_libdir_separator=:
9315
      hardcode_shlibpath_var=no
9316
      ;;
9317
 
9318
    *nto* | *qnx*)
9319
      ;;
9320
 
9321
    openbsd*)
9322
      if test -f /usr/libexec/ld.so; then
9323
        hardcode_direct=yes
9324
        hardcode_shlibpath_var=no
9325
        hardcode_direct_absolute=yes
9326
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9327
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9329
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330
          export_dynamic_flag_spec='${wl}-E'
9331
        else
9332
          case $host_os in
9333
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9334
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335
             hardcode_libdir_flag_spec='-R$libdir'
9336
             ;;
9337
           *)
9338
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9339
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340
             ;;
9341
          esac
9342
        fi
9343
      else
9344
        ld_shlibs=no
9345
      fi
9346
      ;;
9347
 
9348
    os2*)
9349
      hardcode_libdir_flag_spec='-L$libdir'
9350
      hardcode_minus_L=yes
9351
      allow_undefined_flag=unsupported
9352
      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'
9353
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9354
      ;;
9355
 
9356
    osf3*)
9357
      if test "$GCC" = yes; then
9358
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359
        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'
9360
      else
9361
        allow_undefined_flag=' -expect_unresolved \*'
9362
        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'
9363
      fi
9364
      archive_cmds_need_lc='no'
9365
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366
      hardcode_libdir_separator=:
9367
      ;;
9368
 
9369
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9370
      if test "$GCC" = yes; then
9371
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372
        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'
9373
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374
      else
9375
        allow_undefined_flag=' -expect_unresolved \*'
9376
        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'
9377
        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~
9378
        $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'
9379
 
9380
        # Both c and cxx compiler support -rpath directly
9381
        hardcode_libdir_flag_spec='-rpath $libdir'
9382
      fi
9383
      archive_cmds_need_lc='no'
9384
      hardcode_libdir_separator=:
9385
      ;;
9386
 
9387
    solaris*)
9388
      no_undefined_flag=' -z defs'
9389
      if test "$GCC" = yes; then
9390
        wlarc='${wl}'
9391
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9394
      else
9395
        case `$CC -V 2>&1` in
9396
        *"Compilers 5.0"*)
9397
          wlarc=''
9398
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9401
          ;;
9402
        *)
9403
          wlarc='${wl}'
9404
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9405
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9407
          ;;
9408
        esac
9409
      fi
9410
      hardcode_libdir_flag_spec='-R$libdir'
9411
      hardcode_shlibpath_var=no
9412
      case $host_os in
9413
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9414
      *)
9415
        # The compiler driver will combine and reorder linker options,
9416
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9417
        # but is careful enough not to reorder.
9418
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9419
        if test "$GCC" = yes; then
9420
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9421
        else
9422
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9423
        fi
9424
        ;;
9425
      esac
9426
      link_all_deplibs=yes
9427
      ;;
9428
 
9429
    sunos4*)
9430
      if test "x$host_vendor" = xsequent; then
9431
        # Use $CC to link under sequent, because it throws in some extra .o
9432
        # files that make .init and .fini sections work.
9433
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9434
      else
9435
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9436
      fi
9437
      hardcode_libdir_flag_spec='-L$libdir'
9438
      hardcode_direct=yes
9439
      hardcode_minus_L=yes
9440
      hardcode_shlibpath_var=no
9441
      ;;
9442
 
9443
    sysv4)
9444
      case $host_vendor in
9445
        sni)
9446
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447
          hardcode_direct=yes # is this really true???
9448
        ;;
9449
        siemens)
9450
          ## LD is ld it makes a PLAMLIB
9451
          ## CC just makes a GrossModule.
9452
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9453
          reload_cmds='$CC -r -o $output$reload_objs'
9454
          hardcode_direct=no
9455
        ;;
9456
        motorola)
9457
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9459
        ;;
9460
      esac
9461
      runpath_var='LD_RUN_PATH'
9462
      hardcode_shlibpath_var=no
9463
      ;;
9464
 
9465
    sysv4.3*)
9466
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467
      hardcode_shlibpath_var=no
9468
      export_dynamic_flag_spec='-Bexport'
9469
      ;;
9470
 
9471
    sysv4*MP*)
9472
      if test -d /usr/nec; then
9473
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474
        hardcode_shlibpath_var=no
9475
        runpath_var=LD_RUN_PATH
9476
        hardcode_runpath_var=yes
9477
        ld_shlibs=yes
9478
      fi
9479
      ;;
9480
 
9481
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9482
      no_undefined_flag='${wl}-z,text'
9483
      archive_cmds_need_lc=no
9484
      hardcode_shlibpath_var=no
9485
      runpath_var='LD_RUN_PATH'
9486
 
9487
      if test "$GCC" = yes; then
9488
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490
      else
9491
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493
      fi
9494
      ;;
9495
 
9496
    sysv5* | sco3.2v5* | sco5v6*)
9497
      # Note: We can NOT use -z defs as we might desire, because we do not
9498
      # link with -lc, and that would cause any symbols used from libc to
9499
      # always be unresolved, which means just about no library would
9500
      # ever link correctly.  If we're not using GNU ld we use -z text
9501
      # though, which does catch some bad symbols but isn't as heavy-handed
9502
      # as -z defs.
9503
      no_undefined_flag='${wl}-z,text'
9504
      allow_undefined_flag='${wl}-z,nodefs'
9505
      archive_cmds_need_lc=no
9506
      hardcode_shlibpath_var=no
9507
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9508
      hardcode_libdir_separator=':'
9509
      link_all_deplibs=yes
9510
      export_dynamic_flag_spec='${wl}-Bexport'
9511
      runpath_var='LD_RUN_PATH'
9512
 
9513
      if test "$GCC" = yes; then
9514
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516
      else
9517
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519
      fi
9520
      ;;
9521
 
9522
    uts4*)
9523
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524
      hardcode_libdir_flag_spec='-L$libdir'
9525
      hardcode_shlibpath_var=no
9526
      ;;
9527
 
9528
    *)
9529
      ld_shlibs=no
9530
      ;;
9531
    esac
9532
 
9533
    if test x$host_vendor = xsni; then
9534
      case $host in
9535
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9536
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9537
        ;;
9538
      esac
9539
    fi
9540
  fi
9541
 
9542
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9543
echo "${ECHO_T}$ld_shlibs" >&6
9544
test "$ld_shlibs" = no && can_build_shared=no
9545
 
9546
with_gnu_ld=$with_gnu_ld
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
#
9563
# Do we need to explicitly link libc?
9564
#
9565
case "x$archive_cmds_need_lc" in
9566
x|xyes)
9567
  # Assume -lc should be added
9568
  archive_cmds_need_lc=yes
9569
 
9570
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9571
    case $archive_cmds in
9572
    *'~'*)
9573
      # FIXME: we may have to deal with multi-command sequences.
9574
      ;;
9575
    '$CC '*)
9576
      # Test whether the compiler implicitly links with -lc since on some
9577
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9578
      # to ld, don't add -lc before -lgcc.
9579
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9580
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9581
      $RM conftest*
9582
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583
 
9584
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585
  (eval $ac_compile) 2>&5
9586
  ac_status=$?
9587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588
  (exit $ac_status); } 2>conftest.err; then
9589
        soname=conftest
9590
        lib=conftest
9591
        libobjs=conftest.$ac_objext
9592
        deplibs=
9593
        wl=$lt_prog_compiler_wl
9594
        pic_flag=$lt_prog_compiler_pic
9595
        compiler_flags=-v
9596
        linker_flags=-v
9597
        verstring=
9598
        output_objdir=.
9599
        libname=conftest
9600
        lt_save_allow_undefined_flag=$allow_undefined_flag
9601
        allow_undefined_flag=
9602
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9603
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9604
  ac_status=$?
9605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606
  (exit $ac_status); }
9607
        then
9608
          archive_cmds_need_lc=no
9609
        else
9610
          archive_cmds_need_lc=yes
9611
        fi
9612
        allow_undefined_flag=$lt_save_allow_undefined_flag
9613
      else
9614
        cat conftest.err 1>&5
9615
      fi
9616
      $RM conftest*
9617
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9618
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9619
      ;;
9620
    esac
9621
  fi
9622
  ;;
9623
esac
9624
 
9625
 
9626
 
9627
 
9628
 
9629
 
9630
 
9631
 
9632
 
9633
 
9634
 
9635
 
9636
 
9637
 
9638
 
9639
 
9640
 
9641
 
9642
 
9643
 
9644
 
9645
 
9646
 
9647
 
9648
 
9649
 
9650
 
9651
 
9652
 
9653
 
9654
 
9655
 
9656
 
9657
 
9658
 
9659
 
9660
 
9661
 
9662
 
9663
 
9664
 
9665
 
9666
 
9667
 
9668
 
9669
 
9670
 
9671
 
9672
 
9673
 
9674
 
9675
 
9676
 
9677
 
9678
 
9679
 
9680
 
9681
 
9682
 
9683
 
9684
 
9685
 
9686
 
9687
 
9688
 
9689
 
9690
 
9691
 
9692
 
9693
 
9694
 
9695
 
9696
 
9697
 
9698
 
9699
 
9700
 
9701
 
9702
 
9703
 
9704
 
9705
 
9706
 
9707
 
9708
 
9709
 
9710
 
9711
 
9712
 
9713
 
9714
 
9715
 
9716
 
9717
 
9718
 
9719
 
9720
 
9721
 
9722
 
9723
 
9724
 
9725
 
9726
 
9727
 
9728
 
9729
 
9730
 
9731
 
9732
 
9733
 
9734
 
9735
 
9736
 
9737
 
9738
 
9739
 
9740
 
9741
 
9742
 
9743
 
9744
 
9745
 
9746
 
9747
 
9748
 
9749
 
9750
 
9751
 
9752
 
9753
 
9754
 
9755
 
9756
 
9757
 
9758
 
9759
 
9760
 
9761
 
9762
 
9763
 
9764
 
9765
 
9766
 
9767
 
9768
 
9769
 
9770
 
9771
 
9772
 
9773
 
9774
 
9775
 
9776
 
9777
 
9778
 
9779
 
9780
 
9781
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9782
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9783
 
9784
if test "$GCC" = yes; then
9785
  case $host_os in
9786
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9787
    *) lt_awk_arg="/^libraries:/" ;;
9788
  esac
9789
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9791
    # if the path contains ";" then we assume it to be the separator
9792
    # otherwise default to the standard path separator (i.e. ":") - it is
9793
    # assumed that no part of a normal pathname contains ";" but that should
9794
    # okay in the real world where ";" in dirpaths is itself problematic.
9795
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9796
  else
9797
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9798
  fi
9799
  # Ok, now we have the path, separated by spaces, we can step through it
9800
  # and add multilib dir if necessary.
9801
  lt_tmp_lt_search_path_spec=
9802
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9803
  for lt_sys_path in $lt_search_path_spec; do
9804
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9805
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9806
    else
9807
      test -d "$lt_sys_path" && \
9808
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9809
    fi
9810
  done
9811
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9812
BEGIN {RS=" "; FS="/|\n";} {
9813
  lt_foo="";
9814
  lt_count=0;
9815
  for (lt_i = NF; lt_i > 0; lt_i--) {
9816
    if ($lt_i != "" && $lt_i != ".") {
9817
      if ($lt_i == "..") {
9818
        lt_count++;
9819
      } else {
9820
        if (lt_count == 0) {
9821
          lt_foo="/" $lt_i lt_foo;
9822
        } else {
9823
          lt_count--;
9824
        }
9825
      }
9826
    }
9827
  }
9828
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9829
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9830
}'`
9831
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9832
else
9833
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834
fi
9835
library_names_spec=
9836
libname_spec='lib$name'
9837
soname_spec=
9838
shrext_cmds=".so"
9839
postinstall_cmds=
9840
postuninstall_cmds=
9841
finish_cmds=
9842
finish_eval=
9843
shlibpath_var=
9844
shlibpath_overrides_runpath=unknown
9845
version_type=none
9846
dynamic_linker="$host_os ld.so"
9847
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9848
need_lib_prefix=unknown
9849
hardcode_into_libs=no
9850
 
9851
# when you set need_version to no, make sure it does not cause -set_version
9852
# flags to be left without arguments
9853
need_version=unknown
9854
 
9855
case $host_os in
9856
aix3*)
9857
  version_type=linux
9858
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9859
  shlibpath_var=LIBPATH
9860
 
9861
  # AIX 3 has no versioning support, so we append a major version to the name.
9862
  soname_spec='${libname}${release}${shared_ext}$major'
9863
  ;;
9864
 
9865
aix[4-9]*)
9866
  version_type=linux
9867
  need_lib_prefix=no
9868
  need_version=no
9869
  hardcode_into_libs=yes
9870
  if test "$host_cpu" = ia64; then
9871
    # AIX 5 supports IA64
9872
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9873
    shlibpath_var=LD_LIBRARY_PATH
9874
  else
9875
    # With GCC up to 2.95.x, collect2 would create an import file
9876
    # for dependence libraries.  The import file would start with
9877
    # the line `#! .'.  This would cause the generated library to
9878
    # depend on `.', always an invalid library.  This was fixed in
9879
    # development snapshots of GCC prior to 3.0.
9880
    case $host_os in
9881
      aix4 | aix4.[01] | aix4.[01].*)
9882
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9883
           echo ' yes '
9884
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9885
        :
9886
      else
9887
        can_build_shared=no
9888
      fi
9889
      ;;
9890
    esac
9891
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9892
    # soname into executable. Probably we can add versioning support to
9893
    # collect2, so additional links can be useful in future.
9894
    if test "$aix_use_runtimelinking" = yes; then
9895
      # If using run time linking (on AIX 4.2 or later) use lib.so
9896
      # instead of lib.a to let people know that these are not
9897
      # typical AIX shared libraries.
9898
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899
    else
9900
      # We preserve .a as extension for shared libraries through AIX4.2
9901
      # and later when we are not doing run time linking.
9902
      library_names_spec='${libname}${release}.a $libname.a'
9903
      soname_spec='${libname}${release}${shared_ext}$major'
9904
    fi
9905
    shlibpath_var=LIBPATH
9906
  fi
9907
  ;;
9908
 
9909
amigaos*)
9910
  case $host_cpu in
9911
  powerpc)
9912
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9913
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9914
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915
    ;;
9916
  m68k)
9917
    library_names_spec='$libname.ixlibrary $libname.a'
9918
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9919
    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'
9920
    ;;
9921
  esac
9922
  ;;
9923
 
9924
beos*)
9925
  library_names_spec='${libname}${shared_ext}'
9926
  dynamic_linker="$host_os ld.so"
9927
  shlibpath_var=LIBRARY_PATH
9928
  ;;
9929
 
9930
bsdi[45]*)
9931
  version_type=linux
9932
  need_version=no
9933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934
  soname_spec='${libname}${release}${shared_ext}$major'
9935
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936
  shlibpath_var=LD_LIBRARY_PATH
9937
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939
  # the default ld.so.conf also contains /usr/contrib/lib and
9940
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941
  # libtool to hard-code these into programs
9942
  ;;
9943
 
9944
cygwin* | mingw* | pw32* | cegcc*)
9945
  version_type=windows
9946
  shrext_cmds=".dll"
9947
  need_version=no
9948
  need_lib_prefix=no
9949
 
9950
  case $GCC,$host_os in
9951
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9952
    library_names_spec='$libname.dll.a'
9953
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954
    postinstall_cmds='base_file=`basename \${file}`~
9955
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9956
      dldir=$destdir/`dirname \$dlpath`~
9957
      test -d \$dldir || mkdir -p \$dldir~
9958
      $install_prog $dir/$dlname \$dldir/$dlname~
9959
      chmod a+x \$dldir/$dlname~
9960
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9961
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9962
      fi'
9963
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9964
      dlpath=$dir/\$dldll~
9965
       $RM \$dlpath'
9966
    shlibpath_overrides_runpath=yes
9967
 
9968
    case $host_os in
9969
    cygwin*)
9970
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9971
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9973
      ;;
9974
    mingw* | cegcc*)
9975
      # MinGW DLLs use traditional 'lib' prefix
9976
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9978
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9979
        # It is most probably a Windows format PATH printed by
9980
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9981
        # path with ; separators, and with drive letters. We can handle the
9982
        # drive letters (cygwin fileutils understands them), so leave them,
9983
        # especially as we might pass files found there to a mingw objdump,
9984
        # which wouldn't understand a cygwinified path. Ahh.
9985
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9986
      else
9987
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9988
      fi
9989
      ;;
9990
    pw32*)
9991
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9992
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993
      ;;
9994
    esac
9995
    ;;
9996
 
9997
  *)
9998
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9999
    ;;
10000
  esac
10001
  dynamic_linker='Win32 ld.exe'
10002
  # FIXME: first we should search . and the directory the executable is in
10003
  shlibpath_var=PATH
10004
  ;;
10005
 
10006
darwin* | rhapsody*)
10007
  dynamic_linker="$host_os dyld"
10008
  version_type=darwin
10009
  need_lib_prefix=no
10010
  need_version=no
10011
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012
  soname_spec='${libname}${release}${major}$shared_ext'
10013
  shlibpath_overrides_runpath=yes
10014
  shlibpath_var=DYLD_LIBRARY_PATH
10015
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10016
 
10017
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10018
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019
  ;;
10020
 
10021
dgux*)
10022
  version_type=linux
10023
  need_lib_prefix=no
10024
  need_version=no
10025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026
  soname_spec='${libname}${release}${shared_ext}$major'
10027
  shlibpath_var=LD_LIBRARY_PATH
10028
  ;;
10029
 
10030
freebsd1*)
10031
  dynamic_linker=no
10032
  ;;
10033
 
10034
freebsd* | dragonfly*)
10035
  # DragonFly does not have aout.  When/if they implement a new
10036
  # versioning mechanism, adjust this.
10037
  if test -x /usr/bin/objformat; then
10038
    objformat=`/usr/bin/objformat`
10039
  else
10040
    case $host_os in
10041
    freebsd[123]*) objformat=aout ;;
10042
    *) objformat=elf ;;
10043
    esac
10044
  fi
10045
  version_type=freebsd-$objformat
10046
  case $version_type in
10047
    freebsd-elf*)
10048
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049
      need_version=no
10050
      need_lib_prefix=no
10051
      ;;
10052
    freebsd-*)
10053
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054
      need_version=yes
10055
      ;;
10056
  esac
10057
  shlibpath_var=LD_LIBRARY_PATH
10058
  case $host_os in
10059
  freebsd2*)
10060
    shlibpath_overrides_runpath=yes
10061
    ;;
10062
  freebsd3.[01]* | freebsdelf3.[01]*)
10063
    shlibpath_overrides_runpath=yes
10064
    hardcode_into_libs=yes
10065
    ;;
10066
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10067
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10068
    shlibpath_overrides_runpath=no
10069
    hardcode_into_libs=yes
10070
    ;;
10071
  *) # from 4.6 on, and DragonFly
10072
    shlibpath_overrides_runpath=yes
10073
    hardcode_into_libs=yes
10074
    ;;
10075
  esac
10076
  ;;
10077
 
10078
gnu*)
10079
  version_type=linux
10080
  need_lib_prefix=no
10081
  need_version=no
10082
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083
  soname_spec='${libname}${release}${shared_ext}$major'
10084
  shlibpath_var=LD_LIBRARY_PATH
10085
  hardcode_into_libs=yes
10086
  ;;
10087
 
10088
hpux9* | hpux10* | hpux11*)
10089
  # Give a soname corresponding to the major version so that dld.sl refuses to
10090
  # link against other versions.
10091
  version_type=sunos
10092
  need_lib_prefix=no
10093
  need_version=no
10094
  case $host_cpu in
10095
  ia64*)
10096
    shrext_cmds='.so'
10097
    hardcode_into_libs=yes
10098
    dynamic_linker="$host_os dld.so"
10099
    shlibpath_var=LD_LIBRARY_PATH
10100
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102
    soname_spec='${libname}${release}${shared_ext}$major'
10103
    if test "X$HPUX_IA64_MODE" = X32; then
10104
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105
    else
10106
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107
    fi
10108
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109
    ;;
10110
  hppa*64*)
10111
    shrext_cmds='.sl'
10112
    hardcode_into_libs=yes
10113
    dynamic_linker="$host_os dld.sl"
10114
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117
    soname_spec='${libname}${release}${shared_ext}$major'
10118
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120
    ;;
10121
  *)
10122
    shrext_cmds='.sl'
10123
    dynamic_linker="$host_os dld.sl"
10124
    shlibpath_var=SHLIB_PATH
10125
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127
    soname_spec='${libname}${release}${shared_ext}$major'
10128
    ;;
10129
  esac
10130
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131
  postinstall_cmds='chmod 555 $lib'
10132
  ;;
10133
 
10134
interix[3-9]*)
10135
  version_type=linux
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
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10141
  shlibpath_var=LD_LIBRARY_PATH
10142
  shlibpath_overrides_runpath=no
10143
  hardcode_into_libs=yes
10144
  ;;
10145
 
10146
irix5* | irix6* | nonstopux*)
10147
  case $host_os in
10148
    nonstopux*) version_type=nonstopux ;;
10149
    *)
10150
        if test "$lt_cv_prog_gnu_ld" = yes; then
10151
                version_type=linux
10152
        else
10153
                version_type=irix
10154
        fi ;;
10155
  esac
10156
  need_lib_prefix=no
10157
  need_version=no
10158
  soname_spec='${libname}${release}${shared_ext}$major'
10159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10160
  case $host_os in
10161
  irix5* | nonstopux*)
10162
    libsuff= shlibsuff=
10163
    ;;
10164
  *)
10165
    case $LD in # libtool.m4 will add one of these switches to LD
10166
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10167
      libsuff= shlibsuff= libmagic=32-bit;;
10168
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10169
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10170
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10171
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10172
    *) libsuff= shlibsuff= libmagic=never-match;;
10173
    esac
10174
    ;;
10175
  esac
10176
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10177
  shlibpath_overrides_runpath=no
10178
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10179
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10180
  hardcode_into_libs=yes
10181
  ;;
10182
 
10183
# No shared lib support for Linux oldld, aout, or coff.
10184
linux*oldld* | linux*aout* | linux*coff*)
10185
  dynamic_linker=no
10186
  ;;
10187
 
10188
# This must be Linux ELF.
10189
linux* | k*bsd*-gnu)
10190
  version_type=linux
10191
  need_lib_prefix=no
10192
  need_version=no
10193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194
  soname_spec='${libname}${release}${shared_ext}$major'
10195
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10196
  shlibpath_var=LD_LIBRARY_PATH
10197
  shlibpath_overrides_runpath=no
10198
  # Some binutils ld are patched to set DT_RUNPATH
10199
  save_LDFLAGS=$LDFLAGS
10200
  save_libdir=$libdir
10201
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10202
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10203
  cat >conftest.$ac_ext <<_ACEOF
10204
/* confdefs.h.  */
10205
_ACEOF
10206
cat confdefs.h >>conftest.$ac_ext
10207
cat >>conftest.$ac_ext <<_ACEOF
10208
/* end confdefs.h.  */
10209
 
10210
int
10211
main ()
10212
{
10213
 
10214
  ;
10215
  return 0;
10216
}
10217
_ACEOF
10218
rm -f conftest.$ac_objext conftest$ac_exeext
10219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10220
  (eval $ac_link) 2>conftest.er1
10221
  ac_status=$?
10222
  grep -v '^ *+' conftest.er1 >conftest.err
10223
  rm -f conftest.er1
10224
  cat conftest.err >&5
10225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
  (exit $ac_status); } &&
10227
         { ac_try='test -z "$ac_c_werror_flag"
10228
                         || test ! -s conftest.err'
10229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230
  (eval $ac_try) 2>&5
10231
  ac_status=$?
10232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233
  (exit $ac_status); }; } &&
10234
         { ac_try='test -s conftest$ac_exeext'
10235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236
  (eval $ac_try) 2>&5
10237
  ac_status=$?
10238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239
  (exit $ac_status); }; }; then
10240
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10241
  shlibpath_overrides_runpath=yes
10242
fi
10243
 
10244
else
10245
  echo "$as_me: failed program was:" >&5
10246
sed 's/^/| /' conftest.$ac_ext >&5
10247
 
10248
fi
10249
rm -f conftest.err conftest.$ac_objext \
10250
      conftest$ac_exeext conftest.$ac_ext
10251
  LDFLAGS=$save_LDFLAGS
10252
  libdir=$save_libdir
10253
 
10254
  # This implies no fast_install, which is unacceptable.
10255
  # Some rework will be needed to allow for fast_install
10256
  # before this can be enabled.
10257
  hardcode_into_libs=yes
10258
 
10259
  # Append ld.so.conf contents to the search path
10260
  if test -f /etc/ld.so.conf; then
10261
    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' ' '`
10262
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10263
  fi
10264
 
10265
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10266
  # powerpc, because MkLinux only supported shared libraries with the
10267
  # GNU dynamic linker.  Since this was broken with cross compilers,
10268
  # most powerpc-linux boxes support dynamic linking these days and
10269
  # people can always --disable-shared, the test was removed, and we
10270
  # assume the GNU/Linux dynamic linker is in use.
10271
  dynamic_linker='GNU/Linux ld.so'
10272
  ;;
10273
 
10274
netbsd*)
10275
  version_type=sunos
10276
  need_lib_prefix=no
10277
  need_version=no
10278
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10279
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10280
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10281
    dynamic_linker='NetBSD (a.out) ld.so'
10282
  else
10283
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10284
    soname_spec='${libname}${release}${shared_ext}$major'
10285
    dynamic_linker='NetBSD ld.elf_so'
10286
  fi
10287
  shlibpath_var=LD_LIBRARY_PATH
10288
  shlibpath_overrides_runpath=yes
10289
  hardcode_into_libs=yes
10290
  ;;
10291
 
10292
newsos6)
10293
  version_type=linux
10294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295
  shlibpath_var=LD_LIBRARY_PATH
10296
  shlibpath_overrides_runpath=yes
10297
  ;;
10298
 
10299
*nto* | *qnx*)
10300
  version_type=qnx
10301
  need_lib_prefix=no
10302
  need_version=no
10303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304
  soname_spec='${libname}${release}${shared_ext}$major'
10305
  shlibpath_var=LD_LIBRARY_PATH
10306
  shlibpath_overrides_runpath=no
10307
  hardcode_into_libs=yes
10308
  dynamic_linker='ldqnx.so'
10309
  ;;
10310
 
10311
openbsd*)
10312
  version_type=sunos
10313
  sys_lib_dlsearch_path_spec="/usr/lib"
10314
  need_lib_prefix=no
10315
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10316
  case $host_os in
10317
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10318
    *)                          need_version=no  ;;
10319
  esac
10320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10322
  shlibpath_var=LD_LIBRARY_PATH
10323
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10324
    case $host_os in
10325
      openbsd2.[89] | openbsd2.[89].*)
10326
        shlibpath_overrides_runpath=no
10327
        ;;
10328
      *)
10329
        shlibpath_overrides_runpath=yes
10330
        ;;
10331
      esac
10332
  else
10333
    shlibpath_overrides_runpath=yes
10334
  fi
10335
  ;;
10336
 
10337
os2*)
10338
  libname_spec='$name'
10339
  shrext_cmds=".dll"
10340
  need_lib_prefix=no
10341
  library_names_spec='$libname${shared_ext} $libname.a'
10342
  dynamic_linker='OS/2 ld.exe'
10343
  shlibpath_var=LIBPATH
10344
  ;;
10345
 
10346
osf3* | osf4* | osf5*)
10347
  version_type=osf
10348
  need_lib_prefix=no
10349
  need_version=no
10350
  soname_spec='${libname}${release}${shared_ext}$major'
10351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352
  shlibpath_var=LD_LIBRARY_PATH
10353
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10354
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10355
  ;;
10356
 
10357
rdos*)
10358
  dynamic_linker=no
10359
  ;;
10360
 
10361
solaris*)
10362
  version_type=linux
10363
  need_lib_prefix=no
10364
  need_version=no
10365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366
  soname_spec='${libname}${release}${shared_ext}$major'
10367
  shlibpath_var=LD_LIBRARY_PATH
10368
  shlibpath_overrides_runpath=yes
10369
  hardcode_into_libs=yes
10370
  # ldd complains unless libraries are executable
10371
  postinstall_cmds='chmod +x $lib'
10372
  ;;
10373
 
10374
sunos4*)
10375
  version_type=sunos
10376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10377
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10378
  shlibpath_var=LD_LIBRARY_PATH
10379
  shlibpath_overrides_runpath=yes
10380
  if test "$with_gnu_ld" = yes; then
10381
    need_lib_prefix=no
10382
  fi
10383
  need_version=yes
10384
  ;;
10385
 
10386
sysv4 | sysv4.3*)
10387
  version_type=linux
10388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389
  soname_spec='${libname}${release}${shared_ext}$major'
10390
  shlibpath_var=LD_LIBRARY_PATH
10391
  case $host_vendor in
10392
    sni)
10393
      shlibpath_overrides_runpath=no
10394
      need_lib_prefix=no
10395
      runpath_var=LD_RUN_PATH
10396
      ;;
10397
    siemens)
10398
      need_lib_prefix=no
10399
      ;;
10400
    motorola)
10401
      need_lib_prefix=no
10402
      need_version=no
10403
      shlibpath_overrides_runpath=no
10404
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405
      ;;
10406
  esac
10407
  ;;
10408
 
10409
sysv4*MP*)
10410
  if test -d /usr/nec ;then
10411
    version_type=linux
10412
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413
    soname_spec='$libname${shared_ext}.$major'
10414
    shlibpath_var=LD_LIBRARY_PATH
10415
  fi
10416
  ;;
10417
 
10418
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10419
  version_type=freebsd-elf
10420
  need_lib_prefix=no
10421
  need_version=no
10422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10423
  soname_spec='${libname}${release}${shared_ext}$major'
10424
  shlibpath_var=LD_LIBRARY_PATH
10425
  shlibpath_overrides_runpath=yes
10426
  hardcode_into_libs=yes
10427
  if test "$with_gnu_ld" = yes; then
10428
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10429
  else
10430
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10431
    case $host_os in
10432
      sco3.2v5*)
10433
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10434
        ;;
10435
    esac
10436
  fi
10437
  sys_lib_dlsearch_path_spec='/usr/lib'
10438
  ;;
10439
 
10440
tpf*)
10441
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10442
  version_type=linux
10443
  need_lib_prefix=no
10444
  need_version=no
10445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446
  shlibpath_var=LD_LIBRARY_PATH
10447
  shlibpath_overrides_runpath=no
10448
  hardcode_into_libs=yes
10449
  ;;
10450
 
10451
uts4*)
10452
  version_type=linux
10453
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454
  soname_spec='${libname}${release}${shared_ext}$major'
10455
  shlibpath_var=LD_LIBRARY_PATH
10456
  ;;
10457
 
10458
*)
10459
  dynamic_linker=no
10460
  ;;
10461
esac
10462
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10463
echo "${ECHO_T}$dynamic_linker" >&6
10464
test "$dynamic_linker" = no && can_build_shared=no
10465
 
10466
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10467
if test "$GCC" = yes; then
10468
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10469
fi
10470
 
10471
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10472
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10473
fi
10474
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10475
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10476
fi
10477
 
10478
 
10479
 
10480
 
10481
 
10482
 
10483
 
10484
 
10485
 
10486
 
10487
 
10488
 
10489
 
10490
 
10491
 
10492
 
10493
 
10494
 
10495
 
10496
 
10497
 
10498
 
10499
 
10500
 
10501
 
10502
 
10503
 
10504
 
10505
 
10506
 
10507
 
10508
 
10509
 
10510
 
10511
 
10512
 
10513
 
10514
 
10515
 
10516
 
10517
 
10518
 
10519
 
10520
 
10521
 
10522
 
10523
 
10524
 
10525
 
10526
 
10527
 
10528
 
10529
 
10530
 
10531
 
10532
 
10533
 
10534
 
10535
 
10536
 
10537
 
10538
 
10539
 
10540
 
10541
 
10542
 
10543
 
10544
 
10545
 
10546
 
10547
 
10548
 
10549
 
10550
 
10551
 
10552
 
10553
 
10554
 
10555
 
10556
 
10557
 
10558
 
10559
 
10560
 
10561
 
10562
 
10563
 
10564
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10565
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10566
hardcode_action=
10567
if test -n "$hardcode_libdir_flag_spec" ||
10568
   test -n "$runpath_var" ||
10569
   test "X$hardcode_automatic" = "Xyes" ; then
10570
 
10571
  # We can hardcode non-existent directories.
10572
  if test "$hardcode_direct" != no &&
10573
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10574
     # have to relink, otherwise we might link with an installed library
10575
     # when we should be linking with a yet-to-be-installed one
10576
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10577
     test "$hardcode_minus_L" != no; then
10578
    # Linking always hardcodes the temporary library directory.
10579
    hardcode_action=relink
10580
  else
10581
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10582
    hardcode_action=immediate
10583
  fi
10584
else
10585
  # We cannot hardcode anything, or else we can only hardcode existing
10586
  # directories.
10587
  hardcode_action=unsupported
10588
fi
10589
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10590
echo "${ECHO_T}$hardcode_action" >&6
10591
 
10592
if test "$hardcode_action" = relink ||
10593
   test "$inherit_rpath" = yes; then
10594
  # Fast installation is not supported
10595
  enable_fast_install=no
10596
elif test "$shlibpath_overrides_runpath" = yes ||
10597
     test "$enable_shared" = no; then
10598
  # Fast installation is not necessary
10599
  enable_fast_install=needless
10600
fi
10601
 
10602
 
10603
 
10604
 
10605
 
10606
 
10607
  if test "x$enable_dlopen" != xyes; then
10608
  enable_dlopen=unknown
10609
  enable_dlopen_self=unknown
10610
  enable_dlopen_self_static=unknown
10611
else
10612
  lt_cv_dlopen=no
10613
  lt_cv_dlopen_libs=
10614
 
10615
  case $host_os in
10616
  beos*)
10617
    lt_cv_dlopen="load_add_on"
10618
    lt_cv_dlopen_libs=
10619
    lt_cv_dlopen_self=yes
10620
    ;;
10621
 
10622
  mingw* | pw32* | cegcc*)
10623
    lt_cv_dlopen="LoadLibrary"
10624
    lt_cv_dlopen_libs=
10625
    ;;
10626
 
10627
  cygwin*)
10628
    lt_cv_dlopen="dlopen"
10629
    lt_cv_dlopen_libs=
10630
    ;;
10631
 
10632
  darwin*)
10633
  # if libdl is installed we need to link against it
10634
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10635
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10636
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10637
  echo $ECHO_N "(cached) $ECHO_C" >&6
10638
else
10639
  ac_check_lib_save_LIBS=$LIBS
10640
LIBS="-ldl  $LIBS"
10641
cat >conftest.$ac_ext <<_ACEOF
10642
/* confdefs.h.  */
10643
_ACEOF
10644
cat confdefs.h >>conftest.$ac_ext
10645
cat >>conftest.$ac_ext <<_ACEOF
10646
/* end confdefs.h.  */
10647
 
10648
/* Override any gcc2 internal prototype to avoid an error.  */
10649
#ifdef __cplusplus
10650
extern "C"
10651
#endif
10652
/* We use char because int might match the return type of a gcc2
10653
   builtin and then its argument prototype would still apply.  */
10654
char dlopen ();
10655
int
10656
main ()
10657
{
10658
dlopen ();
10659
  ;
10660
  return 0;
10661
}
10662
_ACEOF
10663
rm -f conftest.$ac_objext conftest$ac_exeext
10664
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665
  (eval $ac_link) 2>conftest.er1
10666
  ac_status=$?
10667
  grep -v '^ *+' conftest.er1 >conftest.err
10668
  rm -f conftest.er1
10669
  cat conftest.err >&5
10670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671
  (exit $ac_status); } &&
10672
         { ac_try='test -z "$ac_c_werror_flag"
10673
                         || test ! -s conftest.err'
10674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675
  (eval $ac_try) 2>&5
10676
  ac_status=$?
10677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678
  (exit $ac_status); }; } &&
10679
         { ac_try='test -s conftest$ac_exeext'
10680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681
  (eval $ac_try) 2>&5
10682
  ac_status=$?
10683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684
  (exit $ac_status); }; }; then
10685
  ac_cv_lib_dl_dlopen=yes
10686
else
10687
  echo "$as_me: failed program was:" >&5
10688
sed 's/^/| /' conftest.$ac_ext >&5
10689
 
10690
ac_cv_lib_dl_dlopen=no
10691
fi
10692
rm -f conftest.err conftest.$ac_objext \
10693
      conftest$ac_exeext conftest.$ac_ext
10694
LIBS=$ac_check_lib_save_LIBS
10695
fi
10696
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10697
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10698
if test $ac_cv_lib_dl_dlopen = yes; then
10699
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10700
else
10701
 
10702
    lt_cv_dlopen="dyld"
10703
    lt_cv_dlopen_libs=
10704
    lt_cv_dlopen_self=yes
10705
 
10706
fi
10707
 
10708
    ;;
10709
 
10710
  *)
10711
    echo "$as_me:$LINENO: checking for shl_load" >&5
10712
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10713
if test "${ac_cv_func_shl_load+set}" = set; then
10714
  echo $ECHO_N "(cached) $ECHO_C" >&6
10715
else
10716
  cat >conftest.$ac_ext <<_ACEOF
10717
/* confdefs.h.  */
10718
_ACEOF
10719
cat confdefs.h >>conftest.$ac_ext
10720
cat >>conftest.$ac_ext <<_ACEOF
10721
/* end confdefs.h.  */
10722
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10723
   For example, HP-UX 11i  declares gettimeofday.  */
10724
#define shl_load innocuous_shl_load
10725
 
10726
/* System header to define __stub macros and hopefully few prototypes,
10727
    which can conflict with char shl_load (); below.
10728
    Prefer  to  if __STDC__ is defined, since
10729
     exists even on freestanding compilers.  */
10730
 
10731
#ifdef __STDC__
10732
# include 
10733
#else
10734
# include 
10735
#endif
10736
 
10737
#undef shl_load
10738
 
10739
/* Override any gcc2 internal prototype to avoid an error.  */
10740
#ifdef __cplusplus
10741
extern "C"
10742
{
10743
#endif
10744
/* We use char because int might match the return type of a gcc2
10745
   builtin and then its argument prototype would still apply.  */
10746
char shl_load ();
10747
/* The GNU C library defines this for functions which it implements
10748
    to always fail with ENOSYS.  Some functions are actually named
10749
    something starting with __ and the normal name is an alias.  */
10750
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10751
choke me
10752
#else
10753
char (*f) () = shl_load;
10754
#endif
10755
#ifdef __cplusplus
10756
}
10757
#endif
10758
 
10759
int
10760
main ()
10761
{
10762
return f != shl_load;
10763
  ;
10764
  return 0;
10765
}
10766
_ACEOF
10767
rm -f conftest.$ac_objext conftest$ac_exeext
10768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769
  (eval $ac_link) 2>conftest.er1
10770
  ac_status=$?
10771
  grep -v '^ *+' conftest.er1 >conftest.err
10772
  rm -f conftest.er1
10773
  cat conftest.err >&5
10774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775
  (exit $ac_status); } &&
10776
         { ac_try='test -z "$ac_c_werror_flag"
10777
                         || test ! -s conftest.err'
10778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779
  (eval $ac_try) 2>&5
10780
  ac_status=$?
10781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782
  (exit $ac_status); }; } &&
10783
         { ac_try='test -s conftest$ac_exeext'
10784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785
  (eval $ac_try) 2>&5
10786
  ac_status=$?
10787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788
  (exit $ac_status); }; }; then
10789
  ac_cv_func_shl_load=yes
10790
else
10791
  echo "$as_me: failed program was:" >&5
10792
sed 's/^/| /' conftest.$ac_ext >&5
10793
 
10794
ac_cv_func_shl_load=no
10795
fi
10796
rm -f conftest.err conftest.$ac_objext \
10797
      conftest$ac_exeext conftest.$ac_ext
10798
fi
10799
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10800
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10801
if test $ac_cv_func_shl_load = yes; then
10802
  lt_cv_dlopen="shl_load"
10803
else
10804
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10805
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10806
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10807
  echo $ECHO_N "(cached) $ECHO_C" >&6
10808
else
10809
  ac_check_lib_save_LIBS=$LIBS
10810
LIBS="-ldld  $LIBS"
10811
cat >conftest.$ac_ext <<_ACEOF
10812
/* confdefs.h.  */
10813
_ACEOF
10814
cat confdefs.h >>conftest.$ac_ext
10815
cat >>conftest.$ac_ext <<_ACEOF
10816
/* end confdefs.h.  */
10817
 
10818
/* Override any gcc2 internal prototype to avoid an error.  */
10819
#ifdef __cplusplus
10820
extern "C"
10821
#endif
10822
/* We use char because int might match the return type of a gcc2
10823
   builtin and then its argument prototype would still apply.  */
10824
char shl_load ();
10825
int
10826
main ()
10827
{
10828
shl_load ();
10829
  ;
10830
  return 0;
10831
}
10832
_ACEOF
10833
rm -f conftest.$ac_objext conftest$ac_exeext
10834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10835
  (eval $ac_link) 2>conftest.er1
10836
  ac_status=$?
10837
  grep -v '^ *+' conftest.er1 >conftest.err
10838
  rm -f conftest.er1
10839
  cat conftest.err >&5
10840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841
  (exit $ac_status); } &&
10842
         { ac_try='test -z "$ac_c_werror_flag"
10843
                         || test ! -s conftest.err'
10844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845
  (eval $ac_try) 2>&5
10846
  ac_status=$?
10847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848
  (exit $ac_status); }; } &&
10849
         { ac_try='test -s conftest$ac_exeext'
10850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851
  (eval $ac_try) 2>&5
10852
  ac_status=$?
10853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854
  (exit $ac_status); }; }; then
10855
  ac_cv_lib_dld_shl_load=yes
10856
else
10857
  echo "$as_me: failed program was:" >&5
10858
sed 's/^/| /' conftest.$ac_ext >&5
10859
 
10860
ac_cv_lib_dld_shl_load=no
10861
fi
10862
rm -f conftest.err conftest.$ac_objext \
10863
      conftest$ac_exeext conftest.$ac_ext
10864
LIBS=$ac_check_lib_save_LIBS
10865
fi
10866
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10867
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10868
if test $ac_cv_lib_dld_shl_load = yes; then
10869
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10870
else
10871
  echo "$as_me:$LINENO: checking for dlopen" >&5
10872
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10873
if test "${ac_cv_func_dlopen+set}" = set; then
10874
  echo $ECHO_N "(cached) $ECHO_C" >&6
10875
else
10876
  cat >conftest.$ac_ext <<_ACEOF
10877
/* confdefs.h.  */
10878
_ACEOF
10879
cat confdefs.h >>conftest.$ac_ext
10880
cat >>conftest.$ac_ext <<_ACEOF
10881
/* end confdefs.h.  */
10882
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10883
   For example, HP-UX 11i  declares gettimeofday.  */
10884
#define dlopen innocuous_dlopen
10885
 
10886
/* System header to define __stub macros and hopefully few prototypes,
10887
    which can conflict with char dlopen (); below.
10888
    Prefer  to  if __STDC__ is defined, since
10889
     exists even on freestanding compilers.  */
10890
 
10891
#ifdef __STDC__
10892
# include 
10893
#else
10894
# include 
10895
#endif
10896
 
10897
#undef dlopen
10898
 
10899
/* Override any gcc2 internal prototype to avoid an error.  */
10900
#ifdef __cplusplus
10901
extern "C"
10902
{
10903
#endif
10904
/* We use char because int might match the return type of a gcc2
10905
   builtin and then its argument prototype would still apply.  */
10906
char dlopen ();
10907
/* The GNU C library defines this for functions which it implements
10908
    to always fail with ENOSYS.  Some functions are actually named
10909
    something starting with __ and the normal name is an alias.  */
10910
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10911
choke me
10912
#else
10913
char (*f) () = dlopen;
10914
#endif
10915
#ifdef __cplusplus
10916
}
10917
#endif
10918
 
10919
int
10920
main ()
10921
{
10922
return f != dlopen;
10923
  ;
10924
  return 0;
10925
}
10926
_ACEOF
10927
rm -f conftest.$ac_objext conftest$ac_exeext
10928
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929
  (eval $ac_link) 2>conftest.er1
10930
  ac_status=$?
10931
  grep -v '^ *+' conftest.er1 >conftest.err
10932
  rm -f conftest.er1
10933
  cat conftest.err >&5
10934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935
  (exit $ac_status); } &&
10936
         { ac_try='test -z "$ac_c_werror_flag"
10937
                         || test ! -s conftest.err'
10938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939
  (eval $ac_try) 2>&5
10940
  ac_status=$?
10941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942
  (exit $ac_status); }; } &&
10943
         { ac_try='test -s conftest$ac_exeext'
10944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945
  (eval $ac_try) 2>&5
10946
  ac_status=$?
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948
  (exit $ac_status); }; }; then
10949
  ac_cv_func_dlopen=yes
10950
else
10951
  echo "$as_me: failed program was:" >&5
10952
sed 's/^/| /' conftest.$ac_ext >&5
10953
 
10954
ac_cv_func_dlopen=no
10955
fi
10956
rm -f conftest.err conftest.$ac_objext \
10957
      conftest$ac_exeext conftest.$ac_ext
10958
fi
10959
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10960
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10961
if test $ac_cv_func_dlopen = yes; then
10962
  lt_cv_dlopen="dlopen"
10963
else
10964
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10965
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10966
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10967
  echo $ECHO_N "(cached) $ECHO_C" >&6
10968
else
10969
  ac_check_lib_save_LIBS=$LIBS
10970
LIBS="-ldl  $LIBS"
10971
cat >conftest.$ac_ext <<_ACEOF
10972
/* confdefs.h.  */
10973
_ACEOF
10974
cat confdefs.h >>conftest.$ac_ext
10975
cat >>conftest.$ac_ext <<_ACEOF
10976
/* end confdefs.h.  */
10977
 
10978
/* Override any gcc2 internal prototype to avoid an error.  */
10979
#ifdef __cplusplus
10980
extern "C"
10981
#endif
10982
/* We use char because int might match the return type of a gcc2
10983
   builtin and then its argument prototype would still apply.  */
10984
char dlopen ();
10985
int
10986
main ()
10987
{
10988
dlopen ();
10989
  ;
10990
  return 0;
10991
}
10992
_ACEOF
10993
rm -f conftest.$ac_objext conftest$ac_exeext
10994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995
  (eval $ac_link) 2>conftest.er1
10996
  ac_status=$?
10997
  grep -v '^ *+' conftest.er1 >conftest.err
10998
  rm -f conftest.er1
10999
  cat conftest.err >&5
11000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001
  (exit $ac_status); } &&
11002
         { ac_try='test -z "$ac_c_werror_flag"
11003
                         || test ! -s conftest.err'
11004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005
  (eval $ac_try) 2>&5
11006
  ac_status=$?
11007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008
  (exit $ac_status); }; } &&
11009
         { ac_try='test -s conftest$ac_exeext'
11010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011
  (eval $ac_try) 2>&5
11012
  ac_status=$?
11013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014
  (exit $ac_status); }; }; then
11015
  ac_cv_lib_dl_dlopen=yes
11016
else
11017
  echo "$as_me: failed program was:" >&5
11018
sed 's/^/| /' conftest.$ac_ext >&5
11019
 
11020
ac_cv_lib_dl_dlopen=no
11021
fi
11022
rm -f conftest.err conftest.$ac_objext \
11023
      conftest$ac_exeext conftest.$ac_ext
11024
LIBS=$ac_check_lib_save_LIBS
11025
fi
11026
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11027
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11028
if test $ac_cv_lib_dl_dlopen = yes; then
11029
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11030
else
11031
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11032
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11033
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11034
  echo $ECHO_N "(cached) $ECHO_C" >&6
11035
else
11036
  ac_check_lib_save_LIBS=$LIBS
11037
LIBS="-lsvld  $LIBS"
11038
cat >conftest.$ac_ext <<_ACEOF
11039
/* confdefs.h.  */
11040
_ACEOF
11041
cat confdefs.h >>conftest.$ac_ext
11042
cat >>conftest.$ac_ext <<_ACEOF
11043
/* end confdefs.h.  */
11044
 
11045
/* Override any gcc2 internal prototype to avoid an error.  */
11046
#ifdef __cplusplus
11047
extern "C"
11048
#endif
11049
/* We use char because int might match the return type of a gcc2
11050
   builtin and then its argument prototype would still apply.  */
11051
char dlopen ();
11052
int
11053
main ()
11054
{
11055
dlopen ();
11056
  ;
11057
  return 0;
11058
}
11059
_ACEOF
11060
rm -f conftest.$ac_objext conftest$ac_exeext
11061
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062
  (eval $ac_link) 2>conftest.er1
11063
  ac_status=$?
11064
  grep -v '^ *+' conftest.er1 >conftest.err
11065
  rm -f conftest.er1
11066
  cat conftest.err >&5
11067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068
  (exit $ac_status); } &&
11069
         { ac_try='test -z "$ac_c_werror_flag"
11070
                         || test ! -s conftest.err'
11071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072
  (eval $ac_try) 2>&5
11073
  ac_status=$?
11074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075
  (exit $ac_status); }; } &&
11076
         { ac_try='test -s conftest$ac_exeext'
11077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078
  (eval $ac_try) 2>&5
11079
  ac_status=$?
11080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081
  (exit $ac_status); }; }; then
11082
  ac_cv_lib_svld_dlopen=yes
11083
else
11084
  echo "$as_me: failed program was:" >&5
11085
sed 's/^/| /' conftest.$ac_ext >&5
11086
 
11087
ac_cv_lib_svld_dlopen=no
11088
fi
11089
rm -f conftest.err conftest.$ac_objext \
11090
      conftest$ac_exeext conftest.$ac_ext
11091
LIBS=$ac_check_lib_save_LIBS
11092
fi
11093
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11094
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11095
if test $ac_cv_lib_svld_dlopen = yes; then
11096
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11097
else
11098
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11099
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11100
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11101
  echo $ECHO_N "(cached) $ECHO_C" >&6
11102
else
11103
  ac_check_lib_save_LIBS=$LIBS
11104
LIBS="-ldld  $LIBS"
11105
cat >conftest.$ac_ext <<_ACEOF
11106
/* confdefs.h.  */
11107
_ACEOF
11108
cat confdefs.h >>conftest.$ac_ext
11109
cat >>conftest.$ac_ext <<_ACEOF
11110
/* end confdefs.h.  */
11111
 
11112
/* Override any gcc2 internal prototype to avoid an error.  */
11113
#ifdef __cplusplus
11114
extern "C"
11115
#endif
11116
/* We use char because int might match the return type of a gcc2
11117
   builtin and then its argument prototype would still apply.  */
11118
char dld_link ();
11119
int
11120
main ()
11121
{
11122
dld_link ();
11123
  ;
11124
  return 0;
11125
}
11126
_ACEOF
11127
rm -f conftest.$ac_objext conftest$ac_exeext
11128
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129
  (eval $ac_link) 2>conftest.er1
11130
  ac_status=$?
11131
  grep -v '^ *+' conftest.er1 >conftest.err
11132
  rm -f conftest.er1
11133
  cat conftest.err >&5
11134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135
  (exit $ac_status); } &&
11136
         { ac_try='test -z "$ac_c_werror_flag"
11137
                         || test ! -s conftest.err'
11138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139
  (eval $ac_try) 2>&5
11140
  ac_status=$?
11141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142
  (exit $ac_status); }; } &&
11143
         { ac_try='test -s conftest$ac_exeext'
11144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145
  (eval $ac_try) 2>&5
11146
  ac_status=$?
11147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148
  (exit $ac_status); }; }; then
11149
  ac_cv_lib_dld_dld_link=yes
11150
else
11151
  echo "$as_me: failed program was:" >&5
11152
sed 's/^/| /' conftest.$ac_ext >&5
11153
 
11154
ac_cv_lib_dld_dld_link=no
11155
fi
11156
rm -f conftest.err conftest.$ac_objext \
11157
      conftest$ac_exeext conftest.$ac_ext
11158
LIBS=$ac_check_lib_save_LIBS
11159
fi
11160
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11161
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11162
if test $ac_cv_lib_dld_dld_link = yes; then
11163
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11164
fi
11165
 
11166
 
11167
fi
11168
 
11169
 
11170
fi
11171
 
11172
 
11173
fi
11174
 
11175
 
11176
fi
11177
 
11178
 
11179
fi
11180
 
11181
    ;;
11182
  esac
11183
 
11184
  if test "x$lt_cv_dlopen" != xno; then
11185
    enable_dlopen=yes
11186
  else
11187
    enable_dlopen=no
11188
  fi
11189
 
11190
  case $lt_cv_dlopen in
11191
  dlopen)
11192
    save_CPPFLAGS="$CPPFLAGS"
11193
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11194
 
11195
    save_LDFLAGS="$LDFLAGS"
11196
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11197
 
11198
    save_LIBS="$LIBS"
11199
    LIBS="$lt_cv_dlopen_libs $LIBS"
11200
 
11201
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11202
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11203
if test "${lt_cv_dlopen_self+set}" = set; then
11204
  echo $ECHO_N "(cached) $ECHO_C" >&6
11205
else
11206
          if test "$cross_compiling" = yes; then :
11207
  lt_cv_dlopen_self=cross
11208
else
11209
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11210
  lt_status=$lt_dlunknown
11211
  cat > conftest.$ac_ext <<_LT_EOF
11212
#line 11212 "configure"
11213
#include "confdefs.h"
11214
 
11215
#if HAVE_DLFCN_H
11216
#include 
11217
#endif
11218
 
11219
#include 
11220
 
11221
#ifdef RTLD_GLOBAL
11222
#  define LT_DLGLOBAL           RTLD_GLOBAL
11223
#else
11224
#  ifdef DL_GLOBAL
11225
#    define LT_DLGLOBAL         DL_GLOBAL
11226
#  else
11227
#    define LT_DLGLOBAL         0
11228
#  endif
11229
#endif
11230
 
11231
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11232
   find out it does not work in some platform. */
11233
#ifndef LT_DLLAZY_OR_NOW
11234
#  ifdef RTLD_LAZY
11235
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11236
#  else
11237
#    ifdef DL_LAZY
11238
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11239
#    else
11240
#      ifdef RTLD_NOW
11241
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11242
#      else
11243
#        ifdef DL_NOW
11244
#          define LT_DLLAZY_OR_NOW      DL_NOW
11245
#        else
11246
#          define LT_DLLAZY_OR_NOW      0
11247
#        endif
11248
#      endif
11249
#    endif
11250
#  endif
11251
#endif
11252
 
11253
void fnord() { int i=42;}
11254
int main ()
11255
{
11256
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257
  int status = $lt_dlunknown;
11258
 
11259
  if (self)
11260
    {
11261
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11262
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263
      /* dlclose (self); */
11264
    }
11265
  else
11266
    puts (dlerror ());
11267
 
11268
  return status;
11269
}
11270
_LT_EOF
11271
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272
  (eval $ac_link) 2>&5
11273
  ac_status=$?
11274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11276
    (./conftest; exit; ) >&5 2>/dev/null
11277
    lt_status=$?
11278
    case x$lt_status in
11279
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11280
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11281
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11282
    esac
11283
  else :
11284
    # compilation failed
11285
    lt_cv_dlopen_self=no
11286
  fi
11287
fi
11288
rm -fr conftest*
11289
 
11290
 
11291
fi
11292
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11293
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11294
 
11295
    if test "x$lt_cv_dlopen_self" = xyes; then
11296
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11297
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11298
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11299
if test "${lt_cv_dlopen_self_static+set}" = set; then
11300
  echo $ECHO_N "(cached) $ECHO_C" >&6
11301
else
11302
          if test "$cross_compiling" = yes; then :
11303
  lt_cv_dlopen_self_static=cross
11304
else
11305
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11306
  lt_status=$lt_dlunknown
11307
  cat > conftest.$ac_ext <<_LT_EOF
11308
#line 11308 "configure"
11309
#include "confdefs.h"
11310
 
11311
#if HAVE_DLFCN_H
11312
#include 
11313
#endif
11314
 
11315
#include 
11316
 
11317
#ifdef RTLD_GLOBAL
11318
#  define LT_DLGLOBAL           RTLD_GLOBAL
11319
#else
11320
#  ifdef DL_GLOBAL
11321
#    define LT_DLGLOBAL         DL_GLOBAL
11322
#  else
11323
#    define LT_DLGLOBAL         0
11324
#  endif
11325
#endif
11326
 
11327
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328
   find out it does not work in some platform. */
11329
#ifndef LT_DLLAZY_OR_NOW
11330
#  ifdef RTLD_LAZY
11331
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11332
#  else
11333
#    ifdef DL_LAZY
11334
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11335
#    else
11336
#      ifdef RTLD_NOW
11337
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11338
#      else
11339
#        ifdef DL_NOW
11340
#          define LT_DLLAZY_OR_NOW      DL_NOW
11341
#        else
11342
#          define LT_DLLAZY_OR_NOW      0
11343
#        endif
11344
#      endif
11345
#    endif
11346
#  endif
11347
#endif
11348
 
11349
void fnord() { int i=42;}
11350
int main ()
11351
{
11352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353
  int status = $lt_dlunknown;
11354
 
11355
  if (self)
11356
    {
11357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11358
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359
      /* dlclose (self); */
11360
    }
11361
  else
11362
    puts (dlerror ());
11363
 
11364
  return status;
11365
}
11366
_LT_EOF
11367
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368
  (eval $ac_link) 2>&5
11369
  ac_status=$?
11370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372
    (./conftest; exit; ) >&5 2>/dev/null
11373
    lt_status=$?
11374
    case x$lt_status in
11375
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11378
    esac
11379
  else :
11380
    # compilation failed
11381
    lt_cv_dlopen_self_static=no
11382
  fi
11383
fi
11384
rm -fr conftest*
11385
 
11386
 
11387
fi
11388
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11390
    fi
11391
 
11392
    CPPFLAGS="$save_CPPFLAGS"
11393
    LDFLAGS="$save_LDFLAGS"
11394
    LIBS="$save_LIBS"
11395
    ;;
11396
  esac
11397
 
11398
  case $lt_cv_dlopen_self in
11399
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400
  *) enable_dlopen_self=unknown ;;
11401
  esac
11402
 
11403
  case $lt_cv_dlopen_self_static in
11404
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405
  *) enable_dlopen_self_static=unknown ;;
11406
  esac
11407
fi
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
 
11419
 
11420
 
11421
 
11422
 
11423
 
11424
 
11425
striplib=
11426
old_striplib=
11427
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11428
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11429
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11430
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11431
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11432
  echo "$as_me:$LINENO: result: yes" >&5
11433
echo "${ECHO_T}yes" >&6
11434
else
11435
# FIXME - insert some real tests, host_os isn't really good enough
11436
  case $host_os in
11437
  darwin*)
11438
    if test -n "$STRIP" ; then
11439
      striplib="$STRIP -x"
11440
      old_striplib="$STRIP -S"
11441
      echo "$as_me:$LINENO: result: yes" >&5
11442
echo "${ECHO_T}yes" >&6
11443
    else
11444
      echo "$as_me:$LINENO: result: no" >&5
11445
echo "${ECHO_T}no" >&6
11446
    fi
11447
    ;;
11448
  *)
11449
    echo "$as_me:$LINENO: result: no" >&5
11450
echo "${ECHO_T}no" >&6
11451
    ;;
11452
  esac
11453
fi
11454
 
11455
 
11456
 
11457
 
11458
 
11459
 
11460
 
11461
 
11462
 
11463
 
11464
 
11465
 
11466
  # Report which library types will actually be built
11467
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11468
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11469
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11470
echo "${ECHO_T}$can_build_shared" >&6
11471
 
11472
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11473
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11474
  test "$can_build_shared" = "no" && enable_shared=no
11475
 
11476
  # On AIX, shared libraries and static libraries use the same namespace, and
11477
  # are all built from PIC.
11478
  case $host_os in
11479
  aix3*)
11480
    test "$enable_shared" = yes && enable_static=no
11481
    if test -n "$RANLIB"; then
11482
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11483
      postinstall_cmds='$RANLIB $lib'
11484
    fi
11485
    ;;
11486
 
11487
  aix[4-9]*)
11488
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11489
      test "$enable_shared" = yes && enable_static=no
11490
    fi
11491
    ;;
11492
  esac
11493
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11494
echo "${ECHO_T}$enable_shared" >&6
11495
 
11496
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11497
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11498
  # Make sure either enable_shared or enable_static is yes.
11499
  test "$enable_shared" = yes || enable_static=yes
11500
  echo "$as_me:$LINENO: result: $enable_static" >&5
11501
echo "${ECHO_T}$enable_static" >&6
11502
 
11503
 
11504
 
11505
 
11506
fi
11507
ac_ext=c
11508
ac_cpp='$CPP $CPPFLAGS'
11509
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
 
11513
CC="$lt_save_CC"
11514
 
11515
 
11516
 
11517
 
11518
 
11519
 
11520
 
11521
 
11522
 
11523
 
11524
 
11525
 
11526
 
11527
                  ac_config_commands="$ac_config_commands libtool"
11528
 
11529
 
11530
 
11531
 
11532
# Only expand once:
11533
 
11534
 
11535
fi
11536
 
11537
# Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
11538
if test "${enable_newlib_hw_fp+set}" = set; then
11539
  enableval="$enable_newlib_hw_fp"
11540
  case "${enableval}" in
11541
   yes) newlib_hw_fp=true ;;
11542
   no)  newlib_hw_fp=false ;;
11543
   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
11544
echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
11545
   { (exit 1); exit 1; }; } ;;
11546
 esac
11547
else
11548
  newlib_hw_fp=false
11549
fi;
11550
 
11551
 
11552
if test x$newlib_hw_fp = xtrue; then
11553
  NEWLIB_HW_FP_TRUE=
11554
  NEWLIB_HW_FP_FALSE='#'
11555
else
11556
  NEWLIB_HW_FP_TRUE='#'
11557
  NEWLIB_HW_FP_FALSE=
11558
fi
11559
 
11560
 
11561
# These get added in the top-level configure.in, except in the case where
11562
# newlib is being built natively.
11563
LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
11564
abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
11565
if test -z "${LIBC_INCLUDE_GREP}"; then
11566
  CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
11567
else
11568
  CC_FOR_NEWLIB="${CC}"
11569
fi
11570
 
11571
 
11572
 
11573
 
11574
subdirs="$subdirs libc"
11575
 
11576
 
11577
 
11578
subdirs="$subdirs libm"
11579
 
11580
 
11581
if test -z "${with_multisubdir}"; then
11582
 
11583
 
11584
subdirs="$subdirs doc"
11585
 
11586
  have_doc=yes
11587
else
11588
  have_doc=
11589
fi
11590
 
11591
 
11592
if test x$have_doc = xyes; then
11593
  HAVE_DOC_TRUE=
11594
  HAVE_DOC_FALSE='#'
11595
else
11596
  HAVE_DOC_TRUE='#'
11597
  HAVE_DOC_FALSE=
11598
fi
11599
 
11600
 
11601
EXTRA_DIRS=
11602
case $host in
11603
  i[34567]86-pc-linux-*)
11604
 
11605
 
11606
subdirs="$subdirs iconvdata"
11607
 
11608
        EXTRA_DIRS=iconvdata
11609
        ;;
11610
esac
11611
 
11612
 
11613
CRT0=
11614
CRT0_DIR=
11615
if test "x${have_crt0}" = "xyes"; then
11616
  CRT0=crt0.o
11617
  CRT0_DIR=libc/
11618
fi
11619
 
11620
 
11621
 
11622
CRT1=${crt1}
11623
CRT1_DIR=
11624
if test -n "${crt1_dir}"; then
11625
  CRT1_DIR=${crt1_dir}/
11626
fi
11627
 
11628
 
11629
 
11630
if test -n "${libm_machine_dir}"; then
11631
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
11632
fi
11633
 
11634
 
11635
if test -n "${machine_dir}"; then
11636
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
11637
fi
11638
 
11639
 
11640
if test -n "${sys_dir}"; then
11641
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
11642
fi
11643
 
11644
 
11645
if test "${have_sys_mach_dir}" = "yes"; then
11646
  SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
11647
fi
11648
 
11649
 
11650
if test -n "${posix_dir}"; then
11651
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
11652
fi
11653
 
11654
 
11655
if test -n "${signal_dir}"; then
11656
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
11657
fi
11658
 
11659
 
11660
if test -n "${syscall_dir}"; then
11661
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
11662
fi
11663
 
11664
 
11665
if test -n "${unix_dir}"; then
11666
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
11667
fi
11668
 
11669
 
11670
if test -n "${stdio64_dir}"; then
11671
  STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
11672
fi
11673
 
11674
 
11675
# Put a plausible default for CC_FOR_BUILD in Makefile.
11676
if test -z "$CC_FOR_BUILD"; then
11677
  CC_FOR_BUILD=gcc
11678
fi
11679
 
11680
 
11681
if test "${newlib_elix_level}" -gt "0"; then
11682
cat >>confdefs.h <<_ACEOF
11683
#define _ELIX_LEVEL ${newlib_elix_level}
11684
_ACEOF
11685
 
11686
fi
11687
 
11688
if test "${newlib_io_c99_formats}" = "yes"; then
11689
cat >>confdefs.h <<_ACEOF
11690
#define _WANT_IO_C99_FORMATS 1
11691
_ACEOF
11692
 
11693
fi
11694
 
11695
if test "${newlib_io_long_long}" = "yes"; then
11696
cat >>confdefs.h <<_ACEOF
11697
#define _WANT_IO_LONG_LONG 1
11698
_ACEOF
11699
 
11700
fi
11701
 
11702
if test "${newlib_io_long_double}" = "yes"; then
11703
cat >>confdefs.h <<_ACEOF
11704
#define _WANT_IO_LONG_DOUBLE 1
11705
_ACEOF
11706
 
11707
fi
11708
 
11709
if test "${newlib_io_pos_args}" = "yes"; then
11710
cat >>confdefs.h <<_ACEOF
11711
#define _WANT_IO_POS_ARGS 1
11712
_ACEOF
11713
 
11714
fi
11715
 
11716
if test "${newlib_reent_small}" = "yes"; then
11717
cat >>confdefs.h <<_ACEOF
11718
#define _WANT_REENT_SMALL 1
11719
_ACEOF
11720
 
11721
fi
11722
 
11723
if test "${newlib_mb}" = "yes"; then
11724
cat >>confdefs.h <<_ACEOF
11725
#define _MB_CAPABLE 1
11726
_ACEOF
11727
 
11728
cat >>confdefs.h <<_ACEOF
11729
#define _MB_LEN_MAX 8
11730
_ACEOF
11731
 
11732
else
11733
cat >>confdefs.h <<_ACEOF
11734
#define _MB_LEN_MAX 1
11735
_ACEOF
11736
 
11737
fi
11738
 
11739
if test "${newlib_iconv_external_ccs}" = "yes"; then
11740
cat >>confdefs.h <<_ACEOF
11741
#define _ICONV_ENABLE_EXTERNAL_CCS 1
11742
_ACEOF
11743
 
11744
fi
11745
 
11746
cat >>confdefs.h <<_ACEOF
11747
#define _NEWLIB_VERSION "1.17.0"
11748
_ACEOF
11749
 
11750
 
11751
if test "${multilib}" = "yes"; then
11752
  multilib_arg="--enable-multilib"
11753
else
11754
  multilib_arg=
11755
fi
11756
 
11757
if test "${newlib_iconv}" = "yes"; then
11758
cat >>confdefs.h <<_ACEOF
11759
#define _ICONV_ENABLED 1
11760
_ACEOF
11761
 
11762
fi
11763
 
11764
if test "x${newlib_iconv_external_ccs}" = "xyes"; then
11765
  if test "x${newlib_iconv}" = "x"; then
11766
      { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&5
11767
echo "$as_me: error: --enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" >&2;}
11768
   { (exit use --enable-newlib-iconv to enable it.); exit use --enable-newlib-iconv to enable it.; }; }
11769
  fi
11770
  cat >>confdefs.h <<_ACEOF
11771
#define _ICONV_ENABLE_EXTERNAL_CCS 1
11772
_ACEOF
11773
 
11774
fi
11775
 
11776
if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
11777
cat >>confdefs.h <<_ACEOF
11778
#define _ATEXIT_DYNAMIC_ALLOC 1
11779
_ACEOF
11780
 
11781
fi
11782
 
11783
 
11784
if test "x${iconv_encodings}" != "x" \
11785
   || test "x${iconv_to_encodings}" != "x" \
11786
   || test "x${iconv_from_encodings}" != "x"; then
11787
  if test "x${newlib_iconv}" = "x"; then
11788
      { { echo "$as_me:$LINENO: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&5
11789
echo "$as_me: error: --enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." >&2;}
11790
   { (exit 1); exit 1; }; }
11791
  fi
11792
 
11793
    iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11794
  iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11795
  iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
11796
 
11797
      available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
11798
 
11799
 
11800
    iconv_encodings1="${iconv_encodings}"
11801
  iconv_encodings=""
11802
  for encoding in ${iconv_encodings1}; do
11803
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11804
      if test $? != "0"; then
11805
          { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11806
echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11807
   { (exit 1); exit 1; }; }
11808
      fi
11809
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11810
      iconv_encodings="${iconv_encodings} ${encoding1}"
11811
  done
11812
    for encoding in ${iconv_encodings}; do
11813
      opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11814
      cat >>confdefs.h <<_ACEOF
11815
#define $opt 1
11816
_ACEOF
11817
 
11818
      opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11819
      cat >>confdefs.h <<_ACEOF
11820
#define $opt 1
11821
_ACEOF
11822
 
11823
  done
11824
 
11825
    iconv_encodings1="${iconv_to_encodings}"
11826
  iconv_to_encodings=""
11827
  for encoding in ${iconv_encodings1}; do
11828
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11829
      if test $? != "0"; then
11830
          { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11831
echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11832
   { (exit 1); exit 1; }; }
11833
      fi
11834
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11835
      iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
11836
  done
11837
    for encoding in ${iconv_to_encodings}; do
11838
      opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11839
      cat >>confdefs.h <<_ACEOF
11840
#define $opt 1
11841
_ACEOF
11842
 
11843
  done
11844
 
11845
    iconv_encodings1="${iconv_from_encodings}"
11846
  iconv_from_encodings=""
11847
  for encoding in ${iconv_encodings1}; do
11848
      result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
11849
      if test $? != "0"; then
11850
          { { echo "$as_me:$LINENO: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&5
11851
echo "$as_me: error: ${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" >&2;}
11852
   { (exit 1); exit 1; }; }
11853
      fi
11854
      encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
11855
      iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
11856
  done
11857
    for encoding in ${iconv_from_encodings}; do
11858
      opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11859
      cat >>confdefs.h <<_ACEOF
11860
#define $opt 1
11861
_ACEOF
11862
 
11863
  done
11864
fi;
11865
 
11866
echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11867
echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11868
if test "${libc_cv_initfinit_array+set}" = set; then
11869
  echo $ECHO_N "(cached) $ECHO_C" >&6
11870
else
11871
  cat > conftest.c <
11872
int _start (void) { return 0; }
11873
int __start (void) { return 0; }
11874
int foo (void) { return 1; }
11875
int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11876
EOF
11877
if { ac_try='${CC} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
11878
                   -static -nostartfiles -nostdlib 1>&5'
11879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880
  (eval $ac_try) 2>&5
11881
  ac_status=$?
11882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883
  (exit $ac_status); }; }
11884
then
11885
  if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
11886
    libc_cv_initfinit_array=yes
11887
  else
11888
    libc_cv_initfinit_array=no
11889
  fi
11890
else
11891
  libc_cv_initfinit_array=no
11892
fi
11893
rm -f conftest*
11894
fi
11895
echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
11896
echo "${ECHO_T}$libc_cv_initfinit_array" >&6
11897
 
11898
if test $libc_cv_initfinit_array = yes; then
11899
  cat >>confdefs.h <<_ACEOF
11900
#define HAVE_INITFINI_ARRAY 1
11901
_ACEOF
11902
 
11903
fi
11904
 
11905
echo "$as_me:$LINENO: checking for array aliasing support" >&5
11906
echo $ECHO_N "checking for array aliasing support... $ECHO_C" >&6
11907
if test "${libc_cv_array_aliasing+set}" = set; then
11908
  echo $ECHO_N "(cached) $ECHO_C" >&6
11909
else
11910
  cat > conftest.c <
11911
char x3 = { 'a', 'b', 'c' };
11912
extern char y2 __attribute__((alias ("x+1")));
11913
EOF
11914
if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c
11915
                   1>&5'
11916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917
  (eval $ac_try) 2>&5
11918
  ac_status=$?
11919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920
  (exit $ac_status); }; }
11921
then
11922
  libc_cv_array_aliasing=yes
11923
else
11924
  libc_cv_array_aliasing=no
11925
fi
11926
rm -f conftest*
11927
fi
11928
echo "$as_me:$LINENO: result: $libc_cv_array_aliasing" >&5
11929
echo "${ECHO_T}$libc_cv_array_aliasing" >&6
11930
 
11931
if test $libc_cv_array_aliasing = yes; then
11932
  cat >>confdefs.h <<_ACEOF
11933
#define _HAVE_ARRAY_ALIASING 1
11934
_ACEOF
11935
 
11936
fi
11937
 
11938
          ac_config_files="$ac_config_files Makefile"
11939
 
11940
cat >confcache <<\_ACEOF
11941
# This file is a shell script that caches the results of configure
11942
# tests run on this system so they can be shared between configure
11943
# scripts and configure runs, see configure's option --config-cache.
11944
# It is not useful on other systems.  If it contains results you don't
11945
# want to keep, you may remove or edit it.
11946
#
11947
# config.status only pays attention to the cache file if you give it
11948
# the --recheck option to rerun configure.
11949
#
11950
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11951
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11952
# following values.
11953
 
11954
_ACEOF
11955
 
11956
# The following way of writing the cache mishandles newlines in values,
11957
# but we know of no workaround that is simple, portable, and efficient.
11958
# So, don't put newlines in cache variables' values.
11959
# Ultrix sh set writes to stderr and can't be redirected directly,
11960
# and sets the high bit in the cache file unless we assign to the vars.
11961
{
11962
  (set) 2>&1 |
11963
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11964
    *ac_space=\ *)
11965
      # `set' does not quote correctly, so add quotes (double-quote
11966
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11967
      sed -n \
11968
        "s/'/'\\\\''/g;
11969
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11970
      ;;
11971
    *)
11972
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11973
      sed -n \
11974
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11975
      ;;
11976
    esac;
11977
} |
11978
  sed '
11979
     t clear
11980
     : clear
11981
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11982
     t end
11983
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11984
     : end' >>confcache
11985
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11986
  if test -w $cache_file; then
11987
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11988
    cat confcache >$cache_file
11989
  else
11990
    echo "not updating unwritable cache $cache_file"
11991
  fi
11992
fi
11993
rm -f confcache
11994
 
11995
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11996
# Let make expand exec_prefix.
11997
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11998
 
11999
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12000
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12001
# trailing colons and then remove the whole line if VPATH becomes empty
12002
# (actually we leave an empty line to preserve line numbers).
12003
if test "x$srcdir" = x.; then
12004
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12005
s/:*\$(srcdir):*/:/;
12006
s/:*\${srcdir}:*/:/;
12007
s/:*@srcdir@:*/:/;
12008
s/^\([^=]*=[     ]*\):*/\1/;
12009
s/:*$//;
12010
s/^[^=]*=[       ]*$//;
12011
}'
12012
fi
12013
 
12014
DEFS=-DHAVE_CONFIG_H
12015
 
12016
ac_libobjs=
12017
ac_ltlibobjs=
12018
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12019
  # 1. Remove the extension, and $U if already installed.
12020
  ac_i=`echo "$ac_i" |
12021
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12022
  # 2. Add them.
12023
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12024
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12025
done
12026
LIBOBJS=$ac_libobjs
12027
 
12028
LTLIBOBJS=$ac_ltlibobjs
12029
 
12030
 
12031
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12032
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12033
Usually this means the macro was only invoked conditionally." >&5
12034
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12035
Usually this means the macro was only invoked conditionally." >&2;}
12036
   { (exit 1); exit 1; }; }
12037
fi
12038
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12039
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12040
Usually this means the macro was only invoked conditionally." >&5
12041
echo "$as_me: error: conditional \"AMDEP\" was never defined.
12042
Usually this means the macro was only invoked conditionally." >&2;}
12043
   { (exit 1); exit 1; }; }
12044
fi
12045
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12046
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12047
Usually this means the macro was only invoked conditionally." >&5
12048
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12049
Usually this means the macro was only invoked conditionally." >&2;}
12050
   { (exit 1); exit 1; }; }
12051
fi
12052
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12053
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12054
Usually this means the macro was only invoked conditionally." >&5
12055
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12056
Usually this means the macro was only invoked conditionally." >&2;}
12057
   { (exit 1); exit 1; }; }
12058
fi
12059
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12060
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12061
Usually this means the macro was only invoked conditionally." >&5
12062
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12063
Usually this means the macro was only invoked conditionally." >&2;}
12064
   { (exit 1); exit 1; }; }
12065
fi
12066
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12067
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12068
Usually this means the macro was only invoked conditionally." >&5
12069
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12070
Usually this means the macro was only invoked conditionally." >&2;}
12071
   { (exit 1); exit 1; }; }
12072
fi
12073
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12074
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12075
Usually this means the macro was only invoked conditionally." >&5
12076
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12077
Usually this means the macro was only invoked conditionally." >&2;}
12078
   { (exit 1); exit 1; }; }
12079
fi
12080
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12081
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12082
Usually this means the macro was only invoked conditionally." >&5
12083
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12084
Usually this means the macro was only invoked conditionally." >&2;}
12085
   { (exit 1); exit 1; }; }
12086
fi
12087
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12088
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12089
Usually this means the macro was only invoked conditionally." >&5
12090
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12091
Usually this means the macro was only invoked conditionally." >&2;}
12092
   { (exit 1); exit 1; }; }
12093
fi
12094
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12095
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12096
Usually this means the macro was only invoked conditionally." >&5
12097
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12098
Usually this means the macro was only invoked conditionally." >&2;}
12099
   { (exit 1); exit 1; }; }
12100
fi
12101
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12102
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12103
Usually this means the macro was only invoked conditionally." >&5
12104
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12105
Usually this means the macro was only invoked conditionally." >&2;}
12106
   { (exit 1); exit 1; }; }
12107
fi
12108
if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12109
  { { echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
12110
Usually this means the macro was only invoked conditionally." >&5
12111
echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
12112
Usually this means the macro was only invoked conditionally." >&2;}
12113
   { (exit 1); exit 1; }; }
12114
fi
12115
if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
12116
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOC\" was never defined.
12117
Usually this means the macro was only invoked conditionally." >&5
12118
echo "$as_me: error: conditional \"HAVE_DOC\" was never defined.
12119
Usually this means the macro was only invoked conditionally." >&2;}
12120
   { (exit 1); exit 1; }; }
12121
fi
12122
 
12123
: ${CONFIG_STATUS=./config.status}
12124
ac_clean_files_save=$ac_clean_files
12125
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12126
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12127
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12128
cat >$CONFIG_STATUS <<_ACEOF
12129
#! $SHELL
12130
# Generated by $as_me.
12131
# Run this file to recreate the current configuration.
12132
# Compiler output produced by configure, useful for debugging
12133
# configure, is in config.log if it exists.
12134
 
12135
debug=false
12136
ac_cs_recheck=false
12137
ac_cs_silent=false
12138
SHELL=\${CONFIG_SHELL-$SHELL}
12139
_ACEOF
12140
 
12141
cat >>$CONFIG_STATUS <<\_ACEOF
12142
## --------------------- ##
12143
## M4sh Initialization.  ##
12144
## --------------------- ##
12145
 
12146
# Be Bourne compatible
12147
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12148
  emulate sh
12149
  NULLCMD=:
12150
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12151
  # is contrary to our usage.  Disable this feature.
12152
  alias -g '${1+"$@"}'='"$@"'
12153
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12154
  set -o posix
12155
fi
12156
DUALCASE=1; export DUALCASE # for MKS sh
12157
 
12158
# Support unset when possible.
12159
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12160
  as_unset=unset
12161
else
12162
  as_unset=false
12163
fi
12164
 
12165
 
12166
# Work around bugs in pre-3.0 UWIN ksh.
12167
$as_unset ENV MAIL MAILPATH
12168
PS1='$ '
12169
PS2='> '
12170
PS4='+ '
12171
 
12172
# NLS nuisances.
12173
for as_var in \
12174
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12175
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12176
  LC_TELEPHONE LC_TIME
12177
do
12178
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12179
    eval $as_var=C; export $as_var
12180
  else
12181
    $as_unset $as_var
12182
  fi
12183
done
12184
 
12185
# Required to use basename.
12186
if expr a : '\(a\)' >/dev/null 2>&1; then
12187
  as_expr=expr
12188
else
12189
  as_expr=false
12190
fi
12191
 
12192
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12193
  as_basename=basename
12194
else
12195
  as_basename=false
12196
fi
12197
 
12198
 
12199
# Name of the executable.
12200
as_me=`$as_basename "$0" ||
12201
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12202
         X"$0" : 'X\(//\)$' \| \
12203
         X"$0" : 'X\(/\)$' \| \
12204
         .     : '\(.\)' 2>/dev/null ||
12205
echo X/"$0" |
12206
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12207
          /^X\/\(\/\/\)$/{ s//\1/; q; }
12208
          /^X\/\(\/\).*/{ s//\1/; q; }
12209
          s/.*/./; q'`
12210
 
12211
 
12212
# PATH needs CR, and LINENO needs CR and PATH.
12213
# Avoid depending upon Character Ranges.
12214
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12215
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12216
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12217
as_cr_digits='0123456789'
12218
as_cr_alnum=$as_cr_Letters$as_cr_digits
12219
 
12220
# The user is always right.
12221
if test "${PATH_SEPARATOR+set}" != set; then
12222
  echo "#! /bin/sh" >conf$$.sh
12223
  echo  "exit 0"   >>conf$$.sh
12224
  chmod +x conf$$.sh
12225
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12226
    PATH_SEPARATOR=';'
12227
  else
12228
    PATH_SEPARATOR=:
12229
  fi
12230
  rm -f conf$$.sh
12231
fi
12232
 
12233
 
12234
  as_lineno_1=$LINENO
12235
  as_lineno_2=$LINENO
12236
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12237
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12238
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12239
  # Find who we are.  Look in the path if we contain no path at all
12240
  # relative or not.
12241
  case $0 in
12242
    *[\\/]* ) as_myself=$0 ;;
12243
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244
for as_dir in $PATH
12245
do
12246
  IFS=$as_save_IFS
12247
  test -z "$as_dir" && as_dir=.
12248
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12249
done
12250
 
12251
       ;;
12252
  esac
12253
  # We did not find ourselves, most probably we were run as `sh COMMAND'
12254
  # in which case we are not to be found in the path.
12255
  if test "x$as_myself" = x; then
12256
    as_myself=$0
12257
  fi
12258
  if test ! -f "$as_myself"; then
12259
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12260
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12261
   { (exit 1); exit 1; }; }
12262
  fi
12263
  case $CONFIG_SHELL in
12264
  '')
12265
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12267
do
12268
  IFS=$as_save_IFS
12269
  test -z "$as_dir" && as_dir=.
12270
  for as_base in sh bash ksh sh5; do
12271
         case $as_dir in
12272
         /*)
12273
           if ("$as_dir/$as_base" -c '
12274
  as_lineno_1=$LINENO
12275
  as_lineno_2=$LINENO
12276
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12277
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12278
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12279
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12280
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12281
             CONFIG_SHELL=$as_dir/$as_base
12282
             export CONFIG_SHELL
12283
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12284
           fi;;
12285
         esac
12286
       done
12287
done
12288
;;
12289
  esac
12290
 
12291
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12292
  # uniformly replaced by the line number.  The first 'sed' inserts a
12293
  # line-number line before each line; the second 'sed' does the real
12294
  # work.  The second script uses 'N' to pair each line-number line
12295
  # with the numbered line, and appends trailing '-' during
12296
  # substitution so that $LINENO is not a special case at line end.
12297
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12298
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12299
  sed '=' <$as_myself |
12300
    sed '
12301
      N
12302
      s,$,-,
12303
      : loop
12304
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12305
      t loop
12306
      s,-$,,
12307
      s,^['$as_cr_digits']*\n,,
12308
    ' >$as_me.lineno &&
12309
  chmod +x $as_me.lineno ||
12310
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12311
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12312
   { (exit 1); exit 1; }; }
12313
 
12314
  # Don't try to exec as it changes $[0], causing all sort of problems
12315
  # (the dirname of $[0] is not the place where we might find the
12316
  # original and so on.  Autoconf is especially sensible to this).
12317
  . ./$as_me.lineno
12318
  # Exit status is that of the last command.
12319
  exit
12320
}
12321
 
12322
 
12323
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12324
  *c*,-n*) ECHO_N= ECHO_C='
12325
' ECHO_T='      ' ;;
12326
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12327
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12328
esac
12329
 
12330
if expr a : '\(a\)' >/dev/null 2>&1; then
12331
  as_expr=expr
12332
else
12333
  as_expr=false
12334
fi
12335
 
12336
rm -f conf$$ conf$$.exe conf$$.file
12337
echo >conf$$.file
12338
if ln -s conf$$.file conf$$ 2>/dev/null; then
12339
  # We could just check for DJGPP; but this test a) works b) is more generic
12340
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12341
  if test -f conf$$.exe; then
12342
    # Don't use ln at all; we don't have any links
12343
    as_ln_s='cp -p'
12344
  else
12345
    as_ln_s='ln -s'
12346
  fi
12347
elif ln conf$$.file conf$$ 2>/dev/null; then
12348
  as_ln_s=ln
12349
else
12350
  as_ln_s='cp -p'
12351
fi
12352
rm -f conf$$ conf$$.exe conf$$.file
12353
 
12354
if mkdir -p . 2>/dev/null; then
12355
  as_mkdir_p=:
12356
else
12357
  test -d ./-p && rmdir ./-p
12358
  as_mkdir_p=false
12359
fi
12360
 
12361
as_executable_p="test -f"
12362
 
12363
# Sed expression to map a string onto a valid CPP name.
12364
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12365
 
12366
# Sed expression to map a string onto a valid variable name.
12367
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12368
 
12369
 
12370
# IFS
12371
# We need space, tab and new line, in precisely that order.
12372
as_nl='
12373
'
12374
IFS="   $as_nl"
12375
 
12376
# CDPATH.
12377
$as_unset CDPATH
12378
 
12379
exec 6>&1
12380
 
12381
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12382
# report actual input values of CONFIG_FILES etc. instead of their
12383
# values after options handling.  Logging --version etc. is OK.
12384
exec 5>>config.log
12385
{
12386
  echo
12387
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12388
## Running $as_me. ##
12389
_ASBOX
12390
} >&5
12391
cat >&5 <<_CSEOF
12392
 
12393
This file was extended by newlib $as_me 1.17.0, which was
12394
generated by GNU Autoconf 2.59.  Invocation command line was
12395
 
12396
  CONFIG_FILES    = $CONFIG_FILES
12397
  CONFIG_HEADERS  = $CONFIG_HEADERS
12398
  CONFIG_LINKS    = $CONFIG_LINKS
12399
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12400
  $ $0 $@
12401
 
12402
_CSEOF
12403
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12404
echo >&5
12405
_ACEOF
12406
 
12407
# Files that config.status was made for.
12408
if test -n "$ac_config_files"; then
12409
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12410
fi
12411
 
12412
if test -n "$ac_config_headers"; then
12413
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12414
fi
12415
 
12416
if test -n "$ac_config_links"; then
12417
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12418
fi
12419
 
12420
if test -n "$ac_config_commands"; then
12421
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12422
fi
12423
 
12424
cat >>$CONFIG_STATUS <<\_ACEOF
12425
 
12426
ac_cs_usage="\
12427
\`$as_me' instantiates files from templates according to the
12428
current configuration.
12429
 
12430
Usage: $0 [OPTIONS] [FILE]...
12431
 
12432
  -h, --help       print this help, then exit
12433
  -V, --version    print version number, then exit
12434
  -q, --quiet      do not print progress messages
12435
  -d, --debug      don't remove temporary files
12436
      --recheck    update $as_me by reconfiguring in the same conditions
12437
  --file=FILE[:TEMPLATE]
12438
                   instantiate the configuration file FILE
12439
  --header=FILE[:TEMPLATE]
12440
                   instantiate the configuration header FILE
12441
 
12442
Configuration files:
12443
$config_files
12444
 
12445
Configuration headers:
12446
$config_headers
12447
 
12448
Configuration commands:
12449
$config_commands
12450
 
12451
Report bugs to ."
12452
_ACEOF
12453
 
12454
cat >>$CONFIG_STATUS <<_ACEOF
12455
ac_cs_version="\\
12456
newlib config.status 1.17.0
12457
configured by $0, generated by GNU Autoconf 2.59,
12458
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12459
 
12460
Copyright (C) 2003 Free Software Foundation, Inc.
12461
This config.status script is free software; the Free Software Foundation
12462
gives unlimited permission to copy, distribute and modify it."
12463
srcdir=$srcdir
12464
INSTALL="$INSTALL"
12465
_ACEOF
12466
 
12467
cat >>$CONFIG_STATUS <<\_ACEOF
12468
# If no file are specified by the user, then we need to provide default
12469
# value.  By we need to know if files were specified by the user.
12470
ac_need_defaults=:
12471
while test $# != 0
12472
do
12473
  case $1 in
12474
  --*=*)
12475
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12476
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12477
    ac_shift=:
12478
    ;;
12479
  -*)
12480
    ac_option=$1
12481
    ac_optarg=$2
12482
    ac_shift=shift
12483
    ;;
12484
  *) # This is not an option, so the user has probably given explicit
12485
     # arguments.
12486
     ac_option=$1
12487
     ac_need_defaults=false;;
12488
  esac
12489
 
12490
  case $ac_option in
12491
  # Handling of the options.
12492
_ACEOF
12493
cat >>$CONFIG_STATUS <<\_ACEOF
12494
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12495
    ac_cs_recheck=: ;;
12496
  --version | --vers* | -V )
12497
    echo "$ac_cs_version"; exit 0 ;;
12498
  --he | --h)
12499
    # Conflict between --help and --header
12500
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12501
Try \`$0 --help' for more information." >&5
12502
echo "$as_me: error: ambiguous option: $1
12503
Try \`$0 --help' for more information." >&2;}
12504
   { (exit 1); exit 1; }; };;
12505
  --help | --hel | -h )
12506
    echo "$ac_cs_usage"; exit 0 ;;
12507
  --debug | --d* | -d )
12508
    debug=: ;;
12509
  --file | --fil | --fi | --f )
12510
    $ac_shift
12511
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12512
    ac_need_defaults=false;;
12513
  --header | --heade | --head | --hea )
12514
    $ac_shift
12515
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12516
    ac_need_defaults=false;;
12517
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12518
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12519
    ac_cs_silent=: ;;
12520
 
12521
  # This is an error.
12522
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12523
Try \`$0 --help' for more information." >&5
12524
echo "$as_me: error: unrecognized option: $1
12525
Try \`$0 --help' for more information." >&2;}
12526
   { (exit 1); exit 1; }; } ;;
12527
 
12528
  *) ac_config_targets="$ac_config_targets $1" ;;
12529
 
12530
  esac
12531
  shift
12532
done
12533
 
12534
ac_configure_extra_args=
12535
 
12536
if $ac_cs_silent; then
12537
  exec 6>/dev/null
12538
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12539
fi
12540
 
12541
_ACEOF
12542
cat >>$CONFIG_STATUS <<_ACEOF
12543
if \$ac_cs_recheck; then
12544
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12545
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12546
fi
12547
 
12548
_ACEOF
12549
 
12550
cat >>$CONFIG_STATUS <<_ACEOF
12551
#
12552
# INIT-COMMANDS section.
12553
#
12554
 
12555
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12556
 
12557
 
12558
# The HP-UX ksh and POSIX shell print the target directory to stdout
12559
# if CDPATH is set.
12560
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12561
 
12562
sed_quote_subst='$sed_quote_subst'
12563
double_quote_subst='$double_quote_subst'
12564
delay_variable_subst='$delay_variable_subst'
12565
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12566
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12567
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12568
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12569
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12570
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12571
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12572
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12573
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12574
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12575
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12576
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12577
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12578
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12579
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12580
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12581
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12582
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12583
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12584
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12585
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12586
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12587
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12588
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12589
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12590
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12591
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12592
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12593
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12594
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12595
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12596
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12597
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12598
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12599
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12600
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12601
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12602
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12603
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12604
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12605
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12606
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12607
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12608
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12609
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12610
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12611
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"`'
12612
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"`'
12613
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12614
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12615
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12616
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12617
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12618
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12619
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12620
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12621
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12622
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12623
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12624
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12625
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12626
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12627
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12628
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12629
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12630
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12631
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12632
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12633
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12634
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12635
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12636
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12637
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12638
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12639
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12640
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12641
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12642
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12643
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12644
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12645
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12646
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12647
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12648
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12649
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12650
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12651
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12652
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12653
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12654
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12655
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12656
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12657
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12658
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12659
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12660
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12661
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12662
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12663
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12664
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12665
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12666
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12667
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12668
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12669
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12670
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12671
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12672
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12673
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12674
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12675
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12676
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12677
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12678
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12679
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12680
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12681
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12682
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12683
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12684
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12685
 
12686
LTCC='$LTCC'
12687
LTCFLAGS='$LTCFLAGS'
12688
compiler='$compiler_DEFAULT'
12689
 
12690
# Quote evaled strings.
12691
for var in SED \
12692
GREP \
12693
EGREP \
12694
FGREP \
12695
LD \
12696
NM \
12697
LN_S \
12698
lt_SP2NL \
12699
lt_NL2SP \
12700
reload_flag \
12701
deplibs_check_method \
12702
file_magic_cmd \
12703
AR \
12704
AR_FLAGS \
12705
STRIP \
12706
RANLIB \
12707
CC \
12708
CFLAGS \
12709
compiler \
12710
lt_cv_sys_global_symbol_pipe \
12711
lt_cv_sys_global_symbol_to_cdecl \
12712
lt_cv_sys_global_symbol_to_c_name_address \
12713
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12714
SHELL \
12715
ECHO \
12716
lt_prog_compiler_no_builtin_flag \
12717
lt_prog_compiler_wl \
12718
lt_prog_compiler_pic \
12719
lt_prog_compiler_static \
12720
lt_cv_prog_compiler_c_o \
12721
need_locks \
12722
DSYMUTIL \
12723
NMEDIT \
12724
LIPO \
12725
OTOOL \
12726
OTOOL64 \
12727
shrext_cmds \
12728
export_dynamic_flag_spec \
12729
whole_archive_flag_spec \
12730
compiler_needs_object \
12731
with_gnu_ld \
12732
allow_undefined_flag \
12733
no_undefined_flag \
12734
hardcode_libdir_flag_spec \
12735
hardcode_libdir_flag_spec_ld \
12736
hardcode_libdir_separator \
12737
fix_srcfile_path \
12738
exclude_expsyms \
12739
include_expsyms \
12740
file_list_spec \
12741
variables_saved_for_relink \
12742
libname_spec \
12743
library_names_spec \
12744
soname_spec \
12745
finish_eval \
12746
old_striplib \
12747
striplib; do
12748
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12749
    *[\\\\\\\`\\"\\\$]*)
12750
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12751
      ;;
12752
    *)
12753
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12754
      ;;
12755
    esac
12756
done
12757
 
12758
# Double-quote double-evaled strings.
12759
for var in reload_cmds \
12760
old_postinstall_cmds \
12761
old_postuninstall_cmds \
12762
old_archive_cmds \
12763
extract_expsyms_cmds \
12764
old_archive_from_new_cmds \
12765
old_archive_from_expsyms_cmds \
12766
archive_cmds \
12767
archive_expsym_cmds \
12768
module_cmds \
12769
module_expsym_cmds \
12770
export_symbols_cmds \
12771
prelink_cmds \
12772
postinstall_cmds \
12773
postuninstall_cmds \
12774
finish_cmds \
12775
sys_lib_search_path_spec \
12776
sys_lib_dlsearch_path_spec; do
12777
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12778
    *[\\\\\\\`\\"\\\$]*)
12779
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12780
      ;;
12781
    *)
12782
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12783
      ;;
12784
    esac
12785
done
12786
 
12787
# Fix-up fallback echo if it was mangled by the above quoting rules.
12788
case \$lt_ECHO in
12789
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12790
  ;;
12791
esac
12792
 
12793
ac_aux_dir='$ac_aux_dir'
12794
xsi_shell='$xsi_shell'
12795
lt_shell_append='$lt_shell_append'
12796
 
12797
# See if we are running on zsh, and set the options which allow our
12798
# commands through without removal of \ escapes INIT.
12799
if test -n "\${ZSH_VERSION+set}" ; then
12800
   setopt NO_GLOB_SUBST
12801
fi
12802
 
12803
 
12804
    PACKAGE='$PACKAGE'
12805
    VERSION='$VERSION'
12806
    TIMESTAMP='$TIMESTAMP'
12807
    RM='$RM'
12808
    ofile='$ofile'
12809
 
12810
 
12811
 
12812
srcdir=${srcdir}
12813
host=${host}
12814
with_multisubdir=${with_multisubdir}
12815
ac_configure_args="${multilib_arg} ${ac_configure_args}"
12816
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12817
newlib_basedir=${newlib_basedir}
12818
CC="${CC}"
12819
LDFLAGS="${LDFLAGS}"
12820
 
12821
 
12822
_ACEOF
12823
 
12824
 
12825
 
12826
cat >>$CONFIG_STATUS <<\_ACEOF
12827
for ac_config_target in $ac_config_targets
12828
do
12829
  case "$ac_config_target" in
12830
  # Handling of arguments.
12831
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12832
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12833
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12834
  "newlib.h" ) CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
12835
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12836
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12837
   { (exit 1); exit 1; }; };;
12838
  esac
12839
done
12840
 
12841
# If the user did not use the arguments to specify the items to instantiate,
12842
# then the envvar interface is used.  Set only those that are not.
12843
# We use the long form for the default assignment because of an extremely
12844
# bizarre bug on SunOS 4.1.3.
12845
if $ac_need_defaults; then
12846
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12847
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12848
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12849
fi
12850
 
12851
# Have a temporary directory for convenience.  Make it in the build tree
12852
# simply because there is no reason to put it here, and in addition,
12853
# creating and moving files from /tmp can sometimes cause problems.
12854
# Create a temporary directory, and hook for its removal unless debugging.
12855
$debug ||
12856
{
12857
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12858
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12859
}
12860
 
12861
# Create a (secure) tmp directory for tmp files.
12862
 
12863
{
12864
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12865
  test -n "$tmp" && test -d "$tmp"
12866
}  ||
12867
{
12868
  tmp=./confstat$$-$RANDOM
12869
  (umask 077 && mkdir $tmp)
12870
} ||
12871
{
12872
   echo "$me: cannot create a temporary directory in ." >&2
12873
   { (exit 1); exit 1; }
12874
}
12875
 
12876
_ACEOF
12877
 
12878
cat >>$CONFIG_STATUS <<_ACEOF
12879
 
12880
#
12881
# CONFIG_FILES section.
12882
#
12883
 
12884
# No need to generate the scripts if there are no CONFIG_FILES.
12885
# This happens for instance when ./config.status config.h
12886
if test -n "\$CONFIG_FILES"; then
12887
  # Protect against being on the right side of a sed subst in config.status.
12888
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12889
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12890
s,@SHELL@,$SHELL,;t t
12891
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12892
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12893
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12894
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12895
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12896
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12897
s,@exec_prefix@,$exec_prefix,;t t
12898
s,@prefix@,$prefix,;t t
12899
s,@program_transform_name@,$program_transform_name,;t t
12900
s,@bindir@,$bindir,;t t
12901
s,@sbindir@,$sbindir,;t t
12902
s,@libexecdir@,$libexecdir,;t t
12903
s,@datadir@,$datadir,;t t
12904
s,@sysconfdir@,$sysconfdir,;t t
12905
s,@sharedstatedir@,$sharedstatedir,;t t
12906
s,@localstatedir@,$localstatedir,;t t
12907
s,@libdir@,$libdir,;t t
12908
s,@includedir@,$includedir,;t t
12909
s,@oldincludedir@,$oldincludedir,;t t
12910
s,@infodir@,$infodir,;t t
12911
s,@mandir@,$mandir,;t t
12912
s,@build_alias@,$build_alias,;t t
12913
s,@host_alias@,$host_alias,;t t
12914
s,@target_alias@,$target_alias,;t t
12915
s,@DEFS@,$DEFS,;t t
12916
s,@ECHO_C@,$ECHO_C,;t t
12917
s,@ECHO_N@,$ECHO_N,;t t
12918
s,@ECHO_T@,$ECHO_T,;t t
12919
s,@LIBS@,$LIBS,;t t
12920
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12921
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12922
s,@newlib_basedir@,$newlib_basedir,;t t
12923
s,@build@,$build,;t t
12924
s,@build_cpu@,$build_cpu,;t t
12925
s,@build_vendor@,$build_vendor,;t t
12926
s,@build_os@,$build_os,;t t
12927
s,@host@,$host,;t t
12928
s,@host_cpu@,$host_cpu,;t t
12929
s,@host_vendor@,$host_vendor,;t t
12930
s,@host_os@,$host_os,;t t
12931
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12932
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12933
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12934
s,@CYGPATH_W@,$CYGPATH_W,;t t
12935
s,@PACKAGE@,$PACKAGE,;t t
12936
s,@VERSION@,$VERSION,;t t
12937
s,@ACLOCAL@,$ACLOCAL,;t t
12938
s,@AUTOCONF@,$AUTOCONF,;t t
12939
s,@AUTOMAKE@,$AUTOMAKE,;t t
12940
s,@AUTOHEADER@,$AUTOHEADER,;t t
12941
s,@MAKEINFO@,$MAKEINFO,;t t
12942
s,@install_sh@,$install_sh,;t t
12943
s,@STRIP@,$STRIP,;t t
12944
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12945
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12946
s,@mkdir_p@,$mkdir_p,;t t
12947
s,@AWK@,$AWK,;t t
12948
s,@SET_MAKE@,$SET_MAKE,;t t
12949
s,@am__leading_dot@,$am__leading_dot,;t t
12950
s,@AMTAR@,$AMTAR,;t t
12951
s,@am__tar@,$am__tar,;t t
12952
s,@am__untar@,$am__untar,;t t
12953
s,@CC@,$CC,;t t
12954
s,@DEPDIR@,$DEPDIR,;t t
12955
s,@am__include@,$am__include,;t t
12956
s,@am__quote@,$am__quote,;t t
12957
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12958
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12959
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12960
s,@CCDEPMODE@,$CCDEPMODE,;t t
12961
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12962
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12963
s,@AS@,$AS,;t t
12964
s,@ac_ct_AS@,$ac_ct_AS,;t t
12965
s,@AR@,$AR,;t t
12966
s,@ac_ct_AR@,$ac_ct_AR,;t t
12967
s,@RANLIB@,$RANLIB,;t t
12968
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12969
s,@READELF@,$READELF,;t t
12970
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12971
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12972
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12973
s,@MAINT@,$MAINT,;t t
12974
s,@CCAS@,$CCAS,;t t
12975
s,@CCASFLAGS@,$CCASFLAGS,;t t
12976
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12977
s,@LDFLAGS@,$LDFLAGS,;t t
12978
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12979
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12980
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12981
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12982
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12983
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12984
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12985
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12986
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12987
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12988
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12989
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12990
s,@OBJEXT@,$OBJEXT,;t t
12991
s,@oext@,$oext,;t t
12992
s,@aext@,$aext,;t t
12993
s,@lpfx@,$lpfx,;t t
12994
s,@libm_machine_dir@,$libm_machine_dir,;t t
12995
s,@machine_dir@,$machine_dir,;t t
12996
s,@sys_dir@,$sys_dir,;t t
12997
s,@SED@,$SED,;t t
12998
s,@DLLTOOL@,$DLLTOOL,;t t
12999
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
13000
s,@OBJDUMP@,$OBJDUMP,;t t
13001
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
13002
s,@LIBTOOL@,$LIBTOOL,;t t
13003
s,@CFLAGS@,$CFLAGS,;t t
13004
s,@CPPFLAGS@,$CPPFLAGS,;t t
13005
s,@ac_ct_CC@,$ac_ct_CC,;t t
13006
s,@EXEEXT@,$EXEEXT,;t t
13007
s,@EGREP@,$EGREP,;t t
13008
s,@FGREP@,$FGREP,;t t
13009
s,@GREP@,$GREP,;t t
13010
s,@LD@,$LD,;t t
13011
s,@DUMPBIN@,$DUMPBIN,;t t
13012
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13013
s,@NM@,$NM,;t t
13014
s,@LN_S@,$LN_S,;t t
13015
s,@lt_ECHO@,$lt_ECHO,;t t
13016
s,@DSYMUTIL@,$DSYMUTIL,;t t
13017
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13018
s,@NMEDIT@,$NMEDIT,;t t
13019
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13020
s,@LIPO@,$LIPO,;t t
13021
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13022
s,@OTOOL@,$OTOOL,;t t
13023
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13024
s,@OTOOL64@,$OTOOL64,;t t
13025
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13026
s,@CPP@,$CPP,;t t
13027
s,@NEWLIB_HW_FP_TRUE@,$NEWLIB_HW_FP_TRUE,;t t
13028
s,@NEWLIB_HW_FP_FALSE@,$NEWLIB_HW_FP_FALSE,;t t
13029
s,@CC_FOR_NEWLIB@,$CC_FOR_NEWLIB,;t t
13030
s,@subdirs@,$subdirs,;t t
13031
s,@HAVE_DOC_TRUE@,$HAVE_DOC_TRUE,;t t
13032
s,@HAVE_DOC_FALSE@,$HAVE_DOC_FALSE,;t t
13033
s,@EXTRA_DIRS@,$EXTRA_DIRS,;t t
13034
s,@CRT0@,$CRT0,;t t
13035
s,@CRT0_DIR@,$CRT0_DIR,;t t
13036
s,@CRT1@,$CRT1,;t t
13037
s,@CRT1_DIR@,$CRT1_DIR,;t t
13038
s,@LIBM_MACHINE_OBJECTLIST@,$LIBM_MACHINE_OBJECTLIST,;t t
13039
s,@MACHINE_OBJECTLIST@,$MACHINE_OBJECTLIST,;t t
13040
s,@SYS_OBJECTLIST@,$SYS_OBJECTLIST,;t t
13041
s,@SYS_MACH_OBJECTLIST@,$SYS_MACH_OBJECTLIST,;t t
13042
s,@POSIX_OBJECTLIST@,$POSIX_OBJECTLIST,;t t
13043
s,@SIGNAL_OBJECTLIST@,$SIGNAL_OBJECTLIST,;t t
13044
s,@SYSCALL_OBJECTLIST@,$SYSCALL_OBJECTLIST,;t t
13045
s,@UNIX_OBJECTLIST@,$UNIX_OBJECTLIST,;t t
13046
s,@STDIO64_OBJECTLIST@,$STDIO64_OBJECTLIST,;t t
13047
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13048
s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
13049
s,@libc_cv_array_aliasing@,$libc_cv_array_aliasing,;t t
13050
s,@LIBOBJS@,$LIBOBJS,;t t
13051
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13052
CEOF
13053
 
13054
_ACEOF
13055
 
13056
  cat >>$CONFIG_STATUS <<\_ACEOF
13057
  # Split the substitutions into bite-sized pieces for seds with
13058
  # small command number limits, like on Digital OSF/1 and HP-UX.
13059
  ac_max_sed_lines=48
13060
  ac_sed_frag=1 # Number of current file.
13061
  ac_beg=1 # First line for current file.
13062
  ac_end=$ac_max_sed_lines # Line after last line for current file.
13063
  ac_more_lines=:
13064
  ac_sed_cmds=
13065
  while $ac_more_lines; do
13066
    if test $ac_beg -gt 1; then
13067
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13068
    else
13069
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13070
    fi
13071
    if test ! -s $tmp/subs.frag; then
13072
      ac_more_lines=false
13073
    else
13074
      # The purpose of the label and of the branching condition is to
13075
      # speed up the sed processing (if there are no `@' at all, there
13076
      # is no need to browse any of the substitutions).
13077
      # These are the two extra sed commands mentioned above.
13078
      (echo ':t
13079
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13080
      if test -z "$ac_sed_cmds"; then
13081
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13082
      else
13083
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13084
      fi
13085
      ac_sed_frag=`expr $ac_sed_frag + 1`
13086
      ac_beg=$ac_end
13087
      ac_end=`expr $ac_end + $ac_max_sed_lines`
13088
    fi
13089
  done
13090
  if test -z "$ac_sed_cmds"; then
13091
    ac_sed_cmds=cat
13092
  fi
13093
fi # test -n "$CONFIG_FILES"
13094
 
13095
_ACEOF
13096
cat >>$CONFIG_STATUS <<\_ACEOF
13097
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13098
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13099
  case $ac_file in
13100
  - | *:- | *:-:* ) # input from stdin
13101
        cat >$tmp/stdin
13102
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13103
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13104
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13105
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13106
  * )   ac_file_in=$ac_file.in ;;
13107
  esac
13108
 
13109
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13110
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13111
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112
         X"$ac_file" : 'X\(//\)[^/]' \| \
13113
         X"$ac_file" : 'X\(//\)$' \| \
13114
         X"$ac_file" : 'X\(/\)' \| \
13115
         .     : '\(.\)' 2>/dev/null ||
13116
echo X"$ac_file" |
13117
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13118
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13119
          /^X\(\/\/\)$/{ s//\1/; q; }
13120
          /^X\(\/\).*/{ s//\1/; q; }
13121
          s/.*/./; q'`
13122
  { if $as_mkdir_p; then
13123
    mkdir -p "$ac_dir"
13124
  else
13125
    as_dir="$ac_dir"
13126
    as_dirs=
13127
    while test ! -d "$as_dir"; do
13128
      as_dirs="$as_dir $as_dirs"
13129
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13130
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13131
         X"$as_dir" : 'X\(//\)[^/]' \| \
13132
         X"$as_dir" : 'X\(//\)$' \| \
13133
         X"$as_dir" : 'X\(/\)' \| \
13134
         .     : '\(.\)' 2>/dev/null ||
13135
echo X"$as_dir" |
13136
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13137
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13138
          /^X\(\/\/\)$/{ s//\1/; q; }
13139
          /^X\(\/\).*/{ s//\1/; q; }
13140
          s/.*/./; q'`
13141
    done
13142
    test ! -n "$as_dirs" || mkdir $as_dirs
13143
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13144
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13145
   { (exit 1); exit 1; }; }; }
13146
 
13147
  ac_builddir=.
13148
 
13149
if test "$ac_dir" != .; then
13150
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13151
  # A "../" for each directory in $ac_dir_suffix.
13152
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13153
else
13154
  ac_dir_suffix= ac_top_builddir=
13155
fi
13156
 
13157
case $srcdir in
13158
  .)  # No --srcdir option.  We are building in place.
13159
    ac_srcdir=.
13160
    if test -z "$ac_top_builddir"; then
13161
       ac_top_srcdir=.
13162
    else
13163
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13164
    fi ;;
13165
  [\\/]* | ?:[\\/]* )  # Absolute path.
13166
    ac_srcdir=$srcdir$ac_dir_suffix;
13167
    ac_top_srcdir=$srcdir ;;
13168
  *) # Relative path.
13169
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13170
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13171
esac
13172
 
13173
# Do not use `cd foo && pwd` to compute absolute paths, because
13174
# the directories may not exist.
13175
case `pwd` in
13176
.) ac_abs_builddir="$ac_dir";;
13177
*)
13178
  case "$ac_dir" in
13179
  .) ac_abs_builddir=`pwd`;;
13180
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13181
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13182
  esac;;
13183
esac
13184
case $ac_abs_builddir in
13185
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13186
*)
13187
  case ${ac_top_builddir}. in
13188
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13189
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13190
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13191
  esac;;
13192
esac
13193
case $ac_abs_builddir in
13194
.) ac_abs_srcdir=$ac_srcdir;;
13195
*)
13196
  case $ac_srcdir in
13197
  .) ac_abs_srcdir=$ac_abs_builddir;;
13198
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13199
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13200
  esac;;
13201
esac
13202
case $ac_abs_builddir in
13203
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13204
*)
13205
  case $ac_top_srcdir in
13206
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13207
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13208
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13209
  esac;;
13210
esac
13211
 
13212
 
13213
  case $INSTALL in
13214
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13215
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13216
  esac
13217
 
13218
  if test x"$ac_file" != x-; then
13219
    { echo "$as_me:$LINENO: creating $ac_file" >&5
13220
echo "$as_me: creating $ac_file" >&6;}
13221
    rm -f "$ac_file"
13222
  fi
13223
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13224
  # use $as_me), people would be surprised to read:
13225
  #    /* config.h.  Generated by config.status.  */
13226
  if test x"$ac_file" = x-; then
13227
    configure_input=
13228
  else
13229
    configure_input="$ac_file.  "
13230
  fi
13231
  configure_input=$configure_input"Generated from `echo $ac_file_in |
13232
                                     sed 's,.*/,,'` by configure."
13233
 
13234
  # First look for the input files in the build tree, otherwise in the
13235
  # src tree.
13236
  ac_file_inputs=`IFS=:
13237
    for f in $ac_file_in; do
13238
      case $f in
13239
      -) echo $tmp/stdin ;;
13240
      [\\/$]*)
13241
         # Absolute (can't be DOS-style, as IFS=:)
13242
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13243
echo "$as_me: error: cannot find input file: $f" >&2;}
13244
   { (exit 1); exit 1; }; }
13245
         echo "$f";;
13246
      *) # Relative
13247
         if test -f "$f"; then
13248
           # Build tree
13249
           echo "$f"
13250
         elif test -f "$srcdir/$f"; then
13251
           # Source tree
13252
           echo "$srcdir/$f"
13253
         else
13254
           # /dev/null tree
13255
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13256
echo "$as_me: error: cannot find input file: $f" >&2;}
13257
   { (exit 1); exit 1; }; }
13258
         fi;;
13259
      esac
13260
    done` || { (exit 1); exit 1; }
13261
_ACEOF
13262
cat >>$CONFIG_STATUS <<_ACEOF
13263
  sed "$ac_vpsub
13264
$extrasub
13265
_ACEOF
13266
cat >>$CONFIG_STATUS <<\_ACEOF
13267
:t
13268
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13269
s,@configure_input@,$configure_input,;t t
13270
s,@srcdir@,$ac_srcdir,;t t
13271
s,@abs_srcdir@,$ac_abs_srcdir,;t t
13272
s,@top_srcdir@,$ac_top_srcdir,;t t
13273
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13274
s,@builddir@,$ac_builddir,;t t
13275
s,@abs_builddir@,$ac_abs_builddir,;t t
13276
s,@top_builddir@,$ac_top_builddir,;t t
13277
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13278
s,@INSTALL@,$ac_INSTALL,;t t
13279
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13280
  rm -f $tmp/stdin
13281
  if test x"$ac_file" != x-; then
13282
    mv $tmp/out $ac_file
13283
  else
13284
    cat $tmp/out
13285
    rm -f $tmp/out
13286
  fi
13287
 
13288
  # Run the commands associated with the file.
13289
  case $ac_file in
13290
    Makefile ) if test -n "$CONFIG_FILES"; then
13291
  unset ac_file
13292
  . ${newlib_basedir}/../config-ml.in
13293
fi ;;
13294
  esac
13295
done
13296
_ACEOF
13297
cat >>$CONFIG_STATUS <<\_ACEOF
13298
 
13299
#
13300
# CONFIG_HEADER section.
13301
#
13302
 
13303
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13304
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13305
#
13306
# ac_d sets the value in "#define NAME VALUE" lines.
13307
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13308
ac_dB='[         ].*$,\1#\2'
13309
ac_dC=' '
13310
ac_dD=',;t'
13311
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13312
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13313
ac_uB='$,\1#\2define\3'
13314
ac_uC=' '
13315
ac_uD=',;t'
13316
 
13317
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13318
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13319
  case $ac_file in
13320
  - | *:- | *:-:* ) # input from stdin
13321
        cat >$tmp/stdin
13322
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13323
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13324
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13325
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13326
  * )   ac_file_in=$ac_file.in ;;
13327
  esac
13328
 
13329
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13330
echo "$as_me: creating $ac_file" >&6;}
13331
 
13332
  # First look for the input files in the build tree, otherwise in the
13333
  # src tree.
13334
  ac_file_inputs=`IFS=:
13335
    for f in $ac_file_in; do
13336
      case $f in
13337
      -) echo $tmp/stdin ;;
13338
      [\\/$]*)
13339
         # Absolute (can't be DOS-style, as IFS=:)
13340
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13341
echo "$as_me: error: cannot find input file: $f" >&2;}
13342
   { (exit 1); exit 1; }; }
13343
         # Do quote $f, to prevent DOS paths from being IFS'd.
13344
         echo "$f";;
13345
      *) # Relative
13346
         if test -f "$f"; then
13347
           # Build tree
13348
           echo "$f"
13349
         elif test -f "$srcdir/$f"; then
13350
           # Source tree
13351
           echo "$srcdir/$f"
13352
         else
13353
           # /dev/null tree
13354
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13355
echo "$as_me: error: cannot find input file: $f" >&2;}
13356
   { (exit 1); exit 1; }; }
13357
         fi;;
13358
      esac
13359
    done` || { (exit 1); exit 1; }
13360
  # Remove the trailing spaces.
13361
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13362
 
13363
_ACEOF
13364
 
13365
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13366
# `conftest.undefs', that substitutes the proper values into
13367
# config.h.in to produce config.h.  The first handles `#define'
13368
# templates, and the second `#undef' templates.
13369
# And first: Protect against being on the right side of a sed subst in
13370
# config.status.  Protect against being in an unquoted here document
13371
# in config.status.
13372
rm -f conftest.defines conftest.undefs
13373
# Using a here document instead of a string reduces the quoting nightmare.
13374
# Putting comments in sed scripts is not portable.
13375
#
13376
# `end' is used to avoid that the second main sed command (meant for
13377
# 0-ary CPP macros) applies to n-ary macro definitions.
13378
# See the Autoconf documentation for `clear'.
13379
cat >confdef2sed.sed <<\_ACEOF
13380
s/[\\&,]/\\&/g
13381
s,[\\$`],\\&,g
13382
t clear
13383
: clear
13384
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13385
t end
13386
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13387
: end
13388
_ACEOF
13389
# If some macros were called several times there might be several times
13390
# the same #defines, which is useless.  Nevertheless, we may not want to
13391
# sort them, since we want the *last* AC-DEFINE to be honored.
13392
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13393
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13394
rm -f confdef2sed.sed
13395
 
13396
# This sed command replaces #undef with comments.  This is necessary, for
13397
# example, in the case of _POSIX_SOURCE, which is predefined and required
13398
# on some systems where configure will not decide to define it.
13399
cat >>conftest.undefs <<\_ACEOF
13400
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13401
_ACEOF
13402
 
13403
# Break up conftest.defines because some shells have a limit on the size
13404
# of here documents, and old seds have small limits too (100 cmds).
13405
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13406
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13407
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13408
echo '  :' >>$CONFIG_STATUS
13409
rm -f conftest.tail
13410
while grep . conftest.defines >/dev/null
13411
do
13412
  # Write a limited-size here document to $tmp/defines.sed.
13413
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
13414
  # Speed up: don't consider the non `#define' lines.
13415
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13416
  # Work around the forget-to-reset-the-flag bug.
13417
  echo 't clr' >>$CONFIG_STATUS
13418
  echo ': clr' >>$CONFIG_STATUS
13419
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13420
  echo 'CEOF
13421
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13422
  rm -f $tmp/in
13423
  mv $tmp/out $tmp/in
13424
' >>$CONFIG_STATUS
13425
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13426
  rm -f conftest.defines
13427
  mv conftest.tail conftest.defines
13428
done
13429
rm -f conftest.defines
13430
echo '  fi # grep' >>$CONFIG_STATUS
13431
echo >>$CONFIG_STATUS
13432
 
13433
# Break up conftest.undefs because some shells have a limit on the size
13434
# of here documents, and old seds have small limits too (100 cmds).
13435
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13436
rm -f conftest.tail
13437
while grep . conftest.undefs >/dev/null
13438
do
13439
  # Write a limited-size here document to $tmp/undefs.sed.
13440
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
13441
  # Speed up: don't consider the non `#undef'
13442
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13443
  # Work around the forget-to-reset-the-flag bug.
13444
  echo 't clr' >>$CONFIG_STATUS
13445
  echo ': clr' >>$CONFIG_STATUS
13446
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13447
  echo 'CEOF
13448
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13449
  rm -f $tmp/in
13450
  mv $tmp/out $tmp/in
13451
' >>$CONFIG_STATUS
13452
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13453
  rm -f conftest.undefs
13454
  mv conftest.tail conftest.undefs
13455
done
13456
rm -f conftest.undefs
13457
 
13458
cat >>$CONFIG_STATUS <<\_ACEOF
13459
  # Let's still pretend it is `configure' which instantiates (i.e., don't
13460
  # use $as_me), people would be surprised to read:
13461
  #    /* config.h.  Generated by config.status.  */
13462
  if test x"$ac_file" = x-; then
13463
    echo "/* Generated by configure.  */" >$tmp/config.h
13464
  else
13465
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13466
  fi
13467
  cat $tmp/in >>$tmp/config.h
13468
  rm -f $tmp/in
13469
  if test x"$ac_file" != x-; then
13470
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13471
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13472
echo "$as_me: $ac_file is unchanged" >&6;}
13473
    else
13474
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13475
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13476
         X"$ac_file" : 'X\(//\)[^/]' \| \
13477
         X"$ac_file" : 'X\(//\)$' \| \
13478
         X"$ac_file" : 'X\(/\)' \| \
13479
         .     : '\(.\)' 2>/dev/null ||
13480
echo X"$ac_file" |
13481
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13482
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13483
          /^X\(\/\/\)$/{ s//\1/; q; }
13484
          /^X\(\/\).*/{ s//\1/; q; }
13485
          s/.*/./; q'`
13486
      { if $as_mkdir_p; then
13487
    mkdir -p "$ac_dir"
13488
  else
13489
    as_dir="$ac_dir"
13490
    as_dirs=
13491
    while test ! -d "$as_dir"; do
13492
      as_dirs="$as_dir $as_dirs"
13493
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13494
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13495
         X"$as_dir" : 'X\(//\)[^/]' \| \
13496
         X"$as_dir" : 'X\(//\)$' \| \
13497
         X"$as_dir" : 'X\(/\)' \| \
13498
         .     : '\(.\)' 2>/dev/null ||
13499
echo X"$as_dir" |
13500
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13501
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13502
          /^X\(\/\/\)$/{ s//\1/; q; }
13503
          /^X\(\/\).*/{ s//\1/; q; }
13504
          s/.*/./; q'`
13505
    done
13506
    test ! -n "$as_dirs" || mkdir $as_dirs
13507
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13508
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13509
   { (exit 1); exit 1; }; }; }
13510
 
13511
      rm -f $ac_file
13512
      mv $tmp/config.h $ac_file
13513
    fi
13514
  else
13515
    cat $tmp/config.h
13516
    rm -f $tmp/config.h
13517
  fi
13518
# Compute $ac_file's index in $config_headers.
13519
_am_stamp_count=1
13520
for _am_header in $config_headers :; do
13521
  case $_am_header in
13522
    $ac_file | $ac_file:* )
13523
      break ;;
13524
    * )
13525
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13526
  esac
13527
done
13528
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13529
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13530
         X$ac_file : 'X\(//\)[^/]' \| \
13531
         X$ac_file : 'X\(//\)$' \| \
13532
         X$ac_file : 'X\(/\)' \| \
13533
         .     : '\(.\)' 2>/dev/null ||
13534
echo X$ac_file |
13535
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13536
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13537
          /^X\(\/\/\)$/{ s//\1/; q; }
13538
          /^X\(\/\).*/{ s//\1/; q; }
13539
          s/.*/./; q'`/stamp-h$_am_stamp_count
13540
done
13541
_ACEOF
13542
cat >>$CONFIG_STATUS <<\_ACEOF
13543
 
13544
#
13545
# CONFIG_COMMANDS section.
13546
#
13547
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13548
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13549
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13550
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13551
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552
         X"$ac_dest" : 'X\(//\)[^/]' \| \
13553
         X"$ac_dest" : 'X\(//\)$' \| \
13554
         X"$ac_dest" : 'X\(/\)' \| \
13555
         .     : '\(.\)' 2>/dev/null ||
13556
echo X"$ac_dest" |
13557
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559
          /^X\(\/\/\)$/{ s//\1/; q; }
13560
          /^X\(\/\).*/{ s//\1/; q; }
13561
          s/.*/./; q'`
13562
  { if $as_mkdir_p; then
13563
    mkdir -p "$ac_dir"
13564
  else
13565
    as_dir="$ac_dir"
13566
    as_dirs=
13567
    while test ! -d "$as_dir"; do
13568
      as_dirs="$as_dir $as_dirs"
13569
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13570
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13571
         X"$as_dir" : 'X\(//\)[^/]' \| \
13572
         X"$as_dir" : 'X\(//\)$' \| \
13573
         X"$as_dir" : 'X\(/\)' \| \
13574
         .     : '\(.\)' 2>/dev/null ||
13575
echo X"$as_dir" |
13576
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13577
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13578
          /^X\(\/\/\)$/{ s//\1/; q; }
13579
          /^X\(\/\).*/{ s//\1/; q; }
13580
          s/.*/./; q'`
13581
    done
13582
    test ! -n "$as_dirs" || mkdir $as_dirs
13583
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13584
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13585
   { (exit 1); exit 1; }; }; }
13586
 
13587
  ac_builddir=.
13588
 
13589
if test "$ac_dir" != .; then
13590
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13591
  # A "../" for each directory in $ac_dir_suffix.
13592
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13593
else
13594
  ac_dir_suffix= ac_top_builddir=
13595
fi
13596
 
13597
case $srcdir in
13598
  .)  # No --srcdir option.  We are building in place.
13599
    ac_srcdir=.
13600
    if test -z "$ac_top_builddir"; then
13601
       ac_top_srcdir=.
13602
    else
13603
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13604
    fi ;;
13605
  [\\/]* | ?:[\\/]* )  # Absolute path.
13606
    ac_srcdir=$srcdir$ac_dir_suffix;
13607
    ac_top_srcdir=$srcdir ;;
13608
  *) # Relative path.
13609
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13610
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13611
esac
13612
 
13613
# Do not use `cd foo && pwd` to compute absolute paths, because
13614
# the directories may not exist.
13615
case `pwd` in
13616
.) ac_abs_builddir="$ac_dir";;
13617
*)
13618
  case "$ac_dir" in
13619
  .) ac_abs_builddir=`pwd`;;
13620
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13621
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13622
  esac;;
13623
esac
13624
case $ac_abs_builddir in
13625
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13626
*)
13627
  case ${ac_top_builddir}. in
13628
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13629
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13630
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13631
  esac;;
13632
esac
13633
case $ac_abs_builddir in
13634
.) ac_abs_srcdir=$ac_srcdir;;
13635
*)
13636
  case $ac_srcdir in
13637
  .) ac_abs_srcdir=$ac_abs_builddir;;
13638
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13639
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13640
  esac;;
13641
esac
13642
case $ac_abs_builddir in
13643
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13644
*)
13645
  case $ac_top_srcdir in
13646
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13647
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13648
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13649
  esac;;
13650
esac
13651
 
13652
 
13653
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13654
echo "$as_me: executing $ac_dest commands" >&6;}
13655
  case $ac_dest in
13656
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13657
  # Strip MF so we end up with the name of the file.
13658
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13659
  # Check whether this is an Automake generated Makefile or not.
13660
  # We used to match only the files named `Makefile.in', but
13661
  # some people rename them; so instead we look at the file content.
13662
  # Grep'ing the first line is not enough: some people post-process
13663
  # each Makefile.in and add a new line on top of each file to say so.
13664
  # So let's grep whole file.
13665
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13666
    dirpart=`(dirname "$mf") 2>/dev/null ||
13667
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13668
         X"$mf" : 'X\(//\)[^/]' \| \
13669
         X"$mf" : 'X\(//\)$' \| \
13670
         X"$mf" : 'X\(/\)' \| \
13671
         .     : '\(.\)' 2>/dev/null ||
13672
echo X"$mf" |
13673
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13674
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13675
          /^X\(\/\/\)$/{ s//\1/; q; }
13676
          /^X\(\/\).*/{ s//\1/; q; }
13677
          s/.*/./; q'`
13678
  else
13679
    continue
13680
  fi
13681
  # Extract the definition of DEPDIR, am__include, and am__quote
13682
  # from the Makefile without running `make'.
13683
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13684
  test -z "$DEPDIR" && continue
13685
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13686
  test -z "am__include" && continue
13687
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13688
  # When using ansi2knr, U may be empty or an underscore; expand it
13689
  U=`sed -n 's/^U = //p' < "$mf"`
13690
  # Find all dependency output files, they are included files with
13691
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13692
  # simplest approach to changing $(DEPDIR) to its actual value in the
13693
  # expansion.
13694
  for file in `sed -n "
13695
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13696
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13697
    # Make sure the directory exists.
13698
    test -f "$dirpart/$file" && continue
13699
    fdir=`(dirname "$file") 2>/dev/null ||
13700
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13701
         X"$file" : 'X\(//\)[^/]' \| \
13702
         X"$file" : 'X\(//\)$' \| \
13703
         X"$file" : 'X\(/\)' \| \
13704
         .     : '\(.\)' 2>/dev/null ||
13705
echo X"$file" |
13706
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13707
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13708
          /^X\(\/\/\)$/{ s//\1/; q; }
13709
          /^X\(\/\).*/{ s//\1/; q; }
13710
          s/.*/./; q'`
13711
    { if $as_mkdir_p; then
13712
    mkdir -p $dirpart/$fdir
13713
  else
13714
    as_dir=$dirpart/$fdir
13715
    as_dirs=
13716
    while test ! -d "$as_dir"; do
13717
      as_dirs="$as_dir $as_dirs"
13718
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13719
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13720
         X"$as_dir" : 'X\(//\)[^/]' \| \
13721
         X"$as_dir" : 'X\(//\)$' \| \
13722
         X"$as_dir" : 'X\(/\)' \| \
13723
         .     : '\(.\)' 2>/dev/null ||
13724
echo X"$as_dir" |
13725
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13726
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13727
          /^X\(\/\/\)$/{ s//\1/; q; }
13728
          /^X\(\/\).*/{ s//\1/; q; }
13729
          s/.*/./; q'`
13730
    done
13731
    test ! -n "$as_dirs" || mkdir $as_dirs
13732
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13733
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13734
   { (exit 1); exit 1; }; }; }
13735
 
13736
    # echo "creating $dirpart/$file"
13737
    echo '# dummy' > "$dirpart/$file"
13738
  done
13739
done
13740
 ;;
13741
    libtool )
13742
 
13743
    # See if we are running on zsh, and set the options which allow our
13744
    # commands through without removal of \ escapes.
13745
    if test -n "${ZSH_VERSION+set}" ; then
13746
      setopt NO_GLOB_SUBST
13747
    fi
13748
 
13749
    cfgfile="${ofile}T"
13750
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13751
    $RM "$cfgfile"
13752
 
13753
    cat <<_LT_EOF >> "$cfgfile"
13754
#! $SHELL
13755
 
13756
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13757
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13758
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13759
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13760
#
13761
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13762
#                 2006, 2007, 2008 Free Software Foundation, Inc.
13763
#   Written by Gordon Matzigkeit, 1996
13764
#
13765
#   This file is part of GNU Libtool.
13766
#
13767
# GNU Libtool is free software; you can redistribute it and/or
13768
# modify it under the terms of the GNU General Public License as
13769
# published by the Free Software Foundation; either version 2 of
13770
# the License, or (at your option) any later version.
13771
#
13772
# As a special exception to the GNU General Public License,
13773
# if you distribute this file as part of a program or library that
13774
# is built using GNU Libtool, you may include this file under the
13775
# same distribution terms that you use for the rest of that program.
13776
#
13777
# GNU Libtool is distributed in the hope that it will be useful,
13778
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13779
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13780
# GNU General Public License for more details.
13781
#
13782
# You should have received a copy of the GNU General Public License
13783
# along with GNU Libtool; see the file COPYING.  If not, a copy
13784
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13785
# obtained by writing to the Free Software Foundation, Inc.,
13786
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13787
 
13788
 
13789
# The names of the tagged configurations supported by this script.
13790
available_tags=""
13791
 
13792
# ### BEGIN LIBTOOL CONFIG
13793
 
13794
# A sed program that does not truncate output.
13795
SED=$lt_SED
13796
 
13797
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13798
Xsed="\$SED -e 1s/^X//"
13799
 
13800
# Assembler program.
13801
AS=$AS
13802
 
13803
# DLL creation program.
13804
DLLTOOL=$DLLTOOL
13805
 
13806
# Object dumper program.
13807
OBJDUMP=$OBJDUMP
13808
 
13809
# Which release of libtool.m4 was used?
13810
macro_version=$macro_version
13811
macro_revision=$macro_revision
13812
 
13813
# Whether or not to build shared libraries.
13814
build_libtool_libs=$enable_shared
13815
 
13816
# Whether or not to build static libraries.
13817
build_old_libs=$enable_static
13818
 
13819
# What type of objects to build.
13820
pic_mode=$pic_mode
13821
 
13822
# Whether or not to optimize for fast installation.
13823
fast_install=$enable_fast_install
13824
 
13825
# The host system.
13826
host_alias=$host_alias
13827
host=$host
13828
host_os=$host_os
13829
 
13830
# The build system.
13831
build_alias=$build_alias
13832
build=$build
13833
build_os=$build_os
13834
 
13835
# A grep program that handles long lines.
13836
GREP=$lt_GREP
13837
 
13838
# An ERE matcher.
13839
EGREP=$lt_EGREP
13840
 
13841
# A literal string matcher.
13842
FGREP=$lt_FGREP
13843
 
13844
# A BSD- or MS-compatible name lister.
13845
NM=$lt_NM
13846
 
13847
# Whether we need soft or hard links.
13848
LN_S=$lt_LN_S
13849
 
13850
# What is the maximum length of a command?
13851
max_cmd_len=$max_cmd_len
13852
 
13853
# Object file suffix (normally "o").
13854
objext=$ac_objext
13855
 
13856
# Executable file suffix (normally "").
13857
exeext=$exeext
13858
 
13859
# whether the shell understands "unset".
13860
lt_unset=$lt_unset
13861
 
13862
# turn spaces into newlines.
13863
SP2NL=$lt_lt_SP2NL
13864
 
13865
# turn newlines into spaces.
13866
NL2SP=$lt_lt_NL2SP
13867
 
13868
# How to create reloadable object files.
13869
reload_flag=$lt_reload_flag
13870
reload_cmds=$lt_reload_cmds
13871
 
13872
# Method to check whether dependent libraries are shared objects.
13873
deplibs_check_method=$lt_deplibs_check_method
13874
 
13875
# Command to use when deplibs_check_method == "file_magic".
13876
file_magic_cmd=$lt_file_magic_cmd
13877
 
13878
# The archiver.
13879
AR=$lt_AR
13880
AR_FLAGS=$lt_AR_FLAGS
13881
 
13882
# A symbol stripping program.
13883
STRIP=$lt_STRIP
13884
 
13885
# Commands used to install an old-style archive.
13886
RANLIB=$lt_RANLIB
13887
old_postinstall_cmds=$lt_old_postinstall_cmds
13888
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13889
 
13890
# A C compiler.
13891
LTCC=$lt_CC
13892
 
13893
# LTCC compiler flags.
13894
LTCFLAGS=$lt_CFLAGS
13895
 
13896
# Take the output of nm and produce a listing of raw symbols and C names.
13897
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13898
 
13899
# Transform the output of nm in a proper C declaration.
13900
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13901
 
13902
# Transform the output of nm in a C name address pair.
13903
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13904
 
13905
# Transform the output of nm in a C name address pair when lib prefix is needed.
13906
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13907
 
13908
# The name of the directory that contains temporary libtool files.
13909
objdir=$objdir
13910
 
13911
# Shell to use when invoking shell scripts.
13912
SHELL=$lt_SHELL
13913
 
13914
# An echo program that does not interpret backslashes.
13915
ECHO=$lt_ECHO
13916
 
13917
# Used to examine libraries when file_magic_cmd begins with "file".
13918
MAGIC_CMD=$MAGIC_CMD
13919
 
13920
# Must we lock files when doing compilation?
13921
need_locks=$lt_need_locks
13922
 
13923
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13924
DSYMUTIL=$lt_DSYMUTIL
13925
 
13926
# Tool to change global to local symbols on Mac OS X.
13927
NMEDIT=$lt_NMEDIT
13928
 
13929
# Tool to manipulate fat objects and archives on Mac OS X.
13930
LIPO=$lt_LIPO
13931
 
13932
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13933
OTOOL=$lt_OTOOL
13934
 
13935
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13936
OTOOL64=$lt_OTOOL64
13937
 
13938
# Old archive suffix (normally "a").
13939
libext=$libext
13940
 
13941
# Shared library suffix (normally ".so").
13942
shrext_cmds=$lt_shrext_cmds
13943
 
13944
# The commands to extract the exported symbol list from a shared archive.
13945
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13946
 
13947
# Variables whose values should be saved in libtool wrapper scripts and
13948
# restored at link time.
13949
variables_saved_for_relink=$lt_variables_saved_for_relink
13950
 
13951
# Do we need the "lib" prefix for modules?
13952
need_lib_prefix=$need_lib_prefix
13953
 
13954
# Do we need a version for libraries?
13955
need_version=$need_version
13956
 
13957
# Library versioning type.
13958
version_type=$version_type
13959
 
13960
# Shared library runtime path variable.
13961
runpath_var=$runpath_var
13962
 
13963
# Shared library path variable.
13964
shlibpath_var=$shlibpath_var
13965
 
13966
# Is shlibpath searched before the hard-coded library search path?
13967
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13968
 
13969
# Format of library name prefix.
13970
libname_spec=$lt_libname_spec
13971
 
13972
# List of archive names.  First name is the real one, the rest are links.
13973
# The last name is the one that the linker finds with -lNAME
13974
library_names_spec=$lt_library_names_spec
13975
 
13976
# The coded name of the library, if different from the real name.
13977
soname_spec=$lt_soname_spec
13978
 
13979
# Command to use after installation of a shared archive.
13980
postinstall_cmds=$lt_postinstall_cmds
13981
 
13982
# Command to use after uninstallation of a shared archive.
13983
postuninstall_cmds=$lt_postuninstall_cmds
13984
 
13985
# Commands used to finish a libtool library installation in a directory.
13986
finish_cmds=$lt_finish_cmds
13987
 
13988
# As "finish_cmds", except a single script fragment to be evaled but
13989
# not shown.
13990
finish_eval=$lt_finish_eval
13991
 
13992
# Whether we should hardcode library paths into libraries.
13993
hardcode_into_libs=$hardcode_into_libs
13994
 
13995
# Compile-time system search path for libraries.
13996
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13997
 
13998
# Run-time system search path for libraries.
13999
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14000
 
14001
# Whether dlopen is supported.
14002
dlopen_support=$enable_dlopen
14003
 
14004
# Whether dlopen of programs is supported.
14005
dlopen_self=$enable_dlopen_self
14006
 
14007
# Whether dlopen of statically linked programs is supported.
14008
dlopen_self_static=$enable_dlopen_self_static
14009
 
14010
# Commands to strip libraries.
14011
old_striplib=$lt_old_striplib
14012
striplib=$lt_striplib
14013
 
14014
 
14015
# The linker used to build libraries.
14016
LD=$lt_LD
14017
 
14018
# Commands used to build an old-style archive.
14019
old_archive_cmds=$lt_old_archive_cmds
14020
 
14021
# A language specific compiler.
14022
CC=$lt_compiler
14023
 
14024
# Is the compiler the GNU compiler?
14025
with_gcc=$GCC
14026
 
14027
# Compiler flag to turn off builtin functions.
14028
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14029
 
14030
# How to pass a linker flag through the compiler.
14031
wl=$lt_lt_prog_compiler_wl
14032
 
14033
# Additional compiler flags for building library objects.
14034
pic_flag=$lt_lt_prog_compiler_pic
14035
 
14036
# Compiler flag to prevent dynamic linking.
14037
link_static_flag=$lt_lt_prog_compiler_static
14038
 
14039
# Does compiler simultaneously support -c and -o options?
14040
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14041
 
14042
# Whether or not to add -lc for building shared libraries.
14043
build_libtool_need_lc=$archive_cmds_need_lc
14044
 
14045
# Whether or not to disallow shared libs when runtime libs are static.
14046
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14047
 
14048
# Compiler flag to allow reflexive dlopens.
14049
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14050
 
14051
# Compiler flag to generate shared objects directly from archives.
14052
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14053
 
14054
# Whether the compiler copes with passing no objects directly.
14055
compiler_needs_object=$lt_compiler_needs_object
14056
 
14057
# Create an old-style archive from a shared archive.
14058
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14059
 
14060
# Create a temporary old-style archive to link instead of a shared archive.
14061
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14062
 
14063
# Commands used to build a shared archive.
14064
archive_cmds=$lt_archive_cmds
14065
archive_expsym_cmds=$lt_archive_expsym_cmds
14066
 
14067
# Commands used to build a loadable module if different from building
14068
# a shared archive.
14069
module_cmds=$lt_module_cmds
14070
module_expsym_cmds=$lt_module_expsym_cmds
14071
 
14072
# Whether we are building with GNU ld or not.
14073
with_gnu_ld=$lt_with_gnu_ld
14074
 
14075
# Flag that allows shared libraries with undefined symbols to be built.
14076
allow_undefined_flag=$lt_allow_undefined_flag
14077
 
14078
# Flag that enforces no undefined symbols.
14079
no_undefined_flag=$lt_no_undefined_flag
14080
 
14081
# Flag to hardcode \$libdir into a binary during linking.
14082
# This must work even if \$libdir does not exist
14083
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14084
 
14085
# If ld is used when linking, flag to hardcode \$libdir into a binary
14086
# during linking.  This must work even if \$libdir does not exist.
14087
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14088
 
14089
# Whether we need a single "-rpath" flag with a separated argument.
14090
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14091
 
14092
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14093
# DIR into the resulting binary.
14094
hardcode_direct=$hardcode_direct
14095
 
14096
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14097
# DIR into the resulting binary and the resulting library dependency is
14098
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14099
# library is relocated.
14100
hardcode_direct_absolute=$hardcode_direct_absolute
14101
 
14102
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14103
# into the resulting binary.
14104
hardcode_minus_L=$hardcode_minus_L
14105
 
14106
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14107
# into the resulting binary.
14108
hardcode_shlibpath_var=$hardcode_shlibpath_var
14109
 
14110
# Set to "yes" if building a shared library automatically hardcodes DIR
14111
# into the library and all subsequent libraries and executables linked
14112
# against it.
14113
hardcode_automatic=$hardcode_automatic
14114
 
14115
# Set to yes if linker adds runtime paths of dependent libraries
14116
# to runtime path list.
14117
inherit_rpath=$inherit_rpath
14118
 
14119
# Whether libtool must link a program against all its dependency libraries.
14120
link_all_deplibs=$link_all_deplibs
14121
 
14122
# Fix the shell variable \$srcfile for the compiler.
14123
fix_srcfile_path=$lt_fix_srcfile_path
14124
 
14125
# Set to "yes" if exported symbols are required.
14126
always_export_symbols=$always_export_symbols
14127
 
14128
# The commands to list exported symbols.
14129
export_symbols_cmds=$lt_export_symbols_cmds
14130
 
14131
# Symbols that should not be listed in the preloaded symbols.
14132
exclude_expsyms=$lt_exclude_expsyms
14133
 
14134
# Symbols that must always be exported.
14135
include_expsyms=$lt_include_expsyms
14136
 
14137
# Commands necessary for linking programs (against libraries) with templates.
14138
prelink_cmds=$lt_prelink_cmds
14139
 
14140
# Specify filename containing input files.
14141
file_list_spec=$lt_file_list_spec
14142
 
14143
# How to hardcode a shared library path into an executable.
14144
hardcode_action=$hardcode_action
14145
 
14146
# ### END LIBTOOL CONFIG
14147
 
14148
_LT_EOF
14149
 
14150
  case $host_os in
14151
  aix3*)
14152
    cat <<\_LT_EOF >> "$cfgfile"
14153
# AIX sometimes has problems with the GCC collect2 program.  For some
14154
# reason, if we set the COLLECT_NAMES environment variable, the problems
14155
# vanish in a puff of smoke.
14156
if test "X${COLLECT_NAMES+set}" != Xset; then
14157
  COLLECT_NAMES=
14158
  export COLLECT_NAMES
14159
fi
14160
_LT_EOF
14161
    ;;
14162
  esac
14163
 
14164
 
14165
ltmain="$ac_aux_dir/ltmain.sh"
14166
 
14167
 
14168
  # We use sed instead of cat because bash on DJGPP gets confused if
14169
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14170
  # text mode, it properly converts lines to CR/LF.  This bash problem
14171
  # is reportedly fixed, but why not run on old versions too?
14172
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14173
    || (rm -f "$cfgfile"; exit 1)
14174
 
14175
  case $xsi_shell in
14176
  yes)
14177
    cat << \_LT_EOF >> "$cfgfile"
14178
 
14179
# func_dirname file append nondir_replacement
14180
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14181
# otherwise set result to NONDIR_REPLACEMENT.
14182
func_dirname ()
14183
{
14184
  case ${1} in
14185
    */*) func_dirname_result="${1%/*}${2}" ;;
14186
    *  ) func_dirname_result="${3}" ;;
14187
  esac
14188
}
14189
 
14190
# func_basename file
14191
func_basename ()
14192
{
14193
  func_basename_result="${1##*/}"
14194
}
14195
 
14196
# func_dirname_and_basename file append nondir_replacement
14197
# perform func_basename and func_dirname in a single function
14198
# call:
14199
#   dirname:  Compute the dirname of FILE.  If nonempty,
14200
#             add APPEND to the result, otherwise set result
14201
#             to NONDIR_REPLACEMENT.
14202
#             value returned in "$func_dirname_result"
14203
#   basename: Compute filename of FILE.
14204
#             value retuned in "$func_basename_result"
14205
# Implementation must be kept synchronized with func_dirname
14206
# and func_basename. For efficiency, we do not delegate to
14207
# those functions but instead duplicate the functionality here.
14208
func_dirname_and_basename ()
14209
{
14210
  case ${1} in
14211
    */*) func_dirname_result="${1%/*}${2}" ;;
14212
    *  ) func_dirname_result="${3}" ;;
14213
  esac
14214
  func_basename_result="${1##*/}"
14215
}
14216
 
14217
# func_stripname prefix suffix name
14218
# strip PREFIX and SUFFIX off of NAME.
14219
# PREFIX and SUFFIX must not contain globbing or regex special
14220
# characters, hashes, percent signs, but SUFFIX may contain a leading
14221
# dot (in which case that matches only a dot).
14222
func_stripname ()
14223
{
14224
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14225
  # positional parameters, so assign one to ordinary parameter first.
14226
  func_stripname_result=${3}
14227
  func_stripname_result=${func_stripname_result#"${1}"}
14228
  func_stripname_result=${func_stripname_result%"${2}"}
14229
}
14230
 
14231
# func_opt_split
14232
func_opt_split ()
14233
{
14234
  func_opt_split_opt=${1%%=*}
14235
  func_opt_split_arg=${1#*=}
14236
}
14237
 
14238
# func_lo2o object
14239
func_lo2o ()
14240
{
14241
  case ${1} in
14242
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14243
    *)    func_lo2o_result=${1} ;;
14244
  esac
14245
}
14246
 
14247
# func_xform libobj-or-source
14248
func_xform ()
14249
{
14250
  func_xform_result=${1%.*}.lo
14251
}
14252
 
14253
# func_arith arithmetic-term...
14254
func_arith ()
14255
{
14256
  func_arith_result=$(( $* ))
14257
}
14258
 
14259
# func_len string
14260
# STRING may not start with a hyphen.
14261
func_len ()
14262
{
14263
  func_len_result=${#1}
14264
}
14265
 
14266
_LT_EOF
14267
    ;;
14268
  *) # Bourne compatible functions.
14269
    cat << \_LT_EOF >> "$cfgfile"
14270
 
14271
# func_dirname file append nondir_replacement
14272
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14273
# otherwise set result to NONDIR_REPLACEMENT.
14274
func_dirname ()
14275
{
14276
  # Extract subdirectory from the argument.
14277
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14278
  if test "X$func_dirname_result" = "X${1}"; then
14279
    func_dirname_result="${3}"
14280
  else
14281
    func_dirname_result="$func_dirname_result${2}"
14282
  fi
14283
}
14284
 
14285
# func_basename file
14286
func_basename ()
14287
{
14288
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14289
}
14290
 
14291
 
14292
# func_stripname prefix suffix name
14293
# strip PREFIX and SUFFIX off of NAME.
14294
# PREFIX and SUFFIX must not contain globbing or regex special
14295
# characters, hashes, percent signs, but SUFFIX may contain a leading
14296
# dot (in which case that matches only a dot).
14297
# func_strip_suffix prefix name
14298
func_stripname ()
14299
{
14300
  case ${2} in
14301
    .*) func_stripname_result=`$ECHO "X${3}" \
14302
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14303
    *)  func_stripname_result=`$ECHO "X${3}" \
14304
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14305
  esac
14306
}
14307
 
14308
# sed scripts:
14309
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14310
my_sed_long_arg='1s/^-[^=]*=//'
14311
 
14312
# func_opt_split
14313
func_opt_split ()
14314
{
14315
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14316
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14317
}
14318
 
14319
# func_lo2o object
14320
func_lo2o ()
14321
{
14322
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14323
}
14324
 
14325
# func_xform libobj-or-source
14326
func_xform ()
14327
{
14328
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14329
}
14330
 
14331
# func_arith arithmetic-term...
14332
func_arith ()
14333
{
14334
  func_arith_result=`expr "$@"`
14335
}
14336
 
14337
# func_len string
14338
# STRING may not start with a hyphen.
14339
func_len ()
14340
{
14341
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14342
}
14343
 
14344
_LT_EOF
14345
esac
14346
 
14347
case $lt_shell_append in
14348
  yes)
14349
    cat << \_LT_EOF >> "$cfgfile"
14350
 
14351
# func_append var value
14352
# Append VALUE to the end of shell variable VAR.
14353
func_append ()
14354
{
14355
  eval "$1+=\$2"
14356
}
14357
_LT_EOF
14358
    ;;
14359
  *)
14360
    cat << \_LT_EOF >> "$cfgfile"
14361
 
14362
# func_append var value
14363
# Append VALUE to the end of shell variable VAR.
14364
func_append ()
14365
{
14366
  eval "$1=\$$1\$2"
14367
}
14368
 
14369
_LT_EOF
14370
    ;;
14371
  esac
14372
 
14373
 
14374
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14375
    || (rm -f "$cfgfile"; exit 1)
14376
 
14377
  mv -f "$cfgfile" "$ofile" ||
14378
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14379
  chmod +x "$ofile"
14380
 
14381
 ;;
14382
  esac
14383
done
14384
_ACEOF
14385
 
14386
cat >>$CONFIG_STATUS <<\_ACEOF
14387
 
14388
{ (exit 0); exit 0; }
14389
_ACEOF
14390
chmod +x $CONFIG_STATUS
14391
ac_clean_files=$ac_clean_files_save
14392
 
14393
 
14394
# configure is writing to config.log, and then calls config.status.
14395
# config.status does its own redirection, appending to config.log.
14396
# Unfortunately, on DOS this fails, as config.log is still kept open
14397
# by configure, so config.status won't be able to write to it; its
14398
# output is simply discarded.  So we exec the FD to /dev/null,
14399
# effectively closing config.log, so it can be properly (re)opened and
14400
# appended to by config.status.  When coming back to configure, we
14401
# need to make the FD available again.
14402
if test "$no_create" != yes; then
14403
  ac_cs_success=:
14404
  ac_config_status_args=
14405
  test "$silent" = yes &&
14406
    ac_config_status_args="$ac_config_status_args --quiet"
14407
  exec 5>/dev/null
14408
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14409
  exec 5>>config.log
14410
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14411
  # would make configure fail if this is the last instruction.
14412
  $ac_cs_success || { (exit 1); exit 1; }
14413
fi
14414
 
14415
#
14416
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
14417
#
14418
if test "$no_recursion" != yes; then
14419
 
14420
  # Remove --cache-file and --srcdir arguments so they do not pile up.
14421
  ac_sub_configure_args=
14422
  ac_prev=
14423
  eval "set x $ac_configure_args"
14424
  shift
14425
  for ac_arg
14426
  do
14427
    if test -n "$ac_prev"; then
14428
      ac_prev=
14429
      continue
14430
    fi
14431
    case $ac_arg in
14432
    -cache-file | --cache-file | --cache-fil | --cache-fi \
14433
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14434
      ac_prev=cache_file ;;
14435
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14436
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14437
    | --c=*)
14438
      ;;
14439
    --config-cache | -C)
14440
      ;;
14441
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14442
      ac_prev=srcdir ;;
14443
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14444
      ;;
14445
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14446
      ac_prev=prefix ;;
14447
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14448
      ;;
14449
    *)
14450
      case $ac_arg in
14451
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14452
      esac
14453
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
14454
    esac
14455
  done
14456
 
14457
  # Always prepend --prefix to ensure using the same prefix
14458
  # in subdir configurations.
14459
  ac_arg="--prefix=$prefix"
14460
  case $ac_arg in
14461
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14462
  esac
14463
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
14464
 
14465
  ac_popdir=`pwd`
14466
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14467
 
14468
    # Do not complain, so a configure script can configure whichever
14469
    # parts of a large source tree are present.
14470
    test -d "$srcdir/$ac_dir" || continue
14471
 
14472
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
14473
echo "$as_me: configuring in $ac_dir" >&6;}
14474
    { if $as_mkdir_p; then
14475
    mkdir -p "$ac_dir"
14476
  else
14477
    as_dir="$ac_dir"
14478
    as_dirs=
14479
    while test ! -d "$as_dir"; do
14480
      as_dirs="$as_dir $as_dirs"
14481
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14482
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483
         X"$as_dir" : 'X\(//\)[^/]' \| \
14484
         X"$as_dir" : 'X\(//\)$' \| \
14485
         X"$as_dir" : 'X\(/\)' \| \
14486
         .     : '\(.\)' 2>/dev/null ||
14487
echo X"$as_dir" |
14488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14489
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14490
          /^X\(\/\/\)$/{ s//\1/; q; }
14491
          /^X\(\/\).*/{ s//\1/; q; }
14492
          s/.*/./; q'`
14493
    done
14494
    test ! -n "$as_dirs" || mkdir $as_dirs
14495
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14496
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14497
   { (exit 1); exit 1; }; }; }
14498
 
14499
    ac_builddir=.
14500
 
14501
if test "$ac_dir" != .; then
14502
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14503
  # A "../" for each directory in $ac_dir_suffix.
14504
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14505
else
14506
  ac_dir_suffix= ac_top_builddir=
14507
fi
14508
 
14509
case $srcdir in
14510
  .)  # No --srcdir option.  We are building in place.
14511
    ac_srcdir=.
14512
    if test -z "$ac_top_builddir"; then
14513
       ac_top_srcdir=.
14514
    else
14515
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14516
    fi ;;
14517
  [\\/]* | ?:[\\/]* )  # Absolute path.
14518
    ac_srcdir=$srcdir$ac_dir_suffix;
14519
    ac_top_srcdir=$srcdir ;;
14520
  *) # Relative path.
14521
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14522
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14523
esac
14524
 
14525
# Do not use `cd foo && pwd` to compute absolute paths, because
14526
# the directories may not exist.
14527
case `pwd` in
14528
.) ac_abs_builddir="$ac_dir";;
14529
*)
14530
  case "$ac_dir" in
14531
  .) ac_abs_builddir=`pwd`;;
14532
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14533
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14534
  esac;;
14535
esac
14536
case $ac_abs_builddir in
14537
.) ac_abs_top_builddir=${ac_top_builddir}.;;
14538
*)
14539
  case ${ac_top_builddir}. in
14540
  .) ac_abs_top_builddir=$ac_abs_builddir;;
14541
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14542
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14543
  esac;;
14544
esac
14545
case $ac_abs_builddir in
14546
.) ac_abs_srcdir=$ac_srcdir;;
14547
*)
14548
  case $ac_srcdir in
14549
  .) ac_abs_srcdir=$ac_abs_builddir;;
14550
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14551
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14552
  esac;;
14553
esac
14554
case $ac_abs_builddir in
14555
.) ac_abs_top_srcdir=$ac_top_srcdir;;
14556
*)
14557
  case $ac_top_srcdir in
14558
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14559
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14560
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14561
  esac;;
14562
esac
14563
 
14564
 
14565
    cd "$ac_dir"
14566
 
14567
    # Check for guested configure; otherwise get Cygnus style configure.
14568
    if test -f "$ac_srcdir/configure.gnu"; then
14569
      ac_sub_configure=$ac_srcdir/configure.gnu
14570
    elif test -f "$ac_srcdir/configure"; then
14571
      ac_sub_configure=$ac_srcdir/configure
14572
    elif test -f "$ac_srcdir/configure.in"; then
14573
      # This should be Cygnus configure.
14574
      ac_sub_configure=$ac_aux_dir/configure
14575
    else
14576
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
14577
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14578
      ac_sub_configure=
14579
    fi
14580
 
14581
    # The recursion is here.
14582
    if test -n "$ac_sub_configure"; then
14583
      # Make the cache file name correct relative to the subdirectory.
14584
      case $cache_file in
14585
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14586
      *) # Relative path.
14587
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
14588
      esac
14589
 
14590
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14591
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14592
      # The eval makes quoting arguments work.
14593
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14594
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14595
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14596
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14597
   { (exit 1); exit 1; }; }
14598
    fi
14599
 
14600
    cd "$ac_popdir"
14601
  done
14602
fi
14603
 

powered by: WebSVN 2.1.0

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