OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [binutils/] [configure] - Blame information for rev 277

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

Line No. Rev Author Line
1 38 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
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=
418
PACKAGE_TARNAME=
419
PACKAGE_VERSION=
420
PACKAGE_STRING=
421
PACKAGE_BUGREPORT=
422
 
423
ac_unique_file="ar.c"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462
ac_subst_files=''
463
 
464
# Initialize some variables set by options.
465
ac_init_help=
466
ac_init_version=false
467
# The variables have the same names as the options, with
468
# dashes changed to underlines.
469
cache_file=/dev/null
470
exec_prefix=NONE
471
no_create=
472
no_recursion=
473
prefix=NONE
474
program_prefix=NONE
475
program_suffix=NONE
476
program_transform_name=s,x,x,
477
silent=
478
site=
479
srcdir=
480
verbose=
481
x_includes=NONE
482
x_libraries=NONE
483
 
484
# Installation directory options.
485
# These are left unexpanded so users can "make install exec_prefix=/foo"
486
# and all the variables that are supposed to be based on exec_prefix
487
# by default will actually change.
488
# Use braces instead of parens because sh, perl, etc. also accept them.
489
bindir='${exec_prefix}/bin'
490
sbindir='${exec_prefix}/sbin'
491
libexecdir='${exec_prefix}/libexec'
492
datadir='${prefix}/share'
493
sysconfdir='${prefix}/etc'
494
sharedstatedir='${prefix}/com'
495
localstatedir='${prefix}/var'
496
libdir='${exec_prefix}/lib'
497
includedir='${prefix}/include'
498
oldincludedir='/usr/include'
499
infodir='${prefix}/info'
500
mandir='${prefix}/man'
501
 
502
ac_prev=
503
for ac_option
504
do
505
  # If the previous option needs an argument, assign it.
506
  if test -n "$ac_prev"; then
507
    eval "$ac_prev=\$ac_option"
508
    ac_prev=
509
    continue
510
  fi
511
 
512
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
 
514
  # Accept the important Cygnus configure options, so we can diagnose typos.
515
 
516
  case $ac_option in
517
 
518
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519
    ac_prev=bindir ;;
520
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521
    bindir=$ac_optarg ;;
522
 
523
  -build | --build | --buil | --bui | --bu)
524
    ac_prev=build_alias ;;
525
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526
    build_alias=$ac_optarg ;;
527
 
528
  -cache-file | --cache-file | --cache-fil | --cache-fi \
529
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530
    ac_prev=cache_file ;;
531
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533
    cache_file=$ac_optarg ;;
534
 
535
  --config-cache | -C)
536
    cache_file=config.cache ;;
537
 
538
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539
    ac_prev=datadir ;;
540
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541
  | --da=*)
542
    datadir=$ac_optarg ;;
543
 
544
  -disable-* | --disable-*)
545
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546
    # Reject names that are not valid shell variable names.
547
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549
   { (exit 1); exit 1; }; }
550
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551
    eval "enable_$ac_feature=no" ;;
552
 
553
  -enable-* | --enable-*)
554
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555
    # Reject names that are not valid shell variable names.
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
   { (exit 1); exit 1; }; }
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
    case $ac_option in
561
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562
      *) ac_optarg=yes ;;
563
    esac
564
    eval "enable_$ac_feature='$ac_optarg'" ;;
565
 
566
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568
  | --exec | --exe | --ex)
569
    ac_prev=exec_prefix ;;
570
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572
  | --exec=* | --exe=* | --ex=*)
573
    exec_prefix=$ac_optarg ;;
574
 
575
  -gas | --gas | --ga | --g)
576
    # Obsolete; use --with-gas.
577
    with_gas=yes ;;
578
 
579
  -help | --help | --hel | --he | -h)
580
    ac_init_help=long ;;
581
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582
    ac_init_help=recursive ;;
583
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584
    ac_init_help=short ;;
585
 
586
  -host | --host | --hos | --ho)
587
    ac_prev=host_alias ;;
588
  -host=* | --host=* | --hos=* | --ho=*)
589
    host_alias=$ac_optarg ;;
590
 
591
  -includedir | --includedir | --includedi | --included | --include \
592
  | --includ | --inclu | --incl | --inc)
593
    ac_prev=includedir ;;
594
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595
  | --includ=* | --inclu=* | --incl=* | --inc=*)
596
    includedir=$ac_optarg ;;
597
 
598
  -infodir | --infodir | --infodi | --infod | --info | --inf)
599
    ac_prev=infodir ;;
600
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601
    infodir=$ac_optarg ;;
602
 
603
  -libdir | --libdir | --libdi | --libd)
604
    ac_prev=libdir ;;
605
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606
    libdir=$ac_optarg ;;
607
 
608
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609
  | --libexe | --libex | --libe)
610
    ac_prev=libexecdir ;;
611
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612
  | --libexe=* | --libex=* | --libe=*)
613
    libexecdir=$ac_optarg ;;
614
 
615
  -localstatedir | --localstatedir | --localstatedi | --localstated \
616
  | --localstate | --localstat | --localsta | --localst \
617
  | --locals | --local | --loca | --loc | --lo)
618
    ac_prev=localstatedir ;;
619
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622
    localstatedir=$ac_optarg ;;
623
 
624
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625
    ac_prev=mandir ;;
626
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
    mandir=$ac_optarg ;;
628
 
629
  -nfp | --nfp | --nf)
630
    # Obsolete; use --without-fp.
631
    with_fp=no ;;
632
 
633
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634
  | --no-cr | --no-c | -n)
635
    no_create=yes ;;
636
 
637
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639
    no_recursion=yes ;;
640
 
641
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643
  | --oldin | --oldi | --old | --ol | --o)
644
    ac_prev=oldincludedir ;;
645
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648
    oldincludedir=$ac_optarg ;;
649
 
650
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651
    ac_prev=prefix ;;
652
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653
    prefix=$ac_optarg ;;
654
 
655
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656
  | --program-pre | --program-pr | --program-p)
657
    ac_prev=program_prefix ;;
658
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660
    program_prefix=$ac_optarg ;;
661
 
662
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663
  | --program-suf | --program-su | --program-s)
664
    ac_prev=program_suffix ;;
665
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667
    program_suffix=$ac_optarg ;;
668
 
669
  -program-transform-name | --program-transform-name \
670
  | --program-transform-nam | --program-transform-na \
671
  | --program-transform-n | --program-transform- \
672
  | --program-transform | --program-transfor \
673
  | --program-transfo | --program-transf \
674
  | --program-trans | --program-tran \
675
  | --progr-tra | --program-tr | --program-t)
676
    ac_prev=program_transform_name ;;
677
  -program-transform-name=* | --program-transform-name=* \
678
  | --program-transform-nam=* | --program-transform-na=* \
679
  | --program-transform-n=* | --program-transform-=* \
680
  | --program-transform=* | --program-transfor=* \
681
  | --program-transfo=* | --program-transf=* \
682
  | --program-trans=* | --program-tran=* \
683
  | --progr-tra=* | --program-tr=* | --program-t=*)
684
    program_transform_name=$ac_optarg ;;
685
 
686
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687
  | -silent | --silent | --silen | --sile | --sil)
688
    silent=yes ;;
689
 
690
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691
    ac_prev=sbindir ;;
692
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693
  | --sbi=* | --sb=*)
694
    sbindir=$ac_optarg ;;
695
 
696
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698
  | --sharedst | --shareds | --shared | --share | --shar \
699
  | --sha | --sh)
700
    ac_prev=sharedstatedir ;;
701
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704
  | --sha=* | --sh=*)
705
    sharedstatedir=$ac_optarg ;;
706
 
707
  -site | --site | --sit)
708
    ac_prev=site ;;
709
  -site=* | --site=* | --sit=*)
710
    site=$ac_optarg ;;
711
 
712
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713
    ac_prev=srcdir ;;
714
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715
    srcdir=$ac_optarg ;;
716
 
717
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718
  | --syscon | --sysco | --sysc | --sys | --sy)
719
    ac_prev=sysconfdir ;;
720
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722
    sysconfdir=$ac_optarg ;;
723
 
724
  -target | --target | --targe | --targ | --tar | --ta | --t)
725
    ac_prev=target_alias ;;
726
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727
    target_alias=$ac_optarg ;;
728
 
729
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730
    verbose=yes ;;
731
 
732
  -version | --version | --versio | --versi | --vers | -V)
733
    ac_init_version=: ;;
734
 
735
  -with-* | --with-*)
736
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737
    # Reject names that are not valid shell variable names.
738
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739
      { echo "$as_me: error: invalid package name: $ac_package" >&2
740
   { (exit 1); exit 1; }; }
741
    ac_package=`echo $ac_package| sed 's/-/_/g'`
742
    case $ac_option in
743
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744
      *) ac_optarg=yes ;;
745
    esac
746
    eval "with_$ac_package='$ac_optarg'" ;;
747
 
748
  -without-* | --without-*)
749
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750
    # Reject names that are not valid shell variable names.
751
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752
      { echo "$as_me: error: invalid package name: $ac_package" >&2
753
   { (exit 1); exit 1; }; }
754
    ac_package=`echo $ac_package | sed 's/-/_/g'`
755
    eval "with_$ac_package=no" ;;
756
 
757
  --x)
758
    # Obsolete; use --with-x.
759
    with_x=yes ;;
760
 
761
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762
  | --x-incl | --x-inc | --x-in | --x-i)
763
    ac_prev=x_includes ;;
764
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766
    x_includes=$ac_optarg ;;
767
 
768
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770
    ac_prev=x_libraries ;;
771
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773
    x_libraries=$ac_optarg ;;
774
 
775
  -*) { echo "$as_me: error: unrecognized option: $ac_option
776
Try \`$0 --help' for more information." >&2
777
   { (exit 1); exit 1; }; }
778
    ;;
779
 
780
  *=*)
781
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782
    # Reject names that are not valid shell variable names.
783
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785
   { (exit 1); exit 1; }; }
786
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787
    eval "$ac_envvar='$ac_optarg'"
788
    export $ac_envvar ;;
789
 
790
  *)
791
    # FIXME: should be removed in autoconf 3.0.
792
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796
    ;;
797
 
798
  esac
799
done
800
 
801
if test -n "$ac_prev"; then
802
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803
  { echo "$as_me: error: missing argument to $ac_option" >&2
804
   { (exit 1); exit 1; }; }
805
fi
806
 
807
# Be sure to have absolute paths.
808
for ac_var in exec_prefix prefix
809
do
810
  eval ac_val=$`echo $ac_var`
811
  case $ac_val in
812
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814
   { (exit 1); exit 1; }; };;
815
  esac
816
done
817
 
818
# Be sure to have absolute paths.
819
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
              localstatedir libdir includedir oldincludedir infodir mandir
821
do
822
  eval ac_val=$`echo $ac_var`
823
  case $ac_val in
824
    [\\/$]* | ?:[\\/]* ) ;;
825
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
   { (exit 1); exit 1; }; };;
827
  esac
828
done
829
 
830
# There might be people who depend on the old broken behavior: `$host'
831
# used to hold the argument of --host etc.
832
# FIXME: To remove some day.
833
build=$build_alias
834
host=$host_alias
835
target=$target_alias
836
 
837
# FIXME: To remove some day.
838
if test "x$host_alias" != x; then
839
  if test "x$build_alias" = x; then
840
    cross_compiling=maybe
841
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842
    If a cross compiler is detected then cross compile mode will be used." >&2
843
  elif test "x$build_alias" != "x$host_alias"; then
844
    cross_compiling=yes
845
  fi
846
fi
847
 
848
ac_tool_prefix=
849
test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
 
851
test "$silent" = yes && exec 6>/dev/null
852
 
853
 
854
# Find the source files, if location was not specified.
855
if test -z "$srcdir"; then
856
  ac_srcdir_defaulted=yes
857
  # Try the directory containing this script, then its parent.
858
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
         X"$0" : 'X\(//\)[^/]' \| \
861
         X"$0" : 'X\(//\)$' \| \
862
         X"$0" : 'X\(/\)' \| \
863
         .     : '\(.\)' 2>/dev/null ||
864
echo X"$0" |
865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867
          /^X\(\/\/\)$/{ s//\1/; q; }
868
          /^X\(\/\).*/{ s//\1/; q; }
869
          s/.*/./; q'`
870
  srcdir=$ac_confdir
871
  if test ! -r $srcdir/$ac_unique_file; then
872
    srcdir=..
873
  fi
874
else
875
  ac_srcdir_defaulted=no
876
fi
877
if test ! -r $srcdir/$ac_unique_file; then
878
  if test "$ac_srcdir_defaulted" = yes; then
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880
   { (exit 1); exit 1; }; }
881
  else
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883
   { (exit 1); exit 1; }; }
884
  fi
885
fi
886
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888
   { (exit 1); exit 1; }; }
889
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890
ac_env_build_alias_set=${build_alias+set}
891
ac_env_build_alias_value=$build_alias
892
ac_cv_env_build_alias_set=${build_alias+set}
893
ac_cv_env_build_alias_value=$build_alias
894
ac_env_host_alias_set=${host_alias+set}
895
ac_env_host_alias_value=$host_alias
896
ac_cv_env_host_alias_set=${host_alias+set}
897
ac_cv_env_host_alias_value=$host_alias
898
ac_env_target_alias_set=${target_alias+set}
899
ac_env_target_alias_value=$target_alias
900
ac_cv_env_target_alias_set=${target_alias+set}
901
ac_cv_env_target_alias_value=$target_alias
902
ac_env_CC_set=${CC+set}
903
ac_env_CC_value=$CC
904
ac_cv_env_CC_set=${CC+set}
905
ac_cv_env_CC_value=$CC
906
ac_env_CFLAGS_set=${CFLAGS+set}
907
ac_env_CFLAGS_value=$CFLAGS
908
ac_cv_env_CFLAGS_set=${CFLAGS+set}
909
ac_cv_env_CFLAGS_value=$CFLAGS
910
ac_env_LDFLAGS_set=${LDFLAGS+set}
911
ac_env_LDFLAGS_value=$LDFLAGS
912
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913
ac_cv_env_LDFLAGS_value=$LDFLAGS
914
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915
ac_env_CPPFLAGS_value=$CPPFLAGS
916
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918
ac_env_CPP_set=${CPP+set}
919
ac_env_CPP_value=$CPP
920
ac_cv_env_CPP_set=${CPP+set}
921
ac_cv_env_CPP_value=$CPP
922
 
923
#
924
# Report the --help message.
925
#
926
if test "$ac_init_help" = "long"; then
927
  # Omit some internal or obsolete options to make the list less imposing.
928
  # This message is too long to be a string in the A/UX 3.1 sh.
929
  cat <<_ACEOF
930
\`configure' configures this package to adapt to many kinds of systems.
931
 
932
Usage: $0 [OPTION]... [VAR=VALUE]...
933
 
934
To assign environment variables (e.g., CC, CFLAGS...), specify them as
935
VAR=VALUE.  See below for descriptions of some of the useful variables.
936
 
937
Defaults for the options are specified in brackets.
938
 
939
Configuration:
940
  -h, --help              display this help and exit
941
      --help=short        display options specific to this package
942
      --help=recursive    display the short help of all the included packages
943
  -V, --version           display version information and exit
944
  -q, --quiet, --silent   do not print \`checking...' messages
945
      --cache-file=FILE   cache test results in FILE [disabled]
946
  -C, --config-cache      alias for \`--cache-file=config.cache'
947
  -n, --no-create         do not create output files
948
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
 
950
_ACEOF
951
 
952
  cat <<_ACEOF
953
Installation directories:
954
  --prefix=PREFIX         install architecture-independent files in PREFIX
955
                          [$ac_default_prefix]
956
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957
                          [PREFIX]
958
 
959
By default, \`make install' will install all the files in
960
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962
for instance \`--prefix=\$HOME'.
963
 
964
For better control, use the options below.
965
 
966
Fine tuning of the installation directories:
967
  --bindir=DIR           user executables [EPREFIX/bin]
968
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969
  --libexecdir=DIR       program executables [EPREFIX/libexec]
970
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974
  --libdir=DIR           object code libraries [EPREFIX/lib]
975
  --includedir=DIR       C header files [PREFIX/include]
976
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977
  --infodir=DIR          info documentation [PREFIX/info]
978
  --mandir=DIR           man documentation [PREFIX/man]
979
_ACEOF
980
 
981
  cat <<\_ACEOF
982
 
983
Program names:
984
  --program-prefix=PREFIX            prepend PREFIX to installed program names
985
  --program-suffix=SUFFIX            append SUFFIX to installed program names
986
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
 
988
System types:
989
  --build=BUILD     configure for building on BUILD [guessed]
990
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991
  --target=TARGET   configure for building compilers for TARGET [HOST]
992
_ACEOF
993
fi
994
 
995
if test -n "$ac_init_help"; then
996
 
997
  cat <<\_ACEOF
998
 
999
Optional Features:
1000
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002
  --disable-dependency-tracking  speeds up one-time build
1003
  --enable-dependency-tracking   do not reject slow dependency extractors
1004
  --enable-shared[=PKGS]
1005
                          build shared libraries [default=yes]
1006
  --enable-static[=PKGS]
1007
                          build static libraries [default=yes]
1008
  --enable-fast-install[=PKGS]
1009
                          optimize for fast installation [default=yes]
1010
  --disable-libtool-lock  avoid locking (might break parallel builds)
1011
  --enable-targets        alternative target configurations
1012
  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1013
  --enable-werror         treat compile warnings as errors
1014
  --enable-build-warnings enable build-time compiler warnings
1015
  --disable-nls           do not use Native Language Support
1016
  --enable-maintainer-mode  enable make rules and dependencies not useful
1017
                          (and sometimes confusing) to the casual installer
1018
  --disable-rpath         do not hardcode runtime library paths
1019
 
1020
Optional Packages:
1021
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1022
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1023
  --with-pic              try to use only PIC/non-PIC objects [default=use
1024
                          both]
1025
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1026
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1027
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1028
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1029
 
1030
Some influential environment variables:
1031
  CC          C compiler command
1032
  CFLAGS      C compiler flags
1033
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1034
              nonstandard directory 
1035
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1036
              headers in a nonstandard directory 
1037
  CPP         C preprocessor
1038
 
1039
Use these variables to override the choices made by `configure' or to help
1040
it to find libraries and programs with nonstandard names/locations.
1041
 
1042
_ACEOF
1043
fi
1044
 
1045
if test "$ac_init_help" = "recursive"; then
1046
  # If there are subdirs, report their specific --help.
1047
  ac_popdir=`pwd`
1048
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1049
    test -d $ac_dir || continue
1050
    ac_builddir=.
1051
 
1052
if test "$ac_dir" != .; then
1053
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1054
  # A "../" for each directory in $ac_dir_suffix.
1055
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1056
else
1057
  ac_dir_suffix= ac_top_builddir=
1058
fi
1059
 
1060
case $srcdir in
1061
  .)  # No --srcdir option.  We are building in place.
1062
    ac_srcdir=.
1063
    if test -z "$ac_top_builddir"; then
1064
       ac_top_srcdir=.
1065
    else
1066
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1067
    fi ;;
1068
  [\\/]* | ?:[\\/]* )  # Absolute path.
1069
    ac_srcdir=$srcdir$ac_dir_suffix;
1070
    ac_top_srcdir=$srcdir ;;
1071
  *) # Relative path.
1072
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1073
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1074
esac
1075
 
1076
# Do not use `cd foo && pwd` to compute absolute paths, because
1077
# the directories may not exist.
1078
case `pwd` in
1079
.) ac_abs_builddir="$ac_dir";;
1080
*)
1081
  case "$ac_dir" in
1082
  .) ac_abs_builddir=`pwd`;;
1083
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1084
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1085
  esac;;
1086
esac
1087
case $ac_abs_builddir in
1088
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1089
*)
1090
  case ${ac_top_builddir}. in
1091
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1092
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1093
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1094
  esac;;
1095
esac
1096
case $ac_abs_builddir in
1097
.) ac_abs_srcdir=$ac_srcdir;;
1098
*)
1099
  case $ac_srcdir in
1100
  .) ac_abs_srcdir=$ac_abs_builddir;;
1101
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1102
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1103
  esac;;
1104
esac
1105
case $ac_abs_builddir in
1106
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1107
*)
1108
  case $ac_top_srcdir in
1109
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1110
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1111
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1112
  esac;;
1113
esac
1114
 
1115
    cd $ac_dir
1116
    # Check for guested configure; otherwise get Cygnus style configure.
1117
    if test -f $ac_srcdir/configure.gnu; then
1118
      echo
1119
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1120
    elif test -f $ac_srcdir/configure; then
1121
      echo
1122
      $SHELL $ac_srcdir/configure  --help=recursive
1123
    elif test -f $ac_srcdir/configure.ac ||
1124
           test -f $ac_srcdir/configure.in; then
1125
      echo
1126
      $ac_configure --help
1127
    else
1128
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129
    fi
1130
    cd $ac_popdir
1131
  done
1132
fi
1133
 
1134
test -n "$ac_init_help" && exit 0
1135
if $ac_init_version; then
1136
  cat <<\_ACEOF
1137
 
1138
Copyright (C) 2003 Free Software Foundation, Inc.
1139
This configure script is free software; the Free Software Foundation
1140
gives unlimited permission to copy, distribute and modify it.
1141
_ACEOF
1142
  exit 0
1143
fi
1144
exec 5>config.log
1145
cat >&5 <<_ACEOF
1146
This file contains any messages produced by compilers while
1147
running configure, to aid debugging if configure makes a mistake.
1148
 
1149
It was created by $as_me, which was
1150
generated by GNU Autoconf 2.59.  Invocation command line was
1151
 
1152
  $ $0 $@
1153
 
1154
_ACEOF
1155
{
1156
cat <<_ASUNAME
1157
## --------- ##
1158
## Platform. ##
1159
## --------- ##
1160
 
1161
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
 
1167
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
 
1170
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
 
1178
_ASUNAME
1179
 
1180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181
for as_dir in $PATH
1182
do
1183
  IFS=$as_save_IFS
1184
  test -z "$as_dir" && as_dir=.
1185
  echo "PATH: $as_dir"
1186
done
1187
 
1188
} >&5
1189
 
1190
cat >&5 <<_ACEOF
1191
 
1192
 
1193
## ----------- ##
1194
## Core tests. ##
1195
## ----------- ##
1196
 
1197
_ACEOF
1198
 
1199
 
1200
# Keep a trace of the command line.
1201
# Strip out --no-create and --no-recursion so they do not pile up.
1202
# Strip out --silent because we don't want to record it for future runs.
1203
# Also quote any args containing shell meta-characters.
1204
# Make two passes to allow for proper duplicate-argument suppression.
1205
ac_configure_args=
1206
ac_configure_args0=
1207
ac_configure_args1=
1208
ac_sep=
1209
ac_must_keep_next=false
1210
for ac_pass in 1 2
1211
do
1212
  for ac_arg
1213
  do
1214
    case $ac_arg in
1215
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217
    | -silent | --silent | --silen | --sile | --sil)
1218
      continue ;;
1219
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221
    esac
1222
    case $ac_pass in
1223
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224
    2)
1225
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226
      if test $ac_must_keep_next = true; then
1227
        ac_must_keep_next=false # Got value, back to normal.
1228
      else
1229
        case $ac_arg in
1230
          *=* | --config-cache | -C | -disable-* | --disable-* \
1231
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233
          | -with-* | --with-* | -without-* | --without-* | --x)
1234
            case "$ac_configure_args0 " in
1235
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236
            esac
1237
            ;;
1238
          -* ) ac_must_keep_next=true ;;
1239
        esac
1240
      fi
1241
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242
      # Get rid of the leading space.
1243
      ac_sep=" "
1244
      ;;
1245
    esac
1246
  done
1247
done
1248
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
 
1251
# When interrupted or exit'd, cleanup temporary files, and complete
1252
# config.log.  We remove comments because anyway the quotes in there
1253
# would cause problems or look ugly.
1254
# WARNING: Be sure not to use single quotes in there, as some shells,
1255
# such as our DU 5.0 friend, will then `close' the trap.
1256
trap 'exit_status=$?
1257
  # Save into config.log some information that might help in debugging.
1258
  {
1259
    echo
1260
 
1261
    cat <<\_ASBOX
1262
## ---------------- ##
1263
## Cache variables. ##
1264
## ---------------- ##
1265
_ASBOX
1266
    echo
1267
    # The following way of writing the cache mishandles newlines in values,
1268
{
1269
  (set) 2>&1 |
1270
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271
    *ac_space=\ *)
1272
      sed -n \
1273
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275
      ;;
1276
    *)
1277
      sed -n \
1278
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279
      ;;
1280
    esac;
1281
}
1282
    echo
1283
 
1284
    cat <<\_ASBOX
1285
## ----------------- ##
1286
## Output variables. ##
1287
## ----------------- ##
1288
_ASBOX
1289
    echo
1290
    for ac_var in $ac_subst_vars
1291
    do
1292
      eval ac_val=$`echo $ac_var`
1293
      echo "$ac_var='"'"'$ac_val'"'"'"
1294
    done | sort
1295
    echo
1296
 
1297
    if test -n "$ac_subst_files"; then
1298
      cat <<\_ASBOX
1299
## ------------- ##
1300
## Output files. ##
1301
## ------------- ##
1302
_ASBOX
1303
      echo
1304
      for ac_var in $ac_subst_files
1305
      do
1306
        eval ac_val=$`echo $ac_var`
1307
        echo "$ac_var='"'"'$ac_val'"'"'"
1308
      done | sort
1309
      echo
1310
    fi
1311
 
1312
    if test -s confdefs.h; then
1313
      cat <<\_ASBOX
1314
## ----------- ##
1315
## confdefs.h. ##
1316
## ----------- ##
1317
_ASBOX
1318
      echo
1319
      sed "/^$/d" confdefs.h | sort
1320
      echo
1321
    fi
1322
    test "$ac_signal" != 0 &&
1323
      echo "$as_me: caught signal $ac_signal"
1324
    echo "$as_me: exit $exit_status"
1325
  } >&5
1326
  rm -f core *.core &&
1327
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328
    exit $exit_status
1329
     ' 0
1330
for ac_signal in 1 2 13 15; do
1331
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332
done
1333
ac_signal=0
1334
 
1335
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336
rm -rf conftest* confdefs.h
1337
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338
echo >confdefs.h
1339
 
1340
# Predefined preprocessor variables.
1341
 
1342
cat >>confdefs.h <<_ACEOF
1343
#define PACKAGE_NAME "$PACKAGE_NAME"
1344
_ACEOF
1345
 
1346
 
1347
cat >>confdefs.h <<_ACEOF
1348
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349
_ACEOF
1350
 
1351
 
1352
cat >>confdefs.h <<_ACEOF
1353
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354
_ACEOF
1355
 
1356
 
1357
cat >>confdefs.h <<_ACEOF
1358
#define PACKAGE_STRING "$PACKAGE_STRING"
1359
_ACEOF
1360
 
1361
 
1362
cat >>confdefs.h <<_ACEOF
1363
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364
_ACEOF
1365
 
1366
 
1367
# Let the site file select an alternate cache file if it wants to.
1368
# Prefer explicitly selected file to automatically selected ones.
1369
if test -z "$CONFIG_SITE"; then
1370
  if test "x$prefix" != xNONE; then
1371
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372
  else
1373
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374
  fi
1375
fi
1376
for ac_site_file in $CONFIG_SITE; do
1377
  if test -r "$ac_site_file"; then
1378
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379
echo "$as_me: loading site script $ac_site_file" >&6;}
1380
    sed 's/^/| /' "$ac_site_file" >&5
1381
    . "$ac_site_file"
1382
  fi
1383
done
1384
 
1385
if test -r "$cache_file"; then
1386
  # Some versions of bash will fail to source /dev/null (special
1387
  # files actually), so we avoid doing that.
1388
  if test -f "$cache_file"; then
1389
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390
echo "$as_me: loading cache $cache_file" >&6;}
1391
    case $cache_file in
1392
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1393
      *)                      . ./$cache_file;;
1394
    esac
1395
  fi
1396
else
1397
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398
echo "$as_me: creating cache $cache_file" >&6;}
1399
  >$cache_file
1400
fi
1401
 
1402
# Check that the precious variables saved in the cache have kept the same
1403
# value.
1404
ac_cache_corrupted=false
1405
for ac_var in `(set) 2>&1 |
1406
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408
  eval ac_new_set=\$ac_env_${ac_var}_set
1409
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410
  eval ac_new_val="\$ac_env_${ac_var}_value"
1411
  case $ac_old_set,$ac_new_set in
1412
    set,)
1413
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415
      ac_cache_corrupted=: ;;
1416
    ,set)
1417
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419
      ac_cache_corrupted=: ;;
1420
    ,);;
1421
    *)
1422
      if test "x$ac_old_val" != "x$ac_new_val"; then
1423
        # differences in whitespace do not lead to failure.
1424
        ac_old_val_w=`echo x $ac_old_val`
1425
        ac_new_val_w=`echo x $ac_new_val`
1426
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1427
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1428
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1429
          ac_cache_corrupted=:
1430
        else
1431
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1432
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1433
          eval $ac_var=\$ac_old_val
1434
        fi
1435
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1436
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1437
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1438
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1439
      fi;;
1440
  esac
1441
  # Pass precious variables to config.status.
1442
  if test "$ac_new_set" = set; then
1443
    case $ac_new_val in
1444
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446
    *) ac_arg=$ac_var=$ac_new_val ;;
1447
    esac
1448
    case " $ac_configure_args " in
1449
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1450
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451
    esac
1452
  fi
1453
done
1454
if $ac_cache_corrupted; then
1455
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459
   { (exit 1); exit 1; }; }
1460
fi
1461
 
1462
ac_ext=c
1463
ac_cpp='$CPP $CPPFLAGS'
1464
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
ac_aux_dir=
1488
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489
  if test -f $ac_dir/install-sh; then
1490
    ac_aux_dir=$ac_dir
1491
    ac_install_sh="$ac_aux_dir/install-sh -c"
1492
    break
1493
  elif test -f $ac_dir/install.sh; then
1494
    ac_aux_dir=$ac_dir
1495
    ac_install_sh="$ac_aux_dir/install.sh -c"
1496
    break
1497
  elif test -f $ac_dir/shtool; then
1498
    ac_aux_dir=$ac_dir
1499
    ac_install_sh="$ac_aux_dir/shtool install -c"
1500
    break
1501
  fi
1502
done
1503
if test -z "$ac_aux_dir"; then
1504
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506
   { (exit 1); exit 1; }; }
1507
fi
1508
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
 
1512
# Make sure we can run config.sub.
1513
$ac_config_sub sun4 >/dev/null 2>&1 ||
1514
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516
   { (exit 1); exit 1; }; }
1517
 
1518
echo "$as_me:$LINENO: checking build system type" >&5
1519
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520
if test "${ac_cv_build+set}" = set; then
1521
  echo $ECHO_N "(cached) $ECHO_C" >&6
1522
else
1523
  ac_cv_build_alias=$build_alias
1524
test -z "$ac_cv_build_alias" &&
1525
  ac_cv_build_alias=`$ac_config_guess`
1526
test -z "$ac_cv_build_alias" &&
1527
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529
   { (exit 1); exit 1; }; }
1530
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533
   { (exit 1); exit 1; }; }
1534
 
1535
fi
1536
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537
echo "${ECHO_T}$ac_cv_build" >&6
1538
build=$ac_cv_build
1539
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
 
1543
 
1544
echo "$as_me:$LINENO: checking host system type" >&5
1545
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546
if test "${ac_cv_host+set}" = set; then
1547
  echo $ECHO_N "(cached) $ECHO_C" >&6
1548
else
1549
  ac_cv_host_alias=$host_alias
1550
test -z "$ac_cv_host_alias" &&
1551
  ac_cv_host_alias=$ac_cv_build_alias
1552
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555
   { (exit 1); exit 1; }; }
1556
 
1557
fi
1558
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559
echo "${ECHO_T}$ac_cv_host" >&6
1560
host=$ac_cv_host
1561
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
 
1565
 
1566
echo "$as_me:$LINENO: checking target system type" >&5
1567
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568
if test "${ac_cv_target+set}" = set; then
1569
  echo $ECHO_N "(cached) $ECHO_C" >&6
1570
else
1571
  ac_cv_target_alias=$target_alias
1572
test "x$ac_cv_target_alias" = "x" &&
1573
  ac_cv_target_alias=$ac_cv_host_alias
1574
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577
   { (exit 1); exit 1; }; }
1578
 
1579
fi
1580
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581
echo "${ECHO_T}$ac_cv_target" >&6
1582
target=$ac_cv_target
1583
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
 
1587
 
1588
# The aliases save the names the user supplied, while $host etc.
1589
# will get canonicalized.
1590
test -n "$target_alias" &&
1591
  test "$program_prefix$program_suffix$program_transform_name" = \
1592
    NONENONEs,x,x, &&
1593
  program_prefix=${target_alias}-
1594
ac_ext=c
1595
ac_cpp='$CPP $CPPFLAGS'
1596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1599
if test -n "$ac_tool_prefix"; then
1600
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1601
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1602
echo "$as_me:$LINENO: checking for $ac_word" >&5
1603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604
if test "${ac_cv_prog_CC+set}" = set; then
1605
  echo $ECHO_N "(cached) $ECHO_C" >&6
1606
else
1607
  if test -n "$CC"; then
1608
  ac_cv_prog_CC="$CC" # Let the user override the test.
1609
else
1610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611
for as_dir in $PATH
1612
do
1613
  IFS=$as_save_IFS
1614
  test -z "$as_dir" && as_dir=.
1615
  for ac_exec_ext in '' $ac_executable_extensions; do
1616
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1618
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619
    break 2
1620
  fi
1621
done
1622
done
1623
 
1624
fi
1625
fi
1626
CC=$ac_cv_prog_CC
1627
if test -n "$CC"; then
1628
  echo "$as_me:$LINENO: result: $CC" >&5
1629
echo "${ECHO_T}$CC" >&6
1630
else
1631
  echo "$as_me:$LINENO: result: no" >&5
1632
echo "${ECHO_T}no" >&6
1633
fi
1634
 
1635
fi
1636
if test -z "$ac_cv_prog_CC"; then
1637
  ac_ct_CC=$CC
1638
  # Extract the first word of "gcc", so it can be a program name with args.
1639
set dummy gcc; ac_word=$2
1640
echo "$as_me:$LINENO: checking for $ac_word" >&5
1641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1643
  echo $ECHO_N "(cached) $ECHO_C" >&6
1644
else
1645
  if test -n "$ac_ct_CC"; then
1646
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1647
else
1648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649
for as_dir in $PATH
1650
do
1651
  IFS=$as_save_IFS
1652
  test -z "$as_dir" && as_dir=.
1653
  for ac_exec_ext in '' $ac_executable_extensions; do
1654
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655
    ac_cv_prog_ac_ct_CC="gcc"
1656
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657
    break 2
1658
  fi
1659
done
1660
done
1661
 
1662
fi
1663
fi
1664
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665
if test -n "$ac_ct_CC"; then
1666
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1667
echo "${ECHO_T}$ac_ct_CC" >&6
1668
else
1669
  echo "$as_me:$LINENO: result: no" >&5
1670
echo "${ECHO_T}no" >&6
1671
fi
1672
 
1673
  CC=$ac_ct_CC
1674
else
1675
  CC="$ac_cv_prog_CC"
1676
fi
1677
 
1678
if test -z "$CC"; then
1679
  if test -n "$ac_tool_prefix"; then
1680
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1681
set dummy ${ac_tool_prefix}cc; ac_word=$2
1682
echo "$as_me:$LINENO: checking for $ac_word" >&5
1683
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684
if test "${ac_cv_prog_CC+set}" = set; then
1685
  echo $ECHO_N "(cached) $ECHO_C" >&6
1686
else
1687
  if test -n "$CC"; then
1688
  ac_cv_prog_CC="$CC" # Let the user override the test.
1689
else
1690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691
for as_dir in $PATH
1692
do
1693
  IFS=$as_save_IFS
1694
  test -z "$as_dir" && as_dir=.
1695
  for ac_exec_ext in '' $ac_executable_extensions; do
1696
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1698
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699
    break 2
1700
  fi
1701
done
1702
done
1703
 
1704
fi
1705
fi
1706
CC=$ac_cv_prog_CC
1707
if test -n "$CC"; then
1708
  echo "$as_me:$LINENO: result: $CC" >&5
1709
echo "${ECHO_T}$CC" >&6
1710
else
1711
  echo "$as_me:$LINENO: result: no" >&5
1712
echo "${ECHO_T}no" >&6
1713
fi
1714
 
1715
fi
1716
if test -z "$ac_cv_prog_CC"; then
1717
  ac_ct_CC=$CC
1718
  # Extract the first word of "cc", so it can be a program name with args.
1719
set dummy cc; ac_word=$2
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1723
  echo $ECHO_N "(cached) $ECHO_C" >&6
1724
else
1725
  if test -n "$ac_ct_CC"; then
1726
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1727
else
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729
for as_dir in $PATH
1730
do
1731
  IFS=$as_save_IFS
1732
  test -z "$as_dir" && as_dir=.
1733
  for ac_exec_ext in '' $ac_executable_extensions; do
1734
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735
    ac_cv_prog_ac_ct_CC="cc"
1736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737
    break 2
1738
  fi
1739
done
1740
done
1741
 
1742
fi
1743
fi
1744
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1745
if test -n "$ac_ct_CC"; then
1746
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1747
echo "${ECHO_T}$ac_ct_CC" >&6
1748
else
1749
  echo "$as_me:$LINENO: result: no" >&5
1750
echo "${ECHO_T}no" >&6
1751
fi
1752
 
1753
  CC=$ac_ct_CC
1754
else
1755
  CC="$ac_cv_prog_CC"
1756
fi
1757
 
1758
fi
1759
if test -z "$CC"; then
1760
  # Extract the first word of "cc", so it can be a program name with args.
1761
set dummy cc; ac_word=$2
1762
echo "$as_me:$LINENO: checking for $ac_word" >&5
1763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764
if test "${ac_cv_prog_CC+set}" = set; then
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
1766
else
1767
  if test -n "$CC"; then
1768
  ac_cv_prog_CC="$CC" # Let the user override the test.
1769
else
1770
  ac_prog_rejected=no
1771
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772
for as_dir in $PATH
1773
do
1774
  IFS=$as_save_IFS
1775
  test -z "$as_dir" && as_dir=.
1776
  for ac_exec_ext in '' $ac_executable_extensions; do
1777
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1779
       ac_prog_rejected=yes
1780
       continue
1781
     fi
1782
    ac_cv_prog_CC="cc"
1783
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784
    break 2
1785
  fi
1786
done
1787
done
1788
 
1789
if test $ac_prog_rejected = yes; then
1790
  # We found a bogon in the path, so make sure we never use it.
1791
  set dummy $ac_cv_prog_CC
1792
  shift
1793
  if test $# != 0; then
1794
    # We chose a different compiler from the bogus one.
1795
    # However, it has the same basename, so the bogon will be chosen
1796
    # first if we set CC to just the basename; use the full file name.
1797
    shift
1798
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1799
  fi
1800
fi
1801
fi
1802
fi
1803
CC=$ac_cv_prog_CC
1804
if test -n "$CC"; then
1805
  echo "$as_me:$LINENO: result: $CC" >&5
1806
echo "${ECHO_T}$CC" >&6
1807
else
1808
  echo "$as_me:$LINENO: result: no" >&5
1809
echo "${ECHO_T}no" >&6
1810
fi
1811
 
1812
fi
1813
if test -z "$CC"; then
1814
  if test -n "$ac_tool_prefix"; then
1815
  for ac_prog in cl
1816
  do
1817
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1818
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1819
echo "$as_me:$LINENO: checking for $ac_word" >&5
1820
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821
if test "${ac_cv_prog_CC+set}" = set; then
1822
  echo $ECHO_N "(cached) $ECHO_C" >&6
1823
else
1824
  if test -n "$CC"; then
1825
  ac_cv_prog_CC="$CC" # Let the user override the test.
1826
else
1827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828
for as_dir in $PATH
1829
do
1830
  IFS=$as_save_IFS
1831
  test -z "$as_dir" && as_dir=.
1832
  for ac_exec_ext in '' $ac_executable_extensions; do
1833
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1835
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836
    break 2
1837
  fi
1838
done
1839
done
1840
 
1841
fi
1842
fi
1843
CC=$ac_cv_prog_CC
1844
if test -n "$CC"; then
1845
  echo "$as_me:$LINENO: result: $CC" >&5
1846
echo "${ECHO_T}$CC" >&6
1847
else
1848
  echo "$as_me:$LINENO: result: no" >&5
1849
echo "${ECHO_T}no" >&6
1850
fi
1851
 
1852
    test -n "$CC" && break
1853
  done
1854
fi
1855
if test -z "$CC"; then
1856
  ac_ct_CC=$CC
1857
  for ac_prog in cl
1858
do
1859
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1860
set dummy $ac_prog; ac_word=$2
1861
echo "$as_me:$LINENO: checking for $ac_word" >&5
1862
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864
  echo $ECHO_N "(cached) $ECHO_C" >&6
1865
else
1866
  if test -n "$ac_ct_CC"; then
1867
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868
else
1869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870
for as_dir in $PATH
1871
do
1872
  IFS=$as_save_IFS
1873
  test -z "$as_dir" && as_dir=.
1874
  for ac_exec_ext in '' $ac_executable_extensions; do
1875
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876
    ac_cv_prog_ac_ct_CC="$ac_prog"
1877
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878
    break 2
1879
  fi
1880
done
1881
done
1882
 
1883
fi
1884
fi
1885
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886
if test -n "$ac_ct_CC"; then
1887
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888
echo "${ECHO_T}$ac_ct_CC" >&6
1889
else
1890
  echo "$as_me:$LINENO: result: no" >&5
1891
echo "${ECHO_T}no" >&6
1892
fi
1893
 
1894
  test -n "$ac_ct_CC" && break
1895
done
1896
 
1897
  CC=$ac_ct_CC
1898
fi
1899
 
1900
fi
1901
 
1902
 
1903
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1904
See \`config.log' for more details." >&5
1905
echo "$as_me: error: no acceptable C compiler found in \$PATH
1906
See \`config.log' for more details." >&2;}
1907
   { (exit 1); exit 1; }; }
1908
 
1909
# Provide some information about the compiler.
1910
echo "$as_me:$LINENO:" \
1911
     "checking for C compiler version" >&5
1912
ac_compiler=`set X $ac_compile; echo $2`
1913
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1914
  (eval $ac_compiler --version &5) 2>&5
1915
  ac_status=$?
1916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917
  (exit $ac_status); }
1918
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1919
  (eval $ac_compiler -v &5) 2>&5
1920
  ac_status=$?
1921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922
  (exit $ac_status); }
1923
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1924
  (eval $ac_compiler -V &5) 2>&5
1925
  ac_status=$?
1926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927
  (exit $ac_status); }
1928
 
1929
cat >conftest.$ac_ext <<_ACEOF
1930
/* confdefs.h.  */
1931
_ACEOF
1932
cat confdefs.h >>conftest.$ac_ext
1933
cat >>conftest.$ac_ext <<_ACEOF
1934
/* end confdefs.h.  */
1935
 
1936
int
1937
main ()
1938
{
1939
 
1940
  ;
1941
  return 0;
1942
}
1943
_ACEOF
1944
ac_clean_files_save=$ac_clean_files
1945
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1946
# Try to create an executable without -o first, disregard a.out.
1947
# It will help us diagnose broken compilers, and finding out an intuition
1948
# of exeext.
1949
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1950
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1951
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1952
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1953
  (eval $ac_link_default) 2>&5
1954
  ac_status=$?
1955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956
  (exit $ac_status); }; then
1957
  # Find the output, starting from the most likely.  This scheme is
1958
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1959
# resort.
1960
 
1961
# Be careful to initialize this variable, since it used to be cached.
1962
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1963
ac_cv_exeext=
1964
# b.out is created by i960 compilers.
1965
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1966
do
1967
  test -f "$ac_file" || continue
1968
  case $ac_file in
1969
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1970
        ;;
1971
    conftest.$ac_ext )
1972
        # This is the source file.
1973
        ;;
1974
    [ab].out )
1975
        # We found the default executable, but exeext='' is most
1976
        # certainly right.
1977
        break;;
1978
    *.* )
1979
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1980
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1981
        # but it would be cool to find out if it's true.  Does anybody
1982
        # maintain Libtool? --akim.
1983
        export ac_cv_exeext
1984
        break;;
1985
    * )
1986
        break;;
1987
  esac
1988
done
1989
else
1990
  echo "$as_me: failed program was:" >&5
1991
sed 's/^/| /' conftest.$ac_ext >&5
1992
 
1993
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1994
See \`config.log' for more details." >&5
1995
echo "$as_me: error: C compiler cannot create executables
1996
See \`config.log' for more details." >&2;}
1997
   { (exit 77); exit 77; }; }
1998
fi
1999
 
2000
ac_exeext=$ac_cv_exeext
2001
echo "$as_me:$LINENO: result: $ac_file" >&5
2002
echo "${ECHO_T}$ac_file" >&6
2003
 
2004
# Check the compiler produces executables we can run.  If not, either
2005
# the compiler is broken, or we cross compile.
2006
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2007
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2008
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2009
# If not cross compiling, check that we can run a simple program.
2010
if test "$cross_compiling" != yes; then
2011
  if { ac_try='./$ac_file'
2012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013
  (eval $ac_try) 2>&5
2014
  ac_status=$?
2015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016
  (exit $ac_status); }; }; then
2017
    cross_compiling=no
2018
  else
2019
    if test "$cross_compiling" = maybe; then
2020
        cross_compiling=yes
2021
    else
2022
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2023
If you meant to cross compile, use \`--host'.
2024
See \`config.log' for more details." >&5
2025
echo "$as_me: error: cannot run C compiled programs.
2026
If you meant to cross compile, use \`--host'.
2027
See \`config.log' for more details." >&2;}
2028
   { (exit 1); exit 1; }; }
2029
    fi
2030
  fi
2031
fi
2032
echo "$as_me:$LINENO: result: yes" >&5
2033
echo "${ECHO_T}yes" >&6
2034
 
2035
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2036
ac_clean_files=$ac_clean_files_save
2037
# Check the compiler produces executables we can run.  If not, either
2038
# the compiler is broken, or we cross compile.
2039
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2040
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2041
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2042
echo "${ECHO_T}$cross_compiling" >&6
2043
 
2044
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2045
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2047
  (eval $ac_link) 2>&5
2048
  ac_status=$?
2049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050
  (exit $ac_status); }; then
2051
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2052
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2053
# work properly (i.e., refer to `conftest.exe'), while it won't with
2054
# `rm'.
2055
for ac_file in conftest.exe conftest conftest.*; do
2056
  test -f "$ac_file" || continue
2057
  case $ac_file in
2058
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2059
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2060
          export ac_cv_exeext
2061
          break;;
2062
    * ) break;;
2063
  esac
2064
done
2065
else
2066
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2067
See \`config.log' for more details." >&5
2068
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2069
See \`config.log' for more details." >&2;}
2070
   { (exit 1); exit 1; }; }
2071
fi
2072
 
2073
rm -f conftest$ac_cv_exeext
2074
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2075
echo "${ECHO_T}$ac_cv_exeext" >&6
2076
 
2077
rm -f conftest.$ac_ext
2078
EXEEXT=$ac_cv_exeext
2079
ac_exeext=$EXEEXT
2080
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2081
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2082
if test "${ac_cv_objext+set}" = set; then
2083
  echo $ECHO_N "(cached) $ECHO_C" >&6
2084
else
2085
  cat >conftest.$ac_ext <<_ACEOF
2086
/* confdefs.h.  */
2087
_ACEOF
2088
cat confdefs.h >>conftest.$ac_ext
2089
cat >>conftest.$ac_ext <<_ACEOF
2090
/* end confdefs.h.  */
2091
 
2092
int
2093
main ()
2094
{
2095
 
2096
  ;
2097
  return 0;
2098
}
2099
_ACEOF
2100
rm -f conftest.o conftest.obj
2101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102
  (eval $ac_compile) 2>&5
2103
  ac_status=$?
2104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
  (exit $ac_status); }; then
2106
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2107
  case $ac_file in
2108
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2109
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2110
       break;;
2111
  esac
2112
done
2113
else
2114
  echo "$as_me: failed program was:" >&5
2115
sed 's/^/| /' conftest.$ac_ext >&5
2116
 
2117
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2118
See \`config.log' for more details." >&5
2119
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2120
See \`config.log' for more details." >&2;}
2121
   { (exit 1); exit 1; }; }
2122
fi
2123
 
2124
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2125
fi
2126
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2127
echo "${ECHO_T}$ac_cv_objext" >&6
2128
OBJEXT=$ac_cv_objext
2129
ac_objext=$OBJEXT
2130
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2131
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2132
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2133
  echo $ECHO_N "(cached) $ECHO_C" >&6
2134
else
2135
  cat >conftest.$ac_ext <<_ACEOF
2136
/* confdefs.h.  */
2137
_ACEOF
2138
cat confdefs.h >>conftest.$ac_ext
2139
cat >>conftest.$ac_ext <<_ACEOF
2140
/* end confdefs.h.  */
2141
 
2142
int
2143
main ()
2144
{
2145
#ifndef __GNUC__
2146
       choke me
2147
#endif
2148
 
2149
  ;
2150
  return 0;
2151
}
2152
_ACEOF
2153
rm -f conftest.$ac_objext
2154
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155
  (eval $ac_compile) 2>conftest.er1
2156
  ac_status=$?
2157
  grep -v '^ *+' conftest.er1 >conftest.err
2158
  rm -f conftest.er1
2159
  cat conftest.err >&5
2160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161
  (exit $ac_status); } &&
2162
         { ac_try='test -z "$ac_c_werror_flag"
2163
                         || test ! -s conftest.err'
2164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165
  (eval $ac_try) 2>&5
2166
  ac_status=$?
2167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168
  (exit $ac_status); }; } &&
2169
         { ac_try='test -s conftest.$ac_objext'
2170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171
  (eval $ac_try) 2>&5
2172
  ac_status=$?
2173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
  (exit $ac_status); }; }; then
2175
  ac_compiler_gnu=yes
2176
else
2177
  echo "$as_me: failed program was:" >&5
2178
sed 's/^/| /' conftest.$ac_ext >&5
2179
 
2180
ac_compiler_gnu=no
2181
fi
2182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2184
 
2185
fi
2186
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2187
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2188
GCC=`test $ac_compiler_gnu = yes && echo yes`
2189
ac_test_CFLAGS=${CFLAGS+set}
2190
ac_save_CFLAGS=$CFLAGS
2191
CFLAGS="-g"
2192
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2193
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2194
if test "${ac_cv_prog_cc_g+set}" = set; then
2195
  echo $ECHO_N "(cached) $ECHO_C" >&6
2196
else
2197
  cat >conftest.$ac_ext <<_ACEOF
2198
/* confdefs.h.  */
2199
_ACEOF
2200
cat confdefs.h >>conftest.$ac_ext
2201
cat >>conftest.$ac_ext <<_ACEOF
2202
/* end confdefs.h.  */
2203
 
2204
int
2205
main ()
2206
{
2207
 
2208
  ;
2209
  return 0;
2210
}
2211
_ACEOF
2212
rm -f conftest.$ac_objext
2213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214
  (eval $ac_compile) 2>conftest.er1
2215
  ac_status=$?
2216
  grep -v '^ *+' conftest.er1 >conftest.err
2217
  rm -f conftest.er1
2218
  cat conftest.err >&5
2219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220
  (exit $ac_status); } &&
2221
         { ac_try='test -z "$ac_c_werror_flag"
2222
                         || test ! -s conftest.err'
2223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224
  (eval $ac_try) 2>&5
2225
  ac_status=$?
2226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
  (exit $ac_status); }; } &&
2228
         { ac_try='test -s conftest.$ac_objext'
2229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230
  (eval $ac_try) 2>&5
2231
  ac_status=$?
2232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233
  (exit $ac_status); }; }; then
2234
  ac_cv_prog_cc_g=yes
2235
else
2236
  echo "$as_me: failed program was:" >&5
2237
sed 's/^/| /' conftest.$ac_ext >&5
2238
 
2239
ac_cv_prog_cc_g=no
2240
fi
2241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242
fi
2243
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2244
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2245
if test "$ac_test_CFLAGS" = set; then
2246
  CFLAGS=$ac_save_CFLAGS
2247
elif test $ac_cv_prog_cc_g = yes; then
2248
  if test "$GCC" = yes; then
2249
    CFLAGS="-g -O2"
2250
  else
2251
    CFLAGS="-g"
2252
  fi
2253
else
2254
  if test "$GCC" = yes; then
2255
    CFLAGS="-O2"
2256
  else
2257
    CFLAGS=
2258
  fi
2259
fi
2260
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2261
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2262
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2263
  echo $ECHO_N "(cached) $ECHO_C" >&6
2264
else
2265
  ac_cv_prog_cc_stdc=no
2266
ac_save_CC=$CC
2267
cat >conftest.$ac_ext <<_ACEOF
2268
/* confdefs.h.  */
2269
_ACEOF
2270
cat confdefs.h >>conftest.$ac_ext
2271
cat >>conftest.$ac_ext <<_ACEOF
2272
/* end confdefs.h.  */
2273
#include 
2274
#include 
2275
#include 
2276
#include 
2277
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2278
struct buf { int x; };
2279
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2280
static char *e (p, i)
2281
     char **p;
2282
     int i;
2283
{
2284
  return p[i];
2285
}
2286
static char *f (char * (*g) (char **, int), char **p, ...)
2287
{
2288
  char *s;
2289
  va_list v;
2290
  va_start (v,p);
2291
  s = g (p, va_arg (v,int));
2292
  va_end (v);
2293
  return s;
2294
}
2295
 
2296
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2297
   function prototypes and stuff, but not '\xHH' hex character constants.
2298
   These don't provoke an error unfortunately, instead are silently treated
2299
   as 'x'.  The following induces an error, until -std1 is added to get
2300
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2301
   array size at least.  It's necessary to write '\x00'==0 to get something
2302
   that's true only with -std1.  */
2303
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2304
 
2305
int test (int i, double x);
2306
struct s1 {int (*f) (int a);};
2307
struct s2 {int (*f) (double a);};
2308
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2309
int argc;
2310
char **argv;
2311
int
2312
main ()
2313
{
2314
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2315
  ;
2316
  return 0;
2317
}
2318
_ACEOF
2319
# Don't try gcc -ansi; that turns off useful extensions and
2320
# breaks some systems' header files.
2321
# AIX                   -qlanglvl=ansi
2322
# Ultrix and OSF/1      -std1
2323
# HP-UX 10.20 and later -Ae
2324
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2325
# SVR4                  -Xc -D__EXTENSIONS__
2326
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2327
do
2328
  CC="$ac_save_CC $ac_arg"
2329
  rm -f conftest.$ac_objext
2330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2331
  (eval $ac_compile) 2>conftest.er1
2332
  ac_status=$?
2333
  grep -v '^ *+' conftest.er1 >conftest.err
2334
  rm -f conftest.er1
2335
  cat conftest.err >&5
2336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337
  (exit $ac_status); } &&
2338
         { ac_try='test -z "$ac_c_werror_flag"
2339
                         || test ! -s conftest.err'
2340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341
  (eval $ac_try) 2>&5
2342
  ac_status=$?
2343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
  (exit $ac_status); }; } &&
2345
         { ac_try='test -s conftest.$ac_objext'
2346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347
  (eval $ac_try) 2>&5
2348
  ac_status=$?
2349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350
  (exit $ac_status); }; }; then
2351
  ac_cv_prog_cc_stdc=$ac_arg
2352
break
2353
else
2354
  echo "$as_me: failed program was:" >&5
2355
sed 's/^/| /' conftest.$ac_ext >&5
2356
 
2357
fi
2358
rm -f conftest.err conftest.$ac_objext
2359
done
2360
rm -f conftest.$ac_ext conftest.$ac_objext
2361
CC=$ac_save_CC
2362
 
2363
fi
2364
 
2365
case "x$ac_cv_prog_cc_stdc" in
2366
  x|xno)
2367
    echo "$as_me:$LINENO: result: none needed" >&5
2368
echo "${ECHO_T}none needed" >&6 ;;
2369
  *)
2370
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2371
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2372
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2373
esac
2374
 
2375
# Some people use a C++ compiler to compile C.  Since we use `exit',
2376
# in C++ we need to declare it.  In case someone uses the same compiler
2377
# for both compiling C and C++ we need to have the C++ compiler decide
2378
# the declaration of exit, since it's the most demanding environment.
2379
cat >conftest.$ac_ext <<_ACEOF
2380
#ifndef __cplusplus
2381
  choke me
2382
#endif
2383
_ACEOF
2384
rm -f conftest.$ac_objext
2385
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386
  (eval $ac_compile) 2>conftest.er1
2387
  ac_status=$?
2388
  grep -v '^ *+' conftest.er1 >conftest.err
2389
  rm -f conftest.er1
2390
  cat conftest.err >&5
2391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392
  (exit $ac_status); } &&
2393
         { ac_try='test -z "$ac_c_werror_flag"
2394
                         || test ! -s conftest.err'
2395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396
  (eval $ac_try) 2>&5
2397
  ac_status=$?
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
  (exit $ac_status); }; } &&
2400
         { ac_try='test -s conftest.$ac_objext'
2401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402
  (eval $ac_try) 2>&5
2403
  ac_status=$?
2404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405
  (exit $ac_status); }; }; then
2406
  for ac_declaration in \
2407
   '' \
2408
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2409
   'extern "C" void std::exit (int); using std::exit;' \
2410
   'extern "C" void exit (int) throw ();' \
2411
   'extern "C" void exit (int);' \
2412
   'void exit (int);'
2413
do
2414
  cat >conftest.$ac_ext <<_ACEOF
2415
/* confdefs.h.  */
2416
_ACEOF
2417
cat confdefs.h >>conftest.$ac_ext
2418
cat >>conftest.$ac_ext <<_ACEOF
2419
/* end confdefs.h.  */
2420
$ac_declaration
2421
#include 
2422
int
2423
main ()
2424
{
2425
exit (42);
2426
  ;
2427
  return 0;
2428
}
2429
_ACEOF
2430
rm -f conftest.$ac_objext
2431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432
  (eval $ac_compile) 2>conftest.er1
2433
  ac_status=$?
2434
  grep -v '^ *+' conftest.er1 >conftest.err
2435
  rm -f conftest.er1
2436
  cat conftest.err >&5
2437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438
  (exit $ac_status); } &&
2439
         { ac_try='test -z "$ac_c_werror_flag"
2440
                         || test ! -s conftest.err'
2441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442
  (eval $ac_try) 2>&5
2443
  ac_status=$?
2444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445
  (exit $ac_status); }; } &&
2446
         { ac_try='test -s conftest.$ac_objext'
2447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448
  (eval $ac_try) 2>&5
2449
  ac_status=$?
2450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451
  (exit $ac_status); }; }; then
2452
  :
2453
else
2454
  echo "$as_me: failed program was:" >&5
2455
sed 's/^/| /' conftest.$ac_ext >&5
2456
 
2457
continue
2458
fi
2459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2460
  cat >conftest.$ac_ext <<_ACEOF
2461
/* confdefs.h.  */
2462
_ACEOF
2463
cat confdefs.h >>conftest.$ac_ext
2464
cat >>conftest.$ac_ext <<_ACEOF
2465
/* end confdefs.h.  */
2466
$ac_declaration
2467
int
2468
main ()
2469
{
2470
exit (42);
2471
  ;
2472
  return 0;
2473
}
2474
_ACEOF
2475
rm -f conftest.$ac_objext
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477
  (eval $ac_compile) 2>conftest.er1
2478
  ac_status=$?
2479
  grep -v '^ *+' conftest.er1 >conftest.err
2480
  rm -f conftest.er1
2481
  cat conftest.err >&5
2482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483
  (exit $ac_status); } &&
2484
         { ac_try='test -z "$ac_c_werror_flag"
2485
                         || test ! -s conftest.err'
2486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487
  (eval $ac_try) 2>&5
2488
  ac_status=$?
2489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490
  (exit $ac_status); }; } &&
2491
         { ac_try='test -s conftest.$ac_objext'
2492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493
  (eval $ac_try) 2>&5
2494
  ac_status=$?
2495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496
  (exit $ac_status); }; }; then
2497
  break
2498
else
2499
  echo "$as_me: failed program was:" >&5
2500
sed 's/^/| /' conftest.$ac_ext >&5
2501
 
2502
fi
2503
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504
done
2505
rm -f conftest*
2506
if test -n "$ac_declaration"; then
2507
  echo '#ifdef __cplusplus' >>confdefs.h
2508
  echo $ac_declaration      >>confdefs.h
2509
  echo '#endif'             >>confdefs.h
2510
fi
2511
 
2512
else
2513
  echo "$as_me: failed program was:" >&5
2514
sed 's/^/| /' conftest.$ac_ext >&5
2515
 
2516
fi
2517
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518
ac_ext=c
2519
ac_cpp='$CPP $CPPFLAGS'
2520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
 
2524
 
2525
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2526
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2527
if test "${ac_cv_search_strerror+set}" = set; then
2528
  echo $ECHO_N "(cached) $ECHO_C" >&6
2529
else
2530
  ac_func_search_save_LIBS=$LIBS
2531
ac_cv_search_strerror=no
2532
cat >conftest.$ac_ext <<_ACEOF
2533
/* confdefs.h.  */
2534
_ACEOF
2535
cat confdefs.h >>conftest.$ac_ext
2536
cat >>conftest.$ac_ext <<_ACEOF
2537
/* end confdefs.h.  */
2538
 
2539
/* Override any gcc2 internal prototype to avoid an error.  */
2540
#ifdef __cplusplus
2541
extern "C"
2542
#endif
2543
/* We use char because int might match the return type of a gcc2
2544
   builtin and then its argument prototype would still apply.  */
2545
char strerror ();
2546
int
2547
main ()
2548
{
2549
strerror ();
2550
  ;
2551
  return 0;
2552
}
2553
_ACEOF
2554
rm -f conftest.$ac_objext conftest$ac_exeext
2555
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2556
  (eval $ac_link) 2>conftest.er1
2557
  ac_status=$?
2558
  grep -v '^ *+' conftest.er1 >conftest.err
2559
  rm -f conftest.er1
2560
  cat conftest.err >&5
2561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562
  (exit $ac_status); } &&
2563
         { ac_try='test -z "$ac_c_werror_flag"
2564
                         || test ! -s conftest.err'
2565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566
  (eval $ac_try) 2>&5
2567
  ac_status=$?
2568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569
  (exit $ac_status); }; } &&
2570
         { ac_try='test -s conftest$ac_exeext'
2571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572
  (eval $ac_try) 2>&5
2573
  ac_status=$?
2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
  (exit $ac_status); }; }; then
2576
  ac_cv_search_strerror="none required"
2577
else
2578
  echo "$as_me: failed program was:" >&5
2579
sed 's/^/| /' conftest.$ac_ext >&5
2580
 
2581
fi
2582
rm -f conftest.err conftest.$ac_objext \
2583
      conftest$ac_exeext conftest.$ac_ext
2584
if test "$ac_cv_search_strerror" = no; then
2585
  for ac_lib in cposix; do
2586
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2587
    cat >conftest.$ac_ext <<_ACEOF
2588
/* confdefs.h.  */
2589
_ACEOF
2590
cat confdefs.h >>conftest.$ac_ext
2591
cat >>conftest.$ac_ext <<_ACEOF
2592
/* end confdefs.h.  */
2593
 
2594
/* Override any gcc2 internal prototype to avoid an error.  */
2595
#ifdef __cplusplus
2596
extern "C"
2597
#endif
2598
/* We use char because int might match the return type of a gcc2
2599
   builtin and then its argument prototype would still apply.  */
2600
char strerror ();
2601
int
2602
main ()
2603
{
2604
strerror ();
2605
  ;
2606
  return 0;
2607
}
2608
_ACEOF
2609
rm -f conftest.$ac_objext conftest$ac_exeext
2610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2611
  (eval $ac_link) 2>conftest.er1
2612
  ac_status=$?
2613
  grep -v '^ *+' conftest.er1 >conftest.err
2614
  rm -f conftest.er1
2615
  cat conftest.err >&5
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617
  (exit $ac_status); } &&
2618
         { ac_try='test -z "$ac_c_werror_flag"
2619
                         || test ! -s conftest.err'
2620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621
  (eval $ac_try) 2>&5
2622
  ac_status=$?
2623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624
  (exit $ac_status); }; } &&
2625
         { ac_try='test -s conftest$ac_exeext'
2626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627
  (eval $ac_try) 2>&5
2628
  ac_status=$?
2629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630
  (exit $ac_status); }; }; then
2631
  ac_cv_search_strerror="-l$ac_lib"
2632
break
2633
else
2634
  echo "$as_me: failed program was:" >&5
2635
sed 's/^/| /' conftest.$ac_ext >&5
2636
 
2637
fi
2638
rm -f conftest.err conftest.$ac_objext \
2639
      conftest$ac_exeext conftest.$ac_ext
2640
  done
2641
fi
2642
LIBS=$ac_func_search_save_LIBS
2643
fi
2644
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2645
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2646
if test "$ac_cv_search_strerror" != no; then
2647
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2648
 
2649
fi
2650
 
2651
 
2652
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2653
am__api_version="1.9"
2654
# Find a good install program.  We prefer a C program (faster),
2655
# so one script is as good as another.  But avoid the broken or
2656
# incompatible versions:
2657
# SysV /etc/install, /usr/sbin/install
2658
# SunOS /usr/etc/install
2659
# IRIX /sbin/install
2660
# AIX /bin/install
2661
# AmigaOS /C/install, which installs bootblocks on floppy discs
2662
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2663
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2664
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2665
# OS/2's system install, which has a completely different semantic
2666
# ./install, which can be erroneously created by make from ./install.sh.
2667
# Reject install programs that cannot install multiple files.
2668
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2669
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2670
if test -z "$INSTALL"; then
2671
if test "${ac_cv_path_install+set}" = set; then
2672
  echo $ECHO_N "(cached) $ECHO_C" >&6
2673
else
2674
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675
for as_dir in $PATH
2676
do
2677
  IFS=$as_save_IFS
2678
  test -z "$as_dir" && as_dir=.
2679
  # Account for people who put trailing slashes in PATH elements.
2680
case $as_dir/ in
2681
  ./ | .// | /cC/* | \
2682
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2683
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2684
  /usr/ucb/* ) ;;
2685
  *)
2686
    # OSF1 and SCO ODT 3.0 have their own names for install.
2687
    # Don't use installbsd from OSF since it installs stuff as root
2688
    # by default.
2689
    for ac_prog in ginstall scoinst install; do
2690
      for ac_exec_ext in '' $ac_executable_extensions; do
2691
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2692
          if test $ac_prog = install &&
2693
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694
            # AIX install.  It has an incompatible calling convention.
2695
            :
2696
          elif test $ac_prog = install &&
2697
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698
            # program-specific install script used by HP pwplus--don't use.
2699
            :
2700
          else
2701
            rm -rf conftest.one conftest.two conftest.dir
2702
            echo one > conftest.one
2703
            echo two > conftest.two
2704
            mkdir conftest.dir
2705
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2706
              test -s conftest.one && test -s conftest.two &&
2707
              test -s conftest.dir/conftest.one &&
2708
              test -s conftest.dir/conftest.two
2709
            then
2710
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2711
              break 3
2712
            fi
2713
          fi
2714
        fi
2715
      done
2716
    done
2717
    ;;
2718
esac
2719
done
2720
 
2721
rm -rf conftest.one conftest.two conftest.dir
2722
 
2723
fi
2724
  if test "${ac_cv_path_install+set}" = set; then
2725
    INSTALL=$ac_cv_path_install
2726
  else
2727
    # As a last resort, use the slow shell script.  Don't cache a
2728
    # value for INSTALL within a source directory, because that will
2729
    # break other packages using the cache if that directory is
2730
    # removed, or if the value is a relative name.
2731
    INSTALL=$ac_install_sh
2732
  fi
2733
fi
2734
echo "$as_me:$LINENO: result: $INSTALL" >&5
2735
echo "${ECHO_T}$INSTALL" >&6
2736
 
2737
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738
# It thinks the first close brace ends the variable substitution.
2739
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2740
 
2741
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2742
 
2743
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2744
 
2745
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2746
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2747
# Just in case
2748
sleep 1
2749
echo timestamp > conftest.file
2750
# Do `set' in a subshell so we don't clobber the current shell's
2751
# arguments.  Must try -L first in case configure is actually a
2752
# symlink; some systems play weird games with the mod time of symlinks
2753
# (eg FreeBSD returns the mod time of the symlink's containing
2754
# directory).
2755
if (
2756
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2757
   if test "$*" = "X"; then
2758
      # -L didn't work.
2759
      set X `ls -t $srcdir/configure conftest.file`
2760
   fi
2761
   rm -f conftest.file
2762
   if test "$*" != "X $srcdir/configure conftest.file" \
2763
      && test "$*" != "X conftest.file $srcdir/configure"; then
2764
 
2765
      # If neither matched, then we have a broken ls.  This can happen
2766
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2767
      # broken ls alias from the environment.  This has actually
2768
      # happened.  Such a system could not be considered "sane".
2769
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2770
alias in your environment" >&5
2771
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2772
alias in your environment" >&2;}
2773
   { (exit 1); exit 1; }; }
2774
   fi
2775
 
2776
   test "$2" = conftest.file
2777
   )
2778
then
2779
   # Ok.
2780
   :
2781
else
2782
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2783
Check your system clock" >&5
2784
echo "$as_me: error: newly created file is older than distributed files!
2785
Check your system clock" >&2;}
2786
   { (exit 1); exit 1; }; }
2787
fi
2788
echo "$as_me:$LINENO: result: yes" >&5
2789
echo "${ECHO_T}yes" >&6
2790
test "$program_prefix" != NONE &&
2791
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2792
# Use a double $ so make ignores it.
2793
test "$program_suffix" != NONE &&
2794
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2795
# Double any \ or $.  echo might interpret backslashes.
2796
# By default was `s,x,x', remove it if useless.
2797
cat <<\_ACEOF >conftest.sed
2798
s/[\\$]/&&/g;s/;s,x,x,$//
2799
_ACEOF
2800
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2801
rm conftest.sed
2802
 
2803
# expand $ac_aux_dir to an absolute path
2804
am_aux_dir=`cd $ac_aux_dir && pwd`
2805
 
2806
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2807
# Use eval to expand $SHELL
2808
if eval "$MISSING --run true"; then
2809
  am_missing_run="$MISSING --run "
2810
else
2811
  am_missing_run=
2812
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2813
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814
fi
2815
 
2816
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2817
  # We used to keeping the `.' as first argument, in order to
2818
  # allow $(mkdir_p) to be used without argument.  As in
2819
  #   $(mkdir_p) $(somedir)
2820
  # where $(somedir) is conditionally defined.  However this is wrong
2821
  # for two reasons:
2822
  #  1. if the package is installed by a user who cannot write `.'
2823
  #     make install will fail,
2824
  #  2. the above comment should most certainly read
2825
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2826
  #     so it does not work when $(somedir) is undefined and
2827
  #     $(DESTDIR) is not.
2828
  #  To support the latter case, we have to write
2829
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2830
  #  so the `.' trick is pointless.
2831
  mkdir_p='mkdir -p --'
2832
else
2833
  # On NextStep and OpenStep, the `mkdir' command does not
2834
  # recognize any option.  It will interpret all options as
2835
  # directories to create, and then abort because `.' already
2836
  # exists.
2837
  for d in ./-p ./--version;
2838
  do
2839
    test -d $d && rmdir $d
2840
  done
2841
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2842
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2843
    mkdir_p='$(mkinstalldirs)'
2844
  else
2845
    mkdir_p='$(install_sh) -d'
2846
  fi
2847
fi
2848
 
2849
for ac_prog in gawk mawk nawk awk
2850
do
2851
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2852
set dummy $ac_prog; ac_word=$2
2853
echo "$as_me:$LINENO: checking for $ac_word" >&5
2854
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855
if test "${ac_cv_prog_AWK+set}" = set; then
2856
  echo $ECHO_N "(cached) $ECHO_C" >&6
2857
else
2858
  if test -n "$AWK"; then
2859
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2860
else
2861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862
for as_dir in $PATH
2863
do
2864
  IFS=$as_save_IFS
2865
  test -z "$as_dir" && as_dir=.
2866
  for ac_exec_ext in '' $ac_executable_extensions; do
2867
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868
    ac_cv_prog_AWK="$ac_prog"
2869
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870
    break 2
2871
  fi
2872
done
2873
done
2874
 
2875
fi
2876
fi
2877
AWK=$ac_cv_prog_AWK
2878
if test -n "$AWK"; then
2879
  echo "$as_me:$LINENO: result: $AWK" >&5
2880
echo "${ECHO_T}$AWK" >&6
2881
else
2882
  echo "$as_me:$LINENO: result: no" >&5
2883
echo "${ECHO_T}no" >&6
2884
fi
2885
 
2886
  test -n "$AWK" && break
2887
done
2888
 
2889
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2890
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2891
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2892
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2893
  echo $ECHO_N "(cached) $ECHO_C" >&6
2894
else
2895
  cat >conftest.make <<\_ACEOF
2896
all:
2897
        @echo 'ac_maketemp="$(MAKE)"'
2898
_ACEOF
2899
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2900
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2901
if test -n "$ac_maketemp"; then
2902
  eval ac_cv_prog_make_${ac_make}_set=yes
2903
else
2904
  eval ac_cv_prog_make_${ac_make}_set=no
2905
fi
2906
rm -f conftest.make
2907
fi
2908
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2909
  echo "$as_me:$LINENO: result: yes" >&5
2910
echo "${ECHO_T}yes" >&6
2911
  SET_MAKE=
2912
else
2913
  echo "$as_me:$LINENO: result: no" >&5
2914
echo "${ECHO_T}no" >&6
2915
  SET_MAKE="MAKE=${MAKE-make}"
2916
fi
2917
 
2918
rm -rf .tst 2>/dev/null
2919
mkdir .tst 2>/dev/null
2920
if test -d .tst; then
2921
  am__leading_dot=.
2922
else
2923
  am__leading_dot=_
2924
fi
2925
rmdir .tst 2>/dev/null
2926
 
2927
DEPDIR="${am__leading_dot}deps"
2928
 
2929
          ac_config_commands="$ac_config_commands depfiles"
2930
 
2931
 
2932
am_make=${MAKE-make}
2933
cat > confinc << 'END'
2934
am__doit:
2935
        @echo done
2936
.PHONY: am__doit
2937
END
2938
# If we don't find an include directive, just comment out the code.
2939
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2940
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2941
am__include="#"
2942
am__quote=
2943
_am_result=none
2944
# First try GNU make style include.
2945
echo "include confinc" > confmf
2946
# We grep out `Entering directory' and `Leaving directory'
2947
# messages which can occur if `w' ends up in MAKEFLAGS.
2948
# In particular we don't look at `^make:' because GNU make might
2949
# be invoked under some other name (usually "gmake"), in which
2950
# case it prints its new name instead of `make'.
2951
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2952
   am__include=include
2953
   am__quote=
2954
   _am_result=GNU
2955
fi
2956
# Now try BSD make style include.
2957
if test "$am__include" = "#"; then
2958
   echo '.include "confinc"' > confmf
2959
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2960
      am__include=.include
2961
      am__quote="\""
2962
      _am_result=BSD
2963
   fi
2964
fi
2965
 
2966
 
2967
echo "$as_me:$LINENO: result: $_am_result" >&5
2968
echo "${ECHO_T}$_am_result" >&6
2969
rm -f confinc confmf
2970
 
2971
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2972
if test "${enable_dependency_tracking+set}" = set; then
2973
  enableval="$enable_dependency_tracking"
2974
 
2975
fi;
2976
if test "x$enable_dependency_tracking" != xno; then
2977
  am_depcomp="$ac_aux_dir/depcomp"
2978
  AMDEPBACKSLASH='\'
2979
fi
2980
 
2981
 
2982
if test "x$enable_dependency_tracking" != xno; then
2983
  AMDEP_TRUE=
2984
  AMDEP_FALSE='#'
2985
else
2986
  AMDEP_TRUE='#'
2987
  AMDEP_FALSE=
2988
fi
2989
 
2990
 
2991
 
2992
# test to see if srcdir already configured
2993
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2994
   test -f $srcdir/config.status; then
2995
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2996
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2997
   { (exit 1); exit 1; }; }
2998
fi
2999
 
3000
# test whether we have cygpath
3001
if test -z "$CYGPATH_W"; then
3002
  if (cygpath --version) >/dev/null 2>/dev/null; then
3003
    CYGPATH_W='cygpath -w'
3004
  else
3005
    CYGPATH_W=echo
3006
  fi
3007
fi
3008
 
3009
 
3010
# Define the identity of the package.
3011
 PACKAGE=binutils
3012
 VERSION=${BFD_VERSION}
3013
 
3014
 
3015
cat >>confdefs.h <<_ACEOF
3016
#define PACKAGE "$PACKAGE"
3017
_ACEOF
3018
 
3019
 
3020
cat >>confdefs.h <<_ACEOF
3021
#define VERSION "$VERSION"
3022
_ACEOF
3023
 
3024
# Some tools Automake needs.
3025
 
3026
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3027
 
3028
 
3029
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3030
 
3031
 
3032
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3033
 
3034
 
3035
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3036
 
3037
 
3038
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3039
 
3040
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3041
 
3042
# Installed binaries are usually stripped using `strip' when the user
3043
# run `make install-strip'.  However `strip' might not be the right
3044
# tool to use in cross-compilation environments, therefore Automake
3045
# will honor the `STRIP' environment variable to overrule this program.
3046
if test "$cross_compiling" != no; then
3047
  if test -n "$ac_tool_prefix"; then
3048
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049
set dummy ${ac_tool_prefix}strip; ac_word=$2
3050
echo "$as_me:$LINENO: checking for $ac_word" >&5
3051
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3052
if test "${ac_cv_prog_STRIP+set}" = set; then
3053
  echo $ECHO_N "(cached) $ECHO_C" >&6
3054
else
3055
  if test -n "$STRIP"; then
3056
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057
else
3058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059
for as_dir in $PATH
3060
do
3061
  IFS=$as_save_IFS
3062
  test -z "$as_dir" && as_dir=.
3063
  for ac_exec_ext in '' $ac_executable_extensions; do
3064
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067
    break 2
3068
  fi
3069
done
3070
done
3071
 
3072
fi
3073
fi
3074
STRIP=$ac_cv_prog_STRIP
3075
if test -n "$STRIP"; then
3076
  echo "$as_me:$LINENO: result: $STRIP" >&5
3077
echo "${ECHO_T}$STRIP" >&6
3078
else
3079
  echo "$as_me:$LINENO: result: no" >&5
3080
echo "${ECHO_T}no" >&6
3081
fi
3082
 
3083
fi
3084
if test -z "$ac_cv_prog_STRIP"; then
3085
  ac_ct_STRIP=$STRIP
3086
  # Extract the first word of "strip", so it can be a program name with args.
3087
set dummy strip; ac_word=$2
3088
echo "$as_me:$LINENO: checking for $ac_word" >&5
3089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3091
  echo $ECHO_N "(cached) $ECHO_C" >&6
3092
else
3093
  if test -n "$ac_ct_STRIP"; then
3094
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095
else
3096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097
for as_dir in $PATH
3098
do
3099
  IFS=$as_save_IFS
3100
  test -z "$as_dir" && as_dir=.
3101
  for ac_exec_ext in '' $ac_executable_extensions; do
3102
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103
    ac_cv_prog_ac_ct_STRIP="strip"
3104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105
    break 2
3106
  fi
3107
done
3108
done
3109
 
3110
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3111
fi
3112
fi
3113
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3114
if test -n "$ac_ct_STRIP"; then
3115
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3116
echo "${ECHO_T}$ac_ct_STRIP" >&6
3117
else
3118
  echo "$as_me:$LINENO: result: no" >&5
3119
echo "${ECHO_T}no" >&6
3120
fi
3121
 
3122
  STRIP=$ac_ct_STRIP
3123
else
3124
  STRIP="$ac_cv_prog_STRIP"
3125
fi
3126
 
3127
fi
3128
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3129
 
3130
# We need awk for the "check" target.  The system "awk" is bad on
3131
# some platforms.
3132
# Always define AMTAR for backward compatibility.
3133
 
3134
AMTAR=${AMTAR-"${am_missing_run}tar"}
3135
 
3136
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3137
 
3138
 
3139
 
3140
 
3141
depcc="$CC"   am_compiler_list=
3142
 
3143
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3144
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3145
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3146
  echo $ECHO_N "(cached) $ECHO_C" >&6
3147
else
3148
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3149
  # We make a subdir and do the tests there.  Otherwise we can end up
3150
  # making bogus files that we don't know about and never remove.  For
3151
  # instance it was reported that on HP-UX the gcc test will end up
3152
  # making a dummy file named `D' -- because `-MD' means `put the output
3153
  # in D'.
3154
  mkdir conftest.dir
3155
  # Copy depcomp to subdir because otherwise we won't find it if we're
3156
  # using a relative directory.
3157
  cp "$am_depcomp" conftest.dir
3158
  cd conftest.dir
3159
  # We will build objects and dependencies in a subdirectory because
3160
  # it helps to detect inapplicable dependency modes.  For instance
3161
  # both Tru64's cc and ICC support -MD to output dependencies as a
3162
  # side effect of compilation, but ICC will put the dependencies in
3163
  # the current directory while Tru64 will put them in the object
3164
  # directory.
3165
  mkdir sub
3166
 
3167
  am_cv_CC_dependencies_compiler_type=none
3168
  if test "$am_compiler_list" = ""; then
3169
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3170
  fi
3171
  for depmode in $am_compiler_list; do
3172
    # Setup a source with many dependencies, because some compilers
3173
    # like to wrap large dependency lists on column 80 (with \), and
3174
    # we should not choose a depcomp mode which is confused by this.
3175
    #
3176
    # We need to recreate these files for each test, as the compiler may
3177
    # overwrite some of them when testing with obscure command lines.
3178
    # This happens at least with the AIX C compiler.
3179
    : > sub/conftest.c
3180
    for i in 1 2 3 4 5 6; do
3181
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3182
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3183
      # Solaris 8's {/usr,}/bin/sh.
3184
      touch sub/conftst$i.h
3185
    done
3186
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3187
 
3188
    case $depmode in
3189
    nosideeffect)
3190
      # after this tag, mechanisms are not by side-effect, so they'll
3191
      # only be used when explicitly requested
3192
      if test "x$enable_dependency_tracking" = xyes; then
3193
        continue
3194
      else
3195
        break
3196
      fi
3197
      ;;
3198
    none) break ;;
3199
    esac
3200
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3201
    # mode.  It turns out that the SunPro C++ compiler does not properly
3202
    # handle `-M -o', and we need to detect this.
3203
    if depmode=$depmode \
3204
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3205
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3206
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3207
         >/dev/null 2>conftest.err &&
3208
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3209
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3210
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3211
      # icc doesn't choke on unknown options, it will just issue warnings
3212
      # or remarks (even with -Werror).  So we grep stderr for any message
3213
      # that says an option was ignored or not supported.
3214
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3215
      #   icc: Command line warning: ignoring option '-M'; no argument required
3216
      # The diagnosis changed in icc 8.0:
3217
      #   icc: Command line remark: option '-MP' not supported
3218
      if (grep 'ignoring option' conftest.err ||
3219
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3220
        am_cv_CC_dependencies_compiler_type=$depmode
3221
        break
3222
      fi
3223
    fi
3224
  done
3225
 
3226
  cd ..
3227
  rm -rf conftest.dir
3228
else
3229
  am_cv_CC_dependencies_compiler_type=none
3230
fi
3231
 
3232
fi
3233
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3234
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3235
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3236
 
3237
 
3238
 
3239
if
3240
  test "x$enable_dependency_tracking" != xno \
3241
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3242
  am__fastdepCC_TRUE=
3243
  am__fastdepCC_FALSE='#'
3244
else
3245
  am__fastdepCC_TRUE='#'
3246
  am__fastdepCC_FALSE=
3247
fi
3248
 
3249
 
3250
 
3251
 
3252
ac_ext=c
3253
ac_cpp='$CPP $CPPFLAGS'
3254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257
if test -n "$ac_tool_prefix"; then
3258
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260
echo "$as_me:$LINENO: checking for $ac_word" >&5
3261
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262
if test "${ac_cv_prog_CC+set}" = set; then
3263
  echo $ECHO_N "(cached) $ECHO_C" >&6
3264
else
3265
  if test -n "$CC"; then
3266
  ac_cv_prog_CC="$CC" # Let the user override the test.
3267
else
3268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269
for as_dir in $PATH
3270
do
3271
  IFS=$as_save_IFS
3272
  test -z "$as_dir" && as_dir=.
3273
  for ac_exec_ext in '' $ac_executable_extensions; do
3274
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277
    break 2
3278
  fi
3279
done
3280
done
3281
 
3282
fi
3283
fi
3284
CC=$ac_cv_prog_CC
3285
if test -n "$CC"; then
3286
  echo "$as_me:$LINENO: result: $CC" >&5
3287
echo "${ECHO_T}$CC" >&6
3288
else
3289
  echo "$as_me:$LINENO: result: no" >&5
3290
echo "${ECHO_T}no" >&6
3291
fi
3292
 
3293
fi
3294
if test -z "$ac_cv_prog_CC"; then
3295
  ac_ct_CC=$CC
3296
  # Extract the first word of "gcc", so it can be a program name with args.
3297
set dummy gcc; ac_word=$2
3298
echo "$as_me:$LINENO: checking for $ac_word" >&5
3299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3301
  echo $ECHO_N "(cached) $ECHO_C" >&6
3302
else
3303
  if test -n "$ac_ct_CC"; then
3304
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305
else
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307
for as_dir in $PATH
3308
do
3309
  IFS=$as_save_IFS
3310
  test -z "$as_dir" && as_dir=.
3311
  for ac_exec_ext in '' $ac_executable_extensions; do
3312
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313
    ac_cv_prog_ac_ct_CC="gcc"
3314
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315
    break 2
3316
  fi
3317
done
3318
done
3319
 
3320
fi
3321
fi
3322
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3323
if test -n "$ac_ct_CC"; then
3324
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3325
echo "${ECHO_T}$ac_ct_CC" >&6
3326
else
3327
  echo "$as_me:$LINENO: result: no" >&5
3328
echo "${ECHO_T}no" >&6
3329
fi
3330
 
3331
  CC=$ac_ct_CC
3332
else
3333
  CC="$ac_cv_prog_CC"
3334
fi
3335
 
3336
if test -z "$CC"; then
3337
  if test -n "$ac_tool_prefix"; then
3338
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339
set dummy ${ac_tool_prefix}cc; ac_word=$2
3340
echo "$as_me:$LINENO: checking for $ac_word" >&5
3341
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342
if test "${ac_cv_prog_CC+set}" = set; then
3343
  echo $ECHO_N "(cached) $ECHO_C" >&6
3344
else
3345
  if test -n "$CC"; then
3346
  ac_cv_prog_CC="$CC" # Let the user override the test.
3347
else
3348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349
for as_dir in $PATH
3350
do
3351
  IFS=$as_save_IFS
3352
  test -z "$as_dir" && as_dir=.
3353
  for ac_exec_ext in '' $ac_executable_extensions; do
3354
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3356
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357
    break 2
3358
  fi
3359
done
3360
done
3361
 
3362
fi
3363
fi
3364
CC=$ac_cv_prog_CC
3365
if test -n "$CC"; then
3366
  echo "$as_me:$LINENO: result: $CC" >&5
3367
echo "${ECHO_T}$CC" >&6
3368
else
3369
  echo "$as_me:$LINENO: result: no" >&5
3370
echo "${ECHO_T}no" >&6
3371
fi
3372
 
3373
fi
3374
if test -z "$ac_cv_prog_CC"; then
3375
  ac_ct_CC=$CC
3376
  # Extract the first word of "cc", so it can be a program name with args.
3377
set dummy cc; ac_word=$2
3378
echo "$as_me:$LINENO: checking for $ac_word" >&5
3379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381
  echo $ECHO_N "(cached) $ECHO_C" >&6
3382
else
3383
  if test -n "$ac_ct_CC"; then
3384
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385
else
3386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387
for as_dir in $PATH
3388
do
3389
  IFS=$as_save_IFS
3390
  test -z "$as_dir" && as_dir=.
3391
  for ac_exec_ext in '' $ac_executable_extensions; do
3392
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393
    ac_cv_prog_ac_ct_CC="cc"
3394
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395
    break 2
3396
  fi
3397
done
3398
done
3399
 
3400
fi
3401
fi
3402
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403
if test -n "$ac_ct_CC"; then
3404
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405
echo "${ECHO_T}$ac_ct_CC" >&6
3406
else
3407
  echo "$as_me:$LINENO: result: no" >&5
3408
echo "${ECHO_T}no" >&6
3409
fi
3410
 
3411
  CC=$ac_ct_CC
3412
else
3413
  CC="$ac_cv_prog_CC"
3414
fi
3415
 
3416
fi
3417
if test -z "$CC"; then
3418
  # Extract the first word of "cc", so it can be a program name with args.
3419
set dummy cc; ac_word=$2
3420
echo "$as_me:$LINENO: checking for $ac_word" >&5
3421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422
if test "${ac_cv_prog_CC+set}" = set; then
3423
  echo $ECHO_N "(cached) $ECHO_C" >&6
3424
else
3425
  if test -n "$CC"; then
3426
  ac_cv_prog_CC="$CC" # Let the user override the test.
3427
else
3428
  ac_prog_rejected=no
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
  for ac_exec_ext in '' $ac_executable_extensions; do
3435
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3437
       ac_prog_rejected=yes
3438
       continue
3439
     fi
3440
    ac_cv_prog_CC="cc"
3441
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442
    break 2
3443
  fi
3444
done
3445
done
3446
 
3447
if test $ac_prog_rejected = yes; then
3448
  # We found a bogon in the path, so make sure we never use it.
3449
  set dummy $ac_cv_prog_CC
3450
  shift
3451
  if test $# != 0; then
3452
    # We chose a different compiler from the bogus one.
3453
    # However, it has the same basename, so the bogon will be chosen
3454
    # first if we set CC to just the basename; use the full file name.
3455
    shift
3456
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457
  fi
3458
fi
3459
fi
3460
fi
3461
CC=$ac_cv_prog_CC
3462
if test -n "$CC"; then
3463
  echo "$as_me:$LINENO: result: $CC" >&5
3464
echo "${ECHO_T}$CC" >&6
3465
else
3466
  echo "$as_me:$LINENO: result: no" >&5
3467
echo "${ECHO_T}no" >&6
3468
fi
3469
 
3470
fi
3471
if test -z "$CC"; then
3472
  if test -n "$ac_tool_prefix"; then
3473
  for ac_prog in cl
3474
  do
3475
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3477
echo "$as_me:$LINENO: checking for $ac_word" >&5
3478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3479
if test "${ac_cv_prog_CC+set}" = set; then
3480
  echo $ECHO_N "(cached) $ECHO_C" >&6
3481
else
3482
  if test -n "$CC"; then
3483
  ac_cv_prog_CC="$CC" # Let the user override the test.
3484
else
3485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486
for as_dir in $PATH
3487
do
3488
  IFS=$as_save_IFS
3489
  test -z "$as_dir" && as_dir=.
3490
  for ac_exec_ext in '' $ac_executable_extensions; do
3491
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3492
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494
    break 2
3495
  fi
3496
done
3497
done
3498
 
3499
fi
3500
fi
3501
CC=$ac_cv_prog_CC
3502
if test -n "$CC"; then
3503
  echo "$as_me:$LINENO: result: $CC" >&5
3504
echo "${ECHO_T}$CC" >&6
3505
else
3506
  echo "$as_me:$LINENO: result: no" >&5
3507
echo "${ECHO_T}no" >&6
3508
fi
3509
 
3510
    test -n "$CC" && break
3511
  done
3512
fi
3513
if test -z "$CC"; then
3514
  ac_ct_CC=$CC
3515
  for ac_prog in cl
3516
do
3517
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3518
set dummy $ac_prog; ac_word=$2
3519
echo "$as_me:$LINENO: checking for $ac_word" >&5
3520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3521
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3522
  echo $ECHO_N "(cached) $ECHO_C" >&6
3523
else
3524
  if test -n "$ac_ct_CC"; then
3525
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3526
else
3527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528
for as_dir in $PATH
3529
do
3530
  IFS=$as_save_IFS
3531
  test -z "$as_dir" && as_dir=.
3532
  for ac_exec_ext in '' $ac_executable_extensions; do
3533
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534
    ac_cv_prog_ac_ct_CC="$ac_prog"
3535
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536
    break 2
3537
  fi
3538
done
3539
done
3540
 
3541
fi
3542
fi
3543
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544
if test -n "$ac_ct_CC"; then
3545
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3546
echo "${ECHO_T}$ac_ct_CC" >&6
3547
else
3548
  echo "$as_me:$LINENO: result: no" >&5
3549
echo "${ECHO_T}no" >&6
3550
fi
3551
 
3552
  test -n "$ac_ct_CC" && break
3553
done
3554
 
3555
  CC=$ac_ct_CC
3556
fi
3557
 
3558
fi
3559
 
3560
 
3561
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3562
See \`config.log' for more details." >&5
3563
echo "$as_me: error: no acceptable C compiler found in \$PATH
3564
See \`config.log' for more details." >&2;}
3565
   { (exit 1); exit 1; }; }
3566
 
3567
# Provide some information about the compiler.
3568
echo "$as_me:$LINENO:" \
3569
     "checking for C compiler version" >&5
3570
ac_compiler=`set X $ac_compile; echo $2`
3571
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3572
  (eval $ac_compiler --version &5) 2>&5
3573
  ac_status=$?
3574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575
  (exit $ac_status); }
3576
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3577
  (eval $ac_compiler -v &5) 2>&5
3578
  ac_status=$?
3579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580
  (exit $ac_status); }
3581
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3582
  (eval $ac_compiler -V &5) 2>&5
3583
  ac_status=$?
3584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
  (exit $ac_status); }
3586
 
3587
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3588
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3589
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3590
  echo $ECHO_N "(cached) $ECHO_C" >&6
3591
else
3592
  cat >conftest.$ac_ext <<_ACEOF
3593
/* confdefs.h.  */
3594
_ACEOF
3595
cat confdefs.h >>conftest.$ac_ext
3596
cat >>conftest.$ac_ext <<_ACEOF
3597
/* end confdefs.h.  */
3598
 
3599
int
3600
main ()
3601
{
3602
#ifndef __GNUC__
3603
       choke me
3604
#endif
3605
 
3606
  ;
3607
  return 0;
3608
}
3609
_ACEOF
3610
rm -f conftest.$ac_objext
3611
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612
  (eval $ac_compile) 2>conftest.er1
3613
  ac_status=$?
3614
  grep -v '^ *+' conftest.er1 >conftest.err
3615
  rm -f conftest.er1
3616
  cat conftest.err >&5
3617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618
  (exit $ac_status); } &&
3619
         { ac_try='test -z "$ac_c_werror_flag"
3620
                         || test ! -s conftest.err'
3621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622
  (eval $ac_try) 2>&5
3623
  ac_status=$?
3624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625
  (exit $ac_status); }; } &&
3626
         { ac_try='test -s conftest.$ac_objext'
3627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628
  (eval $ac_try) 2>&5
3629
  ac_status=$?
3630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631
  (exit $ac_status); }; }; then
3632
  ac_compiler_gnu=yes
3633
else
3634
  echo "$as_me: failed program was:" >&5
3635
sed 's/^/| /' conftest.$ac_ext >&5
3636
 
3637
ac_compiler_gnu=no
3638
fi
3639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3640
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3641
 
3642
fi
3643
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3644
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3645
GCC=`test $ac_compiler_gnu = yes && echo yes`
3646
ac_test_CFLAGS=${CFLAGS+set}
3647
ac_save_CFLAGS=$CFLAGS
3648
CFLAGS="-g"
3649
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3650
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3651
if test "${ac_cv_prog_cc_g+set}" = set; then
3652
  echo $ECHO_N "(cached) $ECHO_C" >&6
3653
else
3654
  cat >conftest.$ac_ext <<_ACEOF
3655
/* confdefs.h.  */
3656
_ACEOF
3657
cat confdefs.h >>conftest.$ac_ext
3658
cat >>conftest.$ac_ext <<_ACEOF
3659
/* end confdefs.h.  */
3660
 
3661
int
3662
main ()
3663
{
3664
 
3665
  ;
3666
  return 0;
3667
}
3668
_ACEOF
3669
rm -f conftest.$ac_objext
3670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671
  (eval $ac_compile) 2>conftest.er1
3672
  ac_status=$?
3673
  grep -v '^ *+' conftest.er1 >conftest.err
3674
  rm -f conftest.er1
3675
  cat conftest.err >&5
3676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
  (exit $ac_status); } &&
3678
         { ac_try='test -z "$ac_c_werror_flag"
3679
                         || test ! -s conftest.err'
3680
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681
  (eval $ac_try) 2>&5
3682
  ac_status=$?
3683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684
  (exit $ac_status); }; } &&
3685
         { ac_try='test -s conftest.$ac_objext'
3686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687
  (eval $ac_try) 2>&5
3688
  ac_status=$?
3689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
  (exit $ac_status); }; }; then
3691
  ac_cv_prog_cc_g=yes
3692
else
3693
  echo "$as_me: failed program was:" >&5
3694
sed 's/^/| /' conftest.$ac_ext >&5
3695
 
3696
ac_cv_prog_cc_g=no
3697
fi
3698
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699
fi
3700
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3701
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3702
if test "$ac_test_CFLAGS" = set; then
3703
  CFLAGS=$ac_save_CFLAGS
3704
elif test $ac_cv_prog_cc_g = yes; then
3705
  if test "$GCC" = yes; then
3706
    CFLAGS="-g -O2"
3707
  else
3708
    CFLAGS="-g"
3709
  fi
3710
else
3711
  if test "$GCC" = yes; then
3712
    CFLAGS="-O2"
3713
  else
3714
    CFLAGS=
3715
  fi
3716
fi
3717
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3718
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3719
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3720
  echo $ECHO_N "(cached) $ECHO_C" >&6
3721
else
3722
  ac_cv_prog_cc_stdc=no
3723
ac_save_CC=$CC
3724
cat >conftest.$ac_ext <<_ACEOF
3725
/* confdefs.h.  */
3726
_ACEOF
3727
cat confdefs.h >>conftest.$ac_ext
3728
cat >>conftest.$ac_ext <<_ACEOF
3729
/* end confdefs.h.  */
3730
#include 
3731
#include 
3732
#include 
3733
#include 
3734
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3735
struct buf { int x; };
3736
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737
static char *e (p, i)
3738
     char **p;
3739
     int i;
3740
{
3741
  return p[i];
3742
}
3743
static char *f (char * (*g) (char **, int), char **p, ...)
3744
{
3745
  char *s;
3746
  va_list v;
3747
  va_start (v,p);
3748
  s = g (p, va_arg (v,int));
3749
  va_end (v);
3750
  return s;
3751
}
3752
 
3753
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3754
   function prototypes and stuff, but not '\xHH' hex character constants.
3755
   These don't provoke an error unfortunately, instead are silently treated
3756
   as 'x'.  The following induces an error, until -std1 is added to get
3757
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3758
   array size at least.  It's necessary to write '\x00'==0 to get something
3759
   that's true only with -std1.  */
3760
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761
 
3762
int test (int i, double x);
3763
struct s1 {int (*f) (int a);};
3764
struct s2 {int (*f) (double a);};
3765
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3766
int argc;
3767
char **argv;
3768
int
3769
main ()
3770
{
3771
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3772
  ;
3773
  return 0;
3774
}
3775
_ACEOF
3776
# Don't try gcc -ansi; that turns off useful extensions and
3777
# breaks some systems' header files.
3778
# AIX                   -qlanglvl=ansi
3779
# Ultrix and OSF/1      -std1
3780
# HP-UX 10.20 and later -Ae
3781
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3782
# SVR4                  -Xc -D__EXTENSIONS__
3783
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784
do
3785
  CC="$ac_save_CC $ac_arg"
3786
  rm -f conftest.$ac_objext
3787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788
  (eval $ac_compile) 2>conftest.er1
3789
  ac_status=$?
3790
  grep -v '^ *+' conftest.er1 >conftest.err
3791
  rm -f conftest.er1
3792
  cat conftest.err >&5
3793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
  (exit $ac_status); } &&
3795
         { ac_try='test -z "$ac_c_werror_flag"
3796
                         || test ! -s conftest.err'
3797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798
  (eval $ac_try) 2>&5
3799
  ac_status=$?
3800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801
  (exit $ac_status); }; } &&
3802
         { ac_try='test -s conftest.$ac_objext'
3803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804
  (eval $ac_try) 2>&5
3805
  ac_status=$?
3806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807
  (exit $ac_status); }; }; then
3808
  ac_cv_prog_cc_stdc=$ac_arg
3809
break
3810
else
3811
  echo "$as_me: failed program was:" >&5
3812
sed 's/^/| /' conftest.$ac_ext >&5
3813
 
3814
fi
3815
rm -f conftest.err conftest.$ac_objext
3816
done
3817
rm -f conftest.$ac_ext conftest.$ac_objext
3818
CC=$ac_save_CC
3819
 
3820
fi
3821
 
3822
case "x$ac_cv_prog_cc_stdc" in
3823
  x|xno)
3824
    echo "$as_me:$LINENO: result: none needed" >&5
3825
echo "${ECHO_T}none needed" >&6 ;;
3826
  *)
3827
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3828
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3829
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3830
esac
3831
 
3832
# Some people use a C++ compiler to compile C.  Since we use `exit',
3833
# in C++ we need to declare it.  In case someone uses the same compiler
3834
# for both compiling C and C++ we need to have the C++ compiler decide
3835
# the declaration of exit, since it's the most demanding environment.
3836
cat >conftest.$ac_ext <<_ACEOF
3837
#ifndef __cplusplus
3838
  choke me
3839
#endif
3840
_ACEOF
3841
rm -f conftest.$ac_objext
3842
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843
  (eval $ac_compile) 2>conftest.er1
3844
  ac_status=$?
3845
  grep -v '^ *+' conftest.er1 >conftest.err
3846
  rm -f conftest.er1
3847
  cat conftest.err >&5
3848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849
  (exit $ac_status); } &&
3850
         { ac_try='test -z "$ac_c_werror_flag"
3851
                         || test ! -s conftest.err'
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); }; } &&
3857
         { ac_try='test -s conftest.$ac_objext'
3858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859
  (eval $ac_try) 2>&5
3860
  ac_status=$?
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862
  (exit $ac_status); }; }; then
3863
  for ac_declaration in \
3864
   '' \
3865
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3866
   'extern "C" void std::exit (int); using std::exit;' \
3867
   'extern "C" void exit (int) throw ();' \
3868
   'extern "C" void exit (int);' \
3869
   'void exit (int);'
3870
do
3871
  cat >conftest.$ac_ext <<_ACEOF
3872
/* confdefs.h.  */
3873
_ACEOF
3874
cat confdefs.h >>conftest.$ac_ext
3875
cat >>conftest.$ac_ext <<_ACEOF
3876
/* end confdefs.h.  */
3877
$ac_declaration
3878
#include 
3879
int
3880
main ()
3881
{
3882
exit (42);
3883
  ;
3884
  return 0;
3885
}
3886
_ACEOF
3887
rm -f conftest.$ac_objext
3888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889
  (eval $ac_compile) 2>conftest.er1
3890
  ac_status=$?
3891
  grep -v '^ *+' conftest.er1 >conftest.err
3892
  rm -f conftest.er1
3893
  cat conftest.err >&5
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
  (exit $ac_status); } &&
3896
         { ac_try='test -z "$ac_c_werror_flag"
3897
                         || test ! -s conftest.err'
3898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899
  (eval $ac_try) 2>&5
3900
  ac_status=$?
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902
  (exit $ac_status); }; } &&
3903
         { ac_try='test -s conftest.$ac_objext'
3904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905
  (eval $ac_try) 2>&5
3906
  ac_status=$?
3907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908
  (exit $ac_status); }; }; then
3909
  :
3910
else
3911
  echo "$as_me: failed program was:" >&5
3912
sed 's/^/| /' conftest.$ac_ext >&5
3913
 
3914
continue
3915
fi
3916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917
  cat >conftest.$ac_ext <<_ACEOF
3918
/* confdefs.h.  */
3919
_ACEOF
3920
cat confdefs.h >>conftest.$ac_ext
3921
cat >>conftest.$ac_ext <<_ACEOF
3922
/* end confdefs.h.  */
3923
$ac_declaration
3924
int
3925
main ()
3926
{
3927
exit (42);
3928
  ;
3929
  return 0;
3930
}
3931
_ACEOF
3932
rm -f conftest.$ac_objext
3933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934
  (eval $ac_compile) 2>conftest.er1
3935
  ac_status=$?
3936
  grep -v '^ *+' conftest.er1 >conftest.err
3937
  rm -f conftest.er1
3938
  cat conftest.err >&5
3939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940
  (exit $ac_status); } &&
3941
         { ac_try='test -z "$ac_c_werror_flag"
3942
                         || test ! -s conftest.err'
3943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944
  (eval $ac_try) 2>&5
3945
  ac_status=$?
3946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
  (exit $ac_status); }; } &&
3948
         { ac_try='test -s conftest.$ac_objext'
3949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950
  (eval $ac_try) 2>&5
3951
  ac_status=$?
3952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953
  (exit $ac_status); }; }; then
3954
  break
3955
else
3956
  echo "$as_me: failed program was:" >&5
3957
sed 's/^/| /' conftest.$ac_ext >&5
3958
 
3959
fi
3960
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961
done
3962
rm -f conftest*
3963
if test -n "$ac_declaration"; then
3964
  echo '#ifdef __cplusplus' >>confdefs.h
3965
  echo $ac_declaration      >>confdefs.h
3966
  echo '#endif'             >>confdefs.h
3967
fi
3968
 
3969
else
3970
  echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3972
 
3973
fi
3974
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3975
ac_ext=c
3976
ac_cpp='$CPP $CPPFLAGS'
3977
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
 
3981
 
3982
cat >>confdefs.h <<\_ACEOF
3983
#define _GNU_SOURCE 1
3984
_ACEOF
3985
 
3986
 
3987
 
3988
 
3989
macro_version='2.1a'
3990
macro_revision='1.2435'
3991
 
3992
 
3993
 
3994
 
3995
 
3996
 
3997
 
3998
 
3999
 
4000
 
4001
 
4002
 
4003
ltmain="$ac_aux_dir/ltmain.sh"
4004
 
4005
# Set options
4006
 
4007
enable_dlopen=no
4008
 
4009
 
4010
enable_win32_dll=no
4011
 
4012
 
4013
# Check whether --enable-shared or --disable-shared was given.
4014
if test "${enable_shared+set}" = set; then
4015
  enableval="$enable_shared"
4016
  p=${PACKAGE-default}
4017
    case $enableval in
4018
    yes) enable_shared=yes ;;
4019
    no) enable_shared=no ;;
4020
    *)
4021
      enable_shared=no
4022
      # Look at the argument we got.  We use all the common list separators.
4023
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4024
      for pkg in $enableval; do
4025
        IFS="$lt_save_ifs"
4026
        if test "X$pkg" = "X$p"; then
4027
          enable_shared=yes
4028
        fi
4029
      done
4030
      IFS="$lt_save_ifs"
4031
      ;;
4032
    esac
4033
else
4034
  enable_shared=yes
4035
fi;
4036
 
4037
 
4038
 
4039
 
4040
 
4041
 
4042
 
4043
 
4044
# Check whether --enable-static or --disable-static was given.
4045
if test "${enable_static+set}" = set; then
4046
  enableval="$enable_static"
4047
  p=${PACKAGE-default}
4048
    case $enableval in
4049
    yes) enable_static=yes ;;
4050
    no) enable_static=no ;;
4051
    *)
4052
     enable_static=no
4053
      # Look at the argument we got.  We use all the common list separators.
4054
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4055
      for pkg in $enableval; do
4056
        IFS="$lt_save_ifs"
4057
        if test "X$pkg" = "X$p"; then
4058
          enable_static=yes
4059
        fi
4060
      done
4061
      IFS="$lt_save_ifs"
4062
      ;;
4063
    esac
4064
else
4065
  enable_static=yes
4066
fi;
4067
 
4068
 
4069
 
4070
 
4071
 
4072
 
4073
 
4074
 
4075
 
4076
# Check whether --with-pic or --without-pic was given.
4077
if test "${with_pic+set}" = set; then
4078
  withval="$with_pic"
4079
  pic_mode="$withval"
4080
else
4081
  pic_mode=default
4082
fi;
4083
 
4084
test -z "$pic_mode" && pic_mode=default
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
# Check whether --enable-fast-install or --disable-fast-install was given.
4093
if test "${enable_fast_install+set}" = set; then
4094
  enableval="$enable_fast_install"
4095
  p=${PACKAGE-default}
4096
    case $enableval in
4097
    yes) enable_fast_install=yes ;;
4098
    no) enable_fast_install=no ;;
4099
    *)
4100
      enable_fast_install=no
4101
      # Look at the argument we got.  We use all the common list separators.
4102
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103
      for pkg in $enableval; do
4104
        IFS="$lt_save_ifs"
4105
        if test "X$pkg" = "X$p"; then
4106
          enable_fast_install=yes
4107
        fi
4108
      done
4109
      IFS="$lt_save_ifs"
4110
      ;;
4111
    esac
4112
else
4113
  enable_fast_install=yes
4114
fi;
4115
 
4116
 
4117
 
4118
 
4119
 
4120
 
4121
 
4122
 
4123
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4124
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4125
if test "${lt_cv_path_SED+set}" = set; then
4126
  echo $ECHO_N "(cached) $ECHO_C" >&6
4127
else
4128
  # Loop through the user's path and test for sed and gsed.
4129
# Then use that list of sed's as ones to test for truncation.
4130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131
for as_dir in $PATH
4132
do
4133
  IFS=$as_save_IFS
4134
  test -z "$as_dir" && as_dir=.
4135
  for lt_ac_prog in sed gsed; do
4136
    for ac_exec_ext in '' $ac_executable_extensions; do
4137
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4138
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4139
      fi
4140
    done
4141
  done
4142
done
4143
IFS=$as_save_IFS
4144
lt_ac_max=0
4145
lt_ac_count=0
4146
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4147
# along with /bin/sed that truncates output.
4148
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4149
  test ! -f $lt_ac_sed && continue
4150
  cat /dev/null > conftest.in
4151
  lt_ac_count=0
4152
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4153
  # Check for GNU sed and select it if it is found.
4154
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4155
    lt_cv_path_SED=$lt_ac_sed
4156
    break
4157
  fi
4158
  while true; do
4159
    cat conftest.in conftest.in >conftest.tmp
4160
    mv conftest.tmp conftest.in
4161
    cp conftest.in conftest.nl
4162
    echo >>conftest.nl
4163
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4164
    cmp -s conftest.out conftest.nl || break
4165
    # 10000 chars as input seems more than enough
4166
    test $lt_ac_count -gt 10 && break
4167
    lt_ac_count=`expr $lt_ac_count + 1`
4168
    if test $lt_ac_count -gt $lt_ac_max; then
4169
      lt_ac_max=$lt_ac_count
4170
      lt_cv_path_SED=$lt_ac_sed
4171
    fi
4172
  done
4173
done
4174
 
4175
fi
4176
 
4177
SED=$lt_cv_path_SED
4178
 
4179
echo "$as_me:$LINENO: result: $SED" >&5
4180
echo "${ECHO_T}$SED" >&6
4181
 
4182
test -z "$SED" && SED=sed
4183
Xsed="$SED -e 1s/^X//"
4184
 
4185
 
4186
 
4187
 
4188
 
4189
 
4190
 
4191
 
4192
 
4193
 
4194
 
4195
echo "$as_me:$LINENO: checking for egrep" >&5
4196
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4197
if test "${ac_cv_prog_egrep+set}" = set; then
4198
  echo $ECHO_N "(cached) $ECHO_C" >&6
4199
else
4200
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4201
    then ac_cv_prog_egrep='grep -E'
4202
    else ac_cv_prog_egrep='egrep'
4203
    fi
4204
fi
4205
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4206
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4207
 EGREP=$ac_cv_prog_egrep
4208
 
4209
 
4210
echo "$as_me:$LINENO: checking for fgrep" >&5
4211
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4212
if test "${ac_cv_prog_fgrep+set}" = set; then
4213
  echo $ECHO_N "(cached) $ECHO_C" >&6
4214
else
4215
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4216
    then ac_cv_prog_fgrep='grep -F'
4217
    else ac_cv_prog_fgrep='fgrep'
4218
    fi
4219
fi
4220
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4221
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4222
 FGREP=$ac_cv_prog_fgrep
4223
 
4224
 
4225
test -z "$GREP" && GREP=grep
4226
 
4227
 
4228
 
4229
 
4230
 
4231
 
4232
 
4233
 
4234
 
4235
 
4236
 
4237
 
4238
 
4239
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4246
if test "${with_gnu_ld+set}" = set; then
4247
  withval="$with_gnu_ld"
4248
  test "$withval" = no || with_gnu_ld=yes
4249
else
4250
  with_gnu_ld=no
4251
fi;
4252
ac_prog=ld
4253
if test "$GCC" = yes; then
4254
  # Check if gcc -print-prog-name=ld gives a path.
4255
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4256
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4257
  case $host in
4258
  *-*-mingw*)
4259
    # gcc leaves a trailing carriage return which upsets mingw
4260
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4261
  *)
4262
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4263
  esac
4264
  case $ac_prog in
4265
    # Accept absolute paths.
4266
    [\\/]* | ?:[\\/]*)
4267
      re_direlt='/[^/][^/]*/\.\./'
4268
      # Canonicalize the pathname of ld
4269
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4270
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4271
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4272
      done
4273
      test -z "$LD" && LD="$ac_prog"
4274
      ;;
4275
  "")
4276
    # If it fails, then pretend we aren't using GCC.
4277
    ac_prog=ld
4278
    ;;
4279
  *)
4280
    # If it is relative, then search for the first ld in PATH.
4281
    with_gnu_ld=unknown
4282
    ;;
4283
  esac
4284
elif test "$with_gnu_ld" = yes; then
4285
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4286
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4287
else
4288
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4289
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4290
fi
4291
if test "${lt_cv_path_LD+set}" = set; then
4292
  echo $ECHO_N "(cached) $ECHO_C" >&6
4293
else
4294
  if test -z "$LD"; then
4295
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4296
  for ac_dir in $PATH; do
4297
    IFS="$lt_save_ifs"
4298
    test -z "$ac_dir" && ac_dir=.
4299
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4300
      lt_cv_path_LD="$ac_dir/$ac_prog"
4301
      # Check to see if the program is GNU ld.  I'd rather use --version,
4302
      # but apparently some variants of GNU ld only accept -v.
4303
      # Break only if it was the GNU/non-GNU ld that we prefer.
4304
      case `"$lt_cv_path_LD" -v 2>&1 
4305
      *GNU* | *'with BFD'*)
4306
        test "$with_gnu_ld" != no && break
4307
        ;;
4308
      *)
4309
        test "$with_gnu_ld" != yes && break
4310
        ;;
4311
      esac
4312
    fi
4313
  done
4314
  IFS="$lt_save_ifs"
4315
else
4316
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4317
fi
4318
fi
4319
 
4320
LD="$lt_cv_path_LD"
4321
if test -n "$LD"; then
4322
  echo "$as_me:$LINENO: result: $LD" >&5
4323
echo "${ECHO_T}$LD" >&6
4324
else
4325
  echo "$as_me:$LINENO: result: no" >&5
4326
echo "${ECHO_T}no" >&6
4327
fi
4328
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4329
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4330
   { (exit 1); exit 1; }; }
4331
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4332
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4333
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4334
  echo $ECHO_N "(cached) $ECHO_C" >&6
4335
else
4336
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4337
case `$LD -v 2>&1 
4338
*GNU* | *'with BFD'*)
4339
  lt_cv_prog_gnu_ld=yes
4340
  ;;
4341
*)
4342
  lt_cv_prog_gnu_ld=no
4343
  ;;
4344
esac
4345
fi
4346
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4347
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4348
with_gnu_ld=$lt_cv_prog_gnu_ld
4349
 
4350
 
4351
 
4352
 
4353
 
4354
 
4355
 
4356
 
4357
 
4358
 
4359
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4360
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4361
if test "${lt_cv_path_NM+set}" = set; then
4362
  echo $ECHO_N "(cached) $ECHO_C" >&6
4363
else
4364
  if test -n "$NM"; then
4365
  # Let the user override the test.
4366
  lt_cv_path_NM="$NM"
4367
else
4368
  lt_nm_to_check="${ac_tool_prefix}nm"
4369
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4370
    lt_nm_to_check="$lt_nm_to_check nm"
4371
  fi
4372
  for lt_tmp_nm in $lt_nm_to_check; do
4373
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4374
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4375
      IFS="$lt_save_ifs"
4376
      test -z "$ac_dir" && ac_dir=.
4377
      tmp_nm="$ac_dir/$lt_tmp_nm"
4378
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4379
        # Check to see if the nm accepts a BSD-compat flag.
4380
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4381
        #   nm: unknown option "B" ignored
4382
        # Tru64's nm complains that /dev/null is an invalid object file
4383
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4384
        */dev/null* | *'Invalid file or object type'*)
4385
          lt_cv_path_NM="$tmp_nm -B"
4386
          break
4387
          ;;
4388
        *)
4389
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4390
          */dev/null*)
4391
            lt_cv_path_NM="$tmp_nm -p"
4392
            break
4393
            ;;
4394
          *)
4395
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4396
            continue # so that we can try to find one that supports BSD flags
4397
            ;;
4398
          esac
4399
          ;;
4400
        esac
4401
      fi
4402
    done
4403
    IFS="$lt_save_ifs"
4404
  done
4405
  : ${lt_cv_path_NM=no}
4406
fi
4407
fi
4408
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4409
echo "${ECHO_T}$lt_cv_path_NM" >&6
4410
if test "$lt_cv_path_NM" != "no"; then
4411
  NM="$lt_cv_path_NM"
4412
else
4413
  # Didn't find any BSD compatible name lister, look for dumpbin.
4414
  if test -n "$ac_tool_prefix"; then
4415
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4416
  do
4417
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4418
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4419
echo "$as_me:$LINENO: checking for $ac_word" >&5
4420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4422
  echo $ECHO_N "(cached) $ECHO_C" >&6
4423
else
4424
  if test -n "$DUMPBIN"; then
4425
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4426
else
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428
for as_dir in $PATH
4429
do
4430
  IFS=$as_save_IFS
4431
  test -z "$as_dir" && as_dir=.
4432
  for ac_exec_ext in '' $ac_executable_extensions; do
4433
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436
    break 2
4437
  fi
4438
done
4439
done
4440
 
4441
fi
4442
fi
4443
DUMPBIN=$ac_cv_prog_DUMPBIN
4444
if test -n "$DUMPBIN"; then
4445
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4446
echo "${ECHO_T}$DUMPBIN" >&6
4447
else
4448
  echo "$as_me:$LINENO: result: no" >&5
4449
echo "${ECHO_T}no" >&6
4450
fi
4451
 
4452
    test -n "$DUMPBIN" && break
4453
  done
4454
fi
4455
if test -z "$DUMPBIN"; then
4456
  ac_ct_DUMPBIN=$DUMPBIN
4457
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4458
do
4459
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4460
set dummy $ac_prog; ac_word=$2
4461
echo "$as_me:$LINENO: checking for $ac_word" >&5
4462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4464
  echo $ECHO_N "(cached) $ECHO_C" >&6
4465
else
4466
  if test -n "$ac_ct_DUMPBIN"; then
4467
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4468
else
4469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470
for as_dir in $PATH
4471
do
4472
  IFS=$as_save_IFS
4473
  test -z "$as_dir" && as_dir=.
4474
  for ac_exec_ext in '' $ac_executable_extensions; do
4475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478
    break 2
4479
  fi
4480
done
4481
done
4482
 
4483
fi
4484
fi
4485
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4486
if test -n "$ac_ct_DUMPBIN"; then
4487
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4488
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4489
else
4490
  echo "$as_me:$LINENO: result: no" >&5
4491
echo "${ECHO_T}no" >&6
4492
fi
4493
 
4494
  test -n "$ac_ct_DUMPBIN" && break
4495
done
4496
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4497
 
4498
  DUMPBIN=$ac_ct_DUMPBIN
4499
fi
4500
 
4501
 
4502
  if test "$DUMPBIN" != ":"; then
4503
    NM="$DUMPBIN"
4504
  fi
4505
fi
4506
test -z "$NM" && NM=nm
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4514
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4515
if test "${lt_cv_nm_interface+set}" = set; then
4516
  echo $ECHO_N "(cached) $ECHO_C" >&6
4517
else
4518
  lt_cv_nm_interface="BSD nm"
4519
  echo "int some_variable = 0;" > conftest.$ac_ext
4520
  (eval echo "\"\$as_me:4520: $ac_compile\"" >&5)
4521
  (eval "$ac_compile" 2>conftest.err)
4522
  cat conftest.err >&5
4523
  (eval echo "\"\$as_me:4523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4524
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4525
  cat conftest.err >&5
4526
  (eval echo "\"\$as_me:4526: output\"" >&5)
4527
  cat conftest.out >&5
4528
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4529
    lt_cv_nm_interface="MS dumpbin"
4530
  fi
4531
  rm -f conftest*
4532
fi
4533
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4534
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4535
 
4536
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4537
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4538
LN_S=$as_ln_s
4539
if test "$LN_S" = "ln -s"; then
4540
  echo "$as_me:$LINENO: result: yes" >&5
4541
echo "${ECHO_T}yes" >&6
4542
else
4543
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4544
echo "${ECHO_T}no, using $LN_S" >&6
4545
fi
4546
 
4547
# find the maximum length of command line arguments
4548
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4549
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4550
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4551
  echo $ECHO_N "(cached) $ECHO_C" >&6
4552
else
4553
    i=0
4554
  teststring="ABCD"
4555
 
4556
  case $build_os in
4557
  msdosdjgpp*)
4558
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4559
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4560
    # during glob expansion).  Even if it were fixed, the result of this
4561
    # check would be larger than it should be.
4562
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4563
    ;;
4564
 
4565
  gnu*)
4566
    # Under GNU Hurd, this test is not required because there is
4567
    # no limit to the length of command line arguments.
4568
    # Libtool will interpret -1 as no limit whatsoever
4569
    lt_cv_sys_max_cmd_len=-1;
4570
    ;;
4571
 
4572
  cygwin* | mingw*)
4573
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4574
    # about 5 minutes as the teststring grows exponentially.
4575
    # Worse, since 9x/ME are not pre-emptively multitasking,
4576
    # you end up with a "frozen" computer, even though with patience
4577
    # the test eventually succeeds (with a max line length of 256k).
4578
    # Instead, let's just punt: use the minimum linelength reported by
4579
    # all of the supported platforms: 8192 (on NT/2K/XP).
4580
    lt_cv_sys_max_cmd_len=8192;
4581
    ;;
4582
 
4583
  amigaos*)
4584
    # On AmigaOS with pdksh, this test takes hours, literally.
4585
    # So we just punt and use a minimum line length of 8192.
4586
    lt_cv_sys_max_cmd_len=8192;
4587
    ;;
4588
 
4589
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4590
    # This has been around since 386BSD, at least.  Likely further.
4591
    if test -x /sbin/sysctl; then
4592
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4593
    elif test -x /usr/sbin/sysctl; then
4594
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4595
    else
4596
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4597
    fi
4598
    # And add a safety zone
4599
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4601
    ;;
4602
 
4603
  interix*)
4604
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4605
    lt_cv_sys_max_cmd_len=196608
4606
    ;;
4607
 
4608
  osf*)
4609
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4610
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4611
    # nice to cause kernel panics so lets avoid the loop below.
4612
    # First set a reasonable default.
4613
    lt_cv_sys_max_cmd_len=16384
4614
    #
4615
    if test -x /sbin/sysconfig; then
4616
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4617
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4618
      esac
4619
    fi
4620
    ;;
4621
  sco3.2v5*)
4622
    lt_cv_sys_max_cmd_len=102400
4623
    ;;
4624
  sysv5* | sco5v6* | sysv4.2uw2*)
4625
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4626
    if test -n "$kargmax"; then
4627
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4628
    else
4629
      lt_cv_sys_max_cmd_len=32768
4630
    fi
4631
    ;;
4632
  *)
4633
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4634
    if test -n $lt_cv_sys_max_cmd_len; then
4635
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4636
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637
    else
4638
      # Make teststring a little bigger before we do anything with it.
4639
      # a 1K string should be a reasonable start.
4640
      for i in 1 2 3 4 5 6 7 8 ; do
4641
        teststring=$teststring$teststring
4642
      done
4643
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4644
      # If test is not a shell built-in, we'll probably end up computing a
4645
      # maximum length that is only half of the actual maximum length, but
4646
      # we can't tell.
4647
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4648
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4649
              test $i != 17 # 1/2 MB should be enough
4650
      do
4651
        i=`expr $i + 1`
4652
        teststring=$teststring$teststring
4653
      done
4654
      # Only check the string length outside the loop.
4655
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4656
      teststring=
4657
      # Add a significant safety factor because C++ compilers can tack on
4658
      # massive amounts of additional arguments before passing them to the
4659
      # linker.  It appears as though 1/2 is a usable value.
4660
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4661
    fi
4662
    ;;
4663
  esac
4664
 
4665
fi
4666
 
4667
if test -n $lt_cv_sys_max_cmd_len ; then
4668
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4669
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4670
else
4671
  echo "$as_me:$LINENO: result: none" >&5
4672
echo "${ECHO_T}none" >&6
4673
fi
4674
max_cmd_len=$lt_cv_sys_max_cmd_len
4675
 
4676
 
4677
 
4678
 
4679
 
4680
 
4681
 
4682
: ${CP="cp -f"}
4683
: ${MV="mv -f"}
4684
: ${RM="rm -f"}
4685
 
4686
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4687
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4688
# Try some XSI features
4689
xsi_shell=no
4690
( _lt_dummy="a/b/c"
4691
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4692
      = c,a/b,, ) >/dev/null 2>&1 \
4693
  && xsi_shell=yes
4694
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4695
echo "${ECHO_T}$xsi_shell" >&6
4696
 
4697
 
4698
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4699
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4700
lt_shell_append=no
4701
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4702
    >/dev/null 2>&1 \
4703
  && lt_shell_append=yes
4704
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4705
echo "${ECHO_T}$lt_shell_append" >&6
4706
 
4707
 
4708
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4709
  lt_unset=unset
4710
else
4711
  lt_unset=false
4712
fi
4713
 
4714
 
4715
 
4716
 
4717
 
4718
# test EBCDIC or ASCII
4719
case `echo X|tr X '\101'` in
4720
 A) # ASCII based system
4721
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4722
  lt_SP2NL='tr \040 \012'
4723
  lt_NL2SP='tr \015\012 \040\040'
4724
  ;;
4725
 *) # EBCDIC based system
4726
  lt_SP2NL='tr \100 \n'
4727
  lt_NL2SP='tr \r\n \100\100'
4728
  ;;
4729
esac
4730
 
4731
 
4732
 
4733
 
4734
 
4735
 
4736
 
4737
 
4738
 
4739
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4740
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4741
if test "${lt_cv_ld_reload_flag+set}" = set; then
4742
  echo $ECHO_N "(cached) $ECHO_C" >&6
4743
else
4744
  lt_cv_ld_reload_flag='-r'
4745
fi
4746
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4747
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4748
reload_flag=$lt_cv_ld_reload_flag
4749
case $reload_flag in
4750
"" | " "*) ;;
4751
*) reload_flag=" $reload_flag" ;;
4752
esac
4753
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4754
case $host_os in
4755
  darwin*)
4756
    if test "$GCC" = yes; then
4757
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4758
    else
4759
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4760
    fi
4761
    ;;
4762
esac
4763
 
4764
 
4765
 
4766
 
4767
 
4768
 
4769
 
4770
 
4771
 
4772
 
4773
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4774
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4775
if test "${lt_cv_deplibs_check_method+set}" = set; then
4776
  echo $ECHO_N "(cached) $ECHO_C" >&6
4777
else
4778
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4779
lt_cv_file_magic_test_file=
4780
lt_cv_deplibs_check_method='unknown'
4781
# Need to set the preceding variable on all platforms that support
4782
# interlibrary dependencies.
4783
# 'none' -- dependencies not supported.
4784
# `unknown' -- same as none, but documents that we really don't know.
4785
# 'pass_all' -- all dependencies passed with no checks.
4786
# 'test_compile' -- check by making test program.
4787
# 'file_magic [[regex]]' -- check by looking for files in library path
4788
# which responds to the $file_magic_cmd with a given extended regex.
4789
# If you have `file' or equivalent on your system and you're not sure
4790
# whether `pass_all' will *always* work, you probably want this one.
4791
 
4792
case $host_os in
4793
aix[4-9]*)
4794
  lt_cv_deplibs_check_method=pass_all
4795
  ;;
4796
 
4797
beos*)
4798
  lt_cv_deplibs_check_method=pass_all
4799
  ;;
4800
 
4801
bsdi[45]*)
4802
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4803
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4804
  lt_cv_file_magic_test_file=/shlib/libc.so
4805
  ;;
4806
 
4807
cygwin*)
4808
  # func_win32_libid is a shell function defined in ltmain.sh
4809
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4810
  lt_cv_file_magic_cmd='func_win32_libid'
4811
  ;;
4812
 
4813
mingw* | pw32*)
4814
  # Base MSYS/MinGW do not provide the 'file' command needed by
4815
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4816
  # unless we find 'file', for example because we are cross-compiling.
4817
  if ( file / ) >/dev/null 2>&1; then
4818
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4819
    lt_cv_file_magic_cmd='func_win32_libid'
4820
  else
4821
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4822
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4823
  fi
4824
  ;;
4825
 
4826
darwin* | rhapsody*)
4827
  lt_cv_deplibs_check_method=pass_all
4828
  ;;
4829
 
4830
freebsd* | dragonfly*)
4831
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4832
    case $host_cpu in
4833
    i*86 )
4834
      # Not sure whether the presence of OpenBSD here was a mistake.
4835
      # Let's accept both of them until this is cleared up.
4836
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4837
      lt_cv_file_magic_cmd=/usr/bin/file
4838
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4839
      ;;
4840
    esac
4841
  else
4842
    lt_cv_deplibs_check_method=pass_all
4843
  fi
4844
  ;;
4845
 
4846
gnu*)
4847
  lt_cv_deplibs_check_method=pass_all
4848
  ;;
4849
 
4850
hpux10.20* | hpux11*)
4851
  lt_cv_file_magic_cmd=/usr/bin/file
4852
  case $host_cpu in
4853
  ia64*)
4854
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4855
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4856
    ;;
4857
  hppa*64*)
4858
    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]'
4859
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4860
    ;;
4861
  *)
4862
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4863
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4864
    ;;
4865
  esac
4866
  ;;
4867
 
4868
interix[3-9]*)
4869
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4870
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4871
  ;;
4872
 
4873
irix5* | irix6* | nonstopux*)
4874
  case $LD in
4875
  *-32|*"-32 ") libmagic=32-bit;;
4876
  *-n32|*"-n32 ") libmagic=N32;;
4877
  *-64|*"-64 ") libmagic=64-bit;;
4878
  *) libmagic=never-match;;
4879
  esac
4880
  lt_cv_deplibs_check_method=pass_all
4881
  ;;
4882
 
4883
# This must be Linux ELF.
4884
linux* | k*bsd*-gnu)
4885
  lt_cv_deplibs_check_method=pass_all
4886
  ;;
4887
 
4888
netbsd*)
4889
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4890
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4891
  else
4892
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4893
  fi
4894
  ;;
4895
 
4896
newos6*)
4897
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4898
  lt_cv_file_magic_cmd=/usr/bin/file
4899
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4900
  ;;
4901
 
4902
*nto* | *qnx*)
4903
  lt_cv_deplibs_check_method=pass_all
4904
  ;;
4905
 
4906
openbsd*)
4907
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4908
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4909
  else
4910
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4911
  fi
4912
  ;;
4913
 
4914
osf3* | osf4* | osf5*)
4915
  lt_cv_deplibs_check_method=pass_all
4916
  ;;
4917
 
4918
rdos*)
4919
  lt_cv_deplibs_check_method=pass_all
4920
  ;;
4921
 
4922
solaris*)
4923
  lt_cv_deplibs_check_method=pass_all
4924
  ;;
4925
 
4926
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4927
  lt_cv_deplibs_check_method=pass_all
4928
  ;;
4929
 
4930
sysv4 | sysv4.3*)
4931
  case $host_vendor in
4932
  motorola)
4933
    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]'
4934
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4935
    ;;
4936
  ncr)
4937
    lt_cv_deplibs_check_method=pass_all
4938
    ;;
4939
  sequent)
4940
    lt_cv_file_magic_cmd='/bin/file'
4941
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4942
    ;;
4943
  sni)
4944
    lt_cv_file_magic_cmd='/bin/file'
4945
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4946
    lt_cv_file_magic_test_file=/lib/libc.so
4947
    ;;
4948
  siemens)
4949
    lt_cv_deplibs_check_method=pass_all
4950
    ;;
4951
  pc)
4952
    lt_cv_deplibs_check_method=pass_all
4953
    ;;
4954
  esac
4955
  ;;
4956
 
4957
tpf*)
4958
  lt_cv_deplibs_check_method=pass_all
4959
  ;;
4960
esac
4961
 
4962
fi
4963
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4964
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4965
file_magic_cmd=$lt_cv_file_magic_cmd
4966
deplibs_check_method=$lt_cv_deplibs_check_method
4967
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4968
 
4969
 
4970
 
4971
 
4972
 
4973
 
4974
 
4975
 
4976
 
4977
 
4978
 
4979
 
4980
if test -n "$ac_tool_prefix"; then
4981
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4982
set dummy ${ac_tool_prefix}ar; ac_word=$2
4983
echo "$as_me:$LINENO: checking for $ac_word" >&5
4984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985
if test "${ac_cv_prog_AR+set}" = set; then
4986
  echo $ECHO_N "(cached) $ECHO_C" >&6
4987
else
4988
  if test -n "$AR"; then
4989
  ac_cv_prog_AR="$AR" # Let the user override the test.
4990
else
4991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992
for as_dir in $PATH
4993
do
4994
  IFS=$as_save_IFS
4995
  test -z "$as_dir" && as_dir=.
4996
  for ac_exec_ext in '' $ac_executable_extensions; do
4997
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998
    ac_cv_prog_AR="${ac_tool_prefix}ar"
4999
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000
    break 2
5001
  fi
5002
done
5003
done
5004
 
5005
fi
5006
fi
5007
AR=$ac_cv_prog_AR
5008
if test -n "$AR"; then
5009
  echo "$as_me:$LINENO: result: $AR" >&5
5010
echo "${ECHO_T}$AR" >&6
5011
else
5012
  echo "$as_me:$LINENO: result: no" >&5
5013
echo "${ECHO_T}no" >&6
5014
fi
5015
 
5016
fi
5017
if test -z "$ac_cv_prog_AR"; then
5018
  ac_ct_AR=$AR
5019
  # Extract the first word of "ar", so it can be a program name with args.
5020
set dummy ar; ac_word=$2
5021
echo "$as_me:$LINENO: checking for $ac_word" >&5
5022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5024
  echo $ECHO_N "(cached) $ECHO_C" >&6
5025
else
5026
  if test -n "$ac_ct_AR"; then
5027
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5028
else
5029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030
for as_dir in $PATH
5031
do
5032
  IFS=$as_save_IFS
5033
  test -z "$as_dir" && as_dir=.
5034
  for ac_exec_ext in '' $ac_executable_extensions; do
5035
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036
    ac_cv_prog_ac_ct_AR="ar"
5037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038
    break 2
5039
  fi
5040
done
5041
done
5042
 
5043
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5044
fi
5045
fi
5046
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5047
if test -n "$ac_ct_AR"; then
5048
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5049
echo "${ECHO_T}$ac_ct_AR" >&6
5050
else
5051
  echo "$as_me:$LINENO: result: no" >&5
5052
echo "${ECHO_T}no" >&6
5053
fi
5054
 
5055
  AR=$ac_ct_AR
5056
else
5057
  AR="$ac_cv_prog_AR"
5058
fi
5059
 
5060
test -z "$AR" && AR=ar
5061
test -z "$AR_FLAGS" && AR_FLAGS=cru
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
 
5071
 
5072
 
5073
if test -n "$ac_tool_prefix"; then
5074
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5075
set dummy ${ac_tool_prefix}strip; ac_word=$2
5076
echo "$as_me:$LINENO: checking for $ac_word" >&5
5077
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5078
if test "${ac_cv_prog_STRIP+set}" = set; then
5079
  echo $ECHO_N "(cached) $ECHO_C" >&6
5080
else
5081
  if test -n "$STRIP"; then
5082
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5083
else
5084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085
for as_dir in $PATH
5086
do
5087
  IFS=$as_save_IFS
5088
  test -z "$as_dir" && as_dir=.
5089
  for ac_exec_ext in '' $ac_executable_extensions; do
5090
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5092
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093
    break 2
5094
  fi
5095
done
5096
done
5097
 
5098
fi
5099
fi
5100
STRIP=$ac_cv_prog_STRIP
5101
if test -n "$STRIP"; then
5102
  echo "$as_me:$LINENO: result: $STRIP" >&5
5103
echo "${ECHO_T}$STRIP" >&6
5104
else
5105
  echo "$as_me:$LINENO: result: no" >&5
5106
echo "${ECHO_T}no" >&6
5107
fi
5108
 
5109
fi
5110
if test -z "$ac_cv_prog_STRIP"; then
5111
  ac_ct_STRIP=$STRIP
5112
  # Extract the first word of "strip", so it can be a program name with args.
5113
set dummy strip; ac_word=$2
5114
echo "$as_me:$LINENO: checking for $ac_word" >&5
5115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5117
  echo $ECHO_N "(cached) $ECHO_C" >&6
5118
else
5119
  if test -n "$ac_ct_STRIP"; then
5120
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5121
else
5122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123
for as_dir in $PATH
5124
do
5125
  IFS=$as_save_IFS
5126
  test -z "$as_dir" && as_dir=.
5127
  for ac_exec_ext in '' $ac_executable_extensions; do
5128
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129
    ac_cv_prog_ac_ct_STRIP="strip"
5130
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131
    break 2
5132
  fi
5133
done
5134
done
5135
 
5136
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5137
fi
5138
fi
5139
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5140
if test -n "$ac_ct_STRIP"; then
5141
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5142
echo "${ECHO_T}$ac_ct_STRIP" >&6
5143
else
5144
  echo "$as_me:$LINENO: result: no" >&5
5145
echo "${ECHO_T}no" >&6
5146
fi
5147
 
5148
  STRIP=$ac_ct_STRIP
5149
else
5150
  STRIP="$ac_cv_prog_STRIP"
5151
fi
5152
 
5153
test -z "$STRIP" && STRIP=:
5154
 
5155
 
5156
 
5157
 
5158
 
5159
 
5160
if test -n "$ac_tool_prefix"; then
5161
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5162
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5163
echo "$as_me:$LINENO: checking for $ac_word" >&5
5164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165
if test "${ac_cv_prog_RANLIB+set}" = set; then
5166
  echo $ECHO_N "(cached) $ECHO_C" >&6
5167
else
5168
  if test -n "$RANLIB"; then
5169
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5170
else
5171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172
for as_dir in $PATH
5173
do
5174
  IFS=$as_save_IFS
5175
  test -z "$as_dir" && as_dir=.
5176
  for ac_exec_ext in '' $ac_executable_extensions; do
5177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180
    break 2
5181
  fi
5182
done
5183
done
5184
 
5185
fi
5186
fi
5187
RANLIB=$ac_cv_prog_RANLIB
5188
if test -n "$RANLIB"; then
5189
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5190
echo "${ECHO_T}$RANLIB" >&6
5191
else
5192
  echo "$as_me:$LINENO: result: no" >&5
5193
echo "${ECHO_T}no" >&6
5194
fi
5195
 
5196
fi
5197
if test -z "$ac_cv_prog_RANLIB"; then
5198
  ac_ct_RANLIB=$RANLIB
5199
  # Extract the first word of "ranlib", so it can be a program name with args.
5200
set dummy ranlib; ac_word=$2
5201
echo "$as_me:$LINENO: checking for $ac_word" >&5
5202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5204
  echo $ECHO_N "(cached) $ECHO_C" >&6
5205
else
5206
  if test -n "$ac_ct_RANLIB"; then
5207
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5208
else
5209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210
for as_dir in $PATH
5211
do
5212
  IFS=$as_save_IFS
5213
  test -z "$as_dir" && as_dir=.
5214
  for ac_exec_ext in '' $ac_executable_extensions; do
5215
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5217
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218
    break 2
5219
  fi
5220
done
5221
done
5222
 
5223
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5224
fi
5225
fi
5226
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5227
if test -n "$ac_ct_RANLIB"; then
5228
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5229
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5230
else
5231
  echo "$as_me:$LINENO: result: no" >&5
5232
echo "${ECHO_T}no" >&6
5233
fi
5234
 
5235
  RANLIB=$ac_ct_RANLIB
5236
else
5237
  RANLIB="$ac_cv_prog_RANLIB"
5238
fi
5239
 
5240
test -z "$RANLIB" && RANLIB=:
5241
 
5242
 
5243
 
5244
 
5245
 
5246
 
5247
# Determine commands to create old-style static archives.
5248
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5249
old_postinstall_cmds='chmod 644 $oldlib'
5250
old_postuninstall_cmds=
5251
 
5252
if test -n "$RANLIB"; then
5253
  case $host_os in
5254
  openbsd*)
5255
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5256
    ;;
5257
  *)
5258
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5259
    ;;
5260
  esac
5261
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5262
fi
5263
 
5264
 
5265
 
5266
 
5267
 
5268
 
5269
 
5270
 
5271
 
5272
 
5273
 
5274
 
5275
 
5276
 
5277
 
5278
 
5279
 
5280
 
5281
 
5282
 
5283
 
5284
 
5285
 
5286
 
5287
 
5288
 
5289
 
5290
 
5291
 
5292
 
5293
 
5294
 
5295
 
5296
 
5297
# If no C compiler was specified, use CC.
5298
LTCC=${LTCC-"$CC"}
5299
 
5300
# If no C compiler flags were specified, use CFLAGS.
5301
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5302
 
5303
# Allow CC to be a program name with arguments.
5304
compiler=$CC
5305
 
5306
 
5307
# Check for command to grab the raw symbol name followed by C symbol from nm.
5308
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5309
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5310
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5311
  echo $ECHO_N "(cached) $ECHO_C" >&6
5312
else
5313
 
5314
# These are sane defaults that work on at least a few old systems.
5315
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5316
 
5317
# Character class describing NM global symbol codes.
5318
symcode='[BCDEGRST]'
5319
 
5320
# Regexp to match symbols that can be accessed directly from C.
5321
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5322
 
5323
# Define system-specific variables.
5324
case $host_os in
5325
aix*)
5326
  symcode='[BCDT]'
5327
  ;;
5328
cygwin* | mingw* | pw32*)
5329
  symcode='[ABCDGISTW]'
5330
  ;;
5331
hpux*)
5332
  if test "$host_cpu" = ia64; then
5333
    symcode='[ABCDEGRST]'
5334
  fi
5335
  ;;
5336
irix* | nonstopux*)
5337
  symcode='[BCDEGRST]'
5338
  ;;
5339
osf*)
5340
  symcode='[BCDEGQRST]'
5341
  ;;
5342
solaris*)
5343
  symcode='[BDRT]'
5344
  ;;
5345
sco3.2v5*)
5346
  symcode='[DT]'
5347
  ;;
5348
sysv4.2uw2*)
5349
  symcode='[DT]'
5350
  ;;
5351
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5352
  symcode='[ABDT]'
5353
  ;;
5354
sysv4)
5355
  symcode='[DFNSTU]'
5356
  ;;
5357
esac
5358
 
5359
# If we're using GNU nm, then use its standard symbol codes.
5360
case `$NM -V 2>&1` in
5361
*GNU* | *'with BFD'*)
5362
  symcode='[ABCDGIRSTW]' ;;
5363
esac
5364
 
5365
# Transform an extracted symbol line into a proper C declaration.
5366
# Some systems (esp. on ia64) link data and code symbols differently,
5367
# so use this general approach.
5368
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5369
 
5370
# Transform an extracted symbol line into symbol name and symbol address
5371
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5372
 
5373
# Handle CRLF in mingw tool chain
5374
opt_cr=
5375
case $build_os in
5376
mingw*)
5377
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5378
  ;;
5379
esac
5380
 
5381
# Try without a prefix underscore, then with it.
5382
for ac_symprfx in "" "_"; do
5383
 
5384
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5385
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5386
 
5387
  # Write the raw and C identifiers.
5388
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5389
    # Fake it for dumpbin and say T for any non-static function
5390
    # and D for any global variable.
5391
    # Also find C++ and __fastcall symbols from MSVC++,
5392
    # which start with @ or ?.
5393
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5394
"     {last_section=section; section=\$ 3};"\
5395
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5396
"     \$ 0!~/External *\|/{next};"\
5397
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5398
"     {if(hide[section]) next};"\
5399
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5400
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5401
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5402
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5403
"     ' prfx=^$ac_symprfx"
5404
  else
5405
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5406
  fi
5407
 
5408
  # Check to see that the pipe works correctly.
5409
  pipe_works=no
5410
 
5411
  rm -f conftest*
5412
  cat > conftest.$ac_ext <<_LT_EOF
5413
#ifdef __cplusplus
5414
extern "C" {
5415
#endif
5416
char nm_test_var;
5417
void nm_test_func(void);
5418
void nm_test_func(void){}
5419
#ifdef __cplusplus
5420
}
5421
#endif
5422
int main(){nm_test_var='a';nm_test_func();return(0);}
5423
_LT_EOF
5424
 
5425
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426
  (eval $ac_compile) 2>&5
5427
  ac_status=$?
5428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429
  (exit $ac_status); }; then
5430
    # Now try to grab the symbols.
5431
    nlist=conftest.nm
5432
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5433
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5434
  ac_status=$?
5435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
  (exit $ac_status); } && test -s "$nlist"; then
5437
      # Try sorting and uniquifying the output.
5438
      if sort "$nlist" | uniq > "$nlist"T; then
5439
        mv -f "$nlist"T "$nlist"
5440
      else
5441
        rm -f "$nlist"T
5442
      fi
5443
 
5444
      # Make sure that we snagged all the symbols we need.
5445
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5446
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5447
          cat <<_LT_EOF > conftest.$ac_ext
5448
#ifdef __cplusplus
5449
extern "C" {
5450
#endif
5451
 
5452
_LT_EOF
5453
          # Now generate the symbol file.
5454
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5455
 
5456
          cat <<_LT_EOF >> conftest.$ac_ext
5457
 
5458
/* The mapping between symbol names and symbols.  */
5459
const struct {
5460
  const char *name;
5461
  void       *address;
5462
}
5463
lt__PROGRAM__LTX_preloaded_symbols[] =
5464
{
5465
  { "@PROGRAM@", (void *) 0 },
5466
_LT_EOF
5467
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5468
          cat <<\_LT_EOF >> conftest.$ac_ext
5469
  {0, (void *) 0}
5470
};
5471
 
5472
/* This works around a problem in FreeBSD linker */
5473
#ifdef FREEBSD_WORKAROUND
5474
static const void *lt_preloaded_setup() {
5475
  return lt__PROGRAM__LTX_preloaded_symbols;
5476
}
5477
#endif
5478
 
5479
#ifdef __cplusplus
5480
}
5481
#endif
5482
_LT_EOF
5483
          # Now try linking the two files.
5484
          mv conftest.$ac_objext conftstm.$ac_objext
5485
          lt_save_LIBS="$LIBS"
5486
          lt_save_CFLAGS="$CFLAGS"
5487
          LIBS="conftstm.$ac_objext"
5488
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5489
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5490
  (eval $ac_link) 2>&5
5491
  ac_status=$?
5492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5494
            pipe_works=yes
5495
          fi
5496
          LIBS="$lt_save_LIBS"
5497
          CFLAGS="$lt_save_CFLAGS"
5498
        else
5499
          echo "cannot find nm_test_func in $nlist" >&5
5500
        fi
5501
      else
5502
        echo "cannot find nm_test_var in $nlist" >&5
5503
      fi
5504
    else
5505
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5506
    fi
5507
  else
5508
    echo "$progname: failed program was:" >&5
5509
    cat conftest.$ac_ext >&5
5510
  fi
5511
  rm -f conftest* conftst*
5512
 
5513
  # Do not use the global_symbol_pipe unless it works.
5514
  if test "$pipe_works" = yes; then
5515
    break
5516
  else
5517
    lt_cv_sys_global_symbol_pipe=
5518
  fi
5519
done
5520
 
5521
fi
5522
 
5523
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5524
  lt_cv_sys_global_symbol_to_cdecl=
5525
fi
5526
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5527
  echo "$as_me:$LINENO: result: failed" >&5
5528
echo "${ECHO_T}failed" >&6
5529
else
5530
  echo "$as_me:$LINENO: result: ok" >&5
5531
echo "${ECHO_T}ok" >&6
5532
fi
5533
 
5534
 
5535
 
5536
 
5537
 
5538
 
5539
 
5540
 
5541
 
5542
 
5543
 
5544
 
5545
 
5546
 
5547
 
5548
 
5549
 
5550
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5551
if test "${enable_libtool_lock+set}" = set; then
5552
  enableval="$enable_libtool_lock"
5553
 
5554
fi;
5555
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5556
 
5557
# Some flags need to be propagated to the compiler or linker for good
5558
# libtool support.
5559
case $host in
5560
ia64-*-hpux*)
5561
  # Find out which ABI we are using.
5562
  echo 'int i;' > conftest.$ac_ext
5563
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564
  (eval $ac_compile) 2>&5
5565
  ac_status=$?
5566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567
  (exit $ac_status); }; then
5568
    case `/usr/bin/file conftest.$ac_objext` in
5569
      *ELF-32*)
5570
        HPUX_IA64_MODE="32"
5571
        ;;
5572
      *ELF-64*)
5573
        HPUX_IA64_MODE="64"
5574
        ;;
5575
    esac
5576
  fi
5577
  rm -rf conftest*
5578
  ;;
5579
*-*-irix6*)
5580
  # Find out which ABI we are using.
5581
  echo '#line 5581 "configure"' > conftest.$ac_ext
5582
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583
  (eval $ac_compile) 2>&5
5584
  ac_status=$?
5585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586
  (exit $ac_status); }; then
5587
    if test "$lt_cv_prog_gnu_ld" = yes; then
5588
      case `/usr/bin/file conftest.$ac_objext` in
5589
        *32-bit*)
5590
          LD="${LD-ld} -melf32bsmip"
5591
          ;;
5592
        *N32*)
5593
          LD="${LD-ld} -melf32bmipn32"
5594
          ;;
5595
        *64-bit*)
5596
          LD="${LD-ld} -melf64bmip"
5597
        ;;
5598
      esac
5599
    else
5600
      case `/usr/bin/file conftest.$ac_objext` in
5601
        *32-bit*)
5602
          LD="${LD-ld} -32"
5603
          ;;
5604
        *N32*)
5605
          LD="${LD-ld} -n32"
5606
          ;;
5607
        *64-bit*)
5608
          LD="${LD-ld} -64"
5609
          ;;
5610
      esac
5611
    fi
5612
  fi
5613
  rm -rf conftest*
5614
  ;;
5615
 
5616
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5617
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5618
  # Find out which ABI we are using.
5619
  echo 'int i;' > conftest.$ac_ext
5620
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621
  (eval $ac_compile) 2>&5
5622
  ac_status=$?
5623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624
  (exit $ac_status); }; then
5625
    case `/usr/bin/file conftest.o` in
5626
      *32-bit*)
5627
        case $host in
5628
          x86_64-*kfreebsd*-gnu)
5629
            LD="${LD-ld} -m elf_i386_fbsd"
5630
            ;;
5631
          x86_64-*linux*)
5632
            LD="${LD-ld} -m elf_i386"
5633
            ;;
5634
          ppc64-*linux*|powerpc64-*linux*)
5635
            LD="${LD-ld} -m elf32ppclinux"
5636
            ;;
5637
          s390x-*linux*)
5638
            LD="${LD-ld} -m elf_s390"
5639
            ;;
5640
          sparc64-*linux*)
5641
            LD="${LD-ld} -m elf32_sparc"
5642
            ;;
5643
        esac
5644
        ;;
5645
      *64-bit*)
5646
        case $host in
5647
          x86_64-*kfreebsd*-gnu)
5648
            LD="${LD-ld} -m elf_x86_64_fbsd"
5649
            ;;
5650
          x86_64-*linux*)
5651
            LD="${LD-ld} -m elf_x86_64"
5652
            ;;
5653
          ppc*-*linux*|powerpc*-*linux*)
5654
            LD="${LD-ld} -m elf64ppc"
5655
            ;;
5656
          s390*-*linux*|s390*-*tpf*)
5657
            LD="${LD-ld} -m elf64_s390"
5658
            ;;
5659
          sparc*-*linux*)
5660
            LD="${LD-ld} -m elf64_sparc"
5661
            ;;
5662
        esac
5663
        ;;
5664
    esac
5665
  fi
5666
  rm -rf conftest*
5667
  ;;
5668
 
5669
*-*-sco3.2v5*)
5670
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5671
  SAVE_CFLAGS="$CFLAGS"
5672
  CFLAGS="$CFLAGS -belf"
5673
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5674
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5675
if test "${lt_cv_cc_needs_belf+set}" = set; then
5676
  echo $ECHO_N "(cached) $ECHO_C" >&6
5677
else
5678
  ac_ext=c
5679
ac_cpp='$CPP $CPPFLAGS'
5680
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
 
5684
     cat >conftest.$ac_ext <<_ACEOF
5685
/* confdefs.h.  */
5686
_ACEOF
5687
cat confdefs.h >>conftest.$ac_ext
5688
cat >>conftest.$ac_ext <<_ACEOF
5689
/* end confdefs.h.  */
5690
 
5691
int
5692
main ()
5693
{
5694
 
5695
  ;
5696
  return 0;
5697
}
5698
_ACEOF
5699
rm -f conftest.$ac_objext conftest$ac_exeext
5700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701
  (eval $ac_link) 2>conftest.er1
5702
  ac_status=$?
5703
  grep -v '^ *+' conftest.er1 >conftest.err
5704
  rm -f conftest.er1
5705
  cat conftest.err >&5
5706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707
  (exit $ac_status); } &&
5708
         { ac_try='test -z "$ac_c_werror_flag"
5709
                         || test ! -s conftest.err'
5710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711
  (eval $ac_try) 2>&5
5712
  ac_status=$?
5713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714
  (exit $ac_status); }; } &&
5715
         { ac_try='test -s conftest$ac_exeext'
5716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717
  (eval $ac_try) 2>&5
5718
  ac_status=$?
5719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720
  (exit $ac_status); }; }; then
5721
  lt_cv_cc_needs_belf=yes
5722
else
5723
  echo "$as_me: failed program was:" >&5
5724
sed 's/^/| /' conftest.$ac_ext >&5
5725
 
5726
lt_cv_cc_needs_belf=no
5727
fi
5728
rm -f conftest.err conftest.$ac_objext \
5729
      conftest$ac_exeext conftest.$ac_ext
5730
     ac_ext=c
5731
ac_cpp='$CPP $CPPFLAGS'
5732
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735
 
5736
fi
5737
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5738
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5739
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5740
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5741
    CFLAGS="$SAVE_CFLAGS"
5742
  fi
5743
  ;;
5744
sparc*-*solaris*)
5745
  # Find out which ABI we are using.
5746
  echo 'int i;' > conftest.$ac_ext
5747
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748
  (eval $ac_compile) 2>&5
5749
  ac_status=$?
5750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751
  (exit $ac_status); }; then
5752
    case `/usr/bin/file conftest.o` in
5753
    *64-bit*)
5754
      case $lt_cv_prog_gnu_ld in
5755
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5756
      *)    LD="${LD-ld} -64" ;;
5757
      esac
5758
      ;;
5759
    esac
5760
  fi
5761
  rm -rf conftest*
5762
  ;;
5763
esac
5764
 
5765
need_locks="$enable_libtool_lock"
5766
 
5767
ac_ext=c
5768
ac_cpp='$CPP $CPPFLAGS'
5769
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5773
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5774
# On Suns, sometimes $CPP names a directory.
5775
if test -n "$CPP" && test -d "$CPP"; then
5776
  CPP=
5777
fi
5778
if test -z "$CPP"; then
5779
  if test "${ac_cv_prog_CPP+set}" = set; then
5780
  echo $ECHO_N "(cached) $ECHO_C" >&6
5781
else
5782
      # Double quotes because CPP needs to be expanded
5783
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5784
    do
5785
      ac_preproc_ok=false
5786
for ac_c_preproc_warn_flag in '' yes
5787
do
5788
  # Use a header file that comes with gcc, so configuring glibc
5789
  # with a fresh cross-compiler works.
5790
  # Prefer  to  if __STDC__ is defined, since
5791
  #  exists even on freestanding compilers.
5792
  # On the NeXT, cc -E runs the code through the compiler's parser,
5793
  # not just through cpp. "Syntax error" is here to catch this case.
5794
  cat >conftest.$ac_ext <<_ACEOF
5795
/* confdefs.h.  */
5796
_ACEOF
5797
cat confdefs.h >>conftest.$ac_ext
5798
cat >>conftest.$ac_ext <<_ACEOF
5799
/* end confdefs.h.  */
5800
#ifdef __STDC__
5801
# include 
5802
#else
5803
# include 
5804
#endif
5805
                     Syntax error
5806
_ACEOF
5807
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5809
  ac_status=$?
5810
  grep -v '^ *+' conftest.er1 >conftest.err
5811
  rm -f conftest.er1
5812
  cat conftest.err >&5
5813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814
  (exit $ac_status); } >/dev/null; then
5815
  if test -s conftest.err; then
5816
    ac_cpp_err=$ac_c_preproc_warn_flag
5817
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5818
  else
5819
    ac_cpp_err=
5820
  fi
5821
else
5822
  ac_cpp_err=yes
5823
fi
5824
if test -z "$ac_cpp_err"; then
5825
  :
5826
else
5827
  echo "$as_me: failed program was:" >&5
5828
sed 's/^/| /' conftest.$ac_ext >&5
5829
 
5830
  # Broken: fails on valid input.
5831
continue
5832
fi
5833
rm -f conftest.err conftest.$ac_ext
5834
 
5835
  # OK, works on sane cases.  Now check whether non-existent headers
5836
  # can be detected and how.
5837
  cat >conftest.$ac_ext <<_ACEOF
5838
/* confdefs.h.  */
5839
_ACEOF
5840
cat confdefs.h >>conftest.$ac_ext
5841
cat >>conftest.$ac_ext <<_ACEOF
5842
/* end confdefs.h.  */
5843
#include 
5844
_ACEOF
5845
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847
  ac_status=$?
5848
  grep -v '^ *+' conftest.er1 >conftest.err
5849
  rm -f conftest.er1
5850
  cat conftest.err >&5
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852
  (exit $ac_status); } >/dev/null; then
5853
  if test -s conftest.err; then
5854
    ac_cpp_err=$ac_c_preproc_warn_flag
5855
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856
  else
5857
    ac_cpp_err=
5858
  fi
5859
else
5860
  ac_cpp_err=yes
5861
fi
5862
if test -z "$ac_cpp_err"; then
5863
  # Broken: success on invalid input.
5864
continue
5865
else
5866
  echo "$as_me: failed program was:" >&5
5867
sed 's/^/| /' conftest.$ac_ext >&5
5868
 
5869
  # Passes both tests.
5870
ac_preproc_ok=:
5871
break
5872
fi
5873
rm -f conftest.err conftest.$ac_ext
5874
 
5875
done
5876
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5877
rm -f conftest.err conftest.$ac_ext
5878
if $ac_preproc_ok; then
5879
  break
5880
fi
5881
 
5882
    done
5883
    ac_cv_prog_CPP=$CPP
5884
 
5885
fi
5886
  CPP=$ac_cv_prog_CPP
5887
else
5888
  ac_cv_prog_CPP=$CPP
5889
fi
5890
echo "$as_me:$LINENO: result: $CPP" >&5
5891
echo "${ECHO_T}$CPP" >&6
5892
ac_preproc_ok=false
5893
for ac_c_preproc_warn_flag in '' yes
5894
do
5895
  # Use a header file that comes with gcc, so configuring glibc
5896
  # with a fresh cross-compiler works.
5897
  # Prefer  to  if __STDC__ is defined, since
5898
  #  exists even on freestanding compilers.
5899
  # On the NeXT, cc -E runs the code through the compiler's parser,
5900
  # not just through cpp. "Syntax error" is here to catch this case.
5901
  cat >conftest.$ac_ext <<_ACEOF
5902
/* confdefs.h.  */
5903
_ACEOF
5904
cat confdefs.h >>conftest.$ac_ext
5905
cat >>conftest.$ac_ext <<_ACEOF
5906
/* end confdefs.h.  */
5907
#ifdef __STDC__
5908
# include 
5909
#else
5910
# include 
5911
#endif
5912
                     Syntax error
5913
_ACEOF
5914
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916
  ac_status=$?
5917
  grep -v '^ *+' conftest.er1 >conftest.err
5918
  rm -f conftest.er1
5919
  cat conftest.err >&5
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
  (exit $ac_status); } >/dev/null; then
5922
  if test -s conftest.err; then
5923
    ac_cpp_err=$ac_c_preproc_warn_flag
5924
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5925
  else
5926
    ac_cpp_err=
5927
  fi
5928
else
5929
  ac_cpp_err=yes
5930
fi
5931
if test -z "$ac_cpp_err"; then
5932
  :
5933
else
5934
  echo "$as_me: failed program was:" >&5
5935
sed 's/^/| /' conftest.$ac_ext >&5
5936
 
5937
  # Broken: fails on valid input.
5938
continue
5939
fi
5940
rm -f conftest.err conftest.$ac_ext
5941
 
5942
  # OK, works on sane cases.  Now check whether non-existent headers
5943
  # can be detected and how.
5944
  cat >conftest.$ac_ext <<_ACEOF
5945
/* confdefs.h.  */
5946
_ACEOF
5947
cat confdefs.h >>conftest.$ac_ext
5948
cat >>conftest.$ac_ext <<_ACEOF
5949
/* end confdefs.h.  */
5950
#include 
5951
_ACEOF
5952
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954
  ac_status=$?
5955
  grep -v '^ *+' conftest.er1 >conftest.err
5956
  rm -f conftest.er1
5957
  cat conftest.err >&5
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
  (exit $ac_status); } >/dev/null; then
5960
  if test -s conftest.err; then
5961
    ac_cpp_err=$ac_c_preproc_warn_flag
5962
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963
  else
5964
    ac_cpp_err=
5965
  fi
5966
else
5967
  ac_cpp_err=yes
5968
fi
5969
if test -z "$ac_cpp_err"; then
5970
  # Broken: success on invalid input.
5971
continue
5972
else
5973
  echo "$as_me: failed program was:" >&5
5974
sed 's/^/| /' conftest.$ac_ext >&5
5975
 
5976
  # Passes both tests.
5977
ac_preproc_ok=:
5978
break
5979
fi
5980
rm -f conftest.err conftest.$ac_ext
5981
 
5982
done
5983
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984
rm -f conftest.err conftest.$ac_ext
5985
if $ac_preproc_ok; then
5986
  :
5987
else
5988
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5989
See \`config.log' for more details." >&5
5990
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5991
See \`config.log' for more details." >&2;}
5992
   { (exit 1); exit 1; }; }
5993
fi
5994
 
5995
ac_ext=c
5996
ac_cpp='$CPP $CPPFLAGS'
5997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000
 
6001
 
6002
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6003
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6004
if test "${ac_cv_header_stdc+set}" = set; then
6005
  echo $ECHO_N "(cached) $ECHO_C" >&6
6006
else
6007
  cat >conftest.$ac_ext <<_ACEOF
6008
/* confdefs.h.  */
6009
_ACEOF
6010
cat confdefs.h >>conftest.$ac_ext
6011
cat >>conftest.$ac_ext <<_ACEOF
6012
/* end confdefs.h.  */
6013
#include 
6014
#include 
6015
#include 
6016
#include 
6017
 
6018
int
6019
main ()
6020
{
6021
 
6022
  ;
6023
  return 0;
6024
}
6025
_ACEOF
6026
rm -f conftest.$ac_objext
6027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028
  (eval $ac_compile) 2>conftest.er1
6029
  ac_status=$?
6030
  grep -v '^ *+' conftest.er1 >conftest.err
6031
  rm -f conftest.er1
6032
  cat conftest.err >&5
6033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034
  (exit $ac_status); } &&
6035
         { ac_try='test -z "$ac_c_werror_flag"
6036
                         || test ! -s conftest.err'
6037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038
  (eval $ac_try) 2>&5
6039
  ac_status=$?
6040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041
  (exit $ac_status); }; } &&
6042
         { ac_try='test -s conftest.$ac_objext'
6043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044
  (eval $ac_try) 2>&5
6045
  ac_status=$?
6046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047
  (exit $ac_status); }; }; then
6048
  ac_cv_header_stdc=yes
6049
else
6050
  echo "$as_me: failed program was:" >&5
6051
sed 's/^/| /' conftest.$ac_ext >&5
6052
 
6053
ac_cv_header_stdc=no
6054
fi
6055
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6056
 
6057
if test $ac_cv_header_stdc = yes; then
6058
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6059
  cat >conftest.$ac_ext <<_ACEOF
6060
/* confdefs.h.  */
6061
_ACEOF
6062
cat confdefs.h >>conftest.$ac_ext
6063
cat >>conftest.$ac_ext <<_ACEOF
6064
/* end confdefs.h.  */
6065
#include 
6066
 
6067
_ACEOF
6068
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069
  $EGREP "memchr" >/dev/null 2>&1; then
6070
  :
6071
else
6072
  ac_cv_header_stdc=no
6073
fi
6074
rm -f conftest*
6075
 
6076
fi
6077
 
6078
if test $ac_cv_header_stdc = yes; then
6079
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6080
  cat >conftest.$ac_ext <<_ACEOF
6081
/* confdefs.h.  */
6082
_ACEOF
6083
cat confdefs.h >>conftest.$ac_ext
6084
cat >>conftest.$ac_ext <<_ACEOF
6085
/* end confdefs.h.  */
6086
#include 
6087
 
6088
_ACEOF
6089
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090
  $EGREP "free" >/dev/null 2>&1; then
6091
  :
6092
else
6093
  ac_cv_header_stdc=no
6094
fi
6095
rm -f conftest*
6096
 
6097
fi
6098
 
6099
if test $ac_cv_header_stdc = yes; then
6100
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6101
  if test "$cross_compiling" = yes; then
6102
  :
6103
else
6104
  cat >conftest.$ac_ext <<_ACEOF
6105
/* confdefs.h.  */
6106
_ACEOF
6107
cat confdefs.h >>conftest.$ac_ext
6108
cat >>conftest.$ac_ext <<_ACEOF
6109
/* end confdefs.h.  */
6110
#include 
6111
#if ((' ' & 0x0FF) == 0x020)
6112
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6113
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6114
#else
6115
# define ISLOWER(c) \
6116
                   (('a' <= (c) && (c) <= 'i') \
6117
                     || ('j' <= (c) && (c) <= 'r') \
6118
                     || ('s' <= (c) && (c) <= 'z'))
6119
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6120
#endif
6121
 
6122
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6123
int
6124
main ()
6125
{
6126
  int i;
6127
  for (i = 0; i < 256; i++)
6128
    if (XOR (islower (i), ISLOWER (i))
6129
        || toupper (i) != TOUPPER (i))
6130
      exit(2);
6131
  exit (0);
6132
}
6133
_ACEOF
6134
rm -f conftest$ac_exeext
6135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6136
  (eval $ac_link) 2>&5
6137
  ac_status=$?
6138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141
  (eval $ac_try) 2>&5
6142
  ac_status=$?
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
  (exit $ac_status); }; }; then
6145
  :
6146
else
6147
  echo "$as_me: program exited with status $ac_status" >&5
6148
echo "$as_me: failed program was:" >&5
6149
sed 's/^/| /' conftest.$ac_ext >&5
6150
 
6151
( exit $ac_status )
6152
ac_cv_header_stdc=no
6153
fi
6154
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6155
fi
6156
fi
6157
fi
6158
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6159
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6160
if test $ac_cv_header_stdc = yes; then
6161
 
6162
cat >>confdefs.h <<\_ACEOF
6163
#define STDC_HEADERS 1
6164
_ACEOF
6165
 
6166
fi
6167
 
6168
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6169
 
6170
 
6171
 
6172
 
6173
 
6174
 
6175
 
6176
 
6177
 
6178
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6179
                  inttypes.h stdint.h unistd.h
6180
do
6181
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182
echo "$as_me:$LINENO: checking for $ac_header" >&5
6183
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6184
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185
  echo $ECHO_N "(cached) $ECHO_C" >&6
6186
else
6187
  cat >conftest.$ac_ext <<_ACEOF
6188
/* confdefs.h.  */
6189
_ACEOF
6190
cat confdefs.h >>conftest.$ac_ext
6191
cat >>conftest.$ac_ext <<_ACEOF
6192
/* end confdefs.h.  */
6193
$ac_includes_default
6194
 
6195
#include <$ac_header>
6196
_ACEOF
6197
rm -f conftest.$ac_objext
6198
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199
  (eval $ac_compile) 2>conftest.er1
6200
  ac_status=$?
6201
  grep -v '^ *+' conftest.er1 >conftest.err
6202
  rm -f conftest.er1
6203
  cat conftest.err >&5
6204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205
  (exit $ac_status); } &&
6206
         { ac_try='test -z "$ac_c_werror_flag"
6207
                         || test ! -s conftest.err'
6208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209
  (eval $ac_try) 2>&5
6210
  ac_status=$?
6211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212
  (exit $ac_status); }; } &&
6213
         { ac_try='test -s conftest.$ac_objext'
6214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215
  (eval $ac_try) 2>&5
6216
  ac_status=$?
6217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
  (exit $ac_status); }; }; then
6219
  eval "$as_ac_Header=yes"
6220
else
6221
  echo "$as_me: failed program was:" >&5
6222
sed 's/^/| /' conftest.$ac_ext >&5
6223
 
6224
eval "$as_ac_Header=no"
6225
fi
6226
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6227
fi
6228
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6231
  cat >>confdefs.h <<_ACEOF
6232
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6233
_ACEOF
6234
 
6235
fi
6236
 
6237
done
6238
 
6239
 
6240
 
6241
for ac_header in dlfcn.h
6242
do
6243
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6244
echo "$as_me:$LINENO: checking for $ac_header" >&5
6245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247
  echo $ECHO_N "(cached) $ECHO_C" >&6
6248
else
6249
  cat >conftest.$ac_ext <<_ACEOF
6250
/* confdefs.h.  */
6251
_ACEOF
6252
cat confdefs.h >>conftest.$ac_ext
6253
cat >>conftest.$ac_ext <<_ACEOF
6254
/* end confdefs.h.  */
6255
$ac_includes_default
6256
 
6257
#include <$ac_header>
6258
_ACEOF
6259
rm -f conftest.$ac_objext
6260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261
  (eval $ac_compile) 2>conftest.er1
6262
  ac_status=$?
6263
  grep -v '^ *+' conftest.er1 >conftest.err
6264
  rm -f conftest.er1
6265
  cat conftest.err >&5
6266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267
  (exit $ac_status); } &&
6268
         { ac_try='test -z "$ac_c_werror_flag"
6269
                         || test ! -s conftest.err'
6270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271
  (eval $ac_try) 2>&5
6272
  ac_status=$?
6273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274
  (exit $ac_status); }; } &&
6275
         { ac_try='test -s conftest.$ac_objext'
6276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277
  (eval $ac_try) 2>&5
6278
  ac_status=$?
6279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280
  (exit $ac_status); }; }; then
6281
  eval "$as_ac_Header=yes"
6282
else
6283
  echo "$as_me: failed program was:" >&5
6284
sed 's/^/| /' conftest.$ac_ext >&5
6285
 
6286
eval "$as_ac_Header=no"
6287
fi
6288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289
fi
6290
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6291
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6292
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6293
  cat >>confdefs.h <<_ACEOF
6294
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6295
_ACEOF
6296
 
6297
fi
6298
 
6299
done
6300
 
6301
 
6302
 
6303
# This can be used to rebuild libtool when needed
6304
LIBTOOL_DEPS="$ltmain"
6305
 
6306
# Always use our own libtool.
6307
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6308
 
6309
 
6310
 
6311
 
6312
 
6313
 
6314
 
6315
 
6316
 
6317
 
6318
 
6319
 
6320
 
6321
 
6322
 
6323
 
6324
 
6325
 
6326
 
6327
 
6328
 
6329
 
6330
 
6331
 
6332
 
6333
test -z "$LN_S" && LN_S="ln -s"
6334
 
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
if test -n "${ZSH_VERSION+set}" ; then
6349
   setopt NO_GLOB_SUBST
6350
fi
6351
 
6352
echo "$as_me:$LINENO: checking for objdir" >&5
6353
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6354
if test "${lt_cv_objdir+set}" = set; then
6355
  echo $ECHO_N "(cached) $ECHO_C" >&6
6356
else
6357
  rm -f .libs 2>/dev/null
6358
mkdir .libs 2>/dev/null
6359
if test -d .libs; then
6360
  lt_cv_objdir=.libs
6361
else
6362
  # MS-DOS does not allow filenames that begin with a dot.
6363
  lt_cv_objdir=_libs
6364
fi
6365
rmdir .libs 2>/dev/null
6366
fi
6367
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6368
echo "${ECHO_T}$lt_cv_objdir" >&6
6369
objdir=$lt_cv_objdir
6370
 
6371
 
6372
 
6373
 
6374
 
6375
cat >>confdefs.h <<_ACEOF
6376
#define LT_OBJDIR "$lt_cv_objdir/"
6377
_ACEOF
6378
 
6379
 
6380
 
6381
 
6382
 
6383
 
6384
 
6385
 
6386
 
6387
 
6388
 
6389
 
6390
 
6391
 
6392
 
6393
 
6394
 
6395
case $host_os in
6396
aix3*)
6397
  # AIX sometimes has problems with the GCC collect2 program.  For some
6398
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6399
  # vanish in a puff of smoke.
6400
  if test "X${COLLECT_NAMES+set}" != Xset; then
6401
    COLLECT_NAMES=
6402
    export COLLECT_NAMES
6403
  fi
6404
  ;;
6405
esac
6406
 
6407
# Sed substitution that helps us do robust quoting.  It backslashifies
6408
# metacharacters that are still active within double-quoted strings.
6409
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6410
 
6411
# Same as above, but do not quote variable references.
6412
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6413
 
6414
# Sed substitution to delay expansion of an escaped shell variable in a
6415
# double_quote_subst'ed string.
6416
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417
 
6418
# Sed substitution to delay expansion of an escaped single quote.
6419
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6420
 
6421
# Sed substitution to avoid accidental globbing in evaled expressions
6422
no_glob_subst='s/\*/\\\*/g'
6423
 
6424
# Global variables:
6425
ofile=libtool
6426
can_build_shared=yes
6427
 
6428
# All known linkers require a `.a' archive for static linking (except MSVC,
6429
# which needs '.lib').
6430
libext=a
6431
 
6432
with_gnu_ld="$lt_cv_prog_gnu_ld"
6433
 
6434
old_CC="$CC"
6435
old_CFLAGS="$CFLAGS"
6436
 
6437
# Set sane defaults for various variables
6438
test -z "$CC" && CC=cc
6439
test -z "$LTCC" && LTCC=$CC
6440
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6441
test -z "$LD" && LD=ld
6442
test -z "$ac_objext" && ac_objext=o
6443
 
6444
for cc_temp in $compiler""; do
6445
  case $cc_temp in
6446
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6447
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6448
    \-*) ;;
6449
    *) break;;
6450
  esac
6451
done
6452
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6453
 
6454
 
6455
# Only perform the check for file, if the check method requires it
6456
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6457
case $deplibs_check_method in
6458
file_magic*)
6459
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6460
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6461
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6462
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
6464
else
6465
  case $MAGIC_CMD in
6466
[\\/*] |  ?:[\\/]*)
6467
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6468
  ;;
6469
*)
6470
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6471
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6472
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6473
  for ac_dir in $ac_dummy; do
6474
    IFS="$lt_save_ifs"
6475
    test -z "$ac_dir" && ac_dir=.
6476
    if test -f $ac_dir/${ac_tool_prefix}file; then
6477
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6478
      if test -n "$file_magic_test_file"; then
6479
        case $deplibs_check_method in
6480
        "file_magic "*)
6481
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6482
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6484
            $EGREP "$file_magic_regex" > /dev/null; then
6485
            :
6486
          else
6487
            cat <<_LT_EOF 1>&2
6488
 
6489
*** Warning: the command libtool uses to detect shared libraries,
6490
*** $file_magic_cmd, produces output that libtool cannot recognize.
6491
*** The result is that libtool may fail to recognize shared libraries
6492
*** as such.  This will affect the creation of libtool libraries that
6493
*** depend on shared libraries, but programs linked with such libtool
6494
*** libraries will work regardless of this problem.  Nevertheless, you
6495
*** may want to report the problem to your system manager and/or to
6496
*** bug-libtool@gnu.org
6497
 
6498
_LT_EOF
6499
          fi ;;
6500
        esac
6501
      fi
6502
      break
6503
    fi
6504
  done
6505
  IFS="$lt_save_ifs"
6506
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6507
  ;;
6508
esac
6509
fi
6510
 
6511
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512
if test -n "$MAGIC_CMD"; then
6513
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6514
echo "${ECHO_T}$MAGIC_CMD" >&6
6515
else
6516
  echo "$as_me:$LINENO: result: no" >&5
6517
echo "${ECHO_T}no" >&6
6518
fi
6519
 
6520
 
6521
 
6522
 
6523
 
6524
if test -z "$lt_cv_path_MAGIC_CMD"; then
6525
  if test -n "$ac_tool_prefix"; then
6526
    echo "$as_me:$LINENO: checking for file" >&5
6527
echo $ECHO_N "checking for file... $ECHO_C" >&6
6528
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6529
  echo $ECHO_N "(cached) $ECHO_C" >&6
6530
else
6531
  case $MAGIC_CMD in
6532
[\\/*] |  ?:[\\/]*)
6533
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6534
  ;;
6535
*)
6536
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6537
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6539
  for ac_dir in $ac_dummy; do
6540
    IFS="$lt_save_ifs"
6541
    test -z "$ac_dir" && ac_dir=.
6542
    if test -f $ac_dir/file; then
6543
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6544
      if test -n "$file_magic_test_file"; then
6545
        case $deplibs_check_method in
6546
        "file_magic "*)
6547
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6548
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6549
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6550
            $EGREP "$file_magic_regex" > /dev/null; then
6551
            :
6552
          else
6553
            cat <<_LT_EOF 1>&2
6554
 
6555
*** Warning: the command libtool uses to detect shared libraries,
6556
*** $file_magic_cmd, produces output that libtool cannot recognize.
6557
*** The result is that libtool may fail to recognize shared libraries
6558
*** as such.  This will affect the creation of libtool libraries that
6559
*** depend on shared libraries, but programs linked with such libtool
6560
*** libraries will work regardless of this problem.  Nevertheless, you
6561
*** may want to report the problem to your system manager and/or to
6562
*** bug-libtool@gnu.org
6563
 
6564
_LT_EOF
6565
          fi ;;
6566
        esac
6567
      fi
6568
      break
6569
    fi
6570
  done
6571
  IFS="$lt_save_ifs"
6572
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6573
  ;;
6574
esac
6575
fi
6576
 
6577
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6578
if test -n "$MAGIC_CMD"; then
6579
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6580
echo "${ECHO_T}$MAGIC_CMD" >&6
6581
else
6582
  echo "$as_me:$LINENO: result: no" >&5
6583
echo "${ECHO_T}no" >&6
6584
fi
6585
 
6586
 
6587
  else
6588
    MAGIC_CMD=:
6589
  fi
6590
fi
6591
 
6592
  fi
6593
  ;;
6594
esac
6595
 
6596
# Use C for the default configuration in the libtool script
6597
 
6598
lt_save_CC="$CC"
6599
ac_ext=c
6600
ac_cpp='$CPP $CPPFLAGS'
6601
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
 
6605
 
6606
# Source file extension for C test sources.
6607
ac_ext=c
6608
 
6609
# Object file extension for compiled C test sources.
6610
objext=o
6611
objext=$objext
6612
 
6613
# Code to be used in simple compile tests
6614
lt_simple_compile_test_code="int some_variable = 0;"
6615
 
6616
# Code to be used in simple link tests
6617
lt_simple_link_test_code='int main(){return(0);}'
6618
 
6619
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
# If no C compiler was specified, use CC.
6626
LTCC=${LTCC-"$CC"}
6627
 
6628
# If no C compiler flags were specified, use CFLAGS.
6629
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6630
 
6631
# Allow CC to be a program name with arguments.
6632
compiler=$CC
6633
 
6634
# Save the default compiler, since it gets overwritten when the other
6635
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6636
compiler_DEFAULT=$CC
6637
 
6638
# save warnings/boilerplate of simple test code
6639
ac_outfile=conftest.$ac_objext
6640
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6641
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6642
_lt_compiler_boilerplate=`cat conftest.err`
6643
$RM conftest*
6644
 
6645
ac_outfile=conftest.$ac_objext
6646
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6647
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6648
_lt_linker_boilerplate=`cat conftest.err`
6649
$RM conftest*
6650
 
6651
 
6652
## CAVEAT EMPTOR:
6653
## There is no encapsulation within the following macros, do not change
6654
## the running order or otherwise move them around unless you know exactly
6655
## what you are doing...
6656
if test -n "$compiler"; then
6657
 
6658
lt_prog_compiler_no_builtin_flag=
6659
 
6660
if test "$GCC" = yes; then
6661
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6662
 
6663
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6664
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6665
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6666
  echo $ECHO_N "(cached) $ECHO_C" >&6
6667
else
6668
  lt_cv_prog_compiler_rtti_exceptions=no
6669
   ac_outfile=conftest.$ac_objext
6670
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6671
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6672
   # Insert the option either (1) after the last *FLAGS variable, or
6673
   # (2) before a word containing "conftest.", or (3) at the end.
6674
   # Note that $ac_compile itself does not contain backslashes and begins
6675
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6676
   # The option is referenced via a variable to avoid confusing sed.
6677
   lt_compile=`echo "$ac_compile" | $SED \
6678
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6679
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6680
   -e 's:$: $lt_compiler_flag:'`
6681
   (eval echo "\"\$as_me:6681: $lt_compile\"" >&5)
6682
   (eval "$lt_compile" 2>conftest.err)
6683
   ac_status=$?
6684
   cat conftest.err >&5
6685
   echo "$as_me:6685: \$? = $ac_status" >&5
6686
   if (exit $ac_status) && test -s "$ac_outfile"; then
6687
     # The compiler can only warn and ignore the option if not recognized
6688
     # So say no if there are warnings other than the usual output.
6689
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6690
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6691
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6692
       lt_cv_prog_compiler_rtti_exceptions=yes
6693
     fi
6694
   fi
6695
   $RM conftest*
6696
 
6697
fi
6698
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6699
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6700
 
6701
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6702
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6703
else
6704
    :
6705
fi
6706
 
6707
fi
6708
 
6709
 
6710
 
6711
 
6712
 
6713
 
6714
  lt_prog_compiler_wl=
6715
lt_prog_compiler_pic=
6716
lt_prog_compiler_static=
6717
 
6718
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6719
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6720
 
6721
  if test "$GCC" = yes; then
6722
    lt_prog_compiler_wl='-Wl,'
6723
    lt_prog_compiler_static='-static'
6724
 
6725
    case $host_os in
6726
      aix*)
6727
      # All AIX code is PIC.
6728
      if test "$host_cpu" = ia64; then
6729
        # AIX 5 now supports IA64 processor
6730
        lt_prog_compiler_static='-Bstatic'
6731
      fi
6732
      ;;
6733
 
6734
    amigaos*)
6735
      if test "$host_cpu" = m68k; then
6736
        # FIXME: we need at least 68020 code to build shared libraries, but
6737
        # adding the `-m68020' flag to GCC prevents building anything better,
6738
        # like `-m68040'.
6739
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6740
      fi
6741
      ;;
6742
 
6743
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6744
      # PIC is the default for these OSes.
6745
      ;;
6746
 
6747
    mingw* | cygwin* | pw32* | os2*)
6748
      # This hack is so that the source file can tell whether it is being
6749
      # built for inclusion in a dll (and should export symbols for example).
6750
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6751
      # (--disable-auto-import) libraries
6752
      lt_prog_compiler_pic='-DDLL_EXPORT'
6753
      ;;
6754
 
6755
    darwin* | rhapsody*)
6756
      # PIC is the default on this platform
6757
      # Common symbols not allowed in MH_DYLIB files
6758
      lt_prog_compiler_pic='-fno-common'
6759
      ;;
6760
 
6761
    hpux*)
6762
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6763
      # not for PA HP-UX.
6764
      case $host_cpu in
6765
      hppa*64*|ia64*)
6766
        # +Z the default
6767
        ;;
6768
      *)
6769
        lt_prog_compiler_pic='-fPIC'
6770
        ;;
6771
      esac
6772
      ;;
6773
 
6774
    interix[3-9]*)
6775
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6776
      # Instead, we relocate shared libraries at runtime.
6777
      ;;
6778
 
6779
    msdosdjgpp*)
6780
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6781
      # on systems that don't support them.
6782
      lt_prog_compiler_can_build_shared=no
6783
      enable_shared=no
6784
      ;;
6785
 
6786
    *nto* | *qnx*)
6787
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6788
      # it will coredump.
6789
      lt_prog_compiler_pic='-fPIC -shared'
6790
      ;;
6791
 
6792
    sysv4*MP*)
6793
      if test -d /usr/nec; then
6794
        lt_prog_compiler_pic=-Kconform_pic
6795
      fi
6796
      ;;
6797
 
6798
    *)
6799
      lt_prog_compiler_pic='-fPIC'
6800
      ;;
6801
    esac
6802
  else
6803
    # PORTME Check for flag to pass linker flags through the system compiler.
6804
    case $host_os in
6805
    aix*)
6806
      lt_prog_compiler_wl='-Wl,'
6807
      if test "$host_cpu" = ia64; then
6808
        # AIX 5 now supports IA64 processor
6809
        lt_prog_compiler_static='-Bstatic'
6810
      else
6811
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6812
      fi
6813
      ;;
6814
    darwin*)
6815
      # PIC is the default on this platform
6816
      # Common symbols not allowed in MH_DYLIB files
6817
      case $cc_basename in
6818
      xlc*)
6819
        lt_prog_compiler_pic='-qnocommon'
6820
        lt_prog_compiler_wl='-Wl,'
6821
        ;;
6822
      esac
6823
      ;;
6824
 
6825
    mingw* | cygwin* | pw32* | os2*)
6826
      # This hack is so that the source file can tell whether it is being
6827
      # built for inclusion in a dll (and should export symbols for example).
6828
      lt_prog_compiler_pic='-DDLL_EXPORT'
6829
      ;;
6830
 
6831
    hpux9* | hpux10* | hpux11*)
6832
      lt_prog_compiler_wl='-Wl,'
6833
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6834
      # not for PA HP-UX.
6835
      case $host_cpu in
6836
      hppa*64*|ia64*)
6837
        # +Z the default
6838
        ;;
6839
      *)
6840
        lt_prog_compiler_pic='+Z'
6841
        ;;
6842
      esac
6843
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6844
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6845
      ;;
6846
 
6847
    irix5* | irix6* | nonstopux*)
6848
      lt_prog_compiler_wl='-Wl,'
6849
      # PIC (with -KPIC) is the default.
6850
      lt_prog_compiler_static='-non_shared'
6851
      ;;
6852
 
6853
    linux* | k*bsd*-gnu)
6854
      case $cc_basename in
6855
      icc* | ecc*)
6856
        lt_prog_compiler_wl='-Wl,'
6857
        lt_prog_compiler_pic='-KPIC'
6858
        lt_prog_compiler_static='-static'
6859
        ;;
6860
      pgcc* | pgf77* | pgf90* | pgf95*)
6861
        # Portland Group compilers (*not* the Pentium gcc compiler,
6862
        # which looks to be a dead project)
6863
        lt_prog_compiler_wl='-Wl,'
6864
        lt_prog_compiler_pic='-fpic'
6865
        lt_prog_compiler_static='-Bstatic'
6866
        ;;
6867
      ccc*)
6868
        lt_prog_compiler_wl='-Wl,'
6869
        # All Alpha code is PIC.
6870
        lt_prog_compiler_static='-non_shared'
6871
        ;;
6872
      *)
6873
        case `$CC -V 2>&1 | sed 5q` in
6874
        *Sun\ C*)
6875
          # Sun C 5.9
6876
          lt_prog_compiler_pic='-KPIC'
6877
          lt_prog_compiler_static='-Bstatic'
6878
          lt_prog_compiler_wl='-Wl,'
6879
          ;;
6880
        *Sun\ F*)
6881
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6882
          lt_prog_compiler_pic='-KPIC'
6883
          lt_prog_compiler_static='-Bstatic'
6884
          lt_prog_compiler_wl=''
6885
          ;;
6886
        esac
6887
        ;;
6888
      esac
6889
      ;;
6890
 
6891
    newsos6)
6892
      lt_prog_compiler_pic='-KPIC'
6893
      lt_prog_compiler_static='-Bstatic'
6894
      ;;
6895
 
6896
    *nto* | *qnx*)
6897
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6898
      # it will coredump.
6899
      lt_prog_compiler_pic='-fPIC -shared'
6900
      ;;
6901
 
6902
    osf3* | osf4* | osf5*)
6903
      lt_prog_compiler_wl='-Wl,'
6904
      # All OSF/1 code is PIC.
6905
      lt_prog_compiler_static='-non_shared'
6906
      ;;
6907
 
6908
    rdos*)
6909
      lt_prog_compiler_static='-non_shared'
6910
      ;;
6911
 
6912
    solaris*)
6913
      lt_prog_compiler_pic='-KPIC'
6914
      lt_prog_compiler_static='-Bstatic'
6915
      case $cc_basename in
6916
      f77* | f90* | f95*)
6917
        lt_prog_compiler_wl='-Qoption ld ';;
6918
      *)
6919
        lt_prog_compiler_wl='-Wl,';;
6920
      esac
6921
      ;;
6922
 
6923
    sunos4*)
6924
      lt_prog_compiler_wl='-Qoption ld '
6925
      lt_prog_compiler_pic='-PIC'
6926
      lt_prog_compiler_static='-Bstatic'
6927
      ;;
6928
 
6929
    sysv4 | sysv4.2uw2* | sysv4.3*)
6930
      lt_prog_compiler_wl='-Wl,'
6931
      lt_prog_compiler_pic='-KPIC'
6932
      lt_prog_compiler_static='-Bstatic'
6933
      ;;
6934
 
6935
    sysv4*MP*)
6936
      if test -d /usr/nec ;then
6937
        lt_prog_compiler_pic='-Kconform_pic'
6938
        lt_prog_compiler_static='-Bstatic'
6939
      fi
6940
      ;;
6941
 
6942
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6943
      lt_prog_compiler_wl='-Wl,'
6944
      lt_prog_compiler_pic='-KPIC'
6945
      lt_prog_compiler_static='-Bstatic'
6946
      ;;
6947
 
6948
    unicos*)
6949
      lt_prog_compiler_wl='-Wl,'
6950
      lt_prog_compiler_can_build_shared=no
6951
      ;;
6952
 
6953
    uts4*)
6954
      lt_prog_compiler_pic='-pic'
6955
      lt_prog_compiler_static='-Bstatic'
6956
      ;;
6957
 
6958
    *)
6959
      lt_prog_compiler_can_build_shared=no
6960
      ;;
6961
    esac
6962
  fi
6963
 
6964
case $host_os in
6965
  # For platforms which do not support PIC, -DPIC is meaningless:
6966
  *djgpp*)
6967
    lt_prog_compiler_pic=
6968
    ;;
6969
  *)
6970
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6971
    ;;
6972
esac
6973
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6974
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6975
 
6976
 
6977
 
6978
 
6979
 
6980
 
6981
#
6982
# Check to make sure the PIC flag actually works.
6983
#
6984
if test -n "$lt_prog_compiler_pic"; then
6985
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6986
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6987
if test "${lt_prog_compiler_pic_works+set}" = set; then
6988
  echo $ECHO_N "(cached) $ECHO_C" >&6
6989
else
6990
  lt_prog_compiler_pic_works=no
6991
   ac_outfile=conftest.$ac_objext
6992
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6993
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6994
   # Insert the option either (1) after the last *FLAGS variable, or
6995
   # (2) before a word containing "conftest.", or (3) at the end.
6996
   # Note that $ac_compile itself does not contain backslashes and begins
6997
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6998
   # The option is referenced via a variable to avoid confusing sed.
6999
   lt_compile=`echo "$ac_compile" | $SED \
7000
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7001
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7002
   -e 's:$: $lt_compiler_flag:'`
7003
   (eval echo "\"\$as_me:7003: $lt_compile\"" >&5)
7004
   (eval "$lt_compile" 2>conftest.err)
7005
   ac_status=$?
7006
   cat conftest.err >&5
7007
   echo "$as_me:7007: \$? = $ac_status" >&5
7008
   if (exit $ac_status) && test -s "$ac_outfile"; then
7009
     # The compiler can only warn and ignore the option if not recognized
7010
     # So say no if there are warnings other than the usual output.
7011
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7012
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7013
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7014
       lt_prog_compiler_pic_works=yes
7015
     fi
7016
   fi
7017
   $RM conftest*
7018
 
7019
fi
7020
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7021
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7022
 
7023
if test x"$lt_prog_compiler_pic_works" = xyes; then
7024
    case $lt_prog_compiler_pic in
7025
     "" | " "*) ;;
7026
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7027
     esac
7028
else
7029
    lt_prog_compiler_pic=
7030
     lt_prog_compiler_can_build_shared=no
7031
fi
7032
 
7033
fi
7034
 
7035
 
7036
 
7037
 
7038
 
7039
 
7040
#
7041
# Check to make sure the static flag actually works.
7042
#
7043
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7044
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7045
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7046
if test "${lt_prog_compiler_static_works+set}" = set; then
7047
  echo $ECHO_N "(cached) $ECHO_C" >&6
7048
else
7049
  lt_prog_compiler_static_works=no
7050
   save_LDFLAGS="$LDFLAGS"
7051
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7052
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7053
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7054
     # The linker can only warn and ignore the option if not recognized
7055
     # So say no if there are warnings
7056
     if test -s conftest.err; then
7057
       # Append any errors to the config.log.
7058
       cat conftest.err 1>&5
7059
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7060
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7061
       if diff conftest.exp conftest.er2 >/dev/null; then
7062
         lt_prog_compiler_static_works=yes
7063
       fi
7064
     else
7065
       lt_prog_compiler_static_works=yes
7066
     fi
7067
   fi
7068
   $RM conftest*
7069
   LDFLAGS="$save_LDFLAGS"
7070
 
7071
fi
7072
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7073
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7074
 
7075
if test x"$lt_prog_compiler_static_works" = xyes; then
7076
    :
7077
else
7078
    lt_prog_compiler_static=
7079
fi
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7088
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7089
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7090
  echo $ECHO_N "(cached) $ECHO_C" >&6
7091
else
7092
  lt_cv_prog_compiler_c_o=no
7093
   $RM -r conftest 2>/dev/null
7094
   mkdir conftest
7095
   cd conftest
7096
   mkdir out
7097
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7098
 
7099
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7100
   # Insert the option either (1) after the last *FLAGS variable, or
7101
   # (2) before a word containing "conftest.", or (3) at the end.
7102
   # Note that $ac_compile itself does not contain backslashes and begins
7103
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7104
   lt_compile=`echo "$ac_compile" | $SED \
7105
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7106
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7107
   -e 's:$: $lt_compiler_flag:'`
7108
   (eval echo "\"\$as_me:7108: $lt_compile\"" >&5)
7109
   (eval "$lt_compile" 2>out/conftest.err)
7110
   ac_status=$?
7111
   cat out/conftest.err >&5
7112
   echo "$as_me:7112: \$? = $ac_status" >&5
7113
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7114
   then
7115
     # The compiler can only warn and ignore the option if not recognized
7116
     # So say no if there are warnings
7117
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7118
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7119
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7120
       lt_cv_prog_compiler_c_o=yes
7121
     fi
7122
   fi
7123
   chmod u+w . 2>&5
7124
   $RM conftest*
7125
   # SGI C++ compiler will create directory out/ii_files/ for
7126
   # template instantiation
7127
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7128
   $RM out/* && rmdir out
7129
   cd ..
7130
   $RM -r conftest
7131
   $RM conftest*
7132
 
7133
fi
7134
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7135
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7136
 
7137
 
7138
 
7139
 
7140
 
7141
 
7142
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7143
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7144
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7145
  echo $ECHO_N "(cached) $ECHO_C" >&6
7146
else
7147
  lt_cv_prog_compiler_c_o=no
7148
   $RM -r conftest 2>/dev/null
7149
   mkdir conftest
7150
   cd conftest
7151
   mkdir out
7152
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7153
 
7154
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7155
   # Insert the option either (1) after the last *FLAGS variable, or
7156
   # (2) before a word containing "conftest.", or (3) at the end.
7157
   # Note that $ac_compile itself does not contain backslashes and begins
7158
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7159
   lt_compile=`echo "$ac_compile" | $SED \
7160
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7161
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7162
   -e 's:$: $lt_compiler_flag:'`
7163
   (eval echo "\"\$as_me:7163: $lt_compile\"" >&5)
7164
   (eval "$lt_compile" 2>out/conftest.err)
7165
   ac_status=$?
7166
   cat out/conftest.err >&5
7167
   echo "$as_me:7167: \$? = $ac_status" >&5
7168
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7169
   then
7170
     # The compiler can only warn and ignore the option if not recognized
7171
     # So say no if there are warnings
7172
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7173
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7174
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7175
       lt_cv_prog_compiler_c_o=yes
7176
     fi
7177
   fi
7178
   chmod u+w . 2>&5
7179
   $RM conftest*
7180
   # SGI C++ compiler will create directory out/ii_files/ for
7181
   # template instantiation
7182
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7183
   $RM out/* && rmdir out
7184
   cd ..
7185
   $RM -r conftest
7186
   $RM conftest*
7187
 
7188
fi
7189
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7190
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7191
 
7192
 
7193
 
7194
 
7195
hard_links="nottested"
7196
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7197
  # do not overwrite the value of need_locks provided by the user
7198
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7199
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7200
  hard_links=yes
7201
  $RM conftest*
7202
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7203
  touch conftest.a
7204
  ln conftest.a conftest.b 2>&5 || hard_links=no
7205
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7206
  echo "$as_me:$LINENO: result: $hard_links" >&5
7207
echo "${ECHO_T}$hard_links" >&6
7208
  if test "$hard_links" = no; then
7209
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7210
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7211
    need_locks=warn
7212
  fi
7213
else
7214
  need_locks=no
7215
fi
7216
 
7217
 
7218
 
7219
 
7220
 
7221
 
7222
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7223
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7224
 
7225
  runpath_var=
7226
  allow_undefined_flag=
7227
  always_export_symbols=no
7228
  archive_cmds=
7229
  archive_expsym_cmds=
7230
  compiler_needs_object=no
7231
  enable_shared_with_static_runtimes=no
7232
  export_dynamic_flag_spec=
7233
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7234
  hardcode_automatic=no
7235
  hardcode_direct=no
7236
  hardcode_direct_absolute=no
7237
  hardcode_libdir_flag_spec=
7238
  hardcode_libdir_flag_spec_ld=
7239
  hardcode_libdir_separator=
7240
  hardcode_minus_L=no
7241
  hardcode_shlibpath_var=unsupported
7242
  inherit_rpath=no
7243
  link_all_deplibs=unknown
7244
  module_cmds=
7245
  module_expsym_cmds=
7246
  old_archive_from_new_cmds=
7247
  old_archive_from_expsyms_cmds=
7248
  thread_safe_flag_spec=
7249
  whole_archive_flag_spec=
7250
  # include_expsyms should be a list of space-separated symbols to be *always*
7251
  # included in the symbol list
7252
  include_expsyms=
7253
  # exclude_expsyms can be an extended regexp of symbols to exclude
7254
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7255
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7256
  # as well as any symbol that contains `d'.
7257
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7258
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7259
  # platforms (ab)use it in PIC code, but their linkers get confused if
7260
  # the symbol is explicitly referenced.  Since portable code cannot
7261
  # rely on this symbol name, it's probably fine to never include it in
7262
  # preloaded symbol tables.
7263
  extract_expsyms_cmds=
7264
 
7265
  case $host_os in
7266
  cygwin* | mingw* | pw32*)
7267
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268
    # When not using gcc, we currently assume that we are using
7269
    # Microsoft Visual C++.
7270
    if test "$GCC" != yes; then
7271
      with_gnu_ld=no
7272
    fi
7273
    ;;
7274
  interix*)
7275
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7276
    with_gnu_ld=yes
7277
    ;;
7278
  openbsd*)
7279
    with_gnu_ld=no
7280
    ;;
7281
  esac
7282
 
7283
  ld_shlibs=yes
7284
  if test "$with_gnu_ld" = yes; then
7285
    # If archive_cmds runs LD, not CC, wlarc should be empty
7286
    wlarc='${wl}'
7287
 
7288
    # Set some defaults for GNU ld with shared library support. These
7289
    # are reset later if shared libraries are not supported. Putting them
7290
    # here allows them to be overridden if necessary.
7291
    runpath_var=LD_RUN_PATH
7292
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293
    export_dynamic_flag_spec='${wl}--export-dynamic'
7294
    # ancient GNU ld didn't support --whole-archive et. al.
7295
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7297
    else
7298
      whole_archive_flag_spec=
7299
    fi
7300
    supports_anon_versioning=no
7301
    case `$LD -v 2>&1` in
7302
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305
      *\ 2.11.*) ;; # other 2.11 versions
7306
      *) supports_anon_versioning=yes ;;
7307
    esac
7308
 
7309
    # See if GNU ld supports shared libraries.
7310
    case $host_os in
7311
    aix[3-9]*)
7312
      # On AIX/PPC, the GNU linker is very broken
7313
      if test "$host_cpu" != ia64; then
7314
        ld_shlibs=no
7315
        cat <<_LT_EOF 1>&2
7316
 
7317
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318
*** to be unable to reliably create shared libraries on AIX.
7319
*** Therefore, libtool is disabling shared libraries support.  If you
7320
*** really care for shared libraries, you may want to modify your PATH
7321
*** so that a non-GNU linker is found, and then restart.
7322
 
7323
_LT_EOF
7324
      fi
7325
      ;;
7326
 
7327
    amigaos*)
7328
      if test "$host_cpu" = m68k; then
7329
        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)'
7330
        hardcode_libdir_flag_spec='-L$libdir'
7331
        hardcode_minus_L=yes
7332
      fi
7333
 
7334
      # Samuel A. Falvo II  reports
7335
      # that the semantics of dynamic libraries on AmigaOS, at least up
7336
      # to version 4, is to share data among multiple programs linked
7337
      # with the same dynamic library.  Since this doesn't match the
7338
      # behavior of shared libraries on other platforms, we can't use
7339
      # them.
7340
      ld_shlibs=no
7341
      ;;
7342
 
7343
    beos*)
7344
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7345
        allow_undefined_flag=unsupported
7346
        # Joseph Beckenbach  says some releases of gcc
7347
        # support --undefined.  This deserves some investigation.  FIXME
7348
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7349
      else
7350
        ld_shlibs=no
7351
      fi
7352
      ;;
7353
 
7354
    cygwin* | mingw* | pw32*)
7355
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7356
      # as there is no search path for DLLs.
7357
      hardcode_libdir_flag_spec='-L$libdir'
7358
      allow_undefined_flag=unsupported
7359
      always_export_symbols=no
7360
      enable_shared_with_static_runtimes=yes
7361
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7362
 
7363
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7364
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7365
        # If the export-symbols file already is a .def file (1st line
7366
        # is EXPORTS), use it as is; otherwise, prepend...
7367
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7368
          cp $export_symbols $output_objdir/$soname.def;
7369
        else
7370
          echo EXPORTS > $output_objdir/$soname.def;
7371
          cat $export_symbols >> $output_objdir/$soname.def;
7372
        fi~
7373
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7374
      else
7375
        ld_shlibs=no
7376
      fi
7377
      ;;
7378
 
7379
    interix[3-9]*)
7380
      hardcode_direct=no
7381
      hardcode_shlibpath_var=no
7382
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7383
      export_dynamic_flag_spec='${wl}-E'
7384
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7385
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7386
      # default) and relocated if they conflict, which is a slow very memory
7387
      # consuming and fragmenting process.  To avoid this, we pick a random,
7388
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7389
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7390
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7391
      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'
7392
      ;;
7393
 
7394
    gnu* | linux* | tpf* | k*bsd*-gnu)
7395
      tmp_diet=no
7396
      if test "$host_os" = linux-dietlibc; then
7397
        case $cc_basename in
7398
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7399
        esac
7400
      fi
7401
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7402
         && test "$tmp_diet" = no
7403
      then
7404
        tmp_addflag=
7405
        case $cc_basename,$host_cpu in
7406
        pgcc*)                          # Portland Group C compiler
7407
          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'
7408
          tmp_addflag=' $pic_flag'
7409
          ;;
7410
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7411
          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'
7412
          tmp_addflag=' $pic_flag -Mnomain' ;;
7413
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7414
          tmp_addflag=' -i_dynamic' ;;
7415
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7416
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7417
        ifc* | ifort*)                  # Intel Fortran compiler
7418
          tmp_addflag=' -nofor_main' ;;
7419
        esac
7420
        case `$CC -V 2>&1 | sed 5q` in
7421
        *Sun\ C*)                       # Sun C 5.9
7422
          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'
7423
          compiler_needs_object=yes
7424
          tmp_sharedflag='-G' ;;
7425
        *Sun\ F*)                       # Sun Fortran 8.3
7426
          tmp_sharedflag='-G' ;;
7427
        *)
7428
          tmp_sharedflag='-shared' ;;
7429
        esac
7430
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7431
 
7432
        if test "x$supports_anon_versioning" = xyes; then
7433
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7434
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7435
            echo "local: *; };" >> $output_objdir/$libname.ver~
7436
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7437
        fi
7438
      else
7439
        ld_shlibs=no
7440
      fi
7441
      ;;
7442
 
7443
    netbsd*)
7444
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7445
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7446
        wlarc=
7447
      else
7448
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7450
      fi
7451
      ;;
7452
 
7453
    solaris*)
7454
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7455
        ld_shlibs=no
7456
        cat <<_LT_EOF 1>&2
7457
 
7458
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459
*** create shared libraries on Solaris systems.  Therefore, libtool
7460
*** is disabling shared libraries support.  We urge you to upgrade GNU
7461
*** binutils to release 2.9.1 or newer.  Another option is to modify
7462
*** your PATH or compiler configuration so that the native linker is
7463
*** used, and then restart.
7464
 
7465
_LT_EOF
7466
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7467
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469
      else
7470
        ld_shlibs=no
7471
      fi
7472
      ;;
7473
 
7474
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475
      case `$LD -v 2>&1` in
7476
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7477
        ld_shlibs=no
7478
        cat <<_LT_EOF 1>&2
7479
 
7480
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7482
*** is disabling shared libraries support.  We urge you to upgrade GNU
7483
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7484
*** your PATH or compiler configuration so that the native linker is
7485
*** used, and then restart.
7486
 
7487
_LT_EOF
7488
        ;;
7489
        *)
7490
          # For security reasons, it is highly recommended that you always
7491
          # use absolute paths for naming shared libraries, and exclude the
7492
          # DT_RUNPATH tag from executables and libraries.  But doing so
7493
          # requires that you compile everything twice, which is a pain.
7494
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7495
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7496
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7498
          else
7499
            ld_shlibs=no
7500
          fi
7501
        ;;
7502
      esac
7503
      ;;
7504
 
7505
    sunos4*)
7506
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507
      wlarc=
7508
      hardcode_direct=yes
7509
      hardcode_shlibpath_var=no
7510
      ;;
7511
 
7512
    *)
7513
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7514
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516
      else
7517
        ld_shlibs=no
7518
      fi
7519
      ;;
7520
    esac
7521
 
7522
    if test "$ld_shlibs" = no; then
7523
      runpath_var=
7524
      hardcode_libdir_flag_spec=
7525
      export_dynamic_flag_spec=
7526
      whole_archive_flag_spec=
7527
    fi
7528
  else
7529
    # PORTME fill in a description of your system's linker (not GNU ld)
7530
    case $host_os in
7531
    aix3*)
7532
      allow_undefined_flag=unsupported
7533
      always_export_symbols=yes
7534
      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'
7535
      # Note: this linker hardcodes the directories in LIBPATH if there
7536
      # are no directories specified by -L.
7537
      hardcode_minus_L=yes
7538
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7539
        # Neither direct hardcoding nor static linking is supported with a
7540
        # broken collect2.
7541
        hardcode_direct=unsupported
7542
      fi
7543
      ;;
7544
 
7545
    aix[4-9]*)
7546
      if test "$host_cpu" = ia64; then
7547
        # On IA64, the linker does run time linking by default, so we don't
7548
        # have to do anything special.
7549
        aix_use_runtimelinking=no
7550
        exp_sym_flag='-Bexport'
7551
        no_entry_flag=""
7552
      else
7553
        # If we're using GNU nm, then we don't want the "-C" option.
7554
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7555
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7556
          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'
7557
        else
7558
          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'
7559
        fi
7560
        aix_use_runtimelinking=no
7561
 
7562
        # Test if we are trying to use run time linking or normal
7563
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7564
        # need to do runtime linking.
7565
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7566
          for ld_flag in $LDFLAGS; do
7567
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7568
            aix_use_runtimelinking=yes
7569
            break
7570
          fi
7571
          done
7572
          ;;
7573
        esac
7574
 
7575
        exp_sym_flag='-bexport'
7576
        no_entry_flag='-bnoentry'
7577
      fi
7578
 
7579
      # When large executables or shared objects are built, AIX ld can
7580
      # have problems creating the table of contents.  If linking a library
7581
      # or program results in "error TOC overflow" add -mminimal-toc to
7582
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7583
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7584
 
7585
      archive_cmds=''
7586
      hardcode_direct=yes
7587
      hardcode_direct_absolute=yes
7588
      hardcode_libdir_separator=':'
7589
      link_all_deplibs=yes
7590
      file_list_spec='${wl}-f,'
7591
 
7592
      if test "$GCC" = yes; then
7593
        case $host_os in aix4.[012]|aix4.[012].*)
7594
        # We only want to do this on AIX 4.2 and lower, the check
7595
        # below for broken collect2 doesn't work under 4.3+
7596
          collect2name=`${CC} -print-prog-name=collect2`
7597
          if test -f "$collect2name" &&
7598
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7599
          then
7600
          # We have reworked collect2
7601
          :
7602
          else
7603
          # We have old collect2
7604
          hardcode_direct=unsupported
7605
          # It fails to find uninstalled libraries when the uninstalled
7606
          # path is not listed in the libpath.  Setting hardcode_minus_L
7607
          # to unsupported forces relinking
7608
          hardcode_minus_L=yes
7609
          hardcode_libdir_flag_spec='-L$libdir'
7610
          hardcode_libdir_separator=
7611
          fi
7612
          ;;
7613
        esac
7614
        shared_flag='-shared'
7615
        if test "$aix_use_runtimelinking" = yes; then
7616
          shared_flag="$shared_flag "'${wl}-G'
7617
        fi
7618
      else
7619
        # not using gcc
7620
        if test "$host_cpu" = ia64; then
7621
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7622
        # chokes on -Wl,-G. The following line is correct:
7623
          shared_flag='-G'
7624
        else
7625
          if test "$aix_use_runtimelinking" = yes; then
7626
            shared_flag='${wl}-G'
7627
          else
7628
            shared_flag='${wl}-bM:SRE'
7629
          fi
7630
        fi
7631
      fi
7632
 
7633
      # It seems that -bexpall does not export symbols beginning with
7634
      # underscore (_), so it is better to generate a list of symbols to export.
7635
      always_export_symbols=yes
7636
      if test "$aix_use_runtimelinking" = yes; then
7637
        # Warning - without using the other runtime loading flags (-brtl),
7638
        # -berok will link without error, but may produce a broken library.
7639
        allow_undefined_flag='-berok'
7640
        # Determine the default libpath from the value encoded in an
7641
        # empty executable.
7642
        cat >conftest.$ac_ext <<_ACEOF
7643
/* confdefs.h.  */
7644
_ACEOF
7645
cat confdefs.h >>conftest.$ac_ext
7646
cat >>conftest.$ac_ext <<_ACEOF
7647
/* end confdefs.h.  */
7648
 
7649
int
7650
main ()
7651
{
7652
 
7653
  ;
7654
  return 0;
7655
}
7656
_ACEOF
7657
rm -f conftest.$ac_objext conftest$ac_exeext
7658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659
  (eval $ac_link) 2>conftest.er1
7660
  ac_status=$?
7661
  grep -v '^ *+' conftest.er1 >conftest.err
7662
  rm -f conftest.er1
7663
  cat conftest.err >&5
7664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665
  (exit $ac_status); } &&
7666
         { ac_try='test -z "$ac_c_werror_flag"
7667
                         || test ! -s conftest.err'
7668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669
  (eval $ac_try) 2>&5
7670
  ac_status=$?
7671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672
  (exit $ac_status); }; } &&
7673
         { ac_try='test -s conftest$ac_exeext'
7674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675
  (eval $ac_try) 2>&5
7676
  ac_status=$?
7677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678
  (exit $ac_status); }; }; then
7679
 
7680
lt_aix_libpath_sed='
7681
    /Import File Strings/,/^$/ {
7682
        /^0/ {
7683
            s/^0  *\(.*\)$/\1/
7684
            p
7685
        }
7686
    }'
7687
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7688
# Check for a 64-bit object if we didn't find anything.
7689
if test -z "$aix_libpath"; then
7690
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7691
fi
7692
else
7693
  echo "$as_me: failed program was:" >&5
7694
sed 's/^/| /' conftest.$ac_ext >&5
7695
 
7696
fi
7697
rm -f conftest.err conftest.$ac_objext \
7698
      conftest$ac_exeext conftest.$ac_ext
7699
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7700
 
7701
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7702
        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"
7703
      else
7704
        if test "$host_cpu" = ia64; then
7705
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7706
          allow_undefined_flag="-z nodefs"
7707
          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"
7708
        else
7709
         # Determine the default libpath from the value encoded in an
7710
         # empty executable.
7711
         cat >conftest.$ac_ext <<_ACEOF
7712
/* confdefs.h.  */
7713
_ACEOF
7714
cat confdefs.h >>conftest.$ac_ext
7715
cat >>conftest.$ac_ext <<_ACEOF
7716
/* end confdefs.h.  */
7717
 
7718
int
7719
main ()
7720
{
7721
 
7722
  ;
7723
  return 0;
7724
}
7725
_ACEOF
7726
rm -f conftest.$ac_objext conftest$ac_exeext
7727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7728
  (eval $ac_link) 2>conftest.er1
7729
  ac_status=$?
7730
  grep -v '^ *+' conftest.er1 >conftest.err
7731
  rm -f conftest.er1
7732
  cat conftest.err >&5
7733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734
  (exit $ac_status); } &&
7735
         { ac_try='test -z "$ac_c_werror_flag"
7736
                         || test ! -s conftest.err'
7737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738
  (eval $ac_try) 2>&5
7739
  ac_status=$?
7740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741
  (exit $ac_status); }; } &&
7742
         { ac_try='test -s conftest$ac_exeext'
7743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744
  (eval $ac_try) 2>&5
7745
  ac_status=$?
7746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
  (exit $ac_status); }; }; then
7748
 
7749
lt_aix_libpath_sed='
7750
    /Import File Strings/,/^$/ {
7751
        /^0/ {
7752
            s/^0  *\(.*\)$/\1/
7753
            p
7754
        }
7755
    }'
7756
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7757
# Check for a 64-bit object if we didn't find anything.
7758
if test -z "$aix_libpath"; then
7759
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7760
fi
7761
else
7762
  echo "$as_me: failed program was:" >&5
7763
sed 's/^/| /' conftest.$ac_ext >&5
7764
 
7765
fi
7766
rm -f conftest.err conftest.$ac_objext \
7767
      conftest$ac_exeext conftest.$ac_ext
7768
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7769
 
7770
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7771
          # Warning - without using the other run time loading flags,
7772
          # -berok will link without error, but may produce a broken library.
7773
          no_undefined_flag=' ${wl}-bernotok'
7774
          allow_undefined_flag=' ${wl}-berok'
7775
          # Exported symbols can be pulled into shared objects from archives
7776
          whole_archive_flag_spec='$convenience'
7777
          archive_cmds_need_lc=yes
7778
          # This is similar to how AIX traditionally builds its shared libraries.
7779
          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'
7780
        fi
7781
      fi
7782
      ;;
7783
 
7784
    amigaos*)
7785
      if test "$host_cpu" = m68k; then
7786
        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)'
7787
        hardcode_libdir_flag_spec='-L$libdir'
7788
        hardcode_minus_L=yes
7789
      fi
7790
      # see comment about different semantics on the GNU ld section
7791
      ld_shlibs=no
7792
      ;;
7793
 
7794
    bsdi[45]*)
7795
      export_dynamic_flag_spec=-rdynamic
7796
      ;;
7797
 
7798
    cygwin* | mingw* | pw32*)
7799
      # When not using gcc, we currently assume that we are using
7800
      # Microsoft Visual C++.
7801
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7802
      # no search path for DLLs.
7803
      hardcode_libdir_flag_spec=' '
7804
      allow_undefined_flag=unsupported
7805
      # Tell ltmain to make .lib files, not .a files.
7806
      libext=lib
7807
      # Tell ltmain to make .dll files, not .so files.
7808
      shrext_cmds=".dll"
7809
      # FIXME: Setting linknames here is a bad hack.
7810
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7811
      # The linker will automatically build a .lib file if we build a DLL.
7812
      old_archive_from_new_cmds='true'
7813
      # FIXME: Should let the user specify the lib program.
7814
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7815
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7816
      enable_shared_with_static_runtimes=yes
7817
      ;;
7818
 
7819
    darwin* | rhapsody*)
7820
      case $host_os in
7821
      rhapsody* | darwin1.[012])
7822
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
7823
        ;;
7824
      *) # Darwin 1.3 on
7825
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7826
        10.[012])
7827
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7828
          ;;
7829
        10.*)
7830
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7831
          ;;
7832
        esac
7833
        ;;
7834
      esac
7835
      archive_cmds_need_lc=no
7836
      hardcode_direct=no
7837
      hardcode_automatic=yes
7838
      hardcode_shlibpath_var=unsupported
7839
      whole_archive_flag_spec=''
7840
      link_all_deplibs=yes
7841
      if test "$GCC" = yes ; then
7842
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7843
  echo $ECHO_N "(cached) $ECHO_C" >&6
7844
else
7845
  lt_cv_apple_cc_single_mod=no
7846
        if test -z "${LT_MULTI_MODULE}"; then
7847
          # By default we will add the -single_module flag. You can override
7848
          # by either setting the environment variable LT_MULTI_MODULE
7849
          # non-empty at configure time, or by adding -multi-module to the
7850
          # link flags.
7851
          echo "int foo(void){return 1;}" > conftest.c
7852
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7853
              -dynamiclib ${wl}-single_module conftest.c
7854
          if test -f libconftest.dylib; then
7855
              lt_cv_apple_cc_single_mod=yes
7856
              rm libconftest.dylib
7857
          fi
7858
          rm conftest.$ac_ext
7859
        fi
7860
fi
7861
 
7862
        output_verbose_link_cmd=echo
7863
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7864
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7865
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7866
        else
7867
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7868
          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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869
        fi
7870
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7871
        module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7872
      else
7873
        case $cc_basename in
7874
        xlc*)
7875
          output_verbose_link_cmd=echo
7876
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7877
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7878
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7879
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7880
          module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7881
          ;;
7882
        *)
7883
          ld_shlibs=no
7884
          ;;
7885
        esac
7886
      fi
7887
      ;;
7888
 
7889
    dgux*)
7890
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891
      hardcode_libdir_flag_spec='-L$libdir'
7892
      hardcode_shlibpath_var=no
7893
      ;;
7894
 
7895
    freebsd1*)
7896
      ld_shlibs=no
7897
      ;;
7898
 
7899
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7901
    # does not break anything, and helps significantly (at the cost of a little
7902
    # extra space).
7903
    freebsd2.2*)
7904
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905
      hardcode_libdir_flag_spec='-R$libdir'
7906
      hardcode_direct=yes
7907
      hardcode_shlibpath_var=no
7908
      ;;
7909
 
7910
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7911
    freebsd2*)
7912
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7913
      hardcode_direct=yes
7914
      hardcode_minus_L=yes
7915
      hardcode_shlibpath_var=no
7916
      ;;
7917
 
7918
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919
    freebsd* | dragonfly*)
7920
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921
      hardcode_libdir_flag_spec='-R$libdir'
7922
      hardcode_direct=yes
7923
      hardcode_shlibpath_var=no
7924
      ;;
7925
 
7926
    hpux9*)
7927
      if test "$GCC" = yes; then
7928
        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'
7929
      else
7930
        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'
7931
      fi
7932
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933
      hardcode_libdir_separator=:
7934
      hardcode_direct=yes
7935
 
7936
      # hardcode_minus_L: Not really in the search PATH,
7937
      # but as the default location of the library.
7938
      hardcode_minus_L=yes
7939
      export_dynamic_flag_spec='${wl}-E'
7940
      ;;
7941
 
7942
    hpux10*)
7943
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7944
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7945
      else
7946
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7947
      fi
7948
      if test "$with_gnu_ld" = no; then
7949
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7950
        hardcode_libdir_flag_spec_ld='+b $libdir'
7951
        hardcode_libdir_separator=:
7952
        hardcode_direct=yes
7953
        hardcode_direct_absolute=yes
7954
        export_dynamic_flag_spec='${wl}-E'
7955
        # hardcode_minus_L: Not really in the search PATH,
7956
        # but as the default location of the library.
7957
        hardcode_minus_L=yes
7958
      fi
7959
      ;;
7960
 
7961
    hpux11*)
7962
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7963
        case $host_cpu in
7964
        hppa*64*)
7965
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7966
          ;;
7967
        ia64*)
7968
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7969
          ;;
7970
        *)
7971
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7972
          ;;
7973
        esac
7974
      else
7975
        case $host_cpu in
7976
        hppa*64*)
7977
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7978
          ;;
7979
        ia64*)
7980
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7981
          ;;
7982
        *)
7983
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7984
          ;;
7985
        esac
7986
      fi
7987
      if test "$with_gnu_ld" = no; then
7988
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7989
        hardcode_libdir_separator=:
7990
 
7991
        case $host_cpu in
7992
        hppa*64*|ia64*)
7993
          hardcode_direct=no
7994
          hardcode_shlibpath_var=no
7995
          ;;
7996
        *)
7997
          hardcode_direct=yes
7998
          hardcode_direct_absolute=yes
7999
          export_dynamic_flag_spec='${wl}-E'
8000
 
8001
          # hardcode_minus_L: Not really in the search PATH,
8002
          # but as the default location of the library.
8003
          hardcode_minus_L=yes
8004
          ;;
8005
        esac
8006
      fi
8007
      ;;
8008
 
8009
    irix5* | irix6* | nonstopux*)
8010
      if test "$GCC" = yes; then
8011
        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'
8012
        # Try to use the -exported_symbol ld option, if it does not
8013
        # work, assume that -exports_file does not work either and
8014
        # implicitly export all symbols.
8015
        save_LDFLAGS="$LDFLAGS"
8016
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017
        cat >conftest.$ac_ext <<_ACEOF
8018
int foo(void) {}
8019
_ACEOF
8020
rm -f conftest.$ac_objext conftest$ac_exeext
8021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022
  (eval $ac_link) 2>conftest.er1
8023
  ac_status=$?
8024
  grep -v '^ *+' conftest.er1 >conftest.err
8025
  rm -f conftest.er1
8026
  cat conftest.err >&5
8027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028
  (exit $ac_status); } &&
8029
         { ac_try='test -z "$ac_c_werror_flag"
8030
                         || test ! -s conftest.err'
8031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032
  (eval $ac_try) 2>&5
8033
  ac_status=$?
8034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035
  (exit $ac_status); }; } &&
8036
         { ac_try='test -s conftest$ac_exeext'
8037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038
  (eval $ac_try) 2>&5
8039
  ac_status=$?
8040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041
  (exit $ac_status); }; }; then
8042
  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'
8043
 
8044
else
8045
  echo "$as_me: failed program was:" >&5
8046
sed 's/^/| /' conftest.$ac_ext >&5
8047
 
8048
fi
8049
rm -f conftest.err conftest.$ac_objext \
8050
      conftest$ac_exeext conftest.$ac_ext
8051
        LDFLAGS="$save_LDFLAGS"
8052
      else
8053
        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'
8054
        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'
8055
      fi
8056
      archive_cmds_need_lc='no'
8057
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058
      hardcode_libdir_separator=:
8059
      inherit_rpath=yes
8060
      link_all_deplibs=yes
8061
      ;;
8062
 
8063
    netbsd*)
8064
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8065
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8066
      else
8067
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8068
      fi
8069
      hardcode_libdir_flag_spec='-R$libdir'
8070
      hardcode_direct=yes
8071
      hardcode_shlibpath_var=no
8072
      ;;
8073
 
8074
    newsos6)
8075
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076
      hardcode_direct=yes
8077
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8078
      hardcode_libdir_separator=:
8079
      hardcode_shlibpath_var=no
8080
      ;;
8081
 
8082
    *nto* | *qnx*)
8083
      ;;
8084
 
8085
    openbsd*)
8086
      hardcode_direct=yes
8087
      hardcode_shlibpath_var=no
8088
      hardcode_direct_absolute=yes
8089
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8090
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8091
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8092
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8093
        export_dynamic_flag_spec='${wl}-E'
8094
      else
8095
        case $host_os in
8096
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8097
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8098
          hardcode_libdir_flag_spec='-R$libdir'
8099
          ;;
8100
        *)
8101
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8102
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8103
          ;;
8104
        esac
8105
      fi
8106
      ;;
8107
 
8108
    os2*)
8109
      hardcode_libdir_flag_spec='-L$libdir'
8110
      hardcode_minus_L=yes
8111
      allow_undefined_flag=unsupported
8112
      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'
8113
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8114
      ;;
8115
 
8116
    osf3*)
8117
      if test "$GCC" = yes; then
8118
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8119
        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'
8120
      else
8121
        allow_undefined_flag=' -expect_unresolved \*'
8122
        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'
8123
      fi
8124
      archive_cmds_need_lc='no'
8125
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126
      hardcode_libdir_separator=:
8127
      ;;
8128
 
8129
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8130
      if test "$GCC" = yes; then
8131
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8132
        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'
8133
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8134
      else
8135
        allow_undefined_flag=' -expect_unresolved \*'
8136
        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'
8137
        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~
8138
        $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'
8139
 
8140
        # Both c and cxx compiler support -rpath directly
8141
        hardcode_libdir_flag_spec='-rpath $libdir'
8142
      fi
8143
      archive_cmds_need_lc='no'
8144
      hardcode_libdir_separator=:
8145
      ;;
8146
 
8147
    solaris*)
8148
      no_undefined_flag=' -z defs'
8149
      if test "$GCC" = yes; then
8150
        wlarc='${wl}'
8151
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8152
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8153
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8154
      else
8155
        case `$CC -V 2>&1` in
8156
        *"Compilers 5.0"*)
8157
          wlarc=''
8158
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8159
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8160
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8161
          ;;
8162
        *)
8163
          wlarc='${wl}'
8164
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8165
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8166
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8167
          ;;
8168
        esac
8169
      fi
8170
      hardcode_libdir_flag_spec='-R$libdir'
8171
      hardcode_shlibpath_var=no
8172
      case $host_os in
8173
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8174
      *)
8175
        # The compiler driver will combine and reorder linker options,
8176
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8177
        # but is careful enough not to reorder.
8178
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8179
        if test "$GCC" = yes; then
8180
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8181
        else
8182
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8183
        fi
8184
        ;;
8185
      esac
8186
      link_all_deplibs=yes
8187
      ;;
8188
 
8189
    sunos4*)
8190
      if test "x$host_vendor" = xsequent; then
8191
        # Use $CC to link under sequent, because it throws in some extra .o
8192
        # files that make .init and .fini sections work.
8193
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8194
      else
8195
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8196
      fi
8197
      hardcode_libdir_flag_spec='-L$libdir'
8198
      hardcode_direct=yes
8199
      hardcode_minus_L=yes
8200
      hardcode_shlibpath_var=no
8201
      ;;
8202
 
8203
    sysv4)
8204
      case $host_vendor in
8205
        sni)
8206
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8207
          hardcode_direct=yes # is this really true???
8208
        ;;
8209
        siemens)
8210
          ## LD is ld it makes a PLAMLIB
8211
          ## CC just makes a GrossModule.
8212
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8213
          reload_cmds='$CC -r -o $output$reload_objs'
8214
          hardcode_direct=no
8215
        ;;
8216
        motorola)
8217
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8219
        ;;
8220
      esac
8221
      runpath_var='LD_RUN_PATH'
8222
      hardcode_shlibpath_var=no
8223
      ;;
8224
 
8225
    sysv4.3*)
8226
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8227
      hardcode_shlibpath_var=no
8228
      export_dynamic_flag_spec='-Bexport'
8229
      ;;
8230
 
8231
    sysv4*MP*)
8232
      if test -d /usr/nec; then
8233
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234
        hardcode_shlibpath_var=no
8235
        runpath_var=LD_RUN_PATH
8236
        hardcode_runpath_var=yes
8237
        ld_shlibs=yes
8238
      fi
8239
      ;;
8240
 
8241
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8242
      no_undefined_flag='${wl}-z,text'
8243
      archive_cmds_need_lc=no
8244
      hardcode_shlibpath_var=no
8245
      runpath_var='LD_RUN_PATH'
8246
 
8247
      if test "$GCC" = yes; then
8248
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8249
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8250
      else
8251
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8252
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253
      fi
8254
      ;;
8255
 
8256
    sysv5* | sco3.2v5* | sco5v6*)
8257
      # Note: We can NOT use -z defs as we might desire, because we do not
8258
      # link with -lc, and that would cause any symbols used from libc to
8259
      # always be unresolved, which means just about no library would
8260
      # ever link correctly.  If we're not using GNU ld we use -z text
8261
      # though, which does catch some bad symbols but isn't as heavy-handed
8262
      # as -z defs.
8263
      no_undefined_flag='${wl}-z,text'
8264
      allow_undefined_flag='${wl}-z,nodefs'
8265
      archive_cmds_need_lc=no
8266
      hardcode_shlibpath_var=no
8267
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8268
      hardcode_libdir_separator=':'
8269
      link_all_deplibs=yes
8270
      export_dynamic_flag_spec='${wl}-Bexport'
8271
      runpath_var='LD_RUN_PATH'
8272
 
8273
      if test "$GCC" = yes; then
8274
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8276
      else
8277
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279
      fi
8280
      ;;
8281
 
8282
    uts4*)
8283
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284
      hardcode_libdir_flag_spec='-L$libdir'
8285
      hardcode_shlibpath_var=no
8286
      ;;
8287
 
8288
    *)
8289
      ld_shlibs=no
8290
      ;;
8291
    esac
8292
 
8293
    if test x$host_vendor = xsni; then
8294
      case $host in
8295
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8296
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8297
        ;;
8298
      esac
8299
    fi
8300
  fi
8301
 
8302
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8303
echo "${ECHO_T}$ld_shlibs" >&6
8304
test "$ld_shlibs" = no && can_build_shared=no
8305
 
8306
with_gnu_ld=$with_gnu_ld
8307
 
8308
 
8309
 
8310
 
8311
 
8312
 
8313
 
8314
 
8315
 
8316
 
8317
 
8318
 
8319
 
8320
 
8321
 
8322
#
8323
# Do we need to explicitly link libc?
8324
#
8325
case "x$archive_cmds_need_lc" in
8326
x|xyes)
8327
  # Assume -lc should be added
8328
  archive_cmds_need_lc=yes
8329
 
8330
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8331
    case $archive_cmds in
8332
    *'~'*)
8333
      # FIXME: we may have to deal with multi-command sequences.
8334
      ;;
8335
    '$CC '*)
8336
      # Test whether the compiler implicitly links with -lc since on some
8337
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8338
      # to ld, don't add -lc before -lgcc.
8339
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8340
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8341
      $RM conftest*
8342
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8343
 
8344
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345
  (eval $ac_compile) 2>&5
8346
  ac_status=$?
8347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348
  (exit $ac_status); } 2>conftest.err; then
8349
        soname=conftest
8350
        lib=conftest
8351
        libobjs=conftest.$ac_objext
8352
        deplibs=
8353
        wl=$lt_prog_compiler_wl
8354
        pic_flag=$lt_prog_compiler_pic
8355
        compiler_flags=-v
8356
        linker_flags=-v
8357
        verstring=
8358
        output_objdir=.
8359
        libname=conftest
8360
        lt_save_allow_undefined_flag=$allow_undefined_flag
8361
        allow_undefined_flag=
8362
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8363
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8364
  ac_status=$?
8365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366
  (exit $ac_status); }
8367
        then
8368
          archive_cmds_need_lc=no
8369
        else
8370
          archive_cmds_need_lc=yes
8371
        fi
8372
        allow_undefined_flag=$lt_save_allow_undefined_flag
8373
      else
8374
        cat conftest.err 1>&5
8375
      fi
8376
      $RM conftest*
8377
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8378
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8379
      ;;
8380
    esac
8381
  fi
8382
  ;;
8383
esac
8384
 
8385
 
8386
 
8387
 
8388
 
8389
 
8390
 
8391
 
8392
 
8393
 
8394
 
8395
 
8396
 
8397
 
8398
 
8399
 
8400
 
8401
 
8402
 
8403
 
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
 
8411
 
8412
 
8413
 
8414
 
8415
 
8416
 
8417
 
8418
 
8419
 
8420
 
8421
 
8422
 
8423
 
8424
 
8425
 
8426
 
8427
 
8428
 
8429
 
8430
 
8431
 
8432
 
8433
 
8434
 
8435
 
8436
 
8437
 
8438
 
8439
 
8440
 
8441
 
8442
 
8443
 
8444
 
8445
 
8446
 
8447
 
8448
 
8449
 
8450
 
8451
 
8452
 
8453
 
8454
 
8455
 
8456
 
8457
 
8458
 
8459
 
8460
 
8461
 
8462
 
8463
 
8464
 
8465
 
8466
 
8467
 
8468
 
8469
 
8470
 
8471
 
8472
 
8473
 
8474
 
8475
 
8476
 
8477
 
8478
 
8479
 
8480
 
8481
 
8482
 
8483
 
8484
 
8485
 
8486
 
8487
 
8488
 
8489
 
8490
 
8491
 
8492
 
8493
 
8494
 
8495
 
8496
 
8497
 
8498
 
8499
 
8500
 
8501
 
8502
 
8503
 
8504
 
8505
 
8506
 
8507
 
8508
 
8509
 
8510
 
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
 
8520
 
8521
 
8522
 
8523
 
8524
 
8525
 
8526
 
8527
 
8528
 
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
 
8537
 
8538
 
8539
 
8540
 
8541
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8542
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8543
withGCC=$GCC
8544
if test "$withGCC" = yes; then
8545
  case $host_os in
8546
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8547
    *) lt_awk_arg="/^libraries:/" ;;
8548
  esac
8549
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8550
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8551
    # if the path contains ";" then we assume it to be the separator
8552
    # otherwise default to the standard path separator (i.e. ":") - it is
8553
    # assumed that no part of a normal pathname contains ";" but that should
8554
    # okay in the real world where ";" in dirpaths is itself problematic.
8555
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8556
  else
8557
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8558
  fi
8559
  # Ok, now we have the path, separated by spaces, we can step through it
8560
  # and add multilib dir if necessary.
8561
  lt_tmp_lt_search_path_spec=
8562
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8563
  for lt_sys_path in $lt_search_path_spec; do
8564
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8565
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8566
    else
8567
      test -d "$lt_sys_path" && \
8568
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8569
    fi
8570
  done
8571
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8572
BEGIN {RS=" "; FS="/|\n";} {
8573
  lt_foo="";
8574
  lt_count=0;
8575
  for (lt_i = NF; lt_i > 0; lt_i--) {
8576
    if ($lt_i != "" && $lt_i != ".") {
8577
      if ($lt_i == "..") {
8578
        lt_count++;
8579
      } else {
8580
        if (lt_count == 0) {
8581
          lt_foo="/" $lt_i lt_foo;
8582
        } else {
8583
          lt_count--;
8584
        }
8585
      }
8586
    }
8587
  }
8588
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8589
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8590
}'`
8591
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8592
else
8593
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8594
fi
8595
library_names_spec=
8596
libname_spec='lib$name'
8597
soname_spec=
8598
shrext_cmds=".so"
8599
postinstall_cmds=
8600
postuninstall_cmds=
8601
finish_cmds=
8602
finish_eval=
8603
shlibpath_var=
8604
shlibpath_overrides_runpath=unknown
8605
version_type=none
8606
dynamic_linker="$host_os ld.so"
8607
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8608
need_lib_prefix=unknown
8609
hardcode_into_libs=no
8610
 
8611
# when you set need_version to no, make sure it does not cause -set_version
8612
# flags to be left without arguments
8613
need_version=unknown
8614
 
8615
case $host_os in
8616
aix3*)
8617
  version_type=linux
8618
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8619
  shlibpath_var=LIBPATH
8620
 
8621
  # AIX 3 has no versioning support, so we append a major version to the name.
8622
  soname_spec='${libname}${release}${shared_ext}$major'
8623
  ;;
8624
 
8625
aix[4-9]*)
8626
  version_type=linux
8627
  need_lib_prefix=no
8628
  need_version=no
8629
  hardcode_into_libs=yes
8630
  if test "$host_cpu" = ia64; then
8631
    # AIX 5 supports IA64
8632
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8633
    shlibpath_var=LD_LIBRARY_PATH
8634
  else
8635
    # With GCC up to 2.95.x, collect2 would create an import file
8636
    # for dependence libraries.  The import file would start with
8637
    # the line `#! .'.  This would cause the generated library to
8638
    # depend on `.', always an invalid library.  This was fixed in
8639
    # development snapshots of GCC prior to 3.0.
8640
    case $host_os in
8641
      aix4 | aix4.[01] | aix4.[01].*)
8642
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8643
           echo ' yes '
8644
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8645
        :
8646
      else
8647
        can_build_shared=no
8648
      fi
8649
      ;;
8650
    esac
8651
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8652
    # soname into executable. Probably we can add versioning support to
8653
    # collect2, so additional links can be useful in future.
8654
    if test "$aix_use_runtimelinking" = yes; then
8655
      # If using run time linking (on AIX 4.2 or later) use lib.so
8656
      # instead of lib.a to let people know that these are not
8657
      # typical AIX shared libraries.
8658
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659
    else
8660
      # We preserve .a as extension for shared libraries through AIX4.2
8661
      # and later when we are not doing run time linking.
8662
      library_names_spec='${libname}${release}.a $libname.a'
8663
      soname_spec='${libname}${release}${shared_ext}$major'
8664
    fi
8665
    shlibpath_var=LIBPATH
8666
  fi
8667
  ;;
8668
 
8669
amigaos*)
8670
  if test "$host_cpu" = m68k; then
8671
    library_names_spec='$libname.ixlibrary $libname.a'
8672
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8673
    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'
8674
  else
8675
    dynamic_linker=no
8676
  fi
8677
  ;;
8678
 
8679
beos*)
8680
  library_names_spec='${libname}${shared_ext}'
8681
  dynamic_linker="$host_os ld.so"
8682
  shlibpath_var=LIBRARY_PATH
8683
  ;;
8684
 
8685
bsdi[45]*)
8686
  version_type=linux
8687
  need_version=no
8688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689
  soname_spec='${libname}${release}${shared_ext}$major'
8690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8691
  shlibpath_var=LD_LIBRARY_PATH
8692
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8693
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8694
  # the default ld.so.conf also contains /usr/contrib/lib and
8695
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8696
  # libtool to hard-code these into programs
8697
  ;;
8698
 
8699
cygwin* | mingw* | pw32*)
8700
  version_type=windows
8701
  shrext_cmds=".dll"
8702
  need_version=no
8703
  need_lib_prefix=no
8704
 
8705
  case $withGCC,$host_os in
8706
  yes,cygwin* | yes,mingw* | yes,pw32*)
8707
    library_names_spec='$libname.dll.a'
8708
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8709
    postinstall_cmds='base_file=`basename \${file}`~
8710
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8711
      dldir=$destdir/`dirname \$dlpath`~
8712
      test -d \$dldir || mkdir -p \$dldir~
8713
      $install_prog $dir/$dlname \$dldir/$dlname~
8714
      chmod a+x \$dldir/$dlname~
8715
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8716
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8717
      fi'
8718
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8719
      dlpath=$dir/\$dldll~
8720
       $RM \$dlpath'
8721
    shlibpath_overrides_runpath=yes
8722
 
8723
    case $host_os in
8724
    cygwin*)
8725
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8726
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8727
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8728
      ;;
8729
    mingw*)
8730
      # MinGW DLLs use traditional 'lib' prefix
8731
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8732
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8733
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8734
        # It is most probably a Windows format PATH printed by
8735
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8736
        # path with ; separators, and with drive letters. We can handle the
8737
        # drive letters (cygwin fileutils understands them), so leave them,
8738
        # especially as we might pass files found there to a mingw objdump,
8739
        # which wouldn't understand a cygwinified path. Ahh.
8740
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8741
      else
8742
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8743
      fi
8744
      ;;
8745
    pw32*)
8746
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8747
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748
      ;;
8749
    esac
8750
    ;;
8751
 
8752
  *)
8753
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8754
    ;;
8755
  esac
8756
  dynamic_linker='Win32 ld.exe'
8757
  # FIXME: first we should search . and the directory the executable is in
8758
  shlibpath_var=PATH
8759
  ;;
8760
 
8761
darwin* | rhapsody*)
8762
  dynamic_linker="$host_os dyld"
8763
  version_type=darwin
8764
  need_lib_prefix=no
8765
  need_version=no
8766
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8767
  soname_spec='${libname}${release}${major}$shared_ext'
8768
  shlibpath_overrides_runpath=yes
8769
  shlibpath_var=DYLD_LIBRARY_PATH
8770
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8771
 
8772
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8773
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8774
  ;;
8775
 
8776
dgux*)
8777
  version_type=linux
8778
  need_lib_prefix=no
8779
  need_version=no
8780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8781
  soname_spec='${libname}${release}${shared_ext}$major'
8782
  shlibpath_var=LD_LIBRARY_PATH
8783
  ;;
8784
 
8785
freebsd1*)
8786
  dynamic_linker=no
8787
  ;;
8788
 
8789
freebsd* | dragonfly*)
8790
  # DragonFly does not have aout.  When/if they implement a new
8791
  # versioning mechanism, adjust this.
8792
  if test -x /usr/bin/objformat; then
8793
    objformat=`/usr/bin/objformat`
8794
  else
8795
    case $host_os in
8796
    freebsd[123]*) objformat=aout ;;
8797
    *) objformat=elf ;;
8798
    esac
8799
  fi
8800
  version_type=freebsd-$objformat
8801
  case $version_type in
8802
    freebsd-elf*)
8803
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804
      need_version=no
8805
      need_lib_prefix=no
8806
      ;;
8807
    freebsd-*)
8808
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8809
      need_version=yes
8810
      ;;
8811
  esac
8812
  shlibpath_var=LD_LIBRARY_PATH
8813
  case $host_os in
8814
  freebsd2*)
8815
    shlibpath_overrides_runpath=yes
8816
    ;;
8817
  freebsd3.[01]* | freebsdelf3.[01]*)
8818
    shlibpath_overrides_runpath=yes
8819
    hardcode_into_libs=yes
8820
    ;;
8821
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8822
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8823
    shlibpath_overrides_runpath=no
8824
    hardcode_into_libs=yes
8825
    ;;
8826
  *) # from 4.6 on, and DragonFly
8827
    shlibpath_overrides_runpath=yes
8828
    hardcode_into_libs=yes
8829
    ;;
8830
  esac
8831
  ;;
8832
 
8833
gnu*)
8834
  version_type=linux
8835
  need_lib_prefix=no
8836
  need_version=no
8837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8838
  soname_spec='${libname}${release}${shared_ext}$major'
8839
  shlibpath_var=LD_LIBRARY_PATH
8840
  hardcode_into_libs=yes
8841
  ;;
8842
 
8843
hpux9* | hpux10* | hpux11*)
8844
  # Give a soname corresponding to the major version so that dld.sl refuses to
8845
  # link against other versions.
8846
  version_type=sunos
8847
  need_lib_prefix=no
8848
  need_version=no
8849
  case $host_cpu in
8850
  ia64*)
8851
    shrext_cmds='.so'
8852
    hardcode_into_libs=yes
8853
    dynamic_linker="$host_os dld.so"
8854
    shlibpath_var=LD_LIBRARY_PATH
8855
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8856
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857
    soname_spec='${libname}${release}${shared_ext}$major'
8858
    if test "X$HPUX_IA64_MODE" = X32; then
8859
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860
    else
8861
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862
    fi
8863
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8864
    ;;
8865
  hppa*64*)
8866
    shrext_cmds='.sl'
8867
    hardcode_into_libs=yes
8868
    dynamic_linker="$host_os dld.sl"
8869
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8870
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872
    soname_spec='${libname}${release}${shared_ext}$major'
8873
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8874
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875
    ;;
8876
  *)
8877
    shrext_cmds='.sl'
8878
    dynamic_linker="$host_os dld.sl"
8879
    shlibpath_var=SHLIB_PATH
8880
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8881
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8882
    soname_spec='${libname}${release}${shared_ext}$major'
8883
    ;;
8884
  esac
8885
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8886
  postinstall_cmds='chmod 555 $lib'
8887
  ;;
8888
 
8889
interix[3-9]*)
8890
  version_type=linux
8891
  need_lib_prefix=no
8892
  need_version=no
8893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8894
  soname_spec='${libname}${release}${shared_ext}$major'
8895
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8896
  shlibpath_var=LD_LIBRARY_PATH
8897
  shlibpath_overrides_runpath=no
8898
  hardcode_into_libs=yes
8899
  ;;
8900
 
8901
irix5* | irix6* | nonstopux*)
8902
  case $host_os in
8903
    nonstopux*) version_type=nonstopux ;;
8904
    *)
8905
        if test "$lt_cv_prog_gnu_ld" = yes; then
8906
                version_type=linux
8907
        else
8908
                version_type=irix
8909
        fi ;;
8910
  esac
8911
  need_lib_prefix=no
8912
  need_version=no
8913
  soname_spec='${libname}${release}${shared_ext}$major'
8914
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915
  case $host_os in
8916
  irix5* | nonstopux*)
8917
    libsuff= shlibsuff=
8918
    ;;
8919
  *)
8920
    case $LD in # libtool.m4 will add one of these switches to LD
8921
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8922
      libsuff= shlibsuff= libmagic=32-bit;;
8923
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8924
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8925
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8926
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8927
    *) libsuff= shlibsuff= libmagic=never-match;;
8928
    esac
8929
    ;;
8930
  esac
8931
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8932
  shlibpath_overrides_runpath=no
8933
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8934
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8935
  hardcode_into_libs=yes
8936
  ;;
8937
 
8938
# No shared lib support for Linux oldld, aout, or coff.
8939
linux*oldld* | linux*aout* | linux*coff*)
8940
  dynamic_linker=no
8941
  ;;
8942
 
8943
# This must be Linux ELF.
8944
linux* | k*bsd*-gnu)
8945
  version_type=linux
8946
  need_lib_prefix=no
8947
  need_version=no
8948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949
  soname_spec='${libname}${release}${shared_ext}$major'
8950
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8951
  shlibpath_var=LD_LIBRARY_PATH
8952
  shlibpath_overrides_runpath=no
8953
  # Some binutils ld are patched to set DT_RUNPATH
8954
  save_LDFLAGS=$LDFLAGS
8955
  save_libdir=$libdir
8956
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8957
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8958
  cat >conftest.$ac_ext <<_ACEOF
8959
/* confdefs.h.  */
8960
_ACEOF
8961
cat confdefs.h >>conftest.$ac_ext
8962
cat >>conftest.$ac_ext <<_ACEOF
8963
/* end confdefs.h.  */
8964
 
8965
int
8966
main ()
8967
{
8968
 
8969
  ;
8970
  return 0;
8971
}
8972
_ACEOF
8973
rm -f conftest.$ac_objext conftest$ac_exeext
8974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975
  (eval $ac_link) 2>conftest.er1
8976
  ac_status=$?
8977
  grep -v '^ *+' conftest.er1 >conftest.err
8978
  rm -f conftest.er1
8979
  cat conftest.err >&5
8980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981
  (exit $ac_status); } &&
8982
         { ac_try='test -z "$ac_c_werror_flag"
8983
                         || test ! -s conftest.err'
8984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985
  (eval $ac_try) 2>&5
8986
  ac_status=$?
8987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988
  (exit $ac_status); }; } &&
8989
         { ac_try='test -s conftest$ac_exeext'
8990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991
  (eval $ac_try) 2>&5
8992
  ac_status=$?
8993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994
  (exit $ac_status); }; }; then
8995
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8996
  shlibpath_overrides_runpath=yes
8997
fi
8998
 
8999
else
9000
  echo "$as_me: failed program was:" >&5
9001
sed 's/^/| /' conftest.$ac_ext >&5
9002
 
9003
fi
9004
rm -f conftest.err conftest.$ac_objext \
9005
      conftest$ac_exeext conftest.$ac_ext
9006
  LDFLAGS=$save_LDFLAGS
9007
  libdir=$save_libdir
9008
 
9009
  # This implies no fast_install, which is unacceptable.
9010
  # Some rework will be needed to allow for fast_install
9011
  # before this can be enabled.
9012
  hardcode_into_libs=yes
9013
 
9014
  # Append ld.so.conf contents to the search path
9015
  if test -f /etc/ld.so.conf; then
9016
    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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9017
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9018
  fi
9019
 
9020
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9021
  # powerpc, because MkLinux only supported shared libraries with the
9022
  # GNU dynamic linker.  Since this was broken with cross compilers,
9023
  # most powerpc-linux boxes support dynamic linking these days and
9024
  # people can always --disable-shared, the test was removed, and we
9025
  # assume the GNU/Linux dynamic linker is in use.
9026
  dynamic_linker='GNU/Linux ld.so'
9027
  ;;
9028
 
9029
netbsd*)
9030
  version_type=sunos
9031
  need_lib_prefix=no
9032
  need_version=no
9033
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9034
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9036
    dynamic_linker='NetBSD (a.out) ld.so'
9037
  else
9038
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039
    soname_spec='${libname}${release}${shared_ext}$major'
9040
    dynamic_linker='NetBSD ld.elf_so'
9041
  fi
9042
  shlibpath_var=LD_LIBRARY_PATH
9043
  shlibpath_overrides_runpath=yes
9044
  hardcode_into_libs=yes
9045
  ;;
9046
 
9047
newsos6)
9048
  version_type=linux
9049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050
  shlibpath_var=LD_LIBRARY_PATH
9051
  shlibpath_overrides_runpath=yes
9052
  ;;
9053
 
9054
*nto* | *qnx*)
9055
  version_type=qnx
9056
  need_lib_prefix=no
9057
  need_version=no
9058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059
  soname_spec='${libname}${release}${shared_ext}$major'
9060
  shlibpath_var=LD_LIBRARY_PATH
9061
  shlibpath_overrides_runpath=no
9062
  hardcode_into_libs=yes
9063
  dynamic_linker='ldqnx.so'
9064
  ;;
9065
 
9066
openbsd*)
9067
  version_type=sunos
9068
  sys_lib_dlsearch_path_spec="/usr/lib"
9069
  need_lib_prefix=no
9070
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9071
  case $host_os in
9072
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9073
    *)                          need_version=no  ;;
9074
  esac
9075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9076
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9077
  shlibpath_var=LD_LIBRARY_PATH
9078
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9079
    case $host_os in
9080
      openbsd2.[89] | openbsd2.[89].*)
9081
        shlibpath_overrides_runpath=no
9082
        ;;
9083
      *)
9084
        shlibpath_overrides_runpath=yes
9085
        ;;
9086
      esac
9087
  else
9088
    shlibpath_overrides_runpath=yes
9089
  fi
9090
  ;;
9091
 
9092
os2*)
9093
  libname_spec='$name'
9094
  shrext_cmds=".dll"
9095
  need_lib_prefix=no
9096
  library_names_spec='$libname${shared_ext} $libname.a'
9097
  dynamic_linker='OS/2 ld.exe'
9098
  shlibpath_var=LIBPATH
9099
  ;;
9100
 
9101
osf3* | osf4* | osf5*)
9102
  version_type=osf
9103
  need_lib_prefix=no
9104
  need_version=no
9105
  soname_spec='${libname}${release}${shared_ext}$major'
9106
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107
  shlibpath_var=LD_LIBRARY_PATH
9108
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9109
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9110
  ;;
9111
 
9112
rdos*)
9113
  dynamic_linker=no
9114
  ;;
9115
 
9116
solaris*)
9117
  version_type=linux
9118
  need_lib_prefix=no
9119
  need_version=no
9120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121
  soname_spec='${libname}${release}${shared_ext}$major'
9122
  shlibpath_var=LD_LIBRARY_PATH
9123
  shlibpath_overrides_runpath=yes
9124
  hardcode_into_libs=yes
9125
  # ldd complains unless libraries are executable
9126
  postinstall_cmds='chmod +x $lib'
9127
  ;;
9128
 
9129
sunos4*)
9130
  version_type=sunos
9131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9132
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9133
  shlibpath_var=LD_LIBRARY_PATH
9134
  shlibpath_overrides_runpath=yes
9135
  if test "$with_gnu_ld" = yes; then
9136
    need_lib_prefix=no
9137
  fi
9138
  need_version=yes
9139
  ;;
9140
 
9141
sysv4 | sysv4.3*)
9142
  version_type=linux
9143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144
  soname_spec='${libname}${release}${shared_ext}$major'
9145
  shlibpath_var=LD_LIBRARY_PATH
9146
  case $host_vendor in
9147
    sni)
9148
      shlibpath_overrides_runpath=no
9149
      need_lib_prefix=no
9150
      runpath_var=LD_RUN_PATH
9151
      ;;
9152
    siemens)
9153
      need_lib_prefix=no
9154
      ;;
9155
    motorola)
9156
      need_lib_prefix=no
9157
      need_version=no
9158
      shlibpath_overrides_runpath=no
9159
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9160
      ;;
9161
  esac
9162
  ;;
9163
 
9164
sysv4*MP*)
9165
  if test -d /usr/nec ;then
9166
    version_type=linux
9167
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9168
    soname_spec='$libname${shared_ext}.$major'
9169
    shlibpath_var=LD_LIBRARY_PATH
9170
  fi
9171
  ;;
9172
 
9173
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9174
  version_type=freebsd-elf
9175
  need_lib_prefix=no
9176
  need_version=no
9177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9178
  soname_spec='${libname}${release}${shared_ext}$major'
9179
  shlibpath_var=LD_LIBRARY_PATH
9180
  shlibpath_overrides_runpath=yes
9181
  hardcode_into_libs=yes
9182
  if test "$with_gnu_ld" = yes; then
9183
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9184
  else
9185
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9186
    case $host_os in
9187
      sco3.2v5*)
9188
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9189
        ;;
9190
    esac
9191
  fi
9192
  sys_lib_dlsearch_path_spec='/usr/lib'
9193
  ;;
9194
 
9195
tpf*)
9196
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9197
  version_type=linux
9198
  need_lib_prefix=no
9199
  need_version=no
9200
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201
  shlibpath_var=LD_LIBRARY_PATH
9202
  shlibpath_overrides_runpath=no
9203
  hardcode_into_libs=yes
9204
  ;;
9205
 
9206
uts4*)
9207
  version_type=linux
9208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209
  soname_spec='${libname}${release}${shared_ext}$major'
9210
  shlibpath_var=LD_LIBRARY_PATH
9211
  ;;
9212
 
9213
*)
9214
  dynamic_linker=no
9215
  ;;
9216
esac
9217
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9218
echo "${ECHO_T}$dynamic_linker" >&6
9219
test "$dynamic_linker" = no && can_build_shared=no
9220
 
9221
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9222
if test "$GCC" = yes; then
9223
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9224
fi
9225
 
9226
 
9227
 
9228
 
9229
 
9230
 
9231
 
9232
 
9233
 
9234
 
9235
 
9236
 
9237
 
9238
 
9239
 
9240
 
9241
 
9242
 
9243
 
9244
 
9245
 
9246
 
9247
 
9248
 
9249
 
9250
 
9251
 
9252
 
9253
 
9254
 
9255
 
9256
 
9257
 
9258
 
9259
 
9260
 
9261
 
9262
 
9263
 
9264
 
9265
 
9266
 
9267
 
9268
 
9269
 
9270
 
9271
 
9272
 
9273
 
9274
 
9275
 
9276
 
9277
 
9278
 
9279
 
9280
 
9281
 
9282
 
9283
 
9284
 
9285
 
9286
 
9287
 
9288
 
9289
 
9290
 
9291
 
9292
 
9293
 
9294
 
9295
 
9296
 
9297
 
9298
 
9299
 
9300
 
9301
 
9302
 
9303
 
9304
 
9305
 
9306
 
9307
 
9308
 
9309
 
9310
 
9311
 
9312
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9313
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9314
hardcode_action=
9315
if test -n "$hardcode_libdir_flag_spec" ||
9316
   test -n "$runpath_var" ||
9317
   test "X$hardcode_automatic" = "Xyes" ; then
9318
 
9319
  # We can hardcode non-existent directories.
9320
  if test "$hardcode_direct" != no &&
9321
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9322
     # have to relink, otherwise we might link with an installed library
9323
     # when we should be linking with a yet-to-be-installed one
9324
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9325
     test "$hardcode_minus_L" != no; then
9326
    # Linking always hardcodes the temporary library directory.
9327
    hardcode_action=relink
9328
  else
9329
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9330
    hardcode_action=immediate
9331
  fi
9332
else
9333
  # We cannot hardcode anything, or else we can only hardcode existing
9334
  # directories.
9335
  hardcode_action=unsupported
9336
fi
9337
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9338
echo "${ECHO_T}$hardcode_action" >&6
9339
 
9340
if test "$hardcode_action" = relink ||
9341
   test "$inherit_rpath" = yes; then
9342
  # Fast installation is not supported
9343
  enable_fast_install=no
9344
elif test "$shlibpath_overrides_runpath" = yes ||
9345
     test "$enable_shared" = no; then
9346
  # Fast installation is not necessary
9347
  enable_fast_install=needless
9348
fi
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
  if test "x$enable_dlopen" != xyes; then
9356
  enable_dlopen=unknown
9357
  enable_dlopen_self=unknown
9358
  enable_dlopen_self_static=unknown
9359
else
9360
  lt_cv_dlopen=no
9361
  lt_cv_dlopen_libs=
9362
 
9363
  case $host_os in
9364
  beos*)
9365
    lt_cv_dlopen="load_add_on"
9366
    lt_cv_dlopen_libs=
9367
    lt_cv_dlopen_self=yes
9368
    ;;
9369
 
9370
  mingw* | pw32*)
9371
    lt_cv_dlopen="LoadLibrary"
9372
    lt_cv_dlopen_libs=
9373
    ;;
9374
 
9375
  cygwin*)
9376
    lt_cv_dlopen="dlopen"
9377
    lt_cv_dlopen_libs=
9378
    ;;
9379
 
9380
  darwin*)
9381
  # if libdl is installed we need to link against it
9382
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9383
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9384
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9385
  echo $ECHO_N "(cached) $ECHO_C" >&6
9386
else
9387
  ac_check_lib_save_LIBS=$LIBS
9388
LIBS="-ldl  $LIBS"
9389
cat >conftest.$ac_ext <<_ACEOF
9390
/* confdefs.h.  */
9391
_ACEOF
9392
cat confdefs.h >>conftest.$ac_ext
9393
cat >>conftest.$ac_ext <<_ACEOF
9394
/* end confdefs.h.  */
9395
 
9396
/* Override any gcc2 internal prototype to avoid an error.  */
9397
#ifdef __cplusplus
9398
extern "C"
9399
#endif
9400
/* We use char because int might match the return type of a gcc2
9401
   builtin and then its argument prototype would still apply.  */
9402
char dlopen ();
9403
int
9404
main ()
9405
{
9406
dlopen ();
9407
  ;
9408
  return 0;
9409
}
9410
_ACEOF
9411
rm -f conftest.$ac_objext conftest$ac_exeext
9412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9413
  (eval $ac_link) 2>conftest.er1
9414
  ac_status=$?
9415
  grep -v '^ *+' conftest.er1 >conftest.err
9416
  rm -f conftest.er1
9417
  cat conftest.err >&5
9418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419
  (exit $ac_status); } &&
9420
         { ac_try='test -z "$ac_c_werror_flag"
9421
                         || test ! -s conftest.err'
9422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423
  (eval $ac_try) 2>&5
9424
  ac_status=$?
9425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426
  (exit $ac_status); }; } &&
9427
         { ac_try='test -s conftest$ac_exeext'
9428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429
  (eval $ac_try) 2>&5
9430
  ac_status=$?
9431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432
  (exit $ac_status); }; }; then
9433
  ac_cv_lib_dl_dlopen=yes
9434
else
9435
  echo "$as_me: failed program was:" >&5
9436
sed 's/^/| /' conftest.$ac_ext >&5
9437
 
9438
ac_cv_lib_dl_dlopen=no
9439
fi
9440
rm -f conftest.err conftest.$ac_objext \
9441
      conftest$ac_exeext conftest.$ac_ext
9442
LIBS=$ac_check_lib_save_LIBS
9443
fi
9444
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9445
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9446
if test $ac_cv_lib_dl_dlopen = yes; then
9447
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9448
else
9449
 
9450
    lt_cv_dlopen="dyld"
9451
    lt_cv_dlopen_libs=
9452
    lt_cv_dlopen_self=yes
9453
 
9454
fi
9455
 
9456
    ;;
9457
 
9458
  *)
9459
    echo "$as_me:$LINENO: checking for shl_load" >&5
9460
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9461
if test "${ac_cv_func_shl_load+set}" = set; then
9462
  echo $ECHO_N "(cached) $ECHO_C" >&6
9463
else
9464
  cat >conftest.$ac_ext <<_ACEOF
9465
/* confdefs.h.  */
9466
_ACEOF
9467
cat confdefs.h >>conftest.$ac_ext
9468
cat >>conftest.$ac_ext <<_ACEOF
9469
/* end confdefs.h.  */
9470
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9471
   For example, HP-UX 11i  declares gettimeofday.  */
9472
#define shl_load innocuous_shl_load
9473
 
9474
/* System header to define __stub macros and hopefully few prototypes,
9475
    which can conflict with char shl_load (); below.
9476
    Prefer  to  if __STDC__ is defined, since
9477
     exists even on freestanding compilers.  */
9478
 
9479
#ifdef __STDC__
9480
# include 
9481
#else
9482
# include 
9483
#endif
9484
 
9485
#undef shl_load
9486
 
9487
/* Override any gcc2 internal prototype to avoid an error.  */
9488
#ifdef __cplusplus
9489
extern "C"
9490
{
9491
#endif
9492
/* We use char because int might match the return type of a gcc2
9493
   builtin and then its argument prototype would still apply.  */
9494
char shl_load ();
9495
/* The GNU C library defines this for functions which it implements
9496
    to always fail with ENOSYS.  Some functions are actually named
9497
    something starting with __ and the normal name is an alias.  */
9498
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9499
choke me
9500
#else
9501
char (*f) () = shl_load;
9502
#endif
9503
#ifdef __cplusplus
9504
}
9505
#endif
9506
 
9507
int
9508
main ()
9509
{
9510
return f != shl_load;
9511
  ;
9512
  return 0;
9513
}
9514
_ACEOF
9515
rm -f conftest.$ac_objext conftest$ac_exeext
9516
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517
  (eval $ac_link) 2>conftest.er1
9518
  ac_status=$?
9519
  grep -v '^ *+' conftest.er1 >conftest.err
9520
  rm -f conftest.er1
9521
  cat conftest.err >&5
9522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523
  (exit $ac_status); } &&
9524
         { ac_try='test -z "$ac_c_werror_flag"
9525
                         || test ! -s conftest.err'
9526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527
  (eval $ac_try) 2>&5
9528
  ac_status=$?
9529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530
  (exit $ac_status); }; } &&
9531
         { ac_try='test -s conftest$ac_exeext'
9532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533
  (eval $ac_try) 2>&5
9534
  ac_status=$?
9535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536
  (exit $ac_status); }; }; then
9537
  ac_cv_func_shl_load=yes
9538
else
9539
  echo "$as_me: failed program was:" >&5
9540
sed 's/^/| /' conftest.$ac_ext >&5
9541
 
9542
ac_cv_func_shl_load=no
9543
fi
9544
rm -f conftest.err conftest.$ac_objext \
9545
      conftest$ac_exeext conftest.$ac_ext
9546
fi
9547
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9548
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9549
if test $ac_cv_func_shl_load = yes; then
9550
  lt_cv_dlopen="shl_load"
9551
else
9552
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9553
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9554
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9555
  echo $ECHO_N "(cached) $ECHO_C" >&6
9556
else
9557
  ac_check_lib_save_LIBS=$LIBS
9558
LIBS="-ldld  $LIBS"
9559
cat >conftest.$ac_ext <<_ACEOF
9560
/* confdefs.h.  */
9561
_ACEOF
9562
cat confdefs.h >>conftest.$ac_ext
9563
cat >>conftest.$ac_ext <<_ACEOF
9564
/* end confdefs.h.  */
9565
 
9566
/* Override any gcc2 internal prototype to avoid an error.  */
9567
#ifdef __cplusplus
9568
extern "C"
9569
#endif
9570
/* We use char because int might match the return type of a gcc2
9571
   builtin and then its argument prototype would still apply.  */
9572
char shl_load ();
9573
int
9574
main ()
9575
{
9576
shl_load ();
9577
  ;
9578
  return 0;
9579
}
9580
_ACEOF
9581
rm -f conftest.$ac_objext conftest$ac_exeext
9582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583
  (eval $ac_link) 2>conftest.er1
9584
  ac_status=$?
9585
  grep -v '^ *+' conftest.er1 >conftest.err
9586
  rm -f conftest.er1
9587
  cat conftest.err >&5
9588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589
  (exit $ac_status); } &&
9590
         { ac_try='test -z "$ac_c_werror_flag"
9591
                         || test ! -s conftest.err'
9592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593
  (eval $ac_try) 2>&5
9594
  ac_status=$?
9595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596
  (exit $ac_status); }; } &&
9597
         { ac_try='test -s conftest$ac_exeext'
9598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599
  (eval $ac_try) 2>&5
9600
  ac_status=$?
9601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602
  (exit $ac_status); }; }; then
9603
  ac_cv_lib_dld_shl_load=yes
9604
else
9605
  echo "$as_me: failed program was:" >&5
9606
sed 's/^/| /' conftest.$ac_ext >&5
9607
 
9608
ac_cv_lib_dld_shl_load=no
9609
fi
9610
rm -f conftest.err conftest.$ac_objext \
9611
      conftest$ac_exeext conftest.$ac_ext
9612
LIBS=$ac_check_lib_save_LIBS
9613
fi
9614
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9615
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9616
if test $ac_cv_lib_dld_shl_load = yes; then
9617
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9618
else
9619
  echo "$as_me:$LINENO: checking for dlopen" >&5
9620
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9621
if test "${ac_cv_func_dlopen+set}" = set; then
9622
  echo $ECHO_N "(cached) $ECHO_C" >&6
9623
else
9624
  cat >conftest.$ac_ext <<_ACEOF
9625
/* confdefs.h.  */
9626
_ACEOF
9627
cat confdefs.h >>conftest.$ac_ext
9628
cat >>conftest.$ac_ext <<_ACEOF
9629
/* end confdefs.h.  */
9630
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9631
   For example, HP-UX 11i  declares gettimeofday.  */
9632
#define dlopen innocuous_dlopen
9633
 
9634
/* System header to define __stub macros and hopefully few prototypes,
9635
    which can conflict with char dlopen (); below.
9636
    Prefer  to  if __STDC__ is defined, since
9637
     exists even on freestanding compilers.  */
9638
 
9639
#ifdef __STDC__
9640
# include 
9641
#else
9642
# include 
9643
#endif
9644
 
9645
#undef dlopen
9646
 
9647
/* Override any gcc2 internal prototype to avoid an error.  */
9648
#ifdef __cplusplus
9649
extern "C"
9650
{
9651
#endif
9652
/* We use char because int might match the return type of a gcc2
9653
   builtin and then its argument prototype would still apply.  */
9654
char dlopen ();
9655
/* The GNU C library defines this for functions which it implements
9656
    to always fail with ENOSYS.  Some functions are actually named
9657
    something starting with __ and the normal name is an alias.  */
9658
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9659
choke me
9660
#else
9661
char (*f) () = dlopen;
9662
#endif
9663
#ifdef __cplusplus
9664
}
9665
#endif
9666
 
9667
int
9668
main ()
9669
{
9670
return f != dlopen;
9671
  ;
9672
  return 0;
9673
}
9674
_ACEOF
9675
rm -f conftest.$ac_objext conftest$ac_exeext
9676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677
  (eval $ac_link) 2>conftest.er1
9678
  ac_status=$?
9679
  grep -v '^ *+' conftest.er1 >conftest.err
9680
  rm -f conftest.er1
9681
  cat conftest.err >&5
9682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683
  (exit $ac_status); } &&
9684
         { ac_try='test -z "$ac_c_werror_flag"
9685
                         || test ! -s conftest.err'
9686
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687
  (eval $ac_try) 2>&5
9688
  ac_status=$?
9689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690
  (exit $ac_status); }; } &&
9691
         { ac_try='test -s conftest$ac_exeext'
9692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693
  (eval $ac_try) 2>&5
9694
  ac_status=$?
9695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696
  (exit $ac_status); }; }; then
9697
  ac_cv_func_dlopen=yes
9698
else
9699
  echo "$as_me: failed program was:" >&5
9700
sed 's/^/| /' conftest.$ac_ext >&5
9701
 
9702
ac_cv_func_dlopen=no
9703
fi
9704
rm -f conftest.err conftest.$ac_objext \
9705
      conftest$ac_exeext conftest.$ac_ext
9706
fi
9707
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9708
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9709
if test $ac_cv_func_dlopen = yes; then
9710
  lt_cv_dlopen="dlopen"
9711
else
9712
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9713
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9714
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9715
  echo $ECHO_N "(cached) $ECHO_C" >&6
9716
else
9717
  ac_check_lib_save_LIBS=$LIBS
9718
LIBS="-ldl  $LIBS"
9719
cat >conftest.$ac_ext <<_ACEOF
9720
/* confdefs.h.  */
9721
_ACEOF
9722
cat confdefs.h >>conftest.$ac_ext
9723
cat >>conftest.$ac_ext <<_ACEOF
9724
/* end confdefs.h.  */
9725
 
9726
/* Override any gcc2 internal prototype to avoid an error.  */
9727
#ifdef __cplusplus
9728
extern "C"
9729
#endif
9730
/* We use char because int might match the return type of a gcc2
9731
   builtin and then its argument prototype would still apply.  */
9732
char dlopen ();
9733
int
9734
main ()
9735
{
9736
dlopen ();
9737
  ;
9738
  return 0;
9739
}
9740
_ACEOF
9741
rm -f conftest.$ac_objext conftest$ac_exeext
9742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743
  (eval $ac_link) 2>conftest.er1
9744
  ac_status=$?
9745
  grep -v '^ *+' conftest.er1 >conftest.err
9746
  rm -f conftest.er1
9747
  cat conftest.err >&5
9748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749
  (exit $ac_status); } &&
9750
         { ac_try='test -z "$ac_c_werror_flag"
9751
                         || test ! -s conftest.err'
9752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753
  (eval $ac_try) 2>&5
9754
  ac_status=$?
9755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
  (exit $ac_status); }; } &&
9757
         { ac_try='test -s conftest$ac_exeext'
9758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759
  (eval $ac_try) 2>&5
9760
  ac_status=$?
9761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
  (exit $ac_status); }; }; then
9763
  ac_cv_lib_dl_dlopen=yes
9764
else
9765
  echo "$as_me: failed program was:" >&5
9766
sed 's/^/| /' conftest.$ac_ext >&5
9767
 
9768
ac_cv_lib_dl_dlopen=no
9769
fi
9770
rm -f conftest.err conftest.$ac_objext \
9771
      conftest$ac_exeext conftest.$ac_ext
9772
LIBS=$ac_check_lib_save_LIBS
9773
fi
9774
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9775
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9776
if test $ac_cv_lib_dl_dlopen = yes; then
9777
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9778
else
9779
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9780
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9781
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9782
  echo $ECHO_N "(cached) $ECHO_C" >&6
9783
else
9784
  ac_check_lib_save_LIBS=$LIBS
9785
LIBS="-lsvld  $LIBS"
9786
cat >conftest.$ac_ext <<_ACEOF
9787
/* confdefs.h.  */
9788
_ACEOF
9789
cat confdefs.h >>conftest.$ac_ext
9790
cat >>conftest.$ac_ext <<_ACEOF
9791
/* end confdefs.h.  */
9792
 
9793
/* Override any gcc2 internal prototype to avoid an error.  */
9794
#ifdef __cplusplus
9795
extern "C"
9796
#endif
9797
/* We use char because int might match the return type of a gcc2
9798
   builtin and then its argument prototype would still apply.  */
9799
char dlopen ();
9800
int
9801
main ()
9802
{
9803
dlopen ();
9804
  ;
9805
  return 0;
9806
}
9807
_ACEOF
9808
rm -f conftest.$ac_objext conftest$ac_exeext
9809
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810
  (eval $ac_link) 2>conftest.er1
9811
  ac_status=$?
9812
  grep -v '^ *+' conftest.er1 >conftest.err
9813
  rm -f conftest.er1
9814
  cat conftest.err >&5
9815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816
  (exit $ac_status); } &&
9817
         { ac_try='test -z "$ac_c_werror_flag"
9818
                         || test ! -s conftest.err'
9819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820
  (eval $ac_try) 2>&5
9821
  ac_status=$?
9822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823
  (exit $ac_status); }; } &&
9824
         { ac_try='test -s conftest$ac_exeext'
9825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826
  (eval $ac_try) 2>&5
9827
  ac_status=$?
9828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829
  (exit $ac_status); }; }; then
9830
  ac_cv_lib_svld_dlopen=yes
9831
else
9832
  echo "$as_me: failed program was:" >&5
9833
sed 's/^/| /' conftest.$ac_ext >&5
9834
 
9835
ac_cv_lib_svld_dlopen=no
9836
fi
9837
rm -f conftest.err conftest.$ac_objext \
9838
      conftest$ac_exeext conftest.$ac_ext
9839
LIBS=$ac_check_lib_save_LIBS
9840
fi
9841
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9842
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9843
if test $ac_cv_lib_svld_dlopen = yes; then
9844
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9845
else
9846
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9847
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9848
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9849
  echo $ECHO_N "(cached) $ECHO_C" >&6
9850
else
9851
  ac_check_lib_save_LIBS=$LIBS
9852
LIBS="-ldld  $LIBS"
9853
cat >conftest.$ac_ext <<_ACEOF
9854
/* confdefs.h.  */
9855
_ACEOF
9856
cat confdefs.h >>conftest.$ac_ext
9857
cat >>conftest.$ac_ext <<_ACEOF
9858
/* end confdefs.h.  */
9859
 
9860
/* Override any gcc2 internal prototype to avoid an error.  */
9861
#ifdef __cplusplus
9862
extern "C"
9863
#endif
9864
/* We use char because int might match the return type of a gcc2
9865
   builtin and then its argument prototype would still apply.  */
9866
char dld_link ();
9867
int
9868
main ()
9869
{
9870
dld_link ();
9871
  ;
9872
  return 0;
9873
}
9874
_ACEOF
9875
rm -f conftest.$ac_objext conftest$ac_exeext
9876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877
  (eval $ac_link) 2>conftest.er1
9878
  ac_status=$?
9879
  grep -v '^ *+' conftest.er1 >conftest.err
9880
  rm -f conftest.er1
9881
  cat conftest.err >&5
9882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883
  (exit $ac_status); } &&
9884
         { ac_try='test -z "$ac_c_werror_flag"
9885
                         || test ! -s conftest.err'
9886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887
  (eval $ac_try) 2>&5
9888
  ac_status=$?
9889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890
  (exit $ac_status); }; } &&
9891
         { ac_try='test -s conftest$ac_exeext'
9892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893
  (eval $ac_try) 2>&5
9894
  ac_status=$?
9895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896
  (exit $ac_status); }; }; then
9897
  ac_cv_lib_dld_dld_link=yes
9898
else
9899
  echo "$as_me: failed program was:" >&5
9900
sed 's/^/| /' conftest.$ac_ext >&5
9901
 
9902
ac_cv_lib_dld_dld_link=no
9903
fi
9904
rm -f conftest.err conftest.$ac_objext \
9905
      conftest$ac_exeext conftest.$ac_ext
9906
LIBS=$ac_check_lib_save_LIBS
9907
fi
9908
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9909
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9910
if test $ac_cv_lib_dld_dld_link = yes; then
9911
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9912
fi
9913
 
9914
 
9915
fi
9916
 
9917
 
9918
fi
9919
 
9920
 
9921
fi
9922
 
9923
 
9924
fi
9925
 
9926
 
9927
fi
9928
 
9929
    ;;
9930
  esac
9931
 
9932
  if test "x$lt_cv_dlopen" != xno; then
9933
    enable_dlopen=yes
9934
  else
9935
    enable_dlopen=no
9936
  fi
9937
 
9938
  case $lt_cv_dlopen in
9939
  dlopen)
9940
    save_CPPFLAGS="$CPPFLAGS"
9941
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9942
 
9943
    save_LDFLAGS="$LDFLAGS"
9944
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9945
 
9946
    save_LIBS="$LIBS"
9947
    LIBS="$lt_cv_dlopen_libs $LIBS"
9948
 
9949
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9950
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9951
if test "${lt_cv_dlopen_self+set}" = set; then
9952
  echo $ECHO_N "(cached) $ECHO_C" >&6
9953
else
9954
          if test "$cross_compiling" = yes; then :
9955
  lt_cv_dlopen_self=cross
9956
else
9957
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9958
  lt_status=$lt_dlunknown
9959
  cat > conftest.$ac_ext <<_LT_EOF
9960
#line 9960 "configure"
9961
#include "confdefs.h"
9962
 
9963
#if HAVE_DLFCN_H
9964
#include 
9965
#endif
9966
 
9967
#include 
9968
 
9969
#ifdef RTLD_GLOBAL
9970
#  define LT_DLGLOBAL           RTLD_GLOBAL
9971
#else
9972
#  ifdef DL_GLOBAL
9973
#    define LT_DLGLOBAL         DL_GLOBAL
9974
#  else
9975
#    define LT_DLGLOBAL         0
9976
#  endif
9977
#endif
9978
 
9979
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9980
   find out it does not work in some platform. */
9981
#ifndef LT_DLLAZY_OR_NOW
9982
#  ifdef RTLD_LAZY
9983
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9984
#  else
9985
#    ifdef DL_LAZY
9986
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9987
#    else
9988
#      ifdef RTLD_NOW
9989
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9990
#      else
9991
#        ifdef DL_NOW
9992
#          define LT_DLLAZY_OR_NOW      DL_NOW
9993
#        else
9994
#          define LT_DLLAZY_OR_NOW      0
9995
#        endif
9996
#      endif
9997
#    endif
9998
#  endif
9999
#endif
10000
 
10001
#ifdef __cplusplus
10002
extern "C" void exit (int);
10003
#endif
10004
 
10005
void fnord() { int i=42;}
10006
int main ()
10007
{
10008
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10009
  int status = $lt_dlunknown;
10010
 
10011
  if (self)
10012
    {
10013
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10014
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10015
      /* dlclose (self); */
10016
    }
10017
  else
10018
    puts (dlerror ());
10019
 
10020
    exit (status);
10021
}
10022
_LT_EOF
10023
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024
  (eval $ac_link) 2>&5
10025
  ac_status=$?
10026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10028
    (./conftest; exit; ) >&5 2>/dev/null
10029
    lt_status=$?
10030
    case x$lt_status in
10031
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10032
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10033
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10034
    esac
10035
  else :
10036
    # compilation failed
10037
    lt_cv_dlopen_self=no
10038
  fi
10039
fi
10040
rm -fr conftest*
10041
 
10042
 
10043
fi
10044
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10045
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10046
 
10047
    if test "x$lt_cv_dlopen_self" = xyes; then
10048
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10049
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10050
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10051
if test "${lt_cv_dlopen_self_static+set}" = set; then
10052
  echo $ECHO_N "(cached) $ECHO_C" >&6
10053
else
10054
          if test "$cross_compiling" = yes; then :
10055
  lt_cv_dlopen_self_static=cross
10056
else
10057
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10058
  lt_status=$lt_dlunknown
10059
  cat > conftest.$ac_ext <<_LT_EOF
10060
#line 10060 "configure"
10061
#include "confdefs.h"
10062
 
10063
#if HAVE_DLFCN_H
10064
#include 
10065
#endif
10066
 
10067
#include 
10068
 
10069
#ifdef RTLD_GLOBAL
10070
#  define LT_DLGLOBAL           RTLD_GLOBAL
10071
#else
10072
#  ifdef DL_GLOBAL
10073
#    define LT_DLGLOBAL         DL_GLOBAL
10074
#  else
10075
#    define LT_DLGLOBAL         0
10076
#  endif
10077
#endif
10078
 
10079
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10080
   find out it does not work in some platform. */
10081
#ifndef LT_DLLAZY_OR_NOW
10082
#  ifdef RTLD_LAZY
10083
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10084
#  else
10085
#    ifdef DL_LAZY
10086
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10087
#    else
10088
#      ifdef RTLD_NOW
10089
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10090
#      else
10091
#        ifdef DL_NOW
10092
#          define LT_DLLAZY_OR_NOW      DL_NOW
10093
#        else
10094
#          define LT_DLLAZY_OR_NOW      0
10095
#        endif
10096
#      endif
10097
#    endif
10098
#  endif
10099
#endif
10100
 
10101
#ifdef __cplusplus
10102
extern "C" void exit (int);
10103
#endif
10104
 
10105
void fnord() { int i=42;}
10106
int main ()
10107
{
10108
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10109
  int status = $lt_dlunknown;
10110
 
10111
  if (self)
10112
    {
10113
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10114
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10115
      /* dlclose (self); */
10116
    }
10117
  else
10118
    puts (dlerror ());
10119
 
10120
    exit (status);
10121
}
10122
_LT_EOF
10123
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10124
  (eval $ac_link) 2>&5
10125
  ac_status=$?
10126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10128
    (./conftest; exit; ) >&5 2>/dev/null
10129
    lt_status=$?
10130
    case x$lt_status in
10131
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10132
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10133
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10134
    esac
10135
  else :
10136
    # compilation failed
10137
    lt_cv_dlopen_self_static=no
10138
  fi
10139
fi
10140
rm -fr conftest*
10141
 
10142
 
10143
fi
10144
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10145
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10146
    fi
10147
 
10148
    CPPFLAGS="$save_CPPFLAGS"
10149
    LDFLAGS="$save_LDFLAGS"
10150
    LIBS="$save_LIBS"
10151
    ;;
10152
  esac
10153
 
10154
  case $lt_cv_dlopen_self in
10155
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10156
  *) enable_dlopen_self=unknown ;;
10157
  esac
10158
 
10159
  case $lt_cv_dlopen_self_static in
10160
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10161
  *) enable_dlopen_self_static=unknown ;;
10162
  esac
10163
fi
10164
 
10165
 
10166
 
10167
 
10168
 
10169
 
10170
 
10171
 
10172
 
10173
 
10174
 
10175
 
10176
 
10177
 
10178
 
10179
 
10180
 
10181
striplib=
10182
old_striplib=
10183
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10184
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10185
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10186
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10187
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10188
  echo "$as_me:$LINENO: result: yes" >&5
10189
echo "${ECHO_T}yes" >&6
10190
else
10191
# FIXME - insert some real tests, host_os isn't really good enough
10192
  case $host_os in
10193
  darwin*)
10194
    if test -n "$STRIP" ; then
10195
      striplib="$STRIP -x"
10196
      old_striplib="$STRIP -S"
10197
      echo "$as_me:$LINENO: result: yes" >&5
10198
echo "${ECHO_T}yes" >&6
10199
    else
10200
      echo "$as_me:$LINENO: result: no" >&5
10201
echo "${ECHO_T}no" >&6
10202
    fi
10203
    ;;
10204
  *)
10205
    echo "$as_me:$LINENO: result: no" >&5
10206
echo "${ECHO_T}no" >&6
10207
    ;;
10208
  esac
10209
fi
10210
 
10211
 
10212
 
10213
 
10214
 
10215
 
10216
 
10217
 
10218
 
10219
 
10220
 
10221
 
10222
  # Report which library types will actually be built
10223
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10224
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10225
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10226
echo "${ECHO_T}$can_build_shared" >&6
10227
 
10228
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10229
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10230
  test "$can_build_shared" = "no" && enable_shared=no
10231
 
10232
  # On AIX, shared libraries and static libraries use the same namespace, and
10233
  # are all built from PIC.
10234
  case $host_os in
10235
  aix3*)
10236
    test "$enable_shared" = yes && enable_static=no
10237
    if test -n "$RANLIB"; then
10238
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10239
      postinstall_cmds='$RANLIB $lib'
10240
    fi
10241
    ;;
10242
 
10243
  aix[4-9]*)
10244
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10245
      test "$enable_shared" = yes && enable_static=no
10246
    fi
10247
    ;;
10248
  esac
10249
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10250
echo "${ECHO_T}$enable_shared" >&6
10251
 
10252
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10253
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10254
  # Make sure either enable_shared or enable_static is yes.
10255
  test "$enable_shared" = yes || enable_static=yes
10256
  echo "$as_me:$LINENO: result: $enable_static" >&5
10257
echo "${ECHO_T}$enable_static" >&6
10258
 
10259
 
10260
 
10261
 
10262
fi
10263
ac_ext=c
10264
ac_cpp='$CPP $CPPFLAGS'
10265
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10266
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10267
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10268
 
10269
CC="$lt_save_CC"
10270
 
10271
 
10272
 
10273
 
10274
 
10275
 
10276
 
10277
 
10278
 
10279
 
10280
 
10281
 
10282
 
10283
                  ac_config_commands="$ac_config_commands libtool"
10284
 
10285
 
10286
 
10287
 
10288
# Only expand once:
10289
 
10290
 
10291
 
10292
# Check whether --enable-targets or --disable-targets was given.
10293
if test "${enable_targets+set}" = set; then
10294
  enableval="$enable_targets"
10295
  case "${enableval}" in
10296
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10297
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10298
   { (exit 1); exit 1; }; }
10299
            ;;
10300
  no)       enable_targets= ;;
10301
  *)        enable_targets=$enableval ;;
10302
esac
10303
fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10304
if test "${enable_commonbfdlib+set}" = set; then
10305
  enableval="$enable_commonbfdlib"
10306
  case "${enableval}" in
10307
  yes) commonbfdlib=true ;;
10308
  no)  commonbfdlib=false ;;
10309
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10310
echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10311
   { (exit 1); exit 1; }; } ;;
10312
esac
10313
fi;
10314
 
10315
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10316
 
10317
# Check whether --enable-werror or --disable-werror was given.
10318
if test "${enable_werror+set}" = set; then
10319
  enableval="$enable_werror"
10320
  case "${enableval}" in
10321
     yes | y) ERROR_ON_WARNING="yes" ;;
10322
     no | n)  ERROR_ON_WARNING="no" ;;
10323
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10324
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10325
   { (exit 1); exit 1; }; } ;;
10326
   esac
10327
fi;
10328
 
10329
# Enable -Wno-format by default when using gcc on mingw
10330
case "${host}" in
10331
  *-*-mingw32*)
10332
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10333
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10334
    fi
10335
    ;;
10336
  *) ;;
10337
esac
10338
 
10339
# Enable -Werror by default when using gcc
10340
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10341
    ERROR_ON_WARNING=yes
10342
fi
10343
 
10344
NO_WERROR=
10345
if test "${ERROR_ON_WARNING}" = yes ; then
10346
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10347
    NO_WERROR="-Wno-error"
10348
fi
10349
 
10350
if test "${GCC}" = yes ; then
10351
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10352
fi
10353
 
10354
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10355
if test "${enable_build_warnings+set}" = set; then
10356
  enableval="$enable_build_warnings"
10357
  case "${enableval}" in
10358
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10359
  no)   if test "${GCC}" = yes ; then
10360
          WARN_CFLAGS="-w"
10361
        fi;;
10362
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10363
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10364
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10365
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10366
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10367
esac
10368
fi;
10369
 
10370
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10371
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10372
fi
10373
 
10374
 
10375
 
10376
 
10377
 
10378
          ac_config_headers="$ac_config_headers config.h:config.in"
10379
 
10380
 
10381
if test -z "$target" ; then
10382
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10383
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10384
   { (exit 1); exit 1; }; }
10385
fi
10386
if test -z "$host" ; then
10387
    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10388
echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10389
   { (exit 1); exit 1; }; }
10390
fi
10391
 
10392
for ac_prog in 'bison -y' byacc
10393
do
10394
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10395
set dummy $ac_prog; ac_word=$2
10396
echo "$as_me:$LINENO: checking for $ac_word" >&5
10397
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10398
if test "${ac_cv_prog_YACC+set}" = set; then
10399
  echo $ECHO_N "(cached) $ECHO_C" >&6
10400
else
10401
  if test -n "$YACC"; then
10402
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10403
else
10404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405
for as_dir in $PATH
10406
do
10407
  IFS=$as_save_IFS
10408
  test -z "$as_dir" && as_dir=.
10409
  for ac_exec_ext in '' $ac_executable_extensions; do
10410
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411
    ac_cv_prog_YACC="$ac_prog"
10412
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413
    break 2
10414
  fi
10415
done
10416
done
10417
 
10418
fi
10419
fi
10420
YACC=$ac_cv_prog_YACC
10421
if test -n "$YACC"; then
10422
  echo "$as_me:$LINENO: result: $YACC" >&5
10423
echo "${ECHO_T}$YACC" >&6
10424
else
10425
  echo "$as_me:$LINENO: result: no" >&5
10426
echo "${ECHO_T}no" >&6
10427
fi
10428
 
10429
  test -n "$YACC" && break
10430
done
10431
test -n "$YACC" || YACC="yacc"
10432
 
10433
for ac_prog in flex lex
10434
do
10435
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10436
set dummy $ac_prog; ac_word=$2
10437
echo "$as_me:$LINENO: checking for $ac_word" >&5
10438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439
if test "${ac_cv_prog_LEX+set}" = set; then
10440
  echo $ECHO_N "(cached) $ECHO_C" >&6
10441
else
10442
  if test -n "$LEX"; then
10443
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10444
else
10445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446
for as_dir in $PATH
10447
do
10448
  IFS=$as_save_IFS
10449
  test -z "$as_dir" && as_dir=.
10450
  for ac_exec_ext in '' $ac_executable_extensions; do
10451
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452
    ac_cv_prog_LEX="$ac_prog"
10453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10454
    break 2
10455
  fi
10456
done
10457
done
10458
 
10459
fi
10460
fi
10461
LEX=$ac_cv_prog_LEX
10462
if test -n "$LEX"; then
10463
  echo "$as_me:$LINENO: result: $LEX" >&5
10464
echo "${ECHO_T}$LEX" >&6
10465
else
10466
  echo "$as_me:$LINENO: result: no" >&5
10467
echo "${ECHO_T}no" >&6
10468
fi
10469
 
10470
  test -n "$LEX" && break
10471
done
10472
test -n "$LEX" || LEX=":"
10473
 
10474
if test -z "$LEXLIB"
10475
then
10476
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10477
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10478
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10479
  echo $ECHO_N "(cached) $ECHO_C" >&6
10480
else
10481
  ac_check_lib_save_LIBS=$LIBS
10482
LIBS="-lfl  $LIBS"
10483
cat >conftest.$ac_ext <<_ACEOF
10484
/* confdefs.h.  */
10485
_ACEOF
10486
cat confdefs.h >>conftest.$ac_ext
10487
cat >>conftest.$ac_ext <<_ACEOF
10488
/* end confdefs.h.  */
10489
 
10490
/* Override any gcc2 internal prototype to avoid an error.  */
10491
#ifdef __cplusplus
10492
extern "C"
10493
#endif
10494
/* We use char because int might match the return type of a gcc2
10495
   builtin and then its argument prototype would still apply.  */
10496
char yywrap ();
10497
int
10498
main ()
10499
{
10500
yywrap ();
10501
  ;
10502
  return 0;
10503
}
10504
_ACEOF
10505
rm -f conftest.$ac_objext conftest$ac_exeext
10506
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507
  (eval $ac_link) 2>conftest.er1
10508
  ac_status=$?
10509
  grep -v '^ *+' conftest.er1 >conftest.err
10510
  rm -f conftest.er1
10511
  cat conftest.err >&5
10512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513
  (exit $ac_status); } &&
10514
         { ac_try='test -z "$ac_c_werror_flag"
10515
                         || test ! -s conftest.err'
10516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517
  (eval $ac_try) 2>&5
10518
  ac_status=$?
10519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520
  (exit $ac_status); }; } &&
10521
         { ac_try='test -s conftest$ac_exeext'
10522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523
  (eval $ac_try) 2>&5
10524
  ac_status=$?
10525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526
  (exit $ac_status); }; }; then
10527
  ac_cv_lib_fl_yywrap=yes
10528
else
10529
  echo "$as_me: failed program was:" >&5
10530
sed 's/^/| /' conftest.$ac_ext >&5
10531
 
10532
ac_cv_lib_fl_yywrap=no
10533
fi
10534
rm -f conftest.err conftest.$ac_objext \
10535
      conftest$ac_exeext conftest.$ac_ext
10536
LIBS=$ac_check_lib_save_LIBS
10537
fi
10538
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10539
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10540
if test $ac_cv_lib_fl_yywrap = yes; then
10541
  LEXLIB="-lfl"
10542
else
10543
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10544
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10545
if test "${ac_cv_lib_l_yywrap+set}" = set; then
10546
  echo $ECHO_N "(cached) $ECHO_C" >&6
10547
else
10548
  ac_check_lib_save_LIBS=$LIBS
10549
LIBS="-ll  $LIBS"
10550
cat >conftest.$ac_ext <<_ACEOF
10551
/* confdefs.h.  */
10552
_ACEOF
10553
cat confdefs.h >>conftest.$ac_ext
10554
cat >>conftest.$ac_ext <<_ACEOF
10555
/* end confdefs.h.  */
10556
 
10557
/* Override any gcc2 internal prototype to avoid an error.  */
10558
#ifdef __cplusplus
10559
extern "C"
10560
#endif
10561
/* We use char because int might match the return type of a gcc2
10562
   builtin and then its argument prototype would still apply.  */
10563
char yywrap ();
10564
int
10565
main ()
10566
{
10567
yywrap ();
10568
  ;
10569
  return 0;
10570
}
10571
_ACEOF
10572
rm -f conftest.$ac_objext conftest$ac_exeext
10573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574
  (eval $ac_link) 2>conftest.er1
10575
  ac_status=$?
10576
  grep -v '^ *+' conftest.er1 >conftest.err
10577
  rm -f conftest.er1
10578
  cat conftest.err >&5
10579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580
  (exit $ac_status); } &&
10581
         { ac_try='test -z "$ac_c_werror_flag"
10582
                         || test ! -s conftest.err'
10583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584
  (eval $ac_try) 2>&5
10585
  ac_status=$?
10586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587
  (exit $ac_status); }; } &&
10588
         { ac_try='test -s conftest$ac_exeext'
10589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590
  (eval $ac_try) 2>&5
10591
  ac_status=$?
10592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593
  (exit $ac_status); }; }; then
10594
  ac_cv_lib_l_yywrap=yes
10595
else
10596
  echo "$as_me: failed program was:" >&5
10597
sed 's/^/| /' conftest.$ac_ext >&5
10598
 
10599
ac_cv_lib_l_yywrap=no
10600
fi
10601
rm -f conftest.err conftest.$ac_objext \
10602
      conftest$ac_exeext conftest.$ac_ext
10603
LIBS=$ac_check_lib_save_LIBS
10604
fi
10605
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10606
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10607
if test $ac_cv_lib_l_yywrap = yes; then
10608
  LEXLIB="-ll"
10609
fi
10610
 
10611
fi
10612
 
10613
fi
10614
 
10615
if test "x$LEX" != "x:"; then
10616
  echo "$as_me:$LINENO: checking lex output file root" >&5
10617
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10618
if test "${ac_cv_prog_lex_root+set}" = set; then
10619
  echo $ECHO_N "(cached) $ECHO_C" >&6
10620
else
10621
  # The minimal lex program is just a single line: %%.  But some broken lexes
10622
# (Solaris, I think it was) want two %% lines, so accommodate them.
10623
cat >conftest.l <<_ACEOF
10624
%%
10625
%%
10626
_ACEOF
10627
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10628
  (eval $LEX conftest.l) 2>&5
10629
  ac_status=$?
10630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631
  (exit $ac_status); }
10632
if test -f lex.yy.c; then
10633
  ac_cv_prog_lex_root=lex.yy
10634
elif test -f lexyy.c; then
10635
  ac_cv_prog_lex_root=lexyy
10636
else
10637
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10638
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10639
   { (exit 1); exit 1; }; }
10640
fi
10641
fi
10642
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10643
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10644
rm -f conftest.l
10645
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10646
 
10647
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10648
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10649
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10650
  echo $ECHO_N "(cached) $ECHO_C" >&6
10651
else
10652
  # POSIX says lex can declare yytext either as a pointer or an array; the
10653
# default is implementation-dependent. Figure out which it is, since
10654
# not all implementations provide the %pointer and %array declarations.
10655
ac_cv_prog_lex_yytext_pointer=no
10656
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10657
ac_save_LIBS=$LIBS
10658
LIBS="$LIBS $LEXLIB"
10659
cat >conftest.$ac_ext <<_ACEOF
10660
`cat $LEX_OUTPUT_ROOT.c`
10661
_ACEOF
10662
rm -f conftest.$ac_objext conftest$ac_exeext
10663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664
  (eval $ac_link) 2>conftest.er1
10665
  ac_status=$?
10666
  grep -v '^ *+' conftest.er1 >conftest.err
10667
  rm -f conftest.er1
10668
  cat conftest.err >&5
10669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670
  (exit $ac_status); } &&
10671
         { ac_try='test -z "$ac_c_werror_flag"
10672
                         || test ! -s conftest.err'
10673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674
  (eval $ac_try) 2>&5
10675
  ac_status=$?
10676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677
  (exit $ac_status); }; } &&
10678
         { ac_try='test -s conftest$ac_exeext'
10679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680
  (eval $ac_try) 2>&5
10681
  ac_status=$?
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683
  (exit $ac_status); }; }; then
10684
  ac_cv_prog_lex_yytext_pointer=yes
10685
else
10686
  echo "$as_me: failed program was:" >&5
10687
sed 's/^/| /' conftest.$ac_ext >&5
10688
 
10689
fi
10690
rm -f conftest.err conftest.$ac_objext \
10691
      conftest$ac_exeext conftest.$ac_ext
10692
LIBS=$ac_save_LIBS
10693
rm -f "${LEX_OUTPUT_ROOT}.c"
10694
 
10695
fi
10696
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10697
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10698
if test $ac_cv_prog_lex_yytext_pointer = yes; then
10699
 
10700
cat >>confdefs.h <<\_ACEOF
10701
#define YYTEXT_POINTER 1
10702
_ACEOF
10703
 
10704
fi
10705
 
10706
fi
10707
if test "$LEX" = :; then
10708
  LEX=${am_missing_run}flex
10709
fi
10710
 
10711
ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10712
# If we haven't got the data from the intl directory,
10713
# assume NLS is disabled.
10714
USE_NLS=no
10715
LIBINTL=
10716
LIBINTL_DEP=
10717
INCINTL=
10718
XGETTEXT=
10719
GMSGFMT=
10720
POSUB=
10721
 
10722
if test -f  ../intl/config.intl; then
10723
  .  ../intl/config.intl
10724
fi
10725
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10726
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10727
if test x"$USE_NLS" != xyes; then
10728
  echo "$as_me:$LINENO: result: no" >&5
10729
echo "${ECHO_T}no" >&6
10730
else
10731
  echo "$as_me:$LINENO: result: yes" >&5
10732
echo "${ECHO_T}yes" >&6
10733
 
10734
cat >>confdefs.h <<\_ACEOF
10735
#define ENABLE_NLS 1
10736
_ACEOF
10737
 
10738
 
10739
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10740
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10741
  # Look for .po and .gmo files in the source directory.
10742
  CATALOGS=
10743
  XLINGUAS=
10744
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10745
    # If there aren't any .gmo files the shell will give us the
10746
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10747
    # weeded out.
10748
    case "$cat" in *\**)
10749
      continue;;
10750
    esac
10751
    # The quadruple backslash is collapsed to a double backslash
10752
    # by the backticks, then collapsed again by the double quotes,
10753
    # leaving us with one backslash in the sed expression (right
10754
    # before the dot that mustn't act as a wildcard).
10755
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10756
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10757
    # The user is allowed to set LINGUAS to a list of languages to
10758
    # install catalogs for.  If it's empty that means "all of them."
10759
    if test "x$LINGUAS" = x; then
10760
      CATALOGS="$CATALOGS $cat"
10761
      XLINGUAS="$XLINGUAS $lang"
10762
    else
10763
      case "$LINGUAS" in *$lang*)
10764
        CATALOGS="$CATALOGS $cat"
10765
        XLINGUAS="$XLINGUAS $lang"
10766
        ;;
10767
      esac
10768
    fi
10769
  done
10770
  LINGUAS="$XLINGUAS"
10771
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10772
echo "${ECHO_T}$LINGUAS" >&6
10773
 
10774
 
10775
    DATADIRNAME=share
10776
 
10777
  INSTOBJEXT=.mo
10778
 
10779
  GENCAT=gencat
10780
 
10781
  CATOBJEXT=.gmo
10782
 
10783
fi
10784
 
10785
        MKINSTALLDIRS=
10786
  if test -n "$ac_aux_dir"; then
10787
    case "$ac_aux_dir" in
10788
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10789
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10790
    esac
10791
  fi
10792
  if test -z "$MKINSTALLDIRS"; then
10793
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10794
  fi
10795
 
10796
 
10797
 
10798
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10799
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10800
    # Check whether --enable-nls or --disable-nls was given.
10801
if test "${enable_nls+set}" = set; then
10802
  enableval="$enable_nls"
10803
  USE_NLS=$enableval
10804
else
10805
  USE_NLS=yes
10806
fi;
10807
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10808
echo "${ECHO_T}$USE_NLS" >&6
10809
 
10810
 
10811
 
10812
 
10813
 
10814
 
10815
# Prepare PATH_SEPARATOR.
10816
# The user is always right.
10817
if test "${PATH_SEPARATOR+set}" != set; then
10818
  echo "#! /bin/sh" >conf$$.sh
10819
  echo  "exit 0"   >>conf$$.sh
10820
  chmod +x conf$$.sh
10821
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10822
    PATH_SEPARATOR=';'
10823
  else
10824
    PATH_SEPARATOR=:
10825
  fi
10826
  rm -f conf$$.sh
10827
fi
10828
 
10829
# Find out how to test for executable files. Don't use a zero-byte file,
10830
# as systems may use methods other than mode bits to determine executability.
10831
cat >conf$$.file <<_ASEOF
10832
#! /bin/sh
10833
exit 0
10834
_ASEOF
10835
chmod +x conf$$.file
10836
if test -x conf$$.file >/dev/null 2>&1; then
10837
  ac_executable_p="test -x"
10838
else
10839
  ac_executable_p="test -f"
10840
fi
10841
rm -f conf$$.file
10842
 
10843
# Extract the first word of "msgfmt", so it can be a program name with args.
10844
set dummy msgfmt; ac_word=$2
10845
echo "$as_me:$LINENO: checking for $ac_word" >&5
10846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10847
if test "${ac_cv_path_MSGFMT+set}" = set; then
10848
  echo $ECHO_N "(cached) $ECHO_C" >&6
10849
else
10850
  case "$MSGFMT" in
10851
  [\\/]* | ?:[\\/]*)
10852
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10853
    ;;
10854
  *)
10855
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10856
    for ac_dir in $PATH; do
10857
      IFS="$ac_save_IFS"
10858
      test -z "$ac_dir" && ac_dir=.
10859
      for ac_exec_ext in '' $ac_executable_extensions; do
10860
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10861
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10862
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10863
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10864
            break 2
10865
          fi
10866
        fi
10867
      done
10868
    done
10869
    IFS="$ac_save_IFS"
10870
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10871
    ;;
10872
esac
10873
fi
10874
MSGFMT="$ac_cv_path_MSGFMT"
10875
if test "$MSGFMT" != ":"; then
10876
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10877
echo "${ECHO_T}$MSGFMT" >&6
10878
else
10879
  echo "$as_me:$LINENO: result: no" >&5
10880
echo "${ECHO_T}no" >&6
10881
fi
10882
 
10883
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10884
set dummy gmsgfmt; ac_word=$2
10885
echo "$as_me:$LINENO: checking for $ac_word" >&5
10886
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10888
  echo $ECHO_N "(cached) $ECHO_C" >&6
10889
else
10890
  case $GMSGFMT in
10891
  [\\/]* | ?:[\\/]*)
10892
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10893
  ;;
10894
  *)
10895
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896
for as_dir in $PATH
10897
do
10898
  IFS=$as_save_IFS
10899
  test -z "$as_dir" && as_dir=.
10900
  for ac_exec_ext in '' $ac_executable_extensions; do
10901
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10902
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10904
    break 2
10905
  fi
10906
done
10907
done
10908
 
10909
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10910
  ;;
10911
esac
10912
fi
10913
GMSGFMT=$ac_cv_path_GMSGFMT
10914
 
10915
if test -n "$GMSGFMT"; then
10916
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10917
echo "${ECHO_T}$GMSGFMT" >&6
10918
else
10919
  echo "$as_me:$LINENO: result: no" >&5
10920
echo "${ECHO_T}no" >&6
10921
fi
10922
 
10923
 
10924
 
10925
# Prepare PATH_SEPARATOR.
10926
# The user is always right.
10927
if test "${PATH_SEPARATOR+set}" != set; then
10928
  echo "#! /bin/sh" >conf$$.sh
10929
  echo  "exit 0"   >>conf$$.sh
10930
  chmod +x conf$$.sh
10931
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10932
    PATH_SEPARATOR=';'
10933
  else
10934
    PATH_SEPARATOR=:
10935
  fi
10936
  rm -f conf$$.sh
10937
fi
10938
 
10939
# Find out how to test for executable files. Don't use a zero-byte file,
10940
# as systems may use methods other than mode bits to determine executability.
10941
cat >conf$$.file <<_ASEOF
10942
#! /bin/sh
10943
exit 0
10944
_ASEOF
10945
chmod +x conf$$.file
10946
if test -x conf$$.file >/dev/null 2>&1; then
10947
  ac_executable_p="test -x"
10948
else
10949
  ac_executable_p="test -f"
10950
fi
10951
rm -f conf$$.file
10952
 
10953
# Extract the first word of "xgettext", so it can be a program name with args.
10954
set dummy xgettext; ac_word=$2
10955
echo "$as_me:$LINENO: checking for $ac_word" >&5
10956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10957
if test "${ac_cv_path_XGETTEXT+set}" = set; then
10958
  echo $ECHO_N "(cached) $ECHO_C" >&6
10959
else
10960
  case "$XGETTEXT" in
10961
  [\\/]* | ?:[\\/]*)
10962
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10963
    ;;
10964
  *)
10965
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10966
    for ac_dir in $PATH; do
10967
      IFS="$ac_save_IFS"
10968
      test -z "$ac_dir" && ac_dir=.
10969
      for ac_exec_ext in '' $ac_executable_extensions; do
10970
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10971
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10972
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10973
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10974
            break 2
10975
          fi
10976
        fi
10977
      done
10978
    done
10979
    IFS="$ac_save_IFS"
10980
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10981
    ;;
10982
esac
10983
fi
10984
XGETTEXT="$ac_cv_path_XGETTEXT"
10985
if test "$XGETTEXT" != ":"; then
10986
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10987
echo "${ECHO_T}$XGETTEXT" >&6
10988
else
10989
  echo "$as_me:$LINENO: result: no" >&5
10990
echo "${ECHO_T}no" >&6
10991
fi
10992
 
10993
    rm -f messages.po
10994
 
10995
 
10996
# Prepare PATH_SEPARATOR.
10997
# The user is always right.
10998
if test "${PATH_SEPARATOR+set}" != set; then
10999
  echo "#! /bin/sh" >conf$$.sh
11000
  echo  "exit 0"   >>conf$$.sh
11001
  chmod +x conf$$.sh
11002
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11003
    PATH_SEPARATOR=';'
11004
  else
11005
    PATH_SEPARATOR=:
11006
  fi
11007
  rm -f conf$$.sh
11008
fi
11009
 
11010
# Find out how to test for executable files. Don't use a zero-byte file,
11011
# as systems may use methods other than mode bits to determine executability.
11012
cat >conf$$.file <<_ASEOF
11013
#! /bin/sh
11014
exit 0
11015
_ASEOF
11016
chmod +x conf$$.file
11017
if test -x conf$$.file >/dev/null 2>&1; then
11018
  ac_executable_p="test -x"
11019
else
11020
  ac_executable_p="test -f"
11021
fi
11022
rm -f conf$$.file
11023
 
11024
# Extract the first word of "msgmerge", so it can be a program name with args.
11025
set dummy msgmerge; ac_word=$2
11026
echo "$as_me:$LINENO: checking for $ac_word" >&5
11027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11028
if test "${ac_cv_path_MSGMERGE+set}" = set; then
11029
  echo $ECHO_N "(cached) $ECHO_C" >&6
11030
else
11031
  case "$MSGMERGE" in
11032
  [\\/]* | ?:[\\/]*)
11033
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11034
    ;;
11035
  *)
11036
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11037
    for ac_dir in $PATH; do
11038
      IFS="$ac_save_IFS"
11039
      test -z "$ac_dir" && ac_dir=.
11040
      for ac_exec_ext in '' $ac_executable_extensions; do
11041
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11042
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11043
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11044
            break 2
11045
          fi
11046
        fi
11047
      done
11048
    done
11049
    IFS="$ac_save_IFS"
11050
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11051
    ;;
11052
esac
11053
fi
11054
MSGMERGE="$ac_cv_path_MSGMERGE"
11055
if test "$MSGMERGE" != ":"; then
11056
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11057
echo "${ECHO_T}$MSGMERGE" >&6
11058
else
11059
  echo "$as_me:$LINENO: result: no" >&5
11060
echo "${ECHO_T}no" >&6
11061
fi
11062
 
11063
 
11064
      if test "$GMSGFMT" != ":"; then
11065
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11066
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11067
      : ;
11068
    else
11069
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11070
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11071
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11072
      GMSGFMT=":"
11073
    fi
11074
  fi
11075
 
11076
      if test "$XGETTEXT" != ":"; then
11077
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11078
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11079
      : ;
11080
    else
11081
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11082
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11083
      XGETTEXT=":"
11084
    fi
11085
        rm -f messages.po
11086
  fi
11087
 
11088
            ac_config_commands="$ac_config_commands default-1"
11089
 
11090
 
11091
 
11092
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11093
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11094
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11095
if test "${enable_maintainer_mode+set}" = set; then
11096
  enableval="$enable_maintainer_mode"
11097
  USE_MAINTAINER_MODE=$enableval
11098
else
11099
  USE_MAINTAINER_MODE=no
11100
fi;
11101
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11102
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11103
 
11104
 
11105
if test $USE_MAINTAINER_MODE = yes; then
11106
  MAINTAINER_MODE_TRUE=
11107
  MAINTAINER_MODE_FALSE='#'
11108
else
11109
  MAINTAINER_MODE_TRUE='#'
11110
  MAINTAINER_MODE_FALSE=
11111
fi
11112
 
11113
  MAINT=$MAINTAINER_MODE_TRUE
11114
 
11115
 
11116
 
11117
 
11118
if false; then
11119
  GENINSRC_NEVER_TRUE=
11120
  GENINSRC_NEVER_FALSE='#'
11121
else
11122
  GENINSRC_NEVER_TRUE='#'
11123
  GENINSRC_NEVER_FALSE=
11124
fi
11125
 
11126
 
11127
if test -n "$EXEEXT"; then
11128
 
11129
cat >>confdefs.h <<\_ACEOF
11130
#define HAVE_EXECUTABLE_SUFFIX 1
11131
_ACEOF
11132
 
11133
fi
11134
 
11135
cat >>confdefs.h <<_ACEOF
11136
#define EXECUTABLE_SUFFIX "${EXEEXT}"
11137
_ACEOF
11138
 
11139
 
11140
# host-specific stuff:
11141
 
11142
HDEFINES=
11143
 
11144
. ${srcdir}/../bfd/configure.host
11145
 
11146
 
11147
AR=${AR-ar}
11148
 
11149
if test -n "$ac_tool_prefix"; then
11150
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11151
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11152
echo "$as_me:$LINENO: checking for $ac_word" >&5
11153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11154
if test "${ac_cv_prog_RANLIB+set}" = set; then
11155
  echo $ECHO_N "(cached) $ECHO_C" >&6
11156
else
11157
  if test -n "$RANLIB"; then
11158
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11159
else
11160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161
for as_dir in $PATH
11162
do
11163
  IFS=$as_save_IFS
11164
  test -z "$as_dir" && as_dir=.
11165
  for ac_exec_ext in '' $ac_executable_extensions; do
11166
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11168
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11169
    break 2
11170
  fi
11171
done
11172
done
11173
 
11174
fi
11175
fi
11176
RANLIB=$ac_cv_prog_RANLIB
11177
if test -n "$RANLIB"; then
11178
  echo "$as_me:$LINENO: result: $RANLIB" >&5
11179
echo "${ECHO_T}$RANLIB" >&6
11180
else
11181
  echo "$as_me:$LINENO: result: no" >&5
11182
echo "${ECHO_T}no" >&6
11183
fi
11184
 
11185
fi
11186
if test -z "$ac_cv_prog_RANLIB"; then
11187
  ac_ct_RANLIB=$RANLIB
11188
  # Extract the first word of "ranlib", so it can be a program name with args.
11189
set dummy ranlib; ac_word=$2
11190
echo "$as_me:$LINENO: checking for $ac_word" >&5
11191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11192
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11193
  echo $ECHO_N "(cached) $ECHO_C" >&6
11194
else
11195
  if test -n "$ac_ct_RANLIB"; then
11196
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11197
else
11198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199
for as_dir in $PATH
11200
do
11201
  IFS=$as_save_IFS
11202
  test -z "$as_dir" && as_dir=.
11203
  for ac_exec_ext in '' $ac_executable_extensions; do
11204
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205
    ac_cv_prog_ac_ct_RANLIB="ranlib"
11206
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207
    break 2
11208
  fi
11209
done
11210
done
11211
 
11212
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11213
fi
11214
fi
11215
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11216
if test -n "$ac_ct_RANLIB"; then
11217
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11218
echo "${ECHO_T}$ac_ct_RANLIB" >&6
11219
else
11220
  echo "$as_me:$LINENO: result: no" >&5
11221
echo "${ECHO_T}no" >&6
11222
fi
11223
 
11224
  RANLIB=$ac_ct_RANLIB
11225
else
11226
  RANLIB="$ac_cv_prog_RANLIB"
11227
fi
11228
 
11229
# Find a good install program.  We prefer a C program (faster),
11230
# so one script is as good as another.  But avoid the broken or
11231
# incompatible versions:
11232
# SysV /etc/install, /usr/sbin/install
11233
# SunOS /usr/etc/install
11234
# IRIX /sbin/install
11235
# AIX /bin/install
11236
# AmigaOS /C/install, which installs bootblocks on floppy discs
11237
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11238
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11239
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11240
# OS/2's system install, which has a completely different semantic
11241
# ./install, which can be erroneously created by make from ./install.sh.
11242
# Reject install programs that cannot install multiple files.
11243
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11244
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11245
if test -z "$INSTALL"; then
11246
if test "${ac_cv_path_install+set}" = set; then
11247
  echo $ECHO_N "(cached) $ECHO_C" >&6
11248
else
11249
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250
for as_dir in $PATH
11251
do
11252
  IFS=$as_save_IFS
11253
  test -z "$as_dir" && as_dir=.
11254
  # Account for people who put trailing slashes in PATH elements.
11255
case $as_dir/ in
11256
  ./ | .// | /cC/* | \
11257
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11258
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11259
  /usr/ucb/* ) ;;
11260
  *)
11261
    # OSF1 and SCO ODT 3.0 have their own names for install.
11262
    # Don't use installbsd from OSF since it installs stuff as root
11263
    # by default.
11264
    for ac_prog in ginstall scoinst install; do
11265
      for ac_exec_ext in '' $ac_executable_extensions; do
11266
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11267
          if test $ac_prog = install &&
11268
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11269
            # AIX install.  It has an incompatible calling convention.
11270
            :
11271
          elif test $ac_prog = install &&
11272
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11273
            # program-specific install script used by HP pwplus--don't use.
11274
            :
11275
          else
11276
            rm -rf conftest.one conftest.two conftest.dir
11277
            echo one > conftest.one
11278
            echo two > conftest.two
11279
            mkdir conftest.dir
11280
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11281
              test -s conftest.one && test -s conftest.two &&
11282
              test -s conftest.dir/conftest.one &&
11283
              test -s conftest.dir/conftest.two
11284
            then
11285
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11286
              break 3
11287
            fi
11288
          fi
11289
        fi
11290
      done
11291
    done
11292
    ;;
11293
esac
11294
done
11295
 
11296
rm -rf conftest.one conftest.two conftest.dir
11297
 
11298
fi
11299
  if test "${ac_cv_path_install+set}" = set; then
11300
    INSTALL=$ac_cv_path_install
11301
  else
11302
    # As a last resort, use the slow shell script.  Don't cache a
11303
    # value for INSTALL within a source directory, because that will
11304
    # break other packages using the cache if that directory is
11305
    # removed, or if the value is a relative name.
11306
    INSTALL=$ac_install_sh
11307
  fi
11308
fi
11309
echo "$as_me:$LINENO: result: $INSTALL" >&5
11310
echo "${ECHO_T}$INSTALL" >&6
11311
 
11312
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11313
# It thinks the first close brace ends the variable substitution.
11314
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11315
 
11316
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11317
 
11318
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11319
 
11320
 
11321
# Put a plausible default for CC_FOR_BUILD in Makefile.
11322
if test -z "$CC_FOR_BUILD"; then
11323
  if test "x$cross_compiling" = "xno"; then
11324
    CC_FOR_BUILD='$(CC)'
11325
  else
11326
    CC_FOR_BUILD=gcc
11327
  fi
11328
fi
11329
 
11330
# Also set EXEEXT_FOR_BUILD.
11331
if test "x$cross_compiling" = "xno"; then
11332
  EXEEXT_FOR_BUILD='$(EXEEXT)'
11333
else
11334
  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11335
echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11336
if test "${bfd_cv_build_exeext+set}" = set; then
11337
  echo $ECHO_N "(cached) $ECHO_C" >&6
11338
else
11339
  rm -f conftest*
11340
     echo 'int main () { return 0; }' > conftest.c
11341
     bfd_cv_build_exeext=
11342
     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11343
     for file in conftest.*; do
11344
       case $file in
11345
       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11346
       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11347
       esac
11348
     done
11349
     rm -f conftest*
11350
     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11351
fi
11352
echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11353
echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11354
  EXEEXT_FOR_BUILD=""
11355
  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11356
fi
11357
 
11358
 
11359
DEMANGLER_NAME=c++filt
11360
case "${host}" in
11361
  *-*-go32* | *-*-msdos*)
11362
    DEMANGLER_NAME=cxxfilt
11363
esac
11364
 
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
 
11372
 
11373
 
11374
for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11375
do
11376
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11377
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11378
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11379
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11380
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11381
  echo $ECHO_N "(cached) $ECHO_C" >&6
11382
fi
11383
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11384
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11385
else
11386
  # Is the header compilable?
11387
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11388
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11389
cat >conftest.$ac_ext <<_ACEOF
11390
/* confdefs.h.  */
11391
_ACEOF
11392
cat confdefs.h >>conftest.$ac_ext
11393
cat >>conftest.$ac_ext <<_ACEOF
11394
/* end confdefs.h.  */
11395
$ac_includes_default
11396
#include <$ac_header>
11397
_ACEOF
11398
rm -f conftest.$ac_objext
11399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400
  (eval $ac_compile) 2>conftest.er1
11401
  ac_status=$?
11402
  grep -v '^ *+' conftest.er1 >conftest.err
11403
  rm -f conftest.er1
11404
  cat conftest.err >&5
11405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406
  (exit $ac_status); } &&
11407
         { ac_try='test -z "$ac_c_werror_flag"
11408
                         || test ! -s conftest.err'
11409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410
  (eval $ac_try) 2>&5
11411
  ac_status=$?
11412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413
  (exit $ac_status); }; } &&
11414
         { ac_try='test -s conftest.$ac_objext'
11415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416
  (eval $ac_try) 2>&5
11417
  ac_status=$?
11418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419
  (exit $ac_status); }; }; then
11420
  ac_header_compiler=yes
11421
else
11422
  echo "$as_me: failed program was:" >&5
11423
sed 's/^/| /' conftest.$ac_ext >&5
11424
 
11425
ac_header_compiler=no
11426
fi
11427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11429
echo "${ECHO_T}$ac_header_compiler" >&6
11430
 
11431
# Is the header present?
11432
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11433
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11434
cat >conftest.$ac_ext <<_ACEOF
11435
/* confdefs.h.  */
11436
_ACEOF
11437
cat confdefs.h >>conftest.$ac_ext
11438
cat >>conftest.$ac_ext <<_ACEOF
11439
/* end confdefs.h.  */
11440
#include <$ac_header>
11441
_ACEOF
11442
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11443
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11444
  ac_status=$?
11445
  grep -v '^ *+' conftest.er1 >conftest.err
11446
  rm -f conftest.er1
11447
  cat conftest.err >&5
11448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449
  (exit $ac_status); } >/dev/null; then
11450
  if test -s conftest.err; then
11451
    ac_cpp_err=$ac_c_preproc_warn_flag
11452
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11453
  else
11454
    ac_cpp_err=
11455
  fi
11456
else
11457
  ac_cpp_err=yes
11458
fi
11459
if test -z "$ac_cpp_err"; then
11460
  ac_header_preproc=yes
11461
else
11462
  echo "$as_me: failed program was:" >&5
11463
sed 's/^/| /' conftest.$ac_ext >&5
11464
 
11465
  ac_header_preproc=no
11466
fi
11467
rm -f conftest.err conftest.$ac_ext
11468
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11469
echo "${ECHO_T}$ac_header_preproc" >&6
11470
 
11471
# So?  What about this header?
11472
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11473
  yes:no: )
11474
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11475
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11476
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11477
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11478
    ac_header_preproc=yes
11479
    ;;
11480
  no:yes:* )
11481
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11482
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11483
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11484
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11485
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11486
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11487
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11488
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11490
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11491
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11492
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11493
    (
11494
      cat <<\_ASBOX
11495
## ------------------------------------------ ##
11496
## Report this to the AC_PACKAGE_NAME lists.  ##
11497
## ------------------------------------------ ##
11498
_ASBOX
11499
    ) |
11500
      sed "s/^/$as_me: WARNING:     /" >&2
11501
    ;;
11502
esac
11503
echo "$as_me:$LINENO: checking for $ac_header" >&5
11504
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11505
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11506
  echo $ECHO_N "(cached) $ECHO_C" >&6
11507
else
11508
  eval "$as_ac_Header=\$ac_header_preproc"
11509
fi
11510
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11511
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11512
 
11513
fi
11514
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11515
  cat >>confdefs.h <<_ACEOF
11516
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517
_ACEOF
11518
 
11519
fi
11520
 
11521
done
11522
 
11523
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11524
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11525
if test "${ac_cv_header_sys_wait_h+set}" = set; then
11526
  echo $ECHO_N "(cached) $ECHO_C" >&6
11527
else
11528
  cat >conftest.$ac_ext <<_ACEOF
11529
/* confdefs.h.  */
11530
_ACEOF
11531
cat confdefs.h >>conftest.$ac_ext
11532
cat >>conftest.$ac_ext <<_ACEOF
11533
/* end confdefs.h.  */
11534
#include 
11535
#include 
11536
#ifndef WEXITSTATUS
11537
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11538
#endif
11539
#ifndef WIFEXITED
11540
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11541
#endif
11542
 
11543
int
11544
main ()
11545
{
11546
  int s;
11547
  wait (&s);
11548
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11549
  ;
11550
  return 0;
11551
}
11552
_ACEOF
11553
rm -f conftest.$ac_objext
11554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555
  (eval $ac_compile) 2>conftest.er1
11556
  ac_status=$?
11557
  grep -v '^ *+' conftest.er1 >conftest.err
11558
  rm -f conftest.er1
11559
  cat conftest.err >&5
11560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561
  (exit $ac_status); } &&
11562
         { ac_try='test -z "$ac_c_werror_flag"
11563
                         || test ! -s conftest.err'
11564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565
  (eval $ac_try) 2>&5
11566
  ac_status=$?
11567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568
  (exit $ac_status); }; } &&
11569
         { ac_try='test -s conftest.$ac_objext'
11570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571
  (eval $ac_try) 2>&5
11572
  ac_status=$?
11573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574
  (exit $ac_status); }; }; then
11575
  ac_cv_header_sys_wait_h=yes
11576
else
11577
  echo "$as_me: failed program was:" >&5
11578
sed 's/^/| /' conftest.$ac_ext >&5
11579
 
11580
ac_cv_header_sys_wait_h=no
11581
fi
11582
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11583
fi
11584
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11585
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11586
if test $ac_cv_header_sys_wait_h = yes; then
11587
 
11588
cat >>confdefs.h <<\_ACEOF
11589
#define HAVE_SYS_WAIT_H 1
11590
_ACEOF
11591
 
11592
fi
11593
 
11594
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11595
# for constant arguments.  Useless!
11596
echo "$as_me:$LINENO: checking for working alloca.h" >&5
11597
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11598
if test "${ac_cv_working_alloca_h+set}" = set; then
11599
  echo $ECHO_N "(cached) $ECHO_C" >&6
11600
else
11601
  cat >conftest.$ac_ext <<_ACEOF
11602
/* confdefs.h.  */
11603
_ACEOF
11604
cat confdefs.h >>conftest.$ac_ext
11605
cat >>conftest.$ac_ext <<_ACEOF
11606
/* end confdefs.h.  */
11607
#include 
11608
int
11609
main ()
11610
{
11611
char *p = (char *) alloca (2 * sizeof (int));
11612
  ;
11613
  return 0;
11614
}
11615
_ACEOF
11616
rm -f conftest.$ac_objext conftest$ac_exeext
11617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618
  (eval $ac_link) 2>conftest.er1
11619
  ac_status=$?
11620
  grep -v '^ *+' conftest.er1 >conftest.err
11621
  rm -f conftest.er1
11622
  cat conftest.err >&5
11623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624
  (exit $ac_status); } &&
11625
         { ac_try='test -z "$ac_c_werror_flag"
11626
                         || test ! -s conftest.err'
11627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628
  (eval $ac_try) 2>&5
11629
  ac_status=$?
11630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631
  (exit $ac_status); }; } &&
11632
         { ac_try='test -s conftest$ac_exeext'
11633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634
  (eval $ac_try) 2>&5
11635
  ac_status=$?
11636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637
  (exit $ac_status); }; }; then
11638
  ac_cv_working_alloca_h=yes
11639
else
11640
  echo "$as_me: failed program was:" >&5
11641
sed 's/^/| /' conftest.$ac_ext >&5
11642
 
11643
ac_cv_working_alloca_h=no
11644
fi
11645
rm -f conftest.err conftest.$ac_objext \
11646
      conftest$ac_exeext conftest.$ac_ext
11647
fi
11648
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11649
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11650
if test $ac_cv_working_alloca_h = yes; then
11651
 
11652
cat >>confdefs.h <<\_ACEOF
11653
#define HAVE_ALLOCA_H 1
11654
_ACEOF
11655
 
11656
fi
11657
 
11658
echo "$as_me:$LINENO: checking for alloca" >&5
11659
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11660
if test "${ac_cv_func_alloca_works+set}" = set; then
11661
  echo $ECHO_N "(cached) $ECHO_C" >&6
11662
else
11663
  cat >conftest.$ac_ext <<_ACEOF
11664
/* confdefs.h.  */
11665
_ACEOF
11666
cat confdefs.h >>conftest.$ac_ext
11667
cat >>conftest.$ac_ext <<_ACEOF
11668
/* end confdefs.h.  */
11669
#ifdef __GNUC__
11670
# define alloca __builtin_alloca
11671
#else
11672
# ifdef _MSC_VER
11673
#  include 
11674
#  define alloca _alloca
11675
# else
11676
#  if HAVE_ALLOCA_H
11677
#   include 
11678
#  else
11679
#   ifdef _AIX
11680
 #pragma alloca
11681
#   else
11682
#    ifndef alloca /* predefined by HP cc +Olibcalls */
11683
char *alloca ();
11684
#    endif
11685
#   endif
11686
#  endif
11687
# endif
11688
#endif
11689
 
11690
int
11691
main ()
11692
{
11693
char *p = (char *) alloca (1);
11694
  ;
11695
  return 0;
11696
}
11697
_ACEOF
11698
rm -f conftest.$ac_objext conftest$ac_exeext
11699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700
  (eval $ac_link) 2>conftest.er1
11701
  ac_status=$?
11702
  grep -v '^ *+' conftest.er1 >conftest.err
11703
  rm -f conftest.er1
11704
  cat conftest.err >&5
11705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706
  (exit $ac_status); } &&
11707
         { ac_try='test -z "$ac_c_werror_flag"
11708
                         || test ! -s conftest.err'
11709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710
  (eval $ac_try) 2>&5
11711
  ac_status=$?
11712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713
  (exit $ac_status); }; } &&
11714
         { ac_try='test -s conftest$ac_exeext'
11715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716
  (eval $ac_try) 2>&5
11717
  ac_status=$?
11718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719
  (exit $ac_status); }; }; then
11720
  ac_cv_func_alloca_works=yes
11721
else
11722
  echo "$as_me: failed program was:" >&5
11723
sed 's/^/| /' conftest.$ac_ext >&5
11724
 
11725
ac_cv_func_alloca_works=no
11726
fi
11727
rm -f conftest.err conftest.$ac_objext \
11728
      conftest$ac_exeext conftest.$ac_ext
11729
fi
11730
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11731
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11732
 
11733
if test $ac_cv_func_alloca_works = yes; then
11734
 
11735
cat >>confdefs.h <<\_ACEOF
11736
#define HAVE_ALLOCA 1
11737
_ACEOF
11738
 
11739
else
11740
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11741
# that cause trouble.  Some versions do not even contain alloca or
11742
# contain a buggy version.  If you still want to use their alloca,
11743
# use ar to extract alloca.o from them instead of compiling alloca.c.
11744
 
11745
ALLOCA=alloca.$ac_objext
11746
 
11747
cat >>confdefs.h <<\_ACEOF
11748
#define C_ALLOCA 1
11749
_ACEOF
11750
 
11751
 
11752
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11753
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11754
if test "${ac_cv_os_cray+set}" = set; then
11755
  echo $ECHO_N "(cached) $ECHO_C" >&6
11756
else
11757
  cat >conftest.$ac_ext <<_ACEOF
11758
/* confdefs.h.  */
11759
_ACEOF
11760
cat confdefs.h >>conftest.$ac_ext
11761
cat >>conftest.$ac_ext <<_ACEOF
11762
/* end confdefs.h.  */
11763
#if defined(CRAY) && ! defined(CRAY2)
11764
webecray
11765
#else
11766
wenotbecray
11767
#endif
11768
 
11769
_ACEOF
11770
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771
  $EGREP "webecray" >/dev/null 2>&1; then
11772
  ac_cv_os_cray=yes
11773
else
11774
  ac_cv_os_cray=no
11775
fi
11776
rm -f conftest*
11777
 
11778
fi
11779
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11780
echo "${ECHO_T}$ac_cv_os_cray" >&6
11781
if test $ac_cv_os_cray = yes; then
11782
  for ac_func in _getb67 GETB67 getb67; do
11783
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11784
echo "$as_me:$LINENO: checking for $ac_func" >&5
11785
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11786
if eval "test \"\${$as_ac_var+set}\" = set"; then
11787
  echo $ECHO_N "(cached) $ECHO_C" >&6
11788
else
11789
  cat >conftest.$ac_ext <<_ACEOF
11790
/* confdefs.h.  */
11791
_ACEOF
11792
cat confdefs.h >>conftest.$ac_ext
11793
cat >>conftest.$ac_ext <<_ACEOF
11794
/* end confdefs.h.  */
11795
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11796
   For example, HP-UX 11i  declares gettimeofday.  */
11797
#define $ac_func innocuous_$ac_func
11798
 
11799
/* System header to define __stub macros and hopefully few prototypes,
11800
    which can conflict with char $ac_func (); below.
11801
    Prefer  to  if __STDC__ is defined, since
11802
     exists even on freestanding compilers.  */
11803
 
11804
#ifdef __STDC__
11805
# include 
11806
#else
11807
# include 
11808
#endif
11809
 
11810
#undef $ac_func
11811
 
11812
/* Override any gcc2 internal prototype to avoid an error.  */
11813
#ifdef __cplusplus
11814
extern "C"
11815
{
11816
#endif
11817
/* We use char because int might match the return type of a gcc2
11818
   builtin and then its argument prototype would still apply.  */
11819
char $ac_func ();
11820
/* The GNU C library defines this for functions which it implements
11821
    to always fail with ENOSYS.  Some functions are actually named
11822
    something starting with __ and the normal name is an alias.  */
11823
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11824
choke me
11825
#else
11826
char (*f) () = $ac_func;
11827
#endif
11828
#ifdef __cplusplus
11829
}
11830
#endif
11831
 
11832
int
11833
main ()
11834
{
11835
return f != $ac_func;
11836
  ;
11837
  return 0;
11838
}
11839
_ACEOF
11840
rm -f conftest.$ac_objext conftest$ac_exeext
11841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842
  (eval $ac_link) 2>conftest.er1
11843
  ac_status=$?
11844
  grep -v '^ *+' conftest.er1 >conftest.err
11845
  rm -f conftest.er1
11846
  cat conftest.err >&5
11847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848
  (exit $ac_status); } &&
11849
         { ac_try='test -z "$ac_c_werror_flag"
11850
                         || test ! -s conftest.err'
11851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852
  (eval $ac_try) 2>&5
11853
  ac_status=$?
11854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855
  (exit $ac_status); }; } &&
11856
         { ac_try='test -s conftest$ac_exeext'
11857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858
  (eval $ac_try) 2>&5
11859
  ac_status=$?
11860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
  (exit $ac_status); }; }; then
11862
  eval "$as_ac_var=yes"
11863
else
11864
  echo "$as_me: failed program was:" >&5
11865
sed 's/^/| /' conftest.$ac_ext >&5
11866
 
11867
eval "$as_ac_var=no"
11868
fi
11869
rm -f conftest.err conftest.$ac_objext \
11870
      conftest$ac_exeext conftest.$ac_ext
11871
fi
11872
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11873
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11874
if test `eval echo '${'$as_ac_var'}'` = yes; then
11875
 
11876
cat >>confdefs.h <<_ACEOF
11877
#define CRAY_STACKSEG_END $ac_func
11878
_ACEOF
11879
 
11880
    break
11881
fi
11882
 
11883
  done
11884
fi
11885
 
11886
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11887
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11888
if test "${ac_cv_c_stack_direction+set}" = set; then
11889
  echo $ECHO_N "(cached) $ECHO_C" >&6
11890
else
11891
  if test "$cross_compiling" = yes; then
11892
  ac_cv_c_stack_direction=0
11893
else
11894
  cat >conftest.$ac_ext <<_ACEOF
11895
/* confdefs.h.  */
11896
_ACEOF
11897
cat confdefs.h >>conftest.$ac_ext
11898
cat >>conftest.$ac_ext <<_ACEOF
11899
/* end confdefs.h.  */
11900
int
11901
find_stack_direction ()
11902
{
11903
  static char *addr = 0;
11904
  auto char dummy;
11905
  if (addr == 0)
11906
    {
11907
      addr = &dummy;
11908
      return find_stack_direction ();
11909
    }
11910
  else
11911
    return (&dummy > addr) ? 1 : -1;
11912
}
11913
 
11914
int
11915
main ()
11916
{
11917
  exit (find_stack_direction () < 0);
11918
}
11919
_ACEOF
11920
rm -f conftest$ac_exeext
11921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922
  (eval $ac_link) 2>&5
11923
  ac_status=$?
11924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927
  (eval $ac_try) 2>&5
11928
  ac_status=$?
11929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930
  (exit $ac_status); }; }; then
11931
  ac_cv_c_stack_direction=1
11932
else
11933
  echo "$as_me: program exited with status $ac_status" >&5
11934
echo "$as_me: failed program was:" >&5
11935
sed 's/^/| /' conftest.$ac_ext >&5
11936
 
11937
( exit $ac_status )
11938
ac_cv_c_stack_direction=-1
11939
fi
11940
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11941
fi
11942
fi
11943
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11944
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11945
 
11946
cat >>confdefs.h <<_ACEOF
11947
#define STACK_DIRECTION $ac_cv_c_stack_direction
11948
_ACEOF
11949
 
11950
 
11951
fi
11952
 
11953
 
11954
 
11955
 
11956
 
11957
 
11958
for ac_func in sbrk utimes setmode getc_unlocked strcoll
11959
do
11960
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961
echo "$as_me:$LINENO: checking for $ac_func" >&5
11962
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11963
if eval "test \"\${$as_ac_var+set}\" = set"; then
11964
  echo $ECHO_N "(cached) $ECHO_C" >&6
11965
else
11966
  cat >conftest.$ac_ext <<_ACEOF
11967
/* confdefs.h.  */
11968
_ACEOF
11969
cat confdefs.h >>conftest.$ac_ext
11970
cat >>conftest.$ac_ext <<_ACEOF
11971
/* end confdefs.h.  */
11972
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11973
   For example, HP-UX 11i  declares gettimeofday.  */
11974
#define $ac_func innocuous_$ac_func
11975
 
11976
/* System header to define __stub macros and hopefully few prototypes,
11977
    which can conflict with char $ac_func (); below.
11978
    Prefer  to  if __STDC__ is defined, since
11979
     exists even on freestanding compilers.  */
11980
 
11981
#ifdef __STDC__
11982
# include 
11983
#else
11984
# include 
11985
#endif
11986
 
11987
#undef $ac_func
11988
 
11989
/* Override any gcc2 internal prototype to avoid an error.  */
11990
#ifdef __cplusplus
11991
extern "C"
11992
{
11993
#endif
11994
/* We use char because int might match the return type of a gcc2
11995
   builtin and then its argument prototype would still apply.  */
11996
char $ac_func ();
11997
/* The GNU C library defines this for functions which it implements
11998
    to always fail with ENOSYS.  Some functions are actually named
11999
    something starting with __ and the normal name is an alias.  */
12000
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001
choke me
12002
#else
12003
char (*f) () = $ac_func;
12004
#endif
12005
#ifdef __cplusplus
12006
}
12007
#endif
12008
 
12009
int
12010
main ()
12011
{
12012
return f != $ac_func;
12013
  ;
12014
  return 0;
12015
}
12016
_ACEOF
12017
rm -f conftest.$ac_objext conftest$ac_exeext
12018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019
  (eval $ac_link) 2>conftest.er1
12020
  ac_status=$?
12021
  grep -v '^ *+' conftest.er1 >conftest.err
12022
  rm -f conftest.er1
12023
  cat conftest.err >&5
12024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025
  (exit $ac_status); } &&
12026
         { ac_try='test -z "$ac_c_werror_flag"
12027
                         || test ! -s conftest.err'
12028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029
  (eval $ac_try) 2>&5
12030
  ac_status=$?
12031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032
  (exit $ac_status); }; } &&
12033
         { ac_try='test -s conftest$ac_exeext'
12034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035
  (eval $ac_try) 2>&5
12036
  ac_status=$?
12037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038
  (exit $ac_status); }; }; then
12039
  eval "$as_ac_var=yes"
12040
else
12041
  echo "$as_me: failed program was:" >&5
12042
sed 's/^/| /' conftest.$ac_ext >&5
12043
 
12044
eval "$as_ac_var=no"
12045
fi
12046
rm -f conftest.err conftest.$ac_objext \
12047
      conftest$ac_exeext conftest.$ac_ext
12048
fi
12049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12050
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12051
if test `eval echo '${'$as_ac_var'}'` = yes; then
12052
  cat >>confdefs.h <<_ACEOF
12053
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12054
_ACEOF
12055
 
12056
fi
12057
done
12058
 
12059
echo "$as_me:$LINENO: checking for mkstemp" >&5
12060
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12061
if test "${ac_cv_func_mkstemp+set}" = set; then
12062
  echo $ECHO_N "(cached) $ECHO_C" >&6
12063
else
12064
  cat >conftest.$ac_ext <<_ACEOF
12065
/* confdefs.h.  */
12066
_ACEOF
12067
cat confdefs.h >>conftest.$ac_ext
12068
cat >>conftest.$ac_ext <<_ACEOF
12069
/* end confdefs.h.  */
12070
/* Define mkstemp to an innocuous variant, in case  declares mkstemp.
12071
   For example, HP-UX 11i  declares gettimeofday.  */
12072
#define mkstemp innocuous_mkstemp
12073
 
12074
/* System header to define __stub macros and hopefully few prototypes,
12075
    which can conflict with char mkstemp (); below.
12076
    Prefer  to  if __STDC__ is defined, since
12077
     exists even on freestanding compilers.  */
12078
 
12079
#ifdef __STDC__
12080
# include 
12081
#else
12082
# include 
12083
#endif
12084
 
12085
#undef mkstemp
12086
 
12087
/* Override any gcc2 internal prototype to avoid an error.  */
12088
#ifdef __cplusplus
12089
extern "C"
12090
{
12091
#endif
12092
/* We use char because int might match the return type of a gcc2
12093
   builtin and then its argument prototype would still apply.  */
12094
char mkstemp ();
12095
/* The GNU C library defines this for functions which it implements
12096
    to always fail with ENOSYS.  Some functions are actually named
12097
    something starting with __ and the normal name is an alias.  */
12098
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12099
choke me
12100
#else
12101
char (*f) () = mkstemp;
12102
#endif
12103
#ifdef __cplusplus
12104
}
12105
#endif
12106
 
12107
int
12108
main ()
12109
{
12110
return f != mkstemp;
12111
  ;
12112
  return 0;
12113
}
12114
_ACEOF
12115
rm -f conftest.$ac_objext conftest$ac_exeext
12116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12117
  (eval $ac_link) 2>conftest.er1
12118
  ac_status=$?
12119
  grep -v '^ *+' conftest.er1 >conftest.err
12120
  rm -f conftest.er1
12121
  cat conftest.err >&5
12122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
  (exit $ac_status); } &&
12124
         { ac_try='test -z "$ac_c_werror_flag"
12125
                         || test ! -s conftest.err'
12126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127
  (eval $ac_try) 2>&5
12128
  ac_status=$?
12129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130
  (exit $ac_status); }; } &&
12131
         { ac_try='test -s conftest$ac_exeext'
12132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133
  (eval $ac_try) 2>&5
12134
  ac_status=$?
12135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136
  (exit $ac_status); }; }; then
12137
  ac_cv_func_mkstemp=yes
12138
else
12139
  echo "$as_me: failed program was:" >&5
12140
sed 's/^/| /' conftest.$ac_ext >&5
12141
 
12142
ac_cv_func_mkstemp=no
12143
fi
12144
rm -f conftest.err conftest.$ac_objext \
12145
      conftest$ac_exeext conftest.$ac_ext
12146
fi
12147
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12148
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12149
if test $ac_cv_func_mkstemp = yes; then
12150
 
12151
cat >>confdefs.h <<\_ACEOF
12152
#define HAVE_MKSTEMP 1
12153
_ACEOF
12154
 
12155
fi
12156
 
12157
echo "$as_me:$LINENO: checking for mkdtemp" >&5
12158
echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12159
if test "${ac_cv_func_mkdtemp+set}" = set; then
12160
  echo $ECHO_N "(cached) $ECHO_C" >&6
12161
else
12162
  cat >conftest.$ac_ext <<_ACEOF
12163
/* confdefs.h.  */
12164
_ACEOF
12165
cat confdefs.h >>conftest.$ac_ext
12166
cat >>conftest.$ac_ext <<_ACEOF
12167
/* end confdefs.h.  */
12168
/* Define mkdtemp to an innocuous variant, in case  declares mkdtemp.
12169
   For example, HP-UX 11i  declares gettimeofday.  */
12170
#define mkdtemp innocuous_mkdtemp
12171
 
12172
/* System header to define __stub macros and hopefully few prototypes,
12173
    which can conflict with char mkdtemp (); below.
12174
    Prefer  to  if __STDC__ is defined, since
12175
     exists even on freestanding compilers.  */
12176
 
12177
#ifdef __STDC__
12178
# include 
12179
#else
12180
# include 
12181
#endif
12182
 
12183
#undef mkdtemp
12184
 
12185
/* Override any gcc2 internal prototype to avoid an error.  */
12186
#ifdef __cplusplus
12187
extern "C"
12188
{
12189
#endif
12190
/* We use char because int might match the return type of a gcc2
12191
   builtin and then its argument prototype would still apply.  */
12192
char mkdtemp ();
12193
/* The GNU C library defines this for functions which it implements
12194
    to always fail with ENOSYS.  Some functions are actually named
12195
    something starting with __ and the normal name is an alias.  */
12196
#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12197
choke me
12198
#else
12199
char (*f) () = mkdtemp;
12200
#endif
12201
#ifdef __cplusplus
12202
}
12203
#endif
12204
 
12205
int
12206
main ()
12207
{
12208
return f != mkdtemp;
12209
  ;
12210
  return 0;
12211
}
12212
_ACEOF
12213
rm -f conftest.$ac_objext conftest$ac_exeext
12214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215
  (eval $ac_link) 2>conftest.er1
12216
  ac_status=$?
12217
  grep -v '^ *+' conftest.er1 >conftest.err
12218
  rm -f conftest.er1
12219
  cat conftest.err >&5
12220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221
  (exit $ac_status); } &&
12222
         { ac_try='test -z "$ac_c_werror_flag"
12223
                         || test ! -s conftest.err'
12224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225
  (eval $ac_try) 2>&5
12226
  ac_status=$?
12227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228
  (exit $ac_status); }; } &&
12229
         { ac_try='test -s conftest$ac_exeext'
12230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231
  (eval $ac_try) 2>&5
12232
  ac_status=$?
12233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234
  (exit $ac_status); }; }; then
12235
  ac_cv_func_mkdtemp=yes
12236
else
12237
  echo "$as_me: failed program was:" >&5
12238
sed 's/^/| /' conftest.$ac_ext >&5
12239
 
12240
ac_cv_func_mkdtemp=no
12241
fi
12242
rm -f conftest.err conftest.$ac_objext \
12243
      conftest$ac_exeext conftest.$ac_ext
12244
fi
12245
echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12246
echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12247
if test $ac_cv_func_mkdtemp = yes; then
12248
 
12249
cat >>confdefs.h <<\_ACEOF
12250
#define HAVE_MKDTEMP 1
12251
_ACEOF
12252
 
12253
fi
12254
 
12255
 
12256
# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12257
# needs to be defined for it
12258
echo "$as_me:$LINENO: checking for fopen64" >&5
12259
echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12260
if test "${bu_cv_have_fopen64+set}" = set; then
12261
  echo $ECHO_N "(cached) $ECHO_C" >&6
12262
else
12263
  cat >conftest.$ac_ext <<_ACEOF
12264
/* confdefs.h.  */
12265
_ACEOF
12266
cat confdefs.h >>conftest.$ac_ext
12267
cat >>conftest.$ac_ext <<_ACEOF
12268
/* end confdefs.h.  */
12269
#include 
12270
int
12271
main ()
12272
{
12273
FILE *f = fopen64 ("/tmp/foo","r");
12274
  ;
12275
  return 0;
12276
}
12277
_ACEOF
12278
rm -f conftest.$ac_objext conftest$ac_exeext
12279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280
  (eval $ac_link) 2>conftest.er1
12281
  ac_status=$?
12282
  grep -v '^ *+' conftest.er1 >conftest.err
12283
  rm -f conftest.er1
12284
  cat conftest.err >&5
12285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286
  (exit $ac_status); } &&
12287
         { ac_try='test -z "$ac_c_werror_flag"
12288
                         || test ! -s conftest.err'
12289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290
  (eval $ac_try) 2>&5
12291
  ac_status=$?
12292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293
  (exit $ac_status); }; } &&
12294
         { ac_try='test -s conftest$ac_exeext'
12295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296
  (eval $ac_try) 2>&5
12297
  ac_status=$?
12298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299
  (exit $ac_status); }; }; then
12300
  bu_cv_have_fopen64=yes
12301
else
12302
  echo "$as_me: failed program was:" >&5
12303
sed 's/^/| /' conftest.$ac_ext >&5
12304
 
12305
saved_CPPFLAGS=$CPPFLAGS
12306
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12307
 cat >conftest.$ac_ext <<_ACEOF
12308
/* confdefs.h.  */
12309
_ACEOF
12310
cat confdefs.h >>conftest.$ac_ext
12311
cat >>conftest.$ac_ext <<_ACEOF
12312
/* end confdefs.h.  */
12313
#include 
12314
int
12315
main ()
12316
{
12317
FILE *f = fopen64 ("/tmp/foo","r");
12318
  ;
12319
  return 0;
12320
}
12321
_ACEOF
12322
rm -f conftest.$ac_objext conftest$ac_exeext
12323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324
  (eval $ac_link) 2>conftest.er1
12325
  ac_status=$?
12326
  grep -v '^ *+' conftest.er1 >conftest.err
12327
  rm -f conftest.er1
12328
  cat conftest.err >&5
12329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330
  (exit $ac_status); } &&
12331
         { ac_try='test -z "$ac_c_werror_flag"
12332
                         || test ! -s conftest.err'
12333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334
  (eval $ac_try) 2>&5
12335
  ac_status=$?
12336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337
  (exit $ac_status); }; } &&
12338
         { ac_try='test -s conftest$ac_exeext'
12339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340
  (eval $ac_try) 2>&5
12341
  ac_status=$?
12342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343
  (exit $ac_status); }; }; then
12344
  bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12345
else
12346
  echo "$as_me: failed program was:" >&5
12347
sed 's/^/| /' conftest.$ac_ext >&5
12348
 
12349
bu_cv_have_fopen64=no
12350
fi
12351
rm -f conftest.err conftest.$ac_objext \
12352
      conftest$ac_exeext conftest.$ac_ext
12353
 CPPFLAGS=$saved_CPPFLAGS
12354
fi
12355
rm -f conftest.err conftest.$ac_objext \
12356
      conftest$ac_exeext conftest.$ac_ext
12357
fi
12358
 
12359
echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12360
echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12361
if test "$bu_cv_have_fopen64" != no; then
12362
 
12363
cat >>confdefs.h <<\_ACEOF
12364
#define HAVE_FOPEN64 1
12365
_ACEOF
12366
 
12367
fi
12368
echo "$as_me:$LINENO: checking for stat64" >&5
12369
echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12370
if test "${bu_cv_have_stat64+set}" = set; then
12371
  echo $ECHO_N "(cached) $ECHO_C" >&6
12372
else
12373
  cat >conftest.$ac_ext <<_ACEOF
12374
/* confdefs.h.  */
12375
_ACEOF
12376
cat confdefs.h >>conftest.$ac_ext
12377
cat >>conftest.$ac_ext <<_ACEOF
12378
/* end confdefs.h.  */
12379
#include 
12380
int
12381
main ()
12382
{
12383
struct stat64 st; stat64 ("/tmp/foo", &st);
12384
  ;
12385
  return 0;
12386
}
12387
_ACEOF
12388
rm -f conftest.$ac_objext conftest$ac_exeext
12389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12390
  (eval $ac_link) 2>conftest.er1
12391
  ac_status=$?
12392
  grep -v '^ *+' conftest.er1 >conftest.err
12393
  rm -f conftest.er1
12394
  cat conftest.err >&5
12395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396
  (exit $ac_status); } &&
12397
         { ac_try='test -z "$ac_c_werror_flag"
12398
                         || test ! -s conftest.err'
12399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400
  (eval $ac_try) 2>&5
12401
  ac_status=$?
12402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403
  (exit $ac_status); }; } &&
12404
         { ac_try='test -s conftest$ac_exeext'
12405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406
  (eval $ac_try) 2>&5
12407
  ac_status=$?
12408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409
  (exit $ac_status); }; }; then
12410
  bu_cv_have_stat64=yes
12411
else
12412
  echo "$as_me: failed program was:" >&5
12413
sed 's/^/| /' conftest.$ac_ext >&5
12414
 
12415
saved_CPPFLAGS=$CPPFLAGS
12416
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12417
 cat >conftest.$ac_ext <<_ACEOF
12418
/* confdefs.h.  */
12419
_ACEOF
12420
cat confdefs.h >>conftest.$ac_ext
12421
cat >>conftest.$ac_ext <<_ACEOF
12422
/* end confdefs.h.  */
12423
#include 
12424
int
12425
main ()
12426
{
12427
struct stat64 st; stat64 ("/tmp/foo", &st);
12428
  ;
12429
  return 0;
12430
}
12431
_ACEOF
12432
rm -f conftest.$ac_objext conftest$ac_exeext
12433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434
  (eval $ac_link) 2>conftest.er1
12435
  ac_status=$?
12436
  grep -v '^ *+' conftest.er1 >conftest.err
12437
  rm -f conftest.er1
12438
  cat conftest.err >&5
12439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440
  (exit $ac_status); } &&
12441
         { ac_try='test -z "$ac_c_werror_flag"
12442
                         || test ! -s conftest.err'
12443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444
  (eval $ac_try) 2>&5
12445
  ac_status=$?
12446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447
  (exit $ac_status); }; } &&
12448
         { ac_try='test -s conftest$ac_exeext'
12449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450
  (eval $ac_try) 2>&5
12451
  ac_status=$?
12452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453
  (exit $ac_status); }; }; then
12454
  bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12455
else
12456
  echo "$as_me: failed program was:" >&5
12457
sed 's/^/| /' conftest.$ac_ext >&5
12458
 
12459
bu_cv_have_stat64=no
12460
fi
12461
rm -f conftest.err conftest.$ac_objext \
12462
      conftest$ac_exeext conftest.$ac_ext
12463
 CPPFLAGS=$saved_CPPFLAGS
12464
fi
12465
rm -f conftest.err conftest.$ac_objext \
12466
      conftest$ac_exeext conftest.$ac_ext
12467
fi
12468
 
12469
echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12470
echo "${ECHO_T}$bu_cv_have_stat64" >&6
12471
if test "$bu_cv_have_stat64" != no; then
12472
 
12473
cat >>confdefs.h <<\_ACEOF
12474
#define HAVE_STAT64 1
12475
_ACEOF
12476
 
12477
fi
12478
if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12479
   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12480
 
12481
cat >>confdefs.h <<\_ACEOF
12482
#define _LARGEFILE64_SOURCE 1
12483
_ACEOF
12484
 
12485
  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12486
fi
12487
 
12488
# Some systems have frexp only in -lm, not in -lc.
12489
echo "$as_me:$LINENO: checking for library containing frexp" >&5
12490
echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12491
if test "${ac_cv_search_frexp+set}" = set; then
12492
  echo $ECHO_N "(cached) $ECHO_C" >&6
12493
else
12494
  ac_func_search_save_LIBS=$LIBS
12495
ac_cv_search_frexp=no
12496
cat >conftest.$ac_ext <<_ACEOF
12497
/* confdefs.h.  */
12498
_ACEOF
12499
cat confdefs.h >>conftest.$ac_ext
12500
cat >>conftest.$ac_ext <<_ACEOF
12501
/* end confdefs.h.  */
12502
 
12503
/* Override any gcc2 internal prototype to avoid an error.  */
12504
#ifdef __cplusplus
12505
extern "C"
12506
#endif
12507
/* We use char because int might match the return type of a gcc2
12508
   builtin and then its argument prototype would still apply.  */
12509
char frexp ();
12510
int
12511
main ()
12512
{
12513
frexp ();
12514
  ;
12515
  return 0;
12516
}
12517
_ACEOF
12518
rm -f conftest.$ac_objext conftest$ac_exeext
12519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520
  (eval $ac_link) 2>conftest.er1
12521
  ac_status=$?
12522
  grep -v '^ *+' conftest.er1 >conftest.err
12523
  rm -f conftest.er1
12524
  cat conftest.err >&5
12525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526
  (exit $ac_status); } &&
12527
         { ac_try='test -z "$ac_c_werror_flag"
12528
                         || test ! -s conftest.err'
12529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530
  (eval $ac_try) 2>&5
12531
  ac_status=$?
12532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533
  (exit $ac_status); }; } &&
12534
         { ac_try='test -s conftest$ac_exeext'
12535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536
  (eval $ac_try) 2>&5
12537
  ac_status=$?
12538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539
  (exit $ac_status); }; }; then
12540
  ac_cv_search_frexp="none required"
12541
else
12542
  echo "$as_me: failed program was:" >&5
12543
sed 's/^/| /' conftest.$ac_ext >&5
12544
 
12545
fi
12546
rm -f conftest.err conftest.$ac_objext \
12547
      conftest$ac_exeext conftest.$ac_ext
12548
if test "$ac_cv_search_frexp" = no; then
12549
  for ac_lib in m; do
12550
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12551
    cat >conftest.$ac_ext <<_ACEOF
12552
/* confdefs.h.  */
12553
_ACEOF
12554
cat confdefs.h >>conftest.$ac_ext
12555
cat >>conftest.$ac_ext <<_ACEOF
12556
/* end confdefs.h.  */
12557
 
12558
/* Override any gcc2 internal prototype to avoid an error.  */
12559
#ifdef __cplusplus
12560
extern "C"
12561
#endif
12562
/* We use char because int might match the return type of a gcc2
12563
   builtin and then its argument prototype would still apply.  */
12564
char frexp ();
12565
int
12566
main ()
12567
{
12568
frexp ();
12569
  ;
12570
  return 0;
12571
}
12572
_ACEOF
12573
rm -f conftest.$ac_objext conftest$ac_exeext
12574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12575
  (eval $ac_link) 2>conftest.er1
12576
  ac_status=$?
12577
  grep -v '^ *+' conftest.er1 >conftest.err
12578
  rm -f conftest.er1
12579
  cat conftest.err >&5
12580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581
  (exit $ac_status); } &&
12582
         { ac_try='test -z "$ac_c_werror_flag"
12583
                         || test ! -s conftest.err'
12584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585
  (eval $ac_try) 2>&5
12586
  ac_status=$?
12587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588
  (exit $ac_status); }; } &&
12589
         { ac_try='test -s conftest$ac_exeext'
12590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591
  (eval $ac_try) 2>&5
12592
  ac_status=$?
12593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594
  (exit $ac_status); }; }; then
12595
  ac_cv_search_frexp="-l$ac_lib"
12596
break
12597
else
12598
  echo "$as_me: failed program was:" >&5
12599
sed 's/^/| /' conftest.$ac_ext >&5
12600
 
12601
fi
12602
rm -f conftest.err conftest.$ac_objext \
12603
      conftest$ac_exeext conftest.$ac_ext
12604
  done
12605
fi
12606
LIBS=$ac_func_search_save_LIBS
12607
fi
12608
echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12609
echo "${ECHO_T}$ac_cv_search_frexp" >&6
12610
if test "$ac_cv_search_frexp" != no; then
12611
  test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12612
 
12613
fi
12614
 
12615
 
12616
echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12617
echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12618
if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12619
  echo $ECHO_N "(cached) $ECHO_C" >&6
12620
else
12621
  cat >conftest.$ac_ext <<_ACEOF
12622
/* confdefs.h.  */
12623
_ACEOF
12624
cat confdefs.h >>conftest.$ac_ext
12625
cat >>conftest.$ac_ext <<_ACEOF
12626
/* end confdefs.h.  */
12627
#include 
12628
int
12629
main ()
12630
{
12631
time_t i;
12632
  ;
12633
  return 0;
12634
}
12635
_ACEOF
12636
rm -f conftest.$ac_objext
12637
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638
  (eval $ac_compile) 2>conftest.er1
12639
  ac_status=$?
12640
  grep -v '^ *+' conftest.er1 >conftest.err
12641
  rm -f conftest.er1
12642
  cat conftest.err >&5
12643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644
  (exit $ac_status); } &&
12645
         { ac_try='test -z "$ac_c_werror_flag"
12646
                         || test ! -s conftest.err'
12647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648
  (eval $ac_try) 2>&5
12649
  ac_status=$?
12650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651
  (exit $ac_status); }; } &&
12652
         { ac_try='test -s conftest.$ac_objext'
12653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654
  (eval $ac_try) 2>&5
12655
  ac_status=$?
12656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657
  (exit $ac_status); }; }; then
12658
  bu_cv_decl_time_t_time_h=yes
12659
else
12660
  echo "$as_me: failed program was:" >&5
12661
sed 's/^/| /' conftest.$ac_ext >&5
12662
 
12663
bu_cv_decl_time_t_time_h=no
12664
fi
12665
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666
fi
12667
 
12668
echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12669
echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12670
if test $bu_cv_decl_time_t_time_h = yes; then
12671
 
12672
cat >>confdefs.h <<\_ACEOF
12673
#define HAVE_TIME_T_IN_TIME_H 1
12674
_ACEOF
12675
 
12676
fi
12677
 
12678
echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12679
echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12680
if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12681
  echo $ECHO_N "(cached) $ECHO_C" >&6
12682
else
12683
  cat >conftest.$ac_ext <<_ACEOF
12684
/* confdefs.h.  */
12685
_ACEOF
12686
cat confdefs.h >>conftest.$ac_ext
12687
cat >>conftest.$ac_ext <<_ACEOF
12688
/* end confdefs.h.  */
12689
#include 
12690
int
12691
main ()
12692
{
12693
time_t i;
12694
  ;
12695
  return 0;
12696
}
12697
_ACEOF
12698
rm -f conftest.$ac_objext
12699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700
  (eval $ac_compile) 2>conftest.er1
12701
  ac_status=$?
12702
  grep -v '^ *+' conftest.er1 >conftest.err
12703
  rm -f conftest.er1
12704
  cat conftest.err >&5
12705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706
  (exit $ac_status); } &&
12707
         { ac_try='test -z "$ac_c_werror_flag"
12708
                         || test ! -s conftest.err'
12709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710
  (eval $ac_try) 2>&5
12711
  ac_status=$?
12712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713
  (exit $ac_status); }; } &&
12714
         { ac_try='test -s conftest.$ac_objext'
12715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716
  (eval $ac_try) 2>&5
12717
  ac_status=$?
12718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719
  (exit $ac_status); }; }; then
12720
  bu_cv_decl_time_t_types_h=yes
12721
else
12722
  echo "$as_me: failed program was:" >&5
12723
sed 's/^/| /' conftest.$ac_ext >&5
12724
 
12725
bu_cv_decl_time_t_types_h=no
12726
fi
12727
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12728
fi
12729
 
12730
echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12731
echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12732
if test $bu_cv_decl_time_t_types_h = yes; then
12733
 
12734
cat >>confdefs.h <<\_ACEOF
12735
#define HAVE_TIME_T_IN_TYPES_H 1
12736
_ACEOF
12737
 
12738
fi
12739
 
12740
echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
12741
echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
12742
if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
12743
  echo $ECHO_N "(cached) $ECHO_C" >&6
12744
else
12745
  cat >conftest.$ac_ext <<_ACEOF
12746
/* confdefs.h.  */
12747
_ACEOF
12748
cat confdefs.h >>conftest.$ac_ext
12749
cat >>conftest.$ac_ext <<_ACEOF
12750
/* end confdefs.h.  */
12751
#include 
12752
int
12753
main ()
12754
{
12755
extern int getopt (int, char *const*, const char *);
12756
  ;
12757
  return 0;
12758
}
12759
_ACEOF
12760
rm -f conftest.$ac_objext
12761
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12762
  (eval $ac_compile) 2>conftest.er1
12763
  ac_status=$?
12764
  grep -v '^ *+' conftest.er1 >conftest.err
12765
  rm -f conftest.er1
12766
  cat conftest.err >&5
12767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768
  (exit $ac_status); } &&
12769
         { ac_try='test -z "$ac_c_werror_flag"
12770
                         || test ! -s conftest.err'
12771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772
  (eval $ac_try) 2>&5
12773
  ac_status=$?
12774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775
  (exit $ac_status); }; } &&
12776
         { ac_try='test -s conftest.$ac_objext'
12777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778
  (eval $ac_try) 2>&5
12779
  ac_status=$?
12780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781
  (exit $ac_status); }; }; then
12782
  bu_cv_decl_getopt_unistd_h=yes
12783
else
12784
  echo "$as_me: failed program was:" >&5
12785
sed 's/^/| /' conftest.$ac_ext >&5
12786
 
12787
bu_cv_decl_getopt_unistd_h=no
12788
fi
12789
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12790
fi
12791
 
12792
echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
12793
echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
12794
if test $bu_cv_decl_getopt_unistd_h = yes; then
12795
 
12796
cat >>confdefs.h <<\_ACEOF
12797
#define HAVE_DECL_GETOPT 1
12798
_ACEOF
12799
 
12800
fi
12801
 
12802
# Under Next 3.2  apparently does not define struct utimbuf
12803
# by default.
12804
echo "$as_me:$LINENO: checking for utime.h" >&5
12805
echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12806
if test "${bu_cv_header_utime_h+set}" = set; then
12807
  echo $ECHO_N "(cached) $ECHO_C" >&6
12808
else
12809
  cat >conftest.$ac_ext <<_ACEOF
12810
/* confdefs.h.  */
12811
_ACEOF
12812
cat confdefs.h >>conftest.$ac_ext
12813
cat >>conftest.$ac_ext <<_ACEOF
12814
/* end confdefs.h.  */
12815
#include 
12816
#ifdef HAVE_TIME_H
12817
#include 
12818
#endif
12819
#include 
12820
int
12821
main ()
12822
{
12823
struct utimbuf s;
12824
  ;
12825
  return 0;
12826
}
12827
_ACEOF
12828
rm -f conftest.$ac_objext
12829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830
  (eval $ac_compile) 2>conftest.er1
12831
  ac_status=$?
12832
  grep -v '^ *+' conftest.er1 >conftest.err
12833
  rm -f conftest.er1
12834
  cat conftest.err >&5
12835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836
  (exit $ac_status); } &&
12837
         { ac_try='test -z "$ac_c_werror_flag"
12838
                         || test ! -s conftest.err'
12839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840
  (eval $ac_try) 2>&5
12841
  ac_status=$?
12842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843
  (exit $ac_status); }; } &&
12844
         { ac_try='test -s conftest.$ac_objext'
12845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846
  (eval $ac_try) 2>&5
12847
  ac_status=$?
12848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849
  (exit $ac_status); }; }; then
12850
  bu_cv_header_utime_h=yes
12851
else
12852
  echo "$as_me: failed program was:" >&5
12853
sed 's/^/| /' conftest.$ac_ext >&5
12854
 
12855
bu_cv_header_utime_h=no
12856
fi
12857
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12858
fi
12859
 
12860
echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
12861
echo "${ECHO_T}$bu_cv_header_utime_h" >&6
12862
if test $bu_cv_header_utime_h = yes; then
12863
 
12864
cat >>confdefs.h <<\_ACEOF
12865
#define HAVE_GOOD_UTIME_H 1
12866
_ACEOF
12867
 
12868
fi
12869
 
12870
echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
12871
echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
12872
if test "${ac_cv_have_decl_fprintf+set}" = set; then
12873
  echo $ECHO_N "(cached) $ECHO_C" >&6
12874
else
12875
  cat >conftest.$ac_ext <<_ACEOF
12876
/* confdefs.h.  */
12877
_ACEOF
12878
cat confdefs.h >>conftest.$ac_ext
12879
cat >>conftest.$ac_ext <<_ACEOF
12880
/* end confdefs.h.  */
12881
$ac_includes_default
12882
int
12883
main ()
12884
{
12885
#ifndef fprintf
12886
  char *p = (char *) fprintf;
12887
#endif
12888
 
12889
  ;
12890
  return 0;
12891
}
12892
_ACEOF
12893
rm -f conftest.$ac_objext
12894
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895
  (eval $ac_compile) 2>conftest.er1
12896
  ac_status=$?
12897
  grep -v '^ *+' conftest.er1 >conftest.err
12898
  rm -f conftest.er1
12899
  cat conftest.err >&5
12900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901
  (exit $ac_status); } &&
12902
         { ac_try='test -z "$ac_c_werror_flag"
12903
                         || test ! -s conftest.err'
12904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905
  (eval $ac_try) 2>&5
12906
  ac_status=$?
12907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908
  (exit $ac_status); }; } &&
12909
         { ac_try='test -s conftest.$ac_objext'
12910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911
  (eval $ac_try) 2>&5
12912
  ac_status=$?
12913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914
  (exit $ac_status); }; }; then
12915
  ac_cv_have_decl_fprintf=yes
12916
else
12917
  echo "$as_me: failed program was:" >&5
12918
sed 's/^/| /' conftest.$ac_ext >&5
12919
 
12920
ac_cv_have_decl_fprintf=no
12921
fi
12922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12923
fi
12924
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
12925
echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
12926
if test $ac_cv_have_decl_fprintf = yes; then
12927
 
12928
cat >>confdefs.h <<_ACEOF
12929
#define HAVE_DECL_FPRINTF 1
12930
_ACEOF
12931
 
12932
 
12933
else
12934
  cat >>confdefs.h <<_ACEOF
12935
#define HAVE_DECL_FPRINTF 0
12936
_ACEOF
12937
 
12938
 
12939
fi
12940
echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12941
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12942
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12943
  echo $ECHO_N "(cached) $ECHO_C" >&6
12944
else
12945
  cat >conftest.$ac_ext <<_ACEOF
12946
/* confdefs.h.  */
12947
_ACEOF
12948
cat confdefs.h >>conftest.$ac_ext
12949
cat >>conftest.$ac_ext <<_ACEOF
12950
/* end confdefs.h.  */
12951
$ac_includes_default
12952
int
12953
main ()
12954
{
12955
#ifndef stpcpy
12956
  char *p = (char *) stpcpy;
12957
#endif
12958
 
12959
  ;
12960
  return 0;
12961
}
12962
_ACEOF
12963
rm -f conftest.$ac_objext
12964
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965
  (eval $ac_compile) 2>conftest.er1
12966
  ac_status=$?
12967
  grep -v '^ *+' conftest.er1 >conftest.err
12968
  rm -f conftest.er1
12969
  cat conftest.err >&5
12970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971
  (exit $ac_status); } &&
12972
         { ac_try='test -z "$ac_c_werror_flag"
12973
                         || test ! -s conftest.err'
12974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975
  (eval $ac_try) 2>&5
12976
  ac_status=$?
12977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978
  (exit $ac_status); }; } &&
12979
         { ac_try='test -s conftest.$ac_objext'
12980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981
  (eval $ac_try) 2>&5
12982
  ac_status=$?
12983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984
  (exit $ac_status); }; }; then
12985
  ac_cv_have_decl_stpcpy=yes
12986
else
12987
  echo "$as_me: failed program was:" >&5
12988
sed 's/^/| /' conftest.$ac_ext >&5
12989
 
12990
ac_cv_have_decl_stpcpy=no
12991
fi
12992
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12993
fi
12994
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12995
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12996
if test $ac_cv_have_decl_stpcpy = yes; then
12997
 
12998
cat >>confdefs.h <<_ACEOF
12999
#define HAVE_DECL_STPCPY 1
13000
_ACEOF
13001
 
13002
 
13003
else
13004
  cat >>confdefs.h <<_ACEOF
13005
#define HAVE_DECL_STPCPY 0
13006
_ACEOF
13007
 
13008
 
13009
fi
13010
echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13011
echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13012
if test "${ac_cv_have_decl_strstr+set}" = set; then
13013
  echo $ECHO_N "(cached) $ECHO_C" >&6
13014
else
13015
  cat >conftest.$ac_ext <<_ACEOF
13016
/* confdefs.h.  */
13017
_ACEOF
13018
cat confdefs.h >>conftest.$ac_ext
13019
cat >>conftest.$ac_ext <<_ACEOF
13020
/* end confdefs.h.  */
13021
$ac_includes_default
13022
int
13023
main ()
13024
{
13025
#ifndef strstr
13026
  char *p = (char *) strstr;
13027
#endif
13028
 
13029
  ;
13030
  return 0;
13031
}
13032
_ACEOF
13033
rm -f conftest.$ac_objext
13034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035
  (eval $ac_compile) 2>conftest.er1
13036
  ac_status=$?
13037
  grep -v '^ *+' conftest.er1 >conftest.err
13038
  rm -f conftest.er1
13039
  cat conftest.err >&5
13040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041
  (exit $ac_status); } &&
13042
         { ac_try='test -z "$ac_c_werror_flag"
13043
                         || test ! -s conftest.err'
13044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13045
  (eval $ac_try) 2>&5
13046
  ac_status=$?
13047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048
  (exit $ac_status); }; } &&
13049
         { ac_try='test -s conftest.$ac_objext'
13050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051
  (eval $ac_try) 2>&5
13052
  ac_status=$?
13053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054
  (exit $ac_status); }; }; then
13055
  ac_cv_have_decl_strstr=yes
13056
else
13057
  echo "$as_me: failed program was:" >&5
13058
sed 's/^/| /' conftest.$ac_ext >&5
13059
 
13060
ac_cv_have_decl_strstr=no
13061
fi
13062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13063
fi
13064
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13065
echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13066
if test $ac_cv_have_decl_strstr = yes; then
13067
 
13068
cat >>confdefs.h <<_ACEOF
13069
#define HAVE_DECL_STRSTR 1
13070
_ACEOF
13071
 
13072
 
13073
else
13074
  cat >>confdefs.h <<_ACEOF
13075
#define HAVE_DECL_STRSTR 0
13076
_ACEOF
13077
 
13078
 
13079
fi
13080
echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13081
echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13082
if test "${ac_cv_have_decl_sbrk+set}" = set; then
13083
  echo $ECHO_N "(cached) $ECHO_C" >&6
13084
else
13085
  cat >conftest.$ac_ext <<_ACEOF
13086
/* confdefs.h.  */
13087
_ACEOF
13088
cat confdefs.h >>conftest.$ac_ext
13089
cat >>conftest.$ac_ext <<_ACEOF
13090
/* end confdefs.h.  */
13091
$ac_includes_default
13092
int
13093
main ()
13094
{
13095
#ifndef sbrk
13096
  char *p = (char *) sbrk;
13097
#endif
13098
 
13099
  ;
13100
  return 0;
13101
}
13102
_ACEOF
13103
rm -f conftest.$ac_objext
13104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105
  (eval $ac_compile) 2>conftest.er1
13106
  ac_status=$?
13107
  grep -v '^ *+' conftest.er1 >conftest.err
13108
  rm -f conftest.er1
13109
  cat conftest.err >&5
13110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111
  (exit $ac_status); } &&
13112
         { ac_try='test -z "$ac_c_werror_flag"
13113
                         || test ! -s conftest.err'
13114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115
  (eval $ac_try) 2>&5
13116
  ac_status=$?
13117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118
  (exit $ac_status); }; } &&
13119
         { ac_try='test -s conftest.$ac_objext'
13120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121
  (eval $ac_try) 2>&5
13122
  ac_status=$?
13123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124
  (exit $ac_status); }; }; then
13125
  ac_cv_have_decl_sbrk=yes
13126
else
13127
  echo "$as_me: failed program was:" >&5
13128
sed 's/^/| /' conftest.$ac_ext >&5
13129
 
13130
ac_cv_have_decl_sbrk=no
13131
fi
13132
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133
fi
13134
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13135
echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13136
if test $ac_cv_have_decl_sbrk = yes; then
13137
 
13138
cat >>confdefs.h <<_ACEOF
13139
#define HAVE_DECL_SBRK 1
13140
_ACEOF
13141
 
13142
 
13143
else
13144
  cat >>confdefs.h <<_ACEOF
13145
#define HAVE_DECL_SBRK 0
13146
_ACEOF
13147
 
13148
 
13149
fi
13150
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13151
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13152
if test "${ac_cv_have_decl_getenv+set}" = set; then
13153
  echo $ECHO_N "(cached) $ECHO_C" >&6
13154
else
13155
  cat >conftest.$ac_ext <<_ACEOF
13156
/* confdefs.h.  */
13157
_ACEOF
13158
cat confdefs.h >>conftest.$ac_ext
13159
cat >>conftest.$ac_ext <<_ACEOF
13160
/* end confdefs.h.  */
13161
$ac_includes_default
13162
int
13163
main ()
13164
{
13165
#ifndef getenv
13166
  char *p = (char *) getenv;
13167
#endif
13168
 
13169
  ;
13170
  return 0;
13171
}
13172
_ACEOF
13173
rm -f conftest.$ac_objext
13174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13175
  (eval $ac_compile) 2>conftest.er1
13176
  ac_status=$?
13177
  grep -v '^ *+' conftest.er1 >conftest.err
13178
  rm -f conftest.er1
13179
  cat conftest.err >&5
13180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181
  (exit $ac_status); } &&
13182
         { ac_try='test -z "$ac_c_werror_flag"
13183
                         || test ! -s conftest.err'
13184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185
  (eval $ac_try) 2>&5
13186
  ac_status=$?
13187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188
  (exit $ac_status); }; } &&
13189
         { ac_try='test -s conftest.$ac_objext'
13190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191
  (eval $ac_try) 2>&5
13192
  ac_status=$?
13193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194
  (exit $ac_status); }; }; then
13195
  ac_cv_have_decl_getenv=yes
13196
else
13197
  echo "$as_me: failed program was:" >&5
13198
sed 's/^/| /' conftest.$ac_ext >&5
13199
 
13200
ac_cv_have_decl_getenv=no
13201
fi
13202
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13203
fi
13204
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13205
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13206
if test $ac_cv_have_decl_getenv = yes; then
13207
 
13208
cat >>confdefs.h <<_ACEOF
13209
#define HAVE_DECL_GETENV 1
13210
_ACEOF
13211
 
13212
 
13213
else
13214
  cat >>confdefs.h <<_ACEOF
13215
#define HAVE_DECL_GETENV 0
13216
_ACEOF
13217
 
13218
 
13219
fi
13220
echo "$as_me:$LINENO: checking whether environ is declared" >&5
13221
echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13222
if test "${ac_cv_have_decl_environ+set}" = set; then
13223
  echo $ECHO_N "(cached) $ECHO_C" >&6
13224
else
13225
  cat >conftest.$ac_ext <<_ACEOF
13226
/* confdefs.h.  */
13227
_ACEOF
13228
cat confdefs.h >>conftest.$ac_ext
13229
cat >>conftest.$ac_ext <<_ACEOF
13230
/* end confdefs.h.  */
13231
$ac_includes_default
13232
int
13233
main ()
13234
{
13235
#ifndef environ
13236
  char *p = (char *) environ;
13237
#endif
13238
 
13239
  ;
13240
  return 0;
13241
}
13242
_ACEOF
13243
rm -f conftest.$ac_objext
13244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13245
  (eval $ac_compile) 2>conftest.er1
13246
  ac_status=$?
13247
  grep -v '^ *+' conftest.er1 >conftest.err
13248
  rm -f conftest.er1
13249
  cat conftest.err >&5
13250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251
  (exit $ac_status); } &&
13252
         { ac_try='test -z "$ac_c_werror_flag"
13253
                         || test ! -s conftest.err'
13254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255
  (eval $ac_try) 2>&5
13256
  ac_status=$?
13257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258
  (exit $ac_status); }; } &&
13259
         { ac_try='test -s conftest.$ac_objext'
13260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261
  (eval $ac_try) 2>&5
13262
  ac_status=$?
13263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264
  (exit $ac_status); }; }; then
13265
  ac_cv_have_decl_environ=yes
13266
else
13267
  echo "$as_me: failed program was:" >&5
13268
sed 's/^/| /' conftest.$ac_ext >&5
13269
 
13270
ac_cv_have_decl_environ=no
13271
fi
13272
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273
fi
13274
echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13275
echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13276
if test $ac_cv_have_decl_environ = yes; then
13277
 
13278
cat >>confdefs.h <<_ACEOF
13279
#define HAVE_DECL_ENVIRON 1
13280
_ACEOF
13281
 
13282
 
13283
else
13284
  cat >>confdefs.h <<_ACEOF
13285
#define HAVE_DECL_ENVIRON 0
13286
_ACEOF
13287
 
13288
 
13289
fi
13290
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13291
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13292
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13293
  echo $ECHO_N "(cached) $ECHO_C" >&6
13294
else
13295
  cat >conftest.$ac_ext <<_ACEOF
13296
/* confdefs.h.  */
13297
_ACEOF
13298
cat confdefs.h >>conftest.$ac_ext
13299
cat >>conftest.$ac_ext <<_ACEOF
13300
/* end confdefs.h.  */
13301
$ac_includes_default
13302
int
13303
main ()
13304
{
13305
#ifndef getc_unlocked
13306
  char *p = (char *) getc_unlocked;
13307
#endif
13308
 
13309
  ;
13310
  return 0;
13311
}
13312
_ACEOF
13313
rm -f conftest.$ac_objext
13314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315
  (eval $ac_compile) 2>conftest.er1
13316
  ac_status=$?
13317
  grep -v '^ *+' conftest.er1 >conftest.err
13318
  rm -f conftest.er1
13319
  cat conftest.err >&5
13320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321
  (exit $ac_status); } &&
13322
         { ac_try='test -z "$ac_c_werror_flag"
13323
                         || test ! -s conftest.err'
13324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325
  (eval $ac_try) 2>&5
13326
  ac_status=$?
13327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328
  (exit $ac_status); }; } &&
13329
         { ac_try='test -s conftest.$ac_objext'
13330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331
  (eval $ac_try) 2>&5
13332
  ac_status=$?
13333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334
  (exit $ac_status); }; }; then
13335
  ac_cv_have_decl_getc_unlocked=yes
13336
else
13337
  echo "$as_me: failed program was:" >&5
13338
sed 's/^/| /' conftest.$ac_ext >&5
13339
 
13340
ac_cv_have_decl_getc_unlocked=no
13341
fi
13342
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13343
fi
13344
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13345
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13346
if test $ac_cv_have_decl_getc_unlocked = yes; then
13347
 
13348
cat >>confdefs.h <<_ACEOF
13349
#define HAVE_DECL_GETC_UNLOCKED 1
13350
_ACEOF
13351
 
13352
 
13353
else
13354
  cat >>confdefs.h <<_ACEOF
13355
#define HAVE_DECL_GETC_UNLOCKED 0
13356
_ACEOF
13357
 
13358
 
13359
fi
13360
echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13361
echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13362
if test "${ac_cv_have_decl_snprintf+set}" = set; then
13363
  echo $ECHO_N "(cached) $ECHO_C" >&6
13364
else
13365
  cat >conftest.$ac_ext <<_ACEOF
13366
/* confdefs.h.  */
13367
_ACEOF
13368
cat confdefs.h >>conftest.$ac_ext
13369
cat >>conftest.$ac_ext <<_ACEOF
13370
/* end confdefs.h.  */
13371
$ac_includes_default
13372
int
13373
main ()
13374
{
13375
#ifndef snprintf
13376
  char *p = (char *) snprintf;
13377
#endif
13378
 
13379
  ;
13380
  return 0;
13381
}
13382
_ACEOF
13383
rm -f conftest.$ac_objext
13384
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13385
  (eval $ac_compile) 2>conftest.er1
13386
  ac_status=$?
13387
  grep -v '^ *+' conftest.er1 >conftest.err
13388
  rm -f conftest.er1
13389
  cat conftest.err >&5
13390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391
  (exit $ac_status); } &&
13392
         { ac_try='test -z "$ac_c_werror_flag"
13393
                         || test ! -s conftest.err'
13394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395
  (eval $ac_try) 2>&5
13396
  ac_status=$?
13397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398
  (exit $ac_status); }; } &&
13399
         { ac_try='test -s conftest.$ac_objext'
13400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401
  (eval $ac_try) 2>&5
13402
  ac_status=$?
13403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404
  (exit $ac_status); }; }; then
13405
  ac_cv_have_decl_snprintf=yes
13406
else
13407
  echo "$as_me: failed program was:" >&5
13408
sed 's/^/| /' conftest.$ac_ext >&5
13409
 
13410
ac_cv_have_decl_snprintf=no
13411
fi
13412
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13413
fi
13414
echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13415
echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13416
if test $ac_cv_have_decl_snprintf = yes; then
13417
 
13418
cat >>confdefs.h <<_ACEOF
13419
#define HAVE_DECL_SNPRINTF 1
13420
_ACEOF
13421
 
13422
 
13423
else
13424
  cat >>confdefs.h <<_ACEOF
13425
#define HAVE_DECL_SNPRINTF 0
13426
_ACEOF
13427
 
13428
 
13429
fi
13430
echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13431
echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13432
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13433
  echo $ECHO_N "(cached) $ECHO_C" >&6
13434
else
13435
  cat >conftest.$ac_ext <<_ACEOF
13436
/* confdefs.h.  */
13437
_ACEOF
13438
cat confdefs.h >>conftest.$ac_ext
13439
cat >>conftest.$ac_ext <<_ACEOF
13440
/* end confdefs.h.  */
13441
$ac_includes_default
13442
int
13443
main ()
13444
{
13445
#ifndef vsnprintf
13446
  char *p = (char *) vsnprintf;
13447
#endif
13448
 
13449
  ;
13450
  return 0;
13451
}
13452
_ACEOF
13453
rm -f conftest.$ac_objext
13454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13455
  (eval $ac_compile) 2>conftest.er1
13456
  ac_status=$?
13457
  grep -v '^ *+' conftest.er1 >conftest.err
13458
  rm -f conftest.er1
13459
  cat conftest.err >&5
13460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461
  (exit $ac_status); } &&
13462
         { ac_try='test -z "$ac_c_werror_flag"
13463
                         || test ! -s conftest.err'
13464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465
  (eval $ac_try) 2>&5
13466
  ac_status=$?
13467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468
  (exit $ac_status); }; } &&
13469
         { ac_try='test -s conftest.$ac_objext'
13470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471
  (eval $ac_try) 2>&5
13472
  ac_status=$?
13473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474
  (exit $ac_status); }; }; then
13475
  ac_cv_have_decl_vsnprintf=yes
13476
else
13477
  echo "$as_me: failed program was:" >&5
13478
sed 's/^/| /' conftest.$ac_ext >&5
13479
 
13480
ac_cv_have_decl_vsnprintf=no
13481
fi
13482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13483
fi
13484
echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13485
echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13486
if test $ac_cv_have_decl_vsnprintf = yes; then
13487
 
13488
cat >>confdefs.h <<_ACEOF
13489
#define HAVE_DECL_VSNPRINTF 1
13490
_ACEOF
13491
 
13492
 
13493
else
13494
  cat >>confdefs.h <<_ACEOF
13495
#define HAVE_DECL_VSNPRINTF 0
13496
_ACEOF
13497
 
13498
 
13499
fi
13500
 
13501
 
13502
 
13503
 
13504
case "${host}" in
13505
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13506
 
13507
cat >>confdefs.h <<\_ACEOF
13508
#define USE_BINARY_FOPEN 1
13509
_ACEOF
13510
 ;;
13511
esac
13512
 
13513
# target-specific stuff:
13514
 
13515
# Canonicalize the secondary target names.
13516
if test -n "$enable_targets"; then
13517
    for targ in `echo $enable_targets | sed 's/,/ /g'`
13518
    do
13519
        result=`$ac_config_sub $targ 2>/dev/null`
13520
        if test -n "$result"; then
13521
            canon_targets="$canon_targets $result"
13522
        else
13523
            # Allow targets that config.sub doesn't recognize, like "all".
13524
            canon_targets="$canon_targets $targ"
13525
        fi
13526
    done
13527
fi
13528
 
13529
if test "${ac_cv_header_iconv_h+set}" = set; then
13530
  echo "$as_me:$LINENO: checking for iconv.h" >&5
13531
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13532
if test "${ac_cv_header_iconv_h+set}" = set; then
13533
  echo $ECHO_N "(cached) $ECHO_C" >&6
13534
fi
13535
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13536
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13537
else
13538
  # Is the header compilable?
13539
echo "$as_me:$LINENO: checking iconv.h usability" >&5
13540
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13541
cat >conftest.$ac_ext <<_ACEOF
13542
/* confdefs.h.  */
13543
_ACEOF
13544
cat confdefs.h >>conftest.$ac_ext
13545
cat >>conftest.$ac_ext <<_ACEOF
13546
/* end confdefs.h.  */
13547
$ac_includes_default
13548
#include 
13549
_ACEOF
13550
rm -f conftest.$ac_objext
13551
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552
  (eval $ac_compile) 2>conftest.er1
13553
  ac_status=$?
13554
  grep -v '^ *+' conftest.er1 >conftest.err
13555
  rm -f conftest.er1
13556
  cat conftest.err >&5
13557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558
  (exit $ac_status); } &&
13559
         { ac_try='test -z "$ac_c_werror_flag"
13560
                         || test ! -s conftest.err'
13561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562
  (eval $ac_try) 2>&5
13563
  ac_status=$?
13564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565
  (exit $ac_status); }; } &&
13566
         { ac_try='test -s conftest.$ac_objext'
13567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568
  (eval $ac_try) 2>&5
13569
  ac_status=$?
13570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571
  (exit $ac_status); }; }; then
13572
  ac_header_compiler=yes
13573
else
13574
  echo "$as_me: failed program was:" >&5
13575
sed 's/^/| /' conftest.$ac_ext >&5
13576
 
13577
ac_header_compiler=no
13578
fi
13579
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13581
echo "${ECHO_T}$ac_header_compiler" >&6
13582
 
13583
# Is the header present?
13584
echo "$as_me:$LINENO: checking iconv.h presence" >&5
13585
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13586
cat >conftest.$ac_ext <<_ACEOF
13587
/* confdefs.h.  */
13588
_ACEOF
13589
cat confdefs.h >>conftest.$ac_ext
13590
cat >>conftest.$ac_ext <<_ACEOF
13591
/* end confdefs.h.  */
13592
#include 
13593
_ACEOF
13594
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13595
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13596
  ac_status=$?
13597
  grep -v '^ *+' conftest.er1 >conftest.err
13598
  rm -f conftest.er1
13599
  cat conftest.err >&5
13600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601
  (exit $ac_status); } >/dev/null; then
13602
  if test -s conftest.err; then
13603
    ac_cpp_err=$ac_c_preproc_warn_flag
13604
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13605
  else
13606
    ac_cpp_err=
13607
  fi
13608
else
13609
  ac_cpp_err=yes
13610
fi
13611
if test -z "$ac_cpp_err"; then
13612
  ac_header_preproc=yes
13613
else
13614
  echo "$as_me: failed program was:" >&5
13615
sed 's/^/| /' conftest.$ac_ext >&5
13616
 
13617
  ac_header_preproc=no
13618
fi
13619
rm -f conftest.err conftest.$ac_ext
13620
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13621
echo "${ECHO_T}$ac_header_preproc" >&6
13622
 
13623
# So?  What about this header?
13624
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13625
  yes:no: )
13626
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13627
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13628
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
13629
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
13630
    ac_header_preproc=yes
13631
    ;;
13632
  no:yes:* )
13633
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13634
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13635
    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
13636
echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
13637
    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
13638
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
13639
    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
13640
echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13641
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13642
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
13643
    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
13644
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
13645
    (
13646
      cat <<\_ASBOX
13647
## ------------------------------------------ ##
13648
## Report this to the AC_PACKAGE_NAME lists.  ##
13649
## ------------------------------------------ ##
13650
_ASBOX
13651
    ) |
13652
      sed "s/^/$as_me: WARNING:     /" >&2
13653
    ;;
13654
esac
13655
echo "$as_me:$LINENO: checking for iconv.h" >&5
13656
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13657
if test "${ac_cv_header_iconv_h+set}" = set; then
13658
  echo $ECHO_N "(cached) $ECHO_C" >&6
13659
else
13660
  ac_cv_header_iconv_h=$ac_header_preproc
13661
fi
13662
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13663
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13664
 
13665
fi
13666
 
13667
 
13668
 
13669
      if test "X$prefix" = "XNONE"; then
13670
    acl_final_prefix="$ac_default_prefix"
13671
  else
13672
    acl_final_prefix="$prefix"
13673
  fi
13674
  if test "X$exec_prefix" = "XNONE"; then
13675
    acl_final_exec_prefix='${prefix}'
13676
  else
13677
    acl_final_exec_prefix="$exec_prefix"
13678
  fi
13679
  acl_save_prefix="$prefix"
13680
  prefix="$acl_final_prefix"
13681
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13682
  prefix="$acl_save_prefix"
13683
 
13684
 
13685
# Check whether --with-gnu-ld or --without-gnu-ld was given.
13686
if test "${with_gnu_ld+set}" = set; then
13687
  withval="$with_gnu_ld"
13688
  test "$withval" = no || with_gnu_ld=yes
13689
else
13690
  with_gnu_ld=no
13691
fi;
13692
# Prepare PATH_SEPARATOR.
13693
# The user is always right.
13694
if test "${PATH_SEPARATOR+set}" != set; then
13695
  echo "#! /bin/sh" >conf$$.sh
13696
  echo  "exit 0"   >>conf$$.sh
13697
  chmod +x conf$$.sh
13698
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13699
    PATH_SEPARATOR=';'
13700
  else
13701
    PATH_SEPARATOR=:
13702
  fi
13703
  rm -f conf$$.sh
13704
fi
13705
ac_prog=ld
13706
if test "$GCC" = yes; then
13707
  # Check if gcc -print-prog-name=ld gives a path.
13708
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13709
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
13710
  case $host in
13711
  *-*-mingw*)
13712
    # gcc leaves a trailing carriage return which upsets mingw
13713
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13714
  *)
13715
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13716
  esac
13717
  case $ac_prog in
13718
    # Accept absolute paths.
13719
    [\\/]* | [A-Za-z]:[\\/]*)
13720
      re_direlt='/[^/][^/]*/\.\./'
13721
      # Canonicalize the path of ld
13722
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13723
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13724
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13725
      done
13726
      test -z "$LD" && LD="$ac_prog"
13727
      ;;
13728
  "")
13729
    # If it fails, then pretend we aren't using GCC.
13730
    ac_prog=ld
13731
    ;;
13732
  *)
13733
    # If it is relative, then search for the first ld in PATH.
13734
    with_gnu_ld=unknown
13735
    ;;
13736
  esac
13737
elif test "$with_gnu_ld" = yes; then
13738
  echo "$as_me:$LINENO: checking for GNU ld" >&5
13739
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13740
else
13741
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13742
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13743
fi
13744
if test "${acl_cv_path_LD+set}" = set; then
13745
  echo $ECHO_N "(cached) $ECHO_C" >&6
13746
else
13747
  if test -z "$LD"; then
13748
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13749
  for ac_dir in $PATH; do
13750
    test -z "$ac_dir" && ac_dir=.
13751
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13752
      acl_cv_path_LD="$ac_dir/$ac_prog"
13753
      # Check to see if the program is GNU ld.  I'd rather use --version,
13754
      # but apparently some GNU ld's only accept -v.
13755
      # Break only if it was the GNU/non-GNU ld that we prefer.
13756
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13757
        test "$with_gnu_ld" != no && break
13758
      else
13759
        test "$with_gnu_ld" != yes && break
13760
      fi
13761
    fi
13762
  done
13763
  IFS="$ac_save_ifs"
13764
else
13765
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
13766
fi
13767
fi
13768
 
13769
LD="$acl_cv_path_LD"
13770
if test -n "$LD"; then
13771
  echo "$as_me:$LINENO: result: $LD" >&5
13772
echo "${ECHO_T}$LD" >&6
13773
else
13774
  echo "$as_me:$LINENO: result: no" >&5
13775
echo "${ECHO_T}no" >&6
13776
fi
13777
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13778
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13779
   { (exit 1); exit 1; }; }
13780
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13781
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13782
if test "${acl_cv_prog_gnu_ld+set}" = set; then
13783
  echo $ECHO_N "(cached) $ECHO_C" >&6
13784
else
13785
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13786
if $LD -v 2>&1 &5; then
13787
  acl_cv_prog_gnu_ld=yes
13788
else
13789
  acl_cv_prog_gnu_ld=no
13790
fi
13791
fi
13792
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13793
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
13794
with_gnu_ld=$acl_cv_prog_gnu_ld
13795
 
13796
 
13797
 
13798
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13799
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
13800
if test "${acl_cv_rpath+set}" = set; then
13801
  echo $ECHO_N "(cached) $ECHO_C" >&6
13802
else
13803
 
13804
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13805
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13806
    . ./conftest.sh
13807
    rm -f ./conftest.sh
13808
    acl_cv_rpath=done
13809
 
13810
fi
13811
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13812
echo "${ECHO_T}$acl_cv_rpath" >&6
13813
  wl="$acl_cv_wl"
13814
  libext="$acl_cv_libext"
13815
  shlibext="$acl_cv_shlibext"
13816
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13817
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13818
  hardcode_direct="$acl_cv_hardcode_direct"
13819
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
13820
    # Check whether --enable-rpath or --disable-rpath was given.
13821
if test "${enable_rpath+set}" = set; then
13822
  enableval="$enable_rpath"
13823
  :
13824
else
13825
  enable_rpath=yes
13826
fi;
13827
 
13828
 
13829
 
13830
 
13831
 
13832
 
13833
 
13834
    use_additional=yes
13835
 
13836
  acl_save_prefix="$prefix"
13837
  prefix="$acl_final_prefix"
13838
  acl_save_exec_prefix="$exec_prefix"
13839
  exec_prefix="$acl_final_exec_prefix"
13840
 
13841
    eval additional_includedir=\"$includedir\"
13842
    eval additional_libdir=\"$libdir\"
13843
 
13844
  exec_prefix="$acl_save_exec_prefix"
13845
  prefix="$acl_save_prefix"
13846
 
13847
 
13848
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
13849
if test "${with_libiconv_prefix+set}" = set; then
13850
  withval="$with_libiconv_prefix"
13851
 
13852
    if test "X$withval" = "Xno"; then
13853
      use_additional=no
13854
    else
13855
      if test "X$withval" = "X"; then
13856
 
13857
  acl_save_prefix="$prefix"
13858
  prefix="$acl_final_prefix"
13859
  acl_save_exec_prefix="$exec_prefix"
13860
  exec_prefix="$acl_final_exec_prefix"
13861
 
13862
          eval additional_includedir=\"$includedir\"
13863
          eval additional_libdir=\"$libdir\"
13864
 
13865
  exec_prefix="$acl_save_exec_prefix"
13866
  prefix="$acl_save_prefix"
13867
 
13868
      else
13869
        additional_includedir="$withval/include"
13870
        additional_libdir="$withval/lib"
13871
      fi
13872
    fi
13873
 
13874
fi;
13875
      LIBICONV=
13876
  LTLIBICONV=
13877
  INCICONV=
13878
  rpathdirs=
13879
  ltrpathdirs=
13880
  names_already_handled=
13881
  names_next_round='iconv '
13882
  while test -n "$names_next_round"; do
13883
    names_this_round="$names_next_round"
13884
    names_next_round=
13885
    for name in $names_this_round; do
13886
      already_handled=
13887
      for n in $names_already_handled; do
13888
        if test "$n" = "$name"; then
13889
          already_handled=yes
13890
          break
13891
        fi
13892
      done
13893
      if test -z "$already_handled"; then
13894
        names_already_handled="$names_already_handled $name"
13895
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13896
        eval value=\"\$HAVE_LIB$uppername\"
13897
        if test -n "$value"; then
13898
          if test "$value" = yes; then
13899
            eval value=\"\$LIB$uppername\"
13900
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13901
            eval value=\"\$LTLIB$uppername\"
13902
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13903
          else
13904
                                    :
13905
          fi
13906
        else
13907
                              found_dir=
13908
          found_la=
13909
          found_so=
13910
          found_a=
13911
          if test $use_additional = yes; then
13912
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13913
              found_dir="$additional_libdir"
13914
              found_so="$additional_libdir/lib$name.$shlibext"
13915
              if test -f "$additional_libdir/lib$name.la"; then
13916
                found_la="$additional_libdir/lib$name.la"
13917
              fi
13918
            else
13919
              if test -f "$additional_libdir/lib$name.$libext"; then
13920
                found_dir="$additional_libdir"
13921
                found_a="$additional_libdir/lib$name.$libext"
13922
                if test -f "$additional_libdir/lib$name.la"; then
13923
                  found_la="$additional_libdir/lib$name.la"
13924
                fi
13925
              fi
13926
            fi
13927
          fi
13928
          if test "X$found_dir" = "X"; then
13929
            for x in $LDFLAGS $LTLIBICONV; do
13930
 
13931
  acl_save_prefix="$prefix"
13932
  prefix="$acl_final_prefix"
13933
  acl_save_exec_prefix="$exec_prefix"
13934
  exec_prefix="$acl_final_exec_prefix"
13935
  eval x=\"$x\"
13936
  exec_prefix="$acl_save_exec_prefix"
13937
  prefix="$acl_save_prefix"
13938
 
13939
              case "$x" in
13940
                -L*)
13941
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
13942
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13943
                    found_dir="$dir"
13944
                    found_so="$dir/lib$name.$shlibext"
13945
                    if test -f "$dir/lib$name.la"; then
13946
                      found_la="$dir/lib$name.la"
13947
                    fi
13948
                  else
13949
                    if test -f "$dir/lib$name.$libext"; then
13950
                      found_dir="$dir"
13951
                      found_a="$dir/lib$name.$libext"
13952
                      if test -f "$dir/lib$name.la"; then
13953
                        found_la="$dir/lib$name.la"
13954
                      fi
13955
                    fi
13956
                  fi
13957
                  ;;
13958
              esac
13959
              if test "X$found_dir" != "X"; then
13960
                break
13961
              fi
13962
            done
13963
          fi
13964
          if test "X$found_dir" != "X"; then
13965
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13966
            if test "X$found_so" != "X"; then
13967
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13968
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13969
              else
13970
                                                                                haveit=
13971
                for x in $ltrpathdirs; do
13972
                  if test "X$x" = "X$found_dir"; then
13973
                    haveit=yes
13974
                    break
13975
                  fi
13976
                done
13977
                if test -z "$haveit"; then
13978
                  ltrpathdirs="$ltrpathdirs $found_dir"
13979
                fi
13980
                                if test "$hardcode_direct" = yes; then
13981
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13982
                else
13983
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13984
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13985
                                                            haveit=
13986
                    for x in $rpathdirs; do
13987
                      if test "X$x" = "X$found_dir"; then
13988
                        haveit=yes
13989
                        break
13990
                      fi
13991
                    done
13992
                    if test -z "$haveit"; then
13993
                      rpathdirs="$rpathdirs $found_dir"
13994
                    fi
13995
                  else
13996
                                                                                haveit=
13997
                    for x in $LDFLAGS $LIBICONV; do
13998
 
13999
  acl_save_prefix="$prefix"
14000
  prefix="$acl_final_prefix"
14001
  acl_save_exec_prefix="$exec_prefix"
14002
  exec_prefix="$acl_final_exec_prefix"
14003
  eval x=\"$x\"
14004
  exec_prefix="$acl_save_exec_prefix"
14005
  prefix="$acl_save_prefix"
14006
 
14007
                      if test "X$x" = "X-L$found_dir"; then
14008
                        haveit=yes
14009
                        break
14010
                      fi
14011
                    done
14012
                    if test -z "$haveit"; then
14013
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14014
                    fi
14015
                    if test "$hardcode_minus_L" != no; then
14016
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14017
                    else
14018
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14019
                    fi
14020
                  fi
14021
                fi
14022
              fi
14023
            else
14024
              if test "X$found_a" != "X"; then
14025
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14026
              else
14027
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14028
              fi
14029
            fi
14030
                        additional_includedir=
14031
            case "$found_dir" in
14032
              */lib | */lib/)
14033
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14034
                additional_includedir="$basedir/include"
14035
                ;;
14036
            esac
14037
            if test "X$additional_includedir" != "X"; then
14038
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14039
                haveit=
14040
                if test "X$additional_includedir" = "X/usr/local/include"; then
14041
                  if test -n "$GCC"; then
14042
                    case $host_os in
14043
                      linux*) haveit=yes;;
14044
                    esac
14045
                  fi
14046
                fi
14047
                if test -z "$haveit"; then
14048
                  for x in $CPPFLAGS $INCICONV; do
14049
 
14050
  acl_save_prefix="$prefix"
14051
  prefix="$acl_final_prefix"
14052
  acl_save_exec_prefix="$exec_prefix"
14053
  exec_prefix="$acl_final_exec_prefix"
14054
  eval x=\"$x\"
14055
  exec_prefix="$acl_save_exec_prefix"
14056
  prefix="$acl_save_prefix"
14057
 
14058
                    if test "X$x" = "X-I$additional_includedir"; then
14059
                      haveit=yes
14060
                      break
14061
                    fi
14062
                  done
14063
                  if test -z "$haveit"; then
14064
                    if test -d "$additional_includedir"; then
14065
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14066
                    fi
14067
                  fi
14068
                fi
14069
              fi
14070
            fi
14071
                        if test -n "$found_la"; then
14072
                                                        save_libdir="$libdir"
14073
              case "$found_la" in
14074
                */* | *\\*) . "$found_la" ;;
14075
                *) . "./$found_la" ;;
14076
              esac
14077
              libdir="$save_libdir"
14078
                            for dep in $dependency_libs; do
14079
                case "$dep" in
14080
                  -L*)
14081
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14082
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14083
                      haveit=
14084
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14085
                        if test -n "$GCC"; then
14086
                          case $host_os in
14087
                            linux*) haveit=yes;;
14088
                          esac
14089
                        fi
14090
                      fi
14091
                      if test -z "$haveit"; then
14092
                        haveit=
14093
                        for x in $LDFLAGS $LIBICONV; do
14094
 
14095
  acl_save_prefix="$prefix"
14096
  prefix="$acl_final_prefix"
14097
  acl_save_exec_prefix="$exec_prefix"
14098
  exec_prefix="$acl_final_exec_prefix"
14099
  eval x=\"$x\"
14100
  exec_prefix="$acl_save_exec_prefix"
14101
  prefix="$acl_save_prefix"
14102
 
14103
                          if test "X$x" = "X-L$additional_libdir"; then
14104
                            haveit=yes
14105
                            break
14106
                          fi
14107
                        done
14108
                        if test -z "$haveit"; then
14109
                          if test -d "$additional_libdir"; then
14110
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14111
                          fi
14112
                        fi
14113
                        haveit=
14114
                        for x in $LDFLAGS $LTLIBICONV; do
14115
 
14116
  acl_save_prefix="$prefix"
14117
  prefix="$acl_final_prefix"
14118
  acl_save_exec_prefix="$exec_prefix"
14119
  exec_prefix="$acl_final_exec_prefix"
14120
  eval x=\"$x\"
14121
  exec_prefix="$acl_save_exec_prefix"
14122
  prefix="$acl_save_prefix"
14123
 
14124
                          if test "X$x" = "X-L$additional_libdir"; then
14125
                            haveit=yes
14126
                            break
14127
                          fi
14128
                        done
14129
                        if test -z "$haveit"; then
14130
                          if test -d "$additional_libdir"; then
14131
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14132
                          fi
14133
                        fi
14134
                      fi
14135
                    fi
14136
                    ;;
14137
                  -R*)
14138
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14139
                    if test "$enable_rpath" != no; then
14140
                                                                  haveit=
14141
                      for x in $rpathdirs; do
14142
                        if test "X$x" = "X$dir"; then
14143
                          haveit=yes
14144
                          break
14145
                        fi
14146
                      done
14147
                      if test -z "$haveit"; then
14148
                        rpathdirs="$rpathdirs $dir"
14149
                      fi
14150
                                                                  haveit=
14151
                      for x in $ltrpathdirs; do
14152
                        if test "X$x" = "X$dir"; then
14153
                          haveit=yes
14154
                          break
14155
                        fi
14156
                      done
14157
                      if test -z "$haveit"; then
14158
                        ltrpathdirs="$ltrpathdirs $dir"
14159
                      fi
14160
                    fi
14161
                    ;;
14162
                  -l*)
14163
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14164
                    ;;
14165
                  *.la)
14166
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14167
                    ;;
14168
                  *)
14169
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14170
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14171
                    ;;
14172
                esac
14173
              done
14174
            fi
14175
          else
14176
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14177
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14178
          fi
14179
        fi
14180
      fi
14181
    done
14182
  done
14183
  if test "X$rpathdirs" != "X"; then
14184
    if test -n "$hardcode_libdir_separator"; then
14185
                        alldirs=
14186
      for found_dir in $rpathdirs; do
14187
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14188
      done
14189
            acl_save_libdir="$libdir"
14190
      libdir="$alldirs"
14191
      eval flag=\"$hardcode_libdir_flag_spec\"
14192
      libdir="$acl_save_libdir"
14193
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14194
    else
14195
            for found_dir in $rpathdirs; do
14196
        acl_save_libdir="$libdir"
14197
        libdir="$found_dir"
14198
        eval flag=\"$hardcode_libdir_flag_spec\"
14199
        libdir="$acl_save_libdir"
14200
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14201
      done
14202
    fi
14203
  fi
14204
  if test "X$ltrpathdirs" != "X"; then
14205
            for found_dir in $ltrpathdirs; do
14206
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14207
    done
14208
  fi
14209
 
14210
 
14211
 
14212
 
14213
 
14214
 
14215
 
14216
          am_save_CPPFLAGS="$CPPFLAGS"
14217
 
14218
  for element in $INCICONV; do
14219
    haveit=
14220
    for x in $CPPFLAGS; do
14221
 
14222
  acl_save_prefix="$prefix"
14223
  prefix="$acl_final_prefix"
14224
  acl_save_exec_prefix="$exec_prefix"
14225
  exec_prefix="$acl_final_exec_prefix"
14226
  eval x=\"$x\"
14227
  exec_prefix="$acl_save_exec_prefix"
14228
  prefix="$acl_save_prefix"
14229
 
14230
      if test "X$x" = "X$element"; then
14231
        haveit=yes
14232
        break
14233
      fi
14234
    done
14235
    if test -z "$haveit"; then
14236
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14237
    fi
14238
  done
14239
 
14240
 
14241
  echo "$as_me:$LINENO: checking for iconv" >&5
14242
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14243
if test "${am_cv_func_iconv+set}" = set; then
14244
  echo $ECHO_N "(cached) $ECHO_C" >&6
14245
else
14246
 
14247
    am_cv_func_iconv="no, consider installing GNU libiconv"
14248
    am_cv_lib_iconv=no
14249
    cat >conftest.$ac_ext <<_ACEOF
14250
/* confdefs.h.  */
14251
_ACEOF
14252
cat confdefs.h >>conftest.$ac_ext
14253
cat >>conftest.$ac_ext <<_ACEOF
14254
/* end confdefs.h.  */
14255
#include 
14256
#include 
14257
int
14258
main ()
14259
{
14260
iconv_t cd = iconv_open("","");
14261
       iconv(cd,NULL,NULL,NULL,NULL);
14262
       iconv_close(cd);
14263
  ;
14264
  return 0;
14265
}
14266
_ACEOF
14267
rm -f conftest.$ac_objext conftest$ac_exeext
14268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269
  (eval $ac_link) 2>conftest.er1
14270
  ac_status=$?
14271
  grep -v '^ *+' conftest.er1 >conftest.err
14272
  rm -f conftest.er1
14273
  cat conftest.err >&5
14274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275
  (exit $ac_status); } &&
14276
         { ac_try='test -z "$ac_c_werror_flag"
14277
                         || test ! -s conftest.err'
14278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279
  (eval $ac_try) 2>&5
14280
  ac_status=$?
14281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282
  (exit $ac_status); }; } &&
14283
         { ac_try='test -s conftest$ac_exeext'
14284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285
  (eval $ac_try) 2>&5
14286
  ac_status=$?
14287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288
  (exit $ac_status); }; }; then
14289
  am_cv_func_iconv=yes
14290
else
14291
  echo "$as_me: failed program was:" >&5
14292
sed 's/^/| /' conftest.$ac_ext >&5
14293
 
14294
fi
14295
rm -f conftest.err conftest.$ac_objext \
14296
      conftest$ac_exeext conftest.$ac_ext
14297
    if test "$am_cv_func_iconv" != yes; then
14298
      am_save_LIBS="$LIBS"
14299
      LIBS="$LIBS $LIBICONV"
14300
      cat >conftest.$ac_ext <<_ACEOF
14301
/* confdefs.h.  */
14302
_ACEOF
14303
cat confdefs.h >>conftest.$ac_ext
14304
cat >>conftest.$ac_ext <<_ACEOF
14305
/* end confdefs.h.  */
14306
#include 
14307
#include 
14308
int
14309
main ()
14310
{
14311
iconv_t cd = iconv_open("","");
14312
         iconv(cd,NULL,NULL,NULL,NULL);
14313
         iconv_close(cd);
14314
  ;
14315
  return 0;
14316
}
14317
_ACEOF
14318
rm -f conftest.$ac_objext conftest$ac_exeext
14319
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14320
  (eval $ac_link) 2>conftest.er1
14321
  ac_status=$?
14322
  grep -v '^ *+' conftest.er1 >conftest.err
14323
  rm -f conftest.er1
14324
  cat conftest.err >&5
14325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326
  (exit $ac_status); } &&
14327
         { ac_try='test -z "$ac_c_werror_flag"
14328
                         || test ! -s conftest.err'
14329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330
  (eval $ac_try) 2>&5
14331
  ac_status=$?
14332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333
  (exit $ac_status); }; } &&
14334
         { ac_try='test -s conftest$ac_exeext'
14335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336
  (eval $ac_try) 2>&5
14337
  ac_status=$?
14338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339
  (exit $ac_status); }; }; then
14340
  am_cv_lib_iconv=yes
14341
        am_cv_func_iconv=yes
14342
else
14343
  echo "$as_me: failed program was:" >&5
14344
sed 's/^/| /' conftest.$ac_ext >&5
14345
 
14346
fi
14347
rm -f conftest.err conftest.$ac_objext \
14348
      conftest$ac_exeext conftest.$ac_ext
14349
      LIBS="$am_save_LIBS"
14350
    fi
14351
 
14352
fi
14353
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14354
echo "${ECHO_T}$am_cv_func_iconv" >&6
14355
  if test "$am_cv_func_iconv" = yes; then
14356
 
14357
cat >>confdefs.h <<\_ACEOF
14358
#define HAVE_ICONV 1
14359
_ACEOF
14360
 
14361
  fi
14362
  if test "$am_cv_lib_iconv" = yes; then
14363
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14364
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14365
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
14366
echo "${ECHO_T}$LIBICONV" >&6
14367
  else
14368
            CPPFLAGS="$am_save_CPPFLAGS"
14369
    LIBICONV=
14370
    LTLIBICONV=
14371
  fi
14372
 
14373
 
14374
 
14375
  if test "$am_cv_func_iconv" = yes; then
14376
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
14377
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14378
    if test "${am_cv_proto_iconv+set}" = set; then
14379
  echo $ECHO_N "(cached) $ECHO_C" >&6
14380
else
14381
 
14382
      cat >conftest.$ac_ext <<_ACEOF
14383
/* confdefs.h.  */
14384
_ACEOF
14385
cat confdefs.h >>conftest.$ac_ext
14386
cat >>conftest.$ac_ext <<_ACEOF
14387
/* end confdefs.h.  */
14388
 
14389
#include 
14390
#include 
14391
extern
14392
#ifdef __cplusplus
14393
"C"
14394
#endif
14395
#if defined(__STDC__) || defined(__cplusplus)
14396
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14397
#else
14398
size_t iconv();
14399
#endif
14400
 
14401
int
14402
main ()
14403
{
14404
 
14405
  ;
14406
  return 0;
14407
}
14408
_ACEOF
14409
rm -f conftest.$ac_objext
14410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411
  (eval $ac_compile) 2>conftest.er1
14412
  ac_status=$?
14413
  grep -v '^ *+' conftest.er1 >conftest.err
14414
  rm -f conftest.er1
14415
  cat conftest.err >&5
14416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417
  (exit $ac_status); } &&
14418
         { ac_try='test -z "$ac_c_werror_flag"
14419
                         || test ! -s conftest.err'
14420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421
  (eval $ac_try) 2>&5
14422
  ac_status=$?
14423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424
  (exit $ac_status); }; } &&
14425
         { ac_try='test -s conftest.$ac_objext'
14426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427
  (eval $ac_try) 2>&5
14428
  ac_status=$?
14429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430
  (exit $ac_status); }; }; then
14431
  am_cv_proto_iconv_arg1=""
14432
else
14433
  echo "$as_me: failed program was:" >&5
14434
sed 's/^/| /' conftest.$ac_ext >&5
14435
 
14436
am_cv_proto_iconv_arg1="const"
14437
fi
14438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14439
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14440
fi
14441
 
14442
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14443
    echo "$as_me:$LINENO: result: ${ac_t:-
14444
         }$am_cv_proto_iconv" >&5
14445
echo "${ECHO_T}${ac_t:-
14446
         }$am_cv_proto_iconv" >&6
14447
 
14448
cat >>confdefs.h <<_ACEOF
14449
#define ICONV_CONST $am_cv_proto_iconv_arg1
14450
_ACEOF
14451
 
14452
  fi
14453
 
14454
 
14455
all_targets=false
14456
BUILD_NLMCONV=
14457
NLMCONV_DEFS=
14458
BUILD_SRCONV=
14459
BUILD_DLLTOOL=
14460
DLLTOOL_DEFS=
14461
DLLTOOL_DEFAULT=
14462
BUILD_WINDRES=
14463
BUILD_WINDMC=
14464
BUILD_DLLWRAP=
14465
BUILD_MISC=
14466
BUILD_INSTALL_MISC=
14467
OBJDUMP_DEFS=
14468
 
14469
for targ in $target $canon_targets
14470
do
14471
    if test "x$targ" = "xall"; then
14472
        all_targets=true
14473
        BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14474
        BUILD_SRCONV='$(SRCONV_PROG)'
14475
        NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14476
        BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14477
        BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14478
        BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14479
        BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14480
        if test -z "$DLLTOOL_DEFAULT"; then
14481
          DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14482
        fi
14483
        DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14484
        BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14485
    else
14486
        case $targ in
14487
        i[3-7]86*-*-netware*)
14488
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14489
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14490
          ;;
14491
        alpha*-*-netware*)
14492
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14493
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14494
          ;;
14495
        powerpc*-*-netware*)
14496
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14497
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14498
          ;;
14499
        sparc*-*-netware*)
14500
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14501
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14502
          ;;
14503
        esac
14504
        case $targ in
14505
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14506
        esac
14507
        case $targ in
14508
        arm-epoc-pe*)
14509
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14510
          if test -z "$DLLTOOL_DEFAULT"; then
14511
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14512
          fi
14513
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14514
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14515
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14516
          ;;
14517
        arm-wince-pe* | arm-*-wince)
14518
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14519
          if test -z "$DLLTOOL_DEFAULT"; then
14520
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14521
          fi
14522
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14523
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14524
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14525
          ;;
14526
        arm-*-pe*)
14527
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14528
          if test -z "$DLLTOOL_DEFAULT"; then
14529
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14530
          fi
14531
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14532
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14533
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14534
          ;;
14535
        thumb-*-pe*)
14536
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14537
          if test -z "$DLLTOOL_DEFAULT"; then
14538
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14539
          fi
14540
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14541
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14542
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14543
          ;;
14544
        x86_64-*-mingw*)
14545
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14546
          if test -z "$DLLTOOL_DEFAULT"; then
14547
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14548
          fi
14549
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14550
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14551
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14552
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14553
          ;;
14554
        i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14555
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14556
          if test -z "$DLLTOOL_DEFAULT"; then
14557
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14558
          fi
14559
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14560
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14561
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14562
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14563
          ;;
14564
        i[3-7]86-*-interix)
14565
          BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14566
          if test -z "$DLLTOOL_DEFAULT"; then
14567
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14568
          fi
14569
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14570
          ;;
14571
        powerpc*-aix5.[01])
14572
          ;;
14573
        powerpc*-aix5.*)
14574
          OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14575
          ;;
14576
        powerpc*-*-pe* | powerpc*-*-cygwin*)
14577
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14578
          if test -z "$DLLTOOL_DEFAULT"; then
14579
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14580
          fi
14581
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14582
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14583
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14584
          ;;
14585
        powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14586
          BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14587
          ;;
14588
        sh*-*-pe)
14589
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14590
          if test -z "$DLLTOOL_DEFAULT"; then
14591
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14592
          fi
14593
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14594
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14595
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14596
          ;;
14597
        spu-*-*)
14598
          BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14599
          ;;
14600
        mips*-*-pe)
14601
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14602
          if test -z "$DLLTOOL_DEFAULT"; then
14603
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14604
          fi
14605
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14606
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14607
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14608
          ;;
14609
        mcore-*-pe)
14610
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14611
          if test -z "$DLLTOOL_DEFAULT"; then
14612
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14613
          fi
14614
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14615
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14616
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14617
          ;;
14618
        mcore-*-elf)
14619
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14620
          if test -z "$DLLTOOL_DEFAULT"; then
14621
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14622
          fi
14623
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14624
          ;;
14625
        mep-*)
14626
          OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14627
          ;;
14628
        esac
14629
    fi
14630
done
14631
 
14632
DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14633
 
14634
if test "${with_windres+set}" = set; then
14635
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14636
fi
14637
 
14638
if test "${with_windmc+set}" = set; then
14639
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14640
fi
14641
 
14642
 
14643
 
14644
 
14645
 
14646
 
14647
 
14648
 
14649
 
14650
 
14651
 
14652
 
14653
 
14654
 
14655
cat >>confdefs.h <<_ACEOF
14656
#define TARGET "${target}"
14657
_ACEOF
14658
 
14659
 
14660
targ=$target
14661
. $srcdir/../bfd/config.bfd
14662
if test "x$targ_underscore" = "xyes"; then
14663
    UNDERSCORE=1
14664
else
14665
    UNDERSCORE=0
14666
fi
14667
 
14668
cat >>confdefs.h <<_ACEOF
14669
#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14670
_ACEOF
14671
 
14672
 
14673
# Emulation
14674
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
14675
do
14676
  # Canonicalize the secondary target names.
14677
 result=`$ac_config_sub $targ_alias 2>/dev/null`
14678
 if test -n "$result"; then
14679
   targ=$result
14680
 else
14681
   targ=$targ_alias
14682
 fi
14683
 
14684
 . ${srcdir}/configure.tgt
14685
 
14686
  EMULATION=$targ_emul
14687
  EMULATION_VECTOR=$targ_emul_vector
14688
done
14689
 
14690
 
14691
 
14692
 
14693
# Required for html and install-html
14694
 
14695
 
14696
 
14697
 
14698
                              ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14699
cat >confcache <<\_ACEOF
14700
# This file is a shell script that caches the results of configure
14701
# tests run on this system so they can be shared between configure
14702
# scripts and configure runs, see configure's option --config-cache.
14703
# It is not useful on other systems.  If it contains results you don't
14704
# want to keep, you may remove or edit it.
14705
#
14706
# config.status only pays attention to the cache file if you give it
14707
# the --recheck option to rerun configure.
14708
#
14709
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14710
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14711
# following values.
14712
 
14713
_ACEOF
14714
 
14715
# The following way of writing the cache mishandles newlines in values,
14716
# but we know of no workaround that is simple, portable, and efficient.
14717
# So, don't put newlines in cache variables' values.
14718
# Ultrix sh set writes to stderr and can't be redirected directly,
14719
# and sets the high bit in the cache file unless we assign to the vars.
14720
{
14721
  (set) 2>&1 |
14722
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14723
    *ac_space=\ *)
14724
      # `set' does not quote correctly, so add quotes (double-quote
14725
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14726
      sed -n \
14727
        "s/'/'\\\\''/g;
14728
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14729
      ;;
14730
    *)
14731
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14732
      sed -n \
14733
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14734
      ;;
14735
    esac;
14736
} |
14737
  sed '
14738
     t clear
14739
     : clear
14740
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14741
     t end
14742
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14743
     : end' >>confcache
14744
if diff $cache_file confcache >/dev/null 2>&1; then :; else
14745
  if test -w $cache_file; then
14746
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14747
    cat confcache >$cache_file
14748
  else
14749
    echo "not updating unwritable cache $cache_file"
14750
  fi
14751
fi
14752
rm -f confcache
14753
 
14754
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14755
# Let make expand exec_prefix.
14756
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14757
 
14758
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14759
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14760
# trailing colons and then remove the whole line if VPATH becomes empty
14761
# (actually we leave an empty line to preserve line numbers).
14762
if test "x$srcdir" = x.; then
14763
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14764
s/:*\$(srcdir):*/:/;
14765
s/:*\${srcdir}:*/:/;
14766
s/:*@srcdir@:*/:/;
14767
s/^\([^=]*=[     ]*\):*/\1/;
14768
s/:*$//;
14769
s/^[^=]*=[       ]*$//;
14770
}'
14771
fi
14772
 
14773
DEFS=-DHAVE_CONFIG_H
14774
 
14775
ac_libobjs=
14776
ac_ltlibobjs=
14777
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14778
  # 1. Remove the extension, and $U if already installed.
14779
  ac_i=`echo "$ac_i" |
14780
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14781
  # 2. Add them.
14782
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14783
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14784
done
14785
LIBOBJS=$ac_libobjs
14786
 
14787
LTLIBOBJS=$ac_ltlibobjs
14788
 
14789
 
14790
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14791
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14792
Usually this means the macro was only invoked conditionally." >&5
14793
echo "$as_me: error: conditional \"AMDEP\" was never defined.
14794
Usually this means the macro was only invoked conditionally." >&2;}
14795
   { (exit 1); exit 1; }; }
14796
fi
14797
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14798
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14799
Usually this means the macro was only invoked conditionally." >&5
14800
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14801
Usually this means the macro was only invoked conditionally." >&2;}
14802
   { (exit 1); exit 1; }; }
14803
fi
14804
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14805
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14806
Usually this means the macro was only invoked conditionally." >&5
14807
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14808
Usually this means the macro was only invoked conditionally." >&2;}
14809
   { (exit 1); exit 1; }; }
14810
fi
14811
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14812
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14813
Usually this means the macro was only invoked conditionally." >&5
14814
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14815
Usually this means the macro was only invoked conditionally." >&2;}
14816
   { (exit 1); exit 1; }; }
14817
fi
14818
 
14819
: ${CONFIG_STATUS=./config.status}
14820
ac_clean_files_save=$ac_clean_files
14821
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14822
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14823
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14824
cat >$CONFIG_STATUS <<_ACEOF
14825
#! $SHELL
14826
# Generated by $as_me.
14827
# Run this file to recreate the current configuration.
14828
# Compiler output produced by configure, useful for debugging
14829
# configure, is in config.log if it exists.
14830
 
14831
debug=false
14832
ac_cs_recheck=false
14833
ac_cs_silent=false
14834
SHELL=\${CONFIG_SHELL-$SHELL}
14835
_ACEOF
14836
 
14837
cat >>$CONFIG_STATUS <<\_ACEOF
14838
## --------------------- ##
14839
## M4sh Initialization.  ##
14840
## --------------------- ##
14841
 
14842
# Be Bourne compatible
14843
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14844
  emulate sh
14845
  NULLCMD=:
14846
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14847
  # is contrary to our usage.  Disable this feature.
14848
  alias -g '${1+"$@"}'='"$@"'
14849
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14850
  set -o posix
14851
fi
14852
DUALCASE=1; export DUALCASE # for MKS sh
14853
 
14854
# Support unset when possible.
14855
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14856
  as_unset=unset
14857
else
14858
  as_unset=false
14859
fi
14860
 
14861
 
14862
# Work around bugs in pre-3.0 UWIN ksh.
14863
$as_unset ENV MAIL MAILPATH
14864
PS1='$ '
14865
PS2='> '
14866
PS4='+ '
14867
 
14868
# NLS nuisances.
14869
for as_var in \
14870
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14871
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14872
  LC_TELEPHONE LC_TIME
14873
do
14874
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14875
    eval $as_var=C; export $as_var
14876
  else
14877
    $as_unset $as_var
14878
  fi
14879
done
14880
 
14881
# Required to use basename.
14882
if expr a : '\(a\)' >/dev/null 2>&1; then
14883
  as_expr=expr
14884
else
14885
  as_expr=false
14886
fi
14887
 
14888
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14889
  as_basename=basename
14890
else
14891
  as_basename=false
14892
fi
14893
 
14894
 
14895
# Name of the executable.
14896
as_me=`$as_basename "$0" ||
14897
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14898
         X"$0" : 'X\(//\)$' \| \
14899
         X"$0" : 'X\(/\)$' \| \
14900
         .     : '\(.\)' 2>/dev/null ||
14901
echo X/"$0" |
14902
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14903
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14904
          /^X\/\(\/\).*/{ s//\1/; q; }
14905
          s/.*/./; q'`
14906
 
14907
 
14908
# PATH needs CR, and LINENO needs CR and PATH.
14909
# Avoid depending upon Character Ranges.
14910
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14911
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14912
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14913
as_cr_digits='0123456789'
14914
as_cr_alnum=$as_cr_Letters$as_cr_digits
14915
 
14916
# The user is always right.
14917
if test "${PATH_SEPARATOR+set}" != set; then
14918
  echo "#! /bin/sh" >conf$$.sh
14919
  echo  "exit 0"   >>conf$$.sh
14920
  chmod +x conf$$.sh
14921
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14922
    PATH_SEPARATOR=';'
14923
  else
14924
    PATH_SEPARATOR=:
14925
  fi
14926
  rm -f conf$$.sh
14927
fi
14928
 
14929
 
14930
  as_lineno_1=$LINENO
14931
  as_lineno_2=$LINENO
14932
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14933
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14934
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14935
  # Find who we are.  Look in the path if we contain no path at all
14936
  # relative or not.
14937
  case $0 in
14938
    *[\\/]* ) as_myself=$0 ;;
14939
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940
for as_dir in $PATH
14941
do
14942
  IFS=$as_save_IFS
14943
  test -z "$as_dir" && as_dir=.
14944
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14945
done
14946
 
14947
       ;;
14948
  esac
14949
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14950
  # in which case we are not to be found in the path.
14951
  if test "x$as_myself" = x; then
14952
    as_myself=$0
14953
  fi
14954
  if test ! -f "$as_myself"; then
14955
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14956
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14957
   { (exit 1); exit 1; }; }
14958
  fi
14959
  case $CONFIG_SHELL in
14960
  '')
14961
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14962
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14963
do
14964
  IFS=$as_save_IFS
14965
  test -z "$as_dir" && as_dir=.
14966
  for as_base in sh bash ksh sh5; do
14967
         case $as_dir in
14968
         /*)
14969
           if ("$as_dir/$as_base" -c '
14970
  as_lineno_1=$LINENO
14971
  as_lineno_2=$LINENO
14972
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14973
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14974
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14975
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14976
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14977
             CONFIG_SHELL=$as_dir/$as_base
14978
             export CONFIG_SHELL
14979
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14980
           fi;;
14981
         esac
14982
       done
14983
done
14984
;;
14985
  esac
14986
 
14987
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14988
  # uniformly replaced by the line number.  The first 'sed' inserts a
14989
  # line-number line before each line; the second 'sed' does the real
14990
  # work.  The second script uses 'N' to pair each line-number line
14991
  # with the numbered line, and appends trailing '-' during
14992
  # substitution so that $LINENO is not a special case at line end.
14993
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14994
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14995
  sed '=' <$as_myself |
14996
    sed '
14997
      N
14998
      s,$,-,
14999
      : loop
15000
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15001
      t loop
15002
      s,-$,,
15003
      s,^['$as_cr_digits']*\n,,
15004
    ' >$as_me.lineno &&
15005
  chmod +x $as_me.lineno ||
15006
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15007
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15008
   { (exit 1); exit 1; }; }
15009
 
15010
  # Don't try to exec as it changes $[0], causing all sort of problems
15011
  # (the dirname of $[0] is not the place where we might find the
15012
  # original and so on.  Autoconf is especially sensible to this).
15013
  . ./$as_me.lineno
15014
  # Exit status is that of the last command.
15015
  exit
15016
}
15017
 
15018
 
15019
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15020
  *c*,-n*) ECHO_N= ECHO_C='
15021
' ECHO_T='      ' ;;
15022
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15023
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15024
esac
15025
 
15026
if expr a : '\(a\)' >/dev/null 2>&1; then
15027
  as_expr=expr
15028
else
15029
  as_expr=false
15030
fi
15031
 
15032
rm -f conf$$ conf$$.exe conf$$.file
15033
echo >conf$$.file
15034
if ln -s conf$$.file conf$$ 2>/dev/null; then
15035
  # We could just check for DJGPP; but this test a) works b) is more generic
15036
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15037
  if test -f conf$$.exe; then
15038
    # Don't use ln at all; we don't have any links
15039
    as_ln_s='cp -p'
15040
  else
15041
    as_ln_s='ln -s'
15042
  fi
15043
elif ln conf$$.file conf$$ 2>/dev/null; then
15044
  as_ln_s=ln
15045
else
15046
  as_ln_s='cp -p'
15047
fi
15048
rm -f conf$$ conf$$.exe conf$$.file
15049
 
15050
if mkdir -p . 2>/dev/null; then
15051
  as_mkdir_p=:
15052
else
15053
  test -d ./-p && rmdir ./-p
15054
  as_mkdir_p=false
15055
fi
15056
 
15057
as_executable_p="test -f"
15058
 
15059
# Sed expression to map a string onto a valid CPP name.
15060
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15061
 
15062
# Sed expression to map a string onto a valid variable name.
15063
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15064
 
15065
 
15066
# IFS
15067
# We need space, tab and new line, in precisely that order.
15068
as_nl='
15069
'
15070
IFS="   $as_nl"
15071
 
15072
# CDPATH.
15073
$as_unset CDPATH
15074
 
15075
exec 6>&1
15076
 
15077
# Open the log real soon, to keep \$[0] and so on meaningful, and to
15078
# report actual input values of CONFIG_FILES etc. instead of their
15079
# values after options handling.  Logging --version etc. is OK.
15080
exec 5>>config.log
15081
{
15082
  echo
15083
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15084
## Running $as_me. ##
15085
_ASBOX
15086
} >&5
15087
cat >&5 <<_CSEOF
15088
 
15089
This file was extended by $as_me, which was
15090
generated by GNU Autoconf 2.59.  Invocation command line was
15091
 
15092
  CONFIG_FILES    = $CONFIG_FILES
15093
  CONFIG_HEADERS  = $CONFIG_HEADERS
15094
  CONFIG_LINKS    = $CONFIG_LINKS
15095
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15096
  $ $0 $@
15097
 
15098
_CSEOF
15099
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15100
echo >&5
15101
_ACEOF
15102
 
15103
# Files that config.status was made for.
15104
if test -n "$ac_config_files"; then
15105
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15106
fi
15107
 
15108
if test -n "$ac_config_headers"; then
15109
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15110
fi
15111
 
15112
if test -n "$ac_config_links"; then
15113
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15114
fi
15115
 
15116
if test -n "$ac_config_commands"; then
15117
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15118
fi
15119
 
15120
cat >>$CONFIG_STATUS <<\_ACEOF
15121
 
15122
ac_cs_usage="\
15123
\`$as_me' instantiates files from templates according to the
15124
current configuration.
15125
 
15126
Usage: $0 [OPTIONS] [FILE]...
15127
 
15128
  -h, --help       print this help, then exit
15129
  -V, --version    print version number, then exit
15130
  -q, --quiet      do not print progress messages
15131
  -d, --debug      don't remove temporary files
15132
      --recheck    update $as_me by reconfiguring in the same conditions
15133
  --file=FILE[:TEMPLATE]
15134
                   instantiate the configuration file FILE
15135
  --header=FILE[:TEMPLATE]
15136
                   instantiate the configuration header FILE
15137
 
15138
Configuration files:
15139
$config_files
15140
 
15141
Configuration headers:
15142
$config_headers
15143
 
15144
Configuration commands:
15145
$config_commands
15146
 
15147
Report bugs to ."
15148
_ACEOF
15149
 
15150
cat >>$CONFIG_STATUS <<_ACEOF
15151
ac_cs_version="\\
15152
config.status
15153
configured by $0, generated by GNU Autoconf 2.59,
15154
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15155
 
15156
Copyright (C) 2003 Free Software Foundation, Inc.
15157
This config.status script is free software; the Free Software Foundation
15158
gives unlimited permission to copy, distribute and modify it."
15159
srcdir=$srcdir
15160
INSTALL="$INSTALL"
15161
_ACEOF
15162
 
15163
cat >>$CONFIG_STATUS <<\_ACEOF
15164
# If no file are specified by the user, then we need to provide default
15165
# value.  By we need to know if files were specified by the user.
15166
ac_need_defaults=:
15167
while test $# != 0
15168
do
15169
  case $1 in
15170
  --*=*)
15171
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15172
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15173
    ac_shift=:
15174
    ;;
15175
  -*)
15176
    ac_option=$1
15177
    ac_optarg=$2
15178
    ac_shift=shift
15179
    ;;
15180
  *) # This is not an option, so the user has probably given explicit
15181
     # arguments.
15182
     ac_option=$1
15183
     ac_need_defaults=false;;
15184
  esac
15185
 
15186
  case $ac_option in
15187
  # Handling of the options.
15188
_ACEOF
15189
cat >>$CONFIG_STATUS <<\_ACEOF
15190
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15191
    ac_cs_recheck=: ;;
15192
  --version | --vers* | -V )
15193
    echo "$ac_cs_version"; exit 0 ;;
15194
  --he | --h)
15195
    # Conflict between --help and --header
15196
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15197
Try \`$0 --help' for more information." >&5
15198
echo "$as_me: error: ambiguous option: $1
15199
Try \`$0 --help' for more information." >&2;}
15200
   { (exit 1); exit 1; }; };;
15201
  --help | --hel | -h )
15202
    echo "$ac_cs_usage"; exit 0 ;;
15203
  --debug | --d* | -d )
15204
    debug=: ;;
15205
  --file | --fil | --fi | --f )
15206
    $ac_shift
15207
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15208
    ac_need_defaults=false;;
15209
  --header | --heade | --head | --hea )
15210
    $ac_shift
15211
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15212
    ac_need_defaults=false;;
15213
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15214
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15215
    ac_cs_silent=: ;;
15216
 
15217
  # This is an error.
15218
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15219
Try \`$0 --help' for more information." >&5
15220
echo "$as_me: error: unrecognized option: $1
15221
Try \`$0 --help' for more information." >&2;}
15222
   { (exit 1); exit 1; }; } ;;
15223
 
15224
  *) ac_config_targets="$ac_config_targets $1" ;;
15225
 
15226
  esac
15227
  shift
15228
done
15229
 
15230
ac_configure_extra_args=
15231
 
15232
if $ac_cs_silent; then
15233
  exec 6>/dev/null
15234
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15235
fi
15236
 
15237
_ACEOF
15238
cat >>$CONFIG_STATUS <<_ACEOF
15239
if \$ac_cs_recheck; then
15240
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15241
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15242
fi
15243
 
15244
_ACEOF
15245
 
15246
cat >>$CONFIG_STATUS <<_ACEOF
15247
#
15248
# INIT-COMMANDS section.
15249
#
15250
 
15251
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15252
 
15253
 
15254
# The HP-UX ksh and POSIX shell print the target directory to stdout
15255
# if CDPATH is set.
15256
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15257
 
15258
sed_quote_subst='$sed_quote_subst'
15259
double_quote_subst='$double_quote_subst'
15260
delay_variable_subst='$delay_variable_subst'
15261
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15262
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15263
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15264
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15265
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15266
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15267
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15268
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15269
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15270
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15271
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15272
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15273
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15274
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15275
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15276
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15277
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15278
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15279
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15280
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15281
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15282
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15283
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15284
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15285
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15286
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15287
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15288
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15289
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15290
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15291
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15292
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15293
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15294
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15295
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15296
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15297
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15298
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15299
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15300
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15301
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15302
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15303
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15304
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"`'
15305
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15306
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15307
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15308
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15309
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15310
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15311
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15312
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15313
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15314
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15315
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15316
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15317
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15318
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15319
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15320
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15321
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15322
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15323
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15324
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15325
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15326
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15327
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15328
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15329
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15330
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15331
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15332
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15333
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15334
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15335
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15336
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15337
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15338
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15339
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15340
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15341
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15342
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15343
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15344
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15345
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15346
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15347
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15348
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15349
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15350
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15351
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15352
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15353
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15354
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15355
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15356
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15357
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15358
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15359
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15360
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15361
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15362
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15363
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15364
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15365
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15366
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15367
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15368
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15369
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15370
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15371
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15372
 
15373
LTCC='$LTCC'
15374
LTCFLAGS='$LTCFLAGS'
15375
compiler='$compiler_DEFAULT'
15376
 
15377
# Quote evaled strings.
15378
for var in SED \
15379
GREP \
15380
EGREP \
15381
FGREP \
15382
LD \
15383
NM \
15384
LN_S \
15385
lt_SP2NL \
15386
lt_NL2SP \
15387
reload_flag \
15388
deplibs_check_method \
15389
file_magic_cmd \
15390
AR \
15391
AR_FLAGS \
15392
STRIP \
15393
RANLIB \
15394
CC \
15395
CFLAGS \
15396
compiler \
15397
lt_cv_sys_global_symbol_pipe \
15398
lt_cv_sys_global_symbol_to_cdecl \
15399
lt_cv_sys_global_symbol_to_c_name_address \
15400
SHELL \
15401
ECHO \
15402
lt_prog_compiler_no_builtin_flag \
15403
lt_prog_compiler_wl \
15404
lt_prog_compiler_pic \
15405
lt_prog_compiler_static \
15406
lt_cv_prog_compiler_c_o \
15407
need_locks \
15408
shrext_cmds \
15409
export_dynamic_flag_spec \
15410
whole_archive_flag_spec \
15411
compiler_needs_object \
15412
with_gnu_ld \
15413
allow_undefined_flag \
15414
no_undefined_flag \
15415
hardcode_libdir_flag_spec \
15416
hardcode_libdir_flag_spec_ld \
15417
hardcode_libdir_separator \
15418
fix_srcfile_path \
15419
exclude_expsyms \
15420
include_expsyms \
15421
file_list_spec \
15422
variables_saved_for_relink \
15423
libname_spec \
15424
library_names_spec \
15425
soname_spec \
15426
finish_eval \
15427
old_striplib \
15428
striplib; do
15429
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15430
    *[\\\\\\\`\\"\\\$]*)
15431
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15432
      ;;
15433
    *)
15434
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15435
      ;;
15436
    esac
15437
done
15438
 
15439
# Double-quote double-evaled strings.
15440
for var in reload_cmds \
15441
old_postinstall_cmds \
15442
old_postuninstall_cmds \
15443
old_archive_cmds \
15444
extract_expsyms_cmds \
15445
old_archive_from_new_cmds \
15446
old_archive_from_expsyms_cmds \
15447
archive_cmds \
15448
archive_expsym_cmds \
15449
module_cmds \
15450
module_expsym_cmds \
15451
export_symbols_cmds \
15452
prelink_cmds \
15453
postinstall_cmds \
15454
postuninstall_cmds \
15455
finish_cmds \
15456
sys_lib_search_path_spec \
15457
sys_lib_dlsearch_path_spec; do
15458
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15459
    *[\\\\\\\`\\"\\\$]*)
15460
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15461
      ;;
15462
    *)
15463
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15464
      ;;
15465
    esac
15466
done
15467
 
15468
# Fix-up fallback echo if it was mangled by the above quoting rules.
15469
case \$lt_ECHO in
15470
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15471
  ;;
15472
esac
15473
 
15474
ac_aux_dir='$ac_aux_dir'
15475
xsi_shell='$xsi_shell'
15476
lt_shell_append='$lt_shell_append'
15477
 
15478
# See if we are running on zsh, and set the options which allow our
15479
# commands through without removal of \ escapes INIT.
15480
if test -n "\${ZSH_VERSION+set}" ; then
15481
   setopt NO_GLOB_SUBST
15482
fi
15483
 
15484
 
15485
    PACKAGE='$PACKAGE'
15486
    VERSION='$VERSION'
15487
    TIMESTAMP='$TIMESTAMP'
15488
    RM='$RM'
15489
    ofile='$ofile'
15490
 
15491
 
15492
 
15493
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15494
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15495
    # from automake.
15496
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15497
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
15498
    LINGUAS="${LINGUAS-%UNSET%}"
15499
 
15500
 
15501
_ACEOF
15502
 
15503
 
15504
 
15505
cat >>$CONFIG_STATUS <<\_ACEOF
15506
for ac_config_target in $ac_config_targets
15507
do
15508
  case "$ac_config_target" in
15509
  # Handling of arguments.
15510
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15511
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15512
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15513
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15514
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15515
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15516
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15517
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15518
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15519
   { (exit 1); exit 1; }; };;
15520
  esac
15521
done
15522
 
15523
# If the user did not use the arguments to specify the items to instantiate,
15524
# then the envvar interface is used.  Set only those that are not.
15525
# We use the long form for the default assignment because of an extremely
15526
# bizarre bug on SunOS 4.1.3.
15527
if $ac_need_defaults; then
15528
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15529
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15530
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15531
fi
15532
 
15533
# Have a temporary directory for convenience.  Make it in the build tree
15534
# simply because there is no reason to put it here, and in addition,
15535
# creating and moving files from /tmp can sometimes cause problems.
15536
# Create a temporary directory, and hook for its removal unless debugging.
15537
$debug ||
15538
{
15539
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15540
  trap '{ (exit 1); exit 1; }' 1 2 13 15
15541
}
15542
 
15543
# Create a (secure) tmp directory for tmp files.
15544
 
15545
{
15546
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15547
  test -n "$tmp" && test -d "$tmp"
15548
}  ||
15549
{
15550
  tmp=./confstat$$-$RANDOM
15551
  (umask 077 && mkdir $tmp)
15552
} ||
15553
{
15554
   echo "$me: cannot create a temporary directory in ." >&2
15555
   { (exit 1); exit 1; }
15556
}
15557
 
15558
_ACEOF
15559
 
15560
cat >>$CONFIG_STATUS <<_ACEOF
15561
 
15562
#
15563
# CONFIG_FILES section.
15564
#
15565
 
15566
# No need to generate the scripts if there are no CONFIG_FILES.
15567
# This happens for instance when ./config.status config.h
15568
if test -n "\$CONFIG_FILES"; then
15569
  # Protect against being on the right side of a sed subst in config.status.
15570
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15571
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15572
s,@SHELL@,$SHELL,;t t
15573
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15574
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15575
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15576
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15577
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15578
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15579
s,@exec_prefix@,$exec_prefix,;t t
15580
s,@prefix@,$prefix,;t t
15581
s,@program_transform_name@,$program_transform_name,;t t
15582
s,@bindir@,$bindir,;t t
15583
s,@sbindir@,$sbindir,;t t
15584
s,@libexecdir@,$libexecdir,;t t
15585
s,@datadir@,$datadir,;t t
15586
s,@sysconfdir@,$sysconfdir,;t t
15587
s,@sharedstatedir@,$sharedstatedir,;t t
15588
s,@localstatedir@,$localstatedir,;t t
15589
s,@libdir@,$libdir,;t t
15590
s,@includedir@,$includedir,;t t
15591
s,@oldincludedir@,$oldincludedir,;t t
15592
s,@infodir@,$infodir,;t t
15593
s,@mandir@,$mandir,;t t
15594
s,@build_alias@,$build_alias,;t t
15595
s,@host_alias@,$host_alias,;t t
15596
s,@target_alias@,$target_alias,;t t
15597
s,@DEFS@,$DEFS,;t t
15598
s,@ECHO_C@,$ECHO_C,;t t
15599
s,@ECHO_N@,$ECHO_N,;t t
15600
s,@ECHO_T@,$ECHO_T,;t t
15601
s,@LIBS@,$LIBS,;t t
15602
s,@build@,$build,;t t
15603
s,@build_cpu@,$build_cpu,;t t
15604
s,@build_vendor@,$build_vendor,;t t
15605
s,@build_os@,$build_os,;t t
15606
s,@host@,$host,;t t
15607
s,@host_cpu@,$host_cpu,;t t
15608
s,@host_vendor@,$host_vendor,;t t
15609
s,@host_os@,$host_os,;t t
15610
s,@target@,$target,;t t
15611
s,@target_cpu@,$target_cpu,;t t
15612
s,@target_vendor@,$target_vendor,;t t
15613
s,@target_os@,$target_os,;t t
15614
s,@CC@,$CC,;t t
15615
s,@CFLAGS@,$CFLAGS,;t t
15616
s,@LDFLAGS@,$LDFLAGS,;t t
15617
s,@CPPFLAGS@,$CPPFLAGS,;t t
15618
s,@ac_ct_CC@,$ac_ct_CC,;t t
15619
s,@EXEEXT@,$EXEEXT,;t t
15620
s,@OBJEXT@,$OBJEXT,;t t
15621
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15622
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15623
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15624
s,@CYGPATH_W@,$CYGPATH_W,;t t
15625
s,@PACKAGE@,$PACKAGE,;t t
15626
s,@VERSION@,$VERSION,;t t
15627
s,@ACLOCAL@,$ACLOCAL,;t t
15628
s,@AUTOCONF@,$AUTOCONF,;t t
15629
s,@AUTOMAKE@,$AUTOMAKE,;t t
15630
s,@AUTOHEADER@,$AUTOHEADER,;t t
15631
s,@MAKEINFO@,$MAKEINFO,;t t
15632
s,@install_sh@,$install_sh,;t t
15633
s,@STRIP@,$STRIP,;t t
15634
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15635
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15636
s,@mkdir_p@,$mkdir_p,;t t
15637
s,@AWK@,$AWK,;t t
15638
s,@SET_MAKE@,$SET_MAKE,;t t
15639
s,@am__leading_dot@,$am__leading_dot,;t t
15640
s,@AMTAR@,$AMTAR,;t t
15641
s,@am__tar@,$am__tar,;t t
15642
s,@am__untar@,$am__untar,;t t
15643
s,@DEPDIR@,$DEPDIR,;t t
15644
s,@am__include@,$am__include,;t t
15645
s,@am__quote@,$am__quote,;t t
15646
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15647
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15648
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15649
s,@CCDEPMODE@,$CCDEPMODE,;t t
15650
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15651
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15652
s,@LIBTOOL@,$LIBTOOL,;t t
15653
s,@SED@,$SED,;t t
15654
s,@EGREP@,$EGREP,;t t
15655
s,@FGREP@,$FGREP,;t t
15656
s,@GREP@,$GREP,;t t
15657
s,@LD@,$LD,;t t
15658
s,@DUMPBIN@,$DUMPBIN,;t t
15659
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15660
s,@NM@,$NM,;t t
15661
s,@LN_S@,$LN_S,;t t
15662
s,@AR@,$AR,;t t
15663
s,@ac_ct_AR@,$ac_ct_AR,;t t
15664
s,@RANLIB@,$RANLIB,;t t
15665
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15666
s,@lt_ECHO@,$lt_ECHO,;t t
15667
s,@CPP@,$CPP,;t t
15668
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15669
s,@NO_WERROR@,$NO_WERROR,;t t
15670
s,@YACC@,$YACC,;t t
15671
s,@LEX@,$LEX,;t t
15672
s,@LEXLIB@,$LEXLIB,;t t
15673
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15674
s,@USE_NLS@,$USE_NLS,;t t
15675
s,@LIBINTL@,$LIBINTL,;t t
15676
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15677
s,@INCINTL@,$INCINTL,;t t
15678
s,@XGETTEXT@,$XGETTEXT,;t t
15679
s,@GMSGFMT@,$GMSGFMT,;t t
15680
s,@POSUB@,$POSUB,;t t
15681
s,@CATALOGS@,$CATALOGS,;t t
15682
s,@DATADIRNAME@,$DATADIRNAME,;t t
15683
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15684
s,@GENCAT@,$GENCAT,;t t
15685
s,@CATOBJEXT@,$CATOBJEXT,;t t
15686
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15687
s,@MSGFMT@,$MSGFMT,;t t
15688
s,@MSGMERGE@,$MSGMERGE,;t t
15689
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15690
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15691
s,@MAINT@,$MAINT,;t t
15692
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15693
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15694
s,@HDEFINES@,$HDEFINES,;t t
15695
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15696
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15697
s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
15698
s,@ALLOCA@,$ALLOCA,;t t
15699
s,@LIBICONV@,$LIBICONV,;t t
15700
s,@LTLIBICONV@,$LTLIBICONV,;t t
15701
s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
15702
s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
15703
s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
15704
s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
15705
s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
15706
s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
15707
s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
15708
s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
15709
s,@BUILD_MISC@,$BUILD_MISC,;t t
15710
s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
15711
s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
15712
s,@EMULATION@,$EMULATION,;t t
15713
s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
15714
s,@datarootdir@,$datarootdir,;t t
15715
s,@docdir@,$docdir,;t t
15716
s,@htmldir@,$htmldir,;t t
15717
s,@LIBOBJS@,$LIBOBJS,;t t
15718
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15719
CEOF
15720
 
15721
_ACEOF
15722
 
15723
  cat >>$CONFIG_STATUS <<\_ACEOF
15724
  # Split the substitutions into bite-sized pieces for seds with
15725
  # small command number limits, like on Digital OSF/1 and HP-UX.
15726
  ac_max_sed_lines=48
15727
  ac_sed_frag=1 # Number of current file.
15728
  ac_beg=1 # First line for current file.
15729
  ac_end=$ac_max_sed_lines # Line after last line for current file.
15730
  ac_more_lines=:
15731
  ac_sed_cmds=
15732
  while $ac_more_lines; do
15733
    if test $ac_beg -gt 1; then
15734
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15735
    else
15736
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15737
    fi
15738
    if test ! -s $tmp/subs.frag; then
15739
      ac_more_lines=false
15740
    else
15741
      # The purpose of the label and of the branching condition is to
15742
      # speed up the sed processing (if there are no `@' at all, there
15743
      # is no need to browse any of the substitutions).
15744
      # These are the two extra sed commands mentioned above.
15745
      (echo ':t
15746
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15747
      if test -z "$ac_sed_cmds"; then
15748
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15749
      else
15750
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15751
      fi
15752
      ac_sed_frag=`expr $ac_sed_frag + 1`
15753
      ac_beg=$ac_end
15754
      ac_end=`expr $ac_end + $ac_max_sed_lines`
15755
    fi
15756
  done
15757
  if test -z "$ac_sed_cmds"; then
15758
    ac_sed_cmds=cat
15759
  fi
15760
fi # test -n "$CONFIG_FILES"
15761
 
15762
_ACEOF
15763
cat >>$CONFIG_STATUS <<\_ACEOF
15764
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15765
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15766
  case $ac_file in
15767
  - | *:- | *:-:* ) # input from stdin
15768
        cat >$tmp/stdin
15769
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15770
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15771
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15772
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15773
  * )   ac_file_in=$ac_file.in ;;
15774
  esac
15775
 
15776
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15777
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15778
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15779
         X"$ac_file" : 'X\(//\)[^/]' \| \
15780
         X"$ac_file" : 'X\(//\)$' \| \
15781
         X"$ac_file" : 'X\(/\)' \| \
15782
         .     : '\(.\)' 2>/dev/null ||
15783
echo X"$ac_file" |
15784
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15785
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15786
          /^X\(\/\/\)$/{ s//\1/; q; }
15787
          /^X\(\/\).*/{ s//\1/; q; }
15788
          s/.*/./; q'`
15789
  { if $as_mkdir_p; then
15790
    mkdir -p "$ac_dir"
15791
  else
15792
    as_dir="$ac_dir"
15793
    as_dirs=
15794
    while test ! -d "$as_dir"; do
15795
      as_dirs="$as_dir $as_dirs"
15796
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15797
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15798
         X"$as_dir" : 'X\(//\)[^/]' \| \
15799
         X"$as_dir" : 'X\(//\)$' \| \
15800
         X"$as_dir" : 'X\(/\)' \| \
15801
         .     : '\(.\)' 2>/dev/null ||
15802
echo X"$as_dir" |
15803
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15804
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15805
          /^X\(\/\/\)$/{ s//\1/; q; }
15806
          /^X\(\/\).*/{ s//\1/; q; }
15807
          s/.*/./; q'`
15808
    done
15809
    test ! -n "$as_dirs" || mkdir $as_dirs
15810
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15811
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15812
   { (exit 1); exit 1; }; }; }
15813
 
15814
  ac_builddir=.
15815
 
15816
if test "$ac_dir" != .; then
15817
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15818
  # A "../" for each directory in $ac_dir_suffix.
15819
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15820
else
15821
  ac_dir_suffix= ac_top_builddir=
15822
fi
15823
 
15824
case $srcdir in
15825
  .)  # No --srcdir option.  We are building in place.
15826
    ac_srcdir=.
15827
    if test -z "$ac_top_builddir"; then
15828
       ac_top_srcdir=.
15829
    else
15830
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15831
    fi ;;
15832
  [\\/]* | ?:[\\/]* )  # Absolute path.
15833
    ac_srcdir=$srcdir$ac_dir_suffix;
15834
    ac_top_srcdir=$srcdir ;;
15835
  *) # Relative path.
15836
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15837
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15838
esac
15839
 
15840
# Do not use `cd foo && pwd` to compute absolute paths, because
15841
# the directories may not exist.
15842
case `pwd` in
15843
.) ac_abs_builddir="$ac_dir";;
15844
*)
15845
  case "$ac_dir" in
15846
  .) ac_abs_builddir=`pwd`;;
15847
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15848
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15849
  esac;;
15850
esac
15851
case $ac_abs_builddir in
15852
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15853
*)
15854
  case ${ac_top_builddir}. in
15855
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15856
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15857
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15858
  esac;;
15859
esac
15860
case $ac_abs_builddir in
15861
.) ac_abs_srcdir=$ac_srcdir;;
15862
*)
15863
  case $ac_srcdir in
15864
  .) ac_abs_srcdir=$ac_abs_builddir;;
15865
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15866
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15867
  esac;;
15868
esac
15869
case $ac_abs_builddir in
15870
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15871
*)
15872
  case $ac_top_srcdir in
15873
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15874
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15875
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15876
  esac;;
15877
esac
15878
 
15879
 
15880
  case $INSTALL in
15881
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15882
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15883
  esac
15884
 
15885
  if test x"$ac_file" != x-; then
15886
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15887
echo "$as_me: creating $ac_file" >&6;}
15888
    rm -f "$ac_file"
15889
  fi
15890
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15891
  # use $as_me), people would be surprised to read:
15892
  #    /* config.h.  Generated by config.status.  */
15893
  if test x"$ac_file" = x-; then
15894
    configure_input=
15895
  else
15896
    configure_input="$ac_file.  "
15897
  fi
15898
  configure_input=$configure_input"Generated from `echo $ac_file_in |
15899
                                     sed 's,.*/,,'` by configure."
15900
 
15901
  # First look for the input files in the build tree, otherwise in the
15902
  # src tree.
15903
  ac_file_inputs=`IFS=:
15904
    for f in $ac_file_in; do
15905
      case $f in
15906
      -) echo $tmp/stdin ;;
15907
      [\\/$]*)
15908
         # Absolute (can't be DOS-style, as IFS=:)
15909
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15910
echo "$as_me: error: cannot find input file: $f" >&2;}
15911
   { (exit 1); exit 1; }; }
15912
         echo "$f";;
15913
      *) # Relative
15914
         if test -f "$f"; then
15915
           # Build tree
15916
           echo "$f"
15917
         elif test -f "$srcdir/$f"; then
15918
           # Source tree
15919
           echo "$srcdir/$f"
15920
         else
15921
           # /dev/null tree
15922
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15923
echo "$as_me: error: cannot find input file: $f" >&2;}
15924
   { (exit 1); exit 1; }; }
15925
         fi;;
15926
      esac
15927
    done` || { (exit 1); exit 1; }
15928
_ACEOF
15929
cat >>$CONFIG_STATUS <<_ACEOF
15930
  sed "$ac_vpsub
15931
$extrasub
15932
_ACEOF
15933
cat >>$CONFIG_STATUS <<\_ACEOF
15934
:t
15935
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15936
s,@configure_input@,$configure_input,;t t
15937
s,@srcdir@,$ac_srcdir,;t t
15938
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15939
s,@top_srcdir@,$ac_top_srcdir,;t t
15940
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15941
s,@builddir@,$ac_builddir,;t t
15942
s,@abs_builddir@,$ac_abs_builddir,;t t
15943
s,@top_builddir@,$ac_top_builddir,;t t
15944
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15945
s,@INSTALL@,$ac_INSTALL,;t t
15946
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15947
  rm -f $tmp/stdin
15948
  if test x"$ac_file" != x-; then
15949
    mv $tmp/out $ac_file
15950
  else
15951
    cat $tmp/out
15952
    rm -f $tmp/out
15953
  fi
15954
 
15955
done
15956
_ACEOF
15957
cat >>$CONFIG_STATUS <<\_ACEOF
15958
 
15959
#
15960
# CONFIG_HEADER section.
15961
#
15962
 
15963
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15964
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15965
#
15966
# ac_d sets the value in "#define NAME VALUE" lines.
15967
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15968
ac_dB='[         ].*$,\1#\2'
15969
ac_dC=' '
15970
ac_dD=',;t'
15971
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15972
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15973
ac_uB='$,\1#\2define\3'
15974
ac_uC=' '
15975
ac_uD=',;t'
15976
 
15977
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15978
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15979
  case $ac_file in
15980
  - | *:- | *:-:* ) # input from stdin
15981
        cat >$tmp/stdin
15982
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15983
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15984
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15985
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15986
  * )   ac_file_in=$ac_file.in ;;
15987
  esac
15988
 
15989
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15990
echo "$as_me: creating $ac_file" >&6;}
15991
 
15992
  # First look for the input files in the build tree, otherwise in the
15993
  # src tree.
15994
  ac_file_inputs=`IFS=:
15995
    for f in $ac_file_in; do
15996
      case $f in
15997
      -) echo $tmp/stdin ;;
15998
      [\\/$]*)
15999
         # Absolute (can't be DOS-style, as IFS=:)
16000
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16001
echo "$as_me: error: cannot find input file: $f" >&2;}
16002
   { (exit 1); exit 1; }; }
16003
         # Do quote $f, to prevent DOS paths from being IFS'd.
16004
         echo "$f";;
16005
      *) # Relative
16006
         if test -f "$f"; then
16007
           # Build tree
16008
           echo "$f"
16009
         elif test -f "$srcdir/$f"; then
16010
           # Source tree
16011
           echo "$srcdir/$f"
16012
         else
16013
           # /dev/null tree
16014
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16015
echo "$as_me: error: cannot find input file: $f" >&2;}
16016
   { (exit 1); exit 1; }; }
16017
         fi;;
16018
      esac
16019
    done` || { (exit 1); exit 1; }
16020
  # Remove the trailing spaces.
16021
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16022
 
16023
_ACEOF
16024
 
16025
# Transform confdefs.h into two sed scripts, `conftest.defines' and
16026
# `conftest.undefs', that substitutes the proper values into
16027
# config.h.in to produce config.h.  The first handles `#define'
16028
# templates, and the second `#undef' templates.
16029
# And first: Protect against being on the right side of a sed subst in
16030
# config.status.  Protect against being in an unquoted here document
16031
# in config.status.
16032
rm -f conftest.defines conftest.undefs
16033
# Using a here document instead of a string reduces the quoting nightmare.
16034
# Putting comments in sed scripts is not portable.
16035
#
16036
# `end' is used to avoid that the second main sed command (meant for
16037
# 0-ary CPP macros) applies to n-ary macro definitions.
16038
# See the Autoconf documentation for `clear'.
16039
cat >confdef2sed.sed <<\_ACEOF
16040
s/[\\&,]/\\&/g
16041
s,[\\$`],\\&,g
16042
t clear
16043
: clear
16044
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16045
t end
16046
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16047
: end
16048
_ACEOF
16049
# If some macros were called several times there might be several times
16050
# the same #defines, which is useless.  Nevertheless, we may not want to
16051
# sort them, since we want the *last* AC-DEFINE to be honored.
16052
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16053
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16054
rm -f confdef2sed.sed
16055
 
16056
# This sed command replaces #undef with comments.  This is necessary, for
16057
# example, in the case of _POSIX_SOURCE, which is predefined and required
16058
# on some systems where configure will not decide to define it.
16059
cat >>conftest.undefs <<\_ACEOF
16060
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16061
_ACEOF
16062
 
16063
# Break up conftest.defines because some shells have a limit on the size
16064
# of here documents, and old seds have small limits too (100 cmds).
16065
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16066
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16067
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16068
echo '  :' >>$CONFIG_STATUS
16069
rm -f conftest.tail
16070
while grep . conftest.defines >/dev/null
16071
do
16072
  # Write a limited-size here document to $tmp/defines.sed.
16073
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
16074
  # Speed up: don't consider the non `#define' lines.
16075
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16076
  # Work around the forget-to-reset-the-flag bug.
16077
  echo 't clr' >>$CONFIG_STATUS
16078
  echo ': clr' >>$CONFIG_STATUS
16079
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16080
  echo 'CEOF
16081
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16082
  rm -f $tmp/in
16083
  mv $tmp/out $tmp/in
16084
' >>$CONFIG_STATUS
16085
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16086
  rm -f conftest.defines
16087
  mv conftest.tail conftest.defines
16088
done
16089
rm -f conftest.defines
16090
echo '  fi # grep' >>$CONFIG_STATUS
16091
echo >>$CONFIG_STATUS
16092
 
16093
# Break up conftest.undefs because some shells have a limit on the size
16094
# of here documents, and old seds have small limits too (100 cmds).
16095
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16096
rm -f conftest.tail
16097
while grep . conftest.undefs >/dev/null
16098
do
16099
  # Write a limited-size here document to $tmp/undefs.sed.
16100
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
16101
  # Speed up: don't consider the non `#undef'
16102
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16103
  # Work around the forget-to-reset-the-flag bug.
16104
  echo 't clr' >>$CONFIG_STATUS
16105
  echo ': clr' >>$CONFIG_STATUS
16106
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16107
  echo 'CEOF
16108
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16109
  rm -f $tmp/in
16110
  mv $tmp/out $tmp/in
16111
' >>$CONFIG_STATUS
16112
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16113
  rm -f conftest.undefs
16114
  mv conftest.tail conftest.undefs
16115
done
16116
rm -f conftest.undefs
16117
 
16118
cat >>$CONFIG_STATUS <<\_ACEOF
16119
  # Let's still pretend it is `configure' which instantiates (i.e., don't
16120
  # use $as_me), people would be surprised to read:
16121
  #    /* config.h.  Generated by config.status.  */
16122
  if test x"$ac_file" = x-; then
16123
    echo "/* Generated by configure.  */" >$tmp/config.h
16124
  else
16125
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16126
  fi
16127
  cat $tmp/in >>$tmp/config.h
16128
  rm -f $tmp/in
16129
  if test x"$ac_file" != x-; then
16130
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16131
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16132
echo "$as_me: $ac_file is unchanged" >&6;}
16133
    else
16134
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16135
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16136
         X"$ac_file" : 'X\(//\)[^/]' \| \
16137
         X"$ac_file" : 'X\(//\)$' \| \
16138
         X"$ac_file" : 'X\(/\)' \| \
16139
         .     : '\(.\)' 2>/dev/null ||
16140
echo X"$ac_file" |
16141
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16142
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16143
          /^X\(\/\/\)$/{ s//\1/; q; }
16144
          /^X\(\/\).*/{ s//\1/; q; }
16145
          s/.*/./; q'`
16146
      { if $as_mkdir_p; then
16147
    mkdir -p "$ac_dir"
16148
  else
16149
    as_dir="$ac_dir"
16150
    as_dirs=
16151
    while test ! -d "$as_dir"; do
16152
      as_dirs="$as_dir $as_dirs"
16153
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16154
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155
         X"$as_dir" : 'X\(//\)[^/]' \| \
16156
         X"$as_dir" : 'X\(//\)$' \| \
16157
         X"$as_dir" : 'X\(/\)' \| \
16158
         .     : '\(.\)' 2>/dev/null ||
16159
echo X"$as_dir" |
16160
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16161
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16162
          /^X\(\/\/\)$/{ s//\1/; q; }
16163
          /^X\(\/\).*/{ s//\1/; q; }
16164
          s/.*/./; q'`
16165
    done
16166
    test ! -n "$as_dirs" || mkdir $as_dirs
16167
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16168
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16169
   { (exit 1); exit 1; }; }; }
16170
 
16171
      rm -f $ac_file
16172
      mv $tmp/config.h $ac_file
16173
    fi
16174
  else
16175
    cat $tmp/config.h
16176
    rm -f $tmp/config.h
16177
  fi
16178
# Compute $ac_file's index in $config_headers.
16179
_am_stamp_count=1
16180
for _am_header in $config_headers :; do
16181
  case $_am_header in
16182
    $ac_file | $ac_file:* )
16183
      break ;;
16184
    * )
16185
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16186
  esac
16187
done
16188
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16189
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16190
         X$ac_file : 'X\(//\)[^/]' \| \
16191
         X$ac_file : 'X\(//\)$' \| \
16192
         X$ac_file : 'X\(/\)' \| \
16193
         .     : '\(.\)' 2>/dev/null ||
16194
echo X$ac_file |
16195
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16196
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16197
          /^X\(\/\/\)$/{ s//\1/; q; }
16198
          /^X\(\/\).*/{ s//\1/; q; }
16199
          s/.*/./; q'`/stamp-h$_am_stamp_count
16200
done
16201
_ACEOF
16202
cat >>$CONFIG_STATUS <<\_ACEOF
16203
 
16204
#
16205
# CONFIG_COMMANDS section.
16206
#
16207
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16208
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16209
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16210
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16211
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16212
         X"$ac_dest" : 'X\(//\)[^/]' \| \
16213
         X"$ac_dest" : 'X\(//\)$' \| \
16214
         X"$ac_dest" : 'X\(/\)' \| \
16215
         .     : '\(.\)' 2>/dev/null ||
16216
echo X"$ac_dest" |
16217
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16218
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16219
          /^X\(\/\/\)$/{ s//\1/; q; }
16220
          /^X\(\/\).*/{ s//\1/; q; }
16221
          s/.*/./; q'`
16222
  { if $as_mkdir_p; then
16223
    mkdir -p "$ac_dir"
16224
  else
16225
    as_dir="$ac_dir"
16226
    as_dirs=
16227
    while test ! -d "$as_dir"; do
16228
      as_dirs="$as_dir $as_dirs"
16229
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16230
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16231
         X"$as_dir" : 'X\(//\)[^/]' \| \
16232
         X"$as_dir" : 'X\(//\)$' \| \
16233
         X"$as_dir" : 'X\(/\)' \| \
16234
         .     : '\(.\)' 2>/dev/null ||
16235
echo X"$as_dir" |
16236
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16237
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16238
          /^X\(\/\/\)$/{ s//\1/; q; }
16239
          /^X\(\/\).*/{ s//\1/; q; }
16240
          s/.*/./; q'`
16241
    done
16242
    test ! -n "$as_dirs" || mkdir $as_dirs
16243
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16244
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16245
   { (exit 1); exit 1; }; }; }
16246
 
16247
  ac_builddir=.
16248
 
16249
if test "$ac_dir" != .; then
16250
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16251
  # A "../" for each directory in $ac_dir_suffix.
16252
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16253
else
16254
  ac_dir_suffix= ac_top_builddir=
16255
fi
16256
 
16257
case $srcdir in
16258
  .)  # No --srcdir option.  We are building in place.
16259
    ac_srcdir=.
16260
    if test -z "$ac_top_builddir"; then
16261
       ac_top_srcdir=.
16262
    else
16263
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16264
    fi ;;
16265
  [\\/]* | ?:[\\/]* )  # Absolute path.
16266
    ac_srcdir=$srcdir$ac_dir_suffix;
16267
    ac_top_srcdir=$srcdir ;;
16268
  *) # Relative path.
16269
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16270
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16271
esac
16272
 
16273
# Do not use `cd foo && pwd` to compute absolute paths, because
16274
# the directories may not exist.
16275
case `pwd` in
16276
.) ac_abs_builddir="$ac_dir";;
16277
*)
16278
  case "$ac_dir" in
16279
  .) ac_abs_builddir=`pwd`;;
16280
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16281
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16282
  esac;;
16283
esac
16284
case $ac_abs_builddir in
16285
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16286
*)
16287
  case ${ac_top_builddir}. in
16288
  .) ac_abs_top_builddir=$ac_abs_builddir;;
16289
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16290
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16291
  esac;;
16292
esac
16293
case $ac_abs_builddir in
16294
.) ac_abs_srcdir=$ac_srcdir;;
16295
*)
16296
  case $ac_srcdir in
16297
  .) ac_abs_srcdir=$ac_abs_builddir;;
16298
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16299
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16300
  esac;;
16301
esac
16302
case $ac_abs_builddir in
16303
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16304
*)
16305
  case $ac_top_srcdir in
16306
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16307
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16308
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16309
  esac;;
16310
esac
16311
 
16312
 
16313
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16314
echo "$as_me: executing $ac_dest commands" >&6;}
16315
  case $ac_dest in
16316
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16317
  # Strip MF so we end up with the name of the file.
16318
  mf=`echo "$mf" | sed -e 's/:.*$//'`
16319
  # Check whether this is an Automake generated Makefile or not.
16320
  # We used to match only the files named `Makefile.in', but
16321
  # some people rename them; so instead we look at the file content.
16322
  # Grep'ing the first line is not enough: some people post-process
16323
  # each Makefile.in and add a new line on top of each file to say so.
16324
  # So let's grep whole file.
16325
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16326
    dirpart=`(dirname "$mf") 2>/dev/null ||
16327
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16328
         X"$mf" : 'X\(//\)[^/]' \| \
16329
         X"$mf" : 'X\(//\)$' \| \
16330
         X"$mf" : 'X\(/\)' \| \
16331
         .     : '\(.\)' 2>/dev/null ||
16332
echo X"$mf" |
16333
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16334
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16335
          /^X\(\/\/\)$/{ s//\1/; q; }
16336
          /^X\(\/\).*/{ s//\1/; q; }
16337
          s/.*/./; q'`
16338
  else
16339
    continue
16340
  fi
16341
  # Extract the definition of DEPDIR, am__include, and am__quote
16342
  # from the Makefile without running `make'.
16343
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16344
  test -z "$DEPDIR" && continue
16345
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16346
  test -z "am__include" && continue
16347
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16348
  # When using ansi2knr, U may be empty or an underscore; expand it
16349
  U=`sed -n 's/^U = //p' < "$mf"`
16350
  # Find all dependency output files, they are included files with
16351
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16352
  # simplest approach to changing $(DEPDIR) to its actual value in the
16353
  # expansion.
16354
  for file in `sed -n "
16355
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16356
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16357
    # Make sure the directory exists.
16358
    test -f "$dirpart/$file" && continue
16359
    fdir=`(dirname "$file") 2>/dev/null ||
16360
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361
         X"$file" : 'X\(//\)[^/]' \| \
16362
         X"$file" : 'X\(//\)$' \| \
16363
         X"$file" : 'X\(/\)' \| \
16364
         .     : '\(.\)' 2>/dev/null ||
16365
echo X"$file" |
16366
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16367
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16368
          /^X\(\/\/\)$/{ s//\1/; q; }
16369
          /^X\(\/\).*/{ s//\1/; q; }
16370
          s/.*/./; q'`
16371
    { if $as_mkdir_p; then
16372
    mkdir -p $dirpart/$fdir
16373
  else
16374
    as_dir=$dirpart/$fdir
16375
    as_dirs=
16376
    while test ! -d "$as_dir"; do
16377
      as_dirs="$as_dir $as_dirs"
16378
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16379
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16380
         X"$as_dir" : 'X\(//\)[^/]' \| \
16381
         X"$as_dir" : 'X\(//\)$' \| \
16382
         X"$as_dir" : 'X\(/\)' \| \
16383
         .     : '\(.\)' 2>/dev/null ||
16384
echo X"$as_dir" |
16385
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16386
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16387
          /^X\(\/\/\)$/{ s//\1/; q; }
16388
          /^X\(\/\).*/{ s//\1/; q; }
16389
          s/.*/./; q'`
16390
    done
16391
    test ! -n "$as_dirs" || mkdir $as_dirs
16392
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16393
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16394
   { (exit 1); exit 1; }; }; }
16395
 
16396
    # echo "creating $dirpart/$file"
16397
    echo '# dummy' > "$dirpart/$file"
16398
  done
16399
done
16400
 ;;
16401
    libtool )
16402
 
16403
    # See if we are running on zsh, and set the options which allow our
16404
    # commands through without removal of \ escapes.
16405
    if test -n "${ZSH_VERSION+set}" ; then
16406
      setopt NO_GLOB_SUBST
16407
    fi
16408
 
16409
    cfgfile="${ofile}T"
16410
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16411
    $RM "$cfgfile"
16412
 
16413
    cat <<_LT_EOF >> "$cfgfile"
16414
#! $SHELL
16415
 
16416
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16417
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16418
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16419
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16420
#
16421
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16422
# 2006, 2007 Free Software Foundation, Inc.
16423
#
16424
# This file is part of GNU Libtool:
16425
# Originally by Gordon Matzigkeit , 1996
16426
#
16427
# This program is free software; you can redistribute it and/or modify
16428
# it under the terms of the GNU General Public License as published by
16429
# the Free Software Foundation; either version 2 of the License, or
16430
# (at your option) any later version.
16431
#
16432
# This program is distributed in the hope that it will be useful, but
16433
# WITHOUT ANY WARRANTY; without even the implied warranty of
16434
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16435
# General Public License for more details.
16436
#
16437
# You should have received a copy of the GNU General Public License
16438
# along with this program; if not, a copy can be downloaded from
16439
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16440
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16441
# MA 02110-1301, USA.
16442
#
16443
# As a special exception to the GNU General Public License, if you
16444
# distribute this file as part of a program that contains a
16445
# configuration script generated by Autoconf, you may include it under
16446
# the same distribution terms that you use for the rest of that program.
16447
 
16448
 
16449
# The names of the tagged configurations supported by this script.
16450
available_tags=""
16451
 
16452
# ### BEGIN LIBTOOL CONFIG
16453
 
16454
# Which release of libtool.m4 was used?
16455
macro_version=$macro_version
16456
macro_revision=$macro_revision
16457
 
16458
# Whether or not to build shared libraries.
16459
build_libtool_libs=$enable_shared
16460
 
16461
# Whether or not to build static libraries.
16462
build_old_libs=$enable_static
16463
 
16464
# What type of objects to build.
16465
pic_mode=$pic_mode
16466
 
16467
# Whether or not to optimize for fast installation.
16468
fast_install=$enable_fast_install
16469
 
16470
# The host system.
16471
host_alias=$host_alias
16472
host=$host
16473
host_os=$host_os
16474
 
16475
# The build system.
16476
build_alias=$build_alias
16477
build=$build
16478
build_os=$build_os
16479
 
16480
# A sed program that does not truncate output.
16481
SED=$lt_SED
16482
 
16483
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16484
Xsed="\$SED -e 1s/^X//"
16485
 
16486
# A grep program that handles long lines.
16487
GREP=$lt_GREP
16488
 
16489
# An ERE matcher.
16490
EGREP=$lt_EGREP
16491
 
16492
# A literal string matcher.
16493
FGREP=$lt_FGREP
16494
 
16495
# A BSD- or MS-compatible name lister.
16496
NM=$lt_NM
16497
 
16498
# Whether we need soft or hard links.
16499
LN_S=$lt_LN_S
16500
 
16501
# What is the maximum length of a command?
16502
max_cmd_len=$max_cmd_len
16503
 
16504
# Object file suffix (normally "o").
16505
objext=$ac_objext
16506
 
16507
# Executable file suffix (normally "").
16508
exeext=$exeext
16509
 
16510
# whether the shell understands "unset".
16511
lt_unset=$lt_unset
16512
 
16513
# turn spaces into newlines.
16514
SP2NL=$lt_lt_SP2NL
16515
 
16516
# turn newlines into spaces.
16517
NL2SP=$lt_lt_NL2SP
16518
 
16519
# How to create reloadable object files.
16520
reload_flag=$lt_reload_flag
16521
reload_cmds=$lt_reload_cmds
16522
 
16523
# Method to check whether dependent libraries are shared objects.
16524
deplibs_check_method=$lt_deplibs_check_method
16525
 
16526
# Command to use when deplibs_check_method == "file_magic".
16527
file_magic_cmd=$lt_file_magic_cmd
16528
 
16529
# The archiver.
16530
AR=$lt_AR
16531
AR_FLAGS=$lt_AR_FLAGS
16532
 
16533
# A symbol stripping program.
16534
STRIP=$lt_STRIP
16535
 
16536
# Commands used to install an old-style archive.
16537
RANLIB=$lt_RANLIB
16538
old_postinstall_cmds=$lt_old_postinstall_cmds
16539
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16540
 
16541
# A C compiler.
16542
LTCC=$lt_CC
16543
 
16544
# LTCC compiler flags.
16545
LTCFLAGS=$lt_CFLAGS
16546
 
16547
# Take the output of nm and produce a listing of raw symbols and C names.
16548
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16549
 
16550
# Transform the output of nm in a proper C declaration.
16551
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16552
 
16553
# Transform the output of nm in a C name address pair.
16554
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16555
 
16556
# The name of the directory that contains temporary libtool files.
16557
objdir=$objdir
16558
 
16559
# Shell to use when invoking shell scripts.
16560
SHELL=$lt_SHELL
16561
 
16562
# An echo program that does not interpret backslashes.
16563
ECHO=$lt_ECHO
16564
 
16565
# Used to examine libraries when file_magic_cmd begins with "file".
16566
MAGIC_CMD=$MAGIC_CMD
16567
 
16568
# Must we lock files when doing compilation?
16569
need_locks=$lt_need_locks
16570
 
16571
# Old archive suffix (normally "a").
16572
libext=$libext
16573
 
16574
# Shared library suffix (normally ".so").
16575
shrext_cmds=$lt_shrext_cmds
16576
 
16577
# The commands to extract the exported symbol list from a shared archive.
16578
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16579
 
16580
# Variables whose values should be saved in libtool wrapper scripts and
16581
# restored at link time.
16582
variables_saved_for_relink=$lt_variables_saved_for_relink
16583
 
16584
# Do we need the "lib" prefix for modules?
16585
need_lib_prefix=$need_lib_prefix
16586
 
16587
# Do we need a version for libraries?
16588
need_version=$need_version
16589
 
16590
# Library versioning type.
16591
version_type=$version_type
16592
 
16593
# Shared library runtime path variable.
16594
runpath_var=$runpath_var
16595
 
16596
# Shared library path variable.
16597
shlibpath_var=$shlibpath_var
16598
 
16599
# Is shlibpath searched before the hard-coded library search path?
16600
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16601
 
16602
# Format of library name prefix.
16603
libname_spec=$lt_libname_spec
16604
 
16605
# List of archive names.  First name is the real one, the rest are links.
16606
# The last name is the one that the linker finds with -lNAME
16607
library_names_spec=$lt_library_names_spec
16608
 
16609
# The coded name of the library, if different from the real name.
16610
soname_spec=$lt_soname_spec
16611
 
16612
# Command to use after installation of a shared archive.
16613
postinstall_cmds=$lt_postinstall_cmds
16614
 
16615
# Command to use after uninstallation of a shared archive.
16616
postuninstall_cmds=$lt_postuninstall_cmds
16617
 
16618
# Commands used to finish a libtool library installation in a directory.
16619
finish_cmds=$lt_finish_cmds
16620
 
16621
# As "finish_cmds", except a single script fragment to be evaled but
16622
# not shown.
16623
finish_eval=$lt_finish_eval
16624
 
16625
# Whether we should hardcode library paths into libraries.
16626
hardcode_into_libs=$hardcode_into_libs
16627
 
16628
# Compile-time system search path for libraries.
16629
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16630
 
16631
# Run-time system search path for libraries.
16632
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16633
 
16634
# Whether dlopen is supported.
16635
dlopen_support=$enable_dlopen
16636
 
16637
# Whether dlopen of programs is supported.
16638
dlopen_self=$enable_dlopen_self
16639
 
16640
# Whether dlopen of statically linked programs is supported.
16641
dlopen_self_static=$enable_dlopen_self_static
16642
 
16643
# Commands to strip libraries.
16644
old_striplib=$lt_old_striplib
16645
striplib=$lt_striplib
16646
 
16647
 
16648
# The linker used to build libraries.
16649
LD=$lt_LD
16650
 
16651
# Commands used to build an old-style archive.
16652
old_archive_cmds=$lt_old_archive_cmds
16653
 
16654
# A language specific compiler.
16655
CC=$lt_compiler
16656
 
16657
# Is the compiler the GNU compiler?
16658
with_gcc=$GCC
16659
 
16660
# Compiler flag to turn off builtin functions.
16661
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16662
 
16663
# How to pass a linker flag through the compiler.
16664
wl=$lt_lt_prog_compiler_wl
16665
 
16666
# Additional compiler flags for building library objects.
16667
pic_flag=$lt_lt_prog_compiler_pic
16668
 
16669
# Compiler flag to prevent dynamic linking.
16670
link_static_flag=$lt_lt_prog_compiler_static
16671
 
16672
# Does compiler simultaneously support -c and -o options?
16673
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16674
 
16675
# Whether or not to add -lc for building shared libraries.
16676
build_libtool_need_lc=$archive_cmds_need_lc
16677
 
16678
# Whether or not to disallow shared libs when runtime libs are static.
16679
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16680
 
16681
# Compiler flag to allow reflexive dlopens.
16682
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16683
 
16684
# Compiler flag to generate shared objects directly from archives.
16685
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16686
 
16687
# Whether the compiler copes with passing no objects directly.
16688
compiler_needs_object=$lt_compiler_needs_object
16689
 
16690
# Create an old-style archive from a shared archive.
16691
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16692
 
16693
# Create a temporary old-style archive to link instead of a shared archive.
16694
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16695
 
16696
# Commands used to build a shared archive.
16697
archive_cmds=$lt_archive_cmds
16698
archive_expsym_cmds=$lt_archive_expsym_cmds
16699
 
16700
# Commands used to build a loadable module if different from building
16701
# a shared archive.
16702
module_cmds=$lt_module_cmds
16703
module_expsym_cmds=$lt_module_expsym_cmds
16704
 
16705
# Whether we are building with GNU ld or not.
16706
with_gnu_ld=$lt_with_gnu_ld
16707
 
16708
# Flag that allows shared libraries with undefined symbols to be built.
16709
allow_undefined_flag=$lt_allow_undefined_flag
16710
 
16711
# Flag that enforces no undefined symbols.
16712
no_undefined_flag=$lt_no_undefined_flag
16713
 
16714
# Flag to hardcode \$libdir into a binary during linking.
16715
# This must work even if \$libdir does not exist
16716
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16717
 
16718
# If ld is used when linking, flag to hardcode \$libdir into a binary
16719
# during linking.  This must work even if \$libdir does not exist.
16720
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16721
 
16722
# Whether we need a single "-rpath" flag with a separated argument.
16723
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16724
 
16725
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16726
# DIR into the resulting binary.
16727
hardcode_direct=$hardcode_direct
16728
 
16729
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16730
# DIR into the resulting binary and the resulting library dependency is
16731
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16732
# library is relocated.
16733
hardcode_direct_absolute=$hardcode_direct_absolute
16734
 
16735
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16736
# into the resulting binary.
16737
hardcode_minus_L=$hardcode_minus_L
16738
 
16739
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16740
# into the resulting binary.
16741
hardcode_shlibpath_var=$hardcode_shlibpath_var
16742
 
16743
# Set to "yes" if building a shared library automatically hardcodes DIR
16744
# into the library and all subsequent libraries and executables linked
16745
# against it.
16746
hardcode_automatic=$hardcode_automatic
16747
 
16748
# Set to yes if linker adds runtime paths of dependent libraries
16749
# to runtime path list.
16750
inherit_rpath=$inherit_rpath
16751
 
16752
# Whether libtool must link a program against all its dependency libraries.
16753
link_all_deplibs=$link_all_deplibs
16754
 
16755
# Fix the shell variable \$srcfile for the compiler.
16756
fix_srcfile_path=$lt_fix_srcfile_path
16757
 
16758
# Set to "yes" if exported symbols are required.
16759
always_export_symbols=$always_export_symbols
16760
 
16761
# The commands to list exported symbols.
16762
export_symbols_cmds=$lt_export_symbols_cmds
16763
 
16764
# Symbols that should not be listed in the preloaded symbols.
16765
exclude_expsyms=$lt_exclude_expsyms
16766
 
16767
# Symbols that must always be exported.
16768
include_expsyms=$lt_include_expsyms
16769
 
16770
# Commands necessary for linking programs (against libraries) with templates.
16771
prelink_cmds=$lt_prelink_cmds
16772
 
16773
# Specify filename containing input files.
16774
file_list_spec=$lt_file_list_spec
16775
 
16776
# How to hardcode a shared library path into an executable.
16777
hardcode_action=$hardcode_action
16778
 
16779
# ### END LIBTOOL CONFIG
16780
 
16781
_LT_EOF
16782
 
16783
  case $host_os in
16784
  aix3*)
16785
    cat <<\_LT_EOF >> "$cfgfile"
16786
# AIX sometimes has problems with the GCC collect2 program.  For some
16787
# reason, if we set the COLLECT_NAMES environment variable, the problems
16788
# vanish in a puff of smoke.
16789
if test "X${COLLECT_NAMES+set}" != Xset; then
16790
  COLLECT_NAMES=
16791
  export COLLECT_NAMES
16792
fi
16793
_LT_EOF
16794
    ;;
16795
  esac
16796
 
16797
 
16798
ltmain="$ac_aux_dir/ltmain.sh"
16799
 
16800
 
16801
  # We use sed instead of cat because bash on DJGPP gets confused if
16802
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16803
  # text mode, it properly converts lines to CR/LF.  This bash problem
16804
  # is reportedly fixed, but why not run on old versions too?
16805
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16806
    || (rm -f "$cfgfile"; exit 1)
16807
 
16808
  case $xsi_shell in
16809
  yes)
16810
    cat << \_LT_EOF >> "$cfgfile"
16811
# func_dirname file append nondir_replacement
16812
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16813
# otherwise set result to NONDIR_REPLACEMENT.
16814
func_dirname ()
16815
{
16816
  case ${1} in
16817
    */*) func_dirname_result="${1%/*}${2}" ;;
16818
    *  ) func_dirname_result="${3}" ;;
16819
  esac
16820
}
16821
 
16822
# func_basename file
16823
func_basename ()
16824
{
16825
  func_basename_result="${1##*/}"
16826
}
16827
 
16828
# func_stripname prefix suffix name
16829
# strip PREFIX and SUFFIX off of NAME.
16830
# PREFIX and SUFFIX must not contain globbing or regex special
16831
# characters, hashes, percent signs, but SUFFIX may contain a leading
16832
# dot (in which case that matches only a dot).
16833
func_stripname ()
16834
{
16835
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16836
  # positional parameters, so assign one to ordinary parameter first.
16837
  func_stripname_result=${3}
16838
  func_stripname_result=${func_stripname_result#"${1}"}
16839
  func_stripname_result=${func_stripname_result%"${2}"}
16840
}
16841
 
16842
# func_opt_split
16843
func_opt_split ()
16844
{
16845
  func_opt_split_opt=${1%%=*}
16846
  func_opt_split_arg=${1#*=}
16847
}
16848
 
16849
# func_lo2o object
16850
func_lo2o ()
16851
{
16852
  case ${1} in
16853
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16854
    *)    func_lo2o_result=${1} ;;
16855
  esac
16856
}
16857
_LT_EOF
16858
    ;;
16859
  *) # Bourne compatible functions.
16860
    cat << \_LT_EOF >> "$cfgfile"
16861
# func_dirname file append nondir_replacement
16862
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16863
# otherwise set result to NONDIR_REPLACEMENT.
16864
func_dirname ()
16865
{
16866
  # Extract subdirectory from the argument.
16867
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16868
  if test "X$func_dirname_result" = "X${1}"; then
16869
    func_dirname_result="${3}"
16870
  else
16871
    func_dirname_result="$func_dirname_result${2}"
16872
  fi
16873
}
16874
 
16875
# func_basename file
16876
func_basename ()
16877
{
16878
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16879
}
16880
 
16881
# func_stripname prefix suffix name
16882
# strip PREFIX and SUFFIX off of NAME.
16883
# PREFIX and SUFFIX must not contain globbing or regex special
16884
# characters, hashes, percent signs, but SUFFIX may contain a leading
16885
# dot (in which case that matches only a dot).
16886
# func_strip_suffix prefix name
16887
func_stripname ()
16888
{
16889
  case ${2} in
16890
    .*) func_stripname_result=`$ECHO "X${3}" \
16891
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16892
    *)  func_stripname_result=`$ECHO "X${3}" \
16893
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16894
  esac
16895
}
16896
 
16897
# sed scripts:
16898
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16899
my_sed_long_arg='1s/^-[^=]*=//'
16900
 
16901
# func_opt_split
16902
func_opt_split ()
16903
{
16904
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16905
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16906
}
16907
 
16908
# func_lo2o object
16909
func_lo2o ()
16910
{
16911
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16912
}
16913
_LT_EOF
16914
esac
16915
 
16916
case $lt_shell_append in
16917
  yes)
16918
    cat << \_LT_EOF >> "$cfgfile"
16919
 
16920
# func_append var value
16921
# Append VALUE to the end of shell variable VAR.
16922
func_append ()
16923
{
16924
  eval "$1+=\$2"
16925
}
16926
_LT_EOF
16927
    ;;
16928
  *)
16929
    cat << \_LT_EOF >> "$cfgfile"
16930
 
16931
# func_append var value
16932
# Append VALUE to the end of shell variable VAR.
16933
func_append ()
16934
{
16935
  eval "$1=\$$1\$2"
16936
}
16937
_LT_EOF
16938
    ;;
16939
  esac
16940
 
16941
 
16942
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16943
    || (rm -f "$cfgfile"; exit 1)
16944
 
16945
  mv -f "$cfgfile" "$ofile" ||
16946
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16947
  chmod +x "$ofile"
16948
 
16949
 ;;
16950
    default-1 )
16951
    for ac_file in $CONFIG_FILES; do
16952
      # Support "outfile[:infile[:infile...]]"
16953
      case "$ac_file" in
16954
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16955
      esac
16956
      # PO directories have a Makefile.in generated from Makefile.in.in.
16957
      case "$ac_file" in */Makefile.in)
16958
        # Adjust a relative srcdir.
16959
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16960
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16961
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16962
        # In autoconf-2.13 it is called $ac_given_srcdir.
16963
        # In autoconf-2.50 it is called $srcdir.
16964
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16965
        case "$ac_given_srcdir" in
16966
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16967
          /*) top_srcdir="$ac_given_srcdir" ;;
16968
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16969
        esac
16970
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16971
          rm -f "$ac_dir/POTFILES"
16972
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16973
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16974
          POMAKEFILEDEPS="POTFILES.in"
16975
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16976
          # on $ac_dir but don't depend on user-specified configuration
16977
          # parameters.
16978
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16979
            # The LINGUAS file contains the set of available languages.
16980
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16981
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16982
            fi
16983
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16984
            # Hide the ALL_LINGUAS assigment from automake.
16985
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16986
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16987
          else
16988
            # The set of available languages was given in configure.in.
16989
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16990
          fi
16991
          case "$ac_given_srcdir" in
16992
            .) srcdirpre= ;;
16993
            *) srcdirpre='$(srcdir)/' ;;
16994
          esac
16995
          POFILES=
16996
          GMOFILES=
16997
          UPDATEPOFILES=
16998
          DUMMYPOFILES=
16999
          for lang in $ALL_LINGUAS; do
17000
            POFILES="$POFILES $srcdirpre$lang.po"
17001
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17002
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17003
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17004
          done
17005
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17006
          # environment variable.
17007
          INST_LINGUAS=
17008
          if test -n "$ALL_LINGUAS"; then
17009
            for presentlang in $ALL_LINGUAS; do
17010
              useit=no
17011
              if test "%UNSET%" != "$LINGUAS"; then
17012
                desiredlanguages="$LINGUAS"
17013
              else
17014
                desiredlanguages="$ALL_LINGUAS"
17015
              fi
17016
              for desiredlang in $desiredlanguages; do
17017
                # Use the presentlang catalog if desiredlang is
17018
                #   a. equal to presentlang, or
17019
                #   b. a variant of presentlang (because in this case,
17020
                #      presentlang can be used as a fallback for messages
17021
                #      which are not translated in the desiredlang catalog).
17022
                case "$desiredlang" in
17023
                  "$presentlang"*) useit=yes;;
17024
                esac
17025
              done
17026
              if test $useit = yes; then
17027
                INST_LINGUAS="$INST_LINGUAS $presentlang"
17028
              fi
17029
            done
17030
          fi
17031
          CATALOGS=
17032
          if test -n "$INST_LINGUAS"; then
17033
            for lang in $INST_LINGUAS; do
17034
              CATALOGS="$CATALOGS $lang.gmo"
17035
            done
17036
          fi
17037
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17038
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17039
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17040
            if test -f "$f"; then
17041
              case "$f" in
17042
                *.orig | *.bak | *~) ;;
17043
                *) cat "$f" >> "$ac_dir/Makefile" ;;
17044
              esac
17045
            fi
17046
          done
17047
        fi
17048
        ;;
17049
      esac
17050
    done ;;
17051
  esac
17052
done
17053
_ACEOF
17054
 
17055
cat >>$CONFIG_STATUS <<\_ACEOF
17056
 
17057
{ (exit 0); exit 0; }
17058
_ACEOF
17059
chmod +x $CONFIG_STATUS
17060
ac_clean_files=$ac_clean_files_save
17061
 
17062
 
17063
# configure is writing to config.log, and then calls config.status.
17064
# config.status does its own redirection, appending to config.log.
17065
# Unfortunately, on DOS this fails, as config.log is still kept open
17066
# by configure, so config.status won't be able to write to it; its
17067
# output is simply discarded.  So we exec the FD to /dev/null,
17068
# effectively closing config.log, so it can be properly (re)opened and
17069
# appended to by config.status.  When coming back to configure, we
17070
# need to make the FD available again.
17071
if test "$no_create" != yes; then
17072
  ac_cs_success=:
17073
  ac_config_status_args=
17074
  test "$silent" = yes &&
17075
    ac_config_status_args="$ac_config_status_args --quiet"
17076
  exec 5>/dev/null
17077
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17078
  exec 5>>config.log
17079
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17080
  # would make configure fail if this is the last instruction.
17081
  $ac_cs_success || { (exit 1); exit 1; }
17082
fi
17083
 

powered by: WebSVN 2.1.0

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