2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
10
# Find the correct PATH separator. Usually this is `:', but
11
# DJGPP uses `;' like DOS.
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
UNAME=${UNAME-`uname 2>/dev/null`}
15
*-DOS) lt_cv_sys_path_separator=';' ;;
16
*) lt_cv_sys_path_separator=':' ;;
20
# Check that we are running under the correct shell.
21
SHELL=${CONFIG_SHELL-/bin/sh}
25
# Remove one level of quotation (which was required for Make).
26
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31
if test "X$1" = X--no-reexec; then
32
# Discard the --no-reexec flag, and continue.
34
elif test "X$1" = X--fallback-echo; then
35
# Avoid inline document here, it may be left over
37
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38
# Yippee, $echo works!
41
# Restart under the correct shell.
42
exec $SHELL "$0" --no-reexec ${1+"$@"}
45
if test "X$1" = X--fallback-echo; then
46
# used as fallback echo
54
# The HP-UX ksh and POSIX shell print the target directory to stdout
56
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
if test -z "$ECHO"; then
59
if test "X${echo_test_string+set}" != Xset; then
60
# find a string as large as possible, as long as the shell can cope with it
61
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64
echo_test_string="`eval $cmd`" &&
65
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
72
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74
test "X$echo_testing_string" = "X$echo_test_string"; then
77
# The Solaris, AIX, and Digital Unix default echo programs unquote
78
# backslashes. This makes it impossible to quote backslashes using
79
# echo "$something" | sed 's/\\/\\\\/g'
81
# So, first we look for a working echo in the user's PATH.
83
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84
for dir in $PATH /usr/ucb; do
85
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88
test "X$echo_testing_string" = "X$echo_test_string"; then
95
if test "X$echo" = Xecho; then
96
# We didn't find a better echo, so look for alternatives.
97
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99
test "X$echo_testing_string" = "X$echo_test_string"; then
100
# This shell has a builtin print -r that does the trick.
102
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103
test "X$CONFIG_SHELL" != X/bin/ksh; then
104
# If we have ksh, try running configure again with it.
105
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106
export ORIGINAL_CONFIG_SHELL
107
CONFIG_SHELL=/bin/ksh
109
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
113
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115
test "X$echo_testing_string" = "X$echo_test_string"; then
118
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119
test "X$echo_testing_string" = 'X\t' &&
120
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121
test "X$echo_testing_string" = "X$echo_test_string"; then
122
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124
SHELL="$CONFIG_SHELL"
126
echo="$CONFIG_SHELL $0 --fallback-echo"
127
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128
test "X$echo_testing_string" = 'X\t' &&
129
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130
test "X$echo_testing_string" = "X$echo_test_string"; then
131
echo="$CONFIG_SHELL $0 --fallback-echo"
133
# maybe with a smaller string...
136
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
144
if test "$prev" != 'sed 50q "$0"'; then
145
echo_test_string=`eval $prev`
146
export echo_test_string
147
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149
# Oops. We lost completely, so just stick with echo.
158
# Copy echo and quote the copy suitably for passing to libtool from
159
# the Makefile, instead of quoting the original, which is used later.
161
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165
# Avoid depending upon Character Ranges.
166
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169
as_cr_digits='0123456789'
170
as_cr_alnum=$as_cr_Letters$as_cr_digits
172
# Sed expression to map a string onto a valid variable name.
173
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
# Sed expression to map a string onto a valid CPP name.
176
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
# Be Bourne compatible
179
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
186
# Name of the executable.
187
as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
if expr a : '\(a\)' >/dev/null 2>&1; then
195
rm -f conf$$ conf$$.exe conf$$.file
197
if ln -s conf$$.file conf$$ 2>/dev/null; then
198
# We could just check for DJGPP; but this test a) works b) is more generic
199
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200
if test -f conf$$.exe; then
201
# Don't use ln at all; we don't have any links
206
elif ln conf$$.file conf$$ 2>/dev/null; then
211
rm -f conf$$ conf$$.exe conf$$.file
213
as_executable_p="test -f"
215
# Support unset when possible.
216
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
223
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
233
# We need space, tab and new line, in precisely that order.
239
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
242
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
243
# so uname gets run too.
244
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
ac_default_prefix=/usr/local
255
SHELL=${CONFIG_SHELL-/bin/sh}
257
# Maximum number of lines to put in a shell here document.
258
# This variable seems obsolete. It should probably be removed, and
259
# only ac_max_sed_lines should be used.
260
: ${ac_max_here_lines=38}
262
ac_unique_file="src/main.cc"
264
# Initialize some variables set by options.
266
ac_init_version=false
267
# The variables have the same names as the options, with
268
# dashes changed to underlines.
276
program_transform_name=s,x,x,
284
# Installation directory options.
285
# These are left unexpanded so users can "make install exec_prefix=/foo"
286
# and all the variables that are supposed to be based on exec_prefix
287
# by default will actually change.
288
# Use braces instead of parens because sh, perl, etc. also accept them.
289
bindir='${exec_prefix}/bin'
290
sbindir='${exec_prefix}/sbin'
291
libexecdir='${exec_prefix}/libexec'
292
datadir='${prefix}/share'
293
sysconfdir='${prefix}/etc'
294
sharedstatedir='${prefix}/com'
295
localstatedir='${prefix}/var'
296
libdir='${exec_prefix}/lib'
297
includedir='${prefix}/include'
298
oldincludedir='/usr/include'
299
infodir='${prefix}/info'
300
mandir='${prefix}/man'
302
# Identity of this package.
312
# If the previous option needs an argument, assign it.
313
if test -n "$ac_prev"; then
314
eval "$ac_prev=\$ac_option"
319
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
321
# Accept the important Cygnus configure options, so we can diagnose typos.
325
-bindir | --bindir | --bindi | --bind | --bin | --bi)
327
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
330
-build | --build | --buil | --bui | --bu)
331
ac_prev=build_alias ;;
332
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
333
build_alias=$ac_optarg ;;
335
-cache-file | --cache-file | --cache-fil | --cache-fi \
336
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
337
ac_prev=cache_file ;;
338
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
339
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
340
cache_file=$ac_optarg ;;
343
cache_file=config.cache ;;
345
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349
datadir=$ac_optarg ;;
351
-disable-* | --disable-*)
352
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
353
# Reject names that are not valid shell variable names.
354
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
355
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
356
{ (exit 1); exit 1; }; }
357
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
358
eval "enable_$ac_feature=no" ;;
360
-enable-* | --enable-*)
361
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
362
# Reject names that are not valid shell variable names.
363
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
365
{ (exit 1); exit 1; }; }
366
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
371
eval "enable_$ac_feature='$ac_optarg'" ;;
373
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
374
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
375
| --exec | --exe | --ex)
376
ac_prev=exec_prefix ;;
377
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
378
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
379
| --exec=* | --exe=* | --ex=*)
380
exec_prefix=$ac_optarg ;;
382
-gas | --gas | --ga | --g)
383
# Obsolete; use --with-gas.
386
-help | --help | --hel | --he | -h)
388
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
389
ac_init_help=recursive ;;
390
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
391
ac_init_help=short ;;
393
-host | --host | --hos | --ho)
394
ac_prev=host_alias ;;
395
-host=* | --host=* | --hos=* | --ho=*)
396
host_alias=$ac_optarg ;;
398
-includedir | --includedir | --includedi | --included | --include \
399
| --includ | --inclu | --incl | --inc)
400
ac_prev=includedir ;;
401
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
402
| --includ=* | --inclu=* | --incl=* | --inc=*)
403
includedir=$ac_optarg ;;
405
-infodir | --infodir | --infodi | --infod | --info | --inf)
407
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
408
infodir=$ac_optarg ;;
410
-libdir | --libdir | --libdi | --libd)
412
-libdir=* | --libdir=* | --libdi=* | --libd=*)
415
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
416
| --libexe | --libex | --libe)
417
ac_prev=libexecdir ;;
418
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
419
| --libexe=* | --libex=* | --libe=*)
420
libexecdir=$ac_optarg ;;
422
-localstatedir | --localstatedir | --localstatedi | --localstated \
423
| --localstate | --localstat | --localsta | --localst \
424
| --locals | --local | --loca | --loc | --lo)
425
ac_prev=localstatedir ;;
426
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
427
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
428
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
429
localstatedir=$ac_optarg ;;
431
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
433
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
437
# Obsolete; use --without-fp.
440
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
444
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
445
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
448
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
449
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
450
| --oldin | --oldi | --old | --ol | --o)
451
ac_prev=oldincludedir ;;
452
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
453
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
454
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
455
oldincludedir=$ac_optarg ;;
457
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
459
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
462
-program-prefix | --program-prefix | --program-prefi | --program-pref \
463
| --program-pre | --program-pr | --program-p)
464
ac_prev=program_prefix ;;
465
-program-prefix=* | --program-prefix=* | --program-prefi=* \
466
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
467
program_prefix=$ac_optarg ;;
469
-program-suffix | --program-suffix | --program-suffi | --program-suff \
470
| --program-suf | --program-su | --program-s)
471
ac_prev=program_suffix ;;
472
-program-suffix=* | --program-suffix=* | --program-suffi=* \
473
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
474
program_suffix=$ac_optarg ;;
476
-program-transform-name | --program-transform-name \
477
| --program-transform-nam | --program-transform-na \
478
| --program-transform-n | --program-transform- \
479
| --program-transform | --program-transfor \
480
| --program-transfo | --program-transf \
481
| --program-trans | --program-tran \
482
| --progr-tra | --program-tr | --program-t)
483
ac_prev=program_transform_name ;;
484
-program-transform-name=* | --program-transform-name=* \
485
| --program-transform-nam=* | --program-transform-na=* \
486
| --program-transform-n=* | --program-transform-=* \
487
| --program-transform=* | --program-transfor=* \
488
| --program-transfo=* | --program-transf=* \
489
| --program-trans=* | --program-tran=* \
490
| --progr-tra=* | --program-tr=* | --program-t=*)
491
program_transform_name=$ac_optarg ;;
493
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
494
| -silent | --silent | --silen | --sile | --sil)
497
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
499
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
501
sbindir=$ac_optarg ;;
503
-sharedstatedir | --sharedstatedir | --sharedstatedi \
504
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
505
| --sharedst | --shareds | --shared | --share | --shar \
507
ac_prev=sharedstatedir ;;
508
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
509
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
510
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
512
sharedstatedir=$ac_optarg ;;
514
-site | --site | --sit)
516
-site=* | --site=* | --sit=*)
519
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
521
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
524
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
525
| --syscon | --sysco | --sysc | --sys | --sy)
526
ac_prev=sysconfdir ;;
527
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
528
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
529
sysconfdir=$ac_optarg ;;
531
-target | --target | --targe | --targ | --tar | --ta | --t)
532
ac_prev=target_alias ;;
533
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
534
target_alias=$ac_optarg ;;
536
-v | -verbose | --verbose | --verbos | --verbo | --verb)
539
-version | --version | --versio | --versi | --vers | -V)
543
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
544
# Reject names that are not valid shell variable names.
545
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546
{ echo "$as_me: error: invalid package name: $ac_package" >&2
547
{ (exit 1); exit 1; }; }
548
ac_package=`echo $ac_package| sed 's/-/_/g'`
550
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
553
eval "with_$ac_package='$ac_optarg'" ;;
555
-without-* | --without-*)
556
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
557
# Reject names that are not valid shell variable names.
558
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559
{ echo "$as_me: error: invalid package name: $ac_package" >&2
560
{ (exit 1); exit 1; }; }
561
ac_package=`echo $ac_package | sed 's/-/_/g'`
562
eval "with_$ac_package=no" ;;
565
# Obsolete; use --with-x.
568
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
569
| --x-incl | --x-inc | --x-in | --x-i)
570
ac_prev=x_includes ;;
571
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
572
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
573
x_includes=$ac_optarg ;;
575
-x-libraries | --x-libraries | --x-librarie | --x-librari \
576
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
577
ac_prev=x_libraries ;;
578
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
579
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
580
x_libraries=$ac_optarg ;;
582
-*) { echo "$as_me: error: unrecognized option: $ac_option
583
Try \`$0 --help' for more information." >&2
584
{ (exit 1); exit 1; }; }
588
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
592
{ (exit 1); exit 1; }; }
593
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
594
eval "$ac_envvar='$ac_optarg'"
598
# FIXME: should be removed in autoconf 3.0.
599
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
600
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
601
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
602
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
608
if test -n "$ac_prev"; then
609
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
610
{ echo "$as_me: error: missing argument to $ac_option" >&2
611
{ (exit 1); exit 1; }; }
614
# Be sure to have absolute paths.
615
for ac_var in exec_prefix prefix
617
eval ac_val=$`echo $ac_var`
619
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
620
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
621
{ (exit 1); exit 1; }; };;
625
# Be sure to have absolute paths.
626
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
627
localstatedir libdir includedir oldincludedir infodir mandir
629
eval ac_val=$`echo $ac_var`
631
[\\/$]* | ?:[\\/]* ) ;;
632
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
633
{ (exit 1); exit 1; }; };;
637
# There might be people who depend on the old broken behavior: `$host'
638
# used to hold the argument of --host etc.
643
# FIXME: should be removed in autoconf 3.0.
644
if test "x$host_alias" != x; then
645
if test "x$build_alias" = x; then
646
cross_compiling=maybe
647
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
648
If a cross compiler is detected then cross compile mode will be used." >&2
649
elif test "x$build_alias" != "x$host_alias"; then
655
test -n "$host_alias" && ac_tool_prefix=$host_alias-
657
test "$silent" = yes && exec 6>/dev/null
659
# Find the source files, if location was not specified.
660
if test -z "$srcdir"; then
661
ac_srcdir_defaulted=yes
662
# Try the directory containing this script, then its parent.
664
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
665
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
667
if test ! -r $srcdir/$ac_unique_file; then
671
ac_srcdir_defaulted=no
673
if test ! -r $srcdir/$ac_unique_file; then
674
if test "$ac_srcdir_defaulted" = yes; then
675
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
676
{ (exit 1); exit 1; }; }
678
{ echo "$as_me: error: cannot find sources in $srcdir" >&2
679
{ (exit 1); exit 1; }; }
682
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
683
ac_env_build_alias_set=${build_alias+set}
684
ac_env_build_alias_value=$build_alias
685
ac_cv_env_build_alias_set=${build_alias+set}
686
ac_cv_env_build_alias_value=$build_alias
687
ac_env_host_alias_set=${host_alias+set}
688
ac_env_host_alias_value=$host_alias
689
ac_cv_env_host_alias_set=${host_alias+set}
690
ac_cv_env_host_alias_value=$host_alias
691
ac_env_target_alias_set=${target_alias+set}
692
ac_env_target_alias_value=$target_alias
693
ac_cv_env_target_alias_set=${target_alias+set}
694
ac_cv_env_target_alias_value=$target_alias
695
ac_env_CC_set=${CC+set}
697
ac_cv_env_CC_set=${CC+set}
698
ac_cv_env_CC_value=$CC
699
ac_env_CFLAGS_set=${CFLAGS+set}
700
ac_env_CFLAGS_value=$CFLAGS
701
ac_cv_env_CFLAGS_set=${CFLAGS+set}
702
ac_cv_env_CFLAGS_value=$CFLAGS
703
ac_env_LDFLAGS_set=${LDFLAGS+set}
704
ac_env_LDFLAGS_value=$LDFLAGS
705
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
706
ac_cv_env_LDFLAGS_value=$LDFLAGS
707
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
708
ac_env_CPPFLAGS_value=$CPPFLAGS
709
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
710
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
711
ac_env_CXX_set=${CXX+set}
712
ac_env_CXX_value=$CXX
713
ac_cv_env_CXX_set=${CXX+set}
714
ac_cv_env_CXX_value=$CXX
715
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
716
ac_env_CXXFLAGS_value=$CXXFLAGS
717
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
718
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
719
ac_env_CPP_set=${CPP+set}
720
ac_env_CPP_value=$CPP
721
ac_cv_env_CPP_set=${CPP+set}
722
ac_cv_env_CPP_value=$CPP
725
# Report the --help message.
727
if test "$ac_init_help" = "long"; then
728
# Omit some internal or obsolete options to make the list less imposing.
729
# This message is too long to be a string in the A/UX 3.1 sh.
731
\`configure' configures this package to adapt to many kinds of systems.
733
Usage: $0 [OPTION]... [VAR=VALUE]...
735
To assign environment variables (e.g., CC, CFLAGS...), specify them as
736
VAR=VALUE. See below for descriptions of some of the useful variables.
738
Defaults for the options are specified in brackets.
741
-h, --help display this help and exit
742
--help=short display options specific to this package
743
--help=recursive display the short help of all the included packages
744
-V, --version display version information and exit
745
-q, --quiet, --silent do not print \`checking...' messages
746
--cache-file=FILE cache test results in FILE [disabled]
747
-C, --config-cache alias for \`--cache-file=config.cache'
748
-n, --no-create do not create output files
749
--srcdir=DIR find the sources in DIR [configure dir or \`..']
754
Installation directories:
755
--prefix=PREFIX install architecture-independent files in PREFIX
757
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
760
By default, \`make install' will install all the files in
761
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
762
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
763
for instance \`--prefix=\$HOME'.
765
For better control, use the options below.
767
Fine tuning of the installation directories:
768
--bindir=DIR user executables [EPREFIX/bin]
769
--sbindir=DIR system admin executables [EPREFIX/sbin]
770
--libexecdir=DIR program executables [EPREFIX/libexec]
771
--datadir=DIR read-only architecture-independent data [PREFIX/share]
772
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
773
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
774
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
775
--libdir=DIR object code libraries [EPREFIX/lib]
776
--includedir=DIR C header files [PREFIX/include]
777
--oldincludedir=DIR C header files for non-gcc [/usr/include]
778
--infodir=DIR info documentation [PREFIX/info]
779
--mandir=DIR man documentation [PREFIX/man]
785
--program-prefix=PREFIX prepend PREFIX to installed program names
786
--program-suffix=SUFFIX append SUFFIX to installed program names
787
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
790
--x-includes=DIR X include files are in DIR
791
--x-libraries=DIR X library files are in DIR
794
--build=BUILD configure for building on BUILD [guessed]
795
--host=HOST build programs to run on HOST [BUILD]
799
if test -n "$ac_init_help"; then
804
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
805
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
806
--enable-shared=PKGS build shared libraries default=yes
807
--enable-static=PKGS build static libraries default=yes
808
--enable-fast-install=PKGS optimize for fast installation default=yes
809
--disable-libtool-lock avoid locking (might break parallel builds)
810
--enable-shape enable support of the XShape extension default=yes
811
--enable-slit include code for the Slit default=yes
812
--enable-newspec include code for the new WM Spec (DOES NOTHING)
814
--enable-interlace include code for image interlacing default=yes
815
--enable-ordered-pseudo include code for ordered pseudocolor (8bpp)
817
--enable-debug include verbose debugging code default=no
818
--enable-nls include natural language support default=yes
819
--enable-timed-cache use new timed pixmap cache default=yes
820
--enable-kde KDE slit support default=no
821
--enable-gnome GNOME support default=no
824
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
825
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
826
--with-gnu-ld assume the C compiler uses GNU ld default=no
827
--with-pic try to use only PIC/non-PIC objects default=use both
828
--with-x use the X Window System
830
Some influential environment variables:
831
CC C compiler command
832
CFLAGS C compiler flags
833
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
834
nonstandard directory <lib dir>
835
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
836
headers in a nonstandard directory <include dir>
837
CXX C++ compiler command
838
CXXFLAGS C++ compiler flags
841
Use these variables to override the choices made by `configure' or to help
842
it to find libraries and programs with nonstandard names/locations.
847
if test "$ac_init_help" = "recursive"; then
848
# If there are subdirs, report their specific --help.
850
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
852
# A "../" for each directory in /$ac_subdir.
853
ac_dots=`echo $ac_subdir |
854
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
857
.) # No --srcdir option. We are building in place.
858
ac_sub_srcdir=$srcdir ;;
859
[\\/]* | ?:[\\/]* ) # Absolute path.
860
ac_sub_srcdir=$srcdir/$ac_subdir ;;
862
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
865
# Check for guested configure; otherwise get Cygnus style configure.
866
if test -f $ac_sub_srcdir/configure.gnu; then
868
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive
869
elif test -f $ac_sub_srcdir/configure; then
871
$SHELL $ac_sub_srcdir/configure --help=recursive
872
elif test -f $ac_sub_srcdir/configure.ac ||
873
test -f $ac_sub_srcdir/configure.in; then
877
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
883
test -n "$ac_init_help" && exit 0
884
if $ac_init_version; then
887
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
888
Free Software Foundation, Inc.
889
This configure script is free software; the Free Software Foundation
890
gives unlimited permission to copy, distribute and modify it.
896
This file contains any messages produced by compilers while
897
running configure, to aid debugging if configure makes a mistake.
899
It was created by $as_me, which was
900
generated by GNU Autoconf 2.52. Invocation command line was
911
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
912
uname -m = `(uname -m) 2>/dev/null || echo unknown`
913
uname -r = `(uname -r) 2>/dev/null || echo unknown`
914
uname -s = `(uname -s) 2>/dev/null || echo unknown`
915
uname -v = `(uname -v) 2>/dev/null || echo unknown`
917
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
918
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
920
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
921
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
922
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
923
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
924
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
925
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
926
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
940
# Keep a trace of the command line.
941
# Strip out --no-create and --no-recursion so they do not pile up.
942
# Also quote any args containing shell meta-characters.
948
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
949
| --no-cr | --no-c) ;;
950
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
951
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
952
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
954
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
956
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
959
# Get rid of the leading space.
962
# When interrupted or exit'd, cleanup temporary files, and complete
963
# config.log. We remove comments because anyway the quotes in there
964
# would cause problems or look ugly.
966
# Save into config.log some information that might help in debugging.
968
echo "## ----------------- ##" >&5
969
echo "## Cache variables. ##" >&5
970
echo "## ----------------- ##" >&5
972
# The following way of writing the cache mishandles newlines in values,
975
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
978
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
979
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
983
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
987
sed "/^$/d" confdefs.h >conftest.log
988
if test -s conftest.log; then
990
echo "## ------------ ##" >&5
991
echo "## confdefs.h. ##" >&5
992
echo "## ------------ ##" >&5
997
test "$ac_signal" != 0 &&
998
echo "$as_me: caught signal $ac_signal" >&5
999
echo "$as_me: exit $exit_status" >&5
1000
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1003
for ac_signal in 1 2 13 15; do
1004
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1008
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1009
rm -rf conftest* confdefs.h
1010
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1013
# Let the site file select an alternate cache file if it wants to.
1014
# Prefer explicitly selected file to automatically selected ones.
1015
if test -z "$CONFIG_SITE"; then
1016
if test "x$prefix" != xNONE; then
1017
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1019
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1022
for ac_site_file in $CONFIG_SITE; do
1023
if test -r "$ac_site_file"; then
1024
{ echo "$as_me:1024: loading site script $ac_site_file" >&5
1025
echo "$as_me: loading site script $ac_site_file" >&6;}
1026
cat "$ac_site_file" >&5
1031
if test -r "$cache_file"; then
1032
# Some versions of bash will fail to source /dev/null (special
1033
# files actually), so we avoid doing that.
1034
if test -f "$cache_file"; then
1035
{ echo "$as_me:1035: loading cache $cache_file" >&5
1036
echo "$as_me: loading cache $cache_file" >&6;}
1038
[\\/]* | ?:[\\/]* ) . $cache_file;;
1039
*) . ./$cache_file;;
1043
{ echo "$as_me:1043: creating cache $cache_file" >&5
1044
echo "$as_me: creating cache $cache_file" >&6;}
1048
# Check that the precious variables saved in the cache have kept the same
1050
ac_cache_corrupted=false
1051
for ac_var in `(set) 2>&1 |
1052
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1053
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1054
eval ac_new_set=\$ac_env_${ac_var}_set
1055
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1056
eval ac_new_val="\$ac_env_${ac_var}_value"
1057
case $ac_old_set,$ac_new_set in
1059
{ echo "$as_me:1059: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1060
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1061
ac_cache_corrupted=: ;;
1063
{ echo "$as_me:1063: error: \`$ac_var' was not set in the previous run" >&5
1064
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1065
ac_cache_corrupted=: ;;
1068
if test "x$ac_old_val" != "x$ac_new_val"; then
1069
{ echo "$as_me:1069: error: \`$ac_var' has changed since the previous run:" >&5
1070
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1071
{ echo "$as_me:1071: former value: $ac_old_val" >&5
1072
echo "$as_me: former value: $ac_old_val" >&2;}
1073
{ echo "$as_me:1073: current value: $ac_new_val" >&5
1074
echo "$as_me: current value: $ac_new_val" >&2;}
1075
ac_cache_corrupted=:
1078
# Pass precious variables to config.status. It doesn't matter if
1079
# we pass some twice (in addition to the command line arguments).
1080
if test "$ac_new_set" = set; then
1082
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1083
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1084
ac_configure_args="$ac_configure_args '$ac_arg'"
1086
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1091
if $ac_cache_corrupted; then
1092
{ echo "$as_me:1092: error: changes in the environment can compromise the build" >&5
1093
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1094
{ { echo "$as_me:1094: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1095
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1096
{ (exit 1); exit 1; }; }
1100
ac_cpp='$CPP $CPPFLAGS'
1101
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1102
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1103
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1105
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1106
*c*,-n*) ECHO_N= ECHO_C='
1108
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1109
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1111
echo "#! $SHELL" >conftest.sh
1112
echo "exit 0" >>conftest.sh
1113
chmod +x conftest.sh
1114
if { (echo "$as_me:1114: PATH=\".;.\"; conftest.sh") >&5
1115
(PATH=".;."; conftest.sh) 2>&5
1117
echo "$as_me:1117: \$? = $ac_status" >&5
1118
(exit $ac_status); }; then
1119
ac_path_separator=';'
1123
PATH_SEPARATOR="$ac_path_separator"
1127
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1128
if test -f $ac_dir/install-sh; then
1130
ac_install_sh="$ac_aux_dir/install-sh -c"
1132
elif test -f $ac_dir/install.sh; then
1134
ac_install_sh="$ac_aux_dir/install.sh -c"
1136
elif test -f $ac_dir/shtool; then
1138
ac_install_sh="$ac_aux_dir/shtool install -c"
1142
if test -z "$ac_aux_dir"; then
1143
{ { echo "$as_me:1143: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1144
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1145
{ (exit 1); exit 1; }; }
1147
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1148
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1149
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1151
# Find a good install program. We prefer a C program (faster),
1152
# so one script is as good as another. But avoid the broken or
1153
# incompatible versions:
1154
# SysV /etc/install, /usr/sbin/install
1155
# SunOS /usr/etc/install
1156
# IRIX /sbin/install
1158
# AmigaOS /C/install, which installs bootblocks on floppy discs
1159
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1160
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1161
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1162
# ./install, which can be erroneously created by make from ./install.sh.
1163
echo "$as_me:1163: checking for a BSD compatible install" >&5
1164
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1165
if test -z "$INSTALL"; then
1166
if test "${ac_cv_path_install+set}" = set; then
1167
echo $ECHO_N "(cached) $ECHO_C" >&6
1169
ac_save_IFS=$IFS; IFS=$ac_path_separator
1170
for ac_dir in $PATH; do
1172
# Account for people who put trailing slashes in PATH elements.
1174
/ | ./ | .// | /cC/* \
1175
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1178
# OSF1 and SCO ODT 3.0 have their own names for install.
1179
# Don't use installbsd from OSF since it installs stuff as root
1181
for ac_prog in ginstall scoinst install; do
1182
if $as_executable_p "$ac_dir/$ac_prog"; then
1183
if test $ac_prog = install &&
1184
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1185
# AIX install. It has an incompatible calling convention.
1187
elif test $ac_prog = install &&
1188
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1189
# program-specific install script used by HP pwplus--don't use.
1192
ac_cv_path_install="$ac_dir/$ac_prog -c"
1202
if test "${ac_cv_path_install+set}" = set; then
1203
INSTALL=$ac_cv_path_install
1205
# As a last resort, use the slow shell script. We don't cache a
1206
# path for INSTALL within a source directory, because that will
1207
# break other packages using the cache if that directory is
1208
# removed, or if the path is relative.
1209
INSTALL=$ac_install_sh
1212
echo "$as_me:1212: result: $INSTALL" >&5
1213
echo "${ECHO_T}$INSTALL" >&6
1215
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1216
# It thinks the first close brace ends the variable substitution.
1217
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1219
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1221
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1223
echo "$as_me:1223: checking whether build environment is sane" >&5
1224
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1227
echo timestamp > conftestfile
1228
# Do `set' in a subshell so we don't clobber the current shell's
1229
# arguments. Must try -L first in case configure is actually a
1230
# symlink; some systems play weird games with the mod time of symlinks
1231
# (eg FreeBSD returns the mod time of the symlink's containing
1234
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1235
if test "$*" = "X"; then
1237
set X `ls -t $srcdir/configure conftestfile`
1239
if test "$*" != "X $srcdir/configure conftestfile" \
1240
&& test "$*" != "X conftestfile $srcdir/configure"; then
1242
# If neither matched, then we have a broken ls. This can happen
1243
# if, for instance, CONFIG_SHELL is bash and it inherits a
1244
# broken ls alias from the environment. This has actually
1245
# happened. Such a system could not be considered "sane".
1246
{ { echo "$as_me:1246: error: ls -t appears to fail. Make sure there is not a broken
1247
alias in your environment" >&5
1248
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1249
alias in your environment" >&2;}
1250
{ (exit 1); exit 1; }; }
1253
test "$2" = conftestfile
1259
{ { echo "$as_me:1259: error: newly created file is older than distributed files!
1260
Check your system clock" >&5
1261
echo "$as_me: error: newly created file is older than distributed files!
1262
Check your system clock" >&2;}
1263
{ (exit 1); exit 1; }; }
1266
echo "$as_me:1266: result: yes" >&5
1267
echo "${ECHO_T}yes" >&6
1268
test "$program_prefix" != NONE &&
1269
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1270
# Use a double $ so make ignores it.
1271
test "$program_suffix" != NONE &&
1272
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1273
# Double any \ or $. echo might interpret backslashes.
1274
# By default was `s,x,x', remove it if useless.
1275
cat <<\_ACEOF >conftest.sed
1276
s/[\\$]/&&/g;s/;s,x,x,$//
1278
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1281
echo "$as_me:1281: checking whether ${MAKE-make} sets \${MAKE}" >&5
1282
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1283
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1284
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1285
echo $ECHO_N "(cached) $ECHO_C" >&6
1287
cat >conftest.make <<\EOF
1289
@echo 'ac_maketemp="${MAKE}"'
1291
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1292
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1293
if test -n "$ac_maketemp"; then
1294
eval ac_cv_prog_make_${ac_make}_set=yes
1296
eval ac_cv_prog_make_${ac_make}_set=no
1300
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1301
echo "$as_me:1301: result: yes" >&5
1302
echo "${ECHO_T}yes" >&6
1305
echo "$as_me:1305: result: no" >&5
1306
echo "${ECHO_T}no" >&6
1307
SET_MAKE="MAKE=${MAKE-make}"
1314
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1315
{ { echo "$as_me:1315: error: source directory already configured; run \"make distclean\" there first" >&5
1316
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1317
{ (exit 1); exit 1; }; }
1320
missing_dir=`cd $ac_aux_dir && pwd`
1321
echo "$as_me:1321: checking for working aclocal" >&5
1322
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1323
# Run test in a subshell; some versions of sh will print an error if
1324
# an executable is not found, even if stderr is redirected.
1325
# Redirect stdin to placate older versions of autoconf. Sigh.
1326
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1328
echo "$as_me:1328: result: found" >&5
1329
echo "${ECHO_T}found" >&6
1331
ACLOCAL="$missing_dir/missing aclocal"
1332
echo "$as_me:1332: result: missing" >&5
1333
echo "${ECHO_T}missing" >&6
1336
echo "$as_me:1336: checking for working autoconf" >&5
1337
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1338
# Run test in a subshell; some versions of sh will print an error if
1339
# an executable is not found, even if stderr is redirected.
1340
# Redirect stdin to placate older versions of autoconf. Sigh.
1341
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1343
echo "$as_me:1343: result: found" >&5
1344
echo "${ECHO_T}found" >&6
1346
AUTOCONF="$missing_dir/missing autoconf"
1347
echo "$as_me:1347: result: missing" >&5
1348
echo "${ECHO_T}missing" >&6
1351
echo "$as_me:1351: checking for working automake" >&5
1352
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1353
# Run test in a subshell; some versions of sh will print an error if
1354
# an executable is not found, even if stderr is redirected.
1355
# Redirect stdin to placate older versions of autoconf. Sigh.
1356
if (automake --version) < /dev/null > /dev/null 2>&1; then
1358
echo "$as_me:1358: result: found" >&5
1359
echo "${ECHO_T}found" >&6
1361
AUTOMAKE="$missing_dir/missing automake"
1362
echo "$as_me:1362: result: missing" >&5
1363
echo "${ECHO_T}missing" >&6
1366
echo "$as_me:1366: checking for working autoheader" >&5
1367
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1368
# Run test in a subshell; some versions of sh will print an error if
1369
# an executable is not found, even if stderr is redirected.
1370
# Redirect stdin to placate older versions of autoconf. Sigh.
1371
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1372
AUTOHEADER=autoheader
1373
echo "$as_me:1373: result: found" >&5
1374
echo "${ECHO_T}found" >&6
1376
AUTOHEADER="$missing_dir/missing autoheader"
1377
echo "$as_me:1377: result: missing" >&5
1378
echo "${ECHO_T}missing" >&6
1381
echo "$as_me:1381: checking for working makeinfo" >&5
1382
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1383
# Run test in a subshell; some versions of sh will print an error if
1384
# an executable is not found, even if stderr is redirected.
1385
# Redirect stdin to placate older versions of autoconf. Sigh.
1386
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1388
echo "$as_me:1388: result: found" >&5
1389
echo "${ECHO_T}found" >&6
1391
MAKEINFO="$missing_dir/missing makeinfo"
1392
echo "$as_me:1392: result: missing" >&5
1393
echo "${ECHO_T}missing" >&6
1396
test x$prefix = "xNONE" && prefix="$ac_default_prefix"
1399
ac_cpp='$CPP $CPPFLAGS'
1400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403
if test -n "$ac_tool_prefix"; then
1404
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406
echo "$as_me:1406: checking for $ac_word" >&5
1407
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408
if test "${ac_cv_prog_CC+set}" = set; then
1409
echo $ECHO_N "(cached) $ECHO_C" >&6
1411
if test -n "$CC"; then
1412
ac_cv_prog_CC="$CC" # Let the user override the test.
1414
ac_save_IFS=$IFS; IFS=$ac_path_separator
1416
for ac_dir in $ac_dummy; do
1418
test -z "$ac_dir" && ac_dir=.
1419
$as_executable_p "$ac_dir/$ac_word" || continue
1420
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421
echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1428
if test -n "$CC"; then
1429
echo "$as_me:1429: result: $CC" >&5
1430
echo "${ECHO_T}$CC" >&6
1432
echo "$as_me:1432: result: no" >&5
1433
echo "${ECHO_T}no" >&6
1437
if test -z "$ac_cv_prog_CC"; then
1439
# Extract the first word of "gcc", so it can be a program name with args.
1440
set dummy gcc; ac_word=$2
1441
echo "$as_me:1441: checking for $ac_word" >&5
1442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444
echo $ECHO_N "(cached) $ECHO_C" >&6
1446
if test -n "$ac_ct_CC"; then
1447
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1449
ac_save_IFS=$IFS; IFS=$ac_path_separator
1451
for ac_dir in $ac_dummy; do
1453
test -z "$ac_dir" && ac_dir=.
1454
$as_executable_p "$ac_dir/$ac_word" || continue
1455
ac_cv_prog_ac_ct_CC="gcc"
1456
echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1462
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463
if test -n "$ac_ct_CC"; then
1464
echo "$as_me:1464: result: $ac_ct_CC" >&5
1465
echo "${ECHO_T}$ac_ct_CC" >&6
1467
echo "$as_me:1467: result: no" >&5
1468
echo "${ECHO_T}no" >&6
1476
if test -z "$CC"; then
1477
if test -n "$ac_tool_prefix"; then
1478
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1479
set dummy ${ac_tool_prefix}cc; ac_word=$2
1480
echo "$as_me:1480: checking for $ac_word" >&5
1481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482
if test "${ac_cv_prog_CC+set}" = set; then
1483
echo $ECHO_N "(cached) $ECHO_C" >&6
1485
if test -n "$CC"; then
1486
ac_cv_prog_CC="$CC" # Let the user override the test.
1488
ac_save_IFS=$IFS; IFS=$ac_path_separator
1490
for ac_dir in $ac_dummy; do
1492
test -z "$ac_dir" && ac_dir=.
1493
$as_executable_p "$ac_dir/$ac_word" || continue
1494
ac_cv_prog_CC="${ac_tool_prefix}cc"
1495
echo "$as_me:1495: found $ac_dir/$ac_word" >&5
1502
if test -n "$CC"; then
1503
echo "$as_me:1503: result: $CC" >&5
1504
echo "${ECHO_T}$CC" >&6
1506
echo "$as_me:1506: result: no" >&5
1507
echo "${ECHO_T}no" >&6
1511
if test -z "$ac_cv_prog_CC"; then
1513
# Extract the first word of "cc", so it can be a program name with args.
1514
set dummy cc; ac_word=$2
1515
echo "$as_me:1515: checking for $ac_word" >&5
1516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518
echo $ECHO_N "(cached) $ECHO_C" >&6
1520
if test -n "$ac_ct_CC"; then
1521
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523
ac_save_IFS=$IFS; IFS=$ac_path_separator
1525
for ac_dir in $ac_dummy; do
1527
test -z "$ac_dir" && ac_dir=.
1528
$as_executable_p "$ac_dir/$ac_word" || continue
1529
ac_cv_prog_ac_ct_CC="cc"
1530
echo "$as_me:1530: found $ac_dir/$ac_word" >&5
1536
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1537
if test -n "$ac_ct_CC"; then
1538
echo "$as_me:1538: result: $ac_ct_CC" >&5
1539
echo "${ECHO_T}$ac_ct_CC" >&6
1541
echo "$as_me:1541: result: no" >&5
1542
echo "${ECHO_T}no" >&6
1551
if test -z "$CC"; then
1552
# Extract the first word of "cc", so it can be a program name with args.
1553
set dummy cc; ac_word=$2
1554
echo "$as_me:1554: checking for $ac_word" >&5
1555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556
if test "${ac_cv_prog_CC+set}" = set; then
1557
echo $ECHO_N "(cached) $ECHO_C" >&6
1559
if test -n "$CC"; then
1560
ac_cv_prog_CC="$CC" # Let the user override the test.
1563
ac_save_IFS=$IFS; IFS=$ac_path_separator
1565
for ac_dir in $ac_dummy; do
1567
test -z "$ac_dir" && ac_dir=.
1568
$as_executable_p "$ac_dir/$ac_word" || continue
1569
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1570
ac_prog_rejected=yes
1574
echo "$as_me:1574: found $ac_dir/$ac_word" >&5
1578
if test $ac_prog_rejected = yes; then
1579
# We found a bogon in the path, so make sure we never use it.
1580
set dummy $ac_cv_prog_CC
1582
if test $# != 0; then
1583
# We chose a different compiler from the bogus one.
1584
# However, it has the same basename, so the bogon will be chosen
1585
# first if we set CC to just the basename; use the full file name.
1587
set dummy "$ac_dir/$ac_word" ${1+"$@"}
1595
if test -n "$CC"; then
1596
echo "$as_me:1596: result: $CC" >&5
1597
echo "${ECHO_T}$CC" >&6
1599
echo "$as_me:1599: result: no" >&5
1600
echo "${ECHO_T}no" >&6
1604
if test -z "$CC"; then
1605
if test -n "$ac_tool_prefix"; then
1608
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1609
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1610
echo "$as_me:1610: checking for $ac_word" >&5
1611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612
if test "${ac_cv_prog_CC+set}" = set; then
1613
echo $ECHO_N "(cached) $ECHO_C" >&6
1615
if test -n "$CC"; then
1616
ac_cv_prog_CC="$CC" # Let the user override the test.
1618
ac_save_IFS=$IFS; IFS=$ac_path_separator
1620
for ac_dir in $ac_dummy; do
1622
test -z "$ac_dir" && ac_dir=.
1623
$as_executable_p "$ac_dir/$ac_word" || continue
1624
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1625
echo "$as_me:1625: found $ac_dir/$ac_word" >&5
1632
if test -n "$CC"; then
1633
echo "$as_me:1633: result: $CC" >&5
1634
echo "${ECHO_T}$CC" >&6
1636
echo "$as_me:1636: result: no" >&5
1637
echo "${ECHO_T}no" >&6
1640
test -n "$CC" && break
1643
if test -z "$CC"; then
1647
# Extract the first word of "$ac_prog", so it can be a program name with args.
1648
set dummy $ac_prog; ac_word=$2
1649
echo "$as_me:1649: checking for $ac_word" >&5
1650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652
echo $ECHO_N "(cached) $ECHO_C" >&6
1654
if test -n "$ac_ct_CC"; then
1655
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657
ac_save_IFS=$IFS; IFS=$ac_path_separator
1659
for ac_dir in $ac_dummy; do
1661
test -z "$ac_dir" && ac_dir=.
1662
$as_executable_p "$ac_dir/$ac_word" || continue
1663
ac_cv_prog_ac_ct_CC="$ac_prog"
1664
echo "$as_me:1664: found $ac_dir/$ac_word" >&5
1670
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671
if test -n "$ac_ct_CC"; then
1672
echo "$as_me:1672: result: $ac_ct_CC" >&5
1673
echo "${ECHO_T}$ac_ct_CC" >&6
1675
echo "$as_me:1675: result: no" >&5
1676
echo "${ECHO_T}no" >&6
1679
test -n "$ac_ct_CC" && break
1687
test -z "$CC" && { { echo "$as_me:1687: error: no acceptable cc found in \$PATH" >&5
1688
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1689
{ (exit 1); exit 1; }; }
1691
# Provide some information about the compiler.
1692
echo "$as_me:1692:" \
1693
"checking for C compiler version" >&5
1694
ac_compiler=`set X $ac_compile; echo $2`
1695
{ (eval echo "$as_me:1695: \"$ac_compiler --version </dev/null >&5\"") >&5
1696
(eval $ac_compiler --version </dev/null >&5) 2>&5
1698
echo "$as_me:1698: \$? = $ac_status" >&5
1699
(exit $ac_status); }
1700
{ (eval echo "$as_me:1700: \"$ac_compiler -v </dev/null >&5\"") >&5
1701
(eval $ac_compiler -v </dev/null >&5) 2>&5
1703
echo "$as_me:1703: \$? = $ac_status" >&5
1704
(exit $ac_status); }
1705
{ (eval echo "$as_me:1705: \"$ac_compiler -V </dev/null >&5\"") >&5
1706
(eval $ac_compiler -V </dev/null >&5) 2>&5
1708
echo "$as_me:1708: \$? = $ac_status" >&5
1709
(exit $ac_status); }
1711
cat >conftest.$ac_ext <<_ACEOF
1712
#line 1712 "configure"
1713
#include "confdefs.h"
1723
ac_clean_files_save=$ac_clean_files
1724
ac_clean_files="$ac_clean_files a.out a.exe"
1725
# Try to create an executable without -o first, disregard a.out.
1726
# It will help us diagnose broken compilers, and finding out an intuition
1728
echo "$as_me:1728: checking for C compiler default output" >&5
1729
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1730
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1731
if { (eval echo "$as_me:1731: \"$ac_link_default\"") >&5
1732
(eval $ac_link_default) 2>&5
1734
echo "$as_me:1734: \$? = $ac_status" >&5
1735
(exit $ac_status); }; then
1736
# Find the output, starting from the most likely. This scheme is
1737
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1739
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1740
ls a.out conftest 2>/dev/null;
1741
ls a.* conftest.* 2>/dev/null`; do
1743
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1744
a.out ) # We found the default executable, but exeext='' is most
1747
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1748
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1755
echo "$as_me: failed program was:" >&5
1756
cat conftest.$ac_ext >&5
1757
{ { echo "$as_me:1757: error: C compiler cannot create executables" >&5
1758
echo "$as_me: error: C compiler cannot create executables" >&2;}
1759
{ (exit 77); exit 77; }; }
1762
ac_exeext=$ac_cv_exeext
1763
echo "$as_me:1763: result: $ac_file" >&5
1764
echo "${ECHO_T}$ac_file" >&6
1766
# Check the compiler produces executables we can run. If not, either
1767
# the compiler is broken, or we cross compile.
1768
echo "$as_me:1768: checking whether the C compiler works" >&5
1769
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1770
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1771
# If not cross compiling, check that we can run a simple program.
1772
if test "$cross_compiling" != yes; then
1773
if { ac_try='./$ac_file'
1774
{ (eval echo "$as_me:1774: \"$ac_try\"") >&5
1777
echo "$as_me:1777: \$? = $ac_status" >&5
1778
(exit $ac_status); }; }; then
1781
if test "$cross_compiling" = maybe; then
1784
{ { echo "$as_me:1784: error: cannot run C compiled programs.
1785
If you meant to cross compile, use \`--host'." >&5
1786
echo "$as_me: error: cannot run C compiled programs.
1787
If you meant to cross compile, use \`--host'." >&2;}
1788
{ (exit 1); exit 1; }; }
1792
echo "$as_me:1792: result: yes" >&5
1793
echo "${ECHO_T}yes" >&6
1795
rm -f a.out a.exe conftest$ac_cv_exeext
1796
ac_clean_files=$ac_clean_files_save
1797
# Check the compiler produces executables we can run. If not, either
1798
# the compiler is broken, or we cross compile.
1799
echo "$as_me:1799: checking whether we are cross compiling" >&5
1800
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1801
echo "$as_me:1801: result: $cross_compiling" >&5
1802
echo "${ECHO_T}$cross_compiling" >&6
1804
echo "$as_me:1804: checking for executable suffix" >&5
1805
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1806
if { (eval echo "$as_me:1806: \"$ac_link\"") >&5
1807
(eval $ac_link) 2>&5
1809
echo "$as_me:1809: \$? = $ac_status" >&5
1810
(exit $ac_status); }; then
1811
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1812
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1813
# work properly (i.e., refer to `conftest.exe'), while it won't with
1815
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1817
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1818
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1825
{ { echo "$as_me:1825: error: cannot compute EXEEXT: cannot compile and link" >&5
1826
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1827
{ (exit 1); exit 1; }; }
1830
rm -f conftest$ac_cv_exeext
1831
echo "$as_me:1831: result: $ac_cv_exeext" >&5
1832
echo "${ECHO_T}$ac_cv_exeext" >&6
1834
rm -f conftest.$ac_ext
1835
EXEEXT=$ac_cv_exeext
1837
echo "$as_me:1837: checking for object suffix" >&5
1838
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1839
if test "${ac_cv_objext+set}" = set; then
1840
echo $ECHO_N "(cached) $ECHO_C" >&6
1842
cat >conftest.$ac_ext <<_ACEOF
1843
#line 1843 "configure"
1844
#include "confdefs.h"
1854
rm -f conftest.o conftest.obj
1855
if { (eval echo "$as_me:1855: \"$ac_compile\"") >&5
1856
(eval $ac_compile) 2>&5
1858
echo "$as_me:1858: \$? = $ac_status" >&5
1859
(exit $ac_status); }; then
1860
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1862
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1863
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868
echo "$as_me: failed program was:" >&5
1869
cat conftest.$ac_ext >&5
1870
{ { echo "$as_me:1870: error: cannot compute OBJEXT: cannot compile" >&5
1871
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1872
{ (exit 1); exit 1; }; }
1875
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1877
echo "$as_me:1877: result: $ac_cv_objext" >&5
1878
echo "${ECHO_T}$ac_cv_objext" >&6
1879
OBJEXT=$ac_cv_objext
1881
echo "$as_me:1881: checking whether we are using the GNU C compiler" >&5
1882
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1883
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884
echo $ECHO_N "(cached) $ECHO_C" >&6
1886
cat >conftest.$ac_ext <<_ACEOF
1887
#line 1887 "configure"
1888
#include "confdefs.h"
1901
rm -f conftest.$ac_objext
1902
if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5
1903
(eval $ac_compile) 2>&5
1905
echo "$as_me:1905: \$? = $ac_status" >&5
1906
(exit $ac_status); } &&
1907
{ ac_try='test -s conftest.$ac_objext'
1908
{ (eval echo "$as_me:1908: \"$ac_try\"") >&5
1911
echo "$as_me:1911: \$? = $ac_status" >&5
1912
(exit $ac_status); }; }; then
1915
echo "$as_me: failed program was:" >&5
1916
cat conftest.$ac_ext >&5
1919
rm -f conftest.$ac_objext conftest.$ac_ext
1920
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1923
echo "$as_me:1923: result: $ac_cv_c_compiler_gnu" >&5
1924
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1925
GCC=`test $ac_compiler_gnu = yes && echo yes`
1926
ac_test_CFLAGS=${CFLAGS+set}
1927
ac_save_CFLAGS=$CFLAGS
1929
echo "$as_me:1929: checking whether $CC accepts -g" >&5
1930
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1931
if test "${ac_cv_prog_cc_g+set}" = set; then
1932
echo $ECHO_N "(cached) $ECHO_C" >&6
1934
cat >conftest.$ac_ext <<_ACEOF
1935
#line 1935 "configure"
1936
#include "confdefs.h"
1946
rm -f conftest.$ac_objext
1947
if { (eval echo "$as_me:1947: \"$ac_compile\"") >&5
1948
(eval $ac_compile) 2>&5
1950
echo "$as_me:1950: \$? = $ac_status" >&5
1951
(exit $ac_status); } &&
1952
{ ac_try='test -s conftest.$ac_objext'
1953
{ (eval echo "$as_me:1953: \"$ac_try\"") >&5
1956
echo "$as_me:1956: \$? = $ac_status" >&5
1957
(exit $ac_status); }; }; then
1960
echo "$as_me: failed program was:" >&5
1961
cat conftest.$ac_ext >&5
1964
rm -f conftest.$ac_objext conftest.$ac_ext
1966
echo "$as_me:1966: result: $ac_cv_prog_cc_g" >&5
1967
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1968
if test "$ac_test_CFLAGS" = set; then
1969
CFLAGS=$ac_save_CFLAGS
1970
elif test $ac_cv_prog_cc_g = yes; then
1971
if test "$GCC" = yes; then
1977
if test "$GCC" = yes; then
1983
# Some people use a C++ compiler to compile C. Since we use `exit',
1984
# in C++ we need to declare it. In case someone uses the same compiler
1985
# for both compiling C and C++ we need to have the C++ compiler decide
1986
# the declaration of exit, since it's the most demanding environment.
1987
cat >conftest.$ac_ext <<_ACEOF
1992
rm -f conftest.$ac_objext
1993
if { (eval echo "$as_me:1993: \"$ac_compile\"") >&5
1994
(eval $ac_compile) 2>&5
1996
echo "$as_me:1996: \$? = $ac_status" >&5
1997
(exit $ac_status); } &&
1998
{ ac_try='test -s conftest.$ac_objext'
1999
{ (eval echo "$as_me:1999: \"$ac_try\"") >&5
2002
echo "$as_me:2002: \$? = $ac_status" >&5
2003
(exit $ac_status); }; }; then
2004
for ac_declaration in \
2006
'#include <stdlib.h>' \
2007
'extern "C" void std::exit (int) throw (); using std::exit;' \
2008
'extern "C" void std::exit (int); using std::exit;' \
2009
'extern "C" void exit (int) throw ();' \
2010
'extern "C" void exit (int);' \
2013
cat >conftest.$ac_ext <<_ACEOF
2014
#line 2014 "configure"
2015
#include "confdefs.h"
2026
rm -f conftest.$ac_objext
2027
if { (eval echo "$as_me:2027: \"$ac_compile\"") >&5
2028
(eval $ac_compile) 2>&5
2030
echo "$as_me:2030: \$? = $ac_status" >&5
2031
(exit $ac_status); } &&
2032
{ ac_try='test -s conftest.$ac_objext'
2033
{ (eval echo "$as_me:2033: \"$ac_try\"") >&5
2036
echo "$as_me:2036: \$? = $ac_status" >&5
2037
(exit $ac_status); }; }; then
2040
echo "$as_me: failed program was:" >&5
2041
cat conftest.$ac_ext >&5
2044
rm -f conftest.$ac_objext conftest.$ac_ext
2045
cat >conftest.$ac_ext <<_ACEOF
2046
#line 2046 "configure"
2047
#include "confdefs.h"
2057
rm -f conftest.$ac_objext
2058
if { (eval echo "$as_me:2058: \"$ac_compile\"") >&5
2059
(eval $ac_compile) 2>&5
2061
echo "$as_me:2061: \$? = $ac_status" >&5
2062
(exit $ac_status); } &&
2063
{ ac_try='test -s conftest.$ac_objext'
2064
{ (eval echo "$as_me:2064: \"$ac_try\"") >&5
2067
echo "$as_me:2067: \$? = $ac_status" >&5
2068
(exit $ac_status); }; }; then
2071
echo "$as_me: failed program was:" >&5
2072
cat conftest.$ac_ext >&5
2074
rm -f conftest.$ac_objext conftest.$ac_ext
2077
if test -n "$ac_declaration"; then
2078
echo '#ifdef __cplusplus' >>confdefs.h
2079
echo $ac_declaration >>confdefs.h
2080
echo '#endif' >>confdefs.h
2084
echo "$as_me: failed program was:" >&5
2085
cat conftest.$ac_ext >&5
2087
rm -f conftest.$ac_objext conftest.$ac_ext
2089
ac_cpp='$CPP $CPPFLAGS'
2090
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
ac_cpp='$CXXCPP $CPPFLAGS'
2096
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2097
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2098
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2099
if test -n "$ac_tool_prefix"; then
2100
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2102
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2103
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2104
echo "$as_me:2104: checking for $ac_word" >&5
2105
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106
if test "${ac_cv_prog_CXX+set}" = set; then
2107
echo $ECHO_N "(cached) $ECHO_C" >&6
2109
if test -n "$CXX"; then
2110
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2112
ac_save_IFS=$IFS; IFS=$ac_path_separator
2114
for ac_dir in $ac_dummy; do
2116
test -z "$ac_dir" && ac_dir=.
2117
$as_executable_p "$ac_dir/$ac_word" || continue
2118
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2119
echo "$as_me:2119: found $ac_dir/$ac_word" >&5
2126
if test -n "$CXX"; then
2127
echo "$as_me:2127: result: $CXX" >&5
2128
echo "${ECHO_T}$CXX" >&6
2130
echo "$as_me:2130: result: no" >&5
2131
echo "${ECHO_T}no" >&6
2134
test -n "$CXX" && break
2137
if test -z "$CXX"; then
2139
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2141
# Extract the first word of "$ac_prog", so it can be a program name with args.
2142
set dummy $ac_prog; ac_word=$2
2143
echo "$as_me:2143: checking for $ac_word" >&5
2144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2146
echo $ECHO_N "(cached) $ECHO_C" >&6
2148
if test -n "$ac_ct_CXX"; then
2149
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2151
ac_save_IFS=$IFS; IFS=$ac_path_separator
2153
for ac_dir in $ac_dummy; do
2155
test -z "$ac_dir" && ac_dir=.
2156
$as_executable_p "$ac_dir/$ac_word" || continue
2157
ac_cv_prog_ac_ct_CXX="$ac_prog"
2158
echo "$as_me:2158: found $ac_dir/$ac_word" >&5
2164
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2165
if test -n "$ac_ct_CXX"; then
2166
echo "$as_me:2166: result: $ac_ct_CXX" >&5
2167
echo "${ECHO_T}$ac_ct_CXX" >&6
2169
echo "$as_me:2169: result: no" >&5
2170
echo "${ECHO_T}no" >&6
2173
test -n "$ac_ct_CXX" && break
2175
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2180
# Provide some information about the compiler.
2181
echo "$as_me:2181:" \
2182
"checking for C++ compiler version" >&5
2183
ac_compiler=`set X $ac_compile; echo $2`
2184
{ (eval echo "$as_me:2184: \"$ac_compiler --version </dev/null >&5\"") >&5
2185
(eval $ac_compiler --version </dev/null >&5) 2>&5
2187
echo "$as_me:2187: \$? = $ac_status" >&5
2188
(exit $ac_status); }
2189
{ (eval echo "$as_me:2189: \"$ac_compiler -v </dev/null >&5\"") >&5
2190
(eval $ac_compiler -v </dev/null >&5) 2>&5
2192
echo "$as_me:2192: \$? = $ac_status" >&5
2193
(exit $ac_status); }
2194
{ (eval echo "$as_me:2194: \"$ac_compiler -V </dev/null >&5\"") >&5
2195
(eval $ac_compiler -V </dev/null >&5) 2>&5
2197
echo "$as_me:2197: \$? = $ac_status" >&5
2198
(exit $ac_status); }
2200
echo "$as_me:2200: checking whether we are using the GNU C++ compiler" >&5
2201
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2202
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2203
echo $ECHO_N "(cached) $ECHO_C" >&6
2205
cat >conftest.$ac_ext <<_ACEOF
2206
#line 2206 "configure"
2207
#include "confdefs.h"
2220
rm -f conftest.$ac_objext
2221
if { (eval echo "$as_me:2221: \"$ac_compile\"") >&5
2222
(eval $ac_compile) 2>&5
2224
echo "$as_me:2224: \$? = $ac_status" >&5
2225
(exit $ac_status); } &&
2226
{ ac_try='test -s conftest.$ac_objext'
2227
{ (eval echo "$as_me:2227: \"$ac_try\"") >&5
2230
echo "$as_me:2230: \$? = $ac_status" >&5
2231
(exit $ac_status); }; }; then
2234
echo "$as_me: failed program was:" >&5
2235
cat conftest.$ac_ext >&5
2238
rm -f conftest.$ac_objext conftest.$ac_ext
2239
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2242
echo "$as_me:2242: result: $ac_cv_cxx_compiler_gnu" >&5
2243
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2244
GXX=`test $ac_compiler_gnu = yes && echo yes`
2245
ac_test_CXXFLAGS=${CXXFLAGS+set}
2246
ac_save_CXXFLAGS=$CXXFLAGS
2248
echo "$as_me:2248: checking whether $CXX accepts -g" >&5
2249
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2250
if test "${ac_cv_prog_cxx_g+set}" = set; then
2251
echo $ECHO_N "(cached) $ECHO_C" >&6
2253
cat >conftest.$ac_ext <<_ACEOF
2254
#line 2254 "configure"
2255
#include "confdefs.h"
2265
rm -f conftest.$ac_objext
2266
if { (eval echo "$as_me:2266: \"$ac_compile\"") >&5
2267
(eval $ac_compile) 2>&5
2269
echo "$as_me:2269: \$? = $ac_status" >&5
2270
(exit $ac_status); } &&
2271
{ ac_try='test -s conftest.$ac_objext'
2272
{ (eval echo "$as_me:2272: \"$ac_try\"") >&5
2275
echo "$as_me:2275: \$? = $ac_status" >&5
2276
(exit $ac_status); }; }; then
2277
ac_cv_prog_cxx_g=yes
2279
echo "$as_me: failed program was:" >&5
2280
cat conftest.$ac_ext >&5
2283
rm -f conftest.$ac_objext conftest.$ac_ext
2285
echo "$as_me:2285: result: $ac_cv_prog_cxx_g" >&5
2286
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2287
if test "$ac_test_CXXFLAGS" = set; then
2288
CXXFLAGS=$ac_save_CXXFLAGS
2289
elif test $ac_cv_prog_cxx_g = yes; then
2290
if test "$GXX" = yes; then
2296
if test "$GXX" = yes; then
2302
for ac_declaration in \
2304
'#include <stdlib.h>' \
2305
'extern "C" void std::exit (int) throw (); using std::exit;' \
2306
'extern "C" void std::exit (int); using std::exit;' \
2307
'extern "C" void exit (int) throw ();' \
2308
'extern "C" void exit (int);' \
2311
cat >conftest.$ac_ext <<_ACEOF
2312
#line 2312 "configure"
2313
#include "confdefs.h"
2324
rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:2325: \"$ac_compile\"") >&5
2326
(eval $ac_compile) 2>&5
2328
echo "$as_me:2328: \$? = $ac_status" >&5
2329
(exit $ac_status); } &&
2330
{ ac_try='test -s conftest.$ac_objext'
2331
{ (eval echo "$as_me:2331: \"$ac_try\"") >&5
2334
echo "$as_me:2334: \$? = $ac_status" >&5
2335
(exit $ac_status); }; }; then
2338
echo "$as_me: failed program was:" >&5
2339
cat conftest.$ac_ext >&5
2342
rm -f conftest.$ac_objext conftest.$ac_ext
2343
cat >conftest.$ac_ext <<_ACEOF
2344
#line 2344 "configure"
2345
#include "confdefs.h"
2355
rm -f conftest.$ac_objext
2356
if { (eval echo "$as_me:2356: \"$ac_compile\"") >&5
2357
(eval $ac_compile) 2>&5
2359
echo "$as_me:2359: \$? = $ac_status" >&5
2360
(exit $ac_status); } &&
2361
{ ac_try='test -s conftest.$ac_objext'
2362
{ (eval echo "$as_me:2362: \"$ac_try\"") >&5
2365
echo "$as_me:2365: \$? = $ac_status" >&5
2366
(exit $ac_status); }; }; then
2369
echo "$as_me: failed program was:" >&5
2370
cat conftest.$ac_ext >&5
2372
rm -f conftest.$ac_objext conftest.$ac_ext
2375
if test -n "$ac_declaration"; then
2376
echo '#ifdef __cplusplus' >>confdefs.h
2377
echo $ac_declaration >>confdefs.h
2378
echo '#endif' >>confdefs.h
2382
ac_cpp='$CPP $CPPFLAGS'
2383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
# Find a good install program. We prefer a C program (faster),
2388
# so one script is as good as another. But avoid the broken or
2389
# incompatible versions:
2390
# SysV /etc/install, /usr/sbin/install
2391
# SunOS /usr/etc/install
2392
# IRIX /sbin/install
2394
# AmigaOS /C/install, which installs bootblocks on floppy discs
2395
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398
# ./install, which can be erroneously created by make from ./install.sh.
2399
echo "$as_me:2399: checking for a BSD compatible install" >&5
2400
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2401
if test -z "$INSTALL"; then
2402
if test "${ac_cv_path_install+set}" = set; then
2403
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
ac_save_IFS=$IFS; IFS=$ac_path_separator
2406
for ac_dir in $PATH; do
2408
# Account for people who put trailing slashes in PATH elements.
2410
/ | ./ | .// | /cC/* \
2411
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2414
# OSF1 and SCO ODT 3.0 have their own names for install.
2415
# Don't use installbsd from OSF since it installs stuff as root
2417
for ac_prog in ginstall scoinst install; do
2418
if $as_executable_p "$ac_dir/$ac_prog"; then
2419
if test $ac_prog = install &&
2420
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2421
# AIX install. It has an incompatible calling convention.
2423
elif test $ac_prog = install &&
2424
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2425
# program-specific install script used by HP pwplus--don't use.
2428
ac_cv_path_install="$ac_dir/$ac_prog -c"
2438
if test "${ac_cv_path_install+set}" = set; then
2439
INSTALL=$ac_cv_path_install
2441
# As a last resort, use the slow shell script. We don't cache a
2442
# path for INSTALL within a source directory, because that will
2443
# break other packages using the cache if that directory is
2444
# removed, or if the path is relative.
2445
INSTALL=$ac_install_sh
2448
echo "$as_me:2448: result: $INSTALL" >&5
2449
echo "${ECHO_T}$INSTALL" >&6
2451
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2452
# It thinks the first close brace ends the variable substitution.
2453
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2455
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2457
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2459
# Check whether --enable-shared or --disable-shared was given.
2460
if test "${enable_shared+set}" = set; then
2461
enableval="$enable_shared"
2462
p=${PACKAGE-default}
2464
yes) enable_shared=yes ;;
2465
no) enable_shared=no ;;
2468
# Look at the argument we got. We use all the common list separators.
2469
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2470
for pkg in $enableval; do
2471
if test "X$pkg" = "X$p"; then
2481
# Check whether --enable-static or --disable-static was given.
2482
if test "${enable_static+set}" = set; then
2483
enableval="$enable_static"
2484
p=${PACKAGE-default}
2486
yes) enable_static=yes ;;
2487
no) enable_static=no ;;
2490
# Look at the argument we got. We use all the common list separators.
2491
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2492
for pkg in $enableval; do
2493
if test "X$pkg" = "X$p"; then
2503
# Check whether --enable-fast-install or --disable-fast-install was given.
2504
if test "${enable_fast_install+set}" = set; then
2505
enableval="$enable_fast_install"
2506
p=${PACKAGE-default}
2508
yes) enable_fast_install=yes ;;
2509
no) enable_fast_install=no ;;
2511
enable_fast_install=no
2512
# Look at the argument we got. We use all the common list separators.
2513
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2514
for pkg in $enableval; do
2515
if test "X$pkg" = "X$p"; then
2516
enable_fast_install=yes
2523
enable_fast_install=yes
2525
# Make sure we can run config.sub.
2526
$ac_config_sub sun4 >/dev/null 2>&1 ||
2527
{ { echo "$as_me:2527: error: cannot run $ac_config_sub" >&5
2528
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2529
{ (exit 1); exit 1; }; }
2531
echo "$as_me:2531: checking build system type" >&5
2532
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2533
if test "${ac_cv_build+set}" = set; then
2534
echo $ECHO_N "(cached) $ECHO_C" >&6
2536
ac_cv_build_alias=$build_alias
2537
test -z "$ac_cv_build_alias" &&
2538
ac_cv_build_alias=`$ac_config_guess`
2539
test -z "$ac_cv_build_alias" &&
2540
{ { echo "$as_me:2540: error: cannot guess build type; you must specify one" >&5
2541
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2542
{ (exit 1); exit 1; }; }
2543
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2544
{ { echo "$as_me:2544: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2545
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2546
{ (exit 1); exit 1; }; }
2549
echo "$as_me:2549: result: $ac_cv_build" >&5
2550
echo "${ECHO_T}$ac_cv_build" >&6
2552
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2553
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2554
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2556
echo "$as_me:2556: checking host system type" >&5
2557
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2558
if test "${ac_cv_host+set}" = set; then
2559
echo $ECHO_N "(cached) $ECHO_C" >&6
2561
ac_cv_host_alias=$host_alias
2562
test -z "$ac_cv_host_alias" &&
2563
ac_cv_host_alias=$ac_cv_build_alias
2564
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2565
{ { echo "$as_me:2565: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2566
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2567
{ (exit 1); exit 1; }; }
2570
echo "$as_me:2570: result: $ac_cv_host" >&5
2571
echo "${ECHO_T}$ac_cv_host" >&6
2573
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2574
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2575
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2577
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2578
if test "${with_gnu_ld+set}" = set; then
2579
withval="$with_gnu_ld"
2580
test "$withval" = no || with_gnu_ld=yes
2585
if test "$GCC" = yes; then
2586
# Check if gcc -print-prog-name=ld gives a path.
2587
echo "$as_me:2587: checking for ld used by GCC" >&5
2588
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2591
# gcc leaves a trailing carriage return which upsets mingw
2592
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2594
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2597
# Accept absolute paths.
2598
[\\/]* | [A-Za-z]:[\\/]*)
2599
re_direlt='/[^/][^/]*/\.\./'
2600
# Canonicalize the path of ld
2601
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2602
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2603
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2605
test -z "$LD" && LD="$ac_prog"
2608
# If it fails, then pretend we aren't using GCC.
2612
# If it is relative, then search for the first ld in PATH.
2616
elif test "$with_gnu_ld" = yes; then
2617
echo "$as_me:2617: checking for GNU ld" >&5
2618
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2620
echo "$as_me:2620: checking for non-GNU ld" >&5
2621
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2623
if test "${lt_cv_path_LD+set}" = set; then
2624
echo $ECHO_N "(cached) $ECHO_C" >&6
2626
if test -z "$LD"; then
2627
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2628
for ac_dir in $PATH; do
2629
test -z "$ac_dir" && ac_dir=.
2630
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2631
lt_cv_path_LD="$ac_dir/$ac_prog"
2632
# Check to see if the program is GNU ld. I'd rather use --version,
2633
# but apparently some GNU ld's only accept -v.
2634
# Break only if it was the GNU/non-GNU ld that we prefer.
2635
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2636
test "$with_gnu_ld" != no && break
2638
test "$with_gnu_ld" != yes && break
2644
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2649
if test -n "$LD"; then
2650
echo "$as_me:2650: result: $LD" >&5
2651
echo "${ECHO_T}$LD" >&6
2653
echo "$as_me:2653: result: no" >&5
2654
echo "${ECHO_T}no" >&6
2656
test -z "$LD" && { { echo "$as_me:2656: error: no acceptable ld found in \$PATH" >&5
2657
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2658
{ (exit 1); exit 1; }; }
2659
echo "$as_me:2659: checking if the linker ($LD) is GNU ld" >&5
2660
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2661
if test "${lt_cv_prog_gnu_ld+set}" = set; then
2662
echo $ECHO_N "(cached) $ECHO_C" >&6
2664
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2665
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2666
lt_cv_prog_gnu_ld=yes
2668
lt_cv_prog_gnu_ld=no
2671
echo "$as_me:2671: result: $lt_cv_prog_gnu_ld" >&5
2672
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2673
with_gnu_ld=$lt_cv_prog_gnu_ld
2675
echo "$as_me:2675: checking for $LD option to reload object files" >&5
2676
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2677
if test "${lt_cv_ld_reload_flag+set}" = set; then
2678
echo $ECHO_N "(cached) $ECHO_C" >&6
2680
lt_cv_ld_reload_flag='-r'
2682
echo "$as_me:2682: result: $lt_cv_ld_reload_flag" >&5
2683
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2684
reload_flag=$lt_cv_ld_reload_flag
2685
test -n "$reload_flag" && reload_flag=" $reload_flag"
2687
echo "$as_me:2687: checking for BSD-compatible nm" >&5
2688
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2689
if test "${lt_cv_path_NM+set}" = set; then
2690
echo $ECHO_N "(cached) $ECHO_C" >&6
2692
if test -n "$NM"; then
2693
# Let the user override the test.
2696
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2697
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2698
test -z "$ac_dir" && ac_dir=.
2699
tmp_nm=$ac_dir/${ac_tool_prefix}nm
2700
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2701
# Check to see if the nm accepts a BSD-compat flag.
2702
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2703
# nm: unknown option "B" ignored
2704
# Tru64's nm complains that /dev/null is an invalid object file
2705
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2706
lt_cv_path_NM="$tmp_nm -B"
2708
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2709
lt_cv_path_NM="$tmp_nm -p"
2712
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2713
continue # so that we can try to find one that supports BSD flags
2718
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2723
echo "$as_me:2723: result: $NM" >&5
2724
echo "${ECHO_T}$NM" >&6
2726
echo "$as_me:2726: checking whether ln -s works" >&5
2727
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2729
if test "$LN_S" = "ln -s"; then
2730
echo "$as_me:2730: result: yes" >&5
2731
echo "${ECHO_T}yes" >&6
2733
echo "$as_me:2733: result: no, using $LN_S" >&5
2734
echo "${ECHO_T}no, using $LN_S" >&6
2737
echo "$as_me:2737: checking how to recognise dependant libraries" >&5
2738
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2739
if test "${lt_cv_deplibs_check_method+set}" = set; then
2740
echo $ECHO_N "(cached) $ECHO_C" >&6
2742
lt_cv_file_magic_cmd='$MAGIC_CMD'
2743
lt_cv_file_magic_test_file=
2744
lt_cv_deplibs_check_method='unknown'
2745
# Need to set the preceding variable on all platforms that support
2746
# interlibrary dependencies.
2747
# 'none' -- dependencies not supported.
2748
# `unknown' -- same as none, but documents that we really don't know.
2749
# 'pass_all' -- all dependencies passed with no checks.
2750
# 'test_compile' -- check by making test program.
2751
# ['file_magic [regex]'] -- check by looking for files in library path
2752
# which responds to the $file_magic_cmd with a given egrep regex.
2753
# If you have `file' or equivalent on your system and you're not sure
2754
# whether `pass_all' will *always* work, you probably want this one.
2758
lt_cv_deplibs_check_method=pass_all
2762
lt_cv_deplibs_check_method=pass_all
2766
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2767
lt_cv_file_magic_cmd='/usr/bin/file -L'
2768
lt_cv_file_magic_test_file=/shlib/libc.so
2771
cygwin* | mingw* | pw32*)
2772
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2773
lt_cv_file_magic_cmd='$OBJDUMP -f'
2776
darwin* | rhapsody*)
2777
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2778
lt_cv_file_magic_cmd='/usr/bin/file -L'
2780
rhapsody* | darwin1.[012])
2781
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2784
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2790
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2793
# Not sure whether the presence of OpenBSD here was a mistake.
2794
# Let's accept both of them until this is cleared up.
2795
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2796
lt_cv_file_magic_cmd=/usr/bin/file
2797
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2801
lt_cv_deplibs_check_method=pass_all
2806
lt_cv_deplibs_check_method=pass_all
2810
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2811
lt_cv_file_magic_cmd=/usr/bin/file
2812
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2818
# this will be overridden with pass_all, but let us keep it just in case
2819
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2823
*-32|*"-32 ") libmagic=32-bit;;
2824
*-n32|*"-n32 ") libmagic=N32;;
2825
*-64|*"-64 ") libmagic=64-bit;;
2826
*) libmagic=never-match;;
2828
# this will be overridden with pass_all, but let us keep it just in case
2829
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2832
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2833
lt_cv_deplibs_check_method=pass_all
2836
# This must be Linux ELF.
2839
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2840
lt_cv_deplibs_check_method=pass_all ;;
2842
# glibc up to 2.1.1 does not perform some relocations on ARM
2843
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2845
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2849
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2850
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2852
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2857
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2858
lt_cv_file_magic_cmd=/usr/bin/file
2859
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2863
lt_cv_file_magic_cmd=/usr/bin/file
2864
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2865
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2866
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2868
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2872
osf3* | osf4* | osf5*)
2873
# this will be overridden with pass_all, but let us keep it just in case
2874
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2875
lt_cv_file_magic_test_file=/shlib/libc.so
2876
lt_cv_deplibs_check_method=pass_all
2880
lt_cv_deplibs_check_method=pass_all
2884
lt_cv_deplibs_check_method=pass_all
2885
lt_cv_file_magic_test_file=/lib/libc.so
2888
sysv5uw[78]* | sysv4*uw2*)
2889
lt_cv_deplibs_check_method=pass_all
2892
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2893
case $host_vendor in
2895
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]'
2896
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2899
lt_cv_deplibs_check_method=pass_all
2902
lt_cv_file_magic_cmd='/bin/file'
2903
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2906
lt_cv_file_magic_cmd='/bin/file'
2907
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2908
lt_cv_file_magic_test_file=/lib/libc.so
2915
echo "$as_me:2915: result: $lt_cv_deplibs_check_method" >&5
2916
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2917
file_magic_cmd=$lt_cv_file_magic_cmd
2918
deplibs_check_method=$lt_cv_deplibs_check_method
2920
# Check for command to grab the raw symbol name followed by C symbol from nm.
2921
echo "$as_me:2921: checking command to parse $NM output" >&5
2922
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2923
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2924
echo $ECHO_N "(cached) $ECHO_C" >&6
2927
# These are sane defaults that work on at least a few old systems.
2928
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2930
# Character class describing NM global symbol codes.
2931
symcode='[BCDEGRST]'
2933
# Regexp to match symbols that can be accessed directly from C.
2934
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2936
# Transform the above into a raw symbol and a C symbol.
2937
symxfrm='\1 \2\3 \3'
2939
# Transform an extracted symbol line into a proper C declaration
2940
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2942
# Transform an extracted symbol line into symbol name and symbol address
2943
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2945
# Define system-specific variables.
2950
cygwin* | mingw* | pw32*)
2951
symcode='[ABCDGISTW]'
2953
hpux*) # Its linker distinguishes data from code symbols
2954
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2955
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2958
symcode='[BCDEGRST]'
2968
# Handle CRLF in mingw tool chain
2972
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2976
# If we're using GNU nm, then use its standard symbol codes.
2977
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2978
symcode='[ABCDGISTW]'
2981
# Try without a prefix undercore, then with it.
2982
for ac_symprfx in "" "_"; do
2984
# Write the raw and C identifiers.
2985
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2987
# Check to see that the pipe works correctly.
2990
cat > conftest.$ac_ext <<EOF
2995
void nm_test_func(){}
2999
int main(){nm_test_var='a';nm_test_func();return(0);}
3002
if { (eval echo "$as_me:3002: \"$ac_compile\"") >&5
3003
(eval $ac_compile) 2>&5
3005
echo "$as_me:3005: \$? = $ac_status" >&5
3006
(exit $ac_status); }; then
3007
# Now try to grab the symbols.
3009
if { (eval echo "$as_me:3009: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3010
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3012
echo "$as_me:3012: \$? = $ac_status" >&5
3013
(exit $ac_status); } && test -s "$nlist"; then
3014
# Try sorting and uniquifying the output.
3015
if sort "$nlist" | uniq > "$nlist"T; then
3016
mv -f "$nlist"T "$nlist"
3021
# Make sure that we snagged all the symbols we need.
3022
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3023
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3024
cat <<EOF > conftest.$ac_ext
3030
# Now generate the symbol file.
3031
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3033
cat <<EOF >> conftest.$ac_ext
3034
#if defined (__STDC__) && __STDC__
3035
# define lt_ptr void *
3037
# define lt_ptr char *
3041
/* The mapping between symbol names and symbols. */
3046
lt_preloaded_symbols[] =
3049
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3050
cat <<\EOF >> conftest.$ac_ext
3058
# Now try linking the two files.
3059
mv conftest.$ac_objext conftstm.$ac_objext
3061
save_CFLAGS="$CFLAGS"
3062
LIBS="conftstm.$ac_objext"
3063
CFLAGS="$CFLAGS$no_builtin_flag"
3064
if { (eval echo "$as_me:3064: \"$ac_link\"") >&5
3065
(eval $ac_link) 2>&5
3067
echo "$as_me:3067: \$? = $ac_status" >&5
3068
(exit $ac_status); } && test -s conftest; then
3072
CFLAGS="$save_CFLAGS"
3074
echo "cannot find nm_test_func in $nlist" >&5
3077
echo "cannot find nm_test_var in $nlist" >&5
3080
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3083
echo "$progname: failed program was:" >&5
3084
cat conftest.$ac_ext >&5
3086
rm -f conftest* conftst*
3088
# Do not use the global_symbol_pipe unless it works.
3089
if test "$pipe_works" = yes; then
3092
lt_cv_sys_global_symbol_pipe=
3098
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3099
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3100
global_symbol_to_cdecl=
3101
global_symbol_to_c_name_address=
3103
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3104
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3106
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3108
echo "$as_me:3108: result: failed" >&5
3109
echo "${ECHO_T}failed" >&6
3111
echo "$as_me:3111: result: ok" >&5
3112
echo "${ECHO_T}ok" >&6
3116
ac_cpp='$CPP $CPPFLAGS'
3117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
echo "$as_me:3120: checking how to run the C preprocessor" >&5
3121
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3122
# On Suns, sometimes $CPP names a directory.
3123
if test -n "$CPP" && test -d "$CPP"; then
3126
if test -z "$CPP"; then
3127
if test "${ac_cv_prog_CPP+set}" = set; then
3128
echo $ECHO_N "(cached) $ECHO_C" >&6
3130
# Double quotes because CPP needs to be expanded
3131
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134
for ac_c_preproc_warn_flag in '' yes
3136
# Use a header file that comes with gcc, so configuring glibc
3137
# with a fresh cross-compiler works.
3138
# On the NeXT, cc -E runs the code through the compiler's parser,
3139
# not just through cpp. "Syntax error" is here to catch this case.
3140
cat >conftest.$ac_ext <<_ACEOF
3141
#line 3141 "configure"
3142
#include "confdefs.h"
3146
if { (eval echo "$as_me:3146: \"$ac_cpp conftest.$ac_ext\"") >&5
3147
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3149
egrep -v '^ *\+' conftest.er1 >conftest.err
3151
cat conftest.err >&5
3152
echo "$as_me:3152: \$? = $ac_status" >&5
3153
(exit $ac_status); } >/dev/null; then
3154
if test -s conftest.err; then
3155
ac_cpp_err=$ac_c_preproc_warn_flag
3162
if test -z "$ac_cpp_err"; then
3165
echo "$as_me: failed program was:" >&5
3166
cat conftest.$ac_ext >&5
3167
# Broken: fails on valid input.
3170
rm -f conftest.err conftest.$ac_ext
3172
# OK, works on sane cases. Now check whether non-existent headers
3173
# can be detected and how.
3174
cat >conftest.$ac_ext <<_ACEOF
3175
#line 3175 "configure"
3176
#include "confdefs.h"
3177
#include <ac_nonexistent.h>
3179
if { (eval echo "$as_me:3179: \"$ac_cpp conftest.$ac_ext\"") >&5
3180
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182
egrep -v '^ *\+' conftest.er1 >conftest.err
3184
cat conftest.err >&5
3185
echo "$as_me:3185: \$? = $ac_status" >&5
3186
(exit $ac_status); } >/dev/null; then
3187
if test -s conftest.err; then
3188
ac_cpp_err=$ac_c_preproc_warn_flag
3195
if test -z "$ac_cpp_err"; then
3196
# Broken: success on invalid input.
3199
echo "$as_me: failed program was:" >&5
3200
cat conftest.$ac_ext >&5
3201
# Passes both tests.
3205
rm -f conftest.err conftest.$ac_ext
3208
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209
rm -f conftest.err conftest.$ac_ext
3210
if $ac_preproc_ok; then
3222
echo "$as_me:3222: result: $CPP" >&5
3223
echo "${ECHO_T}$CPP" >&6
3225
for ac_c_preproc_warn_flag in '' yes
3227
# Use a header file that comes with gcc, so configuring glibc
3228
# with a fresh cross-compiler works.
3229
# On the NeXT, cc -E runs the code through the compiler's parser,
3230
# not just through cpp. "Syntax error" is here to catch this case.
3231
cat >conftest.$ac_ext <<_ACEOF
3232
#line 3232 "configure"
3233
#include "confdefs.h"
3237
if { (eval echo "$as_me:3237: \"$ac_cpp conftest.$ac_ext\"") >&5
3238
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240
egrep -v '^ *\+' conftest.er1 >conftest.err
3242
cat conftest.err >&5
3243
echo "$as_me:3243: \$? = $ac_status" >&5
3244
(exit $ac_status); } >/dev/null; then
3245
if test -s conftest.err; then
3246
ac_cpp_err=$ac_c_preproc_warn_flag
3253
if test -z "$ac_cpp_err"; then
3256
echo "$as_me: failed program was:" >&5
3257
cat conftest.$ac_ext >&5
3258
# Broken: fails on valid input.
3261
rm -f conftest.err conftest.$ac_ext
3263
# OK, works on sane cases. Now check whether non-existent headers
3264
# can be detected and how.
3265
cat >conftest.$ac_ext <<_ACEOF
3266
#line 3266 "configure"
3267
#include "confdefs.h"
3268
#include <ac_nonexistent.h>
3270
if { (eval echo "$as_me:3270: \"$ac_cpp conftest.$ac_ext\"") >&5
3271
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3273
egrep -v '^ *\+' conftest.er1 >conftest.err
3275
cat conftest.err >&5
3276
echo "$as_me:3276: \$? = $ac_status" >&5
3277
(exit $ac_status); } >/dev/null; then
3278
if test -s conftest.err; then
3279
ac_cpp_err=$ac_c_preproc_warn_flag
3286
if test -z "$ac_cpp_err"; then
3287
# Broken: success on invalid input.
3290
echo "$as_me: failed program was:" >&5
3291
cat conftest.$ac_ext >&5
3292
# Passes both tests.
3296
rm -f conftest.err conftest.$ac_ext
3299
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300
rm -f conftest.err conftest.$ac_ext
3301
if $ac_preproc_ok; then
3304
{ { echo "$as_me:3304: error: C preprocessor \"$CPP\" fails sanity check" >&5
3305
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3306
{ (exit 1); exit 1; }; }
3310
ac_cpp='$CPP $CPPFLAGS'
3311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3315
for ac_header in dlfcn.h
3317
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3318
echo "$as_me:3318: checking for $ac_header" >&5
3319
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3320
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3321
echo $ECHO_N "(cached) $ECHO_C" >&6
3323
cat >conftest.$ac_ext <<_ACEOF
3324
#line 3324 "configure"
3325
#include "confdefs.h"
3326
#include <$ac_header>
3328
if { (eval echo "$as_me:3328: \"$ac_cpp conftest.$ac_ext\"") >&5
3329
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331
egrep -v '^ *\+' conftest.er1 >conftest.err
3333
cat conftest.err >&5
3334
echo "$as_me:3334: \$? = $ac_status" >&5
3335
(exit $ac_status); } >/dev/null; then
3336
if test -s conftest.err; then
3337
ac_cpp_err=$ac_c_preproc_warn_flag
3344
if test -z "$ac_cpp_err"; then
3345
eval "$as_ac_Header=yes"
3347
echo "$as_me: failed program was:" >&5
3348
cat conftest.$ac_ext >&5
3349
eval "$as_ac_Header=no"
3351
rm -f conftest.err conftest.$ac_ext
3353
echo "$as_me:3353: result: `eval echo '${'$as_ac_Header'}'`" >&5
3354
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3355
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3356
cat >>confdefs.h <<EOF
3357
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3363
# Only perform the check for file, if the check method requires it
3364
case $deplibs_check_method in
3366
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3367
echo "$as_me:3367: checking for ${ac_tool_prefix}file" >&5
3368
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3369
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3370
echo $ECHO_N "(cached) $ECHO_C" >&6
3374
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3377
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3380
ac_save_MAGIC_CMD="$MAGIC_CMD"
3381
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3382
ac_dummy="/usr/bin:$PATH"
3383
for ac_dir in $ac_dummy; do
3384
test -z "$ac_dir" && ac_dir=.
3385
if test -f $ac_dir/${ac_tool_prefix}file; then
3386
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3387
if test -n "$file_magic_test_file"; then
3388
case $deplibs_check_method in
3390
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3391
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3392
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3393
egrep "$file_magic_regex" > /dev/null; then
3398
*** Warning: the command libtool uses to detect shared libraries,
3399
*** $file_magic_cmd, produces output that libtool cannot recognize.
3400
*** The result is that libtool may fail to recognize shared libraries
3401
*** as such. This will affect the creation of libtool libraries that
3402
*** depend on shared libraries, but programs linked with such libtool
3403
*** libraries will work regardless of this problem. Nevertheless, you
3404
*** may want to report the problem to your system manager and/or to
3405
*** bug-libtool@gnu.org
3415
MAGIC_CMD="$ac_save_MAGIC_CMD"
3420
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3421
if test -n "$MAGIC_CMD"; then
3422
echo "$as_me:3422: result: $MAGIC_CMD" >&5
3423
echo "${ECHO_T}$MAGIC_CMD" >&6
3425
echo "$as_me:3425: result: no" >&5
3426
echo "${ECHO_T}no" >&6
3429
if test -z "$lt_cv_path_MAGIC_CMD"; then
3430
if test -n "$ac_tool_prefix"; then
3431
echo "$as_me:3431: checking for file" >&5
3432
echo $ECHO_N "checking for file... $ECHO_C" >&6
3433
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3434
echo $ECHO_N "(cached) $ECHO_C" >&6
3438
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3441
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3444
ac_save_MAGIC_CMD="$MAGIC_CMD"
3445
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3446
ac_dummy="/usr/bin:$PATH"
3447
for ac_dir in $ac_dummy; do
3448
test -z "$ac_dir" && ac_dir=.
3449
if test -f $ac_dir/file; then
3450
lt_cv_path_MAGIC_CMD="$ac_dir/file"
3451
if test -n "$file_magic_test_file"; then
3452
case $deplibs_check_method in
3454
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3455
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3456
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3457
egrep "$file_magic_regex" > /dev/null; then
3462
*** Warning: the command libtool uses to detect shared libraries,
3463
*** $file_magic_cmd, produces output that libtool cannot recognize.
3464
*** The result is that libtool may fail to recognize shared libraries
3465
*** as such. This will affect the creation of libtool libraries that
3466
*** depend on shared libraries, but programs linked with such libtool
3467
*** libraries will work regardless of this problem. Nevertheless, you
3468
*** may want to report the problem to your system manager and/or to
3469
*** bug-libtool@gnu.org
3479
MAGIC_CMD="$ac_save_MAGIC_CMD"
3484
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3485
if test -n "$MAGIC_CMD"; then
3486
echo "$as_me:3486: result: $MAGIC_CMD" >&5
3487
echo "${ECHO_T}$MAGIC_CMD" >&6
3489
echo "$as_me:3489: result: no" >&5
3490
echo "${ECHO_T}no" >&6
3502
if test -n "$ac_tool_prefix"; then
3503
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3504
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3505
echo "$as_me:3505: checking for $ac_word" >&5
3506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507
if test "${ac_cv_prog_RANLIB+set}" = set; then
3508
echo $ECHO_N "(cached) $ECHO_C" >&6
3510
if test -n "$RANLIB"; then
3511
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3513
ac_save_IFS=$IFS; IFS=$ac_path_separator
3515
for ac_dir in $ac_dummy; do
3517
test -z "$ac_dir" && ac_dir=.
3518
$as_executable_p "$ac_dir/$ac_word" || continue
3519
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3520
echo "$as_me:3520: found $ac_dir/$ac_word" >&5
3526
RANLIB=$ac_cv_prog_RANLIB
3527
if test -n "$RANLIB"; then
3528
echo "$as_me:3528: result: $RANLIB" >&5
3529
echo "${ECHO_T}$RANLIB" >&6
3531
echo "$as_me:3531: result: no" >&5
3532
echo "${ECHO_T}no" >&6
3536
if test -z "$ac_cv_prog_RANLIB"; then
3537
ac_ct_RANLIB=$RANLIB
3538
# Extract the first word of "ranlib", so it can be a program name with args.
3539
set dummy ranlib; ac_word=$2
3540
echo "$as_me:3540: checking for $ac_word" >&5
3541
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3543
echo $ECHO_N "(cached) $ECHO_C" >&6
3545
if test -n "$ac_ct_RANLIB"; then
3546
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3548
ac_save_IFS=$IFS; IFS=$ac_path_separator
3550
for ac_dir in $ac_dummy; do
3552
test -z "$ac_dir" && ac_dir=.
3553
$as_executable_p "$ac_dir/$ac_word" || continue
3554
ac_cv_prog_ac_ct_RANLIB="ranlib"
3555
echo "$as_me:3555: found $ac_dir/$ac_word" >&5
3559
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3562
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3563
if test -n "$ac_ct_RANLIB"; then
3564
echo "$as_me:3564: result: $ac_ct_RANLIB" >&5
3565
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3567
echo "$as_me:3567: result: no" >&5
3568
echo "${ECHO_T}no" >&6
3571
RANLIB=$ac_ct_RANLIB
3573
RANLIB="$ac_cv_prog_RANLIB"
3576
if test -n "$ac_tool_prefix"; then
3577
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3578
set dummy ${ac_tool_prefix}strip; ac_word=$2
3579
echo "$as_me:3579: checking for $ac_word" >&5
3580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581
if test "${ac_cv_prog_STRIP+set}" = set; then
3582
echo $ECHO_N "(cached) $ECHO_C" >&6
3584
if test -n "$STRIP"; then
3585
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3587
ac_save_IFS=$IFS; IFS=$ac_path_separator
3589
for ac_dir in $ac_dummy; do
3591
test -z "$ac_dir" && ac_dir=.
3592
$as_executable_p "$ac_dir/$ac_word" || continue
3593
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3594
echo "$as_me:3594: found $ac_dir/$ac_word" >&5
3600
STRIP=$ac_cv_prog_STRIP
3601
if test -n "$STRIP"; then
3602
echo "$as_me:3602: result: $STRIP" >&5
3603
echo "${ECHO_T}$STRIP" >&6
3605
echo "$as_me:3605: result: no" >&5
3606
echo "${ECHO_T}no" >&6
3610
if test -z "$ac_cv_prog_STRIP"; then
3612
# Extract the first word of "strip", so it can be a program name with args.
3613
set dummy strip; ac_word=$2
3614
echo "$as_me:3614: checking for $ac_word" >&5
3615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3616
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3617
echo $ECHO_N "(cached) $ECHO_C" >&6
3619
if test -n "$ac_ct_STRIP"; then
3620
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3622
ac_save_IFS=$IFS; IFS=$ac_path_separator
3624
for ac_dir in $ac_dummy; do
3626
test -z "$ac_dir" && ac_dir=.
3627
$as_executable_p "$ac_dir/$ac_word" || continue
3628
ac_cv_prog_ac_ct_STRIP="strip"
3629
echo "$as_me:3629: found $ac_dir/$ac_word" >&5
3633
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3636
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3637
if test -n "$ac_ct_STRIP"; then
3638
echo "$as_me:3638: result: $ac_ct_STRIP" >&5
3639
echo "${ECHO_T}$ac_ct_STRIP" >&6
3641
echo "$as_me:3641: result: no" >&5
3642
echo "${ECHO_T}no" >&6
3647
STRIP="$ac_cv_prog_STRIP"
3653
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3654
if test "${enable_libtool_lock+set}" = set; then
3655
enableval="$enable_libtool_lock"
3658
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3660
# Some flags need to be propagated to the compiler or linker for good
3664
# Find out which ABI we are using.
3665
echo '#line 3665 "configure"' > conftest.$ac_ext
3666
if { (eval echo "$as_me:3666: \"$ac_compile\"") >&5
3667
(eval $ac_compile) 2>&5
3669
echo "$as_me:3669: \$? = $ac_status" >&5
3670
(exit $ac_status); }; then
3671
case `/usr/bin/file conftest.$ac_objext` in
3687
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3688
SAVE_CFLAGS="$CFLAGS"
3689
CFLAGS="$CFLAGS -belf"
3690
echo "$as_me:3690: checking whether the C compiler needs -belf" >&5
3691
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3692
if test "${lt_cv_cc_needs_belf+set}" = set; then
3693
echo $ECHO_N "(cached) $ECHO_C" >&6
3697
ac_cpp='$CPP $CPPFLAGS'
3698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
cat >conftest.$ac_ext <<_ACEOF
3703
#line 3703 "configure"
3704
#include "confdefs.h"
3714
rm -f conftest.$ac_objext conftest$ac_exeext
3715
if { (eval echo "$as_me:3715: \"$ac_link\"") >&5
3716
(eval $ac_link) 2>&5
3718
echo "$as_me:3718: \$? = $ac_status" >&5
3719
(exit $ac_status); } &&
3720
{ ac_try='test -s conftest$ac_exeext'
3721
{ (eval echo "$as_me:3721: \"$ac_try\"") >&5
3724
echo "$as_me:3724: \$? = $ac_status" >&5
3725
(exit $ac_status); }; }; then
3726
lt_cv_cc_needs_belf=yes
3728
echo "$as_me: failed program was:" >&5
3729
cat conftest.$ac_ext >&5
3730
lt_cv_cc_needs_belf=no
3732
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3734
ac_cpp='$CPP $CPPFLAGS'
3735
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740
echo "$as_me:3740: result: $lt_cv_cc_needs_belf" >&5
3741
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3742
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3743
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3744
CFLAGS="$SAVE_CFLAGS"
3750
# Sed substitution that helps us do robust quoting. It backslashifies
3751
# metacharacters that are still active within double-quoted strings.
3752
Xsed='sed -e s/^X//'
3753
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3755
# Same as above, but do not quote variable references.
3756
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3758
# Sed substitution to delay expansion of an escaped shell variable in a
3759
# double_quote_subst'ed string.
3760
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3766
default_ofile=libtool
3767
can_build_shared=yes
3769
# All known linkers require a `.a' archive for static linking (except M$VC,
3770
# which needs '.lib').
3772
ltmain="$ac_aux_dir/ltmain.sh"
3773
ofile="$default_ofile"
3774
with_gnu_ld="$lt_cv_prog_gnu_ld"
3775
need_locks="$enable_libtool_lock"
3778
old_CFLAGS="$CFLAGS"
3780
# Set sane defaults for various variables
3781
test -z "$AR" && AR=ar
3782
test -z "$AR_FLAGS" && AR_FLAGS=cru
3783
test -z "$AS" && AS=as
3784
test -z "$CC" && CC=cc
3785
test -z "$DLLTOOL" && DLLTOOL=dlltool
3786
test -z "$LD" && LD=ld
3787
test -z "$LN_S" && LN_S="ln -s"
3788
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3789
test -z "$NM" && NM=nm
3790
test -z "$OBJDUMP" && OBJDUMP=objdump
3791
test -z "$RANLIB" && RANLIB=:
3792
test -z "$STRIP" && STRIP=:
3793
test -z "$ac_objext" && ac_objext=o
3795
if test x"$host" != x"$build"; then
3796
ac_tool_prefix=${host_alias}-
3801
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3804
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3809
# AIX sometimes has problems with the GCC collect2 program. For some
3810
# reason, if we set the COLLECT_NAMES environment variable, the problems
3811
# vanish in a puff of smoke.
3812
if test "X${COLLECT_NAMES+set}" != Xset; then
3814
export COLLECT_NAMES
3819
# Determine commands to create old-style static archives.
3820
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3821
old_postinstall_cmds='chmod 644 $oldlib'
3822
old_postuninstall_cmds=
3824
if test -n "$RANLIB"; then
3827
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3830
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3833
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3836
# Allow CC to be a program name with arguments.
3840
echo "$as_me:3840: checking for objdir" >&5
3841
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3842
rm -f .libs 2>/dev/null
3843
mkdir .libs 2>/dev/null
3844
if test -d .libs; then
3847
# MS-DOS does not allow filenames that begin with a dot.
3850
rmdir .libs 2>/dev/null
3851
echo "$as_me:3851: result: $objdir" >&5
3852
echo "${ECHO_T}$objdir" >&6
3854
# Check whether --with-pic or --without-pic was given.
3855
if test "${with_pic+set}" = set; then
3861
test -z "$pic_mode" && pic_mode=default
3863
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
3864
# in isolation, and that seeing it set (from the cache) indicates that
3865
# the associated values are set (in the cache) correctly too.
3866
echo "$as_me:3866: checking for $compiler option to produce PIC" >&5
3867
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3868
if test "${lt_cv_prog_cc_pic+set}" = set; then
3869
echo $ECHO_N "(cached) $ECHO_C" >&6
3872
lt_cv_prog_cc_shlib=
3874
lt_cv_prog_cc_static=
3875
lt_cv_prog_cc_no_builtin=
3876
lt_cv_prog_cc_can_build_shared=$can_build_shared
3878
if test "$GCC" = yes; then
3879
lt_cv_prog_cc_wl='-Wl,'
3880
lt_cv_prog_cc_static='-static'
3884
# Below there is a dirty hack to force normal static linking with -ldl
3885
# The problem is because libdl dynamically linked with both libc and
3886
# libC (AIX C++ library), which obviously doesn't included in libraries
3887
# list by gcc. This cause undefined symbols with -static flags.
3888
# This hack allows C programs to be linked with "-static -ldl", but
3889
# not sure about C++ programs.
3890
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3893
# FIXME: we need at least 68020 code to build shared libraries, but
3894
# adding the `-m68020' flag to GCC prevents building anything better,
3896
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3898
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3899
# PIC is the default for these OSes.
3901
darwin* | rhapsody*)
3902
# PIC is the default on this platform
3903
# Common symbols not allowed in MH_DYLIB files
3904
lt_cv_prog_cc_pic='-fno-common'
3906
cygwin* | mingw* | pw32* | os2*)
3907
# This hack is so that the source file can tell whether it is being
3908
# built for inclusion in a dll (and should export symbols for example).
3909
lt_cv_prog_cc_pic='-DDLL_EXPORT'
3912
if test -d /usr/nec; then
3913
lt_cv_prog_cc_pic=-Kconform_pic
3917
lt_cv_prog_cc_pic='-fPIC'
3921
# PORTME Check for PIC flags for the system compiler.
3923
aix3* | aix4* | aix5*)
3924
lt_cv_prog_cc_wl='-Wl,'
3925
# All AIX code is PIC.
3926
if test "$host_cpu" = ia64; then
3927
# AIX 5 now supports IA64 processor
3928
lt_cv_prog_cc_static='-Bstatic'
3930
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3934
hpux9* | hpux10* | hpux11*)
3935
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3936
lt_cv_prog_cc_wl='-Wl,'
3937
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3938
lt_cv_prog_cc_pic='+Z'
3942
lt_cv_prog_cc_wl='-Wl,'
3943
lt_cv_prog_cc_static='-non_shared'
3944
# PIC (with -KPIC) is the default.
3947
cygwin* | mingw* | pw32* | os2*)
3948
# This hack is so that the source file can tell whether it is being
3949
# built for inclusion in a dll (and should export symbols for example).
3950
lt_cv_prog_cc_pic='-DDLL_EXPORT'
3954
lt_cv_prog_cc_pic='-KPIC'
3955
lt_cv_prog_cc_static='-Bstatic'
3958
osf3* | osf4* | osf5*)
3959
# All OSF/1 code is PIC.
3960
lt_cv_prog_cc_wl='-Wl,'
3961
lt_cv_prog_cc_static='-non_shared'
3965
lt_cv_prog_cc_pic='-Kpic'
3966
lt_cv_prog_cc_static='-dn'
3967
lt_cv_prog_cc_shlib='-belf'
3971
lt_cv_prog_cc_pic='-KPIC'
3972
lt_cv_prog_cc_static='-Bstatic'
3973
lt_cv_prog_cc_wl='-Wl,'
3977
lt_cv_prog_cc_pic='-PIC'
3978
lt_cv_prog_cc_static='-Bstatic'
3979
lt_cv_prog_cc_wl='-Qoption ld '
3982
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3983
lt_cv_prog_cc_pic='-KPIC'
3984
lt_cv_prog_cc_static='-Bstatic'
3985
if test "x$host_vendor" = xsni; then
3986
lt_cv_prog_cc_wl='-LD'
3988
lt_cv_prog_cc_wl='-Wl,'
3993
lt_cv_prog_cc_pic='-pic'
3994
lt_cv_prog_cc_static='-Bstatic'
3998
if test -d /usr/nec ;then
3999
lt_cv_prog_cc_pic='-Kconform_pic'
4000
lt_cv_prog_cc_static='-Bstatic'
4005
lt_cv_prog_cc_can_build_shared=no
4012
if test -z "$lt_cv_prog_cc_pic"; then
4013
echo "$as_me:4013: result: none" >&5
4014
echo "${ECHO_T}none" >&6
4016
echo "$as_me:4016: result: $lt_cv_prog_cc_pic" >&5
4017
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4019
# Check to make sure the pic_flag actually works.
4020
echo "$as_me:4020: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4021
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4022
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4023
echo $ECHO_N "(cached) $ECHO_C" >&6
4025
save_CFLAGS="$CFLAGS"
4026
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4027
cat >conftest.$ac_ext <<_ACEOF
4028
#line 4028 "configure"
4029
#include "confdefs.h"
4039
rm -f conftest.$ac_objext
4040
if { (eval echo "$as_me:4040: \"$ac_compile\"") >&5
4041
(eval $ac_compile) 2>&5
4043
echo "$as_me:4043: \$? = $ac_status" >&5
4044
(exit $ac_status); } &&
4045
{ ac_try='test -s conftest.$ac_objext'
4046
{ (eval echo "$as_me:4046: \"$ac_try\"") >&5
4049
echo "$as_me:4049: \$? = $ac_status" >&5
4050
(exit $ac_status); }; }; then
4052
hpux9* | hpux10* | hpux11*)
4053
# On HP-UX, both CC and GCC only warn that PIC is supported... then
4054
# they create non-PIC objects. So, if there were any warnings, we
4055
# assume that PIC is not supported.
4056
if test -s conftest.err; then
4057
lt_cv_prog_cc_pic_works=no
4059
lt_cv_prog_cc_pic_works=yes
4063
lt_cv_prog_cc_pic_works=yes
4068
echo "$as_me: failed program was:" >&5
4069
cat conftest.$ac_ext >&5
4070
lt_cv_prog_cc_pic_works=no
4073
rm -f conftest.$ac_objext conftest.$ac_ext
4074
CFLAGS="$save_CFLAGS"
4078
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4080
lt_cv_prog_cc_can_build_shared=no
4082
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4085
echo "$as_me:4085: result: $lt_cv_prog_cc_pic_works" >&5
4086
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4089
# Check for any special shared library compilation flags.
4090
if test -n "$lt_cv_prog_cc_shlib"; then
4091
{ echo "$as_me:4091: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4092
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4093
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4095
{ echo "$as_me:4095: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4096
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4097
lt_cv_prog_cc_can_build_shared=no
4101
echo "$as_me:4101: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4102
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4103
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
lt_cv_prog_cc_static_works=no
4107
save_LDFLAGS="$LDFLAGS"
4108
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4109
cat >conftest.$ac_ext <<_ACEOF
4110
#line 4110 "configure"
4111
#include "confdefs.h"
4121
rm -f conftest.$ac_objext conftest$ac_exeext
4122
if { (eval echo "$as_me:4122: \"$ac_link\"") >&5
4123
(eval $ac_link) 2>&5
4125
echo "$as_me:4125: \$? = $ac_status" >&5
4126
(exit $ac_status); } &&
4127
{ ac_try='test -s conftest$ac_exeext'
4128
{ (eval echo "$as_me:4128: \"$ac_try\"") >&5
4131
echo "$as_me:4131: \$? = $ac_status" >&5
4132
(exit $ac_status); }; }; then
4133
lt_cv_prog_cc_static_works=yes
4135
echo "$as_me: failed program was:" >&5
4136
cat conftest.$ac_ext >&5
4138
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4139
LDFLAGS="$save_LDFLAGS"
4143
# Belt *and* braces to stop my trousers falling down:
4144
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4145
echo "$as_me:4145: result: $lt_cv_prog_cc_static_works" >&5
4146
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4148
pic_flag="$lt_cv_prog_cc_pic"
4149
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4150
wl="$lt_cv_prog_cc_wl"
4151
link_static_flag="$lt_cv_prog_cc_static"
4152
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4153
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4155
# Check to see if options -o and -c are simultaneously supported by compiler
4156
echo "$as_me:4156: checking if $compiler supports -c -o file.$ac_objext" >&5
4157
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4158
if test "${lt_cv_compiler_c_o+set}" = set; then
4159
echo $ECHO_N "(cached) $ECHO_C" >&6
4162
$rm -r conftest 2>/dev/null
4165
echo "int some_variable = 0;" > conftest.$ac_ext
4167
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4168
# that will create temporary files in the current directory regardless of
4169
# the output directory. Thus, making CWD read-only will cause this test
4170
# to fail, enabling locking or at least warning the user not to do parallel
4173
save_CFLAGS="$CFLAGS"
4174
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4176
if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4177
# The compiler can only warn and ignore the option if not recognized
4178
# So say no if there are warnings
4179
if test -s out/conftest.err; then
4180
lt_cv_compiler_c_o=no
4182
lt_cv_compiler_c_o=yes
4185
# Append any errors to the config.log.
4186
cat out/conftest.err 1>&5
4187
lt_cv_compiler_c_o=no
4189
CFLAGS="$save_CFLAGS"
4195
$rm -r conftest 2>/dev/null
4199
compiler_c_o=$lt_cv_compiler_c_o
4200
echo "$as_me:4200: result: $compiler_c_o" >&5
4201
echo "${ECHO_T}$compiler_c_o" >&6
4203
if test x"$compiler_c_o" = x"yes"; then
4204
# Check to see if we can write to a .lo
4205
echo "$as_me:4205: checking if $compiler supports -c -o file.lo" >&5
4206
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4207
if test "${lt_cv_compiler_o_lo+set}" = set; then
4208
echo $ECHO_N "(cached) $ECHO_C" >&6
4211
lt_cv_compiler_o_lo=no
4212
save_CFLAGS="$CFLAGS"
4213
CFLAGS="$CFLAGS -c -o conftest.lo"
4214
save_objext="$ac_objext"
4216
cat >conftest.$ac_ext <<_ACEOF
4217
#line 4217 "configure"
4218
#include "confdefs.h"
4223
int some_variable = 0;
4228
rm -f conftest.$ac_objext
4229
if { (eval echo "$as_me:4229: \"$ac_compile\"") >&5
4230
(eval $ac_compile) 2>&5
4232
echo "$as_me:4232: \$? = $ac_status" >&5
4233
(exit $ac_status); } &&
4234
{ ac_try='test -s conftest.$ac_objext'
4235
{ (eval echo "$as_me:4235: \"$ac_try\"") >&5
4238
echo "$as_me:4238: \$? = $ac_status" >&5
4239
(exit $ac_status); }; }; then
4240
# The compiler can only warn and ignore the option if not recognized
4241
# So say no if there are warnings
4242
if test -s conftest.err; then
4243
lt_cv_compiler_o_lo=no
4245
lt_cv_compiler_o_lo=yes
4249
echo "$as_me: failed program was:" >&5
4250
cat conftest.$ac_ext >&5
4252
rm -f conftest.$ac_objext conftest.$ac_ext
4253
ac_objext="$save_objext"
4254
CFLAGS="$save_CFLAGS"
4258
compiler_o_lo=$lt_cv_compiler_o_lo
4259
echo "$as_me:4259: result: $compiler_o_lo" >&5
4260
echo "${ECHO_T}$compiler_o_lo" >&6
4265
# Check to see if we can do hard links to lock some files if needed
4266
hard_links="nottested"
4267
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4268
# do not overwrite the value of need_locks provided by the user
4269
echo "$as_me:4269: checking if we can lock with hard links" >&5
4270
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4273
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4275
ln conftest.a conftest.b 2>&5 || hard_links=no
4276
ln conftest.a conftest.b 2>/dev/null && hard_links=no
4277
echo "$as_me:4277: result: $hard_links" >&5
4278
echo "${ECHO_T}$hard_links" >&6
4279
if test "$hard_links" = no; then
4280
{ echo "$as_me:4280: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4281
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4288
if test "$GCC" = yes; then
4289
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4290
echo "$as_me:4290: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4291
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4292
echo "int some_variable = 0;" > conftest.$ac_ext
4293
save_CFLAGS="$CFLAGS"
4294
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4295
compiler_rtti_exceptions=no
4296
cat >conftest.$ac_ext <<_ACEOF
4297
#line 4297 "configure"
4298
#include "confdefs.h"
4303
int some_variable = 0;
4308
rm -f conftest.$ac_objext
4309
if { (eval echo "$as_me:4309: \"$ac_compile\"") >&5
4310
(eval $ac_compile) 2>&5
4312
echo "$as_me:4312: \$? = $ac_status" >&5
4313
(exit $ac_status); } &&
4314
{ ac_try='test -s conftest.$ac_objext'
4315
{ (eval echo "$as_me:4315: \"$ac_try\"") >&5
4318
echo "$as_me:4318: \$? = $ac_status" >&5
4319
(exit $ac_status); }; }; then
4320
# The compiler can only warn and ignore the option if not recognized
4321
# So say no if there are warnings
4322
if test -s conftest.err; then
4323
compiler_rtti_exceptions=no
4325
compiler_rtti_exceptions=yes
4329
echo "$as_me: failed program was:" >&5
4330
cat conftest.$ac_ext >&5
4332
rm -f conftest.$ac_objext conftest.$ac_ext
4333
CFLAGS="$save_CFLAGS"
4334
echo "$as_me:4334: result: $compiler_rtti_exceptions" >&5
4335
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4337
if test "$compiler_rtti_exceptions" = "yes"; then
4338
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4340
no_builtin_flag=' -fno-builtin'
4344
# See if the linker supports building shared libraries.
4345
echo "$as_me:4345: checking whether the linker ($LD) supports shared libraries" >&5
4346
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4348
allow_undefined_flag=
4350
need_lib_prefix=unknown
4351
need_version=unknown
4352
# when you set need_version to no, make sure it does not cause -set_version
4353
# flags to be left without arguments
4355
archive_expsym_cmds=
4356
old_archive_from_new_cmds=
4357
old_archive_from_expsyms_cmds=
4358
export_dynamic_flag_spec=
4359
whole_archive_flag_spec=
4360
thread_safe_flag_spec=
4361
hardcode_into_libs=no
4362
hardcode_libdir_flag_spec=
4363
hardcode_libdir_separator=
4366
hardcode_shlibpath_var=unsupported
4368
link_all_deplibs=unknown
4369
always_export_symbols=no
4370
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4371
# include_expsyms should be a list of space-separated symbols to be *always*
4372
# included in the symbol list
4374
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4375
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4376
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4377
# as well as any symbol that contains `d'.
4378
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4379
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4380
# platforms (ab)use it in PIC code, but their linkers get confused if
4381
# the symbol is explicitly referenced. Since portable code cannot
4382
# rely on this symbol name, it's probably fine to never include it in
4383
# preloaded symbol tables.
4384
extract_expsyms_cmds=
4387
cygwin* | mingw* | pw32*)
4388
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4389
# When not using gcc, we currently assume that we are using
4390
# Microsoft Visual C++.
4391
if test "$GCC" != yes; then
4401
if test "$with_gnu_ld" = yes; then
4402
# If archive_cmds runs LD, not CC, wlarc should be empty
4405
# See if GNU ld supports shared libraries.
4407
aix3* | aix4* | aix5*)
4408
# On AIX, the GNU linker is very broken
4409
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4413
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4414
*** to be unable to reliably create shared libraries on AIX.
4415
*** Therefore, libtool is disabling shared libraries support. If you
4416
*** really care for shared libraries, you may want to modify your PATH
4417
*** so that a non-GNU linker is found, and then restart.
4423
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)'
4424
hardcode_libdir_flag_spec='-L$libdir'
4425
hardcode_minus_L=yes
4427
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4428
# that the semantics of dynamic libraries on AmigaOS, at least up
4429
# to version 4, is to share data among multiple programs linked
4430
# with the same dynamic library. Since this doesn't match the
4431
# behavior of shared libraries on other platforms, we can use
4437
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4438
allow_undefined_flag=unsupported
4439
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4440
# support --undefined. This deserves some investigation. FIXME
4441
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4447
cygwin* | mingw* | pw32*)
4448
# hardcode_libdir_flag_spec is actually meaningless, as there is
4449
# no search path for DLLs.
4450
hardcode_libdir_flag_spec='-L$libdir'
4451
allow_undefined_flag=unsupported
4452
always_export_symbols=yes
4454
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4455
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4456
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4457
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4458
else $CC -o impgen impgen.c ; fi)~
4459
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4461
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4463
# cygwin and mingw dlls have different entry points and sets of symbols
4465
# FIXME: what about values for MSVC?
4466
dll_entry=__cygwin_dll_entry@12
4467
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4471
dll_entry=_DllMainCRTStartup@12
4472
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4476
# mingw and cygwin differ, and it's simplest to just exclude the union
4477
# of the two symbol sets.
4478
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4480
# recent cygwin and mingw systems supply a stub DllMain which the user
4481
# can override, but on older systems we have to supply one (in ltdll.c)
4482
if test "x$lt_cv_need_dllmain" = "xyes"; then
4483
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4484
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4485
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4491
# Extract the symbol export list from an `--export-all' def file,
4492
# then regenerate the def file from the symbol export list, so that
4493
# the compiled dll only exports the symbol export list.
4494
# Be careful not to strip the DATA tag left be newer dlltools.
4495
export_symbols_cmds="$ltdll_cmds"'
4496
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4497
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4499
# If the export-symbols file already is a .def file (1st line
4500
# is EXPORTS), use it as is.
4501
# If DATA tags from a recent dlltool are present, honour them!
4502
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4503
cp $export_symbols $output_objdir/$soname-def;
4505
echo EXPORTS > $output_objdir/$soname-def;
4507
cat $export_symbols | while read symbol; do
4510
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4511
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4513
_lt_hint=`expr 1 + \$_lt_hint`;
4517
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4518
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4519
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4520
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4521
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4525
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4526
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4529
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4530
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4535
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4539
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4540
*** create shared libraries on Solaris systems. Therefore, libtool
4541
*** is disabling shared libraries support. We urge you to upgrade GNU
4542
*** binutils to release 2.9.1 or newer. Another option is to modify
4543
*** your PATH or compiler configuration so that the native linker is
4544
*** used, and then restart.
4547
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4548
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4549
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4556
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4559
hardcode_shlibpath_var=no
4563
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4564
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4565
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4572
if test "$ld_shlibs" = yes; then
4573
runpath_var=LD_RUN_PATH
4574
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4575
export_dynamic_flag_spec='${wl}--export-dynamic'
4577
cygwin* | mingw* | pw32*)
4578
# dlltool doesn't understand --whole-archive et. al.
4579
whole_archive_flag_spec=
4582
# ancient GNU ld didn't support --whole-archive et. al.
4583
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4584
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4586
whole_archive_flag_spec=
4592
# PORTME fill in a description of your system's linker (not GNU ld)
4595
allow_undefined_flag=unsupported
4596
always_export_symbols=yes
4597
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'
4598
# Note: this linker hardcodes the directories in LIBPATH if there
4599
# are no directories specified by -L.
4600
hardcode_minus_L=yes
4601
if test "$GCC" = yes && test -z "$link_static_flag"; then
4602
# Neither direct hardcoding nor static linking is supported with a
4604
hardcode_direct=unsupported
4609
if test "$host_cpu" = ia64; then
4610
# On IA64, the linker does run time linking by default, so we don't
4611
# have to do anything special.
4612
aix_use_runtimelinking=no
4613
exp_sym_flag='-Bexport'
4616
aix_use_runtimelinking=no
4618
# Test if we are trying to use run time linking or normal
4619
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4620
# need to do runtime linking.
4621
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4622
for ld_flag in $LDFLAGS; do
4623
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4624
aix_use_runtimelinking=yes
4630
exp_sym_flag='-bexport'
4631
no_entry_flag='-bnoentry'
4634
# When large executables or shared objects are built, AIX ld can
4635
# have problems creating the table of contents. If linking a library
4636
# or program results in "error TOC overflow" add -mminimal-toc to
4637
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4638
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4642
hardcode_libdir_separator=':'
4643
if test "$GCC" = yes; then
4644
case $host_os in aix4.[012]|aix4.[012].*)
4645
collect2name=`${CC} -print-prog-name=collect2`
4646
if test -f "$collect2name" && \
4647
strings "$collect2name" | grep resolve_lib_name >/dev/null
4649
# We have reworked collect2
4652
# We have old collect2
4653
hardcode_direct=unsupported
4654
# It fails to find uninstalled libraries when the uninstalled
4655
# path is not listed in the libpath. Setting hardcode_minus_L
4656
# to unsupported forces relinking
4657
hardcode_minus_L=yes
4658
hardcode_libdir_flag_spec='-L$libdir'
4659
hardcode_libdir_separator=
4663
shared_flag='-shared'
4666
if test "$host_cpu" = ia64; then
4667
shared_flag='${wl}-G'
4669
if test "$aix_use_runtimelinking" = yes; then
4670
shared_flag='${wl}-G'
4672
shared_flag='${wl}-bM:SRE'
4677
# It seems that -bexpall can do strange things, so it is better to
4678
# generate a list of symbols to export.
4679
always_export_symbols=yes
4680
if test "$aix_use_runtimelinking" = yes; then
4681
# Warning - without using the other runtime loading flags (-brtl),
4682
# -berok will link without error, but may produce a broken library.
4683
allow_undefined_flag='-berok'
4684
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4685
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4687
if test "$host_cpu" = ia64; then
4688
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4689
allow_undefined_flag="-z nodefs"
4690
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4692
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4693
# Warning - without using the other run time loading flags,
4694
# -berok will link without error, but may produce a broken library.
4695
allow_undefined_flag='${wl}-berok'
4696
# This is a bit strange, but is similar to how AIX traditionally builds
4697
# it's shared libraries.
4698
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4704
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)'
4705
hardcode_libdir_flag_spec='-L$libdir'
4706
hardcode_minus_L=yes
4707
# see comment about different semantics on the GNU ld section
4711
cygwin* | mingw* | pw32*)
4712
# When not using gcc, we currently assume that we are using
4713
# Microsoft Visual C++.
4714
# hardcode_libdir_flag_spec is actually meaningless, as there is
4715
# no search path for DLLs.
4716
hardcode_libdir_flag_spec=' '
4717
allow_undefined_flag=unsupported
4718
# Tell ltmain to make .lib files, not .a files.
4720
# FIXME: Setting linknames here is a bad hack.
4721
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4722
# The linker will automatically build a .lib file if we build a DLL.
4723
old_archive_from_new_cmds='true'
4724
# FIXME: Should let the user specify the lib program.
4725
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4726
fix_srcfile_path='`cygpath -w "$srcfile"`'
4729
darwin* | rhapsody*)
4731
rhapsody* | darwin1.[012])
4732
allow_undefined_flag='-undefined suppress'
4735
allow_undefined_flag='-flat_namespace -undefined suppress'
4738
# FIXME: Relying on posixy $() will cause problems for
4739
# cross-compilation, but unfortunately the echo tests do not
4740
# yet detect zsh echo's removal of \ escapes.
4741
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4742
# We need to add '_' to the symbols in $export_symbols first
4743
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4745
hardcode_shlibpath_var=no
4746
whole_archive_flag_spec='-all_load $convenience'
4753
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4754
# support. Future versions do this automatically, but an explicit c++rt0.o
4755
# does not break anything, and helps significantly (at the cost of a little
4758
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4759
hardcode_libdir_flag_spec='-R$libdir'
4761
hardcode_shlibpath_var=no
4764
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
4766
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4768
hardcode_minus_L=yes
4769
hardcode_shlibpath_var=no
4772
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4774
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4775
hardcode_libdir_flag_spec='-R$libdir'
4777
hardcode_shlibpath_var=no
4780
hpux9* | hpux10* | hpux11*)
4782
hpux9*) 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' ;;
4783
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4785
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4786
hardcode_libdir_separator=:
4788
hardcode_minus_L=yes # Not in the search PATH, but as the default
4789
# location of the library.
4790
export_dynamic_flag_spec='${wl}-E'
4794
if test "$GCC" = yes; then
4795
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4797
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4799
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4800
hardcode_libdir_separator=:
4801
link_all_deplibs=yes
4805
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4806
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4808
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4810
hardcode_libdir_flag_spec='-R$libdir'
4812
hardcode_shlibpath_var=no
4816
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4818
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4819
hardcode_libdir_separator=:
4820
hardcode_shlibpath_var=no
4825
hardcode_shlibpath_var=no
4826
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4827
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4828
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4829
export_dynamic_flag_spec='${wl}-E'
4832
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4833
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4834
hardcode_libdir_flag_spec='-R$libdir'
4837
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4838
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4845
hardcode_libdir_flag_spec='-L$libdir'
4846
hardcode_minus_L=yes
4847
allow_undefined_flag=unsupported
4848
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'
4849
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4853
if test "$GCC" = yes; then
4854
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4855
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4857
allow_undefined_flag=' -expect_unresolved \*'
4858
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4860
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4861
hardcode_libdir_separator=:
4864
osf4* | osf5*) # as osf3* with the addition of -msym flag
4865
if test "$GCC" = yes; then
4866
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4867
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4868
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4870
allow_undefined_flag=' -expect_unresolved \*'
4871
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4872
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4873
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4875
#Both c and cxx compiler support -rpath directly
4876
hardcode_libdir_flag_spec='-rpath $libdir'
4878
hardcode_libdir_separator=:
4882
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4883
hardcode_shlibpath_var=no
4884
runpath_var=LD_RUN_PATH
4885
hardcode_runpath_var=yes
4886
export_dynamic_flag_spec='${wl}-Bexport'
4890
no_undefined_flag=' -z defs'
4891
# $CC -shared without GNU ld will not create a library from C++
4892
# object files and a static libstdc++, better avoid it by now
4893
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4894
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4895
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4896
hardcode_libdir_flag_spec='-R$libdir'
4897
hardcode_shlibpath_var=no
4899
solaris2.[0-5] | solaris2.[0-5].*) ;;
4900
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
4901
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4903
link_all_deplibs=yes
4907
if test "x$host_vendor" = xsequent; then
4908
# Use $CC to link under sequent, because it throws in some extra .o
4909
# files that make .init and .fini sections work.
4910
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4912
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4914
hardcode_libdir_flag_spec='-L$libdir'
4916
hardcode_minus_L=yes
4917
hardcode_shlibpath_var=no
4921
if test "x$host_vendor" = xsno; then
4922
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
4923
hardcode_direct=yes # is this really true???
4925
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4926
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4928
runpath_var='LD_RUN_PATH'
4929
hardcode_shlibpath_var=no
4933
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4934
hardcode_shlibpath_var=no
4935
export_dynamic_flag_spec='-Bexport'
4939
no_undefined_flag=' -z text'
4940
# $CC -shared without GNU ld will not create a library from C++
4941
# object files and a static libstdc++, better avoid it by now
4942
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4943
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4944
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4945
hardcode_libdir_flag_spec=
4946
hardcode_shlibpath_var=no
4947
runpath_var='LD_RUN_PATH'
4951
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4952
hardcode_libdir_flag_spec='-L$libdir'
4953
hardcode_shlibpath_var=no
4957
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4958
hardcode_libdir_flag_spec='-L$libdir'
4959
hardcode_shlibpath_var=no
4963
if test -d /usr/nec; then
4964
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4965
hardcode_shlibpath_var=no
4966
runpath_var=LD_RUN_PATH
4967
hardcode_runpath_var=yes
4973
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4976
hardcode_shlibpath_var=no
4977
hardcode_runpath_var=yes
4978
runpath_var=LD_RUN_PATH
4981
sysv5uw7* | unixware7*)
4982
no_undefined_flag='${wl}-z ${wl}text'
4983
if test "$GCC" = yes; then
4984
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4986
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4988
runpath_var='LD_RUN_PATH'
4989
hardcode_shlibpath_var=no
4997
echo "$as_me:4997: result: $ld_shlibs" >&5
4998
echo "${ECHO_T}$ld_shlibs" >&6
4999
test "$ld_shlibs" = no && can_build_shared=no
5001
# Check hardcoding attributes.
5002
echo "$as_me:5002: checking how to hardcode library paths into programs" >&5
5003
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5005
if test -n "$hardcode_libdir_flag_spec" || \
5006
test -n "$runpath_var"; then
5008
# We can hardcode non-existant directories.
5009
if test "$hardcode_direct" != no &&
5010
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5011
# have to relink, otherwise we might link with an installed library
5012
# when we should be linking with a yet-to-be-installed one
5013
## test "$hardcode_shlibpath_var" != no &&
5014
test "$hardcode_minus_L" != no; then
5015
# Linking always hardcodes the temporary library directory.
5016
hardcode_action=relink
5018
# We can link without hardcoding, and we can hardcode nonexisting dirs.
5019
hardcode_action=immediate
5022
# We cannot hardcode anything, or else we can only hardcode existing
5024
hardcode_action=unsupported
5026
echo "$as_me:5026: result: $hardcode_action" >&5
5027
echo "${ECHO_T}$hardcode_action" >&6
5031
echo "$as_me:5031: checking whether stripping libraries is possible" >&5
5032
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5033
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5034
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5035
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5036
echo "$as_me:5036: result: yes" >&5
5037
echo "${ECHO_T}yes" >&6
5039
echo "$as_me:5039: result: no" >&5
5040
echo "${ECHO_T}no" >&6
5043
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5044
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5046
# PORTME Fill in your ld.so characteristics
5047
echo "$as_me:5047: checking dynamic linker characteristics" >&5
5048
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5050
libname_spec='lib$name'
5057
shlibpath_overrides_runpath=unknown
5059
dynamic_linker="$host_os ld.so"
5060
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5061
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5066
library_names_spec='${libname}${release}.so$versuffix $libname.a'
5067
shlibpath_var=LIBPATH
5069
# AIX has no versioning support, so we append a major version to the name.
5070
soname_spec='${libname}${release}.so$major'
5075
if test "$host_cpu" = ia64; then
5076
# AIX 5 supports IA64
5077
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5078
shlibpath_var=LD_LIBRARY_PATH
5080
# With GCC up to 2.95.x, collect2 would create an import file
5081
# for dependence libraries. The import file would start with
5082
# the line `#! .'. This would cause the generated library to
5083
# depend on `.', always an invalid library. This was fixed in
5084
# development snapshots of GCC prior to 3.0.
5086
aix4 | aix4.[01] | aix4.[01].*)
5087
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5089
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5096
# AIX (on Power*) has no versioning support, so currently we can
5097
# not hardcode correct soname into executable. Probably we can
5098
# add versioning support to collect2, so additional links can
5099
# be useful in future.
5100
if test "$aix_use_runtimelinking" = yes; then
5101
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
5102
# instead of lib<name>.a to let people know that these are not
5103
# typical AIX shared libraries.
5104
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5106
# We preserve .a as extension for shared libraries through AIX4.2
5107
# and later when we are not doing run time linking.
5108
library_names_spec='${libname}${release}.a $libname.a'
5109
soname_spec='${libname}${release}.so$major'
5111
shlibpath_var=LIBPATH
5116
library_names_spec='$libname.ixlibrary $libname.a'
5117
# Create ${libname}_ixlibrary.a entries in /sys/libs.
5118
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'
5122
library_names_spec='${libname}.so'
5123
dynamic_linker="$host_os ld.so"
5124
shlibpath_var=LIBRARY_PATH
5130
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5131
soname_spec='${libname}${release}.so$major'
5132
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5133
shlibpath_var=LD_LIBRARY_PATH
5134
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5135
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5136
export_dynamic_flag_spec=-rdynamic
5137
# the default ld.so.conf also contains /usr/contrib/lib and
5138
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5139
# libtool to hard-code these into programs
5142
cygwin* | mingw* | pw32*)
5143
version_type=windows
5146
case $GCC,$host_os in
5148
library_names_spec='$libname.dll.a'
5149
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5150
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5151
dldir=$destdir/`dirname \$dlpath`~
5152
test -d \$dldir || mkdir -p \$dldir~
5153
$install_prog .libs/$dlname \$dldir/$dlname'
5154
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5155
dlpath=$dir/\$dldll~
5159
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5160
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5163
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5166
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5169
dynamic_linker='Win32 ld.exe'
5170
# FIXME: first we should search . and the directory the executable is in
5174
darwin* | rhapsody*)
5175
dynamic_linker="$host_os dyld"
5179
# FIXME: Relying on posixy $() will cause problems for
5180
# cross-compilation, but unfortunately the echo tests do not
5181
# yet detect zsh echo's removal of \ escapes.
5182
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5183
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5184
shlibpath_overrides_runpath=yes
5185
shlibpath_var=DYLD_LIBRARY_PATH
5193
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5194
version_type=freebsd-$objformat
5195
case $version_type in
5197
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5202
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5206
shlibpath_var=LD_LIBRARY_PATH
5209
shlibpath_overrides_runpath=yes
5212
shlibpath_overrides_runpath=no
5213
hardcode_into_libs=yes
5222
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5223
soname_spec='${libname}${release}.so$major'
5224
shlibpath_var=LD_LIBRARY_PATH
5225
hardcode_into_libs=yes
5228
hpux9* | hpux10* | hpux11*)
5229
# Give a soname corresponding to the major version so that dld.sl refuses to
5230
# link against other versions.
5231
dynamic_linker="$host_os dld.sl"
5235
shlibpath_var=SHLIB_PATH
5236
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5237
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5238
soname_spec='${libname}${release}.sl$major'
5239
# HP-UX runs *really* slowly unless shared libraries are mode 555.
5240
postinstall_cmds='chmod 555 $lib'
5247
soname_spec='${libname}${release}.so$major'
5248
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5254
case $LD in # libtool.m4 will add one of these switches to LD
5255
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5256
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5257
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5258
*) libsuff= shlibsuff= libmagic=never-match;;
5262
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5263
shlibpath_overrides_runpath=no
5264
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5265
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5268
# No shared lib support for Linux oldld, aout, or coff.
5269
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5273
# This must be Linux ELF.
5278
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5279
soname_spec='${libname}${release}.so$major'
5280
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5281
shlibpath_var=LD_LIBRARY_PATH
5282
shlibpath_overrides_runpath=no
5283
# This implies no fast_install, which is unacceptable.
5284
# Some rework will be needed to allow for fast_install
5285
# before this can be enabled.
5286
hardcode_into_libs=yes
5288
# We used to test for /lib/ld.so.1 and disable shared libraries on
5289
# powerpc, because MkLinux only supported shared libraries with the
5290
# GNU dynamic linker. Since this was broken with cross compilers,
5291
# most powerpc-linux boxes support dynamic linking these days and
5292
# people can always --disable-shared, the test was removed, and we
5293
# assume the GNU/Linux dynamic linker is in use.
5294
dynamic_linker='GNU/Linux ld.so'
5301
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5302
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5303
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5304
dynamic_linker='NetBSD (a.out) ld.so'
5306
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5307
soname_spec='${libname}${release}.so$major'
5308
dynamic_linker='NetBSD ld.elf_so'
5310
shlibpath_var=LD_LIBRARY_PATH
5311
shlibpath_overrides_runpath=yes
5312
hardcode_into_libs=yes
5317
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5318
shlibpath_var=LD_LIBRARY_PATH
5319
shlibpath_overrides_runpath=yes
5326
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5328
openbsd2.[89] | openbsd2.[89].*)
5329
shlibpath_overrides_runpath=no
5332
shlibpath_overrides_runpath=yes
5336
shlibpath_overrides_runpath=yes
5338
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5339
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5340
shlibpath_var=LD_LIBRARY_PATH
5344
libname_spec='$name'
5346
library_names_spec='$libname.dll $libname.a'
5347
dynamic_linker='OS/2 ld.exe'
5348
shlibpath_var=LIBPATH
5351
osf3* | osf4* | osf5*)
5354
soname_spec='${libname}${release}.so'
5355
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5356
shlibpath_var=LD_LIBRARY_PATH
5357
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5358
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5363
soname_spec='${libname}${release}.so$major'
5364
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5365
shlibpath_var=LD_LIBRARY_PATH
5372
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5373
soname_spec='${libname}${release}.so$major'
5374
shlibpath_var=LD_LIBRARY_PATH
5375
shlibpath_overrides_runpath=yes
5376
hardcode_into_libs=yes
5377
# ldd complains unless libraries are executable
5378
postinstall_cmds='chmod +x $lib'
5383
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5384
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5385
shlibpath_var=LD_LIBRARY_PATH
5386
shlibpath_overrides_runpath=yes
5387
if test "$with_gnu_ld" = yes; then
5393
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5395
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5396
soname_spec='${libname}${release}.so$major'
5397
shlibpath_var=LD_LIBRARY_PATH
5398
case $host_vendor in
5400
shlibpath_overrides_runpath=no
5405
shlibpath_overrides_runpath=no
5406
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5413
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5414
soname_spec='${libname}${release}.so$major'
5415
shlibpath_var=LD_LIBRARY_PATH
5422
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5423
soname_spec='${libname}${release}.so$major'
5424
shlibpath_var=LD_LIBRARY_PATH
5428
if test -d /usr/nec ;then
5430
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5431
soname_spec='$libname.so.$major'
5432
shlibpath_var=LD_LIBRARY_PATH
5440
echo "$as_me:5440: result: $dynamic_linker" >&5
5441
echo "${ECHO_T}$dynamic_linker" >&6
5442
test "$dynamic_linker" = no && can_build_shared=no
5444
# Report the final consequences.
5445
echo "$as_me:5445: checking if libtool supports shared libraries" >&5
5446
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5447
echo "$as_me:5447: result: $can_build_shared" >&5
5448
echo "${ECHO_T}$can_build_shared" >&6
5450
echo "$as_me:5450: checking whether to build shared libraries" >&5
5451
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5452
test "$can_build_shared" = "no" && enable_shared=no
5454
# On AIX, shared libraries and static libraries use the same namespace, and
5455
# are all built from PIC.
5458
test "$enable_shared" = yes && enable_static=no
5459
if test -n "$RANLIB"; then
5460
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5461
postinstall_cmds='$RANLIB $lib'
5466
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5467
test "$enable_shared" = yes && enable_static=no
5471
echo "$as_me:5471: result: $enable_shared" >&5
5472
echo "${ECHO_T}$enable_shared" >&6
5474
echo "$as_me:5474: checking whether to build static libraries" >&5
5475
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5476
# Make sure either enable_shared or enable_static is yes.
5477
test "$enable_shared" = yes || enable_static=yes
5478
echo "$as_me:5478: result: $enable_static" >&5
5479
echo "${ECHO_T}$enable_static" >&6
5481
if test "$hardcode_action" = relink; then
5482
# Fast installation is not supported
5483
enable_fast_install=no
5484
elif test "$shlibpath_overrides_runpath" = yes ||
5485
test "$enable_shared" = no; then
5486
# Fast installation is not necessary
5487
enable_fast_install=needless
5490
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5491
if test "$GCC" = yes; then
5492
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5495
if test "x$enable_dlopen" != xyes; then
5496
enable_dlopen=unknown
5497
enable_dlopen_self=unknown
5498
enable_dlopen_self_static=unknown
5505
lt_cv_dlopen="load_add_on"
5507
lt_cv_dlopen_self=yes
5510
cygwin* | mingw* | pw32*)
5511
lt_cv_dlopen="LoadLibrary"
5516
echo "$as_me:5516: checking for shl_load" >&5
5517
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5518
if test "${ac_cv_func_shl_load+set}" = set; then
5519
echo $ECHO_N "(cached) $ECHO_C" >&6
5521
cat >conftest.$ac_ext <<_ACEOF
5522
#line 5522 "configure"
5523
#include "confdefs.h"
5524
/* System header to define __stub macros and hopefully few prototypes,
5525
which can conflict with char shl_load (); below. */
5527
/* Override any gcc2 internal prototype to avoid an error. */
5531
/* We use char because int might match the return type of a gcc2
5532
builtin and then its argument prototype would still apply. */
5539
/* The GNU C library defines this for functions which it implements
5540
to always fail with ENOSYS. Some functions are actually named
5541
something starting with __ and the normal name is an alias. */
5542
#if defined (__stub_shl_load) || defined (__stub___shl_load)
5552
rm -f conftest.$ac_objext conftest$ac_exeext
5553
if { (eval echo "$as_me:5553: \"$ac_link\"") >&5
5554
(eval $ac_link) 2>&5
5556
echo "$as_me:5556: \$? = $ac_status" >&5
5557
(exit $ac_status); } &&
5558
{ ac_try='test -s conftest$ac_exeext'
5559
{ (eval echo "$as_me:5559: \"$ac_try\"") >&5
5562
echo "$as_me:5562: \$? = $ac_status" >&5
5563
(exit $ac_status); }; }; then
5564
ac_cv_func_shl_load=yes
5566
echo "$as_me: failed program was:" >&5
5567
cat conftest.$ac_ext >&5
5568
ac_cv_func_shl_load=no
5570
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5572
echo "$as_me:5572: result: $ac_cv_func_shl_load" >&5
5573
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5574
if test $ac_cv_func_shl_load = yes; then
5575
lt_cv_dlopen="shl_load"
5577
echo "$as_me:5577: checking for shl_load in -ldld" >&5
5578
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5579
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5580
echo $ECHO_N "(cached) $ECHO_C" >&6
5582
ac_check_lib_save_LIBS=$LIBS
5584
cat >conftest.$ac_ext <<_ACEOF
5585
#line 5585 "configure"
5586
#include "confdefs.h"
5588
/* Override any gcc2 internal prototype to avoid an error. */
5592
/* We use char because int might match the return type of a gcc2
5593
builtin and then its argument prototype would still apply. */
5603
rm -f conftest.$ac_objext conftest$ac_exeext
5604
if { (eval echo "$as_me:5604: \"$ac_link\"") >&5
5605
(eval $ac_link) 2>&5
5607
echo "$as_me:5607: \$? = $ac_status" >&5
5608
(exit $ac_status); } &&
5609
{ ac_try='test -s conftest$ac_exeext'
5610
{ (eval echo "$as_me:5610: \"$ac_try\"") >&5
5613
echo "$as_me:5613: \$? = $ac_status" >&5
5614
(exit $ac_status); }; }; then
5615
ac_cv_lib_dld_shl_load=yes
5617
echo "$as_me: failed program was:" >&5
5618
cat conftest.$ac_ext >&5
5619
ac_cv_lib_dld_shl_load=no
5621
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622
LIBS=$ac_check_lib_save_LIBS
5624
echo "$as_me:5624: result: $ac_cv_lib_dld_shl_load" >&5
5625
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5626
if test $ac_cv_lib_dld_shl_load = yes; then
5627
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5629
echo "$as_me:5629: checking for dlopen" >&5
5630
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5631
if test "${ac_cv_func_dlopen+set}" = set; then
5632
echo $ECHO_N "(cached) $ECHO_C" >&6
5634
cat >conftest.$ac_ext <<_ACEOF
5635
#line 5635 "configure"
5636
#include "confdefs.h"
5637
/* System header to define __stub macros and hopefully few prototypes,
5638
which can conflict with char dlopen (); below. */
5640
/* Override any gcc2 internal prototype to avoid an error. */
5644
/* We use char because int might match the return type of a gcc2
5645
builtin and then its argument prototype would still apply. */
5652
/* The GNU C library defines this for functions which it implements
5653
to always fail with ENOSYS. Some functions are actually named
5654
something starting with __ and the normal name is an alias. */
5655
#if defined (__stub_dlopen) || defined (__stub___dlopen)
5665
rm -f conftest.$ac_objext conftest$ac_exeext
5666
if { (eval echo "$as_me:5666: \"$ac_link\"") >&5
5667
(eval $ac_link) 2>&5
5669
echo "$as_me:5669: \$? = $ac_status" >&5
5670
(exit $ac_status); } &&
5671
{ ac_try='test -s conftest$ac_exeext'
5672
{ (eval echo "$as_me:5672: \"$ac_try\"") >&5
5675
echo "$as_me:5675: \$? = $ac_status" >&5
5676
(exit $ac_status); }; }; then
5677
ac_cv_func_dlopen=yes
5679
echo "$as_me: failed program was:" >&5
5680
cat conftest.$ac_ext >&5
5681
ac_cv_func_dlopen=no
5683
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5685
echo "$as_me:5685: result: $ac_cv_func_dlopen" >&5
5686
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5687
if test $ac_cv_func_dlopen = yes; then
5688
lt_cv_dlopen="dlopen"
5690
echo "$as_me:5690: checking for dlopen in -ldl" >&5
5691
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5692
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5693
echo $ECHO_N "(cached) $ECHO_C" >&6
5695
ac_check_lib_save_LIBS=$LIBS
5697
cat >conftest.$ac_ext <<_ACEOF
5698
#line 5698 "configure"
5699
#include "confdefs.h"
5701
/* Override any gcc2 internal prototype to avoid an error. */
5705
/* We use char because int might match the return type of a gcc2
5706
builtin and then its argument prototype would still apply. */
5716
rm -f conftest.$ac_objext conftest$ac_exeext
5717
if { (eval echo "$as_me:5717: \"$ac_link\"") >&5
5718
(eval $ac_link) 2>&5
5720
echo "$as_me:5720: \$? = $ac_status" >&5
5721
(exit $ac_status); } &&
5722
{ ac_try='test -s conftest$ac_exeext'
5723
{ (eval echo "$as_me:5723: \"$ac_try\"") >&5
5726
echo "$as_me:5726: \$? = $ac_status" >&5
5727
(exit $ac_status); }; }; then
5728
ac_cv_lib_dl_dlopen=yes
5730
echo "$as_me: failed program was:" >&5
5731
cat conftest.$ac_ext >&5
5732
ac_cv_lib_dl_dlopen=no
5734
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735
LIBS=$ac_check_lib_save_LIBS
5737
echo "$as_me:5737: result: $ac_cv_lib_dl_dlopen" >&5
5738
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5739
if test $ac_cv_lib_dl_dlopen = yes; then
5740
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5742
echo "$as_me:5742: checking for dlopen in -lsvld" >&5
5743
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5744
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5745
echo $ECHO_N "(cached) $ECHO_C" >&6
5747
ac_check_lib_save_LIBS=$LIBS
5749
cat >conftest.$ac_ext <<_ACEOF
5750
#line 5750 "configure"
5751
#include "confdefs.h"
5753
/* Override any gcc2 internal prototype to avoid an error. */
5757
/* We use char because int might match the return type of a gcc2
5758
builtin and then its argument prototype would still apply. */
5768
rm -f conftest.$ac_objext conftest$ac_exeext
5769
if { (eval echo "$as_me:5769: \"$ac_link\"") >&5
5770
(eval $ac_link) 2>&5
5772
echo "$as_me:5772: \$? = $ac_status" >&5
5773
(exit $ac_status); } &&
5774
{ ac_try='test -s conftest$ac_exeext'
5775
{ (eval echo "$as_me:5775: \"$ac_try\"") >&5
5778
echo "$as_me:5778: \$? = $ac_status" >&5
5779
(exit $ac_status); }; }; then
5780
ac_cv_lib_svld_dlopen=yes
5782
echo "$as_me: failed program was:" >&5
5783
cat conftest.$ac_ext >&5
5784
ac_cv_lib_svld_dlopen=no
5786
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5787
LIBS=$ac_check_lib_save_LIBS
5789
echo "$as_me:5789: result: $ac_cv_lib_svld_dlopen" >&5
5790
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5791
if test $ac_cv_lib_svld_dlopen = yes; then
5792
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5794
echo "$as_me:5794: checking for dld_link in -ldld" >&5
5795
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
5796
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5797
echo $ECHO_N "(cached) $ECHO_C" >&6
5799
ac_check_lib_save_LIBS=$LIBS
5801
cat >conftest.$ac_ext <<_ACEOF
5802
#line 5802 "configure"
5803
#include "confdefs.h"
5805
/* Override any gcc2 internal prototype to avoid an error. */
5809
/* We use char because int might match the return type of a gcc2
5810
builtin and then its argument prototype would still apply. */
5820
rm -f conftest.$ac_objext conftest$ac_exeext
5821
if { (eval echo "$as_me:5821: \"$ac_link\"") >&5
5822
(eval $ac_link) 2>&5
5824
echo "$as_me:5824: \$? = $ac_status" >&5
5825
(exit $ac_status); } &&
5826
{ ac_try='test -s conftest$ac_exeext'
5827
{ (eval echo "$as_me:5827: \"$ac_try\"") >&5
5830
echo "$as_me:5830: \$? = $ac_status" >&5
5831
(exit $ac_status); }; }; then
5832
ac_cv_lib_dld_dld_link=yes
5834
echo "$as_me: failed program was:" >&5
5835
cat conftest.$ac_ext >&5
5836
ac_cv_lib_dld_dld_link=no
5838
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839
LIBS=$ac_check_lib_save_LIBS
5841
echo "$as_me:5841: result: $ac_cv_lib_dld_dld_link" >&5
5842
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
5843
if test $ac_cv_lib_dld_dld_link = yes; then
5844
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5860
if test "x$lt_cv_dlopen" != xno; then
5866
case $lt_cv_dlopen in
5868
save_CPPFLAGS="$CPPFLAGS"
5869
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5871
save_LDFLAGS="$LDFLAGS"
5872
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5875
LIBS="$lt_cv_dlopen_libs $LIBS"
5877
echo "$as_me:5877: checking whether a program can dlopen itself" >&5
5878
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5879
if test "${lt_cv_dlopen_self+set}" = set; then
5880
echo $ECHO_N "(cached) $ECHO_C" >&6
5882
if test "$cross_compiling" = yes; then :
5883
lt_cv_dlopen_self=cross
5885
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5886
lt_status=$lt_dlunknown
5887
cat > conftest.$ac_ext <<EOF
5888
#line 5888 "configure"
5889
#include "confdefs.h"
5898
# define LT_DLGLOBAL RTLD_GLOBAL
5901
# define LT_DLGLOBAL DL_GLOBAL
5903
# define LT_DLGLOBAL 0
5907
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5908
find out it does not work in some platform. */
5909
#ifndef LT_DLLAZY_OR_NOW
5911
# define LT_DLLAZY_OR_NOW RTLD_LAZY
5914
# define LT_DLLAZY_OR_NOW DL_LAZY
5917
# define LT_DLLAZY_OR_NOW RTLD_NOW
5920
# define LT_DLLAZY_OR_NOW DL_NOW
5922
# define LT_DLLAZY_OR_NOW 0
5930
extern "C" void exit (int);
5933
void fnord() { int i=42;}
5936
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5937
int status = $lt_dlunknown;
5941
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5942
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5943
/* dlclose (self); */
5949
if { (eval echo "$as_me:5949: \"$ac_link\"") >&5
5950
(eval $ac_link) 2>&5
5952
echo "$as_me:5952: \$? = $ac_status" >&5
5953
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5954
(./conftest; exit; ) 2>/dev/null
5957
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5958
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5959
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5962
# compilation failed
5963
lt_cv_dlopen_self=no
5969
echo "$as_me:5969: result: $lt_cv_dlopen_self" >&5
5970
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5972
if test "x$lt_cv_dlopen_self" = xyes; then
5973
LDFLAGS="$LDFLAGS $link_static_flag"
5974
echo "$as_me:5974: checking whether a statically linked program can dlopen itself" >&5
5975
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5976
if test "${lt_cv_dlopen_self_static+set}" = set; then
5977
echo $ECHO_N "(cached) $ECHO_C" >&6
5979
if test "$cross_compiling" = yes; then :
5980
lt_cv_dlopen_self_static=cross
5982
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5983
lt_status=$lt_dlunknown
5984
cat > conftest.$ac_ext <<EOF
5985
#line 5985 "configure"
5986
#include "confdefs.h"
5995
# define LT_DLGLOBAL RTLD_GLOBAL
5998
# define LT_DLGLOBAL DL_GLOBAL
6000
# define LT_DLGLOBAL 0
6004
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6005
find out it does not work in some platform. */
6006
#ifndef LT_DLLAZY_OR_NOW
6008
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6011
# define LT_DLLAZY_OR_NOW DL_LAZY
6014
# define LT_DLLAZY_OR_NOW RTLD_NOW
6017
# define LT_DLLAZY_OR_NOW DL_NOW
6019
# define LT_DLLAZY_OR_NOW 0
6027
extern "C" void exit (int);
6030
void fnord() { int i=42;}
6033
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6034
int status = $lt_dlunknown;
6038
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6039
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6040
/* dlclose (self); */
6046
if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047
(eval $ac_link) 2>&5
6049
echo "$as_me:6049: \$? = $ac_status" >&5
6050
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6051
(./conftest; exit; ) 2>/dev/null
6054
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6055
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6056
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6059
# compilation failed
6060
lt_cv_dlopen_self_static=no
6066
echo "$as_me:6066: result: $lt_cv_dlopen_self_static" >&5
6067
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6070
CPPFLAGS="$save_CPPFLAGS"
6071
LDFLAGS="$save_LDFLAGS"
6076
case $lt_cv_dlopen_self in
6077
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6078
*) enable_dlopen_self=unknown ;;
6081
case $lt_cv_dlopen_self_static in
6082
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6083
*) enable_dlopen_self_static=unknown ;;
6087
if test "$enable_shared" = yes && test "$GCC" = yes; then
6088
case $archive_cmds in
6090
# FIXME: we may have to deal with multi-command sequences.
6093
# Test whether the compiler implicitly links with -lc since on some
6094
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6095
# to ld, don't add -lc before -lgcc.
6096
echo "$as_me:6096: checking whether -lc should be explicitly linked in" >&5
6097
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6098
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6099
echo $ECHO_N "(cached) $ECHO_C" >&6
6102
echo 'static int dummy;' > conftest.$ac_ext
6104
if { (eval echo "$as_me:6104: \"$ac_compile\"") >&5
6105
(eval $ac_compile) 2>&5
6107
echo "$as_me:6107: \$? = $ac_status" >&5
6108
(exit $ac_status); }; then
6111
libobjs=conftest.$ac_objext
6113
wl=$lt_cv_prog_cc_wl
6119
save_allow_undefined_flag=$allow_undefined_flag
6120
allow_undefined_flag=
6121
if { (eval echo "$as_me:6121: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6122
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6124
echo "$as_me:6124: \$? = $ac_status" >&5
6125
(exit $ac_status); }
6127
lt_cv_archive_cmds_need_lc=no
6129
lt_cv_archive_cmds_need_lc=yes
6131
allow_undefined_flag=$save_allow_undefined_flag
6133
cat conftest.err 1>&5
6137
echo "$as_me:6137: result: $lt_cv_archive_cmds_need_lc" >&5
6138
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6142
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6144
# The second clause should only fire when bootstrapping the
6145
# libtool distribution, otherwise you forgot to ship ltmain.sh
6146
# with your package, and you will get complaints that there are
6147
# no rules to generate ltmain.sh.
6148
if test -f "$ltmain"; then
6151
# If there is no Makefile yet, we rely on a make rule to execute
6152
# `config.status --recheck' to rerun these tests and create the
6153
# libtool script then.
6154
test -f Makefile && make "$ltmain"
6157
if test -f "$ltmain"; then
6158
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6161
echo creating $ofile
6163
# Now quote all the things that may contain metacharacters while being
6164
# careful not to overquote the AC_SUBSTed values. We take copies of the
6165
# variables and quote the copies for generation of the libtool script.
6166
for var in echo old_CC old_CFLAGS \
6167
AR AR_FLAGS CC LD LN_S NM SHELL \
6168
reload_flag reload_cmds wl \
6169
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6170
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6171
library_names_spec soname_spec \
6172
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6173
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6174
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6175
old_striplib striplib file_magic_cmd export_symbols_cmds \
6176
deplibs_check_method allow_undefined_flag no_undefined_flag \
6177
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6178
global_symbol_to_c_name_address \
6179
hardcode_libdir_flag_spec hardcode_libdir_separator \
6180
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6181
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6184
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6185
old_postinstall_cmds | old_postuninstall_cmds | \
6186
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6187
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6188
postinstall_cmds | postuninstall_cmds | \
6189
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6190
# Double-quote double-evaled strings.
6191
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6194
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6199
cat <<__EOF__ > "${ofile}T"
6202
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6203
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6204
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6206
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6207
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6209
# This program is free software; you can redistribute it and/or modify
6210
# it under the terms of the GNU General Public License as published by
6211
# the Free Software Foundation; either version 2 of the License, or
6212
# (at your option) any later version.
6214
# This program is distributed in the hope that it will be useful, but
6215
# WITHOUT ANY WARRANTY; without even the implied warranty of
6216
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6217
# General Public License for more details.
6219
# You should have received a copy of the GNU General Public License
6220
# along with this program; if not, write to the Free Software
6221
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6223
# As a special exception to the GNU General Public License, if you
6224
# distribute this file as part of a program that contains a
6225
# configuration script generated by Autoconf, you may include it under
6226
# the same distribution terms that you use for the rest of that program.
6228
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6229
Xsed="sed -e s/^X//"
6231
# The HP-UX ksh and POSIX shell print the target directory to stdout
6233
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6235
# ### BEGIN LIBTOOL CONFIG
6237
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6239
# Shell to use when invoking shell scripts.
6242
# Whether or not to build shared libraries.
6243
build_libtool_libs=$enable_shared
6245
# Whether or not to build static libraries.
6246
build_old_libs=$enable_static
6248
# Whether or not to add -lc for building shared libraries.
6249
build_libtool_need_lc=$need_lc
6251
# Whether or not to optimize for fast installation.
6252
fast_install=$enable_fast_install
6255
host_alias=$host_alias
6258
# An echo program that does not interpret backslashes.
6263
AR_FLAGS=$lt_AR_FLAGS
6265
# The default C compiler.
6268
# Is the compiler the GNU C compiler?
6271
# The linker used to build libraries.
6274
# Whether we need hard or soft links.
6277
# A BSD-compatible nm program.
6280
# A symbol stripping program
6283
# Used to examine libraries when file_magic_cmd begins "file"
6284
MAGIC_CMD=$MAGIC_CMD
6286
# Used on cygwin: DLL creation program.
6289
# Used on cygwin: object dumper.
6292
# Used on cygwin: assembler.
6295
# The name of the directory that contains temporary libtool files.
6298
# How to create reloadable object files.
6299
reload_flag=$lt_reload_flag
6300
reload_cmds=$lt_reload_cmds
6302
# How to pass a linker flag through the compiler.
6305
# Object file suffix (normally "o").
6308
# Old archive suffix (normally "a").
6311
# Executable file suffix (normally "").
6314
# Additional compiler flags for building library objects.
6315
pic_flag=$lt_pic_flag
6318
# Does compiler simultaneously support -c and -o options?
6319
compiler_c_o=$lt_compiler_c_o
6321
# Can we write directly to a .lo ?
6322
compiler_o_lo=$lt_compiler_o_lo
6324
# Must we lock files when doing compilation ?
6325
need_locks=$lt_need_locks
6327
# Do we need the lib prefix for modules?
6328
need_lib_prefix=$need_lib_prefix
6330
# Do we need a version for libraries?
6331
need_version=$need_version
6333
# Whether dlopen is supported.
6334
dlopen_support=$enable_dlopen
6336
# Whether dlopen of programs is supported.
6337
dlopen_self=$enable_dlopen_self
6339
# Whether dlopen of statically linked programs is supported.
6340
dlopen_self_static=$enable_dlopen_self_static
6342
# Compiler flag to prevent dynamic linking.
6343
link_static_flag=$lt_link_static_flag
6345
# Compiler flag to turn off builtin functions.
6346
no_builtin_flag=$lt_no_builtin_flag
6348
# Compiler flag to allow reflexive dlopens.
6349
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6351
# Compiler flag to generate shared objects directly from archives.
6352
whole_archive_flag_spec=$lt_whole_archive_flag_spec
6354
# Compiler flag to generate thread-safe objects.
6355
thread_safe_flag_spec=$lt_thread_safe_flag_spec
6357
# Library versioning type.
6358
version_type=$version_type
6360
# Format of library name prefix.
6361
libname_spec=$lt_libname_spec
6363
# List of archive names. First name is the real one, the rest are links.
6364
# The last name is the one that the linker finds with -lNAME.
6365
library_names_spec=$lt_library_names_spec
6367
# The coded name of the library, if different from the real name.
6368
soname_spec=$lt_soname_spec
6370
# Commands used to build and install an old-style archive.
6372
old_archive_cmds=$lt_old_archive_cmds
6373
old_postinstall_cmds=$lt_old_postinstall_cmds
6374
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6376
# Create an old-style archive from a shared archive.
6377
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6379
# Create a temporary old-style archive to link instead of a shared archive.
6380
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6382
# Commands used to build and install a shared archive.
6383
archive_cmds=$lt_archive_cmds
6384
archive_expsym_cmds=$lt_archive_expsym_cmds
6385
postinstall_cmds=$lt_postinstall_cmds
6386
postuninstall_cmds=$lt_postuninstall_cmds
6388
# Commands to strip libraries.
6389
old_striplib=$lt_old_striplib
6390
striplib=$lt_striplib
6392
# Method to check whether dependent libraries are shared objects.
6393
deplibs_check_method=$lt_deplibs_check_method
6395
# Command to use when deplibs_check_method == file_magic.
6396
file_magic_cmd=$lt_file_magic_cmd
6398
# Flag that allows shared libraries with undefined symbols to be built.
6399
allow_undefined_flag=$lt_allow_undefined_flag
6401
# Flag that forces no undefined symbols.
6402
no_undefined_flag=$lt_no_undefined_flag
6404
# Commands used to finish a libtool library installation in a directory.
6405
finish_cmds=$lt_finish_cmds
6407
# Same as above, but a single script fragment to be evaled but not shown.
6408
finish_eval=$lt_finish_eval
6410
# Take the output of nm and produce a listing of raw symbols and C names.
6411
global_symbol_pipe=$lt_global_symbol_pipe
6413
# Transform the output of nm in a proper C declaration
6414
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6416
# Transform the output of nm in a C name address pair
6417
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6419
# This is the shared library runtime path variable.
6420
runpath_var=$runpath_var
6422
# This is the shared library path variable.
6423
shlibpath_var=$shlibpath_var
6425
# Is shlibpath searched before the hard-coded library search path?
6426
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6428
# How to hardcode a shared library path into an executable.
6429
hardcode_action=$hardcode_action
6431
# Whether we should hardcode library paths into libraries.
6432
hardcode_into_libs=$hardcode_into_libs
6434
# Flag to hardcode \$libdir into a binary during linking.
6435
# This must work even if \$libdir does not exist.
6436
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6438
# Whether we need a single -rpath flag with a separated argument.
6439
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6441
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6443
hardcode_direct=$hardcode_direct
6445
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6447
hardcode_minus_L=$hardcode_minus_L
6449
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6450
# the resulting binary.
6451
hardcode_shlibpath_var=$hardcode_shlibpath_var
6453
# Variables whose values should be saved in libtool wrapper scripts and
6454
# restored at relink time.
6455
variables_saved_for_relink="$variables_saved_for_relink"
6457
# Whether libtool must link a program against all its dependency libraries.
6458
link_all_deplibs=$link_all_deplibs
6460
# Compile-time system search path for libraries
6461
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6463
# Run-time system search path for libraries
6464
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6466
# Fix the shell variable \$srcfile for the compiler.
6467
fix_srcfile_path="$fix_srcfile_path"
6469
# Set to yes if exported symbols are required.
6470
always_export_symbols=$always_export_symbols
6472
# The commands to list exported symbols.
6473
export_symbols_cmds=$lt_export_symbols_cmds
6475
# The commands to extract the exported symbol list from a shared archive.
6476
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6478
# Symbols that should not be listed in the preloaded symbols.
6479
exclude_expsyms=$lt_exclude_expsyms
6481
# Symbols that must always be exported.
6482
include_expsyms=$lt_include_expsyms
6484
# ### END LIBTOOL CONFIG
6490
cat <<\EOF >> "${ofile}T"
6492
# AIX sometimes has problems with the GCC collect2 program. For some
6493
# reason, if we set the COLLECT_NAMES environment variable, the problems
6494
# vanish in a puff of smoke.
6495
if test "X${COLLECT_NAMES+set}" != Xset; then
6497
export COLLECT_NAMES
6504
cygwin* | mingw* | pw32* | os2*)
6505
cat <<'EOF' >> "${ofile}T"
6506
# This is a source program that is used to create dlls on Windows
6507
# Don't remove nor modify the starting and closing comments
6508
# /* ltdll.c starts here */
6509
# #define WIN32_LEAN_AND_MEAN
6510
# #include <windows.h>
6511
# #undef WIN32_LEAN_AND_MEAN
6512
# #include <stdio.h>
6514
# #ifndef __CYGWIN__
6515
# # ifdef __CYGWIN32__
6516
# # define __CYGWIN__ __CYGWIN32__
6520
# #ifdef __cplusplus
6523
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6524
# #ifdef __cplusplus
6529
# #include <cygwin/cygwin_dll.h>
6530
# DECLARE_CYGWIN_DLL( DllMain );
6532
# HINSTANCE __hDllInstance_base;
6535
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6537
# __hDllInstance_base = hInst;
6540
# /* ltdll.c ends here */
6541
# This is a source program that is used to create import libraries
6542
# on Windows for dlls which lack them. Don't remove nor modify the
6543
# starting and closing comments
6544
# /* impgen.c starts here */
6545
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6547
# This file is part of GNU libtool.
6549
# This program is free software; you can redistribute it and/or modify
6550
# it under the terms of the GNU General Public License as published by
6551
# the Free Software Foundation; either version 2 of the License, or
6552
# (at your option) any later version.
6554
# This program is distributed in the hope that it will be useful,
6555
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6556
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6557
# GNU General Public License for more details.
6559
# You should have received a copy of the GNU General Public License
6560
# along with this program; if not, write to the Free Software
6561
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6564
# #include <stdio.h> /* for printf() */
6565
# #include <unistd.h> /* for open(), lseek(), read() */
6566
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6567
# #include <string.h> /* for strdup() */
6569
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6571
# #define O_BINARY 0
6574
# static unsigned int
6575
# pe_get16 (fd, offset)
6579
# unsigned char b[2];
6580
# lseek (fd, offset, SEEK_SET);
6582
# return b[0] + (b[1]<<8);
6585
# static unsigned int
6586
# pe_get32 (fd, offset)
6590
# unsigned char b[4];
6591
# lseek (fd, offset, SEEK_SET);
6593
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6596
# static unsigned int
6600
# unsigned char *b = ptr;
6601
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6610
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6611
# unsigned long export_rva, export_size, nsections, secptr, expptr;
6612
# unsigned long name_rvas, nexp;
6613
# unsigned char *expdata, *erva;
6614
# char *filename, *dll_name;
6616
# filename = argv[1];
6618
# dll = open(filename, O_RDONLY|O_BINARY);
6622
# dll_name = filename;
6624
# for (i=0; filename[i]; i++)
6625
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6626
# dll_name = filename + i +1;
6628
# pe_header_offset = pe_get32 (dll, 0x3c);
6629
# opthdr_ofs = pe_header_offset + 4 + 20;
6630
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6632
# if (num_entries < 1) /* no exports */
6635
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6636
# export_size = pe_get32 (dll, opthdr_ofs + 100);
6637
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6638
# secptr = (pe_header_offset + 4 + 20 +
6639
# pe_get16 (dll, pe_header_offset + 4 + 16));
6642
# for (i = 0; i < nsections; i++)
6645
# unsigned long secptr1 = secptr + 40 * i;
6646
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6647
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6648
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6649
# lseek(dll, secptr1, SEEK_SET);
6650
# read(dll, sname, 8);
6651
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
6653
# expptr = fptr + (export_rva - vaddr);
6654
# if (export_rva + export_size > vaddr + vsize)
6655
# export_size = vsize - (export_rva - vaddr);
6660
# expdata = (unsigned char*)malloc(export_size);
6661
# lseek (dll, expptr, SEEK_SET);
6662
# read (dll, expdata, export_size);
6663
# erva = expdata - export_rva;
6665
# nexp = pe_as32 (expdata+24);
6666
# name_rvas = pe_as32 (expdata+32);
6668
# printf ("EXPORTS\n");
6669
# for (i = 0; i<nexp; i++)
6671
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6672
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6677
# /* impgen.c ends here */
6683
# We use sed instead of cat because bash on DJGPP gets confused if
6684
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6685
# text mode, it properly converts lines to CR/LF. This bash problem
6686
# is reportedly fixed, but why not run on old versions too?
6687
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6689
mv -f "${ofile}T" "$ofile" || \
6690
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6694
# This can be used to rebuild libtool when needed
6695
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6697
# Always use our own libtool.
6698
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6700
# Prevent multiple expansion
6704
# Extract the first word of "$ac_prog", so it can be a program name with args.
6705
set dummy $ac_prog; ac_word=$2
6706
echo "$as_me:6706: checking for $ac_word" >&5
6707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708
if test "${ac_cv_prog_regex_cmd+set}" = set; then
6709
echo $ECHO_N "(cached) $ECHO_C" >&6
6711
if test -n "$regex_cmd"; then
6712
ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
6714
ac_save_IFS=$IFS; IFS=$ac_path_separator
6716
for ac_dir in $ac_dummy; do
6718
test -z "$ac_dir" && ac_dir=.
6719
$as_executable_p "$ac_dir/$ac_word" || continue
6720
ac_cv_prog_regex_cmd="$ac_prog"
6721
echo "$as_me:6721: found $ac_dir/$ac_word" >&5
6727
regex_cmd=$ac_cv_prog_regex_cmd
6728
if test -n "$regex_cmd"; then
6729
echo "$as_me:6729: result: $regex_cmd" >&5
6730
echo "${ECHO_T}$regex_cmd" >&6
6732
echo "$as_me:6732: result: no" >&5
6733
echo "${ECHO_T}no" >&6
6736
test -n "$regex_cmd" && break
6739
if test x$regex_cmd = "x"; then
6740
{ { echo "$as_me:6740: error: error. sed is required to build the data files." >&5
6741
echo "$as_me: error: error. sed is required to build the data files." >&2;}
6742
{ (exit 1); exit 1; }; }
6745
echo "$as_me:6745: checking for ANSI C header files" >&5
6746
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6747
if test "${ac_cv_header_stdc+set}" = set; then
6748
echo $ECHO_N "(cached) $ECHO_C" >&6
6750
cat >conftest.$ac_ext <<_ACEOF
6751
#line 6751 "configure"
6752
#include "confdefs.h"
6759
if { (eval echo "$as_me:6759: \"$ac_cpp conftest.$ac_ext\"") >&5
6760
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6762
egrep -v '^ *\+' conftest.er1 >conftest.err
6764
cat conftest.err >&5
6765
echo "$as_me:6765: \$? = $ac_status" >&5
6766
(exit $ac_status); } >/dev/null; then
6767
if test -s conftest.err; then
6768
ac_cpp_err=$ac_c_preproc_warn_flag
6775
if test -z "$ac_cpp_err"; then
6776
ac_cv_header_stdc=yes
6778
echo "$as_me: failed program was:" >&5
6779
cat conftest.$ac_ext >&5
6780
ac_cv_header_stdc=no
6782
rm -f conftest.err conftest.$ac_ext
6784
if test $ac_cv_header_stdc = yes; then
6785
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6786
cat >conftest.$ac_ext <<_ACEOF
6787
#line 6787 "configure"
6788
#include "confdefs.h"
6792
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793
egrep "memchr" >/dev/null 2>&1; then
6796
ac_cv_header_stdc=no
6802
if test $ac_cv_header_stdc = yes; then
6803
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6804
cat >conftest.$ac_ext <<_ACEOF
6805
#line 6805 "configure"
6806
#include "confdefs.h"
6810
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811
egrep "free" >/dev/null 2>&1; then
6814
ac_cv_header_stdc=no
6820
if test $ac_cv_header_stdc = yes; then
6821
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6822
if test "$cross_compiling" = yes; then
6825
cat >conftest.$ac_ext <<_ACEOF
6826
#line 6826 "configure"
6827
#include "confdefs.h"
6829
#if ((' ' & 0x0FF) == 0x020)
6830
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6831
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6833
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6834
|| ('j' <= (c) && (c) <= 'r') \
6835
|| ('s' <= (c) && (c) <= 'z'))
6836
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6839
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6844
for (i = 0; i < 256; i++)
6845
if (XOR (islower (i), ISLOWER (i))
6846
|| toupper (i) != TOUPPER (i))
6851
rm -f conftest$ac_exeext
6852
if { (eval echo "$as_me:6852: \"$ac_link\"") >&5
6853
(eval $ac_link) 2>&5
6855
echo "$as_me:6855: \$? = $ac_status" >&5
6856
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6857
{ (eval echo "$as_me:6857: \"$ac_try\"") >&5
6860
echo "$as_me:6860: \$? = $ac_status" >&5
6861
(exit $ac_status); }; }; then
6864
echo "$as_me: program exited with status $ac_status" >&5
6865
echo "$as_me: failed program was:" >&5
6866
cat conftest.$ac_ext >&5
6867
ac_cv_header_stdc=no
6869
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6873
echo "$as_me:6873: result: $ac_cv_header_stdc" >&5
6874
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6875
if test $ac_cv_header_stdc = yes; then
6877
cat >>confdefs.h <<\EOF
6878
#define STDC_HEADERS 1
6883
for ac_header in errno.h ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h time.h unistd.h sys/param.h sys/select.h sys/signal.h sys/stat.h sys/time.h sys/types.h sys/wait.h
6885
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6886
echo "$as_me:6886: checking for $ac_header" >&5
6887
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6888
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6889
echo $ECHO_N "(cached) $ECHO_C" >&6
6891
cat >conftest.$ac_ext <<_ACEOF
6892
#line 6892 "configure"
6893
#include "confdefs.h"
6894
#include <$ac_header>
6896
if { (eval echo "$as_me:6896: \"$ac_cpp conftest.$ac_ext\"") >&5
6897
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6899
egrep -v '^ *\+' conftest.er1 >conftest.err
6901
cat conftest.err >&5
6902
echo "$as_me:6902: \$? = $ac_status" >&5
6903
(exit $ac_status); } >/dev/null; then
6904
if test -s conftest.err; then
6905
ac_cpp_err=$ac_c_preproc_warn_flag
6912
if test -z "$ac_cpp_err"; then
6913
eval "$as_ac_Header=yes"
6915
echo "$as_me: failed program was:" >&5
6916
cat conftest.$ac_ext >&5
6917
eval "$as_ac_Header=no"
6919
rm -f conftest.err conftest.$ac_ext
6921
echo "$as_me:6921: result: `eval echo '${'$as_ac_Header'}'`" >&5
6922
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6923
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6924
cat >>confdefs.h <<EOF
6925
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931
echo "$as_me:6931: checking whether time.h and sys/time.h may both be included" >&5
6932
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6933
if test "${ac_cv_header_time+set}" = set; then
6934
echo $ECHO_N "(cached) $ECHO_C" >&6
6936
cat >conftest.$ac_ext <<_ACEOF
6937
#line 6937 "configure"
6938
#include "confdefs.h"
6939
#include <sys/types.h>
6940
#include <sys/time.h>
6946
if ((struct tm *) 0)
6952
rm -f conftest.$ac_objext
6953
if { (eval echo "$as_me:6953: \"$ac_compile\"") >&5
6954
(eval $ac_compile) 2>&5
6956
echo "$as_me:6956: \$? = $ac_status" >&5
6957
(exit $ac_status); } &&
6958
{ ac_try='test -s conftest.$ac_objext'
6959
{ (eval echo "$as_me:6959: \"$ac_try\"") >&5
6962
echo "$as_me:6962: \$? = $ac_status" >&5
6963
(exit $ac_status); }; }; then
6964
ac_cv_header_time=yes
6966
echo "$as_me: failed program was:" >&5
6967
cat conftest.$ac_ext >&5
6968
ac_cv_header_time=no
6970
rm -f conftest.$ac_objext conftest.$ac_ext
6972
echo "$as_me:6972: result: $ac_cv_header_time" >&5
6973
echo "${ECHO_T}$ac_cv_header_time" >&6
6974
if test $ac_cv_header_time = yes; then
6976
cat >>confdefs.h <<\EOF
6977
#define TIME_WITH_SYS_TIME 1
6982
for ac_func in basename
6984
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6985
echo "$as_me:6985: checking for $ac_func" >&5
6986
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6987
if eval "test \"\${$as_ac_var+set}\" = set"; then
6988
echo $ECHO_N "(cached) $ECHO_C" >&6
6990
cat >conftest.$ac_ext <<_ACEOF
6991
#line 6991 "configure"
6992
#include "confdefs.h"
6993
/* System header to define __stub macros and hopefully few prototypes,
6994
which can conflict with char $ac_func (); below. */
6996
/* Override any gcc2 internal prototype to avoid an error. */
7000
/* We use char because int might match the return type of a gcc2
7001
builtin and then its argument prototype would still apply. */
7008
/* The GNU C library defines this for functions which it implements
7009
to always fail with ENOSYS. Some functions are actually named
7010
something starting with __ and the normal name is an alias. */
7011
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021
rm -f conftest.$ac_objext conftest$ac_exeext
7022
if { (eval echo "$as_me:7022: \"$ac_link\"") >&5
7023
(eval $ac_link) 2>&5
7025
echo "$as_me:7025: \$? = $ac_status" >&5
7026
(exit $ac_status); } &&
7027
{ ac_try='test -s conftest$ac_exeext'
7028
{ (eval echo "$as_me:7028: \"$ac_try\"") >&5
7031
echo "$as_me:7031: \$? = $ac_status" >&5
7032
(exit $ac_status); }; }; then
7033
eval "$as_ac_var=yes"
7035
echo "$as_me: failed program was:" >&5
7036
cat conftest.$ac_ext >&5
7037
eval "$as_ac_var=no"
7039
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7041
echo "$as_me:7041: result: `eval echo '${'$as_ac_var'}'`" >&5
7042
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7043
if test `eval echo '${'$as_ac_var'}'` = yes; then
7044
cat >>confdefs.h <<EOF
7045
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7049
echo "$as_me:7049: checking for basename in -lgen" >&5
7050
echo $ECHO_N "checking for basename in -lgen... $ECHO_C" >&6
7051
if test "${ac_cv_lib_gen_basename+set}" = set; then
7052
echo $ECHO_N "(cached) $ECHO_C" >&6
7054
ac_check_lib_save_LIBS=$LIBS
7056
cat >conftest.$ac_ext <<_ACEOF
7057
#line 7057 "configure"
7058
#include "confdefs.h"
7060
/* Override any gcc2 internal prototype to avoid an error. */
7064
/* We use char because int might match the return type of a gcc2
7065
builtin and then its argument prototype would still apply. */
7075
rm -f conftest.$ac_objext conftest$ac_exeext
7076
if { (eval echo "$as_me:7076: \"$ac_link\"") >&5
7077
(eval $ac_link) 2>&5
7079
echo "$as_me:7079: \$? = $ac_status" >&5
7080
(exit $ac_status); } &&
7081
{ ac_try='test -s conftest$ac_exeext'
7082
{ (eval echo "$as_me:7082: \"$ac_try\"") >&5
7085
echo "$as_me:7085: \$? = $ac_status" >&5
7086
(exit $ac_status); }; }; then
7087
ac_cv_lib_gen_basename=yes
7089
echo "$as_me: failed program was:" >&5
7090
cat conftest.$ac_ext >&5
7091
ac_cv_lib_gen_basename=no
7093
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7094
LIBS=$ac_check_lib_save_LIBS
7096
echo "$as_me:7096: result: $ac_cv_lib_gen_basename" >&5
7097
echo "${ECHO_T}$ac_cv_lib_gen_basename" >&6
7098
if test $ac_cv_lib_gen_basename = yes; then
7105
for ac_func in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
7107
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7108
echo "$as_me:7108: checking for $ac_func" >&5
7109
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7110
if eval "test \"\${$as_ac_var+set}\" = set"; then
7111
echo $ECHO_N "(cached) $ECHO_C" >&6
7113
cat >conftest.$ac_ext <<_ACEOF
7114
#line 7114 "configure"
7115
#include "confdefs.h"
7116
/* System header to define __stub macros and hopefully few prototypes,
7117
which can conflict with char $ac_func (); below. */
7119
/* Override any gcc2 internal prototype to avoid an error. */
7123
/* We use char because int might match the return type of a gcc2
7124
builtin and then its argument prototype would still apply. */
7131
/* The GNU C library defines this for functions which it implements
7132
to always fail with ENOSYS. Some functions are actually named
7133
something starting with __ and the normal name is an alias. */
7134
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7144
rm -f conftest.$ac_objext conftest$ac_exeext
7145
if { (eval echo "$as_me:7145: \"$ac_link\"") >&5
7146
(eval $ac_link) 2>&5
7148
echo "$as_me:7148: \$? = $ac_status" >&5
7149
(exit $ac_status); } &&
7150
{ ac_try='test -s conftest$ac_exeext'
7151
{ (eval echo "$as_me:7151: \"$ac_try\"") >&5
7154
echo "$as_me:7154: \$? = $ac_status" >&5
7155
(exit $ac_status); }; }; then
7156
eval "$as_ac_var=yes"
7158
echo "$as_me: failed program was:" >&5
7159
cat conftest.$ac_ext >&5
7160
eval "$as_ac_var=no"
7162
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7164
echo "$as_me:7164: result: `eval echo '${'$as_ac_var'}'`" >&5
7165
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7166
if test `eval echo '${'$as_ac_var'}'` = yes; then
7167
cat >>confdefs.h <<EOF
7168
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7174
echo "$as_me:7174: checking for t_open in -lnsl" >&5
7175
echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
7176
if test "${ac_cv_lib_nsl_t_open+set}" = set; then
7177
echo $ECHO_N "(cached) $ECHO_C" >&6
7179
ac_check_lib_save_LIBS=$LIBS
7181
cat >conftest.$ac_ext <<_ACEOF
7182
#line 7182 "configure"
7183
#include "confdefs.h"
7185
/* Override any gcc2 internal prototype to avoid an error. */
7189
/* We use char because int might match the return type of a gcc2
7190
builtin and then its argument prototype would still apply. */
7200
rm -f conftest.$ac_objext conftest$ac_exeext
7201
if { (eval echo "$as_me:7201: \"$ac_link\"") >&5
7202
(eval $ac_link) 2>&5
7204
echo "$as_me:7204: \$? = $ac_status" >&5
7205
(exit $ac_status); } &&
7206
{ ac_try='test -s conftest$ac_exeext'
7207
{ (eval echo "$as_me:7207: \"$ac_try\"") >&5
7210
echo "$as_me:7210: \$? = $ac_status" >&5
7211
(exit $ac_status); }; }; then
7212
ac_cv_lib_nsl_t_open=yes
7214
echo "$as_me: failed program was:" >&5
7215
cat conftest.$ac_ext >&5
7216
ac_cv_lib_nsl_t_open=no
7218
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7219
LIBS=$ac_check_lib_save_LIBS
7221
echo "$as_me:7221: result: $ac_cv_lib_nsl_t_open" >&5
7222
echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
7223
if test $ac_cv_lib_nsl_t_open = yes; then
7227
echo "$as_me:7227: checking for socket in -lsocket" >&5
7228
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7229
if test "${ac_cv_lib_socket_socket+set}" = set; then
7230
echo $ECHO_N "(cached) $ECHO_C" >&6
7232
ac_check_lib_save_LIBS=$LIBS
7233
LIBS="-lsocket $LIBS"
7234
cat >conftest.$ac_ext <<_ACEOF
7235
#line 7235 "configure"
7236
#include "confdefs.h"
7238
/* Override any gcc2 internal prototype to avoid an error. */
7242
/* We use char because int might match the return type of a gcc2
7243
builtin and then its argument prototype would still apply. */
7253
rm -f conftest.$ac_objext conftest$ac_exeext
7254
if { (eval echo "$as_me:7254: \"$ac_link\"") >&5
7255
(eval $ac_link) 2>&5
7257
echo "$as_me:7257: \$? = $ac_status" >&5
7258
(exit $ac_status); } &&
7259
{ ac_try='test -s conftest$ac_exeext'
7260
{ (eval echo "$as_me:7260: \"$ac_try\"") >&5
7263
echo "$as_me:7263: \$? = $ac_status" >&5
7264
(exit $ac_status); }; }; then
7265
ac_cv_lib_socket_socket=yes
7267
echo "$as_me: failed program was:" >&5
7268
cat conftest.$ac_ext >&5
7269
ac_cv_lib_socket_socket=no
7271
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272
LIBS=$ac_check_lib_save_LIBS
7274
echo "$as_me:7274: result: $ac_cv_lib_socket_socket" >&5
7275
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7276
if test $ac_cv_lib_socket_socket = yes; then
7277
LIBS="$LIBS -lsocket"
7280
echo "$as_me:7280: checking for X" >&5
7281
echo $ECHO_N "checking for X... $ECHO_C" >&6
7283
# Check whether --with-x or --without-x was given.
7284
if test "${with_x+set}" = set; then
7288
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7289
if test "x$with_x" = xno; then
7290
# The user explicitly disabled X.
7293
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7294
# Both variables are already set.
7297
if test "${ac_cv_have_x+set}" = set; then
7298
echo $ECHO_N "(cached) $ECHO_C" >&6
7300
# One or both of the vars are not set, and there is no cached value.
7301
ac_x_includes=no ac_x_libraries=no
7303
if mkdir conftest.dir; then
7305
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
7306
cat >Imakefile <<'EOF'
7308
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7310
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7311
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7313
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7314
for ac_extension in a so sl; do
7315
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7316
test -f $ac_im_libdir/libX11.$ac_extension; then
7317
ac_im_usrlibdir=$ac_im_libdir; break
7320
# Screen out bogus values from the imake configuration. They are
7321
# bogus both because they are the default anyway, and because
7322
# using them would break gcc on systems where it needs fixed includes.
7323
case $ac_im_incroot in
7325
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7327
case $ac_im_usrlibdir in
7329
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7336
# Standard set of common directories for X headers.
7337
# Check X11 before X11Rn because it is often a symlink to the current release.
7349
/usr/local/X11/include
7350
/usr/local/X11R6/include
7351
/usr/local/X11R5/include
7352
/usr/local/X11R4/include
7354
/usr/local/include/X11
7355
/usr/local/include/X11R6
7356
/usr/local/include/X11R5
7357
/usr/local/include/X11R4
7361
/usr/XFree86/include/X11
7365
/usr/unsupported/include
7367
/usr/local/x11r5/include
7368
/usr/lpp/Xamples/include
7370
/usr/openwin/include
7371
/usr/openwin/share/include'
7373
if test "$ac_x_includes" = no; then
7374
# Guess where to find include files, by looking for Intrinsic.h.
7375
# First, try using that file with no special directory specified.
7376
cat >conftest.$ac_ext <<_ACEOF
7377
#line 7377 "configure"
7378
#include "confdefs.h"
7379
#include <X11/Intrinsic.h>
7381
if { (eval echo "$as_me:7381: \"$ac_cpp conftest.$ac_ext\"") >&5
7382
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384
egrep -v '^ *\+' conftest.er1 >conftest.err
7386
cat conftest.err >&5
7387
echo "$as_me:7387: \$? = $ac_status" >&5
7388
(exit $ac_status); } >/dev/null; then
7389
if test -s conftest.err; then
7390
ac_cpp_err=$ac_c_preproc_warn_flag
7397
if test -z "$ac_cpp_err"; then
7398
# We can compile using X headers with no special include directory.
7401
echo "$as_me: failed program was:" >&5
7402
cat conftest.$ac_ext >&5
7403
for ac_dir in $ac_x_header_dirs; do
7404
if test -r "$ac_dir/X11/Intrinsic.h"; then
7405
ac_x_includes=$ac_dir
7410
rm -f conftest.err conftest.$ac_ext
7411
fi # $ac_x_includes = no
7413
if test "$ac_x_libraries" = no; then
7414
# Check for the libraries.
7415
# See if we find them without any special options.
7416
# Don't add to $LIBS permanently.
7419
cat >conftest.$ac_ext <<_ACEOF
7420
#line 7420 "configure"
7421
#include "confdefs.h"
7422
#include <X11/Intrinsic.h>
7431
rm -f conftest.$ac_objext conftest$ac_exeext
7432
if { (eval echo "$as_me:7432: \"$ac_link\"") >&5
7433
(eval $ac_link) 2>&5
7435
echo "$as_me:7435: \$? = $ac_status" >&5
7436
(exit $ac_status); } &&
7437
{ ac_try='test -s conftest$ac_exeext'
7438
{ (eval echo "$as_me:7438: \"$ac_try\"") >&5
7441
echo "$as_me:7441: \$? = $ac_status" >&5
7442
(exit $ac_status); }; }; then
7444
# We can link X programs with no special library path.
7447
echo "$as_me: failed program was:" >&5
7448
cat conftest.$ac_ext >&5
7450
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7452
# Don't even attempt the hair of trying to link an X program!
7453
for ac_extension in a so sl; do
7454
if test -r $ac_dir/libXt.$ac_extension; then
7455
ac_x_libraries=$ac_dir
7461
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7462
fi # $ac_x_libraries = no
7464
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7465
# Didn't find X anywhere. Cache the known absence of X.
7466
ac_cv_have_x="have_x=no"
7468
# Record where we found X for the cache.
7469
ac_cv_have_x="have_x=yes \
7470
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7475
eval "$ac_cv_have_x"
7478
if test "$have_x" != yes; then
7479
echo "$as_me:7479: result: $have_x" >&5
7480
echo "${ECHO_T}$have_x" >&6
7483
# If each of the values was on the command line, it overrides each guess.
7484
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7485
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7486
# Update the cache value to reflect the command line values.
7487
ac_cv_have_x="have_x=yes \
7488
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7489
echo "$as_me:7489: result: libraries $x_libraries, headers $x_includes" >&5
7490
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7493
if test "$no_x" = yes; then
7494
# Not all programs may use this symbol, but it does not hurt to define it.
7496
cat >>confdefs.h <<\EOF
7497
#define X_DISPLAY_MISSING 1
7500
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7502
if test -n "$x_includes"; then
7503
X_CFLAGS="$X_CFLAGS -I$x_includes"
7506
# It would also be nice to do this for all -L options, not just this one.
7507
if test -n "$x_libraries"; then
7508
X_LIBS="$X_LIBS -L$x_libraries"
7509
# For Solaris; some versions of Sun CC require a space after -R and
7510
# others require no space. Words are not sufficient . . . .
7511
case `(uname -sr) 2>/dev/null` in
7513
echo "$as_me:7513: checking whether -R must be followed by a space" >&5
7514
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7515
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7516
cat >conftest.$ac_ext <<_ACEOF
7517
#line 7517 "configure"
7518
#include "confdefs.h"
7528
rm -f conftest.$ac_objext conftest$ac_exeext
7529
if { (eval echo "$as_me:7529: \"$ac_link\"") >&5
7530
(eval $ac_link) 2>&5
7532
echo "$as_me:7532: \$? = $ac_status" >&5
7533
(exit $ac_status); } &&
7534
{ ac_try='test -s conftest$ac_exeext'
7535
{ (eval echo "$as_me:7535: \"$ac_try\"") >&5
7538
echo "$as_me:7538: \$? = $ac_status" >&5
7539
(exit $ac_status); }; }; then
7542
echo "$as_me: failed program was:" >&5
7543
cat conftest.$ac_ext >&5
7546
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7547
if test $ac_R_nospace = yes; then
7548
echo "$as_me:7548: result: no" >&5
7549
echo "${ECHO_T}no" >&6
7550
X_LIBS="$X_LIBS -R$x_libraries"
7552
LIBS="$ac_xsave_LIBS -R $x_libraries"
7553
cat >conftest.$ac_ext <<_ACEOF
7554
#line 7554 "configure"
7555
#include "confdefs.h"
7565
rm -f conftest.$ac_objext conftest$ac_exeext
7566
if { (eval echo "$as_me:7566: \"$ac_link\"") >&5
7567
(eval $ac_link) 2>&5
7569
echo "$as_me:7569: \$? = $ac_status" >&5
7570
(exit $ac_status); } &&
7571
{ ac_try='test -s conftest$ac_exeext'
7572
{ (eval echo "$as_me:7572: \"$ac_try\"") >&5
7575
echo "$as_me:7575: \$? = $ac_status" >&5
7576
(exit $ac_status); }; }; then
7579
echo "$as_me: failed program was:" >&5
7580
cat conftest.$ac_ext >&5
7583
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7584
if test $ac_R_space = yes; then
7585
echo "$as_me:7585: result: yes" >&5
7586
echo "${ECHO_T}yes" >&6
7587
X_LIBS="$X_LIBS -R $x_libraries"
7589
echo "$as_me:7589: result: neither works" >&5
7590
echo "${ECHO_T}neither works" >&6
7597
# Check for system-dependent libraries X programs must link with.
7598
# Do this before checking for the system-independent R6 libraries
7599
# (-lICE), since we may need -lsocket or whatever for X linking.
7601
if test "$ISC" = yes; then
7602
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7604
# Martyn Johnson says this is needed for Ultrix, if the X
7605
# libraries were built with DECnet support. And Karl Berry says
7606
# the Alpha needs dnet_stub (dnet does not exist).
7607
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7608
cat >conftest.$ac_ext <<_ACEOF
7609
#line 7609 "configure"
7610
#include "confdefs.h"
7612
/* Override any gcc2 internal prototype to avoid an error. */
7616
/* We use char because int might match the return type of a gcc2
7617
builtin and then its argument prototype would still apply. */
7618
char XOpenDisplay ();
7627
rm -f conftest.$ac_objext conftest$ac_exeext
7628
if { (eval echo "$as_me:7628: \"$ac_link\"") >&5
7629
(eval $ac_link) 2>&5
7631
echo "$as_me:7631: \$? = $ac_status" >&5
7632
(exit $ac_status); } &&
7633
{ ac_try='test -s conftest$ac_exeext'
7634
{ (eval echo "$as_me:7634: \"$ac_try\"") >&5
7637
echo "$as_me:7637: \$? = $ac_status" >&5
7638
(exit $ac_status); }; }; then
7641
echo "$as_me: failed program was:" >&5
7642
cat conftest.$ac_ext >&5
7643
echo "$as_me:7643: checking for dnet_ntoa in -ldnet" >&5
7644
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7645
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7646
echo $ECHO_N "(cached) $ECHO_C" >&6
7648
ac_check_lib_save_LIBS=$LIBS
7650
cat >conftest.$ac_ext <<_ACEOF
7651
#line 7651 "configure"
7652
#include "confdefs.h"
7654
/* Override any gcc2 internal prototype to avoid an error. */
7658
/* We use char because int might match the return type of a gcc2
7659
builtin and then its argument prototype would still apply. */
7669
rm -f conftest.$ac_objext conftest$ac_exeext
7670
if { (eval echo "$as_me:7670: \"$ac_link\"") >&5
7671
(eval $ac_link) 2>&5
7673
echo "$as_me:7673: \$? = $ac_status" >&5
7674
(exit $ac_status); } &&
7675
{ ac_try='test -s conftest$ac_exeext'
7676
{ (eval echo "$as_me:7676: \"$ac_try\"") >&5
7679
echo "$as_me:7679: \$? = $ac_status" >&5
7680
(exit $ac_status); }; }; then
7681
ac_cv_lib_dnet_dnet_ntoa=yes
7683
echo "$as_me: failed program was:" >&5
7684
cat conftest.$ac_ext >&5
7685
ac_cv_lib_dnet_dnet_ntoa=no
7687
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7688
LIBS=$ac_check_lib_save_LIBS
7690
echo "$as_me:7690: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7691
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7692
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7693
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7696
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7697
echo "$as_me:7697: checking for dnet_ntoa in -ldnet_stub" >&5
7698
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7699
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7700
echo $ECHO_N "(cached) $ECHO_C" >&6
7702
ac_check_lib_save_LIBS=$LIBS
7703
LIBS="-ldnet_stub $LIBS"
7704
cat >conftest.$ac_ext <<_ACEOF
7705
#line 7705 "configure"
7706
#include "confdefs.h"
7708
/* Override any gcc2 internal prototype to avoid an error. */
7712
/* We use char because int might match the return type of a gcc2
7713
builtin and then its argument prototype would still apply. */
7723
rm -f conftest.$ac_objext conftest$ac_exeext
7724
if { (eval echo "$as_me:7724: \"$ac_link\"") >&5
7725
(eval $ac_link) 2>&5
7727
echo "$as_me:7727: \$? = $ac_status" >&5
7728
(exit $ac_status); } &&
7729
{ ac_try='test -s conftest$ac_exeext'
7730
{ (eval echo "$as_me:7730: \"$ac_try\"") >&5
7733
echo "$as_me:7733: \$? = $ac_status" >&5
7734
(exit $ac_status); }; }; then
7735
ac_cv_lib_dnet_stub_dnet_ntoa=yes
7737
echo "$as_me: failed program was:" >&5
7738
cat conftest.$ac_ext >&5
7739
ac_cv_lib_dnet_stub_dnet_ntoa=no
7741
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742
LIBS=$ac_check_lib_save_LIBS
7744
echo "$as_me:7744: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7745
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7746
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7747
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7752
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7753
LIBS="$ac_xsave_LIBS"
7755
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7756
# to get the SysV transport functions.
7757
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7759
# The nsl library prevents programs from opening the X display
7760
# on Irix 5.2, according to T.E. Dickey.
7761
# The functions gethostbyname, getservbyname, and inet_addr are
7762
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7763
echo "$as_me:7763: checking for gethostbyname" >&5
7764
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7765
if test "${ac_cv_func_gethostbyname+set}" = set; then
7766
echo $ECHO_N "(cached) $ECHO_C" >&6
7768
cat >conftest.$ac_ext <<_ACEOF
7769
#line 7769 "configure"
7770
#include "confdefs.h"
7771
/* System header to define __stub macros and hopefully few prototypes,
7772
which can conflict with char gethostbyname (); below. */
7774
/* Override any gcc2 internal prototype to avoid an error. */
7778
/* We use char because int might match the return type of a gcc2
7779
builtin and then its argument prototype would still apply. */
7780
char gethostbyname ();
7786
/* The GNU C library defines this for functions which it implements
7787
to always fail with ENOSYS. Some functions are actually named
7788
something starting with __ and the normal name is an alias. */
7789
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7799
rm -f conftest.$ac_objext conftest$ac_exeext
7800
if { (eval echo "$as_me:7800: \"$ac_link\"") >&5
7801
(eval $ac_link) 2>&5
7803
echo "$as_me:7803: \$? = $ac_status" >&5
7804
(exit $ac_status); } &&
7805
{ ac_try='test -s conftest$ac_exeext'
7806
{ (eval echo "$as_me:7806: \"$ac_try\"") >&5
7809
echo "$as_me:7809: \$? = $ac_status" >&5
7810
(exit $ac_status); }; }; then
7811
ac_cv_func_gethostbyname=yes
7813
echo "$as_me: failed program was:" >&5
7814
cat conftest.$ac_ext >&5
7815
ac_cv_func_gethostbyname=no
7817
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7819
echo "$as_me:7819: result: $ac_cv_func_gethostbyname" >&5
7820
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7822
if test $ac_cv_func_gethostbyname = no; then
7823
echo "$as_me:7823: checking for gethostbyname in -lnsl" >&5
7824
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7825
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7826
echo $ECHO_N "(cached) $ECHO_C" >&6
7828
ac_check_lib_save_LIBS=$LIBS
7830
cat >conftest.$ac_ext <<_ACEOF
7831
#line 7831 "configure"
7832
#include "confdefs.h"
7834
/* Override any gcc2 internal prototype to avoid an error. */
7838
/* We use char because int might match the return type of a gcc2
7839
builtin and then its argument prototype would still apply. */
7840
char gethostbyname ();
7849
rm -f conftest.$ac_objext conftest$ac_exeext
7850
if { (eval echo "$as_me:7850: \"$ac_link\"") >&5
7851
(eval $ac_link) 2>&5
7853
echo "$as_me:7853: \$? = $ac_status" >&5
7854
(exit $ac_status); } &&
7855
{ ac_try='test -s conftest$ac_exeext'
7856
{ (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859
echo "$as_me:7859: \$? = $ac_status" >&5
7860
(exit $ac_status); }; }; then
7861
ac_cv_lib_nsl_gethostbyname=yes
7863
echo "$as_me: failed program was:" >&5
7864
cat conftest.$ac_ext >&5
7865
ac_cv_lib_nsl_gethostbyname=no
7867
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7868
LIBS=$ac_check_lib_save_LIBS
7870
echo "$as_me:7870: result: $ac_cv_lib_nsl_gethostbyname" >&5
7871
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7872
if test $ac_cv_lib_nsl_gethostbyname = yes; then
7873
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7876
if test $ac_cv_lib_nsl_gethostbyname = no; then
7877
echo "$as_me:7877: checking for gethostbyname in -lbsd" >&5
7878
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7879
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7880
echo $ECHO_N "(cached) $ECHO_C" >&6
7882
ac_check_lib_save_LIBS=$LIBS
7884
cat >conftest.$ac_ext <<_ACEOF
7885
#line 7885 "configure"
7886
#include "confdefs.h"
7888
/* Override any gcc2 internal prototype to avoid an error. */
7892
/* We use char because int might match the return type of a gcc2
7893
builtin and then its argument prototype would still apply. */
7894
char gethostbyname ();
7903
rm -f conftest.$ac_objext conftest$ac_exeext
7904
if { (eval echo "$as_me:7904: \"$ac_link\"") >&5
7905
(eval $ac_link) 2>&5
7907
echo "$as_me:7907: \$? = $ac_status" >&5
7908
(exit $ac_status); } &&
7909
{ ac_try='test -s conftest$ac_exeext'
7910
{ (eval echo "$as_me:7910: \"$ac_try\"") >&5
7913
echo "$as_me:7913: \$? = $ac_status" >&5
7914
(exit $ac_status); }; }; then
7915
ac_cv_lib_bsd_gethostbyname=yes
7917
echo "$as_me: failed program was:" >&5
7918
cat conftest.$ac_ext >&5
7919
ac_cv_lib_bsd_gethostbyname=no
7921
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7922
LIBS=$ac_check_lib_save_LIBS
7924
echo "$as_me:7924: result: $ac_cv_lib_bsd_gethostbyname" >&5
7925
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7926
if test $ac_cv_lib_bsd_gethostbyname = yes; then
7927
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7933
# lieder@skyler.mavd.honeywell.com says without -lsocket,
7934
# socket/setsockopt and other routines are undefined under SCO ODT
7935
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7936
# on later versions), says Simon Leinen: it contains gethostby*
7937
# variants that don't use the nameserver (or something). -lsocket
7938
# must be given before -lnsl if both are needed. We assume that
7939
# if connect needs -lnsl, so does gethostbyname.
7940
echo "$as_me:7940: checking for connect" >&5
7941
echo $ECHO_N "checking for connect... $ECHO_C" >&6
7942
if test "${ac_cv_func_connect+set}" = set; then
7943
echo $ECHO_N "(cached) $ECHO_C" >&6
7945
cat >conftest.$ac_ext <<_ACEOF
7946
#line 7946 "configure"
7947
#include "confdefs.h"
7948
/* System header to define __stub macros and hopefully few prototypes,
7949
which can conflict with char connect (); below. */
7951
/* Override any gcc2 internal prototype to avoid an error. */
7955
/* We use char because int might match the return type of a gcc2
7956
builtin and then its argument prototype would still apply. */
7963
/* The GNU C library defines this for functions which it implements
7964
to always fail with ENOSYS. Some functions are actually named
7965
something starting with __ and the normal name is an alias. */
7966
#if defined (__stub_connect) || defined (__stub___connect)
7976
rm -f conftest.$ac_objext conftest$ac_exeext
7977
if { (eval echo "$as_me:7977: \"$ac_link\"") >&5
7978
(eval $ac_link) 2>&5
7980
echo "$as_me:7980: \$? = $ac_status" >&5
7981
(exit $ac_status); } &&
7982
{ ac_try='test -s conftest$ac_exeext'
7983
{ (eval echo "$as_me:7983: \"$ac_try\"") >&5
7986
echo "$as_me:7986: \$? = $ac_status" >&5
7987
(exit $ac_status); }; }; then
7988
ac_cv_func_connect=yes
7990
echo "$as_me: failed program was:" >&5
7991
cat conftest.$ac_ext >&5
7992
ac_cv_func_connect=no
7994
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7996
echo "$as_me:7996: result: $ac_cv_func_connect" >&5
7997
echo "${ECHO_T}$ac_cv_func_connect" >&6
7999
if test $ac_cv_func_connect = no; then
8000
echo "$as_me:8000: checking for connect in -lsocket" >&5
8001
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8002
if test "${ac_cv_lib_socket_connect+set}" = set; then
8003
echo $ECHO_N "(cached) $ECHO_C" >&6
8005
ac_check_lib_save_LIBS=$LIBS
8006
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8007
cat >conftest.$ac_ext <<_ACEOF
8008
#line 8008 "configure"
8009
#include "confdefs.h"
8011
/* Override any gcc2 internal prototype to avoid an error. */
8015
/* We use char because int might match the return type of a gcc2
8016
builtin and then its argument prototype would still apply. */
8026
rm -f conftest.$ac_objext conftest$ac_exeext
8027
if { (eval echo "$as_me:8027: \"$ac_link\"") >&5
8028
(eval $ac_link) 2>&5
8030
echo "$as_me:8030: \$? = $ac_status" >&5
8031
(exit $ac_status); } &&
8032
{ ac_try='test -s conftest$ac_exeext'
8033
{ (eval echo "$as_me:8033: \"$ac_try\"") >&5
8036
echo "$as_me:8036: \$? = $ac_status" >&5
8037
(exit $ac_status); }; }; then
8038
ac_cv_lib_socket_connect=yes
8040
echo "$as_me: failed program was:" >&5
8041
cat conftest.$ac_ext >&5
8042
ac_cv_lib_socket_connect=no
8044
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8045
LIBS=$ac_check_lib_save_LIBS
8047
echo "$as_me:8047: result: $ac_cv_lib_socket_connect" >&5
8048
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8049
if test $ac_cv_lib_socket_connect = yes; then
8050
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8055
# Guillermo Gomez says -lposix is necessary on A/UX.
8056
echo "$as_me:8056: checking for remove" >&5
8057
echo $ECHO_N "checking for remove... $ECHO_C" >&6
8058
if test "${ac_cv_func_remove+set}" = set; then
8059
echo $ECHO_N "(cached) $ECHO_C" >&6
8061
cat >conftest.$ac_ext <<_ACEOF
8062
#line 8062 "configure"
8063
#include "confdefs.h"
8064
/* System header to define __stub macros and hopefully few prototypes,
8065
which can conflict with char remove (); below. */
8067
/* Override any gcc2 internal prototype to avoid an error. */
8071
/* We use char because int might match the return type of a gcc2
8072
builtin and then its argument prototype would still apply. */
8079
/* The GNU C library defines this for functions which it implements
8080
to always fail with ENOSYS. Some functions are actually named
8081
something starting with __ and the normal name is an alias. */
8082
#if defined (__stub_remove) || defined (__stub___remove)
8092
rm -f conftest.$ac_objext conftest$ac_exeext
8093
if { (eval echo "$as_me:8093: \"$ac_link\"") >&5
8094
(eval $ac_link) 2>&5
8096
echo "$as_me:8096: \$? = $ac_status" >&5
8097
(exit $ac_status); } &&
8098
{ ac_try='test -s conftest$ac_exeext'
8099
{ (eval echo "$as_me:8099: \"$ac_try\"") >&5
8102
echo "$as_me:8102: \$? = $ac_status" >&5
8103
(exit $ac_status); }; }; then
8104
ac_cv_func_remove=yes
8106
echo "$as_me: failed program was:" >&5
8107
cat conftest.$ac_ext >&5
8108
ac_cv_func_remove=no
8110
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8112
echo "$as_me:8112: result: $ac_cv_func_remove" >&5
8113
echo "${ECHO_T}$ac_cv_func_remove" >&6
8115
if test $ac_cv_func_remove = no; then
8116
echo "$as_me:8116: checking for remove in -lposix" >&5
8117
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8118
if test "${ac_cv_lib_posix_remove+set}" = set; then
8119
echo $ECHO_N "(cached) $ECHO_C" >&6
8121
ac_check_lib_save_LIBS=$LIBS
8122
LIBS="-lposix $LIBS"
8123
cat >conftest.$ac_ext <<_ACEOF
8124
#line 8124 "configure"
8125
#include "confdefs.h"
8127
/* Override any gcc2 internal prototype to avoid an error. */
8131
/* We use char because int might match the return type of a gcc2
8132
builtin and then its argument prototype would still apply. */
8142
rm -f conftest.$ac_objext conftest$ac_exeext
8143
if { (eval echo "$as_me:8143: \"$ac_link\"") >&5
8144
(eval $ac_link) 2>&5
8146
echo "$as_me:8146: \$? = $ac_status" >&5
8147
(exit $ac_status); } &&
8148
{ ac_try='test -s conftest$ac_exeext'
8149
{ (eval echo "$as_me:8149: \"$ac_try\"") >&5
8152
echo "$as_me:8152: \$? = $ac_status" >&5
8153
(exit $ac_status); }; }; then
8154
ac_cv_lib_posix_remove=yes
8156
echo "$as_me: failed program was:" >&5
8157
cat conftest.$ac_ext >&5
8158
ac_cv_lib_posix_remove=no
8160
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8161
LIBS=$ac_check_lib_save_LIBS
8163
echo "$as_me:8163: result: $ac_cv_lib_posix_remove" >&5
8164
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8165
if test $ac_cv_lib_posix_remove = yes; then
8166
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8171
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8172
echo "$as_me:8172: checking for shmat" >&5
8173
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8174
if test "${ac_cv_func_shmat+set}" = set; then
8175
echo $ECHO_N "(cached) $ECHO_C" >&6
8177
cat >conftest.$ac_ext <<_ACEOF
8178
#line 8178 "configure"
8179
#include "confdefs.h"
8180
/* System header to define __stub macros and hopefully few prototypes,
8181
which can conflict with char shmat (); below. */
8183
/* Override any gcc2 internal prototype to avoid an error. */
8187
/* We use char because int might match the return type of a gcc2
8188
builtin and then its argument prototype would still apply. */
8195
/* The GNU C library defines this for functions which it implements
8196
to always fail with ENOSYS. Some functions are actually named
8197
something starting with __ and the normal name is an alias. */
8198
#if defined (__stub_shmat) || defined (__stub___shmat)
8208
rm -f conftest.$ac_objext conftest$ac_exeext
8209
if { (eval echo "$as_me:8209: \"$ac_link\"") >&5
8210
(eval $ac_link) 2>&5
8212
echo "$as_me:8212: \$? = $ac_status" >&5
8213
(exit $ac_status); } &&
8214
{ ac_try='test -s conftest$ac_exeext'
8215
{ (eval echo "$as_me:8215: \"$ac_try\"") >&5
8218
echo "$as_me:8218: \$? = $ac_status" >&5
8219
(exit $ac_status); }; }; then
8220
ac_cv_func_shmat=yes
8222
echo "$as_me: failed program was:" >&5
8223
cat conftest.$ac_ext >&5
8226
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228
echo "$as_me:8228: result: $ac_cv_func_shmat" >&5
8229
echo "${ECHO_T}$ac_cv_func_shmat" >&6
8231
if test $ac_cv_func_shmat = no; then
8232
echo "$as_me:8232: checking for shmat in -lipc" >&5
8233
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8234
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8235
echo $ECHO_N "(cached) $ECHO_C" >&6
8237
ac_check_lib_save_LIBS=$LIBS
8239
cat >conftest.$ac_ext <<_ACEOF
8240
#line 8240 "configure"
8241
#include "confdefs.h"
8243
/* Override any gcc2 internal prototype to avoid an error. */
8247
/* We use char because int might match the return type of a gcc2
8248
builtin and then its argument prototype would still apply. */
8258
rm -f conftest.$ac_objext conftest$ac_exeext
8259
if { (eval echo "$as_me:8259: \"$ac_link\"") >&5
8260
(eval $ac_link) 2>&5
8262
echo "$as_me:8262: \$? = $ac_status" >&5
8263
(exit $ac_status); } &&
8264
{ ac_try='test -s conftest$ac_exeext'
8265
{ (eval echo "$as_me:8265: \"$ac_try\"") >&5
8268
echo "$as_me:8268: \$? = $ac_status" >&5
8269
(exit $ac_status); }; }; then
8270
ac_cv_lib_ipc_shmat=yes
8272
echo "$as_me: failed program was:" >&5
8273
cat conftest.$ac_ext >&5
8274
ac_cv_lib_ipc_shmat=no
8276
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277
LIBS=$ac_check_lib_save_LIBS
8279
echo "$as_me:8279: result: $ac_cv_lib_ipc_shmat" >&5
8280
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8281
if test $ac_cv_lib_ipc_shmat = yes; then
8282
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8288
# Check for libraries that X11R6 Xt/Xaw programs need.
8289
ac_save_LDFLAGS=$LDFLAGS
8290
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8291
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8292
# check for ICE first), but we must link in the order -lSM -lICE or
8293
# we get undefined symbols. So assume we have SM if we have ICE.
8294
# These have to be linked with before -lX11, unlike the other
8295
# libraries we check for below, so use a different variable.
8296
# John Interrante, Karl Berry
8297
echo "$as_me:8297: checking for IceConnectionNumber in -lICE" >&5
8298
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8299
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8300
echo $ECHO_N "(cached) $ECHO_C" >&6
8302
ac_check_lib_save_LIBS=$LIBS
8303
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8304
cat >conftest.$ac_ext <<_ACEOF
8305
#line 8305 "configure"
8306
#include "confdefs.h"
8308
/* Override any gcc2 internal prototype to avoid an error. */
8312
/* We use char because int might match the return type of a gcc2
8313
builtin and then its argument prototype would still apply. */
8314
char IceConnectionNumber ();
8318
IceConnectionNumber ();
8323
rm -f conftest.$ac_objext conftest$ac_exeext
8324
if { (eval echo "$as_me:8324: \"$ac_link\"") >&5
8325
(eval $ac_link) 2>&5
8327
echo "$as_me:8327: \$? = $ac_status" >&5
8328
(exit $ac_status); } &&
8329
{ ac_try='test -s conftest$ac_exeext'
8330
{ (eval echo "$as_me:8330: \"$ac_try\"") >&5
8333
echo "$as_me:8333: \$? = $ac_status" >&5
8334
(exit $ac_status); }; }; then
8335
ac_cv_lib_ICE_IceConnectionNumber=yes
8337
echo "$as_me: failed program was:" >&5
8338
cat conftest.$ac_ext >&5
8339
ac_cv_lib_ICE_IceConnectionNumber=no
8341
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8342
LIBS=$ac_check_lib_save_LIBS
8344
echo "$as_me:8344: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8345
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8346
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8347
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8350
LDFLAGS=$ac_save_LDFLAGS
8354
test x$no_x = "xyes" && { { echo "$as_me:8354: error: Fluxbox requires the X Window System libraries and headers." >&5
8355
echo "$as_me: error: Fluxbox requires the X Window System libraries and headers." >&2;}
8356
{ (exit 1); exit 1; }; }
8358
test x$x_includes = "x" && x_includes="/usr/include"
8359
test x$x_libraries = "x" && x_libraries="/usr/lib"
8361
CFLAGS="$CFLAGS $X_CFLAGS"
8362
CXXFLAGS="$CXXFLAGS $X_CFLAGS"
8363
LIBS="$LIBS $X_LIBS"
8364
LDFLAGS="$LDFLAGS $LIBS $X_PRE_LIBS"
8366
echo "$as_me:8366: checking for XOpenDisplay in -lX11" >&5
8367
echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
8368
if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
8369
echo $ECHO_N "(cached) $ECHO_C" >&6
8371
ac_check_lib_save_LIBS=$LIBS
8373
cat >conftest.$ac_ext <<_ACEOF
8374
#line 8374 "configure"
8375
#include "confdefs.h"
8377
/* Override any gcc2 internal prototype to avoid an error. */
8381
/* We use char because int might match the return type of a gcc2
8382
builtin and then its argument prototype would still apply. */
8383
char XOpenDisplay ();
8392
rm -f conftest.$ac_objext conftest$ac_exeext
8393
if { (eval echo "$as_me:8393: \"$ac_link\"") >&5
8394
(eval $ac_link) 2>&5
8396
echo "$as_me:8396: \$? = $ac_status" >&5
8397
(exit $ac_status); } &&
8398
{ ac_try='test -s conftest$ac_exeext'
8399
{ (eval echo "$as_me:8399: \"$ac_try\"") >&5
8402
echo "$as_me:8402: \$? = $ac_status" >&5
8403
(exit $ac_status); }; }; then
8404
ac_cv_lib_X11_XOpenDisplay=yes
8406
echo "$as_me: failed program was:" >&5
8407
cat conftest.$ac_ext >&5
8408
ac_cv_lib_X11_XOpenDisplay=no
8410
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8411
LIBS=$ac_check_lib_save_LIBS
8413
echo "$as_me:8413: result: $ac_cv_lib_X11_XOpenDisplay" >&5
8414
echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
8415
if test $ac_cv_lib_X11_XOpenDisplay = yes; then
8418
{ { echo "$as_me:8418: error: Could not find XOpenDisplay in -lX11." >&5
8419
echo "$as_me: error: Could not find XOpenDisplay in -lX11." >&2;}
8420
{ (exit 1); exit 1; }; }
8424
LIBS="$LIBS $X_EXTRA_LIBS"
8429
echo "$as_me:8429: checking whether to build support for the XShape extension" >&5
8430
echo $ECHO_N "checking whether to build support for the XShape extension... $ECHO_C" >&6
8431
# Check whether --enable-shape or --disable-shape was given.
8432
if test "${enable_shape+set}" = set; then
8433
enableval="$enable_shape"
8437
: ${enableval="yes"}
8438
if test x$enableval = "xyes"; then
8439
echo "$as_me:8439: result: yes" >&5
8440
echo "${ECHO_T}yes" >&6
8441
echo "$as_me:8441: checking for XShapeCombineShape in -lXext" >&5
8442
echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
8443
if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
8444
echo $ECHO_N "(cached) $ECHO_C" >&6
8446
ac_check_lib_save_LIBS=$LIBS
8448
cat >conftest.$ac_ext <<_ACEOF
8449
#line 8449 "configure"
8450
#include "confdefs.h"
8452
/* Override any gcc2 internal prototype to avoid an error. */
8456
/* We use char because int might match the return type of a gcc2
8457
builtin and then its argument prototype would still apply. */
8458
char XShapeCombineShape ();
8462
XShapeCombineShape ();
8467
rm -f conftest.$ac_objext conftest$ac_exeext
8468
if { (eval echo "$as_me:8468: \"$ac_link\"") >&5
8469
(eval $ac_link) 2>&5
8471
echo "$as_me:8471: \$? = $ac_status" >&5
8472
(exit $ac_status); } &&
8473
{ ac_try='test -s conftest$ac_exeext'
8474
{ (eval echo "$as_me:8474: \"$ac_try\"") >&5
8477
echo "$as_me:8477: \$? = $ac_status" >&5
8478
(exit $ac_status); }; }; then
8479
ac_cv_lib_Xext_XShapeCombineShape=yes
8481
echo "$as_me: failed program was:" >&5
8482
cat conftest.$ac_ext >&5
8483
ac_cv_lib_Xext_XShapeCombineShape=no
8485
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8486
LIBS=$ac_check_lib_save_LIBS
8488
echo "$as_me:8488: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
8489
echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
8490
if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
8491
echo "$as_me:8491: checking for X11/extensions/shape.h" >&5
8492
echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
8493
cat >conftest.$ac_ext <<_ACEOF
8494
#line 8494 "configure"
8495
#include "confdefs.h"
8496
#include <X11/Xlib.h>
8497
#include <X11/Xutil.h>
8498
#include <X11/extensions/shape.h>
8508
rm -f conftest.$ac_objext conftest$ac_exeext
8509
if { (eval echo "$as_me:8509: \"$ac_link\"") >&5
8510
(eval $ac_link) 2>&5
8512
echo "$as_me:8512: \$? = $ac_status" >&5
8513
(exit $ac_status); } &&
8514
{ ac_try='test -s conftest$ac_exeext'
8515
{ (eval echo "$as_me:8515: \"$ac_try\"") >&5
8518
echo "$as_me:8518: \$? = $ac_status" >&5
8519
(exit $ac_status); }; }; then
8520
echo "$as_me:8520: result: yes" >&5
8521
echo "${ECHO_T}yes" >&6
8522
SHAPE="-DSHAPE"; Xext_lib="-lXext"
8524
echo "$as_me: failed program was:" >&5
8525
cat conftest.$ac_ext >&5
8526
echo "$as_me:8526: result: no" >&5
8527
echo "${ECHO_T}no" >&6
8530
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8535
echo "$as_me:8535: result: no" >&5
8536
echo "${ECHO_T}no" >&6
8539
LIBS="$LIBS $Xext_lib"
8542
echo "$as_me:8542: checking whether to include the Slit" >&5
8543
echo $ECHO_N "checking whether to include the Slit... $ECHO_C" >&6
8544
# Check whether --enable-slit or --disable-slit was given.
8545
if test "${enable_slit+set}" = set; then
8546
enableval="$enable_slit"
8547
if test x$enableval = "xyes"; then
8548
echo "$as_me:8548: result: yes" >&5
8549
echo "${ECHO_T}yes" >&6
8552
echo "$as_me:8552: result: no" >&5
8553
echo "${ECHO_T}no" >&6
8556
echo "$as_me:8556: result: yes" >&5
8557
echo "${ECHO_T}yes" >&6
8563
echo "$as_me:8563: checking whether to include the new WM Spec (DOES NOTHING)" >&5
8564
echo $ECHO_N "checking whether to include the new WM Spec (DOES NOTHING)... $ECHO_C" >&6
8565
# Check whether --enable-newspec or --disable-newspec was given.
8566
if test "${enable_newspec+set}" = set; then
8567
enableval="$enable_newspec"
8568
if test x$enableval = "xyes"; then
8569
echo "$as_me:8569: result: yes" >&5
8570
echo "${ECHO_T}yes" >&6
8571
NEWWMSPEC="-DNEWWMSPEC"
8573
echo "$as_me:8573: result: no" >&5
8574
echo "${ECHO_T}no" >&6
8577
echo "$as_me:8577: result: no" >&5
8578
echo "${ECHO_T}no" >&6
8583
echo "$as_me:8583: checking whether to include interlacing image code" >&5
8584
echo $ECHO_N "checking whether to include interlacing image code... $ECHO_C" >&6
8585
# Check whether --enable-interlace or --disable-interlace was given.
8586
if test "${enable_interlace+set}" = set; then
8587
enableval="$enable_interlace"
8588
if test x$enableval = "xyes"; then
8589
echo "$as_me:8589: result: yes" >&5
8590
echo "${ECHO_T}yes" >&6
8591
INTERLACE="-DINTERLACE"
8593
echo "$as_me:8593: result: no" >&5
8594
echo "${ECHO_T}no" >&6
8597
echo "$as_me:8597: result: yes" >&5
8598
echo "${ECHO_T}yes" >&6
8599
INTERLACE="-DINTERLACE"
8604
echo "$as_me:8604: checking whether to include Pseudocolor ordered dithering code" >&5
8605
echo $ECHO_N "checking whether to include Pseudocolor ordered dithering code... $ECHO_C" >&6
8606
# Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
8607
if test "${enable_ordered_pseudo+set}" = set; then
8608
enableval="$enable_ordered_pseudo"
8609
if test x$enableval = "xyes"; then
8610
echo "$as_me:8610: result: yes" >&5
8611
echo "${ECHO_T}yes" >&6
8612
ORDEREDPSEUDO="-DORDEREDPSEUDO"
8614
echo "$as_me:8614: result: no" >&5
8615
echo "${ECHO_T}no" >&6
8618
echo "$as_me:8618: result: no" >&5
8619
echo "${ECHO_T}no" >&6
8624
echo "$as_me:8624: checking whether to include verbose debugging code" >&5
8625
echo $ECHO_N "checking whether to include verbose debugging code... $ECHO_C" >&6
8626
# Check whether --enable-debug or --disable-debug was given.
8627
if test "${enable_debug+set}" = set; then
8628
enableval="$enable_debug"
8629
if test x$enableval = "xyes"; then
8630
echo "$as_me:8630: result: yes" >&5
8631
echo "${ECHO_T}yes" >&6
8634
echo "$as_me:8634: result: no" >&5
8635
echo "${ECHO_T}no" >&6
8638
echo "$as_me:8638: result: no" >&5
8639
echo "${ECHO_T}no" >&6
8644
echo "$as_me:8644: checking whether to include NLS support" >&5
8645
echo $ECHO_N "checking whether to include NLS support... $ECHO_C" >&6
8646
# Check whether --enable-nls or --disable-nls was given.
8647
if test "${enable_nls+set}" = set; then
8648
enableval="$enable_nls"
8649
if test x$enableval = "xyes"; then
8650
echo "$as_me:8650: result: yes" >&5
8651
echo "${ECHO_T}yes" >&6
8654
echo "$as_me:8654: result: no" >&5
8655
echo "${ECHO_T}no" >&6
8658
echo "$as_me:8658: result: yes" >&5
8659
echo "${ECHO_T}yes" >&6
8664
echo "$as_me:8664: checking for setlocale in -lxpg4" >&5
8665
echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
8666
if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
8667
echo $ECHO_N "(cached) $ECHO_C" >&6
8669
ac_check_lib_save_LIBS=$LIBS
8671
cat >conftest.$ac_ext <<_ACEOF
8672
#line 8672 "configure"
8673
#include "confdefs.h"
8675
/* Override any gcc2 internal prototype to avoid an error. */
8679
/* We use char because int might match the return type of a gcc2
8680
builtin and then its argument prototype would still apply. */
8690
rm -f conftest.$ac_objext conftest$ac_exeext
8691
if { (eval echo "$as_me:8691: \"$ac_link\"") >&5
8692
(eval $ac_link) 2>&5
8694
echo "$as_me:8694: \$? = $ac_status" >&5
8695
(exit $ac_status); } &&
8696
{ ac_try='test -s conftest$ac_exeext'
8697
{ (eval echo "$as_me:8697: \"$ac_try\"") >&5
8700
echo "$as_me:8700: \$? = $ac_status" >&5
8701
(exit $ac_status); }; }; then
8702
ac_cv_lib_xpg4_setlocale=yes
8704
echo "$as_me: failed program was:" >&5
8705
cat conftest.$ac_ext >&5
8706
ac_cv_lib_xpg4_setlocale=no
8708
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8709
LIBS=$ac_check_lib_save_LIBS
8711
echo "$as_me:8711: result: $ac_cv_lib_xpg4_setlocale" >&5
8712
echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
8713
if test $ac_cv_lib_xpg4_setlocale = yes; then
8717
for ac_prog in gencat
8719
# Extract the first word of "$ac_prog", so it can be a program name with args.
8720
set dummy $ac_prog; ac_word=$2
8721
echo "$as_me:8721: checking for $ac_word" >&5
8722
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8723
if test "${ac_cv_prog_gencat_cmd+set}" = set; then
8724
echo $ECHO_N "(cached) $ECHO_C" >&6
8726
if test -n "$gencat_cmd"; then
8727
ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
8729
ac_save_IFS=$IFS; IFS=$ac_path_separator
8731
for ac_dir in $ac_dummy; do
8733
test -z "$ac_dir" && ac_dir=.
8734
$as_executable_p "$ac_dir/$ac_word" || continue
8735
ac_cv_prog_gencat_cmd="$ac_prog"
8736
echo "$as_me:8736: found $ac_dir/$ac_word" >&5
8742
gencat_cmd=$ac_cv_prog_gencat_cmd
8743
if test -n "$gencat_cmd"; then
8744
echo "$as_me:8744: result: $gencat_cmd" >&5
8745
echo "${ECHO_T}$gencat_cmd" >&6
8747
echo "$as_me:8747: result: no" >&5
8748
echo "${ECHO_T}no" >&6
8751
test -n "$gencat_cmd" && break
8754
if test x$gencat_cmd = "x"; then
8759
echo "$as_me:8759: checking whether to use the new timed pixmap cache" >&5
8760
echo $ECHO_N "checking whether to use the new timed pixmap cache... $ECHO_C" >&6
8761
# Check whether --enable-timed-cache or --disable-timed-cache was given.
8762
if test "${enable_timed_cache+set}" = set; then
8763
enableval="$enable_timed_cache"
8764
if test x$enableval = "xyes"; then
8765
echo "$as_me:8765: result: yes" >&5
8766
echo "${ECHO_T}yes" >&6
8767
TIMEDCACHE="-DTIMEDCACHE"
8769
echo "$as_me:8769: result: no" >&5
8770
echo "${ECHO_T}no" >&6
8773
echo "$as_me:8773: result: yes" >&5
8774
echo "${ECHO_T}yes" >&6
8775
TIMEDCACHE="-DTIMEDCACHE"
8780
echo "$as_me:8780: checking whether to have KDE slit support" >&5
8781
echo $ECHO_N "checking whether to have KDE slit support... $ECHO_C" >&6
8782
# Check whether --enable-kde or --disable-kde was given.
8783
if test "${enable_kde+set}" = set; then
8784
enableval="$enable_kde"
8785
if test x$enableval = "xyes"; then
8786
echo "$as_me:8786: result: yes" >&5
8787
echo "${ECHO_T}yes" >&6
8790
echo "$as_me:8790: result: no" >&5
8791
echo "${ECHO_T}no" >&6
8794
echo "$as_me:8794: result: no" >&5
8795
echo "${ECHO_T}no" >&6
8800
echo "$as_me:8800: checking whether to have GNOME support" >&5
8801
echo $ECHO_N "checking whether to have GNOME support... $ECHO_C" >&6
8802
# Check whether --enable-gnome or --disable-gnome was given.
8803
if test "${enable_gnome+set}" = set; then
8804
enableval="$enable_gnome"
8805
if test x$enableval = "xyes"; then
8806
echo "$as_me:8806: result: yes" >&5
8807
echo "${ECHO_T}yes" >&6
8810
echo "$as_me:8810: result: no" >&5
8811
echo "${ECHO_T}no" >&6
8814
echo "$as_me:8814: result: no" >&5
8815
echo "${ECHO_T}no" >&6
8819
echo "$as_me:8819: checking return type of signal handlers" >&5
8820
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8821
if test "${ac_cv_type_signal+set}" = set; then
8822
echo $ECHO_N "(cached) $ECHO_C" >&6
8824
cat >conftest.$ac_ext <<_ACEOF
8825
#line 8825 "configure"
8826
#include "confdefs.h"
8827
#include <sys/types.h>
8833
extern "C" void (*signal (int, void (*)(int)))(int);
8835
void (*signal ()) ();
8846
rm -f conftest.$ac_objext
8847
if { (eval echo "$as_me:8847: \"$ac_compile\"") >&5
8848
(eval $ac_compile) 2>&5
8850
echo "$as_me:8850: \$? = $ac_status" >&5
8851
(exit $ac_status); } &&
8852
{ ac_try='test -s conftest.$ac_objext'
8853
{ (eval echo "$as_me:8853: \"$ac_try\"") >&5
8856
echo "$as_me:8856: \$? = $ac_status" >&5
8857
(exit $ac_status); }; }; then
8858
ac_cv_type_signal=void
8860
echo "$as_me: failed program was:" >&5
8861
cat conftest.$ac_ext >&5
8862
ac_cv_type_signal=int
8864
rm -f conftest.$ac_objext conftest.$ac_ext
8866
echo "$as_me:8866: result: $ac_cv_type_signal" >&5
8867
echo "${ECHO_T}$ac_cv_type_signal" >&6
8869
cat >>confdefs.h <<EOF
8870
#define RETSIGTYPE $ac_cv_type_signal
8873
echo "$as_me:8873: result: " >&5
8874
echo "${ECHO_T}" >&6
8875
echo "$as_me:8875: result: $PACKAGE version $VERSION configured successfully." >&5
8876
echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
8877
echo "$as_me:8877: result: " >&5
8878
echo "${ECHO_T}" >&6
8879
echo "$as_me:8879: result: Using '$prefix' for installation." >&5
8880
echo "${ECHO_T}Using '$prefix' for installation." >&6
8881
echo "$as_me:8881: result: Using '$CXX' for C++ compiler." >&5
8882
echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
8883
echo "$as_me:8883: result: Building with '$CXXFLAGS' for C++ compiler flags." >&5
8884
echo "${ECHO_T}Building with '$CXXFLAGS' for C++ compiler flags." >&6
8885
echo "$as_me:8885: result: Building with '$LIBS' for linker flags." >&5
8886
echo "${ECHO_T}Building with '$LIBS' for linker flags." >&6
8887
echo "$as_me:8887: result: " >&5
8888
echo "${ECHO_T}" >&6
8890
ac_config_headers="$ac_config_headers config.h"
8892
ac_config_commands="$ac_config_commands default-1"
8894
ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile data/Makefile data/styles/Makefile doc/Makefile nls/Makefile nls/C/Makefile nls/da_DK/Makefile nls/es_ES/Makefile nls/et_EE/Makefile nls/fr_FR/Makefile nls/pt_BR/Makefile nls/ru_RU/Makefile nls/sv_SE/Makefile nls/tr_TR/Makefile nls/it_IT/Makefile nls/pt_PT/Makefile nls/bg_BG/Makefile nls/ja_JP/Makefile version.h"
8895
cat >confcache <<\_ACEOF
8896
# This file is a shell script that caches the results of configure
8897
# tests run on this system so they can be shared between configure
8898
# scripts and configure runs, see configure's option --config-cache.
8899
# It is not useful on other systems. If it contains results you don't
8900
# want to keep, you may remove or edit it.
8902
# config.status only pays attention to the cache file if you give it
8903
# the --recheck option to rerun configure.
8905
# `ac_cv_env_foo' variables (set or unset) will be overriden when
8906
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8911
# The following way of writing the cache mishandles newlines in values,
8912
# but we know of no workaround that is simple, portable, and efficient.
8913
# So, don't put newlines in cache variables' values.
8914
# Ultrix sh set writes to stderr and can't be redirected directly,
8915
# and sets the high bit in the cache file unless we assign to the vars.
8918
case `(ac_space=' '; set | grep ac_space) 2>&1` in
8920
# `set' does not quote correctly, so add quotes (double-quote
8921
# substitution turns \\\\ into \\, and sed turns \\ into \).
8924
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8927
# `set' quotes correctly as required by POSIX, so do not add quotes.
8929
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8936
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8938
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8940
if cmp -s $cache_file confcache; then :; else
8941
if test -w $cache_file; then
8942
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8943
cat confcache >$cache_file
8945
echo "not updating unwritable cache $cache_file"
8950
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8951
# Let make expand exec_prefix.
8952
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8954
# VPATH may cause trouble with some makes, so we remove $(srcdir),
8955
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8956
# trailing colons and then remove the whole line if VPATH becomes empty
8957
# (actually we leave an empty line to preserve line numbers).
8958
if test "x$srcdir" = x.; then
8959
ac_vpsub='/^[ ]*VPATH[ ]*=/{
8960
s/:*\$(srcdir):*/:/;
8961
s/:*\${srcdir}:*/:/;
8963
s/^\([^=]*=[ ]*\):*/\1/;
8969
DEFS=-DHAVE_CONFIG_H
8971
: ${CONFIG_STATUS=./config.status}
8972
ac_clean_files_save=$ac_clean_files
8973
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8974
{ echo "$as_me:8974: creating $CONFIG_STATUS" >&5
8975
echo "$as_me: creating $CONFIG_STATUS" >&6;}
8976
cat >$CONFIG_STATUS <<_ACEOF
8978
# Generated automatically by configure.
8979
# Run this file to recreate the current configuration.
8980
# Compiler output produced by configure, useful for debugging
8981
# configure, is in config.log if it exists.
8984
SHELL=\${CONFIG_SHELL-$SHELL}
8985
ac_cs_invocation="\$0 \$@"
8989
cat >>$CONFIG_STATUS <<\_ACEOF
8990
# Be Bourne compatible
8991
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8994
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8998
# Name of the executable.
8999
as_me=`echo "$0" |sed 's,.*[\\/],,'`
9001
if expr a : '\(a\)' >/dev/null 2>&1; then
9007
rm -f conf$$ conf$$.exe conf$$.file
9009
if ln -s conf$$.file conf$$ 2>/dev/null; then
9010
# We could just check for DJGPP; but this test a) works b) is more generic
9011
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9012
if test -f conf$$.exe; then
9013
# Don't use ln at all; we don't have any links
9018
elif ln conf$$.file conf$$ 2>/dev/null; then
9023
rm -f conf$$ conf$$.exe conf$$.file
9025
as_executable_p="test -f"
9027
# Support unset when possible.
9028
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9035
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
9036
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
9037
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
9038
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
9039
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
9040
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
9041
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
9042
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
9045
# We need space, tab and new line, in precisely that order.
9051
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
9057
# Files that config.status was made for.
9058
if test -n "$ac_config_files"; then
9059
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9062
if test -n "$ac_config_headers"; then
9063
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9066
if test -n "$ac_config_links"; then
9067
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9070
if test -n "$ac_config_commands"; then
9071
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9074
cat >>$CONFIG_STATUS <<\EOF
9077
\`$as_me' instantiates files from templates according to the
9078
current configuration.
9080
Usage: $0 [OPTIONS] [FILE]...
9082
-h, --help print this help, then exit
9083
-V, --version print version number, then exit
9084
-d, --debug don't remove temporary files
9085
--recheck update $as_me by reconfiguring in the same conditions
9086
--file=FILE[:TEMPLATE]
9087
instantiate the configuration file FILE
9088
--header=FILE[:TEMPLATE]
9089
instantiate the configuration header FILE
9091
Configuration files:
9094
Configuration headers:
9097
Configuration commands:
9100
Report bugs to <bug-autoconf@gnu.org>."
9103
cat >>$CONFIG_STATUS <<EOF
9106
configured by $0, generated by GNU Autoconf 2.52,
9107
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9109
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9110
Free Software Foundation, Inc.
9111
This config.status script is free software; the Free Software Foundation
9112
gives unlimited permission to copy, distribute and modify it."
9117
cat >>$CONFIG_STATUS <<\EOF
9118
# If no file are specified by the user, then we need to provide default
9119
# value. By we need to know if files were specified by the user.
9125
ac_option=`expr "x$1" : 'x\([^=]*\)='`
9126
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9128
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9132
*) # This is not an option, so the user has probably given explicit
9134
ac_need_defaults=false;;
9138
# Handling of the options.
9140
cat >>$CONFIG_STATUS <<EOF
9141
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9142
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9143
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9145
cat >>$CONFIG_STATUS <<\EOF
9146
--version | --vers* | -V )
9147
echo "$ac_cs_version"; exit 0 ;;
9149
# Conflict between --help and --header
9150
{ { echo "$as_me:9150: error: ambiguous option: $1
9151
Try \`$0 --help' for more information." >&5
9152
echo "$as_me: error: ambiguous option: $1
9153
Try \`$0 --help' for more information." >&2;}
9154
{ (exit 1); exit 1; }; };;
9155
--help | --hel | -h )
9156
echo "$ac_cs_usage"; exit 0 ;;
9157
--debug | --d* | -d )
9159
--file | --fil | --fi | --f )
9161
CONFIG_FILES="$CONFIG_FILES $1"
9162
ac_need_defaults=false;;
9163
--header | --heade | --head | --hea )
9165
CONFIG_HEADERS="$CONFIG_HEADERS $1"
9166
ac_need_defaults=false;;
9169
-*) { { echo "$as_me:9169: error: unrecognized option: $1
9170
Try \`$0 --help' for more information." >&5
9171
echo "$as_me: error: unrecognized option: $1
9172
Try \`$0 --help' for more information." >&2;}
9173
{ (exit 1); exit 1; }; } ;;
9175
*) ac_config_targets="$ac_config_targets $1" ;;
9184
## ----------------------- ##
9185
## Running config.status. ##
9186
## ----------------------- ##
9188
This file was extended by $as_me 2.52, executed with
9189
CONFIG_FILES = $CONFIG_FILES
9190
CONFIG_HEADERS = $CONFIG_HEADERS
9191
CONFIG_LINKS = $CONFIG_LINKS
9192
CONFIG_COMMANDS = $CONFIG_COMMANDS
9194
on `(hostname || uname -n) 2>/dev/null | sed 1q`
9199
cat >>$CONFIG_STATUS <<EOF
9201
# INIT-COMMANDS section.
9206
cat >>$CONFIG_STATUS <<\EOF
9207
for ac_config_target in $ac_config_targets
9209
case "$ac_config_target" in
9210
# Handling of arguments.
9211
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9212
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9213
"util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
9214
"data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
9215
"data/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/styles/Makefile" ;;
9216
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9217
"nls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
9218
"nls/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;;
9219
"nls/da_DK/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/da_DK/Makefile" ;;
9220
"nls/es_ES/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/es_ES/Makefile" ;;
9221
"nls/et_EE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/et_EE/Makefile" ;;
9222
"nls/fr_FR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/fr_FR/Makefile" ;;
9223
"nls/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/pt_BR/Makefile" ;;
9224
"nls/ru_RU/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ru_RU/Makefile" ;;
9225
"nls/sv_SE/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/sv_SE/Makefile" ;;
9226
"nls/tr_TR/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/tr_TR/Makefile" ;;
9227
"nls/it_IT/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/it_IT/Makefile" ;;
9228
"nls/pt_PT/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/pt_PT/Makefile" ;;
9229
"nls/bg_BG/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/bg_BG/Makefile" ;;
9230
"nls/ja_JP/Makefile" ) CONFIG_FILES="$CONFIG_FILES nls/ja_JP/Makefile" ;;
9231
"version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
9232
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9233
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9234
*) { { echo "$as_me:9234: error: invalid argument: $ac_config_target" >&5
9235
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9236
{ (exit 1); exit 1; }; };;
9240
# If the user did not use the arguments to specify the items to instantiate,
9241
# then the envvar interface is used. Set only those that are not.
9242
# We use the long form for the default assignment because of an extremely
9243
# bizarre bug on SunOS 4.1.3.
9244
if $ac_need_defaults; then
9245
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9246
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9247
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9250
# Create a temporary directory, and hook for its removal unless debugging.
9253
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9254
trap '{ (exit 1); exit 1; }' 1 2 13 15
9257
# Create a (secure) tmp directory for tmp files.
9260
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9261
test -n "$tmp" && test -d "$tmp"
9264
tmp=$TMPDIR/cs$$-$RANDOM
9265
(umask 077 && mkdir $tmp)
9268
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9269
{ (exit 1); exit 1; }
9274
cat >>$CONFIG_STATUS <<EOF
9277
# CONFIG_FILES section.
9280
# No need to generate the scripts if there are no CONFIG_FILES.
9281
# This happens for instance when ./config.status config.h
9282
if test -n "\$CONFIG_FILES"; then
9283
# Protect against being on the right side of a sed subst in config.status.
9284
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9285
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9286
s,@SHELL@,$SHELL,;t t
9287
s,@exec_prefix@,$exec_prefix,;t t
9288
s,@prefix@,$prefix,;t t
9289
s,@program_transform_name@,$program_transform_name,;t t
9290
s,@bindir@,$bindir,;t t
9291
s,@sbindir@,$sbindir,;t t
9292
s,@libexecdir@,$libexecdir,;t t
9293
s,@datadir@,$datadir,;t t
9294
s,@sysconfdir@,$sysconfdir,;t t
9295
s,@sharedstatedir@,$sharedstatedir,;t t
9296
s,@localstatedir@,$localstatedir,;t t
9297
s,@libdir@,$libdir,;t t
9298
s,@includedir@,$includedir,;t t
9299
s,@oldincludedir@,$oldincludedir,;t t
9300
s,@infodir@,$infodir,;t t
9301
s,@mandir@,$mandir,;t t
9302
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9303
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9304
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9305
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9306
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9307
s,@build_alias@,$build_alias,;t t
9308
s,@host_alias@,$host_alias,;t t
9309
s,@target_alias@,$target_alias,;t t
9310
s,@ECHO_C@,$ECHO_C,;t t
9311
s,@ECHO_N@,$ECHO_N,;t t
9312
s,@ECHO_T@,$ECHO_T,;t t
9313
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9316
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9317
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9318
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9319
s,@PACKAGE@,$PACKAGE,;t t
9320
s,@VERSION@,$VERSION,;t t
9321
s,@ACLOCAL@,$ACLOCAL,;t t
9322
s,@AUTOCONF@,$AUTOCONF,;t t
9323
s,@AUTOMAKE@,$AUTOMAKE,;t t
9324
s,@AUTOHEADER@,$AUTOHEADER,;t t
9325
s,@MAKEINFO@,$MAKEINFO,;t t
9326
s,@SET_MAKE@,$SET_MAKE,;t t
9328
s,@CFLAGS@,$CFLAGS,;t t
9329
s,@LDFLAGS@,$LDFLAGS,;t t
9330
s,@CPPFLAGS@,$CPPFLAGS,;t t
9331
s,@ac_ct_CC@,$ac_ct_CC,;t t
9332
s,@EXEEXT@,$EXEEXT,;t t
9333
s,@OBJEXT@,$OBJEXT,;t t
9335
s,@CXXFLAGS@,$CXXFLAGS,;t t
9336
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9337
s,@build@,$build,;t t
9338
s,@build_cpu@,$build_cpu,;t t
9339
s,@build_vendor@,$build_vendor,;t t
9340
s,@build_os@,$build_os,;t t
9342
s,@host_cpu@,$host_cpu,;t t
9343
s,@host_vendor@,$host_vendor,;t t
9344
s,@host_os@,$host_os,;t t
9347
s,@RANLIB@,$RANLIB,;t t
9348
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9349
s,@STRIP@,$STRIP,;t t
9350
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9352
s,@LIBTOOL@,$LIBTOOL,;t t
9353
s,@regex_cmd@,$regex_cmd,;t t
9354
s,@X_CFLAGS@,$X_CFLAGS,;t t
9355
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
9356
s,@X_LIBS@,$X_LIBS,;t t
9357
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
9358
s,@SHAPE@,$SHAPE,;t t
9360
s,@NEWWMSPEC@,$NEWWMSPEC,;t t
9361
s,@INTERLACE@,$INTERLACE,;t t
9362
s,@ORDEREDPSEUDO@,$ORDEREDPSEUDO,;t t
9363
s,@DEBUG@,$DEBUG,;t t
9365
s,@gencat_cmd@,$gencat_cmd,;t t
9366
s,@TIMEDCACHE@,$TIMEDCACHE,;t t
9368
s,@GNOME@,$GNOME,;t t
9373
cat >>$CONFIG_STATUS <<\EOF
9374
# Split the substitutions into bite-sized pieces for seds with
9375
# small command number limits, like on Digital OSF/1 and HP-UX.
9377
ac_sed_frag=1 # Number of current file.
9378
ac_beg=1 # First line for current file.
9379
ac_end=$ac_max_sed_lines # Line after last line for current file.
9382
while $ac_more_lines; do
9383
if test $ac_beg -gt 1; then
9384
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9386
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9388
if test ! -s $tmp/subs.frag; then
9391
# The purpose of the label and of the branching condition is to
9392
# speed up the sed processing (if there are no `@' at all, there
9393
# is no need to browse any of the substitutions).
9394
# These are the two extra sed commands mentioned above.
9396
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9397
if test -z "$ac_sed_cmds"; then
9398
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9400
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9402
ac_sed_frag=`expr $ac_sed_frag + 1`
9404
ac_end=`expr $ac_end + $ac_max_sed_lines`
9407
if test -z "$ac_sed_cmds"; then
9410
fi # test -n "$CONFIG_FILES"
9413
cat >>$CONFIG_STATUS <<\EOF
9414
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9415
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9417
- | *:- | *:-:* ) # input from stdin
9419
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9420
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9421
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9422
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9423
* ) ac_file_in=$ac_file.in ;;
9426
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9427
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9428
X"$ac_file" : 'X\(//\)[^/]' \| \
9429
X"$ac_file" : 'X\(//\)$' \| \
9430
X"$ac_file" : 'X\(/\)' \| \
9431
. : '\(.\)' 2>/dev/null ||
9433
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9434
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9435
/^X\(\/\/\)$/{ s//\1/; q; }
9436
/^X\(\/\).*/{ s//\1/; q; }
9438
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9440
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
9444
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9445
case $as_mkdir_dir in
9446
# Skip DOS drivespec
9447
?:) as_incr_dir=$as_mkdir_dir ;;
9449
as_incr_dir=$as_incr_dir/$as_mkdir_dir
9450
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9455
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9456
# A "../" for each directory in $ac_dir_suffix.
9457
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9459
ac_dir_suffix= ac_dots=
9464
if test -z "$ac_dots"; then
9467
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9470
ac_srcdir=$srcdir$ac_dir_suffix;
9471
ac_top_srcdir=$srcdir ;;
9473
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9474
ac_top_srcdir=$ac_dots$srcdir ;;
9478
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9479
*) ac_INSTALL=$ac_dots$INSTALL ;;
9482
if test x"$ac_file" != x-; then
9483
{ echo "$as_me:9483: creating $ac_file" >&5
9484
echo "$as_me: creating $ac_file" >&6;}
9487
# Let's still pretend it is `configure' which instantiates (i.e., don't
9488
# use $as_me), people would be surprised to read:
9489
# /* config.h. Generated automatically by config.status. */
9490
configure_input="Generated automatically from `echo $ac_file_in |
9491
sed 's,.*/,,'` by configure."
9493
# First look for the input files in the build tree, otherwise in the
9495
ac_file_inputs=`IFS=:
9496
for f in $ac_file_in; do
9498
-) echo $tmp/stdin ;;
9500
# Absolute (can't be DOS-style, as IFS=:)
9501
test -f "$f" || { { echo "$as_me:9501: error: cannot find input file: $f" >&5
9502
echo "$as_me: error: cannot find input file: $f" >&2;}
9503
{ (exit 1); exit 1; }; }
9506
if test -f "$f"; then
9509
elif test -f "$srcdir/$f"; then
9514
{ { echo "$as_me:9514: error: cannot find input file: $f" >&5
9515
echo "$as_me: error: cannot find input file: $f" >&2;}
9516
{ (exit 1); exit 1; }; }
9519
done` || { (exit 1); exit 1; }
9521
cat >>$CONFIG_STATUS <<EOF
9525
cat >>$CONFIG_STATUS <<\EOF
9527
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9528
s,@configure_input@,$configure_input,;t t
9529
s,@srcdir@,$ac_srcdir,;t t
9530
s,@top_srcdir@,$ac_top_srcdir,;t t
9531
s,@INSTALL@,$ac_INSTALL,;t t
9532
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9534
if test x"$ac_file" != x-; then
9535
mv $tmp/out $ac_file
9543
cat >>$CONFIG_STATUS <<\EOF
9546
# CONFIG_HEADER section.
9549
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9550
# NAME is the cpp macro being defined and VALUE is the value it is being given.
9552
# ac_d sets the value in "#define NAME VALUE" lines.
9553
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9554
ac_dB='[ ].*$,\1#\2'
9557
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9558
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9559
ac_uB='$,\1#\2define\3'
9563
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9564
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9566
- | *:- | *:-:* ) # input from stdin
9568
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9569
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9570
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9571
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9572
* ) ac_file_in=$ac_file.in ;;
9575
test x"$ac_file" != x- && { echo "$as_me:9575: creating $ac_file" >&5
9576
echo "$as_me: creating $ac_file" >&6;}
9578
# First look for the input files in the build tree, otherwise in the
9580
ac_file_inputs=`IFS=:
9581
for f in $ac_file_in; do
9583
-) echo $tmp/stdin ;;
9585
# Absolute (can't be DOS-style, as IFS=:)
9586
test -f "$f" || { { echo "$as_me:9586: error: cannot find input file: $f" >&5
9587
echo "$as_me: error: cannot find input file: $f" >&2;}
9588
{ (exit 1); exit 1; }; }
9591
if test -f "$f"; then
9594
elif test -f "$srcdir/$f"; then
9599
{ { echo "$as_me:9599: error: cannot find input file: $f" >&5
9600
echo "$as_me: error: cannot find input file: $f" >&2;}
9601
{ (exit 1); exit 1; }; }
9604
done` || { (exit 1); exit 1; }
9605
# Remove the trailing spaces.
9606
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9610
# Transform confdefs.h into two sed scripts, `conftest.defines' and
9611
# `conftest.undefs', that substitutes the proper values into
9612
# config.h.in to produce config.h. The first handles `#define'
9613
# templates, and the second `#undef' templates.
9614
# And first: Protect against being on the right side of a sed subst in
9615
# config.status. Protect against being in an unquoted here document
9617
rm -f conftest.defines conftest.undefs
9618
# Using a here document instead of a string reduces the quoting nightmare.
9619
# Putting comments in sed scripts is not portable.
9621
# `end' is used to avoid that the second main sed command (meant for
9622
# 0-ary CPP macros) applies to n-ary macro definitions.
9623
# See the Autoconf documentation for `clear'.
9624
cat >confdef2sed.sed <<\EOF
9629
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9631
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9634
# If some macros were called several times there might be several times
9635
# the same #defines, which is useless. Nevertheless, we may not want to
9636
# sort them, since we want the *last* AC-DEFINE to be honored.
9637
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9638
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9639
rm -f confdef2sed.sed
9641
# This sed command replaces #undef with comments. This is necessary, for
9642
# example, in the case of _POSIX_SOURCE, which is predefined and required
9643
# on some systems where configure will not decide to define it.
9644
cat >>conftest.undefs <<\EOF
9645
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9648
# Break up conftest.defines because some shells have a limit on the size
9649
# of here documents, and old seds have small limits too (100 cmds).
9650
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9651
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9652
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9653
echo ' :' >>$CONFIG_STATUS
9655
while grep . conftest.defines >/dev/null
9657
# Write a limited-size here document to $tmp/defines.sed.
9658
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9659
# Speed up: don't consider the non `#define' lines.
9660
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9661
# Work around the forget-to-reset-the-flag bug.
9662
echo 't clr' >>$CONFIG_STATUS
9663
echo ': clr' >>$CONFIG_STATUS
9664
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9666
sed -f $tmp/defines.sed $tmp/in >$tmp/out
9670
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9671
rm -f conftest.defines
9672
mv conftest.tail conftest.defines
9674
rm -f conftest.defines
9675
echo ' fi # egrep' >>$CONFIG_STATUS
9676
echo >>$CONFIG_STATUS
9678
# Break up conftest.undefs because some shells have a limit on the size
9679
# of here documents, and old seds have small limits too (100 cmds).
9680
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9682
while grep . conftest.undefs >/dev/null
9684
# Write a limited-size here document to $tmp/undefs.sed.
9685
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9686
# Speed up: don't consider the non `#undef'
9687
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9688
# Work around the forget-to-reset-the-flag bug.
9689
echo 't clr' >>$CONFIG_STATUS
9690
echo ': clr' >>$CONFIG_STATUS
9691
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9693
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9697
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9698
rm -f conftest.undefs
9699
mv conftest.tail conftest.undefs
9701
rm -f conftest.undefs
9703
cat >>$CONFIG_STATUS <<\EOF
9704
# Let's still pretend it is `configure' which instantiates (i.e., don't
9705
# use $as_me), people would be surprised to read:
9706
# /* config.h. Generated automatically by config.status. */
9707
if test x"$ac_file" = x-; then
9708
echo "/* Generated automatically by configure. */" >$tmp/config.h
9710
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9712
cat $tmp/in >>$tmp/config.h
9714
if test x"$ac_file" != x-; then
9715
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9716
{ echo "$as_me:9716: $ac_file is unchanged" >&5
9717
echo "$as_me: $ac_file is unchanged" >&6;}
9719
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9720
X"$ac_file" : 'X\(//\)[^/]' \| \
9721
X"$ac_file" : 'X\(//\)$' \| \
9722
X"$ac_file" : 'X\(/\)' \| \
9723
. : '\(.\)' 2>/dev/null ||
9725
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9726
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9727
/^X\(\/\/\)$/{ s//\1/; q; }
9728
/^X\(\/\).*/{ s//\1/; q; }
9730
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9732
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
9736
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9737
case $as_mkdir_dir in
9738
# Skip DOS drivespec
9739
?:) as_incr_dir=$as_mkdir_dir ;;
9741
as_incr_dir=$as_incr_dir/$as_mkdir_dir
9742
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9749
mv $tmp/config.h $ac_file
9757
cat >>$CONFIG_STATUS <<\EOF
9760
# CONFIG_COMMANDS section.
9762
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9763
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9764
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9767
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9772
cat >>$CONFIG_STATUS <<\EOF
9774
{ (exit 0); exit 0; }
9776
chmod +x $CONFIG_STATUS
9777
ac_clean_files=$ac_clean_files_save
9779
# configure is writing to config.log, and then calls config.status.
9780
# config.status does its own redirection, appending to config.log.
9781
# Unfortunately, on DOS this fails, as config.log is still kept open
9782
# by configure, so config.status won't be able to write to it; its
9783
# output is simply discarded. So we exec the FD to /dev/null,
9784
# effectively closing config.log, so it can be properly (re)opened and
9785
# appended to by config.status. When coming back to configure, we
9786
# need to make the FD available again.
9787
if test "$no_create" != yes; then
9790
$SHELL $CONFIG_STATUS || ac_cs_success=false
9792
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
9793
# would make configure fail if this is the last instruction.
9794
$ac_cs_success || { (exit 1); exit 1; }