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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [configure] - Blame information for rev 194

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="a29khif"
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 a29khif"
462
ac_subdirs_all="$ac_subdirs_all arc"
463
ac_subdirs_all="$ac_subdirs_all arm"
464
ac_subdirs_all="$ac_subdirs_all d10v"
465
ac_subdirs_all="$ac_subdirs_all decstation"
466
ac_subdirs_all="$ac_subdirs_all h8300hms"
467
ac_subdirs_all="$ac_subdirs_all h8500hms"
468
ac_subdirs_all="$ac_subdirs_all linux"
469
ac_subdirs_all="$ac_subdirs_all m88kbug"
470
ac_subdirs_all="$ac_subdirs_all mmixware"
471
ac_subdirs_all="$ac_subdirs_all netware"
472
ac_subdirs_all="$ac_subdirs_all rdos"
473
ac_subdirs_all="$ac_subdirs_all rtems"
474
ac_subdirs_all="$ac_subdirs_all sh"
475
ac_subdirs_all="$ac_subdirs_all sparc64"
476
ac_subdirs_all="$ac_subdirs_all sun4"
477
ac_subdirs_all="$ac_subdirs_all sysmec"
478
ac_subdirs_all="$ac_subdirs_all sysnec810"
479
ac_subdirs_all="$ac_subdirs_all sysnecv850"
480
ac_subdirs_all="$ac_subdirs_all sysvi386"
481
ac_subdirs_all="$ac_subdirs_all sysvnecv70"
482
ac_subdirs_all="$ac_subdirs_all tic80"
483
ac_subdirs_all="$ac_subdirs_all w65"
484
ac_subdirs_all="$ac_subdirs_all z8ksim"
485
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP subdirs CRT0 HAVE_SYS_DIR_TRUE HAVE_SYS_DIR_FALSE LIBOBJS LTLIBOBJS'
486
ac_subst_files=''
487
 
488
# Initialize some variables set by options.
489
ac_init_help=
490
ac_init_version=false
491
# The variables have the same names as the options, with
492
# dashes changed to underlines.
493
cache_file=/dev/null
494
exec_prefix=NONE
495
no_create=
496
no_recursion=
497
prefix=NONE
498
program_prefix=NONE
499
program_suffix=NONE
500
program_transform_name=s,x,x,
501
silent=
502
site=
503
srcdir=
504
verbose=
505
x_includes=NONE
506
x_libraries=NONE
507
 
508
# Installation directory options.
509
# These are left unexpanded so users can "make install exec_prefix=/foo"
510
# and all the variables that are supposed to be based on exec_prefix
511
# by default will actually change.
512
# Use braces instead of parens because sh, perl, etc. also accept them.
513
bindir='${exec_prefix}/bin'
514
sbindir='${exec_prefix}/sbin'
515
libexecdir='${exec_prefix}/libexec'
516
datadir='${prefix}/share'
517
sysconfdir='${prefix}/etc'
518
sharedstatedir='${prefix}/com'
519
localstatedir='${prefix}/var'
520
libdir='${exec_prefix}/lib'
521
includedir='${prefix}/include'
522
oldincludedir='/usr/include'
523
infodir='${prefix}/info'
524
mandir='${prefix}/man'
525
 
526
ac_prev=
527
for ac_option
528
do
529
  # If the previous option needs an argument, assign it.
530
  if test -n "$ac_prev"; then
531
    eval "$ac_prev=\$ac_option"
532
    ac_prev=
533
    continue
534
  fi
535
 
536
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
537
 
538
  # Accept the important Cygnus configure options, so we can diagnose typos.
539
 
540
  case $ac_option in
541
 
542
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
543
    ac_prev=bindir ;;
544
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
545
    bindir=$ac_optarg ;;
546
 
547
  -build | --build | --buil | --bui | --bu)
548
    ac_prev=build_alias ;;
549
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
550
    build_alias=$ac_optarg ;;
551
 
552
  -cache-file | --cache-file | --cache-fil | --cache-fi \
553
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
554
    ac_prev=cache_file ;;
555
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
556
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
557
    cache_file=$ac_optarg ;;
558
 
559
  --config-cache | -C)
560
    cache_file=config.cache ;;
561
 
562
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
563
    ac_prev=datadir ;;
564
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
565
  | --da=*)
566
    datadir=$ac_optarg ;;
567
 
568
  -disable-* | --disable-*)
569
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
570
    # Reject names that are not valid shell variable names.
571
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573
   { (exit 1); exit 1; }; }
574
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575
    eval "enable_$ac_feature=no" ;;
576
 
577
  -enable-* | --enable-*)
578
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
579
    # Reject names that are not valid shell variable names.
580
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
581
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
582
   { (exit 1); exit 1; }; }
583
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
584
    case $ac_option in
585
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
586
      *) ac_optarg=yes ;;
587
    esac
588
    eval "enable_$ac_feature='$ac_optarg'" ;;
589
 
590
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
591
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
592
  | --exec | --exe | --ex)
593
    ac_prev=exec_prefix ;;
594
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
595
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
596
  | --exec=* | --exe=* | --ex=*)
597
    exec_prefix=$ac_optarg ;;
598
 
599
  -gas | --gas | --ga | --g)
600
    # Obsolete; use --with-gas.
601
    with_gas=yes ;;
602
 
603
  -help | --help | --hel | --he | -h)
604
    ac_init_help=long ;;
605
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
606
    ac_init_help=recursive ;;
607
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
608
    ac_init_help=short ;;
609
 
610
  -host | --host | --hos | --ho)
611
    ac_prev=host_alias ;;
612
  -host=* | --host=* | --hos=* | --ho=*)
613
    host_alias=$ac_optarg ;;
614
 
615
  -includedir | --includedir | --includedi | --included | --include \
616
  | --includ | --inclu | --incl | --inc)
617
    ac_prev=includedir ;;
618
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
619
  | --includ=* | --inclu=* | --incl=* | --inc=*)
620
    includedir=$ac_optarg ;;
621
 
622
  -infodir | --infodir | --infodi | --infod | --info | --inf)
623
    ac_prev=infodir ;;
624
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
625
    infodir=$ac_optarg ;;
626
 
627
  -libdir | --libdir | --libdi | --libd)
628
    ac_prev=libdir ;;
629
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
630
    libdir=$ac_optarg ;;
631
 
632
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
633
  | --libexe | --libex | --libe)
634
    ac_prev=libexecdir ;;
635
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
636
  | --libexe=* | --libex=* | --libe=*)
637
    libexecdir=$ac_optarg ;;
638
 
639
  -localstatedir | --localstatedir | --localstatedi | --localstated \
640
  | --localstate | --localstat | --localsta | --localst \
641
  | --locals | --local | --loca | --loc | --lo)
642
    ac_prev=localstatedir ;;
643
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
644
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
645
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
646
    localstatedir=$ac_optarg ;;
647
 
648
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
649
    ac_prev=mandir ;;
650
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
651
    mandir=$ac_optarg ;;
652
 
653
  -nfp | --nfp | --nf)
654
    # Obsolete; use --without-fp.
655
    with_fp=no ;;
656
 
657
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
658
  | --no-cr | --no-c | -n)
659
    no_create=yes ;;
660
 
661
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
662
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
663
    no_recursion=yes ;;
664
 
665
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
666
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
667
  | --oldin | --oldi | --old | --ol | --o)
668
    ac_prev=oldincludedir ;;
669
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
670
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
671
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
672
    oldincludedir=$ac_optarg ;;
673
 
674
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
675
    ac_prev=prefix ;;
676
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
677
    prefix=$ac_optarg ;;
678
 
679
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
680
  | --program-pre | --program-pr | --program-p)
681
    ac_prev=program_prefix ;;
682
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
683
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
684
    program_prefix=$ac_optarg ;;
685
 
686
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
687
  | --program-suf | --program-su | --program-s)
688
    ac_prev=program_suffix ;;
689
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
690
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
691
    program_suffix=$ac_optarg ;;
692
 
693
  -program-transform-name | --program-transform-name \
694
  | --program-transform-nam | --program-transform-na \
695
  | --program-transform-n | --program-transform- \
696
  | --program-transform | --program-transfor \
697
  | --program-transfo | --program-transf \
698
  | --program-trans | --program-tran \
699
  | --progr-tra | --program-tr | --program-t)
700
    ac_prev=program_transform_name ;;
701
  -program-transform-name=* | --program-transform-name=* \
702
  | --program-transform-nam=* | --program-transform-na=* \
703
  | --program-transform-n=* | --program-transform-=* \
704
  | --program-transform=* | --program-transfor=* \
705
  | --program-transfo=* | --program-transf=* \
706
  | --program-trans=* | --program-tran=* \
707
  | --progr-tra=* | --program-tr=* | --program-t=*)
708
    program_transform_name=$ac_optarg ;;
709
 
710
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
711
  | -silent | --silent | --silen | --sile | --sil)
712
    silent=yes ;;
713
 
714
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
715
    ac_prev=sbindir ;;
716
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
717
  | --sbi=* | --sb=*)
718
    sbindir=$ac_optarg ;;
719
 
720
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
721
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
722
  | --sharedst | --shareds | --shared | --share | --shar \
723
  | --sha | --sh)
724
    ac_prev=sharedstatedir ;;
725
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
726
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
727
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
728
  | --sha=* | --sh=*)
729
    sharedstatedir=$ac_optarg ;;
730
 
731
  -site | --site | --sit)
732
    ac_prev=site ;;
733
  -site=* | --site=* | --sit=*)
734
    site=$ac_optarg ;;
735
 
736
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
737
    ac_prev=srcdir ;;
738
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
739
    srcdir=$ac_optarg ;;
740
 
741
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
742
  | --syscon | --sysco | --sysc | --sys | --sy)
743
    ac_prev=sysconfdir ;;
744
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
745
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
746
    sysconfdir=$ac_optarg ;;
747
 
748
  -target | --target | --targe | --targ | --tar | --ta | --t)
749
    ac_prev=target_alias ;;
750
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
751
    target_alias=$ac_optarg ;;
752
 
753
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
754
    verbose=yes ;;
755
 
756
  -version | --version | --versio | --versi | --vers | -V)
757
    ac_init_version=: ;;
758
 
759
  -with-* | --with-*)
760
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
761
    # Reject names that are not valid shell variable names.
762
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763
      { echo "$as_me: error: invalid package name: $ac_package" >&2
764
   { (exit 1); exit 1; }; }
765
    ac_package=`echo $ac_package| sed 's/-/_/g'`
766
    case $ac_option in
767
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
768
      *) ac_optarg=yes ;;
769
    esac
770
    eval "with_$ac_package='$ac_optarg'" ;;
771
 
772
  -without-* | --without-*)
773
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
774
    # Reject names that are not valid shell variable names.
775
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
776
      { echo "$as_me: error: invalid package name: $ac_package" >&2
777
   { (exit 1); exit 1; }; }
778
    ac_package=`echo $ac_package | sed 's/-/_/g'`
779
    eval "with_$ac_package=no" ;;
780
 
781
  --x)
782
    # Obsolete; use --with-x.
783
    with_x=yes ;;
784
 
785
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
786
  | --x-incl | --x-inc | --x-in | --x-i)
787
    ac_prev=x_includes ;;
788
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
789
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
790
    x_includes=$ac_optarg ;;
791
 
792
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
793
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
794
    ac_prev=x_libraries ;;
795
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
796
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
797
    x_libraries=$ac_optarg ;;
798
 
799
  -*) { echo "$as_me: error: unrecognized option: $ac_option
800
Try \`$0 --help' for more information." >&2
801
   { (exit 1); exit 1; }; }
802
    ;;
803
 
804
  *=*)
805
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
806
    # Reject names that are not valid shell variable names.
807
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
808
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
809
   { (exit 1); exit 1; }; }
810
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
811
    eval "$ac_envvar='$ac_optarg'"
812
    export $ac_envvar ;;
813
 
814
  *)
815
    # FIXME: should be removed in autoconf 3.0.
816
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
817
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
818
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
819
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
820
    ;;
821
 
822
  esac
823
done
824
 
825
if test -n "$ac_prev"; then
826
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
827
  { echo "$as_me: error: missing argument to $ac_option" >&2
828
   { (exit 1); exit 1; }; }
829
fi
830
 
831
# Be sure to have absolute paths.
832
for ac_var in exec_prefix prefix
833
do
834
  eval ac_val=$`echo $ac_var`
835
  case $ac_val in
836
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
837
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838
   { (exit 1); exit 1; }; };;
839
  esac
840
done
841
 
842
# Be sure to have absolute paths.
843
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
844
              localstatedir libdir includedir oldincludedir infodir mandir
845
do
846
  eval ac_val=$`echo $ac_var`
847
  case $ac_val in
848
    [\\/$]* | ?:[\\/]* ) ;;
849
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
850
   { (exit 1); exit 1; }; };;
851
  esac
852
done
853
 
854
# There might be people who depend on the old broken behavior: `$host'
855
# used to hold the argument of --host etc.
856
# FIXME: To remove some day.
857
build=$build_alias
858
host=$host_alias
859
target=$target_alias
860
 
861
# FIXME: To remove some day.
862
if test "x$host_alias" != x; then
863
  if test "x$build_alias" = x; then
864
    cross_compiling=maybe
865
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
866
    If a cross compiler is detected then cross compile mode will be used." >&2
867
  elif test "x$build_alias" != "x$host_alias"; then
868
    cross_compiling=yes
869
  fi
870
fi
871
 
872
ac_tool_prefix=
873
test -n "$host_alias" && ac_tool_prefix=$host_alias-
874
 
875
test "$silent" = yes && exec 6>/dev/null
876
 
877
 
878
# Find the source files, if location was not specified.
879
if test -z "$srcdir"; then
880
  ac_srcdir_defaulted=yes
881
  # Try the directory containing this script, then its parent.
882
  ac_confdir=`(dirname "$0") 2>/dev/null ||
883
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
884
         X"$0" : 'X\(//\)[^/]' \| \
885
         X"$0" : 'X\(//\)$' \| \
886
         X"$0" : 'X\(/\)' \| \
887
         .     : '\(.\)' 2>/dev/null ||
888
echo X"$0" |
889
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
890
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
891
          /^X\(\/\/\)$/{ s//\1/; q; }
892
          /^X\(\/\).*/{ s//\1/; q; }
893
          s/.*/./; q'`
894
  srcdir=$ac_confdir
895
  if test ! -r $srcdir/$ac_unique_file; then
896
    srcdir=..
897
  fi
898
else
899
  ac_srcdir_defaulted=no
900
fi
901
if test ! -r $srcdir/$ac_unique_file; then
902
  if test "$ac_srcdir_defaulted" = yes; then
903
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
904
   { (exit 1); exit 1; }; }
905
  else
906
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
907
   { (exit 1); exit 1; }; }
908
  fi
909
fi
910
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
911
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
912
   { (exit 1); exit 1; }; }
913
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
914
ac_env_build_alias_set=${build_alias+set}
915
ac_env_build_alias_value=$build_alias
916
ac_cv_env_build_alias_set=${build_alias+set}
917
ac_cv_env_build_alias_value=$build_alias
918
ac_env_host_alias_set=${host_alias+set}
919
ac_env_host_alias_value=$host_alias
920
ac_cv_env_host_alias_set=${host_alias+set}
921
ac_cv_env_host_alias_value=$host_alias
922
ac_env_target_alias_set=${target_alias+set}
923
ac_env_target_alias_value=$target_alias
924
ac_cv_env_target_alias_set=${target_alias+set}
925
ac_cv_env_target_alias_value=$target_alias
926
ac_env_CCAS_set=${CCAS+set}
927
ac_env_CCAS_value=$CCAS
928
ac_cv_env_CCAS_set=${CCAS+set}
929
ac_cv_env_CCAS_value=$CCAS
930
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
931
ac_env_CCASFLAGS_value=$CCASFLAGS
932
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
933
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
934
ac_env_CC_set=${CC+set}
935
ac_env_CC_value=$CC
936
ac_cv_env_CC_set=${CC+set}
937
ac_cv_env_CC_value=$CC
938
ac_env_CFLAGS_set=${CFLAGS+set}
939
ac_env_CFLAGS_value=$CFLAGS
940
ac_cv_env_CFLAGS_set=${CFLAGS+set}
941
ac_cv_env_CFLAGS_value=$CFLAGS
942
ac_env_LDFLAGS_set=${LDFLAGS+set}
943
ac_env_LDFLAGS_value=$LDFLAGS
944
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
945
ac_cv_env_LDFLAGS_value=$LDFLAGS
946
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
947
ac_env_CPPFLAGS_value=$CPPFLAGS
948
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
949
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
950
ac_env_CPP_set=${CPP+set}
951
ac_env_CPP_value=$CPP
952
ac_cv_env_CPP_set=${CPP+set}
953
ac_cv_env_CPP_value=$CPP
954
 
955
#
956
# Report the --help message.
957
#
958
if test "$ac_init_help" = "long"; then
959
  # Omit some internal or obsolete options to make the list less imposing.
960
  # This message is too long to be a string in the A/UX 3.1 sh.
961
  cat <<_ACEOF
962
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
963
 
964
Usage: $0 [OPTION]... [VAR=VALUE]...
965
 
966
To assign environment variables (e.g., CC, CFLAGS...), specify them as
967
VAR=VALUE.  See below for descriptions of some of the useful variables.
968
 
969
Defaults for the options are specified in brackets.
970
 
971
Configuration:
972
  -h, --help              display this help and exit
973
      --help=short        display options specific to this package
974
      --help=recursive    display the short help of all the included packages
975
  -V, --version           display version information and exit
976
  -q, --quiet, --silent   do not print \`checking...' messages
977
      --cache-file=FILE   cache test results in FILE [disabled]
978
  -C, --config-cache      alias for \`--cache-file=config.cache'
979
  -n, --no-create         do not create output files
980
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
981
 
982
_ACEOF
983
 
984
  cat <<_ACEOF
985
Installation directories:
986
  --prefix=PREFIX         install architecture-independent files in PREFIX
987
                          [$ac_default_prefix]
988
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
989
                          [PREFIX]
990
 
991
By default, \`make install' will install all the files in
992
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
993
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994
for instance \`--prefix=\$HOME'.
995
 
996
For better control, use the options below.
997
 
998
Fine tuning of the installation directories:
999
  --bindir=DIR           user executables [EPREFIX/bin]
1000
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1001
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1002
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1003
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1004
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1005
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1006
  --libdir=DIR           object code libraries [EPREFIX/lib]
1007
  --includedir=DIR       C header files [PREFIX/include]
1008
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1009
  --infodir=DIR          info documentation [PREFIX/info]
1010
  --mandir=DIR           man documentation [PREFIX/man]
1011
_ACEOF
1012
 
1013
  cat <<\_ACEOF
1014
 
1015
Program names:
1016
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1017
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1018
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1019
 
1020
System types:
1021
  --build=BUILD     configure for building on BUILD [guessed]
1022
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023
_ACEOF
1024
fi
1025
 
1026
if test -n "$ac_init_help"; then
1027
  case $ac_init_help in
1028
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1029
   esac
1030
  cat <<\_ACEOF
1031
 
1032
Optional Features:
1033
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035
  --enable-multilib         build many library versions (default)
1036
  --enable-target-optspace  optimize for space
1037
  --enable-malloc-debugging indicate malloc debugging requested
1038
  --enable-newlib-multithread        enable support for multiple threads
1039
  --enable-newlib-iconv     enable iconv library support
1040
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1041
  --disable-newlib-io-float disable printf/scanf family float support
1042
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1043
  --disable-dependency-tracking  speeds up one-time build
1044
  --enable-dependency-tracking   do not reject slow dependency extractors
1045
  --enable-maintainer-mode  enable make rules and dependencies not useful
1046
                          (and sometimes confusing) to the casual installer
1047
  --enable-shared[=PKGS]
1048
                          build shared libraries [default=yes]
1049
  --enable-static[=PKGS]
1050
                          build static libraries [default=yes]
1051
  --enable-fast-install[=PKGS]
1052
                          optimize for fast installation [default=yes]
1053
  --disable-libtool-lock  avoid locking (might break parallel builds)
1054
 
1055
Optional Packages:
1056
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058
  --with-pic              try to use only PIC/non-PIC objects [default=use
1059
                          both]
1060
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061
 
1062
Some influential environment variables:
1063
  CCAS        assembler compiler command (defaults to CC)
1064
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1065
  CC          C compiler command
1066
  CFLAGS      C compiler flags
1067
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1068
              nonstandard directory 
1069
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1070
              headers in a nonstandard directory 
1071
  CPP         C preprocessor
1072
 
1073
Use these variables to override the choices made by `configure' or to help
1074
it to find libraries and programs with nonstandard names/locations.
1075
 
1076
_ACEOF
1077
fi
1078
 
1079
if test "$ac_init_help" = "recursive"; then
1080
  # If there are subdirs, report their specific --help.
1081
  ac_popdir=`pwd`
1082
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083
    test -d $ac_dir || continue
1084
    ac_builddir=.
1085
 
1086
if test "$ac_dir" != .; then
1087
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088
  # A "../" for each directory in $ac_dir_suffix.
1089
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090
else
1091
  ac_dir_suffix= ac_top_builddir=
1092
fi
1093
 
1094
case $srcdir in
1095
  .)  # No --srcdir option.  We are building in place.
1096
    ac_srcdir=.
1097
    if test -z "$ac_top_builddir"; then
1098
       ac_top_srcdir=.
1099
    else
1100
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101
    fi ;;
1102
  [\\/]* | ?:[\\/]* )  # Absolute path.
1103
    ac_srcdir=$srcdir$ac_dir_suffix;
1104
    ac_top_srcdir=$srcdir ;;
1105
  *) # Relative path.
1106
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108
esac
1109
 
1110
# Do not use `cd foo && pwd` to compute absolute paths, because
1111
# the directories may not exist.
1112
case `pwd` in
1113
.) ac_abs_builddir="$ac_dir";;
1114
*)
1115
  case "$ac_dir" in
1116
  .) ac_abs_builddir=`pwd`;;
1117
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119
  esac;;
1120
esac
1121
case $ac_abs_builddir in
1122
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1123
*)
1124
  case ${ac_top_builddir}. in
1125
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1126
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128
  esac;;
1129
esac
1130
case $ac_abs_builddir in
1131
.) ac_abs_srcdir=$ac_srcdir;;
1132
*)
1133
  case $ac_srcdir in
1134
  .) ac_abs_srcdir=$ac_abs_builddir;;
1135
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137
  esac;;
1138
esac
1139
case $ac_abs_builddir in
1140
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1141
*)
1142
  case $ac_top_srcdir in
1143
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146
  esac;;
1147
esac
1148
 
1149
    cd $ac_dir
1150
    # Check for guested configure; otherwise get Cygnus style configure.
1151
    if test -f $ac_srcdir/configure.gnu; then
1152
      echo
1153
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1154
    elif test -f $ac_srcdir/configure; then
1155
      echo
1156
      $SHELL $ac_srcdir/configure  --help=recursive
1157
    elif test -f $ac_srcdir/configure.ac ||
1158
           test -f $ac_srcdir/configure.in; then
1159
      echo
1160
      $ac_configure --help
1161
    else
1162
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163
    fi
1164
    cd $ac_popdir
1165
  done
1166
fi
1167
 
1168
test -n "$ac_init_help" && exit 0
1169
if $ac_init_version; then
1170
  cat <<\_ACEOF
1171
newlib configure 1.17.0
1172
generated by GNU Autoconf 2.59
1173
 
1174
Copyright (C) 2003 Free Software Foundation, Inc.
1175
This configure script is free software; the Free Software Foundation
1176
gives unlimited permission to copy, distribute and modify it.
1177
_ACEOF
1178
  exit 0
1179
fi
1180
exec 5>config.log
1181
cat >&5 <<_ACEOF
1182
This file contains any messages produced by compilers while
1183
running configure, to aid debugging if configure makes a mistake.
1184
 
1185
It was created by newlib $as_me 1.17.0, which was
1186
generated by GNU Autoconf 2.59.  Invocation command line was
1187
 
1188
  $ $0 $@
1189
 
1190
_ACEOF
1191
{
1192
cat <<_ASUNAME
1193
## --------- ##
1194
## Platform. ##
1195
## --------- ##
1196
 
1197
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1198
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1199
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1200
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1201
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1202
 
1203
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1204
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1205
 
1206
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1207
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1208
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1209
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1210
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1211
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1212
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1213
 
1214
_ASUNAME
1215
 
1216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217
for as_dir in $PATH
1218
do
1219
  IFS=$as_save_IFS
1220
  test -z "$as_dir" && as_dir=.
1221
  echo "PATH: $as_dir"
1222
done
1223
 
1224
} >&5
1225
 
1226
cat >&5 <<_ACEOF
1227
 
1228
 
1229
## ----------- ##
1230
## Core tests. ##
1231
## ----------- ##
1232
 
1233
_ACEOF
1234
 
1235
 
1236
# Keep a trace of the command line.
1237
# Strip out --no-create and --no-recursion so they do not pile up.
1238
# Strip out --silent because we don't want to record it for future runs.
1239
# Also quote any args containing shell meta-characters.
1240
# Make two passes to allow for proper duplicate-argument suppression.
1241
ac_configure_args=
1242
ac_configure_args0=
1243
ac_configure_args1=
1244
ac_sep=
1245
ac_must_keep_next=false
1246
for ac_pass in 1 2
1247
do
1248
  for ac_arg
1249
  do
1250
    case $ac_arg in
1251
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1252
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253
    | -silent | --silent | --silen | --sile | --sil)
1254
      continue ;;
1255
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257
    esac
1258
    case $ac_pass in
1259
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1260
    2)
1261
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1262
      if test $ac_must_keep_next = true; then
1263
        ac_must_keep_next=false # Got value, back to normal.
1264
      else
1265
        case $ac_arg in
1266
          *=* | --config-cache | -C | -disable-* | --disable-* \
1267
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1268
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1269
          | -with-* | --with-* | -without-* | --without-* | --x)
1270
            case "$ac_configure_args0 " in
1271
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272
            esac
1273
            ;;
1274
          -* ) ac_must_keep_next=true ;;
1275
        esac
1276
      fi
1277
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1278
      # Get rid of the leading space.
1279
      ac_sep=" "
1280
      ;;
1281
    esac
1282
  done
1283
done
1284
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1285
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1286
 
1287
# When interrupted or exit'd, cleanup temporary files, and complete
1288
# config.log.  We remove comments because anyway the quotes in there
1289
# would cause problems or look ugly.
1290
# WARNING: Be sure not to use single quotes in there, as some shells,
1291
# such as our DU 5.0 friend, will then `close' the trap.
1292
trap 'exit_status=$?
1293
  # Save into config.log some information that might help in debugging.
1294
  {
1295
    echo
1296
 
1297
    cat <<\_ASBOX
1298
## ---------------- ##
1299
## Cache variables. ##
1300
## ---------------- ##
1301
_ASBOX
1302
    echo
1303
    # The following way of writing the cache mishandles newlines in values,
1304
{
1305
  (set) 2>&1 |
1306
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307
    *ac_space=\ *)
1308
      sed -n \
1309
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1310
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311
      ;;
1312
    *)
1313
      sed -n \
1314
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1315
      ;;
1316
    esac;
1317
}
1318
    echo
1319
 
1320
    cat <<\_ASBOX
1321
## ----------------- ##
1322
## Output variables. ##
1323
## ----------------- ##
1324
_ASBOX
1325
    echo
1326
    for ac_var in $ac_subst_vars
1327
    do
1328
      eval ac_val=$`echo $ac_var`
1329
      echo "$ac_var='"'"'$ac_val'"'"'"
1330
    done | sort
1331
    echo
1332
 
1333
    if test -n "$ac_subst_files"; then
1334
      cat <<\_ASBOX
1335
## ------------- ##
1336
## Output files. ##
1337
## ------------- ##
1338
_ASBOX
1339
      echo
1340
      for ac_var in $ac_subst_files
1341
      do
1342
        eval ac_val=$`echo $ac_var`
1343
        echo "$ac_var='"'"'$ac_val'"'"'"
1344
      done | sort
1345
      echo
1346
    fi
1347
 
1348
    if test -s confdefs.h; then
1349
      cat <<\_ASBOX
1350
## ----------- ##
1351
## confdefs.h. ##
1352
## ----------- ##
1353
_ASBOX
1354
      echo
1355
      sed "/^$/d" confdefs.h | sort
1356
      echo
1357
    fi
1358
    test "$ac_signal" != 0 &&
1359
      echo "$as_me: caught signal $ac_signal"
1360
    echo "$as_me: exit $exit_status"
1361
  } >&5
1362
  rm -f core *.core &&
1363
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364
    exit $exit_status
1365
     ' 0
1366
for ac_signal in 1 2 13 15; do
1367
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368
done
1369
ac_signal=0
1370
 
1371
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1372
rm -rf conftest* confdefs.h
1373
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374
echo >confdefs.h
1375
 
1376
# Predefined preprocessor variables.
1377
 
1378
cat >>confdefs.h <<_ACEOF
1379
#define PACKAGE_NAME "$PACKAGE_NAME"
1380
_ACEOF
1381
 
1382
 
1383
cat >>confdefs.h <<_ACEOF
1384
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385
_ACEOF
1386
 
1387
 
1388
cat >>confdefs.h <<_ACEOF
1389
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1390
_ACEOF
1391
 
1392
 
1393
cat >>confdefs.h <<_ACEOF
1394
#define PACKAGE_STRING "$PACKAGE_STRING"
1395
_ACEOF
1396
 
1397
 
1398
cat >>confdefs.h <<_ACEOF
1399
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400
_ACEOF
1401
 
1402
 
1403
# Let the site file select an alternate cache file if it wants to.
1404
# Prefer explicitly selected file to automatically selected ones.
1405
if test -z "$CONFIG_SITE"; then
1406
  if test "x$prefix" != xNONE; then
1407
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1408
  else
1409
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410
  fi
1411
fi
1412
for ac_site_file in $CONFIG_SITE; do
1413
  if test -r "$ac_site_file"; then
1414
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1415
echo "$as_me: loading site script $ac_site_file" >&6;}
1416
    sed 's/^/| /' "$ac_site_file" >&5
1417
    . "$ac_site_file"
1418
  fi
1419
done
1420
 
1421
if test -r "$cache_file"; then
1422
  # Some versions of bash will fail to source /dev/null (special
1423
  # files actually), so we avoid doing that.
1424
  if test -f "$cache_file"; then
1425
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1426
echo "$as_me: loading cache $cache_file" >&6;}
1427
    case $cache_file in
1428
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1429
      *)                      . ./$cache_file;;
1430
    esac
1431
  fi
1432
else
1433
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1434
echo "$as_me: creating cache $cache_file" >&6;}
1435
  >$cache_file
1436
fi
1437
 
1438
# Check that the precious variables saved in the cache have kept the same
1439
# value.
1440
ac_cache_corrupted=false
1441
for ac_var in `(set) 2>&1 |
1442
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1443
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1444
  eval ac_new_set=\$ac_env_${ac_var}_set
1445
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1446
  eval ac_new_val="\$ac_env_${ac_var}_value"
1447
  case $ac_old_set,$ac_new_set in
1448
    set,)
1449
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1450
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1451
      ac_cache_corrupted=: ;;
1452
    ,set)
1453
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1454
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1455
      ac_cache_corrupted=: ;;
1456
    ,);;
1457
    *)
1458
      if test "x$ac_old_val" != "x$ac_new_val"; then
1459
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1460
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1461
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1462
echo "$as_me:   former value:  $ac_old_val" >&2;}
1463
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1464
echo "$as_me:   current value: $ac_new_val" >&2;}
1465
        ac_cache_corrupted=:
1466
      fi;;
1467
  esac
1468
  # Pass precious variables to config.status.
1469
  if test "$ac_new_set" = set; then
1470
    case $ac_new_val in
1471
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1472
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1473
    *) ac_arg=$ac_var=$ac_new_val ;;
1474
    esac
1475
    case " $ac_configure_args " in
1476
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1477
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478
    esac
1479
  fi
1480
done
1481
if $ac_cache_corrupted; then
1482
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1483
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1484
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1485
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1486
   { (exit 1); exit 1; }; }
1487
fi
1488
 
1489
ac_ext=c
1490
ac_cpp='$CPP $CPPFLAGS'
1491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1494
 
1495
 
1496
 
1497
 
1498
 
1499
 
1500
 
1501
 
1502
 
1503
 
1504
 
1505
 
1506
 
1507
 
1508
 
1509
 
1510
 
1511
 
1512
 
1513
 
1514
 
1515
 
1516
 
1517
 
1518
 
1519
 
1520
 
1521
 
1522
 
1523
ac_aux_dir=
1524
for ac_dir in ../../.. $srcdir/../../..; do
1525
  if test -f $ac_dir/install-sh; then
1526
    ac_aux_dir=$ac_dir
1527
    ac_install_sh="$ac_aux_dir/install-sh -c"
1528
    break
1529
  elif test -f $ac_dir/install.sh; then
1530
    ac_aux_dir=$ac_dir
1531
    ac_install_sh="$ac_aux_dir/install.sh -c"
1532
    break
1533
  elif test -f $ac_dir/shtool; then
1534
    ac_aux_dir=$ac_dir
1535
    ac_install_sh="$ac_aux_dir/shtool install -c"
1536
    break
1537
  fi
1538
done
1539
if test -z "$ac_aux_dir"; then
1540
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&5
1541
echo "$as_me: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&2;}
1542
   { (exit 1); exit 1; }; }
1543
fi
1544
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1545
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1546
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547
 
1548
 
1549
 
1550
# Make sure we can run config.sub.
1551
$ac_config_sub sun4 >/dev/null 2>&1 ||
1552
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1553
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1554
   { (exit 1); exit 1; }; }
1555
 
1556
echo "$as_me:$LINENO: checking build system type" >&5
1557
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1558
if test "${ac_cv_build+set}" = set; then
1559
  echo $ECHO_N "(cached) $ECHO_C" >&6
1560
else
1561
  ac_cv_build_alias=$build_alias
1562
test -z "$ac_cv_build_alias" &&
1563
  ac_cv_build_alias=`$ac_config_guess`
1564
test -z "$ac_cv_build_alias" &&
1565
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1566
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1567
   { (exit 1); exit 1; }; }
1568
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1569
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1570
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1571
   { (exit 1); exit 1; }; }
1572
 
1573
fi
1574
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1575
echo "${ECHO_T}$ac_cv_build" >&6
1576
build=$ac_cv_build
1577
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1578
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1579
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580
 
1581
 
1582
am__api_version="1.9"
1583
# Find a good install program.  We prefer a C program (faster),
1584
# so one script is as good as another.  But avoid the broken or
1585
# incompatible versions:
1586
# SysV /etc/install, /usr/sbin/install
1587
# SunOS /usr/etc/install
1588
# IRIX /sbin/install
1589
# AIX /bin/install
1590
# AmigaOS /C/install, which installs bootblocks on floppy discs
1591
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1592
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1593
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1594
# OS/2's system install, which has a completely different semantic
1595
# ./install, which can be erroneously created by make from ./install.sh.
1596
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1597
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1598
if test -z "$INSTALL"; then
1599
if test "${ac_cv_path_install+set}" = set; then
1600
  echo $ECHO_N "(cached) $ECHO_C" >&6
1601
else
1602
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603
for as_dir in $PATH
1604
do
1605
  IFS=$as_save_IFS
1606
  test -z "$as_dir" && as_dir=.
1607
  # Account for people who put trailing slashes in PATH elements.
1608
case $as_dir/ in
1609
  ./ | .// | /cC/* | \
1610
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1611
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1612
  /usr/ucb/* ) ;;
1613
  *)
1614
    # OSF1 and SCO ODT 3.0 have their own names for install.
1615
    # Don't use installbsd from OSF since it installs stuff as root
1616
    # by default.
1617
    for ac_prog in ginstall scoinst install; do
1618
      for ac_exec_ext in '' $ac_executable_extensions; do
1619
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1620
          if test $ac_prog = install &&
1621
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622
            # AIX install.  It has an incompatible calling convention.
1623
            :
1624
          elif test $ac_prog = install &&
1625
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1626
            # program-specific install script used by HP pwplus--don't use.
1627
            :
1628
          else
1629
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1630
            break 3
1631
          fi
1632
        fi
1633
      done
1634
    done
1635
    ;;
1636
esac
1637
done
1638
 
1639
 
1640
fi
1641
  if test "${ac_cv_path_install+set}" = set; then
1642
    INSTALL=$ac_cv_path_install
1643
  else
1644
    # As a last resort, use the slow shell script.  We don't cache a
1645
    # path for INSTALL within a source directory, because that will
1646
    # break other packages using the cache if that directory is
1647
    # removed, or if the path is relative.
1648
    INSTALL=$ac_install_sh
1649
  fi
1650
fi
1651
echo "$as_me:$LINENO: result: $INSTALL" >&5
1652
echo "${ECHO_T}$INSTALL" >&6
1653
 
1654
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1655
# It thinks the first close brace ends the variable substitution.
1656
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657
 
1658
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1659
 
1660
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661
 
1662
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1663
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1664
# Just in case
1665
sleep 1
1666
echo timestamp > conftest.file
1667
# Do `set' in a subshell so we don't clobber the current shell's
1668
# arguments.  Must try -L first in case configure is actually a
1669
# symlink; some systems play weird games with the mod time of symlinks
1670
# (eg FreeBSD returns the mod time of the symlink's containing
1671
# directory).
1672
if (
1673
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1674
   if test "$*" = "X"; then
1675
      # -L didn't work.
1676
      set X `ls -t $srcdir/configure conftest.file`
1677
   fi
1678
   rm -f conftest.file
1679
   if test "$*" != "X $srcdir/configure conftest.file" \
1680
      && test "$*" != "X conftest.file $srcdir/configure"; then
1681
 
1682
      # If neither matched, then we have a broken ls.  This can happen
1683
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1684
      # broken ls alias from the environment.  This has actually
1685
      # happened.  Such a system could not be considered "sane".
1686
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1687
alias in your environment" >&5
1688
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1689
alias in your environment" >&2;}
1690
   { (exit 1); exit 1; }; }
1691
   fi
1692
 
1693
   test "$2" = conftest.file
1694
   )
1695
then
1696
   # Ok.
1697
   :
1698
else
1699
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1700
Check your system clock" >&5
1701
echo "$as_me: error: newly created file is older than distributed files!
1702
Check your system clock" >&2;}
1703
   { (exit 1); exit 1; }; }
1704
fi
1705
echo "$as_me:$LINENO: result: yes" >&5
1706
echo "${ECHO_T}yes" >&6
1707
test "$program_prefix" != NONE &&
1708
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1709
# Use a double $ so make ignores it.
1710
test "$program_suffix" != NONE &&
1711
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1712
# Double any \ or $.  echo might interpret backslashes.
1713
# By default was `s,x,x', remove it if useless.
1714
cat <<\_ACEOF >conftest.sed
1715
s/[\\$]/&&/g;s/;s,x,x,$//
1716
_ACEOF
1717
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1718
rm conftest.sed
1719
 
1720
# expand $ac_aux_dir to an absolute path
1721
am_aux_dir=`cd $ac_aux_dir && pwd`
1722
 
1723
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1724
# Use eval to expand $SHELL
1725
if eval "$MISSING --run true"; then
1726
  am_missing_run="$MISSING --run "
1727
else
1728
  am_missing_run=
1729
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1730
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1731
fi
1732
 
1733
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1734
  # We used to keeping the `.' as first argument, in order to
1735
  # allow $(mkdir_p) to be used without argument.  As in
1736
  #   $(mkdir_p) $(somedir)
1737
  # where $(somedir) is conditionally defined.  However this is wrong
1738
  # for two reasons:
1739
  #  1. if the package is installed by a user who cannot write `.'
1740
  #     make install will fail,
1741
  #  2. the above comment should most certainly read
1742
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1743
  #     so it does not work when $(somedir) is undefined and
1744
  #     $(DESTDIR) is not.
1745
  #  To support the latter case, we have to write
1746
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1747
  #  so the `.' trick is pointless.
1748
  mkdir_p='mkdir -p --'
1749
else
1750
  # On NextStep and OpenStep, the `mkdir' command does not
1751
  # recognize any option.  It will interpret all options as
1752
  # directories to create, and then abort because `.' already
1753
  # exists.
1754
  for d in ./-p ./--version;
1755
  do
1756
    test -d $d && rmdir $d
1757
  done
1758
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1759
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1760
    mkdir_p='$(mkinstalldirs)'
1761
  else
1762
    mkdir_p='$(install_sh) -d'
1763
  fi
1764
fi
1765
 
1766
for ac_prog in gawk mawk nawk awk
1767
do
1768
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1769
set dummy $ac_prog; ac_word=$2
1770
echo "$as_me:$LINENO: checking for $ac_word" >&5
1771
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772
if test "${ac_cv_prog_AWK+set}" = set; then
1773
  echo $ECHO_N "(cached) $ECHO_C" >&6
1774
else
1775
  if test -n "$AWK"; then
1776
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1777
else
1778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779
for as_dir in $PATH
1780
do
1781
  IFS=$as_save_IFS
1782
  test -z "$as_dir" && as_dir=.
1783
  for ac_exec_ext in '' $ac_executable_extensions; do
1784
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785
    ac_cv_prog_AWK="$ac_prog"
1786
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787
    break 2
1788
  fi
1789
done
1790
done
1791
 
1792
fi
1793
fi
1794
AWK=$ac_cv_prog_AWK
1795
if test -n "$AWK"; then
1796
  echo "$as_me:$LINENO: result: $AWK" >&5
1797
echo "${ECHO_T}$AWK" >&6
1798
else
1799
  echo "$as_me:$LINENO: result: no" >&5
1800
echo "${ECHO_T}no" >&6
1801
fi
1802
 
1803
  test -n "$AWK" && break
1804
done
1805
 
1806
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1807
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1808
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1809
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1810
  echo $ECHO_N "(cached) $ECHO_C" >&6
1811
else
1812
  cat >conftest.make <<\_ACEOF
1813
all:
1814
        @echo 'ac_maketemp="$(MAKE)"'
1815
_ACEOF
1816
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1817
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1818
if test -n "$ac_maketemp"; then
1819
  eval ac_cv_prog_make_${ac_make}_set=yes
1820
else
1821
  eval ac_cv_prog_make_${ac_make}_set=no
1822
fi
1823
rm -f conftest.make
1824
fi
1825
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1826
  echo "$as_me:$LINENO: result: yes" >&5
1827
echo "${ECHO_T}yes" >&6
1828
  SET_MAKE=
1829
else
1830
  echo "$as_me:$LINENO: result: no" >&5
1831
echo "${ECHO_T}no" >&6
1832
  SET_MAKE="MAKE=${MAKE-make}"
1833
fi
1834
 
1835
rm -rf .tst 2>/dev/null
1836
mkdir .tst 2>/dev/null
1837
if test -d .tst; then
1838
  am__leading_dot=.
1839
else
1840
  am__leading_dot=_
1841
fi
1842
rmdir .tst 2>/dev/null
1843
 
1844
DEPDIR="${am__leading_dot}deps"
1845
 
1846
          ac_config_commands="$ac_config_commands depfiles"
1847
 
1848
 
1849
am_make=${MAKE-make}
1850
cat > confinc << 'END'
1851
am__doit:
1852
        @echo done
1853
.PHONY: am__doit
1854
END
1855
# If we don't find an include directive, just comment out the code.
1856
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1857
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1858
am__include="#"
1859
am__quote=
1860
_am_result=none
1861
# First try GNU make style include.
1862
echo "include confinc" > confmf
1863
# We grep out `Entering directory' and `Leaving directory'
1864
# messages which can occur if `w' ends up in MAKEFLAGS.
1865
# In particular we don't look at `^make:' because GNU make might
1866
# be invoked under some other name (usually "gmake"), in which
1867
# case it prints its new name instead of `make'.
1868
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1869
   am__include=include
1870
   am__quote=
1871
   _am_result=GNU
1872
fi
1873
# Now try BSD make style include.
1874
if test "$am__include" = "#"; then
1875
   echo '.include "confinc"' > confmf
1876
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1877
      am__include=.include
1878
      am__quote="\""
1879
      _am_result=BSD
1880
   fi
1881
fi
1882
 
1883
 
1884
echo "$as_me:$LINENO: result: $_am_result" >&5
1885
echo "${ECHO_T}$_am_result" >&6
1886
rm -f confinc confmf
1887
 
1888
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1889
if test "${enable_dependency_tracking+set}" = set; then
1890
  enableval="$enable_dependency_tracking"
1891
 
1892
fi;
1893
if test "x$enable_dependency_tracking" != xno; then
1894
  am_depcomp="$ac_aux_dir/depcomp"
1895
  AMDEPBACKSLASH='\'
1896
fi
1897
 
1898
 
1899
if test "x$enable_dependency_tracking" != xno; then
1900
  AMDEP_TRUE=
1901
  AMDEP_FALSE='#'
1902
else
1903
  AMDEP_TRUE='#'
1904
  AMDEP_FALSE=
1905
fi
1906
 
1907
 
1908
 
1909
 
1910
# Check whether --enable-multilib or --disable-multilib was given.
1911
if test "${enable_multilib+set}" = set; then
1912
  enableval="$enable_multilib"
1913
  case "${enableval}" in
1914
  yes) multilib=yes ;;
1915
  no)  multilib=no ;;
1916
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1917
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1918
   { (exit 1); exit 1; }; } ;;
1919
 esac
1920
else
1921
  multilib=yes
1922
fi;
1923
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1924
if test "${enable_target_optspace+set}" = set; then
1925
  enableval="$enable_target_optspace"
1926
  case "${enableval}" in
1927
  yes) target_optspace=yes ;;
1928
  no)  target_optspace=no ;;
1929
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1930
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1931
   { (exit 1); exit 1; }; } ;;
1932
 esac
1933
else
1934
  target_optspace=
1935
fi;
1936
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1937
if test "${enable_malloc_debugging+set}" = set; then
1938
  enableval="$enable_malloc_debugging"
1939
  case "${enableval}" in
1940
  yes) malloc_debugging=yes ;;
1941
  no)  malloc_debugging=no ;;
1942
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1943
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1944
   { (exit 1); exit 1; }; } ;;
1945
 esac
1946
else
1947
  malloc_debugging=
1948
fi;
1949
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1950
if test "${enable_newlib_multithread+set}" = set; then
1951
  enableval="$enable_newlib_multithread"
1952
  case "${enableval}" in
1953
  yes) newlib_multithread=yes ;;
1954
  no)  newlib_multithread=no ;;
1955
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1956
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1957
   { (exit 1); exit 1; }; } ;;
1958
 esac
1959
else
1960
  newlib_multithread=yes
1961
fi;
1962
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1963
if test "${enable_newlib_iconv+set}" = set; then
1964
  enableval="$enable_newlib_iconv"
1965
  if test "${newlib_iconv+set}" != set; then
1966
   case "${enableval}" in
1967
     yes) newlib_iconv=yes ;;
1968
     no)  newlib_iconv=no ;;
1969
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1970
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1971
   { (exit 1); exit 1; }; } ;;
1972
   esac
1973
 fi
1974
else
1975
  newlib_iconv=${newlib_iconv}
1976
fi;
1977
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1978
if test "${enable_newlib_elix_level+set}" = set; then
1979
  enableval="$enable_newlib_elix_level"
1980
  case "${enableval}" in
1981
  0)   newlib_elix_level=0 ;;
1982
  1)   newlib_elix_level=1 ;;
1983
  2)   newlib_elix_level=2 ;;
1984
  3)   newlib_elix_level=3 ;;
1985
  4)   newlib_elix_level=4 ;;
1986
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1987
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1988
   { (exit 1); exit 1; }; } ;;
1989
 esac
1990
else
1991
  newlib_elix_level=0
1992
fi;
1993
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1994
if test "${enable_newlib_io_float+set}" = set; then
1995
  enableval="$enable_newlib_io_float"
1996
  case "${enableval}" in
1997
  yes) newlib_io_float=yes ;;
1998
  no)  newlib_io_float=no ;;
1999
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2000
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2001
   { (exit 1); exit 1; }; } ;;
2002
 esac
2003
else
2004
  newlib_io_float=yes
2005
fi;
2006
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
2007
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2008
  enableval="$enable_newlib_supplied_syscalls"
2009
  case "${enableval}" in
2010
  yes) newlib_may_supply_syscalls=yes ;;
2011
  no)  newlib_may_supply_syscalls=no ;;
2012
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2013
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2014
   { (exit 1); exit 1; }; } ;;
2015
 esac
2016
else
2017
  newlib_may_supply_syscalls=yes
2018
fi;
2019
 
2020
 
2021
if test x${newlib_may_supply_syscalls} = xyes; then
2022
  MAY_SUPPLY_SYSCALLS_TRUE=
2023
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2024
else
2025
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2026
  MAY_SUPPLY_SYSCALLS_FALSE=
2027
fi
2028
 
2029
 
2030
 
2031
test -z "${with_target_subdir}" && with_target_subdir=.
2032
 
2033
if test "${srcdir}" = "."; then
2034
  if test "${with_target_subdir}" != "."; then
2035
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2036
  else
2037
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2038
  fi
2039
else
2040
  newlib_basedir="${srcdir}/../.."
2041
fi
2042
 
2043
 
2044
echo "$as_me:$LINENO: checking host system type" >&5
2045
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2046
if test "${ac_cv_host+set}" = set; then
2047
  echo $ECHO_N "(cached) $ECHO_C" >&6
2048
else
2049
  ac_cv_host_alias=$host_alias
2050
test -z "$ac_cv_host_alias" &&
2051
  ac_cv_host_alias=$ac_cv_build_alias
2052
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2053
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2054
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2055
   { (exit 1); exit 1; }; }
2056
 
2057
fi
2058
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2059
echo "${ECHO_T}$ac_cv_host" >&6
2060
host=$ac_cv_host
2061
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2062
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2063
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2064
 
2065
 
2066
 
2067
# test to see if srcdir already configured
2068
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2069
   test -f $srcdir/config.status; then
2070
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2071
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2072
   { (exit 1); exit 1; }; }
2073
fi
2074
 
2075
# test whether we have cygpath
2076
if test -z "$CYGPATH_W"; then
2077
  if (cygpath --version) >/dev/null 2>/dev/null; then
2078
    CYGPATH_W='cygpath -w'
2079
  else
2080
    CYGPATH_W=echo
2081
  fi
2082
fi
2083
 
2084
 
2085
# Define the identity of the package.
2086
 PACKAGE='newlib'
2087
 VERSION='1.17.0'
2088
 
2089
 
2090
# Some tools Automake needs.
2091
 
2092
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2093
 
2094
 
2095
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2096
 
2097
 
2098
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2099
 
2100
 
2101
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2102
 
2103
 
2104
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2105
 
2106
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2107
 
2108
# Installed binaries are usually stripped using `strip' when the user
2109
# run `make install-strip'.  However `strip' might not be the right
2110
# tool to use in cross-compilation environments, therefore Automake
2111
# will honor the `STRIP' environment variable to overrule this program.
2112
if test "$cross_compiling" != no; then
2113
  if test -n "$ac_tool_prefix"; then
2114
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2115
set dummy ${ac_tool_prefix}strip; ac_word=$2
2116
echo "$as_me:$LINENO: checking for $ac_word" >&5
2117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118
if test "${ac_cv_prog_STRIP+set}" = set; then
2119
  echo $ECHO_N "(cached) $ECHO_C" >&6
2120
else
2121
  if test -n "$STRIP"; then
2122
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2123
else
2124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125
for as_dir in $PATH
2126
do
2127
  IFS=$as_save_IFS
2128
  test -z "$as_dir" && as_dir=.
2129
  for ac_exec_ext in '' $ac_executable_extensions; do
2130
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2132
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133
    break 2
2134
  fi
2135
done
2136
done
2137
 
2138
fi
2139
fi
2140
STRIP=$ac_cv_prog_STRIP
2141
if test -n "$STRIP"; then
2142
  echo "$as_me:$LINENO: result: $STRIP" >&5
2143
echo "${ECHO_T}$STRIP" >&6
2144
else
2145
  echo "$as_me:$LINENO: result: no" >&5
2146
echo "${ECHO_T}no" >&6
2147
fi
2148
 
2149
fi
2150
if test -z "$ac_cv_prog_STRIP"; then
2151
  ac_ct_STRIP=$STRIP
2152
  # Extract the first word of "strip", so it can be a program name with args.
2153
set dummy strip; ac_word=$2
2154
echo "$as_me:$LINENO: checking for $ac_word" >&5
2155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2156
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2157
  echo $ECHO_N "(cached) $ECHO_C" >&6
2158
else
2159
  if test -n "$ac_ct_STRIP"; then
2160
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2161
else
2162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163
for as_dir in $PATH
2164
do
2165
  IFS=$as_save_IFS
2166
  test -z "$as_dir" && as_dir=.
2167
  for ac_exec_ext in '' $ac_executable_extensions; do
2168
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2169
    ac_cv_prog_ac_ct_STRIP="strip"
2170
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171
    break 2
2172
  fi
2173
done
2174
done
2175
 
2176
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2177
fi
2178
fi
2179
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2180
if test -n "$ac_ct_STRIP"; then
2181
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2182
echo "${ECHO_T}$ac_ct_STRIP" >&6
2183
else
2184
  echo "$as_me:$LINENO: result: no" >&5
2185
echo "${ECHO_T}no" >&6
2186
fi
2187
 
2188
  STRIP=$ac_ct_STRIP
2189
else
2190
  STRIP="$ac_cv_prog_STRIP"
2191
fi
2192
 
2193
fi
2194
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2195
 
2196
# We need awk for the "check" target.  The system "awk" is bad on
2197
# some platforms.
2198
# Always define AMTAR for backward compatibility.
2199
 
2200
AMTAR=${AMTAR-"${am_missing_run}tar"}
2201
 
2202
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2203
 
2204
 
2205
 
2206
 
2207
 
2208
 
2209
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2210
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2211
# are probably using a cross compiler, which will not be able to fully
2212
# link an executable.  This should really be fixed in autoconf
2213
# itself.
2214
 
2215
 
2216
 
2217
 
2218
 
2219
 
2220
 
2221
# Extract the first word of "gcc", so it can be a program name with args.
2222
set dummy gcc; ac_word=$2
2223
echo "$as_me:$LINENO: checking for $ac_word" >&5
2224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225
if test "${ac_cv_prog_CC+set}" = set; then
2226
  echo $ECHO_N "(cached) $ECHO_C" >&6
2227
else
2228
  if test -n "$CC"; then
2229
  ac_cv_prog_CC="$CC" # Let the user override the test.
2230
else
2231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232
for as_dir in $PATH
2233
do
2234
  IFS=$as_save_IFS
2235
  test -z "$as_dir" && as_dir=.
2236
  for ac_exec_ext in '' $ac_executable_extensions; do
2237
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238
    ac_cv_prog_CC="gcc"
2239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240
    break 2
2241
  fi
2242
done
2243
done
2244
 
2245
fi
2246
fi
2247
CC=$ac_cv_prog_CC
2248
if test -n "$CC"; then
2249
  echo "$as_me:$LINENO: result: $CC" >&5
2250
echo "${ECHO_T}$CC" >&6
2251
else
2252
  echo "$as_me:$LINENO: result: no" >&5
2253
echo "${ECHO_T}no" >&6
2254
fi
2255
 
2256
 
2257
depcc="$CC"   am_compiler_list=
2258
 
2259
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2260
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2261
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2262
  echo $ECHO_N "(cached) $ECHO_C" >&6
2263
else
2264
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2265
  # We make a subdir and do the tests there.  Otherwise we can end up
2266
  # making bogus files that we don't know about and never remove.  For
2267
  # instance it was reported that on HP-UX the gcc test will end up
2268
  # making a dummy file named `D' -- because `-MD' means `put the output
2269
  # in D'.
2270
  mkdir conftest.dir
2271
  # Copy depcomp to subdir because otherwise we won't find it if we're
2272
  # using a relative directory.
2273
  cp "$am_depcomp" conftest.dir
2274
  cd conftest.dir
2275
  # We will build objects and dependencies in a subdirectory because
2276
  # it helps to detect inapplicable dependency modes.  For instance
2277
  # both Tru64's cc and ICC support -MD to output dependencies as a
2278
  # side effect of compilation, but ICC will put the dependencies in
2279
  # the current directory while Tru64 will put them in the object
2280
  # directory.
2281
  mkdir sub
2282
 
2283
  am_cv_CC_dependencies_compiler_type=none
2284
  if test "$am_compiler_list" = ""; then
2285
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2286
  fi
2287
  for depmode in $am_compiler_list; do
2288
    # Setup a source with many dependencies, because some compilers
2289
    # like to wrap large dependency lists on column 80 (with \), and
2290
    # we should not choose a depcomp mode which is confused by this.
2291
    #
2292
    # We need to recreate these files for each test, as the compiler may
2293
    # overwrite some of them when testing with obscure command lines.
2294
    # This happens at least with the AIX C compiler.
2295
    : > sub/conftest.c
2296
    for i in 1 2 3 4 5 6; do
2297
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2298
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2299
      # Solaris 8's {/usr,}/bin/sh.
2300
      touch sub/conftst$i.h
2301
    done
2302
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2303
 
2304
    case $depmode in
2305
    nosideeffect)
2306
      # after this tag, mechanisms are not by side-effect, so they'll
2307
      # only be used when explicitly requested
2308
      if test "x$enable_dependency_tracking" = xyes; then
2309
        continue
2310
      else
2311
        break
2312
      fi
2313
      ;;
2314
    none) break ;;
2315
    esac
2316
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2317
    # mode.  It turns out that the SunPro C++ compiler does not properly
2318
    # handle `-M -o', and we need to detect this.
2319
    if depmode=$depmode \
2320
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2321
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2322
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2323
         >/dev/null 2>conftest.err &&
2324
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2325
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2326
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2327
      # icc doesn't choke on unknown options, it will just issue warnings
2328
      # or remarks (even with -Werror).  So we grep stderr for any message
2329
      # that says an option was ignored or not supported.
2330
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2331
      #   icc: Command line warning: ignoring option '-M'; no argument required
2332
      # The diagnosis changed in icc 8.0:
2333
      #   icc: Command line remark: option '-MP' not supported
2334
      if (grep 'ignoring option' conftest.err ||
2335
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2336
        am_cv_CC_dependencies_compiler_type=$depmode
2337
        break
2338
      fi
2339
    fi
2340
  done
2341
 
2342
  cd ..
2343
  rm -rf conftest.dir
2344
else
2345
  am_cv_CC_dependencies_compiler_type=none
2346
fi
2347
 
2348
fi
2349
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2350
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2351
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2352
 
2353
 
2354
 
2355
if
2356
  test "x$enable_dependency_tracking" != xno \
2357
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2358
  am__fastdepCC_TRUE=
2359
  am__fastdepCC_FALSE='#'
2360
else
2361
  am__fastdepCC_TRUE='#'
2362
  am__fastdepCC_FALSE=
2363
fi
2364
 
2365
 
2366
if test -z "$CC"; then
2367
  # Extract the first word of "cc", so it can be a program name with args.
2368
set dummy cc; ac_word=$2
2369
echo "$as_me:$LINENO: checking for $ac_word" >&5
2370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2371
if test "${ac_cv_prog_CC+set}" = set; then
2372
  echo $ECHO_N "(cached) $ECHO_C" >&6
2373
else
2374
  if test -n "$CC"; then
2375
  ac_cv_prog_CC="$CC" # Let the user override the test.
2376
else
2377
  ac_prog_rejected=no
2378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379
for as_dir in $PATH
2380
do
2381
  IFS=$as_save_IFS
2382
  test -z "$as_dir" && as_dir=.
2383
  for ac_exec_ext in '' $ac_executable_extensions; do
2384
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2385
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386
       ac_prog_rejected=yes
2387
       continue
2388
     fi
2389
    ac_cv_prog_CC="cc"
2390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391
    break 2
2392
  fi
2393
done
2394
done
2395
 
2396
if test $ac_prog_rejected = yes; then
2397
  # We found a bogon in the path, so make sure we never use it.
2398
  set dummy $ac_cv_prog_CC
2399
  shift
2400
  if test $# != 0; then
2401
    # We chose a different compiler from the bogus one.
2402
    # However, it has the same basename, so the bogon will be chosen
2403
    # first if we set CC to just the basename; use the full file name.
2404
    shift
2405
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2406
  fi
2407
fi
2408
fi
2409
fi
2410
CC=$ac_cv_prog_CC
2411
if test -n "$CC"; then
2412
  echo "$as_me:$LINENO: result: $CC" >&5
2413
echo "${ECHO_T}$CC" >&6
2414
else
2415
  echo "$as_me:$LINENO: result: no" >&5
2416
echo "${ECHO_T}no" >&6
2417
fi
2418
 
2419
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2420
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2421
   { (exit 1); exit 1; }; }
2422
fi
2423
 
2424
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2425
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2426
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2427
  echo $ECHO_N "(cached) $ECHO_C" >&6
2428
else
2429
  cat > conftest.c <
2430
#ifdef __GNUC__
2431
  yes;
2432
#endif
2433
EOF
2434
if { ac_try='${CC-cc} -E conftest.c'
2435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436
  (eval $ac_try) 2>&5
2437
  ac_status=$?
2438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2440
  ac_cv_c_compiler_gnu=yes
2441
else
2442
  ac_cv_c_compiler_gnu=no
2443
fi
2444
fi
2445
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2446
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2447
 
2448
if test $ac_cv_c_compiler_gnu = yes; then
2449
  GCC=yes
2450
  ac_test_CFLAGS="${CFLAGS+set}"
2451
  ac_save_CFLAGS="$CFLAGS"
2452
  CFLAGS=
2453
  ac_test_CFLAGS=${CFLAGS+set}
2454
ac_save_CFLAGS=$CFLAGS
2455
CFLAGS="-g"
2456
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2458
if test "${ac_cv_prog_cc_g+set}" = set; then
2459
  echo $ECHO_N "(cached) $ECHO_C" >&6
2460
else
2461
  cat >conftest.$ac_ext <<_ACEOF
2462
/* confdefs.h.  */
2463
_ACEOF
2464
cat confdefs.h >>conftest.$ac_ext
2465
cat >>conftest.$ac_ext <<_ACEOF
2466
/* end confdefs.h.  */
2467
 
2468
int
2469
main ()
2470
{
2471
 
2472
  ;
2473
  return 0;
2474
}
2475
_ACEOF
2476
rm -f conftest.$ac_objext
2477
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478
  (eval $ac_compile) 2>conftest.er1
2479
  ac_status=$?
2480
  grep -v '^ *+' conftest.er1 >conftest.err
2481
  rm -f conftest.er1
2482
  cat conftest.err >&5
2483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484
  (exit $ac_status); } &&
2485
         { ac_try='test -z "$ac_c_werror_flag"
2486
                         || test ! -s conftest.err'
2487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488
  (eval $ac_try) 2>&5
2489
  ac_status=$?
2490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491
  (exit $ac_status); }; } &&
2492
         { ac_try='test -s conftest.$ac_objext'
2493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494
  (eval $ac_try) 2>&5
2495
  ac_status=$?
2496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
  (exit $ac_status); }; }; then
2498
  ac_cv_prog_cc_g=yes
2499
else
2500
  echo "$as_me: failed program was:" >&5
2501
sed 's/^/| /' conftest.$ac_ext >&5
2502
 
2503
ac_cv_prog_cc_g=no
2504
fi
2505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506
fi
2507
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2508
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2509
if test "$ac_test_CFLAGS" = set; then
2510
  CFLAGS=$ac_save_CFLAGS
2511
elif test $ac_cv_prog_cc_g = yes; then
2512
  if test "$GCC" = yes; then
2513
    CFLAGS="-g -O2"
2514
  else
2515
    CFLAGS="-g"
2516
  fi
2517
else
2518
  if test "$GCC" = yes; then
2519
    CFLAGS="-O2"
2520
  else
2521
    CFLAGS=
2522
  fi
2523
fi
2524
  if test "$ac_test_CFLAGS" = set; then
2525
    CFLAGS="$ac_save_CFLAGS"
2526
  elif test $ac_cv_prog_cc_g = yes; then
2527
    CFLAGS="-g -O2"
2528
  else
2529
    CFLAGS="-O2"
2530
  fi
2531
else
2532
  GCC=
2533
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2534
fi
2535
 
2536
 
2537
if test -n "$ac_tool_prefix"; then
2538
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2539
set dummy ${ac_tool_prefix}as; ac_word=$2
2540
echo "$as_me:$LINENO: checking for $ac_word" >&5
2541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542
if test "${ac_cv_prog_AS+set}" = set; then
2543
  echo $ECHO_N "(cached) $ECHO_C" >&6
2544
else
2545
  if test -n "$AS"; then
2546
  ac_cv_prog_AS="$AS" # Let the user override the test.
2547
else
2548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549
for as_dir in $PATH
2550
do
2551
  IFS=$as_save_IFS
2552
  test -z "$as_dir" && as_dir=.
2553
  for ac_exec_ext in '' $ac_executable_extensions; do
2554
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555
    ac_cv_prog_AS="${ac_tool_prefix}as"
2556
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557
    break 2
2558
  fi
2559
done
2560
done
2561
 
2562
fi
2563
fi
2564
AS=$ac_cv_prog_AS
2565
if test -n "$AS"; then
2566
  echo "$as_me:$LINENO: result: $AS" >&5
2567
echo "${ECHO_T}$AS" >&6
2568
else
2569
  echo "$as_me:$LINENO: result: no" >&5
2570
echo "${ECHO_T}no" >&6
2571
fi
2572
 
2573
fi
2574
if test -z "$ac_cv_prog_AS"; then
2575
  ac_ct_AS=$AS
2576
  # Extract the first word of "as", so it can be a program name with args.
2577
set dummy as; ac_word=$2
2578
echo "$as_me:$LINENO: checking for $ac_word" >&5
2579
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2580
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2581
  echo $ECHO_N "(cached) $ECHO_C" >&6
2582
else
2583
  if test -n "$ac_ct_AS"; then
2584
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2585
else
2586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587
for as_dir in $PATH
2588
do
2589
  IFS=$as_save_IFS
2590
  test -z "$as_dir" && as_dir=.
2591
  for ac_exec_ext in '' $ac_executable_extensions; do
2592
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593
    ac_cv_prog_ac_ct_AS="as"
2594
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595
    break 2
2596
  fi
2597
done
2598
done
2599
 
2600
fi
2601
fi
2602
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2603
if test -n "$ac_ct_AS"; then
2604
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2605
echo "${ECHO_T}$ac_ct_AS" >&6
2606
else
2607
  echo "$as_me:$LINENO: result: no" >&5
2608
echo "${ECHO_T}no" >&6
2609
fi
2610
 
2611
  AS=$ac_ct_AS
2612
else
2613
  AS="$ac_cv_prog_AS"
2614
fi
2615
 
2616
if test -n "$ac_tool_prefix"; then
2617
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2618
set dummy ${ac_tool_prefix}ar; ac_word=$2
2619
echo "$as_me:$LINENO: checking for $ac_word" >&5
2620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621
if test "${ac_cv_prog_AR+set}" = set; then
2622
  echo $ECHO_N "(cached) $ECHO_C" >&6
2623
else
2624
  if test -n "$AR"; then
2625
  ac_cv_prog_AR="$AR" # Let the user override the test.
2626
else
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628
for as_dir in $PATH
2629
do
2630
  IFS=$as_save_IFS
2631
  test -z "$as_dir" && as_dir=.
2632
  for ac_exec_ext in '' $ac_executable_extensions; do
2633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636
    break 2
2637
  fi
2638
done
2639
done
2640
 
2641
fi
2642
fi
2643
AR=$ac_cv_prog_AR
2644
if test -n "$AR"; then
2645
  echo "$as_me:$LINENO: result: $AR" >&5
2646
echo "${ECHO_T}$AR" >&6
2647
else
2648
  echo "$as_me:$LINENO: result: no" >&5
2649
echo "${ECHO_T}no" >&6
2650
fi
2651
 
2652
fi
2653
if test -z "$ac_cv_prog_AR"; then
2654
  ac_ct_AR=$AR
2655
  # Extract the first word of "ar", so it can be a program name with args.
2656
set dummy ar; ac_word=$2
2657
echo "$as_me:$LINENO: checking for $ac_word" >&5
2658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2659
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2660
  echo $ECHO_N "(cached) $ECHO_C" >&6
2661
else
2662
  if test -n "$ac_ct_AR"; then
2663
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2664
else
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
for as_dir in $PATH
2667
do
2668
  IFS=$as_save_IFS
2669
  test -z "$as_dir" && as_dir=.
2670
  for ac_exec_ext in '' $ac_executable_extensions; do
2671
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672
    ac_cv_prog_ac_ct_AR="ar"
2673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674
    break 2
2675
  fi
2676
done
2677
done
2678
 
2679
fi
2680
fi
2681
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2682
if test -n "$ac_ct_AR"; then
2683
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2684
echo "${ECHO_T}$ac_ct_AR" >&6
2685
else
2686
  echo "$as_me:$LINENO: result: no" >&5
2687
echo "${ECHO_T}no" >&6
2688
fi
2689
 
2690
  AR=$ac_ct_AR
2691
else
2692
  AR="$ac_cv_prog_AR"
2693
fi
2694
 
2695
if test -n "$ac_tool_prefix"; then
2696
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2697
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2698
echo "$as_me:$LINENO: checking for $ac_word" >&5
2699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700
if test "${ac_cv_prog_RANLIB+set}" = set; then
2701
  echo $ECHO_N "(cached) $ECHO_C" >&6
2702
else
2703
  if test -n "$RANLIB"; then
2704
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2705
else
2706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707
for as_dir in $PATH
2708
do
2709
  IFS=$as_save_IFS
2710
  test -z "$as_dir" && as_dir=.
2711
  for ac_exec_ext in '' $ac_executable_extensions; do
2712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715
    break 2
2716
  fi
2717
done
2718
done
2719
 
2720
fi
2721
fi
2722
RANLIB=$ac_cv_prog_RANLIB
2723
if test -n "$RANLIB"; then
2724
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2725
echo "${ECHO_T}$RANLIB" >&6
2726
else
2727
  echo "$as_me:$LINENO: result: no" >&5
2728
echo "${ECHO_T}no" >&6
2729
fi
2730
 
2731
fi
2732
if test -z "$ac_cv_prog_RANLIB"; then
2733
  ac_ct_RANLIB=$RANLIB
2734
  # Extract the first word of "ranlib", so it can be a program name with args.
2735
set dummy ranlib; ac_word=$2
2736
echo "$as_me:$LINENO: checking for $ac_word" >&5
2737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2739
  echo $ECHO_N "(cached) $ECHO_C" >&6
2740
else
2741
  if test -n "$ac_ct_RANLIB"; then
2742
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2743
else
2744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745
for as_dir in $PATH
2746
do
2747
  IFS=$as_save_IFS
2748
  test -z "$as_dir" && as_dir=.
2749
  for ac_exec_ext in '' $ac_executable_extensions; do
2750
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753
    break 2
2754
  fi
2755
done
2756
done
2757
 
2758
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2759
fi
2760
fi
2761
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2762
if test -n "$ac_ct_RANLIB"; then
2763
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2764
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2765
else
2766
  echo "$as_me:$LINENO: result: no" >&5
2767
echo "${ECHO_T}no" >&6
2768
fi
2769
 
2770
  RANLIB=$ac_ct_RANLIB
2771
else
2772
  RANLIB="$ac_cv_prog_RANLIB"
2773
fi
2774
 
2775
if test -n "$ac_tool_prefix"; then
2776
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2777
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2778
echo "$as_me:$LINENO: checking for $ac_word" >&5
2779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780
if test "${ac_cv_prog_READELF+set}" = set; then
2781
  echo $ECHO_N "(cached) $ECHO_C" >&6
2782
else
2783
  if test -n "$READELF"; then
2784
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2785
else
2786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787
for as_dir in $PATH
2788
do
2789
  IFS=$as_save_IFS
2790
  test -z "$as_dir" && as_dir=.
2791
  for ac_exec_ext in '' $ac_executable_extensions; do
2792
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2794
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795
    break 2
2796
  fi
2797
done
2798
done
2799
 
2800
fi
2801
fi
2802
READELF=$ac_cv_prog_READELF
2803
if test -n "$READELF"; then
2804
  echo "$as_me:$LINENO: result: $READELF" >&5
2805
echo "${ECHO_T}$READELF" >&6
2806
else
2807
  echo "$as_me:$LINENO: result: no" >&5
2808
echo "${ECHO_T}no" >&6
2809
fi
2810
 
2811
fi
2812
if test -z "$ac_cv_prog_READELF"; then
2813
  ac_ct_READELF=$READELF
2814
  # Extract the first word of "readelf", so it can be a program name with args.
2815
set dummy readelf; ac_word=$2
2816
echo "$as_me:$LINENO: checking for $ac_word" >&5
2817
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2818
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2819
  echo $ECHO_N "(cached) $ECHO_C" >&6
2820
else
2821
  if test -n "$ac_ct_READELF"; then
2822
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2823
else
2824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825
for as_dir in $PATH
2826
do
2827
  IFS=$as_save_IFS
2828
  test -z "$as_dir" && as_dir=.
2829
  for ac_exec_ext in '' $ac_executable_extensions; do
2830
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831
    ac_cv_prog_ac_ct_READELF="readelf"
2832
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833
    break 2
2834
  fi
2835
done
2836
done
2837
 
2838
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2839
fi
2840
fi
2841
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2842
if test -n "$ac_ct_READELF"; then
2843
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2844
echo "${ECHO_T}$ac_ct_READELF" >&6
2845
else
2846
  echo "$as_me:$LINENO: result: no" >&5
2847
echo "${ECHO_T}no" >&6
2848
fi
2849
 
2850
  READELF=$ac_ct_READELF
2851
else
2852
  READELF="$ac_cv_prog_READELF"
2853
fi
2854
 
2855
 
2856
# Find a good install program.  We prefer a C program (faster),
2857
# so one script is as good as another.  But avoid the broken or
2858
# incompatible versions:
2859
# SysV /etc/install, /usr/sbin/install
2860
# SunOS /usr/etc/install
2861
# IRIX /sbin/install
2862
# AIX /bin/install
2863
# AmigaOS /C/install, which installs bootblocks on floppy discs
2864
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867
# OS/2's system install, which has a completely different semantic
2868
# ./install, which can be erroneously created by make from ./install.sh.
2869
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2870
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2871
if test -z "$INSTALL"; then
2872
if test "${ac_cv_path_install+set}" = set; then
2873
  echo $ECHO_N "(cached) $ECHO_C" >&6
2874
else
2875
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876
for as_dir in $PATH
2877
do
2878
  IFS=$as_save_IFS
2879
  test -z "$as_dir" && as_dir=.
2880
  # Account for people who put trailing slashes in PATH elements.
2881
case $as_dir/ in
2882
  ./ | .// | /cC/* | \
2883
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2885
  /usr/ucb/* ) ;;
2886
  *)
2887
    # OSF1 and SCO ODT 3.0 have their own names for install.
2888
    # Don't use installbsd from OSF since it installs stuff as root
2889
    # by default.
2890
    for ac_prog in ginstall scoinst install; do
2891
      for ac_exec_ext in '' $ac_executable_extensions; do
2892
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893
          if test $ac_prog = install &&
2894
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895
            # AIX install.  It has an incompatible calling convention.
2896
            :
2897
          elif test $ac_prog = install &&
2898
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899
            # program-specific install script used by HP pwplus--don't use.
2900
            :
2901
          else
2902
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2903
            break 3
2904
          fi
2905
        fi
2906
      done
2907
    done
2908
    ;;
2909
esac
2910
done
2911
 
2912
 
2913
fi
2914
  if test "${ac_cv_path_install+set}" = set; then
2915
    INSTALL=$ac_cv_path_install
2916
  else
2917
    # As a last resort, use the slow shell script.  We don't cache a
2918
    # path for INSTALL within a source directory, because that will
2919
    # break other packages using the cache if that directory is
2920
    # removed, or if the path is relative.
2921
    INSTALL=$ac_install_sh
2922
  fi
2923
fi
2924
echo "$as_me:$LINENO: result: $INSTALL" >&5
2925
echo "${ECHO_T}$INSTALL" >&6
2926
 
2927
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928
# It thinks the first close brace ends the variable substitution.
2929
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930
 
2931
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2932
 
2933
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934
 
2935
 
2936
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2937
ac_given_INSTALL=$INSTALL
2938
 
2939
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2940
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2941
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2942
if test "${enable_maintainer_mode+set}" = set; then
2943
  enableval="$enable_maintainer_mode"
2944
  USE_MAINTAINER_MODE=$enableval
2945
else
2946
  USE_MAINTAINER_MODE=no
2947
fi;
2948
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2949
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2950
 
2951
 
2952
if test $USE_MAINTAINER_MODE = yes; then
2953
  MAINTAINER_MODE_TRUE=
2954
  MAINTAINER_MODE_FALSE='#'
2955
else
2956
  MAINTAINER_MODE_TRUE='#'
2957
  MAINTAINER_MODE_FALSE=
2958
fi
2959
 
2960
  MAINT=$MAINTAINER_MODE_TRUE
2961
 
2962
 
2963
# By default we simply use the C compiler to build assembly code.
2964
 
2965
test "${CCAS+set}" = set || CCAS=$CC
2966
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2967
 
2968
 
2969
 
2970
 
2971
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2972
# at least currently, we never actually build a program, so we never
2973
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2974
# fails, because we are probably configuring with a cross compiler
2975
# which can't create executables.  So we include AC_EXEEXT to keep
2976
# automake happy, but we don't execute it, since we don't care about
2977
# the result.
2978
if false; then
2979
 
2980
  dummy_var=1
2981
fi
2982
 
2983
. ${newlib_basedir}/configure.host
2984
 
2985
newlib_cflags="${newlib_cflags} -fno-builtin"
2986
 
2987
NEWLIB_CFLAGS=${newlib_cflags}
2988
 
2989
 
2990
LDFLAGS=${ldflags}
2991
 
2992
 
2993
 
2994
 
2995
if test x${newlib_elix_level} = x0; then
2996
  ELIX_LEVEL_0_TRUE=
2997
  ELIX_LEVEL_0_FALSE='#'
2998
else
2999
  ELIX_LEVEL_0_TRUE='#'
3000
  ELIX_LEVEL_0_FALSE=
3001
fi
3002
 
3003
 
3004
 
3005
if test x${newlib_elix_level} = x1; then
3006
  ELIX_LEVEL_1_TRUE=
3007
  ELIX_LEVEL_1_FALSE='#'
3008
else
3009
  ELIX_LEVEL_1_TRUE='#'
3010
  ELIX_LEVEL_1_FALSE=
3011
fi
3012
 
3013
 
3014
 
3015
if test x${newlib_elix_level} = x2; then
3016
  ELIX_LEVEL_2_TRUE=
3017
  ELIX_LEVEL_2_FALSE='#'
3018
else
3019
  ELIX_LEVEL_2_TRUE='#'
3020
  ELIX_LEVEL_2_FALSE=
3021
fi
3022
 
3023
 
3024
 
3025
if test x${newlib_elix_level} = x3; then
3026
  ELIX_LEVEL_3_TRUE=
3027
  ELIX_LEVEL_3_FALSE='#'
3028
else
3029
  ELIX_LEVEL_3_TRUE='#'
3030
  ELIX_LEVEL_3_FALSE=
3031
fi
3032
 
3033
 
3034
 
3035
if test x${newlib_elix_level} = x4; then
3036
  ELIX_LEVEL_4_TRUE=
3037
  ELIX_LEVEL_4_FALSE='#'
3038
else
3039
  ELIX_LEVEL_4_TRUE='#'
3040
  ELIX_LEVEL_4_FALSE=
3041
fi
3042
 
3043
 
3044
 
3045
 
3046
if test x${use_libtool} = xyes; then
3047
  USE_LIBTOOL_TRUE=
3048
  USE_LIBTOOL_FALSE='#'
3049
else
3050
  USE_LIBTOOL_TRUE='#'
3051
  USE_LIBTOOL_FALSE=
3052
fi
3053
 
3054
 
3055
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3056
# use oext, which is set in configure.host based on the target platform.
3057
OBJEXT=${oext}
3058
 
3059
 
3060
 
3061
 
3062
 
3063
 
3064
 
3065
 
3066
 
3067
 
3068
 
3069
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3070
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3071
if test "${lt_cv_path_SED+set}" = set; then
3072
  echo $ECHO_N "(cached) $ECHO_C" >&6
3073
else
3074
  # Loop through the user's path and test for sed and gsed.
3075
# Then use that list of sed's as ones to test for truncation.
3076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077
for as_dir in $PATH
3078
do
3079
  IFS=$as_save_IFS
3080
  test -z "$as_dir" && as_dir=.
3081
  for lt_ac_prog in sed gsed; do
3082
    for ac_exec_ext in '' $ac_executable_extensions; do
3083
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3084
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3085
      fi
3086
    done
3087
  done
3088
done
3089
IFS=$as_save_IFS
3090
lt_ac_max=0
3091
lt_ac_count=0
3092
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3093
# along with /bin/sed that truncates output.
3094
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3095
  test ! -f $lt_ac_sed && continue
3096
  cat /dev/null > conftest.in
3097
  lt_ac_count=0
3098
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3099
  # Check for GNU sed and select it if it is found.
3100
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3101
    lt_cv_path_SED=$lt_ac_sed
3102
    break
3103
  fi
3104
  while true; do
3105
    cat conftest.in conftest.in >conftest.tmp
3106
    mv conftest.tmp conftest.in
3107
    cp conftest.in conftest.nl
3108
    echo >>conftest.nl
3109
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3110
    cmp -s conftest.out conftest.nl || break
3111
    # 10000 chars as input seems more than enough
3112
    test $lt_ac_count -gt 10 && break
3113
    lt_ac_count=`expr $lt_ac_count + 1`
3114
    if test $lt_ac_count -gt $lt_ac_max; then
3115
      lt_ac_max=$lt_ac_count
3116
      lt_cv_path_SED=$lt_ac_sed
3117
    fi
3118
  done
3119
done
3120
 
3121
fi
3122
 
3123
SED=$lt_cv_path_SED
3124
 
3125
echo "$as_me:$LINENO: result: $SED" >&5
3126
echo "${ECHO_T}$SED" >&6
3127
 
3128
test -z "$SED" && SED=sed
3129
Xsed="$SED -e 1s/^X//"
3130
 
3131
 
3132
 
3133
 
3134
 
3135
 
3136
 
3137
 
3138
 
3139
 
3140
 
3141
if test "${use_libtool}" = "yes"; then
3142
enable_win32_dll=yes
3143
 
3144
case $host in
3145
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3146
  if test -n "$ac_tool_prefix"; then
3147
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3148
set dummy ${ac_tool_prefix}as; ac_word=$2
3149
echo "$as_me:$LINENO: checking for $ac_word" >&5
3150
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151
if test "${ac_cv_prog_AS+set}" = set; then
3152
  echo $ECHO_N "(cached) $ECHO_C" >&6
3153
else
3154
  if test -n "$AS"; then
3155
  ac_cv_prog_AS="$AS" # Let the user override the test.
3156
else
3157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158
for as_dir in $PATH
3159
do
3160
  IFS=$as_save_IFS
3161
  test -z "$as_dir" && as_dir=.
3162
  for ac_exec_ext in '' $ac_executable_extensions; do
3163
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164
    ac_cv_prog_AS="${ac_tool_prefix}as"
3165
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166
    break 2
3167
  fi
3168
done
3169
done
3170
 
3171
fi
3172
fi
3173
AS=$ac_cv_prog_AS
3174
if test -n "$AS"; then
3175
  echo "$as_me:$LINENO: result: $AS" >&5
3176
echo "${ECHO_T}$AS" >&6
3177
else
3178
  echo "$as_me:$LINENO: result: no" >&5
3179
echo "${ECHO_T}no" >&6
3180
fi
3181
 
3182
fi
3183
if test -z "$ac_cv_prog_AS"; then
3184
  ac_ct_AS=$AS
3185
  # Extract the first word of "as", so it can be a program name with args.
3186
set dummy as; ac_word=$2
3187
echo "$as_me:$LINENO: checking for $ac_word" >&5
3188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3190
  echo $ECHO_N "(cached) $ECHO_C" >&6
3191
else
3192
  if test -n "$ac_ct_AS"; then
3193
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3194
else
3195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196
for as_dir in $PATH
3197
do
3198
  IFS=$as_save_IFS
3199
  test -z "$as_dir" && as_dir=.
3200
  for ac_exec_ext in '' $ac_executable_extensions; do
3201
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202
    ac_cv_prog_ac_ct_AS="as"
3203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204
    break 2
3205
  fi
3206
done
3207
done
3208
 
3209
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3210
fi
3211
fi
3212
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3213
if test -n "$ac_ct_AS"; then
3214
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3215
echo "${ECHO_T}$ac_ct_AS" >&6
3216
else
3217
  echo "$as_me:$LINENO: result: no" >&5
3218
echo "${ECHO_T}no" >&6
3219
fi
3220
 
3221
  AS=$ac_ct_AS
3222
else
3223
  AS="$ac_cv_prog_AS"
3224
fi
3225
 
3226
  if test -n "$ac_tool_prefix"; then
3227
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3228
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3229
echo "$as_me:$LINENO: checking for $ac_word" >&5
3230
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3232
  echo $ECHO_N "(cached) $ECHO_C" >&6
3233
else
3234
  if test -n "$DLLTOOL"; then
3235
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3236
else
3237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238
for as_dir in $PATH
3239
do
3240
  IFS=$as_save_IFS
3241
  test -z "$as_dir" && as_dir=.
3242
  for ac_exec_ext in '' $ac_executable_extensions; do
3243
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3245
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246
    break 2
3247
  fi
3248
done
3249
done
3250
 
3251
fi
3252
fi
3253
DLLTOOL=$ac_cv_prog_DLLTOOL
3254
if test -n "$DLLTOOL"; then
3255
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3256
echo "${ECHO_T}$DLLTOOL" >&6
3257
else
3258
  echo "$as_me:$LINENO: result: no" >&5
3259
echo "${ECHO_T}no" >&6
3260
fi
3261
 
3262
fi
3263
if test -z "$ac_cv_prog_DLLTOOL"; then
3264
  ac_ct_DLLTOOL=$DLLTOOL
3265
  # Extract the first word of "dlltool", so it can be a program name with args.
3266
set dummy dlltool; ac_word=$2
3267
echo "$as_me:$LINENO: checking for $ac_word" >&5
3268
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3270
  echo $ECHO_N "(cached) $ECHO_C" >&6
3271
else
3272
  if test -n "$ac_ct_DLLTOOL"; then
3273
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3274
else
3275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276
for as_dir in $PATH
3277
do
3278
  IFS=$as_save_IFS
3279
  test -z "$as_dir" && as_dir=.
3280
  for ac_exec_ext in '' $ac_executable_extensions; do
3281
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3283
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284
    break 2
3285
  fi
3286
done
3287
done
3288
 
3289
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3290
fi
3291
fi
3292
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3293
if test -n "$ac_ct_DLLTOOL"; then
3294
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3295
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3296
else
3297
  echo "$as_me:$LINENO: result: no" >&5
3298
echo "${ECHO_T}no" >&6
3299
fi
3300
 
3301
  DLLTOOL=$ac_ct_DLLTOOL
3302
else
3303
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3304
fi
3305
 
3306
  if test -n "$ac_tool_prefix"; then
3307
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3308
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3309
echo "$as_me:$LINENO: checking for $ac_word" >&5
3310
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3311
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3312
  echo $ECHO_N "(cached) $ECHO_C" >&6
3313
else
3314
  if test -n "$OBJDUMP"; then
3315
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3316
else
3317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318
for as_dir in $PATH
3319
do
3320
  IFS=$as_save_IFS
3321
  test -z "$as_dir" && as_dir=.
3322
  for ac_exec_ext in '' $ac_executable_extensions; do
3323
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3325
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3326
    break 2
3327
  fi
3328
done
3329
done
3330
 
3331
fi
3332
fi
3333
OBJDUMP=$ac_cv_prog_OBJDUMP
3334
if test -n "$OBJDUMP"; then
3335
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3336
echo "${ECHO_T}$OBJDUMP" >&6
3337
else
3338
  echo "$as_me:$LINENO: result: no" >&5
3339
echo "${ECHO_T}no" >&6
3340
fi
3341
 
3342
fi
3343
if test -z "$ac_cv_prog_OBJDUMP"; then
3344
  ac_ct_OBJDUMP=$OBJDUMP
3345
  # Extract the first word of "objdump", so it can be a program name with args.
3346
set dummy objdump; ac_word=$2
3347
echo "$as_me:$LINENO: checking for $ac_word" >&5
3348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3350
  echo $ECHO_N "(cached) $ECHO_C" >&6
3351
else
3352
  if test -n "$ac_ct_OBJDUMP"; then
3353
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3354
else
3355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356
for as_dir in $PATH
3357
do
3358
  IFS=$as_save_IFS
3359
  test -z "$as_dir" && as_dir=.
3360
  for ac_exec_ext in '' $ac_executable_extensions; do
3361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3363
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364
    break 2
3365
  fi
3366
done
3367
done
3368
 
3369
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3370
fi
3371
fi
3372
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3373
if test -n "$ac_ct_OBJDUMP"; then
3374
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3375
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3376
else
3377
  echo "$as_me:$LINENO: result: no" >&5
3378
echo "${ECHO_T}no" >&6
3379
fi
3380
 
3381
  OBJDUMP=$ac_ct_OBJDUMP
3382
else
3383
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3384
fi
3385
 
3386
  ;;
3387
esac
3388
 
3389
test -z "$AS" && AS=as
3390
 
3391
 
3392
 
3393
 
3394
 
3395
test -z "$DLLTOOL" && DLLTOOL=dlltool
3396
 
3397
 
3398
 
3399
 
3400
 
3401
test -z "$OBJDUMP" && OBJDUMP=objdump
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
 
3409
case `pwd` in
3410
  *\ * | *\     *)
3411
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3412
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3413
esac
3414
 
3415
 
3416
 
3417
macro_version='2.2.6'
3418
macro_revision='1.3012'
3419
 
3420
 
3421
 
3422
 
3423
 
3424
 
3425
 
3426
 
3427
 
3428
 
3429
 
3430
 
3431
 
3432
ltmain="$ac_aux_dir/ltmain.sh"
3433
 
3434
ac_ext=c
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439
if test -n "$ac_tool_prefix"; then
3440
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442
echo "$as_me:$LINENO: checking for $ac_word" >&5
3443
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3444
if test "${ac_cv_prog_CC+set}" = set; then
3445
  echo $ECHO_N "(cached) $ECHO_C" >&6
3446
else
3447
  if test -n "$CC"; then
3448
  ac_cv_prog_CC="$CC" # Let the user override the test.
3449
else
3450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451
for as_dir in $PATH
3452
do
3453
  IFS=$as_save_IFS
3454
  test -z "$as_dir" && as_dir=.
3455
  for ac_exec_ext in '' $ac_executable_extensions; do
3456
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459
    break 2
3460
  fi
3461
done
3462
done
3463
 
3464
fi
3465
fi
3466
CC=$ac_cv_prog_CC
3467
if test -n "$CC"; then
3468
  echo "$as_me:$LINENO: result: $CC" >&5
3469
echo "${ECHO_T}$CC" >&6
3470
else
3471
  echo "$as_me:$LINENO: result: no" >&5
3472
echo "${ECHO_T}no" >&6
3473
fi
3474
 
3475
fi
3476
if test -z "$ac_cv_prog_CC"; then
3477
  ac_ct_CC=$CC
3478
  # Extract the first word of "gcc", so it can be a program name with args.
3479
set dummy gcc; ac_word=$2
3480
echo "$as_me:$LINENO: checking for $ac_word" >&5
3481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3482
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3483
  echo $ECHO_N "(cached) $ECHO_C" >&6
3484
else
3485
  if test -n "$ac_ct_CC"; then
3486
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487
else
3488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489
for as_dir in $PATH
3490
do
3491
  IFS=$as_save_IFS
3492
  test -z "$as_dir" && as_dir=.
3493
  for ac_exec_ext in '' $ac_executable_extensions; do
3494
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495
    ac_cv_prog_ac_ct_CC="gcc"
3496
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497
    break 2
3498
  fi
3499
done
3500
done
3501
 
3502
fi
3503
fi
3504
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505
if test -n "$ac_ct_CC"; then
3506
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3507
echo "${ECHO_T}$ac_ct_CC" >&6
3508
else
3509
  echo "$as_me:$LINENO: result: no" >&5
3510
echo "${ECHO_T}no" >&6
3511
fi
3512
 
3513
  CC=$ac_ct_CC
3514
else
3515
  CC="$ac_cv_prog_CC"
3516
fi
3517
 
3518
if test -z "$CC"; then
3519
  if test -n "$ac_tool_prefix"; then
3520
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3521
set dummy ${ac_tool_prefix}cc; ac_word=$2
3522
echo "$as_me:$LINENO: checking for $ac_word" >&5
3523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524
if test "${ac_cv_prog_CC+set}" = set; then
3525
  echo $ECHO_N "(cached) $ECHO_C" >&6
3526
else
3527
  if test -n "$CC"; then
3528
  ac_cv_prog_CC="$CC" # Let the user override the test.
3529
else
3530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531
for as_dir in $PATH
3532
do
3533
  IFS=$as_save_IFS
3534
  test -z "$as_dir" && as_dir=.
3535
  for ac_exec_ext in '' $ac_executable_extensions; do
3536
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3538
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539
    break 2
3540
  fi
3541
done
3542
done
3543
 
3544
fi
3545
fi
3546
CC=$ac_cv_prog_CC
3547
if test -n "$CC"; then
3548
  echo "$as_me:$LINENO: result: $CC" >&5
3549
echo "${ECHO_T}$CC" >&6
3550
else
3551
  echo "$as_me:$LINENO: result: no" >&5
3552
echo "${ECHO_T}no" >&6
3553
fi
3554
 
3555
fi
3556
if test -z "$ac_cv_prog_CC"; then
3557
  ac_ct_CC=$CC
3558
  # Extract the first word of "cc", so it can be a program name with args.
3559
set dummy cc; ac_word=$2
3560
echo "$as_me:$LINENO: checking for $ac_word" >&5
3561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3562
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3563
  echo $ECHO_N "(cached) $ECHO_C" >&6
3564
else
3565
  if test -n "$ac_ct_CC"; then
3566
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567
else
3568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569
for as_dir in $PATH
3570
do
3571
  IFS=$as_save_IFS
3572
  test -z "$as_dir" && as_dir=.
3573
  for ac_exec_ext in '' $ac_executable_extensions; do
3574
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575
    ac_cv_prog_ac_ct_CC="cc"
3576
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577
    break 2
3578
  fi
3579
done
3580
done
3581
 
3582
fi
3583
fi
3584
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3585
if test -n "$ac_ct_CC"; then
3586
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3587
echo "${ECHO_T}$ac_ct_CC" >&6
3588
else
3589
  echo "$as_me:$LINENO: result: no" >&5
3590
echo "${ECHO_T}no" >&6
3591
fi
3592
 
3593
  CC=$ac_ct_CC
3594
else
3595
  CC="$ac_cv_prog_CC"
3596
fi
3597
 
3598
fi
3599
if test -z "$CC"; then
3600
  # Extract the first word of "cc", so it can be a program name with args.
3601
set dummy cc; ac_word=$2
3602
echo "$as_me:$LINENO: checking for $ac_word" >&5
3603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604
if test "${ac_cv_prog_CC+set}" = set; then
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
3606
else
3607
  if test -n "$CC"; then
3608
  ac_cv_prog_CC="$CC" # Let the user override the test.
3609
else
3610
  ac_prog_rejected=no
3611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612
for as_dir in $PATH
3613
do
3614
  IFS=$as_save_IFS
3615
  test -z "$as_dir" && as_dir=.
3616
  for ac_exec_ext in '' $ac_executable_extensions; do
3617
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3619
       ac_prog_rejected=yes
3620
       continue
3621
     fi
3622
    ac_cv_prog_CC="cc"
3623
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624
    break 2
3625
  fi
3626
done
3627
done
3628
 
3629
if test $ac_prog_rejected = yes; then
3630
  # We found a bogon in the path, so make sure we never use it.
3631
  set dummy $ac_cv_prog_CC
3632
  shift
3633
  if test $# != 0; then
3634
    # We chose a different compiler from the bogus one.
3635
    # However, it has the same basename, so the bogon will be chosen
3636
    # first if we set CC to just the basename; use the full file name.
3637
    shift
3638
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3639
  fi
3640
fi
3641
fi
3642
fi
3643
CC=$ac_cv_prog_CC
3644
if test -n "$CC"; then
3645
  echo "$as_me:$LINENO: result: $CC" >&5
3646
echo "${ECHO_T}$CC" >&6
3647
else
3648
  echo "$as_me:$LINENO: result: no" >&5
3649
echo "${ECHO_T}no" >&6
3650
fi
3651
 
3652
fi
3653
if test -z "$CC"; then
3654
  if test -n "$ac_tool_prefix"; then
3655
  for ac_prog in cl
3656
  do
3657
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3658
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3659
echo "$as_me:$LINENO: checking for $ac_word" >&5
3660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661
if test "${ac_cv_prog_CC+set}" = set; then
3662
  echo $ECHO_N "(cached) $ECHO_C" >&6
3663
else
3664
  if test -n "$CC"; then
3665
  ac_cv_prog_CC="$CC" # Let the user override the test.
3666
else
3667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668
for as_dir in $PATH
3669
do
3670
  IFS=$as_save_IFS
3671
  test -z "$as_dir" && as_dir=.
3672
  for ac_exec_ext in '' $ac_executable_extensions; do
3673
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3675
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676
    break 2
3677
  fi
3678
done
3679
done
3680
 
3681
fi
3682
fi
3683
CC=$ac_cv_prog_CC
3684
if test -n "$CC"; then
3685
  echo "$as_me:$LINENO: result: $CC" >&5
3686
echo "${ECHO_T}$CC" >&6
3687
else
3688
  echo "$as_me:$LINENO: result: no" >&5
3689
echo "${ECHO_T}no" >&6
3690
fi
3691
 
3692
    test -n "$CC" && break
3693
  done
3694
fi
3695
if test -z "$CC"; then
3696
  ac_ct_CC=$CC
3697
  for ac_prog in cl
3698
do
3699
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3700
set dummy $ac_prog; ac_word=$2
3701
echo "$as_me:$LINENO: checking for $ac_word" >&5
3702
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3704
  echo $ECHO_N "(cached) $ECHO_C" >&6
3705
else
3706
  if test -n "$ac_ct_CC"; then
3707
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3708
else
3709
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710
for as_dir in $PATH
3711
do
3712
  IFS=$as_save_IFS
3713
  test -z "$as_dir" && as_dir=.
3714
  for ac_exec_ext in '' $ac_executable_extensions; do
3715
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716
    ac_cv_prog_ac_ct_CC="$ac_prog"
3717
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718
    break 2
3719
  fi
3720
done
3721
done
3722
 
3723
fi
3724
fi
3725
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3726
if test -n "$ac_ct_CC"; then
3727
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3728
echo "${ECHO_T}$ac_ct_CC" >&6
3729
else
3730
  echo "$as_me:$LINENO: result: no" >&5
3731
echo "${ECHO_T}no" >&6
3732
fi
3733
 
3734
  test -n "$ac_ct_CC" && break
3735
done
3736
 
3737
  CC=$ac_ct_CC
3738
fi
3739
 
3740
fi
3741
 
3742
 
3743
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3744
See \`config.log' for more details." >&5
3745
echo "$as_me: error: no acceptable C compiler found in \$PATH
3746
See \`config.log' for more details." >&2;}
3747
   { (exit 1); exit 1; }; }
3748
 
3749
# Provide some information about the compiler.
3750
echo "$as_me:$LINENO:" \
3751
     "checking for C compiler version" >&5
3752
ac_compiler=`set X $ac_compile; echo $2`
3753
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3754
  (eval $ac_compiler --version &5) 2>&5
3755
  ac_status=$?
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757
  (exit $ac_status); }
3758
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3759
  (eval $ac_compiler -v &5) 2>&5
3760
  ac_status=$?
3761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762
  (exit $ac_status); }
3763
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3764
  (eval $ac_compiler -V &5) 2>&5
3765
  ac_status=$?
3766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767
  (exit $ac_status); }
3768
 
3769
cat >conftest.$ac_ext <<_ACEOF
3770
/* confdefs.h.  */
3771
_ACEOF
3772
cat confdefs.h >>conftest.$ac_ext
3773
cat >>conftest.$ac_ext <<_ACEOF
3774
/* end confdefs.h.  */
3775
 
3776
int
3777
main ()
3778
{
3779
 
3780
  ;
3781
  return 0;
3782
}
3783
_ACEOF
3784
ac_clean_files_save=$ac_clean_files
3785
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3786
# Try to create an executable without -o first, disregard a.out.
3787
# It will help us diagnose broken compilers, and finding out an intuition
3788
# of exeext.
3789
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3790
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3791
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3792
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3793
  (eval $ac_link_default) 2>&5
3794
  ac_status=$?
3795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796
  (exit $ac_status); }; then
3797
  # Find the output, starting from the most likely.  This scheme is
3798
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3799
# resort.
3800
 
3801
# Be careful to initialize this variable, since it used to be cached.
3802
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3803
ac_cv_exeext=
3804
# b.out is created by i960 compilers.
3805
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3806
do
3807
  test -f "$ac_file" || continue
3808
  case $ac_file in
3809
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3810
        ;;
3811
    conftest.$ac_ext )
3812
        # This is the source file.
3813
        ;;
3814
    [ab].out )
3815
        # We found the default executable, but exeext='' is most
3816
        # certainly right.
3817
        break;;
3818
    *.* )
3819
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3821
        # but it would be cool to find out if it's true.  Does anybody
3822
        # maintain Libtool? --akim.
3823
        export ac_cv_exeext
3824
        break;;
3825
    * )
3826
        break;;
3827
  esac
3828
done
3829
else
3830
  echo "$as_me: failed program was:" >&5
3831
sed 's/^/| /' conftest.$ac_ext >&5
3832
 
3833
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3834
See \`config.log' for more details." >&5
3835
echo "$as_me: error: C compiler cannot create executables
3836
See \`config.log' for more details." >&2;}
3837
   { (exit 77); exit 77; }; }
3838
fi
3839
 
3840
ac_exeext=$ac_cv_exeext
3841
echo "$as_me:$LINENO: result: $ac_file" >&5
3842
echo "${ECHO_T}$ac_file" >&6
3843
 
3844
# Check the compiler produces executables we can run.  If not, either
3845
# the compiler is broken, or we cross compile.
3846
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3847
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3848
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3849
# If not cross compiling, check that we can run a simple program.
3850
if test "$cross_compiling" != yes; then
3851
  if { ac_try='./$ac_file'
3852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853
  (eval $ac_try) 2>&5
3854
  ac_status=$?
3855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856
  (exit $ac_status); }; }; then
3857
    cross_compiling=no
3858
  else
3859
    if test "$cross_compiling" = maybe; then
3860
        cross_compiling=yes
3861
    else
3862
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3863
If you meant to cross compile, use \`--host'.
3864
See \`config.log' for more details." >&5
3865
echo "$as_me: error: cannot run C compiled programs.
3866
If you meant to cross compile, use \`--host'.
3867
See \`config.log' for more details." >&2;}
3868
   { (exit 1); exit 1; }; }
3869
    fi
3870
  fi
3871
fi
3872
echo "$as_me:$LINENO: result: yes" >&5
3873
echo "${ECHO_T}yes" >&6
3874
 
3875
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3876
ac_clean_files=$ac_clean_files_save
3877
# Check the compiler produces executables we can run.  If not, either
3878
# the compiler is broken, or we cross compile.
3879
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3880
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3881
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3882
echo "${ECHO_T}$cross_compiling" >&6
3883
 
3884
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3885
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3887
  (eval $ac_link) 2>&5
3888
  ac_status=$?
3889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890
  (exit $ac_status); }; then
3891
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3892
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3893
# work properly (i.e., refer to `conftest.exe'), while it won't with
3894
# `rm'.
3895
for ac_file in conftest.exe conftest conftest.*; do
3896
  test -f "$ac_file" || continue
3897
  case $ac_file in
3898
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3899
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900
          export ac_cv_exeext
3901
          break;;
3902
    * ) break;;
3903
  esac
3904
done
3905
else
3906
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3907
See \`config.log' for more details." >&5
3908
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3909
See \`config.log' for more details." >&2;}
3910
   { (exit 1); exit 1; }; }
3911
fi
3912
 
3913
rm -f conftest$ac_cv_exeext
3914
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3915
echo "${ECHO_T}$ac_cv_exeext" >&6
3916
 
3917
rm -f conftest.$ac_ext
3918
EXEEXT=$ac_cv_exeext
3919
ac_exeext=$EXEEXT
3920
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3921
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3922
if test "${ac_cv_objext+set}" = set; then
3923
  echo $ECHO_N "(cached) $ECHO_C" >&6
3924
else
3925
  cat >conftest.$ac_ext <<_ACEOF
3926
/* confdefs.h.  */
3927
_ACEOF
3928
cat confdefs.h >>conftest.$ac_ext
3929
cat >>conftest.$ac_ext <<_ACEOF
3930
/* end confdefs.h.  */
3931
 
3932
int
3933
main ()
3934
{
3935
 
3936
  ;
3937
  return 0;
3938
}
3939
_ACEOF
3940
rm -f conftest.o conftest.obj
3941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3942
  (eval $ac_compile) 2>&5
3943
  ac_status=$?
3944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945
  (exit $ac_status); }; then
3946
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3947
  case $ac_file in
3948
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3949
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950
       break;;
3951
  esac
3952
done
3953
else
3954
  echo "$as_me: failed program was:" >&5
3955
sed 's/^/| /' conftest.$ac_ext >&5
3956
 
3957
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3958
See \`config.log' for more details." >&5
3959
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3960
See \`config.log' for more details." >&2;}
3961
   { (exit 1); exit 1; }; }
3962
fi
3963
 
3964
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3965
fi
3966
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3967
echo "${ECHO_T}$ac_cv_objext" >&6
3968
OBJEXT=$ac_cv_objext
3969
ac_objext=$OBJEXT
3970
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3971
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3972
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3973
  echo $ECHO_N "(cached) $ECHO_C" >&6
3974
else
3975
  cat >conftest.$ac_ext <<_ACEOF
3976
/* confdefs.h.  */
3977
_ACEOF
3978
cat confdefs.h >>conftest.$ac_ext
3979
cat >>conftest.$ac_ext <<_ACEOF
3980
/* end confdefs.h.  */
3981
 
3982
int
3983
main ()
3984
{
3985
#ifndef __GNUC__
3986
       choke me
3987
#endif
3988
 
3989
  ;
3990
  return 0;
3991
}
3992
_ACEOF
3993
rm -f conftest.$ac_objext
3994
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995
  (eval $ac_compile) 2>conftest.er1
3996
  ac_status=$?
3997
  grep -v '^ *+' conftest.er1 >conftest.err
3998
  rm -f conftest.er1
3999
  cat conftest.err >&5
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001
  (exit $ac_status); } &&
4002
         { ac_try='test -z "$ac_c_werror_flag"
4003
                         || test ! -s conftest.err'
4004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005
  (eval $ac_try) 2>&5
4006
  ac_status=$?
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); }; } &&
4009
         { ac_try='test -s conftest.$ac_objext'
4010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011
  (eval $ac_try) 2>&5
4012
  ac_status=$?
4013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014
  (exit $ac_status); }; }; then
4015
  ac_compiler_gnu=yes
4016
else
4017
  echo "$as_me: failed program was:" >&5
4018
sed 's/^/| /' conftest.$ac_ext >&5
4019
 
4020
ac_compiler_gnu=no
4021
fi
4022
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4024
 
4025
fi
4026
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4027
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4028
GCC=`test $ac_compiler_gnu = yes && echo yes`
4029
ac_test_CFLAGS=${CFLAGS+set}
4030
ac_save_CFLAGS=$CFLAGS
4031
CFLAGS="-g"
4032
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4033
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4034
if test "${ac_cv_prog_cc_g+set}" = set; then
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
4036
else
4037
  cat >conftest.$ac_ext <<_ACEOF
4038
/* confdefs.h.  */
4039
_ACEOF
4040
cat confdefs.h >>conftest.$ac_ext
4041
cat >>conftest.$ac_ext <<_ACEOF
4042
/* end confdefs.h.  */
4043
 
4044
int
4045
main ()
4046
{
4047
 
4048
  ;
4049
  return 0;
4050
}
4051
_ACEOF
4052
rm -f conftest.$ac_objext
4053
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054
  (eval $ac_compile) 2>conftest.er1
4055
  ac_status=$?
4056
  grep -v '^ *+' conftest.er1 >conftest.err
4057
  rm -f conftest.er1
4058
  cat conftest.err >&5
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
  (exit $ac_status); } &&
4061
         { ac_try='test -z "$ac_c_werror_flag"
4062
                         || test ! -s conftest.err'
4063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064
  (eval $ac_try) 2>&5
4065
  ac_status=$?
4066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
  (exit $ac_status); }; } &&
4068
         { ac_try='test -s conftest.$ac_objext'
4069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070
  (eval $ac_try) 2>&5
4071
  ac_status=$?
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
  (exit $ac_status); }; }; then
4074
  ac_cv_prog_cc_g=yes
4075
else
4076
  echo "$as_me: failed program was:" >&5
4077
sed 's/^/| /' conftest.$ac_ext >&5
4078
 
4079
ac_cv_prog_cc_g=no
4080
fi
4081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082
fi
4083
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4084
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4085
if test "$ac_test_CFLAGS" = set; then
4086
  CFLAGS=$ac_save_CFLAGS
4087
elif test $ac_cv_prog_cc_g = yes; then
4088
  if test "$GCC" = yes; then
4089
    CFLAGS="-g -O2"
4090
  else
4091
    CFLAGS="-g"
4092
  fi
4093
else
4094
  if test "$GCC" = yes; then
4095
    CFLAGS="-O2"
4096
  else
4097
    CFLAGS=
4098
  fi
4099
fi
4100
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4101
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4102
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4103
  echo $ECHO_N "(cached) $ECHO_C" >&6
4104
else
4105
  ac_cv_prog_cc_stdc=no
4106
ac_save_CC=$CC
4107
cat >conftest.$ac_ext <<_ACEOF
4108
/* confdefs.h.  */
4109
_ACEOF
4110
cat confdefs.h >>conftest.$ac_ext
4111
cat >>conftest.$ac_ext <<_ACEOF
4112
/* end confdefs.h.  */
4113
#include 
4114
#include 
4115
#include 
4116
#include 
4117
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4118
struct buf { int x; };
4119
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120
static char *e (p, i)
4121
     char **p;
4122
     int i;
4123
{
4124
  return p[i];
4125
}
4126
static char *f (char * (*g) (char **, int), char **p, ...)
4127
{
4128
  char *s;
4129
  va_list v;
4130
  va_start (v,p);
4131
  s = g (p, va_arg (v,int));
4132
  va_end (v);
4133
  return s;
4134
}
4135
 
4136
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4137
   function prototypes and stuff, but not '\xHH' hex character constants.
4138
   These don't provoke an error unfortunately, instead are silently treated
4139
   as 'x'.  The following induces an error, until -std1 is added to get
4140
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4141
   array size at least.  It's necessary to write '\x00'==0 to get something
4142
   that's true only with -std1.  */
4143
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4144
 
4145
int test (int i, double x);
4146
struct s1 {int (*f) (int a);};
4147
struct s2 {int (*f) (double a);};
4148
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4149
int argc;
4150
char **argv;
4151
int
4152
main ()
4153
{
4154
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4155
  ;
4156
  return 0;
4157
}
4158
_ACEOF
4159
# Don't try gcc -ansi; that turns off useful extensions and
4160
# breaks some systems' header files.
4161
# AIX                   -qlanglvl=ansi
4162
# Ultrix and OSF/1      -std1
4163
# HP-UX 10.20 and later -Ae
4164
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4165
# SVR4                  -Xc -D__EXTENSIONS__
4166
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167
do
4168
  CC="$ac_save_CC $ac_arg"
4169
  rm -f conftest.$ac_objext
4170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171
  (eval $ac_compile) 2>conftest.er1
4172
  ac_status=$?
4173
  grep -v '^ *+' conftest.er1 >conftest.err
4174
  rm -f conftest.er1
4175
  cat conftest.err >&5
4176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177
  (exit $ac_status); } &&
4178
         { ac_try='test -z "$ac_c_werror_flag"
4179
                         || test ! -s conftest.err'
4180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181
  (eval $ac_try) 2>&5
4182
  ac_status=$?
4183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184
  (exit $ac_status); }; } &&
4185
         { ac_try='test -s conftest.$ac_objext'
4186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187
  (eval $ac_try) 2>&5
4188
  ac_status=$?
4189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190
  (exit $ac_status); }; }; then
4191
  ac_cv_prog_cc_stdc=$ac_arg
4192
break
4193
else
4194
  echo "$as_me: failed program was:" >&5
4195
sed 's/^/| /' conftest.$ac_ext >&5
4196
 
4197
fi
4198
rm -f conftest.err conftest.$ac_objext
4199
done
4200
rm -f conftest.$ac_ext conftest.$ac_objext
4201
CC=$ac_save_CC
4202
 
4203
fi
4204
 
4205
case "x$ac_cv_prog_cc_stdc" in
4206
  x|xno)
4207
    echo "$as_me:$LINENO: result: none needed" >&5
4208
echo "${ECHO_T}none needed" >&6 ;;
4209
  *)
4210
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4211
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4212
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4213
esac
4214
 
4215
# Some people use a C++ compiler to compile C.  Since we use `exit',
4216
# in C++ we need to declare it.  In case someone uses the same compiler
4217
# for both compiling C and C++ we need to have the C++ compiler decide
4218
# the declaration of exit, since it's the most demanding environment.
4219
cat >conftest.$ac_ext <<_ACEOF
4220
#ifndef __cplusplus
4221
  choke me
4222
#endif
4223
_ACEOF
4224
rm -f conftest.$ac_objext
4225
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226
  (eval $ac_compile) 2>conftest.er1
4227
  ac_status=$?
4228
  grep -v '^ *+' conftest.er1 >conftest.err
4229
  rm -f conftest.er1
4230
  cat conftest.err >&5
4231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232
  (exit $ac_status); } &&
4233
         { ac_try='test -z "$ac_c_werror_flag"
4234
                         || test ! -s conftest.err'
4235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236
  (eval $ac_try) 2>&5
4237
  ac_status=$?
4238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239
  (exit $ac_status); }; } &&
4240
         { ac_try='test -s conftest.$ac_objext'
4241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242
  (eval $ac_try) 2>&5
4243
  ac_status=$?
4244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
  (exit $ac_status); }; }; then
4246
  for ac_declaration in \
4247
   '' \
4248
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4249
   'extern "C" void std::exit (int); using std::exit;' \
4250
   'extern "C" void exit (int) throw ();' \
4251
   'extern "C" void exit (int);' \
4252
   'void exit (int);'
4253
do
4254
  cat >conftest.$ac_ext <<_ACEOF
4255
/* confdefs.h.  */
4256
_ACEOF
4257
cat confdefs.h >>conftest.$ac_ext
4258
cat >>conftest.$ac_ext <<_ACEOF
4259
/* end confdefs.h.  */
4260
$ac_declaration
4261
#include 
4262
int
4263
main ()
4264
{
4265
exit (42);
4266
  ;
4267
  return 0;
4268
}
4269
_ACEOF
4270
rm -f conftest.$ac_objext
4271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272
  (eval $ac_compile) 2>conftest.er1
4273
  ac_status=$?
4274
  grep -v '^ *+' conftest.er1 >conftest.err
4275
  rm -f conftest.er1
4276
  cat conftest.err >&5
4277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278
  (exit $ac_status); } &&
4279
         { ac_try='test -z "$ac_c_werror_flag"
4280
                         || test ! -s conftest.err'
4281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282
  (eval $ac_try) 2>&5
4283
  ac_status=$?
4284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285
  (exit $ac_status); }; } &&
4286
         { ac_try='test -s conftest.$ac_objext'
4287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288
  (eval $ac_try) 2>&5
4289
  ac_status=$?
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291
  (exit $ac_status); }; }; then
4292
  :
4293
else
4294
  echo "$as_me: failed program was:" >&5
4295
sed 's/^/| /' conftest.$ac_ext >&5
4296
 
4297
continue
4298
fi
4299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4300
  cat >conftest.$ac_ext <<_ACEOF
4301
/* confdefs.h.  */
4302
_ACEOF
4303
cat confdefs.h >>conftest.$ac_ext
4304
cat >>conftest.$ac_ext <<_ACEOF
4305
/* end confdefs.h.  */
4306
$ac_declaration
4307
int
4308
main ()
4309
{
4310
exit (42);
4311
  ;
4312
  return 0;
4313
}
4314
_ACEOF
4315
rm -f conftest.$ac_objext
4316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317
  (eval $ac_compile) 2>conftest.er1
4318
  ac_status=$?
4319
  grep -v '^ *+' conftest.er1 >conftest.err
4320
  rm -f conftest.er1
4321
  cat conftest.err >&5
4322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323
  (exit $ac_status); } &&
4324
         { ac_try='test -z "$ac_c_werror_flag"
4325
                         || test ! -s conftest.err'
4326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327
  (eval $ac_try) 2>&5
4328
  ac_status=$?
4329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
  (exit $ac_status); }; } &&
4331
         { ac_try='test -s conftest.$ac_objext'
4332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333
  (eval $ac_try) 2>&5
4334
  ac_status=$?
4335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
  (exit $ac_status); }; }; then
4337
  break
4338
else
4339
  echo "$as_me: failed program was:" >&5
4340
sed 's/^/| /' conftest.$ac_ext >&5
4341
 
4342
fi
4343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344
done
4345
rm -f conftest*
4346
if test -n "$ac_declaration"; then
4347
  echo '#ifdef __cplusplus' >>confdefs.h
4348
  echo $ac_declaration      >>confdefs.h
4349
  echo '#endif'             >>confdefs.h
4350
fi
4351
 
4352
else
4353
  echo "$as_me: failed program was:" >&5
4354
sed 's/^/| /' conftest.$ac_ext >&5
4355
 
4356
fi
4357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358
ac_ext=c
4359
ac_cpp='$CPP $CPPFLAGS'
4360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363
 
4364
depcc="$CC"   am_compiler_list=
4365
 
4366
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4367
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4368
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4369
  echo $ECHO_N "(cached) $ECHO_C" >&6
4370
else
4371
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4372
  # We make a subdir and do the tests there.  Otherwise we can end up
4373
  # making bogus files that we don't know about and never remove.  For
4374
  # instance it was reported that on HP-UX the gcc test will end up
4375
  # making a dummy file named `D' -- because `-MD' means `put the output
4376
  # in D'.
4377
  mkdir conftest.dir
4378
  # Copy depcomp to subdir because otherwise we won't find it if we're
4379
  # using a relative directory.
4380
  cp "$am_depcomp" conftest.dir
4381
  cd conftest.dir
4382
  # We will build objects and dependencies in a subdirectory because
4383
  # it helps to detect inapplicable dependency modes.  For instance
4384
  # both Tru64's cc and ICC support -MD to output dependencies as a
4385
  # side effect of compilation, but ICC will put the dependencies in
4386
  # the current directory while Tru64 will put them in the object
4387
  # directory.
4388
  mkdir sub
4389
 
4390
  am_cv_CC_dependencies_compiler_type=none
4391
  if test "$am_compiler_list" = ""; then
4392
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4393
  fi
4394
  for depmode in $am_compiler_list; do
4395
    # Setup a source with many dependencies, because some compilers
4396
    # like to wrap large dependency lists on column 80 (with \), and
4397
    # we should not choose a depcomp mode which is confused by this.
4398
    #
4399
    # We need to recreate these files for each test, as the compiler may
4400
    # overwrite some of them when testing with obscure command lines.
4401
    # This happens at least with the AIX C compiler.
4402
    : > sub/conftest.c
4403
    for i in 1 2 3 4 5 6; do
4404
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4405
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4406
      # Solaris 8's {/usr,}/bin/sh.
4407
      touch sub/conftst$i.h
4408
    done
4409
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4410
 
4411
    case $depmode in
4412
    nosideeffect)
4413
      # after this tag, mechanisms are not by side-effect, so they'll
4414
      # only be used when explicitly requested
4415
      if test "x$enable_dependency_tracking" = xyes; then
4416
        continue
4417
      else
4418
        break
4419
      fi
4420
      ;;
4421
    none) break ;;
4422
    esac
4423
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4424
    # mode.  It turns out that the SunPro C++ compiler does not properly
4425
    # handle `-M -o', and we need to detect this.
4426
    if depmode=$depmode \
4427
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4428
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4429
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4430
         >/dev/null 2>conftest.err &&
4431
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4432
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4433
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4434
      # icc doesn't choke on unknown options, it will just issue warnings
4435
      # or remarks (even with -Werror).  So we grep stderr for any message
4436
      # that says an option was ignored or not supported.
4437
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4438
      #   icc: Command line warning: ignoring option '-M'; no argument required
4439
      # The diagnosis changed in icc 8.0:
4440
      #   icc: Command line remark: option '-MP' not supported
4441
      if (grep 'ignoring option' conftest.err ||
4442
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4443
        am_cv_CC_dependencies_compiler_type=$depmode
4444
        break
4445
      fi
4446
    fi
4447
  done
4448
 
4449
  cd ..
4450
  rm -rf conftest.dir
4451
else
4452
  am_cv_CC_dependencies_compiler_type=none
4453
fi
4454
 
4455
fi
4456
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4457
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4458
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4459
 
4460
 
4461
 
4462
if
4463
  test "x$enable_dependency_tracking" != xno \
4464
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465
  am__fastdepCC_TRUE=
4466
  am__fastdepCC_FALSE='#'
4467
else
4468
  am__fastdepCC_TRUE='#'
4469
  am__fastdepCC_FALSE=
4470
fi
4471
 
4472
 
4473
echo "$as_me:$LINENO: checking for egrep" >&5
4474
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4475
if test "${ac_cv_prog_egrep+set}" = set; then
4476
  echo $ECHO_N "(cached) $ECHO_C" >&6
4477
else
4478
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4479
    then ac_cv_prog_egrep='grep -E'
4480
    else ac_cv_prog_egrep='egrep'
4481
    fi
4482
fi
4483
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4484
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4485
 EGREP=$ac_cv_prog_egrep
4486
 
4487
 
4488
echo "$as_me:$LINENO: checking for fgrep" >&5
4489
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4490
if test "${ac_cv_prog_fgrep+set}" = set; then
4491
  echo $ECHO_N "(cached) $ECHO_C" >&6
4492
else
4493
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4494
    then ac_cv_prog_fgrep='grep -F'
4495
    else ac_cv_prog_fgrep='fgrep'
4496
    fi
4497
fi
4498
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4499
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4500
 FGREP=$ac_cv_prog_fgrep
4501
 
4502
 
4503
test -z "$GREP" && GREP=grep
4504
 
4505
 
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
 
4517
 
4518
 
4519
 
4520
 
4521
 
4522
 
4523
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4524
if test "${with_gnu_ld+set}" = set; then
4525
  withval="$with_gnu_ld"
4526
  test "$withval" = no || with_gnu_ld=yes
4527
else
4528
  with_gnu_ld=no
4529
fi;
4530
ac_prog=ld
4531
if test "$GCC" = yes; then
4532
  # Check if gcc -print-prog-name=ld gives a path.
4533
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4534
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4535
  case $host in
4536
  *-*-mingw*)
4537
    # gcc leaves a trailing carriage return which upsets mingw
4538
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4539
  *)
4540
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4541
  esac
4542
  case $ac_prog in
4543
    # Accept absolute paths.
4544
    [\\/]* | ?:[\\/]*)
4545
      re_direlt='/[^/][^/]*/\.\./'
4546
      # Canonicalize the pathname of ld
4547
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4548
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4549
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4550
      done
4551
      test -z "$LD" && LD="$ac_prog"
4552
      ;;
4553
  "")
4554
    # If it fails, then pretend we aren't using GCC.
4555
    ac_prog=ld
4556
    ;;
4557
  *)
4558
    # If it is relative, then search for the first ld in PATH.
4559
    with_gnu_ld=unknown
4560
    ;;
4561
  esac
4562
elif test "$with_gnu_ld" = yes; then
4563
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4564
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4565
else
4566
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4567
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4568
fi
4569
if test "${lt_cv_path_LD+set}" = set; then
4570
  echo $ECHO_N "(cached) $ECHO_C" >&6
4571
else
4572
  if test -z "$LD"; then
4573
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4574
  for ac_dir in $PATH; do
4575
    IFS="$lt_save_ifs"
4576
    test -z "$ac_dir" && ac_dir=.
4577
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4578
      lt_cv_path_LD="$ac_dir/$ac_prog"
4579
      # Check to see if the program is GNU ld.  I'd rather use --version,
4580
      # but apparently some variants of GNU ld only accept -v.
4581
      # Break only if it was the GNU/non-GNU ld that we prefer.
4582
      case `"$lt_cv_path_LD" -v 2>&1 
4583
      *GNU* | *'with BFD'*)
4584
        test "$with_gnu_ld" != no && break
4585
        ;;
4586
      *)
4587
        test "$with_gnu_ld" != yes && break
4588
        ;;
4589
      esac
4590
    fi
4591
  done
4592
  IFS="$lt_save_ifs"
4593
else
4594
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4595
fi
4596
fi
4597
 
4598
LD="$lt_cv_path_LD"
4599
if test -n "$LD"; then
4600
  echo "$as_me:$LINENO: result: $LD" >&5
4601
echo "${ECHO_T}$LD" >&6
4602
else
4603
  echo "$as_me:$LINENO: result: no" >&5
4604
echo "${ECHO_T}no" >&6
4605
fi
4606
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4607
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4608
   { (exit 1); exit 1; }; }
4609
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4610
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4611
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4612
  echo $ECHO_N "(cached) $ECHO_C" >&6
4613
else
4614
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4615
case `$LD -v 2>&1 
4616
*GNU* | *'with BFD'*)
4617
  lt_cv_prog_gnu_ld=yes
4618
  ;;
4619
*)
4620
  lt_cv_prog_gnu_ld=no
4621
  ;;
4622
esac
4623
fi
4624
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4625
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4626
with_gnu_ld=$lt_cv_prog_gnu_ld
4627
 
4628
 
4629
 
4630
 
4631
 
4632
 
4633
 
4634
 
4635
 
4636
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4637
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4638
if test "${lt_cv_path_NM+set}" = set; then
4639
  echo $ECHO_N "(cached) $ECHO_C" >&6
4640
else
4641
  if test -n "$NM"; then
4642
  # Let the user override the test.
4643
  lt_cv_path_NM="$NM"
4644
else
4645
  lt_nm_to_check="${ac_tool_prefix}nm"
4646
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4647
    lt_nm_to_check="$lt_nm_to_check nm"
4648
  fi
4649
  for lt_tmp_nm in $lt_nm_to_check; do
4650
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4651
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4652
      IFS="$lt_save_ifs"
4653
      test -z "$ac_dir" && ac_dir=.
4654
      tmp_nm="$ac_dir/$lt_tmp_nm"
4655
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4656
        # Check to see if the nm accepts a BSD-compat flag.
4657
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4658
        #   nm: unknown option "B" ignored
4659
        # Tru64's nm complains that /dev/null is an invalid object file
4660
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4661
        */dev/null* | *'Invalid file or object type'*)
4662
          lt_cv_path_NM="$tmp_nm -B"
4663
          break
4664
          ;;
4665
        *)
4666
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4667
          */dev/null*)
4668
            lt_cv_path_NM="$tmp_nm -p"
4669
            break
4670
            ;;
4671
          *)
4672
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4673
            continue # so that we can try to find one that supports BSD flags
4674
            ;;
4675
          esac
4676
          ;;
4677
        esac
4678
      fi
4679
    done
4680
    IFS="$lt_save_ifs"
4681
  done
4682
  : ${lt_cv_path_NM=no}
4683
fi
4684
fi
4685
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4686
echo "${ECHO_T}$lt_cv_path_NM" >&6
4687
if test "$lt_cv_path_NM" != "no"; then
4688
  NM="$lt_cv_path_NM"
4689
else
4690
  # Didn't find any BSD compatible name lister, look for dumpbin.
4691
  if test -n "$ac_tool_prefix"; then
4692
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4693
  do
4694
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696
echo "$as_me:$LINENO: checking for $ac_word" >&5
4697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4699
  echo $ECHO_N "(cached) $ECHO_C" >&6
4700
else
4701
  if test -n "$DUMPBIN"; then
4702
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4703
else
4704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705
for as_dir in $PATH
4706
do
4707
  IFS=$as_save_IFS
4708
  test -z "$as_dir" && as_dir=.
4709
  for ac_exec_ext in '' $ac_executable_extensions; do
4710
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4712
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713
    break 2
4714
  fi
4715
done
4716
done
4717
 
4718
fi
4719
fi
4720
DUMPBIN=$ac_cv_prog_DUMPBIN
4721
if test -n "$DUMPBIN"; then
4722
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4723
echo "${ECHO_T}$DUMPBIN" >&6
4724
else
4725
  echo "$as_me:$LINENO: result: no" >&5
4726
echo "${ECHO_T}no" >&6
4727
fi
4728
 
4729
    test -n "$DUMPBIN" && break
4730
  done
4731
fi
4732
if test -z "$DUMPBIN"; then
4733
  ac_ct_DUMPBIN=$DUMPBIN
4734
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4735
do
4736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4737
set dummy $ac_prog; ac_word=$2
4738
echo "$as_me:$LINENO: checking for $ac_word" >&5
4739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4741
  echo $ECHO_N "(cached) $ECHO_C" >&6
4742
else
4743
  if test -n "$ac_ct_DUMPBIN"; then
4744
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4745
else
4746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747
for as_dir in $PATH
4748
do
4749
  IFS=$as_save_IFS
4750
  test -z "$as_dir" && as_dir=.
4751
  for ac_exec_ext in '' $ac_executable_extensions; do
4752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755
    break 2
4756
  fi
4757
done
4758
done
4759
 
4760
fi
4761
fi
4762
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4763
if test -n "$ac_ct_DUMPBIN"; then
4764
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4765
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4766
else
4767
  echo "$as_me:$LINENO: result: no" >&5
4768
echo "${ECHO_T}no" >&6
4769
fi
4770
 
4771
  test -n "$ac_ct_DUMPBIN" && break
4772
done
4773
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4774
 
4775
  DUMPBIN=$ac_ct_DUMPBIN
4776
fi
4777
 
4778
 
4779
  if test "$DUMPBIN" != ":"; then
4780
    NM="$DUMPBIN"
4781
  fi
4782
fi
4783
test -z "$NM" && NM=nm
4784
 
4785
 
4786
 
4787
 
4788
 
4789
 
4790
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4791
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4792
if test "${lt_cv_nm_interface+set}" = set; then
4793
  echo $ECHO_N "(cached) $ECHO_C" >&6
4794
else
4795
  lt_cv_nm_interface="BSD nm"
4796
  echo "int some_variable = 0;" > conftest.$ac_ext
4797
  (eval echo "\"\$as_me:4797: $ac_compile\"" >&5)
4798
  (eval "$ac_compile" 2>conftest.err)
4799
  cat conftest.err >&5
4800
  (eval echo "\"\$as_me:4800: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4801
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4802
  cat conftest.err >&5
4803
  (eval echo "\"\$as_me:4803: output\"" >&5)
4804
  cat conftest.out >&5
4805
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4806
    lt_cv_nm_interface="MS dumpbin"
4807
  fi
4808
  rm -f conftest*
4809
fi
4810
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4811
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4812
 
4813
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4814
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4815
LN_S=$as_ln_s
4816
if test "$LN_S" = "ln -s"; then
4817
  echo "$as_me:$LINENO: result: yes" >&5
4818
echo "${ECHO_T}yes" >&6
4819
else
4820
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4821
echo "${ECHO_T}no, using $LN_S" >&6
4822
fi
4823
 
4824
# find the maximum length of command line arguments
4825
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4826
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4827
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4828
  echo $ECHO_N "(cached) $ECHO_C" >&6
4829
else
4830
    i=0
4831
  teststring="ABCD"
4832
 
4833
  case $build_os in
4834
  msdosdjgpp*)
4835
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4836
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4837
    # during glob expansion).  Even if it were fixed, the result of this
4838
    # check would be larger than it should be.
4839
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4840
    ;;
4841
 
4842
  gnu*)
4843
    # Under GNU Hurd, this test is not required because there is
4844
    # no limit to the length of command line arguments.
4845
    # Libtool will interpret -1 as no limit whatsoever
4846
    lt_cv_sys_max_cmd_len=-1;
4847
    ;;
4848
 
4849
  cygwin* | mingw* | cegcc*)
4850
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4851
    # about 5 minutes as the teststring grows exponentially.
4852
    # Worse, since 9x/ME are not pre-emptively multitasking,
4853
    # you end up with a "frozen" computer, even though with patience
4854
    # the test eventually succeeds (with a max line length of 256k).
4855
    # Instead, let's just punt: use the minimum linelength reported by
4856
    # all of the supported platforms: 8192 (on NT/2K/XP).
4857
    lt_cv_sys_max_cmd_len=8192;
4858
    ;;
4859
 
4860
  amigaos*)
4861
    # On AmigaOS with pdksh, this test takes hours, literally.
4862
    # So we just punt and use a minimum line length of 8192.
4863
    lt_cv_sys_max_cmd_len=8192;
4864
    ;;
4865
 
4866
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4867
    # This has been around since 386BSD, at least.  Likely further.
4868
    if test -x /sbin/sysctl; then
4869
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4870
    elif test -x /usr/sbin/sysctl; then
4871
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4872
    else
4873
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4874
    fi
4875
    # And add a safety zone
4876
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4877
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4878
    ;;
4879
 
4880
  interix*)
4881
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4882
    lt_cv_sys_max_cmd_len=196608
4883
    ;;
4884
 
4885
  osf*)
4886
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4887
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4888
    # nice to cause kernel panics so lets avoid the loop below.
4889
    # First set a reasonable default.
4890
    lt_cv_sys_max_cmd_len=16384
4891
    #
4892
    if test -x /sbin/sysconfig; then
4893
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4894
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4895
      esac
4896
    fi
4897
    ;;
4898
  sco3.2v5*)
4899
    lt_cv_sys_max_cmd_len=102400
4900
    ;;
4901
  sysv5* | sco5v6* | sysv4.2uw2*)
4902
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4903
    if test -n "$kargmax"; then
4904
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4905
    else
4906
      lt_cv_sys_max_cmd_len=32768
4907
    fi
4908
    ;;
4909
  *)
4910
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4911
    if test -n "$lt_cv_sys_max_cmd_len"; then
4912
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4913
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4914
    else
4915
      # Make teststring a little bigger before we do anything with it.
4916
      # a 1K string should be a reasonable start.
4917
      for i in 1 2 3 4 5 6 7 8 ; do
4918
        teststring=$teststring$teststring
4919
      done
4920
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4921
      # If test is not a shell built-in, we'll probably end up computing a
4922
      # maximum length that is only half of the actual maximum length, but
4923
      # we can't tell.
4924
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4925
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4926
              test $i != 17 # 1/2 MB should be enough
4927
      do
4928
        i=`expr $i + 1`
4929
        teststring=$teststring$teststring
4930
      done
4931
      # Only check the string length outside the loop.
4932
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4933
      teststring=
4934
      # Add a significant safety factor because C++ compilers can tack on
4935
      # massive amounts of additional arguments before passing them to the
4936
      # linker.  It appears as though 1/2 is a usable value.
4937
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4938
    fi
4939
    ;;
4940
  esac
4941
 
4942
fi
4943
 
4944
if test -n $lt_cv_sys_max_cmd_len ; then
4945
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4946
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4947
else
4948
  echo "$as_me:$LINENO: result: none" >&5
4949
echo "${ECHO_T}none" >&6
4950
fi
4951
max_cmd_len=$lt_cv_sys_max_cmd_len
4952
 
4953
 
4954
 
4955
 
4956
 
4957
 
4958
: ${CP="cp -f"}
4959
: ${MV="mv -f"}
4960
: ${RM="rm -f"}
4961
 
4962
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4963
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4964
# Try some XSI features
4965
xsi_shell=no
4966
( _lt_dummy="a/b/c"
4967
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4968
      = c,a/b,, \
4969
    && eval 'test $(( 1 + 1 )) -eq 2 \
4970
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4971
  && xsi_shell=yes
4972
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4973
echo "${ECHO_T}$xsi_shell" >&6
4974
 
4975
 
4976
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4977
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4978
lt_shell_append=no
4979
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4980
    >/dev/null 2>&1 \
4981
  && lt_shell_append=yes
4982
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4983
echo "${ECHO_T}$lt_shell_append" >&6
4984
 
4985
 
4986
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4987
  lt_unset=unset
4988
else
4989
  lt_unset=false
4990
fi
4991
 
4992
 
4993
 
4994
 
4995
 
4996
# test EBCDIC or ASCII
4997
case `echo X|tr X '\101'` in
4998
 A) # ASCII based system
4999
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5000
  lt_SP2NL='tr \040 \012'
5001
  lt_NL2SP='tr \015\012 \040\040'
5002
  ;;
5003
 *) # EBCDIC based system
5004
  lt_SP2NL='tr \100 \n'
5005
  lt_NL2SP='tr \r\n \100\100'
5006
  ;;
5007
esac
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5018
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5019
if test "${lt_cv_ld_reload_flag+set}" = set; then
5020
  echo $ECHO_N "(cached) $ECHO_C" >&6
5021
else
5022
  lt_cv_ld_reload_flag='-r'
5023
fi
5024
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5025
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5026
reload_flag=$lt_cv_ld_reload_flag
5027
case $reload_flag in
5028
"" | " "*) ;;
5029
*) reload_flag=" $reload_flag" ;;
5030
esac
5031
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5032
case $host_os in
5033
  darwin*)
5034
    if test "$GCC" = yes; then
5035
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5036
    else
5037
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5038
    fi
5039
    ;;
5040
esac
5041
 
5042
 
5043
 
5044
 
5045
 
5046
 
5047
 
5048
 
5049
 
5050
if test -n "$ac_tool_prefix"; then
5051
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5052
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5053
echo "$as_me:$LINENO: checking for $ac_word" >&5
5054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5056
  echo $ECHO_N "(cached) $ECHO_C" >&6
5057
else
5058
  if test -n "$OBJDUMP"; then
5059
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5060
else
5061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062
for as_dir in $PATH
5063
do
5064
  IFS=$as_save_IFS
5065
  test -z "$as_dir" && as_dir=.
5066
  for ac_exec_ext in '' $ac_executable_extensions; do
5067
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5069
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070
    break 2
5071
  fi
5072
done
5073
done
5074
 
5075
fi
5076
fi
5077
OBJDUMP=$ac_cv_prog_OBJDUMP
5078
if test -n "$OBJDUMP"; then
5079
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5080
echo "${ECHO_T}$OBJDUMP" >&6
5081
else
5082
  echo "$as_me:$LINENO: result: no" >&5
5083
echo "${ECHO_T}no" >&6
5084
fi
5085
 
5086
fi
5087
if test -z "$ac_cv_prog_OBJDUMP"; then
5088
  ac_ct_OBJDUMP=$OBJDUMP
5089
  # Extract the first word of "objdump", so it can be a program name with args.
5090
set dummy objdump; ac_word=$2
5091
echo "$as_me:$LINENO: checking for $ac_word" >&5
5092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5094
  echo $ECHO_N "(cached) $ECHO_C" >&6
5095
else
5096
  if test -n "$ac_ct_OBJDUMP"; then
5097
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5098
else
5099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100
for as_dir in $PATH
5101
do
5102
  IFS=$as_save_IFS
5103
  test -z "$as_dir" && as_dir=.
5104
  for ac_exec_ext in '' $ac_executable_extensions; do
5105
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108
    break 2
5109
  fi
5110
done
5111
done
5112
 
5113
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5114
fi
5115
fi
5116
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5117
if test -n "$ac_ct_OBJDUMP"; then
5118
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5119
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5120
else
5121
  echo "$as_me:$LINENO: result: no" >&5
5122
echo "${ECHO_T}no" >&6
5123
fi
5124
 
5125
  OBJDUMP=$ac_ct_OBJDUMP
5126
else
5127
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5128
fi
5129
 
5130
test -z "$OBJDUMP" && OBJDUMP=objdump
5131
 
5132
 
5133
 
5134
 
5135
 
5136
 
5137
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5138
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5139
if test "${lt_cv_deplibs_check_method+set}" = set; then
5140
  echo $ECHO_N "(cached) $ECHO_C" >&6
5141
else
5142
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5143
lt_cv_file_magic_test_file=
5144
lt_cv_deplibs_check_method='unknown'
5145
# Need to set the preceding variable on all platforms that support
5146
# interlibrary dependencies.
5147
# 'none' -- dependencies not supported.
5148
# `unknown' -- same as none, but documents that we really don't know.
5149
# 'pass_all' -- all dependencies passed with no checks.
5150
# 'test_compile' -- check by making test program.
5151
# 'file_magic [[regex]]' -- check by looking for files in library path
5152
# which responds to the $file_magic_cmd with a given extended regex.
5153
# If you have `file' or equivalent on your system and you're not sure
5154
# whether `pass_all' will *always* work, you probably want this one.
5155
 
5156
case $host_os in
5157
aix[4-9]*)
5158
  lt_cv_deplibs_check_method=pass_all
5159
  ;;
5160
 
5161
beos*)
5162
  lt_cv_deplibs_check_method=pass_all
5163
  ;;
5164
 
5165
bsdi[45]*)
5166
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5167
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5168
  lt_cv_file_magic_test_file=/shlib/libc.so
5169
  ;;
5170
 
5171
cygwin*)
5172
  # func_win32_libid is a shell function defined in ltmain.sh
5173
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174
  lt_cv_file_magic_cmd='func_win32_libid'
5175
  ;;
5176
 
5177
mingw* | pw32*)
5178
  # Base MSYS/MinGW do not provide the 'file' command needed by
5179
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5180
  # unless we find 'file', for example because we are cross-compiling.
5181
  if ( file / ) >/dev/null 2>&1; then
5182
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5183
    lt_cv_file_magic_cmd='func_win32_libid'
5184
  else
5185
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5186
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5187
  fi
5188
  ;;
5189
 
5190
cegcc)
5191
  # use the weaker test based on 'objdump'. See mingw*.
5192
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5193
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5194
  ;;
5195
 
5196
darwin* | rhapsody*)
5197
  lt_cv_deplibs_check_method=pass_all
5198
  ;;
5199
 
5200
freebsd* | dragonfly*)
5201
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5202
    case $host_cpu in
5203
    i*86 )
5204
      # Not sure whether the presence of OpenBSD here was a mistake.
5205
      # Let's accept both of them until this is cleared up.
5206
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5207
      lt_cv_file_magic_cmd=/usr/bin/file
5208
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5209
      ;;
5210
    esac
5211
  else
5212
    lt_cv_deplibs_check_method=pass_all
5213
  fi
5214
  ;;
5215
 
5216
gnu*)
5217
  lt_cv_deplibs_check_method=pass_all
5218
  ;;
5219
 
5220
hpux10.20* | hpux11*)
5221
  lt_cv_file_magic_cmd=/usr/bin/file
5222
  case $host_cpu in
5223
  ia64*)
5224
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5225
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5226
    ;;
5227
  hppa*64*)
5228
    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]'
5229
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5230
    ;;
5231
  *)
5232
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5233
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5234
    ;;
5235
  esac
5236
  ;;
5237
 
5238
interix[3-9]*)
5239
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5240
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5241
  ;;
5242
 
5243
irix5* | irix6* | nonstopux*)
5244
  case $LD in
5245
  *-32|*"-32 ") libmagic=32-bit;;
5246
  *-n32|*"-n32 ") libmagic=N32;;
5247
  *-64|*"-64 ") libmagic=64-bit;;
5248
  *) libmagic=never-match;;
5249
  esac
5250
  lt_cv_deplibs_check_method=pass_all
5251
  ;;
5252
 
5253
# This must be Linux ELF.
5254
linux* | k*bsd*-gnu)
5255
  lt_cv_deplibs_check_method=pass_all
5256
  ;;
5257
 
5258
netbsd*)
5259
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5260
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5261
  else
5262
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5263
  fi
5264
  ;;
5265
 
5266
newos6*)
5267
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5268
  lt_cv_file_magic_cmd=/usr/bin/file
5269
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5270
  ;;
5271
 
5272
*nto* | *qnx*)
5273
  lt_cv_deplibs_check_method=pass_all
5274
  ;;
5275
 
5276
openbsd*)
5277
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5278
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5279
  else
5280
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5281
  fi
5282
  ;;
5283
 
5284
osf3* | osf4* | osf5*)
5285
  lt_cv_deplibs_check_method=pass_all
5286
  ;;
5287
 
5288
rdos*)
5289
  lt_cv_deplibs_check_method=pass_all
5290
  ;;
5291
 
5292
solaris*)
5293
  lt_cv_deplibs_check_method=pass_all
5294
  ;;
5295
 
5296
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5297
  lt_cv_deplibs_check_method=pass_all
5298
  ;;
5299
 
5300
sysv4 | sysv4.3*)
5301
  case $host_vendor in
5302
  motorola)
5303
    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]'
5304
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5305
    ;;
5306
  ncr)
5307
    lt_cv_deplibs_check_method=pass_all
5308
    ;;
5309
  sequent)
5310
    lt_cv_file_magic_cmd='/bin/file'
5311
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5312
    ;;
5313
  sni)
5314
    lt_cv_file_magic_cmd='/bin/file'
5315
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5316
    lt_cv_file_magic_test_file=/lib/libc.so
5317
    ;;
5318
  siemens)
5319
    lt_cv_deplibs_check_method=pass_all
5320
    ;;
5321
  pc)
5322
    lt_cv_deplibs_check_method=pass_all
5323
    ;;
5324
  esac
5325
  ;;
5326
 
5327
tpf*)
5328
  lt_cv_deplibs_check_method=pass_all
5329
  ;;
5330
esac
5331
 
5332
fi
5333
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5334
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5335
file_magic_cmd=$lt_cv_file_magic_cmd
5336
deplibs_check_method=$lt_cv_deplibs_check_method
5337
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5338
 
5339
 
5340
 
5341
 
5342
 
5343
 
5344
 
5345
 
5346
 
5347
 
5348
 
5349
 
5350
if test -n "$ac_tool_prefix"; then
5351
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5352
set dummy ${ac_tool_prefix}ar; ac_word=$2
5353
echo "$as_me:$LINENO: checking for $ac_word" >&5
5354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355
if test "${ac_cv_prog_AR+set}" = set; then
5356
  echo $ECHO_N "(cached) $ECHO_C" >&6
5357
else
5358
  if test -n "$AR"; then
5359
  ac_cv_prog_AR="$AR" # Let the user override the test.
5360
else
5361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362
for as_dir in $PATH
5363
do
5364
  IFS=$as_save_IFS
5365
  test -z "$as_dir" && as_dir=.
5366
  for ac_exec_ext in '' $ac_executable_extensions; do
5367
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370
    break 2
5371
  fi
5372
done
5373
done
5374
 
5375
fi
5376
fi
5377
AR=$ac_cv_prog_AR
5378
if test -n "$AR"; then
5379
  echo "$as_me:$LINENO: result: $AR" >&5
5380
echo "${ECHO_T}$AR" >&6
5381
else
5382
  echo "$as_me:$LINENO: result: no" >&5
5383
echo "${ECHO_T}no" >&6
5384
fi
5385
 
5386
fi
5387
if test -z "$ac_cv_prog_AR"; then
5388
  ac_ct_AR=$AR
5389
  # Extract the first word of "ar", so it can be a program name with args.
5390
set dummy ar; ac_word=$2
5391
echo "$as_me:$LINENO: checking for $ac_word" >&5
5392
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394
  echo $ECHO_N "(cached) $ECHO_C" >&6
5395
else
5396
  if test -n "$ac_ct_AR"; then
5397
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398
else
5399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400
for as_dir in $PATH
5401
do
5402
  IFS=$as_save_IFS
5403
  test -z "$as_dir" && as_dir=.
5404
  for ac_exec_ext in '' $ac_executable_extensions; do
5405
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406
    ac_cv_prog_ac_ct_AR="ar"
5407
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408
    break 2
5409
  fi
5410
done
5411
done
5412
 
5413
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5414
fi
5415
fi
5416
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417
if test -n "$ac_ct_AR"; then
5418
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419
echo "${ECHO_T}$ac_ct_AR" >&6
5420
else
5421
  echo "$as_me:$LINENO: result: no" >&5
5422
echo "${ECHO_T}no" >&6
5423
fi
5424
 
5425
  AR=$ac_ct_AR
5426
else
5427
  AR="$ac_cv_prog_AR"
5428
fi
5429
 
5430
test -z "$AR" && AR=ar
5431
test -z "$AR_FLAGS" && AR_FLAGS=cru
5432
 
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
if test -n "$ac_tool_prefix"; then
5444
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5445
set dummy ${ac_tool_prefix}strip; ac_word=$2
5446
echo "$as_me:$LINENO: checking for $ac_word" >&5
5447
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448
if test "${ac_cv_prog_STRIP+set}" = set; then
5449
  echo $ECHO_N "(cached) $ECHO_C" >&6
5450
else
5451
  if test -n "$STRIP"; then
5452
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5453
else
5454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455
for as_dir in $PATH
5456
do
5457
  IFS=$as_save_IFS
5458
  test -z "$as_dir" && as_dir=.
5459
  for ac_exec_ext in '' $ac_executable_extensions; do
5460
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5462
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463
    break 2
5464
  fi
5465
done
5466
done
5467
 
5468
fi
5469
fi
5470
STRIP=$ac_cv_prog_STRIP
5471
if test -n "$STRIP"; then
5472
  echo "$as_me:$LINENO: result: $STRIP" >&5
5473
echo "${ECHO_T}$STRIP" >&6
5474
else
5475
  echo "$as_me:$LINENO: result: no" >&5
5476
echo "${ECHO_T}no" >&6
5477
fi
5478
 
5479
fi
5480
if test -z "$ac_cv_prog_STRIP"; then
5481
  ac_ct_STRIP=$STRIP
5482
  # Extract the first word of "strip", so it can be a program name with args.
5483
set dummy strip; ac_word=$2
5484
echo "$as_me:$LINENO: checking for $ac_word" >&5
5485
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5487
  echo $ECHO_N "(cached) $ECHO_C" >&6
5488
else
5489
  if test -n "$ac_ct_STRIP"; then
5490
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5491
else
5492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493
for as_dir in $PATH
5494
do
5495
  IFS=$as_save_IFS
5496
  test -z "$as_dir" && as_dir=.
5497
  for ac_exec_ext in '' $ac_executable_extensions; do
5498
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499
    ac_cv_prog_ac_ct_STRIP="strip"
5500
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501
    break 2
5502
  fi
5503
done
5504
done
5505
 
5506
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5507
fi
5508
fi
5509
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5510
if test -n "$ac_ct_STRIP"; then
5511
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5512
echo "${ECHO_T}$ac_ct_STRIP" >&6
5513
else
5514
  echo "$as_me:$LINENO: result: no" >&5
5515
echo "${ECHO_T}no" >&6
5516
fi
5517
 
5518
  STRIP=$ac_ct_STRIP
5519
else
5520
  STRIP="$ac_cv_prog_STRIP"
5521
fi
5522
 
5523
test -z "$STRIP" && STRIP=:
5524
 
5525
 
5526
 
5527
 
5528
 
5529
 
5530
if test -n "$ac_tool_prefix"; then
5531
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5532
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5533
echo "$as_me:$LINENO: checking for $ac_word" >&5
5534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5535
if test "${ac_cv_prog_RANLIB+set}" = set; then
5536
  echo $ECHO_N "(cached) $ECHO_C" >&6
5537
else
5538
  if test -n "$RANLIB"; then
5539
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5540
else
5541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542
for as_dir in $PATH
5543
do
5544
  IFS=$as_save_IFS
5545
  test -z "$as_dir" && as_dir=.
5546
  for ac_exec_ext in '' $ac_executable_extensions; do
5547
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5549
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550
    break 2
5551
  fi
5552
done
5553
done
5554
 
5555
fi
5556
fi
5557
RANLIB=$ac_cv_prog_RANLIB
5558
if test -n "$RANLIB"; then
5559
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5560
echo "${ECHO_T}$RANLIB" >&6
5561
else
5562
  echo "$as_me:$LINENO: result: no" >&5
5563
echo "${ECHO_T}no" >&6
5564
fi
5565
 
5566
fi
5567
if test -z "$ac_cv_prog_RANLIB"; then
5568
  ac_ct_RANLIB=$RANLIB
5569
  # Extract the first word of "ranlib", so it can be a program name with args.
5570
set dummy ranlib; ac_word=$2
5571
echo "$as_me:$LINENO: checking for $ac_word" >&5
5572
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5574
  echo $ECHO_N "(cached) $ECHO_C" >&6
5575
else
5576
  if test -n "$ac_ct_RANLIB"; then
5577
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5578
else
5579
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580
for as_dir in $PATH
5581
do
5582
  IFS=$as_save_IFS
5583
  test -z "$as_dir" && as_dir=.
5584
  for ac_exec_ext in '' $ac_executable_extensions; do
5585
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5587
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588
    break 2
5589
  fi
5590
done
5591
done
5592
 
5593
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5594
fi
5595
fi
5596
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5597
if test -n "$ac_ct_RANLIB"; then
5598
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5599
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5600
else
5601
  echo "$as_me:$LINENO: result: no" >&5
5602
echo "${ECHO_T}no" >&6
5603
fi
5604
 
5605
  RANLIB=$ac_ct_RANLIB
5606
else
5607
  RANLIB="$ac_cv_prog_RANLIB"
5608
fi
5609
 
5610
test -z "$RANLIB" && RANLIB=:
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
# Determine commands to create old-style static archives.
5618
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5619
old_postinstall_cmds='chmod 644 $oldlib'
5620
old_postuninstall_cmds=
5621
 
5622
if test -n "$RANLIB"; then
5623
  case $host_os in
5624
  openbsd*)
5625
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5626
    ;;
5627
  *)
5628
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5629
    ;;
5630
  esac
5631
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5632
fi
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
 
5644
 
5645
 
5646
 
5647
 
5648
 
5649
 
5650
 
5651
 
5652
 
5653
 
5654
 
5655
 
5656
 
5657
 
5658
 
5659
 
5660
 
5661
 
5662
 
5663
 
5664
 
5665
 
5666
 
5667
# If no C compiler was specified, use CC.
5668
LTCC=${LTCC-"$CC"}
5669
 
5670
# If no C compiler flags were specified, use CFLAGS.
5671
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5672
 
5673
# Allow CC to be a program name with arguments.
5674
compiler=$CC
5675
 
5676
 
5677
# Check for command to grab the raw symbol name followed by C symbol from nm.
5678
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5679
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5680
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5681
  echo $ECHO_N "(cached) $ECHO_C" >&6
5682
else
5683
 
5684
# These are sane defaults that work on at least a few old systems.
5685
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5686
 
5687
# Character class describing NM global symbol codes.
5688
symcode='[BCDEGRST]'
5689
 
5690
# Regexp to match symbols that can be accessed directly from C.
5691
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5692
 
5693
# Define system-specific variables.
5694
case $host_os in
5695
aix*)
5696
  symcode='[BCDT]'
5697
  ;;
5698
cygwin* | mingw* | pw32* | cegcc*)
5699
  symcode='[ABCDGISTW]'
5700
  ;;
5701
hpux*)
5702
  if test "$host_cpu" = ia64; then
5703
    symcode='[ABCDEGRST]'
5704
  fi
5705
  ;;
5706
irix* | nonstopux*)
5707
  symcode='[BCDEGRST]'
5708
  ;;
5709
osf*)
5710
  symcode='[BCDEGQRST]'
5711
  ;;
5712
solaris*)
5713
  symcode='[BDRT]'
5714
  ;;
5715
sco3.2v5*)
5716
  symcode='[DT]'
5717
  ;;
5718
sysv4.2uw2*)
5719
  symcode='[DT]'
5720
  ;;
5721
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5722
  symcode='[ABDT]'
5723
  ;;
5724
sysv4)
5725
  symcode='[DFNSTU]'
5726
  ;;
5727
esac
5728
 
5729
# If we're using GNU nm, then use its standard symbol codes.
5730
case `$NM -V 2>&1` in
5731
*GNU* | *'with BFD'*)
5732
  symcode='[ABCDGIRSTW]' ;;
5733
esac
5734
 
5735
# Transform an extracted symbol line into a proper C declaration.
5736
# Some systems (esp. on ia64) link data and code symbols differently,
5737
# so use this general approach.
5738
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5739
 
5740
# Transform an extracted symbol line into symbol name and symbol address
5741
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5742
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'"
5743
 
5744
# Handle CRLF in mingw tool chain
5745
opt_cr=
5746
case $build_os in
5747
mingw*)
5748
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5749
  ;;
5750
esac
5751
 
5752
# Try without a prefix underscore, then with it.
5753
for ac_symprfx in "" "_"; do
5754
 
5755
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5756
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5757
 
5758
  # Write the raw and C identifiers.
5759
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5760
    # Fake it for dumpbin and say T for any non-static function
5761
    # and D for any global variable.
5762
    # Also find C++ and __fastcall symbols from MSVC++,
5763
    # which start with @ or ?.
5764
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5765
"     {last_section=section; section=\$ 3};"\
5766
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5767
"     \$ 0!~/External *\|/{next};"\
5768
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5769
"     {if(hide[section]) next};"\
5770
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5771
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5772
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5773
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5774
"     ' prfx=^$ac_symprfx"
5775
  else
5776
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5777
  fi
5778
 
5779
  # Check to see that the pipe works correctly.
5780
  pipe_works=no
5781
 
5782
  rm -f conftest*
5783
  cat > conftest.$ac_ext <<_LT_EOF
5784
#ifdef __cplusplus
5785
extern "C" {
5786
#endif
5787
char nm_test_var;
5788
void nm_test_func(void);
5789
void nm_test_func(void){}
5790
#ifdef __cplusplus
5791
}
5792
#endif
5793
int main(){nm_test_var='a';nm_test_func();return(0);}
5794
_LT_EOF
5795
 
5796
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797
  (eval $ac_compile) 2>&5
5798
  ac_status=$?
5799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800
  (exit $ac_status); }; then
5801
    # Now try to grab the symbols.
5802
    nlist=conftest.nm
5803
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5804
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5805
  ac_status=$?
5806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807
  (exit $ac_status); } && test -s "$nlist"; then
5808
      # Try sorting and uniquifying the output.
5809
      if sort "$nlist" | uniq > "$nlist"T; then
5810
        mv -f "$nlist"T "$nlist"
5811
      else
5812
        rm -f "$nlist"T
5813
      fi
5814
 
5815
      # Make sure that we snagged all the symbols we need.
5816
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5817
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5818
          cat <<_LT_EOF > conftest.$ac_ext
5819
#ifdef __cplusplus
5820
extern "C" {
5821
#endif
5822
 
5823
_LT_EOF
5824
          # Now generate the symbol file.
5825
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5826
 
5827
          cat <<_LT_EOF >> conftest.$ac_ext
5828
 
5829
/* The mapping between symbol names and symbols.  */
5830
const struct {
5831
  const char *name;
5832
  void       *address;
5833
}
5834
lt__PROGRAM__LTX_preloaded_symbols[] =
5835
{
5836
  { "@PROGRAM@", (void *) 0 },
5837
_LT_EOF
5838
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5839
          cat <<\_LT_EOF >> conftest.$ac_ext
5840
  {0, (void *) 0}
5841
};
5842
 
5843
/* This works around a problem in FreeBSD linker */
5844
#ifdef FREEBSD_WORKAROUND
5845
static const void *lt_preloaded_setup() {
5846
  return lt__PROGRAM__LTX_preloaded_symbols;
5847
}
5848
#endif
5849
 
5850
#ifdef __cplusplus
5851
}
5852
#endif
5853
_LT_EOF
5854
          # Now try linking the two files.
5855
          mv conftest.$ac_objext conftstm.$ac_objext
5856
          lt_save_LIBS="$LIBS"
5857
          lt_save_CFLAGS="$CFLAGS"
5858
          LIBS="conftstm.$ac_objext"
5859
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5860
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861
  (eval $ac_link) 2>&5
5862
  ac_status=$?
5863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5865
            pipe_works=yes
5866
          fi
5867
          LIBS="$lt_save_LIBS"
5868
          CFLAGS="$lt_save_CFLAGS"
5869
        else
5870
          echo "cannot find nm_test_func in $nlist" >&5
5871
        fi
5872
      else
5873
        echo "cannot find nm_test_var in $nlist" >&5
5874
      fi
5875
    else
5876
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5877
    fi
5878
  else
5879
    echo "$progname: failed program was:" >&5
5880
    cat conftest.$ac_ext >&5
5881
  fi
5882
  rm -rf conftest* conftst*
5883
 
5884
  # Do not use the global_symbol_pipe unless it works.
5885
  if test "$pipe_works" = yes; then
5886
    break
5887
  else
5888
    lt_cv_sys_global_symbol_pipe=
5889
  fi
5890
done
5891
 
5892
fi
5893
 
5894
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5895
  lt_cv_sys_global_symbol_to_cdecl=
5896
fi
5897
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5898
  echo "$as_me:$LINENO: result: failed" >&5
5899
echo "${ECHO_T}failed" >&6
5900
else
5901
  echo "$as_me:$LINENO: result: ok" >&5
5902
echo "${ECHO_T}ok" >&6
5903
fi
5904
 
5905
 
5906
 
5907
 
5908
 
5909
 
5910
 
5911
 
5912
 
5913
 
5914
 
5915
 
5916
 
5917
 
5918
 
5919
 
5920
 
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5928
if test "${enable_libtool_lock+set}" = set; then
5929
  enableval="$enable_libtool_lock"
5930
 
5931
fi;
5932
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5933
 
5934
# Some flags need to be propagated to the compiler or linker for good
5935
# libtool support.
5936
case $host in
5937
ia64-*-hpux*)
5938
  # Find out which ABI we are using.
5939
  echo 'int i;' > conftest.$ac_ext
5940
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941
  (eval $ac_compile) 2>&5
5942
  ac_status=$?
5943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944
  (exit $ac_status); }; then
5945
    case `/usr/bin/file conftest.$ac_objext` in
5946
      *ELF-32*)
5947
        HPUX_IA64_MODE="32"
5948
        ;;
5949
      *ELF-64*)
5950
        HPUX_IA64_MODE="64"
5951
        ;;
5952
    esac
5953
  fi
5954
  rm -rf conftest*
5955
  ;;
5956
*-*-irix6*)
5957
  # Find out which ABI we are using.
5958
  echo '#line 5958 "configure"' > conftest.$ac_ext
5959
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5960
  (eval $ac_compile) 2>&5
5961
  ac_status=$?
5962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963
  (exit $ac_status); }; then
5964
    if test "$lt_cv_prog_gnu_ld" = yes; then
5965
      case `/usr/bin/file conftest.$ac_objext` in
5966
        *32-bit*)
5967
          LD="${LD-ld} -melf32bsmip"
5968
          ;;
5969
        *N32*)
5970
          LD="${LD-ld} -melf32bmipn32"
5971
          ;;
5972
        *64-bit*)
5973
          LD="${LD-ld} -melf64bmip"
5974
        ;;
5975
      esac
5976
    else
5977
      case `/usr/bin/file conftest.$ac_objext` in
5978
        *32-bit*)
5979
          LD="${LD-ld} -32"
5980
          ;;
5981
        *N32*)
5982
          LD="${LD-ld} -n32"
5983
          ;;
5984
        *64-bit*)
5985
          LD="${LD-ld} -64"
5986
          ;;
5987
      esac
5988
    fi
5989
  fi
5990
  rm -rf conftest*
5991
  ;;
5992
 
5993
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5994
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5995
  # Find out which ABI we are using.
5996
  echo 'int i;' > conftest.$ac_ext
5997
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998
  (eval $ac_compile) 2>&5
5999
  ac_status=$?
6000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
  (exit $ac_status); }; then
6002
    case `/usr/bin/file conftest.o` in
6003
      *32-bit*)
6004
        case $host in
6005
          x86_64-*kfreebsd*-gnu)
6006
            LD="${LD-ld} -m elf_i386_fbsd"
6007
            ;;
6008
          x86_64-*linux*)
6009
            LD="${LD-ld} -m elf_i386"
6010
            ;;
6011
          ppc64-*linux*|powerpc64-*linux*)
6012
            LD="${LD-ld} -m elf32ppclinux"
6013
            ;;
6014
          s390x-*linux*)
6015
            LD="${LD-ld} -m elf_s390"
6016
            ;;
6017
          sparc64-*linux*)
6018
            LD="${LD-ld} -m elf32_sparc"
6019
            ;;
6020
        esac
6021
        ;;
6022
      *64-bit*)
6023
        case $host in
6024
          x86_64-*kfreebsd*-gnu)
6025
            LD="${LD-ld} -m elf_x86_64_fbsd"
6026
            ;;
6027
          x86_64-*linux*)
6028
            LD="${LD-ld} -m elf_x86_64"
6029
            ;;
6030
          ppc*-*linux*|powerpc*-*linux*)
6031
            LD="${LD-ld} -m elf64ppc"
6032
            ;;
6033
          s390*-*linux*|s390*-*tpf*)
6034
            LD="${LD-ld} -m elf64_s390"
6035
            ;;
6036
          sparc*-*linux*)
6037
            LD="${LD-ld} -m elf64_sparc"
6038
            ;;
6039
        esac
6040
        ;;
6041
    esac
6042
  fi
6043
  rm -rf conftest*
6044
  ;;
6045
 
6046
*-*-sco3.2v5*)
6047
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6048
  SAVE_CFLAGS="$CFLAGS"
6049
  CFLAGS="$CFLAGS -belf"
6050
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6051
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6052
if test "${lt_cv_cc_needs_belf+set}" = set; then
6053
  echo $ECHO_N "(cached) $ECHO_C" >&6
6054
else
6055
  ac_ext=c
6056
ac_cpp='$CPP $CPPFLAGS'
6057
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6060
 
6061
     cat >conftest.$ac_ext <<_ACEOF
6062
/* confdefs.h.  */
6063
_ACEOF
6064
cat confdefs.h >>conftest.$ac_ext
6065
cat >>conftest.$ac_ext <<_ACEOF
6066
/* end confdefs.h.  */
6067
 
6068
int
6069
main ()
6070
{
6071
 
6072
  ;
6073
  return 0;
6074
}
6075
_ACEOF
6076
rm -f conftest.$ac_objext conftest$ac_exeext
6077
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078
  (eval $ac_link) 2>conftest.er1
6079
  ac_status=$?
6080
  grep -v '^ *+' conftest.er1 >conftest.err
6081
  rm -f conftest.er1
6082
  cat conftest.err >&5
6083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084
  (exit $ac_status); } &&
6085
         { ac_try='test -z "$ac_c_werror_flag"
6086
                         || test ! -s conftest.err'
6087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088
  (eval $ac_try) 2>&5
6089
  ac_status=$?
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
  (exit $ac_status); }; } &&
6092
         { ac_try='test -s conftest$ac_exeext'
6093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094
  (eval $ac_try) 2>&5
6095
  ac_status=$?
6096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097
  (exit $ac_status); }; }; then
6098
  lt_cv_cc_needs_belf=yes
6099
else
6100
  echo "$as_me: failed program was:" >&5
6101
sed 's/^/| /' conftest.$ac_ext >&5
6102
 
6103
lt_cv_cc_needs_belf=no
6104
fi
6105
rm -f conftest.err conftest.$ac_objext \
6106
      conftest$ac_exeext conftest.$ac_ext
6107
     ac_ext=c
6108
ac_cpp='$CPP $CPPFLAGS'
6109
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6112
 
6113
fi
6114
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6115
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6116
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6117
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6118
    CFLAGS="$SAVE_CFLAGS"
6119
  fi
6120
  ;;
6121
sparc*-*solaris*)
6122
  # Find out which ABI we are using.
6123
  echo 'int i;' > conftest.$ac_ext
6124
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125
  (eval $ac_compile) 2>&5
6126
  ac_status=$?
6127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128
  (exit $ac_status); }; then
6129
    case `/usr/bin/file conftest.o` in
6130
    *64-bit*)
6131
      case $lt_cv_prog_gnu_ld in
6132
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6133
      *)
6134
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6135
          LD="${LD-ld} -64"
6136
        fi
6137
        ;;
6138
      esac
6139
      ;;
6140
    esac
6141
  fi
6142
  rm -rf conftest*
6143
  ;;
6144
esac
6145
 
6146
need_locks="$enable_libtool_lock"
6147
 
6148
 
6149
  case $host_os in
6150
    rhapsody* | darwin*)
6151
    if test -n "$ac_tool_prefix"; then
6152
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6153
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6154
echo "$as_me:$LINENO: checking for $ac_word" >&5
6155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6156
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6157
  echo $ECHO_N "(cached) $ECHO_C" >&6
6158
else
6159
  if test -n "$DSYMUTIL"; then
6160
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6161
else
6162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163
for as_dir in $PATH
6164
do
6165
  IFS=$as_save_IFS
6166
  test -z "$as_dir" && as_dir=.
6167
  for ac_exec_ext in '' $ac_executable_extensions; do
6168
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6170
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171
    break 2
6172
  fi
6173
done
6174
done
6175
 
6176
fi
6177
fi
6178
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6179
if test -n "$DSYMUTIL"; then
6180
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6181
echo "${ECHO_T}$DSYMUTIL" >&6
6182
else
6183
  echo "$as_me:$LINENO: result: no" >&5
6184
echo "${ECHO_T}no" >&6
6185
fi
6186
 
6187
fi
6188
if test -z "$ac_cv_prog_DSYMUTIL"; then
6189
  ac_ct_DSYMUTIL=$DSYMUTIL
6190
  # Extract the first word of "dsymutil", so it can be a program name with args.
6191
set dummy dsymutil; ac_word=$2
6192
echo "$as_me:$LINENO: checking for $ac_word" >&5
6193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6194
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6195
  echo $ECHO_N "(cached) $ECHO_C" >&6
6196
else
6197
  if test -n "$ac_ct_DSYMUTIL"; then
6198
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6199
else
6200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201
for as_dir in $PATH
6202
do
6203
  IFS=$as_save_IFS
6204
  test -z "$as_dir" && as_dir=.
6205
  for ac_exec_ext in '' $ac_executable_extensions; do
6206
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6208
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209
    break 2
6210
  fi
6211
done
6212
done
6213
 
6214
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6215
fi
6216
fi
6217
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6218
if test -n "$ac_ct_DSYMUTIL"; then
6219
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6220
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6221
else
6222
  echo "$as_me:$LINENO: result: no" >&5
6223
echo "${ECHO_T}no" >&6
6224
fi
6225
 
6226
  DSYMUTIL=$ac_ct_DSYMUTIL
6227
else
6228
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6229
fi
6230
 
6231
    if test -n "$ac_tool_prefix"; then
6232
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6233
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6234
echo "$as_me:$LINENO: checking for $ac_word" >&5
6235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6237
  echo $ECHO_N "(cached) $ECHO_C" >&6
6238
else
6239
  if test -n "$NMEDIT"; then
6240
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6241
else
6242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243
for as_dir in $PATH
6244
do
6245
  IFS=$as_save_IFS
6246
  test -z "$as_dir" && as_dir=.
6247
  for ac_exec_ext in '' $ac_executable_extensions; do
6248
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251
    break 2
6252
  fi
6253
done
6254
done
6255
 
6256
fi
6257
fi
6258
NMEDIT=$ac_cv_prog_NMEDIT
6259
if test -n "$NMEDIT"; then
6260
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6261
echo "${ECHO_T}$NMEDIT" >&6
6262
else
6263
  echo "$as_me:$LINENO: result: no" >&5
6264
echo "${ECHO_T}no" >&6
6265
fi
6266
 
6267
fi
6268
if test -z "$ac_cv_prog_NMEDIT"; then
6269
  ac_ct_NMEDIT=$NMEDIT
6270
  # Extract the first word of "nmedit", so it can be a program name with args.
6271
set dummy nmedit; ac_word=$2
6272
echo "$as_me:$LINENO: checking for $ac_word" >&5
6273
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6274
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6275
  echo $ECHO_N "(cached) $ECHO_C" >&6
6276
else
6277
  if test -n "$ac_ct_NMEDIT"; then
6278
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6279
else
6280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281
for as_dir in $PATH
6282
do
6283
  IFS=$as_save_IFS
6284
  test -z "$as_dir" && as_dir=.
6285
  for ac_exec_ext in '' $ac_executable_extensions; do
6286
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6288
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289
    break 2
6290
  fi
6291
done
6292
done
6293
 
6294
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6295
fi
6296
fi
6297
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6298
if test -n "$ac_ct_NMEDIT"; then
6299
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6300
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6301
else
6302
  echo "$as_me:$LINENO: result: no" >&5
6303
echo "${ECHO_T}no" >&6
6304
fi
6305
 
6306
  NMEDIT=$ac_ct_NMEDIT
6307
else
6308
  NMEDIT="$ac_cv_prog_NMEDIT"
6309
fi
6310
 
6311
    if test -n "$ac_tool_prefix"; then
6312
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6313
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6314
echo "$as_me:$LINENO: checking for $ac_word" >&5
6315
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316
if test "${ac_cv_prog_LIPO+set}" = set; then
6317
  echo $ECHO_N "(cached) $ECHO_C" >&6
6318
else
6319
  if test -n "$LIPO"; then
6320
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6321
else
6322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323
for as_dir in $PATH
6324
do
6325
  IFS=$as_save_IFS
6326
  test -z "$as_dir" && as_dir=.
6327
  for ac_exec_ext in '' $ac_executable_extensions; do
6328
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331
    break 2
6332
  fi
6333
done
6334
done
6335
 
6336
fi
6337
fi
6338
LIPO=$ac_cv_prog_LIPO
6339
if test -n "$LIPO"; then
6340
  echo "$as_me:$LINENO: result: $LIPO" >&5
6341
echo "${ECHO_T}$LIPO" >&6
6342
else
6343
  echo "$as_me:$LINENO: result: no" >&5
6344
echo "${ECHO_T}no" >&6
6345
fi
6346
 
6347
fi
6348
if test -z "$ac_cv_prog_LIPO"; then
6349
  ac_ct_LIPO=$LIPO
6350
  # Extract the first word of "lipo", so it can be a program name with args.
6351
set dummy lipo; ac_word=$2
6352
echo "$as_me:$LINENO: checking for $ac_word" >&5
6353
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6354
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6355
  echo $ECHO_N "(cached) $ECHO_C" >&6
6356
else
6357
  if test -n "$ac_ct_LIPO"; then
6358
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6359
else
6360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361
for as_dir in $PATH
6362
do
6363
  IFS=$as_save_IFS
6364
  test -z "$as_dir" && as_dir=.
6365
  for ac_exec_ext in '' $ac_executable_extensions; do
6366
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367
    ac_cv_prog_ac_ct_LIPO="lipo"
6368
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369
    break 2
6370
  fi
6371
done
6372
done
6373
 
6374
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6375
fi
6376
fi
6377
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6378
if test -n "$ac_ct_LIPO"; then
6379
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6380
echo "${ECHO_T}$ac_ct_LIPO" >&6
6381
else
6382
  echo "$as_me:$LINENO: result: no" >&5
6383
echo "${ECHO_T}no" >&6
6384
fi
6385
 
6386
  LIPO=$ac_ct_LIPO
6387
else
6388
  LIPO="$ac_cv_prog_LIPO"
6389
fi
6390
 
6391
    if test -n "$ac_tool_prefix"; then
6392
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6393
set dummy ${ac_tool_prefix}otool; ac_word=$2
6394
echo "$as_me:$LINENO: checking for $ac_word" >&5
6395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396
if test "${ac_cv_prog_OTOOL+set}" = set; then
6397
  echo $ECHO_N "(cached) $ECHO_C" >&6
6398
else
6399
  if test -n "$OTOOL"; then
6400
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6401
else
6402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403
for as_dir in $PATH
6404
do
6405
  IFS=$as_save_IFS
6406
  test -z "$as_dir" && as_dir=.
6407
  for ac_exec_ext in '' $ac_executable_extensions; do
6408
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6410
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411
    break 2
6412
  fi
6413
done
6414
done
6415
 
6416
fi
6417
fi
6418
OTOOL=$ac_cv_prog_OTOOL
6419
if test -n "$OTOOL"; then
6420
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6421
echo "${ECHO_T}$OTOOL" >&6
6422
else
6423
  echo "$as_me:$LINENO: result: no" >&5
6424
echo "${ECHO_T}no" >&6
6425
fi
6426
 
6427
fi
6428
if test -z "$ac_cv_prog_OTOOL"; then
6429
  ac_ct_OTOOL=$OTOOL
6430
  # Extract the first word of "otool", so it can be a program name with args.
6431
set dummy otool; ac_word=$2
6432
echo "$as_me:$LINENO: checking for $ac_word" >&5
6433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6435
  echo $ECHO_N "(cached) $ECHO_C" >&6
6436
else
6437
  if test -n "$ac_ct_OTOOL"; then
6438
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6439
else
6440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441
for as_dir in $PATH
6442
do
6443
  IFS=$as_save_IFS
6444
  test -z "$as_dir" && as_dir=.
6445
  for ac_exec_ext in '' $ac_executable_extensions; do
6446
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447
    ac_cv_prog_ac_ct_OTOOL="otool"
6448
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449
    break 2
6450
  fi
6451
done
6452
done
6453
 
6454
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6455
fi
6456
fi
6457
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6458
if test -n "$ac_ct_OTOOL"; then
6459
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6460
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6461
else
6462
  echo "$as_me:$LINENO: result: no" >&5
6463
echo "${ECHO_T}no" >&6
6464
fi
6465
 
6466
  OTOOL=$ac_ct_OTOOL
6467
else
6468
  OTOOL="$ac_cv_prog_OTOOL"
6469
fi
6470
 
6471
    if test -n "$ac_tool_prefix"; then
6472
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6473
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6474
echo "$as_me:$LINENO: checking for $ac_word" >&5
6475
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6477
  echo $ECHO_N "(cached) $ECHO_C" >&6
6478
else
6479
  if test -n "$OTOOL64"; then
6480
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6481
else
6482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483
for as_dir in $PATH
6484
do
6485
  IFS=$as_save_IFS
6486
  test -z "$as_dir" && as_dir=.
6487
  for ac_exec_ext in '' $ac_executable_extensions; do
6488
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6490
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491
    break 2
6492
  fi
6493
done
6494
done
6495
 
6496
fi
6497
fi
6498
OTOOL64=$ac_cv_prog_OTOOL64
6499
if test -n "$OTOOL64"; then
6500
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6501
echo "${ECHO_T}$OTOOL64" >&6
6502
else
6503
  echo "$as_me:$LINENO: result: no" >&5
6504
echo "${ECHO_T}no" >&6
6505
fi
6506
 
6507
fi
6508
if test -z "$ac_cv_prog_OTOOL64"; then
6509
  ac_ct_OTOOL64=$OTOOL64
6510
  # Extract the first word of "otool64", so it can be a program name with args.
6511
set dummy otool64; ac_word=$2
6512
echo "$as_me:$LINENO: checking for $ac_word" >&5
6513
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6515
  echo $ECHO_N "(cached) $ECHO_C" >&6
6516
else
6517
  if test -n "$ac_ct_OTOOL64"; then
6518
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6519
else
6520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521
for as_dir in $PATH
6522
do
6523
  IFS=$as_save_IFS
6524
  test -z "$as_dir" && as_dir=.
6525
  for ac_exec_ext in '' $ac_executable_extensions; do
6526
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6528
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529
    break 2
6530
  fi
6531
done
6532
done
6533
 
6534
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6535
fi
6536
fi
6537
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6538
if test -n "$ac_ct_OTOOL64"; then
6539
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6540
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6541
else
6542
  echo "$as_me:$LINENO: result: no" >&5
6543
echo "${ECHO_T}no" >&6
6544
fi
6545
 
6546
  OTOOL64=$ac_ct_OTOOL64
6547
else
6548
  OTOOL64="$ac_cv_prog_OTOOL64"
6549
fi
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6578
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6579
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6580
  echo $ECHO_N "(cached) $ECHO_C" >&6
6581
else
6582
  lt_cv_apple_cc_single_mod=no
6583
      if test -z "${LT_MULTI_MODULE}"; then
6584
        # By default we will add the -single_module flag. You can override
6585
        # by either setting the environment variable LT_MULTI_MODULE
6586
        # non-empty at configure time, or by adding -multi_module to the
6587
        # link flags.
6588
        rm -rf libconftest.dylib*
6589
        echo "int foo(void){return 1;}" > conftest.c
6590
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6591
-dynamiclib -Wl,-single_module conftest.c" >&5
6592
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6593
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6594
        _lt_result=$?
6595
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6596
          lt_cv_apple_cc_single_mod=yes
6597
        else
6598
          cat conftest.err >&5
6599
        fi
6600
        rm -rf libconftest.dylib*
6601
        rm -f conftest.*
6602
      fi
6603
fi
6604
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6605
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6606
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6607
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6608
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6609
  echo $ECHO_N "(cached) $ECHO_C" >&6
6610
else
6611
  lt_cv_ld_exported_symbols_list=no
6612
      save_LDFLAGS=$LDFLAGS
6613
      echo "_main" > conftest.sym
6614
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6615
      cat >conftest.$ac_ext <<_ACEOF
6616
/* confdefs.h.  */
6617
_ACEOF
6618
cat confdefs.h >>conftest.$ac_ext
6619
cat >>conftest.$ac_ext <<_ACEOF
6620
/* end confdefs.h.  */
6621
 
6622
int
6623
main ()
6624
{
6625
 
6626
  ;
6627
  return 0;
6628
}
6629
_ACEOF
6630
rm -f conftest.$ac_objext conftest$ac_exeext
6631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632
  (eval $ac_link) 2>conftest.er1
6633
  ac_status=$?
6634
  grep -v '^ *+' conftest.er1 >conftest.err
6635
  rm -f conftest.er1
6636
  cat conftest.err >&5
6637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638
  (exit $ac_status); } &&
6639
         { ac_try='test -z "$ac_c_werror_flag"
6640
                         || test ! -s conftest.err'
6641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642
  (eval $ac_try) 2>&5
6643
  ac_status=$?
6644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645
  (exit $ac_status); }; } &&
6646
         { ac_try='test -s conftest$ac_exeext'
6647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648
  (eval $ac_try) 2>&5
6649
  ac_status=$?
6650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651
  (exit $ac_status); }; }; then
6652
  lt_cv_ld_exported_symbols_list=yes
6653
else
6654
  echo "$as_me: failed program was:" >&5
6655
sed 's/^/| /' conftest.$ac_ext >&5
6656
 
6657
lt_cv_ld_exported_symbols_list=no
6658
fi
6659
rm -f conftest.err conftest.$ac_objext \
6660
      conftest$ac_exeext conftest.$ac_ext
6661
        LDFLAGS="$save_LDFLAGS"
6662
 
6663
fi
6664
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6665
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6666
    case $host_os in
6667
    rhapsody* | darwin1.[012])
6668
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6669
    darwin1.*)
6670
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6671
    darwin*) # darwin 5.x on
6672
      # if running on 10.5 or later, the deployment target defaults
6673
      # to the OS version, if on x86, and 10.4, the deployment
6674
      # target defaults to 10.4. Don't you love it?
6675
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6676
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6677
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6678
        10.[012]*)
6679
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6680
        10.*)
6681
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6682
      esac
6683
    ;;
6684
  esac
6685
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6686
      _lt_dar_single_mod='$single_module'
6687
    fi
6688
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6689
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6690
    else
6691
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6692
    fi
6693
    if test "$DSYMUTIL" != ":"; then
6694
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6695
    else
6696
      _lt_dsymutil=
6697
    fi
6698
    ;;
6699
  esac
6700
 
6701
ac_ext=c
6702
ac_cpp='$CPP $CPPFLAGS'
6703
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6707
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6708
# On Suns, sometimes $CPP names a directory.
6709
if test -n "$CPP" && test -d "$CPP"; then
6710
  CPP=
6711
fi
6712
if test -z "$CPP"; then
6713
  if test "${ac_cv_prog_CPP+set}" = set; then
6714
  echo $ECHO_N "(cached) $ECHO_C" >&6
6715
else
6716
      # Double quotes because CPP needs to be expanded
6717
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6718
    do
6719
      ac_preproc_ok=false
6720
for ac_c_preproc_warn_flag in '' yes
6721
do
6722
  # Use a header file that comes with gcc, so configuring glibc
6723
  # with a fresh cross-compiler works.
6724
  # Prefer  to  if __STDC__ is defined, since
6725
  #  exists even on freestanding compilers.
6726
  # On the NeXT, cc -E runs the code through the compiler's parser,
6727
  # not just through cpp. "Syntax error" is here to catch this case.
6728
  cat >conftest.$ac_ext <<_ACEOF
6729
/* confdefs.h.  */
6730
_ACEOF
6731
cat confdefs.h >>conftest.$ac_ext
6732
cat >>conftest.$ac_ext <<_ACEOF
6733
/* end confdefs.h.  */
6734
#ifdef __STDC__
6735
# include 
6736
#else
6737
# include 
6738
#endif
6739
                     Syntax error
6740
_ACEOF
6741
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6742
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6743
  ac_status=$?
6744
  grep -v '^ *+' conftest.er1 >conftest.err
6745
  rm -f conftest.er1
6746
  cat conftest.err >&5
6747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748
  (exit $ac_status); } >/dev/null; then
6749
  if test -s conftest.err; then
6750
    ac_cpp_err=$ac_c_preproc_warn_flag
6751
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6752
  else
6753
    ac_cpp_err=
6754
  fi
6755
else
6756
  ac_cpp_err=yes
6757
fi
6758
if test -z "$ac_cpp_err"; then
6759
  :
6760
else
6761
  echo "$as_me: failed program was:" >&5
6762
sed 's/^/| /' conftest.$ac_ext >&5
6763
 
6764
  # Broken: fails on valid input.
6765
continue
6766
fi
6767
rm -f conftest.err conftest.$ac_ext
6768
 
6769
  # OK, works on sane cases.  Now check whether non-existent headers
6770
  # can be detected and how.
6771
  cat >conftest.$ac_ext <<_ACEOF
6772
/* confdefs.h.  */
6773
_ACEOF
6774
cat confdefs.h >>conftest.$ac_ext
6775
cat >>conftest.$ac_ext <<_ACEOF
6776
/* end confdefs.h.  */
6777
#include 
6778
_ACEOF
6779
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6780
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6781
  ac_status=$?
6782
  grep -v '^ *+' conftest.er1 >conftest.err
6783
  rm -f conftest.er1
6784
  cat conftest.err >&5
6785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786
  (exit $ac_status); } >/dev/null; then
6787
  if test -s conftest.err; then
6788
    ac_cpp_err=$ac_c_preproc_warn_flag
6789
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6790
  else
6791
    ac_cpp_err=
6792
  fi
6793
else
6794
  ac_cpp_err=yes
6795
fi
6796
if test -z "$ac_cpp_err"; then
6797
  # Broken: success on invalid input.
6798
continue
6799
else
6800
  echo "$as_me: failed program was:" >&5
6801
sed 's/^/| /' conftest.$ac_ext >&5
6802
 
6803
  # Passes both tests.
6804
ac_preproc_ok=:
6805
break
6806
fi
6807
rm -f conftest.err conftest.$ac_ext
6808
 
6809
done
6810
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6811
rm -f conftest.err conftest.$ac_ext
6812
if $ac_preproc_ok; then
6813
  break
6814
fi
6815
 
6816
    done
6817
    ac_cv_prog_CPP=$CPP
6818
 
6819
fi
6820
  CPP=$ac_cv_prog_CPP
6821
else
6822
  ac_cv_prog_CPP=$CPP
6823
fi
6824
echo "$as_me:$LINENO: result: $CPP" >&5
6825
echo "${ECHO_T}$CPP" >&6
6826
ac_preproc_ok=false
6827
for ac_c_preproc_warn_flag in '' yes
6828
do
6829
  # Use a header file that comes with gcc, so configuring glibc
6830
  # with a fresh cross-compiler works.
6831
  # Prefer  to  if __STDC__ is defined, since
6832
  #  exists even on freestanding compilers.
6833
  # On the NeXT, cc -E runs the code through the compiler's parser,
6834
  # not just through cpp. "Syntax error" is here to catch this case.
6835
  cat >conftest.$ac_ext <<_ACEOF
6836
/* confdefs.h.  */
6837
_ACEOF
6838
cat confdefs.h >>conftest.$ac_ext
6839
cat >>conftest.$ac_ext <<_ACEOF
6840
/* end confdefs.h.  */
6841
#ifdef __STDC__
6842
# include 
6843
#else
6844
# include 
6845
#endif
6846
                     Syntax error
6847
_ACEOF
6848
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6849
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850
  ac_status=$?
6851
  grep -v '^ *+' conftest.er1 >conftest.err
6852
  rm -f conftest.er1
6853
  cat conftest.err >&5
6854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855
  (exit $ac_status); } >/dev/null; then
6856
  if test -s conftest.err; then
6857
    ac_cpp_err=$ac_c_preproc_warn_flag
6858
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6859
  else
6860
    ac_cpp_err=
6861
  fi
6862
else
6863
  ac_cpp_err=yes
6864
fi
6865
if test -z "$ac_cpp_err"; then
6866
  :
6867
else
6868
  echo "$as_me: failed program was:" >&5
6869
sed 's/^/| /' conftest.$ac_ext >&5
6870
 
6871
  # Broken: fails on valid input.
6872
continue
6873
fi
6874
rm -f conftest.err conftest.$ac_ext
6875
 
6876
  # OK, works on sane cases.  Now check whether non-existent headers
6877
  # can be detected and how.
6878
  cat >conftest.$ac_ext <<_ACEOF
6879
/* confdefs.h.  */
6880
_ACEOF
6881
cat confdefs.h >>conftest.$ac_ext
6882
cat >>conftest.$ac_ext <<_ACEOF
6883
/* end confdefs.h.  */
6884
#include 
6885
_ACEOF
6886
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888
  ac_status=$?
6889
  grep -v '^ *+' conftest.er1 >conftest.err
6890
  rm -f conftest.er1
6891
  cat conftest.err >&5
6892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893
  (exit $ac_status); } >/dev/null; then
6894
  if test -s conftest.err; then
6895
    ac_cpp_err=$ac_c_preproc_warn_flag
6896
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897
  else
6898
    ac_cpp_err=
6899
  fi
6900
else
6901
  ac_cpp_err=yes
6902
fi
6903
if test -z "$ac_cpp_err"; then
6904
  # Broken: success on invalid input.
6905
continue
6906
else
6907
  echo "$as_me: failed program was:" >&5
6908
sed 's/^/| /' conftest.$ac_ext >&5
6909
 
6910
  # Passes both tests.
6911
ac_preproc_ok=:
6912
break
6913
fi
6914
rm -f conftest.err conftest.$ac_ext
6915
 
6916
done
6917
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6918
rm -f conftest.err conftest.$ac_ext
6919
if $ac_preproc_ok; then
6920
  :
6921
else
6922
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6923
See \`config.log' for more details." >&5
6924
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6925
See \`config.log' for more details." >&2;}
6926
   { (exit 1); exit 1; }; }
6927
fi
6928
 
6929
ac_ext=c
6930
ac_cpp='$CPP $CPPFLAGS'
6931
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6934
 
6935
 
6936
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6937
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6938
if test "${ac_cv_header_stdc+set}" = set; then
6939
  echo $ECHO_N "(cached) $ECHO_C" >&6
6940
else
6941
  cat >conftest.$ac_ext <<_ACEOF
6942
/* confdefs.h.  */
6943
_ACEOF
6944
cat confdefs.h >>conftest.$ac_ext
6945
cat >>conftest.$ac_ext <<_ACEOF
6946
/* end confdefs.h.  */
6947
#include 
6948
#include 
6949
#include 
6950
#include 
6951
 
6952
int
6953
main ()
6954
{
6955
 
6956
  ;
6957
  return 0;
6958
}
6959
_ACEOF
6960
rm -f conftest.$ac_objext
6961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962
  (eval $ac_compile) 2>conftest.er1
6963
  ac_status=$?
6964
  grep -v '^ *+' conftest.er1 >conftest.err
6965
  rm -f conftest.er1
6966
  cat conftest.err >&5
6967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968
  (exit $ac_status); } &&
6969
         { ac_try='test -z "$ac_c_werror_flag"
6970
                         || test ! -s conftest.err'
6971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972
  (eval $ac_try) 2>&5
6973
  ac_status=$?
6974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975
  (exit $ac_status); }; } &&
6976
         { ac_try='test -s conftest.$ac_objext'
6977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978
  (eval $ac_try) 2>&5
6979
  ac_status=$?
6980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981
  (exit $ac_status); }; }; then
6982
  ac_cv_header_stdc=yes
6983
else
6984
  echo "$as_me: failed program was:" >&5
6985
sed 's/^/| /' conftest.$ac_ext >&5
6986
 
6987
ac_cv_header_stdc=no
6988
fi
6989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6990
 
6991
if test $ac_cv_header_stdc = yes; then
6992
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6993
  cat >conftest.$ac_ext <<_ACEOF
6994
/* confdefs.h.  */
6995
_ACEOF
6996
cat confdefs.h >>conftest.$ac_ext
6997
cat >>conftest.$ac_ext <<_ACEOF
6998
/* end confdefs.h.  */
6999
#include 
7000
 
7001
_ACEOF
7002
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7003
  $EGREP "memchr" >/dev/null 2>&1; then
7004
  :
7005
else
7006
  ac_cv_header_stdc=no
7007
fi
7008
rm -f conftest*
7009
 
7010
fi
7011
 
7012
if test $ac_cv_header_stdc = yes; then
7013
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7014
  cat >conftest.$ac_ext <<_ACEOF
7015
/* confdefs.h.  */
7016
_ACEOF
7017
cat confdefs.h >>conftest.$ac_ext
7018
cat >>conftest.$ac_ext <<_ACEOF
7019
/* end confdefs.h.  */
7020
#include 
7021
 
7022
_ACEOF
7023
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7024
  $EGREP "free" >/dev/null 2>&1; then
7025
  :
7026
else
7027
  ac_cv_header_stdc=no
7028
fi
7029
rm -f conftest*
7030
 
7031
fi
7032
 
7033
if test $ac_cv_header_stdc = yes; then
7034
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7035
  if test "$cross_compiling" = yes; then
7036
  :
7037
else
7038
  cat >conftest.$ac_ext <<_ACEOF
7039
/* confdefs.h.  */
7040
_ACEOF
7041
cat confdefs.h >>conftest.$ac_ext
7042
cat >>conftest.$ac_ext <<_ACEOF
7043
/* end confdefs.h.  */
7044
#include 
7045
#if ((' ' & 0x0FF) == 0x020)
7046
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7047
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7048
#else
7049
# define ISLOWER(c) \
7050
                   (('a' <= (c) && (c) <= 'i') \
7051
                     || ('j' <= (c) && (c) <= 'r') \
7052
                     || ('s' <= (c) && (c) <= 'z'))
7053
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7054
#endif
7055
 
7056
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7057
int
7058
main ()
7059
{
7060
  int i;
7061
  for (i = 0; i < 256; i++)
7062
    if (XOR (islower (i), ISLOWER (i))
7063
        || toupper (i) != TOUPPER (i))
7064
      exit(2);
7065
  exit (0);
7066
}
7067
_ACEOF
7068
rm -f conftest$ac_exeext
7069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070
  (eval $ac_link) 2>&5
7071
  ac_status=$?
7072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075
  (eval $ac_try) 2>&5
7076
  ac_status=$?
7077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078
  (exit $ac_status); }; }; then
7079
  :
7080
else
7081
  echo "$as_me: program exited with status $ac_status" >&5
7082
echo "$as_me: failed program was:" >&5
7083
sed 's/^/| /' conftest.$ac_ext >&5
7084
 
7085
( exit $ac_status )
7086
ac_cv_header_stdc=no
7087
fi
7088
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7089
fi
7090
fi
7091
fi
7092
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7093
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7094
if test $ac_cv_header_stdc = yes; then
7095
 
7096
cat >>confdefs.h <<\_ACEOF
7097
#define STDC_HEADERS 1
7098
_ACEOF
7099
 
7100
fi
7101
 
7102
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7103
 
7104
 
7105
 
7106
 
7107
 
7108
 
7109
 
7110
 
7111
 
7112
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7113
                  inttypes.h stdint.h unistd.h
7114
do
7115
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7116
echo "$as_me:$LINENO: checking for $ac_header" >&5
7117
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7118
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7119
  echo $ECHO_N "(cached) $ECHO_C" >&6
7120
else
7121
  cat >conftest.$ac_ext <<_ACEOF
7122
/* confdefs.h.  */
7123
_ACEOF
7124
cat confdefs.h >>conftest.$ac_ext
7125
cat >>conftest.$ac_ext <<_ACEOF
7126
/* end confdefs.h.  */
7127
$ac_includes_default
7128
 
7129
#include <$ac_header>
7130
_ACEOF
7131
rm -f conftest.$ac_objext
7132
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133
  (eval $ac_compile) 2>conftest.er1
7134
  ac_status=$?
7135
  grep -v '^ *+' conftest.er1 >conftest.err
7136
  rm -f conftest.er1
7137
  cat conftest.err >&5
7138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139
  (exit $ac_status); } &&
7140
         { ac_try='test -z "$ac_c_werror_flag"
7141
                         || test ! -s conftest.err'
7142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143
  (eval $ac_try) 2>&5
7144
  ac_status=$?
7145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146
  (exit $ac_status); }; } &&
7147
         { ac_try='test -s conftest.$ac_objext'
7148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149
  (eval $ac_try) 2>&5
7150
  ac_status=$?
7151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152
  (exit $ac_status); }; }; then
7153
  eval "$as_ac_Header=yes"
7154
else
7155
  echo "$as_me: failed program was:" >&5
7156
sed 's/^/| /' conftest.$ac_ext >&5
7157
 
7158
eval "$as_ac_Header=no"
7159
fi
7160
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7161
fi
7162
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7163
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7164
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7165
  cat >>confdefs.h <<_ACEOF
7166
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7167
_ACEOF
7168
 
7169
fi
7170
 
7171
done
7172
 
7173
 
7174
 
7175
for ac_header in dlfcn.h
7176
do
7177
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178
echo "$as_me:$LINENO: checking for $ac_header" >&5
7179
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7180
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7181
  echo $ECHO_N "(cached) $ECHO_C" >&6
7182
else
7183
  cat >conftest.$ac_ext <<_ACEOF
7184
/* confdefs.h.  */
7185
_ACEOF
7186
cat confdefs.h >>conftest.$ac_ext
7187
cat >>conftest.$ac_ext <<_ACEOF
7188
/* end confdefs.h.  */
7189
$ac_includes_default
7190
 
7191
#include <$ac_header>
7192
_ACEOF
7193
rm -f conftest.$ac_objext
7194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195
  (eval $ac_compile) 2>conftest.er1
7196
  ac_status=$?
7197
  grep -v '^ *+' conftest.er1 >conftest.err
7198
  rm -f conftest.er1
7199
  cat conftest.err >&5
7200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201
  (exit $ac_status); } &&
7202
         { ac_try='test -z "$ac_c_werror_flag"
7203
                         || test ! -s conftest.err'
7204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205
  (eval $ac_try) 2>&5
7206
  ac_status=$?
7207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208
  (exit $ac_status); }; } &&
7209
         { ac_try='test -s conftest.$ac_objext'
7210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211
  (eval $ac_try) 2>&5
7212
  ac_status=$?
7213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214
  (exit $ac_status); }; }; then
7215
  eval "$as_ac_Header=yes"
7216
else
7217
  echo "$as_me: failed program was:" >&5
7218
sed 's/^/| /' conftest.$ac_ext >&5
7219
 
7220
eval "$as_ac_Header=no"
7221
fi
7222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7223
fi
7224
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7227
  cat >>confdefs.h <<_ACEOF
7228
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229
_ACEOF
7230
 
7231
fi
7232
 
7233
done
7234
 
7235
 
7236
 
7237
# Set options
7238
 
7239
 
7240
 
7241
        enable_dlopen=no
7242
 
7243
 
7244
 
7245
            # Check whether --enable-shared or --disable-shared was given.
7246
if test "${enable_shared+set}" = set; then
7247
  enableval="$enable_shared"
7248
  p=${PACKAGE-default}
7249
    case $enableval in
7250
    yes) enable_shared=yes ;;
7251
    no) enable_shared=no ;;
7252
    *)
7253
      enable_shared=no
7254
      # Look at the argument we got.  We use all the common list separators.
7255
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7256
      for pkg in $enableval; do
7257
        IFS="$lt_save_ifs"
7258
        if test "X$pkg" = "X$p"; then
7259
          enable_shared=yes
7260
        fi
7261
      done
7262
      IFS="$lt_save_ifs"
7263
      ;;
7264
    esac
7265
else
7266
  enable_shared=yes
7267
fi;
7268
 
7269
 
7270
 
7271
 
7272
 
7273
 
7274
 
7275
 
7276
  # Check whether --enable-static or --disable-static was given.
7277
if test "${enable_static+set}" = set; then
7278
  enableval="$enable_static"
7279
  p=${PACKAGE-default}
7280
    case $enableval in
7281
    yes) enable_static=yes ;;
7282
    no) enable_static=no ;;
7283
    *)
7284
     enable_static=no
7285
      # Look at the argument we got.  We use all the common list separators.
7286
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7287
      for pkg in $enableval; do
7288
        IFS="$lt_save_ifs"
7289
        if test "X$pkg" = "X$p"; then
7290
          enable_static=yes
7291
        fi
7292
      done
7293
      IFS="$lt_save_ifs"
7294
      ;;
7295
    esac
7296
else
7297
  enable_static=yes
7298
fi;
7299
 
7300
 
7301
 
7302
 
7303
 
7304
 
7305
 
7306
 
7307
 
7308
# Check whether --with-pic or --without-pic was given.
7309
if test "${with_pic+set}" = set; then
7310
  withval="$with_pic"
7311
  pic_mode="$withval"
7312
else
7313
  pic_mode=default
7314
fi;
7315
 
7316
test -z "$pic_mode" && pic_mode=default
7317
 
7318
 
7319
 
7320
 
7321
 
7322
 
7323
 
7324
  # Check whether --enable-fast-install or --disable-fast-install was given.
7325
if test "${enable_fast_install+set}" = set; then
7326
  enableval="$enable_fast_install"
7327
  p=${PACKAGE-default}
7328
    case $enableval in
7329
    yes) enable_fast_install=yes ;;
7330
    no) enable_fast_install=no ;;
7331
    *)
7332
      enable_fast_install=no
7333
      # Look at the argument we got.  We use all the common list separators.
7334
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7335
      for pkg in $enableval; do
7336
        IFS="$lt_save_ifs"
7337
        if test "X$pkg" = "X$p"; then
7338
          enable_fast_install=yes
7339
        fi
7340
      done
7341
      IFS="$lt_save_ifs"
7342
      ;;
7343
    esac
7344
else
7345
  enable_fast_install=yes
7346
fi;
7347
 
7348
 
7349
 
7350
 
7351
 
7352
 
7353
 
7354
 
7355
 
7356
 
7357
# This can be used to rebuild libtool when needed
7358
LIBTOOL_DEPS="$ltmain"
7359
 
7360
# Always use our own libtool.
7361
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7362
 
7363
 
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
 
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
test -z "$LN_S" && LN_S="ln -s"
7388
 
7389
 
7390
 
7391
 
7392
 
7393
 
7394
 
7395
 
7396
 
7397
 
7398
 
7399
 
7400
 
7401
 
7402
if test -n "${ZSH_VERSION+set}" ; then
7403
   setopt NO_GLOB_SUBST
7404
fi
7405
 
7406
echo "$as_me:$LINENO: checking for objdir" >&5
7407
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7408
if test "${lt_cv_objdir+set}" = set; then
7409
  echo $ECHO_N "(cached) $ECHO_C" >&6
7410
else
7411
  rm -f .libs 2>/dev/null
7412
mkdir .libs 2>/dev/null
7413
if test -d .libs; then
7414
  lt_cv_objdir=.libs
7415
else
7416
  # MS-DOS does not allow filenames that begin with a dot.
7417
  lt_cv_objdir=_libs
7418
fi
7419
rmdir .libs 2>/dev/null
7420
fi
7421
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7422
echo "${ECHO_T}$lt_cv_objdir" >&6
7423
objdir=$lt_cv_objdir
7424
 
7425
 
7426
 
7427
 
7428
 
7429
cat >>confdefs.h <<_ACEOF
7430
#define LT_OBJDIR "$lt_cv_objdir/"
7431
_ACEOF
7432
 
7433
 
7434
 
7435
 
7436
 
7437
 
7438
 
7439
 
7440
 
7441
 
7442
 
7443
 
7444
 
7445
 
7446
 
7447
 
7448
 
7449
case $host_os in
7450
aix3*)
7451
  # AIX sometimes has problems with the GCC collect2 program.  For some
7452
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7453
  # vanish in a puff of smoke.
7454
  if test "X${COLLECT_NAMES+set}" != Xset; then
7455
    COLLECT_NAMES=
7456
    export COLLECT_NAMES
7457
  fi
7458
  ;;
7459
esac
7460
 
7461
# Sed substitution that helps us do robust quoting.  It backslashifies
7462
# metacharacters that are still active within double-quoted strings.
7463
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7464
 
7465
# Same as above, but do not quote variable references.
7466
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7467
 
7468
# Sed substitution to delay expansion of an escaped shell variable in a
7469
# double_quote_subst'ed string.
7470
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7471
 
7472
# Sed substitution to delay expansion of an escaped single quote.
7473
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7474
 
7475
# Sed substitution to avoid accidental globbing in evaled expressions
7476
no_glob_subst='s/\*/\\\*/g'
7477
 
7478
# Global variables:
7479
ofile=libtool
7480
can_build_shared=yes
7481
 
7482
# All known linkers require a `.a' archive for static linking (except MSVC,
7483
# which needs '.lib').
7484
libext=a
7485
 
7486
with_gnu_ld="$lt_cv_prog_gnu_ld"
7487
 
7488
old_CC="$CC"
7489
old_CFLAGS="$CFLAGS"
7490
 
7491
# Set sane defaults for various variables
7492
test -z "$CC" && CC=cc
7493
test -z "$LTCC" && LTCC=$CC
7494
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7495
test -z "$LD" && LD=ld
7496
test -z "$ac_objext" && ac_objext=o
7497
 
7498
for cc_temp in $compiler""; do
7499
  case $cc_temp in
7500
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7501
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7502
    \-*) ;;
7503
    *) break;;
7504
  esac
7505
done
7506
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7507
 
7508
 
7509
# Only perform the check for file, if the check method requires it
7510
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7511
case $deplibs_check_method in
7512
file_magic*)
7513
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7514
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7515
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7516
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7517
  echo $ECHO_N "(cached) $ECHO_C" >&6
7518
else
7519
  case $MAGIC_CMD in
7520
[\\/*] |  ?:[\\/]*)
7521
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7522
  ;;
7523
*)
7524
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7525
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7526
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7527
  for ac_dir in $ac_dummy; do
7528
    IFS="$lt_save_ifs"
7529
    test -z "$ac_dir" && ac_dir=.
7530
    if test -f $ac_dir/${ac_tool_prefix}file; then
7531
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7532
      if test -n "$file_magic_test_file"; then
7533
        case $deplibs_check_method in
7534
        "file_magic "*)
7535
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7536
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7538
            $EGREP "$file_magic_regex" > /dev/null; then
7539
            :
7540
          else
7541
            cat <<_LT_EOF 1>&2
7542
 
7543
*** Warning: the command libtool uses to detect shared libraries,
7544
*** $file_magic_cmd, produces output that libtool cannot recognize.
7545
*** The result is that libtool may fail to recognize shared libraries
7546
*** as such.  This will affect the creation of libtool libraries that
7547
*** depend on shared libraries, but programs linked with such libtool
7548
*** libraries will work regardless of this problem.  Nevertheless, you
7549
*** may want to report the problem to your system manager and/or to
7550
*** bug-libtool@gnu.org
7551
 
7552
_LT_EOF
7553
          fi ;;
7554
        esac
7555
      fi
7556
      break
7557
    fi
7558
  done
7559
  IFS="$lt_save_ifs"
7560
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7561
  ;;
7562
esac
7563
fi
7564
 
7565
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7566
if test -n "$MAGIC_CMD"; then
7567
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7568
echo "${ECHO_T}$MAGIC_CMD" >&6
7569
else
7570
  echo "$as_me:$LINENO: result: no" >&5
7571
echo "${ECHO_T}no" >&6
7572
fi
7573
 
7574
 
7575
 
7576
 
7577
 
7578
if test -z "$lt_cv_path_MAGIC_CMD"; then
7579
  if test -n "$ac_tool_prefix"; then
7580
    echo "$as_me:$LINENO: checking for file" >&5
7581
echo $ECHO_N "checking for file... $ECHO_C" >&6
7582
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7583
  echo $ECHO_N "(cached) $ECHO_C" >&6
7584
else
7585
  case $MAGIC_CMD in
7586
[\\/*] |  ?:[\\/]*)
7587
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7588
  ;;
7589
*)
7590
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7591
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7592
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7593
  for ac_dir in $ac_dummy; do
7594
    IFS="$lt_save_ifs"
7595
    test -z "$ac_dir" && ac_dir=.
7596
    if test -f $ac_dir/file; then
7597
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7598
      if test -n "$file_magic_test_file"; then
7599
        case $deplibs_check_method in
7600
        "file_magic "*)
7601
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7602
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7603
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7604
            $EGREP "$file_magic_regex" > /dev/null; then
7605
            :
7606
          else
7607
            cat <<_LT_EOF 1>&2
7608
 
7609
*** Warning: the command libtool uses to detect shared libraries,
7610
*** $file_magic_cmd, produces output that libtool cannot recognize.
7611
*** The result is that libtool may fail to recognize shared libraries
7612
*** as such.  This will affect the creation of libtool libraries that
7613
*** depend on shared libraries, but programs linked with such libtool
7614
*** libraries will work regardless of this problem.  Nevertheless, you
7615
*** may want to report the problem to your system manager and/or to
7616
*** bug-libtool@gnu.org
7617
 
7618
_LT_EOF
7619
          fi ;;
7620
        esac
7621
      fi
7622
      break
7623
    fi
7624
  done
7625
  IFS="$lt_save_ifs"
7626
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7627
  ;;
7628
esac
7629
fi
7630
 
7631
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7632
if test -n "$MAGIC_CMD"; then
7633
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7634
echo "${ECHO_T}$MAGIC_CMD" >&6
7635
else
7636
  echo "$as_me:$LINENO: result: no" >&5
7637
echo "${ECHO_T}no" >&6
7638
fi
7639
 
7640
 
7641
  else
7642
    MAGIC_CMD=:
7643
  fi
7644
fi
7645
 
7646
  fi
7647
  ;;
7648
esac
7649
 
7650
# Use C for the default configuration in the libtool script
7651
 
7652
lt_save_CC="$CC"
7653
ac_ext=c
7654
ac_cpp='$CPP $CPPFLAGS'
7655
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
 
7659
 
7660
# Source file extension for C test sources.
7661
ac_ext=c
7662
 
7663
# Object file extension for compiled C test sources.
7664
objext=o
7665
objext=$objext
7666
 
7667
# Code to be used in simple compile tests
7668
lt_simple_compile_test_code="int some_variable = 0;"
7669
 
7670
# Code to be used in simple link tests
7671
lt_simple_link_test_code='int main(){return(0);}'
7672
 
7673
 
7674
 
7675
 
7676
 
7677
 
7678
 
7679
# If no C compiler was specified, use CC.
7680
LTCC=${LTCC-"$CC"}
7681
 
7682
# If no C compiler flags were specified, use CFLAGS.
7683
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7684
 
7685
# Allow CC to be a program name with arguments.
7686
compiler=$CC
7687
 
7688
# Save the default compiler, since it gets overwritten when the other
7689
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7690
compiler_DEFAULT=$CC
7691
 
7692
# save warnings/boilerplate of simple test code
7693
ac_outfile=conftest.$ac_objext
7694
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7695
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7696
_lt_compiler_boilerplate=`cat conftest.err`
7697
$RM conftest*
7698
 
7699
ac_outfile=conftest.$ac_objext
7700
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7701
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7702
_lt_linker_boilerplate=`cat conftest.err`
7703
$RM -r conftest*
7704
 
7705
 
7706
## CAVEAT EMPTOR:
7707
## There is no encapsulation within the following macros, do not change
7708
## the running order or otherwise move them around unless you know exactly
7709
## what you are doing...
7710
if test -n "$compiler"; then
7711
 
7712
lt_prog_compiler_no_builtin_flag=
7713
 
7714
if test "$GCC" = yes; then
7715
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7716
 
7717
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7718
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7719
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7720
  echo $ECHO_N "(cached) $ECHO_C" >&6
7721
else
7722
  lt_cv_prog_compiler_rtti_exceptions=no
7723
   ac_outfile=conftest.$ac_objext
7724
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7725
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7726
   # Insert the option either (1) after the last *FLAGS variable, or
7727
   # (2) before a word containing "conftest.", or (3) at the end.
7728
   # Note that $ac_compile itself does not contain backslashes and begins
7729
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7730
   # The option is referenced via a variable to avoid confusing sed.
7731
   lt_compile=`echo "$ac_compile" | $SED \
7732
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7733
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7734
   -e 's:$: $lt_compiler_flag:'`
7735
   (eval echo "\"\$as_me:7735: $lt_compile\"" >&5)
7736
   (eval "$lt_compile" 2>conftest.err)
7737
   ac_status=$?
7738
   cat conftest.err >&5
7739
   echo "$as_me:7739: \$? = $ac_status" >&5
7740
   if (exit $ac_status) && test -s "$ac_outfile"; then
7741
     # The compiler can only warn and ignore the option if not recognized
7742
     # So say no if there are warnings other than the usual output.
7743
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7744
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7745
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7746
       lt_cv_prog_compiler_rtti_exceptions=yes
7747
     fi
7748
   fi
7749
   $RM conftest*
7750
 
7751
fi
7752
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7753
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7754
 
7755
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7756
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7757
else
7758
    :
7759
fi
7760
 
7761
fi
7762
 
7763
 
7764
 
7765
 
7766
 
7767
 
7768
  lt_prog_compiler_wl=
7769
lt_prog_compiler_pic=
7770
lt_prog_compiler_static=
7771
 
7772
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7773
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7774
 
7775
  if test "$GCC" = yes; then
7776
    lt_prog_compiler_wl='-Wl,'
7777
    lt_prog_compiler_static='-static'
7778
 
7779
    case $host_os in
7780
      aix*)
7781
      # All AIX code is PIC.
7782
      if test "$host_cpu" = ia64; then
7783
        # AIX 5 now supports IA64 processor
7784
        lt_prog_compiler_static='-Bstatic'
7785
      fi
7786
      ;;
7787
 
7788
    amigaos*)
7789
      case $host_cpu in
7790
      powerpc)
7791
            # see comment about AmigaOS4 .so support
7792
            lt_prog_compiler_pic='-fPIC'
7793
        ;;
7794
      m68k)
7795
            # FIXME: we need at least 68020 code to build shared libraries, but
7796
            # adding the `-m68020' flag to GCC prevents building anything better,
7797
            # like `-m68040'.
7798
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7799
        ;;
7800
      esac
7801
      ;;
7802
 
7803
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7804
      # PIC is the default for these OSes.
7805
      ;;
7806
 
7807
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7808
      # This hack is so that the source file can tell whether it is being
7809
      # built for inclusion in a dll (and should export symbols for example).
7810
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7811
      # (--disable-auto-import) libraries
7812
      lt_prog_compiler_pic='-DDLL_EXPORT'
7813
      ;;
7814
 
7815
    darwin* | rhapsody*)
7816
      # PIC is the default on this platform
7817
      # Common symbols not allowed in MH_DYLIB files
7818
      lt_prog_compiler_pic='-fno-common'
7819
      ;;
7820
 
7821
    hpux*)
7822
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7823
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7824
      # sets the default TLS model and affects inlining.
7825
      case $host_cpu in
7826
      hppa*64*)
7827
        # +Z the default
7828
        ;;
7829
      *)
7830
        lt_prog_compiler_pic='-fPIC'
7831
        ;;
7832
      esac
7833
      ;;
7834
 
7835
    interix[3-9]*)
7836
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7837
      # Instead, we relocate shared libraries at runtime.
7838
      ;;
7839
 
7840
    msdosdjgpp*)
7841
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7842
      # on systems that don't support them.
7843
      lt_prog_compiler_can_build_shared=no
7844
      enable_shared=no
7845
      ;;
7846
 
7847
    *nto* | *qnx*)
7848
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7849
      # it will coredump.
7850
      lt_prog_compiler_pic='-fPIC -shared'
7851
      ;;
7852
 
7853
    sysv4*MP*)
7854
      if test -d /usr/nec; then
7855
        lt_prog_compiler_pic=-Kconform_pic
7856
      fi
7857
      ;;
7858
 
7859
    *)
7860
      lt_prog_compiler_pic='-fPIC'
7861
      ;;
7862
    esac
7863
  else
7864
    # PORTME Check for flag to pass linker flags through the system compiler.
7865
    case $host_os in
7866
    aix*)
7867
      lt_prog_compiler_wl='-Wl,'
7868
      if test "$host_cpu" = ia64; then
7869
        # AIX 5 now supports IA64 processor
7870
        lt_prog_compiler_static='-Bstatic'
7871
      else
7872
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7873
      fi
7874
      ;;
7875
 
7876
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7877
      # This hack is so that the source file can tell whether it is being
7878
      # built for inclusion in a dll (and should export symbols for example).
7879
      lt_prog_compiler_pic='-DDLL_EXPORT'
7880
      ;;
7881
 
7882
    hpux9* | hpux10* | hpux11*)
7883
      lt_prog_compiler_wl='-Wl,'
7884
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7885
      # not for PA HP-UX.
7886
      case $host_cpu in
7887
      hppa*64*|ia64*)
7888
        # +Z the default
7889
        ;;
7890
      *)
7891
        lt_prog_compiler_pic='+Z'
7892
        ;;
7893
      esac
7894
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7895
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7896
      ;;
7897
 
7898
    irix5* | irix6* | nonstopux*)
7899
      lt_prog_compiler_wl='-Wl,'
7900
      # PIC (with -KPIC) is the default.
7901
      lt_prog_compiler_static='-non_shared'
7902
      ;;
7903
 
7904
    linux* | k*bsd*-gnu)
7905
      case $cc_basename in
7906
      # old Intel for x86_64 which still supported -KPIC.
7907
      ecc*)
7908
        lt_prog_compiler_wl='-Wl,'
7909
        lt_prog_compiler_pic='-KPIC'
7910
        lt_prog_compiler_static='-static'
7911
        ;;
7912
      # icc used to be incompatible with GCC.
7913
      # ICC 10 doesn't accept -KPIC any more.
7914
      icc* | ifort*)
7915
        lt_prog_compiler_wl='-Wl,'
7916
        lt_prog_compiler_pic='-fPIC'
7917
        lt_prog_compiler_static='-static'
7918
        ;;
7919
      # Lahey Fortran 8.1.
7920
      lf95*)
7921
        lt_prog_compiler_wl='-Wl,'
7922
        lt_prog_compiler_pic='--shared'
7923
        lt_prog_compiler_static='--static'
7924
        ;;
7925
      pgcc* | pgf77* | pgf90* | pgf95*)
7926
        # Portland Group compilers (*not* the Pentium gcc compiler,
7927
        # which looks to be a dead project)
7928
        lt_prog_compiler_wl='-Wl,'
7929
        lt_prog_compiler_pic='-fpic'
7930
        lt_prog_compiler_static='-Bstatic'
7931
        ;;
7932
      ccc*)
7933
        lt_prog_compiler_wl='-Wl,'
7934
        # All Alpha code is PIC.
7935
        lt_prog_compiler_static='-non_shared'
7936
        ;;
7937
      xl*)
7938
        # IBM XL C 8.0/Fortran 10.1 on PPC
7939
        lt_prog_compiler_wl='-Wl,'
7940
        lt_prog_compiler_pic='-qpic'
7941
        lt_prog_compiler_static='-qstaticlink'
7942
        ;;
7943
      *)
7944
        case `$CC -V 2>&1 | sed 5q` in
7945
        *Sun\ C*)
7946
          # Sun C 5.9
7947
          lt_prog_compiler_pic='-KPIC'
7948
          lt_prog_compiler_static='-Bstatic'
7949
          lt_prog_compiler_wl='-Wl,'
7950
          ;;
7951
        *Sun\ F*)
7952
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7953
          lt_prog_compiler_pic='-KPIC'
7954
          lt_prog_compiler_static='-Bstatic'
7955
          lt_prog_compiler_wl=''
7956
          ;;
7957
        esac
7958
        ;;
7959
      esac
7960
      ;;
7961
 
7962
    newsos6)
7963
      lt_prog_compiler_pic='-KPIC'
7964
      lt_prog_compiler_static='-Bstatic'
7965
      ;;
7966
 
7967
    *nto* | *qnx*)
7968
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7969
      # it will coredump.
7970
      lt_prog_compiler_pic='-fPIC -shared'
7971
      ;;
7972
 
7973
    osf3* | osf4* | osf5*)
7974
      lt_prog_compiler_wl='-Wl,'
7975
      # All OSF/1 code is PIC.
7976
      lt_prog_compiler_static='-non_shared'
7977
      ;;
7978
 
7979
    rdos*)
7980
      lt_prog_compiler_static='-non_shared'
7981
      ;;
7982
 
7983
    solaris*)
7984
      lt_prog_compiler_pic='-KPIC'
7985
      lt_prog_compiler_static='-Bstatic'
7986
      case $cc_basename in
7987
      f77* | f90* | f95*)
7988
        lt_prog_compiler_wl='-Qoption ld ';;
7989
      *)
7990
        lt_prog_compiler_wl='-Wl,';;
7991
      esac
7992
      ;;
7993
 
7994
    sunos4*)
7995
      lt_prog_compiler_wl='-Qoption ld '
7996
      lt_prog_compiler_pic='-PIC'
7997
      lt_prog_compiler_static='-Bstatic'
7998
      ;;
7999
 
8000
    sysv4 | sysv4.2uw2* | sysv4.3*)
8001
      lt_prog_compiler_wl='-Wl,'
8002
      lt_prog_compiler_pic='-KPIC'
8003
      lt_prog_compiler_static='-Bstatic'
8004
      ;;
8005
 
8006
    sysv4*MP*)
8007
      if test -d /usr/nec ;then
8008
        lt_prog_compiler_pic='-Kconform_pic'
8009
        lt_prog_compiler_static='-Bstatic'
8010
      fi
8011
      ;;
8012
 
8013
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8014
      lt_prog_compiler_wl='-Wl,'
8015
      lt_prog_compiler_pic='-KPIC'
8016
      lt_prog_compiler_static='-Bstatic'
8017
      ;;
8018
 
8019
    unicos*)
8020
      lt_prog_compiler_wl='-Wl,'
8021
      lt_prog_compiler_can_build_shared=no
8022
      ;;
8023
 
8024
    uts4*)
8025
      lt_prog_compiler_pic='-pic'
8026
      lt_prog_compiler_static='-Bstatic'
8027
      ;;
8028
 
8029
    *)
8030
      lt_prog_compiler_can_build_shared=no
8031
      ;;
8032
    esac
8033
  fi
8034
 
8035
case $host_os in
8036
  # For platforms which do not support PIC, -DPIC is meaningless:
8037
  *djgpp*)
8038
    lt_prog_compiler_pic=
8039
    ;;
8040
  *)
8041
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8042
    ;;
8043
esac
8044
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8045
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8046
 
8047
 
8048
 
8049
 
8050
 
8051
 
8052
#
8053
# Check to make sure the PIC flag actually works.
8054
#
8055
if test -n "$lt_prog_compiler_pic"; then
8056
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8057
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8058
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8059
  echo $ECHO_N "(cached) $ECHO_C" >&6
8060
else
8061
  lt_cv_prog_compiler_pic_works=no
8062
   ac_outfile=conftest.$ac_objext
8063
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8064
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8065
   # Insert the option either (1) after the last *FLAGS variable, or
8066
   # (2) before a word containing "conftest.", or (3) at the end.
8067
   # Note that $ac_compile itself does not contain backslashes and begins
8068
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8069
   # The option is referenced via a variable to avoid confusing sed.
8070
   lt_compile=`echo "$ac_compile" | $SED \
8071
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8072
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8073
   -e 's:$: $lt_compiler_flag:'`
8074
   (eval echo "\"\$as_me:8074: $lt_compile\"" >&5)
8075
   (eval "$lt_compile" 2>conftest.err)
8076
   ac_status=$?
8077
   cat conftest.err >&5
8078
   echo "$as_me:8078: \$? = $ac_status" >&5
8079
   if (exit $ac_status) && test -s "$ac_outfile"; then
8080
     # The compiler can only warn and ignore the option if not recognized
8081
     # So say no if there are warnings other than the usual output.
8082
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8083
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8084
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8085
       lt_cv_prog_compiler_pic_works=yes
8086
     fi
8087
   fi
8088
   $RM conftest*
8089
 
8090
fi
8091
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8092
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8093
 
8094
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8095
    case $lt_prog_compiler_pic in
8096
     "" | " "*) ;;
8097
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8098
     esac
8099
else
8100
    lt_prog_compiler_pic=
8101
     lt_prog_compiler_can_build_shared=no
8102
fi
8103
 
8104
fi
8105
 
8106
 
8107
 
8108
 
8109
 
8110
 
8111
#
8112
# Check to make sure the static flag actually works.
8113
#
8114
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8115
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8116
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8117
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8118
  echo $ECHO_N "(cached) $ECHO_C" >&6
8119
else
8120
  lt_cv_prog_compiler_static_works=no
8121
   save_LDFLAGS="$LDFLAGS"
8122
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8123
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8124
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8125
     # The linker can only warn and ignore the option if not recognized
8126
     # So say no if there are warnings
8127
     if test -s conftest.err; then
8128
       # Append any errors to the config.log.
8129
       cat conftest.err 1>&5
8130
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8131
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8132
       if diff conftest.exp conftest.er2 >/dev/null; then
8133
         lt_cv_prog_compiler_static_works=yes
8134
       fi
8135
     else
8136
       lt_cv_prog_compiler_static_works=yes
8137
     fi
8138
   fi
8139
   $RM -r conftest*
8140
   LDFLAGS="$save_LDFLAGS"
8141
 
8142
fi
8143
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8144
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8145
 
8146
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8147
    :
8148
else
8149
    lt_prog_compiler_static=
8150
fi
8151
 
8152
 
8153
 
8154
 
8155
 
8156
 
8157
 
8158
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8159
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8160
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8161
  echo $ECHO_N "(cached) $ECHO_C" >&6
8162
else
8163
  lt_cv_prog_compiler_c_o=no
8164
   $RM -r conftest 2>/dev/null
8165
   mkdir conftest
8166
   cd conftest
8167
   mkdir out
8168
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8169
 
8170
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8171
   # Insert the option either (1) after the last *FLAGS variable, or
8172
   # (2) before a word containing "conftest.", or (3) at the end.
8173
   # Note that $ac_compile itself does not contain backslashes and begins
8174
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8175
   lt_compile=`echo "$ac_compile" | $SED \
8176
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8177
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8178
   -e 's:$: $lt_compiler_flag:'`
8179
   (eval echo "\"\$as_me:8179: $lt_compile\"" >&5)
8180
   (eval "$lt_compile" 2>out/conftest.err)
8181
   ac_status=$?
8182
   cat out/conftest.err >&5
8183
   echo "$as_me:8183: \$? = $ac_status" >&5
8184
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8185
   then
8186
     # The compiler can only warn and ignore the option if not recognized
8187
     # So say no if there are warnings
8188
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8189
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8190
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8191
       lt_cv_prog_compiler_c_o=yes
8192
     fi
8193
   fi
8194
   chmod u+w . 2>&5
8195
   $RM conftest*
8196
   # SGI C++ compiler will create directory out/ii_files/ for
8197
   # template instantiation
8198
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8199
   $RM out/* && rmdir out
8200
   cd ..
8201
   $RM -r conftest
8202
   $RM conftest*
8203
 
8204
fi
8205
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8206
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8207
 
8208
 
8209
 
8210
 
8211
 
8212
 
8213
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8214
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8215
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8216
  echo $ECHO_N "(cached) $ECHO_C" >&6
8217
else
8218
  lt_cv_prog_compiler_c_o=no
8219
   $RM -r conftest 2>/dev/null
8220
   mkdir conftest
8221
   cd conftest
8222
   mkdir out
8223
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8224
 
8225
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8226
   # Insert the option either (1) after the last *FLAGS variable, or
8227
   # (2) before a word containing "conftest.", or (3) at the end.
8228
   # Note that $ac_compile itself does not contain backslashes and begins
8229
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8230
   lt_compile=`echo "$ac_compile" | $SED \
8231
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8232
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8233
   -e 's:$: $lt_compiler_flag:'`
8234
   (eval echo "\"\$as_me:8234: $lt_compile\"" >&5)
8235
   (eval "$lt_compile" 2>out/conftest.err)
8236
   ac_status=$?
8237
   cat out/conftest.err >&5
8238
   echo "$as_me:8238: \$? = $ac_status" >&5
8239
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8240
   then
8241
     # The compiler can only warn and ignore the option if not recognized
8242
     # So say no if there are warnings
8243
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8244
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8245
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8246
       lt_cv_prog_compiler_c_o=yes
8247
     fi
8248
   fi
8249
   chmod u+w . 2>&5
8250
   $RM conftest*
8251
   # SGI C++ compiler will create directory out/ii_files/ for
8252
   # template instantiation
8253
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8254
   $RM out/* && rmdir out
8255
   cd ..
8256
   $RM -r conftest
8257
   $RM conftest*
8258
 
8259
fi
8260
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8261
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8262
 
8263
 
8264
 
8265
 
8266
hard_links="nottested"
8267
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8268
  # do not overwrite the value of need_locks provided by the user
8269
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8270
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8271
  hard_links=yes
8272
  $RM conftest*
8273
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8274
  touch conftest.a
8275
  ln conftest.a conftest.b 2>&5 || hard_links=no
8276
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8277
  echo "$as_me:$LINENO: result: $hard_links" >&5
8278
echo "${ECHO_T}$hard_links" >&6
8279
  if test "$hard_links" = no; then
8280
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8281
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8282
    need_locks=warn
8283
  fi
8284
else
8285
  need_locks=no
8286
fi
8287
 
8288
 
8289
 
8290
 
8291
 
8292
 
8293
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8294
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8295
 
8296
  runpath_var=
8297
  allow_undefined_flag=
8298
  always_export_symbols=no
8299
  archive_cmds=
8300
  archive_expsym_cmds=
8301
  compiler_needs_object=no
8302
  enable_shared_with_static_runtimes=no
8303
  export_dynamic_flag_spec=
8304
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8305
  hardcode_automatic=no
8306
  hardcode_direct=no
8307
  hardcode_direct_absolute=no
8308
  hardcode_libdir_flag_spec=
8309
  hardcode_libdir_flag_spec_ld=
8310
  hardcode_libdir_separator=
8311
  hardcode_minus_L=no
8312
  hardcode_shlibpath_var=unsupported
8313
  inherit_rpath=no
8314
  link_all_deplibs=unknown
8315
  module_cmds=
8316
  module_expsym_cmds=
8317
  old_archive_from_new_cmds=
8318
  old_archive_from_expsyms_cmds=
8319
  thread_safe_flag_spec=
8320
  whole_archive_flag_spec=
8321
  # include_expsyms should be a list of space-separated symbols to be *always*
8322
  # included in the symbol list
8323
  include_expsyms=
8324
  # exclude_expsyms can be an extended regexp of symbols to exclude
8325
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8326
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8327
  # as well as any symbol that contains `d'.
8328
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8329
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8330
  # platforms (ab)use it in PIC code, but their linkers get confused if
8331
  # the symbol is explicitly referenced.  Since portable code cannot
8332
  # rely on this symbol name, it's probably fine to never include it in
8333
  # preloaded symbol tables.
8334
  # Exclude shared library initialization/finalization symbols.
8335
  extract_expsyms_cmds=
8336
 
8337
  case $host_os in
8338
  cygwin* | mingw* | pw32* | cegcc*)
8339
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8340
    # When not using gcc, we currently assume that we are using
8341
    # Microsoft Visual C++.
8342
    if test "$GCC" != yes; then
8343
      with_gnu_ld=no
8344
    fi
8345
    ;;
8346
  interix*)
8347
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8348
    with_gnu_ld=yes
8349
    ;;
8350
  openbsd*)
8351
    with_gnu_ld=no
8352
    ;;
8353
  esac
8354
 
8355
  ld_shlibs=yes
8356
  if test "$with_gnu_ld" = yes; then
8357
    # If archive_cmds runs LD, not CC, wlarc should be empty
8358
    wlarc='${wl}'
8359
 
8360
    # Set some defaults for GNU ld with shared library support. These
8361
    # are reset later if shared libraries are not supported. Putting them
8362
    # here allows them to be overridden if necessary.
8363
    runpath_var=LD_RUN_PATH
8364
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365
    export_dynamic_flag_spec='${wl}--export-dynamic'
8366
    # ancient GNU ld didn't support --whole-archive et. al.
8367
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8368
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8369
    else
8370
      whole_archive_flag_spec=
8371
    fi
8372
    supports_anon_versioning=no
8373
    case `$LD -v 2>&1` in
8374
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8375
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8376
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8377
      *\ 2.11.*) ;; # other 2.11 versions
8378
      *) supports_anon_versioning=yes ;;
8379
    esac
8380
 
8381
    # See if GNU ld supports shared libraries.
8382
    case $host_os in
8383
    aix[3-9]*)
8384
      # On AIX/PPC, the GNU linker is very broken
8385
      if test "$host_cpu" != ia64; then
8386
        ld_shlibs=no
8387
        cat <<_LT_EOF 1>&2
8388
 
8389
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8390
*** to be unable to reliably create shared libraries on AIX.
8391
*** Therefore, libtool is disabling shared libraries support.  If you
8392
*** really care for shared libraries, you may want to modify your PATH
8393
*** so that a non-GNU linker is found, and then restart.
8394
 
8395
_LT_EOF
8396
      fi
8397
      ;;
8398
 
8399
    amigaos*)
8400
      case $host_cpu in
8401
      powerpc)
8402
            # see comment about AmigaOS4 .so support
8403
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404
            archive_expsym_cmds=''
8405
        ;;
8406
      m68k)
8407
            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)'
8408
            hardcode_libdir_flag_spec='-L$libdir'
8409
            hardcode_minus_L=yes
8410
        ;;
8411
      esac
8412
      ;;
8413
 
8414
    beos*)
8415
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8416
        allow_undefined_flag=unsupported
8417
        # Joseph Beckenbach  says some releases of gcc
8418
        # support --undefined.  This deserves some investigation.  FIXME
8419
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420
      else
8421
        ld_shlibs=no
8422
      fi
8423
      ;;
8424
 
8425
    cygwin* | mingw* | pw32* | cegcc*)
8426
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8427
      # as there is no search path for DLLs.
8428
      hardcode_libdir_flag_spec='-L$libdir'
8429
      allow_undefined_flag=unsupported
8430
      always_export_symbols=no
8431
      enable_shared_with_static_runtimes=yes
8432
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8433
 
8434
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8435
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8436
        # If the export-symbols file already is a .def file (1st line
8437
        # is EXPORTS), use it as is; otherwise, prepend...
8438
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8439
          cp $export_symbols $output_objdir/$soname.def;
8440
        else
8441
          echo EXPORTS > $output_objdir/$soname.def;
8442
          cat $export_symbols >> $output_objdir/$soname.def;
8443
        fi~
8444
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8445
      else
8446
        ld_shlibs=no
8447
      fi
8448
      ;;
8449
 
8450
    interix[3-9]*)
8451
      hardcode_direct=no
8452
      hardcode_shlibpath_var=no
8453
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8454
      export_dynamic_flag_spec='${wl}-E'
8455
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8456
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8457
      # default) and relocated if they conflict, which is a slow very memory
8458
      # consuming and fragmenting process.  To avoid this, we pick a random,
8459
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8460
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8461
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8462
      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'
8463
      ;;
8464
 
8465
    gnu* | linux* | tpf* | k*bsd*-gnu)
8466
      tmp_diet=no
8467
      if test "$host_os" = linux-dietlibc; then
8468
        case $cc_basename in
8469
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8470
        esac
8471
      fi
8472
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8473
         && test "$tmp_diet" = no
8474
      then
8475
        tmp_addflag=
8476
        tmp_sharedflag='-shared'
8477
        case $cc_basename,$host_cpu in
8478
        pgcc*)                          # Portland Group C compiler
8479
          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'
8480
          tmp_addflag=' $pic_flag'
8481
          ;;
8482
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8483
          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'
8484
          tmp_addflag=' $pic_flag -Mnomain' ;;
8485
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8486
          tmp_addflag=' -i_dynamic' ;;
8487
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8488
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8489
        ifc* | ifort*)                  # Intel Fortran compiler
8490
          tmp_addflag=' -nofor_main' ;;
8491
        lf95*)                          # Lahey Fortran 8.1
8492
          whole_archive_flag_spec=
8493
          tmp_sharedflag='--shared' ;;
8494
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8495
          tmp_sharedflag='-qmkshrobj'
8496
          tmp_addflag= ;;
8497
        esac
8498
        case `$CC -V 2>&1 | sed 5q` in
8499
        *Sun\ C*)                       # Sun C 5.9
8500
          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'
8501
          compiler_needs_object=yes
8502
          tmp_sharedflag='-G' ;;
8503
        *Sun\ F*)                       # Sun Fortran 8.3
8504
          tmp_sharedflag='-G' ;;
8505
        esac
8506
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507
 
8508
        if test "x$supports_anon_versioning" = xyes; then
8509
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8510
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8511
            echo "local: *; };" >> $output_objdir/$libname.ver~
8512
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8513
        fi
8514
 
8515
        case $cc_basename in
8516
        xlf*)
8517
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8518
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8519
          hardcode_libdir_flag_spec=
8520
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8521
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8522
          if test "x$supports_anon_versioning" = xyes; then
8523
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8524
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8525
              echo "local: *; };" >> $output_objdir/$libname.ver~
8526
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8527
          fi
8528
          ;;
8529
        esac
8530
      else
8531
        ld_shlibs=no
8532
      fi
8533
      ;;
8534
 
8535
    netbsd*)
8536
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8537
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8538
        wlarc=
8539
      else
8540
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8542
      fi
8543
      ;;
8544
 
8545
    solaris*)
8546
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8547
        ld_shlibs=no
8548
        cat <<_LT_EOF 1>&2
8549
 
8550
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8551
*** create shared libraries on Solaris systems.  Therefore, libtool
8552
*** is disabling shared libraries support.  We urge you to upgrade GNU
8553
*** binutils to release 2.9.1 or newer.  Another option is to modify
8554
*** your PATH or compiler configuration so that the native linker is
8555
*** used, and then restart.
8556
 
8557
_LT_EOF
8558
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8559
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8561
      else
8562
        ld_shlibs=no
8563
      fi
8564
      ;;
8565
 
8566
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8567
      case `$LD -v 2>&1` in
8568
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8569
        ld_shlibs=no
8570
        cat <<_LT_EOF 1>&2
8571
 
8572
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8573
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8574
*** is disabling shared libraries support.  We urge you to upgrade GNU
8575
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8576
*** your PATH or compiler configuration so that the native linker is
8577
*** used, and then restart.
8578
 
8579
_LT_EOF
8580
        ;;
8581
        *)
8582
          # For security reasons, it is highly recommended that you always
8583
          # use absolute paths for naming shared libraries, and exclude the
8584
          # DT_RUNPATH tag from executables and libraries.  But doing so
8585
          # requires that you compile everything twice, which is a pain.
8586
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8587
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8590
          else
8591
            ld_shlibs=no
8592
          fi
8593
        ;;
8594
      esac
8595
      ;;
8596
 
8597
    sunos4*)
8598
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8599
      wlarc=
8600
      hardcode_direct=yes
8601
      hardcode_shlibpath_var=no
8602
      ;;
8603
 
8604
    *)
8605
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8607
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8608
      else
8609
        ld_shlibs=no
8610
      fi
8611
      ;;
8612
    esac
8613
 
8614
    if test "$ld_shlibs" = no; then
8615
      runpath_var=
8616
      hardcode_libdir_flag_spec=
8617
      export_dynamic_flag_spec=
8618
      whole_archive_flag_spec=
8619
    fi
8620
  else
8621
    # PORTME fill in a description of your system's linker (not GNU ld)
8622
    case $host_os in
8623
    aix3*)
8624
      allow_undefined_flag=unsupported
8625
      always_export_symbols=yes
8626
      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'
8627
      # Note: this linker hardcodes the directories in LIBPATH if there
8628
      # are no directories specified by -L.
8629
      hardcode_minus_L=yes
8630
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8631
        # Neither direct hardcoding nor static linking is supported with a
8632
        # broken collect2.
8633
        hardcode_direct=unsupported
8634
      fi
8635
      ;;
8636
 
8637
    aix[4-9]*)
8638
      if test "$host_cpu" = ia64; then
8639
        # On IA64, the linker does run time linking by default, so we don't
8640
        # have to do anything special.
8641
        aix_use_runtimelinking=no
8642
        exp_sym_flag='-Bexport'
8643
        no_entry_flag=""
8644
      else
8645
        # If we're using GNU nm, then we don't want the "-C" option.
8646
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8647
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8648
          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'
8649
        else
8650
          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'
8651
        fi
8652
        aix_use_runtimelinking=no
8653
 
8654
        # Test if we are trying to use run time linking or normal
8655
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8656
        # need to do runtime linking.
8657
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8658
          for ld_flag in $LDFLAGS; do
8659
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8660
            aix_use_runtimelinking=yes
8661
            break
8662
          fi
8663
          done
8664
          ;;
8665
        esac
8666
 
8667
        exp_sym_flag='-bexport'
8668
        no_entry_flag='-bnoentry'
8669
      fi
8670
 
8671
      # When large executables or shared objects are built, AIX ld can
8672
      # have problems creating the table of contents.  If linking a library
8673
      # or program results in "error TOC overflow" add -mminimal-toc to
8674
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8675
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8676
 
8677
      archive_cmds=''
8678
      hardcode_direct=yes
8679
      hardcode_direct_absolute=yes
8680
      hardcode_libdir_separator=':'
8681
      link_all_deplibs=yes
8682
      file_list_spec='${wl}-f,'
8683
 
8684
      if test "$GCC" = yes; then
8685
        case $host_os in aix4.[012]|aix4.[012].*)
8686
        # We only want to do this on AIX 4.2 and lower, the check
8687
        # below for broken collect2 doesn't work under 4.3+
8688
          collect2name=`${CC} -print-prog-name=collect2`
8689
          if test -f "$collect2name" &&
8690
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8691
          then
8692
          # We have reworked collect2
8693
          :
8694
          else
8695
          # We have old collect2
8696
          hardcode_direct=unsupported
8697
          # It fails to find uninstalled libraries when the uninstalled
8698
          # path is not listed in the libpath.  Setting hardcode_minus_L
8699
          # to unsupported forces relinking
8700
          hardcode_minus_L=yes
8701
          hardcode_libdir_flag_spec='-L$libdir'
8702
          hardcode_libdir_separator=
8703
          fi
8704
          ;;
8705
        esac
8706
        shared_flag='-shared'
8707
        if test "$aix_use_runtimelinking" = yes; then
8708
          shared_flag="$shared_flag "'${wl}-G'
8709
        fi
8710
      else
8711
        # not using gcc
8712
        if test "$host_cpu" = ia64; then
8713
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8714
        # chokes on -Wl,-G. The following line is correct:
8715
          shared_flag='-G'
8716
        else
8717
          if test "$aix_use_runtimelinking" = yes; then
8718
            shared_flag='${wl}-G'
8719
          else
8720
            shared_flag='${wl}-bM:SRE'
8721
          fi
8722
        fi
8723
      fi
8724
 
8725
      export_dynamic_flag_spec='${wl}-bexpall'
8726
      # It seems that -bexpall does not export symbols beginning with
8727
      # underscore (_), so it is better to generate a list of symbols to export.
8728
      always_export_symbols=yes
8729
      if test "$aix_use_runtimelinking" = yes; then
8730
        # Warning - without using the other runtime loading flags (-brtl),
8731
        # -berok will link without error, but may produce a broken library.
8732
        allow_undefined_flag='-berok'
8733
        # Determine the default libpath from the value encoded in an
8734
        # empty executable.
8735
        cat >conftest.$ac_ext <<_ACEOF
8736
/* confdefs.h.  */
8737
_ACEOF
8738
cat confdefs.h >>conftest.$ac_ext
8739
cat >>conftest.$ac_ext <<_ACEOF
8740
/* end confdefs.h.  */
8741
 
8742
int
8743
main ()
8744
{
8745
 
8746
  ;
8747
  return 0;
8748
}
8749
_ACEOF
8750
rm -f conftest.$ac_objext conftest$ac_exeext
8751
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8752
  (eval $ac_link) 2>conftest.er1
8753
  ac_status=$?
8754
  grep -v '^ *+' conftest.er1 >conftest.err
8755
  rm -f conftest.er1
8756
  cat conftest.err >&5
8757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758
  (exit $ac_status); } &&
8759
         { ac_try='test -z "$ac_c_werror_flag"
8760
                         || test ! -s conftest.err'
8761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762
  (eval $ac_try) 2>&5
8763
  ac_status=$?
8764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765
  (exit $ac_status); }; } &&
8766
         { ac_try='test -s conftest$ac_exeext'
8767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768
  (eval $ac_try) 2>&5
8769
  ac_status=$?
8770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771
  (exit $ac_status); }; }; then
8772
 
8773
lt_aix_libpath_sed='
8774
    /Import File Strings/,/^$/ {
8775
        /^0/ {
8776
            s/^0  *\(.*\)$/\1/
8777
            p
8778
        }
8779
    }'
8780
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8781
# Check for a 64-bit object if we didn't find anything.
8782
if test -z "$aix_libpath"; then
8783
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8784
fi
8785
else
8786
  echo "$as_me: failed program was:" >&5
8787
sed 's/^/| /' conftest.$ac_ext >&5
8788
 
8789
fi
8790
rm -f conftest.err conftest.$ac_objext \
8791
      conftest$ac_exeext conftest.$ac_ext
8792
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8793
 
8794
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8795
        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"
8796
      else
8797
        if test "$host_cpu" = ia64; then
8798
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8799
          allow_undefined_flag="-z nodefs"
8800
          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"
8801
        else
8802
         # Determine the default libpath from the value encoded in an
8803
         # empty executable.
8804
         cat >conftest.$ac_ext <<_ACEOF
8805
/* confdefs.h.  */
8806
_ACEOF
8807
cat confdefs.h >>conftest.$ac_ext
8808
cat >>conftest.$ac_ext <<_ACEOF
8809
/* end confdefs.h.  */
8810
 
8811
int
8812
main ()
8813
{
8814
 
8815
  ;
8816
  return 0;
8817
}
8818
_ACEOF
8819
rm -f conftest.$ac_objext conftest$ac_exeext
8820
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8821
  (eval $ac_link) 2>conftest.er1
8822
  ac_status=$?
8823
  grep -v '^ *+' conftest.er1 >conftest.err
8824
  rm -f conftest.er1
8825
  cat conftest.err >&5
8826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827
  (exit $ac_status); } &&
8828
         { ac_try='test -z "$ac_c_werror_flag"
8829
                         || test ! -s conftest.err'
8830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831
  (eval $ac_try) 2>&5
8832
  ac_status=$?
8833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834
  (exit $ac_status); }; } &&
8835
         { ac_try='test -s conftest$ac_exeext'
8836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837
  (eval $ac_try) 2>&5
8838
  ac_status=$?
8839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840
  (exit $ac_status); }; }; then
8841
 
8842
lt_aix_libpath_sed='
8843
    /Import File Strings/,/^$/ {
8844
        /^0/ {
8845
            s/^0  *\(.*\)$/\1/
8846
            p
8847
        }
8848
    }'
8849
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8850
# Check for a 64-bit object if we didn't find anything.
8851
if test -z "$aix_libpath"; then
8852
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853
fi
8854
else
8855
  echo "$as_me: failed program was:" >&5
8856
sed 's/^/| /' conftest.$ac_ext >&5
8857
 
8858
fi
8859
rm -f conftest.err conftest.$ac_objext \
8860
      conftest$ac_exeext conftest.$ac_ext
8861
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8862
 
8863
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8864
          # Warning - without using the other run time loading flags,
8865
          # -berok will link without error, but may produce a broken library.
8866
          no_undefined_flag=' ${wl}-bernotok'
8867
          allow_undefined_flag=' ${wl}-berok'
8868
          # Exported symbols can be pulled into shared objects from archives
8869
          whole_archive_flag_spec='$convenience'
8870
          archive_cmds_need_lc=yes
8871
          # This is similar to how AIX traditionally builds its shared libraries.
8872
          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'
8873
        fi
8874
      fi
8875
      ;;
8876
 
8877
    amigaos*)
8878
      case $host_cpu in
8879
      powerpc)
8880
            # see comment about AmigaOS4 .so support
8881
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882
            archive_expsym_cmds=''
8883
        ;;
8884
      m68k)
8885
            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)'
8886
            hardcode_libdir_flag_spec='-L$libdir'
8887
            hardcode_minus_L=yes
8888
        ;;
8889
      esac
8890
      ;;
8891
 
8892
    bsdi[45]*)
8893
      export_dynamic_flag_spec=-rdynamic
8894
      ;;
8895
 
8896
    cygwin* | mingw* | pw32* | cegcc*)
8897
      # When not using gcc, we currently assume that we are using
8898
      # Microsoft Visual C++.
8899
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8900
      # no search path for DLLs.
8901
      hardcode_libdir_flag_spec=' '
8902
      allow_undefined_flag=unsupported
8903
      # Tell ltmain to make .lib files, not .a files.
8904
      libext=lib
8905
      # Tell ltmain to make .dll files, not .so files.
8906
      shrext_cmds=".dll"
8907
      # FIXME: Setting linknames here is a bad hack.
8908
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8909
      # The linker will automatically build a .lib file if we build a DLL.
8910
      old_archive_from_new_cmds='true'
8911
      # FIXME: Should let the user specify the lib program.
8912
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8913
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8914
      enable_shared_with_static_runtimes=yes
8915
      ;;
8916
 
8917
    darwin* | rhapsody*)
8918
 
8919
 
8920
  archive_cmds_need_lc=no
8921
  hardcode_direct=no
8922
  hardcode_automatic=yes
8923
  hardcode_shlibpath_var=unsupported
8924
  whole_archive_flag_spec=''
8925
  link_all_deplibs=yes
8926
  allow_undefined_flag="$_lt_dar_allow_undefined"
8927
  case $cc_basename in
8928
     ifort*) _lt_dar_can_shared=yes ;;
8929
     *) _lt_dar_can_shared=$GCC ;;
8930
  esac
8931
  if test "$_lt_dar_can_shared" = "yes"; then
8932
    output_verbose_link_cmd=echo
8933
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8934
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8935
    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}"
8936
    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}"
8937
 
8938
  else
8939
  ld_shlibs=no
8940
  fi
8941
 
8942
      ;;
8943
 
8944
    dgux*)
8945
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946
      hardcode_libdir_flag_spec='-L$libdir'
8947
      hardcode_shlibpath_var=no
8948
      ;;
8949
 
8950
    freebsd1*)
8951
      ld_shlibs=no
8952
      ;;
8953
 
8954
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8955
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8956
    # does not break anything, and helps significantly (at the cost of a little
8957
    # extra space).
8958
    freebsd2.2*)
8959
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8960
      hardcode_libdir_flag_spec='-R$libdir'
8961
      hardcode_direct=yes
8962
      hardcode_shlibpath_var=no
8963
      ;;
8964
 
8965
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8966
    freebsd2*)
8967
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8968
      hardcode_direct=yes
8969
      hardcode_minus_L=yes
8970
      hardcode_shlibpath_var=no
8971
      ;;
8972
 
8973
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8974
    freebsd* | dragonfly*)
8975
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8976
      hardcode_libdir_flag_spec='-R$libdir'
8977
      hardcode_direct=yes
8978
      hardcode_shlibpath_var=no
8979
      ;;
8980
 
8981
    hpux9*)
8982
      if test "$GCC" = yes; then
8983
        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'
8984
      else
8985
        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'
8986
      fi
8987
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8988
      hardcode_libdir_separator=:
8989
      hardcode_direct=yes
8990
 
8991
      # hardcode_minus_L: Not really in the search PATH,
8992
      # but as the default location of the library.
8993
      hardcode_minus_L=yes
8994
      export_dynamic_flag_spec='${wl}-E'
8995
      ;;
8996
 
8997
    hpux10*)
8998
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8999
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9000
      else
9001
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9002
      fi
9003
      if test "$with_gnu_ld" = no; then
9004
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9005
        hardcode_libdir_flag_spec_ld='+b $libdir'
9006
        hardcode_libdir_separator=:
9007
        hardcode_direct=yes
9008
        hardcode_direct_absolute=yes
9009
        export_dynamic_flag_spec='${wl}-E'
9010
        # hardcode_minus_L: Not really in the search PATH,
9011
        # but as the default location of the library.
9012
        hardcode_minus_L=yes
9013
      fi
9014
      ;;
9015
 
9016
    hpux11*)
9017
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9018
        case $host_cpu in
9019
        hppa*64*)
9020
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021
          ;;
9022
        ia64*)
9023
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9024
          ;;
9025
        *)
9026
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9027
          ;;
9028
        esac
9029
      else
9030
        case $host_cpu in
9031
        hppa*64*)
9032
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033
          ;;
9034
        ia64*)
9035
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9036
          ;;
9037
        *)
9038
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9039
          ;;
9040
        esac
9041
      fi
9042
      if test "$with_gnu_ld" = no; then
9043
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9044
        hardcode_libdir_separator=:
9045
 
9046
        case $host_cpu in
9047
        hppa*64*|ia64*)
9048
          hardcode_direct=no
9049
          hardcode_shlibpath_var=no
9050
          ;;
9051
        *)
9052
          hardcode_direct=yes
9053
          hardcode_direct_absolute=yes
9054
          export_dynamic_flag_spec='${wl}-E'
9055
 
9056
          # hardcode_minus_L: Not really in the search PATH,
9057
          # but as the default location of the library.
9058
          hardcode_minus_L=yes
9059
          ;;
9060
        esac
9061
      fi
9062
      ;;
9063
 
9064
    irix5* | irix6* | nonstopux*)
9065
      if test "$GCC" = yes; then
9066
        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'
9067
        # Try to use the -exported_symbol ld option, if it does not
9068
        # work, assume that -exports_file does not work either and
9069
        # implicitly export all symbols.
9070
        save_LDFLAGS="$LDFLAGS"
9071
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9072
        cat >conftest.$ac_ext <<_ACEOF
9073
int foo(void) {}
9074
_ACEOF
9075
rm -f conftest.$ac_objext conftest$ac_exeext
9076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077
  (eval $ac_link) 2>conftest.er1
9078
  ac_status=$?
9079
  grep -v '^ *+' conftest.er1 >conftest.err
9080
  rm -f conftest.er1
9081
  cat conftest.err >&5
9082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083
  (exit $ac_status); } &&
9084
         { ac_try='test -z "$ac_c_werror_flag"
9085
                         || test ! -s conftest.err'
9086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9087
  (eval $ac_try) 2>&5
9088
  ac_status=$?
9089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090
  (exit $ac_status); }; } &&
9091
         { ac_try='test -s conftest$ac_exeext'
9092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093
  (eval $ac_try) 2>&5
9094
  ac_status=$?
9095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096
  (exit $ac_status); }; }; then
9097
  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'
9098
 
9099
else
9100
  echo "$as_me: failed program was:" >&5
9101
sed 's/^/| /' conftest.$ac_ext >&5
9102
 
9103
fi
9104
rm -f conftest.err conftest.$ac_objext \
9105
      conftest$ac_exeext conftest.$ac_ext
9106
        LDFLAGS="$save_LDFLAGS"
9107
      else
9108
        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'
9109
        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'
9110
      fi
9111
      archive_cmds_need_lc='no'
9112
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9113
      hardcode_libdir_separator=:
9114
      inherit_rpath=yes
9115
      link_all_deplibs=yes
9116
      ;;
9117
 
9118
    netbsd*)
9119
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9120
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9121
      else
9122
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9123
      fi
9124
      hardcode_libdir_flag_spec='-R$libdir'
9125
      hardcode_direct=yes
9126
      hardcode_shlibpath_var=no
9127
      ;;
9128
 
9129
    newsos6)
9130
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131
      hardcode_direct=yes
9132
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9133
      hardcode_libdir_separator=:
9134
      hardcode_shlibpath_var=no
9135
      ;;
9136
 
9137
    *nto* | *qnx*)
9138
      ;;
9139
 
9140
    openbsd*)
9141
      if test -f /usr/libexec/ld.so; then
9142
        hardcode_direct=yes
9143
        hardcode_shlibpath_var=no
9144
        hardcode_direct_absolute=yes
9145
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9146
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9147
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9148
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9149
          export_dynamic_flag_spec='${wl}-E'
9150
        else
9151
          case $host_os in
9152
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9153
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9154
             hardcode_libdir_flag_spec='-R$libdir'
9155
             ;;
9156
           *)
9157
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9158
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9159
             ;;
9160
          esac
9161
        fi
9162
      else
9163
        ld_shlibs=no
9164
      fi
9165
      ;;
9166
 
9167
    os2*)
9168
      hardcode_libdir_flag_spec='-L$libdir'
9169
      hardcode_minus_L=yes
9170
      allow_undefined_flag=unsupported
9171
      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'
9172
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9173
      ;;
9174
 
9175
    osf3*)
9176
      if test "$GCC" = yes; then
9177
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9178
        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'
9179
      else
9180
        allow_undefined_flag=' -expect_unresolved \*'
9181
        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'
9182
      fi
9183
      archive_cmds_need_lc='no'
9184
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9185
      hardcode_libdir_separator=:
9186
      ;;
9187
 
9188
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9189
      if test "$GCC" = yes; then
9190
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9191
        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'
9192
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9193
      else
9194
        allow_undefined_flag=' -expect_unresolved \*'
9195
        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'
9196
        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~
9197
        $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'
9198
 
9199
        # Both c and cxx compiler support -rpath directly
9200
        hardcode_libdir_flag_spec='-rpath $libdir'
9201
      fi
9202
      archive_cmds_need_lc='no'
9203
      hardcode_libdir_separator=:
9204
      ;;
9205
 
9206
    solaris*)
9207
      no_undefined_flag=' -z defs'
9208
      if test "$GCC" = yes; then
9209
        wlarc='${wl}'
9210
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9212
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9213
      else
9214
        case `$CC -V 2>&1` in
9215
        *"Compilers 5.0"*)
9216
          wlarc=''
9217
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9219
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9220
          ;;
9221
        *)
9222
          wlarc='${wl}'
9223
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9224
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9225
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9226
          ;;
9227
        esac
9228
      fi
9229
      hardcode_libdir_flag_spec='-R$libdir'
9230
      hardcode_shlibpath_var=no
9231
      case $host_os in
9232
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9233
      *)
9234
        # The compiler driver will combine and reorder linker options,
9235
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9236
        # but is careful enough not to reorder.
9237
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9238
        if test "$GCC" = yes; then
9239
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9240
        else
9241
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9242
        fi
9243
        ;;
9244
      esac
9245
      link_all_deplibs=yes
9246
      ;;
9247
 
9248
    sunos4*)
9249
      if test "x$host_vendor" = xsequent; then
9250
        # Use $CC to link under sequent, because it throws in some extra .o
9251
        # files that make .init and .fini sections work.
9252
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9253
      else
9254
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9255
      fi
9256
      hardcode_libdir_flag_spec='-L$libdir'
9257
      hardcode_direct=yes
9258
      hardcode_minus_L=yes
9259
      hardcode_shlibpath_var=no
9260
      ;;
9261
 
9262
    sysv4)
9263
      case $host_vendor in
9264
        sni)
9265
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9266
          hardcode_direct=yes # is this really true???
9267
        ;;
9268
        siemens)
9269
          ## LD is ld it makes a PLAMLIB
9270
          ## CC just makes a GrossModule.
9271
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9272
          reload_cmds='$CC -r -o $output$reload_objs'
9273
          hardcode_direct=no
9274
        ;;
9275
        motorola)
9276
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9277
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9278
        ;;
9279
      esac
9280
      runpath_var='LD_RUN_PATH'
9281
      hardcode_shlibpath_var=no
9282
      ;;
9283
 
9284
    sysv4.3*)
9285
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286
      hardcode_shlibpath_var=no
9287
      export_dynamic_flag_spec='-Bexport'
9288
      ;;
9289
 
9290
    sysv4*MP*)
9291
      if test -d /usr/nec; then
9292
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293
        hardcode_shlibpath_var=no
9294
        runpath_var=LD_RUN_PATH
9295
        hardcode_runpath_var=yes
9296
        ld_shlibs=yes
9297
      fi
9298
      ;;
9299
 
9300
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9301
      no_undefined_flag='${wl}-z,text'
9302
      archive_cmds_need_lc=no
9303
      hardcode_shlibpath_var=no
9304
      runpath_var='LD_RUN_PATH'
9305
 
9306
      if test "$GCC" = yes; then
9307
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309
      else
9310
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
      fi
9313
      ;;
9314
 
9315
    sysv5* | sco3.2v5* | sco5v6*)
9316
      # Note: We can NOT use -z defs as we might desire, because we do not
9317
      # link with -lc, and that would cause any symbols used from libc to
9318
      # always be unresolved, which means just about no library would
9319
      # ever link correctly.  If we're not using GNU ld we use -z text
9320
      # though, which does catch some bad symbols but isn't as heavy-handed
9321
      # as -z defs.
9322
      no_undefined_flag='${wl}-z,text'
9323
      allow_undefined_flag='${wl}-z,nodefs'
9324
      archive_cmds_need_lc=no
9325
      hardcode_shlibpath_var=no
9326
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9327
      hardcode_libdir_separator=':'
9328
      link_all_deplibs=yes
9329
      export_dynamic_flag_spec='${wl}-Bexport'
9330
      runpath_var='LD_RUN_PATH'
9331
 
9332
      if test "$GCC" = yes; then
9333
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9334
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335
      else
9336
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338
      fi
9339
      ;;
9340
 
9341
    uts4*)
9342
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343
      hardcode_libdir_flag_spec='-L$libdir'
9344
      hardcode_shlibpath_var=no
9345
      ;;
9346
 
9347
    *)
9348
      ld_shlibs=no
9349
      ;;
9350
    esac
9351
 
9352
    if test x$host_vendor = xsni; then
9353
      case $host in
9354
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9355
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9356
        ;;
9357
      esac
9358
    fi
9359
  fi
9360
 
9361
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9362
echo "${ECHO_T}$ld_shlibs" >&6
9363
test "$ld_shlibs" = no && can_build_shared=no
9364
 
9365
with_gnu_ld=$with_gnu_ld
9366
 
9367
 
9368
 
9369
 
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
#
9382
# Do we need to explicitly link libc?
9383
#
9384
case "x$archive_cmds_need_lc" in
9385
x|xyes)
9386
  # Assume -lc should be added
9387
  archive_cmds_need_lc=yes
9388
 
9389
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9390
    case $archive_cmds in
9391
    *'~'*)
9392
      # FIXME: we may have to deal with multi-command sequences.
9393
      ;;
9394
    '$CC '*)
9395
      # Test whether the compiler implicitly links with -lc since on some
9396
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9397
      # to ld, don't add -lc before -lgcc.
9398
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9399
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9400
      $RM conftest*
9401
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9402
 
9403
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9404
  (eval $ac_compile) 2>&5
9405
  ac_status=$?
9406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407
  (exit $ac_status); } 2>conftest.err; then
9408
        soname=conftest
9409
        lib=conftest
9410
        libobjs=conftest.$ac_objext
9411
        deplibs=
9412
        wl=$lt_prog_compiler_wl
9413
        pic_flag=$lt_prog_compiler_pic
9414
        compiler_flags=-v
9415
        linker_flags=-v
9416
        verstring=
9417
        output_objdir=.
9418
        libname=conftest
9419
        lt_save_allow_undefined_flag=$allow_undefined_flag
9420
        allow_undefined_flag=
9421
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9422
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9423
  ac_status=$?
9424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425
  (exit $ac_status); }
9426
        then
9427
          archive_cmds_need_lc=no
9428
        else
9429
          archive_cmds_need_lc=yes
9430
        fi
9431
        allow_undefined_flag=$lt_save_allow_undefined_flag
9432
      else
9433
        cat conftest.err 1>&5
9434
      fi
9435
      $RM conftest*
9436
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9437
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9438
      ;;
9439
    esac
9440
  fi
9441
  ;;
9442
esac
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
 
9578
 
9579
 
9580
 
9581
 
9582
 
9583
 
9584
 
9585
 
9586
 
9587
 
9588
 
9589
 
9590
 
9591
 
9592
 
9593
 
9594
 
9595
 
9596
 
9597
 
9598
 
9599
 
9600
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9601
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9602
 
9603
if test "$GCC" = yes; then
9604
  case $host_os in
9605
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9606
    *) lt_awk_arg="/^libraries:/" ;;
9607
  esac
9608
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9609
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9610
    # if the path contains ";" then we assume it to be the separator
9611
    # otherwise default to the standard path separator (i.e. ":") - it is
9612
    # assumed that no part of a normal pathname contains ";" but that should
9613
    # okay in the real world where ";" in dirpaths is itself problematic.
9614
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9615
  else
9616
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9617
  fi
9618
  # Ok, now we have the path, separated by spaces, we can step through it
9619
  # and add multilib dir if necessary.
9620
  lt_tmp_lt_search_path_spec=
9621
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9622
  for lt_sys_path in $lt_search_path_spec; do
9623
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9624
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9625
    else
9626
      test -d "$lt_sys_path" && \
9627
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9628
    fi
9629
  done
9630
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9631
BEGIN {RS=" "; FS="/|\n";} {
9632
  lt_foo="";
9633
  lt_count=0;
9634
  for (lt_i = NF; lt_i > 0; lt_i--) {
9635
    if ($lt_i != "" && $lt_i != ".") {
9636
      if ($lt_i == "..") {
9637
        lt_count++;
9638
      } else {
9639
        if (lt_count == 0) {
9640
          lt_foo="/" $lt_i lt_foo;
9641
        } else {
9642
          lt_count--;
9643
        }
9644
      }
9645
    }
9646
  }
9647
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9648
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9649
}'`
9650
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9651
else
9652
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9653
fi
9654
library_names_spec=
9655
libname_spec='lib$name'
9656
soname_spec=
9657
shrext_cmds=".so"
9658
postinstall_cmds=
9659
postuninstall_cmds=
9660
finish_cmds=
9661
finish_eval=
9662
shlibpath_var=
9663
shlibpath_overrides_runpath=unknown
9664
version_type=none
9665
dynamic_linker="$host_os ld.so"
9666
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9667
need_lib_prefix=unknown
9668
hardcode_into_libs=no
9669
 
9670
# when you set need_version to no, make sure it does not cause -set_version
9671
# flags to be left without arguments
9672
need_version=unknown
9673
 
9674
case $host_os in
9675
aix3*)
9676
  version_type=linux
9677
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9678
  shlibpath_var=LIBPATH
9679
 
9680
  # AIX 3 has no versioning support, so we append a major version to the name.
9681
  soname_spec='${libname}${release}${shared_ext}$major'
9682
  ;;
9683
 
9684
aix[4-9]*)
9685
  version_type=linux
9686
  need_lib_prefix=no
9687
  need_version=no
9688
  hardcode_into_libs=yes
9689
  if test "$host_cpu" = ia64; then
9690
    # AIX 5 supports IA64
9691
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9692
    shlibpath_var=LD_LIBRARY_PATH
9693
  else
9694
    # With GCC up to 2.95.x, collect2 would create an import file
9695
    # for dependence libraries.  The import file would start with
9696
    # the line `#! .'.  This would cause the generated library to
9697
    # depend on `.', always an invalid library.  This was fixed in
9698
    # development snapshots of GCC prior to 3.0.
9699
    case $host_os in
9700
      aix4 | aix4.[01] | aix4.[01].*)
9701
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9702
           echo ' yes '
9703
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9704
        :
9705
      else
9706
        can_build_shared=no
9707
      fi
9708
      ;;
9709
    esac
9710
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9711
    # soname into executable. Probably we can add versioning support to
9712
    # collect2, so additional links can be useful in future.
9713
    if test "$aix_use_runtimelinking" = yes; then
9714
      # If using run time linking (on AIX 4.2 or later) use lib.so
9715
      # instead of lib.a to let people know that these are not
9716
      # typical AIX shared libraries.
9717
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718
    else
9719
      # We preserve .a as extension for shared libraries through AIX4.2
9720
      # and later when we are not doing run time linking.
9721
      library_names_spec='${libname}${release}.a $libname.a'
9722
      soname_spec='${libname}${release}${shared_ext}$major'
9723
    fi
9724
    shlibpath_var=LIBPATH
9725
  fi
9726
  ;;
9727
 
9728
amigaos*)
9729
  case $host_cpu in
9730
  powerpc)
9731
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9732
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9733
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734
    ;;
9735
  m68k)
9736
    library_names_spec='$libname.ixlibrary $libname.a'
9737
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9738
    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'
9739
    ;;
9740
  esac
9741
  ;;
9742
 
9743
beos*)
9744
  library_names_spec='${libname}${shared_ext}'
9745
  dynamic_linker="$host_os ld.so"
9746
  shlibpath_var=LIBRARY_PATH
9747
  ;;
9748
 
9749
bsdi[45]*)
9750
  version_type=linux
9751
  need_version=no
9752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753
  soname_spec='${libname}${release}${shared_ext}$major'
9754
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9755
  shlibpath_var=LD_LIBRARY_PATH
9756
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9757
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9758
  # the default ld.so.conf also contains /usr/contrib/lib and
9759
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9760
  # libtool to hard-code these into programs
9761
  ;;
9762
 
9763
cygwin* | mingw* | pw32* | cegcc*)
9764
  version_type=windows
9765
  shrext_cmds=".dll"
9766
  need_version=no
9767
  need_lib_prefix=no
9768
 
9769
  case $GCC,$host_os in
9770
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9771
    library_names_spec='$libname.dll.a'
9772
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9773
    postinstall_cmds='base_file=`basename \${file}`~
9774
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9775
      dldir=$destdir/`dirname \$dlpath`~
9776
      test -d \$dldir || mkdir -p \$dldir~
9777
      $install_prog $dir/$dlname \$dldir/$dlname~
9778
      chmod a+x \$dldir/$dlname~
9779
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9780
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9781
      fi'
9782
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9783
      dlpath=$dir/\$dldll~
9784
       $RM \$dlpath'
9785
    shlibpath_overrides_runpath=yes
9786
 
9787
    case $host_os in
9788
    cygwin*)
9789
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9790
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9791
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9792
      ;;
9793
    mingw* | cegcc*)
9794
      # MinGW DLLs use traditional 'lib' prefix
9795
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9796
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9797
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9798
        # It is most probably a Windows format PATH printed by
9799
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9800
        # path with ; separators, and with drive letters. We can handle the
9801
        # drive letters (cygwin fileutils understands them), so leave them,
9802
        # especially as we might pass files found there to a mingw objdump,
9803
        # which wouldn't understand a cygwinified path. Ahh.
9804
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9805
      else
9806
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9807
      fi
9808
      ;;
9809
    pw32*)
9810
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9811
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9812
      ;;
9813
    esac
9814
    ;;
9815
 
9816
  *)
9817
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9818
    ;;
9819
  esac
9820
  dynamic_linker='Win32 ld.exe'
9821
  # FIXME: first we should search . and the directory the executable is in
9822
  shlibpath_var=PATH
9823
  ;;
9824
 
9825
darwin* | rhapsody*)
9826
  dynamic_linker="$host_os dyld"
9827
  version_type=darwin
9828
  need_lib_prefix=no
9829
  need_version=no
9830
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9831
  soname_spec='${libname}${release}${major}$shared_ext'
9832
  shlibpath_overrides_runpath=yes
9833
  shlibpath_var=DYLD_LIBRARY_PATH
9834
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9835
 
9836
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9837
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9838
  ;;
9839
 
9840
dgux*)
9841
  version_type=linux
9842
  need_lib_prefix=no
9843
  need_version=no
9844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9845
  soname_spec='${libname}${release}${shared_ext}$major'
9846
  shlibpath_var=LD_LIBRARY_PATH
9847
  ;;
9848
 
9849
freebsd1*)
9850
  dynamic_linker=no
9851
  ;;
9852
 
9853
freebsd* | dragonfly*)
9854
  # DragonFly does not have aout.  When/if they implement a new
9855
  # versioning mechanism, adjust this.
9856
  if test -x /usr/bin/objformat; then
9857
    objformat=`/usr/bin/objformat`
9858
  else
9859
    case $host_os in
9860
    freebsd[123]*) objformat=aout ;;
9861
    *) objformat=elf ;;
9862
    esac
9863
  fi
9864
  version_type=freebsd-$objformat
9865
  case $version_type in
9866
    freebsd-elf*)
9867
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9868
      need_version=no
9869
      need_lib_prefix=no
9870
      ;;
9871
    freebsd-*)
9872
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9873
      need_version=yes
9874
      ;;
9875
  esac
9876
  shlibpath_var=LD_LIBRARY_PATH
9877
  case $host_os in
9878
  freebsd2*)
9879
    shlibpath_overrides_runpath=yes
9880
    ;;
9881
  freebsd3.[01]* | freebsdelf3.[01]*)
9882
    shlibpath_overrides_runpath=yes
9883
    hardcode_into_libs=yes
9884
    ;;
9885
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9886
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9887
    shlibpath_overrides_runpath=no
9888
    hardcode_into_libs=yes
9889
    ;;
9890
  *) # from 4.6 on, and DragonFly
9891
    shlibpath_overrides_runpath=yes
9892
    hardcode_into_libs=yes
9893
    ;;
9894
  esac
9895
  ;;
9896
 
9897
gnu*)
9898
  version_type=linux
9899
  need_lib_prefix=no
9900
  need_version=no
9901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9902
  soname_spec='${libname}${release}${shared_ext}$major'
9903
  shlibpath_var=LD_LIBRARY_PATH
9904
  hardcode_into_libs=yes
9905
  ;;
9906
 
9907
hpux9* | hpux10* | hpux11*)
9908
  # Give a soname corresponding to the major version so that dld.sl refuses to
9909
  # link against other versions.
9910
  version_type=sunos
9911
  need_lib_prefix=no
9912
  need_version=no
9913
  case $host_cpu in
9914
  ia64*)
9915
    shrext_cmds='.so'
9916
    hardcode_into_libs=yes
9917
    dynamic_linker="$host_os dld.so"
9918
    shlibpath_var=LD_LIBRARY_PATH
9919
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9920
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921
    soname_spec='${libname}${release}${shared_ext}$major'
9922
    if test "X$HPUX_IA64_MODE" = X32; then
9923
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9924
    else
9925
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9926
    fi
9927
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928
    ;;
9929
  hppa*64*)
9930
    shrext_cmds='.sl'
9931
    hardcode_into_libs=yes
9932
    dynamic_linker="$host_os dld.sl"
9933
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9934
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936
    soname_spec='${libname}${release}${shared_ext}$major'
9937
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9939
    ;;
9940
  *)
9941
    shrext_cmds='.sl'
9942
    dynamic_linker="$host_os dld.sl"
9943
    shlibpath_var=SHLIB_PATH
9944
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9945
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946
    soname_spec='${libname}${release}${shared_ext}$major'
9947
    ;;
9948
  esac
9949
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9950
  postinstall_cmds='chmod 555 $lib'
9951
  ;;
9952
 
9953
interix[3-9]*)
9954
  version_type=linux
9955
  need_lib_prefix=no
9956
  need_version=no
9957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958
  soname_spec='${libname}${release}${shared_ext}$major'
9959
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9960
  shlibpath_var=LD_LIBRARY_PATH
9961
  shlibpath_overrides_runpath=no
9962
  hardcode_into_libs=yes
9963
  ;;
9964
 
9965
irix5* | irix6* | nonstopux*)
9966
  case $host_os in
9967
    nonstopux*) version_type=nonstopux ;;
9968
    *)
9969
        if test "$lt_cv_prog_gnu_ld" = yes; then
9970
                version_type=linux
9971
        else
9972
                version_type=irix
9973
        fi ;;
9974
  esac
9975
  need_lib_prefix=no
9976
  need_version=no
9977
  soname_spec='${libname}${release}${shared_ext}$major'
9978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9979
  case $host_os in
9980
  irix5* | nonstopux*)
9981
    libsuff= shlibsuff=
9982
    ;;
9983
  *)
9984
    case $LD in # libtool.m4 will add one of these switches to LD
9985
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9986
      libsuff= shlibsuff= libmagic=32-bit;;
9987
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9988
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9989
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9990
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9991
    *) libsuff= shlibsuff= libmagic=never-match;;
9992
    esac
9993
    ;;
9994
  esac
9995
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9996
  shlibpath_overrides_runpath=no
9997
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9998
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9999
  hardcode_into_libs=yes
10000
  ;;
10001
 
10002
# No shared lib support for Linux oldld, aout, or coff.
10003
linux*oldld* | linux*aout* | linux*coff*)
10004
  dynamic_linker=no
10005
  ;;
10006
 
10007
# This must be Linux ELF.
10008
linux* | k*bsd*-gnu)
10009
  version_type=linux
10010
  need_lib_prefix=no
10011
  need_version=no
10012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013
  soname_spec='${libname}${release}${shared_ext}$major'
10014
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10015
  shlibpath_var=LD_LIBRARY_PATH
10016
  shlibpath_overrides_runpath=no
10017
  # Some binutils ld are patched to set DT_RUNPATH
10018
  save_LDFLAGS=$LDFLAGS
10019
  save_libdir=$libdir
10020
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10021
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10022
  cat >conftest.$ac_ext <<_ACEOF
10023
/* confdefs.h.  */
10024
_ACEOF
10025
cat confdefs.h >>conftest.$ac_ext
10026
cat >>conftest.$ac_ext <<_ACEOF
10027
/* end confdefs.h.  */
10028
 
10029
int
10030
main ()
10031
{
10032
 
10033
  ;
10034
  return 0;
10035
}
10036
_ACEOF
10037
rm -f conftest.$ac_objext conftest$ac_exeext
10038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039
  (eval $ac_link) 2>conftest.er1
10040
  ac_status=$?
10041
  grep -v '^ *+' conftest.er1 >conftest.err
10042
  rm -f conftest.er1
10043
  cat conftest.err >&5
10044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045
  (exit $ac_status); } &&
10046
         { ac_try='test -z "$ac_c_werror_flag"
10047
                         || test ! -s conftest.err'
10048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049
  (eval $ac_try) 2>&5
10050
  ac_status=$?
10051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052
  (exit $ac_status); }; } &&
10053
         { ac_try='test -s conftest$ac_exeext'
10054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055
  (eval $ac_try) 2>&5
10056
  ac_status=$?
10057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058
  (exit $ac_status); }; }; then
10059
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10060
  shlibpath_overrides_runpath=yes
10061
fi
10062
 
10063
else
10064
  echo "$as_me: failed program was:" >&5
10065
sed 's/^/| /' conftest.$ac_ext >&5
10066
 
10067
fi
10068
rm -f conftest.err conftest.$ac_objext \
10069
      conftest$ac_exeext conftest.$ac_ext
10070
  LDFLAGS=$save_LDFLAGS
10071
  libdir=$save_libdir
10072
 
10073
  # This implies no fast_install, which is unacceptable.
10074
  # Some rework will be needed to allow for fast_install
10075
  # before this can be enabled.
10076
  hardcode_into_libs=yes
10077
 
10078
  # Append ld.so.conf contents to the search path
10079
  if test -f /etc/ld.so.conf; then
10080
    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' ' '`
10081
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10082
  fi
10083
 
10084
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10085
  # powerpc, because MkLinux only supported shared libraries with the
10086
  # GNU dynamic linker.  Since this was broken with cross compilers,
10087
  # most powerpc-linux boxes support dynamic linking these days and
10088
  # people can always --disable-shared, the test was removed, and we
10089
  # assume the GNU/Linux dynamic linker is in use.
10090
  dynamic_linker='GNU/Linux ld.so'
10091
  ;;
10092
 
10093
netbsd*)
10094
  version_type=sunos
10095
  need_lib_prefix=no
10096
  need_version=no
10097
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100
    dynamic_linker='NetBSD (a.out) ld.so'
10101
  else
10102
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103
    soname_spec='${libname}${release}${shared_ext}$major'
10104
    dynamic_linker='NetBSD ld.elf_so'
10105
  fi
10106
  shlibpath_var=LD_LIBRARY_PATH
10107
  shlibpath_overrides_runpath=yes
10108
  hardcode_into_libs=yes
10109
  ;;
10110
 
10111
newsos6)
10112
  version_type=linux
10113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114
  shlibpath_var=LD_LIBRARY_PATH
10115
  shlibpath_overrides_runpath=yes
10116
  ;;
10117
 
10118
*nto* | *qnx*)
10119
  version_type=qnx
10120
  need_lib_prefix=no
10121
  need_version=no
10122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123
  soname_spec='${libname}${release}${shared_ext}$major'
10124
  shlibpath_var=LD_LIBRARY_PATH
10125
  shlibpath_overrides_runpath=no
10126
  hardcode_into_libs=yes
10127
  dynamic_linker='ldqnx.so'
10128
  ;;
10129
 
10130
openbsd*)
10131
  version_type=sunos
10132
  sys_lib_dlsearch_path_spec="/usr/lib"
10133
  need_lib_prefix=no
10134
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10135
  case $host_os in
10136
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10137
    *)                          need_version=no  ;;
10138
  esac
10139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10140
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10141
  shlibpath_var=LD_LIBRARY_PATH
10142
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143
    case $host_os in
10144
      openbsd2.[89] | openbsd2.[89].*)
10145
        shlibpath_overrides_runpath=no
10146
        ;;
10147
      *)
10148
        shlibpath_overrides_runpath=yes
10149
        ;;
10150
      esac
10151
  else
10152
    shlibpath_overrides_runpath=yes
10153
  fi
10154
  ;;
10155
 
10156
os2*)
10157
  libname_spec='$name'
10158
  shrext_cmds=".dll"
10159
  need_lib_prefix=no
10160
  library_names_spec='$libname${shared_ext} $libname.a'
10161
  dynamic_linker='OS/2 ld.exe'
10162
  shlibpath_var=LIBPATH
10163
  ;;
10164
 
10165
osf3* | osf4* | osf5*)
10166
  version_type=osf
10167
  need_lib_prefix=no
10168
  need_version=no
10169
  soname_spec='${libname}${release}${shared_ext}$major'
10170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171
  shlibpath_var=LD_LIBRARY_PATH
10172
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10173
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10174
  ;;
10175
 
10176
rdos*)
10177
  dynamic_linker=no
10178
  ;;
10179
 
10180
solaris*)
10181
  version_type=linux
10182
  need_lib_prefix=no
10183
  need_version=no
10184
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185
  soname_spec='${libname}${release}${shared_ext}$major'
10186
  shlibpath_var=LD_LIBRARY_PATH
10187
  shlibpath_overrides_runpath=yes
10188
  hardcode_into_libs=yes
10189
  # ldd complains unless libraries are executable
10190
  postinstall_cmds='chmod +x $lib'
10191
  ;;
10192
 
10193
sunos4*)
10194
  version_type=sunos
10195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10196
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10197
  shlibpath_var=LD_LIBRARY_PATH
10198
  shlibpath_overrides_runpath=yes
10199
  if test "$with_gnu_ld" = yes; then
10200
    need_lib_prefix=no
10201
  fi
10202
  need_version=yes
10203
  ;;
10204
 
10205
sysv4 | sysv4.3*)
10206
  version_type=linux
10207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208
  soname_spec='${libname}${release}${shared_ext}$major'
10209
  shlibpath_var=LD_LIBRARY_PATH
10210
  case $host_vendor in
10211
    sni)
10212
      shlibpath_overrides_runpath=no
10213
      need_lib_prefix=no
10214
      runpath_var=LD_RUN_PATH
10215
      ;;
10216
    siemens)
10217
      need_lib_prefix=no
10218
      ;;
10219
    motorola)
10220
      need_lib_prefix=no
10221
      need_version=no
10222
      shlibpath_overrides_runpath=no
10223
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10224
      ;;
10225
  esac
10226
  ;;
10227
 
10228
sysv4*MP*)
10229
  if test -d /usr/nec ;then
10230
    version_type=linux
10231
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10232
    soname_spec='$libname${shared_ext}.$major'
10233
    shlibpath_var=LD_LIBRARY_PATH
10234
  fi
10235
  ;;
10236
 
10237
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10238
  version_type=freebsd-elf
10239
  need_lib_prefix=no
10240
  need_version=no
10241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10242
  soname_spec='${libname}${release}${shared_ext}$major'
10243
  shlibpath_var=LD_LIBRARY_PATH
10244
  shlibpath_overrides_runpath=yes
10245
  hardcode_into_libs=yes
10246
  if test "$with_gnu_ld" = yes; then
10247
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10248
  else
10249
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10250
    case $host_os in
10251
      sco3.2v5*)
10252
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10253
        ;;
10254
    esac
10255
  fi
10256
  sys_lib_dlsearch_path_spec='/usr/lib'
10257
  ;;
10258
 
10259
tpf*)
10260
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10261
  version_type=linux
10262
  need_lib_prefix=no
10263
  need_version=no
10264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265
  shlibpath_var=LD_LIBRARY_PATH
10266
  shlibpath_overrides_runpath=no
10267
  hardcode_into_libs=yes
10268
  ;;
10269
 
10270
uts4*)
10271
  version_type=linux
10272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273
  soname_spec='${libname}${release}${shared_ext}$major'
10274
  shlibpath_var=LD_LIBRARY_PATH
10275
  ;;
10276
 
10277
*)
10278
  dynamic_linker=no
10279
  ;;
10280
esac
10281
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10282
echo "${ECHO_T}$dynamic_linker" >&6
10283
test "$dynamic_linker" = no && can_build_shared=no
10284
 
10285
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10286
if test "$GCC" = yes; then
10287
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10288
fi
10289
 
10290
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10291
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10292
fi
10293
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10294
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10295
fi
10296
 
10297
 
10298
 
10299
 
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10384
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10385
hardcode_action=
10386
if test -n "$hardcode_libdir_flag_spec" ||
10387
   test -n "$runpath_var" ||
10388
   test "X$hardcode_automatic" = "Xyes" ; then
10389
 
10390
  # We can hardcode non-existent directories.
10391
  if test "$hardcode_direct" != no &&
10392
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10393
     # have to relink, otherwise we might link with an installed library
10394
     # when we should be linking with a yet-to-be-installed one
10395
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10396
     test "$hardcode_minus_L" != no; then
10397
    # Linking always hardcodes the temporary library directory.
10398
    hardcode_action=relink
10399
  else
10400
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10401
    hardcode_action=immediate
10402
  fi
10403
else
10404
  # We cannot hardcode anything, or else we can only hardcode existing
10405
  # directories.
10406
  hardcode_action=unsupported
10407
fi
10408
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10409
echo "${ECHO_T}$hardcode_action" >&6
10410
 
10411
if test "$hardcode_action" = relink ||
10412
   test "$inherit_rpath" = yes; then
10413
  # Fast installation is not supported
10414
  enable_fast_install=no
10415
elif test "$shlibpath_overrides_runpath" = yes ||
10416
     test "$enable_shared" = no; then
10417
  # Fast installation is not necessary
10418
  enable_fast_install=needless
10419
fi
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
  if test "x$enable_dlopen" != xyes; then
10427
  enable_dlopen=unknown
10428
  enable_dlopen_self=unknown
10429
  enable_dlopen_self_static=unknown
10430
else
10431
  lt_cv_dlopen=no
10432
  lt_cv_dlopen_libs=
10433
 
10434
  case $host_os in
10435
  beos*)
10436
    lt_cv_dlopen="load_add_on"
10437
    lt_cv_dlopen_libs=
10438
    lt_cv_dlopen_self=yes
10439
    ;;
10440
 
10441
  mingw* | pw32* | cegcc*)
10442
    lt_cv_dlopen="LoadLibrary"
10443
    lt_cv_dlopen_libs=
10444
    ;;
10445
 
10446
  cygwin*)
10447
    lt_cv_dlopen="dlopen"
10448
    lt_cv_dlopen_libs=
10449
    ;;
10450
 
10451
  darwin*)
10452
  # if libdl is installed we need to link against it
10453
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10454
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10455
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10456
  echo $ECHO_N "(cached) $ECHO_C" >&6
10457
else
10458
  ac_check_lib_save_LIBS=$LIBS
10459
LIBS="-ldl  $LIBS"
10460
cat >conftest.$ac_ext <<_ACEOF
10461
/* confdefs.h.  */
10462
_ACEOF
10463
cat confdefs.h >>conftest.$ac_ext
10464
cat >>conftest.$ac_ext <<_ACEOF
10465
/* end confdefs.h.  */
10466
 
10467
/* Override any gcc2 internal prototype to avoid an error.  */
10468
#ifdef __cplusplus
10469
extern "C"
10470
#endif
10471
/* We use char because int might match the return type of a gcc2
10472
   builtin and then its argument prototype would still apply.  */
10473
char dlopen ();
10474
int
10475
main ()
10476
{
10477
dlopen ();
10478
  ;
10479
  return 0;
10480
}
10481
_ACEOF
10482
rm -f conftest.$ac_objext conftest$ac_exeext
10483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484
  (eval $ac_link) 2>conftest.er1
10485
  ac_status=$?
10486
  grep -v '^ *+' conftest.er1 >conftest.err
10487
  rm -f conftest.er1
10488
  cat conftest.err >&5
10489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490
  (exit $ac_status); } &&
10491
         { ac_try='test -z "$ac_c_werror_flag"
10492
                         || test ! -s conftest.err'
10493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494
  (eval $ac_try) 2>&5
10495
  ac_status=$?
10496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497
  (exit $ac_status); }; } &&
10498
         { ac_try='test -s conftest$ac_exeext'
10499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500
  (eval $ac_try) 2>&5
10501
  ac_status=$?
10502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503
  (exit $ac_status); }; }; then
10504
  ac_cv_lib_dl_dlopen=yes
10505
else
10506
  echo "$as_me: failed program was:" >&5
10507
sed 's/^/| /' conftest.$ac_ext >&5
10508
 
10509
ac_cv_lib_dl_dlopen=no
10510
fi
10511
rm -f conftest.err conftest.$ac_objext \
10512
      conftest$ac_exeext conftest.$ac_ext
10513
LIBS=$ac_check_lib_save_LIBS
10514
fi
10515
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10516
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10517
if test $ac_cv_lib_dl_dlopen = yes; then
10518
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10519
else
10520
 
10521
    lt_cv_dlopen="dyld"
10522
    lt_cv_dlopen_libs=
10523
    lt_cv_dlopen_self=yes
10524
 
10525
fi
10526
 
10527
    ;;
10528
 
10529
  *)
10530
    echo "$as_me:$LINENO: checking for shl_load" >&5
10531
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10532
if test "${ac_cv_func_shl_load+set}" = set; then
10533
  echo $ECHO_N "(cached) $ECHO_C" >&6
10534
else
10535
  cat >conftest.$ac_ext <<_ACEOF
10536
/* confdefs.h.  */
10537
_ACEOF
10538
cat confdefs.h >>conftest.$ac_ext
10539
cat >>conftest.$ac_ext <<_ACEOF
10540
/* end confdefs.h.  */
10541
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10542
   For example, HP-UX 11i  declares gettimeofday.  */
10543
#define shl_load innocuous_shl_load
10544
 
10545
/* System header to define __stub macros and hopefully few prototypes,
10546
    which can conflict with char shl_load (); below.
10547
    Prefer  to  if __STDC__ is defined, since
10548
     exists even on freestanding compilers.  */
10549
 
10550
#ifdef __STDC__
10551
# include 
10552
#else
10553
# include 
10554
#endif
10555
 
10556
#undef shl_load
10557
 
10558
/* Override any gcc2 internal prototype to avoid an error.  */
10559
#ifdef __cplusplus
10560
extern "C"
10561
{
10562
#endif
10563
/* We use char because int might match the return type of a gcc2
10564
   builtin and then its argument prototype would still apply.  */
10565
char shl_load ();
10566
/* The GNU C library defines this for functions which it implements
10567
    to always fail with ENOSYS.  Some functions are actually named
10568
    something starting with __ and the normal name is an alias.  */
10569
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10570
choke me
10571
#else
10572
char (*f) () = shl_load;
10573
#endif
10574
#ifdef __cplusplus
10575
}
10576
#endif
10577
 
10578
int
10579
main ()
10580
{
10581
return f != shl_load;
10582
  ;
10583
  return 0;
10584
}
10585
_ACEOF
10586
rm -f conftest.$ac_objext conftest$ac_exeext
10587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588
  (eval $ac_link) 2>conftest.er1
10589
  ac_status=$?
10590
  grep -v '^ *+' conftest.er1 >conftest.err
10591
  rm -f conftest.er1
10592
  cat conftest.err >&5
10593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594
  (exit $ac_status); } &&
10595
         { ac_try='test -z "$ac_c_werror_flag"
10596
                         || test ! -s conftest.err'
10597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598
  (eval $ac_try) 2>&5
10599
  ac_status=$?
10600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601
  (exit $ac_status); }; } &&
10602
         { ac_try='test -s conftest$ac_exeext'
10603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604
  (eval $ac_try) 2>&5
10605
  ac_status=$?
10606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607
  (exit $ac_status); }; }; then
10608
  ac_cv_func_shl_load=yes
10609
else
10610
  echo "$as_me: failed program was:" >&5
10611
sed 's/^/| /' conftest.$ac_ext >&5
10612
 
10613
ac_cv_func_shl_load=no
10614
fi
10615
rm -f conftest.err conftest.$ac_objext \
10616
      conftest$ac_exeext conftest.$ac_ext
10617
fi
10618
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10619
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10620
if test $ac_cv_func_shl_load = yes; then
10621
  lt_cv_dlopen="shl_load"
10622
else
10623
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10624
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10625
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10626
  echo $ECHO_N "(cached) $ECHO_C" >&6
10627
else
10628
  ac_check_lib_save_LIBS=$LIBS
10629
LIBS="-ldld  $LIBS"
10630
cat >conftest.$ac_ext <<_ACEOF
10631
/* confdefs.h.  */
10632
_ACEOF
10633
cat confdefs.h >>conftest.$ac_ext
10634
cat >>conftest.$ac_ext <<_ACEOF
10635
/* end confdefs.h.  */
10636
 
10637
/* Override any gcc2 internal prototype to avoid an error.  */
10638
#ifdef __cplusplus
10639
extern "C"
10640
#endif
10641
/* We use char because int might match the return type of a gcc2
10642
   builtin and then its argument prototype would still apply.  */
10643
char shl_load ();
10644
int
10645
main ()
10646
{
10647
shl_load ();
10648
  ;
10649
  return 0;
10650
}
10651
_ACEOF
10652
rm -f conftest.$ac_objext conftest$ac_exeext
10653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654
  (eval $ac_link) 2>conftest.er1
10655
  ac_status=$?
10656
  grep -v '^ *+' conftest.er1 >conftest.err
10657
  rm -f conftest.er1
10658
  cat conftest.err >&5
10659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660
  (exit $ac_status); } &&
10661
         { ac_try='test -z "$ac_c_werror_flag"
10662
                         || test ! -s conftest.err'
10663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664
  (eval $ac_try) 2>&5
10665
  ac_status=$?
10666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667
  (exit $ac_status); }; } &&
10668
         { ac_try='test -s conftest$ac_exeext'
10669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670
  (eval $ac_try) 2>&5
10671
  ac_status=$?
10672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673
  (exit $ac_status); }; }; then
10674
  ac_cv_lib_dld_shl_load=yes
10675
else
10676
  echo "$as_me: failed program was:" >&5
10677
sed 's/^/| /' conftest.$ac_ext >&5
10678
 
10679
ac_cv_lib_dld_shl_load=no
10680
fi
10681
rm -f conftest.err conftest.$ac_objext \
10682
      conftest$ac_exeext conftest.$ac_ext
10683
LIBS=$ac_check_lib_save_LIBS
10684
fi
10685
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10686
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10687
if test $ac_cv_lib_dld_shl_load = yes; then
10688
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10689
else
10690
  echo "$as_me:$LINENO: checking for dlopen" >&5
10691
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10692
if test "${ac_cv_func_dlopen+set}" = set; then
10693
  echo $ECHO_N "(cached) $ECHO_C" >&6
10694
else
10695
  cat >conftest.$ac_ext <<_ACEOF
10696
/* confdefs.h.  */
10697
_ACEOF
10698
cat confdefs.h >>conftest.$ac_ext
10699
cat >>conftest.$ac_ext <<_ACEOF
10700
/* end confdefs.h.  */
10701
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10702
   For example, HP-UX 11i  declares gettimeofday.  */
10703
#define dlopen innocuous_dlopen
10704
 
10705
/* System header to define __stub macros and hopefully few prototypes,
10706
    which can conflict with char dlopen (); below.
10707
    Prefer  to  if __STDC__ is defined, since
10708
     exists even on freestanding compilers.  */
10709
 
10710
#ifdef __STDC__
10711
# include 
10712
#else
10713
# include 
10714
#endif
10715
 
10716
#undef dlopen
10717
 
10718
/* Override any gcc2 internal prototype to avoid an error.  */
10719
#ifdef __cplusplus
10720
extern "C"
10721
{
10722
#endif
10723
/* We use char because int might match the return type of a gcc2
10724
   builtin and then its argument prototype would still apply.  */
10725
char dlopen ();
10726
/* The GNU C library defines this for functions which it implements
10727
    to always fail with ENOSYS.  Some functions are actually named
10728
    something starting with __ and the normal name is an alias.  */
10729
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10730
choke me
10731
#else
10732
char (*f) () = dlopen;
10733
#endif
10734
#ifdef __cplusplus
10735
}
10736
#endif
10737
 
10738
int
10739
main ()
10740
{
10741
return f != dlopen;
10742
  ;
10743
  return 0;
10744
}
10745
_ACEOF
10746
rm -f conftest.$ac_objext conftest$ac_exeext
10747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748
  (eval $ac_link) 2>conftest.er1
10749
  ac_status=$?
10750
  grep -v '^ *+' conftest.er1 >conftest.err
10751
  rm -f conftest.er1
10752
  cat conftest.err >&5
10753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754
  (exit $ac_status); } &&
10755
         { ac_try='test -z "$ac_c_werror_flag"
10756
                         || test ! -s conftest.err'
10757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758
  (eval $ac_try) 2>&5
10759
  ac_status=$?
10760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761
  (exit $ac_status); }; } &&
10762
         { ac_try='test -s conftest$ac_exeext'
10763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764
  (eval $ac_try) 2>&5
10765
  ac_status=$?
10766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767
  (exit $ac_status); }; }; then
10768
  ac_cv_func_dlopen=yes
10769
else
10770
  echo "$as_me: failed program was:" >&5
10771
sed 's/^/| /' conftest.$ac_ext >&5
10772
 
10773
ac_cv_func_dlopen=no
10774
fi
10775
rm -f conftest.err conftest.$ac_objext \
10776
      conftest$ac_exeext conftest.$ac_ext
10777
fi
10778
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10779
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10780
if test $ac_cv_func_dlopen = yes; then
10781
  lt_cv_dlopen="dlopen"
10782
else
10783
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10784
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10785
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10786
  echo $ECHO_N "(cached) $ECHO_C" >&6
10787
else
10788
  ac_check_lib_save_LIBS=$LIBS
10789
LIBS="-ldl  $LIBS"
10790
cat >conftest.$ac_ext <<_ACEOF
10791
/* confdefs.h.  */
10792
_ACEOF
10793
cat confdefs.h >>conftest.$ac_ext
10794
cat >>conftest.$ac_ext <<_ACEOF
10795
/* end confdefs.h.  */
10796
 
10797
/* Override any gcc2 internal prototype to avoid an error.  */
10798
#ifdef __cplusplus
10799
extern "C"
10800
#endif
10801
/* We use char because int might match the return type of a gcc2
10802
   builtin and then its argument prototype would still apply.  */
10803
char dlopen ();
10804
int
10805
main ()
10806
{
10807
dlopen ();
10808
  ;
10809
  return 0;
10810
}
10811
_ACEOF
10812
rm -f conftest.$ac_objext conftest$ac_exeext
10813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814
  (eval $ac_link) 2>conftest.er1
10815
  ac_status=$?
10816
  grep -v '^ *+' conftest.er1 >conftest.err
10817
  rm -f conftest.er1
10818
  cat conftest.err >&5
10819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820
  (exit $ac_status); } &&
10821
         { ac_try='test -z "$ac_c_werror_flag"
10822
                         || test ! -s conftest.err'
10823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824
  (eval $ac_try) 2>&5
10825
  ac_status=$?
10826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827
  (exit $ac_status); }; } &&
10828
         { ac_try='test -s conftest$ac_exeext'
10829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830
  (eval $ac_try) 2>&5
10831
  ac_status=$?
10832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833
  (exit $ac_status); }; }; then
10834
  ac_cv_lib_dl_dlopen=yes
10835
else
10836
  echo "$as_me: failed program was:" >&5
10837
sed 's/^/| /' conftest.$ac_ext >&5
10838
 
10839
ac_cv_lib_dl_dlopen=no
10840
fi
10841
rm -f conftest.err conftest.$ac_objext \
10842
      conftest$ac_exeext conftest.$ac_ext
10843
LIBS=$ac_check_lib_save_LIBS
10844
fi
10845
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10846
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10847
if test $ac_cv_lib_dl_dlopen = yes; then
10848
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10849
else
10850
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10851
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10852
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10853
  echo $ECHO_N "(cached) $ECHO_C" >&6
10854
else
10855
  ac_check_lib_save_LIBS=$LIBS
10856
LIBS="-lsvld  $LIBS"
10857
cat >conftest.$ac_ext <<_ACEOF
10858
/* confdefs.h.  */
10859
_ACEOF
10860
cat confdefs.h >>conftest.$ac_ext
10861
cat >>conftest.$ac_ext <<_ACEOF
10862
/* end confdefs.h.  */
10863
 
10864
/* Override any gcc2 internal prototype to avoid an error.  */
10865
#ifdef __cplusplus
10866
extern "C"
10867
#endif
10868
/* We use char because int might match the return type of a gcc2
10869
   builtin and then its argument prototype would still apply.  */
10870
char dlopen ();
10871
int
10872
main ()
10873
{
10874
dlopen ();
10875
  ;
10876
  return 0;
10877
}
10878
_ACEOF
10879
rm -f conftest.$ac_objext conftest$ac_exeext
10880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881
  (eval $ac_link) 2>conftest.er1
10882
  ac_status=$?
10883
  grep -v '^ *+' conftest.er1 >conftest.err
10884
  rm -f conftest.er1
10885
  cat conftest.err >&5
10886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887
  (exit $ac_status); } &&
10888
         { ac_try='test -z "$ac_c_werror_flag"
10889
                         || test ! -s conftest.err'
10890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891
  (eval $ac_try) 2>&5
10892
  ac_status=$?
10893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894
  (exit $ac_status); }; } &&
10895
         { ac_try='test -s conftest$ac_exeext'
10896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897
  (eval $ac_try) 2>&5
10898
  ac_status=$?
10899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900
  (exit $ac_status); }; }; then
10901
  ac_cv_lib_svld_dlopen=yes
10902
else
10903
  echo "$as_me: failed program was:" >&5
10904
sed 's/^/| /' conftest.$ac_ext >&5
10905
 
10906
ac_cv_lib_svld_dlopen=no
10907
fi
10908
rm -f conftest.err conftest.$ac_objext \
10909
      conftest$ac_exeext conftest.$ac_ext
10910
LIBS=$ac_check_lib_save_LIBS
10911
fi
10912
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10913
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10914
if test $ac_cv_lib_svld_dlopen = yes; then
10915
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10916
else
10917
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10918
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10919
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10920
  echo $ECHO_N "(cached) $ECHO_C" >&6
10921
else
10922
  ac_check_lib_save_LIBS=$LIBS
10923
LIBS="-ldld  $LIBS"
10924
cat >conftest.$ac_ext <<_ACEOF
10925
/* confdefs.h.  */
10926
_ACEOF
10927
cat confdefs.h >>conftest.$ac_ext
10928
cat >>conftest.$ac_ext <<_ACEOF
10929
/* end confdefs.h.  */
10930
 
10931
/* Override any gcc2 internal prototype to avoid an error.  */
10932
#ifdef __cplusplus
10933
extern "C"
10934
#endif
10935
/* We use char because int might match the return type of a gcc2
10936
   builtin and then its argument prototype would still apply.  */
10937
char dld_link ();
10938
int
10939
main ()
10940
{
10941
dld_link ();
10942
  ;
10943
  return 0;
10944
}
10945
_ACEOF
10946
rm -f conftest.$ac_objext conftest$ac_exeext
10947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10948
  (eval $ac_link) 2>conftest.er1
10949
  ac_status=$?
10950
  grep -v '^ *+' conftest.er1 >conftest.err
10951
  rm -f conftest.er1
10952
  cat conftest.err >&5
10953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954
  (exit $ac_status); } &&
10955
         { ac_try='test -z "$ac_c_werror_flag"
10956
                         || test ! -s conftest.err'
10957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958
  (eval $ac_try) 2>&5
10959
  ac_status=$?
10960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961
  (exit $ac_status); }; } &&
10962
         { ac_try='test -s conftest$ac_exeext'
10963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964
  (eval $ac_try) 2>&5
10965
  ac_status=$?
10966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967
  (exit $ac_status); }; }; then
10968
  ac_cv_lib_dld_dld_link=yes
10969
else
10970
  echo "$as_me: failed program was:" >&5
10971
sed 's/^/| /' conftest.$ac_ext >&5
10972
 
10973
ac_cv_lib_dld_dld_link=no
10974
fi
10975
rm -f conftest.err conftest.$ac_objext \
10976
      conftest$ac_exeext conftest.$ac_ext
10977
LIBS=$ac_check_lib_save_LIBS
10978
fi
10979
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10980
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10981
if test $ac_cv_lib_dld_dld_link = yes; then
10982
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10983
fi
10984
 
10985
 
10986
fi
10987
 
10988
 
10989
fi
10990
 
10991
 
10992
fi
10993
 
10994
 
10995
fi
10996
 
10997
 
10998
fi
10999
 
11000
    ;;
11001
  esac
11002
 
11003
  if test "x$lt_cv_dlopen" != xno; then
11004
    enable_dlopen=yes
11005
  else
11006
    enable_dlopen=no
11007
  fi
11008
 
11009
  case $lt_cv_dlopen in
11010
  dlopen)
11011
    save_CPPFLAGS="$CPPFLAGS"
11012
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11013
 
11014
    save_LDFLAGS="$LDFLAGS"
11015
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11016
 
11017
    save_LIBS="$LIBS"
11018
    LIBS="$lt_cv_dlopen_libs $LIBS"
11019
 
11020
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11021
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11022
if test "${lt_cv_dlopen_self+set}" = set; then
11023
  echo $ECHO_N "(cached) $ECHO_C" >&6
11024
else
11025
          if test "$cross_compiling" = yes; then :
11026
  lt_cv_dlopen_self=cross
11027
else
11028
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11029
  lt_status=$lt_dlunknown
11030
  cat > conftest.$ac_ext <<_LT_EOF
11031
#line 11031 "configure"
11032
#include "confdefs.h"
11033
 
11034
#if HAVE_DLFCN_H
11035
#include 
11036
#endif
11037
 
11038
#include 
11039
 
11040
#ifdef RTLD_GLOBAL
11041
#  define LT_DLGLOBAL           RTLD_GLOBAL
11042
#else
11043
#  ifdef DL_GLOBAL
11044
#    define LT_DLGLOBAL         DL_GLOBAL
11045
#  else
11046
#    define LT_DLGLOBAL         0
11047
#  endif
11048
#endif
11049
 
11050
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11051
   find out it does not work in some platform. */
11052
#ifndef LT_DLLAZY_OR_NOW
11053
#  ifdef RTLD_LAZY
11054
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11055
#  else
11056
#    ifdef DL_LAZY
11057
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11058
#    else
11059
#      ifdef RTLD_NOW
11060
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11061
#      else
11062
#        ifdef DL_NOW
11063
#          define LT_DLLAZY_OR_NOW      DL_NOW
11064
#        else
11065
#          define LT_DLLAZY_OR_NOW      0
11066
#        endif
11067
#      endif
11068
#    endif
11069
#  endif
11070
#endif
11071
 
11072
void fnord() { int i=42;}
11073
int main ()
11074
{
11075
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11076
  int status = $lt_dlunknown;
11077
 
11078
  if (self)
11079
    {
11080
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11081
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11082
      /* dlclose (self); */
11083
    }
11084
  else
11085
    puts (dlerror ());
11086
 
11087
  return status;
11088
}
11089
_LT_EOF
11090
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11091
  (eval $ac_link) 2>&5
11092
  ac_status=$?
11093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11095
    (./conftest; exit; ) >&5 2>/dev/null
11096
    lt_status=$?
11097
    case x$lt_status in
11098
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11099
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11100
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11101
    esac
11102
  else :
11103
    # compilation failed
11104
    lt_cv_dlopen_self=no
11105
  fi
11106
fi
11107
rm -fr conftest*
11108
 
11109
 
11110
fi
11111
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11112
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11113
 
11114
    if test "x$lt_cv_dlopen_self" = xyes; then
11115
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11116
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11117
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11118
if test "${lt_cv_dlopen_self_static+set}" = set; then
11119
  echo $ECHO_N "(cached) $ECHO_C" >&6
11120
else
11121
          if test "$cross_compiling" = yes; then :
11122
  lt_cv_dlopen_self_static=cross
11123
else
11124
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11125
  lt_status=$lt_dlunknown
11126
  cat > conftest.$ac_ext <<_LT_EOF
11127
#line 11127 "configure"
11128
#include "confdefs.h"
11129
 
11130
#if HAVE_DLFCN_H
11131
#include 
11132
#endif
11133
 
11134
#include 
11135
 
11136
#ifdef RTLD_GLOBAL
11137
#  define LT_DLGLOBAL           RTLD_GLOBAL
11138
#else
11139
#  ifdef DL_GLOBAL
11140
#    define LT_DLGLOBAL         DL_GLOBAL
11141
#  else
11142
#    define LT_DLGLOBAL         0
11143
#  endif
11144
#endif
11145
 
11146
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11147
   find out it does not work in some platform. */
11148
#ifndef LT_DLLAZY_OR_NOW
11149
#  ifdef RTLD_LAZY
11150
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11151
#  else
11152
#    ifdef DL_LAZY
11153
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11154
#    else
11155
#      ifdef RTLD_NOW
11156
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11157
#      else
11158
#        ifdef DL_NOW
11159
#          define LT_DLLAZY_OR_NOW      DL_NOW
11160
#        else
11161
#          define LT_DLLAZY_OR_NOW      0
11162
#        endif
11163
#      endif
11164
#    endif
11165
#  endif
11166
#endif
11167
 
11168
void fnord() { int i=42;}
11169
int main ()
11170
{
11171
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172
  int status = $lt_dlunknown;
11173
 
11174
  if (self)
11175
    {
11176
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11177
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178
      /* dlclose (self); */
11179
    }
11180
  else
11181
    puts (dlerror ());
11182
 
11183
  return status;
11184
}
11185
_LT_EOF
11186
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187
  (eval $ac_link) 2>&5
11188
  ac_status=$?
11189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11191
    (./conftest; exit; ) >&5 2>/dev/null
11192
    lt_status=$?
11193
    case x$lt_status in
11194
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11195
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11196
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11197
    esac
11198
  else :
11199
    # compilation failed
11200
    lt_cv_dlopen_self_static=no
11201
  fi
11202
fi
11203
rm -fr conftest*
11204
 
11205
 
11206
fi
11207
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11208
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11209
    fi
11210
 
11211
    CPPFLAGS="$save_CPPFLAGS"
11212
    LDFLAGS="$save_LDFLAGS"
11213
    LIBS="$save_LIBS"
11214
    ;;
11215
  esac
11216
 
11217
  case $lt_cv_dlopen_self in
11218
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11219
  *) enable_dlopen_self=unknown ;;
11220
  esac
11221
 
11222
  case $lt_cv_dlopen_self_static in
11223
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11224
  *) enable_dlopen_self_static=unknown ;;
11225
  esac
11226
fi
11227
 
11228
 
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
 
11236
 
11237
 
11238
 
11239
 
11240
 
11241
 
11242
 
11243
 
11244
striplib=
11245
old_striplib=
11246
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11247
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11248
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11249
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11250
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11251
  echo "$as_me:$LINENO: result: yes" >&5
11252
echo "${ECHO_T}yes" >&6
11253
else
11254
# FIXME - insert some real tests, host_os isn't really good enough
11255
  case $host_os in
11256
  darwin*)
11257
    if test -n "$STRIP" ; then
11258
      striplib="$STRIP -x"
11259
      old_striplib="$STRIP -S"
11260
      echo "$as_me:$LINENO: result: yes" >&5
11261
echo "${ECHO_T}yes" >&6
11262
    else
11263
      echo "$as_me:$LINENO: result: no" >&5
11264
echo "${ECHO_T}no" >&6
11265
    fi
11266
    ;;
11267
  *)
11268
    echo "$as_me:$LINENO: result: no" >&5
11269
echo "${ECHO_T}no" >&6
11270
    ;;
11271
  esac
11272
fi
11273
 
11274
 
11275
 
11276
 
11277
 
11278
 
11279
 
11280
 
11281
 
11282
 
11283
 
11284
 
11285
  # Report which library types will actually be built
11286
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11287
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11288
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11289
echo "${ECHO_T}$can_build_shared" >&6
11290
 
11291
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11292
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11293
  test "$can_build_shared" = "no" && enable_shared=no
11294
 
11295
  # On AIX, shared libraries and static libraries use the same namespace, and
11296
  # are all built from PIC.
11297
  case $host_os in
11298
  aix3*)
11299
    test "$enable_shared" = yes && enable_static=no
11300
    if test -n "$RANLIB"; then
11301
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11302
      postinstall_cmds='$RANLIB $lib'
11303
    fi
11304
    ;;
11305
 
11306
  aix[4-9]*)
11307
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11308
      test "$enable_shared" = yes && enable_static=no
11309
    fi
11310
    ;;
11311
  esac
11312
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11313
echo "${ECHO_T}$enable_shared" >&6
11314
 
11315
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11316
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11317
  # Make sure either enable_shared or enable_static is yes.
11318
  test "$enable_shared" = yes || enable_static=yes
11319
  echo "$as_me:$LINENO: result: $enable_static" >&5
11320
echo "${ECHO_T}$enable_static" >&6
11321
 
11322
 
11323
 
11324
 
11325
fi
11326
ac_ext=c
11327
ac_cpp='$CPP $CPPFLAGS'
11328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331
 
11332
CC="$lt_save_CC"
11333
 
11334
 
11335
 
11336
 
11337
 
11338
 
11339
 
11340
 
11341
 
11342
 
11343
 
11344
 
11345
 
11346
                  ac_config_commands="$ac_config_commands libtool"
11347
 
11348
 
11349
 
11350
 
11351
# Only expand once:
11352
 
11353
 
11354
fi
11355
 
11356
if test -n "${sys_dir}"; then
11357
  case ${sys_dir} in
11358
        a29khif)
11359
 
11360
subdirs="$subdirs a29khif"
11361
 ;;
11362
        arc)
11363
 
11364
subdirs="$subdirs arc"
11365
 ;;
11366
        arm)
11367
 
11368
subdirs="$subdirs arm"
11369
 ;;
11370
        d10v)
11371
 
11372
subdirs="$subdirs d10v"
11373
 ;;
11374
        decstation)
11375
 
11376
subdirs="$subdirs decstation"
11377
 ;;
11378
        h8300hms)
11379
 
11380
subdirs="$subdirs h8300hms"
11381
 ;;
11382
        h8500hms)
11383
 
11384
subdirs="$subdirs h8500hms"
11385
 ;;
11386
        linux)
11387
 
11388
subdirs="$subdirs linux"
11389
 ;;
11390
        m88kbug)
11391
 
11392
subdirs="$subdirs m88kbug"
11393
 ;;
11394
        mmixware)
11395
 
11396
subdirs="$subdirs mmixware"
11397
 ;;
11398
        netware)
11399
 
11400
subdirs="$subdirs netware"
11401
 ;;
11402
        rdos)
11403
 
11404
subdirs="$subdirs rdos"
11405
 ;;
11406
        rtems)
11407
 
11408
subdirs="$subdirs rtems"
11409
 ;;
11410
        sh)
11411
 
11412
subdirs="$subdirs sh"
11413
 ;;
11414
        sparc64)
11415
 
11416
subdirs="$subdirs sparc64"
11417
 ;;
11418
        sun4)
11419
 
11420
subdirs="$subdirs sun4"
11421
 ;;
11422
        sysmec)
11423
 
11424
subdirs="$subdirs sysmec"
11425
 ;;
11426
        sysnec810)
11427
 
11428
subdirs="$subdirs sysnec810"
11429
 ;;
11430
        sysnecv850)
11431
 
11432
subdirs="$subdirs sysnecv850"
11433
 ;;
11434
        sysvi386)
11435
 
11436
subdirs="$subdirs sysvi386"
11437
 ;;
11438
        sysvnecv70)
11439
 
11440
subdirs="$subdirs sysvnecv70"
11441
 ;;
11442
        tic80)
11443
 
11444
subdirs="$subdirs tic80"
11445
 ;;
11446
        w65)
11447
 
11448
subdirs="$subdirs w65"
11449
 ;;
11450
        z8ksim)
11451
 
11452
subdirs="$subdirs z8ksim"
11453
 ;;
11454
  esac;
11455
fi
11456
 
11457
CRT0=
11458
if test "x${have_crt0}" = "xyes"; then
11459
  CRT0=crt0.o
11460
fi
11461
 
11462
 
11463
 
11464
 
11465
if test x${sys_dir} != x; then
11466
  HAVE_SYS_DIR_TRUE=
11467
  HAVE_SYS_DIR_FALSE='#'
11468
else
11469
  HAVE_SYS_DIR_TRUE='#'
11470
  HAVE_SYS_DIR_FALSE=
11471
fi
11472
 
11473
 
11474
          ac_config_files="$ac_config_files Makefile"
11475
 
11476
cat >confcache <<\_ACEOF
11477
# This file is a shell script that caches the results of configure
11478
# tests run on this system so they can be shared between configure
11479
# scripts and configure runs, see configure's option --config-cache.
11480
# It is not useful on other systems.  If it contains results you don't
11481
# want to keep, you may remove or edit it.
11482
#
11483
# config.status only pays attention to the cache file if you give it
11484
# the --recheck option to rerun configure.
11485
#
11486
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11487
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11488
# following values.
11489
 
11490
_ACEOF
11491
 
11492
# The following way of writing the cache mishandles newlines in values,
11493
# but we know of no workaround that is simple, portable, and efficient.
11494
# So, don't put newlines in cache variables' values.
11495
# Ultrix sh set writes to stderr and can't be redirected directly,
11496
# and sets the high bit in the cache file unless we assign to the vars.
11497
{
11498
  (set) 2>&1 |
11499
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11500
    *ac_space=\ *)
11501
      # `set' does not quote correctly, so add quotes (double-quote
11502
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11503
      sed -n \
11504
        "s/'/'\\\\''/g;
11505
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11506
      ;;
11507
    *)
11508
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11509
      sed -n \
11510
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11511
      ;;
11512
    esac;
11513
} |
11514
  sed '
11515
     t clear
11516
     : clear
11517
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11518
     t end
11519
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11520
     : end' >>confcache
11521
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11522
  if test -w $cache_file; then
11523
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11524
    cat confcache >$cache_file
11525
  else
11526
    echo "not updating unwritable cache $cache_file"
11527
  fi
11528
fi
11529
rm -f confcache
11530
 
11531
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11532
# Let make expand exec_prefix.
11533
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11534
 
11535
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11536
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11537
# trailing colons and then remove the whole line if VPATH becomes empty
11538
# (actually we leave an empty line to preserve line numbers).
11539
if test "x$srcdir" = x.; then
11540
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11541
s/:*\$(srcdir):*/:/;
11542
s/:*\${srcdir}:*/:/;
11543
s/:*@srcdir@:*/:/;
11544
s/^\([^=]*=[     ]*\):*/\1/;
11545
s/:*$//;
11546
s/^[^=]*=[       ]*$//;
11547
}'
11548
fi
11549
 
11550
# Transform confdefs.h into DEFS.
11551
# Protect against shell expansion while executing Makefile rules.
11552
# Protect against Makefile macro expansion.
11553
#
11554
# If the first sed substitution is executed (which looks for macros that
11555
# take arguments), then we branch to the quote section.  Otherwise,
11556
# look for a macro that doesn't take arguments.
11557
cat >confdef2opt.sed <<\_ACEOF
11558
t clear
11559
: clear
11560
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11561
t quote
11562
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11563
t quote
11564
d
11565
: quote
11566
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11567
s,\[,\\&,g
11568
s,\],\\&,g
11569
s,\$,$$,g
11570
p
11571
_ACEOF
11572
# We use echo to avoid assuming a particular line-breaking character.
11573
# The extra dot is to prevent the shell from consuming trailing
11574
# line-breaks from the sub-command output.  A line-break within
11575
# single-quotes doesn't work because, if this script is created in a
11576
# platform that uses two characters for line-breaks (e.g., DOS), tr
11577
# would break.
11578
ac_LF_and_DOT=`echo; echo .`
11579
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11580
rm -f confdef2opt.sed
11581
 
11582
 
11583
ac_libobjs=
11584
ac_ltlibobjs=
11585
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11586
  # 1. Remove the extension, and $U if already installed.
11587
  ac_i=`echo "$ac_i" |
11588
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11589
  # 2. Add them.
11590
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11591
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11592
done
11593
LIBOBJS=$ac_libobjs
11594
 
11595
LTLIBOBJS=$ac_ltlibobjs
11596
 
11597
 
11598
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11599
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11600
Usually this means the macro was only invoked conditionally." >&5
11601
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11602
Usually this means the macro was only invoked conditionally." >&2;}
11603
   { (exit 1); exit 1; }; }
11604
fi
11605
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11606
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11607
Usually this means the macro was only invoked conditionally." >&5
11608
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11609
Usually this means the macro was only invoked conditionally." >&2;}
11610
   { (exit 1); exit 1; }; }
11611
fi
11612
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11613
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11614
Usually this means the macro was only invoked conditionally." >&5
11615
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11616
Usually this means the macro was only invoked conditionally." >&2;}
11617
   { (exit 1); exit 1; }; }
11618
fi
11619
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11620
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11621
Usually this means the macro was only invoked conditionally." >&5
11622
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11623
Usually this means the macro was only invoked conditionally." >&2;}
11624
   { (exit 1); exit 1; }; }
11625
fi
11626
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11627
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11628
Usually this means the macro was only invoked conditionally." >&5
11629
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11630
Usually this means the macro was only invoked conditionally." >&2;}
11631
   { (exit 1); exit 1; }; }
11632
fi
11633
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11634
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11635
Usually this means the macro was only invoked conditionally." >&5
11636
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11637
Usually this means the macro was only invoked conditionally." >&2;}
11638
   { (exit 1); exit 1; }; }
11639
fi
11640
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11641
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11642
Usually this means the macro was only invoked conditionally." >&5
11643
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11644
Usually this means the macro was only invoked conditionally." >&2;}
11645
   { (exit 1); exit 1; }; }
11646
fi
11647
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11648
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11649
Usually this means the macro was only invoked conditionally." >&5
11650
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11651
Usually this means the macro was only invoked conditionally." >&2;}
11652
   { (exit 1); exit 1; }; }
11653
fi
11654
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11655
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11656
Usually this means the macro was only invoked conditionally." >&5
11657
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11658
Usually this means the macro was only invoked conditionally." >&2;}
11659
   { (exit 1); exit 1; }; }
11660
fi
11661
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11662
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11663
Usually this means the macro was only invoked conditionally." >&5
11664
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11665
Usually this means the macro was only invoked conditionally." >&2;}
11666
   { (exit 1); exit 1; }; }
11667
fi
11668
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11669
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11670
Usually this means the macro was only invoked conditionally." >&5
11671
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11672
Usually this means the macro was only invoked conditionally." >&2;}
11673
   { (exit 1); exit 1; }; }
11674
fi
11675
if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then
11676
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_DIR\" was never defined.
11677
Usually this means the macro was only invoked conditionally." >&5
11678
echo "$as_me: error: conditional \"HAVE_SYS_DIR\" was never defined.
11679
Usually this means the macro was only invoked conditionally." >&2;}
11680
   { (exit 1); exit 1; }; }
11681
fi
11682
 
11683
: ${CONFIG_STATUS=./config.status}
11684
ac_clean_files_save=$ac_clean_files
11685
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11686
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11687
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11688
cat >$CONFIG_STATUS <<_ACEOF
11689
#! $SHELL
11690
# Generated by $as_me.
11691
# Run this file to recreate the current configuration.
11692
# Compiler output produced by configure, useful for debugging
11693
# configure, is in config.log if it exists.
11694
 
11695
debug=false
11696
ac_cs_recheck=false
11697
ac_cs_silent=false
11698
SHELL=\${CONFIG_SHELL-$SHELL}
11699
_ACEOF
11700
 
11701
cat >>$CONFIG_STATUS <<\_ACEOF
11702
## --------------------- ##
11703
## M4sh Initialization.  ##
11704
## --------------------- ##
11705
 
11706
# Be Bourne compatible
11707
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11708
  emulate sh
11709
  NULLCMD=:
11710
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11711
  # is contrary to our usage.  Disable this feature.
11712
  alias -g '${1+"$@"}'='"$@"'
11713
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11714
  set -o posix
11715
fi
11716
DUALCASE=1; export DUALCASE # for MKS sh
11717
 
11718
# Support unset when possible.
11719
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11720
  as_unset=unset
11721
else
11722
  as_unset=false
11723
fi
11724
 
11725
 
11726
# Work around bugs in pre-3.0 UWIN ksh.
11727
$as_unset ENV MAIL MAILPATH
11728
PS1='$ '
11729
PS2='> '
11730
PS4='+ '
11731
 
11732
# NLS nuisances.
11733
for as_var in \
11734
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11735
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11736
  LC_TELEPHONE LC_TIME
11737
do
11738
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11739
    eval $as_var=C; export $as_var
11740
  else
11741
    $as_unset $as_var
11742
  fi
11743
done
11744
 
11745
# Required to use basename.
11746
if expr a : '\(a\)' >/dev/null 2>&1; then
11747
  as_expr=expr
11748
else
11749
  as_expr=false
11750
fi
11751
 
11752
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11753
  as_basename=basename
11754
else
11755
  as_basename=false
11756
fi
11757
 
11758
 
11759
# Name of the executable.
11760
as_me=`$as_basename "$0" ||
11761
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11762
         X"$0" : 'X\(//\)$' \| \
11763
         X"$0" : 'X\(/\)$' \| \
11764
         .     : '\(.\)' 2>/dev/null ||
11765
echo X/"$0" |
11766
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11767
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11768
          /^X\/\(\/\).*/{ s//\1/; q; }
11769
          s/.*/./; q'`
11770
 
11771
 
11772
# PATH needs CR, and LINENO needs CR and PATH.
11773
# Avoid depending upon Character Ranges.
11774
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11775
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11776
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11777
as_cr_digits='0123456789'
11778
as_cr_alnum=$as_cr_Letters$as_cr_digits
11779
 
11780
# The user is always right.
11781
if test "${PATH_SEPARATOR+set}" != set; then
11782
  echo "#! /bin/sh" >conf$$.sh
11783
  echo  "exit 0"   >>conf$$.sh
11784
  chmod +x conf$$.sh
11785
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11786
    PATH_SEPARATOR=';'
11787
  else
11788
    PATH_SEPARATOR=:
11789
  fi
11790
  rm -f conf$$.sh
11791
fi
11792
 
11793
 
11794
  as_lineno_1=$LINENO
11795
  as_lineno_2=$LINENO
11796
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11797
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11798
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11799
  # Find who we are.  Look in the path if we contain no path at all
11800
  # relative or not.
11801
  case $0 in
11802
    *[\\/]* ) as_myself=$0 ;;
11803
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804
for as_dir in $PATH
11805
do
11806
  IFS=$as_save_IFS
11807
  test -z "$as_dir" && as_dir=.
11808
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11809
done
11810
 
11811
       ;;
11812
  esac
11813
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11814
  # in which case we are not to be found in the path.
11815
  if test "x$as_myself" = x; then
11816
    as_myself=$0
11817
  fi
11818
  if test ! -f "$as_myself"; then
11819
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11820
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11821
   { (exit 1); exit 1; }; }
11822
  fi
11823
  case $CONFIG_SHELL in
11824
  '')
11825
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11827
do
11828
  IFS=$as_save_IFS
11829
  test -z "$as_dir" && as_dir=.
11830
  for as_base in sh bash ksh sh5; do
11831
         case $as_dir in
11832
         /*)
11833
           if ("$as_dir/$as_base" -c '
11834
  as_lineno_1=$LINENO
11835
  as_lineno_2=$LINENO
11836
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11837
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11838
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11839
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11840
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11841
             CONFIG_SHELL=$as_dir/$as_base
11842
             export CONFIG_SHELL
11843
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11844
           fi;;
11845
         esac
11846
       done
11847
done
11848
;;
11849
  esac
11850
 
11851
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11852
  # uniformly replaced by the line number.  The first 'sed' inserts a
11853
  # line-number line before each line; the second 'sed' does the real
11854
  # work.  The second script uses 'N' to pair each line-number line
11855
  # with the numbered line, and appends trailing '-' during
11856
  # substitution so that $LINENO is not a special case at line end.
11857
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11858
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11859
  sed '=' <$as_myself |
11860
    sed '
11861
      N
11862
      s,$,-,
11863
      : loop
11864
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11865
      t loop
11866
      s,-$,,
11867
      s,^['$as_cr_digits']*\n,,
11868
    ' >$as_me.lineno &&
11869
  chmod +x $as_me.lineno ||
11870
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11871
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11872
   { (exit 1); exit 1; }; }
11873
 
11874
  # Don't try to exec as it changes $[0], causing all sort of problems
11875
  # (the dirname of $[0] is not the place where we might find the
11876
  # original and so on.  Autoconf is especially sensible to this).
11877
  . ./$as_me.lineno
11878
  # Exit status is that of the last command.
11879
  exit
11880
}
11881
 
11882
 
11883
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11884
  *c*,-n*) ECHO_N= ECHO_C='
11885
' ECHO_T='      ' ;;
11886
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11887
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11888
esac
11889
 
11890
if expr a : '\(a\)' >/dev/null 2>&1; then
11891
  as_expr=expr
11892
else
11893
  as_expr=false
11894
fi
11895
 
11896
rm -f conf$$ conf$$.exe conf$$.file
11897
echo >conf$$.file
11898
if ln -s conf$$.file conf$$ 2>/dev/null; then
11899
  # We could just check for DJGPP; but this test a) works b) is more generic
11900
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11901
  if test -f conf$$.exe; then
11902
    # Don't use ln at all; we don't have any links
11903
    as_ln_s='cp -p'
11904
  else
11905
    as_ln_s='ln -s'
11906
  fi
11907
elif ln conf$$.file conf$$ 2>/dev/null; then
11908
  as_ln_s=ln
11909
else
11910
  as_ln_s='cp -p'
11911
fi
11912
rm -f conf$$ conf$$.exe conf$$.file
11913
 
11914
if mkdir -p . 2>/dev/null; then
11915
  as_mkdir_p=:
11916
else
11917
  test -d ./-p && rmdir ./-p
11918
  as_mkdir_p=false
11919
fi
11920
 
11921
as_executable_p="test -f"
11922
 
11923
# Sed expression to map a string onto a valid CPP name.
11924
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11925
 
11926
# Sed expression to map a string onto a valid variable name.
11927
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11928
 
11929
 
11930
# IFS
11931
# We need space, tab and new line, in precisely that order.
11932
as_nl='
11933
'
11934
IFS="   $as_nl"
11935
 
11936
# CDPATH.
11937
$as_unset CDPATH
11938
 
11939
exec 6>&1
11940
 
11941
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11942
# report actual input values of CONFIG_FILES etc. instead of their
11943
# values after options handling.  Logging --version etc. is OK.
11944
exec 5>>config.log
11945
{
11946
  echo
11947
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11948
## Running $as_me. ##
11949
_ASBOX
11950
} >&5
11951
cat >&5 <<_CSEOF
11952
 
11953
This file was extended by newlib $as_me 1.17.0, which was
11954
generated by GNU Autoconf 2.59.  Invocation command line was
11955
 
11956
  CONFIG_FILES    = $CONFIG_FILES
11957
  CONFIG_HEADERS  = $CONFIG_HEADERS
11958
  CONFIG_LINKS    = $CONFIG_LINKS
11959
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11960
  $ $0 $@
11961
 
11962
_CSEOF
11963
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11964
echo >&5
11965
_ACEOF
11966
 
11967
# Files that config.status was made for.
11968
if test -n "$ac_config_files"; then
11969
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11970
fi
11971
 
11972
if test -n "$ac_config_headers"; then
11973
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11974
fi
11975
 
11976
if test -n "$ac_config_links"; then
11977
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11978
fi
11979
 
11980
if test -n "$ac_config_commands"; then
11981
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11982
fi
11983
 
11984
cat >>$CONFIG_STATUS <<\_ACEOF
11985
 
11986
ac_cs_usage="\
11987
\`$as_me' instantiates files from templates according to the
11988
current configuration.
11989
 
11990
Usage: $0 [OPTIONS] [FILE]...
11991
 
11992
  -h, --help       print this help, then exit
11993
  -V, --version    print version number, then exit
11994
  -q, --quiet      do not print progress messages
11995
  -d, --debug      don't remove temporary files
11996
      --recheck    update $as_me by reconfiguring in the same conditions
11997
  --file=FILE[:TEMPLATE]
11998
                   instantiate the configuration file FILE
11999
 
12000
Configuration files:
12001
$config_files
12002
 
12003
Configuration commands:
12004
$config_commands
12005
 
12006
Report bugs to ."
12007
_ACEOF
12008
 
12009
cat >>$CONFIG_STATUS <<_ACEOF
12010
ac_cs_version="\\
12011
newlib config.status 1.17.0
12012
configured by $0, generated by GNU Autoconf 2.59,
12013
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12014
 
12015
Copyright (C) 2003 Free Software Foundation, Inc.
12016
This config.status script is free software; the Free Software Foundation
12017
gives unlimited permission to copy, distribute and modify it."
12018
srcdir=$srcdir
12019
INSTALL="$INSTALL"
12020
_ACEOF
12021
 
12022
cat >>$CONFIG_STATUS <<\_ACEOF
12023
# If no file are specified by the user, then we need to provide default
12024
# value.  By we need to know if files were specified by the user.
12025
ac_need_defaults=:
12026
while test $# != 0
12027
do
12028
  case $1 in
12029
  --*=*)
12030
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12031
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12032
    ac_shift=:
12033
    ;;
12034
  -*)
12035
    ac_option=$1
12036
    ac_optarg=$2
12037
    ac_shift=shift
12038
    ;;
12039
  *) # This is not an option, so the user has probably given explicit
12040
     # arguments.
12041
     ac_option=$1
12042
     ac_need_defaults=false;;
12043
  esac
12044
 
12045
  case $ac_option in
12046
  # Handling of the options.
12047
_ACEOF
12048
cat >>$CONFIG_STATUS <<\_ACEOF
12049
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12050
    ac_cs_recheck=: ;;
12051
  --version | --vers* | -V )
12052
    echo "$ac_cs_version"; exit 0 ;;
12053
  --he | --h)
12054
    # Conflict between --help and --header
12055
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12056
Try \`$0 --help' for more information." >&5
12057
echo "$as_me: error: ambiguous option: $1
12058
Try \`$0 --help' for more information." >&2;}
12059
   { (exit 1); exit 1; }; };;
12060
  --help | --hel | -h )
12061
    echo "$ac_cs_usage"; exit 0 ;;
12062
  --debug | --d* | -d )
12063
    debug=: ;;
12064
  --file | --fil | --fi | --f )
12065
    $ac_shift
12066
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12067
    ac_need_defaults=false;;
12068
  --header | --heade | --head | --hea )
12069
    $ac_shift
12070
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12071
    ac_need_defaults=false;;
12072
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12073
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12074
    ac_cs_silent=: ;;
12075
 
12076
  # This is an error.
12077
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12078
Try \`$0 --help' for more information." >&5
12079
echo "$as_me: error: unrecognized option: $1
12080
Try \`$0 --help' for more information." >&2;}
12081
   { (exit 1); exit 1; }; } ;;
12082
 
12083
  *) ac_config_targets="$ac_config_targets $1" ;;
12084
 
12085
  esac
12086
  shift
12087
done
12088
 
12089
ac_configure_extra_args=
12090
 
12091
if $ac_cs_silent; then
12092
  exec 6>/dev/null
12093
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12094
fi
12095
 
12096
_ACEOF
12097
cat >>$CONFIG_STATUS <<_ACEOF
12098
if \$ac_cs_recheck; then
12099
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12100
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12101
fi
12102
 
12103
_ACEOF
12104
 
12105
cat >>$CONFIG_STATUS <<_ACEOF
12106
#
12107
# INIT-COMMANDS section.
12108
#
12109
 
12110
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12111
 
12112
 
12113
# The HP-UX ksh and POSIX shell print the target directory to stdout
12114
# if CDPATH is set.
12115
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12116
 
12117
sed_quote_subst='$sed_quote_subst'
12118
double_quote_subst='$double_quote_subst'
12119
delay_variable_subst='$delay_variable_subst'
12120
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12121
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12122
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12123
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12124
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12125
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12126
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12127
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12128
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12129
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12130
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12131
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12132
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12133
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12134
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12135
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12136
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12137
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12138
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12139
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12140
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12141
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12142
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12143
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12144
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12145
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12146
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12147
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12148
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12149
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12150
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12152
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12153
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12154
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12155
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12156
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12157
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12158
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12159
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12160
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12161
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12162
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12163
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12164
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12165
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12166
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"`'
12167
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"`'
12168
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12169
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12170
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12171
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12172
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12173
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12174
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12175
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12176
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12177
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12178
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12179
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12180
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12181
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12182
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12183
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12184
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12185
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12186
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12187
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12188
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12189
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12190
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12191
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12192
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12194
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12195
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12196
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12197
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12198
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12199
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12200
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12201
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12202
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12203
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12204
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12205
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12206
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12207
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12208
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12209
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12210
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12211
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12212
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12213
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12214
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12215
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12216
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12217
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12218
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12219
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12220
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12221
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12222
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12223
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12224
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12225
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12226
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12227
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12228
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12229
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12230
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12231
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12232
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12233
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12234
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12235
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12236
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12237
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12238
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12239
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12240
 
12241
LTCC='$LTCC'
12242
LTCFLAGS='$LTCFLAGS'
12243
compiler='$compiler_DEFAULT'
12244
 
12245
# Quote evaled strings.
12246
for var in SED \
12247
GREP \
12248
EGREP \
12249
FGREP \
12250
LD \
12251
NM \
12252
LN_S \
12253
lt_SP2NL \
12254
lt_NL2SP \
12255
reload_flag \
12256
deplibs_check_method \
12257
file_magic_cmd \
12258
AR \
12259
AR_FLAGS \
12260
STRIP \
12261
RANLIB \
12262
CC \
12263
CFLAGS \
12264
compiler \
12265
lt_cv_sys_global_symbol_pipe \
12266
lt_cv_sys_global_symbol_to_cdecl \
12267
lt_cv_sys_global_symbol_to_c_name_address \
12268
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12269
SHELL \
12270
ECHO \
12271
lt_prog_compiler_no_builtin_flag \
12272
lt_prog_compiler_wl \
12273
lt_prog_compiler_pic \
12274
lt_prog_compiler_static \
12275
lt_cv_prog_compiler_c_o \
12276
need_locks \
12277
DSYMUTIL \
12278
NMEDIT \
12279
LIPO \
12280
OTOOL \
12281
OTOOL64 \
12282
shrext_cmds \
12283
export_dynamic_flag_spec \
12284
whole_archive_flag_spec \
12285
compiler_needs_object \
12286
with_gnu_ld \
12287
allow_undefined_flag \
12288
no_undefined_flag \
12289
hardcode_libdir_flag_spec \
12290
hardcode_libdir_flag_spec_ld \
12291
hardcode_libdir_separator \
12292
fix_srcfile_path \
12293
exclude_expsyms \
12294
include_expsyms \
12295
file_list_spec \
12296
variables_saved_for_relink \
12297
libname_spec \
12298
library_names_spec \
12299
soname_spec \
12300
finish_eval \
12301
old_striplib \
12302
striplib; do
12303
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12304
    *[\\\\\\\`\\"\\\$]*)
12305
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12306
      ;;
12307
    *)
12308
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12309
      ;;
12310
    esac
12311
done
12312
 
12313
# Double-quote double-evaled strings.
12314
for var in reload_cmds \
12315
old_postinstall_cmds \
12316
old_postuninstall_cmds \
12317
old_archive_cmds \
12318
extract_expsyms_cmds \
12319
old_archive_from_new_cmds \
12320
old_archive_from_expsyms_cmds \
12321
archive_cmds \
12322
archive_expsym_cmds \
12323
module_cmds \
12324
module_expsym_cmds \
12325
export_symbols_cmds \
12326
prelink_cmds \
12327
postinstall_cmds \
12328
postuninstall_cmds \
12329
finish_cmds \
12330
sys_lib_search_path_spec \
12331
sys_lib_dlsearch_path_spec; do
12332
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12333
    *[\\\\\\\`\\"\\\$]*)
12334
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12335
      ;;
12336
    *)
12337
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12338
      ;;
12339
    esac
12340
done
12341
 
12342
# Fix-up fallback echo if it was mangled by the above quoting rules.
12343
case \$lt_ECHO in
12344
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12345
  ;;
12346
esac
12347
 
12348
ac_aux_dir='$ac_aux_dir'
12349
xsi_shell='$xsi_shell'
12350
lt_shell_append='$lt_shell_append'
12351
 
12352
# See if we are running on zsh, and set the options which allow our
12353
# commands through without removal of \ escapes INIT.
12354
if test -n "\${ZSH_VERSION+set}" ; then
12355
   setopt NO_GLOB_SUBST
12356
fi
12357
 
12358
 
12359
    PACKAGE='$PACKAGE'
12360
    VERSION='$VERSION'
12361
    TIMESTAMP='$TIMESTAMP'
12362
    RM='$RM'
12363
    ofile='$ofile'
12364
 
12365
 
12366
 
12367
 
12368
_ACEOF
12369
 
12370
 
12371
 
12372
cat >>$CONFIG_STATUS <<\_ACEOF
12373
for ac_config_target in $ac_config_targets
12374
do
12375
  case "$ac_config_target" in
12376
  # Handling of arguments.
12377
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12378
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12379
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12380
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12381
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12382
   { (exit 1); exit 1; }; };;
12383
  esac
12384
done
12385
 
12386
# If the user did not use the arguments to specify the items to instantiate,
12387
# then the envvar interface is used.  Set only those that are not.
12388
# We use the long form for the default assignment because of an extremely
12389
# bizarre bug on SunOS 4.1.3.
12390
if $ac_need_defaults; then
12391
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12392
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12393
fi
12394
 
12395
# Have a temporary directory for convenience.  Make it in the build tree
12396
# simply because there is no reason to put it here, and in addition,
12397
# creating and moving files from /tmp can sometimes cause problems.
12398
# Create a temporary directory, and hook for its removal unless debugging.
12399
$debug ||
12400
{
12401
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12402
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12403
}
12404
 
12405
# Create a (secure) tmp directory for tmp files.
12406
 
12407
{
12408
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12409
  test -n "$tmp" && test -d "$tmp"
12410
}  ||
12411
{
12412
  tmp=./confstat$$-$RANDOM
12413
  (umask 077 && mkdir $tmp)
12414
} ||
12415
{
12416
   echo "$me: cannot create a temporary directory in ." >&2
12417
   { (exit 1); exit 1; }
12418
}
12419
 
12420
_ACEOF
12421
 
12422
cat >>$CONFIG_STATUS <<_ACEOF
12423
 
12424
#
12425
# CONFIG_FILES section.
12426
#
12427
 
12428
# No need to generate the scripts if there are no CONFIG_FILES.
12429
# This happens for instance when ./config.status config.h
12430
if test -n "\$CONFIG_FILES"; then
12431
  # Protect against being on the right side of a sed subst in config.status.
12432
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12433
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12434
s,@SHELL@,$SHELL,;t t
12435
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12436
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12437
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12438
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12439
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12440
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12441
s,@exec_prefix@,$exec_prefix,;t t
12442
s,@prefix@,$prefix,;t t
12443
s,@program_transform_name@,$program_transform_name,;t t
12444
s,@bindir@,$bindir,;t t
12445
s,@sbindir@,$sbindir,;t t
12446
s,@libexecdir@,$libexecdir,;t t
12447
s,@datadir@,$datadir,;t t
12448
s,@sysconfdir@,$sysconfdir,;t t
12449
s,@sharedstatedir@,$sharedstatedir,;t t
12450
s,@localstatedir@,$localstatedir,;t t
12451
s,@libdir@,$libdir,;t t
12452
s,@includedir@,$includedir,;t t
12453
s,@oldincludedir@,$oldincludedir,;t t
12454
s,@infodir@,$infodir,;t t
12455
s,@mandir@,$mandir,;t t
12456
s,@build_alias@,$build_alias,;t t
12457
s,@host_alias@,$host_alias,;t t
12458
s,@target_alias@,$target_alias,;t t
12459
s,@DEFS@,$DEFS,;t t
12460
s,@ECHO_C@,$ECHO_C,;t t
12461
s,@ECHO_N@,$ECHO_N,;t t
12462
s,@ECHO_T@,$ECHO_T,;t t
12463
s,@LIBS@,$LIBS,;t t
12464
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12465
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12466
s,@newlib_basedir@,$newlib_basedir,;t t
12467
s,@build@,$build,;t t
12468
s,@build_cpu@,$build_cpu,;t t
12469
s,@build_vendor@,$build_vendor,;t t
12470
s,@build_os@,$build_os,;t t
12471
s,@host@,$host,;t t
12472
s,@host_cpu@,$host_cpu,;t t
12473
s,@host_vendor@,$host_vendor,;t t
12474
s,@host_os@,$host_os,;t t
12475
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12476
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12477
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12478
s,@CYGPATH_W@,$CYGPATH_W,;t t
12479
s,@PACKAGE@,$PACKAGE,;t t
12480
s,@VERSION@,$VERSION,;t t
12481
s,@ACLOCAL@,$ACLOCAL,;t t
12482
s,@AUTOCONF@,$AUTOCONF,;t t
12483
s,@AUTOMAKE@,$AUTOMAKE,;t t
12484
s,@AUTOHEADER@,$AUTOHEADER,;t t
12485
s,@MAKEINFO@,$MAKEINFO,;t t
12486
s,@install_sh@,$install_sh,;t t
12487
s,@STRIP@,$STRIP,;t t
12488
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12489
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12490
s,@mkdir_p@,$mkdir_p,;t t
12491
s,@AWK@,$AWK,;t t
12492
s,@SET_MAKE@,$SET_MAKE,;t t
12493
s,@am__leading_dot@,$am__leading_dot,;t t
12494
s,@AMTAR@,$AMTAR,;t t
12495
s,@am__tar@,$am__tar,;t t
12496
s,@am__untar@,$am__untar,;t t
12497
s,@CC@,$CC,;t t
12498
s,@DEPDIR@,$DEPDIR,;t t
12499
s,@am__include@,$am__include,;t t
12500
s,@am__quote@,$am__quote,;t t
12501
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12502
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12503
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12504
s,@CCDEPMODE@,$CCDEPMODE,;t t
12505
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12506
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12507
s,@AS@,$AS,;t t
12508
s,@ac_ct_AS@,$ac_ct_AS,;t t
12509
s,@AR@,$AR,;t t
12510
s,@ac_ct_AR@,$ac_ct_AR,;t t
12511
s,@RANLIB@,$RANLIB,;t t
12512
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12513
s,@READELF@,$READELF,;t t
12514
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12515
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12516
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12517
s,@MAINT@,$MAINT,;t t
12518
s,@CCAS@,$CCAS,;t t
12519
s,@CCASFLAGS@,$CCASFLAGS,;t t
12520
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12521
s,@LDFLAGS@,$LDFLAGS,;t t
12522
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12523
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12524
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12525
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12526
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12527
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12528
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12529
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12530
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12531
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12532
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12533
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12534
s,@OBJEXT@,$OBJEXT,;t t
12535
s,@oext@,$oext,;t t
12536
s,@aext@,$aext,;t t
12537
s,@lpfx@,$lpfx,;t t
12538
s,@libm_machine_dir@,$libm_machine_dir,;t t
12539
s,@machine_dir@,$machine_dir,;t t
12540
s,@sys_dir@,$sys_dir,;t t
12541
s,@SED@,$SED,;t t
12542
s,@DLLTOOL@,$DLLTOOL,;t t
12543
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12544
s,@OBJDUMP@,$OBJDUMP,;t t
12545
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12546
s,@LIBTOOL@,$LIBTOOL,;t t
12547
s,@CFLAGS@,$CFLAGS,;t t
12548
s,@CPPFLAGS@,$CPPFLAGS,;t t
12549
s,@ac_ct_CC@,$ac_ct_CC,;t t
12550
s,@EXEEXT@,$EXEEXT,;t t
12551
s,@EGREP@,$EGREP,;t t
12552
s,@FGREP@,$FGREP,;t t
12553
s,@GREP@,$GREP,;t t
12554
s,@LD@,$LD,;t t
12555
s,@DUMPBIN@,$DUMPBIN,;t t
12556
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12557
s,@NM@,$NM,;t t
12558
s,@LN_S@,$LN_S,;t t
12559
s,@lt_ECHO@,$lt_ECHO,;t t
12560
s,@DSYMUTIL@,$DSYMUTIL,;t t
12561
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12562
s,@NMEDIT@,$NMEDIT,;t t
12563
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12564
s,@LIPO@,$LIPO,;t t
12565
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12566
s,@OTOOL@,$OTOOL,;t t
12567
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12568
s,@OTOOL64@,$OTOOL64,;t t
12569
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12570
s,@CPP@,$CPP,;t t
12571
s,@subdirs@,$subdirs,;t t
12572
s,@CRT0@,$CRT0,;t t
12573
s,@HAVE_SYS_DIR_TRUE@,$HAVE_SYS_DIR_TRUE,;t t
12574
s,@HAVE_SYS_DIR_FALSE@,$HAVE_SYS_DIR_FALSE,;t t
12575
s,@LIBOBJS@,$LIBOBJS,;t t
12576
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12577
CEOF
12578
 
12579
_ACEOF
12580
 
12581
  cat >>$CONFIG_STATUS <<\_ACEOF
12582
  # Split the substitutions into bite-sized pieces for seds with
12583
  # small command number limits, like on Digital OSF/1 and HP-UX.
12584
  ac_max_sed_lines=48
12585
  ac_sed_frag=1 # Number of current file.
12586
  ac_beg=1 # First line for current file.
12587
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12588
  ac_more_lines=:
12589
  ac_sed_cmds=
12590
  while $ac_more_lines; do
12591
    if test $ac_beg -gt 1; then
12592
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12593
    else
12594
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12595
    fi
12596
    if test ! -s $tmp/subs.frag; then
12597
      ac_more_lines=false
12598
    else
12599
      # The purpose of the label and of the branching condition is to
12600
      # speed up the sed processing (if there are no `@' at all, there
12601
      # is no need to browse any of the substitutions).
12602
      # These are the two extra sed commands mentioned above.
12603
      (echo ':t
12604
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12605
      if test -z "$ac_sed_cmds"; then
12606
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12607
      else
12608
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12609
      fi
12610
      ac_sed_frag=`expr $ac_sed_frag + 1`
12611
      ac_beg=$ac_end
12612
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12613
    fi
12614
  done
12615
  if test -z "$ac_sed_cmds"; then
12616
    ac_sed_cmds=cat
12617
  fi
12618
fi # test -n "$CONFIG_FILES"
12619
 
12620
_ACEOF
12621
cat >>$CONFIG_STATUS <<\_ACEOF
12622
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12623
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12624
  case $ac_file in
12625
  - | *:- | *:-:* ) # input from stdin
12626
        cat >$tmp/stdin
12627
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12628
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12629
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12630
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12631
  * )   ac_file_in=$ac_file.in ;;
12632
  esac
12633
 
12634
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12635
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12636
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637
         X"$ac_file" : 'X\(//\)[^/]' \| \
12638
         X"$ac_file" : 'X\(//\)$' \| \
12639
         X"$ac_file" : 'X\(/\)' \| \
12640
         .     : '\(.\)' 2>/dev/null ||
12641
echo X"$ac_file" |
12642
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644
          /^X\(\/\/\)$/{ s//\1/; q; }
12645
          /^X\(\/\).*/{ s//\1/; q; }
12646
          s/.*/./; q'`
12647
  { if $as_mkdir_p; then
12648
    mkdir -p "$ac_dir"
12649
  else
12650
    as_dir="$ac_dir"
12651
    as_dirs=
12652
    while test ! -d "$as_dir"; do
12653
      as_dirs="$as_dir $as_dirs"
12654
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12655
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12656
         X"$as_dir" : 'X\(//\)[^/]' \| \
12657
         X"$as_dir" : 'X\(//\)$' \| \
12658
         X"$as_dir" : 'X\(/\)' \| \
12659
         .     : '\(.\)' 2>/dev/null ||
12660
echo X"$as_dir" |
12661
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12662
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12663
          /^X\(\/\/\)$/{ s//\1/; q; }
12664
          /^X\(\/\).*/{ s//\1/; q; }
12665
          s/.*/./; q'`
12666
    done
12667
    test ! -n "$as_dirs" || mkdir $as_dirs
12668
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12669
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12670
   { (exit 1); exit 1; }; }; }
12671
 
12672
  ac_builddir=.
12673
 
12674
if test "$ac_dir" != .; then
12675
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12676
  # A "../" for each directory in $ac_dir_suffix.
12677
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12678
else
12679
  ac_dir_suffix= ac_top_builddir=
12680
fi
12681
 
12682
case $srcdir in
12683
  .)  # No --srcdir option.  We are building in place.
12684
    ac_srcdir=.
12685
    if test -z "$ac_top_builddir"; then
12686
       ac_top_srcdir=.
12687
    else
12688
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12689
    fi ;;
12690
  [\\/]* | ?:[\\/]* )  # Absolute path.
12691
    ac_srcdir=$srcdir$ac_dir_suffix;
12692
    ac_top_srcdir=$srcdir ;;
12693
  *) # Relative path.
12694
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12695
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12696
esac
12697
 
12698
# Do not use `cd foo && pwd` to compute absolute paths, because
12699
# the directories may not exist.
12700
case `pwd` in
12701
.) ac_abs_builddir="$ac_dir";;
12702
*)
12703
  case "$ac_dir" in
12704
  .) ac_abs_builddir=`pwd`;;
12705
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12706
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12707
  esac;;
12708
esac
12709
case $ac_abs_builddir in
12710
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12711
*)
12712
  case ${ac_top_builddir}. in
12713
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12714
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12715
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12716
  esac;;
12717
esac
12718
case $ac_abs_builddir in
12719
.) ac_abs_srcdir=$ac_srcdir;;
12720
*)
12721
  case $ac_srcdir in
12722
  .) ac_abs_srcdir=$ac_abs_builddir;;
12723
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12724
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12725
  esac;;
12726
esac
12727
case $ac_abs_builddir in
12728
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12729
*)
12730
  case $ac_top_srcdir in
12731
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12732
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12733
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12734
  esac;;
12735
esac
12736
 
12737
 
12738
  case $INSTALL in
12739
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12740
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12741
  esac
12742
 
12743
  if test x"$ac_file" != x-; then
12744
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12745
echo "$as_me: creating $ac_file" >&6;}
12746
    rm -f "$ac_file"
12747
  fi
12748
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12749
  # use $as_me), people would be surprised to read:
12750
  #    /* config.h.  Generated by config.status.  */
12751
  if test x"$ac_file" = x-; then
12752
    configure_input=
12753
  else
12754
    configure_input="$ac_file.  "
12755
  fi
12756
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12757
                                     sed 's,.*/,,'` by configure."
12758
 
12759
  # First look for the input files in the build tree, otherwise in the
12760
  # src tree.
12761
  ac_file_inputs=`IFS=:
12762
    for f in $ac_file_in; do
12763
      case $f in
12764
      -) echo $tmp/stdin ;;
12765
      [\\/$]*)
12766
         # Absolute (can't be DOS-style, as IFS=:)
12767
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12768
echo "$as_me: error: cannot find input file: $f" >&2;}
12769
   { (exit 1); exit 1; }; }
12770
         echo "$f";;
12771
      *) # Relative
12772
         if test -f "$f"; then
12773
           # Build tree
12774
           echo "$f"
12775
         elif test -f "$srcdir/$f"; then
12776
           # Source tree
12777
           echo "$srcdir/$f"
12778
         else
12779
           # /dev/null tree
12780
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12781
echo "$as_me: error: cannot find input file: $f" >&2;}
12782
   { (exit 1); exit 1; }; }
12783
         fi;;
12784
      esac
12785
    done` || { (exit 1); exit 1; }
12786
_ACEOF
12787
cat >>$CONFIG_STATUS <<_ACEOF
12788
  sed "$ac_vpsub
12789
$extrasub
12790
_ACEOF
12791
cat >>$CONFIG_STATUS <<\_ACEOF
12792
:t
12793
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12794
s,@configure_input@,$configure_input,;t t
12795
s,@srcdir@,$ac_srcdir,;t t
12796
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12797
s,@top_srcdir@,$ac_top_srcdir,;t t
12798
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12799
s,@builddir@,$ac_builddir,;t t
12800
s,@abs_builddir@,$ac_abs_builddir,;t t
12801
s,@top_builddir@,$ac_top_builddir,;t t
12802
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12803
s,@INSTALL@,$ac_INSTALL,;t t
12804
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12805
  rm -f $tmp/stdin
12806
  if test x"$ac_file" != x-; then
12807
    mv $tmp/out $ac_file
12808
  else
12809
    cat $tmp/out
12810
    rm -f $tmp/out
12811
  fi
12812
 
12813
done
12814
_ACEOF
12815
cat >>$CONFIG_STATUS <<\_ACEOF
12816
 
12817
#
12818
# CONFIG_COMMANDS section.
12819
#
12820
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12821
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12822
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12823
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12824
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12825
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12826
         X"$ac_dest" : 'X\(//\)$' \| \
12827
         X"$ac_dest" : 'X\(/\)' \| \
12828
         .     : '\(.\)' 2>/dev/null ||
12829
echo X"$ac_dest" |
12830
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12831
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12832
          /^X\(\/\/\)$/{ s//\1/; q; }
12833
          /^X\(\/\).*/{ s//\1/; q; }
12834
          s/.*/./; q'`
12835
  { if $as_mkdir_p; then
12836
    mkdir -p "$ac_dir"
12837
  else
12838
    as_dir="$ac_dir"
12839
    as_dirs=
12840
    while test ! -d "$as_dir"; do
12841
      as_dirs="$as_dir $as_dirs"
12842
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12843
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844
         X"$as_dir" : 'X\(//\)[^/]' \| \
12845
         X"$as_dir" : 'X\(//\)$' \| \
12846
         X"$as_dir" : 'X\(/\)' \| \
12847
         .     : '\(.\)' 2>/dev/null ||
12848
echo X"$as_dir" |
12849
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12850
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12851
          /^X\(\/\/\)$/{ s//\1/; q; }
12852
          /^X\(\/\).*/{ s//\1/; q; }
12853
          s/.*/./; q'`
12854
    done
12855
    test ! -n "$as_dirs" || mkdir $as_dirs
12856
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12857
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12858
   { (exit 1); exit 1; }; }; }
12859
 
12860
  ac_builddir=.
12861
 
12862
if test "$ac_dir" != .; then
12863
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12864
  # A "../" for each directory in $ac_dir_suffix.
12865
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12866
else
12867
  ac_dir_suffix= ac_top_builddir=
12868
fi
12869
 
12870
case $srcdir in
12871
  .)  # No --srcdir option.  We are building in place.
12872
    ac_srcdir=.
12873
    if test -z "$ac_top_builddir"; then
12874
       ac_top_srcdir=.
12875
    else
12876
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12877
    fi ;;
12878
  [\\/]* | ?:[\\/]* )  # Absolute path.
12879
    ac_srcdir=$srcdir$ac_dir_suffix;
12880
    ac_top_srcdir=$srcdir ;;
12881
  *) # Relative path.
12882
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12883
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12884
esac
12885
 
12886
# Do not use `cd foo && pwd` to compute absolute paths, because
12887
# the directories may not exist.
12888
case `pwd` in
12889
.) ac_abs_builddir="$ac_dir";;
12890
*)
12891
  case "$ac_dir" in
12892
  .) ac_abs_builddir=`pwd`;;
12893
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12894
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12895
  esac;;
12896
esac
12897
case $ac_abs_builddir in
12898
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12899
*)
12900
  case ${ac_top_builddir}. in
12901
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12902
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12903
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12904
  esac;;
12905
esac
12906
case $ac_abs_builddir in
12907
.) ac_abs_srcdir=$ac_srcdir;;
12908
*)
12909
  case $ac_srcdir in
12910
  .) ac_abs_srcdir=$ac_abs_builddir;;
12911
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12912
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12913
  esac;;
12914
esac
12915
case $ac_abs_builddir in
12916
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12917
*)
12918
  case $ac_top_srcdir in
12919
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12920
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12921
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12922
  esac;;
12923
esac
12924
 
12925
 
12926
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12927
echo "$as_me: executing $ac_dest commands" >&6;}
12928
  case $ac_dest in
12929
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12930
  # Strip MF so we end up with the name of the file.
12931
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12932
  # Check whether this is an Automake generated Makefile or not.
12933
  # We used to match only the files named `Makefile.in', but
12934
  # some people rename them; so instead we look at the file content.
12935
  # Grep'ing the first line is not enough: some people post-process
12936
  # each Makefile.in and add a new line on top of each file to say so.
12937
  # So let's grep whole file.
12938
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12939
    dirpart=`(dirname "$mf") 2>/dev/null ||
12940
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941
         X"$mf" : 'X\(//\)[^/]' \| \
12942
         X"$mf" : 'X\(//\)$' \| \
12943
         X"$mf" : 'X\(/\)' \| \
12944
         .     : '\(.\)' 2>/dev/null ||
12945
echo X"$mf" |
12946
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12947
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12948
          /^X\(\/\/\)$/{ s//\1/; q; }
12949
          /^X\(\/\).*/{ s//\1/; q; }
12950
          s/.*/./; q'`
12951
  else
12952
    continue
12953
  fi
12954
  # Extract the definition of DEPDIR, am__include, and am__quote
12955
  # from the Makefile without running `make'.
12956
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12957
  test -z "$DEPDIR" && continue
12958
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12959
  test -z "am__include" && continue
12960
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12961
  # When using ansi2knr, U may be empty or an underscore; expand it
12962
  U=`sed -n 's/^U = //p' < "$mf"`
12963
  # Find all dependency output files, they are included files with
12964
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12965
  # simplest approach to changing $(DEPDIR) to its actual value in the
12966
  # expansion.
12967
  for file in `sed -n "
12968
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12969
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12970
    # Make sure the directory exists.
12971
    test -f "$dirpart/$file" && continue
12972
    fdir=`(dirname "$file") 2>/dev/null ||
12973
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12974
         X"$file" : 'X\(//\)[^/]' \| \
12975
         X"$file" : 'X\(//\)$' \| \
12976
         X"$file" : 'X\(/\)' \| \
12977
         .     : '\(.\)' 2>/dev/null ||
12978
echo X"$file" |
12979
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12980
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12981
          /^X\(\/\/\)$/{ s//\1/; q; }
12982
          /^X\(\/\).*/{ s//\1/; q; }
12983
          s/.*/./; q'`
12984
    { if $as_mkdir_p; then
12985
    mkdir -p $dirpart/$fdir
12986
  else
12987
    as_dir=$dirpart/$fdir
12988
    as_dirs=
12989
    while test ! -d "$as_dir"; do
12990
      as_dirs="$as_dir $as_dirs"
12991
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12992
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12993
         X"$as_dir" : 'X\(//\)[^/]' \| \
12994
         X"$as_dir" : 'X\(//\)$' \| \
12995
         X"$as_dir" : 'X\(/\)' \| \
12996
         .     : '\(.\)' 2>/dev/null ||
12997
echo X"$as_dir" |
12998
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12999
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13000
          /^X\(\/\/\)$/{ s//\1/; q; }
13001
          /^X\(\/\).*/{ s//\1/; q; }
13002
          s/.*/./; q'`
13003
    done
13004
    test ! -n "$as_dirs" || mkdir $as_dirs
13005
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13006
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13007
   { (exit 1); exit 1; }; }; }
13008
 
13009
    # echo "creating $dirpart/$file"
13010
    echo '# dummy' > "$dirpart/$file"
13011
  done
13012
done
13013
 ;;
13014
    libtool )
13015
 
13016
    # See if we are running on zsh, and set the options which allow our
13017
    # commands through without removal of \ escapes.
13018
    if test -n "${ZSH_VERSION+set}" ; then
13019
      setopt NO_GLOB_SUBST
13020
    fi
13021
 
13022
    cfgfile="${ofile}T"
13023
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13024
    $RM "$cfgfile"
13025
 
13026
    cat <<_LT_EOF >> "$cfgfile"
13027
#! $SHELL
13028
 
13029
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13030
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13031
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13032
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13033
#
13034
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13035
#                 2006, 2007, 2008 Free Software Foundation, Inc.
13036
#   Written by Gordon Matzigkeit, 1996
13037
#
13038
#   This file is part of GNU Libtool.
13039
#
13040
# GNU Libtool is free software; you can redistribute it and/or
13041
# modify it under the terms of the GNU General Public License as
13042
# published by the Free Software Foundation; either version 2 of
13043
# the License, or (at your option) any later version.
13044
#
13045
# As a special exception to the GNU General Public License,
13046
# if you distribute this file as part of a program or library that
13047
# is built using GNU Libtool, you may include this file under the
13048
# same distribution terms that you use for the rest of that program.
13049
#
13050
# GNU Libtool is distributed in the hope that it will be useful,
13051
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13052
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13053
# GNU General Public License for more details.
13054
#
13055
# You should have received a copy of the GNU General Public License
13056
# along with GNU Libtool; see the file COPYING.  If not, a copy
13057
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13058
# obtained by writing to the Free Software Foundation, Inc.,
13059
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13060
 
13061
 
13062
# The names of the tagged configurations supported by this script.
13063
available_tags=""
13064
 
13065
# ### BEGIN LIBTOOL CONFIG
13066
 
13067
# A sed program that does not truncate output.
13068
SED=$lt_SED
13069
 
13070
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13071
Xsed="\$SED -e 1s/^X//"
13072
 
13073
# Assembler program.
13074
AS=$AS
13075
 
13076
# DLL creation program.
13077
DLLTOOL=$DLLTOOL
13078
 
13079
# Object dumper program.
13080
OBJDUMP=$OBJDUMP
13081
 
13082
# Which release of libtool.m4 was used?
13083
macro_version=$macro_version
13084
macro_revision=$macro_revision
13085
 
13086
# Whether or not to build shared libraries.
13087
build_libtool_libs=$enable_shared
13088
 
13089
# Whether or not to build static libraries.
13090
build_old_libs=$enable_static
13091
 
13092
# What type of objects to build.
13093
pic_mode=$pic_mode
13094
 
13095
# Whether or not to optimize for fast installation.
13096
fast_install=$enable_fast_install
13097
 
13098
# The host system.
13099
host_alias=$host_alias
13100
host=$host
13101
host_os=$host_os
13102
 
13103
# The build system.
13104
build_alias=$build_alias
13105
build=$build
13106
build_os=$build_os
13107
 
13108
# A grep program that handles long lines.
13109
GREP=$lt_GREP
13110
 
13111
# An ERE matcher.
13112
EGREP=$lt_EGREP
13113
 
13114
# A literal string matcher.
13115
FGREP=$lt_FGREP
13116
 
13117
# A BSD- or MS-compatible name lister.
13118
NM=$lt_NM
13119
 
13120
# Whether we need soft or hard links.
13121
LN_S=$lt_LN_S
13122
 
13123
# What is the maximum length of a command?
13124
max_cmd_len=$max_cmd_len
13125
 
13126
# Object file suffix (normally "o").
13127
objext=$ac_objext
13128
 
13129
# Executable file suffix (normally "").
13130
exeext=$exeext
13131
 
13132
# whether the shell understands "unset".
13133
lt_unset=$lt_unset
13134
 
13135
# turn spaces into newlines.
13136
SP2NL=$lt_lt_SP2NL
13137
 
13138
# turn newlines into spaces.
13139
NL2SP=$lt_lt_NL2SP
13140
 
13141
# How to create reloadable object files.
13142
reload_flag=$lt_reload_flag
13143
reload_cmds=$lt_reload_cmds
13144
 
13145
# Method to check whether dependent libraries are shared objects.
13146
deplibs_check_method=$lt_deplibs_check_method
13147
 
13148
# Command to use when deplibs_check_method == "file_magic".
13149
file_magic_cmd=$lt_file_magic_cmd
13150
 
13151
# The archiver.
13152
AR=$lt_AR
13153
AR_FLAGS=$lt_AR_FLAGS
13154
 
13155
# A symbol stripping program.
13156
STRIP=$lt_STRIP
13157
 
13158
# Commands used to install an old-style archive.
13159
RANLIB=$lt_RANLIB
13160
old_postinstall_cmds=$lt_old_postinstall_cmds
13161
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13162
 
13163
# A C compiler.
13164
LTCC=$lt_CC
13165
 
13166
# LTCC compiler flags.
13167
LTCFLAGS=$lt_CFLAGS
13168
 
13169
# Take the output of nm and produce a listing of raw symbols and C names.
13170
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13171
 
13172
# Transform the output of nm in a proper C declaration.
13173
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13174
 
13175
# Transform the output of nm in a C name address pair.
13176
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13177
 
13178
# Transform the output of nm in a C name address pair when lib prefix is needed.
13179
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13180
 
13181
# The name of the directory that contains temporary libtool files.
13182
objdir=$objdir
13183
 
13184
# Shell to use when invoking shell scripts.
13185
SHELL=$lt_SHELL
13186
 
13187
# An echo program that does not interpret backslashes.
13188
ECHO=$lt_ECHO
13189
 
13190
# Used to examine libraries when file_magic_cmd begins with "file".
13191
MAGIC_CMD=$MAGIC_CMD
13192
 
13193
# Must we lock files when doing compilation?
13194
need_locks=$lt_need_locks
13195
 
13196
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13197
DSYMUTIL=$lt_DSYMUTIL
13198
 
13199
# Tool to change global to local symbols on Mac OS X.
13200
NMEDIT=$lt_NMEDIT
13201
 
13202
# Tool to manipulate fat objects and archives on Mac OS X.
13203
LIPO=$lt_LIPO
13204
 
13205
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13206
OTOOL=$lt_OTOOL
13207
 
13208
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13209
OTOOL64=$lt_OTOOL64
13210
 
13211
# Old archive suffix (normally "a").
13212
libext=$libext
13213
 
13214
# Shared library suffix (normally ".so").
13215
shrext_cmds=$lt_shrext_cmds
13216
 
13217
# The commands to extract the exported symbol list from a shared archive.
13218
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13219
 
13220
# Variables whose values should be saved in libtool wrapper scripts and
13221
# restored at link time.
13222
variables_saved_for_relink=$lt_variables_saved_for_relink
13223
 
13224
# Do we need the "lib" prefix for modules?
13225
need_lib_prefix=$need_lib_prefix
13226
 
13227
# Do we need a version for libraries?
13228
need_version=$need_version
13229
 
13230
# Library versioning type.
13231
version_type=$version_type
13232
 
13233
# Shared library runtime path variable.
13234
runpath_var=$runpath_var
13235
 
13236
# Shared library path variable.
13237
shlibpath_var=$shlibpath_var
13238
 
13239
# Is shlibpath searched before the hard-coded library search path?
13240
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13241
 
13242
# Format of library name prefix.
13243
libname_spec=$lt_libname_spec
13244
 
13245
# List of archive names.  First name is the real one, the rest are links.
13246
# The last name is the one that the linker finds with -lNAME
13247
library_names_spec=$lt_library_names_spec
13248
 
13249
# The coded name of the library, if different from the real name.
13250
soname_spec=$lt_soname_spec
13251
 
13252
# Command to use after installation of a shared archive.
13253
postinstall_cmds=$lt_postinstall_cmds
13254
 
13255
# Command to use after uninstallation of a shared archive.
13256
postuninstall_cmds=$lt_postuninstall_cmds
13257
 
13258
# Commands used to finish a libtool library installation in a directory.
13259
finish_cmds=$lt_finish_cmds
13260
 
13261
# As "finish_cmds", except a single script fragment to be evaled but
13262
# not shown.
13263
finish_eval=$lt_finish_eval
13264
 
13265
# Whether we should hardcode library paths into libraries.
13266
hardcode_into_libs=$hardcode_into_libs
13267
 
13268
# Compile-time system search path for libraries.
13269
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13270
 
13271
# Run-time system search path for libraries.
13272
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13273
 
13274
# Whether dlopen is supported.
13275
dlopen_support=$enable_dlopen
13276
 
13277
# Whether dlopen of programs is supported.
13278
dlopen_self=$enable_dlopen_self
13279
 
13280
# Whether dlopen of statically linked programs is supported.
13281
dlopen_self_static=$enable_dlopen_self_static
13282
 
13283
# Commands to strip libraries.
13284
old_striplib=$lt_old_striplib
13285
striplib=$lt_striplib
13286
 
13287
 
13288
# The linker used to build libraries.
13289
LD=$lt_LD
13290
 
13291
# Commands used to build an old-style archive.
13292
old_archive_cmds=$lt_old_archive_cmds
13293
 
13294
# A language specific compiler.
13295
CC=$lt_compiler
13296
 
13297
# Is the compiler the GNU compiler?
13298
with_gcc=$GCC
13299
 
13300
# Compiler flag to turn off builtin functions.
13301
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13302
 
13303
# How to pass a linker flag through the compiler.
13304
wl=$lt_lt_prog_compiler_wl
13305
 
13306
# Additional compiler flags for building library objects.
13307
pic_flag=$lt_lt_prog_compiler_pic
13308
 
13309
# Compiler flag to prevent dynamic linking.
13310
link_static_flag=$lt_lt_prog_compiler_static
13311
 
13312
# Does compiler simultaneously support -c and -o options?
13313
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13314
 
13315
# Whether or not to add -lc for building shared libraries.
13316
build_libtool_need_lc=$archive_cmds_need_lc
13317
 
13318
# Whether or not to disallow shared libs when runtime libs are static.
13319
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13320
 
13321
# Compiler flag to allow reflexive dlopens.
13322
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13323
 
13324
# Compiler flag to generate shared objects directly from archives.
13325
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13326
 
13327
# Whether the compiler copes with passing no objects directly.
13328
compiler_needs_object=$lt_compiler_needs_object
13329
 
13330
# Create an old-style archive from a shared archive.
13331
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13332
 
13333
# Create a temporary old-style archive to link instead of a shared archive.
13334
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13335
 
13336
# Commands used to build a shared archive.
13337
archive_cmds=$lt_archive_cmds
13338
archive_expsym_cmds=$lt_archive_expsym_cmds
13339
 
13340
# Commands used to build a loadable module if different from building
13341
# a shared archive.
13342
module_cmds=$lt_module_cmds
13343
module_expsym_cmds=$lt_module_expsym_cmds
13344
 
13345
# Whether we are building with GNU ld or not.
13346
with_gnu_ld=$lt_with_gnu_ld
13347
 
13348
# Flag that allows shared libraries with undefined symbols to be built.
13349
allow_undefined_flag=$lt_allow_undefined_flag
13350
 
13351
# Flag that enforces no undefined symbols.
13352
no_undefined_flag=$lt_no_undefined_flag
13353
 
13354
# Flag to hardcode \$libdir into a binary during linking.
13355
# This must work even if \$libdir does not exist
13356
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13357
 
13358
# If ld is used when linking, flag to hardcode \$libdir into a binary
13359
# during linking.  This must work even if \$libdir does not exist.
13360
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13361
 
13362
# Whether we need a single "-rpath" flag with a separated argument.
13363
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13364
 
13365
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13366
# DIR into the resulting binary.
13367
hardcode_direct=$hardcode_direct
13368
 
13369
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13370
# DIR into the resulting binary and the resulting library dependency is
13371
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13372
# library is relocated.
13373
hardcode_direct_absolute=$hardcode_direct_absolute
13374
 
13375
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13376
# into the resulting binary.
13377
hardcode_minus_L=$hardcode_minus_L
13378
 
13379
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13380
# into the resulting binary.
13381
hardcode_shlibpath_var=$hardcode_shlibpath_var
13382
 
13383
# Set to "yes" if building a shared library automatically hardcodes DIR
13384
# into the library and all subsequent libraries and executables linked
13385
# against it.
13386
hardcode_automatic=$hardcode_automatic
13387
 
13388
# Set to yes if linker adds runtime paths of dependent libraries
13389
# to runtime path list.
13390
inherit_rpath=$inherit_rpath
13391
 
13392
# Whether libtool must link a program against all its dependency libraries.
13393
link_all_deplibs=$link_all_deplibs
13394
 
13395
# Fix the shell variable \$srcfile for the compiler.
13396
fix_srcfile_path=$lt_fix_srcfile_path
13397
 
13398
# Set to "yes" if exported symbols are required.
13399
always_export_symbols=$always_export_symbols
13400
 
13401
# The commands to list exported symbols.
13402
export_symbols_cmds=$lt_export_symbols_cmds
13403
 
13404
# Symbols that should not be listed in the preloaded symbols.
13405
exclude_expsyms=$lt_exclude_expsyms
13406
 
13407
# Symbols that must always be exported.
13408
include_expsyms=$lt_include_expsyms
13409
 
13410
# Commands necessary for linking programs (against libraries) with templates.
13411
prelink_cmds=$lt_prelink_cmds
13412
 
13413
# Specify filename containing input files.
13414
file_list_spec=$lt_file_list_spec
13415
 
13416
# How to hardcode a shared library path into an executable.
13417
hardcode_action=$hardcode_action
13418
 
13419
# ### END LIBTOOL CONFIG
13420
 
13421
_LT_EOF
13422
 
13423
  case $host_os in
13424
  aix3*)
13425
    cat <<\_LT_EOF >> "$cfgfile"
13426
# AIX sometimes has problems with the GCC collect2 program.  For some
13427
# reason, if we set the COLLECT_NAMES environment variable, the problems
13428
# vanish in a puff of smoke.
13429
if test "X${COLLECT_NAMES+set}" != Xset; then
13430
  COLLECT_NAMES=
13431
  export COLLECT_NAMES
13432
fi
13433
_LT_EOF
13434
    ;;
13435
  esac
13436
 
13437
 
13438
ltmain="$ac_aux_dir/ltmain.sh"
13439
 
13440
 
13441
  # We use sed instead of cat because bash on DJGPP gets confused if
13442
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13443
  # text mode, it properly converts lines to CR/LF.  This bash problem
13444
  # is reportedly fixed, but why not run on old versions too?
13445
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13446
    || (rm -f "$cfgfile"; exit 1)
13447
 
13448
  case $xsi_shell in
13449
  yes)
13450
    cat << \_LT_EOF >> "$cfgfile"
13451
 
13452
# func_dirname file append nondir_replacement
13453
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13454
# otherwise set result to NONDIR_REPLACEMENT.
13455
func_dirname ()
13456
{
13457
  case ${1} in
13458
    */*) func_dirname_result="${1%/*}${2}" ;;
13459
    *  ) func_dirname_result="${3}" ;;
13460
  esac
13461
}
13462
 
13463
# func_basename file
13464
func_basename ()
13465
{
13466
  func_basename_result="${1##*/}"
13467
}
13468
 
13469
# func_dirname_and_basename file append nondir_replacement
13470
# perform func_basename and func_dirname in a single function
13471
# call:
13472
#   dirname:  Compute the dirname of FILE.  If nonempty,
13473
#             add APPEND to the result, otherwise set result
13474
#             to NONDIR_REPLACEMENT.
13475
#             value returned in "$func_dirname_result"
13476
#   basename: Compute filename of FILE.
13477
#             value retuned in "$func_basename_result"
13478
# Implementation must be kept synchronized with func_dirname
13479
# and func_basename. For efficiency, we do not delegate to
13480
# those functions but instead duplicate the functionality here.
13481
func_dirname_and_basename ()
13482
{
13483
  case ${1} in
13484
    */*) func_dirname_result="${1%/*}${2}" ;;
13485
    *  ) func_dirname_result="${3}" ;;
13486
  esac
13487
  func_basename_result="${1##*/}"
13488
}
13489
 
13490
# func_stripname prefix suffix name
13491
# strip PREFIX and SUFFIX off of NAME.
13492
# PREFIX and SUFFIX must not contain globbing or regex special
13493
# characters, hashes, percent signs, but SUFFIX may contain a leading
13494
# dot (in which case that matches only a dot).
13495
func_stripname ()
13496
{
13497
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13498
  # positional parameters, so assign one to ordinary parameter first.
13499
  func_stripname_result=${3}
13500
  func_stripname_result=${func_stripname_result#"${1}"}
13501
  func_stripname_result=${func_stripname_result%"${2}"}
13502
}
13503
 
13504
# func_opt_split
13505
func_opt_split ()
13506
{
13507
  func_opt_split_opt=${1%%=*}
13508
  func_opt_split_arg=${1#*=}
13509
}
13510
 
13511
# func_lo2o object
13512
func_lo2o ()
13513
{
13514
  case ${1} in
13515
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13516
    *)    func_lo2o_result=${1} ;;
13517
  esac
13518
}
13519
 
13520
# func_xform libobj-or-source
13521
func_xform ()
13522
{
13523
  func_xform_result=${1%.*}.lo
13524
}
13525
 
13526
# func_arith arithmetic-term...
13527
func_arith ()
13528
{
13529
  func_arith_result=$(( $* ))
13530
}
13531
 
13532
# func_len string
13533
# STRING may not start with a hyphen.
13534
func_len ()
13535
{
13536
  func_len_result=${#1}
13537
}
13538
 
13539
_LT_EOF
13540
    ;;
13541
  *) # Bourne compatible functions.
13542
    cat << \_LT_EOF >> "$cfgfile"
13543
 
13544
# func_dirname file append nondir_replacement
13545
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13546
# otherwise set result to NONDIR_REPLACEMENT.
13547
func_dirname ()
13548
{
13549
  # Extract subdirectory from the argument.
13550
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13551
  if test "X$func_dirname_result" = "X${1}"; then
13552
    func_dirname_result="${3}"
13553
  else
13554
    func_dirname_result="$func_dirname_result${2}"
13555
  fi
13556
}
13557
 
13558
# func_basename file
13559
func_basename ()
13560
{
13561
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13562
}
13563
 
13564
 
13565
# func_stripname prefix suffix name
13566
# strip PREFIX and SUFFIX off of NAME.
13567
# PREFIX and SUFFIX must not contain globbing or regex special
13568
# characters, hashes, percent signs, but SUFFIX may contain a leading
13569
# dot (in which case that matches only a dot).
13570
# func_strip_suffix prefix name
13571
func_stripname ()
13572
{
13573
  case ${2} in
13574
    .*) func_stripname_result=`$ECHO "X${3}" \
13575
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13576
    *)  func_stripname_result=`$ECHO "X${3}" \
13577
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13578
  esac
13579
}
13580
 
13581
# sed scripts:
13582
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13583
my_sed_long_arg='1s/^-[^=]*=//'
13584
 
13585
# func_opt_split
13586
func_opt_split ()
13587
{
13588
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13589
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13590
}
13591
 
13592
# func_lo2o object
13593
func_lo2o ()
13594
{
13595
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13596
}
13597
 
13598
# func_xform libobj-or-source
13599
func_xform ()
13600
{
13601
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13602
}
13603
 
13604
# func_arith arithmetic-term...
13605
func_arith ()
13606
{
13607
  func_arith_result=`expr "$@"`
13608
}
13609
 
13610
# func_len string
13611
# STRING may not start with a hyphen.
13612
func_len ()
13613
{
13614
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13615
}
13616
 
13617
_LT_EOF
13618
esac
13619
 
13620
case $lt_shell_append in
13621
  yes)
13622
    cat << \_LT_EOF >> "$cfgfile"
13623
 
13624
# func_append var value
13625
# Append VALUE to the end of shell variable VAR.
13626
func_append ()
13627
{
13628
  eval "$1+=\$2"
13629
}
13630
_LT_EOF
13631
    ;;
13632
  *)
13633
    cat << \_LT_EOF >> "$cfgfile"
13634
 
13635
# func_append var value
13636
# Append VALUE to the end of shell variable VAR.
13637
func_append ()
13638
{
13639
  eval "$1=\$$1\$2"
13640
}
13641
 
13642
_LT_EOF
13643
    ;;
13644
  esac
13645
 
13646
 
13647
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13648
    || (rm -f "$cfgfile"; exit 1)
13649
 
13650
  mv -f "$cfgfile" "$ofile" ||
13651
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13652
  chmod +x "$ofile"
13653
 
13654
 ;;
13655
  esac
13656
done
13657
_ACEOF
13658
 
13659
cat >>$CONFIG_STATUS <<\_ACEOF
13660
 
13661
{ (exit 0); exit 0; }
13662
_ACEOF
13663
chmod +x $CONFIG_STATUS
13664
ac_clean_files=$ac_clean_files_save
13665
 
13666
 
13667
# configure is writing to config.log, and then calls config.status.
13668
# config.status does its own redirection, appending to config.log.
13669
# Unfortunately, on DOS this fails, as config.log is still kept open
13670
# by configure, so config.status won't be able to write to it; its
13671
# output is simply discarded.  So we exec the FD to /dev/null,
13672
# effectively closing config.log, so it can be properly (re)opened and
13673
# appended to by config.status.  When coming back to configure, we
13674
# need to make the FD available again.
13675
if test "$no_create" != yes; then
13676
  ac_cs_success=:
13677
  ac_config_status_args=
13678
  test "$silent" = yes &&
13679
    ac_config_status_args="$ac_config_status_args --quiet"
13680
  exec 5>/dev/null
13681
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13682
  exec 5>>config.log
13683
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13684
  # would make configure fail if this is the last instruction.
13685
  $ac_cs_success || { (exit 1); exit 1; }
13686
fi
13687
 
13688
#
13689
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13690
#
13691
if test "$no_recursion" != yes; then
13692
 
13693
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13694
  ac_sub_configure_args=
13695
  ac_prev=
13696
  eval "set x $ac_configure_args"
13697
  shift
13698
  for ac_arg
13699
  do
13700
    if test -n "$ac_prev"; then
13701
      ac_prev=
13702
      continue
13703
    fi
13704
    case $ac_arg in
13705
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13706
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13707
      ac_prev=cache_file ;;
13708
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13709
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13710
    | --c=*)
13711
      ;;
13712
    --config-cache | -C)
13713
      ;;
13714
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13715
      ac_prev=srcdir ;;
13716
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13717
      ;;
13718
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13719
      ac_prev=prefix ;;
13720
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13721
      ;;
13722
    *)
13723
      case $ac_arg in
13724
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13725
      esac
13726
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13727
    esac
13728
  done
13729
 
13730
  # Always prepend --prefix to ensure using the same prefix
13731
  # in subdir configurations.
13732
  ac_arg="--prefix=$prefix"
13733
  case $ac_arg in
13734
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13735
  esac
13736
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13737
 
13738
  ac_popdir=`pwd`
13739
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13740
 
13741
    # Do not complain, so a configure script can configure whichever
13742
    # parts of a large source tree are present.
13743
    test -d "$srcdir/$ac_dir" || continue
13744
 
13745
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13746
echo "$as_me: configuring in $ac_dir" >&6;}
13747
    { if $as_mkdir_p; then
13748
    mkdir -p "$ac_dir"
13749
  else
13750
    as_dir="$ac_dir"
13751
    as_dirs=
13752
    while test ! -d "$as_dir"; do
13753
      as_dirs="$as_dir $as_dirs"
13754
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13755
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13756
         X"$as_dir" : 'X\(//\)[^/]' \| \
13757
         X"$as_dir" : 'X\(//\)$' \| \
13758
         X"$as_dir" : 'X\(/\)' \| \
13759
         .     : '\(.\)' 2>/dev/null ||
13760
echo X"$as_dir" |
13761
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13762
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13763
          /^X\(\/\/\)$/{ s//\1/; q; }
13764
          /^X\(\/\).*/{ s//\1/; q; }
13765
          s/.*/./; q'`
13766
    done
13767
    test ! -n "$as_dirs" || mkdir $as_dirs
13768
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13769
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13770
   { (exit 1); exit 1; }; }; }
13771
 
13772
    ac_builddir=.
13773
 
13774
if test "$ac_dir" != .; then
13775
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13776
  # A "../" for each directory in $ac_dir_suffix.
13777
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13778
else
13779
  ac_dir_suffix= ac_top_builddir=
13780
fi
13781
 
13782
case $srcdir in
13783
  .)  # No --srcdir option.  We are building in place.
13784
    ac_srcdir=.
13785
    if test -z "$ac_top_builddir"; then
13786
       ac_top_srcdir=.
13787
    else
13788
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13789
    fi ;;
13790
  [\\/]* | ?:[\\/]* )  # Absolute path.
13791
    ac_srcdir=$srcdir$ac_dir_suffix;
13792
    ac_top_srcdir=$srcdir ;;
13793
  *) # Relative path.
13794
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13795
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13796
esac
13797
 
13798
# Do not use `cd foo && pwd` to compute absolute paths, because
13799
# the directories may not exist.
13800
case `pwd` in
13801
.) ac_abs_builddir="$ac_dir";;
13802
*)
13803
  case "$ac_dir" in
13804
  .) ac_abs_builddir=`pwd`;;
13805
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13806
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13807
  esac;;
13808
esac
13809
case $ac_abs_builddir in
13810
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13811
*)
13812
  case ${ac_top_builddir}. in
13813
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13814
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13815
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13816
  esac;;
13817
esac
13818
case $ac_abs_builddir in
13819
.) ac_abs_srcdir=$ac_srcdir;;
13820
*)
13821
  case $ac_srcdir in
13822
  .) ac_abs_srcdir=$ac_abs_builddir;;
13823
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13824
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13825
  esac;;
13826
esac
13827
case $ac_abs_builddir in
13828
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13829
*)
13830
  case $ac_top_srcdir in
13831
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13832
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13833
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13834
  esac;;
13835
esac
13836
 
13837
 
13838
    cd "$ac_dir"
13839
 
13840
    # Check for guested configure; otherwise get Cygnus style configure.
13841
    if test -f "$ac_srcdir/configure.gnu"; then
13842
      ac_sub_configure=$ac_srcdir/configure.gnu
13843
    elif test -f "$ac_srcdir/configure"; then
13844
      ac_sub_configure=$ac_srcdir/configure
13845
    elif test -f "$ac_srcdir/configure.in"; then
13846
      # This should be Cygnus configure.
13847
      ac_sub_configure=$ac_aux_dir/configure
13848
    else
13849
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13850
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13851
      ac_sub_configure=
13852
    fi
13853
 
13854
    # The recursion is here.
13855
    if test -n "$ac_sub_configure"; then
13856
      # Make the cache file name correct relative to the subdirectory.
13857
      case $cache_file in
13858
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13859
      *) # Relative path.
13860
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13861
      esac
13862
 
13863
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13864
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13865
      # The eval makes quoting arguments work.
13866
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13867
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13868
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13869
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13870
   { (exit 1); exit 1; }; }
13871
    fi
13872
 
13873
    cd "$ac_popdir"
13874
  done
13875
fi
13876
 

powered by: WebSVN 2.1.0

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