2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57 for ftgl 2.0.5.
5
# Report bugs to <henryj@paradise.net.nz>.
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
# is contrary to our usage. Disable this feature.
21
alias -g '${1+"$@"}'='"$@"'
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
# Support unset when possible.
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236
# We need space, tab and new line, in precisely that order.
245
# Find the correct PATH separator. Usually this is `:', but
246
# DJGPP uses `;' like DOS.
247
if test "X${PATH_SEPARATOR+set}" != Xset; then
248
UNAME=${UNAME-`uname 2>/dev/null`}
250
*-DOS) lt_cv_sys_path_separator=';' ;;
251
*) lt_cv_sys_path_separator=':' ;;
253
PATH_SEPARATOR=$lt_cv_sys_path_separator
257
# Check that we are running under the correct shell.
258
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Remove one level of quotation (which was required for Make).
263
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
268
if test "X$1" = X--no-reexec; then
269
# Discard the --no-reexec flag, and continue.
271
elif test "X$1" = X--fallback-echo; then
272
# Avoid inline document here, it may be left over
274
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
275
# Yippee, $echo works!
278
# Restart under the correct shell.
279
exec $SHELL "$0" --no-reexec ${1+"$@"}
282
if test "X$1" = X--fallback-echo; then
283
# used as fallback echo
291
# The HP-UX ksh and POSIX shell print the target directory to stdout
293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
if test -z "$ECHO"; then
296
if test "X${echo_test_string+set}" != Xset; then
297
# find a string as large as possible, as long as the shell can cope with it
298
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
299
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
300
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
301
echo_test_string="`eval $cmd`" &&
302
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
309
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
310
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
311
test "X$echo_testing_string" = "X$echo_test_string"; then
314
# The Solaris, AIX, and Digital Unix default echo programs unquote
315
# backslashes. This makes it impossible to quote backslashes using
316
# echo "$something" | sed 's/\\/\\\\/g'
318
# So, first we look for a working echo in the user's PATH.
320
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
321
for dir in $PATH /usr/ucb; do
322
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
323
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
324
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
325
test "X$echo_testing_string" = "X$echo_test_string"; then
332
if test "X$echo" = Xecho; then
333
# We didn't find a better echo, so look for alternatives.
334
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
335
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
336
test "X$echo_testing_string" = "X$echo_test_string"; then
337
# This shell has a builtin print -r that does the trick.
339
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
340
test "X$CONFIG_SHELL" != X/bin/ksh; then
341
# If we have ksh, try running configure again with it.
342
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
343
export ORIGINAL_CONFIG_SHELL
344
CONFIG_SHELL=/bin/ksh
346
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
350
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
351
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
352
test "X$echo_testing_string" = "X$echo_test_string"; then
355
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
test "X$echo_testing_string" = 'X\t' &&
357
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
test "X$echo_testing_string" = "X$echo_test_string"; then
359
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361
SHELL="$CONFIG_SHELL"
363
echo="$CONFIG_SHELL $0 --fallback-echo"
364
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
365
test "X$echo_testing_string" = 'X\t' &&
366
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
367
test "X$echo_testing_string" = "X$echo_test_string"; then
368
echo="$CONFIG_SHELL $0 --fallback-echo"
370
# maybe with a smaller string...
373
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
374
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
381
if test "$prev" != 'sed 50q "$0"'; then
382
echo_test_string=`eval $prev`
383
export echo_test_string
384
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386
# Oops. We lost completely, so just stick with echo.
395
# Copy echo and quote the copy suitably for passing to libtool from
396
# the Makefile, instead of quoting the original, which is used later.
398
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
399
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406
# so uname gets run too.
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414
ac_default_prefix=/usr/local
415
ac_config_libobj_dir=.
420
SHELL=${CONFIG_SHELL-/bin/sh}
422
# Maximum number of lines to put in a shell here document.
423
# This variable seems obsolete. It should probably be removed, and
424
# only ac_max_sed_lines should be used.
425
: ${ac_max_here_lines=38}
427
# Identity of this package.
429
PACKAGE_TARNAME='ftgl'
430
PACKAGE_VERSION='2.0.5'
431
PACKAGE_STRING='ftgl 2.0.5'
432
PACKAGE_BUGREPORT='henryj@paradise.net.nz'
434
ac_unique_file="Make.conf.in"
435
# Factoring default headers for most tests.
436
ac_includes_default="\
439
# include <sys/types.h>
442
# include <sys/stat.h>
453
# if !STDC_HEADERS && HAVE_MEMORY_H
459
# include <strings.h>
462
# include <inttypes.h>
472
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL FT2_CONFIG FT2_CFLAGS FT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GL_CFLAGS GL_LIBS HAVE_GLUT GLUT_CFLAGS GLUT_LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA DOXYGEN LIBOBJS LTLIBOBJS'
475
# Initialize some variables set by options.
477
ac_init_version=false
478
# The variables have the same names as the options, with
479
# dashes changed to underlines.
487
program_transform_name=s,x,x,
495
# Installation directory options.
496
# These are left unexpanded so users can "make install exec_prefix=/foo"
497
# and all the variables that are supposed to be based on exec_prefix
498
# by default will actually change.
499
# Use braces instead of parens because sh, perl, etc. also accept them.
500
bindir='${exec_prefix}/bin'
501
sbindir='${exec_prefix}/sbin'
502
libexecdir='${exec_prefix}/libexec'
503
datadir='${prefix}/share'
504
sysconfdir='${prefix}/etc'
505
sharedstatedir='${prefix}/com'
506
localstatedir='${prefix}/var'
507
libdir='${exec_prefix}/lib'
508
includedir='${prefix}/include'
509
oldincludedir='/usr/include'
510
infodir='${prefix}/info'
511
mandir='${prefix}/man'
516
# If the previous option needs an argument, assign it.
517
if test -n "$ac_prev"; then
518
eval "$ac_prev=\$ac_option"
523
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
# Accept the important Cygnus configure options, so we can diagnose typos.
529
-bindir | --bindir | --bindi | --bind | --bin | --bi)
531
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534
-build | --build | --buil | --bui | --bu)
535
ac_prev=build_alias ;;
536
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
537
build_alias=$ac_optarg ;;
539
-cache-file | --cache-file | --cache-fil | --cache-fi \
540
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
541
ac_prev=cache_file ;;
542
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
543
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
544
cache_file=$ac_optarg ;;
547
cache_file=config.cache ;;
549
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553
datadir=$ac_optarg ;;
555
-disable-* | --disable-*)
556
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
557
# Reject names that are not valid shell variable names.
558
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
560
{ (exit 1); exit 1; }; }
561
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562
eval "enable_$ac_feature=no" ;;
564
-enable-* | --enable-*)
565
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
566
# Reject names that are not valid shell variable names.
567
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
569
{ (exit 1); exit 1; }; }
570
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575
eval "enable_$ac_feature='$ac_optarg'" ;;
577
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
578
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
579
| --exec | --exe | --ex)
580
ac_prev=exec_prefix ;;
581
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
582
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
583
| --exec=* | --exe=* | --ex=*)
584
exec_prefix=$ac_optarg ;;
586
-gas | --gas | --ga | --g)
587
# Obsolete; use --with-gas.
590
-help | --help | --hel | --he | -h)
592
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
593
ac_init_help=recursive ;;
594
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
595
ac_init_help=short ;;
597
-host | --host | --hos | --ho)
598
ac_prev=host_alias ;;
599
-host=* | --host=* | --hos=* | --ho=*)
600
host_alias=$ac_optarg ;;
602
-includedir | --includedir | --includedi | --included | --include \
603
| --includ | --inclu | --incl | --inc)
604
ac_prev=includedir ;;
605
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
606
| --includ=* | --inclu=* | --incl=* | --inc=*)
607
includedir=$ac_optarg ;;
609
-infodir | --infodir | --infodi | --infod | --info | --inf)
611
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
612
infodir=$ac_optarg ;;
614
-libdir | --libdir | --libdi | --libd)
616
-libdir=* | --libdir=* | --libdi=* | --libd=*)
619
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
620
| --libexe | --libex | --libe)
621
ac_prev=libexecdir ;;
622
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
623
| --libexe=* | --libex=* | --libe=*)
624
libexecdir=$ac_optarg ;;
626
-localstatedir | --localstatedir | --localstatedi | --localstated \
627
| --localstate | --localstat | --localsta | --localst \
628
| --locals | --local | --loca | --loc | --lo)
629
ac_prev=localstatedir ;;
630
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
632
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
633
localstatedir=$ac_optarg ;;
635
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641
# Obsolete; use --without-fp.
644
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
645
| --no-cr | --no-c | -n)
648
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
649
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
653
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
654
| --oldin | --oldi | --old | --ol | --o)
655
ac_prev=oldincludedir ;;
656
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
657
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
658
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
659
oldincludedir=$ac_optarg ;;
661
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666
-program-prefix | --program-prefix | --program-prefi | --program-pref \
667
| --program-pre | --program-pr | --program-p)
668
ac_prev=program_prefix ;;
669
-program-prefix=* | --program-prefix=* | --program-prefi=* \
670
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
671
program_prefix=$ac_optarg ;;
673
-program-suffix | --program-suffix | --program-suffi | --program-suff \
674
| --program-suf | --program-su | --program-s)
675
ac_prev=program_suffix ;;
676
-program-suffix=* | --program-suffix=* | --program-suffi=* \
677
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
678
program_suffix=$ac_optarg ;;
680
-program-transform-name | --program-transform-name \
681
| --program-transform-nam | --program-transform-na \
682
| --program-transform-n | --program-transform- \
683
| --program-transform | --program-transfor \
684
| --program-transfo | --program-transf \
685
| --program-trans | --program-tran \
686
| --progr-tra | --program-tr | --program-t)
687
ac_prev=program_transform_name ;;
688
-program-transform-name=* | --program-transform-name=* \
689
| --program-transform-nam=* | --program-transform-na=* \
690
| --program-transform-n=* | --program-transform-=* \
691
| --program-transform=* | --program-transfor=* \
692
| --program-transfo=* | --program-transf=* \
693
| --program-trans=* | --program-tran=* \
694
| --progr-tra=* | --program-tr=* | --program-t=*)
695
program_transform_name=$ac_optarg ;;
697
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
698
| -silent | --silent | --silen | --sile | --sil)
701
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705
sbindir=$ac_optarg ;;
707
-sharedstatedir | --sharedstatedir | --sharedstatedi \
708
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
709
| --sharedst | --shareds | --shared | --share | --shar \
711
ac_prev=sharedstatedir ;;
712
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
713
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
714
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716
sharedstatedir=$ac_optarg ;;
718
-site | --site | --sit)
720
-site=* | --site=* | --sit=*)
723
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
729
| --syscon | --sysco | --sysc | --sys | --sy)
730
ac_prev=sysconfdir ;;
731
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
732
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
733
sysconfdir=$ac_optarg ;;
735
-target | --target | --targe | --targ | --tar | --ta | --t)
736
ac_prev=target_alias ;;
737
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
738
target_alias=$ac_optarg ;;
740
-v | -verbose | --verbose | --verbos | --verbo | --verb)
743
-version | --version | --versio | --versi | --vers | -V)
747
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
748
# Reject names that are not valid shell variable names.
749
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750
{ echo "$as_me: error: invalid package name: $ac_package" >&2
751
{ (exit 1); exit 1; }; }
752
ac_package=`echo $ac_package| sed 's/-/_/g'`
754
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757
eval "with_$ac_package='$ac_optarg'" ;;
759
-without-* | --without-*)
760
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
761
# Reject names that are not valid shell variable names.
762
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
763
{ echo "$as_me: error: invalid package name: $ac_package" >&2
764
{ (exit 1); exit 1; }; }
765
ac_package=`echo $ac_package | sed 's/-/_/g'`
766
eval "with_$ac_package=no" ;;
769
# Obsolete; use --with-x.
772
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773
| --x-incl | --x-inc | --x-in | --x-i)
774
ac_prev=x_includes ;;
775
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777
x_includes=$ac_optarg ;;
779
-x-libraries | --x-libraries | --x-librarie | --x-librari \
780
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781
ac_prev=x_libraries ;;
782
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784
x_libraries=$ac_optarg ;;
786
-*) { echo "$as_me: error: unrecognized option: $ac_option
787
Try \`$0 --help' for more information." >&2
788
{ (exit 1); exit 1; }; }
792
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
793
# Reject names that are not valid shell variable names.
794
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
795
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
796
{ (exit 1); exit 1; }; }
797
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
798
eval "$ac_envvar='$ac_optarg'"
802
# FIXME: should be removed in autoconf 3.0.
803
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
804
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
806
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812
if test -n "$ac_prev"; then
813
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
814
{ echo "$as_me: error: missing argument to $ac_option" >&2
815
{ (exit 1); exit 1; }; }
818
# Be sure to have absolute paths.
819
for ac_var in exec_prefix prefix
821
eval ac_val=$`echo $ac_var`
823
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
824
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825
{ (exit 1); exit 1; }; };;
829
# Be sure to have absolute paths.
830
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
831
localstatedir libdir includedir oldincludedir infodir mandir
833
eval ac_val=$`echo $ac_var`
835
[\\/$]* | ?:[\\/]* ) ;;
836
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
837
{ (exit 1); exit 1; }; };;
841
# There might be people who depend on the old broken behavior: `$host'
842
# used to hold the argument of --host etc.
843
# FIXME: To remove some day.
848
# FIXME: To remove some day.
849
if test "x$host_alias" != x; then
850
if test "x$build_alias" = x; then
851
cross_compiling=maybe
852
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
853
If a cross compiler is detected then cross compile mode will be used." >&2
854
elif test "x$build_alias" != "x$host_alias"; then
860
test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
test "$silent" = yes && exec 6>/dev/null
865
# Find the source files, if location was not specified.
866
if test -z "$srcdir"; then
867
ac_srcdir_defaulted=yes
868
# Try the directory containing this script, then its parent.
869
ac_confdir=`(dirname "$0") 2>/dev/null ||
870
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
871
X"$0" : 'X\(//\)[^/]' \| \
872
X"$0" : 'X\(//\)$' \| \
873
X"$0" : 'X\(/\)' \| \
874
. : '\(.\)' 2>/dev/null ||
876
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
877
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
878
/^X\(\/\/\)$/{ s//\1/; q; }
879
/^X\(\/\).*/{ s//\1/; q; }
882
if test ! -r $srcdir/$ac_unique_file; then
886
ac_srcdir_defaulted=no
888
if test ! -r $srcdir/$ac_unique_file; then
889
if test "$ac_srcdir_defaulted" = yes; then
890
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
891
{ (exit 1); exit 1; }; }
893
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
894
{ (exit 1); exit 1; }; }
897
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
898
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
899
{ (exit 1); exit 1; }; }
900
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
901
ac_env_build_alias_set=${build_alias+set}
902
ac_env_build_alias_value=$build_alias
903
ac_cv_env_build_alias_set=${build_alias+set}
904
ac_cv_env_build_alias_value=$build_alias
905
ac_env_host_alias_set=${host_alias+set}
906
ac_env_host_alias_value=$host_alias
907
ac_cv_env_host_alias_set=${host_alias+set}
908
ac_cv_env_host_alias_value=$host_alias
909
ac_env_target_alias_set=${target_alias+set}
910
ac_env_target_alias_value=$target_alias
911
ac_cv_env_target_alias_set=${target_alias+set}
912
ac_cv_env_target_alias_value=$target_alias
913
ac_env_CXX_set=${CXX+set}
914
ac_env_CXX_value=$CXX
915
ac_cv_env_CXX_set=${CXX+set}
916
ac_cv_env_CXX_value=$CXX
917
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
918
ac_env_CXXFLAGS_value=$CXXFLAGS
919
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
920
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
921
ac_env_LDFLAGS_set=${LDFLAGS+set}
922
ac_env_LDFLAGS_value=$LDFLAGS
923
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
924
ac_cv_env_LDFLAGS_value=$LDFLAGS
925
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
926
ac_env_CPPFLAGS_value=$CPPFLAGS
927
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
928
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
929
ac_env_CC_set=${CC+set}
931
ac_cv_env_CC_set=${CC+set}
932
ac_cv_env_CC_value=$CC
933
ac_env_CFLAGS_set=${CFLAGS+set}
934
ac_env_CFLAGS_value=$CFLAGS
935
ac_cv_env_CFLAGS_set=${CFLAGS+set}
936
ac_cv_env_CFLAGS_value=$CFLAGS
937
ac_env_CPP_set=${CPP+set}
938
ac_env_CPP_value=$CPP
939
ac_cv_env_CPP_set=${CPP+set}
940
ac_cv_env_CPP_value=$CPP
943
# Report the --help message.
945
if test "$ac_init_help" = "long"; then
946
# Omit some internal or obsolete options to make the list less imposing.
947
# This message is too long to be a string in the A/UX 3.1 sh.
949
\`configure' configures ftgl 2.0.5 to adapt to many kinds of systems.
951
Usage: $0 [OPTION]... [VAR=VALUE]...
953
To assign environment variables (e.g., CC, CFLAGS...), specify them as
954
VAR=VALUE. See below for descriptions of some of the useful variables.
956
Defaults for the options are specified in brackets.
959
-h, --help display this help and exit
960
--help=short display options specific to this package
961
--help=recursive display the short help of all the included packages
962
-V, --version display version information and exit
963
-q, --quiet, --silent do not print \`checking...' messages
964
--cache-file=FILE cache test results in FILE [disabled]
965
-C, --config-cache alias for \`--cache-file=config.cache'
966
-n, --no-create do not create output files
967
--srcdir=DIR find the sources in DIR [configure dir or \`..']
972
Installation directories:
973
--prefix=PREFIX install architecture-independent files in PREFIX
975
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978
By default, \`make install' will install all the files in
979
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981
for instance \`--prefix=\$HOME'.
983
For better control, use the options below.
985
Fine tuning of the installation directories:
986
--bindir=DIR user executables [EPREFIX/bin]
987
--sbindir=DIR system admin executables [EPREFIX/sbin]
988
--libexecdir=DIR program executables [EPREFIX/libexec]
989
--datadir=DIR read-only architecture-independent data [PREFIX/share]
990
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
991
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
993
--libdir=DIR object code libraries [EPREFIX/lib]
994
--includedir=DIR C header files [PREFIX/include]
995
--oldincludedir=DIR C header files for non-gcc [/usr/include]
996
--infodir=DIR info documentation [PREFIX/info]
997
--mandir=DIR man documentation [PREFIX/man]
1003
--x-includes=DIR X include files are in DIR
1004
--x-libraries=DIR X library files are in DIR
1007
--build=BUILD configure for building on BUILD [guessed]
1008
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1012
if test -n "$ac_init_help"; then
1013
case $ac_init_help in
1014
short | recursive ) echo "Configuration of ftgl 2.0.5:";;
1019
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1020
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1021
--enable-shared=PKGS build shared libraries default=no
1022
--enable-static=PKGS build static libraries default=yes
1023
--enable-fast-install=PKGS optimize for fast installation default=yes
1024
--disable-libtool-lock avoid locking (might break parallel builds)
1025
--disable-freetypetest Do not try to compile and run a test FreeType program
1028
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030
--with-gnu-ld assume the C compiler uses GNU ld default=no
1031
--with-pic try to use only PIC/non-PIC objects default=use both
1032
--with-x use the X Window System
1033
--with-ft-prefix=PFX Prefix where FreeType is installed (optional)
1034
--with-ft-exec-prefix=PFX Exec prefix where FreeType is installed (optional)
1035
--with-gl-inc=DIR Directory where GL/gl.h is installed
1036
--with-gl-lib=DIR Directory where OpenGL libraries are installed
1037
--with-glut-inc=DIR Directory where GL/glut.h is installed (optional)
1038
--with-glut-lib=DIR Directory where GLUT libraries are installed
1041
Some influential environment variables:
1042
CXX C++ compiler command
1043
CXXFLAGS C++ compiler flags
1044
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1045
nonstandard directory <lib dir>
1046
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1047
headers in a nonstandard directory <include dir>
1048
CC C compiler command
1049
CFLAGS C compiler flags
1052
Use these variables to override the choices made by `configure' or to help
1053
it to find libraries and programs with nonstandard names/locations.
1055
Report bugs to <henryj@paradise.net.nz>.
1059
if test "$ac_init_help" = "recursive"; then
1060
# If there are subdirs, report their specific --help.
1062
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063
test -d $ac_dir || continue
1066
if test "$ac_dir" != .; then
1067
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068
# A "../" for each directory in $ac_dir_suffix.
1069
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1071
ac_dir_suffix= ac_top_builddir=
1075
.) # No --srcdir option. We are building in place.
1077
if test -z "$ac_top_builddir"; then
1080
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1082
[\\/]* | ?:[\\/]* ) # Absolute path.
1083
ac_srcdir=$srcdir$ac_dir_suffix;
1084
ac_top_srcdir=$srcdir ;;
1086
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1089
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1091
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1093
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1097
# Check for guested configure; otherwise get Cygnus style configure.
1098
if test -f $ac_srcdir/configure.gnu; then
1100
$SHELL $ac_srcdir/configure.gnu --help=recursive
1101
elif test -f $ac_srcdir/configure; then
1103
$SHELL $ac_srcdir/configure --help=recursive
1104
elif test -f $ac_srcdir/configure.ac ||
1105
test -f $ac_srcdir/configure.in; then
1107
$ac_configure --help
1109
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115
test -n "$ac_init_help" && exit 0
1116
if $ac_init_version; then
1118
ftgl configure 2.0.5
1119
generated by GNU Autoconf 2.57
1121
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122
Free Software Foundation, Inc.
1123
This configure script is free software; the Free Software Foundation
1124
gives unlimited permission to copy, distribute and modify it.
1130
This file contains any messages produced by compilers while
1131
running configure, to aid debugging if configure makes a mistake.
1133
It was created by ftgl $as_me 2.0.5, which was
1134
generated by GNU Autoconf 2.57. Invocation command line was
1145
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1154
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168
test -z "$as_dir" && as_dir=.
1169
echo "PATH: $as_dir"
1184
# Keep a trace of the command line.
1185
# Strip out --no-create and --no-recursion so they do not pile up.
1186
# Strip out --silent because we don't want to record it for future runs.
1187
# Also quote any args containing shell meta-characters.
1188
# Make two passes to allow for proper duplicate-argument suppression.
1193
ac_must_keep_next=false
1199
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1200
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201
| -silent | --silent | --silen | --sile | --sil)
1203
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1210
if test $ac_must_keep_next = true; then
1211
ac_must_keep_next=false # Got value, back to normal.
1214
*=* | --config-cache | -C | -disable-* | --disable-* \
1215
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1216
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1217
| -with-* | --with-* | -without-* | --without-* | --x)
1218
case "$ac_configure_args0 " in
1219
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222
-* ) ac_must_keep_next=true ;;
1225
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1226
# Get rid of the leading space.
1232
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1233
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
# When interrupted or exit'd, cleanup temporary files, and complete
1236
# config.log. We remove comments because anyway the quotes in there
1237
# would cause problems or look ugly.
1238
# WARNING: Be sure not to use single quotes in there, as some shells,
1239
# such as our DU 5.0 friend, will then `close' the trap.
1240
trap 'exit_status=$?
1241
# Save into config.log some information that might help in debugging.
1246
## ---------------- ##
1247
## Cache variables. ##
1248
## ---------------- ##
1251
# The following way of writing the cache mishandles newlines in values,
1254
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1258
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1269
## ----------------- ##
1270
## Output variables. ##
1271
## ----------------- ##
1274
for ac_var in $ac_subst_vars
1276
eval ac_val=$`echo $ac_var`
1277
echo "$ac_var='"'"'$ac_val'"'"'"
1281
if test -n "$ac_subst_files"; then
1288
for ac_var in $ac_subst_files
1290
eval ac_val=$`echo $ac_var`
1291
echo "$ac_var='"'"'$ac_val'"'"'"
1296
if test -s confdefs.h; then
1303
sed "/^$/d" confdefs.h | sort
1306
test "$ac_signal" != 0 &&
1307
echo "$as_me: caught signal $ac_signal"
1308
echo "$as_me: exit $exit_status"
1310
rm -f core core.* *.core &&
1311
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314
for ac_signal in 1 2 13 15; do
1315
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1320
rm -rf conftest* confdefs.h
1321
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324
# Predefined preprocessor variables.
1326
cat >>confdefs.h <<_ACEOF
1327
#define PACKAGE_NAME "$PACKAGE_NAME"
1331
cat >>confdefs.h <<_ACEOF
1332
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336
cat >>confdefs.h <<_ACEOF
1337
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1341
cat >>confdefs.h <<_ACEOF
1342
#define PACKAGE_STRING "$PACKAGE_STRING"
1346
cat >>confdefs.h <<_ACEOF
1347
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351
# Let the site file select an alternate cache file if it wants to.
1352
# Prefer explicitly selected file to automatically selected ones.
1353
if test -z "$CONFIG_SITE"; then
1354
if test "x$prefix" != xNONE; then
1355
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360
for ac_site_file in $CONFIG_SITE; do
1361
if test -r "$ac_site_file"; then
1362
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1363
echo "$as_me: loading site script $ac_site_file" >&6;}
1364
sed 's/^/| /' "$ac_site_file" >&5
1369
if test -r "$cache_file"; then
1370
# Some versions of bash will fail to source /dev/null (special
1371
# files actually), so we avoid doing that.
1372
if test -f "$cache_file"; then
1373
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1374
echo "$as_me: loading cache $cache_file" >&6;}
1376
[\\/]* | ?:[\\/]* ) . $cache_file;;
1377
*) . ./$cache_file;;
1381
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1382
echo "$as_me: creating cache $cache_file" >&6;}
1386
# Check that the precious variables saved in the cache have kept the same
1388
ac_cache_corrupted=false
1389
for ac_var in `(set) 2>&1 |
1390
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1391
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1392
eval ac_new_set=\$ac_env_${ac_var}_set
1393
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1394
eval ac_new_val="\$ac_env_${ac_var}_value"
1395
case $ac_old_set,$ac_new_set in
1397
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1398
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1399
ac_cache_corrupted=: ;;
1401
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1402
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1403
ac_cache_corrupted=: ;;
1406
if test "x$ac_old_val" != "x$ac_new_val"; then
1407
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1408
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1409
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1410
echo "$as_me: former value: $ac_old_val" >&2;}
1411
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1412
echo "$as_me: current value: $ac_new_val" >&2;}
1413
ac_cache_corrupted=:
1416
# Pass precious variables to config.status.
1417
if test "$ac_new_set" = set; then
1419
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1420
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1421
*) ac_arg=$ac_var=$ac_new_val ;;
1423
case " $ac_configure_args " in
1424
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1425
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1429
if $ac_cache_corrupted; then
1430
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1431
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1432
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1433
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1434
{ (exit 1); exit 1; }; }
1438
ac_cpp='$CPP $CPPFLAGS'
1439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1473
if test -f $ac_dir/install-sh; then
1475
ac_install_sh="$ac_aux_dir/install-sh -c"
1477
elif test -f $ac_dir/install.sh; then
1479
ac_install_sh="$ac_aux_dir/install.sh -c"
1481
elif test -f $ac_dir/shtool; then
1483
ac_install_sh="$ac_aux_dir/shtool install -c"
1487
if test -z "$ac_aux_dir"; then
1488
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1489
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1490
{ (exit 1); exit 1; }; }
1492
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1493
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1494
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
# Make sure we can run config.sub.
1497
$ac_config_sub sun4 >/dev/null 2>&1 ||
1498
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500
{ (exit 1); exit 1; }; }
1502
echo "$as_me:$LINENO: checking build system type" >&5
1503
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504
if test "${ac_cv_build+set}" = set; then
1505
echo $ECHO_N "(cached) $ECHO_C" >&6
1507
ac_cv_build_alias=$build_alias
1508
test -z "$ac_cv_build_alias" &&
1509
ac_cv_build_alias=`$ac_config_guess`
1510
test -z "$ac_cv_build_alias" &&
1511
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513
{ (exit 1); exit 1; }; }
1514
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517
{ (exit 1); exit 1; }; }
1520
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521
echo "${ECHO_T}$ac_cv_build" >&6
1523
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528
echo "$as_me:$LINENO: checking host system type" >&5
1529
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530
if test "${ac_cv_host+set}" = set; then
1531
echo $ECHO_N "(cached) $ECHO_C" >&6
1533
ac_cv_host_alias=$host_alias
1534
test -z "$ac_cv_host_alias" &&
1535
ac_cv_host_alias=$ac_cv_build_alias
1536
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539
{ (exit 1); exit 1; }; }
1542
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543
echo "${ECHO_T}$ac_cv_host" >&6
1545
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551
if test "$build" = "$host" ; then
1554
if test -z "$CXX" ; then
1557
if test -z "$CC" ; then
1560
if test x$CXX = xCC -a -z "$CXXFLAGS" ; then
1561
# It might be worthwhile to move this out of here, say
1562
# EXTRA_CXXFLAGS. Forcing -n32 might cause trouble, too.
1563
CXXFLAGS="-LANG:std -n32 -woff 1201 -O3"
1570
ac_cpp='$CXXCPP $CPPFLAGS'
1571
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1574
if test -n "$ac_tool_prefix"; then
1575
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1577
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1578
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1579
echo "$as_me:$LINENO: checking for $ac_word" >&5
1580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581
if test "${ac_cv_prog_CXX+set}" = set; then
1582
echo $ECHO_N "(cached) $ECHO_C" >&6
1584
if test -n "$CXX"; then
1585
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1591
test -z "$as_dir" && as_dir=.
1592
for ac_exec_ext in '' $ac_executable_extensions; do
1593
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1595
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604
if test -n "$CXX"; then
1605
echo "$as_me:$LINENO: result: $CXX" >&5
1606
echo "${ECHO_T}$CXX" >&6
1608
echo "$as_me:$LINENO: result: no" >&5
1609
echo "${ECHO_T}no" >&6
1612
test -n "$CXX" && break
1615
if test -z "$CXX"; then
1617
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1619
# Extract the first word of "$ac_prog", so it can be a program name with args.
1620
set dummy $ac_prog; ac_word=$2
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1624
echo $ECHO_N "(cached) $ECHO_C" >&6
1626
if test -n "$ac_ct_CXX"; then
1627
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633
test -z "$as_dir" && as_dir=.
1634
for ac_exec_ext in '' $ac_executable_extensions; do
1635
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636
ac_cv_prog_ac_ct_CXX="$ac_prog"
1637
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1646
if test -n "$ac_ct_CXX"; then
1647
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1648
echo "${ECHO_T}$ac_ct_CXX" >&6
1650
echo "$as_me:$LINENO: result: no" >&5
1651
echo "${ECHO_T}no" >&6
1654
test -n "$ac_ct_CXX" && break
1656
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1662
# Provide some information about the compiler.
1663
echo "$as_me:$LINENO:" \
1664
"checking for C++ compiler version" >&5
1665
ac_compiler=`set X $ac_compile; echo $2`
1666
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1667
(eval $ac_compiler --version </dev/null >&5) 2>&5
1669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670
(exit $ac_status); }
1671
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1672
(eval $ac_compiler -v </dev/null >&5) 2>&5
1674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675
(exit $ac_status); }
1676
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1677
(eval $ac_compiler -V </dev/null >&5) 2>&5
1679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680
(exit $ac_status); }
1682
cat >conftest.$ac_ext <<_ACEOF
1683
#line $LINENO "configure"
1686
cat confdefs.h >>conftest.$ac_ext
1687
cat >>conftest.$ac_ext <<_ACEOF
1688
/* end confdefs.h. */
1698
ac_clean_files_save=$ac_clean_files
1699
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1700
# Try to create an executable without -o first, disregard a.out.
1701
# It will help us diagnose broken compilers, and finding out an intuition
1703
echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1704
echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1705
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1706
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1707
(eval $ac_link_default) 2>&5
1709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710
(exit $ac_status); }; then
1711
# Find the output, starting from the most likely. This scheme is
1712
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1715
# Be careful to initialize this variable, since it used to be cached.
1716
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1718
# b.out is created by i960 compilers.
1719
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1721
test -f "$ac_file" || continue
1723
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1726
# This is the source file.
1729
# We found the default executable, but exeext='' is most
1733
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734
# FIXME: I believe we export ac_cv_exeext for Libtool,
1735
# but it would be cool to find out if it's true. Does anybody
1736
# maintain Libtool? --akim.
1744
echo "$as_me: failed program was:" >&5
1745
sed 's/^/| /' conftest.$ac_ext >&5
1747
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1748
See \`config.log' for more details." >&5
1749
echo "$as_me: error: C++ compiler cannot create executables
1750
See \`config.log' for more details." >&2;}
1751
{ (exit 77); exit 77; }; }
1754
ac_exeext=$ac_cv_exeext
1755
echo "$as_me:$LINENO: result: $ac_file" >&5
1756
echo "${ECHO_T}$ac_file" >&6
1758
# Check the compiler produces executables we can run. If not, either
1759
# the compiler is broken, or we cross compile.
1760
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1761
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1762
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1763
# If not cross compiling, check that we can run a simple program.
1764
if test "$cross_compiling" != yes; then
1765
if { ac_try='./$ac_file'
1766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770
(exit $ac_status); }; }; then
1773
if test "$cross_compiling" = maybe; then
1776
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1777
If you meant to cross compile, use \`--host'.
1778
See \`config.log' for more details." >&5
1779
echo "$as_me: error: cannot run C++ compiled programs.
1780
If you meant to cross compile, use \`--host'.
1781
See \`config.log' for more details." >&2;}
1782
{ (exit 1); exit 1; }; }
1786
echo "$as_me:$LINENO: result: yes" >&5
1787
echo "${ECHO_T}yes" >&6
1789
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1790
ac_clean_files=$ac_clean_files_save
1791
# Check the compiler produces executables we can run. If not, either
1792
# the compiler is broken, or we cross compile.
1793
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1794
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1796
echo "${ECHO_T}$cross_compiling" >&6
1798
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1799
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1801
(eval $ac_link) 2>&5
1803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804
(exit $ac_status); }; then
1805
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1806
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1807
# work properly (i.e., refer to `conftest.exe'), while it won't with
1809
for ac_file in conftest.exe conftest conftest.*; do
1810
test -f "$ac_file" || continue
1812
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1813
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1821
See \`config.log' for more details." >&5
1822
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1823
See \`config.log' for more details." >&2;}
1824
{ (exit 1); exit 1; }; }
1827
rm -f conftest$ac_cv_exeext
1828
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1829
echo "${ECHO_T}$ac_cv_exeext" >&6
1831
rm -f conftest.$ac_ext
1832
EXEEXT=$ac_cv_exeext
1834
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1835
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1836
if test "${ac_cv_objext+set}" = set; then
1837
echo $ECHO_N "(cached) $ECHO_C" >&6
1839
cat >conftest.$ac_ext <<_ACEOF
1840
#line $LINENO "configure"
1843
cat confdefs.h >>conftest.$ac_ext
1844
cat >>conftest.$ac_ext <<_ACEOF
1845
/* end confdefs.h. */
1855
rm -f conftest.o conftest.obj
1856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1857
(eval $ac_compile) 2>&5
1859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860
(exit $ac_status); }; then
1861
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1863
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1864
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1869
echo "$as_me: failed program was:" >&5
1870
sed 's/^/| /' conftest.$ac_ext >&5
1872
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1873
See \`config.log' for more details." >&5
1874
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1875
See \`config.log' for more details." >&2;}
1876
{ (exit 1); exit 1; }; }
1879
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1881
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1882
echo "${ECHO_T}$ac_cv_objext" >&6
1883
OBJEXT=$ac_cv_objext
1885
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1886
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1887
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1888
echo $ECHO_N "(cached) $ECHO_C" >&6
1890
cat >conftest.$ac_ext <<_ACEOF
1891
#line $LINENO "configure"
1894
cat confdefs.h >>conftest.$ac_ext
1895
cat >>conftest.$ac_ext <<_ACEOF
1896
/* end confdefs.h. */
1909
rm -f conftest.$ac_objext
1910
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911
(eval $ac_compile) 2>&5
1913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914
(exit $ac_status); } &&
1915
{ ac_try='test -s conftest.$ac_objext'
1916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920
(exit $ac_status); }; }; then
1923
echo "$as_me: failed program was:" >&5
1924
sed 's/^/| /' conftest.$ac_ext >&5
1928
rm -f conftest.$ac_objext conftest.$ac_ext
1929
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1932
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1933
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1934
GXX=`test $ac_compiler_gnu = yes && echo yes`
1935
ac_test_CXXFLAGS=${CXXFLAGS+set}
1936
ac_save_CXXFLAGS=$CXXFLAGS
1938
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1939
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1940
if test "${ac_cv_prog_cxx_g+set}" = set; then
1941
echo $ECHO_N "(cached) $ECHO_C" >&6
1943
cat >conftest.$ac_ext <<_ACEOF
1944
#line $LINENO "configure"
1947
cat confdefs.h >>conftest.$ac_ext
1948
cat >>conftest.$ac_ext <<_ACEOF
1949
/* end confdefs.h. */
1959
rm -f conftest.$ac_objext
1960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961
(eval $ac_compile) 2>&5
1963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964
(exit $ac_status); } &&
1965
{ ac_try='test -s conftest.$ac_objext'
1966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970
(exit $ac_status); }; }; then
1971
ac_cv_prog_cxx_g=yes
1973
echo "$as_me: failed program was:" >&5
1974
sed 's/^/| /' conftest.$ac_ext >&5
1978
rm -f conftest.$ac_objext conftest.$ac_ext
1980
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1981
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1982
if test "$ac_test_CXXFLAGS" = set; then
1983
CXXFLAGS=$ac_save_CXXFLAGS
1984
elif test $ac_cv_prog_cxx_g = yes; then
1985
if test "$GXX" = yes; then
1991
if test "$GXX" = yes; then
1997
for ac_declaration in \
1999
'#include <stdlib.h>' \
2000
'extern "C" void std::exit (int) throw (); using std::exit;' \
2001
'extern "C" void std::exit (int); using std::exit;' \
2002
'extern "C" void exit (int) throw ();' \
2003
'extern "C" void exit (int);' \
2006
cat >conftest.$ac_ext <<_ACEOF
2007
#line $LINENO "configure"
2010
cat confdefs.h >>conftest.$ac_ext
2011
cat >>conftest.$ac_ext <<_ACEOF
2012
/* end confdefs.h. */
2023
rm -f conftest.$ac_objext
2024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025
(eval $ac_compile) 2>&5
2027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028
(exit $ac_status); } &&
2029
{ ac_try='test -s conftest.$ac_objext'
2030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034
(exit $ac_status); }; }; then
2037
echo "$as_me: failed program was:" >&5
2038
sed 's/^/| /' conftest.$ac_ext >&5
2042
rm -f conftest.$ac_objext conftest.$ac_ext
2043
cat >conftest.$ac_ext <<_ACEOF
2044
#line $LINENO "configure"
2047
cat confdefs.h >>conftest.$ac_ext
2048
cat >>conftest.$ac_ext <<_ACEOF
2049
/* end confdefs.h. */
2059
rm -f conftest.$ac_objext
2060
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2061
(eval $ac_compile) 2>&5
2063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064
(exit $ac_status); } &&
2065
{ ac_try='test -s conftest.$ac_objext'
2066
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070
(exit $ac_status); }; }; then
2073
echo "$as_me: failed program was:" >&5
2074
sed 's/^/| /' conftest.$ac_ext >&5
2077
rm -f conftest.$ac_objext conftest.$ac_ext
2080
if test -n "$ac_declaration"; then
2081
echo '#ifdef __cplusplus' >>confdefs.h
2082
echo $ac_declaration >>confdefs.h
2083
echo '#endif' >>confdefs.h
2087
ac_cpp='$CPP $CPPFLAGS'
2088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094
# Check whether --enable-shared or --disable-shared was given.
2095
if test "${enable_shared+set}" = set; then
2096
enableval="$enable_shared"
2097
p=${PACKAGE-default}
2099
yes) enable_shared=yes ;;
2100
no) enable_shared=no ;;
2103
# Look at the argument we got. We use all the common list separators.
2104
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2105
for pkg in $enableval; do
2106
if test "X$pkg" = "X$p"; then
2116
# Check whether --enable-static or --disable-static was given.
2117
if test "${enable_static+set}" = set; then
2118
enableval="$enable_static"
2119
p=${PACKAGE-default}
2121
yes) enable_static=yes ;;
2122
no) enable_static=no ;;
2125
# Look at the argument we got. We use all the common list separators.
2126
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2127
for pkg in $enableval; do
2128
if test "X$pkg" = "X$p"; then
2138
# Check whether --enable-fast-install or --disable-fast-install was given.
2139
if test "${enable_fast_install+set}" = set; then
2140
enableval="$enable_fast_install"
2141
p=${PACKAGE-default}
2143
yes) enable_fast_install=yes ;;
2144
no) enable_fast_install=no ;;
2146
enable_fast_install=no
2147
# Look at the argument we got. We use all the common list separators.
2148
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2149
for pkg in $enableval; do
2150
if test "X$pkg" = "X$p"; then
2151
enable_fast_install=yes
2158
enable_fast_install=yes
2161
ac_cpp='$CPP $CPPFLAGS'
2162
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
if test -n "$ac_tool_prefix"; then
2166
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2167
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2168
echo "$as_me:$LINENO: checking for $ac_word" >&5
2169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170
if test "${ac_cv_prog_CC+set}" = set; then
2171
echo $ECHO_N "(cached) $ECHO_C" >&6
2173
if test -n "$CC"; then
2174
ac_cv_prog_CC="$CC" # Let the user override the test.
2176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180
test -z "$as_dir" && as_dir=.
2181
for ac_exec_ext in '' $ac_executable_extensions; do
2182
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2184
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193
if test -n "$CC"; then
2194
echo "$as_me:$LINENO: result: $CC" >&5
2195
echo "${ECHO_T}$CC" >&6
2197
echo "$as_me:$LINENO: result: no" >&5
2198
echo "${ECHO_T}no" >&6
2202
if test -z "$ac_cv_prog_CC"; then
2204
# Extract the first word of "gcc", so it can be a program name with args.
2205
set dummy gcc; ac_word=$2
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209
echo $ECHO_N "(cached) $ECHO_C" >&6
2211
if test -n "$ac_ct_CC"; then
2212
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
for ac_exec_ext in '' $ac_executable_extensions; do
2220
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221
ac_cv_prog_ac_ct_CC="gcc"
2222
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231
if test -n "$ac_ct_CC"; then
2232
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233
echo "${ECHO_T}$ac_ct_CC" >&6
2235
echo "$as_me:$LINENO: result: no" >&5
2236
echo "${ECHO_T}no" >&6
2244
if test -z "$CC"; then
2245
if test -n "$ac_tool_prefix"; then
2246
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2247
set dummy ${ac_tool_prefix}cc; ac_word=$2
2248
echo "$as_me:$LINENO: checking for $ac_word" >&5
2249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250
if test "${ac_cv_prog_CC+set}" = set; then
2251
echo $ECHO_N "(cached) $ECHO_C" >&6
2253
if test -n "$CC"; then
2254
ac_cv_prog_CC="$CC" # Let the user override the test.
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260
test -z "$as_dir" && as_dir=.
2261
for ac_exec_ext in '' $ac_executable_extensions; do
2262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2263
ac_cv_prog_CC="${ac_tool_prefix}cc"
2264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273
if test -n "$CC"; then
2274
echo "$as_me:$LINENO: result: $CC" >&5
2275
echo "${ECHO_T}$CC" >&6
2277
echo "$as_me:$LINENO: result: no" >&5
2278
echo "${ECHO_T}no" >&6
2282
if test -z "$ac_cv_prog_CC"; then
2284
# Extract the first word of "cc", so it can be a program name with args.
2285
set dummy cc; ac_word=$2
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289
echo $ECHO_N "(cached) $ECHO_C" >&6
2291
if test -n "$ac_ct_CC"; then
2292
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298
test -z "$as_dir" && as_dir=.
2299
for ac_exec_ext in '' $ac_executable_extensions; do
2300
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2301
ac_cv_prog_ac_ct_CC="cc"
2302
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2311
if test -n "$ac_ct_CC"; then
2312
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2313
echo "${ECHO_T}$ac_ct_CC" >&6
2315
echo "$as_me:$LINENO: result: no" >&5
2316
echo "${ECHO_T}no" >&6
2325
if test -z "$CC"; then
2326
# Extract the first word of "cc", so it can be a program name with args.
2327
set dummy cc; ac_word=$2
2328
echo "$as_me:$LINENO: checking for $ac_word" >&5
2329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330
if test "${ac_cv_prog_CC+set}" = set; then
2331
echo $ECHO_N "(cached) $ECHO_C" >&6
2333
if test -n "$CC"; then
2334
ac_cv_prog_CC="$CC" # Let the user override the test.
2337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341
test -z "$as_dir" && as_dir=.
2342
for ac_exec_ext in '' $ac_executable_extensions; do
2343
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345
ac_prog_rejected=yes
2349
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355
if test $ac_prog_rejected = yes; then
2356
# We found a bogon in the path, so make sure we never use it.
2357
set dummy $ac_cv_prog_CC
2359
if test $# != 0; then
2360
# We chose a different compiler from the bogus one.
2361
# However, it has the same basename, so the bogon will be chosen
2362
# first if we set CC to just the basename; use the full file name.
2364
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370
if test -n "$CC"; then
2371
echo "$as_me:$LINENO: result: $CC" >&5
2372
echo "${ECHO_T}$CC" >&6
2374
echo "$as_me:$LINENO: result: no" >&5
2375
echo "${ECHO_T}no" >&6
2379
if test -z "$CC"; then
2380
if test -n "$ac_tool_prefix"; then
2383
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2384
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2385
echo "$as_me:$LINENO: checking for $ac_word" >&5
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387
if test "${ac_cv_prog_CC+set}" = set; then
2388
echo $ECHO_N "(cached) $ECHO_C" >&6
2390
if test -n "$CC"; then
2391
ac_cv_prog_CC="$CC" # Let the user override the test.
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397
test -z "$as_dir" && as_dir=.
2398
for ac_exec_ext in '' $ac_executable_extensions; do
2399
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2401
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410
if test -n "$CC"; then
2411
echo "$as_me:$LINENO: result: $CC" >&5
2412
echo "${ECHO_T}$CC" >&6
2414
echo "$as_me:$LINENO: result: no" >&5
2415
echo "${ECHO_T}no" >&6
2418
test -n "$CC" && break
2421
if test -z "$CC"; then
2425
# Extract the first word of "$ac_prog", so it can be a program name with args.
2426
set dummy $ac_prog; ac_word=$2
2427
echo "$as_me:$LINENO: checking for $ac_word" >&5
2428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430
echo $ECHO_N "(cached) $ECHO_C" >&6
2432
if test -n "$ac_ct_CC"; then
2433
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439
test -z "$as_dir" && as_dir=.
2440
for ac_exec_ext in '' $ac_executable_extensions; do
2441
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442
ac_cv_prog_ac_ct_CC="$ac_prog"
2443
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452
if test -n "$ac_ct_CC"; then
2453
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454
echo "${ECHO_T}$ac_ct_CC" >&6
2456
echo "$as_me:$LINENO: result: no" >&5
2457
echo "${ECHO_T}no" >&6
2460
test -n "$ac_ct_CC" && break
2469
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2470
See \`config.log' for more details." >&5
2471
echo "$as_me: error: no acceptable C compiler found in \$PATH
2472
See \`config.log' for more details." >&2;}
2473
{ (exit 1); exit 1; }; }
2475
# Provide some information about the compiler.
2476
echo "$as_me:$LINENO:" \
2477
"checking for C compiler version" >&5
2478
ac_compiler=`set X $ac_compile; echo $2`
2479
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2480
(eval $ac_compiler --version </dev/null >&5) 2>&5
2482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483
(exit $ac_status); }
2484
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2485
(eval $ac_compiler -v </dev/null >&5) 2>&5
2487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488
(exit $ac_status); }
2489
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2490
(eval $ac_compiler -V </dev/null >&5) 2>&5
2492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
(exit $ac_status); }
2495
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2496
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2497
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2498
echo $ECHO_N "(cached) $ECHO_C" >&6
2500
cat >conftest.$ac_ext <<_ACEOF
2501
#line $LINENO "configure"
2504
cat confdefs.h >>conftest.$ac_ext
2505
cat >>conftest.$ac_ext <<_ACEOF
2506
/* end confdefs.h. */
2519
rm -f conftest.$ac_objext
2520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521
(eval $ac_compile) 2>&5
2523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524
(exit $ac_status); } &&
2525
{ ac_try='test -s conftest.$ac_objext'
2526
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530
(exit $ac_status); }; }; then
2533
echo "$as_me: failed program was:" >&5
2534
sed 's/^/| /' conftest.$ac_ext >&5
2538
rm -f conftest.$ac_objext conftest.$ac_ext
2539
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2542
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2543
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2544
GCC=`test $ac_compiler_gnu = yes && echo yes`
2545
ac_test_CFLAGS=${CFLAGS+set}
2546
ac_save_CFLAGS=$CFLAGS
2548
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2549
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2550
if test "${ac_cv_prog_cc_g+set}" = set; then
2551
echo $ECHO_N "(cached) $ECHO_C" >&6
2553
cat >conftest.$ac_ext <<_ACEOF
2554
#line $LINENO "configure"
2557
cat confdefs.h >>conftest.$ac_ext
2558
cat >>conftest.$ac_ext <<_ACEOF
2559
/* end confdefs.h. */
2569
rm -f conftest.$ac_objext
2570
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571
(eval $ac_compile) 2>&5
2573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574
(exit $ac_status); } &&
2575
{ ac_try='test -s conftest.$ac_objext'
2576
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580
(exit $ac_status); }; }; then
2583
echo "$as_me: failed program was:" >&5
2584
sed 's/^/| /' conftest.$ac_ext >&5
2588
rm -f conftest.$ac_objext conftest.$ac_ext
2590
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2591
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2592
if test "$ac_test_CFLAGS" = set; then
2593
CFLAGS=$ac_save_CFLAGS
2594
elif test $ac_cv_prog_cc_g = yes; then
2595
if test "$GCC" = yes; then
2601
if test "$GCC" = yes; then
2607
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2608
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2609
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2610
echo $ECHO_N "(cached) $ECHO_C" >&6
2612
ac_cv_prog_cc_stdc=no
2614
cat >conftest.$ac_ext <<_ACEOF
2615
#line $LINENO "configure"
2618
cat confdefs.h >>conftest.$ac_ext
2619
cat >>conftest.$ac_ext <<_ACEOF
2620
/* end confdefs.h. */
2623
#include <sys/types.h>
2624
#include <sys/stat.h>
2625
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2626
struct buf { int x; };
2627
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2628
static char *e (p, i)
2634
static char *f (char * (*g) (char **, int), char **p, ...)
2639
s = g (p, va_arg (v,int));
2643
int test (int i, double x);
2644
struct s1 {int (*f) (int a);};
2645
struct s2 {int (*f) (double a);};
2646
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2652
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2657
# Don't try gcc -ansi; that turns off useful extensions and
2658
# breaks some systems' header files.
2659
# AIX -qlanglvl=ansi
2660
# Ultrix and OSF/1 -std1
2661
# HP-UX 10.20 and later -Ae
2662
# HP-UX older versions -Aa -D_HPUX_SOURCE
2663
# SVR4 -Xc -D__EXTENSIONS__
2664
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666
CC="$ac_save_CC $ac_arg"
2667
rm -f conftest.$ac_objext
2668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669
(eval $ac_compile) 2>&5
2671
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672
(exit $ac_status); } &&
2673
{ ac_try='test -s conftest.$ac_objext'
2674
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678
(exit $ac_status); }; }; then
2679
ac_cv_prog_cc_stdc=$ac_arg
2682
echo "$as_me: failed program was:" >&5
2683
sed 's/^/| /' conftest.$ac_ext >&5
2686
rm -f conftest.$ac_objext
2688
rm -f conftest.$ac_ext conftest.$ac_objext
2693
case "x$ac_cv_prog_cc_stdc" in
2695
echo "$as_me:$LINENO: result: none needed" >&5
2696
echo "${ECHO_T}none needed" >&6 ;;
2698
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2699
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2700
CC="$CC $ac_cv_prog_cc_stdc" ;;
2703
# Some people use a C++ compiler to compile C. Since we use `exit',
2704
# in C++ we need to declare it. In case someone uses the same compiler
2705
# for both compiling C and C++ we need to have the C++ compiler decide
2706
# the declaration of exit, since it's the most demanding environment.
2707
cat >conftest.$ac_ext <<_ACEOF
2712
rm -f conftest.$ac_objext
2713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714
(eval $ac_compile) 2>&5
2716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717
(exit $ac_status); } &&
2718
{ ac_try='test -s conftest.$ac_objext'
2719
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723
(exit $ac_status); }; }; then
2724
for ac_declaration in \
2726
'#include <stdlib.h>' \
2727
'extern "C" void std::exit (int) throw (); using std::exit;' \
2728
'extern "C" void std::exit (int); using std::exit;' \
2729
'extern "C" void exit (int) throw ();' \
2730
'extern "C" void exit (int);' \
2733
cat >conftest.$ac_ext <<_ACEOF
2734
#line $LINENO "configure"
2737
cat confdefs.h >>conftest.$ac_ext
2738
cat >>conftest.$ac_ext <<_ACEOF
2739
/* end confdefs.h. */
2750
rm -f conftest.$ac_objext
2751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752
(eval $ac_compile) 2>&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); } &&
2756
{ ac_try='test -s conftest.$ac_objext'
2757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761
(exit $ac_status); }; }; then
2764
echo "$as_me: failed program was:" >&5
2765
sed 's/^/| /' conftest.$ac_ext >&5
2769
rm -f conftest.$ac_objext conftest.$ac_ext
2770
cat >conftest.$ac_ext <<_ACEOF
2771
#line $LINENO "configure"
2774
cat confdefs.h >>conftest.$ac_ext
2775
cat >>conftest.$ac_ext <<_ACEOF
2776
/* end confdefs.h. */
2786
rm -f conftest.$ac_objext
2787
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788
(eval $ac_compile) 2>&5
2790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
(exit $ac_status); } &&
2792
{ ac_try='test -s conftest.$ac_objext'
2793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797
(exit $ac_status); }; }; then
2800
echo "$as_me: failed program was:" >&5
2801
sed 's/^/| /' conftest.$ac_ext >&5
2804
rm -f conftest.$ac_objext conftest.$ac_ext
2807
if test -n "$ac_declaration"; then
2808
echo '#ifdef __cplusplus' >>confdefs.h
2809
echo $ac_declaration >>confdefs.h
2810
echo '#endif' >>confdefs.h
2814
echo "$as_me: failed program was:" >&5
2815
sed 's/^/| /' conftest.$ac_ext >&5
2818
rm -f conftest.$ac_objext conftest.$ac_ext
2820
ac_cpp='$CPP $CPPFLAGS'
2821
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
# Find the correct PATH separator. Usually this is `:', but
2826
# DJGPP uses `;' like DOS.
2827
if test "X${PATH_SEPARATOR+set}" != Xset; then
2828
UNAME=${UNAME-`uname 2>/dev/null`}
2830
*-DOS) lt_cv_sys_path_separator=';' ;;
2831
*) lt_cv_sys_path_separator=':' ;;
2833
PATH_SEPARATOR=$lt_cv_sys_path_separator
2837
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2838
if test "${with_gnu_ld+set}" = set; then
2839
withval="$with_gnu_ld"
2840
test "$withval" = no || with_gnu_ld=yes
2845
if test "$GCC" = yes; then
2846
# Check if gcc -print-prog-name=ld gives a path.
2847
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2848
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2851
# gcc leaves a trailing carriage return which upsets mingw
2852
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2854
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2857
# Accept absolute paths.
2858
[\\/]* | [A-Za-z]:[\\/]*)
2859
re_direlt='/[^/][^/]*/\.\./'
2860
# Canonicalize the path of ld
2861
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2862
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2863
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2865
test -z "$LD" && LD="$ac_prog"
2868
# If it fails, then pretend we aren't using GCC.
2872
# If it is relative, then search for the first ld in PATH.
2876
elif test "$with_gnu_ld" = yes; then
2877
echo "$as_me:$LINENO: checking for GNU ld" >&5
2878
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2880
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2881
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2883
if test "${lt_cv_path_LD+set}" = set; then
2884
echo $ECHO_N "(cached) $ECHO_C" >&6
2886
if test -z "$LD"; then
2887
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2888
for ac_dir in $PATH; do
2889
test -z "$ac_dir" && ac_dir=.
2890
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2891
lt_cv_path_LD="$ac_dir/$ac_prog"
2892
# Check to see if the program is GNU ld. I'd rather use --version,
2893
# but apparently some GNU ld's only accept -v.
2894
# Break only if it was the GNU/non-GNU ld that we prefer.
2895
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2896
test "$with_gnu_ld" != no && break
2898
test "$with_gnu_ld" != yes && break
2904
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2909
if test -n "$LD"; then
2910
echo "$as_me:$LINENO: result: $LD" >&5
2911
echo "${ECHO_T}$LD" >&6
2913
echo "$as_me:$LINENO: result: no" >&5
2914
echo "${ECHO_T}no" >&6
2916
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2917
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2918
{ (exit 1); exit 1; }; }
2919
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2920
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2921
if test "${lt_cv_prog_gnu_ld+set}" = set; then
2922
echo $ECHO_N "(cached) $ECHO_C" >&6
2924
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2925
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2926
lt_cv_prog_gnu_ld=yes
2928
lt_cv_prog_gnu_ld=no
2931
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2932
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2933
with_gnu_ld=$lt_cv_prog_gnu_ld
2936
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2937
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2938
if test "${lt_cv_ld_reload_flag+set}" = set; then
2939
echo $ECHO_N "(cached) $ECHO_C" >&6
2941
lt_cv_ld_reload_flag='-r'
2943
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2944
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2945
reload_flag=$lt_cv_ld_reload_flag
2946
test -n "$reload_flag" && reload_flag=" $reload_flag"
2948
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2949
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2950
if test "${lt_cv_path_NM+set}" = set; then
2951
echo $ECHO_N "(cached) $ECHO_C" >&6
2953
if test -n "$NM"; then
2954
# Let the user override the test.
2957
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2958
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2959
test -z "$ac_dir" && ac_dir=.
2960
tmp_nm=$ac_dir/${ac_tool_prefix}nm
2961
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2962
# Check to see if the nm accepts a BSD-compat flag.
2963
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2964
# nm: unknown option "B" ignored
2965
# Tru64's nm complains that /dev/null is an invalid object file
2966
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2967
lt_cv_path_NM="$tmp_nm -B"
2969
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2970
lt_cv_path_NM="$tmp_nm -p"
2973
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2974
continue # so that we can try to find one that supports BSD flags
2979
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2984
echo "$as_me:$LINENO: result: $NM" >&5
2985
echo "${ECHO_T}$NM" >&6
2987
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2988
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2989
if test "${lt_cv_path_SED+set}" = set; then
2990
echo $ECHO_N "(cached) $ECHO_C" >&6
2992
# Loop through the user's path and test for sed and gsed.
2993
# Then use that list of sed's as ones to test for truncation.
2994
as_executable_p="test -f"
2995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999
test -z "$as_dir" && as_dir=.
3000
for ac_prog in sed gsed; do
3001
for ac_exec_ext in '' $ac_executable_extensions; do
3002
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3003
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3009
# Create a temporary directory, and hook for its removal unless debugging.
3012
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3013
trap '{ (exit 1); exit 1; }' 1 2 13 15
3016
# Create a (secure) tmp directory for tmp files.
3019
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3020
test -n "$tmp" && test -d "$tmp"
3023
tmp=$TMPDIR/sed$$-$RANDOM
3024
(umask 077 && mkdir $tmp)
3027
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3028
{ (exit 1); exit 1; }
3032
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3033
# along with /bin/sed that truncates output.
3034
for _sed in $_sed_list /usr/xpg4/bin/sed; do
3035
test ! -f ${_sed} && break
3036
cat /dev/null > "$tmp/sed.in"
3038
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3039
# Check for GNU sed and select it if it is found.
3040
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3041
lt_cv_path_SED=${_sed}
3045
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3046
mv "$tmp/sed.tmp" "$tmp/sed.in"
3047
cp "$tmp/sed.in" "$tmp/sed.nl"
3048
echo >>"$tmp/sed.nl"
3049
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3050
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3051
# 40000 chars as input seems more than enough
3052
test $_count -gt 10 && break
3053
_count=`expr $_count + 1`
3054
if test $_count -gt $_max; then
3056
lt_cv_path_SED=$_sed
3064
if test "X$SED" != "X"; then
3069
echo "$as_me:$LINENO: result: $SED" >&5
3070
echo "${ECHO_T}$SED" >&6
3072
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3073
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3075
if test "$LN_S" = "ln -s"; then
3076
echo "$as_me:$LINENO: result: yes" >&5
3077
echo "${ECHO_T}yes" >&6
3079
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3080
echo "${ECHO_T}no, using $LN_S" >&6
3083
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3084
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3085
if test "${lt_cv_deplibs_check_method+set}" = set; then
3086
echo $ECHO_N "(cached) $ECHO_C" >&6
3088
lt_cv_file_magic_cmd='$MAGIC_CMD'
3089
lt_cv_file_magic_test_file=
3090
lt_cv_deplibs_check_method='unknown'
3091
# Need to set the preceding variable on all platforms that support
3092
# interlibrary dependencies.
3093
# 'none' -- dependencies not supported.
3094
# `unknown' -- same as none, but documents that we really don't know.
3095
# 'pass_all' -- all dependencies passed with no checks.
3096
# 'test_compile' -- check by making test program.
3097
# 'file_magic [[regex]]' -- check by looking for files in library path
3098
# which responds to the $file_magic_cmd with a given egrep regex.
3099
# If you have `file' or equivalent on your system and you're not sure
3100
# whether `pass_all' will *always* work, you probably want this one.
3104
lt_cv_deplibs_check_method=pass_all
3108
lt_cv_deplibs_check_method=pass_all
3112
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3113
lt_cv_file_magic_cmd='/usr/bin/file -L'
3114
lt_cv_file_magic_test_file=/shlib/libc.so
3117
cygwin* | mingw* | pw32*)
3118
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3119
lt_cv_file_magic_cmd='$OBJDUMP -f'
3122
darwin* | rhapsody*)
3123
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3124
lt_cv_file_magic_cmd='/usr/bin/file -L'
3126
rhapsody* | darwin1.[012])
3127
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3130
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3136
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3139
# Not sure whether the presence of OpenBSD here was a mistake.
3140
# Let's accept both of them until this is cleared up.
3141
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3142
lt_cv_file_magic_cmd=/usr/bin/file
3143
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3147
lt_cv_deplibs_check_method=pass_all
3152
lt_cv_deplibs_check_method=pass_all
3156
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3157
lt_cv_file_magic_cmd=/usr/bin/file
3158
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3161
irix5* | irix6* | nonstopux*)
3163
irix5* | nonstopux*)
3164
# this will be overridden with pass_all, but let us keep it just in case
3165
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3169
*-32|*"-32 ") libmagic=32-bit;;
3170
*-n32|*"-n32 ") libmagic=N32;;
3171
*-64|*"-64 ") libmagic=64-bit;;
3172
*) libmagic=never-match;;
3174
# this will be overridden with pass_all, but let us keep it just in case
3175
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3178
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3179
lt_cv_deplibs_check_method=pass_all
3182
# This must be Linux ELF.
3185
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3186
lt_cv_deplibs_check_method=pass_all ;;
3188
# glibc up to 2.1.1 does not perform some relocations on ARM
3189
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3191
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3195
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3196
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3198
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3203
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3204
lt_cv_file_magic_cmd=/usr/bin/file
3205
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3209
lt_cv_file_magic_cmd=/usr/bin/file
3210
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3211
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3212
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3214
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3218
osf3* | osf4* | osf5*)
3219
# this will be overridden with pass_all, but let us keep it just in case
3220
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3221
lt_cv_file_magic_test_file=/shlib/libc.so
3222
lt_cv_deplibs_check_method=pass_all
3226
lt_cv_deplibs_check_method=pass_all
3230
lt_cv_deplibs_check_method=pass_all
3231
lt_cv_file_magic_test_file=/lib/libc.so
3234
sysv5uw[78]* | sysv4*uw2*)
3235
lt_cv_deplibs_check_method=pass_all
3238
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3239
case $host_vendor in
3241
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]'
3242
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3245
lt_cv_deplibs_check_method=pass_all
3248
lt_cv_file_magic_cmd='/bin/file'
3249
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3252
lt_cv_file_magic_cmd='/bin/file'
3253
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3254
lt_cv_file_magic_test_file=/lib/libc.so
3257
lt_cv_deplibs_check_method=pass_all
3264
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3265
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3266
file_magic_cmd=$lt_cv_file_magic_cmd
3267
deplibs_check_method=$lt_cv_deplibs_check_method
3276
# Check for command to grab the raw symbol name followed by C symbol from nm.
3277
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3278
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3279
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3280
echo $ECHO_N "(cached) $ECHO_C" >&6
3283
# These are sane defaults that work on at least a few old systems.
3284
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3286
# Character class describing NM global symbol codes.
3287
symcode='[BCDEGRST]'
3289
# Regexp to match symbols that can be accessed directly from C.
3290
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3292
# Transform the above into a raw symbol and a C symbol.
3293
symxfrm='\1 \2\3 \3'
3295
# Transform an extracted symbol line into a proper C declaration
3296
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3298
# Transform an extracted symbol line into symbol name and symbol address
3299
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'"
3301
# Define system-specific variables.
3306
cygwin* | mingw* | pw32*)
3307
symcode='[ABCDGISTW]'
3309
hpux*) # Its linker distinguishes data from code symbols
3310
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3311
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'"
3314
symcode='[BCDEGRST]'
3317
symcode='[BCDEGQRST]'
3327
# Handle CRLF in mingw tool chain
3331
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3335
# If we're using GNU nm, then use its standard symbol codes.
3336
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3337
symcode='[ABCDGISTW]'
3340
# Try without a prefix undercore, then with it.
3341
for ac_symprfx in "" "_"; do
3343
# Write the raw and C identifiers.
3344
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3346
# Check to see that the pipe works correctly.
3349
cat > conftest.$ac_ext <<EOF
3354
void nm_test_func(){}
3358
int main(){nm_test_var='a';nm_test_func();return(0);}
3361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362
(eval $ac_compile) 2>&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); }; then
3366
# Now try to grab the symbols.
3368
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3369
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372
(exit $ac_status); } && test -s "$nlist"; then
3373
# Try sorting and uniquifying the output.
3374
if sort "$nlist" | uniq > "$nlist"T; then
3375
mv -f "$nlist"T "$nlist"
3380
# Make sure that we snagged all the symbols we need.
3381
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3382
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3383
cat <<EOF > conftest.$ac_ext
3389
# Now generate the symbol file.
3390
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3392
cat <<EOF >> conftest.$ac_ext
3393
#if defined (__STDC__) && __STDC__
3394
# define lt_ptr void *
3396
# define lt_ptr char *
3400
/* The mapping between symbol names and symbols. */
3405
lt_preloaded_symbols[] =
3408
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3409
cat <<\EOF >> conftest.$ac_ext
3417
# Now try linking the two files.
3418
mv conftest.$ac_objext conftstm.$ac_objext
3420
save_CFLAGS="$CFLAGS"
3421
LIBS="conftstm.$ac_objext"
3422
CFLAGS="$CFLAGS$no_builtin_flag"
3423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3424
(eval $ac_link) 2>&5
3426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427
(exit $ac_status); } && test -s conftest$ac_exeext; then
3431
CFLAGS="$save_CFLAGS"
3433
echo "cannot find nm_test_func in $nlist" >&5
3436
echo "cannot find nm_test_var in $nlist" >&5
3439
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3442
echo "$progname: failed program was:" >&5
3443
cat conftest.$ac_ext >&5
3445
rm -f conftest* conftst*
3447
# Do not use the global_symbol_pipe unless it works.
3448
if test "$pipe_works" = yes; then
3451
lt_cv_sys_global_symbol_pipe=
3457
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3458
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3459
global_symbol_to_cdecl=
3460
global_symbol_to_c_name_address=
3462
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3463
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3465
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3467
echo "$as_me:$LINENO: result: failed" >&5
3468
echo "${ECHO_T}failed" >&6
3470
echo "$as_me:$LINENO: result: ok" >&5
3471
echo "${ECHO_T}ok" >&6
3475
ac_cpp='$CPP $CPPFLAGS'
3476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3480
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3481
# On Suns, sometimes $CPP names a directory.
3482
if test -n "$CPP" && test -d "$CPP"; then
3485
if test -z "$CPP"; then
3486
if test "${ac_cv_prog_CPP+set}" = set; then
3487
echo $ECHO_N "(cached) $ECHO_C" >&6
3489
# Double quotes because CPP needs to be expanded
3490
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3493
for ac_c_preproc_warn_flag in '' yes
3495
# Use a header file that comes with gcc, so configuring glibc
3496
# with a fresh cross-compiler works.
3497
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498
# <limits.h> exists even on freestanding compilers.
3499
# On the NeXT, cc -E runs the code through the compiler's parser,
3500
# not just through cpp. "Syntax error" is here to catch this case.
3501
cat >conftest.$ac_ext <<_ACEOF
3502
#line $LINENO "configure"
3505
cat confdefs.h >>conftest.$ac_ext
3506
cat >>conftest.$ac_ext <<_ACEOF
3507
/* end confdefs.h. */
3509
# include <limits.h>
3511
# include <assert.h>
3515
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3516
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518
grep -v '^ *+' conftest.er1 >conftest.err
3520
cat conftest.err >&5
3521
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522
(exit $ac_status); } >/dev/null; then
3523
if test -s conftest.err; then
3524
ac_cpp_err=$ac_c_preproc_warn_flag
3531
if test -z "$ac_cpp_err"; then
3534
echo "$as_me: failed program was:" >&5
3535
sed 's/^/| /' conftest.$ac_ext >&5
3537
# Broken: fails on valid input.
3540
rm -f conftest.err conftest.$ac_ext
3542
# OK, works on sane cases. Now check whether non-existent headers
3543
# can be detected and how.
3544
cat >conftest.$ac_ext <<_ACEOF
3545
#line $LINENO "configure"
3548
cat confdefs.h >>conftest.$ac_ext
3549
cat >>conftest.$ac_ext <<_ACEOF
3550
/* end confdefs.h. */
3551
#include <ac_nonexistent.h>
3553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3554
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556
grep -v '^ *+' conftest.er1 >conftest.err
3558
cat conftest.err >&5
3559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560
(exit $ac_status); } >/dev/null; then
3561
if test -s conftest.err; then
3562
ac_cpp_err=$ac_c_preproc_warn_flag
3569
if test -z "$ac_cpp_err"; then
3570
# Broken: success on invalid input.
3573
echo "$as_me: failed program was:" >&5
3574
sed 's/^/| /' conftest.$ac_ext >&5
3576
# Passes both tests.
3580
rm -f conftest.err conftest.$ac_ext
3583
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584
rm -f conftest.err conftest.$ac_ext
3585
if $ac_preproc_ok; then
3597
echo "$as_me:$LINENO: result: $CPP" >&5
3598
echo "${ECHO_T}$CPP" >&6
3600
for ac_c_preproc_warn_flag in '' yes
3602
# Use a header file that comes with gcc, so configuring glibc
3603
# with a fresh cross-compiler works.
3604
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605
# <limits.h> exists even on freestanding compilers.
3606
# On the NeXT, cc -E runs the code through the compiler's parser,
3607
# not just through cpp. "Syntax error" is here to catch this case.
3608
cat >conftest.$ac_ext <<_ACEOF
3609
#line $LINENO "configure"
3612
cat confdefs.h >>conftest.$ac_ext
3613
cat >>conftest.$ac_ext <<_ACEOF
3614
/* end confdefs.h. */
3616
# include <limits.h>
3618
# include <assert.h>
3622
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3623
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3625
grep -v '^ *+' conftest.er1 >conftest.err
3627
cat conftest.err >&5
3628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
(exit $ac_status); } >/dev/null; then
3630
if test -s conftest.err; then
3631
ac_cpp_err=$ac_c_preproc_warn_flag
3638
if test -z "$ac_cpp_err"; then
3641
echo "$as_me: failed program was:" >&5
3642
sed 's/^/| /' conftest.$ac_ext >&5
3644
# Broken: fails on valid input.
3647
rm -f conftest.err conftest.$ac_ext
3649
# OK, works on sane cases. Now check whether non-existent headers
3650
# can be detected and how.
3651
cat >conftest.$ac_ext <<_ACEOF
3652
#line $LINENO "configure"
3655
cat confdefs.h >>conftest.$ac_ext
3656
cat >>conftest.$ac_ext <<_ACEOF
3657
/* end confdefs.h. */
3658
#include <ac_nonexistent.h>
3660
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3661
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3663
grep -v '^ *+' conftest.er1 >conftest.err
3665
cat conftest.err >&5
3666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667
(exit $ac_status); } >/dev/null; then
3668
if test -s conftest.err; then
3669
ac_cpp_err=$ac_c_preproc_warn_flag
3676
if test -z "$ac_cpp_err"; then
3677
# Broken: success on invalid input.
3680
echo "$as_me: failed program was:" >&5
3681
sed 's/^/| /' conftest.$ac_ext >&5
3683
# Passes both tests.
3687
rm -f conftest.err conftest.$ac_ext
3690
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3691
rm -f conftest.err conftest.$ac_ext
3692
if $ac_preproc_ok; then
3695
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3696
See \`config.log' for more details." >&5
3697
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3698
See \`config.log' for more details." >&2;}
3699
{ (exit 1); exit 1; }; }
3703
ac_cpp='$CPP $CPPFLAGS'
3704
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
echo "$as_me:$LINENO: checking for egrep" >&5
3710
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3711
if test "${ac_cv_prog_egrep+set}" = set; then
3712
echo $ECHO_N "(cached) $ECHO_C" >&6
3714
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3715
then ac_cv_prog_egrep='grep -E'
3716
else ac_cv_prog_egrep='egrep'
3719
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3720
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3721
EGREP=$ac_cv_prog_egrep
3724
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3725
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3726
if test "${ac_cv_header_stdc+set}" = set; then
3727
echo $ECHO_N "(cached) $ECHO_C" >&6
3729
cat >conftest.$ac_ext <<_ACEOF
3730
#line $LINENO "configure"
3733
cat confdefs.h >>conftest.$ac_ext
3734
cat >>conftest.$ac_ext <<_ACEOF
3735
/* end confdefs.h. */
3749
rm -f conftest.$ac_objext
3750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751
(eval $ac_compile) 2>&5
3753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754
(exit $ac_status); } &&
3755
{ ac_try='test -s conftest.$ac_objext'
3756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760
(exit $ac_status); }; }; then
3761
ac_cv_header_stdc=yes
3763
echo "$as_me: failed program was:" >&5
3764
sed 's/^/| /' conftest.$ac_ext >&5
3766
ac_cv_header_stdc=no
3768
rm -f conftest.$ac_objext conftest.$ac_ext
3770
if test $ac_cv_header_stdc = yes; then
3771
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3772
cat >conftest.$ac_ext <<_ACEOF
3773
#line $LINENO "configure"
3776
cat confdefs.h >>conftest.$ac_ext
3777
cat >>conftest.$ac_ext <<_ACEOF
3778
/* end confdefs.h. */
3782
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783
$EGREP "memchr" >/dev/null 2>&1; then
3786
ac_cv_header_stdc=no
3792
if test $ac_cv_header_stdc = yes; then
3793
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3794
cat >conftest.$ac_ext <<_ACEOF
3795
#line $LINENO "configure"
3798
cat confdefs.h >>conftest.$ac_ext
3799
cat >>conftest.$ac_ext <<_ACEOF
3800
/* end confdefs.h. */
3804
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805
$EGREP "free" >/dev/null 2>&1; then
3808
ac_cv_header_stdc=no
3814
if test $ac_cv_header_stdc = yes; then
3815
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816
if test "$cross_compiling" = yes; then
3819
cat >conftest.$ac_ext <<_ACEOF
3820
#line $LINENO "configure"
3823
cat confdefs.h >>conftest.$ac_ext
3824
cat >>conftest.$ac_ext <<_ACEOF
3825
/* end confdefs.h. */
3827
#if ((' ' & 0x0FF) == 0x020)
3828
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831
# define ISLOWER(c) \
3832
(('a' <= (c) && (c) <= 'i') \
3833
|| ('j' <= (c) && (c) <= 'r') \
3834
|| ('s' <= (c) && (c) <= 'z'))
3835
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3843
for (i = 0; i < 256; i++)
3844
if (XOR (islower (i), ISLOWER (i))
3845
|| toupper (i) != TOUPPER (i))
3850
rm -f conftest$ac_exeext
3851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852
(eval $ac_link) 2>&5
3854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3856
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860
(exit $ac_status); }; }; then
3863
echo "$as_me: program exited with status $ac_status" >&5
3864
echo "$as_me: failed program was:" >&5
3865
sed 's/^/| /' conftest.$ac_ext >&5
3868
ac_cv_header_stdc=no
3870
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3874
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3875
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3876
if test $ac_cv_header_stdc = yes; then
3878
cat >>confdefs.h <<\_ACEOF
3879
#define STDC_HEADERS 1
3884
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3894
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3895
inttypes.h stdint.h unistd.h
3897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898
echo "$as_me:$LINENO: checking for $ac_header" >&5
3899
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3900
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3901
echo $ECHO_N "(cached) $ECHO_C" >&6
3903
cat >conftest.$ac_ext <<_ACEOF
3904
#line $LINENO "configure"
3907
cat confdefs.h >>conftest.$ac_ext
3908
cat >>conftest.$ac_ext <<_ACEOF
3909
/* end confdefs.h. */
3910
$ac_includes_default
3912
#include <$ac_header>
3914
rm -f conftest.$ac_objext
3915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916
(eval $ac_compile) 2>&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); } &&
3920
{ ac_try='test -s conftest.$ac_objext'
3921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925
(exit $ac_status); }; }; then
3926
eval "$as_ac_Header=yes"
3928
echo "$as_me: failed program was:" >&5
3929
sed 's/^/| /' conftest.$ac_ext >&5
3931
eval "$as_ac_Header=no"
3933
rm -f conftest.$ac_objext conftest.$ac_ext
3935
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3936
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3937
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3938
cat >>confdefs.h <<_ACEOF
3939
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948
for ac_header in dlfcn.h
3950
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3951
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952
echo "$as_me:$LINENO: checking for $ac_header" >&5
3953
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3954
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3955
echo $ECHO_N "(cached) $ECHO_C" >&6
3957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3958
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3960
# Is the header compilable?
3961
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3962
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3963
cat >conftest.$ac_ext <<_ACEOF
3964
#line $LINENO "configure"
3967
cat confdefs.h >>conftest.$ac_ext
3968
cat >>conftest.$ac_ext <<_ACEOF
3969
/* end confdefs.h. */
3970
$ac_includes_default
3971
#include <$ac_header>
3973
rm -f conftest.$ac_objext
3974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975
(eval $ac_compile) 2>&5
3977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978
(exit $ac_status); } &&
3979
{ ac_try='test -s conftest.$ac_objext'
3980
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
(exit $ac_status); }; }; then
3985
ac_header_compiler=yes
3987
echo "$as_me: failed program was:" >&5
3988
sed 's/^/| /' conftest.$ac_ext >&5
3990
ac_header_compiler=no
3992
rm -f conftest.$ac_objext conftest.$ac_ext
3993
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3994
echo "${ECHO_T}$ac_header_compiler" >&6
3996
# Is the header present?
3997
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3998
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3999
cat >conftest.$ac_ext <<_ACEOF
4000
#line $LINENO "configure"
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4006
#include <$ac_header>
4008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4011
grep -v '^ *+' conftest.er1 >conftest.err
4013
cat conftest.err >&5
4014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015
(exit $ac_status); } >/dev/null; then
4016
if test -s conftest.err; then
4017
ac_cpp_err=$ac_c_preproc_warn_flag
4024
if test -z "$ac_cpp_err"; then
4025
ac_header_preproc=yes
4027
echo "$as_me: failed program was:" >&5
4028
sed 's/^/| /' conftest.$ac_ext >&5
4030
ac_header_preproc=no
4032
rm -f conftest.err conftest.$ac_ext
4033
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4034
echo "${ECHO_T}$ac_header_preproc" >&6
4036
# So? What about this header?
4037
case $ac_header_compiler:$ac_header_preproc in
4039
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4040
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4041
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4042
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4045
## ------------------------------------ ##
4046
## Report this to bug-autoconf@gnu.org. ##
4047
## ------------------------------------ ##
4050
sed "s/^/$as_me: WARNING: /" >&2
4053
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4054
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4055
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4056
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4057
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4058
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4061
## ------------------------------------ ##
4062
## Report this to bug-autoconf@gnu.org. ##
4063
## ------------------------------------ ##
4066
sed "s/^/$as_me: WARNING: /" >&2
4069
echo "$as_me:$LINENO: checking for $ac_header" >&5
4070
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072
echo $ECHO_N "(cached) $ECHO_C" >&6
4074
eval "$as_ac_Header=$ac_header_preproc"
4076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4080
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081
cat >>confdefs.h <<_ACEOF
4082
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094
# Only perform the check for file, if the check method requires it
4095
case $deplibs_check_method in
4097
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4098
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4099
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4100
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4101
echo $ECHO_N "(cached) $ECHO_C" >&6
4105
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4108
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4111
ac_save_MAGIC_CMD="$MAGIC_CMD"
4112
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4113
ac_dummy="/usr/bin:$PATH"
4114
for ac_dir in $ac_dummy; do
4115
test -z "$ac_dir" && ac_dir=.
4116
if test -f $ac_dir/${ac_tool_prefix}file; then
4117
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4118
if test -n "$file_magic_test_file"; then
4119
case $deplibs_check_method in
4121
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4122
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4123
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4124
egrep "$file_magic_regex" > /dev/null; then
4129
*** Warning: the command libtool uses to detect shared libraries,
4130
*** $file_magic_cmd, produces output that libtool cannot recognize.
4131
*** The result is that libtool may fail to recognize shared libraries
4132
*** as such. This will affect the creation of libtool libraries that
4133
*** depend on shared libraries, but programs linked with such libtool
4134
*** libraries will work regardless of this problem. Nevertheless, you
4135
*** may want to report the problem to your system manager and/or to
4136
*** bug-libtool@gnu.org
4146
MAGIC_CMD="$ac_save_MAGIC_CMD"
4151
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4152
if test -n "$MAGIC_CMD"; then
4153
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4154
echo "${ECHO_T}$MAGIC_CMD" >&6
4156
echo "$as_me:$LINENO: result: no" >&5
4157
echo "${ECHO_T}no" >&6
4160
if test -z "$lt_cv_path_MAGIC_CMD"; then
4161
if test -n "$ac_tool_prefix"; then
4162
echo "$as_me:$LINENO: checking for file" >&5
4163
echo $ECHO_N "checking for file... $ECHO_C" >&6
4164
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4165
echo $ECHO_N "(cached) $ECHO_C" >&6
4169
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4172
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4175
ac_save_MAGIC_CMD="$MAGIC_CMD"
4176
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4177
ac_dummy="/usr/bin:$PATH"
4178
for ac_dir in $ac_dummy; do
4179
test -z "$ac_dir" && ac_dir=.
4180
if test -f $ac_dir/file; then
4181
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4182
if test -n "$file_magic_test_file"; then
4183
case $deplibs_check_method in
4185
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4186
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4187
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4188
egrep "$file_magic_regex" > /dev/null; then
4193
*** Warning: the command libtool uses to detect shared libraries,
4194
*** $file_magic_cmd, produces output that libtool cannot recognize.
4195
*** The result is that libtool may fail to recognize shared libraries
4196
*** as such. This will affect the creation of libtool libraries that
4197
*** depend on shared libraries, but programs linked with such libtool
4198
*** libraries will work regardless of this problem. Nevertheless, you
4199
*** may want to report the problem to your system manager and/or to
4200
*** bug-libtool@gnu.org
4210
MAGIC_CMD="$ac_save_MAGIC_CMD"
4215
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4216
if test -n "$MAGIC_CMD"; then
4217
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4218
echo "${ECHO_T}$MAGIC_CMD" >&6
4220
echo "$as_me:$LINENO: result: no" >&5
4221
echo "${ECHO_T}no" >&6
4233
if test -n "$ac_tool_prefix"; then
4234
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236
echo "$as_me:$LINENO: checking for $ac_word" >&5
4237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238
if test "${ac_cv_prog_RANLIB+set}" = set; then
4239
echo $ECHO_N "(cached) $ECHO_C" >&6
4241
if test -n "$RANLIB"; then
4242
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248
test -z "$as_dir" && as_dir=.
4249
for ac_exec_ext in '' $ac_executable_extensions; do
4250
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260
RANLIB=$ac_cv_prog_RANLIB
4261
if test -n "$RANLIB"; then
4262
echo "$as_me:$LINENO: result: $RANLIB" >&5
4263
echo "${ECHO_T}$RANLIB" >&6
4265
echo "$as_me:$LINENO: result: no" >&5
4266
echo "${ECHO_T}no" >&6
4270
if test -z "$ac_cv_prog_RANLIB"; then
4271
ac_ct_RANLIB=$RANLIB
4272
# Extract the first word of "ranlib", so it can be a program name with args.
4273
set dummy ranlib; ac_word=$2
4274
echo "$as_me:$LINENO: checking for $ac_word" >&5
4275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4277
echo $ECHO_N "(cached) $ECHO_C" >&6
4279
if test -n "$ac_ct_RANLIB"; then
4280
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286
test -z "$as_dir" && as_dir=.
4287
for ac_exec_ext in '' $ac_executable_extensions; do
4288
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289
ac_cv_prog_ac_ct_RANLIB="ranlib"
4290
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4299
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4300
if test -n "$ac_ct_RANLIB"; then
4301
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4302
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304
echo "$as_me:$LINENO: result: no" >&5
4305
echo "${ECHO_T}no" >&6
4308
RANLIB=$ac_ct_RANLIB
4310
RANLIB="$ac_cv_prog_RANLIB"
4313
if test -n "$ac_tool_prefix"; then
4314
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4315
set dummy ${ac_tool_prefix}strip; ac_word=$2
4316
echo "$as_me:$LINENO: checking for $ac_word" >&5
4317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318
if test "${ac_cv_prog_STRIP+set}" = set; then
4319
echo $ECHO_N "(cached) $ECHO_C" >&6
4321
if test -n "$STRIP"; then
4322
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328
test -z "$as_dir" && as_dir=.
4329
for ac_exec_ext in '' $ac_executable_extensions; do
4330
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4332
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340
STRIP=$ac_cv_prog_STRIP
4341
if test -n "$STRIP"; then
4342
echo "$as_me:$LINENO: result: $STRIP" >&5
4343
echo "${ECHO_T}$STRIP" >&6
4345
echo "$as_me:$LINENO: result: no" >&5
4346
echo "${ECHO_T}no" >&6
4350
if test -z "$ac_cv_prog_STRIP"; then
4352
# Extract the first word of "strip", so it can be a program name with args.
4353
set dummy strip; ac_word=$2
4354
echo "$as_me:$LINENO: checking for $ac_word" >&5
4355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4357
echo $ECHO_N "(cached) $ECHO_C" >&6
4359
if test -n "$ac_ct_STRIP"; then
4360
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366
test -z "$as_dir" && as_dir=.
4367
for ac_exec_ext in '' $ac_executable_extensions; do
4368
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369
ac_cv_prog_ac_ct_STRIP="strip"
4370
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4379
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4380
if test -n "$ac_ct_STRIP"; then
4381
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4382
echo "${ECHO_T}$ac_ct_STRIP" >&6
4384
echo "$as_me:$LINENO: result: no" >&5
4385
echo "${ECHO_T}no" >&6
4390
STRIP="$ac_cv_prog_STRIP"
4397
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4398
if test "${enable_libtool_lock+set}" = set; then
4399
enableval="$enable_libtool_lock"
4402
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4404
# Some flags need to be propagated to the compiler or linker for good
4408
# Find out which ABI we are using.
4409
echo '#line 4409 "configure"' > conftest.$ac_ext
4410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411
(eval $ac_compile) 2>&5
4413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414
(exit $ac_status); }; then
4415
case `/usr/bin/file conftest.$ac_objext` in
4431
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4432
SAVE_CFLAGS="$CFLAGS"
4433
CFLAGS="$CFLAGS -belf"
4434
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4435
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4436
if test "${lt_cv_cc_needs_belf+set}" = set; then
4437
echo $ECHO_N "(cached) $ECHO_C" >&6
4442
ac_cpp='$CPP $CPPFLAGS'
4443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447
cat >conftest.$ac_ext <<_ACEOF
4448
#line $LINENO "configure"
4451
cat confdefs.h >>conftest.$ac_ext
4452
cat >>conftest.$ac_ext <<_ACEOF
4453
/* end confdefs.h. */
4463
rm -f conftest.$ac_objext conftest$ac_exeext
4464
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465
(eval $ac_link) 2>&5
4467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
(exit $ac_status); } &&
4469
{ ac_try='test -s conftest$ac_exeext'
4470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474
(exit $ac_status); }; }; then
4475
lt_cv_cc_needs_belf=yes
4477
echo "$as_me: failed program was:" >&5
4478
sed 's/^/| /' conftest.$ac_ext >&5
4480
lt_cv_cc_needs_belf=no
4482
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4484
ac_cpp='$CPP $CPPFLAGS'
4485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4491
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4492
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4493
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4494
CFLAGS="$SAVE_CFLAGS"
4501
# Sed substitution that helps us do robust quoting. It backslashifies
4502
# metacharacters that are still active within double-quoted strings.
4503
Xsed='sed -e s/^X//'
4504
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4506
# Same as above, but do not quote variable references.
4507
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4509
# Sed substitution to delay expansion of an escaped shell variable in a
4510
# double_quote_subst'ed string.
4511
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4517
default_ofile=libtool
4518
can_build_shared=yes
4520
# All known linkers require a `.a' archive for static linking (except M$VC,
4521
# which needs '.lib').
4523
ltmain="$ac_aux_dir/ltmain.sh"
4524
ofile="$default_ofile"
4525
with_gnu_ld="$lt_cv_prog_gnu_ld"
4526
need_locks="$enable_libtool_lock"
4529
old_CFLAGS="$CFLAGS"
4531
# Set sane defaults for various variables
4532
test -z "$AR" && AR=ar
4533
test -z "$AR_FLAGS" && AR_FLAGS=cru
4534
test -z "$AS" && AS=as
4535
test -z "$CC" && CC=cc
4536
test -z "$DLLTOOL" && DLLTOOL=dlltool
4537
test -z "$LD" && LD=ld
4538
test -z "$LN_S" && LN_S="ln -s"
4539
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4540
test -z "$NM" && NM=nm
4541
test -z "$OBJDUMP" && OBJDUMP=objdump
4542
test -z "$RANLIB" && RANLIB=:
4543
test -z "$STRIP" && STRIP=:
4544
test -z "$ac_objext" && ac_objext=o
4546
if test x"$host" != x"$build"; then
4547
ac_tool_prefix=${host_alias}-
4552
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4555
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4560
# AIX sometimes has problems with the GCC collect2 program. For some
4561
# reason, if we set the COLLECT_NAMES environment variable, the problems
4562
# vanish in a puff of smoke.
4563
if test "X${COLLECT_NAMES+set}" != Xset; then
4565
export COLLECT_NAMES
4570
# Determine commands to create old-style static archives.
4571
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4572
old_postinstall_cmds='chmod 644 $oldlib'
4573
old_postuninstall_cmds=
4575
if test -n "$RANLIB"; then
4578
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4581
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4584
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4587
# Allow CC to be a program name with arguments.
4591
echo "$as_me:$LINENO: checking for objdir" >&5
4592
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4593
rm -f .libs 2>/dev/null
4594
mkdir .libs 2>/dev/null
4595
if test -d .libs; then
4598
# MS-DOS does not allow filenames that begin with a dot.
4601
rmdir .libs 2>/dev/null
4602
echo "$as_me:$LINENO: result: $objdir" >&5
4603
echo "${ECHO_T}$objdir" >&6
4607
# Check whether --with-pic or --without-pic was given.
4608
if test "${with_pic+set}" = set; then
4614
test -z "$pic_mode" && pic_mode=default
4616
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4617
# in isolation, and that seeing it set (from the cache) indicates that
4618
# the associated values are set (in the cache) correctly too.
4619
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4620
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4621
if test "${lt_cv_prog_cc_pic+set}" = set; then
4622
echo $ECHO_N "(cached) $ECHO_C" >&6
4625
lt_cv_prog_cc_shlib=
4627
lt_cv_prog_cc_static=
4628
lt_cv_prog_cc_no_builtin=
4629
lt_cv_prog_cc_can_build_shared=$can_build_shared
4631
if test "$GCC" = yes; then
4632
lt_cv_prog_cc_wl='-Wl,'
4633
lt_cv_prog_cc_static='-static'
4637
# Below there is a dirty hack to force normal static linking with -ldl
4638
# The problem is because libdl dynamically linked with both libc and
4639
# libC (AIX C++ library), which obviously doesn't included in libraries
4640
# list by gcc. This cause undefined symbols with -static flags.
4641
# This hack allows C programs to be linked with "-static -ldl", but
4642
# not sure about C++ programs.
4643
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4646
# FIXME: we need at least 68020 code to build shared libraries, but
4647
# adding the `-m68020' flag to GCC prevents building anything better,
4649
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4651
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4652
# PIC is the default for these OSes.
4654
darwin* | rhapsody*)
4655
# PIC is the default on this platform
4656
# Common symbols not allowed in MH_DYLIB files
4657
lt_cv_prog_cc_pic='-fno-common'
4659
cygwin* | mingw* | pw32* | os2*)
4660
# This hack is so that the source file can tell whether it is being
4661
# built for inclusion in a dll (and should export symbols for example).
4662
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4665
if test -d /usr/nec; then
4666
lt_cv_prog_cc_pic=-Kconform_pic
4670
lt_cv_prog_cc_pic='-fPIC'
4674
# PORTME Check for PIC flags for the system compiler.
4676
aix3* | aix4* | aix5*)
4677
lt_cv_prog_cc_wl='-Wl,'
4678
# All AIX code is PIC.
4679
if test "$host_cpu" = ia64; then
4680
# AIX 5 now supports IA64 processor
4681
lt_cv_prog_cc_static='-Bstatic'
4683
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4687
hpux9* | hpux10* | hpux11*)
4688
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4689
lt_cv_prog_cc_wl='-Wl,'
4690
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4691
lt_cv_prog_cc_pic='+Z'
4694
irix5* | irix6* | nonstopux*)
4695
lt_cv_prog_cc_wl='-Wl,'
4696
lt_cv_prog_cc_static='-non_shared'
4697
# PIC (with -KPIC) is the default.
4700
cygwin* | mingw* | pw32* | os2*)
4701
# This hack is so that the source file can tell whether it is being
4702
# built for inclusion in a dll (and should export symbols for example).
4703
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4707
lt_cv_prog_cc_pic='-KPIC'
4708
lt_cv_prog_cc_static='-Bstatic'
4711
osf3* | osf4* | osf5*)
4712
# All OSF/1 code is PIC.
4713
lt_cv_prog_cc_wl='-Wl,'
4714
lt_cv_prog_cc_static='-non_shared'
4718
lt_cv_prog_cc_pic='-Kpic'
4719
lt_cv_prog_cc_static='-dn'
4720
lt_cv_prog_cc_shlib='-belf'
4724
lt_cv_prog_cc_pic='-KPIC'
4725
lt_cv_prog_cc_static='-Bstatic'
4726
lt_cv_prog_cc_wl='-Wl,'
4730
lt_cv_prog_cc_pic='-PIC'
4731
lt_cv_prog_cc_static='-Bstatic'
4732
lt_cv_prog_cc_wl='-Qoption ld '
4735
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4736
lt_cv_prog_cc_pic='-KPIC'
4737
lt_cv_prog_cc_static='-Bstatic'
4738
lt_cv_prog_cc_wl='-Wl,'
4742
lt_cv_prog_cc_pic='-pic'
4743
lt_cv_prog_cc_static='-Bstatic'
4747
if test -d /usr/nec ;then
4748
lt_cv_prog_cc_pic='-Kconform_pic'
4749
lt_cv_prog_cc_static='-Bstatic'
4754
lt_cv_prog_cc_can_build_shared=no
4761
if test -z "$lt_cv_prog_cc_pic"; then
4762
echo "$as_me:$LINENO: result: none" >&5
4763
echo "${ECHO_T}none" >&6
4765
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4766
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4768
# Check to make sure the pic_flag actually works.
4769
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4770
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4771
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4772
echo $ECHO_N "(cached) $ECHO_C" >&6
4774
save_CFLAGS="$CFLAGS"
4775
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4776
cat >conftest.$ac_ext <<_ACEOF
4777
#line $LINENO "configure"
4780
cat confdefs.h >>conftest.$ac_ext
4781
cat >>conftest.$ac_ext <<_ACEOF
4782
/* end confdefs.h. */
4792
rm -f conftest.$ac_objext
4793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794
(eval $ac_compile) 2>&5
4796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797
(exit $ac_status); } &&
4798
{ ac_try='test -s conftest.$ac_objext'
4799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); }; }; then
4805
hpux9* | hpux10* | hpux11*)
4806
# On HP-UX, both CC and GCC only warn that PIC is supported... then
4807
# they create non-PIC objects. So, if there were any warnings, we
4808
# assume that PIC is not supported.
4809
if test -s conftest.err; then
4810
lt_cv_prog_cc_pic_works=no
4812
lt_cv_prog_cc_pic_works=yes
4816
lt_cv_prog_cc_pic_works=yes
4821
echo "$as_me: failed program was:" >&5
4822
sed 's/^/| /' conftest.$ac_ext >&5
4824
lt_cv_prog_cc_pic_works=no
4827
rm -f conftest.$ac_objext conftest.$ac_ext
4828
CFLAGS="$save_CFLAGS"
4833
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4835
lt_cv_prog_cc_can_build_shared=no
4837
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4840
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4841
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4844
# Check for any special shared library compilation flags.
4845
if test -n "$lt_cv_prog_cc_shlib"; then
4846
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4847
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4848
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4850
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4851
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4852
lt_cv_prog_cc_can_build_shared=no
4856
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4857
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4858
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4859
echo $ECHO_N "(cached) $ECHO_C" >&6
4861
lt_cv_prog_cc_static_works=no
4862
save_LDFLAGS="$LDFLAGS"
4863
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4864
cat >conftest.$ac_ext <<_ACEOF
4865
#line $LINENO "configure"
4868
cat confdefs.h >>conftest.$ac_ext
4869
cat >>conftest.$ac_ext <<_ACEOF
4870
/* end confdefs.h. */
4880
rm -f conftest.$ac_objext conftest$ac_exeext
4881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4882
(eval $ac_link) 2>&5
4884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885
(exit $ac_status); } &&
4886
{ ac_try='test -s conftest$ac_exeext'
4887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891
(exit $ac_status); }; }; then
4892
lt_cv_prog_cc_static_works=yes
4894
echo "$as_me: failed program was:" >&5
4895
sed 's/^/| /' conftest.$ac_ext >&5
4898
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899
LDFLAGS="$save_LDFLAGS"
4904
# Belt *and* braces to stop my trousers falling down:
4905
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4906
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4907
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4909
pic_flag="$lt_cv_prog_cc_pic"
4910
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4911
wl="$lt_cv_prog_cc_wl"
4912
link_static_flag="$lt_cv_prog_cc_static"
4913
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4914
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4917
# Check to see if options -o and -c are simultaneously supported by compiler
4918
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4919
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4920
if test "${lt_cv_compiler_c_o+set}" = set; then
4921
echo $ECHO_N "(cached) $ECHO_C" >&6
4924
$rm -r conftest 2>/dev/null
4927
echo "int some_variable = 0;" > conftest.$ac_ext
4929
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4930
# that will create temporary files in the current directory regardless of
4931
# the output directory. Thus, making CWD read-only will cause this test
4932
# to fail, enabling locking or at least warning the user not to do parallel
4935
save_CFLAGS="$CFLAGS"
4936
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4938
if { (eval echo configure:4938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4939
# The compiler can only warn and ignore the option if not recognized
4940
# So say no if there are warnings
4941
if test -s out/conftest.err; then
4942
lt_cv_compiler_c_o=no
4944
lt_cv_compiler_c_o=yes
4947
# Append any errors to the config.log.
4948
cat out/conftest.err 1>&5
4949
lt_cv_compiler_c_o=no
4951
CFLAGS="$save_CFLAGS"
4957
$rm -r conftest 2>/dev/null
4961
compiler_c_o=$lt_cv_compiler_c_o
4962
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4963
echo "${ECHO_T}$compiler_c_o" >&6
4965
if test x"$compiler_c_o" = x"yes"; then
4966
# Check to see if we can write to a .lo
4967
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4968
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4969
if test "${lt_cv_compiler_o_lo+set}" = set; then
4970
echo $ECHO_N "(cached) $ECHO_C" >&6
4973
lt_cv_compiler_o_lo=no
4974
save_CFLAGS="$CFLAGS"
4975
CFLAGS="$CFLAGS -c -o conftest.lo"
4976
save_objext="$ac_objext"
4978
cat >conftest.$ac_ext <<_ACEOF
4979
#line $LINENO "configure"
4982
cat confdefs.h >>conftest.$ac_ext
4983
cat >>conftest.$ac_ext <<_ACEOF
4984
/* end confdefs.h. */
4989
int some_variable = 0;
4994
rm -f conftest.$ac_objext
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
(eval $ac_compile) 2>&5
4998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
(exit $ac_status); } &&
5000
{ ac_try='test -s conftest.$ac_objext'
5001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005
(exit $ac_status); }; }; then
5006
# The compiler can only warn and ignore the option if not recognized
5007
# So say no if there are warnings
5008
if test -s conftest.err; then
5009
lt_cv_compiler_o_lo=no
5011
lt_cv_compiler_o_lo=yes
5015
echo "$as_me: failed program was:" >&5
5016
sed 's/^/| /' conftest.$ac_ext >&5
5019
rm -f conftest.$ac_objext conftest.$ac_ext
5020
ac_objext="$save_objext"
5021
CFLAGS="$save_CFLAGS"
5025
compiler_o_lo=$lt_cv_compiler_o_lo
5026
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5027
echo "${ECHO_T}$compiler_o_lo" >&6
5032
# Check to see if we can do hard links to lock some files if needed
5033
hard_links="nottested"
5034
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5035
# do not overwrite the value of need_locks provided by the user
5036
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5037
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5040
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5042
ln conftest.a conftest.b 2>&5 || hard_links=no
5043
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5044
echo "$as_me:$LINENO: result: $hard_links" >&5
5045
echo "${ECHO_T}$hard_links" >&6
5046
if test "$hard_links" = no; then
5047
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5048
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5055
if test "$GCC" = yes; then
5056
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5057
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5058
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5059
echo "int some_variable = 0;" > conftest.$ac_ext
5060
save_CFLAGS="$CFLAGS"
5061
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5062
compiler_rtti_exceptions=no
5063
cat >conftest.$ac_ext <<_ACEOF
5064
#line $LINENO "configure"
5067
cat confdefs.h >>conftest.$ac_ext
5068
cat >>conftest.$ac_ext <<_ACEOF
5069
/* end confdefs.h. */
5074
int some_variable = 0;
5079
rm -f conftest.$ac_objext
5080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081
(eval $ac_compile) 2>&5
5083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084
(exit $ac_status); } &&
5085
{ ac_try='test -s conftest.$ac_objext'
5086
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090
(exit $ac_status); }; }; then
5091
# The compiler can only warn and ignore the option if not recognized
5092
# So say no if there are warnings
5093
if test -s conftest.err; then
5094
compiler_rtti_exceptions=no
5096
compiler_rtti_exceptions=yes
5100
echo "$as_me: failed program was:" >&5
5101
sed 's/^/| /' conftest.$ac_ext >&5
5104
rm -f conftest.$ac_objext conftest.$ac_ext
5105
CFLAGS="$save_CFLAGS"
5106
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5107
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5109
if test "$compiler_rtti_exceptions" = "yes"; then
5110
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5112
no_builtin_flag=' -fno-builtin'
5116
# See if the linker supports building shared libraries.
5117
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5118
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5120
allow_undefined_flag=
5122
need_lib_prefix=unknown
5123
need_version=unknown
5124
# when you set need_version to no, make sure it does not cause -set_version
5125
# flags to be left without arguments
5127
archive_expsym_cmds=
5128
old_archive_from_new_cmds=
5129
old_archive_from_expsyms_cmds=
5130
export_dynamic_flag_spec=
5131
whole_archive_flag_spec=
5132
thread_safe_flag_spec=
5133
hardcode_into_libs=no
5134
hardcode_libdir_flag_spec=
5135
hardcode_libdir_separator=
5138
hardcode_shlibpath_var=unsupported
5140
link_all_deplibs=unknown
5141
always_export_symbols=no
5142
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5143
# include_expsyms should be a list of space-separated symbols to be *always*
5144
# included in the symbol list
5146
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5147
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5148
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5149
# as well as any symbol that contains `d'.
5150
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5151
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5152
# platforms (ab)use it in PIC code, but their linkers get confused if
5153
# the symbol is explicitly referenced. Since portable code cannot
5154
# rely on this symbol name, it's probably fine to never include it in
5155
# preloaded symbol tables.
5156
extract_expsyms_cmds=
5159
cygwin* | mingw* | pw32*)
5160
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5161
# When not using gcc, we currently assume that we are using
5162
# Microsoft Visual C++.
5163
if test "$GCC" != yes; then
5173
if test "$with_gnu_ld" = yes; then
5174
# If archive_cmds runs LD, not CC, wlarc should be empty
5177
# See if GNU ld supports shared libraries.
5179
aix3* | aix4* | aix5*)
5180
# On AIX, the GNU linker is very broken
5181
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5185
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5186
*** to be unable to reliably create shared libraries on AIX.
5187
*** Therefore, libtool is disabling shared libraries support. If you
5188
*** really care for shared libraries, you may want to modify your PATH
5189
*** so that a non-GNU linker is found, and then restart.
5195
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)'
5196
hardcode_libdir_flag_spec='-L$libdir'
5197
hardcode_minus_L=yes
5199
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5200
# that the semantics of dynamic libraries on AmigaOS, at least up
5201
# to version 4, is to share data among multiple programs linked
5202
# with the same dynamic library. Since this doesn't match the
5203
# behavior of shared libraries on other platforms, we can use
5209
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5210
allow_undefined_flag=unsupported
5211
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5212
# support --undefined. This deserves some investigation. FIXME
5213
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5219
cygwin* | mingw* | pw32*)
5220
# hardcode_libdir_flag_spec is actually meaningless, as there is
5221
# no search path for DLLs.
5222
hardcode_libdir_flag_spec='-L$libdir'
5223
allow_undefined_flag=unsupported
5224
always_export_symbols=yes
5226
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5227
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5228
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5229
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5230
else $CC -o impgen impgen.c ; fi)~
5231
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5233
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5235
# cygwin and mingw dlls have different entry points and sets of symbols
5237
# FIXME: what about values for MSVC?
5238
dll_entry=__cygwin_dll_entry@12
5239
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5243
dll_entry=_DllMainCRTStartup@12
5244
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5248
# mingw and cygwin differ, and it's simplest to just exclude the union
5249
# of the two symbol sets.
5250
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5252
# recent cygwin and mingw systems supply a stub DllMain which the user
5253
# can override, but on older systems we have to supply one (in ltdll.c)
5254
if test "x$lt_cv_need_dllmain" = "xyes"; then
5255
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5256
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~
5257
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5263
# Extract the symbol export list from an `--export-all' def file,
5264
# then regenerate the def file from the symbol export list, so that
5265
# the compiled dll only exports the symbol export list.
5266
# Be careful not to strip the DATA tag left be newer dlltools.
5267
export_symbols_cmds="$ltdll_cmds"'
5268
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5269
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5271
# If the export-symbols file already is a .def file (1st line
5272
# is EXPORTS), use it as is.
5273
# If DATA tags from a recent dlltool are present, honour them!
5274
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5275
cp $export_symbols $output_objdir/$soname-def;
5277
echo EXPORTS > $output_objdir/$soname-def;
5279
cat $export_symbols | while read symbol; do
5282
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5283
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5284
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5286
_lt_hint=`expr 1 + \$_lt_hint`;
5290
$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~
5291
$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~
5292
$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~
5293
$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~
5294
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5298
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5299
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5302
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5303
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5308
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5312
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5313
*** create shared libraries on Solaris systems. Therefore, libtool
5314
*** is disabling shared libraries support. We urge you to upgrade GNU
5315
*** binutils to release 2.9.1 or newer. Another option is to modify
5316
*** your PATH or compiler configuration so that the native linker is
5317
*** used, and then restart.
5320
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5321
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5322
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5329
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5332
hardcode_shlibpath_var=no
5336
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5337
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5338
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5345
if test "$ld_shlibs" = yes; then
5346
runpath_var=LD_RUN_PATH
5347
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5348
export_dynamic_flag_spec='${wl}--export-dynamic'
5350
cygwin* | mingw* | pw32*)
5351
# dlltool doesn't understand --whole-archive et. al.
5352
whole_archive_flag_spec=
5355
# ancient GNU ld didn't support --whole-archive et. al.
5356
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5357
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5359
whole_archive_flag_spec=
5365
# PORTME fill in a description of your system's linker (not GNU ld)
5368
allow_undefined_flag=unsupported
5369
always_export_symbols=yes
5370
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'
5371
# Note: this linker hardcodes the directories in LIBPATH if there
5372
# are no directories specified by -L.
5373
hardcode_minus_L=yes
5374
if test "$GCC" = yes && test -z "$link_static_flag"; then
5375
# Neither direct hardcoding nor static linking is supported with a
5377
hardcode_direct=unsupported
5382
if test "$host_cpu" = ia64; then
5383
# On IA64, the linker does run time linking by default, so we don't
5384
# have to do anything special.
5385
aix_use_runtimelinking=no
5386
exp_sym_flag='-Bexport'
5389
aix_use_runtimelinking=no
5391
# Test if we are trying to use run time linking or normal
5392
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5393
# need to do runtime linking.
5394
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5395
for ld_flag in $LDFLAGS; do
5398
aix_use_runtimelinking=yes
5405
exp_sym_flag='-bexport'
5406
no_entry_flag='-bnoentry'
5409
# When large executables or shared objects are built, AIX ld can
5410
# have problems creating the table of contents. If linking a library
5411
# or program results in "error TOC overflow" add -mminimal-toc to
5412
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5413
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5417
hardcode_libdir_separator=':'
5418
if test "$GCC" = yes; then
5419
case $host_os in aix4.[012]|aix4.[012].*)
5420
collect2name=`${CC} -print-prog-name=collect2`
5421
if test -f "$collect2name" && \
5422
strings "$collect2name" | grep resolve_lib_name >/dev/null
5424
# We have reworked collect2
5427
# We have old collect2
5428
hardcode_direct=unsupported
5429
# It fails to find uninstalled libraries when the uninstalled
5430
# path is not listed in the libpath. Setting hardcode_minus_L
5431
# to unsupported forces relinking
5432
hardcode_minus_L=yes
5433
hardcode_libdir_flag_spec='-L$libdir'
5434
hardcode_libdir_separator=
5438
shared_flag='-shared'
5441
if test "$host_cpu" = ia64; then
5442
shared_flag='${wl}-G'
5444
if test "$aix_use_runtimelinking" = yes; then
5445
shared_flag='${wl}-G'
5447
shared_flag='${wl}-bM:SRE'
5452
# It seems that -bexpall can do strange things, so it is better to
5453
# generate a list of symbols to export.
5454
always_export_symbols=yes
5455
if test "$aix_use_runtimelinking" = yes; then
5456
# Warning - without using the other runtime loading flags (-brtl),
5457
# -berok will link without error, but may produce a broken library.
5458
allow_undefined_flag='-berok'
5459
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5460
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"
5462
if test "$host_cpu" = ia64; then
5463
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5464
allow_undefined_flag="-z nodefs"
5465
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"
5467
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5468
# Warning - without using the other run time loading flags,
5469
# -berok will link without error, but may produce a broken library.
5470
allow_undefined_flag='${wl}-berok'
5471
# This is a bit strange, but is similar to how AIX traditionally builds
5472
# it's shared libraries.
5473
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 $output_objdir/$libname$release.a $output_objdir/$soname'
5479
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)'
5480
hardcode_libdir_flag_spec='-L$libdir'
5481
hardcode_minus_L=yes
5482
# see comment about different semantics on the GNU ld section
5486
cygwin* | mingw* | pw32*)
5487
# When not using gcc, we currently assume that we are using
5488
# Microsoft Visual C++.
5489
# hardcode_libdir_flag_spec is actually meaningless, as there is
5490
# no search path for DLLs.
5491
hardcode_libdir_flag_spec=' '
5492
allow_undefined_flag=unsupported
5493
# Tell ltmain to make .lib files, not .a files.
5495
# FIXME: Setting linknames here is a bad hack.
5496
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5497
# The linker will automatically build a .lib file if we build a DLL.
5498
old_archive_from_new_cmds='true'
5499
# FIXME: Should let the user specify the lib program.
5500
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5501
fix_srcfile_path='`cygpath -w "$srcfile"`'
5504
darwin* | rhapsody*)
5506
rhapsody* | darwin1.[012])
5507
allow_undefined_flag='-undefined suppress'
5510
allow_undefined_flag='-flat_namespace -undefined suppress'
5513
# FIXME: Relying on posixy $() will cause problems for
5514
# cross-compilation, but unfortunately the echo tests do not
5515
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
5516
# `"' quotes if we put them in here... so don't!
5517
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5518
# We need to add '_' to the symbols in $export_symbols first
5519
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5521
hardcode_shlibpath_var=no
5522
whole_archive_flag_spec='-all_load $convenience'
5529
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5530
# support. Future versions do this automatically, but an explicit c++rt0.o
5531
# does not break anything, and helps significantly (at the cost of a little
5534
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5535
hardcode_libdir_flag_spec='-R$libdir'
5537
hardcode_shlibpath_var=no
5540
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5542
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5544
hardcode_minus_L=yes
5545
hardcode_shlibpath_var=no
5548
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5550
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5551
hardcode_libdir_flag_spec='-R$libdir'
5553
hardcode_shlibpath_var=no
5556
hpux9* | hpux10* | hpux11*)
5558
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' ;;
5559
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5561
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5562
hardcode_libdir_separator=:
5564
hardcode_minus_L=yes # Not in the search PATH, but as the default
5565
# location of the library.
5566
export_dynamic_flag_spec='${wl}-E'
5569
irix5* | irix6* | nonstopux*)
5570
if test "$GCC" = yes; then
5571
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'
5572
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5574
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'
5575
hardcode_libdir_flag_spec='-rpath $libdir'
5577
hardcode_libdir_separator=:
5578
link_all_deplibs=yes
5582
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5583
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5585
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5587
hardcode_libdir_flag_spec='-R$libdir'
5589
hardcode_shlibpath_var=no
5593
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5595
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5596
hardcode_libdir_separator=:
5597
hardcode_shlibpath_var=no
5602
hardcode_shlibpath_var=no
5603
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5604
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5605
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5606
export_dynamic_flag_spec='${wl}-E'
5609
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5610
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5611
hardcode_libdir_flag_spec='-R$libdir'
5614
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5615
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5622
hardcode_libdir_flag_spec='-L$libdir'
5623
hardcode_minus_L=yes
5624
allow_undefined_flag=unsupported
5625
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'
5626
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5630
if test "$GCC" = yes; then
5631
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5632
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'
5634
allow_undefined_flag=' -expect_unresolved \*'
5635
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'
5637
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5638
hardcode_libdir_separator=:
5641
osf4* | osf5*) # as osf3* with the addition of -msym flag
5642
if test "$GCC" = yes; then
5643
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5644
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'
5645
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5647
allow_undefined_flag=' -expect_unresolved \*'
5648
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'
5649
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5650
$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'
5652
#Both c and cxx compiler support -rpath directly
5653
hardcode_libdir_flag_spec='-rpath $libdir'
5655
hardcode_libdir_separator=:
5659
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5660
hardcode_shlibpath_var=no
5661
runpath_var=LD_RUN_PATH
5662
hardcode_runpath_var=yes
5663
export_dynamic_flag_spec='${wl}-Bexport'
5667
# gcc --version < 3.0 without binutils cannot create self contained
5668
# shared libraries reliably, requiring libgcc.a to resolve some of
5669
# the object symbols generated in some cases. Libraries that use
5670
# assert need libgcc.a to resolve __eprintf, for example. Linking
5671
# a copy of libgcc.a into every shared library to guarantee resolving
5672
# such symbols causes other problems: According to Tim Van Holder
5673
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5674
# (to the application) exception stack for one thing.
5675
no_undefined_flag=' -z defs'
5676
if test "$GCC" = yes; then
5677
case `$CC --version 2>/dev/null` in
5681
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5682
*** create self contained shared libraries on Solaris systems, without
5683
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5684
*** -no-undefined support, which will at least allow you to build shared
5685
*** libraries. However, you may find that when you link such libraries
5686
*** into an application without using GCC, you have to manually add
5687
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5688
*** upgrade to a newer version of GCC. Another option is to rebuild your
5689
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5696
# $CC -shared without GNU ld will not create a library from C++
5697
# object files and a static libstdc++, better avoid it by now
5698
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5699
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5700
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5701
hardcode_libdir_flag_spec='-R$libdir'
5702
hardcode_shlibpath_var=no
5704
solaris2.[0-5] | solaris2.[0-5].*) ;;
5705
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5706
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5708
link_all_deplibs=yes
5712
if test "x$host_vendor" = xsequent; then
5713
# Use $CC to link under sequent, because it throws in some extra .o
5714
# files that make .init and .fini sections work.
5715
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5717
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5719
hardcode_libdir_flag_spec='-L$libdir'
5721
hardcode_minus_L=yes
5722
hardcode_shlibpath_var=no
5726
case $host_vendor in
5728
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729
hardcode_direct=yes # is this really true???
5732
## LD is ld it makes a PLAMLIB
5733
## CC just makes a GrossModule.
5734
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5735
reload_cmds='$CC -r -o $output$reload_objs'
5739
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5740
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5743
runpath_var='LD_RUN_PATH'
5744
hardcode_shlibpath_var=no
5748
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5749
hardcode_shlibpath_var=no
5750
export_dynamic_flag_spec='-Bexport'
5754
no_undefined_flag=' -z text'
5755
# $CC -shared without GNU ld will not create a library from C++
5756
# object files and a static libstdc++, better avoid it by now
5757
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5758
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5759
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5760
hardcode_libdir_flag_spec=
5761
hardcode_shlibpath_var=no
5762
runpath_var='LD_RUN_PATH'
5766
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5767
hardcode_libdir_flag_spec='-L$libdir'
5768
hardcode_shlibpath_var=no
5772
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5773
hardcode_libdir_flag_spec='-L$libdir'
5774
hardcode_shlibpath_var=no
5778
if test -d /usr/nec; then
5779
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5780
hardcode_shlibpath_var=no
5781
runpath_var=LD_RUN_PATH
5782
hardcode_runpath_var=yes
5788
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5791
hardcode_shlibpath_var=no
5792
hardcode_runpath_var=yes
5793
runpath_var=LD_RUN_PATH
5796
sysv5uw7* | unixware7*)
5797
no_undefined_flag='${wl}-z ${wl}text'
5798
if test "$GCC" = yes; then
5799
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5801
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5803
runpath_var='LD_RUN_PATH'
5804
hardcode_shlibpath_var=no
5812
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5813
echo "${ECHO_T}$ld_shlibs" >&6
5814
test "$ld_shlibs" = no && can_build_shared=no
5816
# Check hardcoding attributes.
5817
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5818
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5820
if test -n "$hardcode_libdir_flag_spec" || \
5821
test -n "$runpath_var"; then
5823
# We can hardcode non-existant directories.
5824
if test "$hardcode_direct" != no &&
5825
# If the only mechanism to avoid hardcoding is shlibpath_var, we
5826
# have to relink, otherwise we might link with an installed library
5827
# when we should be linking with a yet-to-be-installed one
5828
## test "$hardcode_shlibpath_var" != no &&
5829
test "$hardcode_minus_L" != no; then
5830
# Linking always hardcodes the temporary library directory.
5831
hardcode_action=relink
5833
# We can link without hardcoding, and we can hardcode nonexisting dirs.
5834
hardcode_action=immediate
5837
# We cannot hardcode anything, or else we can only hardcode existing
5839
hardcode_action=unsupported
5841
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5842
echo "${ECHO_T}$hardcode_action" >&6
5846
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5847
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5848
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5849
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5850
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5851
echo "$as_me:$LINENO: result: yes" >&5
5852
echo "${ECHO_T}yes" >&6
5854
echo "$as_me:$LINENO: result: no" >&5
5855
echo "${ECHO_T}no" >&6
5858
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5859
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5861
# PORTME Fill in your ld.so characteristics
5862
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5863
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5865
libname_spec='lib$name'
5872
shlibpath_overrides_runpath=unknown
5874
dynamic_linker="$host_os ld.so"
5875
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5876
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5881
library_names_spec='${libname}${release}.so$versuffix $libname.a'
5882
shlibpath_var=LIBPATH
5884
# AIX has no versioning support, so we append a major version to the name.
5885
soname_spec='${libname}${release}.so$major'
5892
hardcode_into_libs=yes
5893
if test "$host_cpu" = ia64; then
5894
# AIX 5 supports IA64
5895
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5896
shlibpath_var=LD_LIBRARY_PATH
5898
# With GCC up to 2.95.x, collect2 would create an import file
5899
# for dependence libraries. The import file would start with
5900
# the line `#! .'. This would cause the generated library to
5901
# depend on `.', always an invalid library. This was fixed in
5902
# development snapshots of GCC prior to 3.0.
5904
aix4 | aix4.[01] | aix4.[01].*)
5905
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5907
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5914
# AIX (on Power*) has no versioning support, so currently we can
5915
# not hardcode correct soname into executable. Probably we can
5916
# add versioning support to collect2, so additional links can
5917
# be useful in future.
5918
if test "$aix_use_runtimelinking" = yes; then
5919
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
5920
# instead of lib<name>.a to let people know that these are not
5921
# typical AIX shared libraries.
5922
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5924
# We preserve .a as extension for shared libraries through AIX4.2
5925
# and later when we are not doing run time linking.
5926
library_names_spec='${libname}${release}.a $libname.a'
5927
soname_spec='${libname}${release}.so$major'
5929
shlibpath_var=LIBPATH
5931
hardcode_into_libs=yes
5935
library_names_spec='$libname.ixlibrary $libname.a'
5936
# Create ${libname}_ixlibrary.a entries in /sys/libs.
5937
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'
5941
library_names_spec='${libname}.so'
5942
dynamic_linker="$host_os ld.so"
5943
shlibpath_var=LIBRARY_PATH
5949
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5950
soname_spec='${libname}${release}.so$major'
5951
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5952
shlibpath_var=LD_LIBRARY_PATH
5953
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5954
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5955
export_dynamic_flag_spec=-rdynamic
5956
# the default ld.so.conf also contains /usr/contrib/lib and
5957
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5958
# libtool to hard-code these into programs
5961
cygwin* | mingw* | pw32*)
5962
version_type=windows
5965
case $GCC,$host_os in
5967
library_names_spec='$libname.dll.a'
5968
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5969
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5970
dldir=$destdir/`dirname \$dlpath`~
5971
test -d \$dldir || mkdir -p \$dldir~
5972
$install_prog .libs/$dlname \$dldir/$dlname'
5973
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5974
dlpath=$dir/\$dldll~
5978
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5979
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5982
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5985
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5988
dynamic_linker='Win32 ld.exe'
5989
# FIXME: first we should search . and the directory the executable is in
5993
darwin* | rhapsody*)
5994
dynamic_linker="$host_os dyld"
5998
# FIXME: Relying on posixy $() will cause problems for
5999
# cross-compilation, but unfortunately the echo tests do not
6000
# yet detect zsh echo's removal of \ escapes.
6001
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)'
6002
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6003
shlibpath_overrides_runpath=yes
6004
shlibpath_var=DYLD_LIBRARY_PATH
6015
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6016
soname_spec='${libname}${release}.so$major'
6017
shlibpath_var=LD_LIBRARY_PATH
6018
shlibpath_overrides_runpath=no
6019
hardcode_into_libs=yes
6020
dynamic_linker='GNU/FreeBSD ld.so'
6024
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6025
version_type=freebsd-$objformat
6026
case $version_type in
6028
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6033
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6037
shlibpath_var=LD_LIBRARY_PATH
6040
shlibpath_overrides_runpath=yes
6043
shlibpath_overrides_runpath=no
6044
hardcode_into_libs=yes
6053
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6054
soname_spec='${libname}${release}.so$major'
6055
shlibpath_var=LD_LIBRARY_PATH
6056
hardcode_into_libs=yes
6059
hpux9* | hpux10* | hpux11*)
6060
# Give a soname corresponding to the major version so that dld.sl refuses to
6061
# link against other versions.
6062
dynamic_linker="$host_os dld.sl"
6066
shlibpath_var=SHLIB_PATH
6067
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6068
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6069
soname_spec='${libname}${release}.sl$major'
6070
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6071
postinstall_cmds='chmod 555 $lib'
6074
irix5* | irix6* | nonstopux*)
6076
nonstopux*) version_type=nonstopux ;;
6077
*) version_type=irix ;;
6081
soname_spec='${libname}${release}.so$major'
6082
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6084
irix5* | nonstopux*)
6088
case $LD in # libtool.m4 will add one of these switches to LD
6089
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6090
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6091
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6092
*) libsuff= shlibsuff= libmagic=never-match;;
6096
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6097
shlibpath_overrides_runpath=no
6098
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6099
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6102
# No shared lib support for Linux oldld, aout, or coff.
6103
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6107
# This must be Linux ELF.
6112
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6113
soname_spec='${libname}${release}.so$major'
6114
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6115
shlibpath_var=LD_LIBRARY_PATH
6116
shlibpath_overrides_runpath=no
6117
# This implies no fast_install, which is unacceptable.
6118
# Some rework will be needed to allow for fast_install
6119
# before this can be enabled.
6120
hardcode_into_libs=yes
6122
# We used to test for /lib/ld.so.1 and disable shared libraries on
6123
# powerpc, because MkLinux only supported shared libraries with the
6124
# GNU dynamic linker. Since this was broken with cross compilers,
6125
# most powerpc-linux boxes support dynamic linking these days and
6126
# people can always --disable-shared, the test was removed, and we
6127
# assume the GNU/Linux dynamic linker is in use.
6128
dynamic_linker='GNU/Linux ld.so'
6135
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6136
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6137
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6138
dynamic_linker='NetBSD (a.out) ld.so'
6140
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6141
soname_spec='${libname}${release}.so$major'
6142
dynamic_linker='NetBSD ld.elf_so'
6144
shlibpath_var=LD_LIBRARY_PATH
6145
shlibpath_overrides_runpath=yes
6146
hardcode_into_libs=yes
6151
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152
shlibpath_var=LD_LIBRARY_PATH
6153
shlibpath_overrides_runpath=yes
6160
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6162
openbsd2.[89] | openbsd2.[89].*)
6163
shlibpath_overrides_runpath=no
6166
shlibpath_overrides_runpath=yes
6170
shlibpath_overrides_runpath=yes
6172
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6173
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6174
shlibpath_var=LD_LIBRARY_PATH
6178
libname_spec='$name'
6180
library_names_spec='$libname.dll $libname.a'
6181
dynamic_linker='OS/2 ld.exe'
6182
shlibpath_var=LIBPATH
6185
osf3* | osf4* | osf5*)
6189
soname_spec='${libname}${release}.so$major'
6190
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6191
shlibpath_var=LD_LIBRARY_PATH
6192
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6193
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6194
hardcode_into_libs=yes
6199
soname_spec='${libname}${release}.so$major'
6200
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6201
shlibpath_var=LD_LIBRARY_PATH
6208
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6209
soname_spec='${libname}${release}.so$major'
6210
shlibpath_var=LD_LIBRARY_PATH
6211
shlibpath_overrides_runpath=yes
6212
hardcode_into_libs=yes
6213
# ldd complains unless libraries are executable
6214
postinstall_cmds='chmod +x $lib'
6219
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6220
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6221
shlibpath_var=LD_LIBRARY_PATH
6222
shlibpath_overrides_runpath=yes
6223
if test "$with_gnu_ld" = yes; then
6229
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6231
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6232
soname_spec='${libname}${release}.so$major'
6233
shlibpath_var=LD_LIBRARY_PATH
6234
case $host_vendor in
6236
shlibpath_overrides_runpath=no
6238
export_dynamic_flag_spec='${wl}-Blargedynsym'
6239
runpath_var=LD_RUN_PATH
6247
shlibpath_overrides_runpath=no
6248
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6255
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6256
soname_spec='${libname}${release}.so$major'
6257
shlibpath_var=LD_LIBRARY_PATH
6264
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6265
soname_spec='${libname}${release}.so$major'
6266
shlibpath_var=LD_LIBRARY_PATH
6270
if test -d /usr/nec ;then
6272
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6273
soname_spec='$libname.so.$major'
6274
shlibpath_var=LD_LIBRARY_PATH
6282
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6283
echo "${ECHO_T}$dynamic_linker" >&6
6284
test "$dynamic_linker" = no && can_build_shared=no
6286
# Report the final consequences.
6287
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6288
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6289
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6290
echo "${ECHO_T}$can_build_shared" >&6
6292
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6293
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6294
test "$can_build_shared" = "no" && enable_shared=no
6296
# On AIX, shared libraries and static libraries use the same namespace, and
6297
# are all built from PIC.
6300
test "$enable_shared" = yes && enable_static=no
6301
if test -n "$RANLIB"; then
6302
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6303
postinstall_cmds='$RANLIB $lib'
6308
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6309
test "$enable_shared" = yes && enable_static=no
6313
echo "$as_me:$LINENO: result: $enable_shared" >&5
6314
echo "${ECHO_T}$enable_shared" >&6
6316
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6317
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6318
# Make sure either enable_shared or enable_static is yes.
6319
test "$enable_shared" = yes || enable_static=yes
6320
echo "$as_me:$LINENO: result: $enable_static" >&5
6321
echo "${ECHO_T}$enable_static" >&6
6323
if test "$hardcode_action" = relink; then
6324
# Fast installation is not supported
6325
enable_fast_install=no
6326
elif test "$shlibpath_overrides_runpath" = yes ||
6327
test "$enable_shared" = no; then
6328
# Fast installation is not necessary
6329
enable_fast_install=needless
6332
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6333
if test "$GCC" = yes; then
6334
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6337
if test "x$enable_dlopen" != xyes; then
6338
enable_dlopen=unknown
6339
enable_dlopen_self=unknown
6340
enable_dlopen_self_static=unknown
6347
lt_cv_dlopen="load_add_on"
6349
lt_cv_dlopen_self=yes
6352
cygwin* | mingw* | pw32*)
6353
lt_cv_dlopen="LoadLibrary"
6358
echo "$as_me:$LINENO: checking for shl_load" >&5
6359
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6360
if test "${ac_cv_func_shl_load+set}" = set; then
6361
echo $ECHO_N "(cached) $ECHO_C" >&6
6363
cat >conftest.$ac_ext <<_ACEOF
6364
#line $LINENO "configure"
6367
cat confdefs.h >>conftest.$ac_ext
6368
cat >>conftest.$ac_ext <<_ACEOF
6369
/* end confdefs.h. */
6370
/* System header to define __stub macros and hopefully few prototypes,
6371
which can conflict with char shl_load (); below.
6372
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6373
<limits.h> exists even on freestanding compilers. */
6375
# include <limits.h>
6377
# include <assert.h>
6379
/* Override any gcc2 internal prototype to avoid an error. */
6384
/* We use char because int might match the return type of a gcc2
6385
builtin and then its argument prototype would still apply. */
6387
/* The GNU C library defines this for functions which it implements
6388
to always fail with ENOSYS. Some functions are actually named
6389
something starting with __ and the normal name is an alias. */
6390
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6393
char (*f) () = shl_load;
6402
return f != shl_load;
6407
rm -f conftest.$ac_objext conftest$ac_exeext
6408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409
(eval $ac_link) 2>&5
6411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
(exit $ac_status); } &&
6413
{ ac_try='test -s conftest$ac_exeext'
6414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
(exit $ac_status); }; }; then
6419
ac_cv_func_shl_load=yes
6421
echo "$as_me: failed program was:" >&5
6422
sed 's/^/| /' conftest.$ac_ext >&5
6424
ac_cv_func_shl_load=no
6426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6429
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6430
if test $ac_cv_func_shl_load = yes; then
6431
lt_cv_dlopen="shl_load"
6433
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6434
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6435
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6436
echo $ECHO_N "(cached) $ECHO_C" >&6
6438
ac_check_lib_save_LIBS=$LIBS
6440
cat >conftest.$ac_ext <<_ACEOF
6441
#line $LINENO "configure"
6444
cat confdefs.h >>conftest.$ac_ext
6445
cat >>conftest.$ac_ext <<_ACEOF
6446
/* end confdefs.h. */
6448
/* Override any gcc2 internal prototype to avoid an error. */
6452
/* We use char because int might match the return type of a gcc2
6453
builtin and then its argument prototype would still apply. */
6463
rm -f conftest.$ac_objext conftest$ac_exeext
6464
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465
(eval $ac_link) 2>&5
6467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
(exit $ac_status); } &&
6469
{ ac_try='test -s conftest$ac_exeext'
6470
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
(exit $ac_status); }; }; then
6475
ac_cv_lib_dld_shl_load=yes
6477
echo "$as_me: failed program was:" >&5
6478
sed 's/^/| /' conftest.$ac_ext >&5
6480
ac_cv_lib_dld_shl_load=no
6482
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6483
LIBS=$ac_check_lib_save_LIBS
6485
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6486
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6487
if test $ac_cv_lib_dld_shl_load = yes; then
6488
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6490
echo "$as_me:$LINENO: checking for dlopen" >&5
6491
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6492
if test "${ac_cv_func_dlopen+set}" = set; then
6493
echo $ECHO_N "(cached) $ECHO_C" >&6
6495
cat >conftest.$ac_ext <<_ACEOF
6496
#line $LINENO "configure"
6499
cat confdefs.h >>conftest.$ac_ext
6500
cat >>conftest.$ac_ext <<_ACEOF
6501
/* end confdefs.h. */
6502
/* System header to define __stub macros and hopefully few prototypes,
6503
which can conflict with char dlopen (); below.
6504
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6505
<limits.h> exists even on freestanding compilers. */
6507
# include <limits.h>
6509
# include <assert.h>
6511
/* Override any gcc2 internal prototype to avoid an error. */
6516
/* We use char because int might match the return type of a gcc2
6517
builtin and then its argument prototype would still apply. */
6519
/* The GNU C library defines this for functions which it implements
6520
to always fail with ENOSYS. Some functions are actually named
6521
something starting with __ and the normal name is an alias. */
6522
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6525
char (*f) () = dlopen;
6539
rm -f conftest.$ac_objext conftest$ac_exeext
6540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541
(eval $ac_link) 2>&5
6543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544
(exit $ac_status); } &&
6545
{ ac_try='test -s conftest$ac_exeext'
6546
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550
(exit $ac_status); }; }; then
6551
ac_cv_func_dlopen=yes
6553
echo "$as_me: failed program was:" >&5
6554
sed 's/^/| /' conftest.$ac_ext >&5
6556
ac_cv_func_dlopen=no
6558
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6560
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6561
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6562
if test $ac_cv_func_dlopen = yes; then
6563
lt_cv_dlopen="dlopen"
6565
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6566
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6567
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6568
echo $ECHO_N "(cached) $ECHO_C" >&6
6570
ac_check_lib_save_LIBS=$LIBS
6572
cat >conftest.$ac_ext <<_ACEOF
6573
#line $LINENO "configure"
6576
cat confdefs.h >>conftest.$ac_ext
6577
cat >>conftest.$ac_ext <<_ACEOF
6578
/* end confdefs.h. */
6580
/* Override any gcc2 internal prototype to avoid an error. */
6584
/* We use char because int might match the return type of a gcc2
6585
builtin and then its argument prototype would still apply. */
6595
rm -f conftest.$ac_objext conftest$ac_exeext
6596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597
(eval $ac_link) 2>&5
6599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600
(exit $ac_status); } &&
6601
{ ac_try='test -s conftest$ac_exeext'
6602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606
(exit $ac_status); }; }; then
6607
ac_cv_lib_dl_dlopen=yes
6609
echo "$as_me: failed program was:" >&5
6610
sed 's/^/| /' conftest.$ac_ext >&5
6612
ac_cv_lib_dl_dlopen=no
6614
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6615
LIBS=$ac_check_lib_save_LIBS
6617
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6618
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6619
if test $ac_cv_lib_dl_dlopen = yes; then
6620
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6622
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6623
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6624
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6625
echo $ECHO_N "(cached) $ECHO_C" >&6
6627
ac_check_lib_save_LIBS=$LIBS
6629
cat >conftest.$ac_ext <<_ACEOF
6630
#line $LINENO "configure"
6633
cat confdefs.h >>conftest.$ac_ext
6634
cat >>conftest.$ac_ext <<_ACEOF
6635
/* end confdefs.h. */
6637
/* Override any gcc2 internal prototype to avoid an error. */
6641
/* We use char because int might match the return type of a gcc2
6642
builtin and then its argument prototype would still apply. */
6652
rm -f conftest.$ac_objext conftest$ac_exeext
6653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654
(eval $ac_link) 2>&5
6656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657
(exit $ac_status); } &&
6658
{ ac_try='test -s conftest$ac_exeext'
6659
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663
(exit $ac_status); }; }; then
6664
ac_cv_lib_svld_dlopen=yes
6666
echo "$as_me: failed program was:" >&5
6667
sed 's/^/| /' conftest.$ac_ext >&5
6669
ac_cv_lib_svld_dlopen=no
6671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672
LIBS=$ac_check_lib_save_LIBS
6674
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6675
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6676
if test $ac_cv_lib_svld_dlopen = yes; then
6677
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6679
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6680
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6681
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6682
echo $ECHO_N "(cached) $ECHO_C" >&6
6684
ac_check_lib_save_LIBS=$LIBS
6686
cat >conftest.$ac_ext <<_ACEOF
6687
#line $LINENO "configure"
6690
cat confdefs.h >>conftest.$ac_ext
6691
cat >>conftest.$ac_ext <<_ACEOF
6692
/* end confdefs.h. */
6694
/* Override any gcc2 internal prototype to avoid an error. */
6698
/* We use char because int might match the return type of a gcc2
6699
builtin and then its argument prototype would still apply. */
6709
rm -f conftest.$ac_objext conftest$ac_exeext
6710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711
(eval $ac_link) 2>&5
6713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714
(exit $ac_status); } &&
6715
{ ac_try='test -s conftest$ac_exeext'
6716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720
(exit $ac_status); }; }; then
6721
ac_cv_lib_dld_dld_link=yes
6723
echo "$as_me: failed program was:" >&5
6724
sed 's/^/| /' conftest.$ac_ext >&5
6726
ac_cv_lib_dld_dld_link=no
6728
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6729
LIBS=$ac_check_lib_save_LIBS
6731
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6732
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6733
if test $ac_cv_lib_dld_dld_link = yes; then
6734
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6755
if test "x$lt_cv_dlopen" != xno; then
6761
case $lt_cv_dlopen in
6763
save_CPPFLAGS="$CPPFLAGS"
6764
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6766
save_LDFLAGS="$LDFLAGS"
6767
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6770
LIBS="$lt_cv_dlopen_libs $LIBS"
6772
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6773
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6774
if test "${lt_cv_dlopen_self+set}" = set; then
6775
echo $ECHO_N "(cached) $ECHO_C" >&6
6777
if test "$cross_compiling" = yes; then :
6778
lt_cv_dlopen_self=cross
6780
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6781
lt_status=$lt_dlunknown
6782
cat > conftest.$ac_ext <<EOF
6783
#line 6783 "configure"
6784
#include "confdefs.h"
6793
# define LT_DLGLOBAL RTLD_GLOBAL
6796
# define LT_DLGLOBAL DL_GLOBAL
6798
# define LT_DLGLOBAL 0
6802
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6803
find out it does not work in some platform. */
6804
#ifndef LT_DLLAZY_OR_NOW
6806
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6809
# define LT_DLLAZY_OR_NOW DL_LAZY
6812
# define LT_DLLAZY_OR_NOW RTLD_NOW
6815
# define LT_DLLAZY_OR_NOW DL_NOW
6817
# define LT_DLLAZY_OR_NOW 0
6825
extern "C" void exit (int);
6828
void fnord() { int i=42;}
6831
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6832
int status = $lt_dlunknown;
6836
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6837
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6838
/* dlclose (self); */
6844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845
(eval $ac_link) 2>&5
6847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6849
(./conftest; exit; ) 2>/dev/null
6852
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6853
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6854
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6857
# compilation failed
6858
lt_cv_dlopen_self=no
6865
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6866
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6868
if test "x$lt_cv_dlopen_self" = xyes; then
6869
LDFLAGS="$LDFLAGS $link_static_flag"
6870
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6871
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6872
if test "${lt_cv_dlopen_self_static+set}" = set; then
6873
echo $ECHO_N "(cached) $ECHO_C" >&6
6875
if test "$cross_compiling" = yes; then :
6876
lt_cv_dlopen_self_static=cross
6878
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6879
lt_status=$lt_dlunknown
6880
cat > conftest.$ac_ext <<EOF
6881
#line 6881 "configure"
6882
#include "confdefs.h"
6891
# define LT_DLGLOBAL RTLD_GLOBAL
6894
# define LT_DLGLOBAL DL_GLOBAL
6896
# define LT_DLGLOBAL 0
6900
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6901
find out it does not work in some platform. */
6902
#ifndef LT_DLLAZY_OR_NOW
6904
# define LT_DLLAZY_OR_NOW RTLD_LAZY
6907
# define LT_DLLAZY_OR_NOW DL_LAZY
6910
# define LT_DLLAZY_OR_NOW RTLD_NOW
6913
# define LT_DLLAZY_OR_NOW DL_NOW
6915
# define LT_DLLAZY_OR_NOW 0
6923
extern "C" void exit (int);
6926
void fnord() { int i=42;}
6929
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6930
int status = $lt_dlunknown;
6934
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6935
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6936
/* dlclose (self); */
6942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943
(eval $ac_link) 2>&5
6945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6947
(./conftest; exit; ) 2>/dev/null
6950
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6951
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6952
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6955
# compilation failed
6956
lt_cv_dlopen_self_static=no
6963
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6964
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6967
CPPFLAGS="$save_CPPFLAGS"
6968
LDFLAGS="$save_LDFLAGS"
6973
case $lt_cv_dlopen_self in
6974
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6975
*) enable_dlopen_self=unknown ;;
6978
case $lt_cv_dlopen_self_static in
6979
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6980
*) enable_dlopen_self_static=unknown ;;
6985
if test "$enable_shared" = yes && test "$GCC" = yes; then
6986
case $archive_cmds in
6988
# FIXME: we may have to deal with multi-command sequences.
6991
# Test whether the compiler implicitly links with -lc since on some
6992
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6993
# to ld, don't add -lc before -lgcc.
6994
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6995
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6996
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6997
echo $ECHO_N "(cached) $ECHO_C" >&6
7000
echo 'static int dummy;' > conftest.$ac_ext
7002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003
(eval $ac_compile) 2>&5
7005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006
(exit $ac_status); }; then
7009
libobjs=conftest.$ac_objext
7011
wl=$lt_cv_prog_cc_wl
7017
save_allow_undefined_flag=$allow_undefined_flag
7018
allow_undefined_flag=
7019
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7020
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023
(exit $ac_status); }
7025
lt_cv_archive_cmds_need_lc=no
7027
lt_cv_archive_cmds_need_lc=yes
7029
allow_undefined_flag=$save_allow_undefined_flag
7031
cat conftest.err 1>&5
7035
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7036
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7040
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7042
# The second clause should only fire when bootstrapping the
7043
# libtool distribution, otherwise you forgot to ship ltmain.sh
7044
# with your package, and you will get complaints that there are
7045
# no rules to generate ltmain.sh.
7046
if test -f "$ltmain"; then
7049
# If there is no Makefile yet, we rely on a make rule to execute
7050
# `config.status --recheck' to rerun these tests and create the
7051
# libtool script then.
7052
test -f Makefile && make "$ltmain"
7055
if test -f "$ltmain"; then
7056
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7059
echo creating $ofile
7061
# Now quote all the things that may contain metacharacters while being
7062
# careful not to overquote the AC_SUBSTed values. We take copies of the
7063
# variables and quote the copies for generation of the libtool script.
7064
for var in echo old_CC old_CFLAGS SED \
7065
AR AR_FLAGS CC LD LN_S NM SHELL \
7066
reload_flag reload_cmds wl \
7067
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7068
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7069
library_names_spec soname_spec \
7070
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7071
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7072
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7073
old_striplib striplib file_magic_cmd export_symbols_cmds \
7074
deplibs_check_method allow_undefined_flag no_undefined_flag \
7075
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7076
global_symbol_to_c_name_address \
7077
hardcode_libdir_flag_spec hardcode_libdir_separator \
7078
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7079
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7082
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7083
old_postinstall_cmds | old_postuninstall_cmds | \
7084
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7085
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7086
postinstall_cmds | postuninstall_cmds | \
7087
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7088
# Double-quote double-evaled strings.
7089
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7092
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7097
cat <<__EOF__ > "${ofile}T"
7100
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7101
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7102
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7104
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7105
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7107
# This program is free software; you can redistribute it and/or modify
7108
# it under the terms of the GNU General Public License as published by
7109
# the Free Software Foundation; either version 2 of the License, or
7110
# (at your option) any later version.
7112
# This program is distributed in the hope that it will be useful, but
7113
# WITHOUT ANY WARRANTY; without even the implied warranty of
7114
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7115
# General Public License for more details.
7117
# You should have received a copy of the GNU General Public License
7118
# along with this program; if not, write to the Free Software
7119
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7121
# As a special exception to the GNU General Public License, if you
7122
# distribute this file as part of a program that contains a
7123
# configuration script generated by Autoconf, you may include it under
7124
# the same distribution terms that you use for the rest of that program.
7126
# A sed that does not truncate output.
7129
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7130
Xsed="${SED} -e s/^X//"
7132
# The HP-UX ksh and POSIX shell print the target directory to stdout
7134
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7136
# ### BEGIN LIBTOOL CONFIG
7138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7140
# Shell to use when invoking shell scripts.
7143
# Whether or not to build shared libraries.
7144
build_libtool_libs=$enable_shared
7146
# Whether or not to build static libraries.
7147
build_old_libs=$enable_static
7149
# Whether or not to add -lc for building shared libraries.
7150
build_libtool_need_lc=$need_lc
7152
# Whether or not to optimize for fast installation.
7153
fast_install=$enable_fast_install
7156
host_alias=$host_alias
7159
# An echo program that does not interpret backslashes.
7164
AR_FLAGS=$lt_AR_FLAGS
7166
# The default C compiler.
7169
# Is the compiler the GNU C compiler?
7172
# The linker used to build libraries.
7175
# Whether we need hard or soft links.
7178
# A BSD-compatible nm program.
7181
# A symbol stripping program
7184
# Used to examine libraries when file_magic_cmd begins "file"
7185
MAGIC_CMD=$MAGIC_CMD
7187
# Used on cygwin: DLL creation program.
7190
# Used on cygwin: object dumper.
7193
# Used on cygwin: assembler.
7196
# The name of the directory that contains temporary libtool files.
7199
# How to create reloadable object files.
7200
reload_flag=$lt_reload_flag
7201
reload_cmds=$lt_reload_cmds
7203
# How to pass a linker flag through the compiler.
7206
# Object file suffix (normally "o").
7209
# Old archive suffix (normally "a").
7212
# Executable file suffix (normally "").
7215
# Additional compiler flags for building library objects.
7216
pic_flag=$lt_pic_flag
7219
# Does compiler simultaneously support -c and -o options?
7220
compiler_c_o=$lt_compiler_c_o
7222
# Can we write directly to a .lo ?
7223
compiler_o_lo=$lt_compiler_o_lo
7225
# Must we lock files when doing compilation ?
7226
need_locks=$lt_need_locks
7228
# Do we need the lib prefix for modules?
7229
need_lib_prefix=$need_lib_prefix
7231
# Do we need a version for libraries?
7232
need_version=$need_version
7234
# Whether dlopen is supported.
7235
dlopen_support=$enable_dlopen
7237
# Whether dlopen of programs is supported.
7238
dlopen_self=$enable_dlopen_self
7240
# Whether dlopen of statically linked programs is supported.
7241
dlopen_self_static=$enable_dlopen_self_static
7243
# Compiler flag to prevent dynamic linking.
7244
link_static_flag=$lt_link_static_flag
7246
# Compiler flag to turn off builtin functions.
7247
no_builtin_flag=$lt_no_builtin_flag
7249
# Compiler flag to allow reflexive dlopens.
7250
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7252
# Compiler flag to generate shared objects directly from archives.
7253
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7255
# Compiler flag to generate thread-safe objects.
7256
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7258
# Library versioning type.
7259
version_type=$version_type
7261
# Format of library name prefix.
7262
libname_spec=$lt_libname_spec
7264
# List of archive names. First name is the real one, the rest are links.
7265
# The last name is the one that the linker finds with -lNAME.
7266
library_names_spec=$lt_library_names_spec
7268
# The coded name of the library, if different from the real name.
7269
soname_spec=$lt_soname_spec
7271
# Commands used to build and install an old-style archive.
7273
old_archive_cmds=$lt_old_archive_cmds
7274
old_postinstall_cmds=$lt_old_postinstall_cmds
7275
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7277
# Create an old-style archive from a shared archive.
7278
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7280
# Create a temporary old-style archive to link instead of a shared archive.
7281
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7283
# Commands used to build and install a shared archive.
7284
archive_cmds=$lt_archive_cmds
7285
archive_expsym_cmds=$lt_archive_expsym_cmds
7286
postinstall_cmds=$lt_postinstall_cmds
7287
postuninstall_cmds=$lt_postuninstall_cmds
7289
# Commands to strip libraries.
7290
old_striplib=$lt_old_striplib
7291
striplib=$lt_striplib
7293
# Method to check whether dependent libraries are shared objects.
7294
deplibs_check_method=$lt_deplibs_check_method
7296
# Command to use when deplibs_check_method == file_magic.
7297
file_magic_cmd=$lt_file_magic_cmd
7299
# Flag that allows shared libraries with undefined symbols to be built.
7300
allow_undefined_flag=$lt_allow_undefined_flag
7302
# Flag that forces no undefined symbols.
7303
no_undefined_flag=$lt_no_undefined_flag
7305
# Commands used to finish a libtool library installation in a directory.
7306
finish_cmds=$lt_finish_cmds
7308
# Same as above, but a single script fragment to be evaled but not shown.
7309
finish_eval=$lt_finish_eval
7311
# Take the output of nm and produce a listing of raw symbols and C names.
7312
global_symbol_pipe=$lt_global_symbol_pipe
7314
# Transform the output of nm in a proper C declaration
7315
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7317
# Transform the output of nm in a C name address pair
7318
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7320
# This is the shared library runtime path variable.
7321
runpath_var=$runpath_var
7323
# This is the shared library path variable.
7324
shlibpath_var=$shlibpath_var
7326
# Is shlibpath searched before the hard-coded library search path?
7327
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7329
# How to hardcode a shared library path into an executable.
7330
hardcode_action=$hardcode_action
7332
# Whether we should hardcode library paths into libraries.
7333
hardcode_into_libs=$hardcode_into_libs
7335
# Flag to hardcode \$libdir into a binary during linking.
7336
# This must work even if \$libdir does not exist.
7337
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7339
# Whether we need a single -rpath flag with a separated argument.
7340
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7342
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7344
hardcode_direct=$hardcode_direct
7346
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7348
hardcode_minus_L=$hardcode_minus_L
7350
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7351
# the resulting binary.
7352
hardcode_shlibpath_var=$hardcode_shlibpath_var
7354
# Variables whose values should be saved in libtool wrapper scripts and
7355
# restored at relink time.
7356
variables_saved_for_relink="$variables_saved_for_relink"
7358
# Whether libtool must link a program against all its dependency libraries.
7359
link_all_deplibs=$link_all_deplibs
7361
# Compile-time system search path for libraries
7362
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7364
# Run-time system search path for libraries
7365
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7367
# Fix the shell variable \$srcfile for the compiler.
7368
fix_srcfile_path="$fix_srcfile_path"
7370
# Set to yes if exported symbols are required.
7371
always_export_symbols=$always_export_symbols
7373
# The commands to list exported symbols.
7374
export_symbols_cmds=$lt_export_symbols_cmds
7376
# The commands to extract the exported symbol list from a shared archive.
7377
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7379
# Symbols that should not be listed in the preloaded symbols.
7380
exclude_expsyms=$lt_exclude_expsyms
7382
# Symbols that must always be exported.
7383
include_expsyms=$lt_include_expsyms
7385
# ### END LIBTOOL CONFIG
7391
cat <<\EOF >> "${ofile}T"
7393
# AIX sometimes has problems with the GCC collect2 program. For some
7394
# reason, if we set the COLLECT_NAMES environment variable, the problems
7395
# vanish in a puff of smoke.
7396
if test "X${COLLECT_NAMES+set}" != Xset; then
7398
export COLLECT_NAMES
7405
cygwin* | mingw* | pw32* | os2*)
7406
cat <<'EOF' >> "${ofile}T"
7407
# This is a source program that is used to create dlls on Windows
7408
# Don't remove nor modify the starting and closing comments
7409
# /* ltdll.c starts here */
7410
# #define WIN32_LEAN_AND_MEAN
7411
# #include <windows.h>
7412
# #undef WIN32_LEAN_AND_MEAN
7413
# #include <stdio.h>
7415
# #ifndef __CYGWIN__
7416
# # ifdef __CYGWIN32__
7417
# # define __CYGWIN__ __CYGWIN32__
7421
# #ifdef __cplusplus
7424
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7425
# #ifdef __cplusplus
7430
# #include <cygwin/cygwin_dll.h>
7431
# DECLARE_CYGWIN_DLL( DllMain );
7433
# HINSTANCE __hDllInstance_base;
7436
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7438
# __hDllInstance_base = hInst;
7441
# /* ltdll.c ends here */
7442
# This is a source program that is used to create import libraries
7443
# on Windows for dlls which lack them. Don't remove nor modify the
7444
# starting and closing comments
7445
# /* impgen.c starts here */
7446
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7448
# This file is part of GNU libtool.
7450
# This program is free software; you can redistribute it and/or modify
7451
# it under the terms of the GNU General Public License as published by
7452
# the Free Software Foundation; either version 2 of the License, or
7453
# (at your option) any later version.
7455
# This program is distributed in the hope that it will be useful,
7456
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7457
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7458
# GNU General Public License for more details.
7460
# You should have received a copy of the GNU General Public License
7461
# along with this program; if not, write to the Free Software
7462
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7465
# #include <stdio.h> /* for printf() */
7466
# #include <unistd.h> /* for open(), lseek(), read() */
7467
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7468
# #include <string.h> /* for strdup() */
7470
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7472
# #define O_BINARY 0
7475
# static unsigned int
7476
# pe_get16 (fd, offset)
7480
# unsigned char b[2];
7481
# lseek (fd, offset, SEEK_SET);
7483
# return b[0] + (b[1]<<8);
7486
# static unsigned int
7487
# pe_get32 (fd, offset)
7491
# unsigned char b[4];
7492
# lseek (fd, offset, SEEK_SET);
7494
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7497
# static unsigned int
7501
# unsigned char *b = ptr;
7502
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7511
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7512
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7513
# unsigned long name_rvas, nexp;
7514
# unsigned char *expdata, *erva;
7515
# char *filename, *dll_name;
7517
# filename = argv[1];
7519
# dll = open(filename, O_RDONLY|O_BINARY);
7523
# dll_name = filename;
7525
# for (i=0; filename[i]; i++)
7526
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7527
# dll_name = filename + i +1;
7529
# pe_header_offset = pe_get32 (dll, 0x3c);
7530
# opthdr_ofs = pe_header_offset + 4 + 20;
7531
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7533
# if (num_entries < 1) /* no exports */
7536
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7537
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7538
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7539
# secptr = (pe_header_offset + 4 + 20 +
7540
# pe_get16 (dll, pe_header_offset + 4 + 16));
7543
# for (i = 0; i < nsections; i++)
7546
# unsigned long secptr1 = secptr + 40 * i;
7547
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7548
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7549
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7550
# lseek(dll, secptr1, SEEK_SET);
7551
# read(dll, sname, 8);
7552
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7554
# expptr = fptr + (export_rva - vaddr);
7555
# if (export_rva + export_size > vaddr + vsize)
7556
# export_size = vsize - (export_rva - vaddr);
7561
# expdata = (unsigned char*)malloc(export_size);
7562
# lseek (dll, expptr, SEEK_SET);
7563
# read (dll, expdata, export_size);
7564
# erva = expdata - export_rva;
7566
# nexp = pe_as32 (expdata+24);
7567
# name_rvas = pe_as32 (expdata+32);
7569
# printf ("EXPORTS\n");
7570
# for (i = 0; i<nexp; i++)
7572
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7573
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7578
# /* impgen.c ends here */
7584
# We use sed instead of cat because bash on DJGPP gets confused if
7585
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7586
# text mode, it properly converts lines to CR/LF. This bash problem
7587
# is reportedly fixed, but why not run on old versions too?
7588
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7590
mv -f "${ofile}T" "$ofile" || \
7591
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7599
# This can be used to rebuild libtool when needed
7600
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7602
# Always use our own libtool.
7603
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7605
# Prevent multiple expansion
7609
# Checks for typedefs, structures, and compiler characteristics.
7612
# Checks for header files.
7613
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7614
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7615
if test "${ac_cv_header_stdc+set}" = set; then
7616
echo $ECHO_N "(cached) $ECHO_C" >&6
7618
cat >conftest.$ac_ext <<_ACEOF
7619
#line $LINENO "configure"
7622
cat confdefs.h >>conftest.$ac_ext
7623
cat >>conftest.$ac_ext <<_ACEOF
7624
/* end confdefs.h. */
7638
rm -f conftest.$ac_objext
7639
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640
(eval $ac_compile) 2>&5
7642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643
(exit $ac_status); } &&
7644
{ ac_try='test -s conftest.$ac_objext'
7645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649
(exit $ac_status); }; }; then
7650
ac_cv_header_stdc=yes
7652
echo "$as_me: failed program was:" >&5
7653
sed 's/^/| /' conftest.$ac_ext >&5
7655
ac_cv_header_stdc=no
7657
rm -f conftest.$ac_objext conftest.$ac_ext
7659
if test $ac_cv_header_stdc = yes; then
7660
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7661
cat >conftest.$ac_ext <<_ACEOF
7662
#line $LINENO "configure"
7665
cat confdefs.h >>conftest.$ac_ext
7666
cat >>conftest.$ac_ext <<_ACEOF
7667
/* end confdefs.h. */
7671
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7672
$EGREP "memchr" >/dev/null 2>&1; then
7675
ac_cv_header_stdc=no
7681
if test $ac_cv_header_stdc = yes; then
7682
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7683
cat >conftest.$ac_ext <<_ACEOF
7684
#line $LINENO "configure"
7687
cat confdefs.h >>conftest.$ac_ext
7688
cat >>conftest.$ac_ext <<_ACEOF
7689
/* end confdefs.h. */
7693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694
$EGREP "free" >/dev/null 2>&1; then
7697
ac_cv_header_stdc=no
7703
if test $ac_cv_header_stdc = yes; then
7704
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7705
if test "$cross_compiling" = yes; then
7708
cat >conftest.$ac_ext <<_ACEOF
7709
#line $LINENO "configure"
7712
cat confdefs.h >>conftest.$ac_ext
7713
cat >>conftest.$ac_ext <<_ACEOF
7714
/* end confdefs.h. */
7716
#if ((' ' & 0x0FF) == 0x020)
7717
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7718
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7720
# define ISLOWER(c) \
7721
(('a' <= (c) && (c) <= 'i') \
7722
|| ('j' <= (c) && (c) <= 'r') \
7723
|| ('s' <= (c) && (c) <= 'z'))
7724
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7727
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732
for (i = 0; i < 256; i++)
7733
if (XOR (islower (i), ISLOWER (i))
7734
|| toupper (i) != TOUPPER (i))
7739
rm -f conftest$ac_exeext
7740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741
(eval $ac_link) 2>&5
7743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749
(exit $ac_status); }; }; then
7752
echo "$as_me: program exited with status $ac_status" >&5
7753
echo "$as_me: failed program was:" >&5
7754
sed 's/^/| /' conftest.$ac_ext >&5
7757
ac_cv_header_stdc=no
7759
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7763
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7764
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7765
if test $ac_cv_header_stdc = yes; then
7767
cat >>confdefs.h <<\_ACEOF
7768
#define STDC_HEADERS 1
7773
if test "${ac_cv_header_stdlib_h+set}" = set; then
7774
echo "$as_me:$LINENO: checking for stdlib.h" >&5
7775
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7776
if test "${ac_cv_header_stdlib_h+set}" = set; then
7777
echo $ECHO_N "(cached) $ECHO_C" >&6
7779
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7780
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7782
# Is the header compilable?
7783
echo "$as_me:$LINENO: checking stdlib.h usability" >&5
7784
echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
7785
cat >conftest.$ac_ext <<_ACEOF
7786
#line $LINENO "configure"
7789
cat confdefs.h >>conftest.$ac_ext
7790
cat >>conftest.$ac_ext <<_ACEOF
7791
/* end confdefs.h. */
7792
$ac_includes_default
7795
rm -f conftest.$ac_objext
7796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797
(eval $ac_compile) 2>&5
7799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800
(exit $ac_status); } &&
7801
{ ac_try='test -s conftest.$ac_objext'
7802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806
(exit $ac_status); }; }; then
7807
ac_header_compiler=yes
7809
echo "$as_me: failed program was:" >&5
7810
sed 's/^/| /' conftest.$ac_ext >&5
7812
ac_header_compiler=no
7814
rm -f conftest.$ac_objext conftest.$ac_ext
7815
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7816
echo "${ECHO_T}$ac_header_compiler" >&6
7818
# Is the header present?
7819
echo "$as_me:$LINENO: checking stdlib.h presence" >&5
7820
echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
7821
cat >conftest.$ac_ext <<_ACEOF
7822
#line $LINENO "configure"
7825
cat confdefs.h >>conftest.$ac_ext
7826
cat >>conftest.$ac_ext <<_ACEOF
7827
/* end confdefs.h. */
7830
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7831
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7833
grep -v '^ *+' conftest.er1 >conftest.err
7835
cat conftest.err >&5
7836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837
(exit $ac_status); } >/dev/null; then
7838
if test -s conftest.err; then
7839
ac_cpp_err=$ac_c_preproc_warn_flag
7846
if test -z "$ac_cpp_err"; then
7847
ac_header_preproc=yes
7849
echo "$as_me: failed program was:" >&5
7850
sed 's/^/| /' conftest.$ac_ext >&5
7852
ac_header_preproc=no
7854
rm -f conftest.err conftest.$ac_ext
7855
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7856
echo "${ECHO_T}$ac_header_preproc" >&6
7858
# So? What about this header?
7859
case $ac_header_compiler:$ac_header_preproc in
7861
{ echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7862
echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7863
{ echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7864
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7867
## ------------------------------------ ##
7868
## Report this to bug-autoconf@gnu.org. ##
7869
## ------------------------------------ ##
7872
sed "s/^/$as_me: WARNING: /" >&2
7875
{ echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
7876
echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
7877
{ echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
7878
echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
7879
{ echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
7880
echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
7883
## ------------------------------------ ##
7884
## Report this to bug-autoconf@gnu.org. ##
7885
## ------------------------------------ ##
7888
sed "s/^/$as_me: WARNING: /" >&2
7891
echo "$as_me:$LINENO: checking for stdlib.h" >&5
7892
echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
7893
if test "${ac_cv_header_stdlib_h+set}" = set; then
7894
echo $ECHO_N "(cached) $ECHO_C" >&6
7896
ac_cv_header_stdlib_h=$ac_header_preproc
7898
echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
7899
echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
7905
# Checks for libraries.
7907
echo "$as_me:$LINENO: checking for X" >&5
7908
echo $ECHO_N "checking for X... $ECHO_C" >&6
7911
# Check whether --with-x or --without-x was given.
7912
if test "${with_x+set}" = set; then
7916
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7917
if test "x$with_x" = xno; then
7918
# The user explicitly disabled X.
7921
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7922
# Both variables are already set.
7925
if test "${ac_cv_have_x+set}" = set; then
7926
echo $ECHO_N "(cached) $ECHO_C" >&6
7928
# One or both of the vars are not set, and there is no cached value.
7929
ac_x_includes=no ac_x_libraries=no
7931
if mkdir conftest.dir; then
7933
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
7934
cat >Imakefile <<'_ACEOF'
7936
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7938
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7939
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7940
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7941
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7942
for ac_extension in a so sl; do
7943
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7944
test -f $ac_im_libdir/libX11.$ac_extension; then
7945
ac_im_usrlibdir=$ac_im_libdir; break
7948
# Screen out bogus values from the imake configuration. They are
7949
# bogus both because they are the default anyway, and because
7950
# using them would break gcc on systems where it needs fixed includes.
7951
case $ac_im_incroot in
7953
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7955
case $ac_im_usrlibdir in
7957
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7964
# Standard set of common directories for X headers.
7965
# Check X11 before X11Rn because it is often a symlink to the current release.
7977
/usr/local/X11/include
7978
/usr/local/X11R6/include
7979
/usr/local/X11R5/include
7980
/usr/local/X11R4/include
7982
/usr/local/include/X11
7983
/usr/local/include/X11R6
7984
/usr/local/include/X11R5
7985
/usr/local/include/X11R4
7989
/usr/XFree86/include/X11
7993
/usr/unsupported/include
7995
/usr/local/x11r5/include
7996
/usr/lpp/Xamples/include
7998
/usr/openwin/include
7999
/usr/openwin/share/include'
8001
if test "$ac_x_includes" = no; then
8002
# Guess where to find include files, by looking for Intrinsic.h.
8003
# First, try using that file with no special directory specified.
8004
cat >conftest.$ac_ext <<_ACEOF
8005
#line $LINENO "configure"
8008
cat confdefs.h >>conftest.$ac_ext
8009
cat >>conftest.$ac_ext <<_ACEOF
8010
/* end confdefs.h. */
8011
#include <X11/Intrinsic.h>
8013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8014
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016
grep -v '^ *+' conftest.er1 >conftest.err
8018
cat conftest.err >&5
8019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020
(exit $ac_status); } >/dev/null; then
8021
if test -s conftest.err; then
8022
ac_cpp_err=$ac_c_preproc_warn_flag
8029
if test -z "$ac_cpp_err"; then
8030
# We can compile using X headers with no special include directory.
8033
echo "$as_me: failed program was:" >&5
8034
sed 's/^/| /' conftest.$ac_ext >&5
8036
for ac_dir in $ac_x_header_dirs; do
8037
if test -r "$ac_dir/X11/Intrinsic.h"; then
8038
ac_x_includes=$ac_dir
8043
rm -f conftest.err conftest.$ac_ext
8044
fi # $ac_x_includes = no
8046
if test "$ac_x_libraries" = no; then
8047
# Check for the libraries.
8048
# See if we find them without any special options.
8049
# Don't add to $LIBS permanently.
8052
cat >conftest.$ac_ext <<_ACEOF
8053
#line $LINENO "configure"
8056
cat confdefs.h >>conftest.$ac_ext
8057
cat >>conftest.$ac_ext <<_ACEOF
8058
/* end confdefs.h. */
8059
#include <X11/Intrinsic.h>
8068
rm -f conftest.$ac_objext conftest$ac_exeext
8069
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8070
(eval $ac_link) 2>&5
8072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073
(exit $ac_status); } &&
8074
{ ac_try='test -s conftest$ac_exeext'
8075
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079
(exit $ac_status); }; }; then
8081
# We can link X programs with no special library path.
8084
echo "$as_me: failed program was:" >&5
8085
sed 's/^/| /' conftest.$ac_ext >&5
8088
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8090
# Don't even attempt the hair of trying to link an X program!
8091
for ac_extension in a so sl; do
8092
if test -r $ac_dir/libXt.$ac_extension; then
8093
ac_x_libraries=$ac_dir
8099
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8100
fi # $ac_x_libraries = no
8102
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8103
# Didn't find X anywhere. Cache the known absence of X.
8104
ac_cv_have_x="have_x=no"
8106
# Record where we found X for the cache.
8107
ac_cv_have_x="have_x=yes \
8108
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8113
eval "$ac_cv_have_x"
8116
if test "$have_x" != yes; then
8117
echo "$as_me:$LINENO: result: $have_x" >&5
8118
echo "${ECHO_T}$have_x" >&6
8121
# If each of the values was on the command line, it overrides each guess.
8122
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8123
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8124
# Update the cache value to reflect the command line values.
8125
ac_cv_have_x="have_x=yes \
8126
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8127
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8128
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8133
# Check whether --with-freetype-prefix or --without-freetype-prefix was given.
8134
if test "${with_freetype_prefix+set}" = set; then
8135
withval="$with_freetype_prefix"
8136
ft_config_prefix="$withval"
8141
# Check whether --with-freetype-exec-prefix or --without-freetype-exec-prefix was given.
8142
if test "${with_freetype_exec_prefix+set}" = set; then
8143
withval="$with_freetype_exec_prefix"
8144
ft_config_exec_prefix="$withval"
8146
ft_config_exec_prefix=""
8148
# Check whether --enable-freetypetest or --disable-freetypetest was given.
8149
if test "${enable_freetypetest+set}" = set; then
8150
enableval="$enable_freetypetest"
8156
if test x$ft_config_exec_prefix != x ; then
8157
ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
8158
if test x${FT2_CONFIG+set} != xset ; then
8159
FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
8162
if test x$ft_config_prefix != x ; then
8163
ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
8164
if test x${FT2_CONFIG+set} != xset ; then
8165
FT2_CONFIG=$ft_config_prefix/bin/freetype-config
8168
# Extract the first word of "freetype-config", so it can be a program name with args.
8169
set dummy freetype-config; ac_word=$2
8170
echo "$as_me:$LINENO: checking for $ac_word" >&5
8171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8172
if test "${ac_cv_path_FT2_CONFIG+set}" = set; then
8173
echo $ECHO_N "(cached) $ECHO_C" >&6
8177
ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
8180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184
test -z "$as_dir" && as_dir=.
8185
for ac_exec_ext in '' $ac_executable_extensions; do
8186
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187
ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8188
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194
test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no"
8198
FT2_CONFIG=$ac_cv_path_FT2_CONFIG
8200
if test -n "$FT2_CONFIG"; then
8201
echo "$as_me:$LINENO: result: $FT2_CONFIG" >&5
8202
echo "${ECHO_T}$FT2_CONFIG" >&6
8204
echo "$as_me:$LINENO: result: no" >&5
8205
echo "${ECHO_T}no" >&6
8209
min_ft_version=9.0.3
8210
echo "$as_me:$LINENO: checking for FreeType - version >= $min_ft_version" >&5
8211
echo $ECHO_N "checking for FreeType - version >= $min_ft_version... $ECHO_C" >&6
8213
if test "$FT2_CONFIG" = "no" ; then
8216
FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
8217
FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
8218
ft_config_version=`$FT2_CONFIG $ft_config_args --version`
8219
ft_config_major_version=`echo $ft_config_version | cut -d . -f 1`
8220
ft_config_minor_version=`echo $ft_config_version | cut -d . -f 2`
8221
ft_config_micro_version=`echo $ft_config_version | cut -d . -f 3`
8222
ft_min_major_version=`echo $min_ft_version | cut -d . -f 1`
8223
ft_min_minor_version=`echo $min_ft_version | cut -d . -f 2`
8224
ft_min_micro_version=`echo $min_ft_version | cut -d . -f 3`
8225
if test "x$enable_fttest" = "xyes" ; then
8226
ft_config_version=`expr $ft_config_major_version \* 10000 + $ft_config_minor_version \* 100 + $ft_config_micro_version`
8227
ft_min_version=`expr $ft_min_major_version \* 10000 + $ft_min_minor_version \* 100 + $ft_min_micro_version`
8228
if test $ft_config_version -lt $ft_min_version ; then
8229
{ { echo "$as_me:$LINENO: error: FreeType2 is required to compile this library" >&5
8230
echo "$as_me: error: FreeType2 is required to compile this library" >&2;}
8231
{ (exit 1); exit 1; }; }
8233
ac_save_CFLAGS="$CFLAGS"
8234
ac_save_LIBS="$LIBS"
8235
CFLAGS="$CFLAGS $FT2_CFLAGS"
8236
LIBS="$FT2_LIBS $LIBS"
8237
if test "$cross_compiling" = yes; then
8238
echo $ac_n "cross compiling; assumed OK... $ac_c"
8240
cat >conftest.$ac_ext <<_ACEOF
8241
#line $LINENO "configure"
8244
cat confdefs.h >>conftest.$ac_ext
8245
cat >>conftest.$ac_ext <<_ACEOF
8246
/* end confdefs.h. */
8248
#include <ft2build.h>
8249
#include FT_FREETYPE_H
8259
error = FT_Init_FreeType( &library );
8265
FT_Done_FreeType( library );
8271
rm -f conftest$ac_exeext
8272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273
(eval $ac_link) 2>&5
8275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8277
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281
(exit $ac_status); }; }; then
8284
echo "$as_me: program exited with status $ac_status" >&5
8285
echo "$as_me: failed program was:" >&5
8286
sed 's/^/| /' conftest.$ac_ext >&5
8291
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8293
CFLAGS="$ac_save_CFLAGS"
8294
LIBS="$ac_save_LIBS"
8295
fi # test $ft_config_version -lt $ft_min_version
8296
fi # test "x$enable_fttest" = "xyes"
8297
fi # test "$FT2_CONFIG" = "no"
8298
if test "x$no_ft" = x ; then
8299
echo "$as_me:$LINENO: result: yes" >&5
8300
echo "${ECHO_T}yes" >&6
8303
echo "$as_me:$LINENO: result: no" >&5
8304
echo "${ECHO_T}no" >&6
8305
if test "$FT2_CONFIG" = "no" ; then
8306
echo "*** The freetype-config script installed by FT2 could not be found"
8307
echo "*** If FT2 was installed in PREFIX, make sure PREFIX/bin is in"
8308
echo "*** your path, or set the FT2_CONFIG environment variable to the"
8309
echo "*** full path to freetype-config."
8311
echo "*** The FreeType test program failed to run. If your system uses"
8312
echo "*** shared libraries and they are installed outside the normal"
8313
echo "*** system library path, make sure the variable LD_LIBRARY_PATH"
8314
echo "*** (or whatever is appropiate for your system) is correctly set."
8318
{ { echo "$as_me:$LINENO: error: FreeType2 is required to compile this library" >&5
8319
echo "$as_me: error: FreeType2 is required to compile this library" >&2;}
8320
{ (exit 1); exit 1; }; }
8326
if test "$no_x" = yes; then
8327
# Not all programs may use this symbol, but it does not hurt to define it.
8329
cat >>confdefs.h <<\_ACEOF
8330
#define X_DISPLAY_MISSING 1
8333
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8335
if test -n "$x_includes"; then
8336
X_CFLAGS="$X_CFLAGS -I$x_includes"
8339
# It would also be nice to do this for all -L options, not just this one.
8340
if test -n "$x_libraries"; then
8341
X_LIBS="$X_LIBS -L$x_libraries"
8342
# For Solaris; some versions of Sun CC require a space after -R and
8343
# others require no space. Words are not sufficient . . . .
8344
case `(uname -sr) 2>/dev/null` in
8346
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8347
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8348
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8349
cat >conftest.$ac_ext <<_ACEOF
8350
#line $LINENO "configure"
8353
cat confdefs.h >>conftest.$ac_ext
8354
cat >>conftest.$ac_ext <<_ACEOF
8355
/* end confdefs.h. */
8365
rm -f conftest.$ac_objext conftest$ac_exeext
8366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367
(eval $ac_link) 2>&5
8369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370
(exit $ac_status); } &&
8371
{ ac_try='test -s conftest$ac_exeext'
8372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376
(exit $ac_status); }; }; then
8379
echo "$as_me: failed program was:" >&5
8380
sed 's/^/| /' conftest.$ac_ext >&5
8384
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385
if test $ac_R_nospace = yes; then
8386
echo "$as_me:$LINENO: result: no" >&5
8387
echo "${ECHO_T}no" >&6
8388
X_LIBS="$X_LIBS -R$x_libraries"
8390
LIBS="$ac_xsave_LIBS -R $x_libraries"
8391
cat >conftest.$ac_ext <<_ACEOF
8392
#line $LINENO "configure"
8395
cat confdefs.h >>conftest.$ac_ext
8396
cat >>conftest.$ac_ext <<_ACEOF
8397
/* end confdefs.h. */
8407
rm -f conftest.$ac_objext conftest$ac_exeext
8408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409
(eval $ac_link) 2>&5
8411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412
(exit $ac_status); } &&
8413
{ ac_try='test -s conftest$ac_exeext'
8414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418
(exit $ac_status); }; }; then
8421
echo "$as_me: failed program was:" >&5
8422
sed 's/^/| /' conftest.$ac_ext >&5
8426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427
if test $ac_R_space = yes; then
8428
echo "$as_me:$LINENO: result: yes" >&5
8429
echo "${ECHO_T}yes" >&6
8430
X_LIBS="$X_LIBS -R $x_libraries"
8432
echo "$as_me:$LINENO: result: neither works" >&5
8433
echo "${ECHO_T}neither works" >&6
8440
# Check for system-dependent libraries X programs must link with.
8441
# Do this before checking for the system-independent R6 libraries
8442
# (-lICE), since we may need -lsocket or whatever for X linking.
8444
if test "$ISC" = yes; then
8445
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8447
# Martyn Johnson says this is needed for Ultrix, if the X
8448
# libraries were built with DECnet support. And Karl Berry says
8449
# the Alpha needs dnet_stub (dnet does not exist).
8450
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8451
cat >conftest.$ac_ext <<_ACEOF
8452
#line $LINENO "configure"
8455
cat confdefs.h >>conftest.$ac_ext
8456
cat >>conftest.$ac_ext <<_ACEOF
8457
/* end confdefs.h. */
8459
/* Override any gcc2 internal prototype to avoid an error. */
8463
/* We use char because int might match the return type of a gcc2
8464
builtin and then its argument prototype would still apply. */
8465
char XOpenDisplay ();
8474
rm -f conftest.$ac_objext conftest$ac_exeext
8475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476
(eval $ac_link) 2>&5
8478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479
(exit $ac_status); } &&
8480
{ ac_try='test -s conftest$ac_exeext'
8481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485
(exit $ac_status); }; }; then
8488
echo "$as_me: failed program was:" >&5
8489
sed 's/^/| /' conftest.$ac_ext >&5
8491
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8492
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8493
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8494
echo $ECHO_N "(cached) $ECHO_C" >&6
8496
ac_check_lib_save_LIBS=$LIBS
8498
cat >conftest.$ac_ext <<_ACEOF
8499
#line $LINENO "configure"
8502
cat confdefs.h >>conftest.$ac_ext
8503
cat >>conftest.$ac_ext <<_ACEOF
8504
/* end confdefs.h. */
8506
/* Override any gcc2 internal prototype to avoid an error. */
8510
/* We use char because int might match the return type of a gcc2
8511
builtin and then its argument prototype would still apply. */
8521
rm -f conftest.$ac_objext conftest$ac_exeext
8522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523
(eval $ac_link) 2>&5
8525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526
(exit $ac_status); } &&
8527
{ ac_try='test -s conftest$ac_exeext'
8528
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532
(exit $ac_status); }; }; then
8533
ac_cv_lib_dnet_dnet_ntoa=yes
8535
echo "$as_me: failed program was:" >&5
8536
sed 's/^/| /' conftest.$ac_ext >&5
8538
ac_cv_lib_dnet_dnet_ntoa=no
8540
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8541
LIBS=$ac_check_lib_save_LIBS
8543
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8544
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8545
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8546
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8549
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8550
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8551
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8552
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8553
echo $ECHO_N "(cached) $ECHO_C" >&6
8555
ac_check_lib_save_LIBS=$LIBS
8556
LIBS="-ldnet_stub $LIBS"
8557
cat >conftest.$ac_ext <<_ACEOF
8558
#line $LINENO "configure"
8561
cat confdefs.h >>conftest.$ac_ext
8562
cat >>conftest.$ac_ext <<_ACEOF
8563
/* end confdefs.h. */
8565
/* Override any gcc2 internal prototype to avoid an error. */
8569
/* We use char because int might match the return type of a gcc2
8570
builtin and then its argument prototype would still apply. */
8580
rm -f conftest.$ac_objext conftest$ac_exeext
8581
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582
(eval $ac_link) 2>&5
8584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585
(exit $ac_status); } &&
8586
{ ac_try='test -s conftest$ac_exeext'
8587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591
(exit $ac_status); }; }; then
8592
ac_cv_lib_dnet_stub_dnet_ntoa=yes
8594
echo "$as_me: failed program was:" >&5
8595
sed 's/^/| /' conftest.$ac_ext >&5
8597
ac_cv_lib_dnet_stub_dnet_ntoa=no
8599
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8600
LIBS=$ac_check_lib_save_LIBS
8602
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8603
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8604
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8605
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8610
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8611
LIBS="$ac_xsave_LIBS"
8613
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8614
# to get the SysV transport functions.
8615
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8617
# The nsl library prevents programs from opening the X display
8618
# on Irix 5.2, according to T.E. Dickey.
8619
# The functions gethostbyname, getservbyname, and inet_addr are
8620
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8621
echo "$as_me:$LINENO: checking for gethostbyname" >&5
8622
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8623
if test "${ac_cv_func_gethostbyname+set}" = set; then
8624
echo $ECHO_N "(cached) $ECHO_C" >&6
8626
cat >conftest.$ac_ext <<_ACEOF
8627
#line $LINENO "configure"
8630
cat confdefs.h >>conftest.$ac_ext
8631
cat >>conftest.$ac_ext <<_ACEOF
8632
/* end confdefs.h. */
8633
/* System header to define __stub macros and hopefully few prototypes,
8634
which can conflict with char gethostbyname (); below.
8635
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8636
<limits.h> exists even on freestanding compilers. */
8638
# include <limits.h>
8640
# include <assert.h>
8642
/* Override any gcc2 internal prototype to avoid an error. */
8647
/* We use char because int might match the return type of a gcc2
8648
builtin and then its argument prototype would still apply. */
8649
char gethostbyname ();
8650
/* The GNU C library defines this for functions which it implements
8651
to always fail with ENOSYS. Some functions are actually named
8652
something starting with __ and the normal name is an alias. */
8653
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8656
char (*f) () = gethostbyname;
8665
return f != gethostbyname;
8670
rm -f conftest.$ac_objext conftest$ac_exeext
8671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672
(eval $ac_link) 2>&5
8674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675
(exit $ac_status); } &&
8676
{ ac_try='test -s conftest$ac_exeext'
8677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681
(exit $ac_status); }; }; then
8682
ac_cv_func_gethostbyname=yes
8684
echo "$as_me: failed program was:" >&5
8685
sed 's/^/| /' conftest.$ac_ext >&5
8687
ac_cv_func_gethostbyname=no
8689
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8692
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8694
if test $ac_cv_func_gethostbyname = no; then
8695
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8696
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8697
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8698
echo $ECHO_N "(cached) $ECHO_C" >&6
8700
ac_check_lib_save_LIBS=$LIBS
8702
cat >conftest.$ac_ext <<_ACEOF
8703
#line $LINENO "configure"
8706
cat confdefs.h >>conftest.$ac_ext
8707
cat >>conftest.$ac_ext <<_ACEOF
8708
/* end confdefs.h. */
8710
/* Override any gcc2 internal prototype to avoid an error. */
8714
/* We use char because int might match the return type of a gcc2
8715
builtin and then its argument prototype would still apply. */
8716
char gethostbyname ();
8725
rm -f conftest.$ac_objext conftest$ac_exeext
8726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727
(eval $ac_link) 2>&5
8729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730
(exit $ac_status); } &&
8731
{ ac_try='test -s conftest$ac_exeext'
8732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736
(exit $ac_status); }; }; then
8737
ac_cv_lib_nsl_gethostbyname=yes
8739
echo "$as_me: failed program was:" >&5
8740
sed 's/^/| /' conftest.$ac_ext >&5
8742
ac_cv_lib_nsl_gethostbyname=no
8744
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8745
LIBS=$ac_check_lib_save_LIBS
8747
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8748
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8749
if test $ac_cv_lib_nsl_gethostbyname = yes; then
8750
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8753
if test $ac_cv_lib_nsl_gethostbyname = no; then
8754
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8755
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8756
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8757
echo $ECHO_N "(cached) $ECHO_C" >&6
8759
ac_check_lib_save_LIBS=$LIBS
8761
cat >conftest.$ac_ext <<_ACEOF
8762
#line $LINENO "configure"
8765
cat confdefs.h >>conftest.$ac_ext
8766
cat >>conftest.$ac_ext <<_ACEOF
8767
/* end confdefs.h. */
8769
/* Override any gcc2 internal prototype to avoid an error. */
8773
/* We use char because int might match the return type of a gcc2
8774
builtin and then its argument prototype would still apply. */
8775
char gethostbyname ();
8784
rm -f conftest.$ac_objext conftest$ac_exeext
8785
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786
(eval $ac_link) 2>&5
8788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789
(exit $ac_status); } &&
8790
{ ac_try='test -s conftest$ac_exeext'
8791
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795
(exit $ac_status); }; }; then
8796
ac_cv_lib_bsd_gethostbyname=yes
8798
echo "$as_me: failed program was:" >&5
8799
sed 's/^/| /' conftest.$ac_ext >&5
8801
ac_cv_lib_bsd_gethostbyname=no
8803
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8804
LIBS=$ac_check_lib_save_LIBS
8806
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8807
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8808
if test $ac_cv_lib_bsd_gethostbyname = yes; then
8809
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8815
# lieder@skyler.mavd.honeywell.com says without -lsocket,
8816
# socket/setsockopt and other routines are undefined under SCO ODT
8817
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8818
# on later versions), says Simon Leinen: it contains gethostby*
8819
# variants that don't use the name server (or something). -lsocket
8820
# must be given before -lnsl if both are needed. We assume that
8821
# if connect needs -lnsl, so does gethostbyname.
8822
echo "$as_me:$LINENO: checking for connect" >&5
8823
echo $ECHO_N "checking for connect... $ECHO_C" >&6
8824
if test "${ac_cv_func_connect+set}" = set; then
8825
echo $ECHO_N "(cached) $ECHO_C" >&6
8827
cat >conftest.$ac_ext <<_ACEOF
8828
#line $LINENO "configure"
8831
cat confdefs.h >>conftest.$ac_ext
8832
cat >>conftest.$ac_ext <<_ACEOF
8833
/* end confdefs.h. */
8834
/* System header to define __stub macros and hopefully few prototypes,
8835
which can conflict with char connect (); below.
8836
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837
<limits.h> exists even on freestanding compilers. */
8839
# include <limits.h>
8841
# include <assert.h>
8843
/* Override any gcc2 internal prototype to avoid an error. */
8848
/* We use char because int might match the return type of a gcc2
8849
builtin and then its argument prototype would still apply. */
8851
/* The GNU C library defines this for functions which it implements
8852
to always fail with ENOSYS. Some functions are actually named
8853
something starting with __ and the normal name is an alias. */
8854
#if defined (__stub_connect) || defined (__stub___connect)
8857
char (*f) () = connect;
8866
return f != connect;
8871
rm -f conftest.$ac_objext conftest$ac_exeext
8872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873
(eval $ac_link) 2>&5
8875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876
(exit $ac_status); } &&
8877
{ ac_try='test -s conftest$ac_exeext'
8878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882
(exit $ac_status); }; }; then
8883
ac_cv_func_connect=yes
8885
echo "$as_me: failed program was:" >&5
8886
sed 's/^/| /' conftest.$ac_ext >&5
8888
ac_cv_func_connect=no
8890
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8892
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8893
echo "${ECHO_T}$ac_cv_func_connect" >&6
8895
if test $ac_cv_func_connect = no; then
8896
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8897
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8898
if test "${ac_cv_lib_socket_connect+set}" = set; then
8899
echo $ECHO_N "(cached) $ECHO_C" >&6
8901
ac_check_lib_save_LIBS=$LIBS
8902
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8903
cat >conftest.$ac_ext <<_ACEOF
8904
#line $LINENO "configure"
8907
cat confdefs.h >>conftest.$ac_ext
8908
cat >>conftest.$ac_ext <<_ACEOF
8909
/* end confdefs.h. */
8911
/* Override any gcc2 internal prototype to avoid an error. */
8915
/* We use char because int might match the return type of a gcc2
8916
builtin and then its argument prototype would still apply. */
8926
rm -f conftest.$ac_objext conftest$ac_exeext
8927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928
(eval $ac_link) 2>&5
8930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931
(exit $ac_status); } &&
8932
{ ac_try='test -s conftest$ac_exeext'
8933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937
(exit $ac_status); }; }; then
8938
ac_cv_lib_socket_connect=yes
8940
echo "$as_me: failed program was:" >&5
8941
sed 's/^/| /' conftest.$ac_ext >&5
8943
ac_cv_lib_socket_connect=no
8945
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8946
LIBS=$ac_check_lib_save_LIBS
8948
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8949
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8950
if test $ac_cv_lib_socket_connect = yes; then
8951
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8956
# Guillermo Gomez says -lposix is necessary on A/UX.
8957
echo "$as_me:$LINENO: checking for remove" >&5
8958
echo $ECHO_N "checking for remove... $ECHO_C" >&6
8959
if test "${ac_cv_func_remove+set}" = set; then
8960
echo $ECHO_N "(cached) $ECHO_C" >&6
8962
cat >conftest.$ac_ext <<_ACEOF
8963
#line $LINENO "configure"
8966
cat confdefs.h >>conftest.$ac_ext
8967
cat >>conftest.$ac_ext <<_ACEOF
8968
/* end confdefs.h. */
8969
/* System header to define __stub macros and hopefully few prototypes,
8970
which can conflict with char remove (); below.
8971
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8972
<limits.h> exists even on freestanding compilers. */
8974
# include <limits.h>
8976
# include <assert.h>
8978
/* Override any gcc2 internal prototype to avoid an error. */
8983
/* We use char because int might match the return type of a gcc2
8984
builtin and then its argument prototype would still apply. */
8986
/* The GNU C library defines this for functions which it implements
8987
to always fail with ENOSYS. Some functions are actually named
8988
something starting with __ and the normal name is an alias. */
8989
#if defined (__stub_remove) || defined (__stub___remove)
8992
char (*f) () = remove;
9006
rm -f conftest.$ac_objext conftest$ac_exeext
9007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9008
(eval $ac_link) 2>&5
9010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011
(exit $ac_status); } &&
9012
{ ac_try='test -s conftest$ac_exeext'
9013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017
(exit $ac_status); }; }; then
9018
ac_cv_func_remove=yes
9020
echo "$as_me: failed program was:" >&5
9021
sed 's/^/| /' conftest.$ac_ext >&5
9023
ac_cv_func_remove=no
9025
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9027
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9028
echo "${ECHO_T}$ac_cv_func_remove" >&6
9030
if test $ac_cv_func_remove = no; then
9031
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9032
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9033
if test "${ac_cv_lib_posix_remove+set}" = set; then
9034
echo $ECHO_N "(cached) $ECHO_C" >&6
9036
ac_check_lib_save_LIBS=$LIBS
9037
LIBS="-lposix $LIBS"
9038
cat >conftest.$ac_ext <<_ACEOF
9039
#line $LINENO "configure"
9042
cat confdefs.h >>conftest.$ac_ext
9043
cat >>conftest.$ac_ext <<_ACEOF
9044
/* end confdefs.h. */
9046
/* Override any gcc2 internal prototype to avoid an error. */
9050
/* We use char because int might match the return type of a gcc2
9051
builtin and then its argument prototype would still apply. */
9061
rm -f conftest.$ac_objext conftest$ac_exeext
9062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063
(eval $ac_link) 2>&5
9065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066
(exit $ac_status); } &&
9067
{ ac_try='test -s conftest$ac_exeext'
9068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072
(exit $ac_status); }; }; then
9073
ac_cv_lib_posix_remove=yes
9075
echo "$as_me: failed program was:" >&5
9076
sed 's/^/| /' conftest.$ac_ext >&5
9078
ac_cv_lib_posix_remove=no
9080
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081
LIBS=$ac_check_lib_save_LIBS
9083
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9084
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9085
if test $ac_cv_lib_posix_remove = yes; then
9086
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9091
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9092
echo "$as_me:$LINENO: checking for shmat" >&5
9093
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9094
if test "${ac_cv_func_shmat+set}" = set; then
9095
echo $ECHO_N "(cached) $ECHO_C" >&6
9097
cat >conftest.$ac_ext <<_ACEOF
9098
#line $LINENO "configure"
9101
cat confdefs.h >>conftest.$ac_ext
9102
cat >>conftest.$ac_ext <<_ACEOF
9103
/* end confdefs.h. */
9104
/* System header to define __stub macros and hopefully few prototypes,
9105
which can conflict with char shmat (); below.
9106
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9107
<limits.h> exists even on freestanding compilers. */
9109
# include <limits.h>
9111
# include <assert.h>
9113
/* Override any gcc2 internal prototype to avoid an error. */
9118
/* We use char because int might match the return type of a gcc2
9119
builtin and then its argument prototype would still apply. */
9121
/* The GNU C library defines this for functions which it implements
9122
to always fail with ENOSYS. Some functions are actually named
9123
something starting with __ and the normal name is an alias. */
9124
#if defined (__stub_shmat) || defined (__stub___shmat)
9127
char (*f) () = shmat;
9141
rm -f conftest.$ac_objext conftest$ac_exeext
9142
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143
(eval $ac_link) 2>&5
9145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146
(exit $ac_status); } &&
9147
{ ac_try='test -s conftest$ac_exeext'
9148
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152
(exit $ac_status); }; }; then
9153
ac_cv_func_shmat=yes
9155
echo "$as_me: failed program was:" >&5
9156
sed 's/^/| /' conftest.$ac_ext >&5
9160
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9162
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9163
echo "${ECHO_T}$ac_cv_func_shmat" >&6
9165
if test $ac_cv_func_shmat = no; then
9166
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9167
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9168
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9169
echo $ECHO_N "(cached) $ECHO_C" >&6
9171
ac_check_lib_save_LIBS=$LIBS
9173
cat >conftest.$ac_ext <<_ACEOF
9174
#line $LINENO "configure"
9177
cat confdefs.h >>conftest.$ac_ext
9178
cat >>conftest.$ac_ext <<_ACEOF
9179
/* end confdefs.h. */
9181
/* Override any gcc2 internal prototype to avoid an error. */
9185
/* We use char because int might match the return type of a gcc2
9186
builtin and then its argument prototype would still apply. */
9196
rm -f conftest.$ac_objext conftest$ac_exeext
9197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198
(eval $ac_link) 2>&5
9200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201
(exit $ac_status); } &&
9202
{ ac_try='test -s conftest$ac_exeext'
9203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207
(exit $ac_status); }; }; then
9208
ac_cv_lib_ipc_shmat=yes
9210
echo "$as_me: failed program was:" >&5
9211
sed 's/^/| /' conftest.$ac_ext >&5
9213
ac_cv_lib_ipc_shmat=no
9215
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9216
LIBS=$ac_check_lib_save_LIBS
9218
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9219
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9220
if test $ac_cv_lib_ipc_shmat = yes; then
9221
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9227
# Check for libraries that X11R6 Xt/Xaw programs need.
9228
ac_save_LDFLAGS=$LDFLAGS
9229
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9230
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9231
# check for ICE first), but we must link in the order -lSM -lICE or
9232
# we get undefined symbols. So assume we have SM if we have ICE.
9233
# These have to be linked with before -lX11, unlike the other
9234
# libraries we check for below, so use a different variable.
9235
# John Interrante, Karl Berry
9236
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9237
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9238
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9239
echo $ECHO_N "(cached) $ECHO_C" >&6
9241
ac_check_lib_save_LIBS=$LIBS
9242
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9243
cat >conftest.$ac_ext <<_ACEOF
9244
#line $LINENO "configure"
9247
cat confdefs.h >>conftest.$ac_ext
9248
cat >>conftest.$ac_ext <<_ACEOF
9249
/* end confdefs.h. */
9251
/* Override any gcc2 internal prototype to avoid an error. */
9255
/* We use char because int might match the return type of a gcc2
9256
builtin and then its argument prototype would still apply. */
9257
char IceConnectionNumber ();
9261
IceConnectionNumber ();
9266
rm -f conftest.$ac_objext conftest$ac_exeext
9267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268
(eval $ac_link) 2>&5
9270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
(exit $ac_status); } &&
9272
{ ac_try='test -s conftest$ac_exeext'
9273
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277
(exit $ac_status); }; }; then
9278
ac_cv_lib_ICE_IceConnectionNumber=yes
9280
echo "$as_me: failed program was:" >&5
9281
sed 's/^/| /' conftest.$ac_ext >&5
9283
ac_cv_lib_ICE_IceConnectionNumber=no
9285
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9286
LIBS=$ac_check_lib_save_LIBS
9288
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9289
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9290
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9291
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9294
LDFLAGS=$ac_save_LDFLAGS
9304
# Check whether --with---with-gl-inc or --without---with-gl-inc was given.
9305
if test "${with___with_gl_inc+set}" = set; then
9306
withval="$with___with_gl_inc"
9310
# Check whether --with---with-gl-lib or --without---with-gl-lib was given.
9311
if test "${with___with_gl_lib+set}" = set; then
9312
withval="$with___with_gl_lib"
9319
ac_cpp='$CPP $CPPFLAGS'
9320
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9321
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9322
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9325
GL_SAVE_CPPFLAGS="$CPPFLAGS"
9326
GL_SAVE_LIBS="$LIBS"
9328
if test "x$no_x" != xyes ; then
9329
GL_CFLAGS="$X_CFLAGS"
9330
GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu $X_EXTRA_LIBS"
9333
if test "x$with_gl_inc" != "xnone" ; then
9334
if test -d "$with_gl_inc" ; then
9335
GL_CFLAGS="-I$with_gl_inc"
9337
GL_CFLAGS="$with_gl_inc"
9343
CPPFLAGS="$GL_CFLAGS"
9344
if test "${ac_cv_header_GL_gl_h+set}" = set; then
9345
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9346
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
9347
if test "${ac_cv_header_GL_gl_h+set}" = set; then
9348
echo $ECHO_N "(cached) $ECHO_C" >&6
9350
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9351
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
9353
# Is the header compilable?
9354
echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
9355
echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
9356
cat >conftest.$ac_ext <<_ACEOF
9357
#line $LINENO "configure"
9360
cat confdefs.h >>conftest.$ac_ext
9361
cat >>conftest.$ac_ext <<_ACEOF
9362
/* end confdefs.h. */
9363
$ac_includes_default
9366
rm -f conftest.$ac_objext
9367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368
(eval $ac_compile) 2>&5
9370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371
(exit $ac_status); } &&
9372
{ ac_try='test -s conftest.$ac_objext'
9373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377
(exit $ac_status); }; }; then
9378
ac_header_compiler=yes
9380
echo "$as_me: failed program was:" >&5
9381
sed 's/^/| /' conftest.$ac_ext >&5
9383
ac_header_compiler=no
9385
rm -f conftest.$ac_objext conftest.$ac_ext
9386
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9387
echo "${ECHO_T}$ac_header_compiler" >&6
9389
# Is the header present?
9390
echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
9391
echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
9392
cat >conftest.$ac_ext <<_ACEOF
9393
#line $LINENO "configure"
9396
cat confdefs.h >>conftest.$ac_ext
9397
cat >>conftest.$ac_ext <<_ACEOF
9398
/* end confdefs.h. */
9401
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9404
grep -v '^ *+' conftest.er1 >conftest.err
9406
cat conftest.err >&5
9407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408
(exit $ac_status); } >/dev/null; then
9409
if test -s conftest.err; then
9410
ac_cpp_err=$ac_c_preproc_warn_flag
9417
if test -z "$ac_cpp_err"; then
9418
ac_header_preproc=yes
9420
echo "$as_me: failed program was:" >&5
9421
sed 's/^/| /' conftest.$ac_ext >&5
9423
ac_header_preproc=no
9425
rm -f conftest.err conftest.$ac_ext
9426
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9427
echo "${ECHO_T}$ac_header_preproc" >&6
9429
# So? What about this header?
9430
case $ac_header_compiler:$ac_header_preproc in
9432
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9433
echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9434
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9435
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9438
## ------------------------------------ ##
9439
## Report this to bug-autoconf@gnu.org. ##
9440
## ------------------------------------ ##
9443
sed "s/^/$as_me: WARNING: /" >&2
9446
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
9447
echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
9448
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
9449
echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
9450
{ echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
9451
echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
9454
## ------------------------------------ ##
9455
## Report this to bug-autoconf@gnu.org. ##
9456
## ------------------------------------ ##
9459
sed "s/^/$as_me: WARNING: /" >&2
9462
echo "$as_me:$LINENO: checking for GL/gl.h" >&5
9463
echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
9464
if test "${ac_cv_header_GL_gl_h+set}" = set; then
9465
echo $ECHO_N "(cached) $ECHO_C" >&6
9467
ac_cv_header_GL_gl_h=$ac_header_preproc
9469
echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
9470
echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
9473
if test $ac_cv_header_GL_gl_h = yes; then
9476
{ { echo "$as_me:$LINENO: error: GL/gl.h is needed" >&5
9477
echo "$as_me: error: GL/gl.h is needed" >&2;}
9478
{ (exit please specify its location with --with-gl-inc. If this still fails); exit please specify its location with --with-gl-inc. If this still fails; }; }
9486
CPPFLAGS="$GL_SAVE_CPPFLAGS"
9487
LIBS="$GL_SAVE_LIBS"
9489
ac_cpp='$CPP $CPPFLAGS'
9490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9498
# Check whether --with---with-glut-inc or --without---with-glut-inc was given.
9499
if test "${with___with_glut_inc+set}" = set; then
9500
withval="$with___with_glut_inc"
9504
# Check whether --with---with-glut-lib or --without---with-glut-lib was given.
9505
if test "${with___with_glut_lib+set}" = set; then
9506
withval="$with___with_glut_lib"
9513
ac_cpp='$CPP $CPPFLAGS'
9514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9519
GLUT_SAVE_CPPFLAGS="$CPPFLAGS"
9520
GLUT_SAVE_LIBS="$LIBS"
9522
if test "x$no_x" != xyes ; then
9523
GLUT_CFLAGS="$X_CFLAGS"
9524
GLUT_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu $X_EXTRA_LIBS"
9527
if test "x$with_glut_inc" != "xnone" ; then
9528
if test -d "$with_glut_inc" ; then
9529
GLUT_CFLAGS="-I$with_glut_inc"
9531
GLUT_CFLAGS="$with_glut_inc"
9537
CPPFLAGS="$GLUT_CFLAGS"
9538
if test "${ac_cv_header_GL_glut_h+set}" = set; then
9539
echo "$as_me:$LINENO: checking for GL/glut.h" >&5
9540
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
9541
if test "${ac_cv_header_GL_glut_h+set}" = set; then
9542
echo $ECHO_N "(cached) $ECHO_C" >&6
9544
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
9545
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
9547
# Is the header compilable?
9548
echo "$as_me:$LINENO: checking GL/glut.h usability" >&5
9549
echo $ECHO_N "checking GL/glut.h usability... $ECHO_C" >&6
9550
cat >conftest.$ac_ext <<_ACEOF
9551
#line $LINENO "configure"
9554
cat confdefs.h >>conftest.$ac_ext
9555
cat >>conftest.$ac_ext <<_ACEOF
9556
/* end confdefs.h. */
9557
$ac_includes_default
9558
#include <GL/glut.h>
9560
rm -f conftest.$ac_objext
9561
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9562
(eval $ac_compile) 2>&5
9564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565
(exit $ac_status); } &&
9566
{ ac_try='test -s conftest.$ac_objext'
9567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571
(exit $ac_status); }; }; then
9572
ac_header_compiler=yes
9574
echo "$as_me: failed program was:" >&5
9575
sed 's/^/| /' conftest.$ac_ext >&5
9577
ac_header_compiler=no
9579
rm -f conftest.$ac_objext conftest.$ac_ext
9580
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9581
echo "${ECHO_T}$ac_header_compiler" >&6
9583
# Is the header present?
9584
echo "$as_me:$LINENO: checking GL/glut.h presence" >&5
9585
echo $ECHO_N "checking GL/glut.h presence... $ECHO_C" >&6
9586
cat >conftest.$ac_ext <<_ACEOF
9587
#line $LINENO "configure"
9590
cat confdefs.h >>conftest.$ac_ext
9591
cat >>conftest.$ac_ext <<_ACEOF
9592
/* end confdefs.h. */
9593
#include <GL/glut.h>
9595
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9596
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9598
grep -v '^ *+' conftest.er1 >conftest.err
9600
cat conftest.err >&5
9601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602
(exit $ac_status); } >/dev/null; then
9603
if test -s conftest.err; then
9604
ac_cpp_err=$ac_c_preproc_warn_flag
9611
if test -z "$ac_cpp_err"; then
9612
ac_header_preproc=yes
9614
echo "$as_me: failed program was:" >&5
9615
sed 's/^/| /' conftest.$ac_ext >&5
9617
ac_header_preproc=no
9619
rm -f conftest.err conftest.$ac_ext
9620
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9621
echo "${ECHO_T}$ac_header_preproc" >&6
9623
# So? What about this header?
9624
case $ac_header_compiler:$ac_header_preproc in
9626
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&5
9627
echo "$as_me: WARNING: GL/glut.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9628
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
9629
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
9632
## ------------------------------------ ##
9633
## Report this to bug-autoconf@gnu.org. ##
9634
## ------------------------------------ ##
9637
sed "s/^/$as_me: WARNING: /" >&2
9640
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: present but cannot be compiled" >&5
9641
echo "$as_me: WARNING: GL/glut.h: present but cannot be compiled" >&2;}
9642
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: check for missing prerequisite headers?" >&5
9643
echo "$as_me: WARNING: GL/glut.h: check for missing prerequisite headers?" >&2;}
9644
{ echo "$as_me:$LINENO: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&5
9645
echo "$as_me: WARNING: GL/glut.h: proceeding with the preprocessor's result" >&2;}
9648
## ------------------------------------ ##
9649
## Report this to bug-autoconf@gnu.org. ##
9650
## ------------------------------------ ##
9653
sed "s/^/$as_me: WARNING: /" >&2
9656
echo "$as_me:$LINENO: checking for GL/glut.h" >&5
9657
echo $ECHO_N "checking for GL/glut.h... $ECHO_C" >&6
9658
if test "${ac_cv_header_GL_glut_h+set}" = set; then
9659
echo $ECHO_N "(cached) $ECHO_C" >&6
9661
ac_cv_header_GL_glut_h=$ac_header_preproc
9663
echo "$as_me:$LINENO: result: $ac_cv_header_GL_glut_h" >&5
9664
echo "${ECHO_T}$ac_cv_header_GL_glut_h" >&6
9667
if test $ac_cv_header_GL_glut_h = yes; then
9675
if test "x$HAVE_GLUT" = xno ; then
9676
{ echo "$as_me:$LINENO: WARNING: GLUT headers not availabe, example program won't be compiled." >&5
9677
echo "$as_me: WARNING: GLUT headers not availabe, example program won't be compiled." >&2;}
9680
# Check for GLUT libraries
9682
echo "$as_me:$LINENO: checking for GLUT library" >&5
9683
echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6
9684
if test "x$with_glut_lib" != "x" ; then
9685
if test -d "$with_glut_lib" ; then
9686
LIBS="-L$with_glut_lib -lglut"
9688
LIBS="$with_glut_lib"
9693
cat >conftest.$ac_ext <<_ACEOF
9694
#line $LINENO "configure"
9697
cat confdefs.h >>conftest.$ac_ext
9698
cat >>conftest.$ac_ext <<_ACEOF
9699
/* end confdefs.h. */
9701
/* Override any gcc2 internal prototype to avoid an error. */
9705
/* We use char because int might match the return type of a gcc2
9706
builtin and then its argument prototype would still apply. */
9716
rm -f conftest.$ac_objext conftest$ac_exeext
9717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718
(eval $ac_link) 2>&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); } &&
9722
{ ac_try='test -s conftest$ac_exeext'
9723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727
(exit $ac_status); }; }; then
9730
echo "$as_me: failed program was:" >&5
9731
sed 's/^/| /' conftest.$ac_ext >&5
9735
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737
if test "x$HAVE_GLUT" = xno ; then
9738
# Try again with the GL libs
9739
LIBS="-lglut $GL_LIBS"
9740
cat >conftest.$ac_ext <<_ACEOF
9741
#line $LINENO "configure"
9744
cat confdefs.h >>conftest.$ac_ext
9745
cat >>conftest.$ac_ext <<_ACEOF
9746
/* end confdefs.h. */
9748
/* Override any gcc2 internal prototype to avoid an error. */
9752
/* We use char because int might match the return type of a gcc2
9753
builtin and then its argument prototype would still apply. */
9763
rm -f conftest.$ac_objext conftest$ac_exeext
9764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765
(eval $ac_link) 2>&5
9767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768
(exit $ac_status); } &&
9769
{ ac_try='test -s conftest$ac_exeext'
9770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
(exit $ac_status); }; }; then
9777
echo "$as_me: failed program was:" >&5
9778
sed 's/^/| /' conftest.$ac_ext >&5
9782
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785
if test "x$HAVE_GLUT" = xno && test "x$GLUT_X_LIBS" != x ; then
9786
# Try again with the GL and X11 libs
9787
LIBS="-lglut $GL_LIBS $GLUT_X_LIBS"
9788
cat >conftest.$ac_ext <<_ACEOF
9789
#line $LINENO "configure"
9792
cat confdefs.h >>conftest.$ac_ext
9793
cat >>conftest.$ac_ext <<_ACEOF
9794
/* end confdefs.h. */
9796
/* Override any gcc2 internal prototype to avoid an error. */
9800
/* We use char because int might match the return type of a gcc2
9801
builtin and then its argument prototype would still apply. */
9811
rm -f conftest.$ac_objext conftest$ac_exeext
9812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813
(eval $ac_link) 2>&5
9815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816
(exit $ac_status); } &&
9817
{ ac_try='test -s conftest$ac_exeext'
9818
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822
(exit $ac_status); }; }; then
9825
echo "$as_me: failed program was:" >&5
9826
sed 's/^/| /' conftest.$ac_ext >&5
9830
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9833
if test "x$HAVE_GLUT" = xyes ; then
9834
echo "$as_me:$LINENO: result: yes" >&5
9835
echo "${ECHO_T}yes" >&6
9838
echo "$as_me:$LINENO: result: no" >&5
9839
echo "${ECHO_T}no" >&6
9840
{ echo "$as_me:$LINENO: WARNING: GLUT libraries not availabe, example program won't be compiled." >&5
9841
echo "$as_me: WARNING: GLUT libraries not availabe, example program won't be compiled." >&2;}
9844
# End check for GLUT libraries
9852
ac_cpp='$CPP $CPPFLAGS'
9853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9858
CPPFLAGS="$GLUT_SAVE_CPPFLAGS"
9859
LIBS="$GLUT_SAVE_LIBS"
9864
# Checks for library functions
9867
for ac_func in memset
9869
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9870
echo "$as_me:$LINENO: checking for $ac_func" >&5
9871
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9872
if eval "test \"\${$as_ac_var+set}\" = set"; then
9873
echo $ECHO_N "(cached) $ECHO_C" >&6
9875
cat >conftest.$ac_ext <<_ACEOF
9876
#line $LINENO "configure"
9879
cat confdefs.h >>conftest.$ac_ext
9880
cat >>conftest.$ac_ext <<_ACEOF
9881
/* end confdefs.h. */
9882
/* System header to define __stub macros and hopefully few prototypes,
9883
which can conflict with char $ac_func (); below.
9884
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9885
<limits.h> exists even on freestanding compilers. */
9887
# include <limits.h>
9889
# include <assert.h>
9891
/* Override any gcc2 internal prototype to avoid an error. */
9896
/* We use char because int might match the return type of a gcc2
9897
builtin and then its argument prototype would still apply. */
9899
/* The GNU C library defines this for functions which it implements
9900
to always fail with ENOSYS. Some functions are actually named
9901
something starting with __ and the normal name is an alias. */
9902
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9905
char (*f) () = $ac_func;
9914
return f != $ac_func;
9919
rm -f conftest.$ac_objext conftest$ac_exeext
9920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921
(eval $ac_link) 2>&5
9923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924
(exit $ac_status); } &&
9925
{ ac_try='test -s conftest$ac_exeext'
9926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930
(exit $ac_status); }; }; then
9931
eval "$as_ac_var=yes"
9933
echo "$as_me: failed program was:" >&5
9934
sed 's/^/| /' conftest.$ac_ext >&5
9936
eval "$as_ac_var=no"
9938
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9940
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9941
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9942
if test `eval echo '${'$as_ac_var'}'` = yes; then
9943
cat >>confdefs.h <<_ACEOF
9944
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9953
# Find a good install program. We prefer a C program (faster),
9954
# so one script is as good as another. But avoid the broken or
9955
# incompatible versions:
9956
# SysV /etc/install, /usr/sbin/install
9957
# SunOS /usr/etc/install
9958
# IRIX /sbin/install
9960
# AmigaOS /C/install, which installs bootblocks on floppy discs
9961
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9962
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9963
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9964
# ./install, which can be erroneously created by make from ./install.sh.
9965
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9966
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9967
if test -z "$INSTALL"; then
9968
if test "${ac_cv_path_install+set}" = set; then
9969
echo $ECHO_N "(cached) $ECHO_C" >&6
9971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975
test -z "$as_dir" && as_dir=.
9976
# Account for people who put trailing slashes in PATH elements.
9978
./ | .// | /cC/* | \
9979
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9982
# OSF1 and SCO ODT 3.0 have their own names for install.
9983
# Don't use installbsd from OSF since it installs stuff as root
9985
for ac_prog in ginstall scoinst install; do
9986
for ac_exec_ext in '' $ac_executable_extensions; do
9987
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9988
if test $ac_prog = install &&
9989
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9990
# AIX install. It has an incompatible calling convention.
9992
elif test $ac_prog = install &&
9993
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9994
# program-specific install script used by HP pwplus--don't use.
9997
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10009
if test "${ac_cv_path_install+set}" = set; then
10010
INSTALL=$ac_cv_path_install
10012
# As a last resort, use the slow shell script. We don't cache a
10013
# path for INSTALL within a source directory, because that will
10014
# break other packages using the cache if that directory is
10015
# removed, or if the path is relative.
10016
INSTALL=$ac_install_sh
10019
echo "$as_me:$LINENO: result: $INSTALL" >&5
10020
echo "${ECHO_T}$INSTALL" >&6
10022
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10023
# It thinks the first close brace ends the variable substitution.
10024
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10026
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10028
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10031
# Extract the first word of "doxygen", so it can be a program name with args.
10032
set dummy doxygen; ac_word=$2
10033
echo "$as_me:$LINENO: checking for $ac_word" >&5
10034
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10035
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
10036
echo $ECHO_N "(cached) $ECHO_C" >&6
10038
if test -n "$DOXYGEN"; then
10039
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
10041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042
for as_dir in $PATH
10045
test -z "$as_dir" && as_dir=.
10046
for ac_exec_ext in '' $ac_executable_extensions; do
10047
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048
ac_cv_prog_DOXYGEN="doxygen"
10049
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057
DOXYGEN=$ac_cv_prog_DOXYGEN
10058
if test -n "$DOXYGEN"; then
10059
echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10060
echo "${ECHO_T}$DOXYGEN" >&6
10062
echo "$as_me:$LINENO: result: no" >&5
10063
echo "${ECHO_T}no" >&6
10066
if test -z "$DOXYGEN" ; then
10070
ac_config_files="$ac_config_files Make.conf ftgl.pc"
10072
cat >confcache <<\_ACEOF
10073
# This file is a shell script that caches the results of configure
10074
# tests run on this system so they can be shared between configure
10075
# scripts and configure runs, see configure's option --config-cache.
10076
# It is not useful on other systems. If it contains results you don't
10077
# want to keep, you may remove or edit it.
10079
# config.status only pays attention to the cache file if you give it
10080
# the --recheck option to rerun configure.
10082
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10083
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10084
# following values.
10088
# The following way of writing the cache mishandles newlines in values,
10089
# but we know of no workaround that is simple, portable, and efficient.
10090
# So, don't put newlines in cache variables' values.
10091
# Ultrix sh set writes to stderr and can't be redirected directly,
10092
# and sets the high bit in the cache file unless we assign to the vars.
10095
case `(ac_space=' '; set | grep ac_space) 2>&1` in
10097
# `set' does not quote correctly, so add quotes (double-quote
10098
# substitution turns \\\\ into \\, and sed turns \\ into \).
10101
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10104
# `set' quotes correctly as required by POSIX, so do not add quotes.
10106
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10113
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10115
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10117
if diff $cache_file confcache >/dev/null 2>&1; then :; else
10118
if test -w $cache_file; then
10119
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10120
cat confcache >$cache_file
10122
echo "not updating unwritable cache $cache_file"
10127
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10128
# Let make expand exec_prefix.
10129
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10131
# VPATH may cause trouble with some makes, so we remove $(srcdir),
10132
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10133
# trailing colons and then remove the whole line if VPATH becomes empty
10134
# (actually we leave an empty line to preserve line numbers).
10135
if test "x$srcdir" = x.; then
10136
ac_vpsub='/^[ ]*VPATH[ ]*=/{
10137
s/:*\$(srcdir):*/:/;
10138
s/:*\${srcdir}:*/:/;
10140
s/^\([^=]*=[ ]*\):*/\1/;
10146
# Transform confdefs.h into DEFS.
10147
# Protect against shell expansion while executing Makefile rules.
10148
# Protect against Makefile macro expansion.
10150
# If the first sed substitution is executed (which looks for macros that
10151
# take arguments), then we branch to the quote section. Otherwise,
10152
# look for a macro that doesn't take arguments.
10153
cat >confdef2opt.sed <<\_ACEOF
10156
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10158
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10162
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10168
# We use echo to avoid assuming a particular line-breaking character.
10169
# The extra dot is to prevent the shell from consuming trailing
10170
# line-breaks from the sub-command output. A line-break within
10171
# single-quotes doesn't work because, if this script is created in a
10172
# platform that uses two characters for line-breaks (e.g., DOS), tr
10174
ac_LF_and_DOT=`echo; echo .`
10175
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10176
rm -f confdef2opt.sed
10181
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10182
# 1. Remove the extension, and $U if already installed.
10183
ac_i=`echo "$ac_i" |
10184
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10186
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10187
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10189
LIBOBJS=$ac_libobjs
10191
LTLIBOBJS=$ac_ltlibobjs
10195
: ${CONFIG_STATUS=./config.status}
10196
ac_clean_files_save=$ac_clean_files
10197
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10198
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10199
echo "$as_me: creating $CONFIG_STATUS" >&6;}
10200
cat >$CONFIG_STATUS <<_ACEOF
10202
# Generated by $as_me.
10203
# Run this file to recreate the current configuration.
10204
# Compiler output produced by configure, useful for debugging
10205
# configure, is in config.log if it exists.
10208
ac_cs_recheck=false
10210
SHELL=\${CONFIG_SHELL-$SHELL}
10213
cat >>$CONFIG_STATUS <<\_ACEOF
10214
## --------------------- ##
10215
## M4sh Initialization. ##
10216
## --------------------- ##
10218
# Be Bourne compatible
10219
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10222
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10223
# is contrary to our usage. Disable this feature.
10224
alias -g '${1+"$@"}'='"$@"'
10225
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10229
# Support unset when possible.
10230
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10237
# Work around bugs in pre-3.0 UWIN ksh.
10238
$as_unset ENV MAIL MAILPATH
10245
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10246
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10247
LC_TELEPHONE LC_TIME
10249
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10250
eval $as_var=C; export $as_var
10256
# Required to use basename.
10257
if expr a : '\(a\)' >/dev/null 2>&1; then
10263
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10264
as_basename=basename
10270
# Name of the executable.
10271
as_me=`$as_basename "$0" ||
10272
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10273
X"$0" : 'X\(//\)$' \| \
10274
X"$0" : 'X\(/\)$' \| \
10275
. : '\(.\)' 2>/dev/null ||
10277
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10278
/^X\/\(\/\/\)$/{ s//\1/; q; }
10279
/^X\/\(\/\).*/{ s//\1/; q; }
10283
# PATH needs CR, and LINENO needs CR and PATH.
10284
# Avoid depending upon Character Ranges.
10285
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10286
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10287
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10288
as_cr_digits='0123456789'
10289
as_cr_alnum=$as_cr_Letters$as_cr_digits
10291
# The user is always right.
10292
if test "${PATH_SEPARATOR+set}" != set; then
10293
echo "#! /bin/sh" >conf$$.sh
10294
echo "exit 0" >>conf$$.sh
10296
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10305
as_lineno_1=$LINENO
10306
as_lineno_2=$LINENO
10307
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10308
test "x$as_lineno_1" != "x$as_lineno_2" &&
10309
test "x$as_lineno_3" = "x$as_lineno_2" || {
10310
# Find who we are. Look in the path if we contain no path at all
10313
*[\\/]* ) as_myself=$0 ;;
10314
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315
for as_dir in $PATH
10318
test -z "$as_dir" && as_dir=.
10319
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10324
# We did not find ourselves, most probably we were run as `sh COMMAND'
10325
# in which case we are not to be found in the path.
10326
if test "x$as_myself" = x; then
10329
if test ! -f "$as_myself"; then
10330
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10331
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10332
{ (exit 1); exit 1; }; }
10334
case $CONFIG_SHELL in
10336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10340
test -z "$as_dir" && as_dir=.
10341
for as_base in sh bash ksh sh5; do
10344
if ("$as_dir/$as_base" -c '
10345
as_lineno_1=$LINENO
10346
as_lineno_2=$LINENO
10347
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10348
test "x$as_lineno_1" != "x$as_lineno_2" &&
10349
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10350
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10351
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10352
CONFIG_SHELL=$as_dir/$as_base
10353
export CONFIG_SHELL
10354
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10362
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10363
# uniformly replaced by the line number. The first 'sed' inserts a
10364
# line-number line before each line; the second 'sed' does the real
10365
# work. The second script uses 'N' to pair each line-number line
10366
# with the numbered line, and appends trailing '-' during
10367
# substitution so that $LINENO is not a special case at line end.
10368
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10369
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10370
sed '=' <$as_myself |
10375
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10378
s,^['$as_cr_digits']*\n,,
10379
' >$as_me.lineno &&
10380
chmod +x $as_me.lineno ||
10381
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10382
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10383
{ (exit 1); exit 1; }; }
10385
# Don't try to exec as it changes $[0], causing all sort of problems
10386
# (the dirname of $[0] is not the place where we might find the
10387
# original and so on. Autoconf is especially sensible to this).
10389
# Exit status is that of the last command.
10394
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10395
*c*,-n*) ECHO_N= ECHO_C='
10397
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10398
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10401
if expr a : '\(a\)' >/dev/null 2>&1; then
10407
rm -f conf$$ conf$$.exe conf$$.file
10409
if ln -s conf$$.file conf$$ 2>/dev/null; then
10410
# We could just check for DJGPP; but this test a) works b) is more generic
10411
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10412
if test -f conf$$.exe; then
10413
# Don't use ln at all; we don't have any links
10418
elif ln conf$$.file conf$$ 2>/dev/null; then
10423
rm -f conf$$ conf$$.exe conf$$.file
10425
if mkdir -p . 2>/dev/null; then
10431
as_executable_p="test -f"
10433
# Sed expression to map a string onto a valid CPP name.
10434
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10436
# Sed expression to map a string onto a valid variable name.
10437
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10441
# We need space, tab and new line, in precisely that order.
10451
# Open the log real soon, to keep \$[0] and so on meaningful, and to
10452
# report actual input values of CONFIG_FILES etc. instead of their
10453
# values after options handling. Logging --version etc. is OK.
10457
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10458
## Running $as_me. ##
10463
This file was extended by ftgl $as_me 2.0.5, which was
10464
generated by GNU Autoconf 2.57. Invocation command line was
10466
CONFIG_FILES = $CONFIG_FILES
10467
CONFIG_HEADERS = $CONFIG_HEADERS
10468
CONFIG_LINKS = $CONFIG_LINKS
10469
CONFIG_COMMANDS = $CONFIG_COMMANDS
10473
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10477
# Files that config.status was made for.
10478
if test -n "$ac_config_files"; then
10479
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10482
if test -n "$ac_config_headers"; then
10483
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10486
if test -n "$ac_config_links"; then
10487
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10490
if test -n "$ac_config_commands"; then
10491
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10494
cat >>$CONFIG_STATUS <<\_ACEOF
10497
\`$as_me' instantiates files from templates according to the
10498
current configuration.
10500
Usage: $0 [OPTIONS] [FILE]...
10502
-h, --help print this help, then exit
10503
-V, --version print version number, then exit
10504
-q, --quiet do not print progress messages
10505
-d, --debug don't remove temporary files
10506
--recheck update $as_me by reconfiguring in the same conditions
10507
--file=FILE[:TEMPLATE]
10508
instantiate the configuration file FILE
10510
Configuration files:
10513
Report bugs to <bug-autoconf@gnu.org>."
10516
cat >>$CONFIG_STATUS <<_ACEOF
10518
ftgl config.status 2.0.5
10519
configured by $0, generated by GNU Autoconf 2.57,
10520
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10522
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10523
Free Software Foundation, Inc.
10524
This config.status script is free software; the Free Software Foundation
10525
gives unlimited permission to copy, distribute and modify it."
10530
cat >>$CONFIG_STATUS <<\_ACEOF
10531
# If no file are specified by the user, then we need to provide default
10532
# value. By we need to know if files were specified by the user.
10538
ac_option=`expr "x$1" : 'x\([^=]*\)='`
10539
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10547
*) # This is not an option, so the user has probably given explicit
10550
ac_need_defaults=false;;
10554
# Handling of the options.
10556
cat >>$CONFIG_STATUS <<\_ACEOF
10557
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10559
--version | --vers* | -V )
10560
echo "$ac_cs_version"; exit 0 ;;
10562
# Conflict between --help and --header
10563
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
10564
Try \`$0 --help' for more information." >&5
10565
echo "$as_me: error: ambiguous option: $1
10566
Try \`$0 --help' for more information." >&2;}
10567
{ (exit 1); exit 1; }; };;
10568
--help | --hel | -h )
10569
echo "$ac_cs_usage"; exit 0 ;;
10570
--debug | --d* | -d )
10572
--file | --fil | --fi | --f )
10574
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10575
ac_need_defaults=false;;
10576
--header | --heade | --head | --hea )
10578
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10579
ac_need_defaults=false;;
10580
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
10581
| -silent | --silent | --silen | --sile | --sil | --si | --s)
10584
# This is an error.
10585
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10586
Try \`$0 --help' for more information." >&5
10587
echo "$as_me: error: unrecognized option: $1
10588
Try \`$0 --help' for more information." >&2;}
10589
{ (exit 1); exit 1; }; } ;;
10591
*) ac_config_targets="$ac_config_targets $1" ;;
10597
ac_configure_extra_args=
10599
if $ac_cs_silent; then
10601
ac_configure_extra_args="$ac_configure_extra_args --silent"
10605
cat >>$CONFIG_STATUS <<_ACEOF
10606
if \$ac_cs_recheck; then
10607
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10608
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10617
cat >>$CONFIG_STATUS <<\_ACEOF
10618
for ac_config_target in $ac_config_targets
10620
case "$ac_config_target" in
10621
# Handling of arguments.
10622
"Make.conf" ) CONFIG_FILES="$CONFIG_FILES Make.conf" ;;
10623
"ftgl.pc" ) CONFIG_FILES="$CONFIG_FILES ftgl.pc" ;;
10624
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10625
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10626
{ (exit 1); exit 1; }; };;
10630
# If the user did not use the arguments to specify the items to instantiate,
10631
# then the envvar interface is used. Set only those that are not.
10632
# We use the long form for the default assignment because of an extremely
10633
# bizarre bug on SunOS 4.1.3.
10634
if $ac_need_defaults; then
10635
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10638
# Have a temporary directory for convenience. Make it in the build tree
10639
# simply because there is no reason to put it here, and in addition,
10640
# creating and moving files from /tmp can sometimes cause problems.
10641
# Create a temporary directory, and hook for its removal unless debugging.
10644
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10645
trap '{ (exit 1); exit 1; }' 1 2 13 15
10648
# Create a (secure) tmp directory for tmp files.
10651
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10652
test -n "$tmp" && test -d "$tmp"
10655
tmp=./confstat$$-$RANDOM
10656
(umask 077 && mkdir $tmp)
10659
echo "$me: cannot create a temporary directory in ." >&2
10660
{ (exit 1); exit 1; }
10665
cat >>$CONFIG_STATUS <<_ACEOF
10668
# CONFIG_FILES section.
10671
# No need to generate the scripts if there are no CONFIG_FILES.
10672
# This happens for instance when ./config.status config.h
10673
if test -n "\$CONFIG_FILES"; then
10674
# Protect against being on the right side of a sed subst in config.status.
10675
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10676
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10677
s,@SHELL@,$SHELL,;t t
10678
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10679
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10680
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10681
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10682
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10683
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10684
s,@exec_prefix@,$exec_prefix,;t t
10685
s,@prefix@,$prefix,;t t
10686
s,@program_transform_name@,$program_transform_name,;t t
10687
s,@bindir@,$bindir,;t t
10688
s,@sbindir@,$sbindir,;t t
10689
s,@libexecdir@,$libexecdir,;t t
10690
s,@datadir@,$datadir,;t t
10691
s,@sysconfdir@,$sysconfdir,;t t
10692
s,@sharedstatedir@,$sharedstatedir,;t t
10693
s,@localstatedir@,$localstatedir,;t t
10694
s,@libdir@,$libdir,;t t
10695
s,@includedir@,$includedir,;t t
10696
s,@oldincludedir@,$oldincludedir,;t t
10697
s,@infodir@,$infodir,;t t
10698
s,@mandir@,$mandir,;t t
10699
s,@build_alias@,$build_alias,;t t
10700
s,@host_alias@,$host_alias,;t t
10701
s,@target_alias@,$target_alias,;t t
10702
s,@DEFS@,$DEFS,;t t
10703
s,@ECHO_C@,$ECHO_C,;t t
10704
s,@ECHO_N@,$ECHO_N,;t t
10705
s,@ECHO_T@,$ECHO_T,;t t
10706
s,@LIBS@,$LIBS,;t t
10707
s,@build@,$build,;t t
10708
s,@build_cpu@,$build_cpu,;t t
10709
s,@build_vendor@,$build_vendor,;t t
10710
s,@build_os@,$build_os,;t t
10711
s,@host@,$host,;t t
10712
s,@host_cpu@,$host_cpu,;t t
10713
s,@host_vendor@,$host_vendor,;t t
10714
s,@host_os@,$host_os,;t t
10716
s,@CXXFLAGS@,$CXXFLAGS,;t t
10717
s,@LDFLAGS@,$LDFLAGS,;t t
10718
s,@CPPFLAGS@,$CPPFLAGS,;t t
10719
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10720
s,@EXEEXT@,$EXEEXT,;t t
10721
s,@OBJEXT@,$OBJEXT,;t t
10723
s,@CFLAGS@,$CFLAGS,;t t
10724
s,@ac_ct_CC@,$ac_ct_CC,;t t
10725
s,@LN_S@,$LN_S,;t t
10726
s,@ECHO@,$ECHO,;t t
10727
s,@RANLIB@,$RANLIB,;t t
10728
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10729
s,@STRIP@,$STRIP,;t t
10730
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10732
s,@EGREP@,$EGREP,;t t
10733
s,@LIBTOOL@,$LIBTOOL,;t t
10734
s,@FT2_CONFIG@,$FT2_CONFIG,;t t
10735
s,@FT2_CFLAGS@,$FT2_CFLAGS,;t t
10736
s,@FT2_LIBS@,$FT2_LIBS,;t t
10737
s,@X_CFLAGS@,$X_CFLAGS,;t t
10738
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10739
s,@X_LIBS@,$X_LIBS,;t t
10740
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10741
s,@GL_CFLAGS@,$GL_CFLAGS,;t t
10742
s,@GL_LIBS@,$GL_LIBS,;t t
10743
s,@HAVE_GLUT@,$HAVE_GLUT,;t t
10744
s,@GLUT_CFLAGS@,$GLUT_CFLAGS,;t t
10745
s,@GLUT_LIBS@,$GLUT_LIBS,;t t
10746
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10747
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10748
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10749
s,@DOXYGEN@,$DOXYGEN,;t t
10750
s,@LIBOBJS@,$LIBOBJS,;t t
10751
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10756
cat >>$CONFIG_STATUS <<\_ACEOF
10757
# Split the substitutions into bite-sized pieces for seds with
10758
# small command number limits, like on Digital OSF/1 and HP-UX.
10759
ac_max_sed_lines=48
10760
ac_sed_frag=1 # Number of current file.
10761
ac_beg=1 # First line for current file.
10762
ac_end=$ac_max_sed_lines # Line after last line for current file.
10765
while $ac_more_lines; do
10766
if test $ac_beg -gt 1; then
10767
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10769
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10771
if test ! -s $tmp/subs.frag; then
10772
ac_more_lines=false
10774
# The purpose of the label and of the branching condition is to
10775
# speed up the sed processing (if there are no `@' at all, there
10776
# is no need to browse any of the substitutions).
10777
# These are the two extra sed commands mentioned above.
10779
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10780
if test -z "$ac_sed_cmds"; then
10781
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10783
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10785
ac_sed_frag=`expr $ac_sed_frag + 1`
10787
ac_end=`expr $ac_end + $ac_max_sed_lines`
10790
if test -z "$ac_sed_cmds"; then
10793
fi # test -n "$CONFIG_FILES"
10796
cat >>$CONFIG_STATUS <<\_ACEOF
10797
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10798
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10800
- | *:- | *:-:* ) # input from stdin
10802
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10803
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10804
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10805
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10806
* ) ac_file_in=$ac_file.in ;;
10809
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10810
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10811
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10812
X"$ac_file" : 'X\(//\)[^/]' \| \
10813
X"$ac_file" : 'X\(//\)$' \| \
10814
X"$ac_file" : 'X\(/\)' \| \
10815
. : '\(.\)' 2>/dev/null ||
10817
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10818
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10819
/^X\(\/\/\)$/{ s//\1/; q; }
10820
/^X\(\/\).*/{ s//\1/; q; }
10822
{ if $as_mkdir_p; then
10827
while test ! -d "$as_dir"; do
10828
as_dirs="$as_dir $as_dirs"
10829
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10830
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10831
X"$as_dir" : 'X\(//\)[^/]' \| \
10832
X"$as_dir" : 'X\(//\)$' \| \
10833
X"$as_dir" : 'X\(/\)' \| \
10834
. : '\(.\)' 2>/dev/null ||
10836
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10837
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10838
/^X\(\/\/\)$/{ s//\1/; q; }
10839
/^X\(\/\).*/{ s//\1/; q; }
10842
test ! -n "$as_dirs" || mkdir $as_dirs
10843
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10844
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10845
{ (exit 1); exit 1; }; }; }
10849
if test "$ac_dir" != .; then
10850
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10851
# A "../" for each directory in $ac_dir_suffix.
10852
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10854
ac_dir_suffix= ac_top_builddir=
10858
.) # No --srcdir option. We are building in place.
10860
if test -z "$ac_top_builddir"; then
10863
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10865
[\\/]* | ?:[\\/]* ) # Absolute path.
10866
ac_srcdir=$srcdir$ac_dir_suffix;
10867
ac_top_srcdir=$srcdir ;;
10868
*) # Relative path.
10869
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10870
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10872
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10874
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10875
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10876
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10877
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10881
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10882
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10885
if test x"$ac_file" != x-; then
10886
{ echo "$as_me:$LINENO: creating $ac_file" >&5
10887
echo "$as_me: creating $ac_file" >&6;}
10890
# Let's still pretend it is `configure' which instantiates (i.e., don't
10891
# use $as_me), people would be surprised to read:
10892
# /* config.h. Generated by config.status. */
10893
if test x"$ac_file" = x-; then
10896
configure_input="$ac_file. "
10898
configure_input=$configure_input"Generated from `echo $ac_file_in |
10899
sed 's,.*/,,'` by configure."
10901
# First look for the input files in the build tree, otherwise in the
10903
ac_file_inputs=`IFS=:
10904
for f in $ac_file_in; do
10906
-) echo $tmp/stdin ;;
10908
# Absolute (can't be DOS-style, as IFS=:)
10909
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10910
echo "$as_me: error: cannot find input file: $f" >&2;}
10911
{ (exit 1); exit 1; }; }
10914
if test -f "$f"; then
10917
elif test -f "$srcdir/$f"; then
10922
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10923
echo "$as_me: error: cannot find input file: $f" >&2;}
10924
{ (exit 1); exit 1; }; }
10927
done` || { (exit 1); exit 1; }
10929
cat >>$CONFIG_STATUS <<_ACEOF
10933
cat >>$CONFIG_STATUS <<\_ACEOF
10935
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10936
s,@configure_input@,$configure_input,;t t
10937
s,@srcdir@,$ac_srcdir,;t t
10938
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10939
s,@top_srcdir@,$ac_top_srcdir,;t t
10940
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10941
s,@builddir@,$ac_builddir,;t t
10942
s,@abs_builddir@,$ac_abs_builddir,;t t
10943
s,@top_builddir@,$ac_top_builddir,;t t
10944
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10945
s,@INSTALL@,$ac_INSTALL,;t t
10946
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10948
if test x"$ac_file" != x-; then
10949
mv $tmp/out $ac_file
10958
cat >>$CONFIG_STATUS <<\_ACEOF
10960
{ (exit 0); exit 0; }
10962
chmod +x $CONFIG_STATUS
10963
ac_clean_files=$ac_clean_files_save
10966
# configure is writing to config.log, and then calls config.status.
10967
# config.status does its own redirection, appending to config.log.
10968
# Unfortunately, on DOS this fails, as config.log is still kept open
10969
# by configure, so config.status won't be able to write to it; its
10970
# output is simply discarded. So we exec the FD to /dev/null,
10971
# effectively closing config.log, so it can be properly (re)opened and
10972
# appended to by config.status. When coming back to configure, we
10973
# need to make the FD available again.
10974
if test "$no_create" != yes; then
10976
ac_config_status_args=
10977
test "$silent" = yes &&
10978
ac_config_status_args="$ac_config_status_args --quiet"
10980
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10982
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10983
# would make configure fail if this is the last instruction.
10984
$ac_cs_success || { (exit 1); exit 1; }