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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [binutils/] [configure] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
#! /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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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
ac_pwd=`pwd`
464
 
465
# Initialize some variables set by options.
466
ac_init_help=
467
ac_init_version=false
468
# The variables have the same names as the options, with
469
# dashes changed to underlines.
470
cache_file=/dev/null
471
exec_prefix=NONE
472
no_create=
473
no_recursion=
474
prefix=NONE
475
program_prefix=NONE
476
program_suffix=NONE
477
program_transform_name=s,x,x,
478
silent=
479
site=
480
srcdir=
481
verbose=
482
x_includes=NONE
483
x_libraries=NONE
484
 
485
# Installation directory options.
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
487
# and all the variables that are supposed to be based on exec_prefix
488
# by default will actually change.
489
# Use braces instead of parens because sh, perl, etc. also accept them.
490
bindir='${exec_prefix}/bin'
491
sbindir='${exec_prefix}/sbin'
492
libexecdir='${exec_prefix}/libexec'
493
datadir='${prefix}/share'
494
sysconfdir='${prefix}/etc'
495
sharedstatedir='${prefix}/com'
496
localstatedir='${prefix}/var'
497
libdir='${exec_prefix}/lib'
498
includedir='${prefix}/include'
499
oldincludedir='/usr/include'
500
infodir='${prefix}/info'
501
mandir='${prefix}/man'
502
 
503
ac_prev=
504
for ac_option
505
do
506
  # If the previous option needs an argument, assign it.
507
  if test -n "$ac_prev"; then
508
    eval "$ac_prev=\$ac_option"
509
    ac_prev=
510
    continue
511
  fi
512
 
513
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
 
515
  # Accept the important Cygnus configure options, so we can diagnose typos.
516
 
517
  case $ac_option in
518
 
519
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520
    ac_prev=bindir ;;
521
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522
    bindir=$ac_optarg ;;
523
 
524
  -build | --build | --buil | --bui | --bu)
525
    ac_prev=build_alias ;;
526
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527
    build_alias=$ac_optarg ;;
528
 
529
  -cache-file | --cache-file | --cache-fil | --cache-fi \
530
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531
    ac_prev=cache_file ;;
532
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534
    cache_file=$ac_optarg ;;
535
 
536
  --config-cache | -C)
537
    cache_file=config.cache ;;
538
 
539
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540
    ac_prev=datadir ;;
541
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542
  | --da=*)
543
    datadir=$ac_optarg ;;
544
 
545
  -disable-* | --disable-*)
546
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547
    # Reject names that are not valid shell variable names.
548
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550
   { (exit 1); exit 1; }; }
551
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552
    eval "enable_$ac_feature=no" ;;
553
 
554
  -enable-* | --enable-*)
555
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556
    # Reject names that are not valid shell variable names.
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
   { (exit 1); exit 1; }; }
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561
    case $ac_option in
562
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563
      *) ac_optarg=yes ;;
564
    esac
565
    eval "enable_$ac_feature='$ac_optarg'" ;;
566
 
567
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569
  | --exec | --exe | --ex)
570
    ac_prev=exec_prefix ;;
571
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573
  | --exec=* | --exe=* | --ex=*)
574
    exec_prefix=$ac_optarg ;;
575
 
576
  -gas | --gas | --ga | --g)
577
    # Obsolete; use --with-gas.
578
    with_gas=yes ;;
579
 
580
  -help | --help | --hel | --he | -h)
581
    ac_init_help=long ;;
582
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583
    ac_init_help=recursive ;;
584
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585
    ac_init_help=short ;;
586
 
587
  -host | --host | --hos | --ho)
588
    ac_prev=host_alias ;;
589
  -host=* | --host=* | --hos=* | --ho=*)
590
    host_alias=$ac_optarg ;;
591
 
592
  -includedir | --includedir | --includedi | --included | --include \
593
  | --includ | --inclu | --incl | --inc)
594
    ac_prev=includedir ;;
595
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596
  | --includ=* | --inclu=* | --incl=* | --inc=*)
597
    includedir=$ac_optarg ;;
598
 
599
  -infodir | --infodir | --infodi | --infod | --info | --inf)
600
    ac_prev=infodir ;;
601
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602
    infodir=$ac_optarg ;;
603
 
604
  -libdir | --libdir | --libdi | --libd)
605
    ac_prev=libdir ;;
606
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607
    libdir=$ac_optarg ;;
608
 
609
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610
  | --libexe | --libex | --libe)
611
    ac_prev=libexecdir ;;
612
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613
  | --libexe=* | --libex=* | --libe=*)
614
    libexecdir=$ac_optarg ;;
615
 
616
  -localstatedir | --localstatedir | --localstatedi | --localstated \
617
  | --localstate | --localstat | --localsta | --localst \
618
  | --locals | --local | --loca | --loc | --lo)
619
    ac_prev=localstatedir ;;
620
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623
    localstatedir=$ac_optarg ;;
624
 
625
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626
    ac_prev=mandir ;;
627
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628
    mandir=$ac_optarg ;;
629
 
630
  -nfp | --nfp | --nf)
631
    # Obsolete; use --without-fp.
632
    with_fp=no ;;
633
 
634
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635
  | --no-cr | --no-c | -n)
636
    no_create=yes ;;
637
 
638
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640
    no_recursion=yes ;;
641
 
642
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644
  | --oldin | --oldi | --old | --ol | --o)
645
    ac_prev=oldincludedir ;;
646
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649
    oldincludedir=$ac_optarg ;;
650
 
651
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652
    ac_prev=prefix ;;
653
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654
    prefix=$ac_optarg ;;
655
 
656
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657
  | --program-pre | --program-pr | --program-p)
658
    ac_prev=program_prefix ;;
659
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661
    program_prefix=$ac_optarg ;;
662
 
663
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664
  | --program-suf | --program-su | --program-s)
665
    ac_prev=program_suffix ;;
666
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668
    program_suffix=$ac_optarg ;;
669
 
670
  -program-transform-name | --program-transform-name \
671
  | --program-transform-nam | --program-transform-na \
672
  | --program-transform-n | --program-transform- \
673
  | --program-transform | --program-transfor \
674
  | --program-transfo | --program-transf \
675
  | --program-trans | --program-tran \
676
  | --progr-tra | --program-tr | --program-t)
677
    ac_prev=program_transform_name ;;
678
  -program-transform-name=* | --program-transform-name=* \
679
  | --program-transform-nam=* | --program-transform-na=* \
680
  | --program-transform-n=* | --program-transform-=* \
681
  | --program-transform=* | --program-transfor=* \
682
  | --program-transfo=* | --program-transf=* \
683
  | --program-trans=* | --program-tran=* \
684
  | --progr-tra=* | --program-tr=* | --program-t=*)
685
    program_transform_name=$ac_optarg ;;
686
 
687
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688
  | -silent | --silent | --silen | --sile | --sil)
689
    silent=yes ;;
690
 
691
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692
    ac_prev=sbindir ;;
693
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694
  | --sbi=* | --sb=*)
695
    sbindir=$ac_optarg ;;
696
 
697
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699
  | --sharedst | --shareds | --shared | --share | --shar \
700
  | --sha | --sh)
701
    ac_prev=sharedstatedir ;;
702
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705
  | --sha=* | --sh=*)
706
    sharedstatedir=$ac_optarg ;;
707
 
708
  -site | --site | --sit)
709
    ac_prev=site ;;
710
  -site=* | --site=* | --sit=*)
711
    site=$ac_optarg ;;
712
 
713
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714
    ac_prev=srcdir ;;
715
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716
    srcdir=$ac_optarg ;;
717
 
718
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719
  | --syscon | --sysco | --sysc | --sys | --sy)
720
    ac_prev=sysconfdir ;;
721
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723
    sysconfdir=$ac_optarg ;;
724
 
725
  -target | --target | --targe | --targ | --tar | --ta | --t)
726
    ac_prev=target_alias ;;
727
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728
    target_alias=$ac_optarg ;;
729
 
730
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731
    verbose=yes ;;
732
 
733
  -version | --version | --versio | --versi | --vers | -V)
734
    ac_init_version=: ;;
735
 
736
  -with-* | --with-*)
737
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738
    # Reject names that are not valid shell variable names.
739
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740
      { echo "$as_me: error: invalid package name: $ac_package" >&2
741
   { (exit 1); exit 1; }; }
742
    ac_package=`echo $ac_package| sed 's/-/_/g'`
743
    case $ac_option in
744
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745
      *) ac_optarg=yes ;;
746
    esac
747
    eval "with_$ac_package='$ac_optarg'" ;;
748
 
749
  -without-* | --without-*)
750
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751
    # Reject names that are not valid shell variable names.
752
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753
      { echo "$as_me: error: invalid package name: $ac_package" >&2
754
   { (exit 1); exit 1; }; }
755
    ac_package=`echo $ac_package | sed 's/-/_/g'`
756
    eval "with_$ac_package=no" ;;
757
 
758
  --x)
759
    # Obsolete; use --with-x.
760
    with_x=yes ;;
761
 
762
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763
  | --x-incl | --x-inc | --x-in | --x-i)
764
    ac_prev=x_includes ;;
765
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767
    x_includes=$ac_optarg ;;
768
 
769
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771
    ac_prev=x_libraries ;;
772
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774
    x_libraries=$ac_optarg ;;
775
 
776
  -*) { echo "$as_me: error: unrecognized option: $ac_option
777
Try \`$0 --help' for more information." >&2
778
   { (exit 1); exit 1; }; }
779
    ;;
780
 
781
  *=*)
782
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783
    # Reject names that are not valid shell variable names.
784
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786
   { (exit 1); exit 1; }; }
787
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788
    eval "$ac_envvar='$ac_optarg'"
789
    export $ac_envvar ;;
790
 
791
  *)
792
    # FIXME: should be removed in autoconf 3.0.
793
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797
    ;;
798
 
799
  esac
800
done
801
 
802
if test -n "$ac_prev"; then
803
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804
  { echo "$as_me: error: missing argument to $ac_option" >&2
805
   { (exit 1); exit 1; }; }
806
fi
807
 
808
# Be sure to have absolute paths.
809
for ac_var in exec_prefix prefix
810
do
811
  eval ac_val=$`echo $ac_var`
812
  case $ac_val in
813
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815
   { (exit 1); exit 1; }; };;
816
  esac
817
done
818
 
819
# Be sure to have absolute paths.
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821
              localstatedir libdir includedir oldincludedir infodir mandir
822
do
823
  eval ac_val=$`echo $ac_var`
824
  case $ac_val in
825
    [\\/$]* | ?:[\\/]* ) ;;
826
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827
   { (exit 1); exit 1; }; };;
828
  esac
829
done
830
 
831
# There might be people who depend on the old broken behavior: `$host'
832
# used to hold the argument of --host etc.
833
# FIXME: To remove some day.
834
build=$build_alias
835
host=$host_alias
836
target=$target_alias
837
 
838
# FIXME: To remove some day.
839
if test "x$host_alias" != x; then
840
  if test "x$build_alias" = x; then
841
    cross_compiling=maybe
842
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843
    If a cross compiler is detected then cross compile mode will be used." >&2
844
  elif test "x$build_alias" != "x$host_alias"; then
845
    cross_compiling=yes
846
  fi
847
fi
848
 
849
ac_tool_prefix=
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
 
852
test "$silent" = yes && exec 6>/dev/null
853
 
854
 
855
# Find the source files, if location was not specified.
856
if test -z "$srcdir"; then
857
  ac_srcdir_defaulted=yes
858
  # Try the directory containing this script, then its parent.
859
  ac_confdir=`(dirname "$0") 2>/dev/null ||
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
         X"$0" : 'X\(//\)[^/]' \| \
862
         X"$0" : 'X\(//\)$' \| \
863
         X"$0" : 'X\(/\)' \| \
864
         .     : '\(.\)' 2>/dev/null ||
865
echo X"$0" |
866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
          /^X\(\/\/\)$/{ s//\1/; q; }
869
          /^X\(\/\).*/{ s//\1/; q; }
870
          s/.*/./; q'`
871
  srcdir=$ac_confdir
872
  if test ! -r $srcdir/$ac_unique_file; then
873
    srcdir=..
874
  fi
875
else
876
  ac_srcdir_defaulted=no
877
fi
878
if test ! -r $srcdir/$ac_unique_file; then
879
  if test "$ac_srcdir_defaulted" = yes; then
880
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881
   { (exit 1); exit 1; }; }
882
  else
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884
   { (exit 1); exit 1; }; }
885
  fi
886
fi
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889
   { (exit 1); exit 1; }; }
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891
ac_env_build_alias_set=${build_alias+set}
892
ac_env_build_alias_value=$build_alias
893
ac_cv_env_build_alias_set=${build_alias+set}
894
ac_cv_env_build_alias_value=$build_alias
895
ac_env_host_alias_set=${host_alias+set}
896
ac_env_host_alias_value=$host_alias
897
ac_cv_env_host_alias_set=${host_alias+set}
898
ac_cv_env_host_alias_value=$host_alias
899
ac_env_target_alias_set=${target_alias+set}
900
ac_env_target_alias_value=$target_alias
901
ac_cv_env_target_alias_set=${target_alias+set}
902
ac_cv_env_target_alias_value=$target_alias
903
ac_env_CC_set=${CC+set}
904
ac_env_CC_value=$CC
905
ac_cv_env_CC_set=${CC+set}
906
ac_cv_env_CC_value=$CC
907
ac_env_CFLAGS_set=${CFLAGS+set}
908
ac_env_CFLAGS_value=$CFLAGS
909
ac_cv_env_CFLAGS_set=${CFLAGS+set}
910
ac_cv_env_CFLAGS_value=$CFLAGS
911
ac_env_LDFLAGS_set=${LDFLAGS+set}
912
ac_env_LDFLAGS_value=$LDFLAGS
913
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914
ac_cv_env_LDFLAGS_value=$LDFLAGS
915
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916
ac_env_CPPFLAGS_value=$CPPFLAGS
917
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919
ac_env_CPP_set=${CPP+set}
920
ac_env_CPP_value=$CPP
921
ac_cv_env_CPP_set=${CPP+set}
922
ac_cv_env_CPP_value=$CPP
923
 
924
#
925
# Report the --help message.
926
#
927
if test "$ac_init_help" = "long"; then
928
  # Omit some internal or obsolete options to make the list less imposing.
929
  # This message is too long to be a string in the A/UX 3.1 sh.
930
  cat <<_ACEOF
931
\`configure' configures this package to adapt to many kinds of systems.
932
 
933
Usage: $0 [OPTION]... [VAR=VALUE]...
934
 
935
To assign environment variables (e.g., CC, CFLAGS...), specify them as
936
VAR=VALUE.  See below for descriptions of some of the useful variables.
937
 
938
Defaults for the options are specified in brackets.
939
 
940
Configuration:
941
  -h, --help              display this help and exit
942
      --help=short        display options specific to this package
943
      --help=recursive    display the short help of all the included packages
944
  -V, --version           display version information and exit
945
  -q, --quiet, --silent   do not print \`checking...' messages
946
      --cache-file=FILE   cache test results in FILE [disabled]
947
  -C, --config-cache      alias for \`--cache-file=config.cache'
948
  -n, --no-create         do not create output files
949
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
 
951
_ACEOF
952
 
953
  cat <<_ACEOF
954
Installation directories:
955
  --prefix=PREFIX         install architecture-independent files in PREFIX
956
                          [$ac_default_prefix]
957
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958
                          [PREFIX]
959
 
960
By default, \`make install' will install all the files in
961
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963
for instance \`--prefix=\$HOME'.
964
 
965
For better control, use the options below.
966
 
967
Fine tuning of the installation directories:
968
  --bindir=DIR           user executables [EPREFIX/bin]
969
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
970
  --libexecdir=DIR       program executables [EPREFIX/libexec]
971
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975
  --libdir=DIR           object code libraries [EPREFIX/lib]
976
  --includedir=DIR       C header files [PREFIX/include]
977
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978
  --infodir=DIR          info documentation [PREFIX/info]
979
  --mandir=DIR           man documentation [PREFIX/man]
980
_ACEOF
981
 
982
  cat <<\_ACEOF
983
 
984
Program names:
985
  --program-prefix=PREFIX            prepend PREFIX to installed program names
986
  --program-suffix=SUFFIX            append SUFFIX to installed program names
987
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
 
989
System types:
990
  --build=BUILD     configure for building on BUILD [guessed]
991
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992
  --target=TARGET   configure for building compilers for TARGET [HOST]
993
_ACEOF
994
fi
995
 
996
if test -n "$ac_init_help"; then
997
 
998
  cat <<\_ACEOF
999
 
1000
Optional Features:
1001
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003
  --disable-dependency-tracking  speeds up one-time build
1004
  --enable-dependency-tracking   do not reject slow dependency extractors
1005
  --enable-shared[=PKGS]
1006
                          build shared libraries [default=yes]
1007
  --enable-static[=PKGS]
1008
                          build static libraries [default=yes]
1009
  --enable-fast-install[=PKGS]
1010
                          optimize for fast installation [default=yes]
1011
  --disable-libtool-lock  avoid locking (might break parallel builds)
1012
  --enable-targets        alternative target configurations
1013
  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014
  --enable-werror         treat compile warnings as errors
1015
  --enable-build-warnings enable build-time compiler warnings
1016
  --disable-nls           do not use Native Language Support
1017
  --enable-maintainer-mode  enable make rules and dependencies not useful
1018
                          (and sometimes confusing) to the casual installer
1019
  --disable-rpath         do not hardcode runtime library paths
1020
 
1021
Optional Packages:
1022
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024
  --with-pic              try to use only PIC/non-PIC objects [default=use
1025
                          both]
1026
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1028
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1029
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1030
 
1031
Some influential environment variables:
1032
  CC          C compiler command
1033
  CFLAGS      C compiler flags
1034
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1035
              nonstandard directory 
1036
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1037
              headers in a nonstandard directory 
1038
  CPP         C preprocessor
1039
 
1040
Use these variables to override the choices made by `configure' or to help
1041
it to find libraries and programs with nonstandard names/locations.
1042
 
1043
_ACEOF
1044
fi
1045
 
1046
if test "$ac_init_help" = "recursive"; then
1047
  # If there are subdirs, report their specific --help.
1048
  ac_popdir=`pwd`
1049
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1050
    test -d $ac_dir || continue
1051
    ac_builddir=.
1052
 
1053
if test "$ac_dir" != .; then
1054
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1055
  # A "../" for each directory in $ac_dir_suffix.
1056
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1057
else
1058
  ac_dir_suffix= ac_top_builddir=
1059
fi
1060
 
1061
case $srcdir in
1062
  .)  # No --srcdir option.  We are building in place.
1063
    ac_srcdir=.
1064
    if test -z "$ac_top_builddir"; then
1065
       ac_top_srcdir=.
1066
    else
1067
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1068
    fi ;;
1069
  [\\/]* | ?:[\\/]* )  # Absolute path.
1070
    ac_srcdir=$srcdir$ac_dir_suffix;
1071
    ac_top_srcdir=$srcdir ;;
1072
  *) # Relative path.
1073
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1074
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075
esac
1076
 
1077
# Do not use `cd foo && pwd` to compute absolute paths, because
1078
# the directories may not exist.
1079
case `pwd` in
1080
.) ac_abs_builddir="$ac_dir";;
1081
*)
1082
  case "$ac_dir" in
1083
  .) ac_abs_builddir=`pwd`;;
1084
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1085
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086
  esac;;
1087
esac
1088
case $ac_abs_builddir in
1089
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1090
*)
1091
  case ${ac_top_builddir}. in
1092
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1093
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1094
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095
  esac;;
1096
esac
1097
case $ac_abs_builddir in
1098
.) ac_abs_srcdir=$ac_srcdir;;
1099
*)
1100
  case $ac_srcdir in
1101
  .) ac_abs_srcdir=$ac_abs_builddir;;
1102
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1103
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104
  esac;;
1105
esac
1106
case $ac_abs_builddir in
1107
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1108
*)
1109
  case $ac_top_srcdir in
1110
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1111
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1112
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1113
  esac;;
1114
esac
1115
 
1116
    cd $ac_dir
1117
    # Check for guested configure; otherwise get Cygnus style configure.
1118
    if test -f $ac_srcdir/configure.gnu; then
1119
      echo
1120
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1121
    elif test -f $ac_srcdir/configure; then
1122
      echo
1123
      $SHELL $ac_srcdir/configure  --help=recursive
1124
    elif test -f $ac_srcdir/configure.ac ||
1125
           test -f $ac_srcdir/configure.in; then
1126
      echo
1127
      $ac_configure --help
1128
    else
1129
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130
    fi
1131
    cd $ac_popdir
1132
  done
1133
fi
1134
 
1135
test -n "$ac_init_help" && exit 0
1136
if $ac_init_version; then
1137
  cat <<\_ACEOF
1138
 
1139
Copyright (C) 2003 Free Software Foundation, Inc.
1140
This configure script is free software; the Free Software Foundation
1141
gives unlimited permission to copy, distribute and modify it.
1142
_ACEOF
1143
  exit 0
1144
fi
1145
exec 5>config.log
1146
cat >&5 <<_ACEOF
1147
This file contains any messages produced by compilers while
1148
running configure, to aid debugging if configure makes a mistake.
1149
 
1150
It was created by $as_me, which was
1151
generated by GNU Autoconf 2.59.  Invocation command line was
1152
 
1153
  $ $0 $@
1154
 
1155
_ACEOF
1156
{
1157
cat <<_ASUNAME
1158
## --------- ##
1159
## Platform. ##
1160
## --------- ##
1161
 
1162
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
 
1168
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
 
1171
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
 
1179
_ASUNAME
1180
 
1181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182
for as_dir in $PATH
1183
do
1184
  IFS=$as_save_IFS
1185
  test -z "$as_dir" && as_dir=.
1186
  echo "PATH: $as_dir"
1187
done
1188
 
1189
} >&5
1190
 
1191
cat >&5 <<_ACEOF
1192
 
1193
 
1194
## ----------- ##
1195
## Core tests. ##
1196
## ----------- ##
1197
 
1198
_ACEOF
1199
 
1200
 
1201
# Keep a trace of the command line.
1202
# Strip out --no-create and --no-recursion so they do not pile up.
1203
# Strip out --silent because we don't want to record it for future runs.
1204
# Also quote any args containing shell meta-characters.
1205
# Make two passes to allow for proper duplicate-argument suppression.
1206
ac_configure_args=
1207
ac_configure_args0=
1208
ac_configure_args1=
1209
ac_sep=
1210
ac_must_keep_next=false
1211
for ac_pass in 1 2
1212
do
1213
  for ac_arg
1214
  do
1215
    case $ac_arg in
1216
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218
    | -silent | --silent | --silen | --sile | --sil)
1219
      continue ;;
1220
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222
    esac
1223
    case $ac_pass in
1224
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225
    2)
1226
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227
      if test $ac_must_keep_next = true; then
1228
        ac_must_keep_next=false # Got value, back to normal.
1229
      else
1230
        case $ac_arg in
1231
          *=* | --config-cache | -C | -disable-* | --disable-* \
1232
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234
          | -with-* | --with-* | -without-* | --without-* | --x)
1235
            case "$ac_configure_args0 " in
1236
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237
            esac
1238
            ;;
1239
          -* ) ac_must_keep_next=true ;;
1240
        esac
1241
      fi
1242
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243
      # Get rid of the leading space.
1244
      ac_sep=" "
1245
      ;;
1246
    esac
1247
  done
1248
done
1249
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
 
1252
# When interrupted or exit'd, cleanup temporary files, and complete
1253
# config.log.  We remove comments because anyway the quotes in there
1254
# would cause problems or look ugly.
1255
# WARNING: Be sure not to use single quotes in there, as some shells,
1256
# such as our DU 5.0 friend, will then `close' the trap.
1257
trap 'exit_status=$?
1258
  # Save into config.log some information that might help in debugging.
1259
  {
1260
    echo
1261
 
1262
    cat <<\_ASBOX
1263
## ---------------- ##
1264
## Cache variables. ##
1265
## ---------------- ##
1266
_ASBOX
1267
    echo
1268
    # The following way of writing the cache mishandles newlines in values,
1269
{
1270
  (set) 2>&1 |
1271
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272
    *ac_space=\ *)
1273
      sed -n \
1274
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276
      ;;
1277
    *)
1278
      sed -n \
1279
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280
      ;;
1281
    esac;
1282
}
1283
    echo
1284
 
1285
    cat <<\_ASBOX
1286
## ----------------- ##
1287
## Output variables. ##
1288
## ----------------- ##
1289
_ASBOX
1290
    echo
1291
    for ac_var in $ac_subst_vars
1292
    do
1293
      eval ac_val=$`echo $ac_var`
1294
      echo "$ac_var='"'"'$ac_val'"'"'"
1295
    done | sort
1296
    echo
1297
 
1298
    if test -n "$ac_subst_files"; then
1299
      cat <<\_ASBOX
1300
## ------------- ##
1301
## Output files. ##
1302
## ------------- ##
1303
_ASBOX
1304
      echo
1305
      for ac_var in $ac_subst_files
1306
      do
1307
        eval ac_val=$`echo $ac_var`
1308
        echo "$ac_var='"'"'$ac_val'"'"'"
1309
      done | sort
1310
      echo
1311
    fi
1312
 
1313
    if test -s confdefs.h; then
1314
      cat <<\_ASBOX
1315
## ----------- ##
1316
## confdefs.h. ##
1317
## ----------- ##
1318
_ASBOX
1319
      echo
1320
      sed "/^$/d" confdefs.h | sort
1321
      echo
1322
    fi
1323
    test "$ac_signal" != 0 &&
1324
      echo "$as_me: caught signal $ac_signal"
1325
    echo "$as_me: exit $exit_status"
1326
  } >&5
1327
  rm -f core *.core &&
1328
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329
    exit $exit_status
1330
     ' 0
1331
for ac_signal in 1 2 13 15; do
1332
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333
done
1334
ac_signal=0
1335
 
1336
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337
rm -rf conftest* confdefs.h
1338
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339
echo >confdefs.h
1340
 
1341
# Predefined preprocessor variables.
1342
 
1343
cat >>confdefs.h <<_ACEOF
1344
#define PACKAGE_NAME "$PACKAGE_NAME"
1345
_ACEOF
1346
 
1347
 
1348
cat >>confdefs.h <<_ACEOF
1349
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350
_ACEOF
1351
 
1352
 
1353
cat >>confdefs.h <<_ACEOF
1354
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355
_ACEOF
1356
 
1357
 
1358
cat >>confdefs.h <<_ACEOF
1359
#define PACKAGE_STRING "$PACKAGE_STRING"
1360
_ACEOF
1361
 
1362
 
1363
cat >>confdefs.h <<_ACEOF
1364
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365
_ACEOF
1366
 
1367
 
1368
# Let the site file select an alternate cache file if it wants to.
1369
# Prefer explicitly selected file to automatically selected ones.
1370
if test -z "$CONFIG_SITE"; then
1371
  if test "x$prefix" != xNONE; then
1372
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373
  else
1374
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375
  fi
1376
fi
1377
for ac_site_file in $CONFIG_SITE; do
1378
  if test -r "$ac_site_file"; then
1379
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380
echo "$as_me: loading site script $ac_site_file" >&6;}
1381
    sed 's/^/| /' "$ac_site_file" >&5
1382
    . "$ac_site_file"
1383
  fi
1384
done
1385
 
1386
if test -r "$cache_file"; then
1387
  # Some versions of bash will fail to source /dev/null (special
1388
  # files actually), so we avoid doing that.
1389
  if test -f "$cache_file"; then
1390
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391
echo "$as_me: loading cache $cache_file" >&6;}
1392
    case $cache_file in
1393
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1394
      *)                      . ./$cache_file;;
1395
    esac
1396
  fi
1397
else
1398
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399
echo "$as_me: creating cache $cache_file" >&6;}
1400
  >$cache_file
1401
fi
1402
 
1403
# Check that the precious variables saved in the cache have kept the same
1404
# value.
1405
ac_cache_corrupted=false
1406
for ac_var in `(set) 2>&1 |
1407
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409
  eval ac_new_set=\$ac_env_${ac_var}_set
1410
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411
  eval ac_new_val="\$ac_env_${ac_var}_value"
1412
  case $ac_old_set,$ac_new_set in
1413
    set,)
1414
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416
      ac_cache_corrupted=: ;;
1417
    ,set)
1418
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420
      ac_cache_corrupted=: ;;
1421
    ,);;
1422
    *)
1423
      if test "x$ac_old_val" != "x$ac_new_val"; then
1424
        # differences in whitespace do not lead to failure.
1425
        ac_old_val_w=`echo x $ac_old_val`
1426
        ac_new_val_w=`echo x $ac_new_val`
1427
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430
          ac_cache_corrupted=:
1431
        else
1432
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434
          eval $ac_var=\$ac_old_val
1435
        fi
1436
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1437
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1438
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1439
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1440
      fi;;
1441
  esac
1442
  # Pass precious variables to config.status.
1443
  if test "$ac_new_set" = set; then
1444
    case $ac_new_val in
1445
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447
    *) ac_arg=$ac_var=$ac_new_val ;;
1448
    esac
1449
    case " $ac_configure_args " in
1450
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1451
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452
    esac
1453
  fi
1454
done
1455
if $ac_cache_corrupted; then
1456
  { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457
echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462
   { (exit 1); exit 1; }; }
1463
fi
1464
 
1465
ac_ext=c
1466
ac_cpp='$CPP $CPPFLAGS'
1467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
ac_aux_dir=
1495
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1496
  if test -f $ac_dir/install-sh; then
1497
    ac_aux_dir=$ac_dir
1498
    ac_install_sh="$ac_aux_dir/install-sh -c"
1499
    break
1500
  elif test -f $ac_dir/install.sh; then
1501
    ac_aux_dir=$ac_dir
1502
    ac_install_sh="$ac_aux_dir/install.sh -c"
1503
    break
1504
  elif test -f $ac_dir/shtool; then
1505
    ac_aux_dir=$ac_dir
1506
    ac_install_sh="$ac_aux_dir/shtool install -c"
1507
    break
1508
  fi
1509
done
1510
if test -z "$ac_aux_dir"; then
1511
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1512
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1513
   { (exit 1); exit 1; }; }
1514
fi
1515
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1516
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1517
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1518
 
1519
# Make sure we can run config.sub.
1520
$ac_config_sub sun4 >/dev/null 2>&1 ||
1521
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523
   { (exit 1); exit 1; }; }
1524
 
1525
echo "$as_me:$LINENO: checking build system type" >&5
1526
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527
if test "${ac_cv_build+set}" = set; then
1528
  echo $ECHO_N "(cached) $ECHO_C" >&6
1529
else
1530
  ac_cv_build_alias=$build_alias
1531
test -z "$ac_cv_build_alias" &&
1532
  ac_cv_build_alias=`$ac_config_guess`
1533
test -z "$ac_cv_build_alias" &&
1534
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536
   { (exit 1); exit 1; }; }
1537
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540
   { (exit 1); exit 1; }; }
1541
 
1542
fi
1543
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544
echo "${ECHO_T}$ac_cv_build" >&6
1545
build=$ac_cv_build
1546
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
 
1550
 
1551
echo "$as_me:$LINENO: checking host system type" >&5
1552
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553
if test "${ac_cv_host+set}" = set; then
1554
  echo $ECHO_N "(cached) $ECHO_C" >&6
1555
else
1556
  ac_cv_host_alias=$host_alias
1557
test -z "$ac_cv_host_alias" &&
1558
  ac_cv_host_alias=$ac_cv_build_alias
1559
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562
   { (exit 1); exit 1; }; }
1563
 
1564
fi
1565
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566
echo "${ECHO_T}$ac_cv_host" >&6
1567
host=$ac_cv_host
1568
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
 
1572
 
1573
echo "$as_me:$LINENO: checking target system type" >&5
1574
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575
if test "${ac_cv_target+set}" = set; then
1576
  echo $ECHO_N "(cached) $ECHO_C" >&6
1577
else
1578
  ac_cv_target_alias=$target_alias
1579
test "x$ac_cv_target_alias" = "x" &&
1580
  ac_cv_target_alias=$ac_cv_host_alias
1581
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584
   { (exit 1); exit 1; }; }
1585
 
1586
fi
1587
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588
echo "${ECHO_T}$ac_cv_target" >&6
1589
target=$ac_cv_target
1590
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
 
1594
 
1595
# The aliases save the names the user supplied, while $host etc.
1596
# will get canonicalized.
1597
test -n "$target_alias" &&
1598
  test "$program_prefix$program_suffix$program_transform_name" = \
1599
    NONENONEs,x,x, &&
1600
  program_prefix=${target_alias}-
1601
ac_ext=c
1602
ac_cpp='$CPP $CPPFLAGS'
1603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606
if test -n "$ac_tool_prefix"; then
1607
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1609
echo "$as_me:$LINENO: checking for $ac_word" >&5
1610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611
if test "${ac_cv_prog_CC+set}" = set; then
1612
  echo $ECHO_N "(cached) $ECHO_C" >&6
1613
else
1614
  if test -n "$CC"; then
1615
  ac_cv_prog_CC="$CC" # Let the user override the test.
1616
else
1617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618
for as_dir in $PATH
1619
do
1620
  IFS=$as_save_IFS
1621
  test -z "$as_dir" && as_dir=.
1622
  for ac_exec_ext in '' $ac_executable_extensions; do
1623
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1625
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626
    break 2
1627
  fi
1628
done
1629
done
1630
 
1631
fi
1632
fi
1633
CC=$ac_cv_prog_CC
1634
if test -n "$CC"; then
1635
  echo "$as_me:$LINENO: result: $CC" >&5
1636
echo "${ECHO_T}$CC" >&6
1637
else
1638
  echo "$as_me:$LINENO: result: no" >&5
1639
echo "${ECHO_T}no" >&6
1640
fi
1641
 
1642
fi
1643
if test -z "$ac_cv_prog_CC"; then
1644
  ac_ct_CC=$CC
1645
  # Extract the first word of "gcc", so it can be a program name with args.
1646
set dummy gcc; ac_word=$2
1647
echo "$as_me:$LINENO: checking for $ac_word" >&5
1648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650
  echo $ECHO_N "(cached) $ECHO_C" >&6
1651
else
1652
  if test -n "$ac_ct_CC"; then
1653
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654
else
1655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656
for as_dir in $PATH
1657
do
1658
  IFS=$as_save_IFS
1659
  test -z "$as_dir" && as_dir=.
1660
  for ac_exec_ext in '' $ac_executable_extensions; do
1661
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662
    ac_cv_prog_ac_ct_CC="gcc"
1663
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664
    break 2
1665
  fi
1666
done
1667
done
1668
 
1669
fi
1670
fi
1671
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672
if test -n "$ac_ct_CC"; then
1673
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674
echo "${ECHO_T}$ac_ct_CC" >&6
1675
else
1676
  echo "$as_me:$LINENO: result: no" >&5
1677
echo "${ECHO_T}no" >&6
1678
fi
1679
 
1680
  CC=$ac_ct_CC
1681
else
1682
  CC="$ac_cv_prog_CC"
1683
fi
1684
 
1685
if test -z "$CC"; then
1686
  if test -n "$ac_tool_prefix"; then
1687
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1688
set dummy ${ac_tool_prefix}cc; ac_word=$2
1689
echo "$as_me:$LINENO: checking for $ac_word" >&5
1690
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691
if test "${ac_cv_prog_CC+set}" = set; then
1692
  echo $ECHO_N "(cached) $ECHO_C" >&6
1693
else
1694
  if test -n "$CC"; then
1695
  ac_cv_prog_CC="$CC" # Let the user override the test.
1696
else
1697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698
for as_dir in $PATH
1699
do
1700
  IFS=$as_save_IFS
1701
  test -z "$as_dir" && as_dir=.
1702
  for ac_exec_ext in '' $ac_executable_extensions; do
1703
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1705
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706
    break 2
1707
  fi
1708
done
1709
done
1710
 
1711
fi
1712
fi
1713
CC=$ac_cv_prog_CC
1714
if test -n "$CC"; then
1715
  echo "$as_me:$LINENO: result: $CC" >&5
1716
echo "${ECHO_T}$CC" >&6
1717
else
1718
  echo "$as_me:$LINENO: result: no" >&5
1719
echo "${ECHO_T}no" >&6
1720
fi
1721
 
1722
fi
1723
if test -z "$ac_cv_prog_CC"; then
1724
  ac_ct_CC=$CC
1725
  # Extract the first word of "cc", so it can be a program name with args.
1726
set dummy cc; ac_word=$2
1727
echo "$as_me:$LINENO: checking for $ac_word" >&5
1728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730
  echo $ECHO_N "(cached) $ECHO_C" >&6
1731
else
1732
  if test -n "$ac_ct_CC"; then
1733
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734
else
1735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736
for as_dir in $PATH
1737
do
1738
  IFS=$as_save_IFS
1739
  test -z "$as_dir" && as_dir=.
1740
  for ac_exec_ext in '' $ac_executable_extensions; do
1741
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742
    ac_cv_prog_ac_ct_CC="cc"
1743
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744
    break 2
1745
  fi
1746
done
1747
done
1748
 
1749
fi
1750
fi
1751
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752
if test -n "$ac_ct_CC"; then
1753
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754
echo "${ECHO_T}$ac_ct_CC" >&6
1755
else
1756
  echo "$as_me:$LINENO: result: no" >&5
1757
echo "${ECHO_T}no" >&6
1758
fi
1759
 
1760
  CC=$ac_ct_CC
1761
else
1762
  CC="$ac_cv_prog_CC"
1763
fi
1764
 
1765
fi
1766
if test -z "$CC"; then
1767
  # Extract the first word of "cc", so it can be a program name with args.
1768
set dummy cc; ac_word=$2
1769
echo "$as_me:$LINENO: checking for $ac_word" >&5
1770
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771
if test "${ac_cv_prog_CC+set}" = set; then
1772
  echo $ECHO_N "(cached) $ECHO_C" >&6
1773
else
1774
  if test -n "$CC"; then
1775
  ac_cv_prog_CC="$CC" # Let the user override the test.
1776
else
1777
  ac_prog_rejected=no
1778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779
for as_dir in $PATH
1780
do
1781
  IFS=$as_save_IFS
1782
  test -z "$as_dir" && as_dir=.
1783
  for ac_exec_ext in '' $ac_executable_extensions; do
1784
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786
       ac_prog_rejected=yes
1787
       continue
1788
     fi
1789
    ac_cv_prog_CC="cc"
1790
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1791
    break 2
1792
  fi
1793
done
1794
done
1795
 
1796
if test $ac_prog_rejected = yes; then
1797
  # We found a bogon in the path, so make sure we never use it.
1798
  set dummy $ac_cv_prog_CC
1799
  shift
1800
  if test $# != 0; then
1801
    # We chose a different compiler from the bogus one.
1802
    # However, it has the same basename, so the bogon will be chosen
1803
    # first if we set CC to just the basename; use the full file name.
1804
    shift
1805
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806
  fi
1807
fi
1808
fi
1809
fi
1810
CC=$ac_cv_prog_CC
1811
if test -n "$CC"; then
1812
  echo "$as_me:$LINENO: result: $CC" >&5
1813
echo "${ECHO_T}$CC" >&6
1814
else
1815
  echo "$as_me:$LINENO: result: no" >&5
1816
echo "${ECHO_T}no" >&6
1817
fi
1818
 
1819
fi
1820
if test -z "$CC"; then
1821
  if test -n "$ac_tool_prefix"; then
1822
  for ac_prog in cl
1823
  do
1824
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1826
echo "$as_me:$LINENO: checking for $ac_word" >&5
1827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828
if test "${ac_cv_prog_CC+set}" = set; then
1829
  echo $ECHO_N "(cached) $ECHO_C" >&6
1830
else
1831
  if test -n "$CC"; then
1832
  ac_cv_prog_CC="$CC" # Let the user override the test.
1833
else
1834
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835
for as_dir in $PATH
1836
do
1837
  IFS=$as_save_IFS
1838
  test -z "$as_dir" && as_dir=.
1839
  for ac_exec_ext in '' $ac_executable_extensions; do
1840
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1842
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843
    break 2
1844
  fi
1845
done
1846
done
1847
 
1848
fi
1849
fi
1850
CC=$ac_cv_prog_CC
1851
if test -n "$CC"; then
1852
  echo "$as_me:$LINENO: result: $CC" >&5
1853
echo "${ECHO_T}$CC" >&6
1854
else
1855
  echo "$as_me:$LINENO: result: no" >&5
1856
echo "${ECHO_T}no" >&6
1857
fi
1858
 
1859
    test -n "$CC" && break
1860
  done
1861
fi
1862
if test -z "$CC"; then
1863
  ac_ct_CC=$CC
1864
  for ac_prog in cl
1865
do
1866
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1867
set dummy $ac_prog; ac_word=$2
1868
echo "$as_me:$LINENO: checking for $ac_word" >&5
1869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871
  echo $ECHO_N "(cached) $ECHO_C" >&6
1872
else
1873
  if test -n "$ac_ct_CC"; then
1874
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875
else
1876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877
for as_dir in $PATH
1878
do
1879
  IFS=$as_save_IFS
1880
  test -z "$as_dir" && as_dir=.
1881
  for ac_exec_ext in '' $ac_executable_extensions; do
1882
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883
    ac_cv_prog_ac_ct_CC="$ac_prog"
1884
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885
    break 2
1886
  fi
1887
done
1888
done
1889
 
1890
fi
1891
fi
1892
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893
if test -n "$ac_ct_CC"; then
1894
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895
echo "${ECHO_T}$ac_ct_CC" >&6
1896
else
1897
  echo "$as_me:$LINENO: result: no" >&5
1898
echo "${ECHO_T}no" >&6
1899
fi
1900
 
1901
  test -n "$ac_ct_CC" && break
1902
done
1903
 
1904
  CC=$ac_ct_CC
1905
fi
1906
 
1907
fi
1908
 
1909
 
1910
test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1911
echo "$as_me: error: in \`$ac_pwd':" >&2;}
1912
{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913
See \`config.log' for more details." >&5
1914
echo "$as_me: error: no acceptable C compiler found in \$PATH
1915
See \`config.log' for more details." >&2;}
1916
   { (exit 1); exit 1; }; }; }
1917
 
1918
# Provide some information about the compiler.
1919
echo "$as_me:$LINENO:" \
1920
     "checking for C compiler version" >&5
1921
ac_compiler=`set X $ac_compile; echo $2`
1922
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1923
  (eval $ac_compiler --version &5) 2>&5
1924
  ac_status=$?
1925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
  (exit $ac_status); }
1927
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1928
  (eval $ac_compiler -v &5) 2>&5
1929
  ac_status=$?
1930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931
  (exit $ac_status); }
1932
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1933
  (eval $ac_compiler -V &5) 2>&5
1934
  ac_status=$?
1935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936
  (exit $ac_status); }
1937
 
1938
cat >conftest.$ac_ext <<_ACEOF
1939
/* confdefs.h.  */
1940
_ACEOF
1941
cat confdefs.h >>conftest.$ac_ext
1942
cat >>conftest.$ac_ext <<_ACEOF
1943
/* end confdefs.h.  */
1944
 
1945
int
1946
main ()
1947
{
1948
 
1949
  ;
1950
  return 0;
1951
}
1952
_ACEOF
1953
ac_clean_files_save=$ac_clean_files
1954
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1955
# Try to create an executable without -o first, disregard a.out.
1956
# It will help us diagnose broken compilers, and finding out an intuition
1957
# of exeext.
1958
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1959
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1960
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1961
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1962
  (eval $ac_link_default) 2>&5
1963
  ac_status=$?
1964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965
  (exit $ac_status); }; then
1966
  # Find the output, starting from the most likely.  This scheme is
1967
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1968
# resort.
1969
 
1970
# Be careful to initialize this variable, since it used to be cached.
1971
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972
ac_cv_exeext=
1973
# b.out is created by i960 compilers.
1974
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1975
do
1976
  test -f "$ac_file" || continue
1977
  case $ac_file in
1978
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1979
        ;;
1980
    conftest.$ac_ext )
1981
        # This is the source file.
1982
        ;;
1983
    [ab].out )
1984
        # We found the default executable, but exeext='' is most
1985
        # certainly right.
1986
        break;;
1987
    *.* )
1988
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1990
        # but it would be cool to find out if it's true.  Does anybody
1991
        # maintain Libtool? --akim.
1992
        export ac_cv_exeext
1993
        break;;
1994
    * )
1995
        break;;
1996
  esac
1997
done
1998
else
1999
  echo "$as_me: failed program was:" >&5
2000
sed 's/^/| /' conftest.$ac_ext >&5
2001
 
2002
{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2003
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2004
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2005
See \`config.log' for more details." >&5
2006
echo "$as_me: error: C compiler cannot create executables
2007
See \`config.log' for more details." >&2;}
2008
   { (exit 77); exit 77; }; }; }
2009
fi
2010
 
2011
ac_exeext=$ac_cv_exeext
2012
echo "$as_me:$LINENO: result: $ac_file" >&5
2013
echo "${ECHO_T}$ac_file" >&6
2014
 
2015
# Check the compiler produces executables we can run.  If not, either
2016
# the compiler is broken, or we cross compile.
2017
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2018
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2019
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2020
# If not cross compiling, check that we can run a simple program.
2021
if test "$cross_compiling" != yes; then
2022
  if { ac_try='./$ac_file'
2023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024
  (eval $ac_try) 2>&5
2025
  ac_status=$?
2026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027
  (exit $ac_status); }; }; then
2028
    cross_compiling=no
2029
  else
2030
    if test "$cross_compiling" = maybe; then
2031
        cross_compiling=yes
2032
    else
2033
        { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2034
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2035
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2036
If you meant to cross compile, use \`--host'.
2037
See \`config.log' for more details." >&5
2038
echo "$as_me: error: cannot run C compiled programs.
2039
If you meant to cross compile, use \`--host'.
2040
See \`config.log' for more details." >&2;}
2041
   { (exit 1); exit 1; }; }; }
2042
    fi
2043
  fi
2044
fi
2045
echo "$as_me:$LINENO: result: yes" >&5
2046
echo "${ECHO_T}yes" >&6
2047
 
2048
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2049
ac_clean_files=$ac_clean_files_save
2050
# Check the compiler produces executables we can run.  If not, either
2051
# the compiler is broken, or we cross compile.
2052
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2053
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2054
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2055
echo "${ECHO_T}$cross_compiling" >&6
2056
 
2057
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2058
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2060
  (eval $ac_link) 2>&5
2061
  ac_status=$?
2062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063
  (exit $ac_status); }; then
2064
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2065
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2066
# work properly (i.e., refer to `conftest.exe'), while it won't with
2067
# `rm'.
2068
for ac_file in conftest.exe conftest conftest.*; do
2069
  test -f "$ac_file" || continue
2070
  case $ac_file in
2071
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2072
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073
          export ac_cv_exeext
2074
          break;;
2075
    * ) break;;
2076
  esac
2077
done
2078
else
2079
  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2080
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2082
See \`config.log' for more details." >&5
2083
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2084
See \`config.log' for more details." >&2;}
2085
   { (exit 1); exit 1; }; }; }
2086
fi
2087
 
2088
rm -f conftest$ac_cv_exeext
2089
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2090
echo "${ECHO_T}$ac_cv_exeext" >&6
2091
 
2092
rm -f conftest.$ac_ext
2093
EXEEXT=$ac_cv_exeext
2094
ac_exeext=$EXEEXT
2095
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2096
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2097
if test "${ac_cv_objext+set}" = set; then
2098
  echo $ECHO_N "(cached) $ECHO_C" >&6
2099
else
2100
  cat >conftest.$ac_ext <<_ACEOF
2101
/* confdefs.h.  */
2102
_ACEOF
2103
cat confdefs.h >>conftest.$ac_ext
2104
cat >>conftest.$ac_ext <<_ACEOF
2105
/* end confdefs.h.  */
2106
 
2107
int
2108
main ()
2109
{
2110
 
2111
  ;
2112
  return 0;
2113
}
2114
_ACEOF
2115
rm -f conftest.o conftest.obj
2116
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2117
  (eval $ac_compile) 2>&5
2118
  ac_status=$?
2119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120
  (exit $ac_status); }; then
2121
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2122
  case $ac_file in
2123
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2124
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2125
       break;;
2126
  esac
2127
done
2128
else
2129
  echo "$as_me: failed program was:" >&5
2130
sed 's/^/| /' conftest.$ac_ext >&5
2131
 
2132
{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2133
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135
See \`config.log' for more details." >&5
2136
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137
See \`config.log' for more details." >&2;}
2138
   { (exit 1); exit 1; }; }; }
2139
fi
2140
 
2141
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142
fi
2143
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144
echo "${ECHO_T}$ac_cv_objext" >&6
2145
OBJEXT=$ac_cv_objext
2146
ac_objext=$OBJEXT
2147
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150
  echo $ECHO_N "(cached) $ECHO_C" >&6
2151
else
2152
  cat >conftest.$ac_ext <<_ACEOF
2153
/* confdefs.h.  */
2154
_ACEOF
2155
cat confdefs.h >>conftest.$ac_ext
2156
cat >>conftest.$ac_ext <<_ACEOF
2157
/* end confdefs.h.  */
2158
 
2159
int
2160
main ()
2161
{
2162
#ifndef __GNUC__
2163
       choke me
2164
#endif
2165
 
2166
  ;
2167
  return 0;
2168
}
2169
_ACEOF
2170
rm -f conftest.$ac_objext
2171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172
  (eval $ac_compile) 2>conftest.er1
2173
  ac_status=$?
2174
  grep -v '^ *+' conftest.er1 >conftest.err
2175
  rm -f conftest.er1
2176
  cat conftest.err >&5
2177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178
  (exit $ac_status); } &&
2179
         { ac_try='test -z "$ac_c_werror_flag"
2180
                         || test ! -s conftest.err'
2181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182
  (eval $ac_try) 2>&5
2183
  ac_status=$?
2184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185
  (exit $ac_status); }; } &&
2186
         { ac_try='test -s conftest.$ac_objext'
2187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188
  (eval $ac_try) 2>&5
2189
  ac_status=$?
2190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
  (exit $ac_status); }; }; then
2192
  ac_compiler_gnu=yes
2193
else
2194
  echo "$as_me: failed program was:" >&5
2195
sed 's/^/| /' conftest.$ac_ext >&5
2196
 
2197
ac_compiler_gnu=no
2198
fi
2199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2201
 
2202
fi
2203
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2204
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2205
GCC=`test $ac_compiler_gnu = yes && echo yes`
2206
ac_test_CFLAGS=${CFLAGS+set}
2207
ac_save_CFLAGS=$CFLAGS
2208
CFLAGS="-g"
2209
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2210
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2211
if test "${ac_cv_prog_cc_g+set}" = set; then
2212
  echo $ECHO_N "(cached) $ECHO_C" >&6
2213
else
2214
  cat >conftest.$ac_ext <<_ACEOF
2215
/* confdefs.h.  */
2216
_ACEOF
2217
cat confdefs.h >>conftest.$ac_ext
2218
cat >>conftest.$ac_ext <<_ACEOF
2219
/* end confdefs.h.  */
2220
 
2221
int
2222
main ()
2223
{
2224
 
2225
  ;
2226
  return 0;
2227
}
2228
_ACEOF
2229
rm -f conftest.$ac_objext
2230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231
  (eval $ac_compile) 2>conftest.er1
2232
  ac_status=$?
2233
  grep -v '^ *+' conftest.er1 >conftest.err
2234
  rm -f conftest.er1
2235
  cat conftest.err >&5
2236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237
  (exit $ac_status); } &&
2238
         { ac_try='test -z "$ac_c_werror_flag"
2239
                         || test ! -s conftest.err'
2240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241
  (eval $ac_try) 2>&5
2242
  ac_status=$?
2243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244
  (exit $ac_status); }; } &&
2245
         { ac_try='test -s conftest.$ac_objext'
2246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247
  (eval $ac_try) 2>&5
2248
  ac_status=$?
2249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
  (exit $ac_status); }; }; then
2251
  ac_cv_prog_cc_g=yes
2252
else
2253
  echo "$as_me: failed program was:" >&5
2254
sed 's/^/| /' conftest.$ac_ext >&5
2255
 
2256
ac_cv_prog_cc_g=no
2257
fi
2258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2259
fi
2260
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2261
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2262
if test "$ac_test_CFLAGS" = set; then
2263
  CFLAGS=$ac_save_CFLAGS
2264
elif test $ac_cv_prog_cc_g = yes; then
2265
  if test "$GCC" = yes; then
2266
    CFLAGS="-g -O2"
2267
  else
2268
    CFLAGS="-g"
2269
  fi
2270
else
2271
  if test "$GCC" = yes; then
2272
    CFLAGS="-O2"
2273
  else
2274
    CFLAGS=
2275
  fi
2276
fi
2277
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2278
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2279
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2280
  echo $ECHO_N "(cached) $ECHO_C" >&6
2281
else
2282
  ac_cv_prog_cc_stdc=no
2283
ac_save_CC=$CC
2284
cat >conftest.$ac_ext <<_ACEOF
2285
/* confdefs.h.  */
2286
_ACEOF
2287
cat confdefs.h >>conftest.$ac_ext
2288
cat >>conftest.$ac_ext <<_ACEOF
2289
/* end confdefs.h.  */
2290
#include 
2291
#include 
2292
#include 
2293
#include 
2294
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2295
struct buf { int x; };
2296
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2297
static char *e (p, i)
2298
     char **p;
2299
     int i;
2300
{
2301
  return p[i];
2302
}
2303
static char *f (char * (*g) (char **, int), char **p, ...)
2304
{
2305
  char *s;
2306
  va_list v;
2307
  va_start (v,p);
2308
  s = g (p, va_arg (v,int));
2309
  va_end (v);
2310
  return s;
2311
}
2312
 
2313
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2314
   function prototypes and stuff, but not '\xHH' hex character constants.
2315
   These don't provoke an error unfortunately, instead are silently treated
2316
   as 'x'.  The following induces an error, until -std1 is added to get
2317
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2318
   array size at least.  It's necessary to write '\x00'==0 to get something
2319
   that's true only with -std1.  */
2320
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2321
 
2322
int test (int i, double x);
2323
struct s1 {int (*f) (int a);};
2324
struct s2 {int (*f) (double a);};
2325
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2326
int argc;
2327
char **argv;
2328
int
2329
main ()
2330
{
2331
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2332
  ;
2333
  return 0;
2334
}
2335
_ACEOF
2336
# Don't try gcc -ansi; that turns off useful extensions and
2337
# breaks some systems' header files.
2338
# AIX                   -qlanglvl=ansi
2339
# Ultrix and OSF/1      -std1
2340
# HP-UX 10.20 and later -Ae
2341
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2342
# SVR4                  -Xc -D__EXTENSIONS__
2343
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2344
do
2345
  CC="$ac_save_CC $ac_arg"
2346
  rm -f conftest.$ac_objext
2347
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348
  (eval $ac_compile) 2>conftest.er1
2349
  ac_status=$?
2350
  grep -v '^ *+' conftest.er1 >conftest.err
2351
  rm -f conftest.er1
2352
  cat conftest.err >&5
2353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354
  (exit $ac_status); } &&
2355
         { ac_try='test -z "$ac_c_werror_flag"
2356
                         || test ! -s conftest.err'
2357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358
  (eval $ac_try) 2>&5
2359
  ac_status=$?
2360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361
  (exit $ac_status); }; } &&
2362
         { ac_try='test -s conftest.$ac_objext'
2363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364
  (eval $ac_try) 2>&5
2365
  ac_status=$?
2366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367
  (exit $ac_status); }; }; then
2368
  ac_cv_prog_cc_stdc=$ac_arg
2369
break
2370
else
2371
  echo "$as_me: failed program was:" >&5
2372
sed 's/^/| /' conftest.$ac_ext >&5
2373
 
2374
fi
2375
rm -f conftest.err conftest.$ac_objext
2376
done
2377
rm -f conftest.$ac_ext conftest.$ac_objext
2378
CC=$ac_save_CC
2379
 
2380
fi
2381
 
2382
case "x$ac_cv_prog_cc_stdc" in
2383
  x|xno)
2384
    echo "$as_me:$LINENO: result: none needed" >&5
2385
echo "${ECHO_T}none needed" >&6 ;;
2386
  *)
2387
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2388
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2389
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2390
esac
2391
 
2392
# Some people use a C++ compiler to compile C.  Since we use `exit',
2393
# in C++ we need to declare it.  In case someone uses the same compiler
2394
# for both compiling C and C++ we need to have the C++ compiler decide
2395
# the declaration of exit, since it's the most demanding environment.
2396
cat >conftest.$ac_ext <<_ACEOF
2397
#ifndef __cplusplus
2398
  choke me
2399
#endif
2400
_ACEOF
2401
rm -f conftest.$ac_objext
2402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403
  (eval $ac_compile) 2>conftest.er1
2404
  ac_status=$?
2405
  grep -v '^ *+' conftest.er1 >conftest.err
2406
  rm -f conftest.er1
2407
  cat conftest.err >&5
2408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
  (exit $ac_status); } &&
2410
         { ac_try='test -z "$ac_c_werror_flag"
2411
                         || test ! -s conftest.err'
2412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413
  (eval $ac_try) 2>&5
2414
  ac_status=$?
2415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
  (exit $ac_status); }; } &&
2417
         { ac_try='test -s conftest.$ac_objext'
2418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419
  (eval $ac_try) 2>&5
2420
  ac_status=$?
2421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422
  (exit $ac_status); }; }; then
2423
  for ac_declaration in \
2424
   '' \
2425
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2426
   'extern "C" void std::exit (int); using std::exit;' \
2427
   'extern "C" void exit (int) throw ();' \
2428
   'extern "C" void exit (int);' \
2429
   'void exit (int);'
2430
do
2431
  cat >conftest.$ac_ext <<_ACEOF
2432
/* confdefs.h.  */
2433
_ACEOF
2434
cat confdefs.h >>conftest.$ac_ext
2435
cat >>conftest.$ac_ext <<_ACEOF
2436
/* end confdefs.h.  */
2437
$ac_declaration
2438
#include 
2439
int
2440
main ()
2441
{
2442
exit (42);
2443
  ;
2444
  return 0;
2445
}
2446
_ACEOF
2447
rm -f conftest.$ac_objext
2448
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449
  (eval $ac_compile) 2>conftest.er1
2450
  ac_status=$?
2451
  grep -v '^ *+' conftest.er1 >conftest.err
2452
  rm -f conftest.er1
2453
  cat conftest.err >&5
2454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455
  (exit $ac_status); } &&
2456
         { ac_try='test -z "$ac_c_werror_flag"
2457
                         || test ! -s conftest.err'
2458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459
  (eval $ac_try) 2>&5
2460
  ac_status=$?
2461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
  (exit $ac_status); }; } &&
2463
         { ac_try='test -s conftest.$ac_objext'
2464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; }; then
2469
  :
2470
else
2471
  echo "$as_me: failed program was:" >&5
2472
sed 's/^/| /' conftest.$ac_ext >&5
2473
 
2474
continue
2475
fi
2476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477
  cat >conftest.$ac_ext <<_ACEOF
2478
/* confdefs.h.  */
2479
_ACEOF
2480
cat confdefs.h >>conftest.$ac_ext
2481
cat >>conftest.$ac_ext <<_ACEOF
2482
/* end confdefs.h.  */
2483
$ac_declaration
2484
int
2485
main ()
2486
{
2487
exit (42);
2488
  ;
2489
  return 0;
2490
}
2491
_ACEOF
2492
rm -f conftest.$ac_objext
2493
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494
  (eval $ac_compile) 2>conftest.er1
2495
  ac_status=$?
2496
  grep -v '^ *+' conftest.er1 >conftest.err
2497
  rm -f conftest.er1
2498
  cat conftest.err >&5
2499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
  (exit $ac_status); } &&
2501
         { ac_try='test -z "$ac_c_werror_flag"
2502
                         || test ! -s conftest.err'
2503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504
  (eval $ac_try) 2>&5
2505
  ac_status=$?
2506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
  (exit $ac_status); }; } &&
2508
         { ac_try='test -s conftest.$ac_objext'
2509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510
  (eval $ac_try) 2>&5
2511
  ac_status=$?
2512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
  (exit $ac_status); }; }; then
2514
  break
2515
else
2516
  echo "$as_me: failed program was:" >&5
2517
sed 's/^/| /' conftest.$ac_ext >&5
2518
 
2519
fi
2520
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521
done
2522
rm -f conftest*
2523
if test -n "$ac_declaration"; then
2524
  echo '#ifdef __cplusplus' >>confdefs.h
2525
  echo $ac_declaration      >>confdefs.h
2526
  echo '#endif'             >>confdefs.h
2527
fi
2528
 
2529
else
2530
  echo "$as_me: failed program was:" >&5
2531
sed 's/^/| /' conftest.$ac_ext >&5
2532
 
2533
fi
2534
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535
ac_ext=c
2536
ac_cpp='$CPP $CPPFLAGS'
2537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
 
2541
 
2542
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2543
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2544
if test "${ac_cv_search_strerror+set}" = set; then
2545
  echo $ECHO_N "(cached) $ECHO_C" >&6
2546
else
2547
  ac_func_search_save_LIBS=$LIBS
2548
ac_cv_search_strerror=no
2549
cat >conftest.$ac_ext <<_ACEOF
2550
/* confdefs.h.  */
2551
_ACEOF
2552
cat confdefs.h >>conftest.$ac_ext
2553
cat >>conftest.$ac_ext <<_ACEOF
2554
/* end confdefs.h.  */
2555
 
2556
/* Override any gcc2 internal prototype to avoid an error.  */
2557
#ifdef __cplusplus
2558
extern "C"
2559
#endif
2560
/* We use char because int might match the return type of a gcc2
2561
   builtin and then its argument prototype would still apply.  */
2562
char strerror ();
2563
int
2564
main ()
2565
{
2566
strerror ();
2567
  ;
2568
  return 0;
2569
}
2570
_ACEOF
2571
rm -f conftest.$ac_objext conftest$ac_exeext
2572
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573
  (eval $ac_link) 2>conftest.er1
2574
  ac_status=$?
2575
  grep -v '^ *+' conftest.er1 >conftest.err
2576
  rm -f conftest.er1
2577
  cat conftest.err >&5
2578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579
  (exit $ac_status); } &&
2580
         { ac_try='test -z "$ac_c_werror_flag"
2581
                         || test ! -s conftest.err'
2582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583
  (eval $ac_try) 2>&5
2584
  ac_status=$?
2585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586
  (exit $ac_status); }; } &&
2587
         { ac_try='test -s conftest$ac_exeext'
2588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589
  (eval $ac_try) 2>&5
2590
  ac_status=$?
2591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592
  (exit $ac_status); }; }; then
2593
  ac_cv_search_strerror="none required"
2594
else
2595
  echo "$as_me: failed program was:" >&5
2596
sed 's/^/| /' conftest.$ac_ext >&5
2597
 
2598
fi
2599
rm -f conftest.err conftest.$ac_objext \
2600
      conftest$ac_exeext conftest.$ac_ext
2601
if test "$ac_cv_search_strerror" = no; then
2602
  for ac_lib in cposix; do
2603
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2604
    cat >conftest.$ac_ext <<_ACEOF
2605
/* confdefs.h.  */
2606
_ACEOF
2607
cat confdefs.h >>conftest.$ac_ext
2608
cat >>conftest.$ac_ext <<_ACEOF
2609
/* end confdefs.h.  */
2610
 
2611
/* Override any gcc2 internal prototype to avoid an error.  */
2612
#ifdef __cplusplus
2613
extern "C"
2614
#endif
2615
/* We use char because int might match the return type of a gcc2
2616
   builtin and then its argument prototype would still apply.  */
2617
char strerror ();
2618
int
2619
main ()
2620
{
2621
strerror ();
2622
  ;
2623
  return 0;
2624
}
2625
_ACEOF
2626
rm -f conftest.$ac_objext conftest$ac_exeext
2627
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628
  (eval $ac_link) 2>conftest.er1
2629
  ac_status=$?
2630
  grep -v '^ *+' conftest.er1 >conftest.err
2631
  rm -f conftest.er1
2632
  cat conftest.err >&5
2633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
  (exit $ac_status); } &&
2635
         { ac_try='test -z "$ac_c_werror_flag"
2636
                         || test ! -s conftest.err'
2637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638
  (eval $ac_try) 2>&5
2639
  ac_status=$?
2640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
  (exit $ac_status); }; } &&
2642
         { ac_try='test -s conftest$ac_exeext'
2643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644
  (eval $ac_try) 2>&5
2645
  ac_status=$?
2646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647
  (exit $ac_status); }; }; then
2648
  ac_cv_search_strerror="-l$ac_lib"
2649
break
2650
else
2651
  echo "$as_me: failed program was:" >&5
2652
sed 's/^/| /' conftest.$ac_ext >&5
2653
 
2654
fi
2655
rm -f conftest.err conftest.$ac_objext \
2656
      conftest$ac_exeext conftest.$ac_ext
2657
  done
2658
fi
2659
LIBS=$ac_func_search_save_LIBS
2660
fi
2661
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2662
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2663
if test "$ac_cv_search_strerror" != no; then
2664
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2665
 
2666
fi
2667
 
2668
 
2669
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670
am__api_version="1.9"
2671
# Find a good install program.  We prefer a C program (faster),
2672
# so one script is as good as another.  But avoid the broken or
2673
# incompatible versions:
2674
# SysV /etc/install, /usr/sbin/install
2675
# SunOS /usr/etc/install
2676
# IRIX /sbin/install
2677
# AIX /bin/install
2678
# AmigaOS /C/install, which installs bootblocks on floppy discs
2679
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2680
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2681
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2682
# OS/2's system install, which has a completely different semantic
2683
# ./install, which can be erroneously created by make from ./install.sh.
2684
# Reject install programs that cannot install multiple files.
2685
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2686
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2687
if test -z "$INSTALL"; then
2688
if test "${ac_cv_path_install+set}" = set; then
2689
  echo $ECHO_N "(cached) $ECHO_C" >&6
2690
else
2691
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692
for as_dir in $PATH
2693
do
2694
  IFS=$as_save_IFS
2695
  test -z "$as_dir" && as_dir=.
2696
  # Account for people who put trailing slashes in PATH elements.
2697
case $as_dir/ in
2698
  ./ | .// | /cC/* | \
2699
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2700
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2701
  /usr/ucb/* ) ;;
2702
  *)
2703
    # OSF1 and SCO ODT 3.0 have their own names for install.
2704
    # Don't use installbsd from OSF since it installs stuff as root
2705
    # by default.
2706
    for ac_prog in ginstall scoinst install; do
2707
      for ac_exec_ext in '' $ac_executable_extensions; do
2708
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2709
          if test $ac_prog = install &&
2710
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711
            # AIX install.  It has an incompatible calling convention.
2712
            :
2713
          elif test $ac_prog = install &&
2714
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715
            # program-specific install script used by HP pwplus--don't use.
2716
            :
2717
          else
2718
            rm -rf conftest.one conftest.two conftest.dir
2719
            echo one > conftest.one
2720
            echo two > conftest.two
2721
            mkdir conftest.dir
2722
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2723
              test -s conftest.one && test -s conftest.two &&
2724
              test -s conftest.dir/conftest.one &&
2725
              test -s conftest.dir/conftest.two
2726
            then
2727
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728
              break 3
2729
            fi
2730
          fi
2731
        fi
2732
      done
2733
    done
2734
    ;;
2735
esac
2736
done
2737
 
2738
rm -rf conftest.one conftest.two conftest.dir
2739
 
2740
fi
2741
  if test "${ac_cv_path_install+set}" = set; then
2742
    INSTALL=$ac_cv_path_install
2743
  else
2744
    # As a last resort, use the slow shell script.  Don't cache a
2745
    # value for INSTALL within a source directory, because that will
2746
    # break other packages using the cache if that directory is
2747
    # removed, or if the value is a relative name.
2748
    INSTALL=$ac_install_sh
2749
  fi
2750
fi
2751
echo "$as_me:$LINENO: result: $INSTALL" >&5
2752
echo "${ECHO_T}$INSTALL" >&6
2753
 
2754
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755
# It thinks the first close brace ends the variable substitution.
2756
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
 
2758
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759
 
2760
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
 
2762
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2763
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2764
# Just in case
2765
sleep 1
2766
echo timestamp > conftest.file
2767
# Do `set' in a subshell so we don't clobber the current shell's
2768
# arguments.  Must try -L first in case configure is actually a
2769
# symlink; some systems play weird games with the mod time of symlinks
2770
# (eg FreeBSD returns the mod time of the symlink's containing
2771
# directory).
2772
if (
2773
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2774
   if test "$*" = "X"; then
2775
      # -L didn't work.
2776
      set X `ls -t $srcdir/configure conftest.file`
2777
   fi
2778
   rm -f conftest.file
2779
   if test "$*" != "X $srcdir/configure conftest.file" \
2780
      && test "$*" != "X conftest.file $srcdir/configure"; then
2781
 
2782
      # If neither matched, then we have a broken ls.  This can happen
2783
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2784
      # broken ls alias from the environment.  This has actually
2785
      # happened.  Such a system could not be considered "sane".
2786
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2787
alias in your environment" >&5
2788
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2789
alias in your environment" >&2;}
2790
   { (exit 1); exit 1; }; }
2791
   fi
2792
 
2793
   test "$2" = conftest.file
2794
   )
2795
then
2796
   # Ok.
2797
   :
2798
else
2799
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2800
Check your system clock" >&5
2801
echo "$as_me: error: newly created file is older than distributed files!
2802
Check your system clock" >&2;}
2803
   { (exit 1); exit 1; }; }
2804
fi
2805
echo "$as_me:$LINENO: result: yes" >&5
2806
echo "${ECHO_T}yes" >&6
2807
test "$program_prefix" != NONE &&
2808
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2809
# Use a double $ so make ignores it.
2810
test "$program_suffix" != NONE &&
2811
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2812
# Double any \ or $.  echo might interpret backslashes.
2813
# By default was `s,x,x', remove it if useless.
2814
cat <<\_ACEOF >conftest.sed
2815
s/[\\$]/&&/g;s/;s,x,x,$//
2816
_ACEOF
2817
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2818
rm conftest.sed
2819
 
2820
# expand $ac_aux_dir to an absolute path
2821
am_aux_dir=`cd $ac_aux_dir && pwd`
2822
 
2823
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2824
# Use eval to expand $SHELL
2825
if eval "$MISSING --run true"; then
2826
  am_missing_run="$MISSING --run "
2827
else
2828
  am_missing_run=
2829
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2830
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2831
fi
2832
 
2833
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2834
  # We used to keeping the `.' as first argument, in order to
2835
  # allow $(mkdir_p) to be used without argument.  As in
2836
  #   $(mkdir_p) $(somedir)
2837
  # where $(somedir) is conditionally defined.  However this is wrong
2838
  # for two reasons:
2839
  #  1. if the package is installed by a user who cannot write `.'
2840
  #     make install will fail,
2841
  #  2. the above comment should most certainly read
2842
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2843
  #     so it does not work when $(somedir) is undefined and
2844
  #     $(DESTDIR) is not.
2845
  #  To support the latter case, we have to write
2846
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2847
  #  so the `.' trick is pointless.
2848
  mkdir_p='mkdir -p --'
2849
else
2850
  # On NextStep and OpenStep, the `mkdir' command does not
2851
  # recognize any option.  It will interpret all options as
2852
  # directories to create, and then abort because `.' already
2853
  # exists.
2854
  for d in ./-p ./--version;
2855
  do
2856
    test -d $d && rmdir $d
2857
  done
2858
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2859
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2860
    mkdir_p='$(mkinstalldirs)'
2861
  else
2862
    mkdir_p='$(install_sh) -d'
2863
  fi
2864
fi
2865
 
2866
for ac_prog in gawk mawk nawk awk
2867
do
2868
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2869
set dummy $ac_prog; ac_word=$2
2870
echo "$as_me:$LINENO: checking for $ac_word" >&5
2871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872
if test "${ac_cv_prog_AWK+set}" = set; then
2873
  echo $ECHO_N "(cached) $ECHO_C" >&6
2874
else
2875
  if test -n "$AWK"; then
2876
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877
else
2878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879
for as_dir in $PATH
2880
do
2881
  IFS=$as_save_IFS
2882
  test -z "$as_dir" && as_dir=.
2883
  for ac_exec_ext in '' $ac_executable_extensions; do
2884
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885
    ac_cv_prog_AWK="$ac_prog"
2886
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887
    break 2
2888
  fi
2889
done
2890
done
2891
 
2892
fi
2893
fi
2894
AWK=$ac_cv_prog_AWK
2895
if test -n "$AWK"; then
2896
  echo "$as_me:$LINENO: result: $AWK" >&5
2897
echo "${ECHO_T}$AWK" >&6
2898
else
2899
  echo "$as_me:$LINENO: result: no" >&5
2900
echo "${ECHO_T}no" >&6
2901
fi
2902
 
2903
  test -n "$AWK" && break
2904
done
2905
 
2906
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2908
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2909
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2910
  echo $ECHO_N "(cached) $ECHO_C" >&6
2911
else
2912
  cat >conftest.make <<\_ACEOF
2913
all:
2914
        @echo 'ac_maketemp="$(MAKE)"'
2915
_ACEOF
2916
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2918
if test -n "$ac_maketemp"; then
2919
  eval ac_cv_prog_make_${ac_make}_set=yes
2920
else
2921
  eval ac_cv_prog_make_${ac_make}_set=no
2922
fi
2923
rm -f conftest.make
2924
fi
2925
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2926
  echo "$as_me:$LINENO: result: yes" >&5
2927
echo "${ECHO_T}yes" >&6
2928
  SET_MAKE=
2929
else
2930
  echo "$as_me:$LINENO: result: no" >&5
2931
echo "${ECHO_T}no" >&6
2932
  SET_MAKE="MAKE=${MAKE-make}"
2933
fi
2934
 
2935
rm -rf .tst 2>/dev/null
2936
mkdir .tst 2>/dev/null
2937
if test -d .tst; then
2938
  am__leading_dot=.
2939
else
2940
  am__leading_dot=_
2941
fi
2942
rmdir .tst 2>/dev/null
2943
 
2944
DEPDIR="${am__leading_dot}deps"
2945
 
2946
          ac_config_commands="$ac_config_commands depfiles"
2947
 
2948
 
2949
am_make=${MAKE-make}
2950
cat > confinc << 'END'
2951
am__doit:
2952
        @echo done
2953
.PHONY: am__doit
2954
END
2955
# If we don't find an include directive, just comment out the code.
2956
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2957
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2958
am__include="#"
2959
am__quote=
2960
_am_result=none
2961
# First try GNU make style include.
2962
echo "include confinc" > confmf
2963
# We grep out `Entering directory' and `Leaving directory'
2964
# messages which can occur if `w' ends up in MAKEFLAGS.
2965
# In particular we don't look at `^make:' because GNU make might
2966
# be invoked under some other name (usually "gmake"), in which
2967
# case it prints its new name instead of `make'.
2968
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2969
   am__include=include
2970
   am__quote=
2971
   _am_result=GNU
2972
fi
2973
# Now try BSD make style include.
2974
if test "$am__include" = "#"; then
2975
   echo '.include "confinc"' > confmf
2976
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2977
      am__include=.include
2978
      am__quote="\""
2979
      _am_result=BSD
2980
   fi
2981
fi
2982
 
2983
 
2984
echo "$as_me:$LINENO: result: $_am_result" >&5
2985
echo "${ECHO_T}$_am_result" >&6
2986
rm -f confinc confmf
2987
 
2988
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2989
if test "${enable_dependency_tracking+set}" = set; then
2990
  enableval="$enable_dependency_tracking"
2991
 
2992
fi;
2993
if test "x$enable_dependency_tracking" != xno; then
2994
  am_depcomp="$ac_aux_dir/depcomp"
2995
  AMDEPBACKSLASH='\'
2996
fi
2997
 
2998
 
2999
if test "x$enable_dependency_tracking" != xno; then
3000
  AMDEP_TRUE=
3001
  AMDEP_FALSE='#'
3002
else
3003
  AMDEP_TRUE='#'
3004
  AMDEP_FALSE=
3005
fi
3006
 
3007
 
3008
 
3009
# test to see if srcdir already configured
3010
if test "`cd $srcdir && pwd`" != "`pwd`" &&
3011
   test -f $srcdir/config.status; then
3012
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3013
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3014
   { (exit 1); exit 1; }; }
3015
fi
3016
 
3017
# test whether we have cygpath
3018
if test -z "$CYGPATH_W"; then
3019
  if (cygpath --version) >/dev/null 2>/dev/null; then
3020
    CYGPATH_W='cygpath -w'
3021
  else
3022
    CYGPATH_W=echo
3023
  fi
3024
fi
3025
 
3026
 
3027
# Define the identity of the package.
3028
 PACKAGE=binutils
3029
 VERSION=${BFD_VERSION}
3030
 
3031
 
3032
cat >>confdefs.h <<_ACEOF
3033
#define PACKAGE "$PACKAGE"
3034
_ACEOF
3035
 
3036
 
3037
cat >>confdefs.h <<_ACEOF
3038
#define VERSION "$VERSION"
3039
_ACEOF
3040
 
3041
# Some tools Automake needs.
3042
 
3043
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3044
 
3045
 
3046
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3047
 
3048
 
3049
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3050
 
3051
 
3052
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3053
 
3054
 
3055
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3056
 
3057
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3058
 
3059
# Installed binaries are usually stripped using `strip' when the user
3060
# run `make install-strip'.  However `strip' might not be the right
3061
# tool to use in cross-compilation environments, therefore Automake
3062
# will honor the `STRIP' environment variable to overrule this program.
3063
if test "$cross_compiling" != no; then
3064
  if test -n "$ac_tool_prefix"; then
3065
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3066
set dummy ${ac_tool_prefix}strip; ac_word=$2
3067
echo "$as_me:$LINENO: checking for $ac_word" >&5
3068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069
if test "${ac_cv_prog_STRIP+set}" = set; then
3070
  echo $ECHO_N "(cached) $ECHO_C" >&6
3071
else
3072
  if test -n "$STRIP"; then
3073
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3074
else
3075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076
for as_dir in $PATH
3077
do
3078
  IFS=$as_save_IFS
3079
  test -z "$as_dir" && as_dir=.
3080
  for ac_exec_ext in '' $ac_executable_extensions; do
3081
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084
    break 2
3085
  fi
3086
done
3087
done
3088
 
3089
fi
3090
fi
3091
STRIP=$ac_cv_prog_STRIP
3092
if test -n "$STRIP"; then
3093
  echo "$as_me:$LINENO: result: $STRIP" >&5
3094
echo "${ECHO_T}$STRIP" >&6
3095
else
3096
  echo "$as_me:$LINENO: result: no" >&5
3097
echo "${ECHO_T}no" >&6
3098
fi
3099
 
3100
fi
3101
if test -z "$ac_cv_prog_STRIP"; then
3102
  ac_ct_STRIP=$STRIP
3103
  # Extract the first word of "strip", so it can be a program name with args.
3104
set dummy strip; ac_word=$2
3105
echo "$as_me:$LINENO: checking for $ac_word" >&5
3106
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3108
  echo $ECHO_N "(cached) $ECHO_C" >&6
3109
else
3110
  if test -n "$ac_ct_STRIP"; then
3111
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3112
else
3113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114
for as_dir in $PATH
3115
do
3116
  IFS=$as_save_IFS
3117
  test -z "$as_dir" && as_dir=.
3118
  for ac_exec_ext in '' $ac_executable_extensions; do
3119
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120
    ac_cv_prog_ac_ct_STRIP="strip"
3121
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122
    break 2
3123
  fi
3124
done
3125
done
3126
 
3127
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3128
fi
3129
fi
3130
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3131
if test -n "$ac_ct_STRIP"; then
3132
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3133
echo "${ECHO_T}$ac_ct_STRIP" >&6
3134
else
3135
  echo "$as_me:$LINENO: result: no" >&5
3136
echo "${ECHO_T}no" >&6
3137
fi
3138
 
3139
  STRIP=$ac_ct_STRIP
3140
else
3141
  STRIP="$ac_cv_prog_STRIP"
3142
fi
3143
 
3144
fi
3145
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3146
 
3147
# We need awk for the "check" target.  The system "awk" is bad on
3148
# some platforms.
3149
# Always define AMTAR for backward compatibility.
3150
 
3151
AMTAR=${AMTAR-"${am_missing_run}tar"}
3152
 
3153
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3154
 
3155
 
3156
 
3157
 
3158
depcc="$CC"   am_compiler_list=
3159
 
3160
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163
  echo $ECHO_N "(cached) $ECHO_C" >&6
3164
else
3165
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166
  # We make a subdir and do the tests there.  Otherwise we can end up
3167
  # making bogus files that we don't know about and never remove.  For
3168
  # instance it was reported that on HP-UX the gcc test will end up
3169
  # making a dummy file named `D' -- because `-MD' means `put the output
3170
  # in D'.
3171
  mkdir conftest.dir
3172
  # Copy depcomp to subdir because otherwise we won't find it if we're
3173
  # using a relative directory.
3174
  cp "$am_depcomp" conftest.dir
3175
  cd conftest.dir
3176
  # We will build objects and dependencies in a subdirectory because
3177
  # it helps to detect inapplicable dependency modes.  For instance
3178
  # both Tru64's cc and ICC support -MD to output dependencies as a
3179
  # side effect of compilation, but ICC will put the dependencies in
3180
  # the current directory while Tru64 will put them in the object
3181
  # directory.
3182
  mkdir sub
3183
 
3184
  am_cv_CC_dependencies_compiler_type=none
3185
  if test "$am_compiler_list" = ""; then
3186
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187
  fi
3188
  for depmode in $am_compiler_list; do
3189
    # Setup a source with many dependencies, because some compilers
3190
    # like to wrap large dependency lists on column 80 (with \), and
3191
    # we should not choose a depcomp mode which is confused by this.
3192
    #
3193
    # We need to recreate these files for each test, as the compiler may
3194
    # overwrite some of them when testing with obscure command lines.
3195
    # This happens at least with the AIX C compiler.
3196
    : > sub/conftest.c
3197
    for i in 1 2 3 4 5 6; do
3198
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200
      # Solaris 8's {/usr,}/bin/sh.
3201
      touch sub/conftst$i.h
3202
    done
3203
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204
 
3205
    case $depmode in
3206
    nosideeffect)
3207
      # after this tag, mechanisms are not by side-effect, so they'll
3208
      # only be used when explicitly requested
3209
      if test "x$enable_dependency_tracking" = xyes; then
3210
        continue
3211
      else
3212
        break
3213
      fi
3214
      ;;
3215
    none) break ;;
3216
    esac
3217
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218
    # mode.  It turns out that the SunPro C++ compiler does not properly
3219
    # handle `-M -o', and we need to detect this.
3220
    if depmode=$depmode \
3221
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224
         >/dev/null 2>conftest.err &&
3225
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228
      # icc doesn't choke on unknown options, it will just issue warnings
3229
      # or remarks (even with -Werror).  So we grep stderr for any message
3230
      # that says an option was ignored or not supported.
3231
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3232
      #   icc: Command line warning: ignoring option '-M'; no argument required
3233
      # The diagnosis changed in icc 8.0:
3234
      #   icc: Command line remark: option '-MP' not supported
3235
      if (grep 'ignoring option' conftest.err ||
3236
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237
        am_cv_CC_dependencies_compiler_type=$depmode
3238
        break
3239
      fi
3240
    fi
3241
  done
3242
 
3243
  cd ..
3244
  rm -rf conftest.dir
3245
else
3246
  am_cv_CC_dependencies_compiler_type=none
3247
fi
3248
 
3249
fi
3250
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253
 
3254
 
3255
 
3256
if
3257
  test "x$enable_dependency_tracking" != xno \
3258
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259
  am__fastdepCC_TRUE=
3260
  am__fastdepCC_FALSE='#'
3261
else
3262
  am__fastdepCC_TRUE='#'
3263
  am__fastdepCC_FALSE=
3264
fi
3265
 
3266
 
3267
 
3268
 
3269
ac_ext=c
3270
ac_cpp='$CPP $CPPFLAGS'
3271
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274
if test -n "$ac_tool_prefix"; then
3275
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277
echo "$as_me:$LINENO: checking for $ac_word" >&5
3278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279
if test "${ac_cv_prog_CC+set}" = set; then
3280
  echo $ECHO_N "(cached) $ECHO_C" >&6
3281
else
3282
  if test -n "$CC"; then
3283
  ac_cv_prog_CC="$CC" # Let the user override the test.
3284
else
3285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286
for as_dir in $PATH
3287
do
3288
  IFS=$as_save_IFS
3289
  test -z "$as_dir" && as_dir=.
3290
  for ac_exec_ext in '' $ac_executable_extensions; do
3291
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294
    break 2
3295
  fi
3296
done
3297
done
3298
 
3299
fi
3300
fi
3301
CC=$ac_cv_prog_CC
3302
if test -n "$CC"; then
3303
  echo "$as_me:$LINENO: result: $CC" >&5
3304
echo "${ECHO_T}$CC" >&6
3305
else
3306
  echo "$as_me:$LINENO: result: no" >&5
3307
echo "${ECHO_T}no" >&6
3308
fi
3309
 
3310
fi
3311
if test -z "$ac_cv_prog_CC"; then
3312
  ac_ct_CC=$CC
3313
  # Extract the first word of "gcc", so it can be a program name with args.
3314
set dummy gcc; ac_word=$2
3315
echo "$as_me:$LINENO: checking for $ac_word" >&5
3316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318
  echo $ECHO_N "(cached) $ECHO_C" >&6
3319
else
3320
  if test -n "$ac_ct_CC"; then
3321
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3322
else
3323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324
for as_dir in $PATH
3325
do
3326
  IFS=$as_save_IFS
3327
  test -z "$as_dir" && as_dir=.
3328
  for ac_exec_ext in '' $ac_executable_extensions; do
3329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330
    ac_cv_prog_ac_ct_CC="gcc"
3331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332
    break 2
3333
  fi
3334
done
3335
done
3336
 
3337
fi
3338
fi
3339
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340
if test -n "$ac_ct_CC"; then
3341
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3342
echo "${ECHO_T}$ac_ct_CC" >&6
3343
else
3344
  echo "$as_me:$LINENO: result: no" >&5
3345
echo "${ECHO_T}no" >&6
3346
fi
3347
 
3348
  CC=$ac_ct_CC
3349
else
3350
  CC="$ac_cv_prog_CC"
3351
fi
3352
 
3353
if test -z "$CC"; then
3354
  if test -n "$ac_tool_prefix"; then
3355
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356
set dummy ${ac_tool_prefix}cc; ac_word=$2
3357
echo "$as_me:$LINENO: checking for $ac_word" >&5
3358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359
if test "${ac_cv_prog_CC+set}" = set; then
3360
  echo $ECHO_N "(cached) $ECHO_C" >&6
3361
else
3362
  if test -n "$CC"; then
3363
  ac_cv_prog_CC="$CC" # Let the user override the test.
3364
else
3365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366
for as_dir in $PATH
3367
do
3368
  IFS=$as_save_IFS
3369
  test -z "$as_dir" && as_dir=.
3370
  for ac_exec_ext in '' $ac_executable_extensions; do
3371
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3373
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374
    break 2
3375
  fi
3376
done
3377
done
3378
 
3379
fi
3380
fi
3381
CC=$ac_cv_prog_CC
3382
if test -n "$CC"; then
3383
  echo "$as_me:$LINENO: result: $CC" >&5
3384
echo "${ECHO_T}$CC" >&6
3385
else
3386
  echo "$as_me:$LINENO: result: no" >&5
3387
echo "${ECHO_T}no" >&6
3388
fi
3389
 
3390
fi
3391
if test -z "$ac_cv_prog_CC"; then
3392
  ac_ct_CC=$CC
3393
  # Extract the first word of "cc", so it can be a program name with args.
3394
set dummy cc; ac_word=$2
3395
echo "$as_me:$LINENO: checking for $ac_word" >&5
3396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3398
  echo $ECHO_N "(cached) $ECHO_C" >&6
3399
else
3400
  if test -n "$ac_ct_CC"; then
3401
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402
else
3403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404
for as_dir in $PATH
3405
do
3406
  IFS=$as_save_IFS
3407
  test -z "$as_dir" && as_dir=.
3408
  for ac_exec_ext in '' $ac_executable_extensions; do
3409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410
    ac_cv_prog_ac_ct_CC="cc"
3411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412
    break 2
3413
  fi
3414
done
3415
done
3416
 
3417
fi
3418
fi
3419
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420
if test -n "$ac_ct_CC"; then
3421
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3422
echo "${ECHO_T}$ac_ct_CC" >&6
3423
else
3424
  echo "$as_me:$LINENO: result: no" >&5
3425
echo "${ECHO_T}no" >&6
3426
fi
3427
 
3428
  CC=$ac_ct_CC
3429
else
3430
  CC="$ac_cv_prog_CC"
3431
fi
3432
 
3433
fi
3434
if test -z "$CC"; then
3435
  # Extract the first word of "cc", so it can be a program name with args.
3436
set dummy cc; ac_word=$2
3437
echo "$as_me:$LINENO: checking for $ac_word" >&5
3438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439
if test "${ac_cv_prog_CC+set}" = set; then
3440
  echo $ECHO_N "(cached) $ECHO_C" >&6
3441
else
3442
  if test -n "$CC"; then
3443
  ac_cv_prog_CC="$CC" # Let the user override the test.
3444
else
3445
  ac_prog_rejected=no
3446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447
for as_dir in $PATH
3448
do
3449
  IFS=$as_save_IFS
3450
  test -z "$as_dir" && as_dir=.
3451
  for ac_exec_ext in '' $ac_executable_extensions; do
3452
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454
       ac_prog_rejected=yes
3455
       continue
3456
     fi
3457
    ac_cv_prog_CC="cc"
3458
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459
    break 2
3460
  fi
3461
done
3462
done
3463
 
3464
if test $ac_prog_rejected = yes; then
3465
  # We found a bogon in the path, so make sure we never use it.
3466
  set dummy $ac_cv_prog_CC
3467
  shift
3468
  if test $# != 0; then
3469
    # We chose a different compiler from the bogus one.
3470
    # However, it has the same basename, so the bogon will be chosen
3471
    # first if we set CC to just the basename; use the full file name.
3472
    shift
3473
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474
  fi
3475
fi
3476
fi
3477
fi
3478
CC=$ac_cv_prog_CC
3479
if test -n "$CC"; then
3480
  echo "$as_me:$LINENO: result: $CC" >&5
3481
echo "${ECHO_T}$CC" >&6
3482
else
3483
  echo "$as_me:$LINENO: result: no" >&5
3484
echo "${ECHO_T}no" >&6
3485
fi
3486
 
3487
fi
3488
if test -z "$CC"; then
3489
  if test -n "$ac_tool_prefix"; then
3490
  for ac_prog in cl
3491
  do
3492
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494
echo "$as_me:$LINENO: checking for $ac_word" >&5
3495
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3496
if test "${ac_cv_prog_CC+set}" = set; then
3497
  echo $ECHO_N "(cached) $ECHO_C" >&6
3498
else
3499
  if test -n "$CC"; then
3500
  ac_cv_prog_CC="$CC" # Let the user override the test.
3501
else
3502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503
for as_dir in $PATH
3504
do
3505
  IFS=$as_save_IFS
3506
  test -z "$as_dir" && as_dir=.
3507
  for ac_exec_ext in '' $ac_executable_extensions; do
3508
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511
    break 2
3512
  fi
3513
done
3514
done
3515
 
3516
fi
3517
fi
3518
CC=$ac_cv_prog_CC
3519
if test -n "$CC"; then
3520
  echo "$as_me:$LINENO: result: $CC" >&5
3521
echo "${ECHO_T}$CC" >&6
3522
else
3523
  echo "$as_me:$LINENO: result: no" >&5
3524
echo "${ECHO_T}no" >&6
3525
fi
3526
 
3527
    test -n "$CC" && break
3528
  done
3529
fi
3530
if test -z "$CC"; then
3531
  ac_ct_CC=$CC
3532
  for ac_prog in cl
3533
do
3534
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3535
set dummy $ac_prog; ac_word=$2
3536
echo "$as_me:$LINENO: checking for $ac_word" >&5
3537
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3539
  echo $ECHO_N "(cached) $ECHO_C" >&6
3540
else
3541
  if test -n "$ac_ct_CC"; then
3542
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543
else
3544
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545
for as_dir in $PATH
3546
do
3547
  IFS=$as_save_IFS
3548
  test -z "$as_dir" && as_dir=.
3549
  for ac_exec_ext in '' $ac_executable_extensions; do
3550
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551
    ac_cv_prog_ac_ct_CC="$ac_prog"
3552
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553
    break 2
3554
  fi
3555
done
3556
done
3557
 
3558
fi
3559
fi
3560
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3561
if test -n "$ac_ct_CC"; then
3562
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3563
echo "${ECHO_T}$ac_ct_CC" >&6
3564
else
3565
  echo "$as_me:$LINENO: result: no" >&5
3566
echo "${ECHO_T}no" >&6
3567
fi
3568
 
3569
  test -n "$ac_ct_CC" && break
3570
done
3571
 
3572
  CC=$ac_ct_CC
3573
fi
3574
 
3575
fi
3576
 
3577
 
3578
test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579
echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580
{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3581
See \`config.log' for more details." >&5
3582
echo "$as_me: error: no acceptable C compiler found in \$PATH
3583
See \`config.log' for more details." >&2;}
3584
   { (exit 1); exit 1; }; }; }
3585
 
3586
# Provide some information about the compiler.
3587
echo "$as_me:$LINENO:" \
3588
     "checking for C compiler version" >&5
3589
ac_compiler=`set X $ac_compile; echo $2`
3590
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3591
  (eval $ac_compiler --version &5) 2>&5
3592
  ac_status=$?
3593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594
  (exit $ac_status); }
3595
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3596
  (eval $ac_compiler -v &5) 2>&5
3597
  ac_status=$?
3598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599
  (exit $ac_status); }
3600
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3601
  (eval $ac_compiler -V &5) 2>&5
3602
  ac_status=$?
3603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604
  (exit $ac_status); }
3605
 
3606
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3607
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3608
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3609
  echo $ECHO_N "(cached) $ECHO_C" >&6
3610
else
3611
  cat >conftest.$ac_ext <<_ACEOF
3612
/* confdefs.h.  */
3613
_ACEOF
3614
cat confdefs.h >>conftest.$ac_ext
3615
cat >>conftest.$ac_ext <<_ACEOF
3616
/* end confdefs.h.  */
3617
 
3618
int
3619
main ()
3620
{
3621
#ifndef __GNUC__
3622
       choke me
3623
#endif
3624
 
3625
  ;
3626
  return 0;
3627
}
3628
_ACEOF
3629
rm -f conftest.$ac_objext
3630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631
  (eval $ac_compile) 2>conftest.er1
3632
  ac_status=$?
3633
  grep -v '^ *+' conftest.er1 >conftest.err
3634
  rm -f conftest.er1
3635
  cat conftest.err >&5
3636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637
  (exit $ac_status); } &&
3638
         { ac_try='test -z "$ac_c_werror_flag"
3639
                         || test ! -s conftest.err'
3640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641
  (eval $ac_try) 2>&5
3642
  ac_status=$?
3643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644
  (exit $ac_status); }; } &&
3645
         { ac_try='test -s conftest.$ac_objext'
3646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647
  (eval $ac_try) 2>&5
3648
  ac_status=$?
3649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650
  (exit $ac_status); }; }; then
3651
  ac_compiler_gnu=yes
3652
else
3653
  echo "$as_me: failed program was:" >&5
3654
sed 's/^/| /' conftest.$ac_ext >&5
3655
 
3656
ac_compiler_gnu=no
3657
fi
3658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3660
 
3661
fi
3662
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3663
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3664
GCC=`test $ac_compiler_gnu = yes && echo yes`
3665
ac_test_CFLAGS=${CFLAGS+set}
3666
ac_save_CFLAGS=$CFLAGS
3667
CFLAGS="-g"
3668
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3669
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3670
if test "${ac_cv_prog_cc_g+set}" = set; then
3671
  echo $ECHO_N "(cached) $ECHO_C" >&6
3672
else
3673
  cat >conftest.$ac_ext <<_ACEOF
3674
/* confdefs.h.  */
3675
_ACEOF
3676
cat confdefs.h >>conftest.$ac_ext
3677
cat >>conftest.$ac_ext <<_ACEOF
3678
/* end confdefs.h.  */
3679
 
3680
int
3681
main ()
3682
{
3683
 
3684
  ;
3685
  return 0;
3686
}
3687
_ACEOF
3688
rm -f conftest.$ac_objext
3689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690
  (eval $ac_compile) 2>conftest.er1
3691
  ac_status=$?
3692
  grep -v '^ *+' conftest.er1 >conftest.err
3693
  rm -f conftest.er1
3694
  cat conftest.err >&5
3695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696
  (exit $ac_status); } &&
3697
         { ac_try='test -z "$ac_c_werror_flag"
3698
                         || test ! -s conftest.err'
3699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700
  (eval $ac_try) 2>&5
3701
  ac_status=$?
3702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703
  (exit $ac_status); }; } &&
3704
         { ac_try='test -s conftest.$ac_objext'
3705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706
  (eval $ac_try) 2>&5
3707
  ac_status=$?
3708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
  (exit $ac_status); }; }; then
3710
  ac_cv_prog_cc_g=yes
3711
else
3712
  echo "$as_me: failed program was:" >&5
3713
sed 's/^/| /' conftest.$ac_ext >&5
3714
 
3715
ac_cv_prog_cc_g=no
3716
fi
3717
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3718
fi
3719
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3720
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3721
if test "$ac_test_CFLAGS" = set; then
3722
  CFLAGS=$ac_save_CFLAGS
3723
elif test $ac_cv_prog_cc_g = yes; then
3724
  if test "$GCC" = yes; then
3725
    CFLAGS="-g -O2"
3726
  else
3727
    CFLAGS="-g"
3728
  fi
3729
else
3730
  if test "$GCC" = yes; then
3731
    CFLAGS="-O2"
3732
  else
3733
    CFLAGS=
3734
  fi
3735
fi
3736
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3737
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3738
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3739
  echo $ECHO_N "(cached) $ECHO_C" >&6
3740
else
3741
  ac_cv_prog_cc_stdc=no
3742
ac_save_CC=$CC
3743
cat >conftest.$ac_ext <<_ACEOF
3744
/* confdefs.h.  */
3745
_ACEOF
3746
cat confdefs.h >>conftest.$ac_ext
3747
cat >>conftest.$ac_ext <<_ACEOF
3748
/* end confdefs.h.  */
3749
#include 
3750
#include 
3751
#include 
3752
#include 
3753
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3754
struct buf { int x; };
3755
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756
static char *e (p, i)
3757
     char **p;
3758
     int i;
3759
{
3760
  return p[i];
3761
}
3762
static char *f (char * (*g) (char **, int), char **p, ...)
3763
{
3764
  char *s;
3765
  va_list v;
3766
  va_start (v,p);
3767
  s = g (p, va_arg (v,int));
3768
  va_end (v);
3769
  return s;
3770
}
3771
 
3772
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3773
   function prototypes and stuff, but not '\xHH' hex character constants.
3774
   These don't provoke an error unfortunately, instead are silently treated
3775
   as 'x'.  The following induces an error, until -std1 is added to get
3776
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3777
   array size at least.  It's necessary to write '\x00'==0 to get something
3778
   that's true only with -std1.  */
3779
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
 
3781
int test (int i, double x);
3782
struct s1 {int (*f) (int a);};
3783
struct s2 {int (*f) (double a);};
3784
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785
int argc;
3786
char **argv;
3787
int
3788
main ()
3789
{
3790
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3791
  ;
3792
  return 0;
3793
}
3794
_ACEOF
3795
# Don't try gcc -ansi; that turns off useful extensions and
3796
# breaks some systems' header files.
3797
# AIX                   -qlanglvl=ansi
3798
# Ultrix and OSF/1      -std1
3799
# HP-UX 10.20 and later -Ae
3800
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3801
# SVR4                  -Xc -D__EXTENSIONS__
3802
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3803
do
3804
  CC="$ac_save_CC $ac_arg"
3805
  rm -f conftest.$ac_objext
3806
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807
  (eval $ac_compile) 2>conftest.er1
3808
  ac_status=$?
3809
  grep -v '^ *+' conftest.er1 >conftest.err
3810
  rm -f conftest.er1
3811
  cat conftest.err >&5
3812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
  (exit $ac_status); } &&
3814
         { ac_try='test -z "$ac_c_werror_flag"
3815
                         || test ! -s conftest.err'
3816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817
  (eval $ac_try) 2>&5
3818
  ac_status=$?
3819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820
  (exit $ac_status); }; } &&
3821
         { ac_try='test -s conftest.$ac_objext'
3822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823
  (eval $ac_try) 2>&5
3824
  ac_status=$?
3825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826
  (exit $ac_status); }; }; then
3827
  ac_cv_prog_cc_stdc=$ac_arg
3828
break
3829
else
3830
  echo "$as_me: failed program was:" >&5
3831
sed 's/^/| /' conftest.$ac_ext >&5
3832
 
3833
fi
3834
rm -f conftest.err conftest.$ac_objext
3835
done
3836
rm -f conftest.$ac_ext conftest.$ac_objext
3837
CC=$ac_save_CC
3838
 
3839
fi
3840
 
3841
case "x$ac_cv_prog_cc_stdc" in
3842
  x|xno)
3843
    echo "$as_me:$LINENO: result: none needed" >&5
3844
echo "${ECHO_T}none needed" >&6 ;;
3845
  *)
3846
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3847
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3848
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3849
esac
3850
 
3851
# Some people use a C++ compiler to compile C.  Since we use `exit',
3852
# in C++ we need to declare it.  In case someone uses the same compiler
3853
# for both compiling C and C++ we need to have the C++ compiler decide
3854
# the declaration of exit, since it's the most demanding environment.
3855
cat >conftest.$ac_ext <<_ACEOF
3856
#ifndef __cplusplus
3857
  choke me
3858
#endif
3859
_ACEOF
3860
rm -f conftest.$ac_objext
3861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862
  (eval $ac_compile) 2>conftest.er1
3863
  ac_status=$?
3864
  grep -v '^ *+' conftest.er1 >conftest.err
3865
  rm -f conftest.er1
3866
  cat conftest.err >&5
3867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
  (exit $ac_status); } &&
3869
         { ac_try='test -z "$ac_c_werror_flag"
3870
                         || test ! -s conftest.err'
3871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872
  (eval $ac_try) 2>&5
3873
  ac_status=$?
3874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875
  (exit $ac_status); }; } &&
3876
         { ac_try='test -s conftest.$ac_objext'
3877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878
  (eval $ac_try) 2>&5
3879
  ac_status=$?
3880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881
  (exit $ac_status); }; }; then
3882
  for ac_declaration in \
3883
   '' \
3884
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3885
   'extern "C" void std::exit (int); using std::exit;' \
3886
   'extern "C" void exit (int) throw ();' \
3887
   'extern "C" void exit (int);' \
3888
   'void exit (int);'
3889
do
3890
  cat >conftest.$ac_ext <<_ACEOF
3891
/* confdefs.h.  */
3892
_ACEOF
3893
cat confdefs.h >>conftest.$ac_ext
3894
cat >>conftest.$ac_ext <<_ACEOF
3895
/* end confdefs.h.  */
3896
$ac_declaration
3897
#include 
3898
int
3899
main ()
3900
{
3901
exit (42);
3902
  ;
3903
  return 0;
3904
}
3905
_ACEOF
3906
rm -f conftest.$ac_objext
3907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908
  (eval $ac_compile) 2>conftest.er1
3909
  ac_status=$?
3910
  grep -v '^ *+' conftest.er1 >conftest.err
3911
  rm -f conftest.er1
3912
  cat conftest.err >&5
3913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914
  (exit $ac_status); } &&
3915
         { ac_try='test -z "$ac_c_werror_flag"
3916
                         || test ! -s conftest.err'
3917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918
  (eval $ac_try) 2>&5
3919
  ac_status=$?
3920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
  (exit $ac_status); }; } &&
3922
         { ac_try='test -s conftest.$ac_objext'
3923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924
  (eval $ac_try) 2>&5
3925
  ac_status=$?
3926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927
  (exit $ac_status); }; }; then
3928
  :
3929
else
3930
  echo "$as_me: failed program was:" >&5
3931
sed 's/^/| /' conftest.$ac_ext >&5
3932
 
3933
continue
3934
fi
3935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936
  cat >conftest.$ac_ext <<_ACEOF
3937
/* confdefs.h.  */
3938
_ACEOF
3939
cat confdefs.h >>conftest.$ac_ext
3940
cat >>conftest.$ac_ext <<_ACEOF
3941
/* end confdefs.h.  */
3942
$ac_declaration
3943
int
3944
main ()
3945
{
3946
exit (42);
3947
  ;
3948
  return 0;
3949
}
3950
_ACEOF
3951
rm -f conftest.$ac_objext
3952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953
  (eval $ac_compile) 2>conftest.er1
3954
  ac_status=$?
3955
  grep -v '^ *+' conftest.er1 >conftest.err
3956
  rm -f conftest.er1
3957
  cat conftest.err >&5
3958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
  (exit $ac_status); } &&
3960
         { ac_try='test -z "$ac_c_werror_flag"
3961
                         || test ! -s conftest.err'
3962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963
  (eval $ac_try) 2>&5
3964
  ac_status=$?
3965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966
  (exit $ac_status); }; } &&
3967
         { ac_try='test -s conftest.$ac_objext'
3968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969
  (eval $ac_try) 2>&5
3970
  ac_status=$?
3971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972
  (exit $ac_status); }; }; then
3973
  break
3974
else
3975
  echo "$as_me: failed program was:" >&5
3976
sed 's/^/| /' conftest.$ac_ext >&5
3977
 
3978
fi
3979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980
done
3981
rm -f conftest*
3982
if test -n "$ac_declaration"; then
3983
  echo '#ifdef __cplusplus' >>confdefs.h
3984
  echo $ac_declaration      >>confdefs.h
3985
  echo '#endif'             >>confdefs.h
3986
fi
3987
 
3988
else
3989
  echo "$as_me: failed program was:" >&5
3990
sed 's/^/| /' conftest.$ac_ext >&5
3991
 
3992
fi
3993
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994
ac_ext=c
3995
ac_cpp='$CPP $CPPFLAGS'
3996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
 
4000
 
4001
cat >>confdefs.h <<\_ACEOF
4002
#define _GNU_SOURCE 1
4003
_ACEOF
4004
 
4005
 
4006
ac_ext=c
4007
ac_cpp='$CPP $CPPFLAGS'
4008
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4012
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4013
# On Suns, sometimes $CPP names a directory.
4014
if test -n "$CPP" && test -d "$CPP"; then
4015
  CPP=
4016
fi
4017
if test -z "$CPP"; then
4018
  if test "${ac_cv_prog_CPP+set}" = set; then
4019
  echo $ECHO_N "(cached) $ECHO_C" >&6
4020
else
4021
      # Double quotes because CPP needs to be expanded
4022
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023
    do
4024
      ac_preproc_ok=false
4025
for ac_c_preproc_warn_flag in '' yes
4026
do
4027
  # Use a header file that comes with gcc, so configuring glibc
4028
  # with a fresh cross-compiler works.
4029
  # Prefer  to  if __STDC__ is defined, since
4030
  #  exists even on freestanding compilers.
4031
  # On the NeXT, cc -E runs the code through the compiler's parser,
4032
  # not just through cpp. "Syntax error" is here to catch this case.
4033
  cat >conftest.$ac_ext <<_ACEOF
4034
/* confdefs.h.  */
4035
_ACEOF
4036
cat confdefs.h >>conftest.$ac_ext
4037
cat >>conftest.$ac_ext <<_ACEOF
4038
/* end confdefs.h.  */
4039
#ifdef __STDC__
4040
# include 
4041
#else
4042
# include 
4043
#endif
4044
                     Syntax error
4045
_ACEOF
4046
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4047
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4048
  ac_status=$?
4049
  grep -v '^ *+' conftest.er1 >conftest.err
4050
  rm -f conftest.er1
4051
  cat conftest.err >&5
4052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053
  (exit $ac_status); } >/dev/null; then
4054
  if test -s conftest.err; then
4055
    ac_cpp_err=$ac_c_preproc_warn_flag
4056
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4057
  else
4058
    ac_cpp_err=
4059
  fi
4060
else
4061
  ac_cpp_err=yes
4062
fi
4063
if test -z "$ac_cpp_err"; then
4064
  :
4065
else
4066
  echo "$as_me: failed program was:" >&5
4067
sed 's/^/| /' conftest.$ac_ext >&5
4068
 
4069
  # Broken: fails on valid input.
4070
continue
4071
fi
4072
rm -f conftest.err conftest.$ac_ext
4073
 
4074
  # OK, works on sane cases.  Now check whether non-existent headers
4075
  # can be detected and how.
4076
  cat >conftest.$ac_ext <<_ACEOF
4077
/* confdefs.h.  */
4078
_ACEOF
4079
cat confdefs.h >>conftest.$ac_ext
4080
cat >>conftest.$ac_ext <<_ACEOF
4081
/* end confdefs.h.  */
4082
#include 
4083
_ACEOF
4084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4085
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4086
  ac_status=$?
4087
  grep -v '^ *+' conftest.er1 >conftest.err
4088
  rm -f conftest.er1
4089
  cat conftest.err >&5
4090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
  (exit $ac_status); } >/dev/null; then
4092
  if test -s conftest.err; then
4093
    ac_cpp_err=$ac_c_preproc_warn_flag
4094
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4095
  else
4096
    ac_cpp_err=
4097
  fi
4098
else
4099
  ac_cpp_err=yes
4100
fi
4101
if test -z "$ac_cpp_err"; then
4102
  # Broken: success on invalid input.
4103
continue
4104
else
4105
  echo "$as_me: failed program was:" >&5
4106
sed 's/^/| /' conftest.$ac_ext >&5
4107
 
4108
  # Passes both tests.
4109
ac_preproc_ok=:
4110
break
4111
fi
4112
rm -f conftest.err conftest.$ac_ext
4113
 
4114
done
4115
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4116
rm -f conftest.err conftest.$ac_ext
4117
if $ac_preproc_ok; then
4118
  break
4119
fi
4120
 
4121
    done
4122
    ac_cv_prog_CPP=$CPP
4123
 
4124
fi
4125
  CPP=$ac_cv_prog_CPP
4126
else
4127
  ac_cv_prog_CPP=$CPP
4128
fi
4129
echo "$as_me:$LINENO: result: $CPP" >&5
4130
echo "${ECHO_T}$CPP" >&6
4131
ac_preproc_ok=false
4132
for ac_c_preproc_warn_flag in '' yes
4133
do
4134
  # Use a header file that comes with gcc, so configuring glibc
4135
  # with a fresh cross-compiler works.
4136
  # Prefer  to  if __STDC__ is defined, since
4137
  #  exists even on freestanding compilers.
4138
  # On the NeXT, cc -E runs the code through the compiler's parser,
4139
  # not just through cpp. "Syntax error" is here to catch this case.
4140
  cat >conftest.$ac_ext <<_ACEOF
4141
/* confdefs.h.  */
4142
_ACEOF
4143
cat confdefs.h >>conftest.$ac_ext
4144
cat >>conftest.$ac_ext <<_ACEOF
4145
/* end confdefs.h.  */
4146
#ifdef __STDC__
4147
# include 
4148
#else
4149
# include 
4150
#endif
4151
                     Syntax error
4152
_ACEOF
4153
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4154
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4155
  ac_status=$?
4156
  grep -v '^ *+' conftest.er1 >conftest.err
4157
  rm -f conftest.er1
4158
  cat conftest.err >&5
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
  (exit $ac_status); } >/dev/null; then
4161
  if test -s conftest.err; then
4162
    ac_cpp_err=$ac_c_preproc_warn_flag
4163
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4164
  else
4165
    ac_cpp_err=
4166
  fi
4167
else
4168
  ac_cpp_err=yes
4169
fi
4170
if test -z "$ac_cpp_err"; then
4171
  :
4172
else
4173
  echo "$as_me: failed program was:" >&5
4174
sed 's/^/| /' conftest.$ac_ext >&5
4175
 
4176
  # Broken: fails on valid input.
4177
continue
4178
fi
4179
rm -f conftest.err conftest.$ac_ext
4180
 
4181
  # OK, works on sane cases.  Now check whether non-existent headers
4182
  # can be detected and how.
4183
  cat >conftest.$ac_ext <<_ACEOF
4184
/* confdefs.h.  */
4185
_ACEOF
4186
cat confdefs.h >>conftest.$ac_ext
4187
cat >>conftest.$ac_ext <<_ACEOF
4188
/* end confdefs.h.  */
4189
#include 
4190
_ACEOF
4191
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4192
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4193
  ac_status=$?
4194
  grep -v '^ *+' conftest.er1 >conftest.err
4195
  rm -f conftest.er1
4196
  cat conftest.err >&5
4197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198
  (exit $ac_status); } >/dev/null; then
4199
  if test -s conftest.err; then
4200
    ac_cpp_err=$ac_c_preproc_warn_flag
4201
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4202
  else
4203
    ac_cpp_err=
4204
  fi
4205
else
4206
  ac_cpp_err=yes
4207
fi
4208
if test -z "$ac_cpp_err"; then
4209
  # Broken: success on invalid input.
4210
continue
4211
else
4212
  echo "$as_me: failed program was:" >&5
4213
sed 's/^/| /' conftest.$ac_ext >&5
4214
 
4215
  # Passes both tests.
4216
ac_preproc_ok=:
4217
break
4218
fi
4219
rm -f conftest.err conftest.$ac_ext
4220
 
4221
done
4222
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223
rm -f conftest.err conftest.$ac_ext
4224
if $ac_preproc_ok; then
4225
  :
4226
else
4227
  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4228
echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4230
See \`config.log' for more details." >&5
4231
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4232
See \`config.log' for more details." >&2;}
4233
   { (exit 1); exit 1; }; }; }
4234
fi
4235
 
4236
ac_ext=c
4237
ac_cpp='$CPP $CPPFLAGS'
4238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
 
4242
 
4243
echo "$as_me:$LINENO: checking for egrep" >&5
4244
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4245
if test "${ac_cv_prog_egrep+set}" = set; then
4246
  echo $ECHO_N "(cached) $ECHO_C" >&6
4247
else
4248
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4249
    then ac_cv_prog_egrep='grep -E'
4250
    else ac_cv_prog_egrep='egrep'
4251
    fi
4252
fi
4253
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4254
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4255
 EGREP=$ac_cv_prog_egrep
4256
 
4257
 
4258
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4260
if test "${ac_cv_header_stdc+set}" = set; then
4261
  echo $ECHO_N "(cached) $ECHO_C" >&6
4262
else
4263
  cat >conftest.$ac_ext <<_ACEOF
4264
/* confdefs.h.  */
4265
_ACEOF
4266
cat confdefs.h >>conftest.$ac_ext
4267
cat >>conftest.$ac_ext <<_ACEOF
4268
/* end confdefs.h.  */
4269
#include 
4270
#include 
4271
#include 
4272
#include 
4273
 
4274
int
4275
main ()
4276
{
4277
 
4278
  ;
4279
  return 0;
4280
}
4281
_ACEOF
4282
rm -f conftest.$ac_objext
4283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284
  (eval $ac_compile) 2>conftest.er1
4285
  ac_status=$?
4286
  grep -v '^ *+' conftest.er1 >conftest.err
4287
  rm -f conftest.er1
4288
  cat conftest.err >&5
4289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290
  (exit $ac_status); } &&
4291
         { ac_try='test -z "$ac_c_werror_flag"
4292
                         || test ! -s conftest.err'
4293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294
  (eval $ac_try) 2>&5
4295
  ac_status=$?
4296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
  (exit $ac_status); }; } &&
4298
         { ac_try='test -s conftest.$ac_objext'
4299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300
  (eval $ac_try) 2>&5
4301
  ac_status=$?
4302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303
  (exit $ac_status); }; }; then
4304
  ac_cv_header_stdc=yes
4305
else
4306
  echo "$as_me: failed program was:" >&5
4307
sed 's/^/| /' conftest.$ac_ext >&5
4308
 
4309
ac_cv_header_stdc=no
4310
fi
4311
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4312
 
4313
if test $ac_cv_header_stdc = yes; then
4314
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315
  cat >conftest.$ac_ext <<_ACEOF
4316
/* confdefs.h.  */
4317
_ACEOF
4318
cat confdefs.h >>conftest.$ac_ext
4319
cat >>conftest.$ac_ext <<_ACEOF
4320
/* end confdefs.h.  */
4321
#include 
4322
 
4323
_ACEOF
4324
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325
  $EGREP "memchr" >/dev/null 2>&1; then
4326
  :
4327
else
4328
  ac_cv_header_stdc=no
4329
fi
4330
rm -f conftest*
4331
 
4332
fi
4333
 
4334
if test $ac_cv_header_stdc = yes; then
4335
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4336
  cat >conftest.$ac_ext <<_ACEOF
4337
/* confdefs.h.  */
4338
_ACEOF
4339
cat confdefs.h >>conftest.$ac_ext
4340
cat >>conftest.$ac_ext <<_ACEOF
4341
/* end confdefs.h.  */
4342
#include 
4343
 
4344
_ACEOF
4345
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4346
  $EGREP "free" >/dev/null 2>&1; then
4347
  :
4348
else
4349
  ac_cv_header_stdc=no
4350
fi
4351
rm -f conftest*
4352
 
4353
fi
4354
 
4355
if test $ac_cv_header_stdc = yes; then
4356
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4357
  if test "$cross_compiling" = yes; then
4358
  :
4359
else
4360
  cat >conftest.$ac_ext <<_ACEOF
4361
/* confdefs.h.  */
4362
_ACEOF
4363
cat confdefs.h >>conftest.$ac_ext
4364
cat >>conftest.$ac_ext <<_ACEOF
4365
/* end confdefs.h.  */
4366
#include 
4367
#if ((' ' & 0x0FF) == 0x020)
4368
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370
#else
4371
# define ISLOWER(c) \
4372
                   (('a' <= (c) && (c) <= 'i') \
4373
                     || ('j' <= (c) && (c) <= 'r') \
4374
                     || ('s' <= (c) && (c) <= 'z'))
4375
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376
#endif
4377
 
4378
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379
int
4380
main ()
4381
{
4382
  int i;
4383
  for (i = 0; i < 256; i++)
4384
    if (XOR (islower (i), ISLOWER (i))
4385
        || toupper (i) != TOUPPER (i))
4386
      exit(2);
4387
  exit (0);
4388
}
4389
_ACEOF
4390
rm -f conftest$ac_exeext
4391
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392
  (eval $ac_link) 2>&5
4393
  ac_status=$?
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397
  (eval $ac_try) 2>&5
4398
  ac_status=$?
4399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400
  (exit $ac_status); }; }; then
4401
  :
4402
else
4403
  echo "$as_me: program exited with status $ac_status" >&5
4404
echo "$as_me: failed program was:" >&5
4405
sed 's/^/| /' conftest.$ac_ext >&5
4406
 
4407
( exit $ac_status )
4408
ac_cv_header_stdc=no
4409
fi
4410
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411
fi
4412
fi
4413
fi
4414
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416
if test $ac_cv_header_stdc = yes; then
4417
 
4418
cat >>confdefs.h <<\_ACEOF
4419
#define STDC_HEADERS 1
4420
_ACEOF
4421
 
4422
fi
4423
 
4424
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4425
 
4426
 
4427
 
4428
 
4429
 
4430
 
4431
 
4432
 
4433
 
4434
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435
                  inttypes.h stdint.h unistd.h
4436
do
4437
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438
echo "$as_me:$LINENO: checking for $ac_header" >&5
4439
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441
  echo $ECHO_N "(cached) $ECHO_C" >&6
4442
else
4443
  cat >conftest.$ac_ext <<_ACEOF
4444
/* confdefs.h.  */
4445
_ACEOF
4446
cat confdefs.h >>conftest.$ac_ext
4447
cat >>conftest.$ac_ext <<_ACEOF
4448
/* end confdefs.h.  */
4449
$ac_includes_default
4450
 
4451
#include <$ac_header>
4452
_ACEOF
4453
rm -f conftest.$ac_objext
4454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455
  (eval $ac_compile) 2>conftest.er1
4456
  ac_status=$?
4457
  grep -v '^ *+' conftest.er1 >conftest.err
4458
  rm -f conftest.er1
4459
  cat conftest.err >&5
4460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461
  (exit $ac_status); } &&
4462
         { ac_try='test -z "$ac_c_werror_flag"
4463
                         || test ! -s conftest.err'
4464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465
  (eval $ac_try) 2>&5
4466
  ac_status=$?
4467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
  (exit $ac_status); }; } &&
4469
         { ac_try='test -s conftest.$ac_objext'
4470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471
  (eval $ac_try) 2>&5
4472
  ac_status=$?
4473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474
  (exit $ac_status); }; }; then
4475
  eval "$as_ac_Header=yes"
4476
else
4477
  echo "$as_me: failed program was:" >&5
4478
sed 's/^/| /' conftest.$ac_ext >&5
4479
 
4480
eval "$as_ac_Header=no"
4481
fi
4482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4483
fi
4484
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4485
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4486
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4487
  cat >>confdefs.h <<_ACEOF
4488
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4489
_ACEOF
4490
 
4491
fi
4492
 
4493
done
4494
 
4495
 
4496
 
4497
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4498
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4499
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4500
if test "${ac_cv_header_minix_config_h+set}" = set; then
4501
  echo $ECHO_N "(cached) $ECHO_C" >&6
4502
fi
4503
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4504
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4505
else
4506
  # Is the header compilable?
4507
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4508
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4509
cat >conftest.$ac_ext <<_ACEOF
4510
/* confdefs.h.  */
4511
_ACEOF
4512
cat confdefs.h >>conftest.$ac_ext
4513
cat >>conftest.$ac_ext <<_ACEOF
4514
/* end confdefs.h.  */
4515
$ac_includes_default
4516
#include 
4517
_ACEOF
4518
rm -f conftest.$ac_objext
4519
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520
  (eval $ac_compile) 2>conftest.er1
4521
  ac_status=$?
4522
  grep -v '^ *+' conftest.er1 >conftest.err
4523
  rm -f conftest.er1
4524
  cat conftest.err >&5
4525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
  (exit $ac_status); } &&
4527
         { ac_try='test -z "$ac_c_werror_flag"
4528
                         || test ! -s conftest.err'
4529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530
  (eval $ac_try) 2>&5
4531
  ac_status=$?
4532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533
  (exit $ac_status); }; } &&
4534
         { ac_try='test -s conftest.$ac_objext'
4535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536
  (eval $ac_try) 2>&5
4537
  ac_status=$?
4538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
  (exit $ac_status); }; }; then
4540
  ac_header_compiler=yes
4541
else
4542
  echo "$as_me: failed program was:" >&5
4543
sed 's/^/| /' conftest.$ac_ext >&5
4544
 
4545
ac_header_compiler=no
4546
fi
4547
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4548
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4549
echo "${ECHO_T}$ac_header_compiler" >&6
4550
 
4551
# Is the header present?
4552
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4553
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4554
cat >conftest.$ac_ext <<_ACEOF
4555
/* confdefs.h.  */
4556
_ACEOF
4557
cat confdefs.h >>conftest.$ac_ext
4558
cat >>conftest.$ac_ext <<_ACEOF
4559
/* end confdefs.h.  */
4560
#include 
4561
_ACEOF
4562
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4563
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564
  ac_status=$?
4565
  grep -v '^ *+' conftest.er1 >conftest.err
4566
  rm -f conftest.er1
4567
  cat conftest.err >&5
4568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569
  (exit $ac_status); } >/dev/null; then
4570
  if test -s conftest.err; then
4571
    ac_cpp_err=$ac_c_preproc_warn_flag
4572
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4573
  else
4574
    ac_cpp_err=
4575
  fi
4576
else
4577
  ac_cpp_err=yes
4578
fi
4579
if test -z "$ac_cpp_err"; then
4580
  ac_header_preproc=yes
4581
else
4582
  echo "$as_me: failed program was:" >&5
4583
sed 's/^/| /' conftest.$ac_ext >&5
4584
 
4585
  ac_header_preproc=no
4586
fi
4587
rm -f conftest.err conftest.$ac_ext
4588
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4589
echo "${ECHO_T}$ac_header_preproc" >&6
4590
 
4591
# So?  What about this header?
4592
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593
  yes:no: )
4594
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4595
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4596
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4597
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4598
    ac_header_preproc=yes
4599
    ;;
4600
  no:yes:* )
4601
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4602
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4603
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4604
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4605
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4606
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4607
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4608
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4609
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4610
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4611
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4612
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4613
    (
4614
      cat <<\_ASBOX
4615
## ------------------------------------------ ##
4616
## Report this to the AC_PACKAGE_NAME lists.  ##
4617
## ------------------------------------------ ##
4618
_ASBOX
4619
    ) |
4620
      sed "s/^/$as_me: WARNING:     /" >&2
4621
    ;;
4622
esac
4623
echo "$as_me:$LINENO: checking for minix/config.h" >&5
4624
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4625
if test "${ac_cv_header_minix_config_h+set}" = set; then
4626
  echo $ECHO_N "(cached) $ECHO_C" >&6
4627
else
4628
  ac_cv_header_minix_config_h=$ac_header_preproc
4629
fi
4630
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4631
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4632
 
4633
fi
4634
if test $ac_cv_header_minix_config_h = yes; then
4635
  MINIX=yes
4636
else
4637
  MINIX=
4638
fi
4639
 
4640
 
4641
  if test "$MINIX" = yes; then
4642
 
4643
cat >>confdefs.h <<\_ACEOF
4644
#define _POSIX_SOURCE 1
4645
_ACEOF
4646
 
4647
 
4648
cat >>confdefs.h <<\_ACEOF
4649
#define _POSIX_1_SOURCE 2
4650
_ACEOF
4651
 
4652
 
4653
cat >>confdefs.h <<\_ACEOF
4654
#define _MINIX 1
4655
_ACEOF
4656
 
4657
  fi
4658
 
4659
 
4660
 
4661
  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4662
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4663
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4664
  echo $ECHO_N "(cached) $ECHO_C" >&6
4665
else
4666
  cat >conftest.$ac_ext <<_ACEOF
4667
/* confdefs.h.  */
4668
_ACEOF
4669
cat confdefs.h >>conftest.$ac_ext
4670
cat >>conftest.$ac_ext <<_ACEOF
4671
/* end confdefs.h.  */
4672
 
4673
#         define __EXTENSIONS__ 1
4674
          $ac_includes_default
4675
int
4676
main ()
4677
{
4678
 
4679
  ;
4680
  return 0;
4681
}
4682
_ACEOF
4683
rm -f conftest.$ac_objext
4684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685
  (eval $ac_compile) 2>conftest.er1
4686
  ac_status=$?
4687
  grep -v '^ *+' conftest.er1 >conftest.err
4688
  rm -f conftest.er1
4689
  cat conftest.err >&5
4690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691
  (exit $ac_status); } &&
4692
         { ac_try='test -z "$ac_c_werror_flag"
4693
                         || test ! -s conftest.err'
4694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695
  (eval $ac_try) 2>&5
4696
  ac_status=$?
4697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698
  (exit $ac_status); }; } &&
4699
         { ac_try='test -s conftest.$ac_objext'
4700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701
  (eval $ac_try) 2>&5
4702
  ac_status=$?
4703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704
  (exit $ac_status); }; }; then
4705
  ac_cv_safe_to_define___extensions__=yes
4706
else
4707
  echo "$as_me: failed program was:" >&5
4708
sed 's/^/| /' conftest.$ac_ext >&5
4709
 
4710
ac_cv_safe_to_define___extensions__=no
4711
fi
4712
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713
fi
4714
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4716
  test $ac_cv_safe_to_define___extensions__ = yes &&
4717
    cat >>confdefs.h <<\_ACEOF
4718
#define __EXTENSIONS__ 1
4719
_ACEOF
4720
 
4721
  cat >>confdefs.h <<\_ACEOF
4722
#define _ALL_SOURCE 1
4723
_ACEOF
4724
 
4725
  cat >>confdefs.h <<\_ACEOF
4726
#define _GNU_SOURCE 1
4727
_ACEOF
4728
 
4729
  cat >>confdefs.h <<\_ACEOF
4730
#define _POSIX_PTHREAD_SEMANTICS 1
4731
_ACEOF
4732
 
4733
  cat >>confdefs.h <<\_ACEOF
4734
#define _TANDEM_SOURCE 1
4735
_ACEOF
4736
 
4737
 
4738
 
4739
 
4740
macro_version='2.1a'
4741
macro_revision='1.2435'
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
 
4753
 
4754
ltmain="$ac_aux_dir/ltmain.sh"
4755
 
4756
# Set options
4757
 
4758
enable_dlopen=no
4759
 
4760
 
4761
enable_win32_dll=no
4762
 
4763
 
4764
# Check whether --enable-shared or --disable-shared was given.
4765
if test "${enable_shared+set}" = set; then
4766
  enableval="$enable_shared"
4767
  p=${PACKAGE-default}
4768
    case $enableval in
4769
    yes) enable_shared=yes ;;
4770
    no) enable_shared=no ;;
4771
    *)
4772
      enable_shared=no
4773
      # Look at the argument we got.  We use all the common list separators.
4774
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4775
      for pkg in $enableval; do
4776
        IFS="$lt_save_ifs"
4777
        if test "X$pkg" = "X$p"; then
4778
          enable_shared=yes
4779
        fi
4780
      done
4781
      IFS="$lt_save_ifs"
4782
      ;;
4783
    esac
4784
else
4785
  enable_shared=yes
4786
fi;
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
# Check whether --enable-static or --disable-static was given.
4796
if test "${enable_static+set}" = set; then
4797
  enableval="$enable_static"
4798
  p=${PACKAGE-default}
4799
    case $enableval in
4800
    yes) enable_static=yes ;;
4801
    no) enable_static=no ;;
4802
    *)
4803
     enable_static=no
4804
      # Look at the argument we got.  We use all the common list separators.
4805
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4806
      for pkg in $enableval; do
4807
        IFS="$lt_save_ifs"
4808
        if test "X$pkg" = "X$p"; then
4809
          enable_static=yes
4810
        fi
4811
      done
4812
      IFS="$lt_save_ifs"
4813
      ;;
4814
    esac
4815
else
4816
  enable_static=yes
4817
fi;
4818
 
4819
 
4820
 
4821
 
4822
 
4823
 
4824
 
4825
 
4826
 
4827
# Check whether --with-pic or --without-pic was given.
4828
if test "${with_pic+set}" = set; then
4829
  withval="$with_pic"
4830
  pic_mode="$withval"
4831
else
4832
  pic_mode=default
4833
fi;
4834
 
4835
test -z "$pic_mode" && pic_mode=default
4836
 
4837
 
4838
 
4839
 
4840
 
4841
 
4842
 
4843
# Check whether --enable-fast-install or --disable-fast-install was given.
4844
if test "${enable_fast_install+set}" = set; then
4845
  enableval="$enable_fast_install"
4846
  p=${PACKAGE-default}
4847
    case $enableval in
4848
    yes) enable_fast_install=yes ;;
4849
    no) enable_fast_install=no ;;
4850
    *)
4851
      enable_fast_install=no
4852
      # Look at the argument we got.  We use all the common list separators.
4853
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4854
      for pkg in $enableval; do
4855
        IFS="$lt_save_ifs"
4856
        if test "X$pkg" = "X$p"; then
4857
          enable_fast_install=yes
4858
        fi
4859
      done
4860
      IFS="$lt_save_ifs"
4861
      ;;
4862
    esac
4863
else
4864
  enable_fast_install=yes
4865
fi;
4866
 
4867
 
4868
 
4869
 
4870
 
4871
 
4872
 
4873
 
4874
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4875
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4876
if test "${lt_cv_path_SED+set}" = set; then
4877
  echo $ECHO_N "(cached) $ECHO_C" >&6
4878
else
4879
  # Loop through the user's path and test for sed and gsed.
4880
# Then use that list of sed's as ones to test for truncation.
4881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882
for as_dir in $PATH
4883
do
4884
  IFS=$as_save_IFS
4885
  test -z "$as_dir" && as_dir=.
4886
  for lt_ac_prog in sed gsed; do
4887
    for ac_exec_ext in '' $ac_executable_extensions; do
4888
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4889
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4890
      fi
4891
    done
4892
  done
4893
done
4894
IFS=$as_save_IFS
4895
lt_ac_max=0
4896
lt_ac_count=0
4897
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4898
# along with /bin/sed that truncates output.
4899
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4900
  test ! -f $lt_ac_sed && continue
4901
  cat /dev/null > conftest.in
4902
  lt_ac_count=0
4903
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4904
  # Check for GNU sed and select it if it is found.
4905
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4906
    lt_cv_path_SED=$lt_ac_sed
4907
    break
4908
  fi
4909
  while true; do
4910
    cat conftest.in conftest.in >conftest.tmp
4911
    mv conftest.tmp conftest.in
4912
    cp conftest.in conftest.nl
4913
    echo >>conftest.nl
4914
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4915
    cmp -s conftest.out conftest.nl || break
4916
    # 10000 chars as input seems more than enough
4917
    test $lt_ac_count -gt 10 && break
4918
    lt_ac_count=`expr $lt_ac_count + 1`
4919
    if test $lt_ac_count -gt $lt_ac_max; then
4920
      lt_ac_max=$lt_ac_count
4921
      lt_cv_path_SED=$lt_ac_sed
4922
    fi
4923
  done
4924
done
4925
 
4926
fi
4927
 
4928
SED=$lt_cv_path_SED
4929
 
4930
echo "$as_me:$LINENO: result: $SED" >&5
4931
echo "${ECHO_T}$SED" >&6
4932
 
4933
test -z "$SED" && SED=sed
4934
Xsed="$SED -e 1s/^X//"
4935
 
4936
 
4937
 
4938
 
4939
 
4940
 
4941
 
4942
 
4943
 
4944
 
4945
 
4946
echo "$as_me:$LINENO: checking for fgrep" >&5
4947
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4948
if test "${ac_cv_prog_fgrep+set}" = set; then
4949
  echo $ECHO_N "(cached) $ECHO_C" >&6
4950
else
4951
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4952
    then ac_cv_prog_fgrep='grep -F'
4953
    else ac_cv_prog_fgrep='fgrep'
4954
    fi
4955
fi
4956
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4957
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4958
 FGREP=$ac_cv_prog_fgrep
4959
 
4960
 
4961
test -z "$GREP" && GREP=grep
4962
 
4963
 
4964
 
4965
 
4966
 
4967
 
4968
 
4969
 
4970
 
4971
 
4972
 
4973
 
4974
 
4975
 
4976
 
4977
 
4978
 
4979
 
4980
 
4981
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4982
if test "${with_gnu_ld+set}" = set; then
4983
  withval="$with_gnu_ld"
4984
  test "$withval" = no || with_gnu_ld=yes
4985
else
4986
  with_gnu_ld=no
4987
fi;
4988
ac_prog=ld
4989
if test "$GCC" = yes; then
4990
  # Check if gcc -print-prog-name=ld gives a path.
4991
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4992
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4993
  case $host in
4994
  *-*-mingw*)
4995
    # gcc leaves a trailing carriage return which upsets mingw
4996
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4997
  *)
4998
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4999
  esac
5000
  case $ac_prog in
5001
    # Accept absolute paths.
5002
    [\\/]* | ?:[\\/]*)
5003
      re_direlt='/[^/][^/]*/\.\./'
5004
      # Canonicalize the pathname of ld
5005
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5006
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5007
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5008
      done
5009
      test -z "$LD" && LD="$ac_prog"
5010
      ;;
5011
  "")
5012
    # If it fails, then pretend we aren't using GCC.
5013
    ac_prog=ld
5014
    ;;
5015
  *)
5016
    # If it is relative, then search for the first ld in PATH.
5017
    with_gnu_ld=unknown
5018
    ;;
5019
  esac
5020
elif test "$with_gnu_ld" = yes; then
5021
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5022
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5023
else
5024
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5025
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5026
fi
5027
if test "${lt_cv_path_LD+set}" = set; then
5028
  echo $ECHO_N "(cached) $ECHO_C" >&6
5029
else
5030
  if test -z "$LD"; then
5031
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5032
  for ac_dir in $PATH; do
5033
    IFS="$lt_save_ifs"
5034
    test -z "$ac_dir" && ac_dir=.
5035
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5036
      lt_cv_path_LD="$ac_dir/$ac_prog"
5037
      # Check to see if the program is GNU ld.  I'd rather use --version,
5038
      # but apparently some variants of GNU ld only accept -v.
5039
      # Break only if it was the GNU/non-GNU ld that we prefer.
5040
      case `"$lt_cv_path_LD" -v 2>&1 
5041
      *GNU* | *'with BFD'*)
5042
        test "$with_gnu_ld" != no && break
5043
        ;;
5044
      *)
5045
        test "$with_gnu_ld" != yes && break
5046
        ;;
5047
      esac
5048
    fi
5049
  done
5050
  IFS="$lt_save_ifs"
5051
else
5052
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5053
fi
5054
fi
5055
 
5056
LD="$lt_cv_path_LD"
5057
if test -n "$LD"; then
5058
  echo "$as_me:$LINENO: result: $LD" >&5
5059
echo "${ECHO_T}$LD" >&6
5060
else
5061
  echo "$as_me:$LINENO: result: no" >&5
5062
echo "${ECHO_T}no" >&6
5063
fi
5064
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5065
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5066
   { (exit 1); exit 1; }; }
5067
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5068
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5069
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5070
  echo $ECHO_N "(cached) $ECHO_C" >&6
5071
else
5072
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5073
case `$LD -v 2>&1 
5074
*GNU* | *'with BFD'*)
5075
  lt_cv_prog_gnu_ld=yes
5076
  ;;
5077
*)
5078
  lt_cv_prog_gnu_ld=no
5079
  ;;
5080
esac
5081
fi
5082
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5083
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5084
with_gnu_ld=$lt_cv_prog_gnu_ld
5085
 
5086
 
5087
 
5088
 
5089
 
5090
 
5091
 
5092
 
5093
 
5094
 
5095
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5096
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5097
if test "${lt_cv_path_NM+set}" = set; then
5098
  echo $ECHO_N "(cached) $ECHO_C" >&6
5099
else
5100
  if test -n "$NM"; then
5101
  # Let the user override the test.
5102
  lt_cv_path_NM="$NM"
5103
else
5104
  lt_nm_to_check="${ac_tool_prefix}nm"
5105
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5106
    lt_nm_to_check="$lt_nm_to_check nm"
5107
  fi
5108
  for lt_tmp_nm in $lt_nm_to_check; do
5109
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5110
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5111
      IFS="$lt_save_ifs"
5112
      test -z "$ac_dir" && ac_dir=.
5113
      tmp_nm="$ac_dir/$lt_tmp_nm"
5114
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5115
        # Check to see if the nm accepts a BSD-compat flag.
5116
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5117
        #   nm: unknown option "B" ignored
5118
        # Tru64's nm complains that /dev/null is an invalid object file
5119
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5120
        */dev/null* | *'Invalid file or object type'*)
5121
          lt_cv_path_NM="$tmp_nm -B"
5122
          break
5123
          ;;
5124
        *)
5125
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5126
          */dev/null*)
5127
            lt_cv_path_NM="$tmp_nm -p"
5128
            break
5129
            ;;
5130
          *)
5131
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5132
            continue # so that we can try to find one that supports BSD flags
5133
            ;;
5134
          esac
5135
          ;;
5136
        esac
5137
      fi
5138
    done
5139
    IFS="$lt_save_ifs"
5140
  done
5141
  : ${lt_cv_path_NM=no}
5142
fi
5143
fi
5144
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5145
echo "${ECHO_T}$lt_cv_path_NM" >&6
5146
if test "$lt_cv_path_NM" != "no"; then
5147
  NM="$lt_cv_path_NM"
5148
else
5149
  # Didn't find any BSD compatible name lister, look for dumpbin.
5150
  if test -n "$ac_tool_prefix"; then
5151
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5152
  do
5153
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5154
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5155
echo "$as_me:$LINENO: checking for $ac_word" >&5
5156
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5158
  echo $ECHO_N "(cached) $ECHO_C" >&6
5159
else
5160
  if test -n "$DUMPBIN"; then
5161
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5162
else
5163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164
for as_dir in $PATH
5165
do
5166
  IFS=$as_save_IFS
5167
  test -z "$as_dir" && as_dir=.
5168
  for ac_exec_ext in '' $ac_executable_extensions; do
5169
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5171
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172
    break 2
5173
  fi
5174
done
5175
done
5176
 
5177
fi
5178
fi
5179
DUMPBIN=$ac_cv_prog_DUMPBIN
5180
if test -n "$DUMPBIN"; then
5181
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5182
echo "${ECHO_T}$DUMPBIN" >&6
5183
else
5184
  echo "$as_me:$LINENO: result: no" >&5
5185
echo "${ECHO_T}no" >&6
5186
fi
5187
 
5188
    test -n "$DUMPBIN" && break
5189
  done
5190
fi
5191
if test -z "$DUMPBIN"; then
5192
  ac_ct_DUMPBIN=$DUMPBIN
5193
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5194
do
5195
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5196
set dummy $ac_prog; ac_word=$2
5197
echo "$as_me:$LINENO: checking for $ac_word" >&5
5198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5200
  echo $ECHO_N "(cached) $ECHO_C" >&6
5201
else
5202
  if test -n "$ac_ct_DUMPBIN"; then
5203
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5204
else
5205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206
for as_dir in $PATH
5207
do
5208
  IFS=$as_save_IFS
5209
  test -z "$as_dir" && as_dir=.
5210
  for ac_exec_ext in '' $ac_executable_extensions; do
5211
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214
    break 2
5215
  fi
5216
done
5217
done
5218
 
5219
fi
5220
fi
5221
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5222
if test -n "$ac_ct_DUMPBIN"; then
5223
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5224
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5225
else
5226
  echo "$as_me:$LINENO: result: no" >&5
5227
echo "${ECHO_T}no" >&6
5228
fi
5229
 
5230
  test -n "$ac_ct_DUMPBIN" && break
5231
done
5232
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5233
 
5234
  DUMPBIN=$ac_ct_DUMPBIN
5235
fi
5236
 
5237
 
5238
  if test "$DUMPBIN" != ":"; then
5239
    NM="$DUMPBIN"
5240
  fi
5241
fi
5242
test -z "$NM" && NM=nm
5243
 
5244
 
5245
 
5246
 
5247
 
5248
 
5249
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5250
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5251
if test "${lt_cv_nm_interface+set}" = set; then
5252
  echo $ECHO_N "(cached) $ECHO_C" >&6
5253
else
5254
  lt_cv_nm_interface="BSD nm"
5255
  echo "int some_variable = 0;" > conftest.$ac_ext
5256
  (eval echo "\"\$as_me:5256: $ac_compile\"" >&5)
5257
  (eval "$ac_compile" 2>conftest.err)
5258
  cat conftest.err >&5
5259
  (eval echo "\"\$as_me:5259: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5260
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5261
  cat conftest.err >&5
5262
  (eval echo "\"\$as_me:5262: output\"" >&5)
5263
  cat conftest.out >&5
5264
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5265
    lt_cv_nm_interface="MS dumpbin"
5266
  fi
5267
  rm -f conftest*
5268
fi
5269
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5270
echo "${ECHO_T}$lt_cv_nm_interface" >&6
5271
 
5272
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5273
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5274
LN_S=$as_ln_s
5275
if test "$LN_S" = "ln -s"; then
5276
  echo "$as_me:$LINENO: result: yes" >&5
5277
echo "${ECHO_T}yes" >&6
5278
else
5279
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5280
echo "${ECHO_T}no, using $LN_S" >&6
5281
fi
5282
 
5283
# find the maximum length of command line arguments
5284
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5285
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5286
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5287
  echo $ECHO_N "(cached) $ECHO_C" >&6
5288
else
5289
    i=0
5290
  teststring="ABCD"
5291
 
5292
  case $build_os in
5293
  msdosdjgpp*)
5294
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5295
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5296
    # during glob expansion).  Even if it were fixed, the result of this
5297
    # check would be larger than it should be.
5298
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5299
    ;;
5300
 
5301
  gnu*)
5302
    # Under GNU Hurd, this test is not required because there is
5303
    # no limit to the length of command line arguments.
5304
    # Libtool will interpret -1 as no limit whatsoever
5305
    lt_cv_sys_max_cmd_len=-1;
5306
    ;;
5307
 
5308
  cygwin* | mingw*)
5309
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5310
    # about 5 minutes as the teststring grows exponentially.
5311
    # Worse, since 9x/ME are not pre-emptively multitasking,
5312
    # you end up with a "frozen" computer, even though with patience
5313
    # the test eventually succeeds (with a max line length of 256k).
5314
    # Instead, let's just punt: use the minimum linelength reported by
5315
    # all of the supported platforms: 8192 (on NT/2K/XP).
5316
    lt_cv_sys_max_cmd_len=8192;
5317
    ;;
5318
 
5319
  amigaos*)
5320
    # On AmigaOS with pdksh, this test takes hours, literally.
5321
    # So we just punt and use a minimum line length of 8192.
5322
    lt_cv_sys_max_cmd_len=8192;
5323
    ;;
5324
 
5325
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5326
    # This has been around since 386BSD, at least.  Likely further.
5327
    if test -x /sbin/sysctl; then
5328
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5329
    elif test -x /usr/sbin/sysctl; then
5330
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5331
    else
5332
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5333
    fi
5334
    # And add a safety zone
5335
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5336
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5337
    ;;
5338
 
5339
  interix*)
5340
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5341
    lt_cv_sys_max_cmd_len=196608
5342
    ;;
5343
 
5344
  osf*)
5345
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5346
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5347
    # nice to cause kernel panics so lets avoid the loop below.
5348
    # First set a reasonable default.
5349
    lt_cv_sys_max_cmd_len=16384
5350
    #
5351
    if test -x /sbin/sysconfig; then
5352
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5353
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5354
      esac
5355
    fi
5356
    ;;
5357
  sco3.2v5*)
5358
    lt_cv_sys_max_cmd_len=102400
5359
    ;;
5360
  sysv5* | sco5v6* | sysv4.2uw2*)
5361
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5362
    if test -n "$kargmax"; then
5363
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5364
    else
5365
      lt_cv_sys_max_cmd_len=32768
5366
    fi
5367
    ;;
5368
  *)
5369
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5370
    if test -n $lt_cv_sys_max_cmd_len; then
5371
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5372
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5373
    else
5374
      # Make teststring a little bigger before we do anything with it.
5375
      # a 1K string should be a reasonable start.
5376
      for i in 1 2 3 4 5 6 7 8 ; do
5377
        teststring=$teststring$teststring
5378
      done
5379
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5380
      # If test is not a shell built-in, we'll probably end up computing a
5381
      # maximum length that is only half of the actual maximum length, but
5382
      # we can't tell.
5383
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5384
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5385
              test $i != 17 # 1/2 MB should be enough
5386
      do
5387
        i=`expr $i + 1`
5388
        teststring=$teststring$teststring
5389
      done
5390
      # Only check the string length outside the loop.
5391
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5392
      teststring=
5393
      # Add a significant safety factor because C++ compilers can tack on
5394
      # massive amounts of additional arguments before passing them to the
5395
      # linker.  It appears as though 1/2 is a usable value.
5396
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397
    fi
5398
    ;;
5399
  esac
5400
 
5401
fi
5402
 
5403
if test -n $lt_cv_sys_max_cmd_len ; then
5404
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5405
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5406
else
5407
  echo "$as_me:$LINENO: result: none" >&5
5408
echo "${ECHO_T}none" >&6
5409
fi
5410
max_cmd_len=$lt_cv_sys_max_cmd_len
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
: ${CP="cp -f"}
5419
: ${MV="mv -f"}
5420
: ${RM="rm -f"}
5421
 
5422
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5423
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5424
# Try some XSI features
5425
xsi_shell=no
5426
( _lt_dummy="a/b/c"
5427
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5428
      = c,a/b,, ) >/dev/null 2>&1 \
5429
  && xsi_shell=yes
5430
echo "$as_me:$LINENO: result: $xsi_shell" >&5
5431
echo "${ECHO_T}$xsi_shell" >&6
5432
 
5433
 
5434
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5435
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5436
lt_shell_append=no
5437
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5438
    >/dev/null 2>&1 \
5439
  && lt_shell_append=yes
5440
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5441
echo "${ECHO_T}$lt_shell_append" >&6
5442
 
5443
 
5444
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445
  lt_unset=unset
5446
else
5447
  lt_unset=false
5448
fi
5449
 
5450
 
5451
 
5452
 
5453
 
5454
# test EBCDIC or ASCII
5455
case `echo X|tr X '\101'` in
5456
 A) # ASCII based system
5457
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5458
  lt_SP2NL='tr \040 \012'
5459
  lt_NL2SP='tr \015\012 \040\040'
5460
  ;;
5461
 *) # EBCDIC based system
5462
  lt_SP2NL='tr \100 \n'
5463
  lt_NL2SP='tr \r\n \100\100'
5464
  ;;
5465
esac
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5476
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5477
if test "${lt_cv_ld_reload_flag+set}" = set; then
5478
  echo $ECHO_N "(cached) $ECHO_C" >&6
5479
else
5480
  lt_cv_ld_reload_flag='-r'
5481
fi
5482
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5483
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5484
reload_flag=$lt_cv_ld_reload_flag
5485
case $reload_flag in
5486
"" | " "*) ;;
5487
*) reload_flag=" $reload_flag" ;;
5488
esac
5489
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5490
case $host_os in
5491
  darwin*)
5492
    if test "$GCC" = yes; then
5493
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5494
    else
5495
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5496
    fi
5497
    ;;
5498
esac
5499
 
5500
 
5501
 
5502
 
5503
 
5504
 
5505
 
5506
 
5507
 
5508
 
5509
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5510
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5511
if test "${lt_cv_deplibs_check_method+set}" = set; then
5512
  echo $ECHO_N "(cached) $ECHO_C" >&6
5513
else
5514
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5515
lt_cv_file_magic_test_file=
5516
lt_cv_deplibs_check_method='unknown'
5517
# Need to set the preceding variable on all platforms that support
5518
# interlibrary dependencies.
5519
# 'none' -- dependencies not supported.
5520
# `unknown' -- same as none, but documents that we really don't know.
5521
# 'pass_all' -- all dependencies passed with no checks.
5522
# 'test_compile' -- check by making test program.
5523
# 'file_magic [[regex]]' -- check by looking for files in library path
5524
# which responds to the $file_magic_cmd with a given extended regex.
5525
# If you have `file' or equivalent on your system and you're not sure
5526
# whether `pass_all' will *always* work, you probably want this one.
5527
 
5528
case $host_os in
5529
aix[4-9]*)
5530
  lt_cv_deplibs_check_method=pass_all
5531
  ;;
5532
 
5533
beos*)
5534
  lt_cv_deplibs_check_method=pass_all
5535
  ;;
5536
 
5537
bsdi[45]*)
5538
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5539
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5540
  lt_cv_file_magic_test_file=/shlib/libc.so
5541
  ;;
5542
 
5543
cygwin*)
5544
  # func_win32_libid is a shell function defined in ltmain.sh
5545
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5546
  lt_cv_file_magic_cmd='func_win32_libid'
5547
  ;;
5548
 
5549
mingw* | pw32*)
5550
  # Base MSYS/MinGW do not provide the 'file' command needed by
5551
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5552
  # unless we find 'file', for example because we are cross-compiling.
5553
  if ( file / ) >/dev/null 2>&1; then
5554
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555
    lt_cv_file_magic_cmd='func_win32_libid'
5556
  else
5557
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5558
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5559
  fi
5560
  ;;
5561
 
5562
darwin* | rhapsody*)
5563
  lt_cv_deplibs_check_method=pass_all
5564
  ;;
5565
 
5566
freebsd* | dragonfly*)
5567
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5568
    case $host_cpu in
5569
    i*86 )
5570
      # Not sure whether the presence of OpenBSD here was a mistake.
5571
      # Let's accept both of them until this is cleared up.
5572
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5573
      lt_cv_file_magic_cmd=/usr/bin/file
5574
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5575
      ;;
5576
    esac
5577
  else
5578
    lt_cv_deplibs_check_method=pass_all
5579
  fi
5580
  ;;
5581
 
5582
gnu*)
5583
  lt_cv_deplibs_check_method=pass_all
5584
  ;;
5585
 
5586
hpux10.20* | hpux11*)
5587
  lt_cv_file_magic_cmd=/usr/bin/file
5588
  case $host_cpu in
5589
  ia64*)
5590
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5591
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5592
    ;;
5593
  hppa*64*)
5594
    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]'
5595
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596
    ;;
5597
  *)
5598
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5599
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5600
    ;;
5601
  esac
5602
  ;;
5603
 
5604
interix[3-9]*)
5605
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5606
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5607
  ;;
5608
 
5609
irix5* | irix6* | nonstopux*)
5610
  case $LD in
5611
  *-32|*"-32 ") libmagic=32-bit;;
5612
  *-n32|*"-n32 ") libmagic=N32;;
5613
  *-64|*"-64 ") libmagic=64-bit;;
5614
  *) libmagic=never-match;;
5615
  esac
5616
  lt_cv_deplibs_check_method=pass_all
5617
  ;;
5618
 
5619
# This must be Linux ELF.
5620
linux* | k*bsd*-gnu)
5621
  lt_cv_deplibs_check_method=pass_all
5622
  ;;
5623
 
5624
netbsd*)
5625
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5626
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627
  else
5628
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5629
  fi
5630
  ;;
5631
 
5632
newos6*)
5633
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5634
  lt_cv_file_magic_cmd=/usr/bin/file
5635
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5636
  ;;
5637
 
5638
*nto* | *qnx*)
5639
  lt_cv_deplibs_check_method=pass_all
5640
  ;;
5641
 
5642
openbsd*)
5643
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5644
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5645
  else
5646
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5647
  fi
5648
  ;;
5649
 
5650
osf3* | osf4* | osf5*)
5651
  lt_cv_deplibs_check_method=pass_all
5652
  ;;
5653
 
5654
rdos*)
5655
  lt_cv_deplibs_check_method=pass_all
5656
  ;;
5657
 
5658
solaris*)
5659
  lt_cv_deplibs_check_method=pass_all
5660
  ;;
5661
 
5662
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663
  lt_cv_deplibs_check_method=pass_all
5664
  ;;
5665
 
5666
sysv4 | sysv4.3*)
5667
  case $host_vendor in
5668
  motorola)
5669
    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]'
5670
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5671
    ;;
5672
  ncr)
5673
    lt_cv_deplibs_check_method=pass_all
5674
    ;;
5675
  sequent)
5676
    lt_cv_file_magic_cmd='/bin/file'
5677
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5678
    ;;
5679
  sni)
5680
    lt_cv_file_magic_cmd='/bin/file'
5681
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682
    lt_cv_file_magic_test_file=/lib/libc.so
5683
    ;;
5684
  siemens)
5685
    lt_cv_deplibs_check_method=pass_all
5686
    ;;
5687
  pc)
5688
    lt_cv_deplibs_check_method=pass_all
5689
    ;;
5690
  esac
5691
  ;;
5692
 
5693
tpf*)
5694
  lt_cv_deplibs_check_method=pass_all
5695
  ;;
5696
esac
5697
 
5698
fi
5699
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5700
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5701
file_magic_cmd=$lt_cv_file_magic_cmd
5702
deplibs_check_method=$lt_cv_deplibs_check_method
5703
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
if test -n "$ac_tool_prefix"; then
5717
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5718
set dummy ${ac_tool_prefix}ar; ac_word=$2
5719
echo "$as_me:$LINENO: checking for $ac_word" >&5
5720
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721
if test "${ac_cv_prog_AR+set}" = set; then
5722
  echo $ECHO_N "(cached) $ECHO_C" >&6
5723
else
5724
  if test -n "$AR"; then
5725
  ac_cv_prog_AR="$AR" # Let the user override the test.
5726
else
5727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728
for as_dir in $PATH
5729
do
5730
  IFS=$as_save_IFS
5731
  test -z "$as_dir" && as_dir=.
5732
  for ac_exec_ext in '' $ac_executable_extensions; do
5733
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5735
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736
    break 2
5737
  fi
5738
done
5739
done
5740
 
5741
fi
5742
fi
5743
AR=$ac_cv_prog_AR
5744
if test -n "$AR"; then
5745
  echo "$as_me:$LINENO: result: $AR" >&5
5746
echo "${ECHO_T}$AR" >&6
5747
else
5748
  echo "$as_me:$LINENO: result: no" >&5
5749
echo "${ECHO_T}no" >&6
5750
fi
5751
 
5752
fi
5753
if test -z "$ac_cv_prog_AR"; then
5754
  ac_ct_AR=$AR
5755
  # Extract the first word of "ar", so it can be a program name with args.
5756
set dummy ar; ac_word=$2
5757
echo "$as_me:$LINENO: checking for $ac_word" >&5
5758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5760
  echo $ECHO_N "(cached) $ECHO_C" >&6
5761
else
5762
  if test -n "$ac_ct_AR"; then
5763
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5764
else
5765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766
for as_dir in $PATH
5767
do
5768
  IFS=$as_save_IFS
5769
  test -z "$as_dir" && as_dir=.
5770
  for ac_exec_ext in '' $ac_executable_extensions; do
5771
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772
    ac_cv_prog_ac_ct_AR="ar"
5773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774
    break 2
5775
  fi
5776
done
5777
done
5778
 
5779
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5780
fi
5781
fi
5782
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5783
if test -n "$ac_ct_AR"; then
5784
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5785
echo "${ECHO_T}$ac_ct_AR" >&6
5786
else
5787
  echo "$as_me:$LINENO: result: no" >&5
5788
echo "${ECHO_T}no" >&6
5789
fi
5790
 
5791
  AR=$ac_ct_AR
5792
else
5793
  AR="$ac_cv_prog_AR"
5794
fi
5795
 
5796
test -z "$AR" && AR=ar
5797
test -z "$AR_FLAGS" && AR_FLAGS=cru
5798
 
5799
 
5800
 
5801
 
5802
 
5803
 
5804
 
5805
 
5806
 
5807
 
5808
 
5809
if test -n "$ac_tool_prefix"; then
5810
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811
set dummy ${ac_tool_prefix}strip; ac_word=$2
5812
echo "$as_me:$LINENO: checking for $ac_word" >&5
5813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814
if test "${ac_cv_prog_STRIP+set}" = set; then
5815
  echo $ECHO_N "(cached) $ECHO_C" >&6
5816
else
5817
  if test -n "$STRIP"; then
5818
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819
else
5820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821
for as_dir in $PATH
5822
do
5823
  IFS=$as_save_IFS
5824
  test -z "$as_dir" && as_dir=.
5825
  for ac_exec_ext in '' $ac_executable_extensions; do
5826
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829
    break 2
5830
  fi
5831
done
5832
done
5833
 
5834
fi
5835
fi
5836
STRIP=$ac_cv_prog_STRIP
5837
if test -n "$STRIP"; then
5838
  echo "$as_me:$LINENO: result: $STRIP" >&5
5839
echo "${ECHO_T}$STRIP" >&6
5840
else
5841
  echo "$as_me:$LINENO: result: no" >&5
5842
echo "${ECHO_T}no" >&6
5843
fi
5844
 
5845
fi
5846
if test -z "$ac_cv_prog_STRIP"; then
5847
  ac_ct_STRIP=$STRIP
5848
  # Extract the first word of "strip", so it can be a program name with args.
5849
set dummy strip; ac_word=$2
5850
echo "$as_me:$LINENO: checking for $ac_word" >&5
5851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5853
  echo $ECHO_N "(cached) $ECHO_C" >&6
5854
else
5855
  if test -n "$ac_ct_STRIP"; then
5856
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5857
else
5858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859
for as_dir in $PATH
5860
do
5861
  IFS=$as_save_IFS
5862
  test -z "$as_dir" && as_dir=.
5863
  for ac_exec_ext in '' $ac_executable_extensions; do
5864
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865
    ac_cv_prog_ac_ct_STRIP="strip"
5866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867
    break 2
5868
  fi
5869
done
5870
done
5871
 
5872
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5873
fi
5874
fi
5875
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5876
if test -n "$ac_ct_STRIP"; then
5877
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5878
echo "${ECHO_T}$ac_ct_STRIP" >&6
5879
else
5880
  echo "$as_me:$LINENO: result: no" >&5
5881
echo "${ECHO_T}no" >&6
5882
fi
5883
 
5884
  STRIP=$ac_ct_STRIP
5885
else
5886
  STRIP="$ac_cv_prog_STRIP"
5887
fi
5888
 
5889
test -z "$STRIP" && STRIP=:
5890
 
5891
 
5892
 
5893
 
5894
 
5895
 
5896
if test -n "$ac_tool_prefix"; then
5897
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5898
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5899
echo "$as_me:$LINENO: checking for $ac_word" >&5
5900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5901
if test "${ac_cv_prog_RANLIB+set}" = set; then
5902
  echo $ECHO_N "(cached) $ECHO_C" >&6
5903
else
5904
  if test -n "$RANLIB"; then
5905
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5906
else
5907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908
for as_dir in $PATH
5909
do
5910
  IFS=$as_save_IFS
5911
  test -z "$as_dir" && as_dir=.
5912
  for ac_exec_ext in '' $ac_executable_extensions; do
5913
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5915
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916
    break 2
5917
  fi
5918
done
5919
done
5920
 
5921
fi
5922
fi
5923
RANLIB=$ac_cv_prog_RANLIB
5924
if test -n "$RANLIB"; then
5925
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5926
echo "${ECHO_T}$RANLIB" >&6
5927
else
5928
  echo "$as_me:$LINENO: result: no" >&5
5929
echo "${ECHO_T}no" >&6
5930
fi
5931
 
5932
fi
5933
if test -z "$ac_cv_prog_RANLIB"; then
5934
  ac_ct_RANLIB=$RANLIB
5935
  # Extract the first word of "ranlib", so it can be a program name with args.
5936
set dummy ranlib; ac_word=$2
5937
echo "$as_me:$LINENO: checking for $ac_word" >&5
5938
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5939
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5940
  echo $ECHO_N "(cached) $ECHO_C" >&6
5941
else
5942
  if test -n "$ac_ct_RANLIB"; then
5943
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944
else
5945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946
for as_dir in $PATH
5947
do
5948
  IFS=$as_save_IFS
5949
  test -z "$as_dir" && as_dir=.
5950
  for ac_exec_ext in '' $ac_executable_extensions; do
5951
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954
    break 2
5955
  fi
5956
done
5957
done
5958
 
5959
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5960
fi
5961
fi
5962
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963
if test -n "$ac_ct_RANLIB"; then
5964
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5965
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5966
else
5967
  echo "$as_me:$LINENO: result: no" >&5
5968
echo "${ECHO_T}no" >&6
5969
fi
5970
 
5971
  RANLIB=$ac_ct_RANLIB
5972
else
5973
  RANLIB="$ac_cv_prog_RANLIB"
5974
fi
5975
 
5976
test -z "$RANLIB" && RANLIB=:
5977
 
5978
 
5979
 
5980
 
5981
 
5982
 
5983
# Determine commands to create old-style static archives.
5984
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5985
old_postinstall_cmds='chmod 644 $oldlib'
5986
old_postuninstall_cmds=
5987
 
5988
if test -n "$RANLIB"; then
5989
  case $host_os in
5990
  openbsd*)
5991
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5992
    ;;
5993
  *)
5994
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5995
    ;;
5996
  esac
5997
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5998
fi
5999
 
6000
 
6001
 
6002
 
6003
 
6004
 
6005
 
6006
 
6007
 
6008
 
6009
 
6010
 
6011
 
6012
 
6013
 
6014
 
6015
 
6016
 
6017
 
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
 
6026
 
6027
 
6028
 
6029
 
6030
 
6031
 
6032
 
6033
# If no C compiler was specified, use CC.
6034
LTCC=${LTCC-"$CC"}
6035
 
6036
# If no C compiler flags were specified, use CFLAGS.
6037
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038
 
6039
# Allow CC to be a program name with arguments.
6040
compiler=$CC
6041
 
6042
 
6043
# Check for command to grab the raw symbol name followed by C symbol from nm.
6044
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6045
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6046
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6047
  echo $ECHO_N "(cached) $ECHO_C" >&6
6048
else
6049
 
6050
# These are sane defaults that work on at least a few old systems.
6051
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6052
 
6053
# Character class describing NM global symbol codes.
6054
symcode='[BCDEGRST]'
6055
 
6056
# Regexp to match symbols that can be accessed directly from C.
6057
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
 
6059
# Define system-specific variables.
6060
case $host_os in
6061
aix*)
6062
  symcode='[BCDT]'
6063
  ;;
6064
cygwin* | mingw* | pw32*)
6065
  symcode='[ABCDGISTW]'
6066
  ;;
6067
hpux*)
6068
  if test "$host_cpu" = ia64; then
6069
    symcode='[ABCDEGRST]'
6070
  fi
6071
  ;;
6072
irix* | nonstopux*)
6073
  symcode='[BCDEGRST]'
6074
  ;;
6075
osf*)
6076
  symcode='[BCDEGQRST]'
6077
  ;;
6078
solaris*)
6079
  symcode='[BDRT]'
6080
  ;;
6081
sco3.2v5*)
6082
  symcode='[DT]'
6083
  ;;
6084
sysv4.2uw2*)
6085
  symcode='[DT]'
6086
  ;;
6087
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088
  symcode='[ABDT]'
6089
  ;;
6090
sysv4)
6091
  symcode='[DFNSTU]'
6092
  ;;
6093
esac
6094
 
6095
# If we're using GNU nm, then use its standard symbol codes.
6096
case `$NM -V 2>&1` in
6097
*GNU* | *'with BFD'*)
6098
  symcode='[ABCDGIRSTW]' ;;
6099
esac
6100
 
6101
# Transform an extracted symbol line into a proper C declaration.
6102
# Some systems (esp. on ia64) link data and code symbols differently,
6103
# so use this general approach.
6104
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105
 
6106
# Transform an extracted symbol line into symbol name and symbol address
6107
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6108
 
6109
# Handle CRLF in mingw tool chain
6110
opt_cr=
6111
case $build_os in
6112
mingw*)
6113
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114
  ;;
6115
esac
6116
 
6117
# Try without a prefix underscore, then with it.
6118
for ac_symprfx in "" "_"; do
6119
 
6120
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6121
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6122
 
6123
  # Write the raw and C identifiers.
6124
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6125
    # Fake it for dumpbin and say T for any non-static function
6126
    # and D for any global variable.
6127
    # Also find C++ and __fastcall symbols from MSVC++,
6128
    # which start with @ or ?.
6129
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6130
"     {last_section=section; section=\$ 3};"\
6131
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6132
"     \$ 0!~/External *\|/{next};"\
6133
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6134
"     {if(hide[section]) next};"\
6135
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6136
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6137
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6138
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6139
"     ' prfx=^$ac_symprfx"
6140
  else
6141
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6142
  fi
6143
 
6144
  # Check to see that the pipe works correctly.
6145
  pipe_works=no
6146
 
6147
  rm -f conftest*
6148
  cat > conftest.$ac_ext <<_LT_EOF
6149
#ifdef __cplusplus
6150
extern "C" {
6151
#endif
6152
char nm_test_var;
6153
void nm_test_func(void);
6154
void nm_test_func(void){}
6155
#ifdef __cplusplus
6156
}
6157
#endif
6158
int main(){nm_test_var='a';nm_test_func();return(0);}
6159
_LT_EOF
6160
 
6161
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162
  (eval $ac_compile) 2>&5
6163
  ac_status=$?
6164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165
  (exit $ac_status); }; then
6166
    # Now try to grab the symbols.
6167
    nlist=conftest.nm
6168
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6169
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6170
  ac_status=$?
6171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172
  (exit $ac_status); } && test -s "$nlist"; then
6173
      # Try sorting and uniquifying the output.
6174
      if sort "$nlist" | uniq > "$nlist"T; then
6175
        mv -f "$nlist"T "$nlist"
6176
      else
6177
        rm -f "$nlist"T
6178
      fi
6179
 
6180
      # Make sure that we snagged all the symbols we need.
6181
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183
          cat <<_LT_EOF > conftest.$ac_ext
6184
#ifdef __cplusplus
6185
extern "C" {
6186
#endif
6187
 
6188
_LT_EOF
6189
          # Now generate the symbol file.
6190
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191
 
6192
          cat <<_LT_EOF >> conftest.$ac_ext
6193
 
6194
/* The mapping between symbol names and symbols.  */
6195
const struct {
6196
  const char *name;
6197
  void       *address;
6198
}
6199
lt__PROGRAM__LTX_preloaded_symbols[] =
6200
{
6201
  { "@PROGRAM@", (void *) 0 },
6202
_LT_EOF
6203
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6204
          cat <<\_LT_EOF >> conftest.$ac_ext
6205
  {0, (void *) 0}
6206
};
6207
 
6208
/* This works around a problem in FreeBSD linker */
6209
#ifdef FREEBSD_WORKAROUND
6210
static const void *lt_preloaded_setup() {
6211
  return lt__PROGRAM__LTX_preloaded_symbols;
6212
}
6213
#endif
6214
 
6215
#ifdef __cplusplus
6216
}
6217
#endif
6218
_LT_EOF
6219
          # Now try linking the two files.
6220
          mv conftest.$ac_objext conftstm.$ac_objext
6221
          lt_save_LIBS="$LIBS"
6222
          lt_save_CFLAGS="$CFLAGS"
6223
          LIBS="conftstm.$ac_objext"
6224
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6225
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226
  (eval $ac_link) 2>&5
6227
  ac_status=$?
6228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6230
            pipe_works=yes
6231
          fi
6232
          LIBS="$lt_save_LIBS"
6233
          CFLAGS="$lt_save_CFLAGS"
6234
        else
6235
          echo "cannot find nm_test_func in $nlist" >&5
6236
        fi
6237
      else
6238
        echo "cannot find nm_test_var in $nlist" >&5
6239
      fi
6240
    else
6241
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6242
    fi
6243
  else
6244
    echo "$progname: failed program was:" >&5
6245
    cat conftest.$ac_ext >&5
6246
  fi
6247
  rm -f conftest* conftst*
6248
 
6249
  # Do not use the global_symbol_pipe unless it works.
6250
  if test "$pipe_works" = yes; then
6251
    break
6252
  else
6253
    lt_cv_sys_global_symbol_pipe=
6254
  fi
6255
done
6256
 
6257
fi
6258
 
6259
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6260
  lt_cv_sys_global_symbol_to_cdecl=
6261
fi
6262
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6263
  echo "$as_me:$LINENO: result: failed" >&5
6264
echo "${ECHO_T}failed" >&6
6265
else
6266
  echo "$as_me:$LINENO: result: ok" >&5
6267
echo "${ECHO_T}ok" >&6
6268
fi
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
 
6277
 
6278
 
6279
 
6280
 
6281
 
6282
 
6283
 
6284
 
6285
 
6286
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6287
if test "${enable_libtool_lock+set}" = set; then
6288
  enableval="$enable_libtool_lock"
6289
 
6290
fi;
6291
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6292
 
6293
# Some flags need to be propagated to the compiler or linker for good
6294
# libtool support.
6295
case $host in
6296
ia64-*-hpux*)
6297
  # Find out which ABI we are using.
6298
  echo 'int i;' > conftest.$ac_ext
6299
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300
  (eval $ac_compile) 2>&5
6301
  ac_status=$?
6302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303
  (exit $ac_status); }; then
6304
    case `/usr/bin/file conftest.$ac_objext` in
6305
      *ELF-32*)
6306
        HPUX_IA64_MODE="32"
6307
        ;;
6308
      *ELF-64*)
6309
        HPUX_IA64_MODE="64"
6310
        ;;
6311
    esac
6312
  fi
6313
  rm -rf conftest*
6314
  ;;
6315
*-*-irix6*)
6316
  # Find out which ABI we are using.
6317
  echo '#line 6317 "configure"' > conftest.$ac_ext
6318
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319
  (eval $ac_compile) 2>&5
6320
  ac_status=$?
6321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322
  (exit $ac_status); }; then
6323
    if test "$lt_cv_prog_gnu_ld" = yes; then
6324
      case `/usr/bin/file conftest.$ac_objext` in
6325
        *32-bit*)
6326
          LD="${LD-ld} -melf32bsmip"
6327
          ;;
6328
        *N32*)
6329
          LD="${LD-ld} -melf32bmipn32"
6330
          ;;
6331
        *64-bit*)
6332
          LD="${LD-ld} -melf64bmip"
6333
        ;;
6334
      esac
6335
    else
6336
      case `/usr/bin/file conftest.$ac_objext` in
6337
        *32-bit*)
6338
          LD="${LD-ld} -32"
6339
          ;;
6340
        *N32*)
6341
          LD="${LD-ld} -n32"
6342
          ;;
6343
        *64-bit*)
6344
          LD="${LD-ld} -64"
6345
          ;;
6346
      esac
6347
    fi
6348
  fi
6349
  rm -rf conftest*
6350
  ;;
6351
 
6352
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6353
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6354
  # Find out which ABI we are using.
6355
  echo 'int i;' > conftest.$ac_ext
6356
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357
  (eval $ac_compile) 2>&5
6358
  ac_status=$?
6359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360
  (exit $ac_status); }; then
6361
    case `/usr/bin/file conftest.o` in
6362
      *32-bit*)
6363
        case $host in
6364
          x86_64-*kfreebsd*-gnu)
6365
            LD="${LD-ld} -m elf_i386_fbsd"
6366
            ;;
6367
          x86_64-*linux*)
6368
            LD="${LD-ld} -m elf_i386"
6369
            ;;
6370
          ppc64-*linux*|powerpc64-*linux*)
6371
            LD="${LD-ld} -m elf32ppclinux"
6372
            ;;
6373
          s390x-*linux*)
6374
            LD="${LD-ld} -m elf_s390"
6375
            ;;
6376
          sparc64-*linux*)
6377
            LD="${LD-ld} -m elf32_sparc"
6378
            ;;
6379
        esac
6380
        ;;
6381
      *64-bit*)
6382
        case $host in
6383
          x86_64-*kfreebsd*-gnu)
6384
            LD="${LD-ld} -m elf_x86_64_fbsd"
6385
            ;;
6386
          x86_64-*linux*)
6387
            LD="${LD-ld} -m elf_x86_64"
6388
            ;;
6389
          ppc*-*linux*|powerpc*-*linux*)
6390
            LD="${LD-ld} -m elf64ppc"
6391
            ;;
6392
          s390*-*linux*|s390*-*tpf*)
6393
            LD="${LD-ld} -m elf64_s390"
6394
            ;;
6395
          sparc*-*linux*)
6396
            LD="${LD-ld} -m elf64_sparc"
6397
            ;;
6398
        esac
6399
        ;;
6400
    esac
6401
  fi
6402
  rm -rf conftest*
6403
  ;;
6404
 
6405
*-*-sco3.2v5*)
6406
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6407
  SAVE_CFLAGS="$CFLAGS"
6408
  CFLAGS="$CFLAGS -belf"
6409
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6410
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6411
if test "${lt_cv_cc_needs_belf+set}" = set; then
6412
  echo $ECHO_N "(cached) $ECHO_C" >&6
6413
else
6414
  ac_ext=c
6415
ac_cpp='$CPP $CPPFLAGS'
6416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6419
 
6420
     cat >conftest.$ac_ext <<_ACEOF
6421
/* confdefs.h.  */
6422
_ACEOF
6423
cat confdefs.h >>conftest.$ac_ext
6424
cat >>conftest.$ac_ext <<_ACEOF
6425
/* end confdefs.h.  */
6426
 
6427
int
6428
main ()
6429
{
6430
 
6431
  ;
6432
  return 0;
6433
}
6434
_ACEOF
6435
rm -f conftest.$ac_objext conftest$ac_exeext
6436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6437
  (eval $ac_link) 2>conftest.er1
6438
  ac_status=$?
6439
  grep -v '^ *+' conftest.er1 >conftest.err
6440
  rm -f conftest.er1
6441
  cat conftest.err >&5
6442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443
  (exit $ac_status); } &&
6444
         { ac_try='test -z "$ac_c_werror_flag"
6445
                         || test ! -s conftest.err'
6446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447
  (eval $ac_try) 2>&5
6448
  ac_status=$?
6449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450
  (exit $ac_status); }; } &&
6451
         { ac_try='test -s conftest$ac_exeext'
6452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453
  (eval $ac_try) 2>&5
6454
  ac_status=$?
6455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456
  (exit $ac_status); }; }; then
6457
  lt_cv_cc_needs_belf=yes
6458
else
6459
  echo "$as_me: failed program was:" >&5
6460
sed 's/^/| /' conftest.$ac_ext >&5
6461
 
6462
lt_cv_cc_needs_belf=no
6463
fi
6464
rm -f conftest.err conftest.$ac_objext \
6465
      conftest$ac_exeext conftest.$ac_ext
6466
     ac_ext=c
6467
ac_cpp='$CPP $CPPFLAGS'
6468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471
 
6472
fi
6473
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6474
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6475
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6476
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6477
    CFLAGS="$SAVE_CFLAGS"
6478
  fi
6479
  ;;
6480
sparc*-*solaris*)
6481
  # Find out which ABI we are using.
6482
  echo 'int i;' > conftest.$ac_ext
6483
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484
  (eval $ac_compile) 2>&5
6485
  ac_status=$?
6486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487
  (exit $ac_status); }; then
6488
    case `/usr/bin/file conftest.o` in
6489
    *64-bit*)
6490
      case $lt_cv_prog_gnu_ld in
6491
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6492
      *)    LD="${LD-ld} -64" ;;
6493
      esac
6494
      ;;
6495
    esac
6496
  fi
6497
  rm -rf conftest*
6498
  ;;
6499
esac
6500
 
6501
need_locks="$enable_libtool_lock"
6502
 
6503
 
6504
for ac_header in dlfcn.h
6505
do
6506
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507
echo "$as_me:$LINENO: checking for $ac_header" >&5
6508
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510
  echo $ECHO_N "(cached) $ECHO_C" >&6
6511
else
6512
  cat >conftest.$ac_ext <<_ACEOF
6513
/* confdefs.h.  */
6514
_ACEOF
6515
cat confdefs.h >>conftest.$ac_ext
6516
cat >>conftest.$ac_ext <<_ACEOF
6517
/* end confdefs.h.  */
6518
$ac_includes_default
6519
 
6520
#include <$ac_header>
6521
_ACEOF
6522
rm -f conftest.$ac_objext
6523
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524
  (eval $ac_compile) 2>conftest.er1
6525
  ac_status=$?
6526
  grep -v '^ *+' conftest.er1 >conftest.err
6527
  rm -f conftest.er1
6528
  cat conftest.err >&5
6529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530
  (exit $ac_status); } &&
6531
         { ac_try='test -z "$ac_c_werror_flag"
6532
                         || test ! -s conftest.err'
6533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534
  (eval $ac_try) 2>&5
6535
  ac_status=$?
6536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537
  (exit $ac_status); }; } &&
6538
         { ac_try='test -s conftest.$ac_objext'
6539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540
  (eval $ac_try) 2>&5
6541
  ac_status=$?
6542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543
  (exit $ac_status); }; }; then
6544
  eval "$as_ac_Header=yes"
6545
else
6546
  echo "$as_me: failed program was:" >&5
6547
sed 's/^/| /' conftest.$ac_ext >&5
6548
 
6549
eval "$as_ac_Header=no"
6550
fi
6551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552
fi
6553
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556
  cat >>confdefs.h <<_ACEOF
6557
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558
_ACEOF
6559
 
6560
fi
6561
 
6562
done
6563
 
6564
 
6565
 
6566
# This can be used to rebuild libtool when needed
6567
LIBTOOL_DEPS="$ltmain"
6568
 
6569
# Always use our own libtool.
6570
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
 
6592
 
6593
 
6594
 
6595
 
6596
test -z "$LN_S" && LN_S="ln -s"
6597
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610
 
6611
if test -n "${ZSH_VERSION+set}" ; then
6612
   setopt NO_GLOB_SUBST
6613
fi
6614
 
6615
echo "$as_me:$LINENO: checking for objdir" >&5
6616
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6617
if test "${lt_cv_objdir+set}" = set; then
6618
  echo $ECHO_N "(cached) $ECHO_C" >&6
6619
else
6620
  rm -f .libs 2>/dev/null
6621
mkdir .libs 2>/dev/null
6622
if test -d .libs; then
6623
  lt_cv_objdir=.libs
6624
else
6625
  # MS-DOS does not allow filenames that begin with a dot.
6626
  lt_cv_objdir=_libs
6627
fi
6628
rmdir .libs 2>/dev/null
6629
fi
6630
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6631
echo "${ECHO_T}$lt_cv_objdir" >&6
6632
objdir=$lt_cv_objdir
6633
 
6634
 
6635
 
6636
 
6637
 
6638
cat >>confdefs.h <<_ACEOF
6639
#define LT_OBJDIR "$lt_cv_objdir/"
6640
_ACEOF
6641
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
 
6657
 
6658
case $host_os in
6659
aix3*)
6660
  # AIX sometimes has problems with the GCC collect2 program.  For some
6661
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6662
  # vanish in a puff of smoke.
6663
  if test "X${COLLECT_NAMES+set}" != Xset; then
6664
    COLLECT_NAMES=
6665
    export COLLECT_NAMES
6666
  fi
6667
  ;;
6668
esac
6669
 
6670
# Sed substitution that helps us do robust quoting.  It backslashifies
6671
# metacharacters that are still active within double-quoted strings.
6672
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6673
 
6674
# Same as above, but do not quote variable references.
6675
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6676
 
6677
# Sed substitution to delay expansion of an escaped shell variable in a
6678
# double_quote_subst'ed string.
6679
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6680
 
6681
# Sed substitution to delay expansion of an escaped single quote.
6682
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6683
 
6684
# Sed substitution to avoid accidental globbing in evaled expressions
6685
no_glob_subst='s/\*/\\\*/g'
6686
 
6687
# Global variables:
6688
ofile=libtool
6689
can_build_shared=yes
6690
 
6691
# All known linkers require a `.a' archive for static linking (except MSVC,
6692
# which needs '.lib').
6693
libext=a
6694
 
6695
with_gnu_ld="$lt_cv_prog_gnu_ld"
6696
 
6697
old_CC="$CC"
6698
old_CFLAGS="$CFLAGS"
6699
 
6700
# Set sane defaults for various variables
6701
test -z "$CC" && CC=cc
6702
test -z "$LTCC" && LTCC=$CC
6703
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6704
test -z "$LD" && LD=ld
6705
test -z "$ac_objext" && ac_objext=o
6706
 
6707
for cc_temp in $compiler""; do
6708
  case $cc_temp in
6709
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6711
    \-*) ;;
6712
    *) break;;
6713
  esac
6714
done
6715
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6716
 
6717
 
6718
# Only perform the check for file, if the check method requires it
6719
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6720
case $deplibs_check_method in
6721
file_magic*)
6722
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6723
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6724
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6725
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6726
  echo $ECHO_N "(cached) $ECHO_C" >&6
6727
else
6728
  case $MAGIC_CMD in
6729
[\\/*] |  ?:[\\/]*)
6730
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6731
  ;;
6732
*)
6733
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6734
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6736
  for ac_dir in $ac_dummy; do
6737
    IFS="$lt_save_ifs"
6738
    test -z "$ac_dir" && ac_dir=.
6739
    if test -f $ac_dir/${ac_tool_prefix}file; then
6740
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6741
      if test -n "$file_magic_test_file"; then
6742
        case $deplibs_check_method in
6743
        "file_magic "*)
6744
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6745
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6746
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6747
            $EGREP "$file_magic_regex" > /dev/null; then
6748
            :
6749
          else
6750
            cat <<_LT_EOF 1>&2
6751
 
6752
*** Warning: the command libtool uses to detect shared libraries,
6753
*** $file_magic_cmd, produces output that libtool cannot recognize.
6754
*** The result is that libtool may fail to recognize shared libraries
6755
*** as such.  This will affect the creation of libtool libraries that
6756
*** depend on shared libraries, but programs linked with such libtool
6757
*** libraries will work regardless of this problem.  Nevertheless, you
6758
*** may want to report the problem to your system manager and/or to
6759
*** bug-libtool@gnu.org
6760
 
6761
_LT_EOF
6762
          fi ;;
6763
        esac
6764
      fi
6765
      break
6766
    fi
6767
  done
6768
  IFS="$lt_save_ifs"
6769
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6770
  ;;
6771
esac
6772
fi
6773
 
6774
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6775
if test -n "$MAGIC_CMD"; then
6776
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6777
echo "${ECHO_T}$MAGIC_CMD" >&6
6778
else
6779
  echo "$as_me:$LINENO: result: no" >&5
6780
echo "${ECHO_T}no" >&6
6781
fi
6782
 
6783
 
6784
 
6785
 
6786
 
6787
if test -z "$lt_cv_path_MAGIC_CMD"; then
6788
  if test -n "$ac_tool_prefix"; then
6789
    echo "$as_me:$LINENO: checking for file" >&5
6790
echo $ECHO_N "checking for file... $ECHO_C" >&6
6791
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6792
  echo $ECHO_N "(cached) $ECHO_C" >&6
6793
else
6794
  case $MAGIC_CMD in
6795
[\\/*] |  ?:[\\/]*)
6796
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6797
  ;;
6798
*)
6799
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6800
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6802
  for ac_dir in $ac_dummy; do
6803
    IFS="$lt_save_ifs"
6804
    test -z "$ac_dir" && ac_dir=.
6805
    if test -f $ac_dir/file; then
6806
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6807
      if test -n "$file_magic_test_file"; then
6808
        case $deplibs_check_method in
6809
        "file_magic "*)
6810
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6811
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6812
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6813
            $EGREP "$file_magic_regex" > /dev/null; then
6814
            :
6815
          else
6816
            cat <<_LT_EOF 1>&2
6817
 
6818
*** Warning: the command libtool uses to detect shared libraries,
6819
*** $file_magic_cmd, produces output that libtool cannot recognize.
6820
*** The result is that libtool may fail to recognize shared libraries
6821
*** as such.  This will affect the creation of libtool libraries that
6822
*** depend on shared libraries, but programs linked with such libtool
6823
*** libraries will work regardless of this problem.  Nevertheless, you
6824
*** may want to report the problem to your system manager and/or to
6825
*** bug-libtool@gnu.org
6826
 
6827
_LT_EOF
6828
          fi ;;
6829
        esac
6830
      fi
6831
      break
6832
    fi
6833
  done
6834
  IFS="$lt_save_ifs"
6835
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6836
  ;;
6837
esac
6838
fi
6839
 
6840
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841
if test -n "$MAGIC_CMD"; then
6842
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6843
echo "${ECHO_T}$MAGIC_CMD" >&6
6844
else
6845
  echo "$as_me:$LINENO: result: no" >&5
6846
echo "${ECHO_T}no" >&6
6847
fi
6848
 
6849
 
6850
  else
6851
    MAGIC_CMD=:
6852
  fi
6853
fi
6854
 
6855
  fi
6856
  ;;
6857
esac
6858
 
6859
# Use C for the default configuration in the libtool script
6860
 
6861
lt_save_CC="$CC"
6862
ac_ext=c
6863
ac_cpp='$CPP $CPPFLAGS'
6864
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867
 
6868
 
6869
# Source file extension for C test sources.
6870
ac_ext=c
6871
 
6872
# Object file extension for compiled C test sources.
6873
objext=o
6874
objext=$objext
6875
 
6876
# Code to be used in simple compile tests
6877
lt_simple_compile_test_code="int some_variable = 0;"
6878
 
6879
# Code to be used in simple link tests
6880
lt_simple_link_test_code='int main(){return(0);}'
6881
 
6882
 
6883
 
6884
 
6885
 
6886
 
6887
 
6888
# If no C compiler was specified, use CC.
6889
LTCC=${LTCC-"$CC"}
6890
 
6891
# If no C compiler flags were specified, use CFLAGS.
6892
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6893
 
6894
# Allow CC to be a program name with arguments.
6895
compiler=$CC
6896
 
6897
# Save the default compiler, since it gets overwritten when the other
6898
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6899
compiler_DEFAULT=$CC
6900
 
6901
# save warnings/boilerplate of simple test code
6902
ac_outfile=conftest.$ac_objext
6903
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6904
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6905
_lt_compiler_boilerplate=`cat conftest.err`
6906
$RM conftest*
6907
 
6908
ac_outfile=conftest.$ac_objext
6909
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6910
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6911
_lt_linker_boilerplate=`cat conftest.err`
6912
$RM conftest*
6913
 
6914
 
6915
## CAVEAT EMPTOR:
6916
## There is no encapsulation within the following macros, do not change
6917
## the running order or otherwise move them around unless you know exactly
6918
## what you are doing...
6919
if test -n "$compiler"; then
6920
 
6921
lt_prog_compiler_no_builtin_flag=
6922
 
6923
if test "$GCC" = yes; then
6924
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6925
 
6926
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6927
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6928
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6929
  echo $ECHO_N "(cached) $ECHO_C" >&6
6930
else
6931
  lt_cv_prog_compiler_rtti_exceptions=no
6932
   ac_outfile=conftest.$ac_objext
6933
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6934
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6935
   # Insert the option either (1) after the last *FLAGS variable, or
6936
   # (2) before a word containing "conftest.", or (3) at the end.
6937
   # Note that $ac_compile itself does not contain backslashes and begins
6938
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6939
   # The option is referenced via a variable to avoid confusing sed.
6940
   lt_compile=`echo "$ac_compile" | $SED \
6941
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6942
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6943
   -e 's:$: $lt_compiler_flag:'`
6944
   (eval echo "\"\$as_me:6944: $lt_compile\"" >&5)
6945
   (eval "$lt_compile" 2>conftest.err)
6946
   ac_status=$?
6947
   cat conftest.err >&5
6948
   echo "$as_me:6948: \$? = $ac_status" >&5
6949
   if (exit $ac_status) && test -s "$ac_outfile"; then
6950
     # The compiler can only warn and ignore the option if not recognized
6951
     # So say no if there are warnings other than the usual output.
6952
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6953
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6954
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6955
       lt_cv_prog_compiler_rtti_exceptions=yes
6956
     fi
6957
   fi
6958
   $RM conftest*
6959
 
6960
fi
6961
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6962
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6963
 
6964
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6965
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6966
else
6967
    :
6968
fi
6969
 
6970
fi
6971
 
6972
 
6973
 
6974
 
6975
 
6976
 
6977
  lt_prog_compiler_wl=
6978
lt_prog_compiler_pic=
6979
lt_prog_compiler_static=
6980
 
6981
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6982
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6983
 
6984
  if test "$GCC" = yes; then
6985
    lt_prog_compiler_wl='-Wl,'
6986
    lt_prog_compiler_static='-static'
6987
 
6988
    case $host_os in
6989
      aix*)
6990
      # All AIX code is PIC.
6991
      if test "$host_cpu" = ia64; then
6992
        # AIX 5 now supports IA64 processor
6993
        lt_prog_compiler_static='-Bstatic'
6994
      fi
6995
      ;;
6996
 
6997
    amigaos*)
6998
      if test "$host_cpu" = m68k; then
6999
        # FIXME: we need at least 68020 code to build shared libraries, but
7000
        # adding the `-m68020' flag to GCC prevents building anything better,
7001
        # like `-m68040'.
7002
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7003
      fi
7004
      ;;
7005
 
7006
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7007
      # PIC is the default for these OSes.
7008
      ;;
7009
 
7010
    mingw* | cygwin* | pw32* | os2*)
7011
      # This hack is so that the source file can tell whether it is being
7012
      # built for inclusion in a dll (and should export symbols for example).
7013
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7014
      # (--disable-auto-import) libraries
7015
      lt_prog_compiler_pic='-DDLL_EXPORT'
7016
      ;;
7017
 
7018
    darwin* | rhapsody*)
7019
      # PIC is the default on this platform
7020
      # Common symbols not allowed in MH_DYLIB files
7021
      lt_prog_compiler_pic='-fno-common'
7022
      ;;
7023
 
7024
    hpux*)
7025
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7026
      # not for PA HP-UX.
7027
      case $host_cpu in
7028
      hppa*64*|ia64*)
7029
        # +Z the default
7030
        ;;
7031
      *)
7032
        lt_prog_compiler_pic='-fPIC'
7033
        ;;
7034
      esac
7035
      ;;
7036
 
7037
    interix[3-9]*)
7038
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7039
      # Instead, we relocate shared libraries at runtime.
7040
      ;;
7041
 
7042
    msdosdjgpp*)
7043
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7044
      # on systems that don't support them.
7045
      lt_prog_compiler_can_build_shared=no
7046
      enable_shared=no
7047
      ;;
7048
 
7049
    *nto* | *qnx*)
7050
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7051
      # it will coredump.
7052
      lt_prog_compiler_pic='-fPIC -shared'
7053
      ;;
7054
 
7055
    sysv4*MP*)
7056
      if test -d /usr/nec; then
7057
        lt_prog_compiler_pic=-Kconform_pic
7058
      fi
7059
      ;;
7060
 
7061
    *)
7062
      lt_prog_compiler_pic='-fPIC'
7063
      ;;
7064
    esac
7065
  else
7066
    # PORTME Check for flag to pass linker flags through the system compiler.
7067
    case $host_os in
7068
    aix*)
7069
      lt_prog_compiler_wl='-Wl,'
7070
      if test "$host_cpu" = ia64; then
7071
        # AIX 5 now supports IA64 processor
7072
        lt_prog_compiler_static='-Bstatic'
7073
      else
7074
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7075
      fi
7076
      ;;
7077
    darwin*)
7078
      # PIC is the default on this platform
7079
      # Common symbols not allowed in MH_DYLIB files
7080
      case $cc_basename in
7081
      xlc*)
7082
        lt_prog_compiler_pic='-qnocommon'
7083
        lt_prog_compiler_wl='-Wl,'
7084
        ;;
7085
      esac
7086
      ;;
7087
 
7088
    mingw* | cygwin* | pw32* | os2*)
7089
      # This hack is so that the source file can tell whether it is being
7090
      # built for inclusion in a dll (and should export symbols for example).
7091
      lt_prog_compiler_pic='-DDLL_EXPORT'
7092
      ;;
7093
 
7094
    hpux9* | hpux10* | hpux11*)
7095
      lt_prog_compiler_wl='-Wl,'
7096
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7097
      # not for PA HP-UX.
7098
      case $host_cpu in
7099
      hppa*64*|ia64*)
7100
        # +Z the default
7101
        ;;
7102
      *)
7103
        lt_prog_compiler_pic='+Z'
7104
        ;;
7105
      esac
7106
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7107
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7108
      ;;
7109
 
7110
    irix5* | irix6* | nonstopux*)
7111
      lt_prog_compiler_wl='-Wl,'
7112
      # PIC (with -KPIC) is the default.
7113
      lt_prog_compiler_static='-non_shared'
7114
      ;;
7115
 
7116
    linux* | k*bsd*-gnu)
7117
      case $cc_basename in
7118
      icc* | ecc*)
7119
        lt_prog_compiler_wl='-Wl,'
7120
        lt_prog_compiler_pic='-KPIC'
7121
        lt_prog_compiler_static='-static'
7122
        ;;
7123
      pgcc* | pgf77* | pgf90* | pgf95*)
7124
        # Portland Group compilers (*not* the Pentium gcc compiler,
7125
        # which looks to be a dead project)
7126
        lt_prog_compiler_wl='-Wl,'
7127
        lt_prog_compiler_pic='-fpic'
7128
        lt_prog_compiler_static='-Bstatic'
7129
        ;;
7130
      ccc*)
7131
        lt_prog_compiler_wl='-Wl,'
7132
        # All Alpha code is PIC.
7133
        lt_prog_compiler_static='-non_shared'
7134
        ;;
7135
      *)
7136
        case `$CC -V 2>&1 | sed 5q` in
7137
        *Sun\ C*)
7138
          # Sun C 5.9
7139
          lt_prog_compiler_pic='-KPIC'
7140
          lt_prog_compiler_static='-Bstatic'
7141
          lt_prog_compiler_wl='-Wl,'
7142
          ;;
7143
        *Sun\ F*)
7144
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7145
          lt_prog_compiler_pic='-KPIC'
7146
          lt_prog_compiler_static='-Bstatic'
7147
          lt_prog_compiler_wl=''
7148
          ;;
7149
        esac
7150
        ;;
7151
      esac
7152
      ;;
7153
 
7154
    newsos6)
7155
      lt_prog_compiler_pic='-KPIC'
7156
      lt_prog_compiler_static='-Bstatic'
7157
      ;;
7158
 
7159
    *nto* | *qnx*)
7160
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7161
      # it will coredump.
7162
      lt_prog_compiler_pic='-fPIC -shared'
7163
      ;;
7164
 
7165
    osf3* | osf4* | osf5*)
7166
      lt_prog_compiler_wl='-Wl,'
7167
      # All OSF/1 code is PIC.
7168
      lt_prog_compiler_static='-non_shared'
7169
      ;;
7170
 
7171
    rdos*)
7172
      lt_prog_compiler_static='-non_shared'
7173
      ;;
7174
 
7175
    solaris*)
7176
      lt_prog_compiler_pic='-KPIC'
7177
      lt_prog_compiler_static='-Bstatic'
7178
      case $cc_basename in
7179
      f77* | f90* | f95*)
7180
        lt_prog_compiler_wl='-Qoption ld ';;
7181
      *)
7182
        lt_prog_compiler_wl='-Wl,';;
7183
      esac
7184
      ;;
7185
 
7186
    sunos4*)
7187
      lt_prog_compiler_wl='-Qoption ld '
7188
      lt_prog_compiler_pic='-PIC'
7189
      lt_prog_compiler_static='-Bstatic'
7190
      ;;
7191
 
7192
    sysv4 | sysv4.2uw2* | sysv4.3*)
7193
      lt_prog_compiler_wl='-Wl,'
7194
      lt_prog_compiler_pic='-KPIC'
7195
      lt_prog_compiler_static='-Bstatic'
7196
      ;;
7197
 
7198
    sysv4*MP*)
7199
      if test -d /usr/nec ;then
7200
        lt_prog_compiler_pic='-Kconform_pic'
7201
        lt_prog_compiler_static='-Bstatic'
7202
      fi
7203
      ;;
7204
 
7205
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7206
      lt_prog_compiler_wl='-Wl,'
7207
      lt_prog_compiler_pic='-KPIC'
7208
      lt_prog_compiler_static='-Bstatic'
7209
      ;;
7210
 
7211
    unicos*)
7212
      lt_prog_compiler_wl='-Wl,'
7213
      lt_prog_compiler_can_build_shared=no
7214
      ;;
7215
 
7216
    uts4*)
7217
      lt_prog_compiler_pic='-pic'
7218
      lt_prog_compiler_static='-Bstatic'
7219
      ;;
7220
 
7221
    *)
7222
      lt_prog_compiler_can_build_shared=no
7223
      ;;
7224
    esac
7225
  fi
7226
 
7227
case $host_os in
7228
  # For platforms which do not support PIC, -DPIC is meaningless:
7229
  *djgpp*)
7230
    lt_prog_compiler_pic=
7231
    ;;
7232
  *)
7233
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7234
    ;;
7235
esac
7236
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7237
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7238
 
7239
 
7240
 
7241
 
7242
 
7243
 
7244
#
7245
# Check to make sure the PIC flag actually works.
7246
#
7247
if test -n "$lt_prog_compiler_pic"; then
7248
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7249
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7250
if test "${lt_prog_compiler_pic_works+set}" = set; then
7251
  echo $ECHO_N "(cached) $ECHO_C" >&6
7252
else
7253
  lt_prog_compiler_pic_works=no
7254
   ac_outfile=conftest.$ac_objext
7255
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7256
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7257
   # Insert the option either (1) after the last *FLAGS variable, or
7258
   # (2) before a word containing "conftest.", or (3) at the end.
7259
   # Note that $ac_compile itself does not contain backslashes and begins
7260
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7261
   # The option is referenced via a variable to avoid confusing sed.
7262
   lt_compile=`echo "$ac_compile" | $SED \
7263
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7264
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7265
   -e 's:$: $lt_compiler_flag:'`
7266
   (eval echo "\"\$as_me:7266: $lt_compile\"" >&5)
7267
   (eval "$lt_compile" 2>conftest.err)
7268
   ac_status=$?
7269
   cat conftest.err >&5
7270
   echo "$as_me:7270: \$? = $ac_status" >&5
7271
   if (exit $ac_status) && test -s "$ac_outfile"; then
7272
     # The compiler can only warn and ignore the option if not recognized
7273
     # So say no if there are warnings other than the usual output.
7274
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7275
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7276
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7277
       lt_prog_compiler_pic_works=yes
7278
     fi
7279
   fi
7280
   $RM conftest*
7281
 
7282
fi
7283
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7284
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7285
 
7286
if test x"$lt_prog_compiler_pic_works" = xyes; then
7287
    case $lt_prog_compiler_pic in
7288
     "" | " "*) ;;
7289
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7290
     esac
7291
else
7292
    lt_prog_compiler_pic=
7293
     lt_prog_compiler_can_build_shared=no
7294
fi
7295
 
7296
fi
7297
 
7298
 
7299
 
7300
 
7301
 
7302
 
7303
#
7304
# Check to make sure the static flag actually works.
7305
#
7306
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7307
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7308
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7309
if test "${lt_prog_compiler_static_works+set}" = set; then
7310
  echo $ECHO_N "(cached) $ECHO_C" >&6
7311
else
7312
  lt_prog_compiler_static_works=no
7313
   save_LDFLAGS="$LDFLAGS"
7314
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7315
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7316
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7317
     # The linker can only warn and ignore the option if not recognized
7318
     # So say no if there are warnings
7319
     if test -s conftest.err; then
7320
       # Append any errors to the config.log.
7321
       cat conftest.err 1>&5
7322
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7323
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7324
       if diff conftest.exp conftest.er2 >/dev/null; then
7325
         lt_prog_compiler_static_works=yes
7326
       fi
7327
     else
7328
       lt_prog_compiler_static_works=yes
7329
     fi
7330
   fi
7331
   $RM conftest*
7332
   LDFLAGS="$save_LDFLAGS"
7333
 
7334
fi
7335
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7336
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7337
 
7338
if test x"$lt_prog_compiler_static_works" = xyes; then
7339
    :
7340
else
7341
    lt_prog_compiler_static=
7342
fi
7343
 
7344
 
7345
 
7346
 
7347
 
7348
 
7349
 
7350
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7351
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7352
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7353
  echo $ECHO_N "(cached) $ECHO_C" >&6
7354
else
7355
  lt_cv_prog_compiler_c_o=no
7356
   $RM -r conftest 2>/dev/null
7357
   mkdir conftest
7358
   cd conftest
7359
   mkdir out
7360
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7361
 
7362
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7363
   # Insert the option either (1) after the last *FLAGS variable, or
7364
   # (2) before a word containing "conftest.", or (3) at the end.
7365
   # Note that $ac_compile itself does not contain backslashes and begins
7366
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7367
   lt_compile=`echo "$ac_compile" | $SED \
7368
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7369
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7370
   -e 's:$: $lt_compiler_flag:'`
7371
   (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)
7372
   (eval "$lt_compile" 2>out/conftest.err)
7373
   ac_status=$?
7374
   cat out/conftest.err >&5
7375
   echo "$as_me:7375: \$? = $ac_status" >&5
7376
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7377
   then
7378
     # The compiler can only warn and ignore the option if not recognized
7379
     # So say no if there are warnings
7380
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7381
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7382
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7383
       lt_cv_prog_compiler_c_o=yes
7384
     fi
7385
   fi
7386
   chmod u+w . 2>&5
7387
   $RM conftest*
7388
   # SGI C++ compiler will create directory out/ii_files/ for
7389
   # template instantiation
7390
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7391
   $RM out/* && rmdir out
7392
   cd ..
7393
   $RM -r conftest
7394
   $RM conftest*
7395
 
7396
fi
7397
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7398
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7399
 
7400
 
7401
 
7402
 
7403
 
7404
 
7405
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7406
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7407
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7408
  echo $ECHO_N "(cached) $ECHO_C" >&6
7409
else
7410
  lt_cv_prog_compiler_c_o=no
7411
   $RM -r conftest 2>/dev/null
7412
   mkdir conftest
7413
   cd conftest
7414
   mkdir out
7415
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7416
 
7417
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7418
   # Insert the option either (1) after the last *FLAGS variable, or
7419
   # (2) before a word containing "conftest.", or (3) at the end.
7420
   # Note that $ac_compile itself does not contain backslashes and begins
7421
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7422
   lt_compile=`echo "$ac_compile" | $SED \
7423
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7424
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7425
   -e 's:$: $lt_compiler_flag:'`
7426
   (eval echo "\"\$as_me:7426: $lt_compile\"" >&5)
7427
   (eval "$lt_compile" 2>out/conftest.err)
7428
   ac_status=$?
7429
   cat out/conftest.err >&5
7430
   echo "$as_me:7430: \$? = $ac_status" >&5
7431
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7432
   then
7433
     # The compiler can only warn and ignore the option if not recognized
7434
     # So say no if there are warnings
7435
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7436
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7437
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7438
       lt_cv_prog_compiler_c_o=yes
7439
     fi
7440
   fi
7441
   chmod u+w . 2>&5
7442
   $RM conftest*
7443
   # SGI C++ compiler will create directory out/ii_files/ for
7444
   # template instantiation
7445
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7446
   $RM out/* && rmdir out
7447
   cd ..
7448
   $RM -r conftest
7449
   $RM conftest*
7450
 
7451
fi
7452
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7453
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7454
 
7455
 
7456
 
7457
 
7458
hard_links="nottested"
7459
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7460
  # do not overwrite the value of need_locks provided by the user
7461
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7462
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7463
  hard_links=yes
7464
  $RM conftest*
7465
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7466
  touch conftest.a
7467
  ln conftest.a conftest.b 2>&5 || hard_links=no
7468
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7469
  echo "$as_me:$LINENO: result: $hard_links" >&5
7470
echo "${ECHO_T}$hard_links" >&6
7471
  if test "$hard_links" = no; then
7472
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7473
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7474
    need_locks=warn
7475
  fi
7476
else
7477
  need_locks=no
7478
fi
7479
 
7480
 
7481
 
7482
 
7483
 
7484
 
7485
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7486
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7487
 
7488
  runpath_var=
7489
  allow_undefined_flag=
7490
  always_export_symbols=no
7491
  archive_cmds=
7492
  archive_expsym_cmds=
7493
  compiler_needs_object=no
7494
  enable_shared_with_static_runtimes=no
7495
  export_dynamic_flag_spec=
7496
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7497
  hardcode_automatic=no
7498
  hardcode_direct=no
7499
  hardcode_direct_absolute=no
7500
  hardcode_libdir_flag_spec=
7501
  hardcode_libdir_flag_spec_ld=
7502
  hardcode_libdir_separator=
7503
  hardcode_minus_L=no
7504
  hardcode_shlibpath_var=unsupported
7505
  inherit_rpath=no
7506
  link_all_deplibs=unknown
7507
  module_cmds=
7508
  module_expsym_cmds=
7509
  old_archive_from_new_cmds=
7510
  old_archive_from_expsyms_cmds=
7511
  thread_safe_flag_spec=
7512
  whole_archive_flag_spec=
7513
  # include_expsyms should be a list of space-separated symbols to be *always*
7514
  # included in the symbol list
7515
  include_expsyms=
7516
  # exclude_expsyms can be an extended regexp of symbols to exclude
7517
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7518
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7519
  # as well as any symbol that contains `d'.
7520
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7521
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7522
  # platforms (ab)use it in PIC code, but their linkers get confused if
7523
  # the symbol is explicitly referenced.  Since portable code cannot
7524
  # rely on this symbol name, it's probably fine to never include it in
7525
  # preloaded symbol tables.
7526
  extract_expsyms_cmds=
7527
 
7528
  case $host_os in
7529
  cygwin* | mingw* | pw32*)
7530
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7531
    # When not using gcc, we currently assume that we are using
7532
    # Microsoft Visual C++.
7533
    if test "$GCC" != yes; then
7534
      with_gnu_ld=no
7535
    fi
7536
    ;;
7537
  interix*)
7538
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7539
    with_gnu_ld=yes
7540
    ;;
7541
  openbsd*)
7542
    with_gnu_ld=no
7543
    ;;
7544
  esac
7545
 
7546
  ld_shlibs=yes
7547
  if test "$with_gnu_ld" = yes; then
7548
    # If archive_cmds runs LD, not CC, wlarc should be empty
7549
    wlarc='${wl}'
7550
 
7551
    # Set some defaults for GNU ld with shared library support. These
7552
    # are reset later if shared libraries are not supported. Putting them
7553
    # here allows them to be overridden if necessary.
7554
    runpath_var=LD_RUN_PATH
7555
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7556
    export_dynamic_flag_spec='${wl}--export-dynamic'
7557
    # ancient GNU ld didn't support --whole-archive et. al.
7558
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7559
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7560
    else
7561
      whole_archive_flag_spec=
7562
    fi
7563
    supports_anon_versioning=no
7564
    case `$LD -v 2>&1` in
7565
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7566
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7567
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7568
      *\ 2.11.*) ;; # other 2.11 versions
7569
      *) supports_anon_versioning=yes ;;
7570
    esac
7571
 
7572
    # See if GNU ld supports shared libraries.
7573
    case $host_os in
7574
    aix[3-9]*)
7575
      # On AIX/PPC, the GNU linker is very broken
7576
      if test "$host_cpu" != ia64; then
7577
        ld_shlibs=no
7578
        cat <<_LT_EOF 1>&2
7579
 
7580
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7581
*** to be unable to reliably create shared libraries on AIX.
7582
*** Therefore, libtool is disabling shared libraries support.  If you
7583
*** really care for shared libraries, you may want to modify your PATH
7584
*** so that a non-GNU linker is found, and then restart.
7585
 
7586
_LT_EOF
7587
      fi
7588
      ;;
7589
 
7590
    amigaos*)
7591
      if test "$host_cpu" = m68k; then
7592
        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)'
7593
        hardcode_libdir_flag_spec='-L$libdir'
7594
        hardcode_minus_L=yes
7595
      fi
7596
 
7597
      # Samuel A. Falvo II  reports
7598
      # that the semantics of dynamic libraries on AmigaOS, at least up
7599
      # to version 4, is to share data among multiple programs linked
7600
      # with the same dynamic library.  Since this doesn't match the
7601
      # behavior of shared libraries on other platforms, we can't use
7602
      # them.
7603
      ld_shlibs=no
7604
      ;;
7605
 
7606
    beos*)
7607
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7608
        allow_undefined_flag=unsupported
7609
        # Joseph Beckenbach  says some releases of gcc
7610
        # support --undefined.  This deserves some investigation.  FIXME
7611
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612
      else
7613
        ld_shlibs=no
7614
      fi
7615
      ;;
7616
 
7617
    cygwin* | mingw* | pw32*)
7618
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7619
      # as there is no search path for DLLs.
7620
      hardcode_libdir_flag_spec='-L$libdir'
7621
      allow_undefined_flag=unsupported
7622
      always_export_symbols=no
7623
      enable_shared_with_static_runtimes=yes
7624
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7625
 
7626
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7627
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7628
        # If the export-symbols file already is a .def file (1st line
7629
        # is EXPORTS), use it as is; otherwise, prepend...
7630
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7631
          cp $export_symbols $output_objdir/$soname.def;
7632
        else
7633
          echo EXPORTS > $output_objdir/$soname.def;
7634
          cat $export_symbols >> $output_objdir/$soname.def;
7635
        fi~
7636
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7637
      else
7638
        ld_shlibs=no
7639
      fi
7640
      ;;
7641
 
7642
    interix[3-9]*)
7643
      hardcode_direct=no
7644
      hardcode_shlibpath_var=no
7645
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7646
      export_dynamic_flag_spec='${wl}-E'
7647
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7648
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7649
      # default) and relocated if they conflict, which is a slow very memory
7650
      # consuming and fragmenting process.  To avoid this, we pick a random,
7651
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7652
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7653
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7654
      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'
7655
      ;;
7656
 
7657
    gnu* | linux* | tpf* | k*bsd*-gnu)
7658
      tmp_diet=no
7659
      if test "$host_os" = linux-dietlibc; then
7660
        case $cc_basename in
7661
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7662
        esac
7663
      fi
7664
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7665
         && test "$tmp_diet" = no
7666
      then
7667
        tmp_addflag=
7668
        case $cc_basename,$host_cpu in
7669
        pgcc*)                          # Portland Group C compiler
7670
          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'
7671
          tmp_addflag=' $pic_flag'
7672
          ;;
7673
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7674
          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'
7675
          tmp_addflag=' $pic_flag -Mnomain' ;;
7676
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7677
          tmp_addflag=' -i_dynamic' ;;
7678
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7679
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7680
        ifc* | ifort*)                  # Intel Fortran compiler
7681
          tmp_addflag=' -nofor_main' ;;
7682
        esac
7683
        case `$CC -V 2>&1 | sed 5q` in
7684
        *Sun\ C*)                       # Sun C 5.9
7685
          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'
7686
          compiler_needs_object=yes
7687
          tmp_sharedflag='-G' ;;
7688
        *Sun\ F*)                       # Sun Fortran 8.3
7689
          tmp_sharedflag='-G' ;;
7690
        *)
7691
          tmp_sharedflag='-shared' ;;
7692
        esac
7693
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7694
 
7695
        if test "x$supports_anon_versioning" = xyes; then
7696
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7697
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7698
            echo "local: *; };" >> $output_objdir/$libname.ver~
7699
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7700
        fi
7701
      else
7702
        ld_shlibs=no
7703
      fi
7704
      ;;
7705
 
7706
    netbsd*)
7707
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7708
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7709
        wlarc=
7710
      else
7711
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713
      fi
7714
      ;;
7715
 
7716
    solaris*)
7717
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7718
        ld_shlibs=no
7719
        cat <<_LT_EOF 1>&2
7720
 
7721
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7722
*** create shared libraries on Solaris systems.  Therefore, libtool
7723
*** is disabling shared libraries support.  We urge you to upgrade GNU
7724
*** binutils to release 2.9.1 or newer.  Another option is to modify
7725
*** your PATH or compiler configuration so that the native linker is
7726
*** used, and then restart.
7727
 
7728
_LT_EOF
7729
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7730
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7731
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7732
      else
7733
        ld_shlibs=no
7734
      fi
7735
      ;;
7736
 
7737
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7738
      case `$LD -v 2>&1` in
7739
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7740
        ld_shlibs=no
7741
        cat <<_LT_EOF 1>&2
7742
 
7743
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7744
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7745
*** is disabling shared libraries support.  We urge you to upgrade GNU
7746
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7747
*** your PATH or compiler configuration so that the native linker is
7748
*** used, and then restart.
7749
 
7750
_LT_EOF
7751
        ;;
7752
        *)
7753
          # For security reasons, it is highly recommended that you always
7754
          # use absolute paths for naming shared libraries, and exclude the
7755
          # DT_RUNPATH tag from executables and libraries.  But doing so
7756
          # requires that you compile everything twice, which is a pain.
7757
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7759
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7760
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7761
          else
7762
            ld_shlibs=no
7763
          fi
7764
        ;;
7765
      esac
7766
      ;;
7767
 
7768
    sunos4*)
7769
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7770
      wlarc=
7771
      hardcode_direct=yes
7772
      hardcode_shlibpath_var=no
7773
      ;;
7774
 
7775
    *)
7776
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7777
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779
      else
7780
        ld_shlibs=no
7781
      fi
7782
      ;;
7783
    esac
7784
 
7785
    if test "$ld_shlibs" = no; then
7786
      runpath_var=
7787
      hardcode_libdir_flag_spec=
7788
      export_dynamic_flag_spec=
7789
      whole_archive_flag_spec=
7790
    fi
7791
  else
7792
    # PORTME fill in a description of your system's linker (not GNU ld)
7793
    case $host_os in
7794
    aix3*)
7795
      allow_undefined_flag=unsupported
7796
      always_export_symbols=yes
7797
      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'
7798
      # Note: this linker hardcodes the directories in LIBPATH if there
7799
      # are no directories specified by -L.
7800
      hardcode_minus_L=yes
7801
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7802
        # Neither direct hardcoding nor static linking is supported with a
7803
        # broken collect2.
7804
        hardcode_direct=unsupported
7805
      fi
7806
      ;;
7807
 
7808
    aix[4-9]*)
7809
      if test "$host_cpu" = ia64; then
7810
        # On IA64, the linker does run time linking by default, so we don't
7811
        # have to do anything special.
7812
        aix_use_runtimelinking=no
7813
        exp_sym_flag='-Bexport'
7814
        no_entry_flag=""
7815
      else
7816
        # If we're using GNU nm, then we don't want the "-C" option.
7817
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7818
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7819
          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'
7820
        else
7821
          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'
7822
        fi
7823
        aix_use_runtimelinking=no
7824
 
7825
        # Test if we are trying to use run time linking or normal
7826
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7827
        # need to do runtime linking.
7828
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7829
          for ld_flag in $LDFLAGS; do
7830
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7831
            aix_use_runtimelinking=yes
7832
            break
7833
          fi
7834
          done
7835
          ;;
7836
        esac
7837
 
7838
        exp_sym_flag='-bexport'
7839
        no_entry_flag='-bnoentry'
7840
      fi
7841
 
7842
      # When large executables or shared objects are built, AIX ld can
7843
      # have problems creating the table of contents.  If linking a library
7844
      # or program results in "error TOC overflow" add -mminimal-toc to
7845
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7846
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7847
 
7848
      archive_cmds=''
7849
      hardcode_direct=yes
7850
      hardcode_direct_absolute=yes
7851
      hardcode_libdir_separator=':'
7852
      link_all_deplibs=yes
7853
      file_list_spec='${wl}-f,'
7854
 
7855
      if test "$GCC" = yes; then
7856
        case $host_os in aix4.[012]|aix4.[012].*)
7857
        # We only want to do this on AIX 4.2 and lower, the check
7858
        # below for broken collect2 doesn't work under 4.3+
7859
          collect2name=`${CC} -print-prog-name=collect2`
7860
          if test -f "$collect2name" &&
7861
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7862
          then
7863
          # We have reworked collect2
7864
          :
7865
          else
7866
          # We have old collect2
7867
          hardcode_direct=unsupported
7868
          # It fails to find uninstalled libraries when the uninstalled
7869
          # path is not listed in the libpath.  Setting hardcode_minus_L
7870
          # to unsupported forces relinking
7871
          hardcode_minus_L=yes
7872
          hardcode_libdir_flag_spec='-L$libdir'
7873
          hardcode_libdir_separator=
7874
          fi
7875
          ;;
7876
        esac
7877
        shared_flag='-shared'
7878
        if test "$aix_use_runtimelinking" = yes; then
7879
          shared_flag="$shared_flag "'${wl}-G'
7880
        fi
7881
      else
7882
        # not using gcc
7883
        if test "$host_cpu" = ia64; then
7884
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7885
        # chokes on -Wl,-G. The following line is correct:
7886
          shared_flag='-G'
7887
        else
7888
          if test "$aix_use_runtimelinking" = yes; then
7889
            shared_flag='${wl}-G'
7890
          else
7891
            shared_flag='${wl}-bM:SRE'
7892
          fi
7893
        fi
7894
      fi
7895
 
7896
      # It seems that -bexpall does not export symbols beginning with
7897
      # underscore (_), so it is better to generate a list of symbols to export.
7898
      always_export_symbols=yes
7899
      if test "$aix_use_runtimelinking" = yes; then
7900
        # Warning - without using the other runtime loading flags (-brtl),
7901
        # -berok will link without error, but may produce a broken library.
7902
        allow_undefined_flag='-berok'
7903
        # Determine the default libpath from the value encoded in an
7904
        # empty executable.
7905
        cat >conftest.$ac_ext <<_ACEOF
7906
/* confdefs.h.  */
7907
_ACEOF
7908
cat confdefs.h >>conftest.$ac_ext
7909
cat >>conftest.$ac_ext <<_ACEOF
7910
/* end confdefs.h.  */
7911
 
7912
int
7913
main ()
7914
{
7915
 
7916
  ;
7917
  return 0;
7918
}
7919
_ACEOF
7920
rm -f conftest.$ac_objext conftest$ac_exeext
7921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7922
  (eval $ac_link) 2>conftest.er1
7923
  ac_status=$?
7924
  grep -v '^ *+' conftest.er1 >conftest.err
7925
  rm -f conftest.er1
7926
  cat conftest.err >&5
7927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928
  (exit $ac_status); } &&
7929
         { ac_try='test -z "$ac_c_werror_flag"
7930
                         || test ! -s conftest.err'
7931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932
  (eval $ac_try) 2>&5
7933
  ac_status=$?
7934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935
  (exit $ac_status); }; } &&
7936
         { ac_try='test -s conftest$ac_exeext'
7937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938
  (eval $ac_try) 2>&5
7939
  ac_status=$?
7940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941
  (exit $ac_status); }; }; then
7942
 
7943
lt_aix_libpath_sed='
7944
    /Import File Strings/,/^$/ {
7945
        /^0/ {
7946
            s/^0  *\(.*\)$/\1/
7947
            p
7948
        }
7949
    }'
7950
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951
# Check for a 64-bit object if we didn't find anything.
7952
if test -z "$aix_libpath"; then
7953
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7954
fi
7955
else
7956
  echo "$as_me: failed program was:" >&5
7957
sed 's/^/| /' conftest.$ac_ext >&5
7958
 
7959
fi
7960
rm -f conftest.err conftest.$ac_objext \
7961
      conftest$ac_exeext conftest.$ac_ext
7962
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963
 
7964
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965
        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"
7966
      else
7967
        if test "$host_cpu" = ia64; then
7968
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7969
          allow_undefined_flag="-z nodefs"
7970
          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"
7971
        else
7972
         # Determine the default libpath from the value encoded in an
7973
         # empty executable.
7974
         cat >conftest.$ac_ext <<_ACEOF
7975
/* confdefs.h.  */
7976
_ACEOF
7977
cat confdefs.h >>conftest.$ac_ext
7978
cat >>conftest.$ac_ext <<_ACEOF
7979
/* end confdefs.h.  */
7980
 
7981
int
7982
main ()
7983
{
7984
 
7985
  ;
7986
  return 0;
7987
}
7988
_ACEOF
7989
rm -f conftest.$ac_objext conftest$ac_exeext
7990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991
  (eval $ac_link) 2>conftest.er1
7992
  ac_status=$?
7993
  grep -v '^ *+' conftest.er1 >conftest.err
7994
  rm -f conftest.er1
7995
  cat conftest.err >&5
7996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997
  (exit $ac_status); } &&
7998
         { ac_try='test -z "$ac_c_werror_flag"
7999
                         || test ! -s conftest.err'
8000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001
  (eval $ac_try) 2>&5
8002
  ac_status=$?
8003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004
  (exit $ac_status); }; } &&
8005
         { ac_try='test -s conftest$ac_exeext'
8006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007
  (eval $ac_try) 2>&5
8008
  ac_status=$?
8009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010
  (exit $ac_status); }; }; then
8011
 
8012
lt_aix_libpath_sed='
8013
    /Import File Strings/,/^$/ {
8014
        /^0/ {
8015
            s/^0  *\(.*\)$/\1/
8016
            p
8017
        }
8018
    }'
8019
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8020
# Check for a 64-bit object if we didn't find anything.
8021
if test -z "$aix_libpath"; then
8022
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8023
fi
8024
else
8025
  echo "$as_me: failed program was:" >&5
8026
sed 's/^/| /' conftest.$ac_ext >&5
8027
 
8028
fi
8029
rm -f conftest.err conftest.$ac_objext \
8030
      conftest$ac_exeext conftest.$ac_ext
8031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8032
 
8033
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8034
          # Warning - without using the other run time loading flags,
8035
          # -berok will link without error, but may produce a broken library.
8036
          no_undefined_flag=' ${wl}-bernotok'
8037
          allow_undefined_flag=' ${wl}-berok'
8038
          # Exported symbols can be pulled into shared objects from archives
8039
          whole_archive_flag_spec='$convenience'
8040
          archive_cmds_need_lc=yes
8041
          # This is similar to how AIX traditionally builds its shared libraries.
8042
          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'
8043
        fi
8044
      fi
8045
      ;;
8046
 
8047
    amigaos*)
8048
      if test "$host_cpu" = m68k; then
8049
        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)'
8050
        hardcode_libdir_flag_spec='-L$libdir'
8051
        hardcode_minus_L=yes
8052
      fi
8053
      # see comment about different semantics on the GNU ld section
8054
      ld_shlibs=no
8055
      ;;
8056
 
8057
    bsdi[45]*)
8058
      export_dynamic_flag_spec=-rdynamic
8059
      ;;
8060
 
8061
    cygwin* | mingw* | pw32*)
8062
      # When not using gcc, we currently assume that we are using
8063
      # Microsoft Visual C++.
8064
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8065
      # no search path for DLLs.
8066
      hardcode_libdir_flag_spec=' '
8067
      allow_undefined_flag=unsupported
8068
      # Tell ltmain to make .lib files, not .a files.
8069
      libext=lib
8070
      # Tell ltmain to make .dll files, not .so files.
8071
      shrext_cmds=".dll"
8072
      # FIXME: Setting linknames here is a bad hack.
8073
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8074
      # The linker will automatically build a .lib file if we build a DLL.
8075
      old_archive_from_new_cmds='true'
8076
      # FIXME: Should let the user specify the lib program.
8077
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8078
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8079
      enable_shared_with_static_runtimes=yes
8080
      ;;
8081
 
8082
    darwin* | rhapsody*)
8083
      case $host_os in
8084
      rhapsody* | darwin1.[012])
8085
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
8086
        ;;
8087
      *) # Darwin 1.3 on
8088
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8089
        10.[012])
8090
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8091
          ;;
8092
        10.*)
8093
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8094
          ;;
8095
        esac
8096
        ;;
8097
      esac
8098
      archive_cmds_need_lc=no
8099
      hardcode_direct=no
8100
      hardcode_automatic=yes
8101
      hardcode_shlibpath_var=unsupported
8102
      whole_archive_flag_spec=''
8103
      link_all_deplibs=yes
8104
      if test "$GCC" = yes ; then
8105
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8106
  echo $ECHO_N "(cached) $ECHO_C" >&6
8107
else
8108
  lt_cv_apple_cc_single_mod=no
8109
        if test -z "${LT_MULTI_MODULE}"; then
8110
          # By default we will add the -single_module flag. You can override
8111
          # by either setting the environment variable LT_MULTI_MODULE
8112
          # non-empty at configure time, or by adding -multi-module to the
8113
          # link flags.
8114
          echo "int foo(void){return 1;}" > conftest.c
8115
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116
              -dynamiclib ${wl}-single_module conftest.c
8117
          if test -f libconftest.dylib; then
8118
              lt_cv_apple_cc_single_mod=yes
8119
              rm libconftest.dylib
8120
          fi
8121
          rm conftest.$ac_ext
8122
        fi
8123
fi
8124
 
8125
        output_verbose_link_cmd=echo
8126
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8127
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8128
          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}'
8129
        else
8130
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8131
          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}'
8132
        fi
8133
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8134
        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}'
8135
      else
8136
        case $cc_basename in
8137
        xlc*)
8138
          output_verbose_link_cmd=echo
8139
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8140
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8141
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8142
          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}'
8143
          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}'
8144
          ;;
8145
        *)
8146
          ld_shlibs=no
8147
          ;;
8148
        esac
8149
      fi
8150
      ;;
8151
 
8152
    dgux*)
8153
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154
      hardcode_libdir_flag_spec='-L$libdir'
8155
      hardcode_shlibpath_var=no
8156
      ;;
8157
 
8158
    freebsd1*)
8159
      ld_shlibs=no
8160
      ;;
8161
 
8162
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8163
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8164
    # does not break anything, and helps significantly (at the cost of a little
8165
    # extra space).
8166
    freebsd2.2*)
8167
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8168
      hardcode_libdir_flag_spec='-R$libdir'
8169
      hardcode_direct=yes
8170
      hardcode_shlibpath_var=no
8171
      ;;
8172
 
8173
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8174
    freebsd2*)
8175
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176
      hardcode_direct=yes
8177
      hardcode_minus_L=yes
8178
      hardcode_shlibpath_var=no
8179
      ;;
8180
 
8181
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8182
    freebsd* | dragonfly*)
8183
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8184
      hardcode_libdir_flag_spec='-R$libdir'
8185
      hardcode_direct=yes
8186
      hardcode_shlibpath_var=no
8187
      ;;
8188
 
8189
    hpux9*)
8190
      if test "$GCC" = yes; then
8191
        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'
8192
      else
8193
        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'
8194
      fi
8195
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8196
      hardcode_libdir_separator=:
8197
      hardcode_direct=yes
8198
 
8199
      # hardcode_minus_L: Not really in the search PATH,
8200
      # but as the default location of the library.
8201
      hardcode_minus_L=yes
8202
      export_dynamic_flag_spec='${wl}-E'
8203
      ;;
8204
 
8205
    hpux10*)
8206
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8207
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8208
      else
8209
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8210
      fi
8211
      if test "$with_gnu_ld" = no; then
8212
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8213
        hardcode_libdir_flag_spec_ld='+b $libdir'
8214
        hardcode_libdir_separator=:
8215
        hardcode_direct=yes
8216
        hardcode_direct_absolute=yes
8217
        export_dynamic_flag_spec='${wl}-E'
8218
        # hardcode_minus_L: Not really in the search PATH,
8219
        # but as the default location of the library.
8220
        hardcode_minus_L=yes
8221
      fi
8222
      ;;
8223
 
8224
    hpux11*)
8225
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8226
        case $host_cpu in
8227
        hppa*64*)
8228
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229
          ;;
8230
        ia64*)
8231
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8232
          ;;
8233
        *)
8234
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8235
          ;;
8236
        esac
8237
      else
8238
        case $host_cpu in
8239
        hppa*64*)
8240
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8241
          ;;
8242
        ia64*)
8243
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8244
          ;;
8245
        *)
8246
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8247
          ;;
8248
        esac
8249
      fi
8250
      if test "$with_gnu_ld" = no; then
8251
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252
        hardcode_libdir_separator=:
8253
 
8254
        case $host_cpu in
8255
        hppa*64*|ia64*)
8256
          hardcode_direct=no
8257
          hardcode_shlibpath_var=no
8258
          ;;
8259
        *)
8260
          hardcode_direct=yes
8261
          hardcode_direct_absolute=yes
8262
          export_dynamic_flag_spec='${wl}-E'
8263
 
8264
          # hardcode_minus_L: Not really in the search PATH,
8265
          # but as the default location of the library.
8266
          hardcode_minus_L=yes
8267
          ;;
8268
        esac
8269
      fi
8270
      ;;
8271
 
8272
    irix5* | irix6* | nonstopux*)
8273
      if test "$GCC" = yes; then
8274
        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'
8275
        # Try to use the -exported_symbol ld option, if it does not
8276
        # work, assume that -exports_file does not work either and
8277
        # implicitly export all symbols.
8278
        save_LDFLAGS="$LDFLAGS"
8279
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8280
        cat >conftest.$ac_ext <<_ACEOF
8281
int foo(void) {}
8282
_ACEOF
8283
rm -f conftest.$ac_objext conftest$ac_exeext
8284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285
  (eval $ac_link) 2>conftest.er1
8286
  ac_status=$?
8287
  grep -v '^ *+' conftest.er1 >conftest.err
8288
  rm -f conftest.er1
8289
  cat conftest.err >&5
8290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
  (exit $ac_status); } &&
8292
         { ac_try='test -z "$ac_c_werror_flag"
8293
                         || test ! -s conftest.err'
8294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295
  (eval $ac_try) 2>&5
8296
  ac_status=$?
8297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298
  (exit $ac_status); }; } &&
8299
         { ac_try='test -s conftest$ac_exeext'
8300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301
  (eval $ac_try) 2>&5
8302
  ac_status=$?
8303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304
  (exit $ac_status); }; }; then
8305
  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'
8306
 
8307
else
8308
  echo "$as_me: failed program was:" >&5
8309
sed 's/^/| /' conftest.$ac_ext >&5
8310
 
8311
fi
8312
rm -f conftest.err conftest.$ac_objext \
8313
      conftest$ac_exeext conftest.$ac_ext
8314
        LDFLAGS="$save_LDFLAGS"
8315
      else
8316
        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'
8317
        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'
8318
      fi
8319
      archive_cmds_need_lc='no'
8320
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8321
      hardcode_libdir_separator=:
8322
      inherit_rpath=yes
8323
      link_all_deplibs=yes
8324
      ;;
8325
 
8326
    netbsd*)
8327
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8328
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8329
      else
8330
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8331
      fi
8332
      hardcode_libdir_flag_spec='-R$libdir'
8333
      hardcode_direct=yes
8334
      hardcode_shlibpath_var=no
8335
      ;;
8336
 
8337
    newsos6)
8338
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8339
      hardcode_direct=yes
8340
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341
      hardcode_libdir_separator=:
8342
      hardcode_shlibpath_var=no
8343
      ;;
8344
 
8345
    *nto* | *qnx*)
8346
      ;;
8347
 
8348
    openbsd*)
8349
      hardcode_direct=yes
8350
      hardcode_shlibpath_var=no
8351
      hardcode_direct_absolute=yes
8352
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8353
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8354
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8355
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8356
        export_dynamic_flag_spec='${wl}-E'
8357
      else
8358
        case $host_os in
8359
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8360
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8361
          hardcode_libdir_flag_spec='-R$libdir'
8362
          ;;
8363
        *)
8364
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8365
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8366
          ;;
8367
        esac
8368
      fi
8369
      ;;
8370
 
8371
    os2*)
8372
      hardcode_libdir_flag_spec='-L$libdir'
8373
      hardcode_minus_L=yes
8374
      allow_undefined_flag=unsupported
8375
      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'
8376
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377
      ;;
8378
 
8379
    osf3*)
8380
      if test "$GCC" = yes; then
8381
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8382
        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'
8383
      else
8384
        allow_undefined_flag=' -expect_unresolved \*'
8385
        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'
8386
      fi
8387
      archive_cmds_need_lc='no'
8388
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389
      hardcode_libdir_separator=:
8390
      ;;
8391
 
8392
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8393
      if test "$GCC" = yes; then
8394
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8395
        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'
8396
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397
      else
8398
        allow_undefined_flag=' -expect_unresolved \*'
8399
        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'
8400
        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~
8401
        $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'
8402
 
8403
        # Both c and cxx compiler support -rpath directly
8404
        hardcode_libdir_flag_spec='-rpath $libdir'
8405
      fi
8406
      archive_cmds_need_lc='no'
8407
      hardcode_libdir_separator=:
8408
      ;;
8409
 
8410
    solaris*)
8411
      no_undefined_flag=' -z defs'
8412
      if test "$GCC" = yes; then
8413
        wlarc='${wl}'
8414
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8416
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8417
      else
8418
        case `$CC -V 2>&1` in
8419
        *"Compilers 5.0"*)
8420
          wlarc=''
8421
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8423
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8424
          ;;
8425
        *)
8426
          wlarc='${wl}'
8427
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8429
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8430
          ;;
8431
        esac
8432
      fi
8433
      hardcode_libdir_flag_spec='-R$libdir'
8434
      hardcode_shlibpath_var=no
8435
      case $host_os in
8436
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8437
      *)
8438
        # The compiler driver will combine and reorder linker options,
8439
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8440
        # but is careful enough not to reorder.
8441
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8442
        if test "$GCC" = yes; then
8443
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8444
        else
8445
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8446
        fi
8447
        ;;
8448
      esac
8449
      link_all_deplibs=yes
8450
      ;;
8451
 
8452
    sunos4*)
8453
      if test "x$host_vendor" = xsequent; then
8454
        # Use $CC to link under sequent, because it throws in some extra .o
8455
        # files that make .init and .fini sections work.
8456
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8457
      else
8458
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8459
      fi
8460
      hardcode_libdir_flag_spec='-L$libdir'
8461
      hardcode_direct=yes
8462
      hardcode_minus_L=yes
8463
      hardcode_shlibpath_var=no
8464
      ;;
8465
 
8466
    sysv4)
8467
      case $host_vendor in
8468
        sni)
8469
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470
          hardcode_direct=yes # is this really true???
8471
        ;;
8472
        siemens)
8473
          ## LD is ld it makes a PLAMLIB
8474
          ## CC just makes a GrossModule.
8475
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8476
          reload_cmds='$CC -r -o $output$reload_objs'
8477
          hardcode_direct=no
8478
        ;;
8479
        motorola)
8480
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8482
        ;;
8483
      esac
8484
      runpath_var='LD_RUN_PATH'
8485
      hardcode_shlibpath_var=no
8486
      ;;
8487
 
8488
    sysv4.3*)
8489
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490
      hardcode_shlibpath_var=no
8491
      export_dynamic_flag_spec='-Bexport'
8492
      ;;
8493
 
8494
    sysv4*MP*)
8495
      if test -d /usr/nec; then
8496
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497
        hardcode_shlibpath_var=no
8498
        runpath_var=LD_RUN_PATH
8499
        hardcode_runpath_var=yes
8500
        ld_shlibs=yes
8501
      fi
8502
      ;;
8503
 
8504
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8505
      no_undefined_flag='${wl}-z,text'
8506
      archive_cmds_need_lc=no
8507
      hardcode_shlibpath_var=no
8508
      runpath_var='LD_RUN_PATH'
8509
 
8510
      if test "$GCC" = yes; then
8511
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513
      else
8514
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516
      fi
8517
      ;;
8518
 
8519
    sysv5* | sco3.2v5* | sco5v6*)
8520
      # Note: We can NOT use -z defs as we might desire, because we do not
8521
      # link with -lc, and that would cause any symbols used from libc to
8522
      # always be unresolved, which means just about no library would
8523
      # ever link correctly.  If we're not using GNU ld we use -z text
8524
      # though, which does catch some bad symbols but isn't as heavy-handed
8525
      # as -z defs.
8526
      no_undefined_flag='${wl}-z,text'
8527
      allow_undefined_flag='${wl}-z,nodefs'
8528
      archive_cmds_need_lc=no
8529
      hardcode_shlibpath_var=no
8530
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8531
      hardcode_libdir_separator=':'
8532
      link_all_deplibs=yes
8533
      export_dynamic_flag_spec='${wl}-Bexport'
8534
      runpath_var='LD_RUN_PATH'
8535
 
8536
      if test "$GCC" = yes; then
8537
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539
      else
8540
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8542
      fi
8543
      ;;
8544
 
8545
    uts4*)
8546
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8547
      hardcode_libdir_flag_spec='-L$libdir'
8548
      hardcode_shlibpath_var=no
8549
      ;;
8550
 
8551
    *)
8552
      ld_shlibs=no
8553
      ;;
8554
    esac
8555
 
8556
    if test x$host_vendor = xsni; then
8557
      case $host in
8558
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8559
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8560
        ;;
8561
      esac
8562
    fi
8563
  fi
8564
 
8565
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8566
echo "${ECHO_T}$ld_shlibs" >&6
8567
test "$ld_shlibs" = no && can_build_shared=no
8568
 
8569
with_gnu_ld=$with_gnu_ld
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
#
8586
# Do we need to explicitly link libc?
8587
#
8588
case "x$archive_cmds_need_lc" in
8589
x|xyes)
8590
  # Assume -lc should be added
8591
  archive_cmds_need_lc=yes
8592
 
8593
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8594
    case $archive_cmds in
8595
    *'~'*)
8596
      # FIXME: we may have to deal with multi-command sequences.
8597
      ;;
8598
    '$CC '*)
8599
      # Test whether the compiler implicitly links with -lc since on some
8600
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8601
      # to ld, don't add -lc before -lgcc.
8602
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8603
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8604
      $RM conftest*
8605
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
 
8607
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608
  (eval $ac_compile) 2>&5
8609
  ac_status=$?
8610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611
  (exit $ac_status); } 2>conftest.err; then
8612
        soname=conftest
8613
        lib=conftest
8614
        libobjs=conftest.$ac_objext
8615
        deplibs=
8616
        wl=$lt_prog_compiler_wl
8617
        pic_flag=$lt_prog_compiler_pic
8618
        compiler_flags=-v
8619
        linker_flags=-v
8620
        verstring=
8621
        output_objdir=.
8622
        libname=conftest
8623
        lt_save_allow_undefined_flag=$allow_undefined_flag
8624
        allow_undefined_flag=
8625
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8626
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8627
  ac_status=$?
8628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629
  (exit $ac_status); }
8630
        then
8631
          archive_cmds_need_lc=no
8632
        else
8633
          archive_cmds_need_lc=yes
8634
        fi
8635
        allow_undefined_flag=$lt_save_allow_undefined_flag
8636
      else
8637
        cat conftest.err 1>&5
8638
      fi
8639
      $RM conftest*
8640
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8641
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8642
      ;;
8643
    esac
8644
  fi
8645
  ;;
8646
esac
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775
 
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795
 
8796
 
8797
 
8798
 
8799
 
8800
 
8801
 
8802
 
8803
 
8804
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8805
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8806
withGCC=$GCC
8807
if test "$withGCC" = yes; then
8808
  case $host_os in
8809
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8810
    *) lt_awk_arg="/^libraries:/" ;;
8811
  esac
8812
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8814
    # if the path contains ";" then we assume it to be the separator
8815
    # otherwise default to the standard path separator (i.e. ":") - it is
8816
    # assumed that no part of a normal pathname contains ";" but that should
8817
    # okay in the real world where ";" in dirpaths is itself problematic.
8818
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8819
  else
8820
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8821
  fi
8822
  # Ok, now we have the path, separated by spaces, we can step through it
8823
  # and add multilib dir if necessary.
8824
  lt_tmp_lt_search_path_spec=
8825
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8826
  for lt_sys_path in $lt_search_path_spec; do
8827
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8828
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8829
    else
8830
      test -d "$lt_sys_path" && \
8831
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8832
    fi
8833
  done
8834
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8835
BEGIN {RS=" "; FS="/|\n";} {
8836
  lt_foo="";
8837
  lt_count=0;
8838
  for (lt_i = NF; lt_i > 0; lt_i--) {
8839
    if ($lt_i != "" && $lt_i != ".") {
8840
      if ($lt_i == "..") {
8841
        lt_count++;
8842
      } else {
8843
        if (lt_count == 0) {
8844
          lt_foo="/" $lt_i lt_foo;
8845
        } else {
8846
          lt_count--;
8847
        }
8848
      }
8849
    }
8850
  }
8851
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8852
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8853
}'`
8854
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8855
else
8856
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857
fi
8858
library_names_spec=
8859
libname_spec='lib$name'
8860
soname_spec=
8861
shrext_cmds=".so"
8862
postinstall_cmds=
8863
postuninstall_cmds=
8864
finish_cmds=
8865
finish_eval=
8866
shlibpath_var=
8867
shlibpath_overrides_runpath=unknown
8868
version_type=none
8869
dynamic_linker="$host_os ld.so"
8870
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8871
need_lib_prefix=unknown
8872
hardcode_into_libs=no
8873
 
8874
# when you set need_version to no, make sure it does not cause -set_version
8875
# flags to be left without arguments
8876
need_version=unknown
8877
 
8878
case $host_os in
8879
aix3*)
8880
  version_type=linux
8881
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8882
  shlibpath_var=LIBPATH
8883
 
8884
  # AIX 3 has no versioning support, so we append a major version to the name.
8885
  soname_spec='${libname}${release}${shared_ext}$major'
8886
  ;;
8887
 
8888
aix[4-9]*)
8889
  version_type=linux
8890
  need_lib_prefix=no
8891
  need_version=no
8892
  hardcode_into_libs=yes
8893
  if test "$host_cpu" = ia64; then
8894
    # AIX 5 supports IA64
8895
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8896
    shlibpath_var=LD_LIBRARY_PATH
8897
  else
8898
    # With GCC up to 2.95.x, collect2 would create an import file
8899
    # for dependence libraries.  The import file would start with
8900
    # the line `#! .'.  This would cause the generated library to
8901
    # depend on `.', always an invalid library.  This was fixed in
8902
    # development snapshots of GCC prior to 3.0.
8903
    case $host_os in
8904
      aix4 | aix4.[01] | aix4.[01].*)
8905
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906
           echo ' yes '
8907
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8908
        :
8909
      else
8910
        can_build_shared=no
8911
      fi
8912
      ;;
8913
    esac
8914
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8915
    # soname into executable. Probably we can add versioning support to
8916
    # collect2, so additional links can be useful in future.
8917
    if test "$aix_use_runtimelinking" = yes; then
8918
      # If using run time linking (on AIX 4.2 or later) use lib.so
8919
      # instead of lib.a to let people know that these are not
8920
      # typical AIX shared libraries.
8921
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922
    else
8923
      # We preserve .a as extension for shared libraries through AIX4.2
8924
      # and later when we are not doing run time linking.
8925
      library_names_spec='${libname}${release}.a $libname.a'
8926
      soname_spec='${libname}${release}${shared_ext}$major'
8927
    fi
8928
    shlibpath_var=LIBPATH
8929
  fi
8930
  ;;
8931
 
8932
amigaos*)
8933
  if test "$host_cpu" = m68k; then
8934
    library_names_spec='$libname.ixlibrary $libname.a'
8935
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8936
    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'
8937
  else
8938
    dynamic_linker=no
8939
  fi
8940
  ;;
8941
 
8942
beos*)
8943
  library_names_spec='${libname}${shared_ext}'
8944
  dynamic_linker="$host_os ld.so"
8945
  shlibpath_var=LIBRARY_PATH
8946
  ;;
8947
 
8948
bsdi[45]*)
8949
  version_type=linux
8950
  need_version=no
8951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952
  soname_spec='${libname}${release}${shared_ext}$major'
8953
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8954
  shlibpath_var=LD_LIBRARY_PATH
8955
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8956
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8957
  # the default ld.so.conf also contains /usr/contrib/lib and
8958
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8959
  # libtool to hard-code these into programs
8960
  ;;
8961
 
8962
cygwin* | mingw* | pw32*)
8963
  version_type=windows
8964
  shrext_cmds=".dll"
8965
  need_version=no
8966
  need_lib_prefix=no
8967
 
8968
  case $withGCC,$host_os in
8969
  yes,cygwin* | yes,mingw* | yes,pw32*)
8970
    library_names_spec='$libname.dll.a'
8971
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8972
    postinstall_cmds='base_file=`basename \${file}`~
8973
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8974
      dldir=$destdir/`dirname \$dlpath`~
8975
      test -d \$dldir || mkdir -p \$dldir~
8976
      $install_prog $dir/$dlname \$dldir/$dlname~
8977
      chmod a+x \$dldir/$dlname~
8978
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8979
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8980
      fi'
8981
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8982
      dlpath=$dir/\$dldll~
8983
       $RM \$dlpath'
8984
    shlibpath_overrides_runpath=yes
8985
 
8986
    case $host_os in
8987
    cygwin*)
8988
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8989
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8991
      ;;
8992
    mingw*)
8993
      # MinGW DLLs use traditional 'lib' prefix
8994
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8996
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8997
        # It is most probably a Windows format PATH printed by
8998
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8999
        # path with ; separators, and with drive letters. We can handle the
9000
        # drive letters (cygwin fileutils understands them), so leave them,
9001
        # especially as we might pass files found there to a mingw objdump,
9002
        # which wouldn't understand a cygwinified path. Ahh.
9003
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9004
      else
9005
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9006
      fi
9007
      ;;
9008
    pw32*)
9009
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9010
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9011
      ;;
9012
    esac
9013
    ;;
9014
 
9015
  *)
9016
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9017
    ;;
9018
  esac
9019
  dynamic_linker='Win32 ld.exe'
9020
  # FIXME: first we should search . and the directory the executable is in
9021
  shlibpath_var=PATH
9022
  ;;
9023
 
9024
darwin* | rhapsody*)
9025
  dynamic_linker="$host_os dyld"
9026
  version_type=darwin
9027
  need_lib_prefix=no
9028
  need_version=no
9029
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9030
  soname_spec='${libname}${release}${major}$shared_ext'
9031
  shlibpath_overrides_runpath=yes
9032
  shlibpath_var=DYLD_LIBRARY_PATH
9033
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9034
 
9035
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9036
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9037
  ;;
9038
 
9039
dgux*)
9040
  version_type=linux
9041
  need_lib_prefix=no
9042
  need_version=no
9043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9044
  soname_spec='${libname}${release}${shared_ext}$major'
9045
  shlibpath_var=LD_LIBRARY_PATH
9046
  ;;
9047
 
9048
freebsd1*)
9049
  dynamic_linker=no
9050
  ;;
9051
 
9052
freebsd* | dragonfly*)
9053
  # DragonFly does not have aout.  When/if they implement a new
9054
  # versioning mechanism, adjust this.
9055
  if test -x /usr/bin/objformat; then
9056
    objformat=`/usr/bin/objformat`
9057
  else
9058
    case $host_os in
9059
    freebsd[123]*) objformat=aout ;;
9060
    *) objformat=elf ;;
9061
    esac
9062
  fi
9063
  version_type=freebsd-$objformat
9064
  case $version_type in
9065
    freebsd-elf*)
9066
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9067
      need_version=no
9068
      need_lib_prefix=no
9069
      ;;
9070
    freebsd-*)
9071
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9072
      need_version=yes
9073
      ;;
9074
  esac
9075
  shlibpath_var=LD_LIBRARY_PATH
9076
  case $host_os in
9077
  freebsd2*)
9078
    shlibpath_overrides_runpath=yes
9079
    ;;
9080
  freebsd3.[01]* | freebsdelf3.[01]*)
9081
    shlibpath_overrides_runpath=yes
9082
    hardcode_into_libs=yes
9083
    ;;
9084
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9085
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9086
    shlibpath_overrides_runpath=no
9087
    hardcode_into_libs=yes
9088
    ;;
9089
  *) # from 4.6 on, and DragonFly
9090
    shlibpath_overrides_runpath=yes
9091
    hardcode_into_libs=yes
9092
    ;;
9093
  esac
9094
  ;;
9095
 
9096
gnu*)
9097
  version_type=linux
9098
  need_lib_prefix=no
9099
  need_version=no
9100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9101
  soname_spec='${libname}${release}${shared_ext}$major'
9102
  shlibpath_var=LD_LIBRARY_PATH
9103
  hardcode_into_libs=yes
9104
  ;;
9105
 
9106
hpux9* | hpux10* | hpux11*)
9107
  # Give a soname corresponding to the major version so that dld.sl refuses to
9108
  # link against other versions.
9109
  version_type=sunos
9110
  need_lib_prefix=no
9111
  need_version=no
9112
  case $host_cpu in
9113
  ia64*)
9114
    shrext_cmds='.so'
9115
    hardcode_into_libs=yes
9116
    dynamic_linker="$host_os dld.so"
9117
    shlibpath_var=LD_LIBRARY_PATH
9118
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9119
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120
    soname_spec='${libname}${release}${shared_ext}$major'
9121
    if test "X$HPUX_IA64_MODE" = X32; then
9122
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9123
    else
9124
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9125
    fi
9126
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9127
    ;;
9128
  hppa*64*)
9129
    shrext_cmds='.sl'
9130
    hardcode_into_libs=yes
9131
    dynamic_linker="$host_os dld.sl"
9132
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9133
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9134
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135
    soname_spec='${libname}${release}${shared_ext}$major'
9136
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9137
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9138
    ;;
9139
  *)
9140
    shrext_cmds='.sl'
9141
    dynamic_linker="$host_os dld.sl"
9142
    shlibpath_var=SHLIB_PATH
9143
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9144
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145
    soname_spec='${libname}${release}${shared_ext}$major'
9146
    ;;
9147
  esac
9148
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9149
  postinstall_cmds='chmod 555 $lib'
9150
  ;;
9151
 
9152
interix[3-9]*)
9153
  version_type=linux
9154
  need_lib_prefix=no
9155
  need_version=no
9156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9157
  soname_spec='${libname}${release}${shared_ext}$major'
9158
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9159
  shlibpath_var=LD_LIBRARY_PATH
9160
  shlibpath_overrides_runpath=no
9161
  hardcode_into_libs=yes
9162
  ;;
9163
 
9164
irix5* | irix6* | nonstopux*)
9165
  case $host_os in
9166
    nonstopux*) version_type=nonstopux ;;
9167
    *)
9168
        if test "$lt_cv_prog_gnu_ld" = yes; then
9169
                version_type=linux
9170
        else
9171
                version_type=irix
9172
        fi ;;
9173
  esac
9174
  need_lib_prefix=no
9175
  need_version=no
9176
  soname_spec='${libname}${release}${shared_ext}$major'
9177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9178
  case $host_os in
9179
  irix5* | nonstopux*)
9180
    libsuff= shlibsuff=
9181
    ;;
9182
  *)
9183
    case $LD in # libtool.m4 will add one of these switches to LD
9184
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9185
      libsuff= shlibsuff= libmagic=32-bit;;
9186
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9187
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9188
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9189
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9190
    *) libsuff= shlibsuff= libmagic=never-match;;
9191
    esac
9192
    ;;
9193
  esac
9194
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9195
  shlibpath_overrides_runpath=no
9196
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9197
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9198
  hardcode_into_libs=yes
9199
  ;;
9200
 
9201
# No shared lib support for Linux oldld, aout, or coff.
9202
linux*oldld* | linux*aout* | linux*coff*)
9203
  dynamic_linker=no
9204
  ;;
9205
 
9206
# This must be Linux ELF.
9207
linux* | k*bsd*-gnu)
9208
  version_type=linux
9209
  need_lib_prefix=no
9210
  need_version=no
9211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212
  soname_spec='${libname}${release}${shared_ext}$major'
9213
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9214
  shlibpath_var=LD_LIBRARY_PATH
9215
  shlibpath_overrides_runpath=no
9216
  # Some binutils ld are patched to set DT_RUNPATH
9217
  save_LDFLAGS=$LDFLAGS
9218
  save_libdir=$libdir
9219
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9220
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9221
  cat >conftest.$ac_ext <<_ACEOF
9222
/* confdefs.h.  */
9223
_ACEOF
9224
cat confdefs.h >>conftest.$ac_ext
9225
cat >>conftest.$ac_ext <<_ACEOF
9226
/* end confdefs.h.  */
9227
 
9228
int
9229
main ()
9230
{
9231
 
9232
  ;
9233
  return 0;
9234
}
9235
_ACEOF
9236
rm -f conftest.$ac_objext conftest$ac_exeext
9237
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238
  (eval $ac_link) 2>conftest.er1
9239
  ac_status=$?
9240
  grep -v '^ *+' conftest.er1 >conftest.err
9241
  rm -f conftest.er1
9242
  cat conftest.err >&5
9243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244
  (exit $ac_status); } &&
9245
         { ac_try='test -z "$ac_c_werror_flag"
9246
                         || test ! -s conftest.err'
9247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248
  (eval $ac_try) 2>&5
9249
  ac_status=$?
9250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251
  (exit $ac_status); }; } &&
9252
         { ac_try='test -s conftest$ac_exeext'
9253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254
  (eval $ac_try) 2>&5
9255
  ac_status=$?
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257
  (exit $ac_status); }; }; then
9258
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9259
  shlibpath_overrides_runpath=yes
9260
fi
9261
 
9262
else
9263
  echo "$as_me: failed program was:" >&5
9264
sed 's/^/| /' conftest.$ac_ext >&5
9265
 
9266
fi
9267
rm -f conftest.err conftest.$ac_objext \
9268
      conftest$ac_exeext conftest.$ac_ext
9269
  LDFLAGS=$save_LDFLAGS
9270
  libdir=$save_libdir
9271
 
9272
  # This implies no fast_install, which is unacceptable.
9273
  # Some rework will be needed to allow for fast_install
9274
  # before this can be enabled.
9275
  hardcode_into_libs=yes
9276
 
9277
  # Append ld.so.conf contents to the search path
9278
  if test -f /etc/ld.so.conf; then
9279
    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' ' '`
9280
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9281
  fi
9282
 
9283
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9284
  # powerpc, because MkLinux only supported shared libraries with the
9285
  # GNU dynamic linker.  Since this was broken with cross compilers,
9286
  # most powerpc-linux boxes support dynamic linking these days and
9287
  # people can always --disable-shared, the test was removed, and we
9288
  # assume the GNU/Linux dynamic linker is in use.
9289
  dynamic_linker='GNU/Linux ld.so'
9290
  ;;
9291
 
9292
netbsd*)
9293
  version_type=sunos
9294
  need_lib_prefix=no
9295
  need_version=no
9296
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9297
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9299
    dynamic_linker='NetBSD (a.out) ld.so'
9300
  else
9301
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9302
    soname_spec='${libname}${release}${shared_ext}$major'
9303
    dynamic_linker='NetBSD ld.elf_so'
9304
  fi
9305
  shlibpath_var=LD_LIBRARY_PATH
9306
  shlibpath_overrides_runpath=yes
9307
  hardcode_into_libs=yes
9308
  ;;
9309
 
9310
newsos6)
9311
  version_type=linux
9312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313
  shlibpath_var=LD_LIBRARY_PATH
9314
  shlibpath_overrides_runpath=yes
9315
  ;;
9316
 
9317
*nto* | *qnx*)
9318
  version_type=qnx
9319
  need_lib_prefix=no
9320
  need_version=no
9321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322
  soname_spec='${libname}${release}${shared_ext}$major'
9323
  shlibpath_var=LD_LIBRARY_PATH
9324
  shlibpath_overrides_runpath=no
9325
  hardcode_into_libs=yes
9326
  dynamic_linker='ldqnx.so'
9327
  ;;
9328
 
9329
openbsd*)
9330
  version_type=sunos
9331
  sys_lib_dlsearch_path_spec="/usr/lib"
9332
  need_lib_prefix=no
9333
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9334
  case $host_os in
9335
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9336
    *)                          need_version=no  ;;
9337
  esac
9338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9339
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9340
  shlibpath_var=LD_LIBRARY_PATH
9341
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342
    case $host_os in
9343
      openbsd2.[89] | openbsd2.[89].*)
9344
        shlibpath_overrides_runpath=no
9345
        ;;
9346
      *)
9347
        shlibpath_overrides_runpath=yes
9348
        ;;
9349
      esac
9350
  else
9351
    shlibpath_overrides_runpath=yes
9352
  fi
9353
  ;;
9354
 
9355
os2*)
9356
  libname_spec='$name'
9357
  shrext_cmds=".dll"
9358
  need_lib_prefix=no
9359
  library_names_spec='$libname${shared_ext} $libname.a'
9360
  dynamic_linker='OS/2 ld.exe'
9361
  shlibpath_var=LIBPATH
9362
  ;;
9363
 
9364
osf3* | osf4* | osf5*)
9365
  version_type=osf
9366
  need_lib_prefix=no
9367
  need_version=no
9368
  soname_spec='${libname}${release}${shared_ext}$major'
9369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370
  shlibpath_var=LD_LIBRARY_PATH
9371
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9372
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373
  ;;
9374
 
9375
rdos*)
9376
  dynamic_linker=no
9377
  ;;
9378
 
9379
solaris*)
9380
  version_type=linux
9381
  need_lib_prefix=no
9382
  need_version=no
9383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384
  soname_spec='${libname}${release}${shared_ext}$major'
9385
  shlibpath_var=LD_LIBRARY_PATH
9386
  shlibpath_overrides_runpath=yes
9387
  hardcode_into_libs=yes
9388
  # ldd complains unless libraries are executable
9389
  postinstall_cmds='chmod +x $lib'
9390
  ;;
9391
 
9392
sunos4*)
9393
  version_type=sunos
9394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9395
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9396
  shlibpath_var=LD_LIBRARY_PATH
9397
  shlibpath_overrides_runpath=yes
9398
  if test "$with_gnu_ld" = yes; then
9399
    need_lib_prefix=no
9400
  fi
9401
  need_version=yes
9402
  ;;
9403
 
9404
sysv4 | sysv4.3*)
9405
  version_type=linux
9406
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407
  soname_spec='${libname}${release}${shared_ext}$major'
9408
  shlibpath_var=LD_LIBRARY_PATH
9409
  case $host_vendor in
9410
    sni)
9411
      shlibpath_overrides_runpath=no
9412
      need_lib_prefix=no
9413
      runpath_var=LD_RUN_PATH
9414
      ;;
9415
    siemens)
9416
      need_lib_prefix=no
9417
      ;;
9418
    motorola)
9419
      need_lib_prefix=no
9420
      need_version=no
9421
      shlibpath_overrides_runpath=no
9422
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9423
      ;;
9424
  esac
9425
  ;;
9426
 
9427
sysv4*MP*)
9428
  if test -d /usr/nec ;then
9429
    version_type=linux
9430
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431
    soname_spec='$libname${shared_ext}.$major'
9432
    shlibpath_var=LD_LIBRARY_PATH
9433
  fi
9434
  ;;
9435
 
9436
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9437
  version_type=freebsd-elf
9438
  need_lib_prefix=no
9439
  need_version=no
9440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9441
  soname_spec='${libname}${release}${shared_ext}$major'
9442
  shlibpath_var=LD_LIBRARY_PATH
9443
  shlibpath_overrides_runpath=yes
9444
  hardcode_into_libs=yes
9445
  if test "$with_gnu_ld" = yes; then
9446
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9447
  else
9448
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9449
    case $host_os in
9450
      sco3.2v5*)
9451
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9452
        ;;
9453
    esac
9454
  fi
9455
  sys_lib_dlsearch_path_spec='/usr/lib'
9456
  ;;
9457
 
9458
tpf*)
9459
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9460
  version_type=linux
9461
  need_lib_prefix=no
9462
  need_version=no
9463
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464
  shlibpath_var=LD_LIBRARY_PATH
9465
  shlibpath_overrides_runpath=no
9466
  hardcode_into_libs=yes
9467
  ;;
9468
 
9469
uts4*)
9470
  version_type=linux
9471
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472
  soname_spec='${libname}${release}${shared_ext}$major'
9473
  shlibpath_var=LD_LIBRARY_PATH
9474
  ;;
9475
 
9476
*)
9477
  dynamic_linker=no
9478
  ;;
9479
esac
9480
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9481
echo "${ECHO_T}$dynamic_linker" >&6
9482
test "$dynamic_linker" = no && can_build_shared=no
9483
 
9484
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9485
if test "$GCC" = yes; then
9486
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9487
fi
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9576
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9577
hardcode_action=
9578
if test -n "$hardcode_libdir_flag_spec" ||
9579
   test -n "$runpath_var" ||
9580
   test "X$hardcode_automatic" = "Xyes" ; then
9581
 
9582
  # We can hardcode non-existent directories.
9583
  if test "$hardcode_direct" != no &&
9584
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9585
     # have to relink, otherwise we might link with an installed library
9586
     # when we should be linking with a yet-to-be-installed one
9587
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9588
     test "$hardcode_minus_L" != no; then
9589
    # Linking always hardcodes the temporary library directory.
9590
    hardcode_action=relink
9591
  else
9592
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9593
    hardcode_action=immediate
9594
  fi
9595
else
9596
  # We cannot hardcode anything, or else we can only hardcode existing
9597
  # directories.
9598
  hardcode_action=unsupported
9599
fi
9600
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9601
echo "${ECHO_T}$hardcode_action" >&6
9602
 
9603
if test "$hardcode_action" = relink ||
9604
   test "$inherit_rpath" = yes; then
9605
  # Fast installation is not supported
9606
  enable_fast_install=no
9607
elif test "$shlibpath_overrides_runpath" = yes ||
9608
     test "$enable_shared" = no; then
9609
  # Fast installation is not necessary
9610
  enable_fast_install=needless
9611
fi
9612
 
9613
 
9614
 
9615
 
9616
 
9617
 
9618
  if test "x$enable_dlopen" != xyes; then
9619
  enable_dlopen=unknown
9620
  enable_dlopen_self=unknown
9621
  enable_dlopen_self_static=unknown
9622
else
9623
  lt_cv_dlopen=no
9624
  lt_cv_dlopen_libs=
9625
 
9626
  case $host_os in
9627
  beos*)
9628
    lt_cv_dlopen="load_add_on"
9629
    lt_cv_dlopen_libs=
9630
    lt_cv_dlopen_self=yes
9631
    ;;
9632
 
9633
  mingw* | pw32*)
9634
    lt_cv_dlopen="LoadLibrary"
9635
    lt_cv_dlopen_libs=
9636
    ;;
9637
 
9638
  cygwin*)
9639
    lt_cv_dlopen="dlopen"
9640
    lt_cv_dlopen_libs=
9641
    ;;
9642
 
9643
  darwin*)
9644
  # if libdl is installed we need to link against it
9645
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9646
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9647
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9648
  echo $ECHO_N "(cached) $ECHO_C" >&6
9649
else
9650
  ac_check_lib_save_LIBS=$LIBS
9651
LIBS="-ldl  $LIBS"
9652
cat >conftest.$ac_ext <<_ACEOF
9653
/* confdefs.h.  */
9654
_ACEOF
9655
cat confdefs.h >>conftest.$ac_ext
9656
cat >>conftest.$ac_ext <<_ACEOF
9657
/* end confdefs.h.  */
9658
 
9659
/* Override any gcc2 internal prototype to avoid an error.  */
9660
#ifdef __cplusplus
9661
extern "C"
9662
#endif
9663
/* We use char because int might match the return type of a gcc2
9664
   builtin and then its argument prototype would still apply.  */
9665
char dlopen ();
9666
int
9667
main ()
9668
{
9669
dlopen ();
9670
  ;
9671
  return 0;
9672
}
9673
_ACEOF
9674
rm -f conftest.$ac_objext conftest$ac_exeext
9675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676
  (eval $ac_link) 2>conftest.er1
9677
  ac_status=$?
9678
  grep -v '^ *+' conftest.er1 >conftest.err
9679
  rm -f conftest.er1
9680
  cat conftest.err >&5
9681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
  (exit $ac_status); } &&
9683
         { ac_try='test -z "$ac_c_werror_flag"
9684
                         || test ! -s conftest.err'
9685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686
  (eval $ac_try) 2>&5
9687
  ac_status=$?
9688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689
  (exit $ac_status); }; } &&
9690
         { ac_try='test -s conftest$ac_exeext'
9691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692
  (eval $ac_try) 2>&5
9693
  ac_status=$?
9694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695
  (exit $ac_status); }; }; then
9696
  ac_cv_lib_dl_dlopen=yes
9697
else
9698
  echo "$as_me: failed program was:" >&5
9699
sed 's/^/| /' conftest.$ac_ext >&5
9700
 
9701
ac_cv_lib_dl_dlopen=no
9702
fi
9703
rm -f conftest.err conftest.$ac_objext \
9704
      conftest$ac_exeext conftest.$ac_ext
9705
LIBS=$ac_check_lib_save_LIBS
9706
fi
9707
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9708
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9709
if test $ac_cv_lib_dl_dlopen = yes; then
9710
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9711
else
9712
 
9713
    lt_cv_dlopen="dyld"
9714
    lt_cv_dlopen_libs=
9715
    lt_cv_dlopen_self=yes
9716
 
9717
fi
9718
 
9719
    ;;
9720
 
9721
  *)
9722
    echo "$as_me:$LINENO: checking for shl_load" >&5
9723
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9724
if test "${ac_cv_func_shl_load+set}" = set; then
9725
  echo $ECHO_N "(cached) $ECHO_C" >&6
9726
else
9727
  cat >conftest.$ac_ext <<_ACEOF
9728
/* confdefs.h.  */
9729
_ACEOF
9730
cat confdefs.h >>conftest.$ac_ext
9731
cat >>conftest.$ac_ext <<_ACEOF
9732
/* end confdefs.h.  */
9733
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9734
   For example, HP-UX 11i  declares gettimeofday.  */
9735
#define shl_load innocuous_shl_load
9736
 
9737
/* System header to define __stub macros and hopefully few prototypes,
9738
    which can conflict with char shl_load (); below.
9739
    Prefer  to  if __STDC__ is defined, since
9740
     exists even on freestanding compilers.  */
9741
 
9742
#ifdef __STDC__
9743
# include 
9744
#else
9745
# include 
9746
#endif
9747
 
9748
#undef shl_load
9749
 
9750
/* Override any gcc2 internal prototype to avoid an error.  */
9751
#ifdef __cplusplus
9752
extern "C"
9753
{
9754
#endif
9755
/* We use char because int might match the return type of a gcc2
9756
   builtin and then its argument prototype would still apply.  */
9757
char shl_load ();
9758
/* The GNU C library defines this for functions which it implements
9759
    to always fail with ENOSYS.  Some functions are actually named
9760
    something starting with __ and the normal name is an alias.  */
9761
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9762
choke me
9763
#else
9764
char (*f) () = shl_load;
9765
#endif
9766
#ifdef __cplusplus
9767
}
9768
#endif
9769
 
9770
int
9771
main ()
9772
{
9773
return f != shl_load;
9774
  ;
9775
  return 0;
9776
}
9777
_ACEOF
9778
rm -f conftest.$ac_objext conftest$ac_exeext
9779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780
  (eval $ac_link) 2>conftest.er1
9781
  ac_status=$?
9782
  grep -v '^ *+' conftest.er1 >conftest.err
9783
  rm -f conftest.er1
9784
  cat conftest.err >&5
9785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
  (exit $ac_status); } &&
9787
         { ac_try='test -z "$ac_c_werror_flag"
9788
                         || test ! -s conftest.err'
9789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790
  (eval $ac_try) 2>&5
9791
  ac_status=$?
9792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793
  (exit $ac_status); }; } &&
9794
         { ac_try='test -s conftest$ac_exeext'
9795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796
  (eval $ac_try) 2>&5
9797
  ac_status=$?
9798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799
  (exit $ac_status); }; }; then
9800
  ac_cv_func_shl_load=yes
9801
else
9802
  echo "$as_me: failed program was:" >&5
9803
sed 's/^/| /' conftest.$ac_ext >&5
9804
 
9805
ac_cv_func_shl_load=no
9806
fi
9807
rm -f conftest.err conftest.$ac_objext \
9808
      conftest$ac_exeext conftest.$ac_ext
9809
fi
9810
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9811
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9812
if test $ac_cv_func_shl_load = yes; then
9813
  lt_cv_dlopen="shl_load"
9814
else
9815
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9817
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818
  echo $ECHO_N "(cached) $ECHO_C" >&6
9819
else
9820
  ac_check_lib_save_LIBS=$LIBS
9821
LIBS="-ldld  $LIBS"
9822
cat >conftest.$ac_ext <<_ACEOF
9823
/* confdefs.h.  */
9824
_ACEOF
9825
cat confdefs.h >>conftest.$ac_ext
9826
cat >>conftest.$ac_ext <<_ACEOF
9827
/* end confdefs.h.  */
9828
 
9829
/* Override any gcc2 internal prototype to avoid an error.  */
9830
#ifdef __cplusplus
9831
extern "C"
9832
#endif
9833
/* We use char because int might match the return type of a gcc2
9834
   builtin and then its argument prototype would still apply.  */
9835
char shl_load ();
9836
int
9837
main ()
9838
{
9839
shl_load ();
9840
  ;
9841
  return 0;
9842
}
9843
_ACEOF
9844
rm -f conftest.$ac_objext conftest$ac_exeext
9845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9846
  (eval $ac_link) 2>conftest.er1
9847
  ac_status=$?
9848
  grep -v '^ *+' conftest.er1 >conftest.err
9849
  rm -f conftest.er1
9850
  cat conftest.err >&5
9851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852
  (exit $ac_status); } &&
9853
         { ac_try='test -z "$ac_c_werror_flag"
9854
                         || test ! -s conftest.err'
9855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856
  (eval $ac_try) 2>&5
9857
  ac_status=$?
9858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859
  (exit $ac_status); }; } &&
9860
         { ac_try='test -s conftest$ac_exeext'
9861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862
  (eval $ac_try) 2>&5
9863
  ac_status=$?
9864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865
  (exit $ac_status); }; }; then
9866
  ac_cv_lib_dld_shl_load=yes
9867
else
9868
  echo "$as_me: failed program was:" >&5
9869
sed 's/^/| /' conftest.$ac_ext >&5
9870
 
9871
ac_cv_lib_dld_shl_load=no
9872
fi
9873
rm -f conftest.err conftest.$ac_objext \
9874
      conftest$ac_exeext conftest.$ac_ext
9875
LIBS=$ac_check_lib_save_LIBS
9876
fi
9877
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9878
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9879
if test $ac_cv_lib_dld_shl_load = yes; then
9880
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9881
else
9882
  echo "$as_me:$LINENO: checking for dlopen" >&5
9883
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9884
if test "${ac_cv_func_dlopen+set}" = set; then
9885
  echo $ECHO_N "(cached) $ECHO_C" >&6
9886
else
9887
  cat >conftest.$ac_ext <<_ACEOF
9888
/* confdefs.h.  */
9889
_ACEOF
9890
cat confdefs.h >>conftest.$ac_ext
9891
cat >>conftest.$ac_ext <<_ACEOF
9892
/* end confdefs.h.  */
9893
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9894
   For example, HP-UX 11i  declares gettimeofday.  */
9895
#define dlopen innocuous_dlopen
9896
 
9897
/* System header to define __stub macros and hopefully few prototypes,
9898
    which can conflict with char dlopen (); below.
9899
    Prefer  to  if __STDC__ is defined, since
9900
     exists even on freestanding compilers.  */
9901
 
9902
#ifdef __STDC__
9903
# include 
9904
#else
9905
# include 
9906
#endif
9907
 
9908
#undef dlopen
9909
 
9910
/* Override any gcc2 internal prototype to avoid an error.  */
9911
#ifdef __cplusplus
9912
extern "C"
9913
{
9914
#endif
9915
/* We use char because int might match the return type of a gcc2
9916
   builtin and then its argument prototype would still apply.  */
9917
char dlopen ();
9918
/* The GNU C library defines this for functions which it implements
9919
    to always fail with ENOSYS.  Some functions are actually named
9920
    something starting with __ and the normal name is an alias.  */
9921
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9922
choke me
9923
#else
9924
char (*f) () = dlopen;
9925
#endif
9926
#ifdef __cplusplus
9927
}
9928
#endif
9929
 
9930
int
9931
main ()
9932
{
9933
return f != dlopen;
9934
  ;
9935
  return 0;
9936
}
9937
_ACEOF
9938
rm -f conftest.$ac_objext conftest$ac_exeext
9939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940
  (eval $ac_link) 2>conftest.er1
9941
  ac_status=$?
9942
  grep -v '^ *+' conftest.er1 >conftest.err
9943
  rm -f conftest.er1
9944
  cat conftest.err >&5
9945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946
  (exit $ac_status); } &&
9947
         { ac_try='test -z "$ac_c_werror_flag"
9948
                         || test ! -s conftest.err'
9949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950
  (eval $ac_try) 2>&5
9951
  ac_status=$?
9952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953
  (exit $ac_status); }; } &&
9954
         { ac_try='test -s conftest$ac_exeext'
9955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956
  (eval $ac_try) 2>&5
9957
  ac_status=$?
9958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959
  (exit $ac_status); }; }; then
9960
  ac_cv_func_dlopen=yes
9961
else
9962
  echo "$as_me: failed program was:" >&5
9963
sed 's/^/| /' conftest.$ac_ext >&5
9964
 
9965
ac_cv_func_dlopen=no
9966
fi
9967
rm -f conftest.err conftest.$ac_objext \
9968
      conftest$ac_exeext conftest.$ac_ext
9969
fi
9970
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9971
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9972
if test $ac_cv_func_dlopen = yes; then
9973
  lt_cv_dlopen="dlopen"
9974
else
9975
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9976
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9977
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9978
  echo $ECHO_N "(cached) $ECHO_C" >&6
9979
else
9980
  ac_check_lib_save_LIBS=$LIBS
9981
LIBS="-ldl  $LIBS"
9982
cat >conftest.$ac_ext <<_ACEOF
9983
/* confdefs.h.  */
9984
_ACEOF
9985
cat confdefs.h >>conftest.$ac_ext
9986
cat >>conftest.$ac_ext <<_ACEOF
9987
/* end confdefs.h.  */
9988
 
9989
/* Override any gcc2 internal prototype to avoid an error.  */
9990
#ifdef __cplusplus
9991
extern "C"
9992
#endif
9993
/* We use char because int might match the return type of a gcc2
9994
   builtin and then its argument prototype would still apply.  */
9995
char dlopen ();
9996
int
9997
main ()
9998
{
9999
dlopen ();
10000
  ;
10001
  return 0;
10002
}
10003
_ACEOF
10004
rm -f conftest.$ac_objext conftest$ac_exeext
10005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006
  (eval $ac_link) 2>conftest.er1
10007
  ac_status=$?
10008
  grep -v '^ *+' conftest.er1 >conftest.err
10009
  rm -f conftest.er1
10010
  cat conftest.err >&5
10011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012
  (exit $ac_status); } &&
10013
         { ac_try='test -z "$ac_c_werror_flag"
10014
                         || test ! -s conftest.err'
10015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016
  (eval $ac_try) 2>&5
10017
  ac_status=$?
10018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019
  (exit $ac_status); }; } &&
10020
         { ac_try='test -s conftest$ac_exeext'
10021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022
  (eval $ac_try) 2>&5
10023
  ac_status=$?
10024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025
  (exit $ac_status); }; }; then
10026
  ac_cv_lib_dl_dlopen=yes
10027
else
10028
  echo "$as_me: failed program was:" >&5
10029
sed 's/^/| /' conftest.$ac_ext >&5
10030
 
10031
ac_cv_lib_dl_dlopen=no
10032
fi
10033
rm -f conftest.err conftest.$ac_objext \
10034
      conftest$ac_exeext conftest.$ac_ext
10035
LIBS=$ac_check_lib_save_LIBS
10036
fi
10037
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10038
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10039
if test $ac_cv_lib_dl_dlopen = yes; then
10040
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10041
else
10042
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10043
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10044
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10045
  echo $ECHO_N "(cached) $ECHO_C" >&6
10046
else
10047
  ac_check_lib_save_LIBS=$LIBS
10048
LIBS="-lsvld  $LIBS"
10049
cat >conftest.$ac_ext <<_ACEOF
10050
/* confdefs.h.  */
10051
_ACEOF
10052
cat confdefs.h >>conftest.$ac_ext
10053
cat >>conftest.$ac_ext <<_ACEOF
10054
/* end confdefs.h.  */
10055
 
10056
/* Override any gcc2 internal prototype to avoid an error.  */
10057
#ifdef __cplusplus
10058
extern "C"
10059
#endif
10060
/* We use char because int might match the return type of a gcc2
10061
   builtin and then its argument prototype would still apply.  */
10062
char dlopen ();
10063
int
10064
main ()
10065
{
10066
dlopen ();
10067
  ;
10068
  return 0;
10069
}
10070
_ACEOF
10071
rm -f conftest.$ac_objext conftest$ac_exeext
10072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10073
  (eval $ac_link) 2>conftest.er1
10074
  ac_status=$?
10075
  grep -v '^ *+' conftest.er1 >conftest.err
10076
  rm -f conftest.er1
10077
  cat conftest.err >&5
10078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079
  (exit $ac_status); } &&
10080
         { ac_try='test -z "$ac_c_werror_flag"
10081
                         || test ! -s conftest.err'
10082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083
  (eval $ac_try) 2>&5
10084
  ac_status=$?
10085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
  (exit $ac_status); }; } &&
10087
         { ac_try='test -s conftest$ac_exeext'
10088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089
  (eval $ac_try) 2>&5
10090
  ac_status=$?
10091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092
  (exit $ac_status); }; }; then
10093
  ac_cv_lib_svld_dlopen=yes
10094
else
10095
  echo "$as_me: failed program was:" >&5
10096
sed 's/^/| /' conftest.$ac_ext >&5
10097
 
10098
ac_cv_lib_svld_dlopen=no
10099
fi
10100
rm -f conftest.err conftest.$ac_objext \
10101
      conftest$ac_exeext conftest.$ac_ext
10102
LIBS=$ac_check_lib_save_LIBS
10103
fi
10104
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10105
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10106
if test $ac_cv_lib_svld_dlopen = yes; then
10107
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10108
else
10109
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10110
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10111
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10112
  echo $ECHO_N "(cached) $ECHO_C" >&6
10113
else
10114
  ac_check_lib_save_LIBS=$LIBS
10115
LIBS="-ldld  $LIBS"
10116
cat >conftest.$ac_ext <<_ACEOF
10117
/* confdefs.h.  */
10118
_ACEOF
10119
cat confdefs.h >>conftest.$ac_ext
10120
cat >>conftest.$ac_ext <<_ACEOF
10121
/* end confdefs.h.  */
10122
 
10123
/* Override any gcc2 internal prototype to avoid an error.  */
10124
#ifdef __cplusplus
10125
extern "C"
10126
#endif
10127
/* We use char because int might match the return type of a gcc2
10128
   builtin and then its argument prototype would still apply.  */
10129
char dld_link ();
10130
int
10131
main ()
10132
{
10133
dld_link ();
10134
  ;
10135
  return 0;
10136
}
10137
_ACEOF
10138
rm -f conftest.$ac_objext conftest$ac_exeext
10139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10140
  (eval $ac_link) 2>conftest.er1
10141
  ac_status=$?
10142
  grep -v '^ *+' conftest.er1 >conftest.err
10143
  rm -f conftest.er1
10144
  cat conftest.err >&5
10145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146
  (exit $ac_status); } &&
10147
         { ac_try='test -z "$ac_c_werror_flag"
10148
                         || test ! -s conftest.err'
10149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150
  (eval $ac_try) 2>&5
10151
  ac_status=$?
10152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153
  (exit $ac_status); }; } &&
10154
         { ac_try='test -s conftest$ac_exeext'
10155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156
  (eval $ac_try) 2>&5
10157
  ac_status=$?
10158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159
  (exit $ac_status); }; }; then
10160
  ac_cv_lib_dld_dld_link=yes
10161
else
10162
  echo "$as_me: failed program was:" >&5
10163
sed 's/^/| /' conftest.$ac_ext >&5
10164
 
10165
ac_cv_lib_dld_dld_link=no
10166
fi
10167
rm -f conftest.err conftest.$ac_objext \
10168
      conftest$ac_exeext conftest.$ac_ext
10169
LIBS=$ac_check_lib_save_LIBS
10170
fi
10171
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10172
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10173
if test $ac_cv_lib_dld_dld_link = yes; then
10174
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10175
fi
10176
 
10177
 
10178
fi
10179
 
10180
 
10181
fi
10182
 
10183
 
10184
fi
10185
 
10186
 
10187
fi
10188
 
10189
 
10190
fi
10191
 
10192
    ;;
10193
  esac
10194
 
10195
  if test "x$lt_cv_dlopen" != xno; then
10196
    enable_dlopen=yes
10197
  else
10198
    enable_dlopen=no
10199
  fi
10200
 
10201
  case $lt_cv_dlopen in
10202
  dlopen)
10203
    save_CPPFLAGS="$CPPFLAGS"
10204
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10205
 
10206
    save_LDFLAGS="$LDFLAGS"
10207
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10208
 
10209
    save_LIBS="$LIBS"
10210
    LIBS="$lt_cv_dlopen_libs $LIBS"
10211
 
10212
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10213
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10214
if test "${lt_cv_dlopen_self+set}" = set; then
10215
  echo $ECHO_N "(cached) $ECHO_C" >&6
10216
else
10217
          if test "$cross_compiling" = yes; then :
10218
  lt_cv_dlopen_self=cross
10219
else
10220
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10221
  lt_status=$lt_dlunknown
10222
  cat > conftest.$ac_ext <<_LT_EOF
10223
#line 10223 "configure"
10224
#include "confdefs.h"
10225
 
10226
#if HAVE_DLFCN_H
10227
#include 
10228
#endif
10229
 
10230
#include 
10231
 
10232
#ifdef RTLD_GLOBAL
10233
#  define LT_DLGLOBAL           RTLD_GLOBAL
10234
#else
10235
#  ifdef DL_GLOBAL
10236
#    define LT_DLGLOBAL         DL_GLOBAL
10237
#  else
10238
#    define LT_DLGLOBAL         0
10239
#  endif
10240
#endif
10241
 
10242
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10243
   find out it does not work in some platform. */
10244
#ifndef LT_DLLAZY_OR_NOW
10245
#  ifdef RTLD_LAZY
10246
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10247
#  else
10248
#    ifdef DL_LAZY
10249
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10250
#    else
10251
#      ifdef RTLD_NOW
10252
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10253
#      else
10254
#        ifdef DL_NOW
10255
#          define LT_DLLAZY_OR_NOW      DL_NOW
10256
#        else
10257
#          define LT_DLLAZY_OR_NOW      0
10258
#        endif
10259
#      endif
10260
#    endif
10261
#  endif
10262
#endif
10263
 
10264
#ifdef __cplusplus
10265
extern "C" void exit (int);
10266
#endif
10267
 
10268
void fnord() { int i=42;}
10269
int main ()
10270
{
10271
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10272
  int status = $lt_dlunknown;
10273
 
10274
  if (self)
10275
    {
10276
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10277
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10278
      /* dlclose (self); */
10279
    }
10280
  else
10281
    puts (dlerror ());
10282
 
10283
    exit (status);
10284
}
10285
_LT_EOF
10286
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287
  (eval $ac_link) 2>&5
10288
  ac_status=$?
10289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10291
    (./conftest; exit; ) >&5 2>/dev/null
10292
    lt_status=$?
10293
    case x$lt_status in
10294
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10295
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10296
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10297
    esac
10298
  else :
10299
    # compilation failed
10300
    lt_cv_dlopen_self=no
10301
  fi
10302
fi
10303
rm -fr conftest*
10304
 
10305
 
10306
fi
10307
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10308
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10309
 
10310
    if test "x$lt_cv_dlopen_self" = xyes; then
10311
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10312
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10313
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10314
if test "${lt_cv_dlopen_self_static+set}" = set; then
10315
  echo $ECHO_N "(cached) $ECHO_C" >&6
10316
else
10317
          if test "$cross_compiling" = yes; then :
10318
  lt_cv_dlopen_self_static=cross
10319
else
10320
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10321
  lt_status=$lt_dlunknown
10322
  cat > conftest.$ac_ext <<_LT_EOF
10323
#line 10323 "configure"
10324
#include "confdefs.h"
10325
 
10326
#if HAVE_DLFCN_H
10327
#include 
10328
#endif
10329
 
10330
#include 
10331
 
10332
#ifdef RTLD_GLOBAL
10333
#  define LT_DLGLOBAL           RTLD_GLOBAL
10334
#else
10335
#  ifdef DL_GLOBAL
10336
#    define LT_DLGLOBAL         DL_GLOBAL
10337
#  else
10338
#    define LT_DLGLOBAL         0
10339
#  endif
10340
#endif
10341
 
10342
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10343
   find out it does not work in some platform. */
10344
#ifndef LT_DLLAZY_OR_NOW
10345
#  ifdef RTLD_LAZY
10346
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10347
#  else
10348
#    ifdef DL_LAZY
10349
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10350
#    else
10351
#      ifdef RTLD_NOW
10352
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10353
#      else
10354
#        ifdef DL_NOW
10355
#          define LT_DLLAZY_OR_NOW      DL_NOW
10356
#        else
10357
#          define LT_DLLAZY_OR_NOW      0
10358
#        endif
10359
#      endif
10360
#    endif
10361
#  endif
10362
#endif
10363
 
10364
#ifdef __cplusplus
10365
extern "C" void exit (int);
10366
#endif
10367
 
10368
void fnord() { int i=42;}
10369
int main ()
10370
{
10371
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372
  int status = $lt_dlunknown;
10373
 
10374
  if (self)
10375
    {
10376
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10377
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378
      /* dlclose (self); */
10379
    }
10380
  else
10381
    puts (dlerror ());
10382
 
10383
    exit (status);
10384
}
10385
_LT_EOF
10386
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387
  (eval $ac_link) 2>&5
10388
  ac_status=$?
10389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10391
    (./conftest; exit; ) >&5 2>/dev/null
10392
    lt_status=$?
10393
    case x$lt_status in
10394
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10395
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10396
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10397
    esac
10398
  else :
10399
    # compilation failed
10400
    lt_cv_dlopen_self_static=no
10401
  fi
10402
fi
10403
rm -fr conftest*
10404
 
10405
 
10406
fi
10407
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10408
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10409
    fi
10410
 
10411
    CPPFLAGS="$save_CPPFLAGS"
10412
    LDFLAGS="$save_LDFLAGS"
10413
    LIBS="$save_LIBS"
10414
    ;;
10415
  esac
10416
 
10417
  case $lt_cv_dlopen_self in
10418
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10419
  *) enable_dlopen_self=unknown ;;
10420
  esac
10421
 
10422
  case $lt_cv_dlopen_self_static in
10423
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10424
  *) enable_dlopen_self_static=unknown ;;
10425
  esac
10426
fi
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
striplib=
10445
old_striplib=
10446
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10447
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10448
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10449
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451
  echo "$as_me:$LINENO: result: yes" >&5
10452
echo "${ECHO_T}yes" >&6
10453
else
10454
# FIXME - insert some real tests, host_os isn't really good enough
10455
  case $host_os in
10456
  darwin*)
10457
    if test -n "$STRIP" ; then
10458
      striplib="$STRIP -x"
10459
      old_striplib="$STRIP -S"
10460
      echo "$as_me:$LINENO: result: yes" >&5
10461
echo "${ECHO_T}yes" >&6
10462
    else
10463
      echo "$as_me:$LINENO: result: no" >&5
10464
echo "${ECHO_T}no" >&6
10465
    fi
10466
    ;;
10467
  *)
10468
    echo "$as_me:$LINENO: result: no" >&5
10469
echo "${ECHO_T}no" >&6
10470
    ;;
10471
  esac
10472
fi
10473
 
10474
 
10475
 
10476
 
10477
 
10478
 
10479
 
10480
 
10481
 
10482
 
10483
 
10484
 
10485
  # Report which library types will actually be built
10486
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10487
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10488
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10489
echo "${ECHO_T}$can_build_shared" >&6
10490
 
10491
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10492
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10493
  test "$can_build_shared" = "no" && enable_shared=no
10494
 
10495
  # On AIX, shared libraries and static libraries use the same namespace, and
10496
  # are all built from PIC.
10497
  case $host_os in
10498
  aix3*)
10499
    test "$enable_shared" = yes && enable_static=no
10500
    if test -n "$RANLIB"; then
10501
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10502
      postinstall_cmds='$RANLIB $lib'
10503
    fi
10504
    ;;
10505
 
10506
  aix[4-9]*)
10507
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10508
      test "$enable_shared" = yes && enable_static=no
10509
    fi
10510
    ;;
10511
  esac
10512
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10513
echo "${ECHO_T}$enable_shared" >&6
10514
 
10515
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10516
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10517
  # Make sure either enable_shared or enable_static is yes.
10518
  test "$enable_shared" = yes || enable_static=yes
10519
  echo "$as_me:$LINENO: result: $enable_static" >&5
10520
echo "${ECHO_T}$enable_static" >&6
10521
 
10522
 
10523
 
10524
 
10525
fi
10526
ac_ext=c
10527
ac_cpp='$CPP $CPPFLAGS'
10528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531
 
10532
CC="$lt_save_CC"
10533
 
10534
 
10535
 
10536
 
10537
 
10538
 
10539
 
10540
 
10541
 
10542
 
10543
 
10544
 
10545
 
10546
                  ac_config_commands="$ac_config_commands libtool"
10547
 
10548
 
10549
 
10550
 
10551
# Only expand once:
10552
 
10553
 
10554
 
10555
# Check whether --enable-targets or --disable-targets was given.
10556
if test "${enable_targets+set}" = set; then
10557
  enableval="$enable_targets"
10558
  case "${enableval}" in
10559
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10560
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10561
   { (exit 1); exit 1; }; }
10562
            ;;
10563
  no)       enable_targets= ;;
10564
  *)        enable_targets=$enableval ;;
10565
esac
10566
fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10567
if test "${enable_commonbfdlib+set}" = set; then
10568
  enableval="$enable_commonbfdlib"
10569
  case "${enableval}" in
10570
  yes) commonbfdlib=true ;;
10571
  no)  commonbfdlib=false ;;
10572
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10573
echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10574
   { (exit 1); exit 1; }; } ;;
10575
esac
10576
fi;
10577
 
10578
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10579
 
10580
# Check whether --enable-werror or --disable-werror was given.
10581
if test "${enable_werror+set}" = set; then
10582
  enableval="$enable_werror"
10583
  case "${enableval}" in
10584
     yes | y) ERROR_ON_WARNING="yes" ;;
10585
     no | n)  ERROR_ON_WARNING="no" ;;
10586
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10587
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10588
   { (exit 1); exit 1; }; } ;;
10589
   esac
10590
fi;
10591
 
10592
# Enable -Wno-format by default when using gcc on mingw
10593
case "${host}" in
10594
  *-*-mingw32*)
10595
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10596
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10597
    fi
10598
    ;;
10599
  *) ;;
10600
esac
10601
 
10602
# Enable -Werror by default when using gcc
10603
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10604
    ERROR_ON_WARNING=yes
10605
fi
10606
 
10607
NO_WERROR=
10608
if test "${ERROR_ON_WARNING}" = yes ; then
10609
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10610
    NO_WERROR="-Wno-error"
10611
fi
10612
 
10613
if test "${GCC}" = yes ; then
10614
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10615
fi
10616
 
10617
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10618
if test "${enable_build_warnings+set}" = set; then
10619
  enableval="$enable_build_warnings"
10620
  case "${enableval}" in
10621
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10622
  no)   if test "${GCC}" = yes ; then
10623
          WARN_CFLAGS="-w"
10624
        fi;;
10625
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10626
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10627
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10628
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10629
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10630
esac
10631
fi;
10632
 
10633
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10634
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10635
fi
10636
 
10637
 
10638
 
10639
 
10640
 
10641
          ac_config_headers="$ac_config_headers config.h:config.in"
10642
 
10643
 
10644
if test -z "$target" ; then
10645
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10646
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10647
   { (exit 1); exit 1; }; }
10648
fi
10649
if test -z "$host" ; then
10650
    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
10651
echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
10652
   { (exit 1); exit 1; }; }
10653
fi
10654
 
10655
for ac_prog in 'bison -y' byacc
10656
do
10657
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10658
set dummy $ac_prog; ac_word=$2
10659
echo "$as_me:$LINENO: checking for $ac_word" >&5
10660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661
if test "${ac_cv_prog_YACC+set}" = set; then
10662
  echo $ECHO_N "(cached) $ECHO_C" >&6
10663
else
10664
  if test -n "$YACC"; then
10665
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10666
else
10667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668
for as_dir in $PATH
10669
do
10670
  IFS=$as_save_IFS
10671
  test -z "$as_dir" && as_dir=.
10672
  for ac_exec_ext in '' $ac_executable_extensions; do
10673
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674
    ac_cv_prog_YACC="$ac_prog"
10675
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676
    break 2
10677
  fi
10678
done
10679
done
10680
 
10681
fi
10682
fi
10683
YACC=$ac_cv_prog_YACC
10684
if test -n "$YACC"; then
10685
  echo "$as_me:$LINENO: result: $YACC" >&5
10686
echo "${ECHO_T}$YACC" >&6
10687
else
10688
  echo "$as_me:$LINENO: result: no" >&5
10689
echo "${ECHO_T}no" >&6
10690
fi
10691
 
10692
  test -n "$YACC" && break
10693
done
10694
test -n "$YACC" || YACC="yacc"
10695
 
10696
for ac_prog in flex lex
10697
do
10698
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10699
set dummy $ac_prog; ac_word=$2
10700
echo "$as_me:$LINENO: checking for $ac_word" >&5
10701
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10702
if test "${ac_cv_prog_LEX+set}" = set; then
10703
  echo $ECHO_N "(cached) $ECHO_C" >&6
10704
else
10705
  if test -n "$LEX"; then
10706
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10707
else
10708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709
for as_dir in $PATH
10710
do
10711
  IFS=$as_save_IFS
10712
  test -z "$as_dir" && as_dir=.
10713
  for ac_exec_ext in '' $ac_executable_extensions; do
10714
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715
    ac_cv_prog_LEX="$ac_prog"
10716
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10717
    break 2
10718
  fi
10719
done
10720
done
10721
 
10722
fi
10723
fi
10724
LEX=$ac_cv_prog_LEX
10725
if test -n "$LEX"; then
10726
  echo "$as_me:$LINENO: result: $LEX" >&5
10727
echo "${ECHO_T}$LEX" >&6
10728
else
10729
  echo "$as_me:$LINENO: result: no" >&5
10730
echo "${ECHO_T}no" >&6
10731
fi
10732
 
10733
  test -n "$LEX" && break
10734
done
10735
test -n "$LEX" || LEX=":"
10736
 
10737
if test -z "$LEXLIB"
10738
then
10739
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
10740
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
10741
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
10742
  echo $ECHO_N "(cached) $ECHO_C" >&6
10743
else
10744
  ac_check_lib_save_LIBS=$LIBS
10745
LIBS="-lfl  $LIBS"
10746
cat >conftest.$ac_ext <<_ACEOF
10747
/* confdefs.h.  */
10748
_ACEOF
10749
cat confdefs.h >>conftest.$ac_ext
10750
cat >>conftest.$ac_ext <<_ACEOF
10751
/* end confdefs.h.  */
10752
 
10753
/* Override any gcc2 internal prototype to avoid an error.  */
10754
#ifdef __cplusplus
10755
extern "C"
10756
#endif
10757
/* We use char because int might match the return type of a gcc2
10758
   builtin and then its argument prototype would still apply.  */
10759
char yywrap ();
10760
int
10761
main ()
10762
{
10763
yywrap ();
10764
  ;
10765
  return 0;
10766
}
10767
_ACEOF
10768
rm -f conftest.$ac_objext conftest$ac_exeext
10769
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770
  (eval $ac_link) 2>conftest.er1
10771
  ac_status=$?
10772
  grep -v '^ *+' conftest.er1 >conftest.err
10773
  rm -f conftest.er1
10774
  cat conftest.err >&5
10775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776
  (exit $ac_status); } &&
10777
         { ac_try='test -z "$ac_c_werror_flag"
10778
                         || test ! -s conftest.err'
10779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780
  (eval $ac_try) 2>&5
10781
  ac_status=$?
10782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783
  (exit $ac_status); }; } &&
10784
         { ac_try='test -s conftest$ac_exeext'
10785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786
  (eval $ac_try) 2>&5
10787
  ac_status=$?
10788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789
  (exit $ac_status); }; }; then
10790
  ac_cv_lib_fl_yywrap=yes
10791
else
10792
  echo "$as_me: failed program was:" >&5
10793
sed 's/^/| /' conftest.$ac_ext >&5
10794
 
10795
ac_cv_lib_fl_yywrap=no
10796
fi
10797
rm -f conftest.err conftest.$ac_objext \
10798
      conftest$ac_exeext conftest.$ac_ext
10799
LIBS=$ac_check_lib_save_LIBS
10800
fi
10801
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
10802
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
10803
if test $ac_cv_lib_fl_yywrap = yes; then
10804
  LEXLIB="-lfl"
10805
else
10806
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
10807
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
10808
if test "${ac_cv_lib_l_yywrap+set}" = set; then
10809
  echo $ECHO_N "(cached) $ECHO_C" >&6
10810
else
10811
  ac_check_lib_save_LIBS=$LIBS
10812
LIBS="-ll  $LIBS"
10813
cat >conftest.$ac_ext <<_ACEOF
10814
/* confdefs.h.  */
10815
_ACEOF
10816
cat confdefs.h >>conftest.$ac_ext
10817
cat >>conftest.$ac_ext <<_ACEOF
10818
/* end confdefs.h.  */
10819
 
10820
/* Override any gcc2 internal prototype to avoid an error.  */
10821
#ifdef __cplusplus
10822
extern "C"
10823
#endif
10824
/* We use char because int might match the return type of a gcc2
10825
   builtin and then its argument prototype would still apply.  */
10826
char yywrap ();
10827
int
10828
main ()
10829
{
10830
yywrap ();
10831
  ;
10832
  return 0;
10833
}
10834
_ACEOF
10835
rm -f conftest.$ac_objext conftest$ac_exeext
10836
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10837
  (eval $ac_link) 2>conftest.er1
10838
  ac_status=$?
10839
  grep -v '^ *+' conftest.er1 >conftest.err
10840
  rm -f conftest.er1
10841
  cat conftest.err >&5
10842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843
  (exit $ac_status); } &&
10844
         { ac_try='test -z "$ac_c_werror_flag"
10845
                         || test ! -s conftest.err'
10846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847
  (eval $ac_try) 2>&5
10848
  ac_status=$?
10849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850
  (exit $ac_status); }; } &&
10851
         { ac_try='test -s conftest$ac_exeext'
10852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853
  (eval $ac_try) 2>&5
10854
  ac_status=$?
10855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856
  (exit $ac_status); }; }; then
10857
  ac_cv_lib_l_yywrap=yes
10858
else
10859
  echo "$as_me: failed program was:" >&5
10860
sed 's/^/| /' conftest.$ac_ext >&5
10861
 
10862
ac_cv_lib_l_yywrap=no
10863
fi
10864
rm -f conftest.err conftest.$ac_objext \
10865
      conftest$ac_exeext conftest.$ac_ext
10866
LIBS=$ac_check_lib_save_LIBS
10867
fi
10868
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
10869
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
10870
if test $ac_cv_lib_l_yywrap = yes; then
10871
  LEXLIB="-ll"
10872
fi
10873
 
10874
fi
10875
 
10876
fi
10877
 
10878
if test "x$LEX" != "x:"; then
10879
  echo "$as_me:$LINENO: checking lex output file root" >&5
10880
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
10881
if test "${ac_cv_prog_lex_root+set}" = set; then
10882
  echo $ECHO_N "(cached) $ECHO_C" >&6
10883
else
10884
  # The minimal lex program is just a single line: %%.  But some broken lexes
10885
# (Solaris, I think it was) want two %% lines, so accommodate them.
10886
cat >conftest.l <<_ACEOF
10887
%%
10888
%%
10889
_ACEOF
10890
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
10891
  (eval $LEX conftest.l) 2>&5
10892
  ac_status=$?
10893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894
  (exit $ac_status); }
10895
if test -f lex.yy.c; then
10896
  ac_cv_prog_lex_root=lex.yy
10897
elif test -f lexyy.c; then
10898
  ac_cv_prog_lex_root=lexyy
10899
else
10900
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10901
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10902
   { (exit 1); exit 1; }; }
10903
fi
10904
fi
10905
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10906
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
10907
rm -f conftest.l
10908
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10909
 
10910
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10911
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
10912
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10913
  echo $ECHO_N "(cached) $ECHO_C" >&6
10914
else
10915
  # POSIX says lex can declare yytext either as a pointer or an array; the
10916
# default is implementation-dependent. Figure out which it is, since
10917
# not all implementations provide the %pointer and %array declarations.
10918
ac_cv_prog_lex_yytext_pointer=no
10919
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
10920
ac_save_LIBS=$LIBS
10921
LIBS="$LIBS $LEXLIB"
10922
cat >conftest.$ac_ext <<_ACEOF
10923
`cat $LEX_OUTPUT_ROOT.c`
10924
_ACEOF
10925
rm -f conftest.$ac_objext conftest$ac_exeext
10926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927
  (eval $ac_link) 2>conftest.er1
10928
  ac_status=$?
10929
  grep -v '^ *+' conftest.er1 >conftest.err
10930
  rm -f conftest.er1
10931
  cat conftest.err >&5
10932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933
  (exit $ac_status); } &&
10934
         { ac_try='test -z "$ac_c_werror_flag"
10935
                         || test ! -s conftest.err'
10936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937
  (eval $ac_try) 2>&5
10938
  ac_status=$?
10939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940
  (exit $ac_status); }; } &&
10941
         { ac_try='test -s conftest$ac_exeext'
10942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943
  (eval $ac_try) 2>&5
10944
  ac_status=$?
10945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946
  (exit $ac_status); }; }; then
10947
  ac_cv_prog_lex_yytext_pointer=yes
10948
else
10949
  echo "$as_me: failed program was:" >&5
10950
sed 's/^/| /' conftest.$ac_ext >&5
10951
 
10952
fi
10953
rm -f conftest.err conftest.$ac_objext \
10954
      conftest$ac_exeext conftest.$ac_ext
10955
LIBS=$ac_save_LIBS
10956
rm -f "${LEX_OUTPUT_ROOT}.c"
10957
 
10958
fi
10959
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10960
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
10961
if test $ac_cv_prog_lex_yytext_pointer = yes; then
10962
 
10963
cat >>confdefs.h <<\_ACEOF
10964
#define YYTEXT_POINTER 1
10965
_ACEOF
10966
 
10967
fi
10968
 
10969
fi
10970
if test "$LEX" = :; then
10971
  LEX=${am_missing_run}flex
10972
fi
10973
 
10974
ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW fi vi uk sk"
10975
# If we haven't got the data from the intl directory,
10976
# assume NLS is disabled.
10977
USE_NLS=no
10978
LIBINTL=
10979
LIBINTL_DEP=
10980
INCINTL=
10981
XGETTEXT=
10982
GMSGFMT=
10983
POSUB=
10984
 
10985
if test -f  ../intl/config.intl; then
10986
  .  ../intl/config.intl
10987
fi
10988
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10989
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10990
if test x"$USE_NLS" != xyes; then
10991
  echo "$as_me:$LINENO: result: no" >&5
10992
echo "${ECHO_T}no" >&6
10993
else
10994
  echo "$as_me:$LINENO: result: yes" >&5
10995
echo "${ECHO_T}yes" >&6
10996
 
10997
cat >>confdefs.h <<\_ACEOF
10998
#define ENABLE_NLS 1
10999
_ACEOF
11000
 
11001
 
11002
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11003
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11004
  # Look for .po and .gmo files in the source directory.
11005
  CATALOGS=
11006
  XLINGUAS=
11007
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11008
    # If there aren't any .gmo files the shell will give us the
11009
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11010
    # weeded out.
11011
    case "$cat" in *\**)
11012
      continue;;
11013
    esac
11014
    # The quadruple backslash is collapsed to a double backslash
11015
    # by the backticks, then collapsed again by the double quotes,
11016
    # leaving us with one backslash in the sed expression (right
11017
    # before the dot that mustn't act as a wildcard).
11018
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11019
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11020
    # The user is allowed to set LINGUAS to a list of languages to
11021
    # install catalogs for.  If it's empty that means "all of them."
11022
    if test "x$LINGUAS" = x; then
11023
      CATALOGS="$CATALOGS $cat"
11024
      XLINGUAS="$XLINGUAS $lang"
11025
    else
11026
      case "$LINGUAS" in *$lang*)
11027
        CATALOGS="$CATALOGS $cat"
11028
        XLINGUAS="$XLINGUAS $lang"
11029
        ;;
11030
      esac
11031
    fi
11032
  done
11033
  LINGUAS="$XLINGUAS"
11034
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
11035
echo "${ECHO_T}$LINGUAS" >&6
11036
 
11037
 
11038
    DATADIRNAME=share
11039
 
11040
  INSTOBJEXT=.mo
11041
 
11042
  GENCAT=gencat
11043
 
11044
  CATOBJEXT=.gmo
11045
 
11046
fi
11047
 
11048
        MKINSTALLDIRS=
11049
  if test -n "$ac_aux_dir"; then
11050
    case "$ac_aux_dir" in
11051
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11052
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11053
    esac
11054
  fi
11055
  if test -z "$MKINSTALLDIRS"; then
11056
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11057
  fi
11058
 
11059
 
11060
 
11061
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11062
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11063
    # Check whether --enable-nls or --disable-nls was given.
11064
if test "${enable_nls+set}" = set; then
11065
  enableval="$enable_nls"
11066
  USE_NLS=$enableval
11067
else
11068
  USE_NLS=yes
11069
fi;
11070
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
11071
echo "${ECHO_T}$USE_NLS" >&6
11072
 
11073
 
11074
 
11075
 
11076
 
11077
 
11078
# Prepare PATH_SEPARATOR.
11079
# The user is always right.
11080
if test "${PATH_SEPARATOR+set}" != set; then
11081
  echo "#! /bin/sh" >conf$$.sh
11082
  echo  "exit 0"   >>conf$$.sh
11083
  chmod +x conf$$.sh
11084
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11085
    PATH_SEPARATOR=';'
11086
  else
11087
    PATH_SEPARATOR=:
11088
  fi
11089
  rm -f conf$$.sh
11090
fi
11091
 
11092
# Find out how to test for executable files. Don't use a zero-byte file,
11093
# as systems may use methods other than mode bits to determine executability.
11094
cat >conf$$.file <<_ASEOF
11095
#! /bin/sh
11096
exit 0
11097
_ASEOF
11098
chmod +x conf$$.file
11099
if test -x conf$$.file >/dev/null 2>&1; then
11100
  ac_executable_p="test -x"
11101
else
11102
  ac_executable_p="test -f"
11103
fi
11104
rm -f conf$$.file
11105
 
11106
# Extract the first word of "msgfmt", so it can be a program name with args.
11107
set dummy msgfmt; ac_word=$2
11108
echo "$as_me:$LINENO: checking for $ac_word" >&5
11109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11110
if test "${ac_cv_path_MSGFMT+set}" = set; then
11111
  echo $ECHO_N "(cached) $ECHO_C" >&6
11112
else
11113
  case "$MSGFMT" in
11114
  [\\/]* | ?:[\\/]*)
11115
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11116
    ;;
11117
  *)
11118
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11119
    for ac_dir in $PATH; do
11120
      IFS="$ac_save_IFS"
11121
      test -z "$ac_dir" && ac_dir=.
11122
      for ac_exec_ext in '' $ac_executable_extensions; do
11123
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11124
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11125
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11126
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11127
            break 2
11128
          fi
11129
        fi
11130
      done
11131
    done
11132
    IFS="$ac_save_IFS"
11133
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11134
    ;;
11135
esac
11136
fi
11137
MSGFMT="$ac_cv_path_MSGFMT"
11138
if test "$MSGFMT" != ":"; then
11139
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
11140
echo "${ECHO_T}$MSGFMT" >&6
11141
else
11142
  echo "$as_me:$LINENO: result: no" >&5
11143
echo "${ECHO_T}no" >&6
11144
fi
11145
 
11146
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
11147
set dummy gmsgfmt; ac_word=$2
11148
echo "$as_me:$LINENO: checking for $ac_word" >&5
11149
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11150
if test "${ac_cv_path_GMSGFMT+set}" = set; then
11151
  echo $ECHO_N "(cached) $ECHO_C" >&6
11152
else
11153
  case $GMSGFMT in
11154
  [\\/]* | ?:[\\/]*)
11155
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11156
  ;;
11157
  *)
11158
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159
for as_dir in $PATH
11160
do
11161
  IFS=$as_save_IFS
11162
  test -z "$as_dir" && as_dir=.
11163
  for ac_exec_ext in '' $ac_executable_extensions; do
11164
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11166
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11167
    break 2
11168
  fi
11169
done
11170
done
11171
 
11172
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11173
  ;;
11174
esac
11175
fi
11176
GMSGFMT=$ac_cv_path_GMSGFMT
11177
 
11178
if test -n "$GMSGFMT"; then
11179
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11180
echo "${ECHO_T}$GMSGFMT" >&6
11181
else
11182
  echo "$as_me:$LINENO: result: no" >&5
11183
echo "${ECHO_T}no" >&6
11184
fi
11185
 
11186
 
11187
 
11188
# Prepare PATH_SEPARATOR.
11189
# The user is always right.
11190
if test "${PATH_SEPARATOR+set}" != set; then
11191
  echo "#! /bin/sh" >conf$$.sh
11192
  echo  "exit 0"   >>conf$$.sh
11193
  chmod +x conf$$.sh
11194
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11195
    PATH_SEPARATOR=';'
11196
  else
11197
    PATH_SEPARATOR=:
11198
  fi
11199
  rm -f conf$$.sh
11200
fi
11201
 
11202
# Find out how to test for executable files. Don't use a zero-byte file,
11203
# as systems may use methods other than mode bits to determine executability.
11204
cat >conf$$.file <<_ASEOF
11205
#! /bin/sh
11206
exit 0
11207
_ASEOF
11208
chmod +x conf$$.file
11209
if test -x conf$$.file >/dev/null 2>&1; then
11210
  ac_executable_p="test -x"
11211
else
11212
  ac_executable_p="test -f"
11213
fi
11214
rm -f conf$$.file
11215
 
11216
# Extract the first word of "xgettext", so it can be a program name with args.
11217
set dummy xgettext; ac_word=$2
11218
echo "$as_me:$LINENO: checking for $ac_word" >&5
11219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11220
if test "${ac_cv_path_XGETTEXT+set}" = set; then
11221
  echo $ECHO_N "(cached) $ECHO_C" >&6
11222
else
11223
  case "$XGETTEXT" in
11224
  [\\/]* | ?:[\\/]*)
11225
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11226
    ;;
11227
  *)
11228
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11229
    for ac_dir in $PATH; do
11230
      IFS="$ac_save_IFS"
11231
      test -z "$ac_dir" && ac_dir=.
11232
      for ac_exec_ext in '' $ac_executable_extensions; do
11233
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11234
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11235
     (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
11236
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11237
            break 2
11238
          fi
11239
        fi
11240
      done
11241
    done
11242
    IFS="$ac_save_IFS"
11243
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11244
    ;;
11245
esac
11246
fi
11247
XGETTEXT="$ac_cv_path_XGETTEXT"
11248
if test "$XGETTEXT" != ":"; then
11249
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11250
echo "${ECHO_T}$XGETTEXT" >&6
11251
else
11252
  echo "$as_me:$LINENO: result: no" >&5
11253
echo "${ECHO_T}no" >&6
11254
fi
11255
 
11256
    rm -f messages.po
11257
 
11258
 
11259
# Prepare PATH_SEPARATOR.
11260
# The user is always right.
11261
if test "${PATH_SEPARATOR+set}" != set; then
11262
  echo "#! /bin/sh" >conf$$.sh
11263
  echo  "exit 0"   >>conf$$.sh
11264
  chmod +x conf$$.sh
11265
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11266
    PATH_SEPARATOR=';'
11267
  else
11268
    PATH_SEPARATOR=:
11269
  fi
11270
  rm -f conf$$.sh
11271
fi
11272
 
11273
# Find out how to test for executable files. Don't use a zero-byte file,
11274
# as systems may use methods other than mode bits to determine executability.
11275
cat >conf$$.file <<_ASEOF
11276
#! /bin/sh
11277
exit 0
11278
_ASEOF
11279
chmod +x conf$$.file
11280
if test -x conf$$.file >/dev/null 2>&1; then
11281
  ac_executable_p="test -x"
11282
else
11283
  ac_executable_p="test -f"
11284
fi
11285
rm -f conf$$.file
11286
 
11287
# Extract the first word of "msgmerge", so it can be a program name with args.
11288
set dummy msgmerge; ac_word=$2
11289
echo "$as_me:$LINENO: checking for $ac_word" >&5
11290
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11291
if test "${ac_cv_path_MSGMERGE+set}" = set; then
11292
  echo $ECHO_N "(cached) $ECHO_C" >&6
11293
else
11294
  case "$MSGMERGE" in
11295
  [\\/]* | ?:[\\/]*)
11296
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11297
    ;;
11298
  *)
11299
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11300
    for ac_dir in $PATH; do
11301
      IFS="$ac_save_IFS"
11302
      test -z "$ac_dir" && ac_dir=.
11303
      for ac_exec_ext in '' $ac_executable_extensions; do
11304
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11305
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11306
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11307
            break 2
11308
          fi
11309
        fi
11310
      done
11311
    done
11312
    IFS="$ac_save_IFS"
11313
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11314
    ;;
11315
esac
11316
fi
11317
MSGMERGE="$ac_cv_path_MSGMERGE"
11318
if test "$MSGMERGE" != ":"; then
11319
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11320
echo "${ECHO_T}$MSGMERGE" >&6
11321
else
11322
  echo "$as_me:$LINENO: result: no" >&5
11323
echo "${ECHO_T}no" >&6
11324
fi
11325
 
11326
 
11327
      if test "$GMSGFMT" != ":"; then
11328
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11329
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11330
      : ;
11331
    else
11332
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11333
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11334
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11335
      GMSGFMT=":"
11336
    fi
11337
  fi
11338
 
11339
      if test "$XGETTEXT" != ":"; then
11340
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11341
       (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
11342
      : ;
11343
    else
11344
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11345
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11346
      XGETTEXT=":"
11347
    fi
11348
        rm -f messages.po
11349
  fi
11350
 
11351
            ac_config_commands="$ac_config_commands default-1"
11352
 
11353
 
11354
 
11355
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11356
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11357
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11358
if test "${enable_maintainer_mode+set}" = set; then
11359
  enableval="$enable_maintainer_mode"
11360
  USE_MAINTAINER_MODE=$enableval
11361
else
11362
  USE_MAINTAINER_MODE=no
11363
fi;
11364
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11365
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11366
 
11367
 
11368
if test $USE_MAINTAINER_MODE = yes; then
11369
  MAINTAINER_MODE_TRUE=
11370
  MAINTAINER_MODE_FALSE='#'
11371
else
11372
  MAINTAINER_MODE_TRUE='#'
11373
  MAINTAINER_MODE_FALSE=
11374
fi
11375
 
11376
  MAINT=$MAINTAINER_MODE_TRUE
11377
 
11378
 
11379
 
11380
 
11381
if false; then
11382
  GENINSRC_NEVER_TRUE=
11383
  GENINSRC_NEVER_FALSE='#'
11384
else
11385
  GENINSRC_NEVER_TRUE='#'
11386
  GENINSRC_NEVER_FALSE=
11387
fi
11388
 
11389
 
11390
if test -n "$EXEEXT"; then
11391
 
11392
cat >>confdefs.h <<\_ACEOF
11393
#define HAVE_EXECUTABLE_SUFFIX 1
11394
_ACEOF
11395
 
11396
fi
11397
 
11398
cat >>confdefs.h <<_ACEOF
11399
#define EXECUTABLE_SUFFIX "${EXEEXT}"
11400
_ACEOF
11401
 
11402
 
11403
# host-specific stuff:
11404
 
11405
HDEFINES=
11406
 
11407
. ${srcdir}/../bfd/configure.host
11408
 
11409
 
11410
AR=${AR-ar}
11411
 
11412
if test -n "$ac_tool_prefix"; then
11413
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11414
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11415
echo "$as_me:$LINENO: checking for $ac_word" >&5
11416
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11417
if test "${ac_cv_prog_RANLIB+set}" = set; then
11418
  echo $ECHO_N "(cached) $ECHO_C" >&6
11419
else
11420
  if test -n "$RANLIB"; then
11421
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11422
else
11423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424
for as_dir in $PATH
11425
do
11426
  IFS=$as_save_IFS
11427
  test -z "$as_dir" && as_dir=.
11428
  for ac_exec_ext in '' $ac_executable_extensions; do
11429
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11431
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11432
    break 2
11433
  fi
11434
done
11435
done
11436
 
11437
fi
11438
fi
11439
RANLIB=$ac_cv_prog_RANLIB
11440
if test -n "$RANLIB"; then
11441
  echo "$as_me:$LINENO: result: $RANLIB" >&5
11442
echo "${ECHO_T}$RANLIB" >&6
11443
else
11444
  echo "$as_me:$LINENO: result: no" >&5
11445
echo "${ECHO_T}no" >&6
11446
fi
11447
 
11448
fi
11449
if test -z "$ac_cv_prog_RANLIB"; then
11450
  ac_ct_RANLIB=$RANLIB
11451
  # Extract the first word of "ranlib", so it can be a program name with args.
11452
set dummy ranlib; ac_word=$2
11453
echo "$as_me:$LINENO: checking for $ac_word" >&5
11454
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11456
  echo $ECHO_N "(cached) $ECHO_C" >&6
11457
else
11458
  if test -n "$ac_ct_RANLIB"; then
11459
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11460
else
11461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462
for as_dir in $PATH
11463
do
11464
  IFS=$as_save_IFS
11465
  test -z "$as_dir" && as_dir=.
11466
  for ac_exec_ext in '' $ac_executable_extensions; do
11467
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468
    ac_cv_prog_ac_ct_RANLIB="ranlib"
11469
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470
    break 2
11471
  fi
11472
done
11473
done
11474
 
11475
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11476
fi
11477
fi
11478
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11479
if test -n "$ac_ct_RANLIB"; then
11480
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11481
echo "${ECHO_T}$ac_ct_RANLIB" >&6
11482
else
11483
  echo "$as_me:$LINENO: result: no" >&5
11484
echo "${ECHO_T}no" >&6
11485
fi
11486
 
11487
  RANLIB=$ac_ct_RANLIB
11488
else
11489
  RANLIB="$ac_cv_prog_RANLIB"
11490
fi
11491
 
11492
# Find a good install program.  We prefer a C program (faster),
11493
# so one script is as good as another.  But avoid the broken or
11494
# incompatible versions:
11495
# SysV /etc/install, /usr/sbin/install
11496
# SunOS /usr/etc/install
11497
# IRIX /sbin/install
11498
# AIX /bin/install
11499
# AmigaOS /C/install, which installs bootblocks on floppy discs
11500
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11501
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11502
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11503
# OS/2's system install, which has a completely different semantic
11504
# ./install, which can be erroneously created by make from ./install.sh.
11505
# Reject install programs that cannot install multiple files.
11506
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11507
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11508
if test -z "$INSTALL"; then
11509
if test "${ac_cv_path_install+set}" = set; then
11510
  echo $ECHO_N "(cached) $ECHO_C" >&6
11511
else
11512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513
for as_dir in $PATH
11514
do
11515
  IFS=$as_save_IFS
11516
  test -z "$as_dir" && as_dir=.
11517
  # Account for people who put trailing slashes in PATH elements.
11518
case $as_dir/ in
11519
  ./ | .// | /cC/* | \
11520
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11521
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11522
  /usr/ucb/* ) ;;
11523
  *)
11524
    # OSF1 and SCO ODT 3.0 have their own names for install.
11525
    # Don't use installbsd from OSF since it installs stuff as root
11526
    # by default.
11527
    for ac_prog in ginstall scoinst install; do
11528
      for ac_exec_ext in '' $ac_executable_extensions; do
11529
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11530
          if test $ac_prog = install &&
11531
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11532
            # AIX install.  It has an incompatible calling convention.
11533
            :
11534
          elif test $ac_prog = install &&
11535
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11536
            # program-specific install script used by HP pwplus--don't use.
11537
            :
11538
          else
11539
            rm -rf conftest.one conftest.two conftest.dir
11540
            echo one > conftest.one
11541
            echo two > conftest.two
11542
            mkdir conftest.dir
11543
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11544
              test -s conftest.one && test -s conftest.two &&
11545
              test -s conftest.dir/conftest.one &&
11546
              test -s conftest.dir/conftest.two
11547
            then
11548
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11549
              break 3
11550
            fi
11551
          fi
11552
        fi
11553
      done
11554
    done
11555
    ;;
11556
esac
11557
done
11558
 
11559
rm -rf conftest.one conftest.two conftest.dir
11560
 
11561
fi
11562
  if test "${ac_cv_path_install+set}" = set; then
11563
    INSTALL=$ac_cv_path_install
11564
  else
11565
    # As a last resort, use the slow shell script.  Don't cache a
11566
    # value for INSTALL within a source directory, because that will
11567
    # break other packages using the cache if that directory is
11568
    # removed, or if the value is a relative name.
11569
    INSTALL=$ac_install_sh
11570
  fi
11571
fi
11572
echo "$as_me:$LINENO: result: $INSTALL" >&5
11573
echo "${ECHO_T}$INSTALL" >&6
11574
 
11575
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11576
# It thinks the first close brace ends the variable substitution.
11577
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11578
 
11579
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11580
 
11581
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11582
 
11583
 
11584
# Put a plausible default for CC_FOR_BUILD in Makefile.
11585
if test -z "$CC_FOR_BUILD"; then
11586
  if test "x$cross_compiling" = "xno"; then
11587
    CC_FOR_BUILD='$(CC)'
11588
  else
11589
    CC_FOR_BUILD=gcc
11590
  fi
11591
fi
11592
 
11593
# Also set EXEEXT_FOR_BUILD.
11594
if test "x$cross_compiling" = "xno"; then
11595
  EXEEXT_FOR_BUILD='$(EXEEXT)'
11596
else
11597
  echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11598
echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11599
if test "${bfd_cv_build_exeext+set}" = set; then
11600
  echo $ECHO_N "(cached) $ECHO_C" >&6
11601
else
11602
  rm -f conftest*
11603
     echo 'int main () { return 0; }' > conftest.c
11604
     bfd_cv_build_exeext=
11605
     ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11606
     for file in conftest.*; do
11607
       case $file in
11608
       *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11609
       *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11610
       esac
11611
     done
11612
     rm -f conftest*
11613
     test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11614
fi
11615
echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11616
echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11617
  EXEEXT_FOR_BUILD=""
11618
  test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11619
fi
11620
 
11621
 
11622
DEMANGLER_NAME=c++filt
11623
case "${host}" in
11624
  *-*-go32* | *-*-msdos*)
11625
    DEMANGLER_NAME=cxxfilt
11626
esac
11627
 
11628
 
11629
 
11630
 
11631
 
11632
 
11633
 
11634
 
11635
 
11636
 
11637
for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
11638
do
11639
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11641
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11642
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11643
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11644
  echo $ECHO_N "(cached) $ECHO_C" >&6
11645
fi
11646
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11647
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11648
else
11649
  # Is the header compilable?
11650
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11651
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11652
cat >conftest.$ac_ext <<_ACEOF
11653
/* confdefs.h.  */
11654
_ACEOF
11655
cat confdefs.h >>conftest.$ac_ext
11656
cat >>conftest.$ac_ext <<_ACEOF
11657
/* end confdefs.h.  */
11658
$ac_includes_default
11659
#include <$ac_header>
11660
_ACEOF
11661
rm -f conftest.$ac_objext
11662
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11663
  (eval $ac_compile) 2>conftest.er1
11664
  ac_status=$?
11665
  grep -v '^ *+' conftest.er1 >conftest.err
11666
  rm -f conftest.er1
11667
  cat conftest.err >&5
11668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669
  (exit $ac_status); } &&
11670
         { ac_try='test -z "$ac_c_werror_flag"
11671
                         || test ! -s conftest.err'
11672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673
  (eval $ac_try) 2>&5
11674
  ac_status=$?
11675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676
  (exit $ac_status); }; } &&
11677
         { ac_try='test -s conftest.$ac_objext'
11678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679
  (eval $ac_try) 2>&5
11680
  ac_status=$?
11681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682
  (exit $ac_status); }; }; then
11683
  ac_header_compiler=yes
11684
else
11685
  echo "$as_me: failed program was:" >&5
11686
sed 's/^/| /' conftest.$ac_ext >&5
11687
 
11688
ac_header_compiler=no
11689
fi
11690
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11691
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11692
echo "${ECHO_T}$ac_header_compiler" >&6
11693
 
11694
# Is the header present?
11695
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11696
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11697
cat >conftest.$ac_ext <<_ACEOF
11698
/* confdefs.h.  */
11699
_ACEOF
11700
cat confdefs.h >>conftest.$ac_ext
11701
cat >>conftest.$ac_ext <<_ACEOF
11702
/* end confdefs.h.  */
11703
#include <$ac_header>
11704
_ACEOF
11705
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11706
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707
  ac_status=$?
11708
  grep -v '^ *+' conftest.er1 >conftest.err
11709
  rm -f conftest.er1
11710
  cat conftest.err >&5
11711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712
  (exit $ac_status); } >/dev/null; then
11713
  if test -s conftest.err; then
11714
    ac_cpp_err=$ac_c_preproc_warn_flag
11715
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11716
  else
11717
    ac_cpp_err=
11718
  fi
11719
else
11720
  ac_cpp_err=yes
11721
fi
11722
if test -z "$ac_cpp_err"; then
11723
  ac_header_preproc=yes
11724
else
11725
  echo "$as_me: failed program was:" >&5
11726
sed 's/^/| /' conftest.$ac_ext >&5
11727
 
11728
  ac_header_preproc=no
11729
fi
11730
rm -f conftest.err conftest.$ac_ext
11731
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11732
echo "${ECHO_T}$ac_header_preproc" >&6
11733
 
11734
# So?  What about this header?
11735
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736
  yes:no: )
11737
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11738
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11739
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11740
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11741
    ac_header_preproc=yes
11742
    ;;
11743
  no:yes:* )
11744
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11745
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11746
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11747
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11748
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11749
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11750
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11751
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11752
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11753
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11754
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11755
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11756
    (
11757
      cat <<\_ASBOX
11758
## ------------------------------------------ ##
11759
## Report this to the AC_PACKAGE_NAME lists.  ##
11760
## ------------------------------------------ ##
11761
_ASBOX
11762
    ) |
11763
      sed "s/^/$as_me: WARNING:     /" >&2
11764
    ;;
11765
esac
11766
echo "$as_me:$LINENO: checking for $ac_header" >&5
11767
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11768
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11769
  echo $ECHO_N "(cached) $ECHO_C" >&6
11770
else
11771
  eval "$as_ac_Header=\$ac_header_preproc"
11772
fi
11773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11774
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11775
 
11776
fi
11777
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11778
  cat >>confdefs.h <<_ACEOF
11779
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11780
_ACEOF
11781
 
11782
fi
11783
 
11784
done
11785
 
11786
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11787
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11788
if test "${ac_cv_header_sys_wait_h+set}" = set; then
11789
  echo $ECHO_N "(cached) $ECHO_C" >&6
11790
else
11791
  cat >conftest.$ac_ext <<_ACEOF
11792
/* confdefs.h.  */
11793
_ACEOF
11794
cat confdefs.h >>conftest.$ac_ext
11795
cat >>conftest.$ac_ext <<_ACEOF
11796
/* end confdefs.h.  */
11797
#include 
11798
#include 
11799
#ifndef WEXITSTATUS
11800
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11801
#endif
11802
#ifndef WIFEXITED
11803
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11804
#endif
11805
 
11806
int
11807
main ()
11808
{
11809
  int s;
11810
  wait (&s);
11811
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11812
  ;
11813
  return 0;
11814
}
11815
_ACEOF
11816
rm -f conftest.$ac_objext
11817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818
  (eval $ac_compile) 2>conftest.er1
11819
  ac_status=$?
11820
  grep -v '^ *+' conftest.er1 >conftest.err
11821
  rm -f conftest.er1
11822
  cat conftest.err >&5
11823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824
  (exit $ac_status); } &&
11825
         { ac_try='test -z "$ac_c_werror_flag"
11826
                         || test ! -s conftest.err'
11827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828
  (eval $ac_try) 2>&5
11829
  ac_status=$?
11830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831
  (exit $ac_status); }; } &&
11832
         { ac_try='test -s conftest.$ac_objext'
11833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834
  (eval $ac_try) 2>&5
11835
  ac_status=$?
11836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837
  (exit $ac_status); }; }; then
11838
  ac_cv_header_sys_wait_h=yes
11839
else
11840
  echo "$as_me: failed program was:" >&5
11841
sed 's/^/| /' conftest.$ac_ext >&5
11842
 
11843
ac_cv_header_sys_wait_h=no
11844
fi
11845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846
fi
11847
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11848
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11849
if test $ac_cv_header_sys_wait_h = yes; then
11850
 
11851
cat >>confdefs.h <<\_ACEOF
11852
#define HAVE_SYS_WAIT_H 1
11853
_ACEOF
11854
 
11855
fi
11856
 
11857
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11858
# for constant arguments.  Useless!
11859
echo "$as_me:$LINENO: checking for working alloca.h" >&5
11860
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11861
if test "${ac_cv_working_alloca_h+set}" = set; then
11862
  echo $ECHO_N "(cached) $ECHO_C" >&6
11863
else
11864
  cat >conftest.$ac_ext <<_ACEOF
11865
/* confdefs.h.  */
11866
_ACEOF
11867
cat confdefs.h >>conftest.$ac_ext
11868
cat >>conftest.$ac_ext <<_ACEOF
11869
/* end confdefs.h.  */
11870
#include 
11871
int
11872
main ()
11873
{
11874
char *p = (char *) alloca (2 * sizeof (int));
11875
  ;
11876
  return 0;
11877
}
11878
_ACEOF
11879
rm -f conftest.$ac_objext conftest$ac_exeext
11880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881
  (eval $ac_link) 2>conftest.er1
11882
  ac_status=$?
11883
  grep -v '^ *+' conftest.er1 >conftest.err
11884
  rm -f conftest.er1
11885
  cat conftest.err >&5
11886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887
  (exit $ac_status); } &&
11888
         { ac_try='test -z "$ac_c_werror_flag"
11889
                         || test ! -s conftest.err'
11890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891
  (eval $ac_try) 2>&5
11892
  ac_status=$?
11893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894
  (exit $ac_status); }; } &&
11895
         { ac_try='test -s conftest$ac_exeext'
11896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897
  (eval $ac_try) 2>&5
11898
  ac_status=$?
11899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900
  (exit $ac_status); }; }; then
11901
  ac_cv_working_alloca_h=yes
11902
else
11903
  echo "$as_me: failed program was:" >&5
11904
sed 's/^/| /' conftest.$ac_ext >&5
11905
 
11906
ac_cv_working_alloca_h=no
11907
fi
11908
rm -f conftest.err conftest.$ac_objext \
11909
      conftest$ac_exeext conftest.$ac_ext
11910
fi
11911
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11912
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11913
if test $ac_cv_working_alloca_h = yes; then
11914
 
11915
cat >>confdefs.h <<\_ACEOF
11916
#define HAVE_ALLOCA_H 1
11917
_ACEOF
11918
 
11919
fi
11920
 
11921
echo "$as_me:$LINENO: checking for alloca" >&5
11922
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11923
if test "${ac_cv_func_alloca_works+set}" = set; then
11924
  echo $ECHO_N "(cached) $ECHO_C" >&6
11925
else
11926
  cat >conftest.$ac_ext <<_ACEOF
11927
/* confdefs.h.  */
11928
_ACEOF
11929
cat confdefs.h >>conftest.$ac_ext
11930
cat >>conftest.$ac_ext <<_ACEOF
11931
/* end confdefs.h.  */
11932
#ifdef __GNUC__
11933
# define alloca __builtin_alloca
11934
#else
11935
# ifdef _MSC_VER
11936
#  include 
11937
#  define alloca _alloca
11938
# else
11939
#  if HAVE_ALLOCA_H
11940
#   include 
11941
#  else
11942
#   ifdef _AIX
11943
 #pragma alloca
11944
#   else
11945
#    ifndef alloca /* predefined by HP cc +Olibcalls */
11946
char *alloca ();
11947
#    endif
11948
#   endif
11949
#  endif
11950
# endif
11951
#endif
11952
 
11953
int
11954
main ()
11955
{
11956
char *p = (char *) alloca (1);
11957
  ;
11958
  return 0;
11959
}
11960
_ACEOF
11961
rm -f conftest.$ac_objext conftest$ac_exeext
11962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963
  (eval $ac_link) 2>conftest.er1
11964
  ac_status=$?
11965
  grep -v '^ *+' conftest.er1 >conftest.err
11966
  rm -f conftest.er1
11967
  cat conftest.err >&5
11968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969
  (exit $ac_status); } &&
11970
         { ac_try='test -z "$ac_c_werror_flag"
11971
                         || test ! -s conftest.err'
11972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973
  (eval $ac_try) 2>&5
11974
  ac_status=$?
11975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976
  (exit $ac_status); }; } &&
11977
         { ac_try='test -s conftest$ac_exeext'
11978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979
  (eval $ac_try) 2>&5
11980
  ac_status=$?
11981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982
  (exit $ac_status); }; }; then
11983
  ac_cv_func_alloca_works=yes
11984
else
11985
  echo "$as_me: failed program was:" >&5
11986
sed 's/^/| /' conftest.$ac_ext >&5
11987
 
11988
ac_cv_func_alloca_works=no
11989
fi
11990
rm -f conftest.err conftest.$ac_objext \
11991
      conftest$ac_exeext conftest.$ac_ext
11992
fi
11993
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11994
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11995
 
11996
if test $ac_cv_func_alloca_works = yes; then
11997
 
11998
cat >>confdefs.h <<\_ACEOF
11999
#define HAVE_ALLOCA 1
12000
_ACEOF
12001
 
12002
else
12003
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12004
# that cause trouble.  Some versions do not even contain alloca or
12005
# contain a buggy version.  If you still want to use their alloca,
12006
# use ar to extract alloca.o from them instead of compiling alloca.c.
12007
 
12008
ALLOCA=alloca.$ac_objext
12009
 
12010
cat >>confdefs.h <<\_ACEOF
12011
#define C_ALLOCA 1
12012
_ACEOF
12013
 
12014
 
12015
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12016
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12017
if test "${ac_cv_os_cray+set}" = set; then
12018
  echo $ECHO_N "(cached) $ECHO_C" >&6
12019
else
12020
  cat >conftest.$ac_ext <<_ACEOF
12021
/* confdefs.h.  */
12022
_ACEOF
12023
cat confdefs.h >>conftest.$ac_ext
12024
cat >>conftest.$ac_ext <<_ACEOF
12025
/* end confdefs.h.  */
12026
#if defined(CRAY) && ! defined(CRAY2)
12027
webecray
12028
#else
12029
wenotbecray
12030
#endif
12031
 
12032
_ACEOF
12033
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12034
  $EGREP "webecray" >/dev/null 2>&1; then
12035
  ac_cv_os_cray=yes
12036
else
12037
  ac_cv_os_cray=no
12038
fi
12039
rm -f conftest*
12040
 
12041
fi
12042
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12043
echo "${ECHO_T}$ac_cv_os_cray" >&6
12044
if test $ac_cv_os_cray = yes; then
12045
  for ac_func in _getb67 GETB67 getb67; do
12046
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12047
echo "$as_me:$LINENO: checking for $ac_func" >&5
12048
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12049
if eval "test \"\${$as_ac_var+set}\" = set"; then
12050
  echo $ECHO_N "(cached) $ECHO_C" >&6
12051
else
12052
  cat >conftest.$ac_ext <<_ACEOF
12053
/* confdefs.h.  */
12054
_ACEOF
12055
cat confdefs.h >>conftest.$ac_ext
12056
cat >>conftest.$ac_ext <<_ACEOF
12057
/* end confdefs.h.  */
12058
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12059
   For example, HP-UX 11i  declares gettimeofday.  */
12060
#define $ac_func innocuous_$ac_func
12061
 
12062
/* System header to define __stub macros and hopefully few prototypes,
12063
    which can conflict with char $ac_func (); below.
12064
    Prefer  to  if __STDC__ is defined, since
12065
     exists even on freestanding compilers.  */
12066
 
12067
#ifdef __STDC__
12068
# include 
12069
#else
12070
# include 
12071
#endif
12072
 
12073
#undef $ac_func
12074
 
12075
/* Override any gcc2 internal prototype to avoid an error.  */
12076
#ifdef __cplusplus
12077
extern "C"
12078
{
12079
#endif
12080
/* We use char because int might match the return type of a gcc2
12081
   builtin and then its argument prototype would still apply.  */
12082
char $ac_func ();
12083
/* The GNU C library defines this for functions which it implements
12084
    to always fail with ENOSYS.  Some functions are actually named
12085
    something starting with __ and the normal name is an alias.  */
12086
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12087
choke me
12088
#else
12089
char (*f) () = $ac_func;
12090
#endif
12091
#ifdef __cplusplus
12092
}
12093
#endif
12094
 
12095
int
12096
main ()
12097
{
12098
return f != $ac_func;
12099
  ;
12100
  return 0;
12101
}
12102
_ACEOF
12103
rm -f conftest.$ac_objext conftest$ac_exeext
12104
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105
  (eval $ac_link) 2>conftest.er1
12106
  ac_status=$?
12107
  grep -v '^ *+' conftest.er1 >conftest.err
12108
  rm -f conftest.er1
12109
  cat conftest.err >&5
12110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111
  (exit $ac_status); } &&
12112
         { ac_try='test -z "$ac_c_werror_flag"
12113
                         || test ! -s conftest.err'
12114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115
  (eval $ac_try) 2>&5
12116
  ac_status=$?
12117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118
  (exit $ac_status); }; } &&
12119
         { ac_try='test -s conftest$ac_exeext'
12120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121
  (eval $ac_try) 2>&5
12122
  ac_status=$?
12123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124
  (exit $ac_status); }; }; then
12125
  eval "$as_ac_var=yes"
12126
else
12127
  echo "$as_me: failed program was:" >&5
12128
sed 's/^/| /' conftest.$ac_ext >&5
12129
 
12130
eval "$as_ac_var=no"
12131
fi
12132
rm -f conftest.err conftest.$ac_objext \
12133
      conftest$ac_exeext conftest.$ac_ext
12134
fi
12135
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12136
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12137
if test `eval echo '${'$as_ac_var'}'` = yes; then
12138
 
12139
cat >>confdefs.h <<_ACEOF
12140
#define CRAY_STACKSEG_END $ac_func
12141
_ACEOF
12142
 
12143
    break
12144
fi
12145
 
12146
  done
12147
fi
12148
 
12149
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12150
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12151
if test "${ac_cv_c_stack_direction+set}" = set; then
12152
  echo $ECHO_N "(cached) $ECHO_C" >&6
12153
else
12154
  if test "$cross_compiling" = yes; then
12155
  ac_cv_c_stack_direction=0
12156
else
12157
  cat >conftest.$ac_ext <<_ACEOF
12158
/* confdefs.h.  */
12159
_ACEOF
12160
cat confdefs.h >>conftest.$ac_ext
12161
cat >>conftest.$ac_ext <<_ACEOF
12162
/* end confdefs.h.  */
12163
int
12164
find_stack_direction ()
12165
{
12166
  static char *addr = 0;
12167
  auto char dummy;
12168
  if (addr == 0)
12169
    {
12170
      addr = &dummy;
12171
      return find_stack_direction ();
12172
    }
12173
  else
12174
    return (&dummy > addr) ? 1 : -1;
12175
}
12176
 
12177
int
12178
main ()
12179
{
12180
  exit (find_stack_direction () < 0);
12181
}
12182
_ACEOF
12183
rm -f conftest$ac_exeext
12184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185
  (eval $ac_link) 2>&5
12186
  ac_status=$?
12187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190
  (eval $ac_try) 2>&5
12191
  ac_status=$?
12192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193
  (exit $ac_status); }; }; then
12194
  ac_cv_c_stack_direction=1
12195
else
12196
  echo "$as_me: program exited with status $ac_status" >&5
12197
echo "$as_me: failed program was:" >&5
12198
sed 's/^/| /' conftest.$ac_ext >&5
12199
 
12200
( exit $ac_status )
12201
ac_cv_c_stack_direction=-1
12202
fi
12203
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12204
fi
12205
fi
12206
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12207
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12208
 
12209
cat >>confdefs.h <<_ACEOF
12210
#define STACK_DIRECTION $ac_cv_c_stack_direction
12211
_ACEOF
12212
 
12213
 
12214
fi
12215
 
12216
 
12217
 
12218
 
12219
 
12220
 
12221
for ac_func in sbrk utimes setmode getc_unlocked strcoll
12222
do
12223
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12224
echo "$as_me:$LINENO: checking for $ac_func" >&5
12225
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12226
if eval "test \"\${$as_ac_var+set}\" = set"; then
12227
  echo $ECHO_N "(cached) $ECHO_C" >&6
12228
else
12229
  cat >conftest.$ac_ext <<_ACEOF
12230
/* confdefs.h.  */
12231
_ACEOF
12232
cat confdefs.h >>conftest.$ac_ext
12233
cat >>conftest.$ac_ext <<_ACEOF
12234
/* end confdefs.h.  */
12235
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12236
   For example, HP-UX 11i  declares gettimeofday.  */
12237
#define $ac_func innocuous_$ac_func
12238
 
12239
/* System header to define __stub macros and hopefully few prototypes,
12240
    which can conflict with char $ac_func (); below.
12241
    Prefer  to  if __STDC__ is defined, since
12242
     exists even on freestanding compilers.  */
12243
 
12244
#ifdef __STDC__
12245
# include 
12246
#else
12247
# include 
12248
#endif
12249
 
12250
#undef $ac_func
12251
 
12252
/* Override any gcc2 internal prototype to avoid an error.  */
12253
#ifdef __cplusplus
12254
extern "C"
12255
{
12256
#endif
12257
/* We use char because int might match the return type of a gcc2
12258
   builtin and then its argument prototype would still apply.  */
12259
char $ac_func ();
12260
/* The GNU C library defines this for functions which it implements
12261
    to always fail with ENOSYS.  Some functions are actually named
12262
    something starting with __ and the normal name is an alias.  */
12263
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264
choke me
12265
#else
12266
char (*f) () = $ac_func;
12267
#endif
12268
#ifdef __cplusplus
12269
}
12270
#endif
12271
 
12272
int
12273
main ()
12274
{
12275
return f != $ac_func;
12276
  ;
12277
  return 0;
12278
}
12279
_ACEOF
12280
rm -f conftest.$ac_objext conftest$ac_exeext
12281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282
  (eval $ac_link) 2>conftest.er1
12283
  ac_status=$?
12284
  grep -v '^ *+' conftest.er1 >conftest.err
12285
  rm -f conftest.er1
12286
  cat conftest.err >&5
12287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288
  (exit $ac_status); } &&
12289
         { ac_try='test -z "$ac_c_werror_flag"
12290
                         || test ! -s conftest.err'
12291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292
  (eval $ac_try) 2>&5
12293
  ac_status=$?
12294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
  (exit $ac_status); }; } &&
12296
         { ac_try='test -s conftest$ac_exeext'
12297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298
  (eval $ac_try) 2>&5
12299
  ac_status=$?
12300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301
  (exit $ac_status); }; }; then
12302
  eval "$as_ac_var=yes"
12303
else
12304
  echo "$as_me: failed program was:" >&5
12305
sed 's/^/| /' conftest.$ac_ext >&5
12306
 
12307
eval "$as_ac_var=no"
12308
fi
12309
rm -f conftest.err conftest.$ac_objext \
12310
      conftest$ac_exeext conftest.$ac_ext
12311
fi
12312
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12313
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12314
if test `eval echo '${'$as_ac_var'}'` = yes; then
12315
  cat >>confdefs.h <<_ACEOF
12316
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12317
_ACEOF
12318
 
12319
fi
12320
done
12321
 
12322
echo "$as_me:$LINENO: checking for mkstemp" >&5
12323
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
12324
if test "${ac_cv_func_mkstemp+set}" = set; then
12325
  echo $ECHO_N "(cached) $ECHO_C" >&6
12326
else
12327
  cat >conftest.$ac_ext <<_ACEOF
12328
/* confdefs.h.  */
12329
_ACEOF
12330
cat confdefs.h >>conftest.$ac_ext
12331
cat >>conftest.$ac_ext <<_ACEOF
12332
/* end confdefs.h.  */
12333
/* Define mkstemp to an innocuous variant, in case  declares mkstemp.
12334
   For example, HP-UX 11i  declares gettimeofday.  */
12335
#define mkstemp innocuous_mkstemp
12336
 
12337
/* System header to define __stub macros and hopefully few prototypes,
12338
    which can conflict with char mkstemp (); below.
12339
    Prefer  to  if __STDC__ is defined, since
12340
     exists even on freestanding compilers.  */
12341
 
12342
#ifdef __STDC__
12343
# include 
12344
#else
12345
# include 
12346
#endif
12347
 
12348
#undef mkstemp
12349
 
12350
/* Override any gcc2 internal prototype to avoid an error.  */
12351
#ifdef __cplusplus
12352
extern "C"
12353
{
12354
#endif
12355
/* We use char because int might match the return type of a gcc2
12356
   builtin and then its argument prototype would still apply.  */
12357
char mkstemp ();
12358
/* The GNU C library defines this for functions which it implements
12359
    to always fail with ENOSYS.  Some functions are actually named
12360
    something starting with __ and the normal name is an alias.  */
12361
#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
12362
choke me
12363
#else
12364
char (*f) () = mkstemp;
12365
#endif
12366
#ifdef __cplusplus
12367
}
12368
#endif
12369
 
12370
int
12371
main ()
12372
{
12373
return f != mkstemp;
12374
  ;
12375
  return 0;
12376
}
12377
_ACEOF
12378
rm -f conftest.$ac_objext conftest$ac_exeext
12379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380
  (eval $ac_link) 2>conftest.er1
12381
  ac_status=$?
12382
  grep -v '^ *+' conftest.er1 >conftest.err
12383
  rm -f conftest.er1
12384
  cat conftest.err >&5
12385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386
  (exit $ac_status); } &&
12387
         { ac_try='test -z "$ac_c_werror_flag"
12388
                         || test ! -s conftest.err'
12389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390
  (eval $ac_try) 2>&5
12391
  ac_status=$?
12392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393
  (exit $ac_status); }; } &&
12394
         { ac_try='test -s conftest$ac_exeext'
12395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396
  (eval $ac_try) 2>&5
12397
  ac_status=$?
12398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399
  (exit $ac_status); }; }; then
12400
  ac_cv_func_mkstemp=yes
12401
else
12402
  echo "$as_me: failed program was:" >&5
12403
sed 's/^/| /' conftest.$ac_ext >&5
12404
 
12405
ac_cv_func_mkstemp=no
12406
fi
12407
rm -f conftest.err conftest.$ac_objext \
12408
      conftest$ac_exeext conftest.$ac_ext
12409
fi
12410
echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
12411
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
12412
if test $ac_cv_func_mkstemp = yes; then
12413
 
12414
cat >>confdefs.h <<\_ACEOF
12415
#define HAVE_MKSTEMP 1
12416
_ACEOF
12417
 
12418
fi
12419
 
12420
echo "$as_me:$LINENO: checking for mkdtemp" >&5
12421
echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6
12422
if test "${ac_cv_func_mkdtemp+set}" = set; then
12423
  echo $ECHO_N "(cached) $ECHO_C" >&6
12424
else
12425
  cat >conftest.$ac_ext <<_ACEOF
12426
/* confdefs.h.  */
12427
_ACEOF
12428
cat confdefs.h >>conftest.$ac_ext
12429
cat >>conftest.$ac_ext <<_ACEOF
12430
/* end confdefs.h.  */
12431
/* Define mkdtemp to an innocuous variant, in case  declares mkdtemp.
12432
   For example, HP-UX 11i  declares gettimeofday.  */
12433
#define mkdtemp innocuous_mkdtemp
12434
 
12435
/* System header to define __stub macros and hopefully few prototypes,
12436
    which can conflict with char mkdtemp (); below.
12437
    Prefer  to  if __STDC__ is defined, since
12438
     exists even on freestanding compilers.  */
12439
 
12440
#ifdef __STDC__
12441
# include 
12442
#else
12443
# include 
12444
#endif
12445
 
12446
#undef mkdtemp
12447
 
12448
/* Override any gcc2 internal prototype to avoid an error.  */
12449
#ifdef __cplusplus
12450
extern "C"
12451
{
12452
#endif
12453
/* We use char because int might match the return type of a gcc2
12454
   builtin and then its argument prototype would still apply.  */
12455
char mkdtemp ();
12456
/* The GNU C library defines this for functions which it implements
12457
    to always fail with ENOSYS.  Some functions are actually named
12458
    something starting with __ and the normal name is an alias.  */
12459
#if defined (__stub_mkdtemp) || defined (__stub___mkdtemp)
12460
choke me
12461
#else
12462
char (*f) () = mkdtemp;
12463
#endif
12464
#ifdef __cplusplus
12465
}
12466
#endif
12467
 
12468
int
12469
main ()
12470
{
12471
return f != mkdtemp;
12472
  ;
12473
  return 0;
12474
}
12475
_ACEOF
12476
rm -f conftest.$ac_objext conftest$ac_exeext
12477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12478
  (eval $ac_link) 2>conftest.er1
12479
  ac_status=$?
12480
  grep -v '^ *+' conftest.er1 >conftest.err
12481
  rm -f conftest.er1
12482
  cat conftest.err >&5
12483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484
  (exit $ac_status); } &&
12485
         { ac_try='test -z "$ac_c_werror_flag"
12486
                         || test ! -s conftest.err'
12487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488
  (eval $ac_try) 2>&5
12489
  ac_status=$?
12490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
  (exit $ac_status); }; } &&
12492
         { ac_try='test -s conftest$ac_exeext'
12493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494
  (eval $ac_try) 2>&5
12495
  ac_status=$?
12496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497
  (exit $ac_status); }; }; then
12498
  ac_cv_func_mkdtemp=yes
12499
else
12500
  echo "$as_me: failed program was:" >&5
12501
sed 's/^/| /' conftest.$ac_ext >&5
12502
 
12503
ac_cv_func_mkdtemp=no
12504
fi
12505
rm -f conftest.err conftest.$ac_objext \
12506
      conftest$ac_exeext conftest.$ac_ext
12507
fi
12508
echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5
12509
echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6
12510
if test $ac_cv_func_mkdtemp = yes; then
12511
 
12512
cat >>confdefs.h <<\_ACEOF
12513
#define HAVE_MKDTEMP 1
12514
_ACEOF
12515
 
12516
fi
12517
 
12518
 
12519
# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
12520
# needs to be defined for it
12521
echo "$as_me:$LINENO: checking for fopen64" >&5
12522
echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
12523
if test "${bu_cv_have_fopen64+set}" = set; then
12524
  echo $ECHO_N "(cached) $ECHO_C" >&6
12525
else
12526
  cat >conftest.$ac_ext <<_ACEOF
12527
/* confdefs.h.  */
12528
_ACEOF
12529
cat confdefs.h >>conftest.$ac_ext
12530
cat >>conftest.$ac_ext <<_ACEOF
12531
/* end confdefs.h.  */
12532
#include 
12533
int
12534
main ()
12535
{
12536
FILE *f = fopen64 ("/tmp/foo","r");
12537
  ;
12538
  return 0;
12539
}
12540
_ACEOF
12541
rm -f conftest.$ac_objext conftest$ac_exeext
12542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543
  (eval $ac_link) 2>conftest.er1
12544
  ac_status=$?
12545
  grep -v '^ *+' conftest.er1 >conftest.err
12546
  rm -f conftest.er1
12547
  cat conftest.err >&5
12548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549
  (exit $ac_status); } &&
12550
         { ac_try='test -z "$ac_c_werror_flag"
12551
                         || test ! -s conftest.err'
12552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553
  (eval $ac_try) 2>&5
12554
  ac_status=$?
12555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556
  (exit $ac_status); }; } &&
12557
         { ac_try='test -s conftest$ac_exeext'
12558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559
  (eval $ac_try) 2>&5
12560
  ac_status=$?
12561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562
  (exit $ac_status); }; }; then
12563
  bu_cv_have_fopen64=yes
12564
else
12565
  echo "$as_me: failed program was:" >&5
12566
sed 's/^/| /' conftest.$ac_ext >&5
12567
 
12568
saved_CPPFLAGS=$CPPFLAGS
12569
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12570
 cat >conftest.$ac_ext <<_ACEOF
12571
/* confdefs.h.  */
12572
_ACEOF
12573
cat confdefs.h >>conftest.$ac_ext
12574
cat >>conftest.$ac_ext <<_ACEOF
12575
/* end confdefs.h.  */
12576
#include 
12577
int
12578
main ()
12579
{
12580
FILE *f = fopen64 ("/tmp/foo","r");
12581
  ;
12582
  return 0;
12583
}
12584
_ACEOF
12585
rm -f conftest.$ac_objext conftest$ac_exeext
12586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587
  (eval $ac_link) 2>conftest.er1
12588
  ac_status=$?
12589
  grep -v '^ *+' conftest.er1 >conftest.err
12590
  rm -f conftest.er1
12591
  cat conftest.err >&5
12592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593
  (exit $ac_status); } &&
12594
         { ac_try='test -z "$ac_c_werror_flag"
12595
                         || test ! -s conftest.err'
12596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597
  (eval $ac_try) 2>&5
12598
  ac_status=$?
12599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600
  (exit $ac_status); }; } &&
12601
         { ac_try='test -s conftest$ac_exeext'
12602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603
  (eval $ac_try) 2>&5
12604
  ac_status=$?
12605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606
  (exit $ac_status); }; }; then
12607
  bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
12608
else
12609
  echo "$as_me: failed program was:" >&5
12610
sed 's/^/| /' conftest.$ac_ext >&5
12611
 
12612
bu_cv_have_fopen64=no
12613
fi
12614
rm -f conftest.err conftest.$ac_objext \
12615
      conftest$ac_exeext conftest.$ac_ext
12616
 CPPFLAGS=$saved_CPPFLAGS
12617
fi
12618
rm -f conftest.err conftest.$ac_objext \
12619
      conftest$ac_exeext conftest.$ac_ext
12620
fi
12621
 
12622
echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
12623
echo "${ECHO_T}$bu_cv_have_fopen64" >&6
12624
if test "$bu_cv_have_fopen64" != no; then
12625
 
12626
cat >>confdefs.h <<\_ACEOF
12627
#define HAVE_FOPEN64 1
12628
_ACEOF
12629
 
12630
fi
12631
echo "$as_me:$LINENO: checking for stat64" >&5
12632
echo $ECHO_N "checking for stat64... $ECHO_C" >&6
12633
if test "${bu_cv_have_stat64+set}" = set; then
12634
  echo $ECHO_N "(cached) $ECHO_C" >&6
12635
else
12636
  cat >conftest.$ac_ext <<_ACEOF
12637
/* confdefs.h.  */
12638
_ACEOF
12639
cat confdefs.h >>conftest.$ac_ext
12640
cat >>conftest.$ac_ext <<_ACEOF
12641
/* end confdefs.h.  */
12642
#include 
12643
int
12644
main ()
12645
{
12646
struct stat64 st; stat64 ("/tmp/foo", &st);
12647
  ;
12648
  return 0;
12649
}
12650
_ACEOF
12651
rm -f conftest.$ac_objext conftest$ac_exeext
12652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653
  (eval $ac_link) 2>conftest.er1
12654
  ac_status=$?
12655
  grep -v '^ *+' conftest.er1 >conftest.err
12656
  rm -f conftest.er1
12657
  cat conftest.err >&5
12658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659
  (exit $ac_status); } &&
12660
         { ac_try='test -z "$ac_c_werror_flag"
12661
                         || test ! -s conftest.err'
12662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663
  (eval $ac_try) 2>&5
12664
  ac_status=$?
12665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666
  (exit $ac_status); }; } &&
12667
         { ac_try='test -s conftest$ac_exeext'
12668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669
  (eval $ac_try) 2>&5
12670
  ac_status=$?
12671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672
  (exit $ac_status); }; }; then
12673
  bu_cv_have_stat64=yes
12674
else
12675
  echo "$as_me: failed program was:" >&5
12676
sed 's/^/| /' conftest.$ac_ext >&5
12677
 
12678
saved_CPPFLAGS=$CPPFLAGS
12679
 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12680
 cat >conftest.$ac_ext <<_ACEOF
12681
/* confdefs.h.  */
12682
_ACEOF
12683
cat confdefs.h >>conftest.$ac_ext
12684
cat >>conftest.$ac_ext <<_ACEOF
12685
/* end confdefs.h.  */
12686
#include 
12687
int
12688
main ()
12689
{
12690
struct stat64 st; stat64 ("/tmp/foo", &st);
12691
  ;
12692
  return 0;
12693
}
12694
_ACEOF
12695
rm -f conftest.$ac_objext conftest$ac_exeext
12696
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697
  (eval $ac_link) 2>conftest.er1
12698
  ac_status=$?
12699
  grep -v '^ *+' conftest.er1 >conftest.err
12700
  rm -f conftest.er1
12701
  cat conftest.err >&5
12702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703
  (exit $ac_status); } &&
12704
         { ac_try='test -z "$ac_c_werror_flag"
12705
                         || test ! -s conftest.err'
12706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707
  (eval $ac_try) 2>&5
12708
  ac_status=$?
12709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710
  (exit $ac_status); }; } &&
12711
         { ac_try='test -s conftest$ac_exeext'
12712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713
  (eval $ac_try) 2>&5
12714
  ac_status=$?
12715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716
  (exit $ac_status); }; }; then
12717
  bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
12718
else
12719
  echo "$as_me: failed program was:" >&5
12720
sed 's/^/| /' conftest.$ac_ext >&5
12721
 
12722
bu_cv_have_stat64=no
12723
fi
12724
rm -f conftest.err conftest.$ac_objext \
12725
      conftest$ac_exeext conftest.$ac_ext
12726
 CPPFLAGS=$saved_CPPFLAGS
12727
fi
12728
rm -f conftest.err conftest.$ac_objext \
12729
      conftest$ac_exeext conftest.$ac_ext
12730
fi
12731
 
12732
echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
12733
echo "${ECHO_T}$bu_cv_have_stat64" >&6
12734
if test "$bu_cv_have_stat64" != no; then
12735
 
12736
cat >>confdefs.h <<\_ACEOF
12737
#define HAVE_STAT64 1
12738
_ACEOF
12739
 
12740
fi
12741
if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
12742
   || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
12743
 
12744
cat >>confdefs.h <<\_ACEOF
12745
#define _LARGEFILE64_SOURCE 1
12746
_ACEOF
12747
 
12748
  CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
12749
fi
12750
 
12751
# Some systems have frexp only in -lm, not in -lc.
12752
echo "$as_me:$LINENO: checking for library containing frexp" >&5
12753
echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
12754
if test "${ac_cv_search_frexp+set}" = set; then
12755
  echo $ECHO_N "(cached) $ECHO_C" >&6
12756
else
12757
  ac_func_search_save_LIBS=$LIBS
12758
ac_cv_search_frexp=no
12759
cat >conftest.$ac_ext <<_ACEOF
12760
/* confdefs.h.  */
12761
_ACEOF
12762
cat confdefs.h >>conftest.$ac_ext
12763
cat >>conftest.$ac_ext <<_ACEOF
12764
/* end confdefs.h.  */
12765
 
12766
/* Override any gcc2 internal prototype to avoid an error.  */
12767
#ifdef __cplusplus
12768
extern "C"
12769
#endif
12770
/* We use char because int might match the return type of a gcc2
12771
   builtin and then its argument prototype would still apply.  */
12772
char frexp ();
12773
int
12774
main ()
12775
{
12776
frexp ();
12777
  ;
12778
  return 0;
12779
}
12780
_ACEOF
12781
rm -f conftest.$ac_objext conftest$ac_exeext
12782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12783
  (eval $ac_link) 2>conftest.er1
12784
  ac_status=$?
12785
  grep -v '^ *+' conftest.er1 >conftest.err
12786
  rm -f conftest.er1
12787
  cat conftest.err >&5
12788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789
  (exit $ac_status); } &&
12790
         { ac_try='test -z "$ac_c_werror_flag"
12791
                         || test ! -s conftest.err'
12792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793
  (eval $ac_try) 2>&5
12794
  ac_status=$?
12795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796
  (exit $ac_status); }; } &&
12797
         { ac_try='test -s conftest$ac_exeext'
12798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799
  (eval $ac_try) 2>&5
12800
  ac_status=$?
12801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802
  (exit $ac_status); }; }; then
12803
  ac_cv_search_frexp="none required"
12804
else
12805
  echo "$as_me: failed program was:" >&5
12806
sed 's/^/| /' conftest.$ac_ext >&5
12807
 
12808
fi
12809
rm -f conftest.err conftest.$ac_objext \
12810
      conftest$ac_exeext conftest.$ac_ext
12811
if test "$ac_cv_search_frexp" = no; then
12812
  for ac_lib in m; do
12813
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12814
    cat >conftest.$ac_ext <<_ACEOF
12815
/* confdefs.h.  */
12816
_ACEOF
12817
cat confdefs.h >>conftest.$ac_ext
12818
cat >>conftest.$ac_ext <<_ACEOF
12819
/* end confdefs.h.  */
12820
 
12821
/* Override any gcc2 internal prototype to avoid an error.  */
12822
#ifdef __cplusplus
12823
extern "C"
12824
#endif
12825
/* We use char because int might match the return type of a gcc2
12826
   builtin and then its argument prototype would still apply.  */
12827
char frexp ();
12828
int
12829
main ()
12830
{
12831
frexp ();
12832
  ;
12833
  return 0;
12834
}
12835
_ACEOF
12836
rm -f conftest.$ac_objext conftest$ac_exeext
12837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838
  (eval $ac_link) 2>conftest.er1
12839
  ac_status=$?
12840
  grep -v '^ *+' conftest.er1 >conftest.err
12841
  rm -f conftest.er1
12842
  cat conftest.err >&5
12843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844
  (exit $ac_status); } &&
12845
         { ac_try='test -z "$ac_c_werror_flag"
12846
                         || test ! -s conftest.err'
12847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848
  (eval $ac_try) 2>&5
12849
  ac_status=$?
12850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851
  (exit $ac_status); }; } &&
12852
         { ac_try='test -s conftest$ac_exeext'
12853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854
  (eval $ac_try) 2>&5
12855
  ac_status=$?
12856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857
  (exit $ac_status); }; }; then
12858
  ac_cv_search_frexp="-l$ac_lib"
12859
break
12860
else
12861
  echo "$as_me: failed program was:" >&5
12862
sed 's/^/| /' conftest.$ac_ext >&5
12863
 
12864
fi
12865
rm -f conftest.err conftest.$ac_objext \
12866
      conftest$ac_exeext conftest.$ac_ext
12867
  done
12868
fi
12869
LIBS=$ac_func_search_save_LIBS
12870
fi
12871
echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
12872
echo "${ECHO_T}$ac_cv_search_frexp" >&6
12873
if test "$ac_cv_search_frexp" != no; then
12874
  test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
12875
 
12876
fi
12877
 
12878
 
12879
echo "$as_me:$LINENO: checking for time_t in time.h" >&5
12880
echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
12881
if test "${bu_cv_decl_time_t_time_h+set}" = set; then
12882
  echo $ECHO_N "(cached) $ECHO_C" >&6
12883
else
12884
  cat >conftest.$ac_ext <<_ACEOF
12885
/* confdefs.h.  */
12886
_ACEOF
12887
cat confdefs.h >>conftest.$ac_ext
12888
cat >>conftest.$ac_ext <<_ACEOF
12889
/* end confdefs.h.  */
12890
#include 
12891
int
12892
main ()
12893
{
12894
time_t i;
12895
  ;
12896
  return 0;
12897
}
12898
_ACEOF
12899
rm -f conftest.$ac_objext
12900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901
  (eval $ac_compile) 2>conftest.er1
12902
  ac_status=$?
12903
  grep -v '^ *+' conftest.er1 >conftest.err
12904
  rm -f conftest.er1
12905
  cat conftest.err >&5
12906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907
  (exit $ac_status); } &&
12908
         { ac_try='test -z "$ac_c_werror_flag"
12909
                         || test ! -s conftest.err'
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); }; } &&
12915
         { ac_try='test -s conftest.$ac_objext'
12916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917
  (eval $ac_try) 2>&5
12918
  ac_status=$?
12919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920
  (exit $ac_status); }; }; then
12921
  bu_cv_decl_time_t_time_h=yes
12922
else
12923
  echo "$as_me: failed program was:" >&5
12924
sed 's/^/| /' conftest.$ac_ext >&5
12925
 
12926
bu_cv_decl_time_t_time_h=no
12927
fi
12928
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929
fi
12930
 
12931
echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
12932
echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
12933
if test $bu_cv_decl_time_t_time_h = yes; then
12934
 
12935
cat >>confdefs.h <<\_ACEOF
12936
#define HAVE_TIME_T_IN_TIME_H 1
12937
_ACEOF
12938
 
12939
fi
12940
 
12941
echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
12942
echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
12943
if test "${bu_cv_decl_time_t_types_h+set}" = set; then
12944
  echo $ECHO_N "(cached) $ECHO_C" >&6
12945
else
12946
  cat >conftest.$ac_ext <<_ACEOF
12947
/* confdefs.h.  */
12948
_ACEOF
12949
cat confdefs.h >>conftest.$ac_ext
12950
cat >>conftest.$ac_ext <<_ACEOF
12951
/* end confdefs.h.  */
12952
#include 
12953
int
12954
main ()
12955
{
12956
time_t i;
12957
  ;
12958
  return 0;
12959
}
12960
_ACEOF
12961
rm -f conftest.$ac_objext
12962
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963
  (eval $ac_compile) 2>conftest.er1
12964
  ac_status=$?
12965
  grep -v '^ *+' conftest.er1 >conftest.err
12966
  rm -f conftest.er1
12967
  cat conftest.err >&5
12968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969
  (exit $ac_status); } &&
12970
         { ac_try='test -z "$ac_c_werror_flag"
12971
                         || test ! -s conftest.err'
12972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973
  (eval $ac_try) 2>&5
12974
  ac_status=$?
12975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976
  (exit $ac_status); }; } &&
12977
         { ac_try='test -s conftest.$ac_objext'
12978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979
  (eval $ac_try) 2>&5
12980
  ac_status=$?
12981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982
  (exit $ac_status); }; }; then
12983
  bu_cv_decl_time_t_types_h=yes
12984
else
12985
  echo "$as_me: failed program was:" >&5
12986
sed 's/^/| /' conftest.$ac_ext >&5
12987
 
12988
bu_cv_decl_time_t_types_h=no
12989
fi
12990
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991
fi
12992
 
12993
echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
12994
echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
12995
if test $bu_cv_decl_time_t_types_h = yes; then
12996
 
12997
cat >>confdefs.h <<\_ACEOF
12998
#define HAVE_TIME_T_IN_TYPES_H 1
12999
_ACEOF
13000
 
13001
fi
13002
 
13003
echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13004
echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13005
if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
13006
  echo $ECHO_N "(cached) $ECHO_C" >&6
13007
else
13008
  cat >conftest.$ac_ext <<_ACEOF
13009
/* confdefs.h.  */
13010
_ACEOF
13011
cat confdefs.h >>conftest.$ac_ext
13012
cat >>conftest.$ac_ext <<_ACEOF
13013
/* end confdefs.h.  */
13014
#include 
13015
int
13016
main ()
13017
{
13018
extern int getopt (int, char *const*, const char *);
13019
  ;
13020
  return 0;
13021
}
13022
_ACEOF
13023
rm -f conftest.$ac_objext
13024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13025
  (eval $ac_compile) 2>conftest.er1
13026
  ac_status=$?
13027
  grep -v '^ *+' conftest.er1 >conftest.err
13028
  rm -f conftest.er1
13029
  cat conftest.err >&5
13030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031
  (exit $ac_status); } &&
13032
         { ac_try='test -z "$ac_c_werror_flag"
13033
                         || test ! -s conftest.err'
13034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035
  (eval $ac_try) 2>&5
13036
  ac_status=$?
13037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038
  (exit $ac_status); }; } &&
13039
         { ac_try='test -s conftest.$ac_objext'
13040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041
  (eval $ac_try) 2>&5
13042
  ac_status=$?
13043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044
  (exit $ac_status); }; }; then
13045
  bu_cv_decl_getopt_unistd_h=yes
13046
else
13047
  echo "$as_me: failed program was:" >&5
13048
sed 's/^/| /' conftest.$ac_ext >&5
13049
 
13050
bu_cv_decl_getopt_unistd_h=no
13051
fi
13052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13053
fi
13054
 
13055
echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
13056
echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
13057
if test $bu_cv_decl_getopt_unistd_h = yes; then
13058
 
13059
cat >>confdefs.h <<\_ACEOF
13060
#define HAVE_DECL_GETOPT 1
13061
_ACEOF
13062
 
13063
fi
13064
 
13065
# Under Next 3.2  apparently does not define struct utimbuf
13066
# by default.
13067
echo "$as_me:$LINENO: checking for utime.h" >&5
13068
echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
13069
if test "${bu_cv_header_utime_h+set}" = set; then
13070
  echo $ECHO_N "(cached) $ECHO_C" >&6
13071
else
13072
  cat >conftest.$ac_ext <<_ACEOF
13073
/* confdefs.h.  */
13074
_ACEOF
13075
cat confdefs.h >>conftest.$ac_ext
13076
cat >>conftest.$ac_ext <<_ACEOF
13077
/* end confdefs.h.  */
13078
#include 
13079
#ifdef HAVE_TIME_H
13080
#include 
13081
#endif
13082
#include 
13083
int
13084
main ()
13085
{
13086
struct utimbuf s;
13087
  ;
13088
  return 0;
13089
}
13090
_ACEOF
13091
rm -f conftest.$ac_objext
13092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093
  (eval $ac_compile) 2>conftest.er1
13094
  ac_status=$?
13095
  grep -v '^ *+' conftest.er1 >conftest.err
13096
  rm -f conftest.er1
13097
  cat conftest.err >&5
13098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099
  (exit $ac_status); } &&
13100
         { ac_try='test -z "$ac_c_werror_flag"
13101
                         || test ! -s conftest.err'
13102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103
  (eval $ac_try) 2>&5
13104
  ac_status=$?
13105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106
  (exit $ac_status); }; } &&
13107
         { ac_try='test -s conftest.$ac_objext'
13108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109
  (eval $ac_try) 2>&5
13110
  ac_status=$?
13111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112
  (exit $ac_status); }; }; then
13113
  bu_cv_header_utime_h=yes
13114
else
13115
  echo "$as_me: failed program was:" >&5
13116
sed 's/^/| /' conftest.$ac_ext >&5
13117
 
13118
bu_cv_header_utime_h=no
13119
fi
13120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121
fi
13122
 
13123
echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
13124
echo "${ECHO_T}$bu_cv_header_utime_h" >&6
13125
if test $bu_cv_header_utime_h = yes; then
13126
 
13127
cat >>confdefs.h <<\_ACEOF
13128
#define HAVE_GOOD_UTIME_H 1
13129
_ACEOF
13130
 
13131
fi
13132
 
13133
echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
13134
echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
13135
if test "${ac_cv_have_decl_fprintf+set}" = set; then
13136
  echo $ECHO_N "(cached) $ECHO_C" >&6
13137
else
13138
  cat >conftest.$ac_ext <<_ACEOF
13139
/* confdefs.h.  */
13140
_ACEOF
13141
cat confdefs.h >>conftest.$ac_ext
13142
cat >>conftest.$ac_ext <<_ACEOF
13143
/* end confdefs.h.  */
13144
$ac_includes_default
13145
int
13146
main ()
13147
{
13148
#ifndef fprintf
13149
  char *p = (char *) fprintf;
13150
#endif
13151
 
13152
  ;
13153
  return 0;
13154
}
13155
_ACEOF
13156
rm -f conftest.$ac_objext
13157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158
  (eval $ac_compile) 2>conftest.er1
13159
  ac_status=$?
13160
  grep -v '^ *+' conftest.er1 >conftest.err
13161
  rm -f conftest.er1
13162
  cat conftest.err >&5
13163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164
  (exit $ac_status); } &&
13165
         { ac_try='test -z "$ac_c_werror_flag"
13166
                         || test ! -s conftest.err'
13167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168
  (eval $ac_try) 2>&5
13169
  ac_status=$?
13170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171
  (exit $ac_status); }; } &&
13172
         { ac_try='test -s conftest.$ac_objext'
13173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174
  (eval $ac_try) 2>&5
13175
  ac_status=$?
13176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177
  (exit $ac_status); }; }; then
13178
  ac_cv_have_decl_fprintf=yes
13179
else
13180
  echo "$as_me: failed program was:" >&5
13181
sed 's/^/| /' conftest.$ac_ext >&5
13182
 
13183
ac_cv_have_decl_fprintf=no
13184
fi
13185
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13186
fi
13187
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
13188
echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
13189
if test $ac_cv_have_decl_fprintf = yes; then
13190
 
13191
cat >>confdefs.h <<_ACEOF
13192
#define HAVE_DECL_FPRINTF 1
13193
_ACEOF
13194
 
13195
 
13196
else
13197
  cat >>confdefs.h <<_ACEOF
13198
#define HAVE_DECL_FPRINTF 0
13199
_ACEOF
13200
 
13201
 
13202
fi
13203
echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
13204
echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
13205
if test "${ac_cv_have_decl_stpcpy+set}" = set; then
13206
  echo $ECHO_N "(cached) $ECHO_C" >&6
13207
else
13208
  cat >conftest.$ac_ext <<_ACEOF
13209
/* confdefs.h.  */
13210
_ACEOF
13211
cat confdefs.h >>conftest.$ac_ext
13212
cat >>conftest.$ac_ext <<_ACEOF
13213
/* end confdefs.h.  */
13214
$ac_includes_default
13215
int
13216
main ()
13217
{
13218
#ifndef stpcpy
13219
  char *p = (char *) stpcpy;
13220
#endif
13221
 
13222
  ;
13223
  return 0;
13224
}
13225
_ACEOF
13226
rm -f conftest.$ac_objext
13227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13228
  (eval $ac_compile) 2>conftest.er1
13229
  ac_status=$?
13230
  grep -v '^ *+' conftest.er1 >conftest.err
13231
  rm -f conftest.er1
13232
  cat conftest.err >&5
13233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234
  (exit $ac_status); } &&
13235
         { ac_try='test -z "$ac_c_werror_flag"
13236
                         || test ! -s conftest.err'
13237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238
  (eval $ac_try) 2>&5
13239
  ac_status=$?
13240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241
  (exit $ac_status); }; } &&
13242
         { ac_try='test -s conftest.$ac_objext'
13243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244
  (eval $ac_try) 2>&5
13245
  ac_status=$?
13246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247
  (exit $ac_status); }; }; then
13248
  ac_cv_have_decl_stpcpy=yes
13249
else
13250
  echo "$as_me: failed program was:" >&5
13251
sed 's/^/| /' conftest.$ac_ext >&5
13252
 
13253
ac_cv_have_decl_stpcpy=no
13254
fi
13255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13256
fi
13257
echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
13258
echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
13259
if test $ac_cv_have_decl_stpcpy = yes; then
13260
 
13261
cat >>confdefs.h <<_ACEOF
13262
#define HAVE_DECL_STPCPY 1
13263
_ACEOF
13264
 
13265
 
13266
else
13267
  cat >>confdefs.h <<_ACEOF
13268
#define HAVE_DECL_STPCPY 0
13269
_ACEOF
13270
 
13271
 
13272
fi
13273
echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13274
echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13275
if test "${ac_cv_have_decl_strstr+set}" = set; then
13276
  echo $ECHO_N "(cached) $ECHO_C" >&6
13277
else
13278
  cat >conftest.$ac_ext <<_ACEOF
13279
/* confdefs.h.  */
13280
_ACEOF
13281
cat confdefs.h >>conftest.$ac_ext
13282
cat >>conftest.$ac_ext <<_ACEOF
13283
/* end confdefs.h.  */
13284
$ac_includes_default
13285
int
13286
main ()
13287
{
13288
#ifndef strstr
13289
  char *p = (char *) strstr;
13290
#endif
13291
 
13292
  ;
13293
  return 0;
13294
}
13295
_ACEOF
13296
rm -f conftest.$ac_objext
13297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13298
  (eval $ac_compile) 2>conftest.er1
13299
  ac_status=$?
13300
  grep -v '^ *+' conftest.er1 >conftest.err
13301
  rm -f conftest.er1
13302
  cat conftest.err >&5
13303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304
  (exit $ac_status); } &&
13305
         { ac_try='test -z "$ac_c_werror_flag"
13306
                         || test ! -s conftest.err'
13307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308
  (eval $ac_try) 2>&5
13309
  ac_status=$?
13310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311
  (exit $ac_status); }; } &&
13312
         { ac_try='test -s conftest.$ac_objext'
13313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314
  (eval $ac_try) 2>&5
13315
  ac_status=$?
13316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317
  (exit $ac_status); }; }; then
13318
  ac_cv_have_decl_strstr=yes
13319
else
13320
  echo "$as_me: failed program was:" >&5
13321
sed 's/^/| /' conftest.$ac_ext >&5
13322
 
13323
ac_cv_have_decl_strstr=no
13324
fi
13325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13326
fi
13327
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13328
echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13329
if test $ac_cv_have_decl_strstr = yes; then
13330
 
13331
cat >>confdefs.h <<_ACEOF
13332
#define HAVE_DECL_STRSTR 1
13333
_ACEOF
13334
 
13335
 
13336
else
13337
  cat >>confdefs.h <<_ACEOF
13338
#define HAVE_DECL_STRSTR 0
13339
_ACEOF
13340
 
13341
 
13342
fi
13343
echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13344
echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13345
if test "${ac_cv_have_decl_sbrk+set}" = set; then
13346
  echo $ECHO_N "(cached) $ECHO_C" >&6
13347
else
13348
  cat >conftest.$ac_ext <<_ACEOF
13349
/* confdefs.h.  */
13350
_ACEOF
13351
cat confdefs.h >>conftest.$ac_ext
13352
cat >>conftest.$ac_ext <<_ACEOF
13353
/* end confdefs.h.  */
13354
$ac_includes_default
13355
int
13356
main ()
13357
{
13358
#ifndef sbrk
13359
  char *p = (char *) sbrk;
13360
#endif
13361
 
13362
  ;
13363
  return 0;
13364
}
13365
_ACEOF
13366
rm -f conftest.$ac_objext
13367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368
  (eval $ac_compile) 2>conftest.er1
13369
  ac_status=$?
13370
  grep -v '^ *+' conftest.er1 >conftest.err
13371
  rm -f conftest.er1
13372
  cat conftest.err >&5
13373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374
  (exit $ac_status); } &&
13375
         { ac_try='test -z "$ac_c_werror_flag"
13376
                         || test ! -s conftest.err'
13377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378
  (eval $ac_try) 2>&5
13379
  ac_status=$?
13380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381
  (exit $ac_status); }; } &&
13382
         { ac_try='test -s conftest.$ac_objext'
13383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384
  (eval $ac_try) 2>&5
13385
  ac_status=$?
13386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387
  (exit $ac_status); }; }; then
13388
  ac_cv_have_decl_sbrk=yes
13389
else
13390
  echo "$as_me: failed program was:" >&5
13391
sed 's/^/| /' conftest.$ac_ext >&5
13392
 
13393
ac_cv_have_decl_sbrk=no
13394
fi
13395
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13396
fi
13397
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13398
echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13399
if test $ac_cv_have_decl_sbrk = yes; then
13400
 
13401
cat >>confdefs.h <<_ACEOF
13402
#define HAVE_DECL_SBRK 1
13403
_ACEOF
13404
 
13405
 
13406
else
13407
  cat >>confdefs.h <<_ACEOF
13408
#define HAVE_DECL_SBRK 0
13409
_ACEOF
13410
 
13411
 
13412
fi
13413
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13414
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13415
if test "${ac_cv_have_decl_getenv+set}" = set; then
13416
  echo $ECHO_N "(cached) $ECHO_C" >&6
13417
else
13418
  cat >conftest.$ac_ext <<_ACEOF
13419
/* confdefs.h.  */
13420
_ACEOF
13421
cat confdefs.h >>conftest.$ac_ext
13422
cat >>conftest.$ac_ext <<_ACEOF
13423
/* end confdefs.h.  */
13424
$ac_includes_default
13425
int
13426
main ()
13427
{
13428
#ifndef getenv
13429
  char *p = (char *) getenv;
13430
#endif
13431
 
13432
  ;
13433
  return 0;
13434
}
13435
_ACEOF
13436
rm -f conftest.$ac_objext
13437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438
  (eval $ac_compile) 2>conftest.er1
13439
  ac_status=$?
13440
  grep -v '^ *+' conftest.er1 >conftest.err
13441
  rm -f conftest.er1
13442
  cat conftest.err >&5
13443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444
  (exit $ac_status); } &&
13445
         { ac_try='test -z "$ac_c_werror_flag"
13446
                         || test ! -s conftest.err'
13447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448
  (eval $ac_try) 2>&5
13449
  ac_status=$?
13450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451
  (exit $ac_status); }; } &&
13452
         { ac_try='test -s conftest.$ac_objext'
13453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454
  (eval $ac_try) 2>&5
13455
  ac_status=$?
13456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457
  (exit $ac_status); }; }; then
13458
  ac_cv_have_decl_getenv=yes
13459
else
13460
  echo "$as_me: failed program was:" >&5
13461
sed 's/^/| /' conftest.$ac_ext >&5
13462
 
13463
ac_cv_have_decl_getenv=no
13464
fi
13465
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13466
fi
13467
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13468
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13469
if test $ac_cv_have_decl_getenv = yes; then
13470
 
13471
cat >>confdefs.h <<_ACEOF
13472
#define HAVE_DECL_GETENV 1
13473
_ACEOF
13474
 
13475
 
13476
else
13477
  cat >>confdefs.h <<_ACEOF
13478
#define HAVE_DECL_GETENV 0
13479
_ACEOF
13480
 
13481
 
13482
fi
13483
echo "$as_me:$LINENO: checking whether environ is declared" >&5
13484
echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
13485
if test "${ac_cv_have_decl_environ+set}" = set; then
13486
  echo $ECHO_N "(cached) $ECHO_C" >&6
13487
else
13488
  cat >conftest.$ac_ext <<_ACEOF
13489
/* confdefs.h.  */
13490
_ACEOF
13491
cat confdefs.h >>conftest.$ac_ext
13492
cat >>conftest.$ac_ext <<_ACEOF
13493
/* end confdefs.h.  */
13494
$ac_includes_default
13495
int
13496
main ()
13497
{
13498
#ifndef environ
13499
  char *p = (char *) environ;
13500
#endif
13501
 
13502
  ;
13503
  return 0;
13504
}
13505
_ACEOF
13506
rm -f conftest.$ac_objext
13507
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508
  (eval $ac_compile) 2>conftest.er1
13509
  ac_status=$?
13510
  grep -v '^ *+' conftest.er1 >conftest.err
13511
  rm -f conftest.er1
13512
  cat conftest.err >&5
13513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514
  (exit $ac_status); } &&
13515
         { ac_try='test -z "$ac_c_werror_flag"
13516
                         || test ! -s conftest.err'
13517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518
  (eval $ac_try) 2>&5
13519
  ac_status=$?
13520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521
  (exit $ac_status); }; } &&
13522
         { ac_try='test -s conftest.$ac_objext'
13523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524
  (eval $ac_try) 2>&5
13525
  ac_status=$?
13526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527
  (exit $ac_status); }; }; then
13528
  ac_cv_have_decl_environ=yes
13529
else
13530
  echo "$as_me: failed program was:" >&5
13531
sed 's/^/| /' conftest.$ac_ext >&5
13532
 
13533
ac_cv_have_decl_environ=no
13534
fi
13535
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13536
fi
13537
echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
13538
echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
13539
if test $ac_cv_have_decl_environ = yes; then
13540
 
13541
cat >>confdefs.h <<_ACEOF
13542
#define HAVE_DECL_ENVIRON 1
13543
_ACEOF
13544
 
13545
 
13546
else
13547
  cat >>confdefs.h <<_ACEOF
13548
#define HAVE_DECL_ENVIRON 0
13549
_ACEOF
13550
 
13551
 
13552
fi
13553
echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13554
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
13555
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13556
  echo $ECHO_N "(cached) $ECHO_C" >&6
13557
else
13558
  cat >conftest.$ac_ext <<_ACEOF
13559
/* confdefs.h.  */
13560
_ACEOF
13561
cat confdefs.h >>conftest.$ac_ext
13562
cat >>conftest.$ac_ext <<_ACEOF
13563
/* end confdefs.h.  */
13564
$ac_includes_default
13565
int
13566
main ()
13567
{
13568
#ifndef getc_unlocked
13569
  char *p = (char *) getc_unlocked;
13570
#endif
13571
 
13572
  ;
13573
  return 0;
13574
}
13575
_ACEOF
13576
rm -f conftest.$ac_objext
13577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578
  (eval $ac_compile) 2>conftest.er1
13579
  ac_status=$?
13580
  grep -v '^ *+' conftest.er1 >conftest.err
13581
  rm -f conftest.er1
13582
  cat conftest.err >&5
13583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584
  (exit $ac_status); } &&
13585
         { ac_try='test -z "$ac_c_werror_flag"
13586
                         || test ! -s conftest.err'
13587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588
  (eval $ac_try) 2>&5
13589
  ac_status=$?
13590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591
  (exit $ac_status); }; } &&
13592
         { ac_try='test -s conftest.$ac_objext'
13593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594
  (eval $ac_try) 2>&5
13595
  ac_status=$?
13596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597
  (exit $ac_status); }; }; then
13598
  ac_cv_have_decl_getc_unlocked=yes
13599
else
13600
  echo "$as_me: failed program was:" >&5
13601
sed 's/^/| /' conftest.$ac_ext >&5
13602
 
13603
ac_cv_have_decl_getc_unlocked=no
13604
fi
13605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606
fi
13607
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13608
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
13609
if test $ac_cv_have_decl_getc_unlocked = yes; then
13610
 
13611
cat >>confdefs.h <<_ACEOF
13612
#define HAVE_DECL_GETC_UNLOCKED 1
13613
_ACEOF
13614
 
13615
 
13616
else
13617
  cat >>confdefs.h <<_ACEOF
13618
#define HAVE_DECL_GETC_UNLOCKED 0
13619
_ACEOF
13620
 
13621
 
13622
fi
13623
echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13624
echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13625
if test "${ac_cv_have_decl_snprintf+set}" = set; then
13626
  echo $ECHO_N "(cached) $ECHO_C" >&6
13627
else
13628
  cat >conftest.$ac_ext <<_ACEOF
13629
/* confdefs.h.  */
13630
_ACEOF
13631
cat confdefs.h >>conftest.$ac_ext
13632
cat >>conftest.$ac_ext <<_ACEOF
13633
/* end confdefs.h.  */
13634
$ac_includes_default
13635
int
13636
main ()
13637
{
13638
#ifndef snprintf
13639
  char *p = (char *) snprintf;
13640
#endif
13641
 
13642
  ;
13643
  return 0;
13644
}
13645
_ACEOF
13646
rm -f conftest.$ac_objext
13647
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648
  (eval $ac_compile) 2>conftest.er1
13649
  ac_status=$?
13650
  grep -v '^ *+' conftest.er1 >conftest.err
13651
  rm -f conftest.er1
13652
  cat conftest.err >&5
13653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654
  (exit $ac_status); } &&
13655
         { ac_try='test -z "$ac_c_werror_flag"
13656
                         || test ! -s conftest.err'
13657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658
  (eval $ac_try) 2>&5
13659
  ac_status=$?
13660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661
  (exit $ac_status); }; } &&
13662
         { ac_try='test -s conftest.$ac_objext'
13663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664
  (eval $ac_try) 2>&5
13665
  ac_status=$?
13666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667
  (exit $ac_status); }; }; then
13668
  ac_cv_have_decl_snprintf=yes
13669
else
13670
  echo "$as_me: failed program was:" >&5
13671
sed 's/^/| /' conftest.$ac_ext >&5
13672
 
13673
ac_cv_have_decl_snprintf=no
13674
fi
13675
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13676
fi
13677
echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13678
echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13679
if test $ac_cv_have_decl_snprintf = yes; then
13680
 
13681
cat >>confdefs.h <<_ACEOF
13682
#define HAVE_DECL_SNPRINTF 1
13683
_ACEOF
13684
 
13685
 
13686
else
13687
  cat >>confdefs.h <<_ACEOF
13688
#define HAVE_DECL_SNPRINTF 0
13689
_ACEOF
13690
 
13691
 
13692
fi
13693
echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13694
echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13695
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13696
  echo $ECHO_N "(cached) $ECHO_C" >&6
13697
else
13698
  cat >conftest.$ac_ext <<_ACEOF
13699
/* confdefs.h.  */
13700
_ACEOF
13701
cat confdefs.h >>conftest.$ac_ext
13702
cat >>conftest.$ac_ext <<_ACEOF
13703
/* end confdefs.h.  */
13704
$ac_includes_default
13705
int
13706
main ()
13707
{
13708
#ifndef vsnprintf
13709
  char *p = (char *) vsnprintf;
13710
#endif
13711
 
13712
  ;
13713
  return 0;
13714
}
13715
_ACEOF
13716
rm -f conftest.$ac_objext
13717
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718
  (eval $ac_compile) 2>conftest.er1
13719
  ac_status=$?
13720
  grep -v '^ *+' conftest.er1 >conftest.err
13721
  rm -f conftest.er1
13722
  cat conftest.err >&5
13723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724
  (exit $ac_status); } &&
13725
         { ac_try='test -z "$ac_c_werror_flag"
13726
                         || test ! -s conftest.err'
13727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728
  (eval $ac_try) 2>&5
13729
  ac_status=$?
13730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731
  (exit $ac_status); }; } &&
13732
         { ac_try='test -s conftest.$ac_objext'
13733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734
  (eval $ac_try) 2>&5
13735
  ac_status=$?
13736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737
  (exit $ac_status); }; }; then
13738
  ac_cv_have_decl_vsnprintf=yes
13739
else
13740
  echo "$as_me: failed program was:" >&5
13741
sed 's/^/| /' conftest.$ac_ext >&5
13742
 
13743
ac_cv_have_decl_vsnprintf=no
13744
fi
13745
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13746
fi
13747
echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13748
echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13749
if test $ac_cv_have_decl_vsnprintf = yes; then
13750
 
13751
cat >>confdefs.h <<_ACEOF
13752
#define HAVE_DECL_VSNPRINTF 1
13753
_ACEOF
13754
 
13755
 
13756
else
13757
  cat >>confdefs.h <<_ACEOF
13758
#define HAVE_DECL_VSNPRINTF 0
13759
_ACEOF
13760
 
13761
 
13762
fi
13763
 
13764
 
13765
 
13766
# Link in zlib if we can.  This allows us to read compressed debug
13767
# sections.  This is used only by readelf.c (objdump uses bfd for
13768
# reading compressed sections).
13769
echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
13770
echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
13771
if test "${ac_cv_search_zlibVersion+set}" = set; then
13772
  echo $ECHO_N "(cached) $ECHO_C" >&6
13773
else
13774
  ac_func_search_save_LIBS=$LIBS
13775
ac_cv_search_zlibVersion=no
13776
cat >conftest.$ac_ext <<_ACEOF
13777
/* confdefs.h.  */
13778
_ACEOF
13779
cat confdefs.h >>conftest.$ac_ext
13780
cat >>conftest.$ac_ext <<_ACEOF
13781
/* end confdefs.h.  */
13782
 
13783
/* Override any gcc2 internal prototype to avoid an error.  */
13784
#ifdef __cplusplus
13785
extern "C"
13786
#endif
13787
/* We use char because int might match the return type of a gcc2
13788
   builtin and then its argument prototype would still apply.  */
13789
char zlibVersion ();
13790
int
13791
main ()
13792
{
13793
zlibVersion ();
13794
  ;
13795
  return 0;
13796
}
13797
_ACEOF
13798
rm -f conftest.$ac_objext conftest$ac_exeext
13799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800
  (eval $ac_link) 2>conftest.er1
13801
  ac_status=$?
13802
  grep -v '^ *+' conftest.er1 >conftest.err
13803
  rm -f conftest.er1
13804
  cat conftest.err >&5
13805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806
  (exit $ac_status); } &&
13807
         { ac_try='test -z "$ac_c_werror_flag"
13808
                         || test ! -s conftest.err'
13809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810
  (eval $ac_try) 2>&5
13811
  ac_status=$?
13812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813
  (exit $ac_status); }; } &&
13814
         { ac_try='test -s conftest$ac_exeext'
13815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816
  (eval $ac_try) 2>&5
13817
  ac_status=$?
13818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819
  (exit $ac_status); }; }; then
13820
  ac_cv_search_zlibVersion="none required"
13821
else
13822
  echo "$as_me: failed program was:" >&5
13823
sed 's/^/| /' conftest.$ac_ext >&5
13824
 
13825
fi
13826
rm -f conftest.err conftest.$ac_objext \
13827
      conftest$ac_exeext conftest.$ac_ext
13828
if test "$ac_cv_search_zlibVersion" = no; then
13829
  for ac_lib in z; do
13830
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13831
    cat >conftest.$ac_ext <<_ACEOF
13832
/* confdefs.h.  */
13833
_ACEOF
13834
cat confdefs.h >>conftest.$ac_ext
13835
cat >>conftest.$ac_ext <<_ACEOF
13836
/* end confdefs.h.  */
13837
 
13838
/* Override any gcc2 internal prototype to avoid an error.  */
13839
#ifdef __cplusplus
13840
extern "C"
13841
#endif
13842
/* We use char because int might match the return type of a gcc2
13843
   builtin and then its argument prototype would still apply.  */
13844
char zlibVersion ();
13845
int
13846
main ()
13847
{
13848
zlibVersion ();
13849
  ;
13850
  return 0;
13851
}
13852
_ACEOF
13853
rm -f conftest.$ac_objext conftest$ac_exeext
13854
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13855
  (eval $ac_link) 2>conftest.er1
13856
  ac_status=$?
13857
  grep -v '^ *+' conftest.er1 >conftest.err
13858
  rm -f conftest.er1
13859
  cat conftest.err >&5
13860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861
  (exit $ac_status); } &&
13862
         { ac_try='test -z "$ac_c_werror_flag"
13863
                         || test ! -s conftest.err'
13864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865
  (eval $ac_try) 2>&5
13866
  ac_status=$?
13867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868
  (exit $ac_status); }; } &&
13869
         { ac_try='test -s conftest$ac_exeext'
13870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871
  (eval $ac_try) 2>&5
13872
  ac_status=$?
13873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874
  (exit $ac_status); }; }; then
13875
  ac_cv_search_zlibVersion="-l$ac_lib"
13876
break
13877
else
13878
  echo "$as_me: failed program was:" >&5
13879
sed 's/^/| /' conftest.$ac_ext >&5
13880
 
13881
fi
13882
rm -f conftest.err conftest.$ac_objext \
13883
      conftest$ac_exeext conftest.$ac_ext
13884
  done
13885
fi
13886
LIBS=$ac_func_search_save_LIBS
13887
fi
13888
echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
13889
echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
13890
if test "$ac_cv_search_zlibVersion" != no; then
13891
  test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
13892
 
13893
for ac_header in zlib.h
13894
do
13895
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13896
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897
  echo "$as_me:$LINENO: checking for $ac_header" >&5
13898
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13899
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13900
  echo $ECHO_N "(cached) $ECHO_C" >&6
13901
fi
13902
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13903
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13904
else
13905
  # Is the header compilable?
13906
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13907
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13908
cat >conftest.$ac_ext <<_ACEOF
13909
/* confdefs.h.  */
13910
_ACEOF
13911
cat confdefs.h >>conftest.$ac_ext
13912
cat >>conftest.$ac_ext <<_ACEOF
13913
/* end confdefs.h.  */
13914
$ac_includes_default
13915
#include <$ac_header>
13916
_ACEOF
13917
rm -f conftest.$ac_objext
13918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13919
  (eval $ac_compile) 2>conftest.er1
13920
  ac_status=$?
13921
  grep -v '^ *+' conftest.er1 >conftest.err
13922
  rm -f conftest.er1
13923
  cat conftest.err >&5
13924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925
  (exit $ac_status); } &&
13926
         { ac_try='test -z "$ac_c_werror_flag"
13927
                         || test ! -s conftest.err'
13928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929
  (eval $ac_try) 2>&5
13930
  ac_status=$?
13931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932
  (exit $ac_status); }; } &&
13933
         { ac_try='test -s conftest.$ac_objext'
13934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935
  (eval $ac_try) 2>&5
13936
  ac_status=$?
13937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938
  (exit $ac_status); }; }; then
13939
  ac_header_compiler=yes
13940
else
13941
  echo "$as_me: failed program was:" >&5
13942
sed 's/^/| /' conftest.$ac_ext >&5
13943
 
13944
ac_header_compiler=no
13945
fi
13946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13947
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13948
echo "${ECHO_T}$ac_header_compiler" >&6
13949
 
13950
# Is the header present?
13951
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13952
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13953
cat >conftest.$ac_ext <<_ACEOF
13954
/* confdefs.h.  */
13955
_ACEOF
13956
cat confdefs.h >>conftest.$ac_ext
13957
cat >>conftest.$ac_ext <<_ACEOF
13958
/* end confdefs.h.  */
13959
#include <$ac_header>
13960
_ACEOF
13961
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13962
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13963
  ac_status=$?
13964
  grep -v '^ *+' conftest.er1 >conftest.err
13965
  rm -f conftest.er1
13966
  cat conftest.err >&5
13967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968
  (exit $ac_status); } >/dev/null; then
13969
  if test -s conftest.err; then
13970
    ac_cpp_err=$ac_c_preproc_warn_flag
13971
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13972
  else
13973
    ac_cpp_err=
13974
  fi
13975
else
13976
  ac_cpp_err=yes
13977
fi
13978
if test -z "$ac_cpp_err"; then
13979
  ac_header_preproc=yes
13980
else
13981
  echo "$as_me: failed program was:" >&5
13982
sed 's/^/| /' conftest.$ac_ext >&5
13983
 
13984
  ac_header_preproc=no
13985
fi
13986
rm -f conftest.err conftest.$ac_ext
13987
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13988
echo "${ECHO_T}$ac_header_preproc" >&6
13989
 
13990
# So?  What about this header?
13991
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13992
  yes:no: )
13993
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13994
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13995
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13996
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13997
    ac_header_preproc=yes
13998
    ;;
13999
  no:yes:* )
14000
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14001
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14002
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14003
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14004
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14005
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14006
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14007
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14008
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14009
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14010
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14011
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14012
    (
14013
      cat <<\_ASBOX
14014
## ------------------------------------------ ##
14015
## Report this to the AC_PACKAGE_NAME lists.  ##
14016
## ------------------------------------------ ##
14017
_ASBOX
14018
    ) |
14019
      sed "s/^/$as_me: WARNING:     /" >&2
14020
    ;;
14021
esac
14022
echo "$as_me:$LINENO: checking for $ac_header" >&5
14023
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14024
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14025
  echo $ECHO_N "(cached) $ECHO_C" >&6
14026
else
14027
  eval "$as_ac_Header=\$ac_header_preproc"
14028
fi
14029
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14030
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031
 
14032
fi
14033
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14034
  cat >>confdefs.h <<_ACEOF
14035
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14036
_ACEOF
14037
 
14038
fi
14039
 
14040
done
14041
 
14042
fi
14043
 
14044
 
14045
 
14046
case "${host}" in
14047
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14048
 
14049
cat >>confdefs.h <<\_ACEOF
14050
#define USE_BINARY_FOPEN 1
14051
_ACEOF
14052
 ;;
14053
esac
14054
 
14055
# target-specific stuff:
14056
 
14057
# Canonicalize the secondary target names.
14058
if test -n "$enable_targets"; then
14059
    for targ in `echo $enable_targets | sed 's/,/ /g'`
14060
    do
14061
        result=`$ac_config_sub $targ 2>/dev/null`
14062
        if test -n "$result"; then
14063
            canon_targets="$canon_targets $result"
14064
        else
14065
            # Allow targets that config.sub doesn't recognize, like "all".
14066
            canon_targets="$canon_targets $targ"
14067
        fi
14068
    done
14069
fi
14070
 
14071
if test "${ac_cv_header_iconv_h+set}" = set; then
14072
  echo "$as_me:$LINENO: checking for iconv.h" >&5
14073
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14074
if test "${ac_cv_header_iconv_h+set}" = set; then
14075
  echo $ECHO_N "(cached) $ECHO_C" >&6
14076
fi
14077
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14078
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14079
else
14080
  # Is the header compilable?
14081
echo "$as_me:$LINENO: checking iconv.h usability" >&5
14082
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
14083
cat >conftest.$ac_ext <<_ACEOF
14084
/* confdefs.h.  */
14085
_ACEOF
14086
cat confdefs.h >>conftest.$ac_ext
14087
cat >>conftest.$ac_ext <<_ACEOF
14088
/* end confdefs.h.  */
14089
$ac_includes_default
14090
#include 
14091
_ACEOF
14092
rm -f conftest.$ac_objext
14093
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094
  (eval $ac_compile) 2>conftest.er1
14095
  ac_status=$?
14096
  grep -v '^ *+' conftest.er1 >conftest.err
14097
  rm -f conftest.er1
14098
  cat conftest.err >&5
14099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100
  (exit $ac_status); } &&
14101
         { ac_try='test -z "$ac_c_werror_flag"
14102
                         || test ! -s conftest.err'
14103
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104
  (eval $ac_try) 2>&5
14105
  ac_status=$?
14106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107
  (exit $ac_status); }; } &&
14108
         { ac_try='test -s conftest.$ac_objext'
14109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110
  (eval $ac_try) 2>&5
14111
  ac_status=$?
14112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113
  (exit $ac_status); }; }; then
14114
  ac_header_compiler=yes
14115
else
14116
  echo "$as_me: failed program was:" >&5
14117
sed 's/^/| /' conftest.$ac_ext >&5
14118
 
14119
ac_header_compiler=no
14120
fi
14121
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14123
echo "${ECHO_T}$ac_header_compiler" >&6
14124
 
14125
# Is the header present?
14126
echo "$as_me:$LINENO: checking iconv.h presence" >&5
14127
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
14128
cat >conftest.$ac_ext <<_ACEOF
14129
/* confdefs.h.  */
14130
_ACEOF
14131
cat confdefs.h >>conftest.$ac_ext
14132
cat >>conftest.$ac_ext <<_ACEOF
14133
/* end confdefs.h.  */
14134
#include 
14135
_ACEOF
14136
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14137
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14138
  ac_status=$?
14139
  grep -v '^ *+' conftest.er1 >conftest.err
14140
  rm -f conftest.er1
14141
  cat conftest.err >&5
14142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143
  (exit $ac_status); } >/dev/null; then
14144
  if test -s conftest.err; then
14145
    ac_cpp_err=$ac_c_preproc_warn_flag
14146
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14147
  else
14148
    ac_cpp_err=
14149
  fi
14150
else
14151
  ac_cpp_err=yes
14152
fi
14153
if test -z "$ac_cpp_err"; then
14154
  ac_header_preproc=yes
14155
else
14156
  echo "$as_me: failed program was:" >&5
14157
sed 's/^/| /' conftest.$ac_ext >&5
14158
 
14159
  ac_header_preproc=no
14160
fi
14161
rm -f conftest.err conftest.$ac_ext
14162
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14163
echo "${ECHO_T}$ac_header_preproc" >&6
14164
 
14165
# So?  What about this header?
14166
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14167
  yes:no: )
14168
    { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
14169
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14170
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
14171
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
14172
    ac_header_preproc=yes
14173
    ;;
14174
  no:yes:* )
14175
    { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
14176
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
14177
    { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
14178
echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
14179
    { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
14180
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
14181
    { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
14182
echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14183
    { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
14184
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
14185
    { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
14186
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
14187
    (
14188
      cat <<\_ASBOX
14189
## ------------------------------------------ ##
14190
## Report this to the AC_PACKAGE_NAME lists.  ##
14191
## ------------------------------------------ ##
14192
_ASBOX
14193
    ) |
14194
      sed "s/^/$as_me: WARNING:     /" >&2
14195
    ;;
14196
esac
14197
echo "$as_me:$LINENO: checking for iconv.h" >&5
14198
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
14199
if test "${ac_cv_header_iconv_h+set}" = set; then
14200
  echo $ECHO_N "(cached) $ECHO_C" >&6
14201
else
14202
  ac_cv_header_iconv_h=$ac_header_preproc
14203
fi
14204
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
14205
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
14206
 
14207
fi
14208
 
14209
 
14210
 
14211
      if test "X$prefix" = "XNONE"; then
14212
    acl_final_prefix="$ac_default_prefix"
14213
  else
14214
    acl_final_prefix="$prefix"
14215
  fi
14216
  if test "X$exec_prefix" = "XNONE"; then
14217
    acl_final_exec_prefix='${prefix}'
14218
  else
14219
    acl_final_exec_prefix="$exec_prefix"
14220
  fi
14221
  acl_save_prefix="$prefix"
14222
  prefix="$acl_final_prefix"
14223
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14224
  prefix="$acl_save_prefix"
14225
 
14226
 
14227
# Check whether --with-gnu-ld or --without-gnu-ld was given.
14228
if test "${with_gnu_ld+set}" = set; then
14229
  withval="$with_gnu_ld"
14230
  test "$withval" = no || with_gnu_ld=yes
14231
else
14232
  with_gnu_ld=no
14233
fi;
14234
# Prepare PATH_SEPARATOR.
14235
# The user is always right.
14236
if test "${PATH_SEPARATOR+set}" != set; then
14237
  echo "#! /bin/sh" >conf$$.sh
14238
  echo  "exit 0"   >>conf$$.sh
14239
  chmod +x conf$$.sh
14240
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14241
    PATH_SEPARATOR=';'
14242
  else
14243
    PATH_SEPARATOR=:
14244
  fi
14245
  rm -f conf$$.sh
14246
fi
14247
ac_prog=ld
14248
if test "$GCC" = yes; then
14249
  # Check if gcc -print-prog-name=ld gives a path.
14250
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
14251
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
14252
  case $host in
14253
  *-*-mingw*)
14254
    # gcc leaves a trailing carriage return which upsets mingw
14255
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14256
  *)
14257
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14258
  esac
14259
  case $ac_prog in
14260
    # Accept absolute paths.
14261
    [\\/]* | [A-Za-z]:[\\/]*)
14262
      re_direlt='/[^/][^/]*/\.\./'
14263
      # Canonicalize the path of ld
14264
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14265
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14266
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14267
      done
14268
      test -z "$LD" && LD="$ac_prog"
14269
      ;;
14270
  "")
14271
    # If it fails, then pretend we aren't using GCC.
14272
    ac_prog=ld
14273
    ;;
14274
  *)
14275
    # If it is relative, then search for the first ld in PATH.
14276
    with_gnu_ld=unknown
14277
    ;;
14278
  esac
14279
elif test "$with_gnu_ld" = yes; then
14280
  echo "$as_me:$LINENO: checking for GNU ld" >&5
14281
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14282
else
14283
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14284
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14285
fi
14286
if test "${acl_cv_path_LD+set}" = set; then
14287
  echo $ECHO_N "(cached) $ECHO_C" >&6
14288
else
14289
  if test -z "$LD"; then
14290
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14291
  for ac_dir in $PATH; do
14292
    test -z "$ac_dir" && ac_dir=.
14293
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14294
      acl_cv_path_LD="$ac_dir/$ac_prog"
14295
      # Check to see if the program is GNU ld.  I'd rather use --version,
14296
      # but apparently some GNU ld's only accept -v.
14297
      # Break only if it was the GNU/non-GNU ld that we prefer.
14298
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14299
        test "$with_gnu_ld" != no && break
14300
      else
14301
        test "$with_gnu_ld" != yes && break
14302
      fi
14303
    fi
14304
  done
14305
  IFS="$ac_save_ifs"
14306
else
14307
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
14308
fi
14309
fi
14310
 
14311
LD="$acl_cv_path_LD"
14312
if test -n "$LD"; then
14313
  echo "$as_me:$LINENO: result: $LD" >&5
14314
echo "${ECHO_T}$LD" >&6
14315
else
14316
  echo "$as_me:$LINENO: result: no" >&5
14317
echo "${ECHO_T}no" >&6
14318
fi
14319
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14320
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14321
   { (exit 1); exit 1; }; }
14322
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14323
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14324
if test "${acl_cv_prog_gnu_ld+set}" = set; then
14325
  echo $ECHO_N "(cached) $ECHO_C" >&6
14326
else
14327
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14328
if $LD -v 2>&1 &5; then
14329
  acl_cv_prog_gnu_ld=yes
14330
else
14331
  acl_cv_prog_gnu_ld=no
14332
fi
14333
fi
14334
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
14335
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
14336
with_gnu_ld=$acl_cv_prog_gnu_ld
14337
 
14338
 
14339
 
14340
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
14341
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
14342
if test "${acl_cv_rpath+set}" = set; then
14343
  echo $ECHO_N "(cached) $ECHO_C" >&6
14344
else
14345
 
14346
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14347
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14348
    . ./conftest.sh
14349
    rm -f ./conftest.sh
14350
    acl_cv_rpath=done
14351
 
14352
fi
14353
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
14354
echo "${ECHO_T}$acl_cv_rpath" >&6
14355
  wl="$acl_cv_wl"
14356
  libext="$acl_cv_libext"
14357
  shlibext="$acl_cv_shlibext"
14358
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14359
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14360
  hardcode_direct="$acl_cv_hardcode_direct"
14361
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
14362
    # Check whether --enable-rpath or --disable-rpath was given.
14363
if test "${enable_rpath+set}" = set; then
14364
  enableval="$enable_rpath"
14365
  :
14366
else
14367
  enable_rpath=yes
14368
fi;
14369
 
14370
 
14371
 
14372
 
14373
 
14374
 
14375
 
14376
    use_additional=yes
14377
 
14378
  acl_save_prefix="$prefix"
14379
  prefix="$acl_final_prefix"
14380
  acl_save_exec_prefix="$exec_prefix"
14381
  exec_prefix="$acl_final_exec_prefix"
14382
 
14383
    eval additional_includedir=\"$includedir\"
14384
    eval additional_libdir=\"$libdir\"
14385
 
14386
  exec_prefix="$acl_save_exec_prefix"
14387
  prefix="$acl_save_prefix"
14388
 
14389
 
14390
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14391
if test "${with_libiconv_prefix+set}" = set; then
14392
  withval="$with_libiconv_prefix"
14393
 
14394
    if test "X$withval" = "Xno"; then
14395
      use_additional=no
14396
    else
14397
      if test "X$withval" = "X"; then
14398
 
14399
  acl_save_prefix="$prefix"
14400
  prefix="$acl_final_prefix"
14401
  acl_save_exec_prefix="$exec_prefix"
14402
  exec_prefix="$acl_final_exec_prefix"
14403
 
14404
          eval additional_includedir=\"$includedir\"
14405
          eval additional_libdir=\"$libdir\"
14406
 
14407
  exec_prefix="$acl_save_exec_prefix"
14408
  prefix="$acl_save_prefix"
14409
 
14410
      else
14411
        additional_includedir="$withval/include"
14412
        additional_libdir="$withval/lib"
14413
      fi
14414
    fi
14415
 
14416
fi;
14417
      LIBICONV=
14418
  LTLIBICONV=
14419
  INCICONV=
14420
  rpathdirs=
14421
  ltrpathdirs=
14422
  names_already_handled=
14423
  names_next_round='iconv '
14424
  while test -n "$names_next_round"; do
14425
    names_this_round="$names_next_round"
14426
    names_next_round=
14427
    for name in $names_this_round; do
14428
      already_handled=
14429
      for n in $names_already_handled; do
14430
        if test "$n" = "$name"; then
14431
          already_handled=yes
14432
          break
14433
        fi
14434
      done
14435
      if test -z "$already_handled"; then
14436
        names_already_handled="$names_already_handled $name"
14437
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14438
        eval value=\"\$HAVE_LIB$uppername\"
14439
        if test -n "$value"; then
14440
          if test "$value" = yes; then
14441
            eval value=\"\$LIB$uppername\"
14442
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14443
            eval value=\"\$LTLIB$uppername\"
14444
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14445
          else
14446
                                    :
14447
          fi
14448
        else
14449
                              found_dir=
14450
          found_la=
14451
          found_so=
14452
          found_a=
14453
          if test $use_additional = yes; then
14454
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14455
              found_dir="$additional_libdir"
14456
              found_so="$additional_libdir/lib$name.$shlibext"
14457
              if test -f "$additional_libdir/lib$name.la"; then
14458
                found_la="$additional_libdir/lib$name.la"
14459
              fi
14460
            else
14461
              if test -f "$additional_libdir/lib$name.$libext"; then
14462
                found_dir="$additional_libdir"
14463
                found_a="$additional_libdir/lib$name.$libext"
14464
                if test -f "$additional_libdir/lib$name.la"; then
14465
                  found_la="$additional_libdir/lib$name.la"
14466
                fi
14467
              fi
14468
            fi
14469
          fi
14470
          if test "X$found_dir" = "X"; then
14471
            for x in $LDFLAGS $LTLIBICONV; do
14472
 
14473
  acl_save_prefix="$prefix"
14474
  prefix="$acl_final_prefix"
14475
  acl_save_exec_prefix="$exec_prefix"
14476
  exec_prefix="$acl_final_exec_prefix"
14477
  eval x=\"$x\"
14478
  exec_prefix="$acl_save_exec_prefix"
14479
  prefix="$acl_save_prefix"
14480
 
14481
              case "$x" in
14482
                -L*)
14483
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
14484
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14485
                    found_dir="$dir"
14486
                    found_so="$dir/lib$name.$shlibext"
14487
                    if test -f "$dir/lib$name.la"; then
14488
                      found_la="$dir/lib$name.la"
14489
                    fi
14490
                  else
14491
                    if test -f "$dir/lib$name.$libext"; then
14492
                      found_dir="$dir"
14493
                      found_a="$dir/lib$name.$libext"
14494
                      if test -f "$dir/lib$name.la"; then
14495
                        found_la="$dir/lib$name.la"
14496
                      fi
14497
                    fi
14498
                  fi
14499
                  ;;
14500
              esac
14501
              if test "X$found_dir" != "X"; then
14502
                break
14503
              fi
14504
            done
14505
          fi
14506
          if test "X$found_dir" != "X"; then
14507
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14508
            if test "X$found_so" != "X"; then
14509
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14510
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14511
              else
14512
                                                                                haveit=
14513
                for x in $ltrpathdirs; do
14514
                  if test "X$x" = "X$found_dir"; then
14515
                    haveit=yes
14516
                    break
14517
                  fi
14518
                done
14519
                if test -z "$haveit"; then
14520
                  ltrpathdirs="$ltrpathdirs $found_dir"
14521
                fi
14522
                                if test "$hardcode_direct" = yes; then
14523
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14524
                else
14525
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14526
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14527
                                                            haveit=
14528
                    for x in $rpathdirs; do
14529
                      if test "X$x" = "X$found_dir"; then
14530
                        haveit=yes
14531
                        break
14532
                      fi
14533
                    done
14534
                    if test -z "$haveit"; then
14535
                      rpathdirs="$rpathdirs $found_dir"
14536
                    fi
14537
                  else
14538
                                                                                haveit=
14539
                    for x in $LDFLAGS $LIBICONV; do
14540
 
14541
  acl_save_prefix="$prefix"
14542
  prefix="$acl_final_prefix"
14543
  acl_save_exec_prefix="$exec_prefix"
14544
  exec_prefix="$acl_final_exec_prefix"
14545
  eval x=\"$x\"
14546
  exec_prefix="$acl_save_exec_prefix"
14547
  prefix="$acl_save_prefix"
14548
 
14549
                      if test "X$x" = "X-L$found_dir"; then
14550
                        haveit=yes
14551
                        break
14552
                      fi
14553
                    done
14554
                    if test -z "$haveit"; then
14555
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14556
                    fi
14557
                    if test "$hardcode_minus_L" != no; then
14558
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14559
                    else
14560
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14561
                    fi
14562
                  fi
14563
                fi
14564
              fi
14565
            else
14566
              if test "X$found_a" != "X"; then
14567
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14568
              else
14569
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14570
              fi
14571
            fi
14572
                        additional_includedir=
14573
            case "$found_dir" in
14574
              */lib | */lib/)
14575
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14576
                additional_includedir="$basedir/include"
14577
                ;;
14578
            esac
14579
            if test "X$additional_includedir" != "X"; then
14580
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
14581
                haveit=
14582
                if test "X$additional_includedir" = "X/usr/local/include"; then
14583
                  if test -n "$GCC"; then
14584
                    case $host_os in
14585
                      linux*) haveit=yes;;
14586
                    esac
14587
                  fi
14588
                fi
14589
                if test -z "$haveit"; then
14590
                  for x in $CPPFLAGS $INCICONV; do
14591
 
14592
  acl_save_prefix="$prefix"
14593
  prefix="$acl_final_prefix"
14594
  acl_save_exec_prefix="$exec_prefix"
14595
  exec_prefix="$acl_final_exec_prefix"
14596
  eval x=\"$x\"
14597
  exec_prefix="$acl_save_exec_prefix"
14598
  prefix="$acl_save_prefix"
14599
 
14600
                    if test "X$x" = "X-I$additional_includedir"; then
14601
                      haveit=yes
14602
                      break
14603
                    fi
14604
                  done
14605
                  if test -z "$haveit"; then
14606
                    if test -d "$additional_includedir"; then
14607
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14608
                    fi
14609
                  fi
14610
                fi
14611
              fi
14612
            fi
14613
                        if test -n "$found_la"; then
14614
                                                        save_libdir="$libdir"
14615
              case "$found_la" in
14616
                */* | *\\*) . "$found_la" ;;
14617
                *) . "./$found_la" ;;
14618
              esac
14619
              libdir="$save_libdir"
14620
                            for dep in $dependency_libs; do
14621
                case "$dep" in
14622
                  -L*)
14623
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14624
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
14625
                      haveit=
14626
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
14627
                        if test -n "$GCC"; then
14628
                          case $host_os in
14629
                            linux*) haveit=yes;;
14630
                          esac
14631
                        fi
14632
                      fi
14633
                      if test -z "$haveit"; then
14634
                        haveit=
14635
                        for x in $LDFLAGS $LIBICONV; do
14636
 
14637
  acl_save_prefix="$prefix"
14638
  prefix="$acl_final_prefix"
14639
  acl_save_exec_prefix="$exec_prefix"
14640
  exec_prefix="$acl_final_exec_prefix"
14641
  eval x=\"$x\"
14642
  exec_prefix="$acl_save_exec_prefix"
14643
  prefix="$acl_save_prefix"
14644
 
14645
                          if test "X$x" = "X-L$additional_libdir"; then
14646
                            haveit=yes
14647
                            break
14648
                          fi
14649
                        done
14650
                        if test -z "$haveit"; then
14651
                          if test -d "$additional_libdir"; then
14652
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14653
                          fi
14654
                        fi
14655
                        haveit=
14656
                        for x in $LDFLAGS $LTLIBICONV; do
14657
 
14658
  acl_save_prefix="$prefix"
14659
  prefix="$acl_final_prefix"
14660
  acl_save_exec_prefix="$exec_prefix"
14661
  exec_prefix="$acl_final_exec_prefix"
14662
  eval x=\"$x\"
14663
  exec_prefix="$acl_save_exec_prefix"
14664
  prefix="$acl_save_prefix"
14665
 
14666
                          if test "X$x" = "X-L$additional_libdir"; then
14667
                            haveit=yes
14668
                            break
14669
                          fi
14670
                        done
14671
                        if test -z "$haveit"; then
14672
                          if test -d "$additional_libdir"; then
14673
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14674
                          fi
14675
                        fi
14676
                      fi
14677
                    fi
14678
                    ;;
14679
                  -R*)
14680
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
14681
                    if test "$enable_rpath" != no; then
14682
                                                                  haveit=
14683
                      for x in $rpathdirs; do
14684
                        if test "X$x" = "X$dir"; then
14685
                          haveit=yes
14686
                          break
14687
                        fi
14688
                      done
14689
                      if test -z "$haveit"; then
14690
                        rpathdirs="$rpathdirs $dir"
14691
                      fi
14692
                                                                  haveit=
14693
                      for x in $ltrpathdirs; do
14694
                        if test "X$x" = "X$dir"; then
14695
                          haveit=yes
14696
                          break
14697
                        fi
14698
                      done
14699
                      if test -z "$haveit"; then
14700
                        ltrpathdirs="$ltrpathdirs $dir"
14701
                      fi
14702
                    fi
14703
                    ;;
14704
                  -l*)
14705
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14706
                    ;;
14707
                  *.la)
14708
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14709
                    ;;
14710
                  *)
14711
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14712
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14713
                    ;;
14714
                esac
14715
              done
14716
            fi
14717
          else
14718
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14719
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14720
          fi
14721
        fi
14722
      fi
14723
    done
14724
  done
14725
  if test "X$rpathdirs" != "X"; then
14726
    if test -n "$hardcode_libdir_separator"; then
14727
                        alldirs=
14728
      for found_dir in $rpathdirs; do
14729
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14730
      done
14731
            acl_save_libdir="$libdir"
14732
      libdir="$alldirs"
14733
      eval flag=\"$hardcode_libdir_flag_spec\"
14734
      libdir="$acl_save_libdir"
14735
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14736
    else
14737
            for found_dir in $rpathdirs; do
14738
        acl_save_libdir="$libdir"
14739
        libdir="$found_dir"
14740
        eval flag=\"$hardcode_libdir_flag_spec\"
14741
        libdir="$acl_save_libdir"
14742
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14743
      done
14744
    fi
14745
  fi
14746
  if test "X$ltrpathdirs" != "X"; then
14747
            for found_dir in $ltrpathdirs; do
14748
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14749
    done
14750
  fi
14751
 
14752
 
14753
 
14754
 
14755
 
14756
 
14757
 
14758
          am_save_CPPFLAGS="$CPPFLAGS"
14759
 
14760
  for element in $INCICONV; do
14761
    haveit=
14762
    for x in $CPPFLAGS; do
14763
 
14764
  acl_save_prefix="$prefix"
14765
  prefix="$acl_final_prefix"
14766
  acl_save_exec_prefix="$exec_prefix"
14767
  exec_prefix="$acl_final_exec_prefix"
14768
  eval x=\"$x\"
14769
  exec_prefix="$acl_save_exec_prefix"
14770
  prefix="$acl_save_prefix"
14771
 
14772
      if test "X$x" = "X$element"; then
14773
        haveit=yes
14774
        break
14775
      fi
14776
    done
14777
    if test -z "$haveit"; then
14778
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14779
    fi
14780
  done
14781
 
14782
 
14783
  echo "$as_me:$LINENO: checking for iconv" >&5
14784
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14785
if test "${am_cv_func_iconv+set}" = set; then
14786
  echo $ECHO_N "(cached) $ECHO_C" >&6
14787
else
14788
 
14789
    am_cv_func_iconv="no, consider installing GNU libiconv"
14790
    am_cv_lib_iconv=no
14791
    cat >conftest.$ac_ext <<_ACEOF
14792
/* confdefs.h.  */
14793
_ACEOF
14794
cat confdefs.h >>conftest.$ac_ext
14795
cat >>conftest.$ac_ext <<_ACEOF
14796
/* end confdefs.h.  */
14797
#include 
14798
#include 
14799
int
14800
main ()
14801
{
14802
iconv_t cd = iconv_open("","");
14803
       iconv(cd,NULL,NULL,NULL,NULL);
14804
       iconv_close(cd);
14805
  ;
14806
  return 0;
14807
}
14808
_ACEOF
14809
rm -f conftest.$ac_objext conftest$ac_exeext
14810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811
  (eval $ac_link) 2>conftest.er1
14812
  ac_status=$?
14813
  grep -v '^ *+' conftest.er1 >conftest.err
14814
  rm -f conftest.er1
14815
  cat conftest.err >&5
14816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817
  (exit $ac_status); } &&
14818
         { ac_try='test -z "$ac_c_werror_flag"
14819
                         || test ! -s conftest.err'
14820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821
  (eval $ac_try) 2>&5
14822
  ac_status=$?
14823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824
  (exit $ac_status); }; } &&
14825
         { ac_try='test -s conftest$ac_exeext'
14826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827
  (eval $ac_try) 2>&5
14828
  ac_status=$?
14829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830
  (exit $ac_status); }; }; then
14831
  am_cv_func_iconv=yes
14832
else
14833
  echo "$as_me: failed program was:" >&5
14834
sed 's/^/| /' conftest.$ac_ext >&5
14835
 
14836
fi
14837
rm -f conftest.err conftest.$ac_objext \
14838
      conftest$ac_exeext conftest.$ac_ext
14839
    if test "$am_cv_func_iconv" != yes; then
14840
      am_save_LIBS="$LIBS"
14841
      LIBS="$LIBS $LIBICONV"
14842
      cat >conftest.$ac_ext <<_ACEOF
14843
/* confdefs.h.  */
14844
_ACEOF
14845
cat confdefs.h >>conftest.$ac_ext
14846
cat >>conftest.$ac_ext <<_ACEOF
14847
/* end confdefs.h.  */
14848
#include 
14849
#include 
14850
int
14851
main ()
14852
{
14853
iconv_t cd = iconv_open("","");
14854
         iconv(cd,NULL,NULL,NULL,NULL);
14855
         iconv_close(cd);
14856
  ;
14857
  return 0;
14858
}
14859
_ACEOF
14860
rm -f conftest.$ac_objext conftest$ac_exeext
14861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14862
  (eval $ac_link) 2>conftest.er1
14863
  ac_status=$?
14864
  grep -v '^ *+' conftest.er1 >conftest.err
14865
  rm -f conftest.er1
14866
  cat conftest.err >&5
14867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868
  (exit $ac_status); } &&
14869
         { ac_try='test -z "$ac_c_werror_flag"
14870
                         || test ! -s conftest.err'
14871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872
  (eval $ac_try) 2>&5
14873
  ac_status=$?
14874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875
  (exit $ac_status); }; } &&
14876
         { ac_try='test -s conftest$ac_exeext'
14877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878
  (eval $ac_try) 2>&5
14879
  ac_status=$?
14880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881
  (exit $ac_status); }; }; then
14882
  am_cv_lib_iconv=yes
14883
        am_cv_func_iconv=yes
14884
else
14885
  echo "$as_me: failed program was:" >&5
14886
sed 's/^/| /' conftest.$ac_ext >&5
14887
 
14888
fi
14889
rm -f conftest.err conftest.$ac_objext \
14890
      conftest$ac_exeext conftest.$ac_ext
14891
      LIBS="$am_save_LIBS"
14892
    fi
14893
 
14894
fi
14895
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14896
echo "${ECHO_T}$am_cv_func_iconv" >&6
14897
  if test "$am_cv_func_iconv" = yes; then
14898
 
14899
cat >>confdefs.h <<\_ACEOF
14900
#define HAVE_ICONV 1
14901
_ACEOF
14902
 
14903
  fi
14904
  if test "$am_cv_lib_iconv" = yes; then
14905
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
14906
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
14907
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
14908
echo "${ECHO_T}$LIBICONV" >&6
14909
  else
14910
            CPPFLAGS="$am_save_CPPFLAGS"
14911
    LIBICONV=
14912
    LTLIBICONV=
14913
  fi
14914
 
14915
 
14916
 
14917
  if test "$am_cv_func_iconv" = yes; then
14918
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
14919
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14920
    if test "${am_cv_proto_iconv+set}" = set; then
14921
  echo $ECHO_N "(cached) $ECHO_C" >&6
14922
else
14923
 
14924
      cat >conftest.$ac_ext <<_ACEOF
14925
/* confdefs.h.  */
14926
_ACEOF
14927
cat confdefs.h >>conftest.$ac_ext
14928
cat >>conftest.$ac_ext <<_ACEOF
14929
/* end confdefs.h.  */
14930
 
14931
#include 
14932
#include 
14933
extern
14934
#ifdef __cplusplus
14935
"C"
14936
#endif
14937
#if defined(__STDC__) || defined(__cplusplus)
14938
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14939
#else
14940
size_t iconv();
14941
#endif
14942
 
14943
int
14944
main ()
14945
{
14946
 
14947
  ;
14948
  return 0;
14949
}
14950
_ACEOF
14951
rm -f conftest.$ac_objext
14952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953
  (eval $ac_compile) 2>conftest.er1
14954
  ac_status=$?
14955
  grep -v '^ *+' conftest.er1 >conftest.err
14956
  rm -f conftest.er1
14957
  cat conftest.err >&5
14958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959
  (exit $ac_status); } &&
14960
         { ac_try='test -z "$ac_c_werror_flag"
14961
                         || test ! -s conftest.err'
14962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963
  (eval $ac_try) 2>&5
14964
  ac_status=$?
14965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966
  (exit $ac_status); }; } &&
14967
         { ac_try='test -s conftest.$ac_objext'
14968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969
  (eval $ac_try) 2>&5
14970
  ac_status=$?
14971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972
  (exit $ac_status); }; }; then
14973
  am_cv_proto_iconv_arg1=""
14974
else
14975
  echo "$as_me: failed program was:" >&5
14976
sed 's/^/| /' conftest.$ac_ext >&5
14977
 
14978
am_cv_proto_iconv_arg1="const"
14979
fi
14980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981
      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);"
14982
fi
14983
 
14984
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14985
    echo "$as_me:$LINENO: result: ${ac_t:-
14986
         }$am_cv_proto_iconv" >&5
14987
echo "${ECHO_T}${ac_t:-
14988
         }$am_cv_proto_iconv" >&6
14989
 
14990
cat >>confdefs.h <<_ACEOF
14991
#define ICONV_CONST $am_cv_proto_iconv_arg1
14992
_ACEOF
14993
 
14994
  fi
14995
 
14996
 
14997
all_targets=false
14998
BUILD_NLMCONV=
14999
NLMCONV_DEFS=
15000
BUILD_SRCONV=
15001
BUILD_DLLTOOL=
15002
DLLTOOL_DEFS=
15003
DLLTOOL_DEFAULT=
15004
BUILD_WINDRES=
15005
BUILD_WINDMC=
15006
BUILD_DLLWRAP=
15007
BUILD_MISC=
15008
BUILD_INSTALL_MISC=
15009
OBJDUMP_DEFS=
15010
 
15011
for targ in $target $canon_targets
15012
do
15013
    if test "x$targ" = "xall"; then
15014
        all_targets=true
15015
        BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15016
        BUILD_SRCONV='$(SRCONV_PROG)'
15017
        NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
15018
        BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15019
        BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15020
        BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15021
        BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15022
        if test -z "$DLLTOOL_DEFAULT"; then
15023
          DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15024
        fi
15025
        DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15026
        BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15027
    else
15028
        case $targ in
15029
        i[3-7]86*-*-netware*)
15030
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15031
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
15032
          ;;
15033
        alpha*-*-netware*)
15034
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15035
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
15036
          ;;
15037
        powerpc*-*-netware*)
15038
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15039
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
15040
          ;;
15041
        sparc*-*-netware*)
15042
          BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
15043
          NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
15044
          ;;
15045
        esac
15046
        case $targ in
15047
        *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
15048
        esac
15049
        case $targ in
15050
        arm-epoc-pe*)
15051
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15052
          if test -z "$DLLTOOL_DEFAULT"; then
15053
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
15054
          fi
15055
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
15056
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15057
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15058
          ;;
15059
        arm-wince-pe* | arm-*-wince)
15060
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15061
          if test -z "$DLLTOOL_DEFAULT"; then
15062
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
15063
          fi
15064
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
15065
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15066
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15067
          ;;
15068
        arm-*-pe*)
15069
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15070
          if test -z "$DLLTOOL_DEFAULT"; then
15071
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15072
          fi
15073
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15074
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15075
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15076
          ;;
15077
        thumb-*-pe*)
15078
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15079
          if test -z "$DLLTOOL_DEFAULT"; then
15080
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
15081
          fi
15082
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
15083
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15084
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15085
          ;;
15086
        x86_64-*-mingw*)
15087
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15088
          if test -z "$DLLTOOL_DEFAULT"; then
15089
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
15090
          fi
15091
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15092
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15093
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15094
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15095
          ;;
15096
        i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15097
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15098
          if test -z "$DLLTOOL_DEFAULT"; then
15099
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15100
          fi
15101
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15102
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15103
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15104
          BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15105
          ;;
15106
        i[3-7]86-*-interix)
15107
          BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15108
          if test -z "$DLLTOOL_DEFAULT"; then
15109
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15110
          fi
15111
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15112
          ;;
15113
        powerpc*-aix5.[01])
15114
          ;;
15115
        powerpc*-aix5.*)
15116
          OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15117
          ;;
15118
        powerpc*-*-pe* | powerpc*-*-cygwin*)
15119
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15120
          if test -z "$DLLTOOL_DEFAULT"; then
15121
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15122
          fi
15123
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15124
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15125
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15126
          ;;
15127
        powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15128
          BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15129
          ;;
15130
        sh*-*-pe)
15131
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15132
          if test -z "$DLLTOOL_DEFAULT"; then
15133
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15134
          fi
15135
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15136
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15137
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15138
          ;;
15139
        spu-*-*)
15140
          BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15141
          ;;
15142
        mips*-*-pe)
15143
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15144
          if test -z "$DLLTOOL_DEFAULT"; then
15145
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15146
          fi
15147
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15148
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15149
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15150
          ;;
15151
        mcore-*-pe)
15152
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15153
          if test -z "$DLLTOOL_DEFAULT"; then
15154
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15155
          fi
15156
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15157
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15158
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15159
          ;;
15160
        mcore-*-elf)
15161
          BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15162
          if test -z "$DLLTOOL_DEFAULT"; then
15163
            DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15164
          fi
15165
          DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15166
          ;;
15167
        mep-*)
15168
          OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15169
          ;;
15170
        esac
15171
    fi
15172
done
15173
 
15174
DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15175
 
15176
if test "${with_windres+set}" = set; then
15177
          BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15178
fi
15179
 
15180
if test "${with_windmc+set}" = set; then
15181
          BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15182
fi
15183
 
15184
 
15185
 
15186
 
15187
 
15188
 
15189
 
15190
 
15191
 
15192
 
15193
 
15194
 
15195
 
15196
 
15197
cat >>confdefs.h <<_ACEOF
15198
#define TARGET "${target}"
15199
_ACEOF
15200
 
15201
 
15202
targ=$target
15203
. $srcdir/../bfd/config.bfd
15204
if test "x$targ_underscore" = "xyes"; then
15205
    UNDERSCORE=1
15206
else
15207
    UNDERSCORE=0
15208
fi
15209
 
15210
cat >>confdefs.h <<_ACEOF
15211
#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15212
_ACEOF
15213
 
15214
 
15215
# Emulation
15216
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
15217
do
15218
  # Canonicalize the secondary target names.
15219
 result=`$ac_config_sub $targ_alias 2>/dev/null`
15220
 if test -n "$result"; then
15221
   targ=$result
15222
 else
15223
   targ=$targ_alias
15224
 fi
15225
 
15226
 . ${srcdir}/configure.tgt
15227
 
15228
  EMULATION=$targ_emul
15229
  EMULATION_VECTOR=$targ_emul_vector
15230
done
15231
 
15232
 
15233
 
15234
 
15235
# Required for html and install-html
15236
 
15237
 
15238
 
15239
 
15240
                              ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15241
 
15242
cat >confcache <<\_ACEOF
15243
# This file is a shell script that caches the results of configure
15244
# tests run on this system so they can be shared between configure
15245
# scripts and configure runs, see configure's option --config-cache.
15246
# It is not useful on other systems.  If it contains results you don't
15247
# want to keep, you may remove or edit it.
15248
#
15249
# config.status only pays attention to the cache file if you give it
15250
# the --recheck option to rerun configure.
15251
#
15252
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15253
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15254
# following values.
15255
 
15256
_ACEOF
15257
 
15258
# The following way of writing the cache mishandles newlines in values,
15259
# but we know of no workaround that is simple, portable, and efficient.
15260
# So, don't put newlines in cache variables' values.
15261
# Ultrix sh set writes to stderr and can't be redirected directly,
15262
# and sets the high bit in the cache file unless we assign to the vars.
15263
{
15264
  (set) 2>&1 |
15265
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
15266
    *ac_space=\ *)
15267
      # `set' does not quote correctly, so add quotes (double-quote
15268
      # substitution turns \\\\ into \\, and sed turns \\ into \).
15269
      sed -n \
15270
        "s/'/'\\\\''/g;
15271
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15272
      ;;
15273
    *)
15274
      # `set' quotes correctly as required by POSIX, so do not add quotes.
15275
      sed -n \
15276
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15277
      ;;
15278
    esac;
15279
} |
15280
  sed '
15281
     t clear
15282
     : clear
15283
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15284
     t end
15285
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15286
     : end' >>confcache
15287
if diff $cache_file confcache >/dev/null 2>&1; then :; else
15288
  if test -w $cache_file; then
15289
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15290
    cat confcache >$cache_file
15291
  else
15292
    echo "not updating unwritable cache $cache_file"
15293
  fi
15294
fi
15295
rm -f confcache
15296
 
15297
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15298
# Let make expand exec_prefix.
15299
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15300
 
15301
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15302
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15303
# trailing colons and then remove the whole line if VPATH becomes empty
15304
# (actually we leave an empty line to preserve line numbers).
15305
if test "x$srcdir" = x.; then
15306
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
15307
s/:*\$(srcdir):*/:/;
15308
s/:*\${srcdir}:*/:/;
15309
s/:*@srcdir@:*/:/;
15310
s/^\([^=]*=[     ]*\):*/\1/;
15311
s/:*$//;
15312
s/^[^=]*=[       ]*$//;
15313
}'
15314
fi
15315
 
15316
DEFS=-DHAVE_CONFIG_H
15317
 
15318
ac_libobjs=
15319
ac_ltlibobjs=
15320
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15321
  # 1. Remove the extension, and $U if already installed.
15322
  ac_i=`echo "$ac_i" |
15323
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15324
  # 2. Add them.
15325
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15326
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15327
done
15328
LIBOBJS=$ac_libobjs
15329
 
15330
LTLIBOBJS=$ac_ltlibobjs
15331
 
15332
 
15333
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15334
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15335
Usually this means the macro was only invoked conditionally." >&5
15336
echo "$as_me: error: conditional \"AMDEP\" was never defined.
15337
Usually this means the macro was only invoked conditionally." >&2;}
15338
   { (exit 1); exit 1; }; }
15339
fi
15340
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15341
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15342
Usually this means the macro was only invoked conditionally." >&5
15343
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15344
Usually this means the macro was only invoked conditionally." >&2;}
15345
   { (exit 1); exit 1; }; }
15346
fi
15347
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15348
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15349
Usually this means the macro was only invoked conditionally." >&5
15350
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15351
Usually this means the macro was only invoked conditionally." >&2;}
15352
   { (exit 1); exit 1; }; }
15353
fi
15354
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15355
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
15356
Usually this means the macro was only invoked conditionally." >&5
15357
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
15358
Usually this means the macro was only invoked conditionally." >&2;}
15359
   { (exit 1); exit 1; }; }
15360
fi
15361
 
15362
: ${CONFIG_STATUS=./config.status}
15363
ac_clean_files_save=$ac_clean_files
15364
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15365
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15366
echo "$as_me: creating $CONFIG_STATUS" >&6;}
15367
cat >$CONFIG_STATUS <<_ACEOF
15368
#! $SHELL
15369
# Generated by $as_me.
15370
# Run this file to recreate the current configuration.
15371
# Compiler output produced by configure, useful for debugging
15372
# configure, is in config.log if it exists.
15373
 
15374
debug=false
15375
ac_cs_recheck=false
15376
ac_cs_silent=false
15377
SHELL=\${CONFIG_SHELL-$SHELL}
15378
_ACEOF
15379
 
15380
cat >>$CONFIG_STATUS <<\_ACEOF
15381
## --------------------- ##
15382
## M4sh Initialization.  ##
15383
## --------------------- ##
15384
 
15385
# Be Bourne compatible
15386
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15387
  emulate sh
15388
  NULLCMD=:
15389
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15390
  # is contrary to our usage.  Disable this feature.
15391
  alias -g '${1+"$@"}'='"$@"'
15392
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15393
  set -o posix
15394
fi
15395
DUALCASE=1; export DUALCASE # for MKS sh
15396
 
15397
# Support unset when possible.
15398
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15399
  as_unset=unset
15400
else
15401
  as_unset=false
15402
fi
15403
 
15404
 
15405
# Work around bugs in pre-3.0 UWIN ksh.
15406
$as_unset ENV MAIL MAILPATH
15407
PS1='$ '
15408
PS2='> '
15409
PS4='+ '
15410
 
15411
# NLS nuisances.
15412
for as_var in \
15413
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15414
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15415
  LC_TELEPHONE LC_TIME
15416
do
15417
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15418
    eval $as_var=C; export $as_var
15419
  else
15420
    $as_unset $as_var
15421
  fi
15422
done
15423
 
15424
# Required to use basename.
15425
if expr a : '\(a\)' >/dev/null 2>&1; then
15426
  as_expr=expr
15427
else
15428
  as_expr=false
15429
fi
15430
 
15431
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15432
  as_basename=basename
15433
else
15434
  as_basename=false
15435
fi
15436
 
15437
 
15438
# Name of the executable.
15439
as_me=`$as_basename "$0" ||
15440
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15441
         X"$0" : 'X\(//\)$' \| \
15442
         X"$0" : 'X\(/\)$' \| \
15443
         .     : '\(.\)' 2>/dev/null ||
15444
echo X/"$0" |
15445
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15446
          /^X\/\(\/\/\)$/{ s//\1/; q; }
15447
          /^X\/\(\/\).*/{ s//\1/; q; }
15448
          s/.*/./; q'`
15449
 
15450
 
15451
# PATH needs CR, and LINENO needs CR and PATH.
15452
# Avoid depending upon Character Ranges.
15453
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15454
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15455
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15456
as_cr_digits='0123456789'
15457
as_cr_alnum=$as_cr_Letters$as_cr_digits
15458
 
15459
# The user is always right.
15460
if test "${PATH_SEPARATOR+set}" != set; then
15461
  echo "#! /bin/sh" >conf$$.sh
15462
  echo  "exit 0"   >>conf$$.sh
15463
  chmod +x conf$$.sh
15464
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15465
    PATH_SEPARATOR=';'
15466
  else
15467
    PATH_SEPARATOR=:
15468
  fi
15469
  rm -f conf$$.sh
15470
fi
15471
 
15472
 
15473
  as_lineno_1=$LINENO
15474
  as_lineno_2=$LINENO
15475
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15476
  test "x$as_lineno_1" != "x$as_lineno_2" &&
15477
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15478
  # Find who we are.  Look in the path if we contain no path at all
15479
  # relative or not.
15480
  case $0 in
15481
    *[\\/]* ) as_myself=$0 ;;
15482
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483
for as_dir in $PATH
15484
do
15485
  IFS=$as_save_IFS
15486
  test -z "$as_dir" && as_dir=.
15487
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15488
done
15489
 
15490
       ;;
15491
  esac
15492
  # We did not find ourselves, most probably we were run as `sh COMMAND'
15493
  # in which case we are not to be found in the path.
15494
  if test "x$as_myself" = x; then
15495
    as_myself=$0
15496
  fi
15497
  if test ! -f "$as_myself"; then
15498
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15499
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15500
   { (exit 1); exit 1; }; }
15501
  fi
15502
  case $CONFIG_SHELL in
15503
  '')
15504
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15506
do
15507
  IFS=$as_save_IFS
15508
  test -z "$as_dir" && as_dir=.
15509
  for as_base in sh bash ksh sh5; do
15510
         case $as_dir in
15511
         /*)
15512
           if ("$as_dir/$as_base" -c '
15513
  as_lineno_1=$LINENO
15514
  as_lineno_2=$LINENO
15515
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15516
  test "x$as_lineno_1" != "x$as_lineno_2" &&
15517
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15518
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15519
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15520
             CONFIG_SHELL=$as_dir/$as_base
15521
             export CONFIG_SHELL
15522
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15523
           fi;;
15524
         esac
15525
       done
15526
done
15527
;;
15528
  esac
15529
 
15530
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15531
  # uniformly replaced by the line number.  The first 'sed' inserts a
15532
  # line-number line before each line; the second 'sed' does the real
15533
  # work.  The second script uses 'N' to pair each line-number line
15534
  # with the numbered line, and appends trailing '-' during
15535
  # substitution so that $LINENO is not a special case at line end.
15536
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15537
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15538
  sed '=' <$as_myself |
15539
    sed '
15540
      N
15541
      s,$,-,
15542
      : loop
15543
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15544
      t loop
15545
      s,-$,,
15546
      s,^['$as_cr_digits']*\n,,
15547
    ' >$as_me.lineno &&
15548
  chmod +x $as_me.lineno ||
15549
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15550
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15551
   { (exit 1); exit 1; }; }
15552
 
15553
  # Don't try to exec as it changes $[0], causing all sort of problems
15554
  # (the dirname of $[0] is not the place where we might find the
15555
  # original and so on.  Autoconf is especially sensible to this).
15556
  . ./$as_me.lineno
15557
  # Exit status is that of the last command.
15558
  exit
15559
}
15560
 
15561
 
15562
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15563
  *c*,-n*) ECHO_N= ECHO_C='
15564
' ECHO_T='      ' ;;
15565
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15566
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15567
esac
15568
 
15569
if expr a : '\(a\)' >/dev/null 2>&1; then
15570
  as_expr=expr
15571
else
15572
  as_expr=false
15573
fi
15574
 
15575
rm -f conf$$ conf$$.exe conf$$.file
15576
echo >conf$$.file
15577
if ln -s conf$$.file conf$$ 2>/dev/null; then
15578
  # We could just check for DJGPP; but this test a) works b) is more generic
15579
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15580
  if test -f conf$$.exe; then
15581
    # Don't use ln at all; we don't have any links
15582
    as_ln_s='cp -p'
15583
  else
15584
    as_ln_s='ln -s'
15585
  fi
15586
elif ln conf$$.file conf$$ 2>/dev/null; then
15587
  as_ln_s=ln
15588
else
15589
  as_ln_s='cp -p'
15590
fi
15591
rm -f conf$$ conf$$.exe conf$$.file
15592
 
15593
if mkdir -p . 2>/dev/null; then
15594
  as_mkdir_p=:
15595
else
15596
  test -d ./-p && rmdir ./-p
15597
  as_mkdir_p=false
15598
fi
15599
 
15600
as_executable_p="test -f"
15601
 
15602
# Sed expression to map a string onto a valid CPP name.
15603
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15604
 
15605
# Sed expression to map a string onto a valid variable name.
15606
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15607
 
15608
 
15609
# IFS
15610
# We need space, tab and new line, in precisely that order.
15611
as_nl='
15612
'
15613
IFS="   $as_nl"
15614
 
15615
# CDPATH.
15616
$as_unset CDPATH
15617
 
15618
exec 6>&1
15619
 
15620
# Open the log real soon, to keep \$[0] and so on meaningful, and to
15621
# report actual input values of CONFIG_FILES etc. instead of their
15622
# values after options handling.  Logging --version etc. is OK.
15623
exec 5>>config.log
15624
{
15625
  echo
15626
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15627
## Running $as_me. ##
15628
_ASBOX
15629
} >&5
15630
cat >&5 <<_CSEOF
15631
 
15632
This file was extended by $as_me, which was
15633
generated by GNU Autoconf 2.59.  Invocation command line was
15634
 
15635
  CONFIG_FILES    = $CONFIG_FILES
15636
  CONFIG_HEADERS  = $CONFIG_HEADERS
15637
  CONFIG_LINKS    = $CONFIG_LINKS
15638
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15639
  $ $0 $@
15640
 
15641
_CSEOF
15642
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15643
echo >&5
15644
_ACEOF
15645
 
15646
# Files that config.status was made for.
15647
if test -n "$ac_config_files"; then
15648
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15649
fi
15650
 
15651
if test -n "$ac_config_headers"; then
15652
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15653
fi
15654
 
15655
if test -n "$ac_config_links"; then
15656
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15657
fi
15658
 
15659
if test -n "$ac_config_commands"; then
15660
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15661
fi
15662
 
15663
cat >>$CONFIG_STATUS <<\_ACEOF
15664
 
15665
ac_cs_usage="\
15666
\`$as_me' instantiates files from templates according to the
15667
current configuration.
15668
 
15669
Usage: $0 [OPTIONS] [FILE]...
15670
 
15671
  -h, --help       print this help, then exit
15672
  -V, --version    print version number, then exit
15673
  -q, --quiet      do not print progress messages
15674
  -d, --debug      don't remove temporary files
15675
      --recheck    update $as_me by reconfiguring in the same conditions
15676
  --file=FILE[:TEMPLATE]
15677
                   instantiate the configuration file FILE
15678
  --header=FILE[:TEMPLATE]
15679
                   instantiate the configuration header FILE
15680
 
15681
Configuration files:
15682
$config_files
15683
 
15684
Configuration headers:
15685
$config_headers
15686
 
15687
Configuration commands:
15688
$config_commands
15689
 
15690
Report bugs to ."
15691
_ACEOF
15692
 
15693
cat >>$CONFIG_STATUS <<_ACEOF
15694
ac_cs_version="\\
15695
config.status
15696
configured by $0, generated by GNU Autoconf 2.59,
15697
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15698
 
15699
Copyright (C) 2003 Free Software Foundation, Inc.
15700
This config.status script is free software; the Free Software Foundation
15701
gives unlimited permission to copy, distribute and modify it."
15702
srcdir=$srcdir
15703
INSTALL="$INSTALL"
15704
_ACEOF
15705
 
15706
cat >>$CONFIG_STATUS <<\_ACEOF
15707
# If no file are specified by the user, then we need to provide default
15708
# value.  By we need to know if files were specified by the user.
15709
ac_need_defaults=:
15710
while test $# != 0
15711
do
15712
  case $1 in
15713
  --*=*)
15714
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
15715
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15716
    ac_shift=:
15717
    ;;
15718
  -*)
15719
    ac_option=$1
15720
    ac_optarg=$2
15721
    ac_shift=shift
15722
    ;;
15723
  *) # This is not an option, so the user has probably given explicit
15724
     # arguments.
15725
     ac_option=$1
15726
     ac_need_defaults=false;;
15727
  esac
15728
 
15729
  case $ac_option in
15730
  # Handling of the options.
15731
_ACEOF
15732
cat >>$CONFIG_STATUS <<\_ACEOF
15733
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15734
    ac_cs_recheck=: ;;
15735
  --version | --vers* | -V )
15736
    echo "$ac_cs_version"; exit 0 ;;
15737
  --he | --h)
15738
    # Conflict between --help and --header
15739
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
15740
Try \`$0 --help' for more information." >&5
15741
echo "$as_me: error: ambiguous option: $1
15742
Try \`$0 --help' for more information." >&2;}
15743
   { (exit 1); exit 1; }; };;
15744
  --help | --hel | -h )
15745
    echo "$ac_cs_usage"; exit 0 ;;
15746
  --debug | --d* | -d )
15747
    debug=: ;;
15748
  --file | --fil | --fi | --f )
15749
    $ac_shift
15750
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15751
    ac_need_defaults=false;;
15752
  --header | --heade | --head | --hea )
15753
    $ac_shift
15754
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15755
    ac_need_defaults=false;;
15756
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15757
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15758
    ac_cs_silent=: ;;
15759
 
15760
  # This is an error.
15761
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15762
Try \`$0 --help' for more information." >&5
15763
echo "$as_me: error: unrecognized option: $1
15764
Try \`$0 --help' for more information." >&2;}
15765
   { (exit 1); exit 1; }; } ;;
15766
 
15767
  *) ac_config_targets="$ac_config_targets $1" ;;
15768
 
15769
  esac
15770
  shift
15771
done
15772
 
15773
ac_configure_extra_args=
15774
 
15775
if $ac_cs_silent; then
15776
  exec 6>/dev/null
15777
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15778
fi
15779
 
15780
_ACEOF
15781
cat >>$CONFIG_STATUS <<_ACEOF
15782
if \$ac_cs_recheck; then
15783
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15784
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15785
fi
15786
 
15787
_ACEOF
15788
 
15789
cat >>$CONFIG_STATUS <<_ACEOF
15790
#
15791
# INIT-COMMANDS section.
15792
#
15793
 
15794
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15795
 
15796
 
15797
# The HP-UX ksh and POSIX shell print the target directory to stdout
15798
# if CDPATH is set.
15799
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15800
 
15801
sed_quote_subst='$sed_quote_subst'
15802
double_quote_subst='$double_quote_subst'
15803
delay_variable_subst='$delay_variable_subst'
15804
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15805
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15806
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15807
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15808
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15809
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15810
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15811
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15812
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15813
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15814
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15815
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15816
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15817
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15818
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15819
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15820
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15821
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15822
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15823
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15824
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15825
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15826
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15827
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15828
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15829
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15830
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15831
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15832
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15833
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15834
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15835
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15836
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15837
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15838
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15840
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15841
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15842
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15843
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15844
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15845
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15846
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15847
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"`'
15848
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15849
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15850
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15851
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15852
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15853
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15854
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15855
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15856
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15857
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15858
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15859
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15860
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15861
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15862
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15863
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15864
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15865
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15866
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15867
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15868
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15869
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15872
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15873
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15874
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15875
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15876
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15877
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15878
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15879
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15880
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15881
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15882
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15883
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15884
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15885
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15886
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15887
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15888
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15889
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15890
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15891
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15892
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15893
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15894
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15895
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15896
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15897
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15898
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15899
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15900
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15901
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15902
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15903
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15904
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15905
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15906
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15907
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15908
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15909
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15910
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15911
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15912
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15913
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15914
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15915
 
15916
LTCC='$LTCC'
15917
LTCFLAGS='$LTCFLAGS'
15918
compiler='$compiler_DEFAULT'
15919
 
15920
# Quote evaled strings.
15921
for var in SED \
15922
GREP \
15923
EGREP \
15924
FGREP \
15925
LD \
15926
NM \
15927
LN_S \
15928
lt_SP2NL \
15929
lt_NL2SP \
15930
reload_flag \
15931
deplibs_check_method \
15932
file_magic_cmd \
15933
AR \
15934
AR_FLAGS \
15935
STRIP \
15936
RANLIB \
15937
CC \
15938
CFLAGS \
15939
compiler \
15940
lt_cv_sys_global_symbol_pipe \
15941
lt_cv_sys_global_symbol_to_cdecl \
15942
lt_cv_sys_global_symbol_to_c_name_address \
15943
SHELL \
15944
ECHO \
15945
lt_prog_compiler_no_builtin_flag \
15946
lt_prog_compiler_wl \
15947
lt_prog_compiler_pic \
15948
lt_prog_compiler_static \
15949
lt_cv_prog_compiler_c_o \
15950
need_locks \
15951
shrext_cmds \
15952
export_dynamic_flag_spec \
15953
whole_archive_flag_spec \
15954
compiler_needs_object \
15955
with_gnu_ld \
15956
allow_undefined_flag \
15957
no_undefined_flag \
15958
hardcode_libdir_flag_spec \
15959
hardcode_libdir_flag_spec_ld \
15960
hardcode_libdir_separator \
15961
fix_srcfile_path \
15962
exclude_expsyms \
15963
include_expsyms \
15964
file_list_spec \
15965
variables_saved_for_relink \
15966
libname_spec \
15967
library_names_spec \
15968
soname_spec \
15969
finish_eval \
15970
old_striplib \
15971
striplib; do
15972
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15973
    *[\\\\\\\`\\"\\\$]*)
15974
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15975
      ;;
15976
    *)
15977
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15978
      ;;
15979
    esac
15980
done
15981
 
15982
# Double-quote double-evaled strings.
15983
for var in reload_cmds \
15984
old_postinstall_cmds \
15985
old_postuninstall_cmds \
15986
old_archive_cmds \
15987
extract_expsyms_cmds \
15988
old_archive_from_new_cmds \
15989
old_archive_from_expsyms_cmds \
15990
archive_cmds \
15991
archive_expsym_cmds \
15992
module_cmds \
15993
module_expsym_cmds \
15994
export_symbols_cmds \
15995
prelink_cmds \
15996
postinstall_cmds \
15997
postuninstall_cmds \
15998
finish_cmds \
15999
sys_lib_search_path_spec \
16000
sys_lib_dlsearch_path_spec; do
16001
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16002
    *[\\\\\\\`\\"\\\$]*)
16003
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16004
      ;;
16005
    *)
16006
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16007
      ;;
16008
    esac
16009
done
16010
 
16011
# Fix-up fallback echo if it was mangled by the above quoting rules.
16012
case \$lt_ECHO in
16013
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16014
  ;;
16015
esac
16016
 
16017
ac_aux_dir='$ac_aux_dir'
16018
xsi_shell='$xsi_shell'
16019
lt_shell_append='$lt_shell_append'
16020
 
16021
# See if we are running on zsh, and set the options which allow our
16022
# commands through without removal of \ escapes INIT.
16023
if test -n "\${ZSH_VERSION+set}" ; then
16024
   setopt NO_GLOB_SUBST
16025
fi
16026
 
16027
 
16028
    PACKAGE='$PACKAGE'
16029
    VERSION='$VERSION'
16030
    TIMESTAMP='$TIMESTAMP'
16031
    RM='$RM'
16032
    ofile='$ofile'
16033
 
16034
 
16035
 
16036
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16037
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16038
    # from automake.
16039
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16040
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
16041
    LINGUAS="${LINGUAS-%UNSET%}"
16042
 
16043
 
16044
_ACEOF
16045
 
16046
 
16047
 
16048
cat >>$CONFIG_STATUS <<\_ACEOF
16049
for ac_config_target in $ac_config_targets
16050
do
16051
  case "$ac_config_target" in
16052
  # Handling of arguments.
16053
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16054
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16055
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16056
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16057
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16058
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16059
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16060
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16061
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16062
   { (exit 1); exit 1; }; };;
16063
  esac
16064
done
16065
 
16066
# If the user did not use the arguments to specify the items to instantiate,
16067
# then the envvar interface is used.  Set only those that are not.
16068
# We use the long form for the default assignment because of an extremely
16069
# bizarre bug on SunOS 4.1.3.
16070
if $ac_need_defaults; then
16071
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16072
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16073
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16074
fi
16075
 
16076
# Have a temporary directory for convenience.  Make it in the build tree
16077
# simply because there is no reason to put it here, and in addition,
16078
# creating and moving files from /tmp can sometimes cause problems.
16079
# Create a temporary directory, and hook for its removal unless debugging.
16080
$debug ||
16081
{
16082
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16083
  trap '{ (exit 1); exit 1; }' 1 2 13 15
16084
}
16085
 
16086
# Create a (secure) tmp directory for tmp files.
16087
 
16088
{
16089
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16090
  test -n "$tmp" && test -d "$tmp"
16091
}  ||
16092
{
16093
  tmp=./confstat$$-$RANDOM
16094
  (umask 077 && mkdir $tmp)
16095
} ||
16096
{
16097
   echo "$me: cannot create a temporary directory in ." >&2
16098
   { (exit 1); exit 1; }
16099
}
16100
 
16101
_ACEOF
16102
 
16103
cat >>$CONFIG_STATUS <<_ACEOF
16104
 
16105
#
16106
# CONFIG_FILES section.
16107
#
16108
 
16109
# No need to generate the scripts if there are no CONFIG_FILES.
16110
# This happens for instance when ./config.status config.h
16111
if test -n "\$CONFIG_FILES"; then
16112
  # Protect against being on the right side of a sed subst in config.status.
16113
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16114
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16115
s,@SHELL@,$SHELL,;t t
16116
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16117
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16118
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16119
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16120
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16121
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16122
s,@exec_prefix@,$exec_prefix,;t t
16123
s,@prefix@,$prefix,;t t
16124
s,@program_transform_name@,$program_transform_name,;t t
16125
s,@bindir@,$bindir,;t t
16126
s,@sbindir@,$sbindir,;t t
16127
s,@libexecdir@,$libexecdir,;t t
16128
s,@datadir@,$datadir,;t t
16129
s,@sysconfdir@,$sysconfdir,;t t
16130
s,@sharedstatedir@,$sharedstatedir,;t t
16131
s,@localstatedir@,$localstatedir,;t t
16132
s,@libdir@,$libdir,;t t
16133
s,@includedir@,$includedir,;t t
16134
s,@oldincludedir@,$oldincludedir,;t t
16135
s,@infodir@,$infodir,;t t
16136
s,@mandir@,$mandir,;t t
16137
s,@build_alias@,$build_alias,;t t
16138
s,@host_alias@,$host_alias,;t t
16139
s,@target_alias@,$target_alias,;t t
16140
s,@DEFS@,$DEFS,;t t
16141
s,@ECHO_C@,$ECHO_C,;t t
16142
s,@ECHO_N@,$ECHO_N,;t t
16143
s,@ECHO_T@,$ECHO_T,;t t
16144
s,@LIBS@,$LIBS,;t t
16145
s,@build@,$build,;t t
16146
s,@build_cpu@,$build_cpu,;t t
16147
s,@build_vendor@,$build_vendor,;t t
16148
s,@build_os@,$build_os,;t t
16149
s,@host@,$host,;t t
16150
s,@host_cpu@,$host_cpu,;t t
16151
s,@host_vendor@,$host_vendor,;t t
16152
s,@host_os@,$host_os,;t t
16153
s,@target@,$target,;t t
16154
s,@target_cpu@,$target_cpu,;t t
16155
s,@target_vendor@,$target_vendor,;t t
16156
s,@target_os@,$target_os,;t t
16157
s,@CC@,$CC,;t t
16158
s,@CFLAGS@,$CFLAGS,;t t
16159
s,@LDFLAGS@,$LDFLAGS,;t t
16160
s,@CPPFLAGS@,$CPPFLAGS,;t t
16161
s,@ac_ct_CC@,$ac_ct_CC,;t t
16162
s,@EXEEXT@,$EXEEXT,;t t
16163
s,@OBJEXT@,$OBJEXT,;t t
16164
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16165
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16166
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16167
s,@CYGPATH_W@,$CYGPATH_W,;t t
16168
s,@PACKAGE@,$PACKAGE,;t t
16169
s,@VERSION@,$VERSION,;t t
16170
s,@ACLOCAL@,$ACLOCAL,;t t
16171
s,@AUTOCONF@,$AUTOCONF,;t t
16172
s,@AUTOMAKE@,$AUTOMAKE,;t t
16173
s,@AUTOHEADER@,$AUTOHEADER,;t t
16174
s,@MAKEINFO@,$MAKEINFO,;t t
16175
s,@install_sh@,$install_sh,;t t
16176
s,@STRIP@,$STRIP,;t t
16177
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16178
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16179
s,@mkdir_p@,$mkdir_p,;t t
16180
s,@AWK@,$AWK,;t t
16181
s,@SET_MAKE@,$SET_MAKE,;t t
16182
s,@am__leading_dot@,$am__leading_dot,;t t
16183
s,@AMTAR@,$AMTAR,;t t
16184
s,@am__tar@,$am__tar,;t t
16185
s,@am__untar@,$am__untar,;t t
16186
s,@DEPDIR@,$DEPDIR,;t t
16187
s,@am__include@,$am__include,;t t
16188
s,@am__quote@,$am__quote,;t t
16189
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16190
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16191
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16192
s,@CCDEPMODE@,$CCDEPMODE,;t t
16193
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16194
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16195
s,@CPP@,$CPP,;t t
16196
s,@EGREP@,$EGREP,;t t
16197
s,@LIBTOOL@,$LIBTOOL,;t t
16198
s,@SED@,$SED,;t t
16199
s,@FGREP@,$FGREP,;t t
16200
s,@GREP@,$GREP,;t t
16201
s,@LD@,$LD,;t t
16202
s,@DUMPBIN@,$DUMPBIN,;t t
16203
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
16204
s,@NM@,$NM,;t t
16205
s,@LN_S@,$LN_S,;t t
16206
s,@AR@,$AR,;t t
16207
s,@ac_ct_AR@,$ac_ct_AR,;t t
16208
s,@RANLIB@,$RANLIB,;t t
16209
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16210
s,@lt_ECHO@,$lt_ECHO,;t t
16211
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
16212
s,@NO_WERROR@,$NO_WERROR,;t t
16213
s,@YACC@,$YACC,;t t
16214
s,@LEX@,$LEX,;t t
16215
s,@LEXLIB@,$LEXLIB,;t t
16216
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16217
s,@USE_NLS@,$USE_NLS,;t t
16218
s,@LIBINTL@,$LIBINTL,;t t
16219
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16220
s,@INCINTL@,$INCINTL,;t t
16221
s,@XGETTEXT@,$XGETTEXT,;t t
16222
s,@GMSGFMT@,$GMSGFMT,;t t
16223
s,@POSUB@,$POSUB,;t t
16224
s,@CATALOGS@,$CATALOGS,;t t
16225
s,@DATADIRNAME@,$DATADIRNAME,;t t
16226
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16227
s,@GENCAT@,$GENCAT,;t t
16228
s,@CATOBJEXT@,$CATOBJEXT,;t t
16229
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16230
s,@MSGFMT@,$MSGFMT,;t t
16231
s,@MSGMERGE@,$MSGMERGE,;t t
16232
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16233
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16234
s,@MAINT@,$MAINT,;t t
16235
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
16236
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
16237
s,@HDEFINES@,$HDEFINES,;t t
16238
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16239
s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
16240
s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
16241
s,@ALLOCA@,$ALLOCA,;t t
16242
s,@LIBICONV@,$LIBICONV,;t t
16243
s,@LTLIBICONV@,$LTLIBICONV,;t t
16244
s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
16245
s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
16246
s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
16247
s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
16248
s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
16249
s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
16250
s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t
16251
s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
16252
s,@BUILD_MISC@,$BUILD_MISC,;t t
16253
s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t
16254
s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
16255
s,@EMULATION@,$EMULATION,;t t
16256
s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
16257
s,@datarootdir@,$datarootdir,;t t
16258
s,@docdir@,$docdir,;t t
16259
s,@htmldir@,$htmldir,;t t
16260
s,@LIBOBJS@,$LIBOBJS,;t t
16261
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16262
CEOF
16263
 
16264
_ACEOF
16265
 
16266
  cat >>$CONFIG_STATUS <<\_ACEOF
16267
  # Split the substitutions into bite-sized pieces for seds with
16268
  # small command number limits, like on Digital OSF/1 and HP-UX.
16269
  ac_max_sed_lines=48
16270
  ac_sed_frag=1 # Number of current file.
16271
  ac_beg=1 # First line for current file.
16272
  ac_end=$ac_max_sed_lines # Line after last line for current file.
16273
  ac_more_lines=:
16274
  ac_sed_cmds=
16275
  while $ac_more_lines; do
16276
    if test $ac_beg -gt 1; then
16277
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16278
    else
16279
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16280
    fi
16281
    if test ! -s $tmp/subs.frag; then
16282
      ac_more_lines=false
16283
    else
16284
      # The purpose of the label and of the branching condition is to
16285
      # speed up the sed processing (if there are no `@' at all, there
16286
      # is no need to browse any of the substitutions).
16287
      # These are the two extra sed commands mentioned above.
16288
      (echo ':t
16289
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16290
      if test -z "$ac_sed_cmds"; then
16291
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16292
      else
16293
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16294
      fi
16295
      ac_sed_frag=`expr $ac_sed_frag + 1`
16296
      ac_beg=$ac_end
16297
      ac_end=`expr $ac_end + $ac_max_sed_lines`
16298
    fi
16299
  done
16300
  if test -z "$ac_sed_cmds"; then
16301
    ac_sed_cmds=cat
16302
  fi
16303
fi # test -n "$CONFIG_FILES"
16304
 
16305
_ACEOF
16306
cat >>$CONFIG_STATUS <<\_ACEOF
16307
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16308
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16309
  case $ac_file in
16310
  - | *:- | *:-:* ) # input from stdin
16311
        cat >$tmp/stdin
16312
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16313
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16314
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16315
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16316
  * )   ac_file_in=$ac_file.in ;;
16317
  esac
16318
 
16319
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16320
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16321
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322
         X"$ac_file" : 'X\(//\)[^/]' \| \
16323
         X"$ac_file" : 'X\(//\)$' \| \
16324
         X"$ac_file" : 'X\(/\)' \| \
16325
         .     : '\(.\)' 2>/dev/null ||
16326
echo X"$ac_file" |
16327
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16328
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16329
          /^X\(\/\/\)$/{ s//\1/; q; }
16330
          /^X\(\/\).*/{ s//\1/; q; }
16331
          s/.*/./; q'`
16332
  { if $as_mkdir_p; then
16333
    mkdir -p "$ac_dir"
16334
  else
16335
    as_dir="$ac_dir"
16336
    as_dirs=
16337
    while test ! -d "$as_dir"; do
16338
      as_dirs="$as_dir $as_dirs"
16339
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16340
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16341
         X"$as_dir" : 'X\(//\)[^/]' \| \
16342
         X"$as_dir" : 'X\(//\)$' \| \
16343
         X"$as_dir" : 'X\(/\)' \| \
16344
         .     : '\(.\)' 2>/dev/null ||
16345
echo X"$as_dir" |
16346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16347
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16348
          /^X\(\/\/\)$/{ s//\1/; q; }
16349
          /^X\(\/\).*/{ s//\1/; q; }
16350
          s/.*/./; q'`
16351
    done
16352
    test ! -n "$as_dirs" || mkdir $as_dirs
16353
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16354
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16355
   { (exit 1); exit 1; }; }; }
16356
 
16357
  ac_builddir=.
16358
 
16359
if test "$ac_dir" != .; then
16360
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16361
  # A "../" for each directory in $ac_dir_suffix.
16362
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16363
else
16364
  ac_dir_suffix= ac_top_builddir=
16365
fi
16366
 
16367
case $srcdir in
16368
  .)  # No --srcdir option.  We are building in place.
16369
    ac_srcdir=.
16370
    if test -z "$ac_top_builddir"; then
16371
       ac_top_srcdir=.
16372
    else
16373
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16374
    fi ;;
16375
  [\\/]* | ?:[\\/]* )  # Absolute path.
16376
    ac_srcdir=$srcdir$ac_dir_suffix;
16377
    ac_top_srcdir=$srcdir ;;
16378
  *) # Relative path.
16379
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16380
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16381
esac
16382
 
16383
# Do not use `cd foo && pwd` to compute absolute paths, because
16384
# the directories may not exist.
16385
case `pwd` in
16386
.) ac_abs_builddir="$ac_dir";;
16387
*)
16388
  case "$ac_dir" in
16389
  .) ac_abs_builddir=`pwd`;;
16390
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16391
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16392
  esac;;
16393
esac
16394
case $ac_abs_builddir in
16395
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16396
*)
16397
  case ${ac_top_builddir}. in
16398
  .) ac_abs_top_builddir=$ac_abs_builddir;;
16399
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16400
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16401
  esac;;
16402
esac
16403
case $ac_abs_builddir in
16404
.) ac_abs_srcdir=$ac_srcdir;;
16405
*)
16406
  case $ac_srcdir in
16407
  .) ac_abs_srcdir=$ac_abs_builddir;;
16408
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16409
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16410
  esac;;
16411
esac
16412
case $ac_abs_builddir in
16413
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16414
*)
16415
  case $ac_top_srcdir in
16416
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16417
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16418
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16419
  esac;;
16420
esac
16421
 
16422
 
16423
  case $INSTALL in
16424
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16425
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16426
  esac
16427
 
16428
  if test x"$ac_file" != x-; then
16429
    { echo "$as_me:$LINENO: creating $ac_file" >&5
16430
echo "$as_me: creating $ac_file" >&6;}
16431
    rm -f "$ac_file"
16432
  fi
16433
  # Let's still pretend it is `configure' which instantiates (i.e., don't
16434
  # use $as_me), people would be surprised to read:
16435
  #    /* config.h.  Generated by config.status.  */
16436
  if test x"$ac_file" = x-; then
16437
    configure_input=
16438
  else
16439
    configure_input="$ac_file.  "
16440
  fi
16441
  configure_input=$configure_input"Generated from `echo $ac_file_in |
16442
                                     sed 's,.*/,,'` by configure."
16443
 
16444
  # First look for the input files in the build tree, otherwise in the
16445
  # src tree.
16446
  ac_file_inputs=`IFS=:
16447
    for f in $ac_file_in; do
16448
      case $f in
16449
      -) echo $tmp/stdin ;;
16450
      [\\/$]*)
16451
         # Absolute (can't be DOS-style, as IFS=:)
16452
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16453
echo "$as_me: error: cannot find input file: $f" >&2;}
16454
   { (exit 1); exit 1; }; }
16455
         echo "$f";;
16456
      *) # Relative
16457
         if test -f "$f"; then
16458
           # Build tree
16459
           echo "$f"
16460
         elif test -f "$srcdir/$f"; then
16461
           # Source tree
16462
           echo "$srcdir/$f"
16463
         else
16464
           # /dev/null tree
16465
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16466
echo "$as_me: error: cannot find input file: $f" >&2;}
16467
   { (exit 1); exit 1; }; }
16468
         fi;;
16469
      esac
16470
    done` || { (exit 1); exit 1; }
16471
_ACEOF
16472
cat >>$CONFIG_STATUS <<_ACEOF
16473
  sed "$ac_vpsub
16474
$extrasub
16475
_ACEOF
16476
cat >>$CONFIG_STATUS <<\_ACEOF
16477
:t
16478
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16479
s,@configure_input@,$configure_input,;t t
16480
s,@srcdir@,$ac_srcdir,;t t
16481
s,@abs_srcdir@,$ac_abs_srcdir,;t t
16482
s,@top_srcdir@,$ac_top_srcdir,;t t
16483
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16484
s,@builddir@,$ac_builddir,;t t
16485
s,@abs_builddir@,$ac_abs_builddir,;t t
16486
s,@top_builddir@,$ac_top_builddir,;t t
16487
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16488
s,@INSTALL@,$ac_INSTALL,;t t
16489
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16490
  rm -f $tmp/stdin
16491
  if test x"$ac_file" != x-; then
16492
    mv $tmp/out $ac_file
16493
  else
16494
    cat $tmp/out
16495
    rm -f $tmp/out
16496
  fi
16497
 
16498
done
16499
_ACEOF
16500
cat >>$CONFIG_STATUS <<\_ACEOF
16501
 
16502
#
16503
# CONFIG_HEADER section.
16504
#
16505
 
16506
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16507
# NAME is the cpp macro being defined and VALUE is the value it is being given.
16508
#
16509
# ac_d sets the value in "#define NAME VALUE" lines.
16510
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16511
ac_dB='[         ].*$,\1#\2'
16512
ac_dC=' '
16513
ac_dD=',;t'
16514
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16515
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16516
ac_uB='$,\1#\2define\3'
16517
ac_uC=' '
16518
ac_uD=',;t'
16519
 
16520
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16521
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16522
  case $ac_file in
16523
  - | *:- | *:-:* ) # input from stdin
16524
        cat >$tmp/stdin
16525
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16526
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16527
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16528
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16529
  * )   ac_file_in=$ac_file.in ;;
16530
  esac
16531
 
16532
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16533
echo "$as_me: creating $ac_file" >&6;}
16534
 
16535
  # First look for the input files in the build tree, otherwise in the
16536
  # src tree.
16537
  ac_file_inputs=`IFS=:
16538
    for f in $ac_file_in; do
16539
      case $f in
16540
      -) echo $tmp/stdin ;;
16541
      [\\/$]*)
16542
         # Absolute (can't be DOS-style, as IFS=:)
16543
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16544
echo "$as_me: error: cannot find input file: $f" >&2;}
16545
   { (exit 1); exit 1; }; }
16546
         # Do quote $f, to prevent DOS paths from being IFS'd.
16547
         echo "$f";;
16548
      *) # Relative
16549
         if test -f "$f"; then
16550
           # Build tree
16551
           echo "$f"
16552
         elif test -f "$srcdir/$f"; then
16553
           # Source tree
16554
           echo "$srcdir/$f"
16555
         else
16556
           # /dev/null tree
16557
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16558
echo "$as_me: error: cannot find input file: $f" >&2;}
16559
   { (exit 1); exit 1; }; }
16560
         fi;;
16561
      esac
16562
    done` || { (exit 1); exit 1; }
16563
  # Remove the trailing spaces.
16564
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16565
 
16566
_ACEOF
16567
 
16568
# Transform confdefs.h into two sed scripts, `conftest.defines' and
16569
# `conftest.undefs', that substitutes the proper values into
16570
# config.h.in to produce config.h.  The first handles `#define'
16571
# templates, and the second `#undef' templates.
16572
# And first: Protect against being on the right side of a sed subst in
16573
# config.status.  Protect against being in an unquoted here document
16574
# in config.status.
16575
rm -f conftest.defines conftest.undefs
16576
# Using a here document instead of a string reduces the quoting nightmare.
16577
# Putting comments in sed scripts is not portable.
16578
#
16579
# `end' is used to avoid that the second main sed command (meant for
16580
# 0-ary CPP macros) applies to n-ary macro definitions.
16581
# See the Autoconf documentation for `clear'.
16582
cat >confdef2sed.sed <<\_ACEOF
16583
s/[\\&,]/\\&/g
16584
s,[\\$`],\\&,g
16585
t clear
16586
: clear
16587
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16588
t end
16589
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16590
: end
16591
_ACEOF
16592
# If some macros were called several times there might be several times
16593
# the same #defines, which is useless.  Nevertheless, we may not want to
16594
# sort them, since we want the *last* AC-DEFINE to be honored.
16595
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16596
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16597
rm -f confdef2sed.sed
16598
 
16599
# This sed command replaces #undef with comments.  This is necessary, for
16600
# example, in the case of _POSIX_SOURCE, which is predefined and required
16601
# on some systems where configure will not decide to define it.
16602
cat >>conftest.undefs <<\_ACEOF
16603
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16604
_ACEOF
16605
 
16606
# Break up conftest.defines because some shells have a limit on the size
16607
# of here documents, and old seds have small limits too (100 cmds).
16608
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16609
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16610
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16611
echo '  :' >>$CONFIG_STATUS
16612
rm -f conftest.tail
16613
while grep . conftest.defines >/dev/null
16614
do
16615
  # Write a limited-size here document to $tmp/defines.sed.
16616
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
16617
  # Speed up: don't consider the non `#define' lines.
16618
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16619
  # Work around the forget-to-reset-the-flag bug.
16620
  echo 't clr' >>$CONFIG_STATUS
16621
  echo ': clr' >>$CONFIG_STATUS
16622
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16623
  echo 'CEOF
16624
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
16625
  rm -f $tmp/in
16626
  mv $tmp/out $tmp/in
16627
' >>$CONFIG_STATUS
16628
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16629
  rm -f conftest.defines
16630
  mv conftest.tail conftest.defines
16631
done
16632
rm -f conftest.defines
16633
echo '  fi # grep' >>$CONFIG_STATUS
16634
echo >>$CONFIG_STATUS
16635
 
16636
# Break up conftest.undefs because some shells have a limit on the size
16637
# of here documents, and old seds have small limits too (100 cmds).
16638
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16639
rm -f conftest.tail
16640
while grep . conftest.undefs >/dev/null
16641
do
16642
  # Write a limited-size here document to $tmp/undefs.sed.
16643
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
16644
  # Speed up: don't consider the non `#undef'
16645
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16646
  # Work around the forget-to-reset-the-flag bug.
16647
  echo 't clr' >>$CONFIG_STATUS
16648
  echo ': clr' >>$CONFIG_STATUS
16649
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16650
  echo 'CEOF
16651
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16652
  rm -f $tmp/in
16653
  mv $tmp/out $tmp/in
16654
' >>$CONFIG_STATUS
16655
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16656
  rm -f conftest.undefs
16657
  mv conftest.tail conftest.undefs
16658
done
16659
rm -f conftest.undefs
16660
 
16661
cat >>$CONFIG_STATUS <<\_ACEOF
16662
  # Let's still pretend it is `configure' which instantiates (i.e., don't
16663
  # use $as_me), people would be surprised to read:
16664
  #    /* config.h.  Generated by config.status.  */
16665
  if test x"$ac_file" = x-; then
16666
    echo "/* Generated by configure.  */" >$tmp/config.h
16667
  else
16668
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16669
  fi
16670
  cat $tmp/in >>$tmp/config.h
16671
  rm -f $tmp/in
16672
  if test x"$ac_file" != x-; then
16673
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16674
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16675
echo "$as_me: $ac_file is unchanged" >&6;}
16676
    else
16677
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16678
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679
         X"$ac_file" : 'X\(//\)[^/]' \| \
16680
         X"$ac_file" : 'X\(//\)$' \| \
16681
         X"$ac_file" : 'X\(/\)' \| \
16682
         .     : '\(.\)' 2>/dev/null ||
16683
echo X"$ac_file" |
16684
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686
          /^X\(\/\/\)$/{ s//\1/; q; }
16687
          /^X\(\/\).*/{ s//\1/; q; }
16688
          s/.*/./; q'`
16689
      { if $as_mkdir_p; then
16690
    mkdir -p "$ac_dir"
16691
  else
16692
    as_dir="$ac_dir"
16693
    as_dirs=
16694
    while test ! -d "$as_dir"; do
16695
      as_dirs="$as_dir $as_dirs"
16696
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16697
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16698
         X"$as_dir" : 'X\(//\)[^/]' \| \
16699
         X"$as_dir" : 'X\(//\)$' \| \
16700
         X"$as_dir" : 'X\(/\)' \| \
16701
         .     : '\(.\)' 2>/dev/null ||
16702
echo X"$as_dir" |
16703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16704
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16705
          /^X\(\/\/\)$/{ s//\1/; q; }
16706
          /^X\(\/\).*/{ s//\1/; q; }
16707
          s/.*/./; q'`
16708
    done
16709
    test ! -n "$as_dirs" || mkdir $as_dirs
16710
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16711
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16712
   { (exit 1); exit 1; }; }; }
16713
 
16714
      rm -f $ac_file
16715
      mv $tmp/config.h $ac_file
16716
    fi
16717
  else
16718
    cat $tmp/config.h
16719
    rm -f $tmp/config.h
16720
  fi
16721
# Compute $ac_file's index in $config_headers.
16722
_am_stamp_count=1
16723
for _am_header in $config_headers :; do
16724
  case $_am_header in
16725
    $ac_file | $ac_file:* )
16726
      break ;;
16727
    * )
16728
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16729
  esac
16730
done
16731
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16732
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733
         X$ac_file : 'X\(//\)[^/]' \| \
16734
         X$ac_file : 'X\(//\)$' \| \
16735
         X$ac_file : 'X\(/\)' \| \
16736
         .     : '\(.\)' 2>/dev/null ||
16737
echo X$ac_file |
16738
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16739
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16740
          /^X\(\/\/\)$/{ s//\1/; q; }
16741
          /^X\(\/\).*/{ s//\1/; q; }
16742
          s/.*/./; q'`/stamp-h$_am_stamp_count
16743
done
16744
_ACEOF
16745
cat >>$CONFIG_STATUS <<\_ACEOF
16746
 
16747
#
16748
# CONFIG_COMMANDS section.
16749
#
16750
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16751
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16752
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16753
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16754
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16755
         X"$ac_dest" : 'X\(//\)[^/]' \| \
16756
         X"$ac_dest" : 'X\(//\)$' \| \
16757
         X"$ac_dest" : 'X\(/\)' \| \
16758
         .     : '\(.\)' 2>/dev/null ||
16759
echo X"$ac_dest" |
16760
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16761
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16762
          /^X\(\/\/\)$/{ s//\1/; q; }
16763
          /^X\(\/\).*/{ s//\1/; q; }
16764
          s/.*/./; q'`
16765
  { if $as_mkdir_p; then
16766
    mkdir -p "$ac_dir"
16767
  else
16768
    as_dir="$ac_dir"
16769
    as_dirs=
16770
    while test ! -d "$as_dir"; do
16771
      as_dirs="$as_dir $as_dirs"
16772
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16773
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16774
         X"$as_dir" : 'X\(//\)[^/]' \| \
16775
         X"$as_dir" : 'X\(//\)$' \| \
16776
         X"$as_dir" : 'X\(/\)' \| \
16777
         .     : '\(.\)' 2>/dev/null ||
16778
echo X"$as_dir" |
16779
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16780
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16781
          /^X\(\/\/\)$/{ s//\1/; q; }
16782
          /^X\(\/\).*/{ s//\1/; q; }
16783
          s/.*/./; q'`
16784
    done
16785
    test ! -n "$as_dirs" || mkdir $as_dirs
16786
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16787
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16788
   { (exit 1); exit 1; }; }; }
16789
 
16790
  ac_builddir=.
16791
 
16792
if test "$ac_dir" != .; then
16793
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16794
  # A "../" for each directory in $ac_dir_suffix.
16795
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16796
else
16797
  ac_dir_suffix= ac_top_builddir=
16798
fi
16799
 
16800
case $srcdir in
16801
  .)  # No --srcdir option.  We are building in place.
16802
    ac_srcdir=.
16803
    if test -z "$ac_top_builddir"; then
16804
       ac_top_srcdir=.
16805
    else
16806
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16807
    fi ;;
16808
  [\\/]* | ?:[\\/]* )  # Absolute path.
16809
    ac_srcdir=$srcdir$ac_dir_suffix;
16810
    ac_top_srcdir=$srcdir ;;
16811
  *) # Relative path.
16812
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16813
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16814
esac
16815
 
16816
# Do not use `cd foo && pwd` to compute absolute paths, because
16817
# the directories may not exist.
16818
case `pwd` in
16819
.) ac_abs_builddir="$ac_dir";;
16820
*)
16821
  case "$ac_dir" in
16822
  .) ac_abs_builddir=`pwd`;;
16823
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16824
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16825
  esac;;
16826
esac
16827
case $ac_abs_builddir in
16828
.) ac_abs_top_builddir=${ac_top_builddir}.;;
16829
*)
16830
  case ${ac_top_builddir}. in
16831
  .) ac_abs_top_builddir=$ac_abs_builddir;;
16832
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16833
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16834
  esac;;
16835
esac
16836
case $ac_abs_builddir in
16837
.) ac_abs_srcdir=$ac_srcdir;;
16838
*)
16839
  case $ac_srcdir in
16840
  .) ac_abs_srcdir=$ac_abs_builddir;;
16841
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16842
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16843
  esac;;
16844
esac
16845
case $ac_abs_builddir in
16846
.) ac_abs_top_srcdir=$ac_top_srcdir;;
16847
*)
16848
  case $ac_top_srcdir in
16849
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16850
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16851
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16852
  esac;;
16853
esac
16854
 
16855
 
16856
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16857
echo "$as_me: executing $ac_dest commands" >&6;}
16858
  case $ac_dest in
16859
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16860
  # Strip MF so we end up with the name of the file.
16861
  mf=`echo "$mf" | sed -e 's/:.*$//'`
16862
  # Check whether this is an Automake generated Makefile or not.
16863
  # We used to match only the files named `Makefile.in', but
16864
  # some people rename them; so instead we look at the file content.
16865
  # Grep'ing the first line is not enough: some people post-process
16866
  # each Makefile.in and add a new line on top of each file to say so.
16867
  # So let's grep whole file.
16868
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16869
    dirpart=`(dirname "$mf") 2>/dev/null ||
16870
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16871
         X"$mf" : 'X\(//\)[^/]' \| \
16872
         X"$mf" : 'X\(//\)$' \| \
16873
         X"$mf" : 'X\(/\)' \| \
16874
         .     : '\(.\)' 2>/dev/null ||
16875
echo X"$mf" |
16876
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16877
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16878
          /^X\(\/\/\)$/{ s//\1/; q; }
16879
          /^X\(\/\).*/{ s//\1/; q; }
16880
          s/.*/./; q'`
16881
  else
16882
    continue
16883
  fi
16884
  # Extract the definition of DEPDIR, am__include, and am__quote
16885
  # from the Makefile without running `make'.
16886
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16887
  test -z "$DEPDIR" && continue
16888
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16889
  test -z "am__include" && continue
16890
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16891
  # When using ansi2knr, U may be empty or an underscore; expand it
16892
  U=`sed -n 's/^U = //p' < "$mf"`
16893
  # Find all dependency output files, they are included files with
16894
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16895
  # simplest approach to changing $(DEPDIR) to its actual value in the
16896
  # expansion.
16897
  for file in `sed -n "
16898
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16899
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16900
    # Make sure the directory exists.
16901
    test -f "$dirpart/$file" && continue
16902
    fdir=`(dirname "$file") 2>/dev/null ||
16903
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16904
         X"$file" : 'X\(//\)[^/]' \| \
16905
         X"$file" : 'X\(//\)$' \| \
16906
         X"$file" : 'X\(/\)' \| \
16907
         .     : '\(.\)' 2>/dev/null ||
16908
echo X"$file" |
16909
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16910
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16911
          /^X\(\/\/\)$/{ s//\1/; q; }
16912
          /^X\(\/\).*/{ s//\1/; q; }
16913
          s/.*/./; q'`
16914
    { if $as_mkdir_p; then
16915
    mkdir -p $dirpart/$fdir
16916
  else
16917
    as_dir=$dirpart/$fdir
16918
    as_dirs=
16919
    while test ! -d "$as_dir"; do
16920
      as_dirs="$as_dir $as_dirs"
16921
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16922
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16923
         X"$as_dir" : 'X\(//\)[^/]' \| \
16924
         X"$as_dir" : 'X\(//\)$' \| \
16925
         X"$as_dir" : 'X\(/\)' \| \
16926
         .     : '\(.\)' 2>/dev/null ||
16927
echo X"$as_dir" |
16928
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16929
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16930
          /^X\(\/\/\)$/{ s//\1/; q; }
16931
          /^X\(\/\).*/{ s//\1/; q; }
16932
          s/.*/./; q'`
16933
    done
16934
    test ! -n "$as_dirs" || mkdir $as_dirs
16935
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16936
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16937
   { (exit 1); exit 1; }; }; }
16938
 
16939
    # echo "creating $dirpart/$file"
16940
    echo '# dummy' > "$dirpart/$file"
16941
  done
16942
done
16943
 ;;
16944
    libtool )
16945
 
16946
    # See if we are running on zsh, and set the options which allow our
16947
    # commands through without removal of \ escapes.
16948
    if test -n "${ZSH_VERSION+set}" ; then
16949
      setopt NO_GLOB_SUBST
16950
    fi
16951
 
16952
    cfgfile="${ofile}T"
16953
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16954
    $RM "$cfgfile"
16955
 
16956
    cat <<_LT_EOF >> "$cfgfile"
16957
#! $SHELL
16958
 
16959
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16960
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
16961
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16962
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16963
#
16964
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16965
# 2006, 2007 Free Software Foundation, Inc.
16966
#
16967
# This file is part of GNU Libtool:
16968
# Originally by Gordon Matzigkeit , 1996
16969
#
16970
# This program is free software; you can redistribute it and/or modify
16971
# it under the terms of the GNU General Public License as published by
16972
# the Free Software Foundation; either version 2 of the License, or
16973
# (at your option) any later version.
16974
#
16975
# This program is distributed in the hope that it will be useful, but
16976
# WITHOUT ANY WARRANTY; without even the implied warranty of
16977
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16978
# General Public License for more details.
16979
#
16980
# You should have received a copy of the GNU General Public License
16981
# along with this program; if not, a copy can be downloaded from
16982
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
16983
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16984
# MA 02110-1301, USA.
16985
#
16986
# As a special exception to the GNU General Public License, if you
16987
# distribute this file as part of a program that contains a
16988
# configuration script generated by Autoconf, you may include it under
16989
# the same distribution terms that you use for the rest of that program.
16990
 
16991
 
16992
# The names of the tagged configurations supported by this script.
16993
available_tags=""
16994
 
16995
# ### BEGIN LIBTOOL CONFIG
16996
 
16997
# Which release of libtool.m4 was used?
16998
macro_version=$macro_version
16999
macro_revision=$macro_revision
17000
 
17001
# Whether or not to build shared libraries.
17002
build_libtool_libs=$enable_shared
17003
 
17004
# Whether or not to build static libraries.
17005
build_old_libs=$enable_static
17006
 
17007
# What type of objects to build.
17008
pic_mode=$pic_mode
17009
 
17010
# Whether or not to optimize for fast installation.
17011
fast_install=$enable_fast_install
17012
 
17013
# The host system.
17014
host_alias=$host_alias
17015
host=$host
17016
host_os=$host_os
17017
 
17018
# The build system.
17019
build_alias=$build_alias
17020
build=$build
17021
build_os=$build_os
17022
 
17023
# A sed program that does not truncate output.
17024
SED=$lt_SED
17025
 
17026
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17027
Xsed="\$SED -e 1s/^X//"
17028
 
17029
# A grep program that handles long lines.
17030
GREP=$lt_GREP
17031
 
17032
# An ERE matcher.
17033
EGREP=$lt_EGREP
17034
 
17035
# A literal string matcher.
17036
FGREP=$lt_FGREP
17037
 
17038
# A BSD- or MS-compatible name lister.
17039
NM=$lt_NM
17040
 
17041
# Whether we need soft or hard links.
17042
LN_S=$lt_LN_S
17043
 
17044
# What is the maximum length of a command?
17045
max_cmd_len=$max_cmd_len
17046
 
17047
# Object file suffix (normally "o").
17048
objext=$ac_objext
17049
 
17050
# Executable file suffix (normally "").
17051
exeext=$exeext
17052
 
17053
# whether the shell understands "unset".
17054
lt_unset=$lt_unset
17055
 
17056
# turn spaces into newlines.
17057
SP2NL=$lt_lt_SP2NL
17058
 
17059
# turn newlines into spaces.
17060
NL2SP=$lt_lt_NL2SP
17061
 
17062
# How to create reloadable object files.
17063
reload_flag=$lt_reload_flag
17064
reload_cmds=$lt_reload_cmds
17065
 
17066
# Method to check whether dependent libraries are shared objects.
17067
deplibs_check_method=$lt_deplibs_check_method
17068
 
17069
# Command to use when deplibs_check_method == "file_magic".
17070
file_magic_cmd=$lt_file_magic_cmd
17071
 
17072
# The archiver.
17073
AR=$lt_AR
17074
AR_FLAGS=$lt_AR_FLAGS
17075
 
17076
# A symbol stripping program.
17077
STRIP=$lt_STRIP
17078
 
17079
# Commands used to install an old-style archive.
17080
RANLIB=$lt_RANLIB
17081
old_postinstall_cmds=$lt_old_postinstall_cmds
17082
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17083
 
17084
# A C compiler.
17085
LTCC=$lt_CC
17086
 
17087
# LTCC compiler flags.
17088
LTCFLAGS=$lt_CFLAGS
17089
 
17090
# Take the output of nm and produce a listing of raw symbols and C names.
17091
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17092
 
17093
# Transform the output of nm in a proper C declaration.
17094
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17095
 
17096
# Transform the output of nm in a C name address pair.
17097
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17098
 
17099
# The name of the directory that contains temporary libtool files.
17100
objdir=$objdir
17101
 
17102
# Shell to use when invoking shell scripts.
17103
SHELL=$lt_SHELL
17104
 
17105
# An echo program that does not interpret backslashes.
17106
ECHO=$lt_ECHO
17107
 
17108
# Used to examine libraries when file_magic_cmd begins with "file".
17109
MAGIC_CMD=$MAGIC_CMD
17110
 
17111
# Must we lock files when doing compilation?
17112
need_locks=$lt_need_locks
17113
 
17114
# Old archive suffix (normally "a").
17115
libext=$libext
17116
 
17117
# Shared library suffix (normally ".so").
17118
shrext_cmds=$lt_shrext_cmds
17119
 
17120
# The commands to extract the exported symbol list from a shared archive.
17121
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17122
 
17123
# Variables whose values should be saved in libtool wrapper scripts and
17124
# restored at link time.
17125
variables_saved_for_relink=$lt_variables_saved_for_relink
17126
 
17127
# Do we need the "lib" prefix for modules?
17128
need_lib_prefix=$need_lib_prefix
17129
 
17130
# Do we need a version for libraries?
17131
need_version=$need_version
17132
 
17133
# Library versioning type.
17134
version_type=$version_type
17135
 
17136
# Shared library runtime path variable.
17137
runpath_var=$runpath_var
17138
 
17139
# Shared library path variable.
17140
shlibpath_var=$shlibpath_var
17141
 
17142
# Is shlibpath searched before the hard-coded library search path?
17143
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17144
 
17145
# Format of library name prefix.
17146
libname_spec=$lt_libname_spec
17147
 
17148
# List of archive names.  First name is the real one, the rest are links.
17149
# The last name is the one that the linker finds with -lNAME
17150
library_names_spec=$lt_library_names_spec
17151
 
17152
# The coded name of the library, if different from the real name.
17153
soname_spec=$lt_soname_spec
17154
 
17155
# Command to use after installation of a shared archive.
17156
postinstall_cmds=$lt_postinstall_cmds
17157
 
17158
# Command to use after uninstallation of a shared archive.
17159
postuninstall_cmds=$lt_postuninstall_cmds
17160
 
17161
# Commands used to finish a libtool library installation in a directory.
17162
finish_cmds=$lt_finish_cmds
17163
 
17164
# As "finish_cmds", except a single script fragment to be evaled but
17165
# not shown.
17166
finish_eval=$lt_finish_eval
17167
 
17168
# Whether we should hardcode library paths into libraries.
17169
hardcode_into_libs=$hardcode_into_libs
17170
 
17171
# Compile-time system search path for libraries.
17172
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17173
 
17174
# Run-time system search path for libraries.
17175
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17176
 
17177
# Whether dlopen is supported.
17178
dlopen_support=$enable_dlopen
17179
 
17180
# Whether dlopen of programs is supported.
17181
dlopen_self=$enable_dlopen_self
17182
 
17183
# Whether dlopen of statically linked programs is supported.
17184
dlopen_self_static=$enable_dlopen_self_static
17185
 
17186
# Commands to strip libraries.
17187
old_striplib=$lt_old_striplib
17188
striplib=$lt_striplib
17189
 
17190
 
17191
# The linker used to build libraries.
17192
LD=$lt_LD
17193
 
17194
# Commands used to build an old-style archive.
17195
old_archive_cmds=$lt_old_archive_cmds
17196
 
17197
# A language specific compiler.
17198
CC=$lt_compiler
17199
 
17200
# Is the compiler the GNU compiler?
17201
with_gcc=$GCC
17202
 
17203
# Compiler flag to turn off builtin functions.
17204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17205
 
17206
# How to pass a linker flag through the compiler.
17207
wl=$lt_lt_prog_compiler_wl
17208
 
17209
# Additional compiler flags for building library objects.
17210
pic_flag=$lt_lt_prog_compiler_pic
17211
 
17212
# Compiler flag to prevent dynamic linking.
17213
link_static_flag=$lt_lt_prog_compiler_static
17214
 
17215
# Does compiler simultaneously support -c and -o options?
17216
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17217
 
17218
# Whether or not to add -lc for building shared libraries.
17219
build_libtool_need_lc=$archive_cmds_need_lc
17220
 
17221
# Whether or not to disallow shared libs when runtime libs are static.
17222
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17223
 
17224
# Compiler flag to allow reflexive dlopens.
17225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17226
 
17227
# Compiler flag to generate shared objects directly from archives.
17228
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17229
 
17230
# Whether the compiler copes with passing no objects directly.
17231
compiler_needs_object=$lt_compiler_needs_object
17232
 
17233
# Create an old-style archive from a shared archive.
17234
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17235
 
17236
# Create a temporary old-style archive to link instead of a shared archive.
17237
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17238
 
17239
# Commands used to build a shared archive.
17240
archive_cmds=$lt_archive_cmds
17241
archive_expsym_cmds=$lt_archive_expsym_cmds
17242
 
17243
# Commands used to build a loadable module if different from building
17244
# a shared archive.
17245
module_cmds=$lt_module_cmds
17246
module_expsym_cmds=$lt_module_expsym_cmds
17247
 
17248
# Whether we are building with GNU ld or not.
17249
with_gnu_ld=$lt_with_gnu_ld
17250
 
17251
# Flag that allows shared libraries with undefined symbols to be built.
17252
allow_undefined_flag=$lt_allow_undefined_flag
17253
 
17254
# Flag that enforces no undefined symbols.
17255
no_undefined_flag=$lt_no_undefined_flag
17256
 
17257
# Flag to hardcode \$libdir into a binary during linking.
17258
# This must work even if \$libdir does not exist
17259
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17260
 
17261
# If ld is used when linking, flag to hardcode \$libdir into a binary
17262
# during linking.  This must work even if \$libdir does not exist.
17263
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17264
 
17265
# Whether we need a single "-rpath" flag with a separated argument.
17266
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17267
 
17268
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17269
# DIR into the resulting binary.
17270
hardcode_direct=$hardcode_direct
17271
 
17272
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17273
# DIR into the resulting binary and the resulting library dependency is
17274
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17275
# library is relocated.
17276
hardcode_direct_absolute=$hardcode_direct_absolute
17277
 
17278
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17279
# into the resulting binary.
17280
hardcode_minus_L=$hardcode_minus_L
17281
 
17282
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17283
# into the resulting binary.
17284
hardcode_shlibpath_var=$hardcode_shlibpath_var
17285
 
17286
# Set to "yes" if building a shared library automatically hardcodes DIR
17287
# into the library and all subsequent libraries and executables linked
17288
# against it.
17289
hardcode_automatic=$hardcode_automatic
17290
 
17291
# Set to yes if linker adds runtime paths of dependent libraries
17292
# to runtime path list.
17293
inherit_rpath=$inherit_rpath
17294
 
17295
# Whether libtool must link a program against all its dependency libraries.
17296
link_all_deplibs=$link_all_deplibs
17297
 
17298
# Fix the shell variable \$srcfile for the compiler.
17299
fix_srcfile_path=$lt_fix_srcfile_path
17300
 
17301
# Set to "yes" if exported symbols are required.
17302
always_export_symbols=$always_export_symbols
17303
 
17304
# The commands to list exported symbols.
17305
export_symbols_cmds=$lt_export_symbols_cmds
17306
 
17307
# Symbols that should not be listed in the preloaded symbols.
17308
exclude_expsyms=$lt_exclude_expsyms
17309
 
17310
# Symbols that must always be exported.
17311
include_expsyms=$lt_include_expsyms
17312
 
17313
# Commands necessary for linking programs (against libraries) with templates.
17314
prelink_cmds=$lt_prelink_cmds
17315
 
17316
# Specify filename containing input files.
17317
file_list_spec=$lt_file_list_spec
17318
 
17319
# How to hardcode a shared library path into an executable.
17320
hardcode_action=$hardcode_action
17321
 
17322
# ### END LIBTOOL CONFIG
17323
 
17324
_LT_EOF
17325
 
17326
  case $host_os in
17327
  aix3*)
17328
    cat <<\_LT_EOF >> "$cfgfile"
17329
# AIX sometimes has problems with the GCC collect2 program.  For some
17330
# reason, if we set the COLLECT_NAMES environment variable, the problems
17331
# vanish in a puff of smoke.
17332
if test "X${COLLECT_NAMES+set}" != Xset; then
17333
  COLLECT_NAMES=
17334
  export COLLECT_NAMES
17335
fi
17336
_LT_EOF
17337
    ;;
17338
  esac
17339
 
17340
 
17341
ltmain="$ac_aux_dir/ltmain.sh"
17342
 
17343
 
17344
  # We use sed instead of cat because bash on DJGPP gets confused if
17345
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17346
  # text mode, it properly converts lines to CR/LF.  This bash problem
17347
  # is reportedly fixed, but why not run on old versions too?
17348
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17349
    || (rm -f "$cfgfile"; exit 1)
17350
 
17351
  case $xsi_shell in
17352
  yes)
17353
    cat << \_LT_EOF >> "$cfgfile"
17354
# func_dirname file append nondir_replacement
17355
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17356
# otherwise set result to NONDIR_REPLACEMENT.
17357
func_dirname ()
17358
{
17359
  case ${1} in
17360
    */*) func_dirname_result="${1%/*}${2}" ;;
17361
    *  ) func_dirname_result="${3}" ;;
17362
  esac
17363
}
17364
 
17365
# func_basename file
17366
func_basename ()
17367
{
17368
  func_basename_result="${1##*/}"
17369
}
17370
 
17371
# func_stripname prefix suffix name
17372
# strip PREFIX and SUFFIX off of NAME.
17373
# PREFIX and SUFFIX must not contain globbing or regex special
17374
# characters, hashes, percent signs, but SUFFIX may contain a leading
17375
# dot (in which case that matches only a dot).
17376
func_stripname ()
17377
{
17378
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17379
  # positional parameters, so assign one to ordinary parameter first.
17380
  func_stripname_result=${3}
17381
  func_stripname_result=${func_stripname_result#"${1}"}
17382
  func_stripname_result=${func_stripname_result%"${2}"}
17383
}
17384
 
17385
# func_opt_split
17386
func_opt_split ()
17387
{
17388
  func_opt_split_opt=${1%%=*}
17389
  func_opt_split_arg=${1#*=}
17390
}
17391
 
17392
# func_lo2o object
17393
func_lo2o ()
17394
{
17395
  case ${1} in
17396
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17397
    *)    func_lo2o_result=${1} ;;
17398
  esac
17399
}
17400
_LT_EOF
17401
    ;;
17402
  *) # Bourne compatible functions.
17403
    cat << \_LT_EOF >> "$cfgfile"
17404
# func_dirname file append nondir_replacement
17405
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17406
# otherwise set result to NONDIR_REPLACEMENT.
17407
func_dirname ()
17408
{
17409
  # Extract subdirectory from the argument.
17410
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17411
  if test "X$func_dirname_result" = "X${1}"; then
17412
    func_dirname_result="${3}"
17413
  else
17414
    func_dirname_result="$func_dirname_result${2}"
17415
  fi
17416
}
17417
 
17418
# func_basename file
17419
func_basename ()
17420
{
17421
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17422
}
17423
 
17424
# func_stripname prefix suffix name
17425
# strip PREFIX and SUFFIX off of NAME.
17426
# PREFIX and SUFFIX must not contain globbing or regex special
17427
# characters, hashes, percent signs, but SUFFIX may contain a leading
17428
# dot (in which case that matches only a dot).
17429
# func_strip_suffix prefix name
17430
func_stripname ()
17431
{
17432
  case ${2} in
17433
    .*) func_stripname_result=`$ECHO "X${3}" \
17434
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17435
    *)  func_stripname_result=`$ECHO "X${3}" \
17436
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17437
  esac
17438
}
17439
 
17440
# sed scripts:
17441
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17442
my_sed_long_arg='1s/^-[^=]*=//'
17443
 
17444
# func_opt_split
17445
func_opt_split ()
17446
{
17447
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17448
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17449
}
17450
 
17451
# func_lo2o object
17452
func_lo2o ()
17453
{
17454
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17455
}
17456
_LT_EOF
17457
esac
17458
 
17459
case $lt_shell_append in
17460
  yes)
17461
    cat << \_LT_EOF >> "$cfgfile"
17462
 
17463
# func_append var value
17464
# Append VALUE to the end of shell variable VAR.
17465
func_append ()
17466
{
17467
  eval "$1+=\$2"
17468
}
17469
_LT_EOF
17470
    ;;
17471
  *)
17472
    cat << \_LT_EOF >> "$cfgfile"
17473
 
17474
# func_append var value
17475
# Append VALUE to the end of shell variable VAR.
17476
func_append ()
17477
{
17478
  eval "$1=\$$1\$2"
17479
}
17480
_LT_EOF
17481
    ;;
17482
  esac
17483
 
17484
 
17485
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17486
    || (rm -f "$cfgfile"; exit 1)
17487
 
17488
  mv -f "$cfgfile" "$ofile" ||
17489
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17490
  chmod +x "$ofile"
17491
 
17492
 ;;
17493
    default-1 )
17494
    for ac_file in $CONFIG_FILES; do
17495
      # Support "outfile[:infile[:infile...]]"
17496
      case "$ac_file" in
17497
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17498
      esac
17499
      # PO directories have a Makefile.in generated from Makefile.in.in.
17500
      case "$ac_file" in */Makefile.in)
17501
        # Adjust a relative srcdir.
17502
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17503
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17504
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17505
        # In autoconf-2.13 it is called $ac_given_srcdir.
17506
        # In autoconf-2.50 it is called $srcdir.
17507
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17508
        case "$ac_given_srcdir" in
17509
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17510
          /*) top_srcdir="$ac_given_srcdir" ;;
17511
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17512
        esac
17513
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17514
          rm -f "$ac_dir/POTFILES"
17515
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17516
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17517
          POMAKEFILEDEPS="POTFILES.in"
17518
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17519
          # on $ac_dir but don't depend on user-specified configuration
17520
          # parameters.
17521
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17522
            # The LINGUAS file contains the set of available languages.
17523
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17524
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17525
            fi
17526
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17527
            # Hide the ALL_LINGUAS assigment from automake.
17528
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17529
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17530
          else
17531
            # The set of available languages was given in configure.in.
17532
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17533
          fi
17534
          case "$ac_given_srcdir" in
17535
            .) srcdirpre= ;;
17536
            *) srcdirpre='$(srcdir)/' ;;
17537
          esac
17538
          POFILES=
17539
          GMOFILES=
17540
          UPDATEPOFILES=
17541
          DUMMYPOFILES=
17542
          for lang in $ALL_LINGUAS; do
17543
            POFILES="$POFILES $srcdirpre$lang.po"
17544
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17545
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17546
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17547
          done
17548
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17549
          # environment variable.
17550
          INST_LINGUAS=
17551
          if test -n "$ALL_LINGUAS"; then
17552
            for presentlang in $ALL_LINGUAS; do
17553
              useit=no
17554
              if test "%UNSET%" != "$LINGUAS"; then
17555
                desiredlanguages="$LINGUAS"
17556
              else
17557
                desiredlanguages="$ALL_LINGUAS"
17558
              fi
17559
              for desiredlang in $desiredlanguages; do
17560
                # Use the presentlang catalog if desiredlang is
17561
                #   a. equal to presentlang, or
17562
                #   b. a variant of presentlang (because in this case,
17563
                #      presentlang can be used as a fallback for messages
17564
                #      which are not translated in the desiredlang catalog).
17565
                case "$desiredlang" in
17566
                  "$presentlang"*) useit=yes;;
17567
                esac
17568
              done
17569
              if test $useit = yes; then
17570
                INST_LINGUAS="$INST_LINGUAS $presentlang"
17571
              fi
17572
            done
17573
          fi
17574
          CATALOGS=
17575
          if test -n "$INST_LINGUAS"; then
17576
            for lang in $INST_LINGUAS; do
17577
              CATALOGS="$CATALOGS $lang.gmo"
17578
            done
17579
          fi
17580
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17581
          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"
17582
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17583
            if test -f "$f"; then
17584
              case "$f" in
17585
                *.orig | *.bak | *~) ;;
17586
                *) cat "$f" >> "$ac_dir/Makefile" ;;
17587
              esac
17588
            fi
17589
          done
17590
        fi
17591
        ;;
17592
      esac
17593
    done ;;
17594
  esac
17595
done
17596
_ACEOF
17597
 
17598
cat >>$CONFIG_STATUS <<\_ACEOF
17599
 
17600
{ (exit 0); exit 0; }
17601
_ACEOF
17602
chmod +x $CONFIG_STATUS
17603
ac_clean_files=$ac_clean_files_save
17604
 
17605
 
17606
# configure is writing to config.log, and then calls config.status.
17607
# config.status does its own redirection, appending to config.log.
17608
# Unfortunately, on DOS this fails, as config.log is still kept open
17609
# by configure, so config.status won't be able to write to it; its
17610
# output is simply discarded.  So we exec the FD to /dev/null,
17611
# effectively closing config.log, so it can be properly (re)opened and
17612
# appended to by config.status.  When coming back to configure, we
17613
# need to make the FD available again.
17614
if test "$no_create" != yes; then
17615
  ac_cs_success=:
17616
  ac_config_status_args=
17617
  test "$silent" = yes &&
17618
    ac_config_status_args="$ac_config_status_args --quiet"
17619
  exec 5>/dev/null
17620
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17621
  exec 5>>config.log
17622
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17623
  # would make configure fail if this is the last instruction.
17624
  $ac_cs_success || { (exit 1); exit 1; }
17625
fi
17626
 

powered by: WebSVN 2.1.0

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